/* ==========================================================================
   Kaaf Studio
   Palette sampled from the hero footage: navy blazer, amber sweater,
   ring-light sky, on a cool paper canvas tinted toward the video's blue.
   ========================================================================== */

:root {
  color-scheme: light;

  /* color */
  --paper: #F2F5FA;
  --paper-2: #E6ECF5;
  --white: #FBFCFE;
  --ink: #141D38;
  --ink-2: #4A5573;
  --line: #D5DDEA;          /* decorative hairlines only */
  --line-strong: #6B7692;   /* interactive borders, >= 3:1 on paper */
  --blue: #1E5AA8;
  --blue-2: #2F74D0;
  --sky: #CFE7F6;
  --navy: #0F1A36;
  --navy-2: #172448;
  --navy-3: #22315C;
  --muted-d: #A9B4CE;       /* secondary text on navy, 8:1 */
  --amber: #EFA23A;
  --amber-2: #E08E1F;
  --amber-soft: #FCE3C7;
  --focus: #1E5AA8;

  /* type */
  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.25rem;
  --fs-lg: 1.5625rem;
  --fs-h2: clamp(2.1rem, 1.25rem + 3.2vw, 3.6rem);

  /* space (8px rhythm) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --gutter: clamp(16px, 3vw, 32px);
  --maxw: 1240px;
  --nav-h: 68px;
  --section-pad: clamp(48px, 7vw, 112px);

  /* shape */
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --r-xl: 32px;

  /* depth: lower tokens for resting cards, higher for floating windows */
  --shadow-1: 0 1px 2px rgba(20, 29, 56, .06), 0 4px 14px -4px rgba(20, 29, 56, .10);
  --shadow-2: 0 2px 6px rgba(20, 29, 56, .06), 0 22px 48px -18px rgba(20, 29, 56, .28);
  --shadow-3: 0 40px 90px -30px rgba(15, 26, 54, .55), 0 10px 28px -10px rgba(15, 26, 54, .30);

  /* motion */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur-1: 160ms;
  --dur-2: 280ms;
  --dur-3: 700ms;

  --tshadow: 0 1px 2px rgba(6, 12, 30, .9), 0 3px 12px rgba(6, 12, 30, .55), 0 10px 40px rgba(6, 12, 30, .5);
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  overflow-x: hidden;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, canvas, picture { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--blue); text-underline-offset: .2em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
.on-dark { --focus: #F6C679; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: fixed;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--dur-2) var(--ease-out);
}
.skip:focus-visible { transform: none; }

main:focus { outline: none; }

.wrap {
  width: min(100% - 2 * var(--gutter), var(--maxw));
  margin-inline: auto;
}

/* the one environment layer: dot grid + two slow glows behind everything */
.env {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(20, 29, 56, .075) 1px, transparent 1.3px);
  background-size: 24px 24px;
  overflow: hidden;
}
.env::before,
.env::after {
  content: "";
  position: absolute;
  width: 70vmax;
  aspect-ratio: 1;
  border-radius: 50%;
}
.env::before {
  inset-inline-start: -20vmax;
  inset-block-start: -25vmax;
  background: radial-gradient(closest-side, rgba(47, 116, 208, .13), transparent);
  animation: drift-a 90s var(--ease-in-out) infinite alternate;
  animation-delay: -20s;
}
.env::after {
  inset-inline-end: -25vmax;
  inset-block-end: -30vmax;
  background: radial-gradient(closest-side, rgba(239, 162, 58, .10), transparent);
  animation: drift-b 110s var(--ease-in-out) infinite alternate;
  animation-delay: -45s;
}
@keyframes drift-a { to { transform: translate(18vmax, 22vmax) scale(1.1); } }
@keyframes drift-b { to { transform: translate(-16vmax, -18vmax) scale(.92); } }

body.paused *, body.paused *::before, body.paused *::after { animation-play-state: paused !important; }

/* ---------- shared bits ---------- */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
}
.kicker::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.on-dark .kicker { color: #F6C679; }

.sec-head { display: grid; gap: var(--s4); max-width: 720px; }
.sec-head h2 { font-size: var(--fs-h2); }
.lede { font-size: var(--fs-md); line-height: 1.5; color: var(--ink-2); max-width: 56ch; }

.section { padding-block: var(--section-pad); position: relative; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform var(--dur-2) var(--ease-out),
    background-color var(--dur-2) var(--ease-out),
    box-shadow var(--dur-2) var(--ease-out),
    color var(--dur-2) var(--ease-out);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform var(--dur-2) var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(.99); }

.btn-accent { background: var(--amber); color: var(--ink); box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 8px 24px -10px rgba(224, 142, 31, .7); }
.btn-accent:hover { background: #F4AE4E; transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 14px 30px -12px rgba(224, 142, 31, .85); }

.btn-ghost { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1.5px rgba(242, 245, 250, .6); }
.btn-ghost:hover { background: rgba(242, 245, 250, .1); box-shadow: inset 0 0 0 1.5px rgba(242, 245, 250, .9); }

.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--navy-3); transform: translateY(-2px); }

.btn-sm { min-height: 44px; padding: 0 18px; font-size: .95rem; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}
.link-arrow svg { width: 18px; height: 18px; transition: transform var(--dur-2) var(--ease-out); }
.link-arrow:hover { text-decoration: underline; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  inset-block-start: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(242, 245, 250, .92);
  transition: box-shadow var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out);
}
.nav.is-scrolled { background: rgba(242, 245, 250, .97); box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(20, 29, 56, .35); }
.nav-in {
  height: 100%;
  width: min(100% - 2 * var(--gutter), 1400px);
  margin-inline: auto;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  min-height: 44px;
  margin-inline-end: auto;
}
.brand .mark { width: 36px; height: 36px; flex: none; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.28rem;
  letter-spacing: -0.03em;
  line-height: 1;
}
.brand-name span { font-weight: 500; color: var(--ink-2); margin-inline-start: .18em; }

.pupil { transition: transform 180ms var(--ease-out); transform-box: fill-box; transform-origin: center; }

/* the links live in a dropdown under the three-line icon at every screen size */
.nav nav { position: static; }
.nav-links {
  position: absolute;
  inset-block-start: calc(var(--nav-h) - 4px);
  inset-inline: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px;
  list-style: none;
  border-radius: var(--r);
  background: var(--white);
  box-shadow: var(--shadow-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out), visibility 0s linear var(--dur-2);
}
.nav.open .nav-links { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
@media (min-width: 761px) {
  .nav-links { inset-inline: 0 auto; width: 300px; }
}
.nav-links a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  transition: background-color var(--dur-1) var(--ease-out);
}
.nav-links a:hover { background: rgba(20, 29, 56, .06); }
/* three-line menu icon, far left; turns into an X when open */
.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  margin-inline-start: -10px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color var(--dur-1) var(--ease-out);
}
.menu-btn:hover { background: rgba(20, 29, 56, .06); }
.menu-btn .bars {
  position: relative;
  width: 22px;
  height: 16px;
  background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
  transition: background-size var(--dur-2) var(--ease-out);
}
.menu-btn .bars::before,
.menu-btn .bars::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur-2) var(--ease-out);
}
.menu-btn .bars::before { inset-block-start: 0; }
.menu-btn .bars::after { inset-block-end: 0; }
.nav.open .menu-btn .bars { background-size: 0 2px; }
.nav.open .menu-btn .bars::before { transform: translateY(7px) rotate(45deg); }
.nav.open .menu-btn .bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- windows (browser chrome) ---------- */

.window {
  position: relative;
  border-radius: var(--r-lg);
  background: var(--navy);
  box-shadow: var(--shadow-3);
  overflow: hidden;
  isolation: isolate;
}

