/* Pixel & Code homepage. One idea: the ampersand joins the design and the build. */

@font-face { font-family: "Cormorant"; src: url(fonts/cormorant.woff2) format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url(fonts/cormorant-italic.woff2) format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url(fonts/inter.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  /* Logo colours */
  --blue: #31708F;
  --sky: #8FC1E2;
  /* Built from them */
  --deep: #1F4F68;
  --ink: #0F2A38;
  --ink-soft: #40596A;
  --ground: #F3F6F8;
  --step: #E4EDF3;
  --white: #FFFFFF;

  --serif: "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Type scale: each step is about 1.4x the next (72 / 52 / 36 / 24 / 17 at 1440px) */
  --fs-display: clamp(52px, 5vw, 84px);
  --fs-h2: clamp(36px, 3.6vw, 60px);
  --fs-h3: clamp(27px, 2.5vw, 42px);
  --fs-lg: clamp(21px, 1.7vw, 28px);
  --fs-body: clamp(16px, 1.18vw, 18px);
  --fs-small: 15px;

  --gutter: clamp(18px, 2.07vw, 35px);
  --gap: clamp(56px, 6.99vw, 110px);
  /* Every section below the hero gets half the gap above and below its content, so two sections
     sit one full gap apart and a coloured band has the same space on both sides of its edge */
  --pad: calc(var(--gap) / 2);
  /* One distance from a section's heading to its content */
  --head: clamp(28px, 3.5vw, 50px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --bar: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 16px); }
/* Smooth scrolling (Lenis 1.3.4, self-hosted). Its own easing replaces the browser's while it runs */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 var(--fs-body)/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
::selection { background: var(--sky); color: var(--ink); }

.frame { width: 100%; max-width: 1760px; margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 100; background: var(--ink); color: var(--white); padding: 12px 18px; text-decoration: none; }
.skip:focus { top: 12px; }

/* Type */
.display, .heading, .close h2 {
  font-family: var(--serif); font-weight: 500; letter-spacing: -.022em;
}
.display { font-size: var(--fs-display); line-height: 1; }
.heading { font-size: var(--fs-h2); line-height: 1.05; text-wrap: balance; }
.heading em, .display em { font-style: italic; color: var(--blue); font-weight: 500; }
.statement { font-family: var(--serif); font-weight: 500; font-size: var(--fs-lg); line-height: 1.32; letter-spacing: -.008em; }
.lead { font-size: var(--fs-body); line-height: 1.6; }
.amp { font-family: var(--serif); font-style: italic; font-weight: 600; color: var(--blue); }
li > .amp { font-size: 1.3em; line-height: 0; }

/* Controls: one square button, one text link */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 9px 18px; background: var(--blue); color: var(--white); font-size: var(--fs-small); font-weight: 500; line-height: 1.2; text-decoration: none; transition: background-color .2s, transform .2s var(--ease); }
.btn:hover { background: var(--ink); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-lg { min-height: 52px; padding: 12px 24px; }
.txt { position: relative; display: inline-block; padding: 6px 0; font-size: var(--fs-small); font-weight: 500; text-decoration: none; }
.txt::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--blue); transform-origin: left; transition: transform .35s var(--ease); }
.txt:hover::after { transform: scaleX(.35); }

/* Bar */
.bar { position: sticky; top: 0; z-index: 50; background: rgb(243 246 248 / .62); transition: background-color .3s; }
.bar.past { background: rgb(243 246 248 / .98); } /* past the hero, so page text does not show through */
.bar-in { display: flex; align-items: center; justify-content: space-between; height: var(--bar); }
.bar-logo img { width: 232px; }
.nav > ul { display: flex; align-items: center; gap: clamp(15px, 1.86vw, 29px); }
.nav > ul > li { position: relative; }
.nav > ul > li > a:not(.btn) { display: block; padding: 10px 0; font-size: var(--fs-small); text-decoration: none; transition: color .2s; }
.nav > ul > li > a:not(.btn):hover, .nav a[aria-current]:not(.btn) { color: var(--blue); }
.nav .btn[aria-current] { background: var(--ink); }
.has-sub > ul { position: absolute; left: -15px; top: 100%; min-width: 290px; padding: 9px 0; display: none; background: var(--white); box-shadow: 0 18px 44px rgb(15 42 56 / .16); /* taste-skill-ignore: a real floating menu */ }
.has-sub:hover > ul, .has-sub:focus-within > ul { display: block; animation: menu-in .25s var(--ease); }
@keyframes menu-in { from { opacity: 0; transform: translateY(8px); } }
.has-sub > ul a { display: block; padding: 7px 16px; font-size: var(--fs-small); line-height: 1.35; text-decoration: none; }
.has-sub > ul a:hover { background: var(--step); }
.nav-toggle { display: none; }

