/* Production v7: approved Lantern Cove palette and typography; tokens are the source of truth. */
:root {
  /* Day */
  --fog: #F7F4EC;
  --paper: #FFFDF7;
  --rule: #D5DDD7;
  --ink: #172F3D;
  --ink-2: #465D65;
  /* Night */
  --deep: #E8EFEB;
  --deep-2: #F1F5EF;
  --deep-rule: #B4C6C2;
  --night-fg: #172F3D;
  --night-2: #465D65;
  --deep-hover: #3D726F;
  --field-edge: #65827F;
  --scrollbar: #65827F;
  --invalid: #A63F46;
  /* The lead weight: action and current state only */
  --signal: #246D70;
  --chart-base: #677B91;      /* Muted harbour-blue comparison series. */
  --signal-hover: #1C595E;
  --sign-ink: #172F3D;

  --display: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --sans: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* 1.25 scale on 17px body */
  --t-xs: 0.8125rem;
  --t-sm: 0.9375rem;
  --t-base: 1.0625rem;
  --t-md: 1.3125rem;
  --t-lg: clamp(1.5rem, 1.2rem + 1.1vw, 1.875rem);
  --t-xl: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  --t-hero: clamp(2.5rem, 1.6rem + 3.8vw, 4.5rem);

  /* Spacing: 8pt scale with 4px half steps. Use tokens, never raw px, for margin/padding/gap/heights.
     Exceptions: borders, radius, type, icons, fluid widths. */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --space-8: 48px;
  --space-9: 64px;
  --space-10: 80px;
  --space-11: 96px;
  --space-12: 128px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --gap-tight: var(--space-2);
  --gap-group: var(--space-5);
  --pad-card: var(--space-5);
  --section-y: var(--space-11);
  --section-y-lg: var(--space-12);
  --control-h: var(--space-8);
  --control-h-sm: var(--space-7);
  --direct-icon-size: var(--space-8);
  --content-max: 1240px; /* Approved desktop content measure. */
  --touch-min: 44px; /* Minimum accessible pointer target. */

  --gutter-l: max(var(--space-5), env(safe-area-inset-left, 0px));
  --gutter-r: max(var(--space-5), env(safe-area-inset-right, 0px));
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--fog); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-color: var(--scrollbar) var(--fog); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
#main, #top, #services, #pricing, #how, #faq, #contact { scroll-margin-top: calc(var(--space-10) + env(safe-area-inset-top, 0px)); }
body {
  margin: 0;
  background: var(--fog);
  color: var(--ink);
  font: 400 var(--t-base)/1.6 var(--sans);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--signal); color: var(--ink); }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
h1, h2, h3, summary, .spec-name, .direct-value { font-family: var(--display); }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.025em; line-height: 1.08; margin: 0; text-wrap: balance; }
h2 { font-size: var(--t-xl); }
h3 { font-size: var(--t-md); letter-spacing: -0.015em; line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }
/* 3px focus offset keeps the outline clear of the control edge. */
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: var(--radius-sm); }
.story :focus-visible, .nav:not(.is-day) :focus-visible, .street :focus-visible, .contact :focus-visible, .footer :focus-visible { outline-color: var(--signal); }

.skip { position: absolute; left: var(--space-4); top: calc(-1 * var(--space-11)); z-index: 50; background: var(--signal); color: var(--ink); padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); }
.skip:focus { top: var(--space-4); }

.wrap { max-width: var(--content-max); margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }

/* Controls share the small radius; photo frames use the larger scale. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--control-h); padding: 0 var(--space-5);
  background: var(--signal); color: var(--ink);
  font: 500 var(--t-base)/1 var(--sans); letter-spacing: -0.01em; text-decoration: none;
  border: 0; border-radius: var(--radius-sm); cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--signal-hover); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-ghost { background: transparent; color: var(--night-fg); box-shadow: inset 0 0 0 1px rgba(23, 47, 61, .6); }
.btn-ghost:hover { background: rgba(23, 47, 61, .06); }
.btn-small { position: relative; min-height: var(--control-h-sm); padding: 0 var(--space-4); font-size: var(--t-sm); }

/* Expand the 40px visual button to a 48px pointer target. */
.btn-small::before { content: ""; position: absolute; inset: calc(-1 * var(--space-1)) 0; }

/* Nav: light over the night hero, ink once the page turns to day */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: calc(var(--space-4) + env(safe-area-inset-top, 0px)) var(--gutter-r) var(--space-4) var(--gutter-l);
  color: var(--night-fg);
  transition: background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
html:not(.js) .nav { background: rgba(247, 244, 236, .96); color: var(--night-fg); }
.nav.is-day { background: rgba(247, 244, 236, .96); color: var(--ink); box-shadow: 0 1px 0 var(--rule); }
.nav.is-night { background: rgba(247, 244, 236, .96); color: var(--night-fg); box-shadow: 0 1px 0 var(--deep-rule); }
.brand { display: inline-flex; align-items: center; min-height: var(--touch-min); color: inherit; }
.logo { display: block; width: auto; height: var(--space-6); aspect-ratio: 2919 / 760; color: inherit; }
.nav-links { display: flex; align-items: center; gap: var(--space-6); font-size: var(--t-sm); }
.nav-links a:not(.btn) { display: inline-flex; align-items: center; min-height: var(--touch-min); text-decoration: none; opacity: .8; transition: opacity .2s var(--ease); }
.nav-links a:not(.btn):hover { opacity: 1; }
.nav-phone { font-family: var(--mono); font-size: 0.75rem; letter-spacing: -0.02em; }
@media (max-width: 900px) { .nav-links a:not(.btn):not(.nav-phone):not(.nav-pricing) { display: none; } }
@media (max-width: 560px) { .nav-links a.nav-phone { display: none; } .logo { height: var(--space-6); } }

