/* startup ui 2.0: one stylesheet for the studio site and the case template.
   Built on the Memorisely systems with startup ui's own palette:
   tokens (primitives, then semantic roles) → base → components → navigation → home → case template → other pages.
   Breakpoints follow Tailwind: phone < 768 (md), tablet 768–1023, desktop ≥ 1024 (lg). */

/* ---------- fonts (self-hosted) ---------- */
@font-face { font-family: "Clash Grotesk"; src: url("/assets/fonts/clash-grotesk-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Clash Grotesk"; src: url("/assets/fonts/clash-grotesk-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Clash Grotesk"; src: url("/assets/fonts/clash-grotesk-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Clash Grotesk Medium"; src: url("/assets/fonts/clash-grotesk-medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Doto"; src: url("/assets/fonts/doto-600-latin.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Doto"; src: url("/assets/fonts/doto-600-latin-ext.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* japanese: the clash families borrow the device's japanese font for kana and kanji (declared last, so checked first for those ranges) */
@font-face { font-family: "Clash Grotesk"; src: local("Hiragino Sans W3"), local("HiraginoSans-W3"), local("Yu Gothic Medium"), local("YuGothic-Medium"), local("Noto Sans JP"), local("NotoSansJP-Regular"), local("Noto Sans CJK JP"), local("NotoSansCJKjp-Regular"); font-weight: 400; unicode-range: U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }
@font-face { font-family: "Clash Grotesk"; src: local("Hiragino Sans W5"), local("HiraginoSans-W5"), local("Hiragino Sans W6"), local("HiraginoSans-W6"), local("Yu Gothic Medium"), local("YuGothic-Medium"), local("Noto Sans JP Medium"), local("NotoSansJP-Medium"), local("Noto Sans CJK JP Medium"), local("NotoSansCJKjp-Medium"); font-weight: 500; unicode-range: U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }
@font-face { font-family: "Clash Grotesk"; src: local("Hiragino Sans W6"), local("HiraginoSans-W6"), local("Yu Gothic Bold"), local("YuGothic-Bold"), local("Noto Sans JP Bold"), local("NotoSansJP-Bold"), local("Noto Sans CJK JP Bold"), local("NotoSansCJKjp-Bold"); font-weight: 700; unicode-range: U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }
@font-face { font-family: "Clash Grotesk Medium"; src: local("Hiragino Sans W5"), local("HiraginoSans-W5"), local("Hiragino Sans W6"), local("HiraginoSans-W6"), local("Yu Gothic Medium"), local("YuGothic-Medium"), local("Noto Sans JP Medium"), local("NotoSansJP-Medium"), local("Noto Sans CJK JP Medium"), local("NotoSansCJKjp-Medium"); font-weight: 500; unicode-range: U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }

/* =====================================================================
   tokens
   ===================================================================== */
:root {
  /* primitives: warm sand and ink neutrals, and the startup ui orange */
  --sand-50: #fffcf8;
  --sand-100: #fff8f0;
  --sand-200: #f6efe6;
  --sand-300: #f0e1ce;
  --sand-400: #e6d5c0;
  --stone-200: #eae7e2;
  --stone-500: #8a847d;
  --stone-600: #6d6d6d;
  --ink-900: #161616;
  --ink-950: #0f0800;
  --orange-500: #ff4200;   /* the brand mark: dots, rings, large type (3.4:1 on sand) */
  --orange-600: #d93800;   /* filled buttons: white text at 4.7:1 */
  --orange-700: #c23200;   /* hover, and orange text at small sizes (5.5:1) */
  --orange-800: #a82b00;   /* pressed */
  --white: #ffffff;

  /* semantic roles: components use these, never the primitives */
  --background: var(--sand-50);
  --foreground: var(--ink-900);
  --card: var(--sand-100);
  --muted: var(--sand-200);
  --muted-foreground: var(--stone-600);
  --soft-foreground: var(--stone-500);     /* large display text only (3.6:1) */
  --border: rgba(240, 225, 206, .75);
  --border-strong: var(--sand-400);
  --primary: var(--orange-600);
  --primary-hover: var(--orange-700);
  --primary-active: var(--orange-800);
  --primary-foreground: var(--white);
  --accent: var(--orange-500);
  --accent-foreground: var(--orange-700);
  --ring: var(--orange-500);
  --glass: rgba(234, 231, 226, .4);
  --glass-strong: rgba(244, 241, 236, .94);
  --pill: rgba(255, 248, 240, .8);
  --pill-hover: rgba(255, 248, 240, .6);
  --on-pill: var(--ink-950);
  --tooltip: var(--ink-900);
  --tooltip-foreground: var(--sand-50);
  --scrim: rgba(22, 22, 22, .55);

  /* radius: startup ui's soft, pill-led geometry on one scale */
  --radius-sm: 8px;      /* inner media, small surfaces (8 + 8px gap = 16) */
  --radius-md: 12px;     /* tooltips, floating surfaces */
  --radius-lg: 16px;     /* cards, boards, large media */
  --radius-bar: 24px;    /* the nav pill and the phone menu card */
  --radius-full: 999px;

  /* cards */
  --card-gap: 16px;
  --card-pad: 24px;
  --card-inset: 8px;     /* media sits 8px inside its card */

  /* motion: quick state changes; the spring stays for the brand's bigger moments */
  --duration-fast: 100ms;
  --duration-default: 150ms;
  --duration-moderate: 200ms;
  --duration-slow: 300ms;
  --duration-loop: 900ms;  /* continuous loops (spinner), off the state-change scale */
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);  /* things that travel and settle (tab indicator) */
  --spring: linear(0, 0.0509, 0.1684, 0.3128, 0.4593, 0.5932, 0.7075, 0.8, 0.8714, 0.9241, 0.9613, 0.9861, 1.0015, 1.0102, 1.0142, 1.0152, 1.0143, 1.0125, 1.0103, 1.0081, 1.006, 1.0043, 1.003, 1.0019, 1);
  --spring-ms: 340ms;

  /* space */
  --gutter: 24px;
  --section-space: 120px;

  /* type */
  --clash: "Clash Grotesk", sans-serif;
  --doto: "Doto", sans-serif;
  --font-label: "Clash Grotesk", sans-serif;   /* small uppercase labels: Doto's dots blur at 12px */
  --tracking-label: .06em;

  /* lucide icons (2px stroke), drawn as masks so they take the text colour */
  --icon-arrow-up-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10'/%3E%3Cpath d='M7 17 17 7'/%3E%3C/svg%3E");
  --icon-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M12 5v14'/%3E%3C/svg%3E");
  --icon-arrow-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
  --icon-arrow-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14'/%3E%3Cpath d='m19 12-7 7-7-7'/%3E%3C/svg%3E");
  --icon-arrow-up: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 7-7 7 7'/%3E%3Cpath d='M12 19V5'/%3E%3C/svg%3E");
  --icon-chevron-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");

  /* case template palette (schedex); each case page swaps it, see "case themes" */
  --cs-bg: #fcfcfd;
  --cs-ink: #0c1c1c;
  --cs-label: rgb(84, 111, 110);
  --cs-accent: 0, 164, 164;
  --cs-line: rgba(209, 222, 222, .75);
  --cs-tint: rgb(245, 250, 250);

  interpolate-size: allow-keywords;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (max-width: 1023.98px) { :root { --section-space: 96px; } }
@media (max-width: 767.98px) { :root { --gutter: 16px; --section-space: 72px; --card-pad: 20px; } }

/* =====================================================================
   base
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-padding-top: 96px; }
body { background: var(--background); color: var(--foreground); font: 400 16px/1.5 var(--clash); }
h1, h2, h3, p { margin: 0; padding: 0; font-size: inherit; font-weight: inherit; }
a { color: inherit; text-decoration: none; }
img, video { display: block; }
::selection { background: rgba(255, 66, 0, .18); }

/* one visible focus ring everywhere, for keyboard users */
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }
[tabindex="-1"]:focus { outline: none; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link {
  position: fixed; left: 16px; top: 16px; z-index: 100; padding: 12px 18px; border-radius: var(--radius-full);
  background: var(--foreground); color: var(--background); font: 500 16px/1 var(--clash);
  transform: translateY(-160%); transition: transform var(--duration-moderate) var(--ease);
}
.skip-link:focus { transform: none; }

.page { position: relative; display: flex; flex-direction: column; align-items: center; width: 100%; background: var(--background); }

/* images: Framer-style fill layer (keeps identical scaling) */
.img-fill { position: absolute; inset: 0; border-radius: inherit; }
.img-fill img { display: block; width: 100%; height: 100%; border-radius: inherit; object-position: center center; object-fit: contain; }
.img-fill.cover img { object-fit: cover; }

/* the brand's text labels: Doto, small and tracked by the font itself */
.doto-12 { font: 500 12px/100% var(--font-label); letter-spacing: 0; color: var(--on-pill); white-space: pre; }
.doto-label { font: 500 12px/180% var(--font-label); letter-spacing: 0; color: var(--on-pill); white-space: pre; }

/* motion off: no movement, everything still works */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* =====================================================================
   components
   ===================================================================== */
/* mascot logo (8 frames, stepped by scroll in js) */
.mascot { position: relative; width: 56px; aspect-ratio: 1.16 / 1; flex: none; cursor: pointer; }
.mascot[data-frame="3"], .mascot[data-frame="4"], .mascot[data-frame="5"],
.mascot[data-frame="6"], .mascot[data-frame="7"], .mascot[data-frame="8"] { aspect-ratio: 1.15625 / 1; }
.logo-wrap { display: flex; align-items: center; gap: 32px; padding: 8px 8px 8px 5px; flex: none; border-radius: var(--radius-full); }

/* pills: the brand's button shape */
.btn-pill {
  position: relative; display: flex; align-items: center; gap: 4px; padding: 12px 16px;
  border-radius: var(--radius-full); cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--duration-default) var(--ease), box-shadow var(--duration-default) var(--ease), transform var(--duration-fast) var(--ease);
}
button.btn-pill { margin: 0; border: 0; font: inherit; color: inherit; -webkit-appearance: none; appearance: none; }
.btn-pill:active { transform: scale(.98); }
.btn-pill .txt { font: 500 16px/100% var(--clash); letter-spacing: 0; white-space: pre; }
.btn-cta { background-color: var(--primary); }
.btn-cta:focus-visible { background-color: var(--primary-hover); }
.btn-cta:active { background-color: var(--primary-active); }
.btn-cta .txt { color: var(--primary-foreground); }
.btn-light { background-color: var(--pill); }
.btn-light:focus-visible { background-color: var(--pill-hover); }
.btn-light .txt { color: var(--on-pill); }
.btn-ghost { background-color: transparent; padding: 14px 16px; }
.btn-ghost:focus-visible { background-color: var(--pill-hover); }
.btn-line { background-color: transparent; box-shadow: inset 0 0 0 1px rgba(22, 22, 22, .2); }
.btn-line:focus-visible { background-color: var(--glass); box-shadow: inset 0 0 0 1px rgba(22, 22, 22, .35); }
.btn-line .txt { color: var(--foreground); }
.btn-small { width: 100%; min-height: 44px; padding: 8px 16px; background-color: transparent; }
.btn-small:focus-visible { background-color: var(--pill-hover); }
@media (hover: hover) {
  .btn-cta:hover { background-color: var(--primary-hover); }
  .btn-light:hover, .btn-ghost:hover, .btn-small:hover { background-color: var(--pill-hover); }
  .btn-line:hover { background-color: var(--glass); box-shadow: inset 0 0 0 1px rgba(22, 22, 22, .35); }
}
.btn-small .txt { font-weight: 400; color: var(--on-pill); }
.btn-big { padding: 16px 24px; }
.btn-big .txt { font-size: 18px; }
.cta-holder { position: relative; flex: none; }

/* buttons fade in once on load (Framer's presence); with no script they show straight away */
.appear { opacity: .001; will-change: opacity; transition: opacity var(--spring-ms) var(--spring); }
.appear.is-in { opacity: 1; }
@media (scripting: none) { .appear { opacity: 1; } }

/* orange dot that follows the pointer over link text */
.dot-wrap { position: relative; display: inline-block; }
.dot-wrap > .dot {
  position: absolute; left: 0; top: 0; z-index: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); pointer-events: none;
  opacity: 0; transform: translate(var(--dx, 0px), var(--dy, 0px)) scale(0); filter: blur(8px);
  transition: opacity .01s ease-in, transform .01s ease-in, filter .01s ease-in;
}
.dot-wrap.is-hot > .dot { opacity: 1; transform: translate(var(--dx, 0px), var(--dy, 0px)) scale(1); filter: blur(0); transition-timing-function: ease-out; }
.dot-wrap > .dot-txt { position: relative; z-index: 1; display: block; }
@media (pointer: coarse) { .dot-wrap > .dot { display: none; } }

/* text link: underline that turns orange, optional arrow for links that leave the page */
.case-link {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 10px 0 6px;
  font: 500 16px/1.2em var(--clash); color: var(--foreground); border-bottom: 1px solid rgba(22, 22, 22, .25);
  transition: border-color var(--duration-default) var(--ease), color var(--duration-default) var(--ease);
}
.case-link:focus-visible { border-color: var(--accent); }
@media (hover: hover) { .case-link:hover { border-color: var(--accent); } }
.link-out { --icon: var(--icon-arrow-up-right); --nudge: translate(2px, -2px); }
.link-go { --icon: var(--icon-arrow-right); --nudge: translateX(3px); }
.link-down { --icon: var(--icon-arrow-down); --nudge: translateY(2px); }
.link-up { --icon: var(--icon-arrow-up); --nudge: translateY(-2px); }
.link-out::after, .link-go::after, .link-down::after, .link-up::after {
  content: ""; flex: none; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
  transition: transform var(--duration-default) var(--ease);
}
.case-link:focus-visible::after { transform: var(--nudge); }
@media (hover: hover) { .case-link:hover::after { transform: var(--nudge); } }
@media (pointer: coarse) { .case-link, .text-link, .route-mail a { min-height: 44px; display: inline-flex; align-items: center; } }

/* play / pause control added to every looping video (js) */
.media-toggle {
  position: absolute; right: 16px; bottom: 16px; z-index: 3; display: grid; place-items: center;
  width: 40px; height: 40px; margin: 0; padding: 0; border: 0; border-radius: var(--radius-full);
  background: var(--scrim); color: var(--white); cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background-color var(--duration-default) var(--ease), transform var(--duration-fast) var(--ease);
}
.media-toggle:hover { background: rgba(22, 22, 22, .75); }
.media-toggle:active { transform: scale(.96); }
.media-toggle svg { width: 16px; height: 16px; }
@media (pointer: coarse) { .media-toggle { width: 44px; height: 44px; } }

/* icon-only copy button with a short status next to it */
.copy-btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px; margin: 0; padding: 0; border: 0;
  border-radius: var(--radius-full); background: transparent; color: var(--muted-foreground); cursor: pointer;
  transition: background-color var(--duration-default) var(--ease), color var(--duration-default) var(--ease);
}
.copy-btn:hover { background: var(--muted); color: var(--foreground); }
.copy-btn[hidden] { display: none; }
.copy-btn svg { width: 16px; height: 16px; }
.copy-btn.is-done { color: var(--accent-foreground); }
@media (pointer: coarse) { .copy-btn { width: 44px; height: 44px; } }

/* moving dash field (top 100vh) */
.dash-field { position: absolute; top: 0; left: 0; z-index: 0; width: 100%; height: 100vh; }
.dash-field > div { position: relative; width: 100%; height: 100%; overflow: hidden; }
.dash-field canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

.marker { position: sticky; top: 4px; z-index: 1; width: 100%; height: 0; opacity: 0; }
.copyright { font: 500 11px/180% var(--font-label); color: var(--ink-950); letter-spacing: 0; white-space: pre-wrap; }

/* =====================================================================
   navigation
   ===================================================================== */
/* desktop + tablet: a pill with one link per section; the current one gets a small orange dot */
.nav-large {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%); z-index: 10;
  width: 708px; display: flex; align-items: center; gap: 8px; padding: 8px;  /* six sections and the language link */
  border-radius: 64px; overflow: clip;
}
.nav-large .nav-wrap { flex: 1 0 0; width: 1px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.nav-bar {
  width: 100%; display: flex; align-items: center; gap: 8px; padding: 4px;
  border-radius: var(--radius-bar); background-color: var(--glass);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
}
.nav-large .nav-links { flex: 1 0 0; width: 1px; align-self: stretch; display: flex; align-items: flex-start; gap: 2px; }
.nav-large .nav-link {
  position: relative; height: 100%; display: flex; align-items: center; gap: 4px; padding: 0 12px;
  border-radius: var(--radius-full); background-color: transparent;
  transition: background-color var(--duration-default) var(--ease);
}
@media (hover: hover) { .nav-large .nav-link:hover { background-color: var(--pill-hover); } }
.nav-large .nav-link:focus-visible { outline-offset: -2px; }
.nav-large .nav-link::after {
  content: ""; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--accent); opacity: 0; transform: scale(0);
  transition: opacity var(--duration-moderate) var(--ease), transform var(--duration-moderate) var(--ease);
}
.nav-large .nav-link.is-active::after { opacity: 1; transform: scale(1); }

/* phone: MENU opens a card with the sections; on home the same card opens at the contact section */
.nav-small { display: none; position: fixed; top: 0; left: 50%; transform: translateX(-50%); z-index: 10; width: 100vw; }
.nav-small .bar { width: 100%; display: flex; align-items: flex-start; padding: 8px; border-radius: 64px; overflow: clip; }
.nav-small .logo-wrap { width: 25%; }
.nav-small .nav-wrap { flex: 1 0 0; width: 1px; display: flex; flex-direction: column; align-items: flex-start; padding: 8px; }
.nav-small .nav-bar { flex-direction: column; gap: 8px; }
.nav-small .nav-row { width: 100%; display: flex; align-items: center; justify-content: center; }
.nav-small .nav-links { flex: 1 0 0; width: 1px; display: flex; align-items: flex-start; gap: 4px; }
.menu-toggle, .nav-small .compact-only { min-height: 44px; cursor: pointer; }

.panel-logo, .panel-footer, .nav-small .panel-sections { display: none; }
.wordmark-wide { position: relative; width: 143px; aspect-ratio: 2.97362 / 1; flex: none; }
.panel-footer { width: 100%; flex-direction: column; align-items: center; justify-content: center; gap: 24px; }
.panel-links { width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; }
.panel-group { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.panel-title { width: 100%; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; padding: 4px 16px; }
.panel-list { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.panel-cta { width: 100%; min-height: 44px; }
.panel-ctas { width: 100%; display: flex; flex-direction: column; gap: 4px; }
.nav-small.is-open .bar > .logo-wrap, .nav-small.is-open .compact-only { display: none; }
.nav-small.is-open .panel-logo { display: flex; width: auto; }
.nav-small.is-open .panel-footer { display: flex; grid-column: 1 / -1; }
.nav-small.is-open .nav-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 8px; gap: 14px 8px; }
.nav-small.is-open .nav-row { justify-content: flex-end; align-items: center; }
.nav-small.is-open .nav-links { flex: none; width: auto; }
.nav-small .nav-bar.is-sizing { overflow: hidden; }
.nav-small.is-menu .nav-bar { max-height: calc(100dvh - 32px); overflow-y: auto; background-color: var(--glass-strong); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.nav-small.is-menu .panel-sections { display: flex; grid-column: 1 / -1; }
.nav-small.is-menu .panel-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 24px 8px; }
.nav-small.is-menu .panel-sections .panel-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }

@media (max-width: 767.98px) {
  .nav-large { display: none; }
  .nav-small { display: block; }
}

/* =====================================================================
   home
   Motion rule: the base styles are the finished state. Draw-once effects only start from zero
   under .js with motion allowed, and js adds .is-drawn when each one scrolls into view.
   ===================================================================== */
.content { position: relative; z-index: 1; width: 100%; max-width: 1200px; display: flex; flex-direction: column; align-items: flex-start; }
.stack { width: 100%; display: flex; flex-direction: column; align-items: flex-start; }

/* hero */
.hero-stack { position: relative; z-index: 2; width: 100%; min-height: 50vh; padding: 8px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.hero { position: relative; z-index: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 64px; }
.hero-inner { flex: 1 0 0; width: 1px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.hero-txt { width: 100%; display: flex; align-items: flex-end; justify-content: flex-start; gap: 40px; padding: 244px 20px 20px; }
.hero-mark { flex: 1.5 0 0; width: 1px; display: flex; align-items: flex-start; justify-content: center; }
.hero-mark .wordmark { position: relative; flex: 1 0 0; width: 1px; height: auto; aspect-ratio: 5.097 / 1; }
.reg-wrap { flex: none; height: 64px; white-space: pre; }
.reg { display: block; font: 400 144px/0.7em var(--clash); color: var(--foreground); letter-spacing: 0; text-align: right; }
.hero-copy-wrap { flex: none; width: 420px; display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
.hero-copy { font: 500 16px/1.45em var(--clash); color: var(--foreground); letter-spacing: 0; overflow-wrap: break-word; text-wrap: pretty; }
/* the two fields get a sand marker band that draws in once */
.hero-focus { white-space: nowrap; background: linear-gradient(var(--sand-300), var(--sand-300)) no-repeat 0 88% / 100% .5em; }
.hero-terms { font: 500 12px/1.6 var(--font-label); color: var(--muted-foreground); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 4px; }
.hero-actions .btn-cta { padding: 14px 20px; }

/* showreel */
.showreel { position: relative; z-index: 1; width: 100%; height: 60vh; padding: 40px 20px 20px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; }
.showreel-sticky { position: sticky; top: 0; z-index: 1; flex: 1 0 0; height: 1px; width: 100%; }
.showreel-frame { position: relative; width: 100%; height: 100%; display: flex; align-items: flex-end; justify-content: center; border-radius: var(--radius-lg); overflow: clip; background: var(--muted); }
.showreel video { width: 100%; height: 100%; object-fit: cover; }

/* sections */
.works { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: var(--section-space) var(--gutter) 0; gap: 32px; }
.works--selected { padding-top: 80px; gap: 24px; }
.section-head { width: 100%; padding: 24px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.section-label { max-width: 670px; font: 500 16px/1.5em var(--clash); color: var(--muted-foreground); letter-spacing: 0; white-space: pre-wrap; overflow-wrap: break-word; }
.statement { max-width: 780px; font: 500 28px/1.2em var(--clash); color: var(--soft-foreground); letter-spacing: 0; text-align: center; overflow-wrap: break-word; text-wrap: balance; }
.statement span { color: var(--foreground); }
.statement--dark { max-width: 760px; color: var(--foreground); }
.section-sub { max-width: 560px; margin-top: 4px; font: 500 16px/1.5em var(--clash); color: var(--muted-foreground); text-align: center; text-wrap: balance; }

/* one card surface: sand fill, hairline border, 16px corners; only cards that go somewhere react to the pointer */
.work-card, .quote-card, .price-card, .think-card, .focus-card, .svc-panel, .your-part { position: relative; background-color: var(--card); border-radius: var(--radius-lg); }
.work-card::after, .quote-card::after, .price-card::after, .think-card::after, .focus-card::after, .svc-panel::after, .your-part::after {
  content: ""; position: absolute; inset: 0; z-index: 2; border: 1px solid var(--border); border-radius: inherit; pointer-events: none;
  transition: border-color var(--duration-default) var(--ease);
}

/* small label used across the home sections */
.label-sm { font: 500 12px/1.4 var(--font-label); color: var(--muted-foreground); }

/* check list: lucide check, one hairline between items */
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); font: 500 16px/1.45em var(--clash); color: var(--foreground); text-wrap: pretty; }
.check-list li::before, .price-list li::before {
  content: ""; flex: none; width: 16px; height: 16px; margin-top: 3px; background: var(--accent-foreground);
  -webkit-mask: var(--icon-check) center / contain no-repeat; mask: var(--icon-check) center / contain no-repeat;
}

/* selected work */
.work-grid { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--card-gap); }
.work-card { display: flex; flex-direction: column; padding: var(--card-inset); isolation: isolate; transition: background-color var(--duration-default) var(--ease), transform var(--duration-fast) var(--ease); }
.work-card:focus-visible { outline-offset: 4px; }
.work-card:active { transform: scale(.995); }
.work-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius-sm); background-color: #f3eee7; }
.work-media--light { background-color: #f7f6fb; }
.work-media--tabi { background-color: #ffe8ce; }
.work-media--stone { background-color: #f0f0ee; }
.work-media--ground { background-color: #f4f2ea; }
/* the featured card spans the row: media on the left, words on the right; it stacks on phones */
.work-card--wide { grid-column: 1 / -1; }
@media (min-width: 768px) {
  .work-card--wide { flex-direction: row; }
  .work-card--wide.work-card--flip { flex-direction: row-reverse; }
  .work-card--wide .work-media { flex: 0 0 62%; aspect-ratio: 16 / 10; }
  .work-card--wide .work-meta { flex: 1 1 0; min-width: 0; justify-content: center; padding: var(--card-pad) calc(var(--card-pad) + 8px); }
  .work-card--wide .work-status { margin-top: 18px; }
}
.work-media--video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tabi-phone { position: absolute; left: 50%; top: 9%; height: 150%; width: auto; transform: translateX(-50%); }
.work-media .img-fill img, .work-media--video video, .work-card .tabi-phone { transition: transform var(--duration-slow) var(--ease); }
.img-fill.screen { inset: 32px 32px 32px; }
.img-fill.screen img { object-fit: contain; object-position: center top; filter: drop-shadow(0 12px 28px rgba(22, 22, 22, .12)); }
.work-meta { flex: 1 0 auto; display: flex; flex-direction: column; gap: 6px; padding: calc(var(--card-pad) - var(--card-inset)); padding-top: calc(var(--card-pad) - 4px); }
.work-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.work-go {
  flex: none; width: 20px; height: 20px; background: var(--muted-foreground);
  -webkit-mask: var(--icon-arrow-right) center / contain no-repeat; mask: var(--icon-arrow-right) center / contain no-repeat;
  transition: transform var(--duration-default) var(--ease), background-color var(--duration-default) var(--ease);
}
.work-name { font: 500 24px/1.2em var(--clash); color: var(--foreground); letter-spacing: 0; }
.work-tags { order: -1; margin-bottom: 4px; font: 500 12px/1.4 var(--font-label); color: var(--muted-foreground); letter-spacing: 0; }
/* inline lists that wrap: each item brings its own dot, and the dot of an item that starts a line is clipped away */
.hero-terms, .work-tags { display: flex; flex-wrap: wrap; margin-left: -18px; clip-path: inset(0 0 0 18px); }
.hero-terms > [aria-hidden], .work-tags > [aria-hidden] { display: none; }
.hero-terms > span::before, .work-tags > span::before { content: "·"; content: "·" / ""; display: inline-block; width: 18px; text-align: center; }
.work-line { font: 500 16px/1.4em var(--clash); color: var(--muted-foreground); letter-spacing: 0; text-wrap: pretty; }
.work-status { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 14px; font: 500 12px/1.4 var(--font-label); color: var(--foreground); }
.status-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
@media (hover: hover) {
  .work-card:hover { background-color: #fff5ea; }
  .work-card:hover::after { border-color: var(--border-strong); }
  .work-card:hover .work-media .img-fill img, .work-card:hover .work-media--video video { transform: scale(1.03); }
  .work-card:hover .tabi-phone { transform: translateX(-50%) translateY(-2%); }
  .work-card:hover .work-go { transform: translateX(3px); background: var(--accent-foreground); }
}
.work-card:focus-visible { background-color: #fff5ea; }
.work-card:focus-visible::after { border-color: var(--border-strong); }
.work-card:focus-visible .work-media .img-fill img, .work-card:focus-visible .work-media--video video { transform: scale(1.03); }
.work-card:focus-visible .tabi-phone { transform: translateX(-50%) translateY(-2%); }
.work-card:focus-visible .work-go { transform: translateX(3px); background: var(--accent-foreground); }

/* who we build for: two fields, each with what we design and where to see it */
.focus-grid { width: 100%; max-width: 1160px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--card-gap); }
.focus-card { display: flex; flex-direction: column; gap: 16px; padding: calc(var(--card-pad) + 8px); }
.focus-key { display: flex; gap: 12px; color: var(--foreground); }
.focus-key span { color: var(--accent-foreground); }
.focus-title { margin-top: 12px; font: 500 32px/1.1em "Clash Grotesk Medium", sans-serif; letter-spacing: -0.01em; color: var(--foreground); text-wrap: balance; }
.focus-intro { max-width: 460px; font: 500 16px/1.5em var(--clash); color: var(--muted-foreground); text-wrap: pretty; }
.focus-card .check-list { margin: 8px 0 12px; }
.specimens { list-style: none; margin: -4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.specimens li {
  display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 6px 14px 6px 12px;
  border-radius: var(--radius-full); background: var(--background); box-shadow: inset 0 0 0 1px var(--border-strong);
  font: 500 14px/1 var(--clash); color: var(--foreground);
}
.specimens li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.specimens [data-spec="thinking"]::before { width: 18px; height: 6px; border-radius: 0; background: radial-gradient(circle, var(--accent) 2.5px, transparent 3px) 0 0 / 6px 6px repeat-x; }
.specimens [data-spec="less-sure"]::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--accent); }
.specimens [data-spec="estimate"]::before { content: "≈" / ""; width: auto; height: auto; border-radius: 0; background: none; font: 500 16px/1 var(--clash); color: var(--accent-foreground); }
.specimens [data-spec="sentence"]::before { width: 14px; height: 9px; border-radius: 0; background: linear-gradient(var(--accent) 0 0) 0 0 / 100% 2px no-repeat, linear-gradient(var(--accent) 0 0) 0 100% / 60% 2px no-repeat; }
.specimens [data-spec="reminder"]::before { background: rgba(255, 66, 0, .25); box-shadow: inset 0 0 0 1.5px var(--accent); }
.focus-proof { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--border); }
.focus-proof-line { font: 500 16px/1.45em var(--clash); color: var(--foreground); text-wrap: pretty; }
.focus-links { display: flex; flex-wrap: wrap; gap: 0 24px; }
@media (hover: hover) {
  .focus-card:hover::after { border-color: var(--border-strong); }
  .focus-card:hover .focus-proof .case-link::after { transform: var(--nudge); }
}
.focus-card:focus-within::after { border-color: var(--border-strong); }

/* kind words: client logos in one ink tone, then one quote */
.logo-row { width: 100%; max-width: 1160px; list-style: none; margin: 0; padding: 16px 8px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px 40px; }
/* below xl the six logos sit in two even rows of three */
@media (max-width: 1279.98px) { .logo-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); justify-items: center; gap: 40px 24px; } }
.logo-row li { display: flex; align-items: center; justify-content: center; }
.client {
  flex: none; height: var(--h); aspect-ratio: var(--ar); background-color: rgba(22, 22, 22, .55);
  -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat;
}
.quote-card { margin: 0; display: flex; flex-direction: column; gap: 16px; padding: var(--card-pad); }
.quote-card--solo { width: 100%; max-width: 780px; padding: calc(var(--card-pad) + 8px); }
.quote-mark { height: 28px; font: 500 72px/1 var(--clash); color: var(--accent); }
.quote-card blockquote { flex: 1 0 auto; margin: 0; font: 500 28px/1.3em var(--clash); color: var(--foreground); letter-spacing: 0; text-wrap: pretty; }
.quote-card figcaption { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--border); font: 500 12px/100% var(--font-label); color: var(--foreground); letter-spacing: 0; }
.quote-logo { height: 26px; aspect-ratio: var(--ar); background-color: rgba(22, 22, 22, .55); -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; }

/* what we make: brand, app, website as tabs once js runs; without it, three cards in a column */
.tabs { position: relative; display: inline-flex; gap: 2px; padding: 4px; border-radius: var(--radius-full); background: var(--muted); }
.tabs[hidden] { display: none; }
.tab {
  position: relative; z-index: 1; min-height: 44px; margin: 0; padding: 0 22px; border: 0; border-radius: var(--radius-full);
  background: transparent; font: 500 16px/1 var(--clash); color: var(--muted-foreground); cursor: pointer;
  transition: color var(--duration-default) var(--ease);
}
.tab[aria-selected="true"] { color: var(--foreground); }
.tab:focus-visible { outline-offset: -2px; }
@media (hover: hover) { .tab:hover { color: var(--foreground); } }
.tabs-indicator {
  position: absolute; left: 0; top: 4px; bottom: 4px; width: var(--w, 0); border-radius: var(--radius-full);
  background: var(--background); box-shadow: 0 1px 2px rgba(22, 22, 22, .06), inset 0 0 0 1px var(--border-strong);
  transform: translateX(var(--x, 0)); transition: transform var(--duration-slow) var(--ease-out), width var(--duration-slow) var(--ease-out);
}
.svc-panels { width: 100%; max-width: 1160px; display: flex; flex-direction: column; gap: var(--card-gap); }
.svc-panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 16px 56px; padding: calc(var(--card-pad) + 16px); }
.svc-panel[hidden]:not([hidden="until-found"]) { display: none; }
.svc-panel[hidden="until-found"] { padding: 0; background: transparent; }
.svc-panel[hidden="until-found"]::after { display: none; }
.is-tabbed .svc-panels { gap: 0; }
@media (prefers-reduced-motion: no-preference) { .svc-panel.is-in { animation: panel-in var(--duration-default) var(--ease); } }
@keyframes panel-in { from { opacity: 0; } }
.svc-h { grid-column: 1 / -1; font: 500 32px/1.1em "Clash Grotesk Medium", sans-serif; color: var(--foreground); }
.is-tabbed .svc-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.svc-main { display: flex; flex-direction: column; gap: 16px; }
.svc-lead { max-width: 560px; margin-bottom: 12px; font: 500 24px/1.3em var(--clash); color: var(--foreground); text-wrap: pretty; }
.svc-side { display: flex; flex-direction: column; gap: 16px; }
.seen-link {
  display: grid; grid-template-columns: minmax(0, 1fr) 20px; grid-template-areas: "name go" "what go"; align-items: center; column-gap: 16px; row-gap: 2px;
  padding: 14px 0; border-radius: var(--radius-sm);
}
.seen-name { grid-area: name; font: 500 18px/1.3em var(--clash); color: var(--foreground); transition: color var(--duration-default) var(--ease); }
.seen-what { grid-area: what; font: 500 15px/1.4em var(--clash); color: var(--muted-foreground); }
.seen-link::after {
  content: ""; grid-area: go; width: 20px; height: 20px; background: var(--muted-foreground);
  -webkit-mask: var(--icon-arrow-right) center / contain no-repeat; mask: var(--icon-arrow-right) center / contain no-repeat;
  transition: transform var(--duration-default) var(--ease), background-color var(--duration-default) var(--ease);
}
.seen-link:focus-visible { outline-offset: 2px; }
@media (hover: hover) {
  .seen-link:hover .seen-name { color: var(--accent-foreground); }
  .seen-link:hover::after { transform: translateX(3px); background: var(--accent-foreground); }
}
.seen-link:focus-visible::after { transform: translateX(3px); background: var(--accent-foreground); }

/* seen in: the real work as tiles, each one a link to its case; websites sit in a small browser frame */
.seen-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
.seen-grid > .seen-wide { grid-column: 1 / -1; }
.seen-tile { grid-template-areas: "media media" "name go" "what go"; align-items: start; padding: 0; }
.seen-tile::after { align-self: center; }
.seen-tile .seen-name { font-size: 16px; }
.seen-tile .seen-what { font-size: 14px; }
.seen-media { grid-area: media; position: relative; display: block; aspect-ratio: 16 / 10; margin-bottom: 10px; overflow: hidden; border-radius: var(--radius-sm); background: var(--muted); }
.seen-media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(22, 22, 22, .08); pointer-events: none; }
.seen-wide .seen-media { aspect-ratio: 2 / 1; }
.seen-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration-slow) var(--ease); }
.seen-browser { display: flex; flex-direction: column; background: #fff; }
.seen-bar { flex: none; display: flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-bottom: 1px solid var(--border); background: var(--background); }
.seen-bar i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--border-strong); }
.seen-url { margin: 0 auto; padding: 2px 12px; border-radius: var(--radius-full); background: var(--muted); font: 500 10px/1.3 var(--font-label); color: var(--muted-foreground); white-space: nowrap; }
.seen-grid--feature > li:not(.seen-wide) .seen-url { display: none; }
.seen-browser img { flex: 1 1 0; min-height: 0; height: auto; object-position: 50% 0%; transition: object-position 700ms var(--ease); }
@media (hover: hover) {
  .seen-tile:hover .seen-media img { transform: scale(1.03); }
  .seen-tile--site:hover .seen-media img { transform: none; }
}
.seen-tile:focus-visible .seen-media img { transform: scale(1.03); }
.seen-tile--site:focus-visible .seen-media img { transform: none; }
@media (prefers-reduced-motion: no-preference) {
  /* hovering a website frame scrolls its page, slowly down and quickly back */
  @media (hover: hover) { .seen-tile--site:hover .seen-media img { object-position: 50% 100%; transition-duration: 3200ms; } }
  /* tiles rise in once when the section scrolls into view, and again each time a tab opens its panel */
  .js .svc-panels:not(.is-drawn) .seen-grid > li { opacity: 0; transform: translateY(16px); }
  .js .svc-panels.is-drawn .seen-grid > li { transition: opacity var(--duration-slow) var(--ease-out), transform var(--duration-slow) var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
  .svc-panel.is-in .seen-grid > li { animation: tile-in var(--duration-slow) var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 70ms + 60ms); }
}
@keyframes tile-in { from { opacity: 0; transform: translateY(16px); } }