/* Hero */
/* Runs up behind the translucent bar */
.hero-top { position: relative; display: flex; align-items: center; margin-top: calc(var(--bar) * -1); padding-top: var(--bar); min-height: clamp(564px, 84svh, 824px); overflow: clip; }
/* The process loop: 100% on the right half, easing to 5% towards the text, then gone so no seam shows */
.hero-pic { position: absolute; top: var(--bar); right: 0; width: 62%; height: calc(100% - var(--bar)); object-fit: cover; object-position: 100% center; pointer-events: none;
  -webkit-mask-image: linear-gradient(to left, #000 0%, #000 52%, rgb(0 0 0 / .05) 92%, transparent 100%); /* taste-skill-ignore: the fade the client asked for */
  mask-image: linear-gradient(to left, #000 0%, #000 52%, rgb(0 0 0 / .05) 92%, transparent 100%); /* taste-skill-ignore */
}
/* The process loop replaces the photograph; its own backdrop is the page ground, so the fade has nothing to hide */
.hero-pic.hero-still { display: none; }
@media (prefers-reduced-motion: reduce) {
  .hero-pic.hero-video { display: none; }
  .hero-pic.hero-still { display: block; }
}
.hero-text { position: relative; padding-block: clamp(27px, 3.25vw, 51px); }
.hero-text > * { max-width: min(54%, 880px); }
.voice { margin-top: .02em; }
.hero-foot { margin-top: clamp(18px, 1.86vw, 31px); }
.hero-foot .lead { max-width: 56ch; }
.hero-act { display: flex; flex-wrap: wrap; align-items: center; gap: 13px 23px; margin-top: clamp(18px, 1.86vw, 28px); }

/* Clients */
.clients { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 25px 31px; padding-block: var(--pad); }
.logos { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(8, 1fr); gap: 18px clamp(13px, 2.33vw, 40px); align-items: center; margin-top: max(0px, calc(var(--head) - 25px)); }
.logos img { width: 100%; max-width: 170px; margin-inline: auto; mix-blend-mode: multiply; transition: transform .3s var(--ease); }
.logos li:hover img { transform: translateY(-3px); }

/* Services */
.services { padding-block: var(--pad); background: #E4EDF3; }
.split-head { display: flex; align-items: center; gap: clamp(25px, 2.99vw, 48px); margin-bottom: var(--head); }
.split-head .heading { flex: none; white-space: nowrap; }
.split-head .lead { flex: 1; min-width: 0; }
.arrow { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 2; }

/* Services slider: plays once through the services, stops on the add-ons */
.tslider { --tslide-dur: 6s; position: relative; isolation: isolate; overflow: hidden; padding: clamp(18px, 3.11vw, 47px); background: var(--white); border-radius: clamp(18px, 1.8vw, 28px); touch-action: pan-y; }
.tslider-slides { display: grid; }
.tslide { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(22px, 3.11vw, 49px); align-items: center; }
.js .tslide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateX(30px); transition: opacity .5s var(--ease), transform .8s var(--ease), visibility 0s .5s; }
.js .tslide.is-leaving { transform: translateX(-30px); }
.js .tslide.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .7s var(--ease) .1s, transform .9s var(--ease) .1s, visibility 0s; }
html:not(.js) .tslide + .tslide { margin-top: 44px; }
html:not(.js) .tslider-controls { display: none; }
.tslide-copy { position: relative; isolation: isolate; }
.tslide-no { position: absolute; z-index: -1; top: -.3em; left: -.03em; font: 500 clamp(96px, 11vw, 170px)/1 var(--serif); font-feature-settings: "lnum"; letter-spacing: -.04em; color: var(--sky); opacity: .28; user-select: none; }
.tslide-count { display: flex; align-items: center; gap: 9px; font-size: var(--fs-small); font-weight: 500; color: var(--blue); }
.tslide-count::before { content: ""; width: 34px; height: 2px; background: var(--blue); }
.tslide-count b { color: var(--ink); font-weight: 600; margin-right: -8px; }
.tslide-title { margin-top: 15px; font: 500 var(--fs-h3)/1.1 var(--serif); letter-spacing: -.022em; text-wrap: balance; }
.tslide-title em { font-style: italic; color: var(--blue); }
.amp-title { font-style: italic; color: var(--sky); }
.tslide-copy > p { margin-top: 15px; max-width: 40ch; font-size: var(--fs-body); }
.tslide-copy > .txt { margin-top: 13px; }
.tslide-frame { display: block; overflow: hidden; border-radius: 14px; background: var(--white); box-shadow: 0 24px 56px -24px rgb(15 42 56 / .34), 0 0 0 1px var(--step); /* taste-skill-ignore: browser frame, as on the reference */ transition: transform .6s var(--ease); }
.tslide-frame:hover { transform: translateY(-5px); }
.tslide-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: var(--step); }
.tslide-bar i { width: 9px; height: 9px; border-radius: 50%; background: #CFE3F0; }
.tslide-bar i:nth-child(1) { background: var(--blue); }
.tslide-bar i:nth-child(2) { background: var(--sky); }
.tslide-bar u { flex: 1; height: 18px; margin-left: 10px; border-radius: 999px; background: var(--white); }
.tslide-frame img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 0; }
.tslide.is-active .tslide-frame img, .tslide.is-leaving .tslide-frame img { animation: tslide-pan var(--tslide-dur) ease-in-out forwards; }
/* The slider screenshots are cropped to the area the frame shows, so the pan runs to their bottom */
@keyframes tslide-pan { to { object-position: 50% 100%; } }

.tslide-cta { grid-template-columns: minmax(0, 1fr); }
.tslide-cta .tslide-title { max-width: 22ch; }
.tslide-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: clamp(16px, 2.33vw, 28px); }
.tslide-list li { display: flex; align-items: baseline; gap: 9px; padding: clamp(10px, 1.14vw, 16px) clamp(10px, 1.4vw, 18px); border-radius: 14px; background: var(--ground); font: 500 var(--fs-lg)/1.2 var(--serif); }
.tslide-list span { flex: none; font: 600 var(--fs-small)/1 var(--sans); color: var(--blue); }
.tslide-foot { margin-top: clamp(16px, 2.33vw, 28px); }