/* Hero story (unchanged composition): a pinned stage draws the shop video sequence with scroll. */
.story { position: relative; height: 420svh; background: var(--deep); color: var(--night-fg); }
.stage { position: sticky; top: 0; height: 100svh; overflow: clip; }
.frames, .frame, .frame img { position: absolute; inset: 0; width: 100%; height: 100%; }
.frame img { object-fit: cover; object-position: 50% 55%; }
.frame { opacity: 0; will-change: opacity; }
.frame[data-frame="0"] { opacity: 1; }
.shade { position: absolute; inset: 0; pointer-events: none; }
.shade::before, .shade::after { content: ""; position: absolute; inset: 0; }
/* Both protections leave with the lead; the daylight sky supports the later navy beats. */
.shade::before { opacity: var(--lead-opacity, 1); }
.shade::after {
  opacity: var(--lead-opacity, 1);
  background:
    radial-gradient(ellipse 62% 70% at 0% 100%, rgba(247, 244, 236, .9) 0%, rgba(247, 244, 236, .62) 45%, rgba(247, 244, 236, 0) 100%),
    linear-gradient(to top, rgba(247, 244, 236, .35) 0%, rgba(247, 244, 236, 0) 22%);
}
/* The 780px cap is the established hero text measure. */
.lead, .beat {
  position: absolute; left: var(--gutter-l); right: var(--gutter-r);
  bottom: max(var(--space-7), 7svh); max-width: 780px;
}
.lead h1 { font-size: var(--t-hero); font-weight: 500; letter-spacing: -0.035em; line-height: 1.02; max-width: 15ch; }
.lead-sub { margin-top: var(--gap-tight); max-width: 48ch; font-size: var(--t-md); line-height: 1.45; color: var(--night-fg); }
.actions { display: flex; flex-wrap: wrap; gap: var(--gap-tight); margin-top: var(--gap-group); }
.region { margin-top: var(--space-5); font-size: var(--t-sm); color: var(--night-2); }
.beat {
  font-family: var(--display); font-size: var(--t-xl); font-weight: 500; letter-spacing: -0.03em; line-height: 1.08;
  max-width: 18ch; text-wrap: balance;
  opacity: 0; transform: translateY(var(--space-3));
}
.lead, .beat { will-change: opacity, transform; text-shadow: none; }
/* Wide cream haze follows the copy, fading without a panel edge. */
.beat { isolation: isolate; }
.beat::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset: calc(-1 * var(--space-11));
  /* closest-side: the ellipse reaches full transparency at the box edges, so no panel edge shows. */
  background: radial-gradient(closest-side, rgba(247, 244, 236, .72) 0%, rgba(247, 244, 236, .6) 55%, transparent 100%);
  filter: blur(var(--space-3));
}

/* Desktop comparison: A separates sky and ground; B keeps a large left column.
   Portrait beats sit below the shop; wider layouts retain the left column. */