/* process: brand, web app and website as bars on one 7-week calendar; each row opens to say what happens */
.timeline { --tl-label: 232px; --tl-before: 72px; --tl-after: 96px; --tl-chev: 24px; --cols: var(--tl-label) var(--tl-before) repeat(7, minmax(0, 1fr)) var(--tl-after) var(--tl-chev); width: 100%; max-width: 1160px; }
.tl-ruler, .phase > summary, .phase-review { display: grid; grid-template-columns: var(--cols); column-gap: 0; align-items: center; }
.tl-ruler { padding: 0 0 10px; border-bottom: 1px solid var(--border-strong); font: 500 12px/1 var(--font-label); color: var(--muted-foreground); text-align: center; }
.tl-ruler-label { text-align: left; }
.process-steps { list-style: none; margin: 0; padding: 0; }
.step { position: relative; border-bottom: 1px solid var(--border); }
.phase > summary {
  --row-bg: var(--background);
  list-style: none; cursor: pointer; min-height: 64px; padding: 10px 0; border-radius: var(--radius-sm);
  /* faint week lines, only inside the calendar columns (the two solid layers cover the label and chevron columns) */
  background:
    linear-gradient(var(--row-bg), var(--row-bg)) left / calc(var(--tl-label) + var(--tl-before)) 100% no-repeat,
    linear-gradient(var(--row-bg), var(--row-bg)) right / calc(var(--tl-after) + var(--tl-chev)) 100% no-repeat,
    linear-gradient(90deg, var(--border) 1px, transparent 1px) calc(var(--tl-label) + var(--tl-before)) 0 / calc((100% - var(--tl-label) - var(--tl-before) - var(--tl-after) - var(--tl-chev)) / 7) 100% repeat-x,
    var(--row-bg);
}
.phase > summary::-webkit-details-marker { display: none; }
.phase > summary:focus-visible { outline-offset: -2px; }
.phase > summary::after {
  content: ""; grid-column: 11; justify-self: end; width: 18px; height: 18px; background: var(--muted-foreground);
  -webkit-mask: var(--icon-chevron-down) center / contain no-repeat; mask: var(--icon-chevron-down) center / contain no-repeat;
  transition: transform var(--duration-moderate) var(--ease), background-color var(--duration-default) var(--ease);
}
.phase[open] > summary::after { transform: rotate(180deg); background: var(--accent-foreground); }
@media (hover: hover) {
  .phase > summary:hover { --row-bg: var(--card); }
  .phase > summary:hover::after { background: var(--accent-foreground); }
  .phase > summary:hover .phase-name { color: var(--accent-foreground); }
}
.phase > summary:focus-visible .phase-name { color: var(--accent-foreground); }
.phase-id { grid-column: 1; display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: baseline; row-gap: 4px; padding: 0 12px 0 4px; }
.step-num { font: 500 12px/1 var(--font-label); color: var(--accent-foreground); }
.phase-name { font: 500 20px/1.2em var(--clash); color: var(--foreground); transition: color var(--duration-default) var(--ease); }
.phase-weeks { grid-column: 2; font: 500 12px/1.3 var(--font-label); color: var(--muted-foreground); }
.phase-bar {
  grid-row: 1; grid-column: var(--from) / var(--to); height: 30px; margin: 0 3px; display: flex; align-items: center; padding: 0 12px;
  border-radius: var(--radius-full); font: 500 12px/1 var(--font-label); white-space: nowrap; overflow: hidden;
  transform-origin: left center;
}
.phase-bar--all { background: var(--foreground); color: var(--background); }
.phase-bar--brand { background: var(--primary); color: var(--primary-foreground); }
.phase-bar--app { background: var(--sand-400); color: var(--foreground); box-shadow: inset 0 0 0 1px rgba(22, 22, 22, .16); }
.phase-bar--website { background: var(--stone-200); color: var(--foreground); box-shadow: inset 0 0 0 1px rgba(22, 22, 22, .2); }
.phase-bar--grow { justify-content: center; padding: 0 8px; background: transparent; color: var(--accent-foreground); box-shadow: inset 0 0 0 1.5px var(--accent); }
.phase-bar--dot { width: 12px; height: 12px; padding: 0; margin-left: 6px; border-radius: 50%; background: var(--foreground); justify-self: start; }
.step--grow { border-bottom: 0; }
.step--grow .phase > summary { border-top: 1px dashed var(--border-strong); }