.tslider-controls { display: flex; align-items: center; gap: 8px; margin-top: clamp(16px, 2.33vw, 28px); }
.tslider-bars { flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-right: 10px; }
.tslider-bars button { position: relative; height: 30px; }
.tslider-bars i { position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; overflow: hidden; border-radius: 4px; background: var(--step); transition: background-color .3s; }
.tslider-bars button:hover i { background: var(--sky); }
.tslider-bars i::after { content: ""; position: absolute; inset: 0; background: var(--blue); transform: scaleX(0); transform-origin: left center; }
.tslider-bars .is-done i::after { transform: scaleX(1); }
.tslider-bars .is-active i::after { animation: tslider-fill var(--tslide-dur) linear forwards; }
@keyframes tslider-fill { to { transform: scaleX(1); } }
.tslider.is-paused .tslider-bars i::after, .tslider.is-paused .tslide-frame img { animation-play-state: paused; }
.tslider.is-static .tslide-frame img { animation: none; }
.tslider.is-static .tslider-bars .is-active i::after, .tslider.is-ended .tslider-bars .is-active i::after { animation: none; transform: scaleX(1); }
.tslider-btn { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--step); transition: background-color .25s, color .25s; }
.tslider-btn svg { width: 18px; height: 18px; }
.tslider-btn:hover { background: var(--blue); color: var(--white); }
.tslider-toggle .ico-play, .tslider.is-user-paused .tslider-toggle .ico-pause { display: none; }
.tslider.is-user-paused .tslider-toggle .ico-play { display: block; }
.tslider.is-static .tslider-toggle, .tslider.is-ended .tslider-toggle { display: none; }
.tslider-btn:disabled { opacity: .35; cursor: default; background: var(--step); color: var(--ink); }