@media (min-width: 900px) and (orientation: landscape) {
  :root { --t-hero: clamp(3rem, 4.5vw, 4.5rem); }
  .shade::before { background: linear-gradient(to bottom, rgba(247, 244, 236, .96), rgba(247, 244, 236, .90) 24%, transparent 30%); }
  .shade::after { background: radial-gradient(ellipse 65% 48% at 0% 100%, var(--fog) 0%, rgba(247, 244, 236, .96) 60%, transparent 100%); }
  .lead {
    top: calc(var(--space-4) * 2 + var(--control-h) + var(--space-6) + env(safe-area-inset-top, 0px));
    bottom: var(--space-2);
    max-width: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .lead h1 { font-size: var(--t-hero); max-width: 28ch; line-height: 1.02; text-wrap: balance; }
  .lead-sub { margin-top: auto; max-width: calc(27vw - var(--gutter-l)); font-size: var(--t-base); }
  .lead .actions { flex-direction: row; flex-wrap: nowrap; }
  .lead .btn { height: var(--control-h); color: var(--paper); }
  .lead .btn-ghost { color: var(--ink); background: rgba(247, 244, 236, .96); }
  .lead .region { max-width: none; color: var(--ink); }
  .beat {
    top: calc(var(--space-4) * 2 + var(--control-h) + var(--space-6) + env(safe-area-inset-top, 0px));
    bottom: auto;
    max-width: 28ch;
    font-size: var(--t-hero);
    line-height: 1.02;
  }

  html.hero-b .frame img { object-position: 20% 55%; }
  html.hero-b .shade::before { background: linear-gradient(to right, var(--fog) 0%, var(--fog) 34%, rgba(247, 244, 236, 0) 50%); }
  html.hero-b .shade::after { background: none; }
  html.hero-b .lead, html.hero-b .beat { right: auto; max-width: calc(34vw - var(--gutter-l)); }
  html.hero-b .lead { bottom: auto; display: block; }
  html.hero-b .lead h1 { max-width: none; }
  html.hero-b .lead h1 span { display: block; }
  html.hero-b .lead .region { max-width: calc(31vw - var(--gutter-l)); }
  html.hero-b .lead-sub { margin-top: var(--gap-tight); max-width: min(42ch, calc(31vw - var(--gutter-l))); }
  html.hero-b .lead .actions { flex-wrap: wrap; }
}
 
@media (max-aspect-ratio: 4/5) {
  .frame img { object-position: 50% 100%; }
  .shade::before { background: linear-gradient(to bottom, rgba(247, 244, 236, .78) 0%, rgba(247, 244, 236, .38) 30%, rgba(247, 244, 236, 0) 48%); }
  .shade::after { background: linear-gradient(to top, rgba(247, 244, 236, .85) 0%, rgba(247, 244, 236, 0) 26%); }
  .beat {
    top: auto; bottom: calc(var(--space-8) + env(safe-area-inset-bottom, 0px));
    left: var(--gutter-l); right: var(--gutter-r); max-width: none; text-align: left;
  }
  .beat::before {
    inset: calc(-1 * var(--space-9));
    background: radial-gradient(closest-side, rgba(247, 244, 236, .6) 0%, rgba(247, 244, 236, .48) 55%, transparent 100%);
  }
  .lead {
    top: calc(var(--space-4) * 2 + var(--control-h) + var(--space-6) + env(safe-area-inset-top, 0px)); bottom: calc(var(--space-5) + env(safe-area-inset-bottom, 0px));
    display: flex; flex-direction: column;
  }
  .lead h1 { font-size: clamp(2.25rem, 10vw, 3rem); }
  .lead-sub { font-size: var(--t-base); }
  .actions { margin-top: auto; }
  .actions .btn { flex: 1 1 100%; }
  .actions .btn-ghost { background: rgba(247, 244, 236, .5); }
  .region { display: none; }
  .beat { font-size: clamp(1.9rem, 8.4vw, 2.4rem); }
}
@media (max-aspect-ratio: 4/5) and (max-height: 700px) { .lead-sub { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .shade::before, .shade::after { opacity: 0; }
  .story { height: auto; }
  .stage { position: relative; height: 100svh; }
  .frame[data-frame="3"] { opacity: 1; }
  .beat { display: none; }
}
.no-js .story { height: auto; }
.no-js .stage { position: relative; }
.no-js .beat { display: none; }

/* Section heads: heading left, a short note on the right, sitting on one hairline */
.section-head {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--space-6); align-items: end;
  padding-bottom: var(--space-6); border-bottom: 1px solid var(--ink);
}
.section-note { color: var(--ink-2); font-size: var(--t-base); max-width: 36ch; justify-self: end; }
.section-note a { color: var(--ink); }

/* One-pixel clipped box preserves screen-reader text without occupying layout. */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.source { margin-top: var(--space-5); font-family: var(--mono); font-size: var(--t-xs); line-height: 1.6; letter-spacing: -0.01em; color: var(--ink-2); max-width: 60ch; }
.source a { color: var(--ink); }

/* Why it matters: Google's own figures, drawn as bars on a common "times as likely" scale */
.proof { padding: var(--section-y) 0; }
.proof-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--space-6); margin-top: var(--space-8); align-items: stretch; }
.lift, .reviews { margin: 0; padding: var(--pad-card); background: var(--paper); border-radius: var(--radius-md); }
.lift-unit { font-family: var(--display); font-size: var(--t-md); letter-spacing: -0.015em; }
.lift-key { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); font-size: var(--t-sm); color: var(--ink-2); }
.lift-key li { display: inline-flex; align-items: center; gap: var(--space-2); }
.key { width: var(--space-4); height: var(--space-2); border-radius: 0 4px 4px 0; }
.key-base, .bar-base { background: var(--chart-base); }
.key-full, .bar-full { background: var(--signal); }
.lift-rows { list-style: none; margin: var(--space-6) 0 0; padding: 0; display: grid; gap: var(--space-6); }
.lift-row { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: var(--space-2) var(--space-5); align-items: center; }
.lift-label { font-size: var(--t-base); line-height: 1.3; }
/* Track runs from 0 to 3×; each bar is its share of the track. */
.lift-bars { display: grid; gap: var(--space-1); position: relative; padding: 0 var(--space-9) 0 var(--space-1); border-left: 1px solid var(--ink); }
.bar-line { position: relative; height: var(--space-5); display: flex; align-items: center; cursor: default; }
.bar-line::before { content: ""; position: absolute; inset: calc(-1 * var(--space-1)) 0; }
.bar { display: block; height: var(--space-4); width: calc(var(--v) / 3 * 100%); border-radius: 0 4px 4px 0; transform-origin: 0 50%; transition: transform 1.1s var(--ease), filter .2s var(--ease); }
.bar-line:nth-child(2) .bar { height: var(--space-5); }
.bar-val { margin-left: var(--space-2); font-family: var(--mono); font-size: 0.75rem; letter-spacing: -0.02em; white-space: nowrap; transition: opacity .5s var(--ease) .7s; }
.bar-line:nth-child(2) .bar-val { font-size: 0.875rem; color: var(--ink); }
.bar-line:hover .bar { filter: brightness(1.08); }
.js [data-reveal]:not(.is-in) .bar { transform: scaleX(0); }
.js [data-reveal]:not(.is-in) .bar-val { opacity: 0; }
/* Rows draw one after another; within a row the complete-profile bar follows the baseline. */
.lift-row { --d: 0s; }
.lift-row:nth-child(2) { --d: .15s; }
.lift-row:nth-child(3) { --d: .3s; }
.bar { transition-delay: var(--d), 0s; }
.bar-line:nth-child(2) .bar { transition-delay: calc(var(--d) + .2s), 0s; }
/* Tooltip width is a readable text measure, not spacing. */
.tip {
  position: fixed; z-index: 30; pointer-events: none; padding: var(--space-2) var(--space-2); border-radius: var(--radius-sm);
  background: var(--ink); color: var(--paper); font-size: var(--t-xs); line-height: 1.35; max-width: 240px;
  opacity: 0; transform: translateY(var(--space-1)); transition: opacity .15s var(--ease), transform .15s var(--ease);
}
.tip.is-on { opacity: 1; transform: none; }

.reviews { display: flex; flex-direction: column; }
.reviews-n { font-family: var(--display); font-weight: 500; font-size: clamp(4rem, 3rem + 4vw, 6.5rem); line-height: .9; letter-spacing: -0.04em; }
.reviews-what { margin-top: var(--gap-tight); font-size: var(--t-base); max-width: 28ch; }
.waffle { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: var(--space-1); margin-top: auto; padding-top: var(--space-6); }
/* Tiny chart cells retain a 1px optical radius; bar ends and keys retain 4px. */
.waffle i { aspect-ratio: 1; border-radius: 1px; background: var(--deep); transition: opacity .4s var(--ease), transform .4s var(--ease); transition-delay: calc(var(--i) * 6ms); }
.waffle i.off { background: transparent; box-shadow: inset 0 0 0 1px var(--ink-2); }
.js .reviews:not(.is-in) .waffle i { opacity: 0; transform: scale(.4); }
.proof-close { margin-top: var(--space-7); font-family: var(--display); font-weight: 500; font-size: var(--t-lg); letter-spacing: -0.025em; line-height: 1.3; max-width: 40ch; text-wrap: balance; }

