/* ElkTech · Home (Musemind-inspired test build)
   Black and white with one signal colour: red marks the main action. */

:root {
  --ink: #0b0c0e;
  --ink-2: #4a4d55;
  --muted: #6b6e76;
  --line: #e7e8ea;
  --paper: #ffffff;
  --mist: #f4f5f7;
  --mist-2: #eceef1;
  --red: #d90a2c;
  --red-deep: #7a0a1c;
  --grey-on-dark: #b4b6bc;
  --line-dark: #2a2c31;
  --card-dark: #16171a;

  --sans: "General Sans", "Inter", system-ui, sans-serif;

  --gutter: clamp(20px, 4.45vw, 64px);
  /* One vertical rhythm for every section: the space between section content and a section edge.
     Neighbouring white sections share it (the second one has no top padding). */
  --section-y: clamp(72px, 8.4vw, 120px);
  --radius: 24px;
  --radius-lg: 32px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 116px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4, p, figure, blockquote, ul { margin: 0; }
ul { padding: 0; list-style: none; }

::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.about :focus-visible, .footer :focus-visible, .mobile-menu :focus-visible, .cta-card :focus-visible, .svc-ask :focus-visible { outline-color: #fff; }
html { scrollbar-color: #c9cbd0 transparent; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(1312px + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
/* The emphasised words in a heading: the same upright sans, lighter (400 against the headings' 600). The italic
   Instrument Serif that was here was removed on 23 Nov ("i dont want that italic font"). */
.em-light { font-style: normal; font-weight: 400; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px; border-radius: 999px;
  font: 600 16px/1 var(--sans); white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease-out);
}
.btn .arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-sm { height: 44px; padding: 0 20px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-deep); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2b2d33; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--mist-2); }
.btn-outline { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-outline-light { border: 1.5px solid #fff; color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--ink); }

/* ---------- Header: a full-width frosted bar that becomes a pill ---------- */
/* Header (23 Nov; the user: "make the navbar, frosted glass, but in the start, the navbar is full width when user
   scrolls down, it becomes pill shaped"). At the top of a page it is a full-width bar of frosted glass, flush with the
   top edge, with its links on the page's content width. Once the page scrolls (main.js adds .scrolled), the glass
   draws in to a floating pill, narrower than the content, and the links move in with it. Later that day: "increase
   the overall padding in the navbar, also right now it is fixed on the top, move it a bit downwards", then "when the
   navbar is full, make is stuck to the top, only the pill shaped should be placed like i explained above". So the
   bar stays on the top edge, 84 px tall, and the pill floats 16 px down (12 on phones), 68 px tall with 12 px inside
   it: both end on the same line. Only the glass
   changes shape (::before), so the bar is not a backdrop root and the Services panel can blur the page too; the
   header clips sideways because the bar's glass reaches past the scrollbar. */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; justify-content: center; padding: 0 var(--gutter); pointer-events: none; overflow-x: clip; }
.site-header.scrolled { padding-top: 16px; }
.nav-pill {
  position: relative; isolation: isolate; pointer-events: auto;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; width: 100%; max-width: 1312px; height: 84px; padding: 0;
  color: var(--ink);
  transition: height .55s var(--ease-out), max-width .55s var(--ease-out), padding .55s var(--ease-out), color .25s;
}
.site-header.scrolled .nav-pill { height: 68px; max-width: 1120px; padding: 0 12px; }
/* Frosted glass: a white tint over a strong blur, a hairline under the bar; as a pill, a fine rim and a soft shadow. */
.nav-pill::before {
  content: ""; position: absolute; inset: 0 calc(50% - 50vw); z-index: -1; border-radius: 0;
  background: rgba(255, 255, 255, .68);
  -webkit-backdrop-filter: blur(20px) saturate(1.8); backdrop-filter: blur(20px) saturate(1.8);
  box-shadow: 0 1px 0 rgba(11, 12, 14, .07);
  transition: inset .55s var(--ease-out), border-radius .55s var(--ease-out), background-color .3s, box-shadow .3s;
}
.site-header.scrolled .nav-pill::before {
  inset: 0; border-radius: 34px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6), 0 0 0 1px rgba(11, 12, 14, .06), 0 10px 28px -14px rgba(11, 12, 14, .3);
}
/* Over dark sections the glass turns smoked. */
.site-header.on-dark .nav-pill { color: #fff; }
.site-header.on-dark .nav-pill::before { background: rgba(22, 23, 27, .58); box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
.site-header.on-dark.scrolled .nav-pill::before { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 10px 28px -14px rgba(0, 0, 0, .6); }
.site-header.on-dark :focus-visible { outline-color: #fff; }
/* No morph on the first paint (a page opened part-way down starts as the pill); main.js adds .nav-ready. */
html:not(.nav-ready) .site-header, html:not(.nav-ready) .nav-pill, html:not(.nav-ready) .nav-pill::before, html:not(.nav-ready) .nav-pill .logo { transition: none; }

/* The logo is the brand lockup (red elk mark + wordmark) from the sprite in index.html. Its wordmark follows the
   text colour, so .logo-light and the header's on-dark state turn it white; heights are set where it is used. */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.logo { display: inline-flex; align-items: center; }
.logo-art { display: block; width: auto; height: 46px; aspect-ratio: 1434 / 685; overflow: visible; }
.logo-light { color: #fff; }
.nav-pill .logo { grid-column: 1; justify-self: start; margin-left: 0; transition: margin-left .55s var(--ease-out); }
.site-header.scrolled .nav-pill .logo { margin-left: 24px; }
.nav-pill .logo-art { height: 40px; }
.nav { grid-column: 2; display: flex; align-items: center; gap: 2px; }
/* No pill behind the links (28 Oct: the user found the hover "bubble" odd). Hover draws a faint underline; the section
   in view keeps a solid one. Both follow the text colour, so they work on the light and the smoked pill. */
.nav-link { display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 14px; border-radius: 999px; font: 500 15px/1 var(--sans); color: inherit; text-decoration: underline 1.5px transparent; text-underline-offset: 7px; transition: text-decoration-color .2s; }
.nav-link:hover { text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
.nav-link[aria-current] { text-decoration-color: currentColor; }
.chev { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
/* Services panel, after Musemind's (27 Oct): a wide white sheet under the pill with a small label and three columns of
   services, each a grey icon, a name with an arrow and one line on what it covers. It spans the pill, so .has-menu
   stays unpositioned and the panel is placed against .nav-pill. It stays white over dark sections too. */
.menu {
  position: absolute; left: 0; right: 0; top: calc(100% + 10px);
  padding: 32px 36px 36px; border-radius: var(--radius); color: var(--ink); background: #fff;
  box-shadow: 0 0 0 1px rgba(11, 12, 14, .06), 0 16px 32px -16px rgba(11, 12, 14, .2);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s, transform .18s var(--ease-out), visibility .18s;
}
.menu::before { content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 20px; } /* hover bridge up to the button */
.menu-label { font-size: 14px; line-height: 28px; text-transform: uppercase; color: var(--muted); }
.menu-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 40px; }
.menu-col { padding: 0 40px; }
.menu-col + .menu-col { border-left: 1px solid var(--line); }
.menu-col a { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; column-gap: 22px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.menu-col li:first-child a { padding-top: 0; }
.menu-col li:last-child a { padding-bottom: 0; border-bottom: 0; }
.menu-icon { grid-row: span 2; width: 28px; height: 28px; fill: none; stroke: #8f949b; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.menu-icon .f { fill: #eceef1; }
/* Musemind's greys, darkened where they fell under 4.5:1: the label and the line under each name use --muted. */
.menu-name { font: 500 16px/28px var(--sans); color: #4b5154; transition: color .2s; }
.menu-sub { font-size: 14px; line-height: 1.4; color: var(--muted); }
.menu-arrow { display: inline-block; width: 16px; height: 16px; margin-left: 4px; vertical-align: -2px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease-out); }
.nowrap { white-space: nowrap; }
.menu-col a:hover .menu-name, .menu-col a:focus-visible .menu-name { color: var(--ink); text-decoration: underline 1px; text-underline-offset: 6px; }
.menu-col a:hover .menu-arrow { transform: translateX(2px); }
.site-header.on-dark .menu :focus-visible { outline-color: var(--ink); }
/* Under the pill (1120 px wide once the page scrolls), the same tighter insets as on narrow desktops. */
.site-header.scrolled .menu { padding: 28px 28px 32px; }
.site-header.scrolled .menu-col { padding: 0 22px; }
.site-header.scrolled .menu-col a { column-gap: 16px; }
/* Narrow desktops (the panel shows down to 1081px): tighter insets, so names stay on one line. */
@media (max-width: 1240px) {
  .menu { padding: 28px 28px 32px; }
  .menu-col { padding: 0 22px; }
  .menu-col a { column-gap: 16px; }
}
.has-menu.open .menu { opacity: 1; visibility: visible; transform: none; }
.has-menu.open .chev { transform: rotate(180deg); }
@media (hover: hover) {
  .has-menu:not(.suppress):hover .menu { opacity: 1; visibility: visible; transform: none; }
  .has-menu:not(.suppress):hover .chev { transform: rotate(180deg); }
}
.header-actions { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 8px; }
/* The pill's CTA gets the same gloss: a light top edge and a soft reflection. */
.btn-gloss, .btn-gloss:hover { background-image: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0) 55%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 1px 2px rgba(122, 10, 28, .35); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 999px; align-items: center; justify-content: center; background: rgba(11, 12, 14, .06); color: inherit; }
.on-dark .menu-btn { background: rgba(255, 255, 255, .12); }
.menu-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.menu-btn-light { background: rgba(255, 255, 255, .12); color: #fff; }

.mobile-menu { position: fixed; inset: 0; z-index: 60; background: var(--ink); color: #fff; display: flex; flex-direction: column; overflow-y: auto; }
.mobile-menu[hidden] { display: none; }
/* The open menu keeps the pill: same place, smoked glass. */
.mobile-menu-top {
  display: flex; align-items: center; justify-content: space-between; height: 68px; margin: 16px var(--gutter) 0; padding: 0 12px 0 36px; border-radius: 999px;
  background: linear-gradient(180deg, #2a2c31, #1a1b1f);
}
.mobile-menu-top .logo-art { height: 40px; }
.mobile-menu.is-bar .mobile-menu-top { height: 84px; margin: 0; padding: 0 var(--gutter); border-radius: 0; }
.mobile-links { display: grid; padding-block: 8px; }
.mobile-links > a { font: 600 32px/1.1 var(--sans); letter-spacing: -0.03em; padding: 18px 0; border-bottom: 1px solid var(--line-dark); }
/* The five services under Services (30 Oct), so phones reach the service pages too; the hairline moves below them. */
.mobile-links > a:has(+ .mobile-sub) { padding-bottom: 10px; border-bottom: 0; }
.mobile-sub { display: grid; margin: 0; padding: 0 0 14px; list-style: none; border-bottom: 1px solid var(--line-dark); }
.mobile-sub a { display: block; padding: 7px 0; font: 500 18px/1.35 var(--sans); color: var(--grey-on-dark); transition: color .2s; }
.mobile-sub a:hover, .mobile-sub a[aria-current] { color: #fff; }
/* Service pages: Services stays underlined and the open page's name is dark in the panel. */
.nav-link.is-current { text-decoration-color: currentColor; }
.menu-col a[aria-current] .menu-name { color: var(--ink); }
.mobile-menu-cta { display: grid; gap: 12px; margin-top: auto; padding-block: 24px 32px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(70% 90% at 85% 10%, #eceef2 0%, #f6f7f9 45%, #ffffff 80%);
  padding-block: 216px calc(var(--section-y) + 48px); /* 48px taller each way than the section rhythm (27 Oct) */
}
/* The glass elk mark over grid squares that fill in and fade out at random (hero-glass.js) sits behind the copy. The
   whole canvas, glass included, melts into the white clients row over the hero's bottom third. It stays hidden,
   leaving the gradient above, until its first frame. */
.hero-glass {
  position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%;
  opacity: 0; transition: opacity 1.2s var(--ease-out); pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 64%, rgba(0, 0, 0, 0.55) 82%, transparent 100%);
  mask-image: linear-gradient(#000 64%, rgba(0, 0, 0, 0.55) 82%, transparent 100%);
}
.hero-glass.ready { opacity: 1; }
/* Headline set like the reference hero the user picked (Denovers): Geist 500 at 80.64px, line height 1.05,
   tracking -0.035em, #0c0c0a; on phones 28px / 1.35 / -0.02em. Text only, no visual beside it. */
.hero-title { max-width: 15em; font: 500 clamp(28px, 5.6vw, 80.64px)/1.05 "Geist", var(--sans); letter-spacing: -0.035em; color: #0c0c0a; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; white-space: nowrap; }
.hero-title .line > span { display: inline-block; animation: rise 0.9s var(--ease-out) both; }
.hero-title .line:nth-child(2) > span { animation-delay: .08s; }
@keyframes rise { from { transform: translateY(105%); } to { transform: translateY(0); } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero .hero-actions, .trust { animation: fade .9s .38s var(--ease-out) both; }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.trust { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 40px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.trust time { font-variant-numeric: tabular-nums; color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
  .hero-title .line > span, .hero .hero-actions, .trust { animation: none; }
}

/* ---------- Clients ---------- */
.clients { padding-block: 0 var(--section-y); text-align: center; }
.clients-title { font: 500 17px/1.4 var(--sans); color: var(--ink-2); }
.logo-wall { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 56px; margin-top: 36px; }
.logo-wall li { font: 700 26px/1 var(--sans); letter-spacing: -0.03em; color: var(--ink); opacity: 1; filter: none; }
.logo-wall li:nth-child(2n) { font-weight: 600; letter-spacing: -0.01em; }
.logo-wall li:nth-child(3n) { font-weight: 500; font-size: 21px; letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- Showreel ---------- */
/* After td-tomasfolio.framer.website (16 Nov): a 16:9 frame at content width (4:5 on phones) that scrolls like any
   block, while the photo inside it zooms out: main.js moves --s from 1.25 when the frame's top is at the bottom of the
   screen to 1 when it is a quarter of the way down, in step with the scroll. The frame, tab, play button and caption
   never scale. A white tab cut into the top-left corner holds the year and "Showreel"; its inner corners curve the
   other way, so the cut flows into the photo. A frosted play button sits in the middle. The grow-and-pin version it
   replaced is in _archive/reel-pin. 18 Nov: the photo is a 2x still of the film itself (assets/reel-film.webp since 20 Nov, the
   tilted wall of projects), in place of the stand-in team photo; it is light, so the frame is no longer data-dark. */
.reel-wrap { padding-bottom: var(--section-y); }
.reel { --s: 1; --tab-r: 20px; position: relative; overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 16 / 9; background: var(--ink); color: #fff; }
.reel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(var(--s)); }
.reel-wrap.armed .reel img { will-change: transform; }
.reel-tab { position: absolute; left: 0; top: 0; z-index: 1; display: grid; gap: 10px; padding: 20px 24px 18px 22px; border-bottom-right-radius: var(--tab-r); background: var(--paper); color: var(--ink); }
.reel-tab::before, .reel-tab::after { content: ""; position: absolute; width: var(--tab-r); height: var(--tab-r); background: radial-gradient(circle at 100% 100%, transparent calc(var(--tab-r) - 0.5px), var(--paper) var(--tab-r)); }
.reel-tab::before { left: 100%; top: 0; }
.reel-tab::after { left: 0; top: 100%; }
.reel-year { font: 600 clamp(26px, 2.4vw, 34px)/0.92 var(--sans); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.reel-label { font: 600 11px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; }
.reel-badge {
  position: absolute; left: 50%; top: 50%; z-index: 1; display: grid; place-items: center; width: clamp(84px, 7.5vw, 108px); aspect-ratio: 1;
  border-radius: 50%; background: rgba(255, 255, 255, 0.82); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6), 0 8px 24px -12px rgba(11, 12, 14, 0.4);
  transform: translate(-50%, -50%); transition: transform 0.35s var(--ease-out), background-color 0.2s;
}
.reel-badge:hover { background: rgba(255, 255, 255, 0.94); transform: translate(-50%, -50%) scale(1.06); }
/* The triangle's box sits 1/12 of its width right of centre (its weight sits left of its box), and the round stroke
   rounds its corners. */
.reel-play { width: 48%; height: 48%; fill: var(--red); stroke: var(--red); stroke-width: 2; stroke-linejoin: round; }
.reel :focus-visible { outline-color: #fff; }
/* Full screen on arrival (20 Nov; the user: "when user comes to this section, the reel should be full screen, and when
   user again scrolls down that minimizes to default state and user can scroll to other sections"). main.js arms the
   section and sets the custom properties. Armed:
   - the section is a scroll track, one screen plus the hold and the shrink (--reel-run), with its stage pinned inside;
   - the frame always covers the stage, and a clip-path window (--cx, --cy, --cr) shows only the default frame;
   - the window opens to the screen as the section arrives (16 px in from each edge, 8 on phones, with the same
     rounded corners), holds, then closes back before the stage scrolls on;
   - the margins (--reel-y, the stage's space above and below the default frame) keep the page's gap round the frame;
   - the tab rides on the window's corner and fades as it opens; the play button stays in the middle.
   The stage lets clicks through outside the window. Reduced motion keeps the static frame above. */
.reel-wrap.armed { height: calc(100svh + var(--reel-run, 0px)); margin-top: calc(-1 * var(--reel-y, 0px)); margin-bottom: calc(var(--section-y) - var(--reel-y, 0px)); padding-bottom: 0; }
.reel-wrap.armed > .wrap { position: sticky; top: 0; height: 100svh; max-width: none; padding: 0; pointer-events: none; }
.reel-wrap.armed .reel { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; pointer-events: auto; clip-path: inset(var(--cy, 0px) var(--cx, 0px) round var(--cr, 0px)); }
.reel-wrap.armed .reel-tab { transform: translate(var(--cx, 0px), var(--cy, 0px)); opacity: var(--tab-o, 1); }
/* The film on the full screen (20 Nov; the user: "when the video is fully screen, video will be automatically played
   and when it is in full screen dont show the top navbar", then "by default ... the video sound is on"). main.js
   plays it with sound once the window is fully open (muted until the visitor's first click, tap or key, which
   browsers ask for before sound) and marks the section film-on when it is playing: the film fades in over the still, the play button steps aside, and
   a frosted "Sound on" pill appears in the bottom-right corner. There is no pop-up player any more
   (_archive/reel-dialog). On a portrait screen the 16:9 film is shown whole on ink. As the window starts to close the film pauses
   and the still returns. */
.reel-film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; pointer-events: none; transition: opacity .6s var(--ease-out); }
.reel > img { transition: opacity .6s var(--ease-out); }
.reel-wrap.film-on .reel-film { opacity: 1; }
.reel-wrap.film-on .reel > img { opacity: 0; }
.reel-wrap.film-on .reel-badge { opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
@media (max-aspect-ratio: 1 / 1) { .reel-film { object-fit: contain; } }
.reel-sound {
  position: absolute; right: var(--gutter); bottom: var(--gutter); z-index: 1; display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 20px 0 16px;
  border-radius: 24px; background: rgba(255, 255, 255, 0.82); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6), 0 8px 24px -12px rgba(11, 12, 14, 0.4); color: var(--ink); font: 600 15px/1 var(--sans);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s, background-color .2s;
}
.reel-wrap.film-on .reel-sound { opacity: 1; visibility: visible; transition: opacity .3s .2s, visibility 0s, background-color .2s; }
.reel-sound:hover { background: rgba(255, 255, 255, 0.94); }
.reel-sound svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.reel-sound .sound-off, .reel-sound.is-on .sound-on { display: none; }  /* the icon and word for what a click does */
.reel-sound.is-on .sound-off { display: revert; }
/* Away while the showreel is full screen (main.js); it comes back for keyboard focus. */
.site-header { transition: padding-top .55s var(--ease-out), transform .45s var(--ease-out), opacity .3s; }
.site-header.away { transform: translateY(calc(-100% - 16px)); opacity: 0; }
.site-header.away:focus-within { transform: none; opacity: 1; }

.h2 { font: 600 clamp(34px, 4.2vw, 60px)/1.04 var(--sans); letter-spacing: -0.03em; }
.avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font: 600 15px/1 var(--sans); }
.avatar svg { width: 55%; height: 55%; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* ---------- Work: case studies in two staggered columns ---------- */
/* Each card: a device mockup on a studio-like tile, the project line and a quote. The right column starts lower
   and drifts a little against the scroll; cards rise in as they arrive (main.js adds .armed and .in). */
.work { padding-block: 0 var(--section-y); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 56px; }
.section-head .lead { margin-top: 14px; }
.lead { font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 46ch; }
.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gutter); align-items: start; }
.cases-col { display: grid; gap: 112px; }
.cases-col-offset { padding-top: 220px; will-change: transform; }
.cs { display: grid; gap: 22px; align-content: start; }
.cs-media { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); container-type: inline-size; isolation: isolate; }
.cs-scene { position: absolute; inset: 0; display: block; font-size: calc(100cqw / 38); line-height: 1.3; }
.cs-device { position: absolute; display: block; transition: translate .6s var(--ease-out); }
.cs-media:hover .cs-device { translate: 0 -0.6em; }
.cs-title { max-width: 32ch; font: 500 22px/1.35 var(--sans); letter-spacing: -0.01em; }

/* Arrival: the card rises and fades in, and the picture settles from a slight zoom. */
.cases.armed .cs { opacity: 0; translate: 0 56px; }
.cases.armed .cs-scene { scale: 1.08; }
.cases.armed .cs.in { opacity: 1; translate: 0 0; transition: opacity .8s var(--ease-out), translate 1s var(--ease-out); }
.cases.armed .cs.in .cs-scene { scale: 1; transition: scale 1.4s var(--ease-out); }

/* "View case" bubble that follows the pointer over the pictures (fine pointers only; see main.js). */
.case-cursor { position: fixed; left: 0; top: 0; z-index: 45; transform: translate(-200px, -200px); display: grid; place-items: center; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%; background: var(--red); color: #fff; font: 600 14px/1.15 var(--sans); text-align: center; pointer-events: none; opacity: 0; scale: .3; transition: opacity .2s, scale .35s var(--ease-out); }
.case-cursor.on { opacity: 1; scale: 1; }
@media (hover: hover) and (pointer: fine) { [data-case] { cursor: none; } }

/* Stand-in screens inside the mockups (decorative; sized in em off the tile, 16px on a 608px tile). */
.ui { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: .3em; background: #fff; color: var(--ink); font-size: .5em; }
.ui b { font-weight: 600; }
.ui small { color: var(--ink-2); }
.ui-pill { padding: .5em 1.1em; border-radius: 99em; background: var(--ink); color: #fff; font-style: normal; font-weight: 600; white-space: nowrap; }
.ui-top { display: flex; align-items: center; justify-content: space-between; gap: 1em; padding: .9em 1.4em; border-bottom: 1px solid #eceef1; }
.ui-top > b { font-size: 1.3em; }

/* 1 · laptop on a soft studio tile (Card Clan) */
.scene-soft { background: radial-gradient(120% 100% at 20% 10%, #ffffff 0%, #eceef2 60%, #e2e5e9 100%); }
.lap { left: 4em; right: 3em; top: 6.4em; transform: perspective(80em) rotateX(10deg) rotateY(-14deg) rotate(-3deg); }
.lap-screen { display: block; aspect-ratio: 16 / 10.4; padding: .65em .65em .9em; border-radius: 1.1em 1.1em .35em .35em; background: #121316; box-shadow: 0 2.4em 3.2em -2em rgba(11, 12, 14, .45); }
.lap-base { display: block; height: 1.2em; margin: 0 -2.6em; border-radius: .2em .2em 1.4em 1.4em; background: linear-gradient(180deg, #e6e8ec, #b8bcc3); box-shadow: 0 1.6em 2em -1.4em rgba(11, 12, 14, .5); }
.ui-body { display: grid; grid-template-columns: 7em minmax(0, 1fr); flex: 1; }
.ui-side { display: flex; flex-direction: column; gap: .9em; padding: 1.4em 1.2em; background: #f6f7f9; }
.ui-side i { height: .8em; border-radius: .4em; background: #dfe1e5; }
.ui-side i.on { background: var(--ink); }
.ui-main { display: flex; flex-direction: column; gap: 1.1em; min-width: 0; padding: 1.3em 1.6em; }
.ui-h { display: grid; gap: .2em; }
.ui-h b { font-size: 1.5em; }
.ui-cover { display: grid; gap: .3em; padding: 1.8em 1.6em; border-radius: .8em; background: var(--ink); color: #fff; }
.ui-cover b { font-size: 2.4em; letter-spacing: -0.02em; }
.ui-cover small { color: #c9cbd0; }
.ui-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8em; }
.ui-notes > span { display: grid; align-content: start; gap: .3em; padding: 1em; border: 1px solid #e7e8ea; border-radius: .8em; }
.ui-notes .add { place-items: center; border-style: dashed; border-color: #8a8d94; font-weight: 600; }

/* 2 · monitor on a dark tile (Eyelet), with a product-tour step on top */
.scene-dark { background: radial-gradient(120% 90% at 50% 0%, #2a2c31 0%, #111214 60%, #0b0c0e 100%); }
.mon { left: 3.6em; right: 3.6em; top: 7em; display: flex; flex-direction: column; align-items: center; transform: perspective(80em) rotateY(12deg) rotateX(4deg); }
.mon-screen { display: block; width: 100%; aspect-ratio: 16 / 10; padding: .55em; border-radius: .9em; background: #050506; box-shadow: 0 0 0 1px #2a2c31, 0 3em 4em -2em rgba(0, 0, 0, .8); }
.mon-neck { display: block; width: 4.5em; height: 3.4em; background: linear-gradient(90deg, #1b1c20, #2b2d33, #1b1c20); }
.mon-foot { display: block; width: 12em; height: .9em; border-radius: .5em .5em .3em .3em; background: linear-gradient(#2e3036, #18191c); }
.ui-eyelet { position: relative; }
.ui-tabs { display: flex; gap: .4em; margin: 0 auto 0 2em; }
.ui-tabs i { padding: .4em .9em; border-radius: 99em; color: var(--ink-2); font-style: normal; }
.ui-tabs i.on { background: #f1f2f4; color: var(--ink); font-weight: 600; }
.ui-dash { display: grid; gap: 1.2em; padding: 1.4em 1.6em; }
.ui-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8em; }
.ui-kpis > span { display: grid; gap: .3em; padding: 1em 1.1em; border-radius: .8em; background: #f4f5f7; }
.ui-kpis b { font-size: 2em; letter-spacing: -0.02em; }
.ui-chart { display: grid; gap: .6em; }
.ui-chart svg { display: block; width: 100%; height: 7em; }
.ui-chart .area { fill: #f1f2f4; }
.ui-chart .line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ui-rows { display: grid; }
.ui-rows > span { display: grid; grid-template-columns: 1.6em minmax(0, 1fr) auto; align-items: center; gap: .8em; padding: .9em 0; border-bottom: 1px solid #eceef1; }
.ui-rows i { width: 1.6em; height: 1.6em; border-radius: .4em; background: #e7e8ea; }
.ui-rows small { padding: .3em .8em; border-radius: 99em; background: #f1f2f4; color: var(--ink); font-weight: 600; }
.ui-tip { position: absolute; right: 2em; top: 4.4em; display: grid; gap: .5em; width: 17em; padding: 1.2em; border-radius: 1em; background: var(--ink); color: #fff; box-shadow: 0 1em 2em -1em rgba(11, 12, 14, .6); }
.ui-tip::before { content: ""; position: absolute; right: 3em; top: -.45em; width: 1em; height: 1em; background: var(--ink); rotate: 45deg; }
.ui-tip span { color: #d4d6db; }
.ui-tip .ui-pill { justify-self: end; background: #fff; color: var(--ink); }

/* 3 · two phones on a light tile (Vapiano) */
.scene-warm { background: radial-gradient(120% 100% at 80% 0%, #ffffff 0%, #eef0f2 55%, #e3e6ea 100%); }
.ph { width: 13.5em; aspect-ratio: 9 / 19.5; padding: .45em; border-radius: 2.4em; background: #111214; box-shadow: inset 0 0 0 1px #2a2c31, 0 2.6em 3em -1.6em rgba(11, 12, 14, .5); }
.ph-a { left: 6.5em; top: 5.5em; rotate: -9deg; }
.ph-b { left: 19em; top: 9.5em; rotate: 7deg; }
.ph-screen { display: block; height: 100%; overflow: hidden; border-radius: 2em; }
.ui-phone { position: relative; gap: 1.1em; padding: 3.4em 1.4em 1.4em; font-size: .55em; }
.ph-notch { position: absolute; left: 50%; top: .8em; width: 6em; height: 1.6em; border-radius: 99em; background: #111214; translate: -50% 0; }
.ui-ph-head { display: grid; gap: .3em; }
.ui-ph-head b { font-size: 2.1em; line-height: 1.1; letter-spacing: -0.02em; }
.ui-chips { display: flex; gap: .5em; }
.ui-chips i { padding: .5em 1em; border-radius: 99em; background: #f1f2f4; font-style: normal; }
.ui-chips i.on { background: var(--ink); color: #fff; }
.ui-menu { display: grid; gap: .9em; }
.ui-menu > span { display: grid; grid-template-columns: 3.6em minmax(0, 1fr) auto; align-items: center; gap: .9em; }
.ui-menu > span > span { display: grid; gap: .2em; }
.ui-menu i { width: 3.6em; height: 3.6em; border-radius: .9em; background: #eceef1; }
.ui-menu i.dk { background: #2a2c31; }
.ui-menu em { font-style: normal; font-weight: 600; }
.ui-cart { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding: 1.1em 1.3em; border-radius: 99em; background: var(--red); color: #fff; font-weight: 600; }
.ui-phone-dark { background: var(--ink); color: #fff; }
.ui-phone-dark small { color: #b4b6bc; }
.ui-steps { display: grid; gap: 1.2em; }
.ui-steps > span { display: flex; align-items: center; gap: .8em; color: #b4b6bc; }
.ui-steps i { width: 1.4em; height: 1.4em; border-radius: 50%; box-shadow: inset 0 0 0 .2em #4a4d55; }
.ui-steps .done { color: #fff; }
.ui-steps .done i { background: #fff; box-shadow: none; }
.ui-eta { display: grid; gap: .2em; margin-top: auto; padding: 1.3em; border-radius: 1.2em; background: #1d1e22; }
.ui-eta b { font-size: 3em; letter-spacing: -0.03em; }

/* Brand stage (19 Nov, after the Pinterest study in research/case-thumbnails): the tiles of the cases from the user's
   Figma files take the product's own colour, its name and one line, and Apple's devices with the real screens standing
   on one floor line (placed by _tools/case_tiles.py at their true relative size; nothing is drawn over a device). */
.stage { background: var(--stage); color: var(--stage-fg); }
.stage-copy { position: absolute; left: 6.5%; right: 6.5%; top: 6%; display: grid; justify-items: start; gap: .3em; }
.stage-copy b { font: 600 7.4cqw/1 var(--sans); letter-spacing: -0.035em; }
.stage-copy span { font: 500 max(13px, 2.75cqw)/1.3 var(--sans); color: var(--stage-fg2); }
.stage-dev { height: auto; }
/* Studio pair (19 Nov, direction B; the user: "Try studio pair"): the site's own greys, a floor band from 78% down, a
   small label, and the same devices standing on the floor (_tools/case_tiles.py, STYLE = 'studio'). Inside the mist
   next-case card the field turns white so the tile keeps its edge. */
.studio { background: var(--studio-field, var(--mist)); color: var(--ink); }
.studio::before { content: ""; position: absolute; inset: 78% 0 0; background: #e9ebee; }
.studio-copy { position: absolute; left: 5.3%; right: 5.3%; top: 4.6%; display: grid; justify-items: start; gap: .15em; }
.studio-copy b { font: 600 max(16px, 3.6cqw)/1.15 var(--sans); letter-spacing: -0.015em; }
.studio-copy span { font: 500 max(13px, 2.47cqw)/1.3 var(--sans); color: var(--ink-2); }
.case-next-media .studio { --studio-field: #fff; }
/* Case thumbnails v3 (19 Nov, live; the user found the studio pair "so Ai generated" and asked for every thumbnail in a
   different design language and pattern): each case's tile is one designed picture from research/case-thumbnails-v3,
   made of its real screens, photos, logos and fonts (_tools/thumbs, case_tiles.py STYLE = 'thumb'). On hover it eases in
   a little, where the devices used to rise. */
.thumb { background: var(--mist); }
.cs-thumb { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; transition: scale .9s var(--ease-out); }
.cs-media:hover .cs-thumb { scale: 1.035; }
@media (prefers-reduced-motion: reduce) { .cs-thumb { transition: none; } .cs-media:hover .cs-thumb { scale: none; } }

/* 4 · the invitation tile */
.cs-media-cta { color: #fff; background: radial-gradient(90% 80% at 85% 100%, #7a0a1c 0%, #2a0207 45%, #0b0c0e 80%); }
.cs-cta-in { position: absolute; inset: auto 0 0; display: grid; justify-items: start; gap: 18px; padding: clamp(24px, 3vw, 44px); }
.cs-cta-title { max-width: 12ch; font: 600 clamp(30px, 3.2vw, 46px)/1.05 var(--sans); letter-spacing: -0.03em; }
.cs-cta-text { max-width: 34ch; color: var(--grey-on-dark); }

@media (max-width: 900px) {
  .cases { grid-template-columns: 1fr; gap: 72px; }
  .cases-col { gap: 72px; }
  .cases-col-offset { padding-top: 0; }
}

/* ---------- Services ---------- */
/* A numbered list, after the user's reference (28 Oct): number and name, one line on what it is, and Contact. One row
   is open at a time: it turns grey, its line moves under the name, and the service's product mockup and what it
   includes come in. Hairlines part around the open or hovered row; there is none under the last row (the user had it
   removed on 29 Oct). --indent lines things up under the name. The card grid it replaced is in _archive/services-cards. */
.services { padding-block: 0 var(--section-y); }
.svc-list, .svc-ask { --indent: 88px; }
.svc-list { margin: 0; padding: 0; list-style: none; }
.svc-row {
  position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr);
  grid-template-areas: "head desc contact"; column-gap: 32px; align-items: center;
  padding: 40px 32px; border-radius: var(--radius); cursor: pointer; transition: background-color .3s;
}
.svc-row::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); transition: opacity .3s; }
.svc-row:first-child::before, .svc-row.open::before, .svc-row.open + .svc-row::before { opacity: 0; }
@media (hover: hover) {
  .svc-row:not(.open):hover { background: #f8f9fa; }
  .svc-row:hover::before, .svc-row:hover + .svc-row::before { opacity: 0; }
}
.svc-head { grid-area: head; }
.svc-toggle { display: grid; grid-template-columns: var(--indent) minmax(0, 1fr); align-items: baseline; width: 100%; padding: 0; text-align: left; }
.svc-num { font: 500 16px/1 var(--sans); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.svc-name { font: 500 clamp(26px, 2.4vw, 34px)/1.15 var(--sans); letter-spacing: -0.025em; } /* two lines each, set in the markup */
.svc-desc { grid-area: desc; max-width: 36ch; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
/* "View service" (30 Oct) shows only in the open row, before Contact; it and the mockup open the service's page. */
.svc-ctas { grid-area: contact; justify-self: end; display: flex; flex-wrap: wrap; gap: 8px; }
.svc-list.armed .svc-row:not(.open) .svc-go { display: none; }
.svc-media, .svc-incl { display: none; }
/* Open (and, without JS, every row). Three rows, so the line sits right under the name and Contact right under the
   tags, whatever their heights. */
.svc-row.open, .svc-list:not(.armed) .svc-row {
  grid-template-areas: "head media incl" "desc media incl" "desc media contact"; grid-template-rows: auto auto 1fr; align-items: start;
  padding: 32px; background: var(--mist); cursor: default;
}
.svc-row.open .svc-toggle { cursor: pointer; }
.svc-row.open .svc-desc, .svc-list:not(.armed) .svc-desc { max-width: 30ch; margin: 20px 0 0 var(--indent); }
.svc-row.open .svc-ctas, .svc-list:not(.armed) .svc-ctas { justify-self: start; margin-top: 24px; }
.svc-row.open :is(.svc-media, .svc-incl), .svc-list:not(.armed) :is(.svc-media, .svc-incl) { display: block; }
/* The open row's media (23 Nov, in place of the drawn mockups): real screens from our case studies in Apple's devices,
   on a white 4:3 plate, placed in % by _tools/home-services.py, with the product's name in its corner. */
.svc-media { grid-area: media; position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 16px; background: #fff; }
.svc-media img { position: absolute; display: block; height: auto; }
.svc-media-name { position: absolute; left: 16px; top: 14px; font: 500 13px/1.3 var(--sans); color: var(--ink-2); }
.svc-incl { grid-area: incl; }
.svc-label { font-size: 16px; line-height: 1.4; color: var(--ink-2); }
.svc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.svc-tags li { padding: 9px 14px; border-radius: 8px; background: #fff; font: 500 15px/1.2 var(--sans); color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .svc-list.armed .svc-row.open :is(.svc-desc, .svc-media, .svc-incl) { animation: fade .45s var(--ease-out) both; }
  .svc-list.armed .svc-row.open .svc-media { animation-delay: .03s; }
  .svc-list.armed .svc-row.open .svc-incl { animation-delay: .06s; }
}
/* Closing row: for anyone who doesn't see their project above. */
.svc-ask {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); column-gap: 32px; align-items: center;
  margin-top: 32px; padding: 32px; border-radius: var(--radius); background: var(--ink); color: #fff;
}
.svc-ask h3 { padding-left: var(--indent); font: 500 clamp(22px, 2vw, 28px)/1.2 var(--sans); letter-spacing: -0.02em; }
.svc-ask p { max-width: 36ch; font-size: 16px; line-height: 1.55; color: var(--grey-on-dark); }
.svc-ask .btn { justify-self: end; }

/* ---------- Process: one winding road from first call to handover ---------- */
/* One smooth wave through evenly spaced stops (paths from _tools/road_paths.py). */
.process { padding-block: var(--section-y); overflow: hidden; background: var(--mist); }
.process-head { max-width: 760px; margin: 0 auto; text-align: center; }
.process-head .lead { margin: 18px auto 0; }
.road { position: relative; margin-top: 72px; aspect-ratio: 1240 / 276; }
.road-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.road-v { display: none; }
.road-line { fill: none; stroke: #8a8d94; stroke-width: 1.6; stroke-dasharray: 5 7; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.road-reveal { fill: none; stroke: #fff; stroke-width: 10; stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.road-node { fill: var(--red); transform-box: fill-box; transform-origin: center; }
.road-start { fill: var(--mist); stroke: var(--red); stroke-width: 2.5; }
.road-halo { fill: none; stroke: var(--red); stroke-width: 1.5; opacity: .3; }
.road-end path { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.road-steps { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.road-steps li { --t: var(--d); position: absolute; left: var(--x); top: var(--y); display: grid; gap: 4px; width: max-content; max-width: 230px; text-align: center; transform: translate(-50%, calc(-100% - 22px)); }
.road-steps li.below { transform: translate(-50%, 22px); }
.road-steps li.at-start { text-align: left; transform: translate(-14px, calc(-100% - 22px)); }
.road-steps li.at-end { text-align: right; transform: translate(calc(-100% + 18px), 32px); }
.road-steps b { font: 600 12.5px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.road-steps span { font-size: 14px; line-height: 1.35; color: var(--ink-2); }
/* Drawn in once, as the road scrolls into view: the line runs from start to end and each stop appears as it is reached. */
.road.armed .road-reveal { stroke-dashoffset: 1; }
.road.armed .road-node { opacity: 0; transform: scale(.3); }
.road.armed .road-steps li { opacity: 0; translate: 0 8px; }
.road.drawn .road-reveal { stroke-dashoffset: 0; transition: stroke-dashoffset 3s linear; }
.road.drawn .road-node { opacity: 1; transform: none; transition: opacity .3s calc(var(--d) * 3s), transform .6s calc(var(--d) * 3s) var(--ease-out); }
.road.drawn .road-steps li { opacity: 1; translate: 0 0; transition: opacity .4s calc(var(--t) * 3s + .1s), translate .6s calc(var(--t) * 3s + .1s) var(--ease-out); }

/* Below 1180px the road turns and runs down the page, one 96px row per stop. */
@media (max-width: 1180px) {
  .road { width: min(100%, 520px); margin: 48px auto 0; aspect-ratio: auto; }
  .road-h { display: none; }
  .road-v { display: block; inset: 0 auto auto 0; width: 96px; height: 768px; }
  .road-steps { position: relative; }
  .road-steps li,
  .road-steps li.below,
  .road-steps li.at-start,
  .road-steps li.at-end { --t: var(--vd); position: relative; left: auto; top: auto; align-content: start; width: auto; max-width: none; height: 96px; padding: 20px 0 0 104px; text-align: left; transform: none; }
}

/* ---------- About (team) ---------- */
.about { padding-top: var(--section-y); overflow: hidden; background: var(--ink); color: #fff; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.nw { white-space: nowrap; }
.about-copy { display: grid; gap: 20px; justify-items: start; }
.about-copy > p { max-width: 52ch; font-size: 18px; line-height: 1.6; color: var(--grey-on-dark); }
.about-copy .btn { margin-top: 12px; }
/* Office photos drift sideways in a slow loop; every second one sits lower. The track holds two copies, so -50% loops cleanly. */
.strip { margin-top: calc(var(--section-y) * .8); padding-bottom: var(--section-y); }
.strip-track { display: flex; align-items: flex-start; width: max-content; animation: drift 70s linear infinite; }
.strip-track img { width: clamp(220px, 25vw, 360px); height: auto; aspect-ratio: 4 / 5; margin-right: 32px; object-fit: cover; border-radius: var(--radius); }
.strip-track img:nth-child(even) { margin-top: 112px; }
.strip:hover .strip-track { animation-play-state: paused; }
@keyframes drift { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .strip { overflow-x: auto; }
  .strip-track { animation: none; }
  .strip-track img[aria-hidden] { display: none; }
}

/* ---------- Testimonials ---------- */
.voices { padding-block: var(--section-y); background: var(--mist-2); }
.voices-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; }
.voices-head .h2 { max-width: 16ch; }
.voices-nav { display: flex; flex: none; gap: 10px; }
.arrow-btn { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--ink); transition: background-color .2s, color .2s, opacity .2s; }
.arrow-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.arrow-btn:hover:not(:disabled) { background: var(--ink); color: #fff; }
.arrow-btn:disabled { opacity: .4; cursor: default; }
/* Cards start on the content edge and run off the right side of the screen. */
.track {
  --edge: max(var(--gutter), calc((100% - 1312px) / 2));
  display: grid; grid-auto-flow: column; grid-auto-columns: auto; gap: 20px;
  padding: 0 var(--edge); scroll-padding-inline: var(--edge);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
  cursor: grab;
}
.track::-webkit-scrollbar { display: none; }
.track:focus-visible { outline-offset: -3px; }
.track.dragging { cursor: grabbing; scroll-snap-type: none; -webkit-user-select: none; user-select: none; }
.tcard { width: min(620px, 86vw); scroll-snap-align: start; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .82fr); gap: 24px; min-height: 380px; padding: 16px 16px 16px 30px; border-radius: var(--radius); background: #fff; }
.tcard-copy { display: flex; flex-direction: column; gap: 18px; padding-block: 14px; }
.tcard-logo { font: 700 22px/1 var(--sans); letter-spacing: -0.03em; }
.tcard-logo.serif { font: 600 26px/1 var(--sans); letter-spacing: -0.02em; }
.tcard-logo-semi { font-weight: 600; letter-spacing: -0.01em; }
.tcard blockquote { font: 500 17px/1.55 var(--sans); }
.tcard figcaption { display: grid; gap: 2px; margin-top: auto; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.tcard figcaption strong { font-size: 16px; font-weight: 600; color: var(--ink); }
.tcard-video { position: relative; overflow: hidden; border-radius: 16px; background: var(--ink); color: #fff; }
.tcard-mono { position: absolute; left: 18px; top: 12px; font: 600 56px/1 var(--sans); color: #6b6e76; }
.play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--red); transform: translate(-50%, -50%); transition: transform .3s var(--ease-out), background-color .2s; }
.play svg { width: 26px; height: 26px; margin-left: 3px; fill: #fff; }
.tcard-video:hover .play { background: var(--red-deep); transform: translate(-50%, -50%) scale(1.06); }
.tcard-chip { position: absolute; left: 14px; bottom: 14px; padding: 6px 10px; border-radius: 999px; background: #24262b; font-size: 12px; font-weight: 500; line-height: 1.2; color: #e3e4e7; }
/* Text-only reviews sit between the video ones: narrower, the client's logo on top, the person below. The 30px padding
   and 18px gap match the video cards' copy, so logos, quotes and names line up across the track. */
.tcard-text { display: flex; flex-direction: column; gap: 18px; width: min(440px, 80vw); padding: 30px; }
.tcard-text blockquote { font: 500 20px/1.5 var(--sans); letter-spacing: -0.01em; }

/* ---------- CTA ---------- */
.cta { padding-block: var(--section-y); }
/* Headline on the left, top, with the sub at the bottom, level with the end of the booking flow on the right. The
   contact person card that sat under the sub was removed on 29 Oct (it is in _archive/contact-person). */
.cta-card {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "copy form";
  gap: 48px clamp(48px, 6vw, 96px); align-items: start;
  padding: clamp(32px, 5vw, 72px); border-radius: var(--radius-lg); color: #fff;
  background: radial-gradient(60% 90% at 100% 0%, #7a0a1c 0%, #2a0207 45%, #0b0c0e 80%);
}
.cta-copy { grid-area: copy; align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; }
.cta-title { font: 600 clamp(36px, 5vw, 76px)/1.0 var(--sans); letter-spacing: -0.035em; max-width: 14ch; }
/* its second phrase on a line of its own (23 Nov: in the upright sans, "real." was left alone on a third line) */
.cta-title .em-light { display: block; }
.cta-copy > p { margin-top: 20px; font-size: 19px; color: var(--grey-on-dark); max-width: 44ch; }

/* Booking (29 Oct; it replaced the query form, now in _archive/query-form). Two numbered steps on the card's right,
   then the booked state. Step 1 keeps the form's underlined fields: lines and placeholders stay at 3:1 and 4.5:1 or
   better over the red glow too, and errors use a light red, since the brand red is too dark for text here. Step 2 is
   Calendly's scheduler on a white sheet; until the link is set, the demo calendar below copies its month view. */
.book { grid-area: form; display: grid; gap: 32px; align-content: start; min-width: 0; }
.book > [hidden] { display: none; }
.book-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0; padding: 0; list-style: none; font: 500 14px/1.4 var(--sans); color: var(--grey-on-dark); }
.book-steps li { display: flex; align-items: center; gap: 10px; }
.book-steps li + li::before { content: ""; width: 32px; height: 1px; margin-right: 2px; background: #6b6e76; }
.book-num { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #8e9199; border-radius: 50%; font: 600 13px/1 var(--sans); font-variant-numeric: tabular-nums; }
.book-num b { font-weight: inherit; }
.book-num svg { display: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.book-steps [aria-current] { color: #fff; }
.book-steps [aria-current] .book-num { border-color: #fff; background: #fff; color: var(--ink); }
.book-steps .done { color: #fff; }
.book-steps .done .book-num { border-color: #fff; }
.book-steps .done b { display: none; }
.book-steps .done svg { display: block; }
.book-details { display: grid; gap: 28px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
.field { display: grid; gap: 4px; }
.field label, .chips legend { font: 500 14px/1.4 var(--sans); color: var(--grey-on-dark); transition: color .2s; }
.field label span, .chips legend span { font-weight: 400; }
.field:focus-within label { color: #fff; }
.field input, .field textarea {
  width: 100%; padding: 8px 0 12px; border: 0; border-bottom: 1px solid #8e9199; border-radius: 0; background: none;
  color: #fff; font: 400 18px/1.45 var(--sans); caret-color: #fff; transition: border-color .2s, box-shadow .2s;
}
.field textarea { display: block; min-height: 118px; max-height: 320px; resize: none; field-sizing: content; } /* grows with the message where supported */
.field input::placeholder, .field textarea::placeholder { color: #9a9da5; opacity: 1; }
.field input:hover, .field textarea:hover { border-bottom-color: #c9cbd0; }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-radius: 0; border-bottom-color: #fff; box-shadow: 0 1px 0 #fff; }
.field input:-webkit-autofill { -webkit-text-fill-color: #fff; caret-color: #fff; transition: background-color 100000s; }
.field [aria-invalid="true"], .field [aria-invalid="true"]:hover, .field [aria-invalid="true"]:focus-visible { border-bottom-color: #ff6b81; box-shadow: 0 1px 0 #ff6b81; }
.field-error { margin-top: 6px; font: 500 14px/1.4 var(--sans); color: #ff8a9b; }
.chips { min-width: 0; margin: 0; padding: 0; border: 0; }
.chips legend { margin-bottom: 12px; padding: 0; }
.chip-list { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border: 1px solid #8e9199; border-radius: 999px; font: 500 15px/1 var(--sans); color: #fff; transition: background-color .2s, border-color .2s, color .2s; }
.chip:hover span { border-color: #fff; }
.chip input:checked + span { background: #fff; border-color: #fff; color: var(--ink); }
.chip input:focus-visible + span { outline: 3px solid #fff; outline-offset: 3px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 4px; }
.book-facts { font-size: 15px; color: var(--grey-on-dark); }
.book-time { display: grid; gap: 20px; }
.book-who { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; font-size: 15px; color: var(--grey-on-dark); }
.book-who p { min-width: 0; overflow-wrap: anywhere; }
.book-who strong { font-weight: 500; color: #fff; }
.btn .arrow-back { margin-right: -2px; }
.btn:hover .arrow-back { transform: translateX(-3px); }
.book-sheet { position: relative; overflow: hidden; border-radius: var(--radius); background: #fff; color: var(--ink); }
.book-sheet iframe { display: block; width: 100%; height: 100%; border: 0; }
.book-sheet :focus-visible { outline-color: var(--ink); }
.book-note { font-size: 14px; line-height: 1.5; color: var(--grey-on-dark); }

/* Demo calendar, after Calendly's month view: open days tinted grey, the picked day filled ink, then that day's times
   in the visitor's time zone. Ink, not red: red stays on the main action (Confirm booking), and Calendly gets ink as
   its primary colour too. Closed days stay --muted (5.1:1), so the dates still read. */
.cal { display: grid; gap: 20px; padding: 28px; }
.cal-title { font: 600 18px/1.3 var(--sans); letter-spacing: -0.01em; }
.cal-nav { display: flex; align-items: center; justify-content: center; gap: 12px; }
.cal-month { min-width: 8.5em; text-align: center; font: 500 15px/1 var(--sans); }
.cal-arrow { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); transition: border-color .2s; }
.cal-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cal-arrow:hover:not(:disabled) { border-color: var(--ink); }
.cal-arrow:disabled { opacity: .35; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-dow { padding-bottom: 8px; text-align: center; font: 600 12px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cal-day { position: relative; justify-self: center; width: min(44px, 100%); aspect-ratio: 1; border-radius: 50%; font: 500 15px/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--muted); }
.cal-day:disabled { cursor: default; }
.cal-day.open { background: var(--mist-2); color: var(--ink); font-weight: 600; transition: box-shadow .2s; }
.cal-day.open:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.cal-day.open[aria-pressed="true"] { background: var(--ink); color: #fff; }
.cal-day.today::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.cal-times { display: grid; gap: 4px; }
.cal-day-name { font: 600 16px/1.3 var(--sans); }
.cal-tz, .cal-hint { font-size: 14px; color: var(--ink-2); }
.cal-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.cal-slot { height: 44px; border: 1px solid #8e9199; border-radius: 999px; color: var(--ink); font: 600 15px/1 var(--sans); font-variant-numeric: tabular-nums; transition: border-color .2s, background-color .2s, color .2s; }
.cal-slot:hover { border-color: var(--ink); }
.cal-slot[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.cal-confirm { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding-top: 20px; border-top: 1px solid var(--line); }
.cal-confirm p { font: 500 16px/1.4 var(--sans); }
.cal-fallback { display: grid; justify-items: start; gap: 16px; padding: 28px; font-size: 16px; color: var(--ink-2); }
.cal-fallback a:not(.btn) { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

.book-done { display: grid; justify-items: start; gap: 16px; }
.book-done:focus-visible { outline: none; }
.done-icon { width: 48px; height: 48px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.done-title { max-width: 18ch; font: 600 clamp(26px, 2.6vw, 36px)/1.15 var(--sans); letter-spacing: -0.02em; text-wrap: balance; }
.book-done p { max-width: 40ch; font-size: 17px; color: var(--grey-on-dark); }
.book-done .done-when { font-weight: 500; color: #fff; }
.book-done strong { font-weight: 500; color: #fff; overflow-wrap: anywhere; }
.book-done .book-note { font-size: 14px; }
.book-done .btn { margin-top: 8px; }
@media (prefers-reduced-motion: no-preference) { .book > :is(.book-details, .book-time, .book-done):not([hidden]) { animation: fade .5s var(--ease-out) both; } }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Footer ---------- */
/* The footer sits on the ElkTech logo: the full lockup, as wide as the content and softly blurred, toned down (a deep
   red elk, a dark grey wordmark) so every text on top keeps 4.5:1 or better. The footer is at least as tall as the
   logo needs; the legal line sits at the bottom, over the wordmark. */
.footer { --fl-w: min(100vw - 2 * var(--gutter), 1312px); position: relative; isolation: isolate; display: flex; flex-direction: column; min-height: calc(var(--fl-w) * 685 / 1434 + 120px); padding: var(--section-y) 0 32px; overflow: hidden; color: #fff; background: radial-gradient(70% 60% at 50% 100%, #5c0715 0%, #2a0207 40%, #0b0c0e 72%); }
.footer-bg { --logo-mark: #7a0a1c; position: absolute; z-index: -1; left: 50%; bottom: 40px; width: var(--fl-w); color: #34363c; opacity: .5; transform: translateX(-50%); filter: blur(calc(var(--fl-w) * 0.008)); pointer-events: none; } /* 50% at the user's request (28 Oct) */
.footer-bg-art { display: block; width: 100%; height: auto; aspect-ratio: 1434 / 685; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 32px; padding-bottom: 56px; }
.footer-brand { display: grid; gap: 18px; justify-items: start; align-content: start; }
.footer-brand p { color: var(--grey-on-dark); max-width: 32ch; }
.footer h3 { font: 600 15px/1 var(--sans); margin-bottom: 18px; color: #fff; }
.footer-grid > div:not(.footer-brand) { display: grid; gap: 12px; align-content: start; font-size: 15px; color: var(--grey-on-dark); }
.footer-grid a:hover { color: #fff; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line-dark); font-size: 14px; color: var(--grey-on-dark); } /* the hairline travels with the legal line to the bottom */
.legal a:hover { color: #fff; }
/* ---------- Case studies page (case-studies.html, 29 Oct) ---------- */
/* Direction A of research/case-studies-page: a title, one line and the number of cases, then two across, the home
   page's mockup tiles (the .cases grid and .cs cards keep their arrival motion and "View case" bubble). Under each go
   client, industry and year, the result, one figure, and the services. The offer tile fills the fourth slot and a
   closing card repeats the free call. Service chips with counts appear from data-filter-from cases (main.js). */
.cs-page { padding-block: 176px var(--section-y); }
.cs-intro { display: grid; gap: 16px; justify-items: start; margin-bottom: 72px; }
.cs-h1 { font: 600 clamp(44px, 6vw, 88px)/1 var(--sans); letter-spacing: -0.035em; }
.cs-count { font-size: 15px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cs-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -32px 0 48px; }
.cs-chip { height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; font: 500 15px/1 var(--sans); color: var(--ink); transition: border-color .2s, background-color .2s, color .2s; }
.cs-chip span { margin-left: 4px; color: var(--ink-2); font-variant-numeric: tabular-nums; transition: color .2s; }
.cs-chip:hover { border-color: var(--ink); }
.cs-chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.cs-chip[aria-pressed="true"] span { color: #c9cbd0; }
.cs-grid { row-gap: 96px; }
.cs-grid > [hidden] { display: none; }
.cs-grid .cs { gap: 24px; }
/* The Work page (23 Nov) lays its cases out as the home page's Work section, in two staggered columns (.cases-col); a
   filtered-out card hides, and on phones the columns open up so the cards keep their reading order (--i). */
.cases .cs[hidden] { display: none; }
.cs-info { display: grid; justify-items: start; }
.cs-meta { display: flex; flex-wrap: wrap; align-items: baseline; row-gap: 4px; font-size: 15px; color: var(--ink-2); }
.cs-meta b { font-weight: 600; color: var(--ink); }
.cs-meta span::before { content: "\00b7"; margin: 0 10px; color: var(--muted); }
.cs-result { margin-top: 8px; max-width: 30ch; font: 500 clamp(22px, 1.9vw, 26px)/1.3 var(--sans); letter-spacing: -0.015em; text-wrap: balance; }
.cs-figure { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 16px; }
.cs-figure b { font: 600 clamp(32px, 3vw, 44px)/1 var(--sans); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cs-figure span { font-size: 15px; color: var(--ink-2); }
.cs-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.cs-tags li { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font: 500 14px/1.2 var(--sans); }
.cs-close {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px var(--gutter);
  margin-top: 120px; padding: clamp(32px, 5vw, 72px); border-radius: var(--radius-lg); color: #fff;
  background: radial-gradient(60% 90% at 100% 0%, #7a0a1c 0%, #2a0207 45%, #0b0c0e 80%);
}
.cs-close p { margin-top: 20px; max-width: 44ch; font-size: 19px; color: var(--grey-on-dark); }
.cs-close :focus-visible { outline-color: #fff; }
@media (max-width: 900px) {
  .cs-page { padding-top: 144px; }
  .cs-intro { margin-bottom: 48px; }
  .cs-grid { row-gap: 72px; }
  .cs-page .cases-col { display: contents; }
  .cs-page .cs { order: var(--i); }
  .cs-close { grid-template-columns: minmax(0, 1fr); align-items: start; margin-top: 88px; }
}
@media (max-width: 640px) {
  .cs-page { padding-top: 128px; }
  .cs-result { font-size: 21px; }
}

/* ---------- Case study pages (case-<id>.html, 29 Oct) ---------- */
/* From research/case-study-page: the software-house pattern, in ElkTech's black and white. A breadcrumb; the result as
   the headline beside the product mockup (client, industry and year above it, the facts below); three large figures over
   a black rule; the challenge, what we built and the result as label-and-text rows; two close-ups of the same mockup
   (the scene scaled up around --focus); the client's words; the next case as one large link; the free-call card. */
.case-page { padding-block: 152px var(--section-y); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-2); }
.crumbs a { padding-block: 4px; margin-block: -4px; color: var(--ink); text-decoration: underline 1px; text-decoration-color: var(--line); text-underline-offset: 4px; transition: text-decoration-color .2s; }
.crumbs a:hover { text-decoration-color: currentColor; }
.crumbs svg { width: 14px; height: 14px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.case-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px var(--gutter); align-items: center; margin-top: 40px; }
.case-hero-copy { display: grid; justify-items: start; min-width: 0; }
.case-h1 { margin-top: 16px; max-width: 20ch; font: 600 clamp(36px, 4.2vw, 60px)/1.06 var(--sans); letter-spacing: -0.035em; text-wrap: balance; }
.case-summary { margin-top: 24px; max-width: 46ch; font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.case-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 32px; width: 100%; margin: 40px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.case-facts dt { font-size: 14px; color: var(--ink-2); }
.case-facts dd { margin: 4px 0 0; font: 500 16px/1.4 var(--sans); }
.case-results { margin-top: 120px; }
.case-results ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px var(--gutter); margin: 0; padding: 32px 0 0; border-top: 1px solid var(--ink); list-style: none; }
.case-results b { display: block; font: 600 clamp(48px, 5.6vw, 88px)/1 var(--sans); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.case-results span { display: block; max-width: 22ch; margin-top: 14px; font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.case-story { display: grid; gap: 56px; margin-top: 120px; }
.case-block { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 16px var(--gutter); padding-top: 24px; border-top: 1px solid var(--line); }
.case-block h2 { font: 600 clamp(24px, 2.2vw, 30px)/1.2 var(--sans); letter-spacing: -0.02em; }
.case-block p { max-width: 60ch; font-size: 19px; line-height: 1.6; color: var(--ink-2); }
.case-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px var(--gutter); margin-top: 120px; }
.case-shot { display: grid; gap: 16px; margin: 0; }
.case-shot .cs-media { aspect-ratio: 4 / 3; }
.case-shot .cs-scene { transform: scale(1.9); transform-origin: var(--focus, 50% 50%); }
.case-shot figcaption { font-size: 15px; color: var(--ink-2); }
.case-quote { display: grid; gap: 24px; margin: 120px 0 0; padding-top: 40px; border-top: 1px solid var(--ink); }
.case-quote blockquote { max-width: 34ch; margin: 0; font: 500 clamp(26px, 2.8vw, 40px)/1.3 var(--sans); letter-spacing: -0.02em; text-wrap: balance; }
.case-quote figcaption { display: grid; gap: 2px; font-size: 15px; color: var(--ink-2); }
.case-quote strong { font-size: 16px; font-weight: 600; color: var(--ink); }
.case-next { margin-top: 120px; }
.case-next-link { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 32px var(--gutter); align-items: center; padding: clamp(28px, 3.4vw, 48px); border-radius: var(--radius-lg); background: var(--mist); transition: background-color .3s; }
.case-next-link:hover { background: var(--mist-2); }
.case-next-copy { display: grid; justify-items: start; gap: 12px; min-width: 0; }
.case-next-label { font-size: 15px; color: var(--ink-2); }
.case-next-name { font: 600 clamp(40px, 5vw, 72px)/1 var(--sans); letter-spacing: -0.035em; }
.case-next-result { max-width: 32ch; font-size: 19px; line-height: 1.45; color: var(--ink-2); }
.case-next-link .btn { margin-top: 12px; }
.case-next-link:hover .btn-outline { background: var(--ink); color: #fff; }
.case-next-media { justify-self: end; width: 100%; max-width: 440px; }

/* The screens (19 Nov): the cases from the user's Figma files show their real screens in their own colours, in Apple's
   own devices (_tools/device-shots.py): web screens in a MacBook Pro on a mist plate, two across (a wide one spans
   both); phone screens in iPhones on one mist panel. */
.case-gallery { display: grid; gap: 40px; margin-top: 120px; }
.case-gallery-title { padding-top: 24px; border-top: 1px solid var(--line); font: 600 clamp(24px, 2.2vw, 30px)/1.2 var(--sans); letter-spacing: -0.02em; }
.case-webs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px var(--gutter); }
.case-web { display: grid; gap: 14px; min-width: 0; margin: 0; }
.case-web.is-wide { grid-column: 1 / -1; }
.case-dev { display: grid; place-items: center; padding: clamp(28px, 4vw, 64px) clamp(20px, 3vw, 48px); border-radius: var(--radius-lg); background: var(--mist); }
.case-dev img { display: block; width: 100%; height: auto; }
.case-web.is-wide .case-dev img { width: min(100%, 980px); }
.case-gallery figcaption { font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.case-phones { display: flex; flex-wrap: wrap; justify-content: center; gap: 48px clamp(16px, 2.6vw, 40px); padding: clamp(32px, 4.4vw, 64px) clamp(20px, 3vw, 48px); border-radius: var(--radius-lg); background: var(--mist); }
.case-phone { display: grid; align-content: start; gap: 14px; width: clamp(132px, 16.5vw, 240px); margin: 0; }
.case-phone img { display: block; width: 100%; height: auto; }

/* The components (19 Nov; the user: "add the animated components in every project"): each case's own Figma components,
   on plates in the colour of the backdrop they sit on in the file, stepping through their real states
   (_tools/case_components.py and component-shots.py; main.js runs them only while they are on screen). Three across,
   rows of one height: wide pieces span two columns, tall ones two rows, the widest the full row. */
.case-comps { display: grid; gap: 24px; margin-top: 120px; container-type: inline-size; }
.case-comps-lead { max-width: 62ch; margin-top: -12px; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.case-comps-grid { --cols: 3; --gap: 20px; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-auto-rows: calc((100cqw - (var(--cols) - 1) * var(--gap)) / var(--cols) * 0.8); grid-auto-flow: dense; gap: var(--gap); }
.case-comp { --cap: var(--ink); --cap-2: var(--ink-2); position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; min-width: 0; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--plate); }
.case-comp:not(.is-dark) { box-shadow: inset 0 0 0 1px var(--line); }
.case-comp.is-dark { --cap: #fff; --cap-2: #b8bbc2; }
.case-comp.is-w { grid-column: span 2; }
.case-comp.is-f { grid-column: 1 / -1; }
.case-comp.is-t { grid-row: span 2; }
.case-comp.is-W { grid-column: span 2; grid-row: span 2; }
.comp-stage { container-type: size; display: grid; place-items: center; min-height: 0; padding: 28px 28px 6px; }
.comp-states { position: relative; width: min(calc(var(--w) * var(--k) * 1px), 100cqw, calc(100cqh * var(--w) / var(--h))); aspect-ratio: var(--w) / var(--h); }
.comp-states img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; opacity: 0; transition: opacity .3s var(--ease-out); }
.comp-states img.is-on { opacity: 1; }
.case-comp[data-comp="steps"] .comp-states img { transition-duration: .12s; }
.case-comp figcaption { padding: 0 20px 18px; font-size: 14px; line-height: 1.4; color: var(--cap-2); }
.case-comp figcaption b { display: block; margin-bottom: 2px; font-size: 15px; font-weight: 600; color: var(--cap); }
/* one component arrives, holds and leaves; a group's pieces arrive one after another */
.case-comp[data-comp="enter"] .comp-states img, .case-comp[data-comp="group"] .comp-states img { opacity: 1; }
.case-comp[data-comp="group"] .comp-states img { inset: auto; }
.case-comp[data-comp="enter"].is-live .comp-states img { animation: comp-enter 4.2s var(--ease-out) infinite; }
.case-comp[data-comp="group"].is-live .comp-states img { animation: comp-rise 4.8s var(--ease-out) infinite; animation-delay: calc(var(--i) * 130ms); }
@keyframes comp-enter { 0% { opacity: 0; translate: 0 14px; } 12%, 80% { opacity: 1; translate: 0 0; } 92%, 100% { opacity: 0; translate: 0 -6px; } }
@keyframes comp-rise { 0% { opacity: 0; translate: 0 16px; } 14%, 82% { opacity: 1; translate: 0 0; } 94%, 100% { opacity: 0; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) { .case-comp .comp-states img { animation: none !important; transition: none !important; } }
@media (max-width: 1000px) { .case-comps-grid { --cols: 2; } }
@media (max-width: 640px) {
  .case-comps { margin-top: 88px; }
  .case-comps-grid { --cols: 1; --gap: 16px; }
  .case-comp.is-w, .case-comp.is-W { grid-column: auto; }
  .case-comp.is-W { grid-row: auto; }
}
@media (max-width: 900px) {
  .case-page { padding-top: 128px; }
  .case-gallery { margin-top: 88px; gap: 32px; }
  .case-webs { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  /* one column: meta, headline and summary, then the mockup, then the facts */
  .case-hero { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 28px; }
  .case-hero-copy { display: contents; }
  .case-hero .cs-meta { order: 1; }
  .case-h1 { order: 2; }
  .case-summary { order: 3; }
  .case-hero-media { order: 4; margin-top: 32px; }
  .case-facts { order: 5; }
  .case-results, .case-story, .case-shots, .case-quote, .case-next { margin-top: 88px; }
  .case-results ul { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .case-block { grid-template-columns: minmax(0, 1fr); }
  .case-shots { grid-template-columns: minmax(0, 1fr); }
  .case-next-link { grid-template-columns: minmax(0, 1fr); }
  .case-next-media { justify-self: start; max-width: 100%; }
}
@media (max-width: 640px) {
  .case-facts { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .case-results li { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 16px; }
  .case-results b { font-size: 44px; }
  .case-results span { margin-top: 8px; }
  .case-block p { font-size: 17px; }
  .case-next-name { font-size: 40px; }
}

/* ---------- Service pages (service-<id>.html, 30 Oct) ---------- */
/* From research/service-page: a breadcrumb; the service named in the headline with one promise phrase, beside the
   service's mockup from the home Services list; what's included as label-and-text rows; four steps on a mist panel,
   joined by the home road's dashed line; the cases that used the service, each with one figure, and the client's
   words; the other services as rows; then the home booking card with this service already ticked. Pages without
   cases skip the work and the quote. */
.svc-page { padding-top: 152px; }
.svc-hero { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px var(--gutter); align-items: center; margin-top: 40px; }
.svc-hero-copy { display: grid; justify-items: start; min-width: 0; }
.svc-h1 { max-width: 14ch; font: 600 clamp(40px, 5vw, 72px)/1.02 var(--sans); letter-spacing: -0.035em; text-wrap: balance; }
.svc-lead { margin-top: 24px; max-width: 42ch; font-size: 19px; line-height: 1.55; color: var(--ink-2); }
.svc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
/* The hero's product shot (23 Nov, replacing the drawn mockup): real screens from the case studies in Apple's devices,
   standing on one floor line on a mist plate, placed in % by build-pages.py; a caption names the product. */
.svc-shot { display: grid; gap: 16px; min-width: 0; margin: 0; }
.svc-shot-plate { position: relative; border-radius: var(--radius); background: var(--mist); }
.svc-shot-plate img { position: absolute; display: block; height: auto; }
.svc-shot figcaption { font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.svc-shot figcaption a { color: var(--ink); text-decoration: underline 1px; text-decoration-color: #b4b6bc; text-underline-offset: 4px; transition: text-decoration-color .2s; }
.svc-shot figcaption a:hover { text-decoration-color: currentColor; }
.svc-sec { margin-top: 144px; }
.svc-sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 40px; }
.svc-h2 { font: 600 clamp(32px, 3.6vw, 56px)/1.04 var(--sans); letter-spacing: -0.03em; }
.svc-rows { margin: 0; padding: 0; list-style: none; }
.svc-rows li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 8px var(--gutter); padding: 28px 0; border-top: 1px solid var(--line); }
.svc-rows h3 { font: 600 clamp(22px, 2vw, 28px)/1.2 var(--sans); letter-spacing: -0.02em; }
.svc-rows p { max-width: 54ch; font-size: 18px; line-height: 1.55; color: var(--ink-2); }
.svc-steps { --step-gap: clamp(24px, 3vw, 48px); padding: clamp(32px, 4.4vw, 64px); border-radius: var(--radius-lg); background: var(--mist); }
.svc-steps ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px var(--step-gap); margin: 40px 0 0; padding: 0; list-style: none; }
.svc-steps li { position: relative; display: grid; gap: 8px; align-content: start; }
.svc-steps li:not(:last-child)::after { content: ""; position: absolute; top: 22px; left: 60px; right: calc(12px - var(--step-gap)); border-top: 1.5px dashed #a3a6ad; }
.svc-step-num { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 50%; background: #fff; font: 600 16px/1 var(--sans); font-variant-numeric: tabular-nums; }
.svc-steps h3 { font: 600 21px/1.25 var(--sans); letter-spacing: -0.01em; }
.svc-steps p { max-width: 30ch; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.svc-page .case-quote { margin-top: 144px; }
.svc-more-list { margin: 0; padding: 0; list-style: none; }
.svc-more-list li { position: relative; }
.svc-more-list li + li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); transition: opacity .3s; }
.svc-more-list a { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) 56px; align-items: center; gap: 12px var(--gutter); margin-inline: -24px; padding: 28px 24px; border-radius: var(--radius); transition: background-color .3s; }
.svc-more-name { font: 500 clamp(24px, 2.2vw, 32px)/1.15 var(--sans); letter-spacing: -0.025em; }
.svc-more-desc { font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.svc-more-go { display: grid; place-items: center; width: 56px; height: 56px; border: 1px solid var(--ink); border-radius: 50%; transition: background-color .3s, color .3s; }
.svc-more-go .arrow { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease-out); }
@media (hover: hover) {
  .svc-more-list a:hover { background: var(--mist); }
  .svc-more-list li:hover::before, .svc-more-list li:hover + li::before { opacity: 0; }
  .svc-more-list a:hover .svc-more-go { background: var(--ink); color: #fff; }
  .svc-more-list a:hover .arrow { transform: translateX(2px); }
}
@media (max-width: 900px) {
  .svc-page { padding-top: 128px; }
  .svc-hero { grid-template-columns: minmax(0, 1fr); gap: 40px; margin-top: 28px; }
  .svc-shot { max-width: 640px; }
  .svc-sec, .svc-page .case-quote { margin-top: 96px; }
  .svc-rows li { grid-template-columns: minmax(0, 1fr); }
  .svc-steps ol { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .svc-steps li:nth-child(2)::after { display: none; }
  .svc-more-list a { grid-template-columns: minmax(0, 1fr) 48px; row-gap: 6px; }
  .svc-more-name { grid-column: 1; }
  .svc-more-desc { grid-column: 1; grid-row: 2; }
  .svc-more-go { grid-column: 2; grid-row: 1 / span 2; width: 48px; height: 48px; }
}
@media (max-width: 640px) {
  .svc-actions .btn { flex: 1 1 100%; }
  .svc-rows li { padding: 24px 0; }
  .svc-rows p { font-size: 17px; }
  .svc-steps ol { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .svc-steps li { grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; row-gap: 4px; }
  .svc-step-num { grid-row: 1 / span 2; margin-bottom: 0; }
  .svc-steps li:nth-child(2)::after { display: block; }
  .svc-steps li:not(:last-child)::after { top: 52px; bottom: -24px; left: 21px; right: auto; border-top: 0; border-left: 1.5px dashed #a3a6ad; }
  .svc-more-list a { margin-inline: -12px; padding: 22px 12px; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .hero-title .line { white-space: normal; }
  /* Services stack: name, line, then (open) mockup, what it includes and Contact. Closed rows drop their Contact. */
  .svc-list, .svc-ask { --indent: 72px; }
  .svc-row, .svc-row.open, .svc-list:not(.armed) .svc-row { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; padding: 28px 24px; }
  .svc-row { grid-template-areas: "head" "desc"; row-gap: 10px; }
  .svc-row.open, .svc-list:not(.armed) .svc-row { grid-template-areas: "head" "desc" "media" "incl" "contact"; row-gap: 0; }
  .svc-row:not(.open) .svc-ctas { display: none; }
  .svc-desc, .svc-row.open .svc-desc, .svc-list:not(.armed) .svc-desc { max-width: 46ch; margin: 0 0 0 var(--indent); }
  .svc-row.open .svc-desc { margin-top: 12px; }
  .svc-media { width: min(100% - var(--indent), 440px); margin: 24px 0 0 var(--indent); }
  .svc-incl { margin: 24px 0 0 var(--indent); }
  .svc-row.open .svc-ctas, .svc-list:not(.armed) .svc-ctas { margin: 24px 0 0 var(--indent); }
  .svc-ask { grid-template-columns: minmax(0, 1fr); row-gap: 12px; padding: 28px 24px; }
  .svc-ask p, .svc-ask .btn { margin-left: var(--indent); }
  .svc-ask .btn { justify-self: start; margin-top: 8px; }
  .about-grid { grid-template-columns: 1fr; }
  .cta-card { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "form"; }
  .book { max-width: 640px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Phone ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header.scrolled { padding-top: 12px; }
  .nav-pill { height: 72px; }
  .site-header.scrolled .nav-pill { height: 60px; padding: 0 10px; }
  .site-header.scrolled .nav-pill .logo { margin-left: 14px; }
  .mobile-menu-top { height: 60px; margin: 12px var(--gutter) 0; padding: 0 10px 0 24px; }
  .mobile-menu.is-bar .mobile-menu-top { height: 72px; margin-top: 0; }
  .nav-pill .logo-art, .mobile-menu-top .logo-art { height: 36px; }
  .header-actions .btn-sm { padding: 0 16px; font-size: 14px; height: 40px; }
  .hero { padding-block: 128px calc(var(--section-y) + 24px); }
  .hero-actions .btn { flex: 1 1 100%; }
  .trust { flex-direction: column; gap: 10px; }
  .hero-title { line-height: 1.35; letter-spacing: -0.02em; }
  /* the two desktop lines would leave one word alone on phones: let the sentence flow instead */
  .hero-title .line, .hero-title .line > span { display: inline; overflow: visible; animation: none; }
  .logo-wall { gap: 16px 32px; }
  .logo-wall li { font-size: 22px; }
  .reel { --tab-r: 16px; aspect-ratio: 5 / 8; } /* tall, as the reference's 358 × 585 */
  .reel img { object-position: 50% 50%; } /* the film still: its dark QntumAI tile stays under the play button */
  .reel-tab { gap: 8px; padding: 14px 18px 13px 16px; }
  .strip-track img { margin-right: 16px; }
  .strip-track img:nth-child(even) { margin-top: 64px; }
  .section-head { flex-direction: column; align-items: flex-start; margin-bottom: 36px; }
  .cs-title { font-size: 19px; }
  .svc-list, .svc-ask { --indent: 0px; }
  .svc-row, .svc-row.open, .svc-list:not(.armed) .svc-row { padding: 24px 16px; }
  .svc-toggle { grid-template-columns: minmax(0, 1fr); row-gap: 10px; }
  .svc-media { width: 100%; }
  .voices-head { margin-bottom: 32px; }
  .tcard { grid-template-columns: 1fr; gap: 0; min-height: 0; padding: 12px 12px 24px; }
  .tcard-video { order: -1; aspect-ratio: 16 / 10; }
  .tcard-copy { padding: 22px 12px 0; }
  .tcard-text { gap: 18px; padding: 24px; }
  .tcard-text blockquote { font-size: 18px; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .cal { gap: 16px; padding: 20px 16px; }
  .cal-title { font-size: 16px; }
  .cal-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-foot .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 16px; }
  .footer-brand, .footer-grid > div:last-child { grid-column: 1 / -1; }
  .legal { flex-direction: column; }
}

@media (max-width: 640px) and (prefers-reduced-motion: no-preference) {
  .hero-title { animation: fade .9s var(--ease-out) both; }
}