@media (max-width: 860px) {
  .tslide { grid-template-columns: minmax(0, 1fr); align-content: start; }
  .tslide-frame img { aspect-ratio: 16 / 10; }
  .tslide-list { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}
@media (max-width: 480px) {
  .tslider-controls { gap: 6px; }
  .tslider-bars { gap: 5px; margin-right: 5px; }
  .tslider-btn { width: 44px; height: 44px; }
  .tslide-frame img { aspect-ratio: 1 / 1; }
  .tslide-list { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}

/* Portfolio rail */
.pf-section { padding-block: var(--pad); overflow: hidden; }
.pf-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 25px; margin-bottom: calc(var(--head) - 16px); } /* the rail adds 16px above the frames for their hover lift */
.pf-sub { margin-top: 6px; }
.rail-ctrl { display: flex; gap: 8px; }
.rail-ctrl button { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--step); transition: background-color .3s, color .3s; }
.rail-ctrl button:hover { background: var(--blue); color: var(--white); }
.rail-ctrl svg { width: 20px; height: 20px; }
.rail { --rail-pad: max(var(--gutter), calc((100vw - 1760px) / 2 + var(--gutter))); display: flex; gap: 21px; overflow-x: auto; scroll-snap-type: x; scroll-padding-left: var(--rail-pad); padding: 16px var(--rail-pad) 31px; scrollbar-width: none; cursor: grab; }
.rail::-webkit-scrollbar { display: none; }
.rail.dragging { cursor: grabbing; scroll-snap-type: none; }
.rail.dragging .pf { pointer-events: none; }
.pf-item { flex: 0 0 clamp(270px, 30vw, 400px); scroll-snap-align: start; }
.pf { --h: 380px; position: relative; display: block; overflow: hidden; border-radius: 14px; background: var(--white); text-decoration: none; cursor: zoom-in; transition: transform .7s var(--ease); }
.pf:hover { transform: translateY(-10px); }
.pf-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: var(--step); }
.pf-bar i { width: 10px; height: 10px; border-radius: 50%; background: #CFE3F0; }
.pf-bar i:nth-child(1) { background: var(--blue); }
.pf-bar i:nth-child(2) { background: var(--sky); }
.pf-url { flex: 1; min-width: 0; height: 22px; margin-left: 10px; padding: 0 10px; border-radius: 8px; background: var(--white); font-size: 13px; font-weight: 500; line-height: 22px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-screen { position: relative; display: block; height: var(--h); overflow: hidden; background: var(--step); }
.pf-screen img { position: absolute; left: 0; top: 0; width: 100%; height: auto; pointer-events: none; transition: transform var(--scroll-dur, 6s) cubic-bezier(.45, 0, .3, 1); }
.pf:hover .pf-screen img.tall, .pf:focus-visible .pf-screen img.tall { transform: translateY(calc(-100% + var(--h))); }
.pf-hint { position: absolute; right: 11px; bottom: 62px; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 6px 12px; background: var(--ink); color: var(--white); font-size: var(--fs-small); font-weight: 500; opacity: 0; transform: translateY(8px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.pf-hint svg { width: 14px; height: 14px; }
.pf:hover .pf-hint, .pf:focus-visible .pf-hint { opacity: 1; transform: none; }
.pf-cap { display: flex; align-items: center; justify-content: space-between; gap: 9px; min-height: 50px; padding: 9px 15px; }
.pf-cap b { font: 500 var(--fs-lg)/1.1 var(--serif); font-feature-settings: "lnum"; letter-spacing: -.01em; }
.pf-cap span { flex: none; font-size: var(--fs-small); font-weight: 500; color: var(--blue); }
.rail-progress { height: 3px; overflow: hidden; border-radius: 3px; background: var(--step); }
.rail-progress i { display: block; width: 20%; height: 100%; border-radius: 3px; background: var(--blue); transition: transform .2s linear; }
.pf-more { margin-top: clamp(25px, 3.11vw, 47px); padding-inline: var(--gutter); text-align: center; }

/* Portfolio viewer */
.lb { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: var(--ink); color: var(--white); overflow: hidden; }
.lb[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); animation: lb-in .35s var(--ease); }
@keyframes lb-in { from { opacity: 0; } }
.lb-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px var(--gutter); }
.lb-title { min-width: 0; font: 500 var(--fs-lg)/1.15 var(--serif); }
.lb-count { margin-left: 9px; font: 400 var(--fs-small) var(--sans); color: #CFE3F0; white-space: nowrap; }
.lb-btns { display: flex; flex: none; gap: 8px; }
.lb-btns button { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgb(255 255 255 / .1); color: var(--white); transition: background-color .3s; }
.lb-btns button:hover { background: var(--blue); }
.lb-btns svg { width: 20px; height: 20px; }
.lb :focus-visible { outline-color: var(--sky); }
.lb-stage { overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--gutter) 47px; }
.lb-hint { margin-bottom: 10px; text-align: center; font-size: var(--fs-small); color: #CFE3F0; }
.lb-stage img { width: 100%; max-width: 1100px; margin-inline: auto; border-radius: 14px; opacity: 0; transform: translateY(24px) scale(.98); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.lb-stage img.ready { opacity: 1; transform: none; }

/* Testimonials */
.testimonials { padding-block: var(--pad); background: var(--step); }
.testi-head { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 25px 31px; align-items: start; }
.testi-head .txt { margin-top: 13px; }
.quotes { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 clamp(13px, 1.55vw, 25px); align-items: start; }
.quote-mark { font: italic 500 var(--fs-display)/.8 var(--serif); color: var(--blue); }
.quote-stack { display: grid; }
.quote { margin: 0; }
.js .quote { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .35s var(--ease), transform .5s var(--ease), visibility 0s .35s; }
.js .quote.on { opacity: 1; visibility: visible; transform: none; transition: opacity .5s var(--ease) .1s, transform .6s var(--ease) .1s, visibility 0s; }
html:not(.js) .quote + .quote { margin-top: 18px; }
html:not(.js) .quote-ctrl { display: none; }
.quote p { font: 500 var(--fs-h3)/1.16 var(--serif); letter-spacing: -.012em; }
.quote cite { display: block; margin-top: 10px; font: 500 var(--fs-small)/1.4 var(--sans); color: var(--blue); }
.quote-ctrl { grid-column: 2; justify-self: end; display: flex; gap: 8px; margin-top: -44px; }
.quote-ctrl button { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--white); transition: background-color .3s, color .3s; }
.quote-ctrl button:hover { background: var(--blue); color: var(--white); }
.quote-ctrl svg { width: 20px; height: 20px; }
.vcards { --vpad: max(var(--gutter), calc((100vw - 1760px) / 2 + var(--gutter))); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(10px, 1.14vw, 18px); margin-top: var(--head); padding-inline: var(--vpad); }
.vcards li:nth-child(even) { margin-top: clamp(15px, 1.86vw, 29px); }
.vcards li:nth-child(odd) { margin-bottom: clamp(15px, 1.86vw, 29px); }
.vcard { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 14px; background: var(--white); text-decoration: none; transition: transform .5s var(--ease); }
.vcard:hover { transform: translateY(-6px); }
.vcard-pic { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink); }
.vcard-pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% var(--y, 100%); transition: transform .8s var(--ease); }
.vcard:hover .vcard-pic img { transform: scale(1.04); }
.play { position: absolute; left: 11px; bottom: 11px; width: 48px; height: 48px; border-radius: 50%; background: var(--sky); transition: transform .3s var(--ease), background-color .2s; }
.play::after { content: ""; position: absolute; left: 19px; top: 15px; border-style: solid; border-width: 9px 0 9px 14px; border-color: transparent transparent transparent var(--ink); }
.vcard:hover .play { transform: scale(1.1); background: var(--white); }
.vcard-cap { display: block; padding: 12px 15px 14px; }
.vcard-cap b { display: block; font: 500 var(--fs-lg)/1.15 var(--serif); letter-spacing: -.01em; }
.vcard-cap span { display: block; margin-top: 3px; font-size: var(--fs-small); line-height: 1.35; color: var(--ink-soft); }

/* Close: a slim strip */
.close { margin-top: 0; }
.close-link { --cpad: max(var(--gutter), calc((100vw - 1760px) / 2 + var(--gutter))); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 31px; padding: clamp(15px, 1.35vw, 21px) var(--cpad); background: var(--blue); color: var(--white); text-decoration: none; transition: background-color .3s; }
.close-link:hover { background: var(--deep); }
.close-link:focus-visible { outline-offset: -6px; outline-color: var(--white); }
.close h2 { font-weight: 500; }
.close-word { font-size: var(--fs-h3); line-height: 1.1; }
.close-rest { margin-left: .35em; font-size: var(--fs-lg); line-height: 1.2; color: #EAF4FB; }
.close-side { display: flex; align-items: center; gap: 16px; font-size: var(--fs-small); line-height: 1.35; }
.close-side .arrow { flex: none; width: 26px; height: 26px; transition: transform .35s var(--ease); }
.close-link:hover .arrow { transform: translate(4px, -4px); }

/* Footer */
/* Footer: a single socket, logo left, copyright and legal links right */
.foot { padding-block: clamp(16px, 1.71vw, 25px); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 25px; }
/* Leave room on the right for the floating contact button (62px, 24px from the corner) */
.foot { padding-right: 86px; }
@media (max-width: 1080px) { .foot-logo img { width: 160px; } }
@media (max-width: 480px) { .foot { padding-right: 74px; } }
.foot-logo img { width: 200px; }
.foot-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; font-size: var(--fs-small); }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot-links a { display: inline-block; padding-block: 3px; font-size: var(--fs-small); text-decoration: none; transition: color .2s; }
.foot-links a:hover { color: var(--blue); text-decoration: underline; }

/* Video dialog */
/* The testimonials are phone-filmed portrait videos: the player takes their shape, fits the screen height and sits centred */
.player { width: min(94vw, calc(min(82svh, 860px) * 9 / 16)); padding: 0; border: 0; background: var(--ink); overflow: visible; }
.player::backdrop { background: rgb(15 42 56 / .82); }
.player-frame { aspect-ratio: 9 / 16; }
.player-frame video { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--ink); }
.player-close { position: absolute; right: 0; top: -52px; width: 44px; height: 44px; background: var(--white); color: var(--ink); font-size: 28px; line-height: 1; }