/* Street: the kinds of business we serve. A static row of shopfronts that people swipe (arrows on mouse devices);
   the page always scrolls freely past it. */
/* 600px caps the approved 3:4 photo crop. */
.street { background: var(--deep); color: var(--night-fg); --card: calc(min(66svh, 600px) * .75); --lead: var(--space-9); }
.street-stage { padding: var(--section-y) 0; }
/* 220px is the minimum readable heading column. */
.street-inner { width: 100%; max-width: none; padding-left: var(--lead); padding-right: 0; display: grid; grid-template-columns: minmax(220px, 19rem) minmax(0, 1fr); gap: var(--space-6); align-items: center; }
.street h2 { font-size: clamp(1.75rem, 1.3rem + 1.2vw, 2.375rem); }
.street-note { margin-top: var(--gap-tight); color: var(--night-2); font-size: var(--t-sm); line-height: 1.55; max-width: 32ch; }
/* 2px decorative rule; 180px is its approved visual length. */
.street-progress { position: relative; margin-top: var(--space-6); height: 2px; max-width: 180px; background: var(--deep-rule); }
.street-progress span { position: absolute; inset: 0; background: var(--signal); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }
html:not(.js) .street-progress, html:not(.js) .street-arrows { display: none; }
.street-arrows { display: flex; gap: var(--space-2); margin-top: var(--space-5); }
.street-arrow { width: var(--control-h); height: var(--control-h); display: inline-grid; place-items: center; border: 1px solid var(--deep-rule); border-radius: var(--radius-sm); background: transparent; color: var(--night-fg); font: inherit; font-size: 1.125rem; cursor: pointer; transition: border-color .2s var(--ease), opacity .2s var(--ease); }
.street-arrow:hover { border-color: var(--night-fg); }
.street-arrow:disabled { opacity: .35; cursor: default; border-color: var(--deep-rule); }
@media (hover: none) { .street-arrows { display: none; } }
.street-view { min-width: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent 100%); mask-image: linear-gradient(90deg, #000 88%, transparent 100%); }
.street-view::-webkit-scrollbar { display: none; }
/* The row fades out at the right edge to show there is more; the fade drops once the last card is in view. */
.street-view.at-end { -webkit-mask-image: none; mask-image: none; }
.street-track { list-style: none; margin: 0; padding: 0 var(--lead) 0 0; display: flex; gap: var(--gap-group); width: max-content; }
.street-card { width: var(--card); scroll-snap-align: start; transform-origin: 50% 45%; transition: transform .7s var(--ease); }
.street-card img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-lg); background: var(--deep-2); transition: filter .7s var(--ease); }
.street-name { margin-top: var(--space-4); font-family: var(--display); font-size: var(--t-md); letter-spacing: -0.015em; line-height: 1.2; }
.street-what { margin-top: var(--gap-tight); color: var(--night-2); font-size: var(--t-sm); line-height: 1.45; max-width: 32ch; }
.street-name, .street-card > .street-what { transition: opacity .7s var(--ease); }
.yours-box { overflow: hidden; aspect-ratio: 3 / 4; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: var(--gap-tight); padding: var(--pad-card); border-radius: var(--radius-lg); box-shadow: inset 0 0 0 1px var(--deep-rule); transition: opacity .7s var(--ease); }
.yours-title { font-family: var(--display); font-weight: 500; font-size: var(--t-xl); letter-spacing: -0.03em; line-height: 1; }
.yours-box .btn { margin-top: var(--space-4); white-space: normal; max-width: 100%; text-align: left; justify-content: flex-start; }

/* Clip the enlarged parallax image to its existing photo area, above the caption. */
.street-photo { aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius-lg); }
.street-photo img { height: 100%; }

/* Services: a photo that follows the row you're reading (desktop), inline photos on phones */
.services { padding: var(--section-y) 0; }
.svc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-9); align-items: start; }
.svc-media { position: sticky; top: var(--space-11); aspect-ratio: 3 / 4; max-height: calc(100svh - var(--space-12)); overflow: hidden; border-radius: var(--radius-lg); background: var(--deep); margin-top: var(--space-6); }
.svc-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .7s var(--ease), transform 1.4s var(--ease); }
.svc-media img.is-on { opacity: 1; transform: none; }
.spec { list-style: none; margin: 0; padding: 0; }
/* 560px caps the viewport-responsive service composition. */
.spec-row { display: grid; gap: var(--gap-tight); padding: var(--space-6) 0 var(--space-8); min-height: min(62svh, 560px); border-bottom: 1px solid var(--rule); align-content: start; }
.spec-row:last-child { min-height: 0; border-bottom: 0; }
.spec-photo { display: none; }
.spec-name { font-size: var(--t-xl); letter-spacing: -0.03em; line-height: 1.05; }
.spec-what { color: var(--ink-2); max-width: 46ch; font-size: var(--t-md); line-height: 1.45; }
/* 560px caps the service text measure. */
.spec-list { list-style: none; margin: var(--space-4) 0 0; padding: var(--gap-tight) 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-tight) var(--gap-group); font-size: var(--t-sm); border-top: 1px solid var(--rule); max-width: 560px; }
.spec-list li { padding-left: var(--space-4); position: relative; }
.spec-list li::before { content: ""; position: absolute; left: 0; top: .72em; width: var(--space-2); height: 1px; background: var(--ink); }
.spec-next .spec-name, .spec-next .spec-what { color: var(--ink-2); }
.spec-status { display: flex; align-items: center; gap: var(--space-2); font-size: var(--t-sm); color: var(--ink-2); align-self: start; padding-top: var(--space-2); }
.spec-status a { color: var(--ink); font-weight: 500; }
.lead-dot { width: var(--space-2); height: var(--space-2); background: var(--signal); flex: none; }
.care { margin-top: var(--space-7); padding-top: var(--space-6); border-top: 1px solid var(--ink); font-size: var(--t-md); line-height: 1.45; max-width: none; }
.care strong { font-weight: 500; }