.chrome {
  display: flex;
  align-items: center;
  gap: var(--s4);
  height: 46px;
  padding-inline: 18px;
  flex: none;
  color: var(--muted-d);
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.dots { display: inline-flex; gap: 7px; flex: none; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #EF6B57; }
.dots i:nth-child(2) { background: var(--amber); }
.dots i:nth-child(3) { background: #4CB782; }
.url {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.url svg { width: 12px; height: 12px; flex: none; opacity: .8; }
.chrome .url { margin-inline: auto; }

.chrome-light {
  height: 36px;
  gap: 12px;
  padding-inline: 14px;
  background: #E3E9F3;
  color: var(--ink-2);
  font-size: 11.5px;
}
.chrome-light .dots i { width: 9px; height: 9px; }
.chrome-light .url { background: var(--white); padding: 4px 12px; margin-inline: auto; box-shadow: 0 0 0 1px rgba(20, 29, 56, .06); }
.chrome-light .spacer { width: 41px; flex: none; }

/* ---------- hero ---------- */

.hero { padding: 4px var(--gutter) 0; }

.hero-window {
  width: min(100%, 1680px);
  margin-inline: auto;
  height: clamp(560px, calc(100svh - var(--nav-h) - 12px), 980px);
  display: flex;
  flex-direction: column;
}

@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(239, 162, 58, .55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(239, 162, 58, 0); } }
.chrome-balance { width: 47px; flex: none; }

.stage { position: relative; flex: 1; min-height: 0; background: #1B4F8E; }
.stage-media { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(160deg, #235F8D, #1B3F78); }
.stage-media img,
.stage-media canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}
.stage-media canvas { opacity: 0; transform: translateZ(0); transition: opacity 400ms var(--ease-out); }
.stage.is-drawing .stage-media canvas { opacity: 1; }

.stage-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(8, 14, 34, .92) 0%, rgba(8, 14, 34, .78) 18%, rgba(8, 14, 34, .38) 36%, rgba(8, 14, 34, 0) 54%),
    radial-gradient(ellipse 60% 55% at 12% 100%, rgba(8, 14, 34, .5), rgba(8, 14, 34, 0) 70%),
    radial-gradient(ellipse 120% 90% at 50% 40%, rgba(8, 14, 34, 0) 55%, rgba(8, 14, 34, .35) 100%);
}

.hero-copy {
  position: absolute;
  inset-inline: clamp(24px, 4vw, 64px);
  inset-block-end: clamp(24px, 3.6vw, 52px);
  display: grid;
  gap: var(--s4);
  color: var(--paper);
  text-shadow: var(--tshadow);
}
.hero-copy .btn { text-shadow: none; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #F8D7A6;
}
.hero h1 {
  font-size: clamp(2.6rem, min(5.3vw, 8.6vh), 5.75rem);
  font-weight: 750;
  line-height: .97;
  letter-spacing: -0.035em;
  max-width: 11.5em;
}
.hero h1 em { font-style: normal; color: #F8C77E; }
.hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s5) var(--s6);
  margin-block-start: var(--s2);
}
.hero-sub { max-width: 50ch; font-size: var(--fs-md); line-height: 1.5; color: rgba(242, 245, 250, .9); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--s3); }

/* quiet scroll cue instead of a second big button */
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  color: var(--paper);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .01em;
  text-decoration: none;
}
.cue-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px rgba(242, 245, 250, .45);
  transition: background-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.cue-icon svg { width: 16px; height: 16px; animation: cue-bob 2.6s var(--ease-in-out) infinite; animation-delay: -.6s; }
@keyframes cue-bob { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
.cue-text { padding-block-end: 2px; border-block-end: 1px solid rgba(242, 245, 250, .35); transition: border-color var(--dur-2) var(--ease-out); }
.scroll-cue:hover .cue-icon { background: rgba(242, 245, 250, .1); box-shadow: inset 0 0 0 1.5px rgba(242, 245, 250, .85); }
.scroll-cue:hover .cue-text { border-color: rgba(242, 245, 250, .85); }

/* hero load-in */
.js .hero-copy > * { opacity: 0; transform: translateY(18px); }
.js .hero-copy.in > * {
  opacity: 1;
  transform: none;
  transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out);
}
.js .hero-copy.in > :nth-child(2) { transition-delay: 90ms; }
.js .hero-copy.in > :nth-child(3) { transition-delay: 200ms; }

/* ---------- marquee ---------- */

.marquee {
  margin-block-start: clamp(40px, 6vw, 72px);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 0;
}
.marquee.is-on .marquee-track { animation: marquee 70s linear infinite; }
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding-inline-end: 28px;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1rem + 1.4vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}
.marquee-track span::after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px var(--amber-soft);
}
.marquee-track span:nth-child(even) { color: var(--ink-2); font-weight: 500; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- proof (experience numbers) ---------- */

.proof { padding-block: clamp(72px, 9vw, 128px) 0; }
.proof-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.45fr); gap: var(--s6) clamp(40px, 6vw, 96px); align-items: end; }
.proof .sec-head h2 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 2.9rem); }
.stats { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block-start: 1px solid var(--line); }
.stat { display: grid; align-content: start; gap: var(--s2); padding: var(--s5) var(--s4) 0; border-inline-start: 1px solid var(--line); }
.stat:first-child { border-inline-start: 0; padding-inline-start: 0; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 1.6rem + 3.4vw, 4.6rem);
  font-weight: 750;
  line-height: .95;
  letter-spacing: -0.04em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat-label { max-width: 20ch; font-size: var(--fs-sm); line-height: 1.4; color: var(--ink-2); }

/* ---------- team ---------- */

.team-head { display: grid; justify-items: center; gap: var(--s4); max-width: 760px; margin: 0 auto clamp(48px, 6vw, 80px); text-align: center; }
.team-head .sec-head { justify-items: center; }
.team-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); align-items: start; }
.member {
  display: grid;
  gap: var(--s3);
  align-content: start;
  padding: clamp(24px, 3vw, 34px);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line);
  transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease-out);
}
.member:hover { transform: translateY(-4px); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line); }
.member-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-block-end: var(--s2); border-radius: 16px; background: var(--sky); color: var(--blue); }
.member-icon svg { width: 26px; height: 26px; }
.member-role { font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.member h3 { font-size: clamp(1.3rem, 1.1rem + .6vw, 1.55rem); line-height: 1.15; }
.member > p:not(.member-role) { color: var(--ink-2); }
.skills { display: flex; flex-wrap: wrap; gap: 6px; margin-block-start: var(--s2); list-style: none; }
.skills li { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); font-size: var(--fs-xs); font-weight: 500; color: var(--ink); }


/* ---------- why a website matters ---------- */

.why-head { margin-inline: auto; justify-items: center; text-align: center; max-width: 820px; margin-block-end: clamp(40px, 5vw, 64px); }
.why-head .lede { max-width: 60ch; }

.journey {
  margin: 0;
  padding: clamp(22px, 3vw, 36px) clamp(20px, 3.5vw, 44px);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-2);
}
.journey-cap { margin-block-end: var(--s5); font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--blue); text-align: center; }
.journey-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s5); list-style: none; }
.journey-steps li { position: relative; display: grid; justify-items: center; align-content: start; gap: 12px; text-align: center; }
/* thin line joining one step's icon to the next */
.journey-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  inset-block-start: 21px;
  inset-inline-start: calc(50% + 30px);
  inset-inline-end: calc(-50% - var(--s5) + 30px);
  height: 2px;
  border-radius: 2px;
  background: var(--sky);
}
.j-icon { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--sky); color: var(--blue); }
.j-icon svg { width: 20px; height: 20px; }
.j-text { display: grid; gap: 2px; }
.j-text b { font-family: var(--font-display); font-size: 1.1rem; font-weight: 650; letter-spacing: -0.01em; color: var(--ink); }
.j-text span { max-width: 22ch; font-size: var(--fs-sm); line-height: 1.45; color: var(--ink-2); }
.journey-steps li.win .j-icon { background: var(--amber); color: var(--ink); box-shadow: 0 0 0 6px var(--amber-soft); }
.journey-note { margin-block-start: var(--s5); padding-block-start: var(--s4); border-block-start: 1px solid var(--line); text-align: center; font-size: var(--fs-sm); font-weight: 500; color: var(--ink-2); }