/* About page: same tokens and spacing rule as the homepage (--pad above and below, --head under headings) */
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--sky); color: var(--ink); }
.ab-h3 { font: 500 var(--fs-lg)/1.2 var(--serif); letter-spacing: -.01em; }
.ab-copy > * + * { margin-top: 18px; }
.ab-copy p, .ab-intro-text p:not(.ab-voice), .ab-head p, .ab-reason p { max-width: 64ch; }
.ab-photo { width: 100%; height: auto; border-radius: 14px; object-fit: cover; }

.ab-intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--head) clamp(31px, 4vw, 72px); align-items: stretch; padding-block: var(--pad); }
.ab-intro-band { background: #E4EDF3; }
/* Desktop: the photo takes exactly the height of the text beside it */
@media (min-width: 1081px) {
  .ab-intro-pic img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
}
.ab-intro-text > * + * { margin-top: 18px; }
.ab-intro .display em { white-space: nowrap; }
.ab-voice { margin-top: 14px !important; font: italic 500 var(--fs-h3)/1.15 var(--serif); color: var(--blue); }
.ab-intro-pic { position: relative; margin: 0; }
.ab-intro-pic img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 55%; border-radius: 14px; }
.ab-since { position: absolute; left: 14px; bottom: 14px; padding: 8px 14px; border-radius: 999px; background: var(--white); font: italic 500 var(--fs-lg)/1 var(--serif); color: var(--blue); }

.ab-who { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--head) clamp(31px, 4vw, 72px); align-items: start; padding-block: var(--pad); }
.ab-who-side .ab-photo { margin-top: var(--head); aspect-ratio: 3 / 2; }

.ab-mission { padding-block: var(--pad); background: var(--step); }
.ab-mission-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--head) clamp(31px, 4vw, 72px); align-items: center; }
.ab-mission-pic { aspect-ratio: 4 / 5; object-position: 40% 50%; }
.ab-mission .ab-h3 { color: var(--blue); font-style: italic; }
.ab-principles { padding: clamp(18px, 2vw, 28px); border-radius: 14px; background: var(--white); font: 500 var(--fs-lg)/1.32 var(--serif); letter-spacing: -.008em; }

.ab-why { padding-block: var(--pad); }
.ab-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 18px clamp(31px, 4vw, 72px); align-items: end; margin-bottom: var(--head); }
.ab-reasons { display: grid; gap: 2px; overflow: hidden; border-radius: clamp(18px, 1.8vw, 28px); background: var(--step); }
.ab-reason { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 10px clamp(31px, 4vw, 72px); align-items: baseline; padding: clamp(18px, 2.2vw, 32px) clamp(18px, 3vw, 47px); background: var(--white); }

.ab-fields { padding-block: var(--pad); background: var(--step); }
.ab-fields-in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--head) clamp(31px, 4vw, 72px); align-items: center; }
.ab-fields .heading { text-wrap: balance; }
.ab-fields-pic { aspect-ratio: 6 / 5; object-position: 45% 50%; }


@media (max-width: 1080px) {
  .ab-intro, .ab-who, .ab-mission-in, .ab-head, .ab-reason, .ab-fields-in { grid-template-columns: minmax(0, 1fr); }
  .ab-intro-pic img { aspect-ratio: 16 / 10; }
  .ab-mission-pic, .ab-fields-pic { aspect-ratio: 16 / 10; }
  .ab-mission-pic { order: 2; }
}

/* Services page: same tokens and spacing rule as the other pages */
html:has(.page-services) { --jump: 72px; }
html:has(.page-services) { scroll-padding-top: calc(var(--bar) + var(--jump) + 16px); }

/* Opening band */
.sv-intro-band { background: var(--step); }
.sv-intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--head) clamp(31px, 4vw, 72px); align-items: stretch; padding-block: var(--pad); }
.sv-intro-text > * + * { margin-top: 18px; }
.sv-intro-text p:not(.sv-voice) { max-width: 66ch; }
.sv-intro .display em { white-space: nowrap; }
.sv-voice { margin-top: 14px !important; font: italic 500 var(--fs-h3)/1.15 var(--serif); color: var(--blue); }
.sv-intro-pic { position: relative; margin: 0; min-height: 280px; overflow: hidden; border-radius: 14px; }

/* Parallax frames: the picture is taller than its frame and drifts as the page scrolls */
[data-parallax] { position: relative; overflow: hidden; }
[data-parallax] img { position: absolute; left: 0; top: -12%; width: 100%; height: 124%; object-fit: cover; will-change: transform; }

/* Jump menu */
.sv-jump { position: sticky; top: var(--bar); z-index: 40; background: rgb(243 246 248 / .97); }
.sv-jump ul { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-block: 10px; }
.sv-jump ul::-webkit-scrollbar { display: none; }
.sv-jump li { flex: none; }
.sv-jump a { display: block; padding: 8px 15px; border-radius: 999px; font-size: var(--fs-small); font-weight: 500; line-height: 1.3; white-space: nowrap; text-decoration: none; color: var(--ink-soft); transition: background-color .2s, color .2s; }
.sv-jump a:hover { background: var(--step); color: var(--ink); }
.sv-jump a[aria-current="true"] { background: var(--blue); color: var(--white); }
/* Desktop: all seven services in one row of equal columns, labels wrapping inside */
@media (min-width: 1081px) {
  .sv-jump ul { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; overflow: visible; }
  .sv-jump a { display: flex; align-items: center; justify-content: center; height: 100%; min-height: 50px; padding: 6px 10px; border-radius: 12px; white-space: normal; text-align: center; line-height: 1.25; }
}