/* How it works: the line draws as you scroll and each stop lights when it reaches it */
.how { padding: var(--section-y-lg) 0; background: var(--paper); }
.pricing + .how { padding-top: 0; } /* Same paper ground: one section gap, not two. */
.sounding { list-style: none; margin: var(--space-8) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-group); position: relative; }
.sounding::before { content: ""; position: absolute; left: 0; right: 0; top: var(--space-1); height: 1px; background: var(--rule); }
.sounding li { position: relative; padding-top: var(--space-6); }
.sounding .sounding-line {
  --p: 1; position: absolute; left: 0; right: 0; top: var(--space-1); height: 1px; padding: 0; background: var(--ink);
  transform: scaleX(var(--p)); transform-origin: 0 50%;
}
.stop { position: absolute; top: 0; left: 0; width: var(--space-2); height: var(--space-2); background: var(--ink); transition: background-color .3s var(--ease), transform .4s var(--ease); }
.js .sounding li:not(.is-lit) .stop { background: var(--paper); box-shadow: inset 0 0 0 1px var(--ink-2); }
.sounding li.is-lit .stop { background: var(--signal); transform: scale(1.35); }
.sounding h3, .sounding p { transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .sounding li:not(.is-lit):not(.sounding-line) h3, .js .sounding li:not(.is-lit):not(.sounding-line) p { opacity: .6; }
.stop-n { display: block; font-family: var(--mono); font-size: 0.75rem; color: var(--ink-2); margin-bottom: var(--space-4); }
.sounding h3 { font-size: var(--t-md); }
.sounding p { margin-top: var(--gap-tight); color: var(--ink-2); max-width: 34ch; }

/* FAQ */
.faq { padding: var(--section-y) 0; }
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--space-9); align-items: start; }
.faq .section-head { grid-template-columns: 1fr; border-bottom: 0; padding-bottom: 0; position: sticky; top: var(--space-11); }
.faq .section-head { gap: var(--gap-tight); }
.faq .section-note { justify-self: start; margin-top: 0; }
.faq-list { border-top: 1px solid var(--ink); }
details { border-bottom: 1px solid var(--rule); }
summary {
  list-style: none; cursor: pointer; padding: var(--space-5) var(--space-8) var(--space-5) 0; position: relative;
  font-weight: 500; font-size: var(--t-md); letter-spacing: -0.015em; line-height: 1.35;
}
summary::-webkit-details-marker { display: none; }
summary::before, summary::after {
  content: ""; position: absolute; right: var(--space-1); top: 50%; width: var(--space-4); height: 1.5px; background: var(--ink);
  transition: transform .3s var(--ease);
}
summary::after { transform: rotate(90deg); }
details[open] summary::after { transform: rotate(0deg); }
summary:hover { color: var(--ink-2); }
details p { padding: 0 0 var(--space-5); color: var(--ink-2); max-width: 60ch; }

/* The lit shop again: night returns for the close */
/* 280?560px preserves the approved responsive closing photo crop. */
.lit { position: relative; margin: 0; height: clamp(280px, 52vh, 560px); overflow: hidden; background: var(--deep); }
.lit img { width: 100%; height: 100%; object-fit: cover; object-position: 42% 74%; }
.lit::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(232, 239, 235, 0) 55%, var(--deep) 100%); }
@media (max-aspect-ratio: 4/5) { .lit img { object-position: 50% 82%; } }

/* Contact, at night */
.contact { padding: var(--section-y) 0 var(--section-y-lg); background: var(--deep); color: var(--night-fg); }
.contact ::selection { color: var(--deep); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-10); align-items: start; }
.contact h2 { font-size: var(--t-xl); }
.contact-intro > p { margin-top: var(--gap-tight); font-size: var(--t-md); line-height: 1.45; max-width: 32ch; color: var(--night-2); }
.direct { list-style: none; margin: var(--space-8) 0 0; padding: 0; border-top: 1px solid var(--deep-rule); }
.direct li { position: relative; border-bottom: 1px solid var(--deep-rule); }
.direct a:not(.direct-alt) {
  display: grid; grid-template-columns: var(--direct-icon-size) minmax(0, 1fr); grid-template-rows: auto auto; column-gap: var(--space-4); align-items: center;
  padding: var(--space-5) 0; text-decoration: none;
}
.direct-icon {
  grid-row: 1 / 3; width: var(--direct-icon-size); height: var(--direct-icon-size); padding: var(--space-3); border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px var(--deep-rule);
  fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  transition: background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.direct a:hover .direct-icon { background: var(--signal); color: var(--ink); box-shadow: none; }
.direct a:hover .direct-value { color: var(--signal); }
.direct-label { font-size: var(--t-sm); color: var(--night-2); line-height: 1.3; }
.direct-value { font-size: var(--t-md); letter-spacing: -0.01em; line-height: 1.3; overflow-wrap: anywhere; transition: color .2s var(--ease); }
.direct-alt {
  min-height: var(--control-h); display: inline-flex; align-items: center;
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: var(--t-sm); padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px var(--deep-rule); text-decoration: none;
  transition: box-shadow .2s var(--ease), color .2s var(--ease);
}
.direct-alt:hover { box-shadow: inset 0 0 0 1px var(--signal); color: var(--signal); }

.form { display: grid; gap: var(--gap-group); padding: var(--pad-card); border-radius: var(--radius-md); background: var(--deep-2); }
.field { display: grid; gap: var(--gap-tight); min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-group); }
.field label { font-size: var(--t-sm); font-weight: 500; }
.optional { font-weight: 400; color: var(--night-2); }
.form input:not([type="checkbox"]), .form textarea {
  width: 100%; min-height: var(--control-h); padding: var(--space-2) var(--space-4); border-radius: var(--radius-sm); border: 1px solid var(--field-edge);
  background: var(--deep); color: var(--night-fg); font: inherit; font-size: 1rem; caret-color: var(--signal);
  transition: border-color .2s var(--ease);
}
.form input:hover, .form textarea:hover { border-color: var(--deep-hover); }
.form input:focus-visible, .form textarea:focus-visible { outline: 2px solid var(--signal); outline-offset: 1px; border-color: transparent; }
.form input:user-invalid { border-color: var(--invalid); }
.form textarea { resize: vertical; }
.check { min-height: var(--control-h); display: flex; gap: var(--gap-tight); align-items: flex-start; font-size: var(--t-sm); cursor: pointer; }
.check input { width: var(--space-5); height: var(--space-5); margin: var(--space-1) 0 0; accent-color: var(--signal); }
.form .btn { justify-self: start; }
.form-note { font-size: var(--t-sm); color: var(--night-2); }
.form-status:empty { position: absolute; min-height: 0; } /* Out of the grid until a message arrives. */
.form-status { min-height: 1.6em; font-size: var(--t-sm); color: var(--night-2); }
.form-status.is-ok { color: var(--night-fg); }
/* Keep the spam honeypot off canvas without affecting page geometry. */
.hp { position: absolute; left: -9999px; }