.phase::details-content { block-size: 0; overflow: clip; transition: block-size var(--duration-moderate) var(--ease), content-visibility var(--duration-moderate) allow-discrete; }
.phase[open]::details-content { block-size: auto; }
.phase-body { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 4fr) minmax(0, 3fr); gap: 16px 32px; padding: 8px 24px 28px var(--tl-label); }
@media (min-width: 1024px) { .phase-track { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
.phase-body > div { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.phase-body p:not(.label-sm) { font: 500 16px/1.5em var(--clash); color: var(--foreground); text-wrap: pretty; }
.phase-body .case-link { padding-top: 0; }
.phase-note { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; padding-left: 12px; border-left: 2px solid var(--sand-300); }
.phase-note .label-sm { color: var(--accent-foreground); }
.phase-body .phase-note { font-size: 15px; color: var(--muted-foreground); }
.phase-body--grow { grid-template-columns: minmax(0, 4fr) minmax(0, 9fr); }
.grow-month { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
.grow-month li { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; border-top: 1px dashed var(--border-strong); font: 500 15px/1.45em var(--clash); color: var(--foreground); }

/* weekly reviews: seven dots, one per week */
.phase-review { min-height: 56px; padding: 8px 0; }
.step--review .phase-id { row-gap: 2px; }
.step--review .phase-name { grid-column: 2; font-size: 16px; }
.review-dots { grid-column: 3 / 10; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); justify-items: center; }
.review-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }

.your-part { width: 100%; max-width: 1160px; display: flex; align-items: flex-start; gap: 16px; padding: var(--card-pad); }
.your-part svg { flex: none; width: 24px; height: 24px; margin-top: 2px; color: var(--accent-foreground); }
.your-part > div { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.your-part-line { font: 500 18px/1.4em var(--clash); color: var(--foreground); text-wrap: pretty; }

/* timeline draws once: bars grow from their start week, review dots light in order */
@media (prefers-reduced-motion: no-preference) {
  .js .timeline:not(.is-drawn) .phase-bar { transform: scaleX(0); }
  .js .timeline .phase-bar { transition: transform var(--duration-slow) var(--ease) calc(var(--i, 0) * 20ms); }
}

/* how we think */
.think-grid { width: 100%; max-width: 1160px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--card-gap); }
.think-card { display: flex; flex-direction: column; gap: 8px; padding: var(--card-pad); }
.think-num { margin-bottom: 16px; font: 500 12px/100% var(--font-label); color: var(--accent-foreground); }
.think-title { font: 500 20px/1.2em var(--clash); color: var(--foreground); }
.think-copy { font: 500 15px/1.45em var(--clash); color: var(--muted-foreground); text-wrap: pretty; }

/* founder + the studio */
.founder { width: 100%; max-width: 1160px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.founder-photo { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; background-color: #efede9; aspect-ratio: 1; }
.founder-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.founder-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.founder-name { font: 500 56px/0.95 "Clash Grotesk Medium", sans-serif; letter-spacing: -0.03em; color: var(--foreground); }
.founder-bio { max-width: 540px; font: 500 18px/1.45em var(--clash); color: var(--foreground); text-wrap: pretty; }
.founder-links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.studio { width: 100%; max-width: 540px; display: flex; flex-direction: column; gap: 14px; margin: 12px 0 4px; padding-top: 20px; border-top: 1px solid var(--border); }
.studio-row { display: flex; align-items: center; gap: 20px; }
.avatars { flex: none; display: flex; list-style: none; margin: 0; padding: 0; }
.avatars li + li { margin-left: -12px; }
.avatar { position: relative; display: block; width: 48px; height: 48px; border-radius: 50%; background-color: #efede9; box-shadow: 0 0 0 3px var(--background); }
.avatar img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.team-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 4px 24px; }
.team-list li { display: flex; flex-direction: column; gap: 4px; }
.team-name { font: 500 16px/1.2em var(--clash); color: var(--foreground); }
.team-role { font: 500 12px/1.3 var(--font-label); color: var(--muted-foreground); }
.team-label { font: 500 12px/100% var(--font-label); color: var(--muted-foreground); letter-spacing: 0; }
.team-line { font: 500 16px/1.45em var(--clash); color: var(--muted-foreground); }

/* pricing: the flagship launch, four launches one at a time, the blueprint, two monthly design plans, then what the price covers */
.price-grid { width: 100%; max-width: 1160px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--card-gap); }
.price-card { display: flex; flex-direction: column; gap: 16px; padding: calc(var(--card-pad) + 8px); isolation: isolate; }
@media (hover: hover) { .price-card:hover::after { border-color: var(--border-strong); } }
.price-card:focus-within::after { border-color: var(--border-strong); }
/* every card reads the same way: time, name, promise, price, terms, the one button; then what you get */
.price-top { display: flex; flex-direction: column; gap: 10px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.price-k { font: 500 12px/1 var(--font-label); color: var(--accent-foreground); }
.price-title { margin-top: 6px; font: 500 30px/1.05 "Clash Grotesk Medium", sans-serif; letter-spacing: -0.02em; color: var(--foreground); }
.price-promise { font: 500 16px/1.45em var(--clash); color: var(--muted-foreground); text-wrap: pretty; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 14px; font: 500 clamp(44px, 4.4vw, 60px)/0.9 "Clash Grotesk Medium", sans-serif; letter-spacing: -0.03em; color: var(--foreground); }
.price small { font: 500 18px/1 var(--clash); letter-spacing: 0; color: var(--muted-foreground); white-space: nowrap; }
.price-terms { font: 500 12px/1.5 var(--font-label); color: var(--muted-foreground); text-wrap: balance; }
.price-list-label { margin-top: 20px; }
.price-list + .price-list-label { margin-top: 0; }
.price-list { list-style: none; margin: 0 0 24px; padding: 0; }
.price-list li { display: flex; gap: 12px; padding: 13px 0; border-top: 1px solid var(--border); font: 500 16px/1.4em var(--clash); color: var(--foreground); text-wrap: pretty; }
.price-cta { margin-top: 10px; padding: 15px 22px; justify-content: center; }
.price-more { margin-top: auto; align-self: flex-start; }
.text-link { font: 500 16px/1.2em var(--clash); color: var(--muted-foreground); text-decoration: underline; text-decoration-color: rgba(22, 22, 22, .25); text-underline-offset: 5px; transition: color var(--duration-default) var(--ease), text-decoration-color var(--duration-default) var(--ease); }
@media (hover: hover) { .text-link:hover { color: var(--foreground); text-decoration-color: var(--accent); } }
.price-why { width: 100%; max-width: 1160px; display: flex; flex-direction: column; gap: 20px; margin-top: 16px; }
.price-why-title { text-align: center; }
.price-why-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--card-gap); }
.price-why-list li { display: flex; flex-direction: column; gap: 8px; padding: 24px 4px 0; border-top: 1px solid var(--border-strong); }
.price-why-list svg { width: 24px; height: 24px; margin-bottom: 8px; color: var(--accent-foreground); }
.price-why-list .label-sm { color: var(--foreground); }
.price-why-list p:not(.label-sm) { font: 500 16px/1.5em var(--clash); color: var(--muted-foreground); text-wrap: pretty; }
.price-note { max-width: 640px; font: 500 15px/1.5em var(--clash); color: var(--muted-foreground); text-align: center; letter-spacing: 0; text-wrap: pretty; }
.price-note a, .price-extra a, .faq-item a { color: var(--foreground); text-decoration: underline; text-decoration-color: rgba(22, 22, 22, .3); text-underline-offset: 4px; transition: text-decoration-color var(--duration-default) var(--ease); }
@media (hover: hover) { .price-note a:hover, .price-extra a:hover, .faq-item a:hover { text-decoration-color: var(--accent); } }

/* questions: three groups, a jump row, native details; the plus turns into a close mark */
.faq-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.faq-jump a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: var(--radius-full);
  box-shadow: inset 0 0 0 1px var(--border-strong); font: 500 15px/1 var(--clash); color: var(--foreground);
  transition: background-color var(--duration-default) var(--ease), box-shadow var(--duration-default) var(--ease);
}
@media (hover: hover) { .faq-jump a:hover { background-color: var(--card); box-shadow: inset 0 0 0 1px var(--sand-400); } }
.faq { width: 100%; max-width: 780px; display: flex; flex-direction: column; }
.faq-group { padding: 40px 4px 12px; font: 500 12px/1.4 var(--font-label); color: var(--accent-foreground); }
.faq-group:first-child { padding-top: 8px; }
.faq-item { border-top: 1px solid var(--border); }
.faq-item:last-child, .faq-item:has(+ .faq-group) { border-bottom: 1px solid var(--border); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 4px; border-radius: var(--radius-sm); font: 500 20px/1.3em var(--clash); color: var(--foreground);
  transition: color var(--duration-default) var(--ease);
}
@media (hover: hover) { .faq-item summary:hover { color: var(--accent-foreground); } }
.faq-item summary:focus-visible { outline-offset: -2px; color: var(--accent-foreground); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { margin: 0; font: inherit; color: inherit; text-wrap: pretty; }  /* each question is a heading, styled as the summary */
.faq-item summary::after {
  content: ""; flex: none; width: 20px; height: 20px; background: var(--accent-foreground);
  -webkit-mask: var(--icon-plus) center / contain no-repeat; mask: var(--icon-plus) center / contain no-repeat;
  transition: transform var(--duration-moderate) var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item::details-content { block-size: 0; overflow: clip; transition: block-size var(--duration-moderate) var(--ease), content-visibility var(--duration-moderate) allow-discrete; }
.faq-item[open]::details-content { block-size: auto; }
.faq-item p { max-width: 640px; padding: 0 4px 24px; font: 500 16px/1.5em var(--clash); color: var(--muted-foreground); text-wrap: pretty; }
.faq-more { font: 500 16px/1.5em var(--clash); color: var(--muted-foreground); display: flex; align-items: baseline; gap: 10px; }
.faq-more .case-link { padding-top: 0; }

/* closing + routes */
.closing { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 160px var(--gutter) 140px; }
.closing .marker { position: relative; top: auto; }
.closing .statement { max-width: 640px; }
.closing-sub { max-width: 520px; font: 500 16px/1.5em var(--clash); color: var(--muted-foreground); letter-spacing: 0; text-align: center; text-wrap: balance; }
.closing-steps { list-style: none; margin: 8px 0 32px; padding: 0; width: 100%; max-width: 780px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.closing-steps li { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 16px; border-top: 1px solid var(--border-strong); font: 500 16px/1.4em var(--clash); color: var(--foreground); text-align: center; text-wrap: balance; }
.closing-num { color: var(--accent-foreground); }
@media (prefers-reduced-motion: no-preference) {
  .js .closing-steps:not(.is-drawn) .closing-num { color: var(--muted-foreground); }
  .js .closing-steps:not(.is-drawn) li { border-top-color: var(--border); }
  .js .closing-steps .closing-num, .js .closing-steps li { transition: color var(--duration-default) var(--ease) calc(var(--i, 0) * 60ms), border-color var(--duration-default) var(--ease) calc(var(--i, 0) * 60ms); }
}
.closing-actions { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.closing-clock { display: flex; align-items: center; gap: 8px; font: 500 15px/1.4 var(--clash); color: var(--muted-foreground); }
.routes { width: 100%; max-width: 780px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 40px; border-top: 1px solid var(--border); }
.routes--two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 560px; }
.route { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 16px 4px; text-align: center; border-radius: var(--radius-sm); }
.route + .route { border-left: 1px solid var(--border); border-radius: 0; }
.route-k { font: 500 12px/100% var(--font-label); color: var(--muted-foreground); }
.route-v { font: 500 16px/1.3em var(--clash); color: var(--foreground); transition: color var(--duration-default) var(--ease); }
@media (hover: hover) { .route:hover .route-v, .route-v a:hover { color: var(--accent-foreground); } }
.route:focus-visible .route-v { color: var(--accent-foreground); }
.route-mail { display: inline-flex; align-items: center; gap: 2px; margin-top: -8px; }
.route-mail a { transition: color var(--duration-default) var(--ease); }
.copy-status { min-height: 18px; font: 500 12px/1.5 var(--font-label); color: var(--accent-foreground); }

/* footer */
.site-footer { position: relative; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 32px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 0 20px; }
.contact-links a { display: inline-flex; align-items: center; min-height: 44px; font: 500 16px/1.2em var(--clash); color: var(--muted-foreground); transition: color var(--duration-default) var(--ease); }
@media (hover: hover) { .contact-links a:hover { color: var(--foreground); } }
.contact-links a:focus-visible { color: var(--foreground); }

/* hero marker draws once */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-focus:not(.is-drawn) { background-size: 0% .5em; }
  .js .hero-focus { transition: background-size var(--duration-slow) var(--ease) 400ms; }
  .js .hero-copy .hero-focus:nth-of-type(2) { transition-delay: 550ms; }
}

/* process: the optional launch blueprint, a dashed outline in the before column */
.phase-bar--week { padding: 0; background: transparent; border: 1.5px dashed var(--accent); }
.step--week { border-bottom-style: dashed; }

/* pricing groups: a centered label between two hairlines */
.price-group-label { width: 100%; max-width: 1160px; display: flex; align-items: center; gap: 16px; margin-top: 16px; text-align: center; }
.price-group-label::before, .price-group-label::after { content: ""; flex: 1 1 0; height: 1px; background: var(--border-strong); }
.price-included { max-width: 720px; margin-top: -12px; font: 500 15px/1.5em var(--clash); color: var(--muted-foreground); text-align: center; text-wrap: pretty; }

/* the flagship: the full startup launch, one wide dark card; what you get sits beside the price on desktop */
.price-card--flagship { width: 100%; max-width: 1160px; }
.price-flag-list { display: flex; flex-direction: column; gap: 16px; }
.price-flag-list .price-list { margin-bottom: 8px; }
@media (min-width: 1024px) {
  .price-card--flagship { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; gap: 0 64px; padding: calc(var(--card-pad) + 24px); box-shadow: 0 24px 60px rgba(22, 22, 22, .16); }
  .price-card--flagship .price-top { padding-bottom: 0; border-bottom: 0; }
  .price-card--flagship .price-list-label { margin-top: 4px; }
}

/* four launches one at a time: four across on wide screens, two on tablets, one on phones */
.price-grid.price-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.price-grid--four .price-card { padding: var(--card-pad); }
.price-grid--four .price-title { font-size: 26px; }
.price-grid--four .price { font-size: clamp(40px, 3.4vw, 48px); }
.price-grid--four .price-cta { padding-inline: 16px; }
.price-grid--four .price-list { margin-bottom: 0; }
@media (min-width: 1200px) { .price-grid--four .price-promise { min-height: 2.9em; } }
@media (min-width: 1024px) { .price-grid--two .price-promise { min-height: 2.9em; } }
@media (min-width: 600px) and (max-width: 1199.98px) { .price-grid.price-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599.98px) { .price-grid.price-grid--four { grid-template-columns: minmax(0, 1fr); } }

/* the launch blueprint: one wide strip, the plan on the left and the price on the right */
.price-start { width: 100%; max-width: 1160px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); align-items: center; gap: 20px 64px; }
.price-start-main, .price-start-side { display: flex; flex-direction: column; gap: 10px; }
.price-start .price { margin-top: 0; }
.price-start .price-cta { margin-top: 6px; }
@media (max-width: 767.98px) { .price-start { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1023.98px) { .price-start, .price-card--flagship, .price-group-label { max-width: 680px; } }
.price-card--featured { background-color: var(--ink-900); }
.price-card--featured::after { border-color: var(--ink-900); }
.price-card--featured .price-k, .price-card--featured .price-list li::before { color: var(--orange-500); background-color: var(--orange-500); }
.price-card--featured .price-k { background-color: transparent; }
.price-card--featured .price-title, .price-card--featured .price, .price-card--featured .price-list li { color: var(--sand-50); }
.price-card--featured .price-promise, .price-card--featured .price small, .price-card--featured .price-terms, .price-card--featured .label-sm { color: rgba(255, 252, 248, .72); }
.price-card--featured .price-top, .price-card--featured .price-list li { border-color: rgba(255, 252, 248, .14); }
.price-card--featured .case-link { color: var(--sand-50); border-bottom-color: rgba(255, 252, 248, .35); }
.price-card--featured .case-link:focus-visible { border-bottom-color: var(--accent); }
@media (hover: hover) { .price-card--featured .case-link:hover { border-bottom-color: var(--accent); } }
.price-card--featured:focus-within::after { border-color: var(--ink-900); }
@media (hover: hover) { .price-card--featured:hover::after { border-color: var(--ink-900); } }
.price-extra { font: 500 15px/1.5em var(--clash); color: var(--muted-foreground); text-wrap: pretty; }

/* closing: four routes in two rows */
.routes--two { max-width: 640px; }
.routes--two > .route:nth-child(odd) { border-left: 0; }
.routes--two > .route:nth-child(n+3) { border-top: 1px solid var(--border); }
.routes--two > .route:nth-child(-n+2) { padding-bottom: 20px; }

/* home: tablet and phone */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .think-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-txt { padding-top: 140px; }
}
@media (max-width: 1023.98px) {
  /* process becomes a rail: each phase shows its weeks as a short bar on a 7-week track */
  .tl-ruler { display: none; }
  .timeline { max-width: 680px; }
  .phase > summary { grid-template-columns: minmax(0, 1fr) 24px; row-gap: 12px; padding: 16px 0; background: var(--row-bg); }
  .phase > summary::after { grid-column: 2; grid-row: 1; }
  .phase-id { grid-column: 1; grid-row: 1; padding: 0 4px; }
  .phase-bar { grid-column: 1 / -1; grid-row: 2; height: 6px; padding: 0; margin: 0 0 0 calc(32px + (var(--from) - 2) * (100% - 32px) / 9); width: calc((var(--to) - var(--from)) * (100% - 32px) / 9); font-size: 0; }
  .phase-bar--dot, .phase-bar--week { width: 6px; height: 6px; margin-left: 32px; }
  .phase-bar--week { border-radius: 50%; border-width: 1.5px; }
  .phase > summary::before { content: ""; grid-column: 1 / -1; grid-row: 2; height: 6px; margin-left: 32px; border-radius: var(--radius-full); background: var(--muted); }
  .phase-body, .phase-body--grow { grid-template-columns: minmax(0, 1fr); padding: 4px 4px 28px 36px; }
  .grow-month { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phase-review { grid-template-columns: minmax(0, 1fr); row-gap: 10px; padding: 14px 0; }
  .review-dots { grid-column: 1; margin-left: calc(32px + (100% - 32px) / 9); margin-right: calc((100% - 32px) / 9); grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .review-dots i { width: 8px; height: 8px; }
  .your-part { max-width: 680px; }
  .svc-panel { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .price-grid { grid-template-columns: minmax(0, 1fr); max-width: 680px; }
  /* hero stacks, so the wordmark keeps its size next to the ® */
  .hero { flex-direction: column; justify-content: flex-end; gap: 32px; }
  .hero-inner { flex: none; width: 100%; }
  .hero-txt { flex-direction: column; align-items: stretch; }
  .hero-mark { flex: none; width: 100%; }
  .hero-copy-wrap { width: 100%; max-width: 560px; }
  /* the studio becomes a list of rows */
  .studio-row { flex-direction: column; align-items: flex-start; gap: 14px; }
  .team-list { width: 100%; grid-template-columns: minmax(0, 1fr); gap: 0; }
  .team-list li { flex-direction: row; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-top: 1px solid var(--border); }
  .team-role { text-align: right; }
}
@media (max-width: 767.98px) {
  .hero-stack { min-height: 60vh; }
  .hero-txt { padding: 112px var(--gutter) 20px; }
  .reg { font-size: 20px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 8px; }
  .hero-actions .btn-cta { justify-content: center; padding: 16px 20px; }
  .hero-actions .case-link { align-self: center; }
  .focus-grid { grid-template-columns: minmax(0, 1fr); }
  .price-why-list { grid-template-columns: minmax(0, 1fr); }
  .showreel { height: auto; padding: 20px var(--gutter); }
  .showreel-sticky { flex: none; height: 240px; }
  .section-head { padding: 24px 0; }
  .section-label { font-size: 18px; line-height: 140%; }
  .statement { font-size: 24px; }

  .work-grid { grid-template-columns: minmax(0, 1fr); }
  .logo-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); justify-items: center; gap: 36px 16px; padding: 8px 0 16px; }
  .client { max-width: 100%; }
  .quote-card blockquote { font-size: 22px; }
  .focus-card, .price-card, .quote-card--solo { padding: var(--card-pad); }
  .focus-title { font-size: 28px; }
  .tabs { width: 100%; }
  .tab { flex: 1 0 0; padding: 0 8px; }
  .svc-panel { padding: var(--card-pad); }
  .svc-lead { font-size: 20px; }
  .price { font-size: 52px; }
  .think-grid { grid-template-columns: minmax(0, 1fr); }
  .founder { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .founder-name { font-size: 44px; }
  .faq-item summary { font-size: 18px; }
  .grow-month { grid-template-columns: minmax(0, 1fr); }

  .closing { padding: 112px var(--gutter) 96px; }
  .closing-steps { grid-template-columns: minmax(0, 1fr); gap: 0; margin-bottom: 24px; }
  .closing-steps li { flex-direction: row; justify-content: flex-start; gap: 14px; padding: 14px 0; text-align: left; }
  .routes, .routes--two { grid-template-columns: minmax(0, 1fr); margin-top: 32px; }
  .route { padding: 18px 8px; }
  .route + .route { border-left: 0; border-top: 1px solid var(--border); }
  .site-footer { flex-direction: column-reverse; align-items: flex-start; gap: 12px; padding: 32px var(--gutter); }
}
/* the smallest phones: prices step down so "$25,000 / month" fits its card */
@media (max-width: 374.98px) { .price { font-size: 44px; } }

/* =====================================================================
   case template (schedex, zaki, kenko, zunou, tabilog)
   ===================================================================== */
body.cs { background: var(--cs-bg); }
.page--sx { background-color: var(--cs-bg); }

/* navbar: project pill in the project's colour, the studio pill at the contact section */
.sx-nav--wide { position: fixed; top: 0; left: 0; z-index: 10; width: 100%; }
.sx-bar { width: 100%; display: flex; align-items: flex-start; gap: 8px; padding: 8px; border-radius: 64px; overflow: clip; }
.sx-logo-wrap { flex: 1 0 0; width: 1px; display: flex; align-items: center; gap: 32px; padding: 8px 8px 8px 5px; }
.sx-wrapper { flex: 1 0 0; width: 1px; display: flex; align-items: flex-start; gap: 10px; }
.sx-home { flex: none; display: flex; align-items: flex-start; gap: 10px; border-radius: var(--radius-full); }
.sx-nav-wrap { flex: 1 0 0; width: 1px; display: flex; flex-direction: column; align-items: flex-start; padding: 8px; }
.sx-nav .nav-bar { flex-direction: column; gap: 8px; transition: background-color var(--duration-moderate) var(--ease); }
.sx-nav .nav-row { width: 100%; display: flex; align-items: center; justify-content: center; }
.sx-nav .nav-links { flex: 1 0 0; width: 1px; min-width: min-content; display: flex; align-items: flex-start; gap: 4px; }
@media (max-width: 374.98px) { .sx-nav-small .btn-project .sx-icon { display: none; } .sx-nav-small .btn-project { padding-left: 14px; } }
.sx-spacer { flex: none; display: flex; align-items: center; border-radius: var(--radius-full); }
.btn-project { padding: 4px 16px 4px 4px; gap: 8px; background-color: rgba(var(--cs-accent), 0); }
.btn-project .txt { color: var(--on-pill); }
.btn-project:hover, .btn-visit:hover { background-color: rgba(var(--cs-accent), .6); }
.btn-visit { background-color: rgba(var(--cs-accent), 0); }
.sx-icon { position: relative; display: block; flex: none; width: 32px; aspect-ratio: 1 / 1; border-radius: var(--radius-full); }
.sx-icon .img-fill { display: block; }
.sx-nav[data-state="project"] .sx-bar-pill { background: linear-gradient(rgba(var(--cs-accent), .4), rgba(var(--cs-accent), .4)), var(--cs-bg); }
.sx-nav .sx-bar-pill a:focus-visible { outline-color: var(--cs-ink); }
.sx-nav[data-state="project"] .studio-only, .sx-nav[data-state="studio"] .project-only { display: none !important; }
/* in the project state the studio link is empty, so it leaves the layout and the tab order */
.sx-nav[data-state="project"] .sx-spacer { display: none; }
.sx-nav[data-state="project"] .nav-row { justify-content: space-between; }
.sx-nav--wide[data-state="project"] .sx-nav-wrap { flex: none; width: 50%; }
.sx-nav--wide[data-state="project"] .nav-links { height: 40px; }

/* sticky hero that dims once the project info scrolls past mid-screen */
.sx-content { position: relative; z-index: 1; width: 100%; display: flex; flex-direction: column; align-items: flex-start; }
.sx-showreel { position: sticky; top: 0; z-index: 1; width: 100%; height: 100vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; }
.marker--dot { width: 0%; flex: none; }
.sx-hero-wrap { width: 100%; display: flex; align-items: flex-end; justify-content: center; padding: var(--card-gap); }
.sx-hero-video { position: relative; flex: 1 0 0; width: 1px; height: auto; border-radius: var(--radius-lg); transition: opacity var(--duration-slow) var(--ease); }
.sx-hero-video video, .sx-hero-video img { width: 100%; height: 100%; border-radius: var(--radius-lg); object-fit: contain; object-position: 50% 50%; }
body[data-section="hero"] .sx-hero-video, body[data-section="contact"] .sx-hero-video { opacity: .1; }

/* project info */
.sx-info { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; padding: 0 var(--card-gap); }
.sx-info-inner { position: relative; z-index: 10; width: 100%; display: flex; flex-direction: column; background-color: var(--cs-bg); border: 1px solid var(--cs-line); border-radius: var(--radius-lg); }
.sx-hero { position: relative; width: 100%; display: flex; align-items: flex-start; justify-content: center; gap: 64px; padding: 36px 32px 32px; }
.sx-header { flex: 1 0 0; width: 1px; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 16px; }
.sx-title { max-width: 100%; font: 500 40px/1 "Clash Grotesk Medium", sans-serif; letter-spacing: -0.03em; color: var(--cs-ink); text-align: left; white-space: pre-wrap; overflow-wrap: break-word; }
.sx-side { flex: 1 0 0; width: 1px; display: flex; align-items: flex-start; justify-content: flex-end; gap: 16px; }
.sx-desc { flex: 1 0 0; width: 1px; max-width: 560px; font: 400 17px/1.45 var(--clash); color: var(--cs-ink); letter-spacing: 0; white-space: pre-wrap; overflow-wrap: break-word; word-break: break-word; }
.sx-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px; margin: 0 32px; padding: 28px 0 32px; border-top: 1px solid var(--cs-line); }
.sx-fact { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sx-fact .sx-label { margin-bottom: 4px; }
.sx-fact dd { margin: 0; }
.sx-label { width: 100%; font: 500 12px/100% var(--font-label); letter-spacing: -0.03em; color: var(--cs-label); white-space: pre-wrap; }
.sx-value { width: 100%; font: 400 16px/1.35 var(--clash); letter-spacing: 0; color: var(--cs-ink); white-space: pre-wrap; }

/* boards */
.sx-visuals { position: relative; z-index: 1; width: 100%; background-color: var(--cs-bg); display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-end; padding: var(--card-gap) var(--card-gap) 0; }
.sx-stack, .sx-col { width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--card-gap); }
.sx-pair { width: 100%; display: flex; align-items: center; justify-content: center; gap: var(--card-gap); }
.sx-card { position: relative; z-index: 10; width: 100%; flex: none; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; border-radius: var(--radius-lg); }
.sx-card::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 1px solid var(--cs-line); border-radius: inherit; pointer-events: none; }
.sx-card--wide { flex: 1 0 0; width: 1px; aspect-ratio: 1.77778 / 1; }
.sx-card--169 { aspect-ratio: 1.77778 / 1; }
.sx-card--auto { height: auto; overflow: hidden; }
/* tall boards keep a readable width instead of filling the screen */
.sx-card--portrait { width: min(100%, 760px); }
.sx-card--square { width: min(100%, 1040px); }
/* placeholders (empty slots, facts to confirm) show only in the review view: add ?review to a case url */
html:not(.review) .is-draft { display: none !important; }
html:not(.review) .sx-facts--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html:not(.review) .sx-fact--span { grid-column: span 2; }
html.review body::after {
  content: "review view: placeholders shown"; position: fixed; left: 16px; bottom: 16px; z-index: 50; padding: 9px 14px;
  border-radius: var(--radius-full); background: var(--foreground); color: var(--background);
  font: 500 12px/1 var(--font-label); letter-spacing: var(--tracking-label); text-transform: uppercase; pointer-events: none;
}
.sx-card--tint { background-color: var(--cs-tint); overflow: hidden; }
.sx-card .img-fill img { object-fit: cover; object-position: center; }
.sx-media { position: relative; flex: none; width: 100%; }
.sx-media--video video { width: 100%; height: 100%; object-fit: cover; }
.sx-section-txt { width: 100%; display: flex; align-items: flex-end; justify-content: flex-start; gap: 64px; padding: 64px 32px 48px; overflow: hidden; }

/* a board that has not arrived yet: what goes here, at what size, and where to drop it */
.sx-card.sx-slot { align-items: center; justify-content: center; background-color: var(--cs-tint); overflow: hidden; }
.sx-slot::before { content: ""; position: absolute; inset: var(--card-inset); border: 1.5px dashed rgba(var(--cs-accent), .5); border-radius: var(--radius-sm); pointer-events: none; }
.sx-slot-txt { position: relative; max-width: 600px; padding: 32px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.sx-slot-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 6px; border-radius: var(--radius-full); background: var(--cs-bg); border: 1px solid var(--cs-line); color: var(--cs-label); }
.sx-slot-icon svg { width: 20px; height: 20px; }
.sx-slot-txt .sx-label { width: auto; }
.sx-slot-what { font: 500 clamp(17px, 1.7vw, 24px)/1.3 var(--clash); color: var(--cs-ink); text-wrap: balance; }
.sx-slot-spec { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; margin-top: 4px; font: 500 12px/1.4 var(--font-label); color: var(--accent-foreground); }
.sx-chip { padding: 6px 10px; border-radius: var(--radius-full); background: var(--cs-bg); border: 1px solid var(--cs-line); }
.sx-slot-path { font: 500 13px/1.4 var(--clash); color: var(--cs-label); text-transform: none; letter-spacing: 0; }
.sx-value.sx-tbc { color: var(--accent-foreground); }

/* questions: a few plain answers about the project, for people and for answer engines */
.sx-qa { position: relative; z-index: 1; width: 100%; padding: 0 var(--card-gap); background-color: var(--cs-bg); }
.sx-qa-list { margin: 0 32px; border-top: 1px solid var(--cs-line); }
.sx-qa-item { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 10px 64px; padding: 28px 0; border-bottom: 1px solid var(--cs-line); }
.sx-qa-q { font: 500 20px/1.3 var(--clash); color: var(--cs-ink); text-wrap: balance; }
.sx-qa-a { max-width: 640px; font: 400 17px/1.5 var(--clash); color: var(--cs-ink); text-wrap: pretty; }
.sx-qa-a a { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--cs-ink), transparent 65%); text-underline-offset: 4px; transition: text-decoration-color var(--duration-default) var(--ease); }
@media (hover: hover) { .sx-qa-a a:hover { text-decoration-color: var(--accent); } }
@media (max-width: 767.98px) {
  .sx-qa-list { margin: 0 20px; }
  .sx-qa-item { grid-template-columns: minmax(0, 1fr); padding: 22px 0; }
  .sx-qa-q { font-size: 18px; }
}