/* One service: heading, intro and picture on the left (held in place), details on the right */
.sv { padding-block: var(--pad); }
.sv-alt { background: var(--step); }
.sv-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--head) clamp(31px, 4vw, 72px); align-items: start; }
.sv-side { position: sticky; top: calc(var(--bar) + var(--jump) + 24px); }
.sv-side > * + * { margin-top: 16px; }
.sv-side p { max-width: 58ch; }
.sv-count { display: flex; align-items: center; gap: 9px; font-size: var(--fs-small); font-weight: 500; color: var(--blue); }
.sv-count::before { content: ""; width: 34px; height: 2px; background: var(--blue); }
.sv-count b { color: var(--ink); font-weight: 600; margin-right: -6px; }
.sv-pic { margin: 22px 0 0 !important; aspect-ratio: 16 / 10; border-radius: 14px; }

/* Accordions: one open at a time per service; opening animates where the browser supports it */
.sv-accs { display: grid; gap: 10px; }
.sv-acc { border-radius: 14px; background: var(--white); interpolate-size: allow-keywords; }
.sv-acc summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: clamp(14px, 1.5vw, 20px) clamp(16px, 1.8vw, 24px); cursor: pointer; list-style: none; border-radius: 14px; }
.sv-acc summary::-webkit-details-marker { display: none; }
.sv-acc summary:focus-visible { outline-offset: -3px; }
.sv-acc h3 { font: 500 var(--fs-lg)/1.2 var(--serif); letter-spacing: -.01em; transition: color .2s; }
.sv-acc summary:hover h3, .sv-acc[open] h3 { color: var(--blue); }
.sv-plus { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--step); transition: background-color .25s; }
.sv-plus::before, .sv-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--ink); transition: transform .35s var(--ease); }
.sv-plus::after { transform: rotate(90deg); }
.sv-acc[open] .sv-plus { background: var(--blue); }
.sv-acc[open] .sv-plus::before, .sv-acc[open] .sv-plus::after { background: var(--white); }
.sv-acc[open] .sv-plus::after { transform: rotate(0deg); }
.sv-acc::details-content { block-size: 0; overflow: clip; transition: block-size .4s var(--ease), content-visibility .4s allow-discrete; }
.sv-acc[open]::details-content { block-size: auto; }
.sv-acc-body { padding: 0 clamp(16px, 1.8vw, 24px) clamp(16px, 1.8vw, 22px); }
.sv-acc-body p { max-width: 68ch; }
.sv-acc-body p + p { margin-top: 12px; }
.sv-panel { padding: clamp(18px, 2.2vw, 32px); border-radius: 14px; background: var(--white); }
.sv-panel p + p { margin-top: 14px; }
.sv-note { margin-top: 16px; padding: 14px 18px; border-radius: 14px; background: var(--white); font-size: var(--fs-small); line-height: 1.5; color: var(--ink-soft); }

/* Our approach */
.sv-steps { padding-block: var(--pad); }
.sv-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 18px clamp(31px, 4vw, 72px); align-items: end; margin-bottom: var(--head); }
.sv-head p { max-width: 64ch; }
.sv-step-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 18px); }
.sv-step-list li { padding: clamp(18px, 2vw, 28px); border-radius: 14px; background: var(--white); }
.sv-step-no { display: block; font: italic 500 var(--fs-display)/.9 var(--serif); font-feature-settings: "lnum"; color: var(--blue); }
.sv-step-list h3 { margin-top: 10px; font: 500 var(--fs-lg)/1.2 var(--serif); }
.sv-step-list p { margin-top: 10px; font-size: var(--fs-small); line-height: 1.55; }

/* Industries: parallax photograph behind a reading panel */
.sv-band { position: relative; overflow: hidden; padding-block: clamp(64px, 9vw, 150px); }
.sv-band-pic { position: absolute; inset: 0; }
.sv-band-pic img { top: -18%; height: 136%; }
.sv-band-in { position: relative; }
.sv-band-card { max-width: 620px; padding: clamp(22px, 3vw, 44px); border-radius: clamp(18px, 1.8vw, 28px); background: rgb(255 255 255 / .94); }
.sv-band-card > * + * { margin-top: 16px; }

@media (max-width: 1080px) {
  html:has(.page-services) { --jump: 54px; }
  .sv-intro, .sv-in, .sv-head { grid-template-columns: minmax(0, 1fr); }
  .sv-intro-pic { aspect-ratio: 16 / 10; min-height: 0; }
  .sv-side { position: static; }
  .sv-step-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .sv-step-list { grid-template-columns: minmax(0, 1fr); }
  .sv-band-card { max-width: none; }
}

/* Portfolio page: the jayanwerdesigns.com portfolio, in this site's tokens and spacing */
.pg-intro-band { background: var(--step); }
.pg-intro { padding-block: var(--pad); }
.pg-intro .lead { max-width: 68ch; margin-top: 18px; }
.pg { padding-block: var(--pad); }

.pg-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--head); }
.pg-filter button { padding: 10px 18px; border-radius: 999px; background: var(--white); font-size: var(--fs-small); font-weight: 500; color: var(--ink); transition: background-color .25s, color .25s; }
.pg-filter button:hover { background: var(--step); color: var(--blue); }
.pg-filter button.is-active { background: var(--blue); color: var(--white); }

.pg-group + .pg-group { margin-top: calc(var(--gap) * .8); }
.pg-group.is-hidden { display: none; }
.pg-group-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px clamp(18px, 2.4vw, 36px); align-items: end; margin-bottom: var(--head); }
.pg-no { grid-row: span 2; font: italic 500 clamp(64px, 7vw, 110px)/.8 var(--serif); font-feature-settings: "lnum"; color: var(--blue); }
.pg-group-head p { max-width: 70ch; color: var(--ink-soft); }