/* Footer: a ruled grid of the details, then the wordmark edge to edge */
.footer { padding: 0 0 calc(var(--space-6) + env(safe-area-inset-bottom, 0px)); background: var(--deep); color: var(--night-2); border-top: 1px solid var(--deep-rule); font-size: var(--t-sm); }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-bottom: 1px solid var(--deep-rule); }
.footer-grid > div { padding: var(--space-6) var(--space-5) var(--space-6) 0; min-width: 0; }
.footer-grid > div + div { padding-left: var(--space-5); border-left: 1px solid var(--deep-rule); }
.footer-grid dt { font-size: var(--t-xs); margin-bottom: var(--space-2); }
.footer-grid dd { margin: 0; color: var(--night-fg); font-size: var(--t-base); overflow-wrap: anywhere; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--signal); }
/* 520px preserves the approved wordmark width. */
.footer-logo { width: min(100%, 520px); height: auto; margin: var(--space-7) 0 var(--space-5); color: var(--night-fg); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2) var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--deep-rule); font-size: var(--t-xs); }

@media (max-width: 900px) {
  :root {
    --pad-card: var(--space-4);
    --section-y: var(--space-9);
    --section-y-lg: var(--space-10);
  }
  .proof { padding: var(--section-y) 0; }
  .proof-grid { grid-template-columns: 1fr; margin-top: var(--space-6); gap: var(--gap-group); }
  .lift, .reviews { padding: var(--pad-card); }
  .lift-row { grid-template-columns: 1fr; }
  .reviews-n { font-size: 4.5rem; }
  .waffle { padding-top: var(--space-5); }
  .services { padding: var(--section-y) 0; }
  .section-head { grid-template-columns: 1fr; gap: var(--gap-tight); }
  .section-note { justify-self: start; }
  .street { --card: min(72vw, calc(50svh * .75)); }
  .street-stage { padding: var(--section-y) 0; }
  .street-inner { grid-template-columns: 1fr; gap: var(--space-5); padding-left: 0; }
  .street-head { padding: 0 var(--gutter-r) 0 var(--gutter-l); }
  .street-track { padding-left: var(--gutter-l); }
  .street-view { scroll-padding-left: var(--gutter-l); }
  .street h2 { font-size: var(--t-lg); }
  .street-note { margin-top: var(--space-2); }
  .street-progress { margin-top: var(--space-4); }
  .street-name { font-size: var(--t-base); margin-top: var(--gap-tight); }
  .street-photo, .street-card img, .yours-box, .svc-media { border-radius: var(--radius-md); }
  .nav .btn-small { min-height: var(--control-h); }
  .nav .btn-small::before { inset: 0; }
  .svc { grid-template-columns: 1fr; }
  .svc-media { display: none; }
  .spec-row { gap: var(--gap-tight); padding: var(--space-6) 0; min-height: 0; }
  .spec-photo { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-md); margin-bottom: var(--space-2); background: var(--deep); }
  /* Landscape crops keep each photo's subject in frame. */
  [data-svc-row="0"] .spec-photo { object-position: 50% 30%; }
  [data-svc-row="1"] .spec-photo { object-position: 50% 66%; }
  [data-svc-row="2"] .spec-photo { object-position: 50% 90%; }
  .spec-name { font-size: var(--t-lg); }
  .spec-what { font-size: var(--t-base); }
  .spec-list { grid-template-columns: 1fr; }
  .direct a:not(.direct-alt) { column-gap: var(--gap-tight); row-gap: var(--gap-tight); }
  /* Footer values share one 44px row so labels and values line up across columns. */
  .footer-grid dd { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--space-1); min-height: var(--touch-min); }
  /* Source links stay inline so the sentence does not break around them; padding grows the target. */
  .source a { padding-block: var(--space-4); }
  .footer a, .section-note a, .form-note a, .spec-status a { display: inline-flex; align-items: center; min-height: var(--touch-min); min-width: var(--touch-min); }
  .spec-status { flex-wrap: wrap; }
  .proof-close { margin-top: var(--space-6); }
  .direct { margin-top: var(--space-6); }
  .sounding { margin-top: var(--space-6); }
  .care { margin-top: var(--space-6); }
  .sounding { grid-template-columns: 1fr; gap: var(--space-6); padding-left: var(--space-6); }
  .sounding::before { left: var(--space-1); right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .sounding .sounding-line { left: var(--space-1); right: auto; top: 0; bottom: 0; width: 1px; height: auto; transform: scaleY(var(--p)); transform-origin: 50% 0; }
  .sounding li { padding-top: 0; }
  .stop { left: calc(-1 * var(--space-6)); top: var(--space-1); }
  .how { padding: var(--section-y-lg) 0; }
  .faq { padding: var(--section-y) 0; }
  .faq-grid, .contact-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .faq .section-head { position: static; }
  .contact { padding: var(--section-y) 0 var(--section-y-lg); }
  .form { padding: var(--pad-card); }
  .field-row { grid-template-columns: 1fr; }
  .direct-alt { position: static; transform: none; display: inline-flex; margin: calc(-1 * var(--space-2)) 0 var(--space-4) calc(var(--direct-icon-size) + var(--gap-tight)); }
  /* Phones: place and phone side by side, email and legal get full rows so nothing breaks mid-word */
  .footer-grid { grid-template-columns: 1fr 1fr; grid-template-areas: "loc call" "mail mail" "legal legal"; }
  .footer-grid > div { padding: var(--space-5) var(--space-4) var(--space-5) 0; }
  .footer-grid > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--deep-rule); }
  .footer-grid > div:nth-child(1) { grid-area: loc; }
  .footer-grid > div:nth-child(2) { grid-area: mail; }
  .footer-grid > div:nth-child(3) { grid-area: call; padding-left: var(--space-4); border-left: 1px solid var(--deep-rule); border-top: 0; }
  .footer-grid > div:nth-child(4) { grid-area: legal; }
}