.why-benefits { margin-block-end: clamp(64px, 8vw, 104px); }
.benefits-head { display: grid; justify-items: center; gap: var(--s3); margin-block-end: clamp(28px, 4vw, 48px); text-align: center; }
.benefits-head h2 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem); }
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5) clamp(24px, 3.5vw, 48px); list-style: none; }
.why-item { display: grid; grid-template-columns: 44px 1fr; gap: 4px 16px; align-content: start; padding-block-start: var(--s5); border-block-start: 1px solid var(--line); }
.why-icon { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #F6C679; }
.why-icon svg { width: 22px; height: 22px; }
.why-item h3 { font-size: 1.2rem; letter-spacing: -0.01em; line-height: 1.3; padding-block-start: 2px; }
.why-item p { font-size: var(--fs-sm); line-height: 1.55; color: var(--ink-2); }

/* ---------- website types: explanations ---------- */

.does-label { margin-block-start: var(--s5); font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.does { display: grid; gap: 10px; margin-block-start: var(--s3); list-style: none; }
.does li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-weight: 500; color: var(--ink); line-height: 1.45; }
.does li::before {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E5AA8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-8.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}


@media (max-width: 960px) {
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .journey-cap { text-align: start; }
  .journey-steps { grid-template-columns: 1fr; gap: 16px; }
  .journey-steps li { grid-template-columns: 44px 1fr; justify-items: start; align-items: center; column-gap: 14px; text-align: start; }
  .journey-steps li:not(:last-child)::after { inset-block-start: 44px; inset-block-end: -16px; inset-inline-start: 21px; inset-inline-end: auto; width: 2px; height: auto; }
  .j-text span { max-width: none; }
  .journey-note { text-align: start; }
}
@media (max-width: 640px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* ---------- website types explorer ---------- */

.types .sec-head { margin-block-end: clamp(40px, 5vw, 64px); }

.explorer {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: clamp(24px, 3.5vw, 48px);
  align-items: start;
}

.tablist {
  position: sticky;
  inset-block-start: calc(var(--nav-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tab {
  position: relative;
  display: grid;
  gap: 2px;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px 12px 20px;
  border: 0;
  border-radius: var(--r);
  background: transparent;
  text-align: start;
  cursor: pointer;
  transition: background-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.tab::before {
  content: "";
  position: absolute;
  inset-inline-start: 8px;
  inset-block: 14px;
  width: 3px;
  border-radius: 3px;
  background: var(--blue);
  transform: scaleY(0);
  transition: transform var(--dur-2) var(--ease-out);
}
.tab:hover { background: rgba(251, 252, 254, .65); }
.tab[aria-selected="true"] { background: var(--white); box-shadow: var(--shadow-1); }
.tab[aria-selected="true"]::before { transform: scaleY(1); }
.tab-name { font-family: var(--font-display); font-size: 1.08rem; font-weight: 650; letter-spacing: -0.01em; color: var(--ink); line-height: 1.25; }
.tab-hint { font-size: .875rem; color: var(--ink-2); line-height: 1.35; }

.panel { display: grid; gap: clamp(24px, 3vw, 36px); }
.panel[hidden] { display: none; }
.panel:focus-visible { outline-offset: 8px; border-radius: var(--r-lg); }
.js .panel.enter .window { animation: panel-in 600ms var(--ease-out) both; }
.js .panel.enter .panel-info { animation: panel-in 600ms var(--ease-out) 80ms both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(14px); } }

.panel .window { background: var(--white); border-radius: 18px; box-shadow: var(--shadow-2); }

.panel-info {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: var(--s5) clamp(24px, 4vw, 56px);
  align-items: start;
}
.panel-info h3 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); margin-block-end: var(--s3); }
.panel-info p { color: var(--ink-2); font-size: 1.0625rem; max-width: 52ch; }
.panel-info .link-arrow { margin-block-start: var(--s3); }

.meta { display: grid; gap: var(--s4); margin: 0; }
.meta > div { display: grid; gap: 4px; padding-block-end: var(--s4); border-block-end: 1px solid var(--line); }
.meta > div:last-child { border-block-end: 0; padding-block-end: 0; }
.meta dt { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.meta dd { margin: 0; font-weight: 500; color: var(--ink); }

/* ---------- wireframes (layout sketches) ---------- */

.wf {
  --a: #1E5AA8;
  --s: #DCE7F7;
  --t: #141D38;
  --bg: #FFFFFF;
  position: relative;
  aspect-ratio: 16 / 10;
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  overflow: hidden;
}
.wf .l { display: block; flex: none; width: var(--w, 20cqw); height: 1.05cqw; border-radius: 1cqw; background: color-mix(in srgb, var(--t) 15%, transparent); }
.wf .l.h { height: 2.5cqw; background: color-mix(in srgb, var(--t) 85%, transparent); }
.wf .l.m { height: 1.55cqw; background: color-mix(in srgb, var(--t) 55%, transparent); }
.wf .l.a { background: var(--a); }
.wf .l.inv { background: rgba(255, 255, 255, .42); }
.wf .l.h.inv, .wf .l.m.inv { background: rgba(255, 255, 255, .95); }
.wf .l.xl { height: 4.6cqw; border-radius: .8cqw; background: var(--t); }
.wf .pill { display: block; flex: none; width: var(--w, 11cqw); height: 3.2cqw; border-radius: 3cqw; background: var(--a); }
.wf .pill.o { background: transparent; box-shadow: inset 0 0 0 .22cqw var(--a); }
.wf .pill.sm { height: 2.3cqw; }
.wf .ph {
  position: relative;
  overflow: hidden;
  border-radius: .9cqw;
  background: linear-gradient(140deg, var(--s) 0%, color-mix(in srgb, var(--a) 40%, var(--s)) 100%);
}
.wf .ph::before {
  content: "";
  position: absolute;
  inset-inline-start: 16%;
  inset-block-start: 18%;
  width: max(10%, 2cqw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, .72);
}
.wf .ph::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 50%;
  background: color-mix(in srgb, var(--a) 42%, transparent);
  clip-path: polygon(0 100%, 0 62%, 22% 18%, 42% 60%, 60% 32%, 82% 70%, 100% 42%, 100% 100%);
}
.wf .ph.plain::before, .wf .ph.plain::after { display: none; }
.wf .dot { flex: none; width: 3.2cqw; height: 3.2cqw; border-radius: 50%; background: var(--s); }
.wf .dot.sm { width: 2.2cqw; height: 2.2cqw; }
.wf .card { display: flex; flex-direction: column; gap: .9cqw; padding: 1.4cqw; border-radius: .9cqw; background: #fff; box-shadow: 0 0 0 .14cqw color-mix(in srgb, var(--t) 10%, transparent), 0 .6cqw 1.6cqw -.8cqw color-mix(in srgb, var(--t) 25%, transparent); }
.wf .bar { display: flex; align-items: center; gap: 1.6cqw; flex: none; height: 6.4cqw; padding-inline: 3.5cqw; }
.wf .logo { flex: none; width: 7cqw; height: 2.2cqw; border-radius: .6cqw; background: var(--t); }
.wf .logo.inv { background: #fff; }
.wf .grow { flex: 1; }
.wf .stack { display: flex; flex-direction: column; gap: 1.1cqw; }
.wf .row { display: flex; align-items: center; gap: 1.2cqw; }
.wf .sec { padding: 2.2cqw 3.5cqw; }
.wf .center { align-items: center; text-align: center; }
.wf .field { display: flex; align-items: center; flex: none; height: 3.4cqw; padding-inline: 1.2cqw; border-radius: 3cqw; background: #fff; box-shadow: 0 0 0 .14cqw color-mix(in srgb, var(--t) 14%, transparent); }

.note {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: .7em;
  padding: .55em .95em .55em .75em;
  border-radius: 999px;
  background: var(--ink);
  color: #F5F7FB;
  font-family: var(--font-mono);
  font-size: clamp(9.5px, 1.3cqw, 12.5px);
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 6px 18px -6px rgba(20, 29, 56, .55);
}
.note::before {
  content: "";
  flex: none;
  width: .7em;
  height: .7em;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 .25em rgba(239, 162, 58, .3);
}
.js .panel.enter .note { animation: note-in 500ms var(--ease-out) both; animation-delay: calc(260ms + var(--i, 0) * 110ms); }
@keyframes note-in { from { opacity: 0; transform: translateY(6px) scale(.94); } }
@container (max-width: 460px) { .note { display: none; } }

/* business */
.wf-business .hero2 { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3cqw; height: 25cqw; padding: 1.4cqw 3.5cqw 2.4cqw; }
.wf-business .hero2 .stack { justify-content: center; }
.wf-business .logos { display: flex; justify-content: space-between; align-items: center; height: 6cqw; margin-inline: 3.5cqw; border-block: .14cqw solid color-mix(in srgb, var(--t) 10%, transparent); }
.wf-business .logos .l { opacity: .6; }
.wf-business .cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqw; }

/* store */
.wf-store .announce { display: flex; justify-content: center; align-items: center; flex: none; height: 3.2cqw; background: var(--a); }
.wf-store .search { width: 30cqw; justify-content: flex-start; }
.wf-store .cart { position: relative; }
.wf-store .cart::after { content: ""; position: absolute; inset-inline-end: -.4cqw; inset-block-start: -.4cqw; width: 1.4cqw; height: 1.4cqw; border-radius: 50%; background: var(--a); }
.wf-store .banner { height: 19cqw; margin: .6cqw 3.5cqw 0; }
.wf-store .banner .card { position: absolute; z-index: 1; inset-block: 50% auto; inset-inline-start: 3cqw; transform: translateY(-50%); width: 26cqw; }
.wf-store .cats { display: flex; justify-content: space-between; padding: 2cqw 5cqw 1cqw; }
.wf-store .cats .stack { align-items: center; gap: .8cqw; }
.wf-store .cats .dot { width: 5cqw; height: 5cqw; }
.wf-store .products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6cqw; padding: 1.2cqw 3.5cqw; }
.wf-store .products .ph { height: 11cqw; }

/* landing */
.wf-landing .dark { display: flex; flex-direction: column; flex: none; height: 36cqw; background: radial-gradient(ellipse 70% 80% at 50% 0%, #25325E, var(--t)); }
.wf-landing .dark .stack { flex: 1; justify-content: center; align-items: center; gap: 1.3cqw; padding-block-end: 2cqw; }
.wf-landing .stars { display: flex; gap: .5cqw; }
.wf-landing .stars i { width: 1.3cqw; height: 1.3cqw; border-radius: 50%; background: var(--a); }
.wf-landing .benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3cqw; padding: 3cqw 5cqw 2cqw; }
.wf-landing .benefits .dot { background: var(--s); }
.wf-landing .quote { display: flex; align-items: center; gap: 2cqw; margin: 0 5cqw; padding: 1.8cqw 2.4cqw; border-radius: 1cqw; background: var(--s); }
.wf-landing .quote b { font: 700 6cqw/0.6 Georgia, serif; color: var(--a); }

/* portfolio */
.wf-portfolio .intro { display: flex; flex-direction: column; gap: 1.3cqw; padding: 2cqw 3.5cqw 2.6cqw; }
.wf-portfolio .intro .row { margin-block-start: .6cqw; }
.wf-portfolio .avail { width: 1.4cqw; height: 1.4cqw; border-radius: 50%; background: #3FB27F; }
.wf-portfolio .works { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: 11.5cqw 11.5cqw; gap: 1.6cqw; padding-inline: 3.5cqw; }
.wf-portfolio .works .ph:nth-child(1) { grid-row: span 2; background: linear-gradient(160deg, #D9D6CF, #8F8A80); }
.wf-portfolio .works .ph:nth-child(2) { background: linear-gradient(160deg, #F0C9B8, #E4572E); }
.wf-portfolio .works .ph:nth-child(3) { background: linear-gradient(160deg, #E8E6E1, #B7B3AA); }
.wf-portfolio .works .ph:nth-child(4) { grid-column: 2 / 4; background: linear-gradient(160deg, #C9CBD1, #4A4F5C); }
.wf-portfolio .works .ph::after { background: rgba(0, 0, 0, .12); }

/* restaurant */
.wf-restaurant .food { position: relative; display: flex; flex-direction: column; flex: none; height: 31cqw; background: linear-gradient(165deg, #3E2016 0%, #8E3A22 55%, #D98B4A 100%); }
.wf-restaurant .food::after { content: ""; position: absolute; inset-inline-end: 8cqw; inset-block-start: 7cqw; width: 18cqw; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 40% 38%, #F6E7CF 0 30%, #E9C79A 31% 44%, #F4EFE6 45% 62%, rgba(255, 255, 255, .15) 63% 100%); opacity: .9; }
.wf-restaurant .food .stack { flex: 1; justify-content: center; padding-inline: 5cqw; gap: 1.2cqw; }
.wf-restaurant .reserve { position: absolute; z-index: 1; inset-inline: 7cqw; inset-block-end: -3.2cqw; display: flex; align-items: center; gap: 2cqw; height: 6.4cqw; padding-inline: 2.4cqw 1.2cqw; border-radius: 1cqw; background: #fff; box-shadow: 0 1cqw 2.4cqw -1cqw rgba(0, 0, 0, .35); }
.wf-restaurant .reserve .stack { gap: .6cqw; flex: 1; }
.wf-restaurant .reserve .div { width: .14cqw; height: 3.4cqw; background: color-mix(in srgb, var(--t) 12%, transparent); }
.wf-restaurant .menu { display: grid; grid-template-columns: 1fr 1fr; gap: 1cqw 5cqw; padding: 6cqw 5cqw 1cqw; }
.wf-restaurant .item { display: flex; align-items: center; gap: 1cqw; }
.wf-restaurant .item .lead { flex: 1; border-block-end: .2cqw dotted color-mix(in srgb, var(--t) 30%, transparent); }

/* saas */
.wf-saas .hero3 { gap: 1.2cqw; padding: 2.4cqw 3.5cqw 0; }
.wf-saas .shot { display: grid; grid-template-columns: 12cqw 1fr; gap: 1.6cqw; width: 74cqw; height: 30cqw; margin: 2.8cqw auto 0; padding: 1.6cqw; border-radius: 1.2cqw; background: #fff; box-shadow: 0 0 0 .14cqw color-mix(in srgb, var(--t) 10%, transparent), 0 2cqw 4cqw -2cqw color-mix(in srgb, var(--a) 60%, transparent); }
.wf-saas .side { display: flex; flex-direction: column; gap: 1.2cqw; padding: 1.2cqw; border-radius: .8cqw; background: var(--s); }
.wf-saas .tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2cqw; }
.wf-saas .chart { display: flex; align-items: flex-end; gap: 1.1cqw; height: 11cqw; margin-block-start: 1.6cqw; padding: 1.2cqw 1.4cqw 0; border-radius: .8cqw; background: color-mix(in srgb, var(--s) 45%, #fff); }
.wf-saas .chart i { flex: 1; border-radius: .5cqw .5cqw 0 0; background: var(--a); opacity: .85; }
.wf-saas .chart i:nth-child(odd) { opacity: .45; }

/* blog */
.wf-blog .mast { display: flex; flex-direction: column; align-items: center; gap: 1.6cqw; padding-block: 2.4cqw 0; }
.wf-blog .topics { display: flex; justify-content: center; gap: 2.4cqw; width: calc(100% - 7cqw); padding-block: 1.2cqw; border-block: .14cqw solid color-mix(in srgb, var(--t) 12%, transparent); }
.wf-blog .featured { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2.6cqw; padding: 2.4cqw 3.5cqw 1.6cqw; }
.wf-blog .featured .ph { height: 19cqw; }
.wf-blog .featured .stack { justify-content: center; }
.wf-blog .lower { display: grid; grid-template-columns: 1fr 1fr 1fr 1.15fr; gap: 1.6cqw; padding-inline: 3.5cqw; }
.wf-blog .lower .ph { height: 7cqw; }
.wf-blog .news { display: flex; flex-direction: column; gap: 1cqw; padding: 1.6cqw; border-radius: .9cqw; background: var(--s); }

/* real estate */
.wf-estate .search-hero { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2cqw; height: 19cqw; margin: 0 3.5cqw; border-radius: 1cqw; background: linear-gradient(160deg, #9CCBB3, #2E7D5B 70%, #1F5A41); overflow: hidden; }
.wf-estate .search-hero::before { content: ""; position: absolute; inset: auto 0 0 0; height: 55%; background: rgba(255, 255, 255, .14); clip-path: polygon(0 100%, 0 55%, 10% 55%, 10% 30%, 18% 30%, 18% 48%, 30% 48%, 30% 18%, 40% 18%, 40% 44%, 56% 44%, 56% 26%, 66% 26%, 66% 52%, 78% 52%, 78% 34%, 90% 34%, 90% 58%, 100% 58%, 100% 100%); }
.wf-estate .sbar { position: relative; z-index: 1; display: flex; align-items: center; gap: 1.6cqw; width: 64cqw; height: 5.6cqw; padding-inline: 2cqw 1cqw; border-radius: 1cqw; background: #fff; }
.wf-estate .sbar .div { width: .14cqw; height: 3cqw; background: color-mix(in srgb, var(--t) 12%, transparent); }
.wf-estate .split { display: grid; grid-template-columns: .9fr 1.3fr; gap: 2cqw; padding: 2cqw 3.5cqw; }
.wf-estate .map { position: relative; height: 27cqw; border-radius: 1cqw; background-color: var(--s); background-image: linear-gradient(color-mix(in srgb, var(--a) 14%, transparent) .14cqw, transparent .14cqw), linear-gradient(90deg, color-mix(in srgb, var(--a) 14%, transparent) .14cqw, transparent .14cqw); background-size: 4cqw 4cqw; overflow: hidden; }
.wf-estate .map::before { content: ""; position: absolute; inset-inline: -10%; inset-block-start: 55%; height: 2.2cqw; background: #fff; transform: rotate(-14deg); opacity: .9; }
.wf-estate .pin { position: absolute; z-index: 1; padding: .5cqw .8cqw; border-radius: .6cqw; background: var(--a); box-shadow: 0 .4cqw 1cqw -.3cqw rgba(0, 0, 0, .4); }
.wf-estate .pin .l { width: 4cqw; }
.wf-estate .listings { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6cqw; }
.wf-estate .listings .card { padding: 1cqw; gap: .8cqw; }
.wf-estate .listings .ph { height: 6.4cqw; }

/* ---------- work ---------- */

.work .sec-head { margin-block-end: clamp(40px, 5vw, 64px); }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.work-card { display: grid; gap: var(--s5); align-content: start; }
.work-card.feature { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }

.shot { border-radius: 18px; background: var(--white); box-shadow: var(--shadow-2); transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease-out); }
.work-card:hover .shot { transform: translateY(-6px); box-shadow: var(--shadow-3); }
.shot-view { position: relative; aspect-ratio: 16 / 10; overflow: hidden; container-type: inline-size; }
.shot-page { position: absolute; inset: 0 0 auto 0; height: 175%; transition: transform 1.4s var(--ease-in-out); }
.work-card:hover .shot-page { transform: translateY(-42.8%); transition-duration: 5s; }

/* the live demo card: a real screenshot, links straight to the site */
a.shot { display: block; color: inherit; text-decoration: none; }
.shot-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.work-card.live:hover .shot-img { transform: scale(1.04); }
.live-badge { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: rgba(12, 14, 17, .78); color: #F5EBDD; font-family: var(--font-mono); font-size: 12px; backdrop-filter: blur(6px); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #EE7A2F; box-shadow: 0 0 0 0 rgba(238, 122, 47, .6); animation: live 2.4s var(--ease-out) infinite; animation-delay: -1s; }
.work-cta { justify-self: start; margin-block-start: var(--s2); }

.work-info { display: grid; gap: var(--s3); align-content: start; }
.work-tags { display: flex; flex-wrap: wrap; gap: var(--s2); }
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--ink-2);
}
.tag.concept { background: var(--amber-soft); box-shadow: none; color: #6B3F05; }
.work-info h3 { font-size: clamp(1.5rem, 1.1rem + 1.1vw, 2.1rem); }
.work-info p { color: var(--ink-2); max-width: 48ch; }
.did { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; font-size: var(--fs-sm); color: var(--ink); }
.did li { display: inline-flex; align-items: center; gap: 8px; }
.did li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }

/* mock pages share cqw sizing so they scale with the card */
.mock { height: 100%; display: flex; flex-direction: column; font-family: var(--font-body); }
.mock-nav { display: flex; align-items: center; gap: 3cqw; height: 9cqw; padding-inline: 5cqw; flex: none; font-size: 1.9cqw; }
.mock-nav .wm { margin-inline-end: auto; font-family: var(--font-display); font-weight: 800; font-size: 2.8cqw; letter-spacing: -0.02em; }
.mock-btn { display: inline-flex; align-items: center; justify-content: center; height: 5.6cqw; padding-inline: 3.4cqw; border-radius: 99px; font-size: 1.9cqw; font-weight: 600; white-space: nowrap; }
.mock h4 { font-family: var(--font-display); font-weight: 750; letter-spacing: -0.03em; line-height: .98; }
.mock p { font-size: 2.1cqw; line-height: 1.45; }

/* Larkspur & Clay: handmade ceramics store */
.mock-larkspur { background: #FBF8F4; color: #26305E; }
.mock-larkspur .mock-nav .wm { letter-spacing: .16em; font-size: 2.1cqw; }
.mock-larkspur .mock-nav .cartc { width: 4.6cqw; height: 4.6cqw; border-radius: 50%; background: #26305E; }
.mock-larkspur .k-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 4cqw; padding: 3cqw 5cqw 5cqw; align-items: center; }
.mock-larkspur .k-label { font-family: var(--font-mono); font-size: 1.6cqw; letter-spacing: .12em; text-transform: uppercase; color: #B5532E; }
.mock-larkspur h4 { font-size: 6.4cqw; margin: 1.6cqw 0 2cqw; }
.mock-larkspur .k-hero p { color: #515A80; margin-block-end: 3cqw; }
.mock-larkspur .mock-btn { background: #E8A33D; color: #26305E; }
.mock-larkspur .arch { position: relative; height: 38cqw; border-radius: 20cqw 20cqw 1.4cqw 1.4cqw; background: linear-gradient(170deg, #F1C274, #E8A33D 45%, #B5532E); overflow: hidden; }
.mock-larkspur .pot { position: absolute; inset-inline-start: 50%; inset-block-end: 4cqw; width: 18cqw; height: 18cqw; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #3E4C8C, #26305E 65%); }
.mock-larkspur .pot::before { content: ""; position: absolute; inset-inline-start: 50%; inset-block-start: -4cqw; width: 8cqw; height: 6cqw; transform: translateX(-50%); border-radius: 1cqw 1cqw 0 0; background: #26305E; }
.mock-larkspur .pot::after { content: ""; position: absolute; inset: 38% 8% auto; height: 2cqw; border-block: .6cqw dotted #F1C274; }
.mock-larkspur .k-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3cqw; padding: 2cqw 5cqw 5cqw; }
.mock-larkspur .k-item { display: grid; gap: 1.2cqw; font-size: 2cqw; }
.mock-larkspur .k-item i { display: block; aspect-ratio: 1; border-radius: 1.4cqw; background: #EFE6DA; position: relative; }
.mock-larkspur .k-item:nth-child(1) i { background: radial-gradient(ellipse 34% 20% at 50% 58%, #2F5BA8 0 60%, transparent 62%), #EFE6DA; }
.mock-larkspur .k-item:nth-child(2) i { background: radial-gradient(ellipse 18% 30% at 50% 56%, #B5532E 0 70%, transparent 72%), #F3E1CF; }
.mock-larkspur .k-item:nth-child(3) i { background: repeating-linear-gradient(45deg, #26305E 0 1.2cqw, #E8A33D 1.2cqw 2.4cqw); background-clip: content-box; padding: 5cqw; }
.mock-larkspur .k-item b { font-weight: 600; }
.mock-larkspur .k-item span { color: #B5532E; font-weight: 600; }
.mock-larkspur .k-band { margin: 0 5cqw; padding: 5cqw; border-radius: 1.6cqw; background: #26305E; color: #FBF8F4; }
.mock-larkspur .k-band h4 { font-size: 4.2cqw; margin: 0; }

/* Brightside Kitchen: office lunch delivery */
.mock-brightside { background: #FFFCF2; color: #173F2A; }
.mock-brightside .mock-nav .wm { font-weight: 800; }
.mock-brightside .mock-btn { background: #1F5E3B; color: #FFFCF2; }
.mock-brightside .t-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3cqw; align-items: center; padding: 2cqw 5cqw 4cqw; }
.mock-brightside h4 { font-size: 7cqw; margin-block-end: 2.4cqw; }
.mock-brightside h4 em { font-style: normal; color: #E4572E; }
.mock-brightside .t-hero p { color: #3D5B49; margin-block-end: 3cqw; }
.mock-brightside .t-visual { position: relative; aspect-ratio: 1; border-radius: 50%; background: #F4D35E; display: grid; place-items: center; }
.mock-brightside .bowl { position: relative; display: grid; place-items: center; width: 70%; aspect-ratio: 1; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1.8cqw 3.4cqw -1.2cqw rgba(23, 63, 42, .4); }
.mock-brightside .bowl::before { content: ""; width: 82%; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(from 20deg, #7FB069 0 26%, #E4572E 26% 40%, #F2C14E 40% 57%, #9ED8C8 57% 72%, #C9A27E 72% 100%); }
.mock-brightside .bowl::after { content: ""; position: absolute; width: 24%; aspect-ratio: 1; border-radius: 50%; background: #FFF7E0; box-shadow: 0 0 0 .8cqw rgba(255, 255, 255, .55); }
.mock-brightside .t-menu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.6cqw; padding: 1cqw 5cqw 5cqw; }
.mock-brightside .t-card { display: grid; gap: 1cqw; padding: 2cqw; border-radius: 1.6cqw; background: #fff; box-shadow: 0 0 0 .2cqw #EDE6CF; font-size: 2cqw; }
.mock-brightside .t-card i { display: block; aspect-ratio: 1.3; border-radius: 1.2cqw; }
.mock-brightside .t-card:nth-child(1) i { background: radial-gradient(circle at 50% 55%, #F2C14E 0 32%, #FFF7E0 33% 58%, #F7EBC8 59%); }
.mock-brightside .t-card:nth-child(2) i { background: radial-gradient(circle at 50% 55%, #C4492B 0 34%, #FFF7E0 35% 58%, #F7EBC8 59%); }
.mock-brightside .t-card:nth-child(3) i { background: radial-gradient(circle at 50% 55%, #D9A15B 0 36%, #FFF7E0 37% 58%, #F7EBC8 59%); }
.mock-brightside .t-card b { font-weight: 700; }
.mock-brightside .t-card span { color: #1F5E3B; font-weight: 600; }
.mock-brightside .t-band { margin: 0 5cqw; padding: 4.6cqw 5cqw; border-radius: 1.6cqw; background: #1F5E3B; color: #F4D35E; }
.mock-brightside .t-band h4 { font-size: 4.6cqw; }

/* Tillwise: bookkeeping app */
.mock-tillwise { background: #0E3B43; color: #EAF7F3; }
.mock-tillwise .mock-nav .wm::after { content: "."; color: #7FE0C2; }
.mock-tillwise .mock-nav span { color: #A9CFC6; }
.mock-tillwise .mock-nav .mock-btn, .mock-tillwise .mock-btn { background: #7FE0C2; color: #0E3B43; }
.mock-tillwise .h-hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 3cqw; align-items: center; padding: 2cqw 5cqw 4cqw; }
.mock-tillwise h4 { font-size: 6.6cqw; margin-block-end: 2.4cqw; }
.mock-tillwise h4 em { font-style: normal; color: #7FE0C2; }
.mock-tillwise .h-hero p { color: #A9CFC6; margin-block-end: 3cqw; }
.mock-tillwise .phone { justify-self: center; width: 70%; aspect-ratio: 9 / 17; padding: 2cqw; border-radius: 4cqw; background: #F4FBF8; box-shadow: 0 0 0 1cqw #0A2C32, 0 4cqw 8cqw -2cqw rgba(0, 0, 0, .6); color: #0E3B43; display: grid; align-content: start; gap: 1.6cqw; }
.mock-tillwise .phone small { font-size: 1.5cqw; color: #4E7A73; }
.mock-tillwise .phone strong { font-family: var(--font-display); font-size: 3.6cqw; letter-spacing: -0.02em; line-height: 1; }
.mock-tillwise .bars { display: flex; align-items: flex-end; gap: .8cqw; height: 10cqw; }
.mock-tillwise .bars i { flex: 1; border-radius: .6cqw .6cqw 0 0; background: #7FE0C2; }
.mock-tillwise .bars i:nth-child(even) { background: #0E3B43; }
.mock-tillwise .rowp { display: flex; justify-content: space-between; padding-block: 1.2cqw; border-block-start: .2cqw solid #DDEDE7; font-size: 1.5cqw; }
.mock-tillwise .rowp b { color: #C4492B; }
.mock-tillwise .h-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.6cqw; padding: 1cqw 5cqw 5cqw; }
.mock-tillwise .h-feat { padding: 2.6cqw; border-radius: 1.6cqw; background: #134A54; font-size: 1.9cqw; color: #A9CFC6; display: grid; gap: 1cqw; }
.mock-tillwise .h-feat b { font-family: var(--font-display); font-size: 2.6cqw; color: #EAF7F3; }
.mock-tillwise .h-feat i { width: 5cqw; height: 5cqw; border-radius: 1.2cqw; background: #7FE0C2; }



/* ---------- contact ---------- */

.contact-wrap { padding-inline: var(--gutter); padding-block-end: var(--gutter); }
.contact {
  position: relative;
  width: min(100%, 1680px);
  margin-inline: auto;
  padding-block: clamp(64px, 8vw, 120px);
  border-radius: var(--r-xl);
  background:
    radial-gradient(ellipse 60% 70% at 100% 0%, rgba(47, 116, 208, .35), transparent 70%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(239, 162, 58, .14), transparent 70%),
    var(--navy);
  color: var(--paper);
  overflow: hidden;
}
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s7) clamp(40px, 6vw, 96px); align-items: start; }
.contact h2 { font-size: clamp(2.3rem, 1.3rem + 3.6vw, 4.2rem); line-height: 1; margin-block: var(--s4) var(--s5); }
.contact .lede { color: var(--muted-d); }

.big-eyes { display: flex; gap: 14px; margin-block: var(--s6) var(--s6); }
.big-eyes .eye { position: relative; display: grid; place-items: center; width: 68px; height: 80px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 -6px 0 rgba(20, 29, 56, .12); }
.big-eyes .pupil { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); box-shadow: inset 7px -7px 0 -4px rgba(255, 255, 255, .0); position: relative; }
.big-eyes .pupil::after { content: ""; position: absolute; inset-block-start: 6px; inset-inline-end: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--paper); }

.next-steps { display: grid; gap: var(--s4); list-style: none; counter-reset: n; }
.next-steps li { display: grid; grid-template-columns: 32px 1fr; gap: 14px; align-items: baseline; color: var(--muted-d); counter-increment: n; }
.next-steps li::before { content: counter(n); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--navy-3); color: #F6C679; font-family: var(--font-mono); font-size: var(--fs-xs); align-self: start; }
.next-steps b { color: var(--paper); font-weight: 600; }

.contact-direct { display: grid; gap: var(--s2); margin-block-start: var(--s6); padding-block-start: var(--s5); border-block-start: 1px solid rgba(169, 180, 206, .2); }
.contact-label { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--muted-d); }
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
  min-height: 44px;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--paper);
  text-decoration: underline;
  text-decoration-color: rgba(246, 198, 121, .5);
  text-decoration-thickness: 2px;
  text-underline-offset: .25em;
  overflow-wrap: anywhere;
  transition: color var(--dur-2) var(--ease-out), text-decoration-color var(--dur-2) var(--ease-out);
}
.contact-email svg { width: 24px; height: 24px; flex: none; color: #F6C679; }
.contact-email:hover { color: #F6C679; text-decoration-color: #F6C679; }

.form-card { padding: clamp(24px, 3vw, 40px); border-radius: var(--r-lg); background: var(--navy-2); box-shadow: inset 0 0 0 1px rgba(169, 180, 206, .16), 0 30px 60px -30px rgba(0, 0, 0, .6); }
.form { display: grid; gap: var(--s5); }
.field { display: grid; gap: 8px; }
.field label { display: flex; justify-content: space-between; gap: var(--s3); font-weight: 600; font-size: var(--fs-sm); color: var(--paper); }
.field .req, .field .opt { font-family: var(--font-mono); font-weight: 400; font-size: 12px; letter-spacing: .04em; color: var(--muted-d); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 1.5px solid #6B7692;
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  transition: border-color var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out);
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141D38' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-inline-end: 44px;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #97A2BD; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid #F6C679; outline-offset: 2px; border-color: var(--paper); }
.field [aria-invalid="true"] { border-color: #FF9C8A; box-shadow: 0 0 0 1px #FF9C8A; }
.err { display: flex; gap: 8px; align-items: center; font-size: var(--fs-sm); color: #FFB4A6; }
.err::before { content: "!"; display: grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 50%; background: #FFB4A6; color: var(--navy); font-weight: 800; font-size: 12px; }
.err[hidden] { display: none; }
.form-err a { color: inherit; font-weight: 600; }
.botcheck { display: none; }
.btn[disabled] { opacity: .75; cursor: progress; }
.form-note { font-size: var(--fs-xs); color: var(--muted-d); text-align: center; }
.form-done { display: grid; gap: var(--s4); justify-items: start; padding-block: var(--s5); }
.form-done[hidden] { display: none; }
.form-done:focus { outline: none; }
.form-done .done-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--amber); color: var(--ink); }
.form-done .done-icon svg { width: 26px; height: 26px; }
.form-done h3 { font-size: 1.9rem; }
.form-done p { color: var(--muted-d); }

/* ---------- footer ---------- */

.footer { padding-block: var(--s8) var(--s6); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: var(--s6); align-items: start; }
.footer .brand { margin: 0; }
.footer-tag { margin-block-start: var(--s3); color: var(--ink-2); max-width: 34ch; }
.footer h2 { font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-block-end: var(--s3); }
.footer ul { list-style: none; display: grid; gap: 2px; }
.footer ul a { display: inline-flex; align-items: center; min-height: 36px; color: var(--ink); text-decoration: none; }
.footer ul a:hover { text-decoration: underline; }
.footer-tools { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--s5); margin-block-start: var(--s7); padding-block: var(--s5); border-block-start: 1px solid var(--line); }
.footer-tools + .footer-base { margin-block-start: 0; }
.tools-label { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.tools-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.footer .tools-track { display: flex; width: max-content; gap: 0; }
.tools-marquee.is-on .tools-track { animation: marquee 40s linear infinite; }
.tools-marquee:hover .tools-track { animation-play-state: paused; }
.tools-track li {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding-inline-end: 24px;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem);
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}
.tools-track li::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3); margin-block-start: var(--s7); padding-block-start: var(--s5); border-block-start: 1px solid var(--line); font-size: var(--fs-sm); color: var(--ink-2); }

/* ---------- reveal choreography ---------- */

.js .reveal { opacity: 0; transform: translateY(22px); }
.js .reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js .reveal.in.settled { transition-delay: 0s; }

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .proof-grid { grid-template-columns: 1fr; align-items: start; }
  .explorer { grid-template-columns: 220px minmax(0, 1fr); }
  .panel-info { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .explorer { grid-template-columns: 1fr; }
  .tablist {
    position: relative;
    inset: auto;
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 4px 12px;
    margin-inline: -4px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .tablist::-webkit-scrollbar { display: none; }
  .tab { flex: none; width: auto; padding: 10px 18px; border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); scroll-snap-align: start; }
  .tab::before { display: none; }
  .tab-hint { display: none; }
  .tab[aria-selected="true"] { background: var(--ink); box-shadow: none; }
  .tab[aria-selected="true"] .tab-name { color: var(--paper); }
  .tab-name { font-size: 1rem; white-space: nowrap; }
  .work-card.feature { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 899.98px) {
  .hero-window { height: auto; }
  .stage { flex: none; background: var(--navy); }
  .stage-media { position: relative; aspect-ratio: 4 / 3; }
  .stage-scrim { background: linear-gradient(to top, rgba(15, 26, 54, .55), rgba(15, 26, 54, 0) 30%); }
  .hero-copy { position: relative; inset: auto; gap: 14px; padding: 34px 24px 38px; text-shadow: none; }
  .hero h1 { font-size: clamp(2.1rem, 7.4vw, 3.2rem); line-height: 1.02; }
  .hero-row { margin-block-start: 4px; }
  .hero-sub { max-width: 34ch; font-size: 1rem; color: rgba(242, 245, 250, .78); }
  .hero-ctas { display: none; }
}


@media (max-width: 640px) {
  .work-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s4); }
  .stat:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
  .team-grid { grid-template-columns: 1fr; gap: var(--s4); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .footer-tools { grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
  .big-eyes .eye { width: 56px; height: 66px; }
  .big-eyes .pupil { width: 24px; height: 24px; }
}

@media (max-width: 480px) {
  .nav-cta { padding-inline: 14px; font-size: .9rem; }
  .nav-in .brand { gap: 8px; }
  .nav-in .brand .mark { width: 32px; height: 32px; }
  .nav-in .brand-name { font-size: 1.12rem; }
  .hero-window .chrome { gap: 10px; padding-inline: 12px; }
  .hero-window .chrome .dots,
  .hero-window .chrome .chrome-balance { display: none; }
}

@media (max-height: 560px) and (min-width: 900px) {
  .hero-window { height: auto; }
  .stage { flex: none; height: 560px; }
}

@media (pointer: coarse) {
  .btn-sm { min-height: 44px; }
  .tab { min-height: 44px; }
}

/* ---------- phone experience ---------- */

/* swipe controls only exist on phones */
.swipe-ui { display: none; }

@keyframes page-peek {
  0%, 12% { transform: none; }
  45%, 60% { transform: translateY(-42.8%); }
  92%, 100% { transform: none; }
}
@keyframes slow-zoom { to { transform: scale(1.07); } }
@keyframes win-pop { 0% { transform: scale(.85); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes hint-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }

@media (max-width: 760px) {
  /* a thin line under the top bar shows how far down the page you are */
  .nav::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    inset-block-end: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--blue), var(--amber));
    transform: scaleX(var(--progress, 0));
    transform-origin: left;
    pointer-events: none;
    transition: opacity var(--dur-2) var(--ease-out);
  }

  /* full-screen menu */
  html.menu-open { overflow: hidden; }
  .nav.open { background: var(--navy); box-shadow: none; }
  .nav.open::after { opacity: 0; }
  .nav.open .menu-btn,
  .nav.open .brand { color: var(--paper); }
  .nav.open .brand-name span { color: var(--muted-d); }
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    width: auto;
    gap: 0;
    padding: 28px var(--gutter) calc(28px + env(safe-area-inset-bottom));
    border-radius: 0;
    background: var(--navy);
    box-shadow: none;
    transform: none;
    overflow-y: auto;
  }
  .nav-links::before {
    content: "Menu";
    padding-block-end: 14px;
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted-d);
  }
  .nav-links li {
    border-block-end: 1px solid rgba(242, 245, 250, .08);
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 400ms var(--ease-out), transform 500ms var(--ease-out);
  }
  .nav.open .nav-links li { opacity: 1; transform: none; }
  .nav.open .nav-links li:nth-child(2) { transition-delay: 50ms; }
  .nav.open .nav-links li:nth-child(3) { transition-delay: 100ms; }
  .nav.open .nav-links li:nth-child(4) { transition-delay: 150ms; }
  .nav.open .nav-links li:nth-child(5) { transition-delay: 200ms; }
  .nav.open .nav-links li:nth-child(6) { transition-delay: 250ms; }
  .nav-links li:first-child { border-block-start: 1px solid rgba(242, 245, 250, .08); }
  .nav-links a {
    gap: 16px;
    min-height: 62px;
    padding: 10px 2px;
    border-radius: 0;
    font-family: var(--font-display);
    font-size: 1.45rem;
    line-height: 1.15;
    text-wrap: balance;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--paper);
  }
  .nav-links a::after {
    content: "\2192";
    margin-inline-start: auto;
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: rgba(242, 245, 250, .3);
    transition: transform var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out);
  }
  .nav-links a:hover,
  .nav-links a:active { background: transparent; color: #F6C679; }
  .nav-links a:active::after { color: #F6C679; transform: translateX(4px); }

  /* Work and Team become swipeable cards */
  .work-grid,
  .team-grid {
    position: relative;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 86%;
    gap: 14px;
    align-items: stretch;
    margin-inline: calc(-1 * var(--gutter));
    padding: 6px var(--gutter) 14px;
    scroll-padding-inline: var(--gutter);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .work-grid::-webkit-scrollbar,
  .team-grid::-webkit-scrollbar { display: none; }
  .work-grid > *,
  .team-grid > * { scroll-snap-align: start; }
  .work-card.feature { grid-column: auto; }
  .work-card {
    gap: 16px;
    padding: 10px 10px 22px;
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line);
  }
  .work-card .shot { overflow: hidden; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); }
  .work-info { padding-inline: 8px; }
  .work-info h3 { font-size: 1.6rem; }
  .work-card .chrome-light .url { min-width: 0; overflow: hidden; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
  .work-card .chrome-light .spacer { width: 0; }
  /* a quiet sign-off at the bottom of the full-screen menu */
  .nav-links::after {
    content: "Kaaf Studio \00B7  Web design studio";
    margin-block-start: auto;
    padding-block-start: 32px;
    font-size: .9rem;
    color: var(--muted-d);
  }
  /* the card in front previews its whole page by itself */
  .work-grid.in-view .work-card.is-active .shot-page { animation: page-peek 9s var(--ease-in-out) .5s infinite; }
  .work-grid.in-view .work-card.live.is-active .shot-img { animation: slow-zoom 7s ease-in-out infinite alternate; }

  .swipe-ui { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-block-start: 6px; }
  .swipe-dots { display: flex; align-items: center; }
  .swipe-dots button { display: grid; place-items: center; width: 26px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; }
  .swipe-dots button::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(20, 29, 56, .2);
    transition: width var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out);
  }
  .swipe-dots button[aria-current="true"]::before { width: 22px; background: var(--ink); }
  .swipe-hint { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); transition: opacity var(--dur-3) var(--ease-out); }
  .swipe-hint svg { width: 16px; height: 16px; animation: hint-nudge 1.6s var(--ease-in-out) infinite; }
  .swipe-ui.swiped .swipe-hint { opacity: 0; }

  /* the process steps light up one by one as you scroll past them */
  .j-icon { transition: background-color 400ms var(--ease-out), color 400ms var(--ease-out), box-shadow 400ms var(--ease-out); }
  .js .journey-steps li:not(:last-child)::after {
    background: linear-gradient(var(--blue), var(--blue)) top / 100% 0 no-repeat, var(--sky);
    transition: background-size 600ms var(--ease-out);
  }
  .js .journey-steps li.reached:has(+ li.reached)::after { background-size: 100% 100%; }
  .js .journey-steps li.reached .j-icon { background: var(--blue); color: var(--white); }
  .js .journey-steps li.win:not(.reached) .j-icon { background: var(--sky); color: var(--blue); box-shadow: none; }
  .js .journey-steps li.win.reached .j-icon { background: var(--amber); color: var(--ink); animation: win-pop 600ms var(--ease-out); }
}

/* touch screens: buttons and cards press in under your finger */
@media (hover: none) {
  .hover-only { display: none; }
  .btn, .tab, .menu-btn, .member, .work-card, .swipe-dots button { -webkit-tap-highlight-color: transparent; }
  .btn, .tab, .menu-btn { transition-property: transform, background-color, box-shadow, color; transition-duration: 150ms; }
  .btn:active, .tab:active, .menu-btn:active { transform: scale(.96); }
  .member, .work-card { transition: transform 200ms var(--ease-out); }
  .member:active, .work-card:active { transform: scale(.985); }
  .member:hover, .work-card:hover .shot, .btn-accent:hover, .btn-dark:hover { transform: none; }
  .work-card:hover .shot-page { transform: none; }
}

/* ---------- reduced motion: final states, no movement ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 1ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal, .js .hero-copy > * { opacity: 1; transform: none; }
  .marquee.is-on .marquee-track { animation: none; }
  .marquee-track { flex-wrap: wrap; width: auto; justify-content: center; row-gap: 8px; }
  .marquee-track span[aria-hidden="true"] { display: none; }
  .marquee { mask-image: none; -webkit-mask-image: none; }
  .tools-marquee.is-on .tools-track { animation: none; }
  .footer .tools-track { flex-wrap: wrap; width: auto; row-gap: 8px; }
  .tools-track li[aria-hidden="true"] { display: none; }
  .tools-marquee { mask-image: none; -webkit-mask-image: none; }
  .stage-media canvas { display: none; }
  .work-card:hover .shot-page { transform: none; }
  .work-card:hover .shot { transform: none; }
  .env::before, .env::after { animation: none; }
  .work-grid.in-view .work-card.is-active .shot-page,
  .work-grid.in-view .work-card.live.is-active .shot-img,
  .swipe-hint svg { animation: none; }
  .nav-links li { opacity: 1; transform: none; }
}