.pg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 1.8vw, 26px); }
.pg-grid > li:nth-child(3n+2) { transform: translateY(40px); }
.pg-grid > li:last-child { margin-bottom: 40px; }
.pg-grid .pf { cursor: zoom-in; }
.pg-grid .pf-screen { height: auto; aspect-ratio: 8 / 9; }
.pg-grid .pf-screen img { position: static; }
.pg-grid .pf-hint { bottom: 62px; }
/* Social graphics are shown whole, on white, instead of cropped like a long web page */
.pg-grid-graphic { align-items: start; }
.pg-grid-graphic .pf-screen { aspect-ratio: auto; background: var(--white); }
.pg-grid-graphic .pf-screen img { width: 100%; height: auto; }

@media (max-width: 980px) {
  .pg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-grid > li:nth-child(3n+2) { transform: none; }
  .pg-grid > li:last-child { margin-bottom: 0; }
}
@media (max-width: 600px) {
  .pg-grid { grid-template-columns: minmax(0, 1fr); }
  .pg-group-head { grid-template-columns: minmax(0, 1fr); }
  .pg-no { grid-row: auto; }
}

/* Testimonials page: the homepage section, with six cards in two staggered rows of three */
.page-testimonials .testimonials { padding-block: var(--pad); }
.testi-intro { margin-top: 14px; max-width: 34ch; }
.page-testimonials .quote p { font-size: clamp(22px, 1.9vw, 30px); line-height: 1.3; }
.page-testimonials .vcards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.page-testimonials .vcards li:nth-child(odd), .page-testimonials .vcards li:nth-child(even) { margin: 0; }
.page-testimonials .vcards li:nth-child(3n+2) { margin-top: clamp(24px, 3vw, 44px); margin-bottom: calc(clamp(24px, 3vw, 44px) * -1); }
.page-testimonials .vcard-pic { aspect-ratio: 5 / 6; }
@media (max-width: 1080px) {
  .page-testimonials .vcards { display: grid; overflow: visible; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-testimonials .vcards li { flex: none; }
  .page-testimonials .vcards li:nth-child(3n+2) { margin: 0 !important; }
}
@media (max-width: 560px) {
  .page-testimonials .vcards { grid-template-columns: minmax(0, 1fr); }
}

/* Get in Touch page: no form; how to reach a person, beside the four details */
.gt-band { background: var(--step); }
.gt { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--head) clamp(31px, 4vw, 72px); align-items: center; padding-block: var(--gap); }
.gt-text > * + * { margin-top: 18px; }
.gt-text p { max-width: 54ch; }
.gt-voice { margin-top: 14px !important; font: italic 500 var(--fs-h3)/1.15 var(--serif); color: var(--blue); }
.gt-act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 26px !important; }
.gt-hint { font-size: var(--fs-small); color: var(--ink-soft); }
/* The four details: one panel, label on the left, detail on the right */
.gt-info { display: grid; gap: 2px; margin: 0; overflow: hidden; border-radius: clamp(18px, 1.8vw, 28px); background: var(--step); }
.gt-info > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 6px 24px; align-items: baseline; padding: clamp(18px, 2.2vw, 30px) clamp(20px, 2.6vw, 38px); background: var(--white); }
.gt-info dt { font: 500 var(--fs-lg)/1.2 var(--serif); letter-spacing: -.01em; }
.gt-info dd { margin: 0; }
.gt-info dd span { display: inline-block; min-width: 5.5em; font-weight: 500; }
.gt-info a { color: var(--blue); font-weight: 500; text-decoration: none; }
.gt-info a:hover { text-decoration: underline; }
@media (max-width: 1080px) {
  .gt { grid-template-columns: minmax(0, 1fr); padding-block: var(--pad); }
}
@media (max-width: 560px) {
  .gt-info > div { grid-template-columns: minmax(0, 1fr); }
}

/* Legal pages (Terms and Conditions, Privacy Policy): title band, then contents beside a reading column */
.lg-intro-band { background: var(--step); }
.lg-intro { padding-block: var(--pad); }
.lg-intro .lead { max-width: 68ch; margin-top: 18px; }
.lg { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: var(--head) clamp(31px, 4vw, 72px); align-items: start; padding-block: var(--pad); }
.lg-toc { position: sticky; top: calc(var(--bar) + 24px); }
.lg-toc > p { font: 500 var(--fs-lg)/1.2 var(--serif); }
.lg-toc ol { margin-top: 10px; border-left: 2px solid var(--step); }
.lg-toc a { display: block; padding: 6px 0 6px 16px; font-size: var(--fs-small); line-height: 1.35; color: var(--ink-soft); text-decoration: none; transition: color .2s; }
.lg-toc a:hover { color: var(--blue); }
.lg-body { max-width: 72ch; }
.lg-body section + section { margin-top: clamp(34px, 3.4vw, 52px); }
.lg-body h2 { margin-bottom: 14px; font: 500 var(--fs-h3)/1.15 var(--serif); letter-spacing: -.01em; }
.lg-body p, .lg-body li { line-height: 1.65; }
.lg-body * + p, .lg-body * + ul { margin-top: 14px; }
.lg-body ul { padding-left: 1.25em; list-style: disc; }
.lg-body li + li { margin-top: 6px; }
.lg-body li::marker { color: var(--blue); }
.lg-body strong { font-weight: 500; }
.lg a, .lg-intro a { color: var(--blue); text-underline-offset: 3px; overflow-wrap: anywhere; }
/* Tablet and phone: one column; the headings carry the page, so the contents list steps aside */
@media (max-width: 1080px) {
  .lg { grid-template-columns: minmax(0, 1fr); }
  .lg-toc { display: none; }
}

/* Entrances: content is only hidden once script is known to be running */
@media (prefers-reduced-motion: no-preference) {
  /* Only content that starts below the first screen is hidden; what is on screen at load shows at once */
  .js .r.pre { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 75ms); }
  .js .r.pre.in { opacity: 1; transform: none; }
}