/* Privacy page */
/* Top padding clears the fixed nav (16 + 48 + 16 = --space-10) before the section space. */
.legal { padding: calc(var(--space-10) + env(safe-area-inset-top, 0px) + var(--section-y)) 0 var(--section-y); }
.legal h1 { font-size: var(--t-xl); margin-bottom: var(--space-2); }
.legal h2 { font-size: var(--t-md); margin: var(--space-7) 0 var(--space-2); }
.legal p { color: var(--ink-2); max-width: 62ch; }
.legal a { color: var(--ink); }

/* The shop sign. Painted letters sit on the blank sign panel in the photos; JS places the element over the
   panel at the current crop, and --sign (0..1) follows the lighting as the story scrolls. */
.sign {
  --sign: 0;
  position: absolute; margin: 0; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.16em; line-height: 1; white-space: nowrap; color: var(--sign-ink);
  opacity: calc(0.06 + var(--sign) * 0.94);
  text-shadow: none;
  will-change: opacity;
}
.sign span { transform: translateY(0.04em); }
.sign.is-on { --sign: 1; }
.no-js .sign { display: none; }

/* Daylight surfaces keep navy text and teal controls readable; the original SVG logo is preserved. */
.btn, .skip, ::selection { color: var(--paper); }
.btn-ghost { color: var(--ink); }
.btn-ghost:hover { background: rgba(23, 47, 61, .06); }
.nav { background: rgba(247, 244, 236, .94); }
.waffle i { background: var(--signal); }
.sounding .stop { background: var(--signal); }
.direct a:hover .direct-icon { color: var(--paper); }
.sign { color: var(--sign-ink); }

/* Canvas covers the retained picture fallback only after a frame has decoded. */
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; opacity: 0; pointer-events: none; }
.hero-canvas.is-ready { opacity: 1; }
html.lenis, html.lenis body { height: auto; }
html.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }
.entry-motion { transition: opacity 600ms var(--ease), translate 600ms var(--ease); }
.entry-pending { opacity: 0; translate: 0 var(--space-4); }
@media (min-width: 901px) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .street-card { overflow: clip; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-canvas { display: none; }
  .entry-motion { opacity: 1; translate: none; transition: none; }
  .street-card img { transform: none !important; }
}

/* Keep canvas stacking inside the image layer, below sign, scrims and copy. */
.frames { isolation: isolate; }



/* Inline padding expands targets without changing the legal text line boxes. */
.legal p a { padding-block: var(--space-3); margin-block: calc(-1 * var(--space-3)); }
.field-error { color: var(--invalid); }
@media (prefers-reduced-motion: reduce) {
  .bar, .bar-val, .waffle i, .sounding .stop, .sounding h3, .sounding p, .sounding-line { transition: none !important; }
}

/* One offer: the cream shop world opens into a plain, generous scope sheet. */
.pricing { padding-block: var(--section-y); background: var(--paper); }
.pricing-sheet { border-top: 1px solid var(--deep-rule); border-bottom: 1px solid var(--deep-rule); }
.price-offer { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-9); padding-block: var(--space-7); }
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .price-statement { position: sticky; top: var(--space-11); align-self: start; }
}
.price-label { font-weight: 500; color: var(--signal); }
.price-fee { font-size: clamp(5rem, 8vw, 8rem); line-height: 1; letter-spacing: -.065em; font-weight: 500; margin-top: var(--space-4); }
.price-basis { margin-top: var(--gap-tight); color: var(--ink-2); }
.price-intro { font-size: var(--t-md); line-height: 1.4; max-width: 30ch; margin-top: var(--space-5); }
.price-statement .btn { margin-top: var(--space-6); }
.price-preview { margin-top: var(--gap-tight); color: var(--ink-2); max-width: 34ch; }
.price-included { background: var(--deep); padding: var(--space-6); border-radius: var(--radius-md); }
.price-included h3 { font-size: var(--t-lg); }
.price-included ul { list-style: none; padding: 0; margin: var(--space-5) 0 0; }
.price-included li + li { margin-top: var(--space-5); }
.price-included strong, .price-included span { display: block; }
.price-included strong { font-weight: 600; }
.price-included span { margin-top: var(--gap-tight); color: var(--ink-2); }
.price-extras { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-9); padding-block: var(--space-5); border-top: 1px solid var(--deep-rule); }
.pricing-terms { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-9); padding-block: var(--space-7); }
.pricing-terms h3, .pricing-care h3 { margin-bottom: var(--gap-tight); }
.pricing-terms p, .pricing-care p { color: var(--ink-2); }
.pricing-care { display: grid; grid-template-columns: 1fr 2fr; gap: var(--space-9); padding: var(--space-6); background: var(--fog); border-radius: var(--radius-md); }
.pricing-care dl { margin: 0; }
.pricing-care dl > div + div { padding-top: var(--space-5); margin-top: var(--space-5); border-top: 1px solid var(--rule); }
.pricing-care dt { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--gap-tight) var(--space-4); font-weight: 500; }
.pricing-care dt strong { white-space: nowrap; font-weight: 500; }
.pricing-care dd { margin: var(--gap-tight) 0 0; color: var(--ink-2); }
.pricing details { margin-top: var(--space-5); border-top: 1px solid var(--rule); }
.pricing summary { min-height: var(--control-h); padding-block: var(--space-3); cursor: pointer; font-weight: 500; }
.pricing details p + p { margin-top: var(--space-5); }
.care a, .spec-status a, #faq details p a, .section-note a { display: inline-flex; align-items: center; min-height: var(--touch-min); min-width: var(--touch-min); }
.nav-links, .spec-list, .spec-status { font-size: var(--t-base); }
.js .sounding li:not(.is-lit):not(.sounding-line) h3, .js .sounding li:not(.is-lit):not(.sounding-line) p { opacity: 1; }
@media (max-width: 900px) {
  .price-offer, .price-extras, .pricing-terms, .pricing-care { grid-template-columns: 1fr; gap: var(--space-6); }
  .price-extras { gap: var(--gap-tight); }
  .nav-links a.nav-pricing { display: inline-flex; }
}
@media (max-width: 560px) {
  .nav-links { gap: var(--space-3); }
  .nav .btn-small { padding-inline: var(--space-3); font-size: 1rem; }
  .price-included, .pricing-care { padding: var(--pad-card); }
  .price-fee { font-size: 6rem; }
  .price-statement .btn { width: 100%; }
}