/* next project: the homepage work card, in the page's own colours */
.sx-next { position: relative; z-index: 10; width: 100%; padding-bottom: 120px !important; background: linear-gradient(var(--cs-bg) calc(100% - 120px), transparent); display: flex; flex-direction: column; align-items: center; gap: 16px; padding: var(--section-space) var(--card-gap) 0; }
.sx-next .work-card { width: 100%; max-width: 580px; background-color: var(--cs-tint); }
.sx-next .work-card::after { border-color: var(--cs-line); }
.sx-next .work-card:hover { background-color: color-mix(in srgb, var(--cs-tint), black 3%); }

/* contact (case pages) */
.contact { position: relative; z-index: 10; width: 100%; height: 100vh; display: flex; flex-direction: column; align-items: flex-start; }
.contact .marker { position: relative; top: auto; }
.contact-inner { flex: 1 0 0; height: 1px; width: 100%; display: flex; align-items: flex-end; justify-content: flex-end; gap: 64px; padding: 32px; }
.contact-txt { flex: 1 0 0; width: 1px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.contact-line { font: 500 20px/1.2em var(--clash); color: var(--foreground); letter-spacing: 0; text-align: left; white-space: pre-wrap; }
.contact-link { display: flex; cursor: pointer; border-radius: var(--radius-sm); }
.contact-link .contact-line { white-space: pre; transition: color var(--duration-default) var(--ease); }
.contact-link:hover .contact-line { color: var(--accent-foreground); }
.contact-meta { flex: 1 0 0; width: 1px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.contact--sx .copyright { color: var(--cs-ink); }

/* case themes */
.cs--haku { --cs-bg: #faf9f5; --cs-ink: #1f1f1f; --cs-label: #6f6e68; --cs-accent: 62, 142, 90; --cs-line: rgba(228, 224, 212, .9); --cs-tint: #f4f2ea; }
.cs--zaki { --cs-bg: #fbfbfa; --cs-ink: #131313; --cs-label: #6b6b70; --cs-accent: 227, 38, 27; --cs-line: rgba(232, 232, 229, .95); --cs-tint: #f0f0ee; }
.cs--kenko { --cs-bg: #fffdfc; --cs-ink: #141313; --cs-label: #746964; --cs-accent: 7, 184, 242; --cs-line: rgba(230, 226, 224, .9); --cs-tint: #faf4f2; }
.cs--zunou { --cs-bg: #fbfafc; --cs-ink: #2b2d2d; --cs-label: #6b6480; --cs-accent: 74, 0, 224; --cs-line: rgba(233, 232, 236, .95); --cs-tint: #f1f0f2; }
.cs--tabilog { --cs-bg: #fffdfa; --cs-ink: #0b0b0f; --cs-label: #8a6a46; --cs-accent: 255, 149, 0; --cs-line: rgba(245, 226, 204, .9); --cs-tint: #fff4e6; }

@media (min-width: 768px) and (max-width: 1023.98px) {
  .sx-showreel { justify-content: flex-end; height: auto; padding-top: 64px; }
  body[data-section="hero"] .sx-hero-video, body[data-section="contact"] .sx-hero-video { opacity: 0; }
}
@media (max-width: 767.98px) {
  .sx-nav--wide { display: none; }
  .sx-showreel { position: relative; top: auto; height: auto; justify-content: flex-end; padding-top: 64px; }
  body[data-section="hero"] .sx-hero-video, body[data-section="contact"] .sx-hero-video { opacity: 1; }
  .sx-hero, .sx-section-txt { flex-direction: column; gap: 24px; }
  .sx-hero .sx-header, .sx-section-txt .sx-header { flex: none; width: 100%; }
  .sx-hero .sx-side { align-items: flex-start; align-self: auto; flex: none; width: 100%; height: auto; }
  .sx-side--min1, .sx-side--min2 { display: none; }
  .sx-section-txt { padding: 48px 20px 24px; }
  .sx-hero { padding: 28px 20px 24px; }
  .sx-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; margin: 0 20px; padding: 24px 0 28px; }
  .sx-slot-txt { padding: 20px; gap: 8px; }
  .sx-slot-icon { width: 40px; height: 40px; margin-bottom: 2px; }
  .sx-slot-what { font-size: 15px; }
  .contact-inner { flex-direction: column; gap: 32px; }
  .contact-txt { display: none; }
  .contact-meta { flex: none; width: 100%; flex-direction: column; align-items: flex-start; }
  .contact--sx .contact-txt { display: flex; flex: none; width: 100%; order: 0; }
  .contact--sx .contact-meta { order: 1; }
}
/* the narrowest phones: an empty slot keeps only its words */
@media (max-width: 399.98px) {
  .sx-slot-icon, .sx-slot-path { display: none; }
  .sx-slot-txt { padding: 12px; }
}

/* =====================================================================
   other pages: old-home, 404, calendar
   ===================================================================== */
body[data-page="old-home"] { background: #fffcf9; }
.page--old { height: 100vh; padding: 0 40px; background-color: #fffcf9; }
.old-center { position: relative; z-index: 9; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px; overflow: clip; }
.old-txt { display: flex; flex-direction: column; }
.old-txt.ghost { opacity: 0; }
.old-txt p, .old-txt h1 { font: 500 20px/1.2em var(--clash); letter-spacing: 0; color: rgb(37, 36, 35); text-align: center; white-space: pre-wrap; }
.old-txt p.soft { color: var(--soft-foreground); }
.old-txt p span { color: rgb(37, 36, 35); }
.old-txt a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color var(--duration-default) var(--ease); }
.old-txt a:hover { color: var(--accent-foreground); }
.old-logo { position: relative; width: 32px; height: 32px; flex: none; }
.only-phone { display: none; }

body[data-page="calendar"] { background: var(--background); }
.page--cal { height: 100vh; gap: 10px; overflow: clip; }
.cal-stage { position: relative; width: 100%; height: 100%; display: flex; align-items: flex-end; justify-content: center; padding: 88px 16px 16px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.cal-frame { position: relative; width: 100%; max-height: 100%; overflow: auto; }
/* calendar status: loading, then the calendar, or a way to reach joseph if it never arrives */
.cal-status { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; font: 500 16px/1.45 var(--clash); color: var(--muted-foreground); pointer-events: none; }
.cal-status[hidden] { display: none; }
.cal-status svg { width: 20px; height: 20px; color: var(--accent-foreground); }
.cal-status .spin { animation: spin var(--duration-loop) linear infinite; }
.cal-status a { color: var(--foreground); text-decoration: underline; text-underline-offset: 4px; pointer-events: auto; }
.cal-status .btn-pill { pointer-events: auto; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 768px) { .cal-frame { padding-bottom: 3px; } }
@media (min-width: 768px) and (max-width: 1023.98px) { .cal-stage { align-items: center; } }
@media (max-width: 767.98px) {
  .page--old { padding: 0 16px; }
  .only-wide { display: none; }
  .only-phone { display: block; }
  .cal-stage { flex-direction: column; justify-content: center; align-items: flex-end; padding: 92px 16px 16px; }
}

/* small uppercase labels: Clash, tracked, even figures (readable at 11 to 12px, where Doto's dots blurred) */
.doto-12, .doto-label, .copyright, .work-tags, .work-status, .quote-card figcaption, .label-sm, .hero-terms, .step-num, .phase-weeks, .phase-bar, .tl-ruler,
.price-k, .price-terms, .team-label, .team-role, .faq-group, .route-k, .copy-status, .sx-label, .sx-slot-spec, .think-num {
  letter-spacing: var(--tracking-label); text-transform: uppercase; font-variant-numeric: tabular-nums;
}

/* =====================================================================
   japanese pages (/ja/): kana and kanji read best untracked, with more leading and phrase-aware breaks
   ===================================================================== */
:lang(ja) { line-break: strict; word-break: auto-phrase; }
:lang(ja) * { letter-spacing: 0 !important; }
:lang(ja) * { text-transform: none !important; }  /* uppercase labels would turn Webサイト into WEBサイト */
:lang(ja) .price { letter-spacing: -0.03em !important; }
:lang(ja) .price-grid--four .price { font-size: clamp(30px, 2.6vw, 38px); }  /* yen runs longer than dollars: ¥2,000,000 fits the quarter cards */
:lang(ja) :is(p, li, dd, summary, .faq-q):not(.label-sm, .price, .price-k, .price-terms, .section-label, .copyright, .doto-label) { line-height: 1.7; }
:lang(ja) :is(h1, h2, h3, .statement, .sx-title, .price-title) { line-height: 1.35; }
.lang-link { color: inherit; text-decoration: underline; text-decoration-color: rgba(22, 22, 22, .3); text-underline-offset: 3px; transition: text-decoration-color var(--duration-default) var(--ease); }
@media (hover: hover) { .lang-link:hover { text-decoration-color: var(--accent); } }