/* Too narrow for the services heading and two lines of text side by side */
@media (max-width: 1240px) {
  .split-head { display: block; }
  .split-head .heading { white-space: normal; }
  .split-head .lead { margin-top: 14px; }
}

/* Tablet */
@media (max-width: 1080px) {
  :root { --bar: 76px; }
  .bar-logo img { width: 200px; }
  .nav-toggle { display: grid; gap: 7px; width: 44px; height: 44px; align-content: center; justify-items: end; cursor: pointer; z-index: 2; }
  .nav-toggle span { display: block; width: 28px; height: 2px; background: var(--ink); transition: transform .3s var(--ease); }
  .nav-check:checked + .nav-toggle span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .nav-check:checked + .nav-toggle span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .nav-check:focus-visible + .nav-toggle { outline: 3px solid var(--blue); outline-offset: 2px; }
  .nav { position: fixed; inset: var(--bar) 0 0; padding: 9px var(--gutter) 31px; background: var(--ground); overflow-y: auto; visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s; }
  .nav-check:checked ~ .nav { visibility: visible; opacity: 1; }
  .nav > ul { display: block; }
  .nav > ul > li > a:not(.btn) { padding: 6px 0; font: 500 var(--fs-h3)/1.2 var(--serif); }
  .has-sub > ul { display: block; position: static; min-width: 0; padding: 0 0 6px; background: none; animation: none; box-shadow: none; /* taste-skill-ignore */ }
  .has-sub > ul a { padding: 6px 0; font-size: var(--fs-body); }
  .nav-cta { margin-top: 16px; }
  .clients, .testi-head { grid-template-columns: minmax(0, 1fr); }
  .vcards { display: flex; gap: 13px; overflow-x: auto; scroll-snap-type: x; scroll-padding-left: var(--vpad); scrollbar-width: none; }
  .vcards::-webkit-scrollbar { display: none; }
  .vcards li { flex: 0 0 clamp(210px, 32vw, 280px); margin: 0 !important; scroll-snap-align: start; }
  /* The photograph moves above the text, still fading to the left */
  .hero-top { display: block; min-height: 0; padding-top: 0; }
  /* Stacked: the loop starts below the header so its step label stays clear of the menu */
  .hero-pic { position: static; display: block; width: 100%; height: clamp(240px, 58vw, 560px); margin-top: var(--bar); object-position: 70% 50%;
    -webkit-mask-image: linear-gradient(to left, #000 0%, #000 55%, rgb(0 0 0 / .35) 100%); /* taste-skill-ignore */
    mask-image: linear-gradient(to left, #000 0%, #000 55%, rgb(0 0 0 / .35) 100%); /* taste-skill-ignore */ }
  .hero-text { padding-block: clamp(16px, 2.43vw, 27px) 0; }
  .hero-text > * { max-width: none; }
  .logos { grid-template-columns: repeat(4, 1fr); }
}

/* Phone: its own composition */
@media (max-width: 640px) {
  .hero-text .voice { font-size: clamp(28px, 8.4vw, 40px); margin-top: 8px; line-height: 1.05; }
  .bar-logo img { width: 186px; }
  .quote-ctrl { justify-self: start; margin-top: 12px; }
  .close-rest { display: block; margin-left: 0; margin-top: 2px; }
  .foot-logo img { width: 170px; }
  .btn-lg { width: 100%; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .arrow { width: 32px; height: 32px; }
  .pf-item { flex-basis: min(82vw, 340px); }
  .rail { gap: 10px; }

  /* Phones are most visitors. A shorter process loop lets the headline and the call to action share the first screen */
  .hero-pic { height: clamp(130px, 34vw, 240px); }
  /* Everything lines up on the left edge of the text */
  .logos { justify-items: start; }
  .logos img { margin-inline: 0; }
  .pf-more { text-align: left; }
  /* Tap targets of at least 44px, without changing how the links look */
  .txt::before, .foot-links a::before, .gt-info a::before, .sv-jump a::before { content: ""; position: absolute; inset: -8px -6px; }
  .foot-links a, .gt-info a, .sv-jump a { position: relative; }
  .sv-jump a::before { inset: -6px -3px; }
  .foot-links { gap: 10px 22px; }
  .tslider-bars button { height: 44px; }
  /* Services: the heading already carries the step number, so the large figure steps aside */
  .sv-step-no { display: none; }
  .sv-step-list h3 { margin-top: 0; }
  /* Portfolio: two columns, so a category is a short scroll instead of a long one */
  .pg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pg-grid .pf-bar { gap: 4px; padding: 7px 9px; }
  .pg-grid .pf-bar i { width: 7px; height: 7px; }
  .pg-grid .pf-url, .pg-grid .pf-cap span, .pg-grid .pf-hint { display: none; }
  .pg-grid .pf-cap { min-height: 0; padding: 8px 10px 10px; }
  .pg-grid .pf-cap b { font-size: 16px; line-height: 1.2; }
  /* Testimonials page: wider, shorter video cards */
  .page-testimonials .vcard-pic { aspect-ratio: 4 / 3; }
  .page-testimonials .vcard-pic img { object-position: 50% var(--yp, 50%); }
  .page-testimonials .vcards li:nth-child(1) { --yp: 35%; }
  .page-testimonials .vcards li:nth-child(2) { --yp: 80%; }
  .page-testimonials .vcards li:nth-child(4) { --yp: 75%; }
  .page-testimonials .vcards li:nth-child(5) { --yp: 55%; }
}
/* Touch screens: no hover lift left stuck on a card after a tap */
@media (hover: none) {
  .pf:hover, .vcard:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .pf:hover .pf-screen img.tall, .pf:focus-visible .pf-screen img.tall { transform: none; }
}