/* Sample work: right after the hero (task 103, CEO-approved). One card holds both samples:
   tabs on desktop, native swipe (scroll-snap) on touch, like a browser with two tabs. */
.work { padding: var(--section-y) 0 0; }
#work { scroll-margin-top: calc(var(--space-10) + env(safe-area-inset-top, 0px)); }
.work-label { font-family: var(--sans); font-weight: 600; font-size: var(--t-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--signal); margin-bottom: var(--space-2); }
.work-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--space-6); margin-top: var(--space-8); align-items: stretch; }
.work-sample { margin: 0; min-width: 0; }
.work-frame { background: var(--deep); border-radius: var(--radius-md); overflow: hidden; }
.work-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) var(--space-6) 0; }
.work-tabs { display: flex; gap: var(--space-1); }
.work-tab {
  min-height: var(--touch-min); padding: 0 var(--space-5); border: 0; border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: transparent; color: var(--ink-2); font: 500 var(--t-base)/1 var(--sans); cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.work-tab:hover { color: var(--ink); background: rgba(23, 47, 61, .05); }
.work-tab[aria-selected="true"] { background: var(--paper); color: var(--ink); }
.work-badge { margin-bottom: var(--space-3); padding: var(--space-1) var(--space-3); background: var(--ink); color: var(--paper); font-family: var(--sans); font-weight: 500; font-size: var(--t-xs); letter-spacing: 0.01em; border-radius: var(--radius-sm); white-space: nowrap; }
.work-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; background: var(--paper); }
.work-track::-webkit-scrollbar { display: none; }
.work-slide { flex: 0 0 100%; scroll-snap-align: start; padding: var(--space-6); }
/* Extra right padding (space-9) leaves room for the phone shot that overhangs the laptop shot. */
.work-shots { position: relative; padding: 0 var(--space-9) var(--space-6) 0; }
.work-desk img { width: 100%; height: auto; border-radius: var(--radius-sm); box-shadow: 0 1px 2px rgba(23, 47, 61, .12), 0 12px 32px rgba(23, 47, 61, .14); }
/* 4px (3px on phones) ink border draws the phone bezel, not spacing. Shadows are decorative. */
.work-phone { position: absolute; right: 0; bottom: 0; width: 22%; height: auto; border-radius: var(--radius-md); border: 4px solid var(--ink); background: var(--ink); box-shadow: 0 16px 40px rgba(23, 47, 61, .22); }
.work-caption { margin-top: var(--space-4); color: var(--ink-2); font-size: var(--t-base); }
.work-caption strong { color: var(--ink); font-weight: 600; margin-right: var(--space-2); }
.work-next { display: flex; flex-direction: column; justify-content: flex-end; gap: var(--space-4); padding: var(--space-6); background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius-md); }
/* The empty slot is a third browser tab: a ghost tab in sign lettering over a blank page ("your tab is already open"). */
.work-slot { display: grid; grid-template-rows: auto 1fr; flex: 1; min-height: var(--space-12); margin-bottom: var(--space-2); padding: var(--space-3) var(--space-4) 0; background: var(--deep); border: 1px solid var(--deep-rule); border-radius: var(--radius-sm); overflow: hidden; }
.work-slot::after { content: ""; margin-inline: calc(-1 * var(--space-4)); background: var(--paper); }
.work-slot-tab { justify-self: start; display: flex; align-items: center; min-height: var(--touch-min); padding: 0 var(--space-4); background: var(--paper); border-radius: var(--radius-sm) var(--radius-sm) 0 0; color: var(--sign-ink); font-family: var(--display); font-weight: 600; font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.16em; }
.work-next h3 { font-size: var(--t-lg); }
.work-next p:not(.work-slot) { color: var(--ink-2); max-width: 30ch; }
.work-next .btn { align-self: flex-start; margin-top: var(--space-2); }
@media (prefers-reduced-motion: no-preference) { .work-track { scroll-behavior: smooth; } }
@media (max-width: 900px) {
  .work-grid { grid-template-columns: 1fr; margin-top: var(--space-6); gap: var(--space-6); }
  .work-bar { padding: var(--space-2) var(--space-4) 0; flex-wrap: wrap-reverse; }
  .work-tab { padding: 0 var(--space-4); }
  .work-badge { margin: var(--space-2) 0; }
  .work-slide { padding: var(--space-4) var(--space-4) var(--space-4); }
  .work-shots { padding: 0 var(--space-8) var(--space-5) 0; }
  .work-phone { width: 26%; border-width: 3px; } /* thinner bezel at phone size */
  .work-next { padding: var(--space-4); }
}
