/* ==========================================================================
   humané. — landing page
   Palette: deep green #17251F, green #344B3A, olive #65745A, khaki #A6A078,
   sand #D6C99A and cream #F1EBDD. Corners are rounded throughout.
   ========================================================================== */

:root {
  /* palette */
  --paper: #F1EBDD;        /* page surface: cream */
  --mist: #F1EBDD;         /* light words and marks on dark grounds */
  --stage: #E4DABB;        /* second surface: light sand (storyboards, behind the docked page) */
  --teal: #A6A078;         /* khaki: the light accent (the name stays from the old palette) */
  --teal-deep: #344B3A;    /* green: buttons, menu panel, small accents */
  --ink: #17251F;          /* deep green: text */
  --muted: rgba(23, 37, 31, 0.68);
  --line: rgba(23, 37, 31, 0.2);

  /* type */
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;   /* a book face, with optical sizes */
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  /* layout */
  --vh: 1vh;
  --gutter: clamp(20px, 4.5vw, 72px);
  --pad-top: clamp(22px, 6vh, 64px);
  --pad-bottom: clamp(22px, 7vh, 64px);
  --section: clamp(96px, 18vh, 220px);
  --display: min(16.5vw, 27vh);   /* hero marquee size */
  --img: min(20vw, 32vh);         /* hero square */
  --intro-length: 330;            /* pinned intro height, in vh */

  /* docked (mini) page */
  --mini-scale: 0.443;
  --mini-y: 79;                   /* in vh */
}

@supports (height: 1dvh) {
  :root { --vh: 1dvh; }
}

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

/* The document itself never scrolls. The page scrolls inside .scroller, a full-screen
   scroll area. iOS scrolls an area like this in hardware, even inside an embedded frame,
   so pinned scenes and fixed buttons stay rock steady (whole-document scrolling inside a
   frame is what made everything judder on iPhone and iPad). */
html,
body {
  height: 100%;
  overflow: hidden;
}

.scroller {
  position: fixed;
  inset: 0;
  z-index: 2;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: none;
  overflow-anchor: none;   /* the browser must not nudge the scroll position while scenes animate */
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  outline: none;
  /* every scroll-linked animation runs on this timeline (keyframes come from script.js / page.js) */
  scroll-timeline: --page block;
}
.is-locked .scroller { overflow-y: hidden; }
/* while the page is docked as a card, the cards around it must take the clicks */
.is-selection .scroller { pointer-events: none; }

body {
  margin: 0;
  background: var(--stage);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
sup { font-size: 0.55em; vertical-align: 0.7em; line-height: 0; }
em { font-style: italic; }

:focus-visible {
  outline: 2px solid var(--teal-deep);
  outline-offset: 3px;
}

/* keeps a short phrase on one line (e.g. "in-house") */
.nobr { white-space: nowrap; }

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

.container { padding: 0 var(--gutter); }

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
}

.section { padding: var(--section) 0; }
section[id] { scroll-margin-top: clamp(24px, 7vh, 72px); }

/* ==========================================================================
   PAGE (docks into a mini card in selection mode)
   ========================================================================== */

.page {
  position: relative;
  z-index: 2;
  background: var(--paper);
  overflow-x: clip;
  transform-origin: 50% var(--sy, 0px);
  transition: transform 1s var(--ease-in-out);
}

/* while docked, only the slice that was on screen stays visible */
.is-clipped .page {
  clip-path: inset(var(--sy, 0px) 0 calc(100% - var(--sy, 0px) - var(--vh) * 100) 0);
  will-change: transform;
}

.is-selection .page {
  transform: translate3d(0, calc(var(--vh) * var(--mini-y)), 0) scale(var(--mini-scale));
}

.mini-return,
.mini-shadow {
  position: fixed;
  top: calc(var(--vh) * var(--mini-y));
  left: 50%;
  width: calc(100% * var(--mini-scale));
  height: calc(var(--vh) * 100 * var(--mini-scale));
  transform: translate3d(-50%, 0, 0);
}

.mini-return {
  z-index: 6;
  display: none;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.mini-return:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
.is-selection .mini-return { display: block; }

.mini-shadow {
  z-index: 1;
  box-shadow: 0 30px 120px -10px rgba(23, 37, 31, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.5s var(--ease-out);
}
.is-selection .mini-shadow {
  opacity: 1;
  transition: opacity 0.6s ease 0.6s, transform 0.5s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .is-selection .mini-return:hover ~ .scroller .page {
    transform: translate3d(0, calc(var(--vh) * (var(--mini-y) - 2.5)), 0) scale(var(--mini-scale));
    transition: transform 0.5s var(--ease-out);
  }
  .is-selection .mini-return:hover ~ .mini-shadow {
    transform: translate3d(-50%, calc(var(--vh) * -2.5), 0);
  }
}

/* ==========================================================================
   INTRO — pinned hero; the centre photo grows into a full-screen section
   ========================================================================== */

.intro {
  position: relative;
  height: calc(var(--vh) * var(--intro-length));
}

.intro__sticky {
  position: sticky;
  top: 0;
  height: calc(var(--vh) * 100);
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  padding: var(--pad-top) var(--gutter) var(--pad-bottom);
  overflow: hidden;
}

/* ---------- header ---------- */

.intro__header {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  transition: color 0.45s ease;
}
.intro__header > :first-child { justify-self: start; }
.intro__header > :last-child { justify-self: end; }
.intro.is-over .intro__header { color: var(--mist); }

.logo { position: relative; display: block; }
.logo img {
  width: clamp(104px, 11vw, 168px);
  height: auto;
}
.logo__light {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.logo__ink { transition: opacity 0.45s ease; }
.intro.is-over .logo__ink { opacity: 0; }
.intro.is-over .logo__light { opacity: 1; }

.link {
  position: relative;
  padding: 6px 0;
  font-size: 16px;
}
.link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .link:hover::after { transform: scaleX(1); transform-origin: left; }
}

/* ---------- stage: marquee + square slot ---------- */

.intro__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  margin: 0 calc(var(--gutter) * -1);
}

.marquee {
  width: 100%;
  overflow: hidden;
  pointer-events: none;
}
.marquee--hero { grid-area: 1 / 1; }

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee var(--marquee-duration, 48s) linear infinite;
  will-change: transform;
}

.marquee__group {
  display: flex;
  flex-shrink: 0;
}

.marquee__group span {
  padding-right: 0.42em;
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.025em;
  white-space: nowrap;
}
.marquee__group em {
  font-weight: 300;
  letter-spacing: -0.035em;
}

.marquee--hero .marquee__group span {
  font-size: var(--display);
  color: var(--teal);
}

@keyframes marquee {
  to { transform: translate3d(-50%, 0, 0); }
}

.intro__slot {
  grid-area: 1 / 1;
  width: var(--img);
  aspect-ratio: 1;
  overflow: hidden;
}
.intro__slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* With JS the slot is only a measuring box; the photo lives in .intro__media */
.js .intro__slot img { visibility: hidden; }

/* ---------- copy + scroll cue ---------- */

.intro__copy {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(10px, 2vh, 20px);
  text-align: center;
}

.intro__lede {
  margin: 0;
  font-size: clamp(17px, 1.72vw, 24px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.012em;
}

.intro__bottom {
  display: flex;
  align-items: center;
  min-height: 46px;
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}
.scroll-cue i {
  position: relative;
  width: 1px;
  height: 34px;
  overflow: hidden;
  background: var(--line);
}
.scroll-cue i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translate3d(0, -100%, 0);
  animation: cue 2.2s var(--ease-in-out) infinite;
}
@keyframes cue {
  0%   { transform: translate3d(0, -100%, 0); }
  50%  { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(0, 100%, 0); }
}

/* ---------- the growing photo ---------- */

.intro__media {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0;                 /* scaled from the square to full-bleed as the page scrolls */
  transform-origin: 0 0;
  will-change: transform;
  pointer-events: none;
}
.intro__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 50% 50%;
  will-change: transform;
}

/* load-in: the square opens upward from its bottom edge. The window slides up while its content
   slides down by the same amount, so only two GPU transforms change (no per-frame clipping). */
.intro__reveal,
.intro__reveal-inner {
  position: absolute;
  inset: 0;
}
.intro__reveal { overflow: hidden; }
.intro__reveal-inner { background: var(--teal); } /* behind the photo while it loads; hidden until revealed */
.js .intro__reveal { transform: translate3d(0, 100%, 0); }
.js .intro__reveal-inner { transform: translate3d(0, -100%, 0) scale(1.22); }
.js:not(.is-loading) .intro__reveal { animation: intro-open 1.4s var(--ease-in-out) 0.25s both; }
.js:not(.is-loading) .intro__reveal-inner { animation: intro-open-inner 1.4s var(--ease-in-out) 0.25s both; }
@keyframes intro-open {
  to { transform: translate3d(0, 0, 0); }
}
@keyframes intro-open-inner {
  to { transform: translate3d(0, 0, 0) scale(1); }
}
.intro__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 37, 31, 0.45) 0%, rgba(23, 37, 31, 0.15) 45%, rgba(23, 37, 31, 0.5) 100%);
  opacity: 0;
}

.intro__statement {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 var(--gutter) calc(var(--vh) * 18);
  color: var(--mist);
  text-align: center;
  pointer-events: none;
}
.intro__line {
  margin: 0;
  overflow: hidden;
  padding-bottom: 0.06em;
  font-family: var(--serif);
  font-size: clamp(44px, min(8vw, 13vh), 136px);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.intro__line span {
  display: inline-block;
  transform: translate3d(0, 105%, 0);
  will-change: transform;
}

/* ==========================================================================
   SHARED TYPE
   ========================================================================== */

/* short two-tone section headlines (Apple-style) */
.kicker {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(22px, 2.1vw, 32px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.024em;
  color: var(--ink);
  text-wrap: balance;
}
.kicker span {
  display: block;
  color: #878B6A;
}
.kicker--center { text-align: center; }
.kicker--center span { display: inline; }

.section-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(40px, 5.6vw, 96px);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

/* ==========================================================================
   ABOUT
   ========================================================================== */

.about .kicker { grid-column: 1 / 4; padding-top: 0.45em; padding-right: 16px; }

.manifesto {
  grid-column: 4 / 13;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 4.1vw, 68px);
  font-weight: 300;
  line-height: 1.14;
  letter-spacing: -0.022em;
}
.manifesto .w {
  opacity: 0.16;
  transition: opacity 0.45s ease;
}
.manifesto .w.is-lit { opacity: 1; }

.about__foot {
  grid-column: 4 / 13;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-top: clamp(48px, 9vh, 104px);
}

.about__text {
  max-width: 44ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.6;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  padding: 0 0 6px;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: none;
  font-size: 17px;
  cursor: pointer;
}
.arrow-link__icon {
  display: inline-flex;
  transition: transform 0.45s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .arrow-link:hover .arrow-link__icon { transform: translate3d(6px, 0, 0); }
}

/* ==========================================================================
   SERVICES
   ========================================================================== */

.services { padding-top: 0; }

.services__head {
  align-items: start;
  row-gap: 28px;
}
.services__head .kicker { grid-column: 1 / 4; padding-top: 0.6em; padding-right: 16px; }
.services__head .section-title { grid-column: 4 / 12; }
.services__intro {
  grid-column: 4 / 10;
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.55;
}
.services__cta { grid-column: 4 / 13; justify-self: start; }

/* the way into Seven's story: a card in Seven's own colours, with its logo and its name */
.seven-cta {
  display: flex;
  align-items: stretch;
  max-width: 620px;
  border: 1px solid rgba(91, 70, 50, 0.16);
  background: #F2ECE1;
  transition: border-color 0.3s ease, box-shadow 0.45s var(--ease-out), transform 160ms var(--ease-out);
}
.seven-cta:active { transform: scale(0.985); }
.seven-cta__logo {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 132px;
  padding: 18px 4px 18px 14px;
}
.seven-cta__logo svg { display: block; width: 72px; height: auto; }
.seven-cta__logo b {
  color: #5B4632;
  font-family: "Fraunces", Georgia, serif;
  font-size: 25px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}
.seven-cta__sun { transition: transform 0.6s var(--ease-out); }
.seven-cta__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  padding: 20px 24px;
}
.seven-cta__text strong {
  font-family: var(--serif);
  font-size: clamp(20px, 1.7vw, 26px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
/* the name, set like the logo */
.seven-cta__name {
  color: #5B4632;
  font-family: "Fraunces", Georgia, serif;
  font-size: 0.94em;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.seven-cta__text span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.seven-cta__go {
  display: grid;
  flex: none;
  place-items: center;
  width: 56px;
  color: #5B4632;
}
.seven-cta__go svg { transition: transform 0.45s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .seven-cta:hover { border-color: #B9773C; box-shadow: 0 18px 40px -24px rgba(91, 70, 50, 0.45); }
  .seven-cta:hover .seven-cta__go svg { transform: translate3d(4px, 0, 0); }
  .seven-cta:hover .seven-cta__sun { transform: translate(0, -8px); }
}
@media (max-width: 720px) {
  .seven-cta__logo { width: 88px; padding: 14px 2px 14px 10px; }
  .seven-cta__logo svg { width: 48px; }
  .seven-cta__logo b { font-size: 19px; }
  .seven-cta__text { padding: 14px 16px; }
  .seven-cta__text strong { font-size: 19px; }
  .seven-cta__text span { display: none; }
  .seven-cta__go { width: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .seven-cta__sun { transition: none; }
}

/* ---------- stacking service cards ---------- */

.stack {
  --stack-top: calc(var(--vh) * 10);
  --stack-step: clamp(14px, 2.4vh, 26px);   /* how much of each card peeks out above the next */
  --card-h: min(calc(var(--vh) * 72), 700px);
  margin: clamp(56px, 10vh, 112px) 0 0;
  padding: 0 0 calc(var(--vh) * 14);       /* hold the finished stack for a moment before it scrolls away */
  list-style: none;
}

.stack-card {
  position: sticky;
  top: calc(var(--stack-top) + var(--i) * var(--stack-step));
  height: var(--card-h);
  /* equal margin-box bottoms, so the whole deck leaves together without collapsing */
  margin-bottom: calc((var(--count) - 1 - var(--i)) * var(--stack-step) + calc(var(--vh) * 8));
}

.stack-card__inner {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  height: 100%;
  padding: clamp(22px, 3vw, 44px);
  overflow: hidden;
  background: var(--bg);
  color: var(--fg);
  box-shadow: 0 -24px 48px -28px rgba(23, 37, 31, 0.45);
  transform-origin: 50% 0;
  will-change: transform;
}

.stack-card__content {
  grid-column: 1 / 8;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.stack-card__meta {
  display: flex;
  gap: 10px;
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.16em;
}
.stack-card__meta span + span { opacity: 0.6; }

.stack-card__body { margin-top: auto; }

.stack-card__title {
  max-width: 12ch;
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: clamp(40px, min(5.4vw, 9vh), 92px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
}

.stack-card__desc {
  max-width: 46ch;
  margin: 0;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.6;
  opacity: 0.85;
}

.stack-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: clamp(22px, 4vh, 36px) 0 0;
  padding: 0;
  list-style: none;
}
.stack-card__tags li {
  padding: 7px 14px 6px;
  border: 1px solid color-mix(in srgb, currentColor 35%, transparent);
  font-size: 13px;
  white-space: nowrap;
}

.stack-card__media {
  position: relative;
  grid-column: 8 / 13;
  margin: 0;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.08);
}
.stack-card__media .illus {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  will-change: transform;
}

/* darkens a card as others stack on top of it (driven from scroll) */
.stack-card__veil {
  position: absolute;
  inset: 0;
  background: #17251F;
  opacity: 0;
  pointer-events: none;
}

/* ==========================================================================
   SERVICE ILLUSTRATIONS — animated 2D scenes (inline SVG)
   Only play while visible and not buried under other cards.
   ========================================================================== */

.illus:not(.is-playing) *,
.illus.is-covered *,
.stack.is-moving .illus * { animation-play-state: paused !important; }   /* the page is scrolling (script.js) */

/* Each card shows its step in building Seven, the bakery the service pages follow. Without
   motion (reduced motion) every scene rests on its finished picture. */

/* 01 — Strategy: Seven's wall of notes narrows to the one true sentence */
.sv1-drop {
  transform-box: fill-box;
  transform-origin: center;
  animation: sv1-drop 8.3s var(--ease-in-out) infinite both;
  animation-delay: var(--d, 0s);
}
.sv1-keep { animation: sv1-keep 8.3s var(--ease-in-out) infinite both; }
.sv1-ring {
  opacity: 0;
  animation: sv1-ring 8.3s var(--ease-out) infinite both;
}
.sv1-card {
  transform-box: fill-box;
  transform-origin: center;
  animation: sv1-card 8.3s var(--ease-out) infinite both;
}

@keyframes sv1-drop {
  0%, 16%  { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  30%, 90% { transform: translate(0, 26px) rotate(6deg); opacity: 0; }
  96%      { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  100%     { transform: translate(0, 0) rotate(0deg); opacity: 1; }
}
@keyframes sv1-keep {
  0%, 26%  { transform: translate(0, 0); opacity: 1; }
  44%      { transform: translate(var(--tx), var(--ty)); opacity: 1; }
  52%, 90% { transform: translate(var(--tx), var(--ty)); opacity: 0; }
  94%      { transform: translate(0, 0); opacity: 0; }
  100%     { transform: translate(0, 0); opacity: 1; }
}
@keyframes sv1-ring {
  0%, 8%    { opacity: 0; }
  14%, 44%  { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@keyframes sv1-card {
  0%, 44%   { transform: scale(0.94); opacity: 0; }
  54%, 86%  { transform: scale(1); opacity: 1; }
  92%, 100% { transform: scale(1); opacity: 0; }
}

/* 02 — Identity: the sun mark is drawn and named, then lands on a bag, a cup and a sign */
.sv2-guides {
  opacity: 0;
  animation: sv2-guides 8.3s ease infinite both;
}
.sv2-line,
.sv2-smile { stroke-dasharray: 1 2; }
.sv2-line { animation: sv2-line 8.3s var(--ease-in-out) infinite both; }
.sv2-sun { animation: sv2-sun 8.3s var(--ease-out) infinite both; }
.sv2-smile { animation: sv2-smile 8.3s var(--ease-in-out) infinite both; }
.sv2-ray {
  transform-box: fill-box;
  transform-origin: center;
  animation: sv2-ray 8.3s var(--ease-out) infinite both;
  animation-delay: var(--d, 0s);
}
.sv2-word { animation: sv2-word 8.3s var(--ease-out) infinite both; }
.sv2-tag { animation: sv2-tag 8.3s var(--ease-out) infinite both; }
.sv2-lockup {
  transform-origin: 200px 104px;
  animation: sv2-lockup 8.3s var(--ease-in-out) infinite both;
}
.sv2-tp {
  opacity: 0;
  animation: sv2-tp 8.3s var(--ease-out) infinite both;
  animation-delay: var(--d, 0s);
}

@keyframes sv2-guides {
  0%        { opacity: 0; }
  6%, 40%   { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@keyframes sv2-line {
  0%, 6%    { stroke-dashoffset: 1.05; opacity: 1; }
  20%, 88%  { stroke-dashoffset: 0; opacity: 1; }
  94%, 100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes sv2-sun {
  0%, 14%   { transform: translate(0, 62px); opacity: 1; }
  30%, 88%  { transform: translate(0, 0); opacity: 1; }
  94%, 100% { transform: translate(0, 0); opacity: 0; }
}
@keyframes sv2-smile {
  0%, 30%   { stroke-dashoffset: 1.05; }
  40%, 100% { stroke-dashoffset: 0; }
}
@keyframes sv2-ray {
  0%, 34%   { transform: scale(0); opacity: 1; }
  42%, 88%  { transform: scale(1); opacity: 1; }
  94%, 100% { transform: scale(1); opacity: 0; }
}
@keyframes sv2-word {
  0%, 40%   { transform: translate(0, 10px); opacity: 0; }
  50%, 88%  { transform: translate(0, 0); opacity: 1; }
  94%, 100% { transform: translate(0, 0); opacity: 0; }
}
@keyframes sv2-tag {
  0%, 46%   { opacity: 0; }
  54%, 88%  { opacity: 1; }
  94%, 100% { opacity: 0; }
}
@keyframes sv2-lockup {
  0%, 58%  { transform: scale(1); }
  68%, 94% { transform: scale(0.58); }
  100%     { transform: scale(1); }
}
@keyframes sv2-tp {
  0%, 62%   { transform: translate(0, 36px); opacity: 0; }
  72%, 88%  { transform: translate(0, 0); opacity: 1; }
  94%, 100% { transform: translate(0, 0); opacity: 0; }
}

/* 03 — Marketing: Seven's posts get liked and answered, and the regulars grow */
.sv3-feed { animation: sv3-feed 8.3s var(--ease-in-out) infinite both; }
.sv3-heart {
  transform-box: fill-box;
  transform-origin: center;
  animation: sv3-heart 8.3s var(--ease-out) infinite both;
}
.sv3-float {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: sv3-float 8.3s var(--ease-out) infinite both;
  animation-delay: var(--d, 0s);
}
.sv3-stat { animation: sv3-stat 8.3s var(--ease-out) infinite both; }
.sv3-line {
  stroke-dasharray: 1 2;
  animation: sv3-line 8.3s var(--ease-in-out) infinite both;
}
.sv3-bubble {
  transform-box: fill-box;
  transform-origin: 0% 100%;
  animation: sv3-bubble 8.3s var(--ease-out) infinite both;
}

@keyframes sv3-feed {
  0%, 30%  { transform: translate(0, 0); opacity: 1; }
  42%, 88% { transform: translate(0, -195px); opacity: 1; }
  93%      { transform: translate(0, -195px); opacity: 0; }
  95%      { transform: translate(0, 0); opacity: 0; }
  100%     { transform: translate(0, 0); opacity: 1; }
}
@keyframes sv3-heart {
  0%, 8%    { transform: scale(0); }
  13%       { transform: scale(1.35); }
  18%, 90%  { transform: scale(1); }
  94%, 100% { transform: scale(0); }
}
@keyframes sv3-float {
  0%, 12%   { transform: translate(0, 0) scale(0.6); opacity: 0; }
  16%       { opacity: 1; }
  34%, 100% { transform: translate(var(--dx, 0px), -54px) scale(1.1); opacity: 0; }
}
@keyframes sv3-stat {
  0%, 40%   { transform: translate(30px, 0); opacity: 0; }
  50%, 88%  { transform: translate(0, 0); opacity: 1; }
  94%, 100% { transform: translate(0, 0); opacity: 0; }
}
@keyframes sv3-line {
  0%, 48%   { stroke-dashoffset: 1.05; }
  70%, 100% { stroke-dashoffset: 0; }
}
@keyframes sv3-bubble {
  0%, 60%   { transform: scale(0.8); opacity: 0; }
  66%, 88%  { transform: scale(1); opacity: 1; }
  94%, 100% { transform: scale(1); opacity: 0; }
}

/* 04 — Websites: the template turns into Seven's own site, then it's on a phone */
.sv4-out {
  opacity: 0;
  animation: sv4-out 8.3s ease infinite both;
  animation-delay: var(--d, 0s);
}
.sv4-in {
  animation: sv4-in 8.3s ease infinite both;
  animation-delay: var(--d, 0s);
}
.sv4-phone { animation: sv4-phone 8.3s var(--ease-out) infinite both; }
.sv4-chip {
  transform-box: fill-box;
  transform-origin: 0% 50%;
  animation: sv4-chip 8.3s var(--ease-out) infinite both;
}

@keyframes sv4-out {
  0%, 14%   { opacity: 1; }
  20%, 92%  { opacity: 0; }
  98%, 100% { opacity: 1; }
}
@keyframes sv4-in {
  0%, 16%   { opacity: 0; }
  22%, 88%  { opacity: 1; }
  94%, 100% { opacity: 0; }
}
@keyframes sv4-phone {
  0%, 36%   { transform: translate(44px, 0); opacity: 0; }
  46%, 88%  { transform: translate(0, 0); opacity: 1; }
  94%, 100% { transform: translate(0, 0); opacity: 0; }
}
@keyframes sv4-chip {
  0%, 50%   { transform: scale(0.8); opacity: 0; }
  56%, 88%  { transform: scale(1); opacity: 1; }
  94%, 100% { transform: scale(1); opacity: 0; }
}

/* 05 — Full-stack: a pre-order travels from a customer's phone to the bakery's screen */
.sv5r-ripple {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: sv5r-ripple 7.5s var(--ease-out) infinite both;
}
.sv5r-done { animation: sv5r-done 7.5s ease infinite both; }
.sv5r-p {
  opacity: 0;
  animation: sv5r-p1 7.5s var(--ease-in-out) infinite both;
}
.sv5r-p2 { animation-name: sv5r-p2; }
.sv5r-api {
  transform-box: fill-box;
  transform-origin: center;
  animation: sv5r-api 7.5s var(--ease-out) infinite both;
}
.sv5r-rows {
  transform: translate(0, 22px);
  animation: sv5r-rows 7.5s var(--ease-in-out) infinite both;
}
.sv5r-new { animation: sv5r-new 7.5s var(--ease-out) infinite both; }
.sv5r-badge {
  transform-box: fill-box;
  transform-origin: center;
  animation: sv5r-badge 7.5s var(--ease-out) infinite both;
}

@keyframes sv5r-ripple {
  0%, 10%   { transform: scale(0.5); opacity: 0; }
  12%       { transform: scale(0.7); opacity: 0.8; }
  24%, 100% { transform: scale(2.4); opacity: 0; }
}
@keyframes sv5r-done {
  0%, 12%   { opacity: 0; }
  16%, 88%  { opacity: 1; }
  94%, 100% { opacity: 0; }
}
@keyframes sv5r-p1 {
  0%, 16%   { transform: translate(0, 0); opacity: 0; }
  18%       { transform: translate(0, 0); opacity: 1; }
  32%       { transform: translate(var(--tx), var(--ty)); opacity: 1; }
  34%, 100% { transform: translate(var(--tx), var(--ty)); opacity: 0; }
}
@keyframes sv5r-p2 {
  0%, 36%   { transform: translate(0, 0); opacity: 0; }
  38%       { transform: translate(0, 0); opacity: 1; }
  50%       { transform: translate(var(--tx), var(--ty)); opacity: 1; }
  52%, 100% { transform: translate(var(--tx), var(--ty)); opacity: 0; }
}
@keyframes sv5r-api {
  0%, 32%   { transform: scale(1); }
  35%       { transform: scale(1.08); }
  40%, 100% { transform: scale(1); }
}
@keyframes sv5r-rows {
  0%, 50%   { transform: translate(0, 0); }
  56%, 88%  { transform: translate(0, 22px); }
  96%, 100% { transform: translate(0, 0); }
}
@keyframes sv5r-new {
  0%, 52%   { transform: translate(10px, 0); opacity: 0; }
  58%, 88%  { transform: translate(0, 0); opacity: 1; }
  93%, 100% { transform: translate(0, 0); opacity: 0; }
}
@keyframes sv5r-badge {
  0%, 54%   { transform: scale(0.6); opacity: 0; }
  60%, 88%  { transform: scale(1); opacity: 1; }
  94%, 100% { transform: scale(1); opacity: 0; }
}

@keyframes s5-blink {
  50% { opacity: 0; }
}

/* ==========================================================================
   VALUES
   ========================================================================== */

.values { padding-top: 0; }

.values__head {
  align-items: start;
  row-gap: 32px;
}
.values__head .kicker { grid-column: 1 / 4; padding-top: 0.6em; padding-right: 16px; }
.values__head .section-title { grid-column: 4 / 12; }

.values__media {
  align-items: start;
  margin-top: clamp(56px, 10vh, 120px);
}

.frame {
  margin: 0;
  overflow: hidden;
  background: var(--stage);
}
.frame img {
  width: 100%;
  height: 124%;
  margin-top: -12%;
  object-fit: cover;
  will-change: transform;
}
.frame--tall { grid-column: 1 / 7; aspect-ratio: 4 / 5; }
.frame--small {
  grid-column: 9 / 13;
  grid-row: 1;
  aspect-ratio: 3 / 4;
  margin-top: clamp(120px, 34vh, 380px);
}

.values__caption {
  grid-column: 9 / 12;
  grid-row: 1;
  align-self: start;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.values__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
  margin: clamp(80px, 14vh, 160px) 0 0;
  padding: 0;
  list-style: none;
}
.values__list li {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.values__num {
  display: block;
  margin-bottom: 36px;
  color: var(--teal-deep);
  font-size: 12px;
  letter-spacing: 0.14em;
}
.values__list h3 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: clamp(30px, 2.8vw, 44px);
  font-weight: 300;
  letter-spacing: -0.02em;
}
.values__list p {
  max-width: 34ch;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

/* ==========================================================================
   BAND
   ========================================================================== */

.band {
  padding: clamp(18px, 3vh, 32px) 0;
  background: var(--teal);
  color: var(--mist);
}
.marquee--band .marquee__group span {
  padding-right: 0.5em;
  font-size: clamp(56px, 9vw, 150px);
  line-height: 1.1;
}

/* ==========================================================================
   CONTACT
   ========================================================================== */

.contact { text-align: center; }

.contact__title {
  max-width: 14ch;
  margin: 36px auto 0;
  font-family: var(--serif);
  font-size: clamp(48px, 8vw, 148px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.035em;
}
.contact__title em { color: var(--teal); }

.contact__text {
  max-width: 46ch;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.6;
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px 36px;
  margin-top: clamp(40px, 7vh, 72px);
}

.contact__email {
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  transition: border-color 0.3s ease;
}
@media (hover: hover) and (pointer: fine) {
  .contact__email:hover { border-color: var(--ink); }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  padding: 56px 0 calc(var(--pad-bottom) + 70px);
  border-top: 1px solid var(--line);
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.site-footer__logo img { width: clamp(120px, 12vw, 180px); height: auto; }

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  font-size: 15px;
}
.site-footer__nav a,
.site-footer__bottom a {
  transition: color 0.3s ease;
}
@media (hover: hover) and (pointer: fine) {
  .site-footer__nav a:hover,
  .site-footer__bottom a:hover { color: var(--teal-deep); }
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 56px;
  color: var(--muted);
  font-size: 14px;
}
.site-footer__bottom p { margin: 0; }

/* ==========================================================================
   FIXED ACTIONS + BUTTONS
   ========================================================================== */

.actions {
  position: fixed;
  right: var(--gutter);
  bottom: calc(var(--pad-bottom) + env(safe-area-inset-bottom, 0px));
  z-index: 5;
  display: flex;
  gap: 8px;
}
.is-selection .actions {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 46px;
  padding: 0 22px 0 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  transition: color 0.45s var(--ease-out), border-color 0.45s var(--ease-out), transform 160ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }

/* fill that wipes in from the left on hover */
.btn::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  background: var(--teal-deep);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}

.btn--outline { background: var(--paper); }

.btn--solid {
  border-color: var(--teal-deep);
  background: var(--teal-deep);
  color: var(--mist);
}
.btn--solid::before { background: var(--ink); }

.btn--light {
  border-color: rgba(241, 235, 221, 0.4);
  color: var(--mist);
}
.btn--light::before { background: var(--mist); }

.btn--square {
  width: 50px;
  padding: 0;
}

.btn__arrow { transition: transform 0.45s var(--ease-out); }

@media (hover: hover) and (pointer: fine) {
  .btn:hover::before { transform: scaleX(1); transform-origin: left; }
  .btn--outline:hover { color: var(--mist); border-color: var(--teal-deep); }
  .btn--solid:hover { border-color: var(--ink); }
  .btn--light:hover { color: var(--teal-deep); border-color: var(--mist); }
  .btn:hover .icon-grid { transform: rotate(90deg); }
  .btn:hover .icon-menu i:last-child { transform: scaleX(1); }
  .btn:hover .icon-close { transform: rotate(90deg); }
  .btn:hover .btn__arrow { transform: translate3d(4px, 0, 0); }
}

/* 2×2 dot grid */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(2, 4px);
  gap: 4px;
  transition: transform 0.6s var(--ease-out);
}
.icon-grid i {
  width: 4px;
  height: 4px;
  background: currentColor;
}

/* two-line menu glyph */
.icon-menu {
  display: grid;
  gap: 5px;
  width: 18px;
}
.icon-menu i {
  display: block;
  height: 1.5px;
  background: currentColor;
}
.icon-menu i:last-child {
  transform: scaleX(0.6);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}

.icon-close {
  position: relative;
  width: 18px;
  height: 18px;
  transition: transform 0.6s var(--ease-out);
}
.icon-close i {
  position: absolute;
  top: 50%; left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transform: rotate(45deg);
}
.icon-close i:last-child { transform: rotate(-45deg); }

/* ==========================================================================
   SELECTION — cards that rise in behind the docked page
   ========================================================================== */

.selection {
  position: fixed;
  inset: 0;
  z-index: 1;
  padding: calc(var(--vh) * 7.2) var(--gutter) 0;
  pointer-events: none;
}
.selection:focus { outline: none; }
.is-selection .selection { pointer-events: auto; }

.selection__track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2.6vw, 40px);
  height: calc(var(--vh) * 68);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--card);
  color: #fff;
  opacity: 0;
  transform: translate3d(0, calc(var(--vh) * 75), 0);
  /* leaving: last card drops first, fades as the page grows over it */
  transition:
    transform 0.8s var(--ease-in-out) calc((3 - var(--i)) * 50ms),
    opacity 0.5s ease calc((3 - var(--i)) * 50ms + 250ms);
}

.is-selection .card {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  /* entering: first card leads, 70ms stagger, starts as the page begins to shrink */
  transition:
    transform 1.1s var(--ease-out) calc(var(--i) * 70ms + 140ms),
    opacity 0.7s var(--ease-out) calc(var(--i) * 70ms + 140ms);
}

.card__panel {
  position: relative;
  flex: 1;
  padding: clamp(18px, 1.9vw, 26px);
}

.card__mark {
  width: clamp(54px, 5vw, 76px);
  height: auto;
}

.card__desc {
  position: absolute;
  left: clamp(18px, 1.9vw, 26px);
  bottom: clamp(18px, 3vh, 28px);
  max-width: min(58%, 180px);
  margin: 0;
  font-size: clamp(12px, 1.05vw, 14px);
  line-height: 1.38;
  text-wrap: balance;
  opacity: 0.92;
}

.card__title {
  position: absolute;
  right: clamp(12px, 1.4vw, 20px);
  bottom: clamp(14px, 2.6vh, 24px);
  margin: 0;
  font-family: var(--serif);
  font-size: min(3.6vw, 5.6vh);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.015em;
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.card__media {
  position: relative;
  height: 38%;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.12);
}
.card__media .illus {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  transition: transform 1.2s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .card:hover .card__media .illus { transform: scale(1.06); }
}

/* ==========================================================================
   MENU PANEL
   ========================================================================== */

/* opens downward like a blind: the panel slides down while its content slides up by the same
   amount, so the content stays put and only the edge moves (GPU transforms, no clip-path) */
.panel {
  position: fixed;
  inset: 0;
  z-index: 10;
  overflow: hidden;
  background: var(--teal-deep);
  color: var(--mist);
  visibility: hidden;
  transform: translate3d(0, -100%, 0);
  transition: transform 0.7s var(--ease-in-out), visibility 0s linear 0.7s;
}
.panel.is-open {
  visibility: visible;
  transform: translate3d(0, 0, 0);
  transition: transform 0.7s var(--ease-in-out), visibility 0s linear 0s;
}

.panel__inner {
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100%;   /* exactly the panel's height, so the two slides cancel out */
  padding: var(--pad-top) var(--gutter) var(--pad-bottom);
  transform: translate3d(0, 100%, 0);
  transition: transform 0.7s var(--ease-in-out);
}
.panel.is-open .panel__inner { transform: translate3d(0, 0, 0); }

.panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel__body {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  column-gap: var(--gutter);
  min-height: 0;
  padding-bottom: calc(var(--vh) * 6);
}

.panel__nav {
  margin: 0;
  padding: 0;
  list-style: none;
}
.panel__nav li {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 0.35s ease, transform 0.5s var(--ease-out);
}
.panel.is-open .panel__nav li {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition:
    opacity 0.7s var(--ease-out) calc(var(--n) * 60ms + 260ms),
    transform 0.9s var(--ease-out) calc(var(--n) * 60ms + 260ms);
}
.panel__nav a {
  display: inline-flex;
  align-items: flex-start;
  gap: 14px;
  padding: 2px 0;
  font-family: var(--serif);
  font-size: clamp(42px, min(7vw, 10vh), 112px);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.025em;
  transition: opacity 0.3s ease;
}
.panel__nav small {
  padding-top: 0.9em;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.12em;
  opacity: 0.7;
}
@media (hover: hover) and (pointer: fine) {
  .panel__nav:hover a { opacity: 0.45; }
  .panel__nav a:hover { opacity: 1; }
}

/* the photo rises into its frame from the bottom edge (a sliding mask, like the panel) */
.panel__figure {
  position: relative;
  width: min(26vw, 52vh);
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
}
.panel__reel {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--teal);
  transform: translate3d(0, 100%, 0);
  transition: transform 0.6s var(--ease-in-out);
}
.panel__reel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  translate: 0 -100%;
  scale: 1.2;
  transition: translate 0.6s var(--ease-in-out), scale 0.6s var(--ease-in-out);
}
.panel.is-open .panel__reel {
  transform: translate3d(0, 0, 0);
  transition: transform 1.1s var(--ease-in-out) 0.3s;
}
.panel.is-open .panel__reel img {
  translate: 0 0;
  scale: 1;
  transition: translate 1.1s var(--ease-in-out) 0.3s, scale 1.6s var(--ease-out) 0.3s;
}

.panel__footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
}
.panel__footer p { margin: 0; }
.panel__footer em { font-family: var(--serif); }

/* ==========================================================================
   SERVICE PAGES (full-stack.html and the ones that follow)
   ========================================================================== */

/* the card illustration morphs into the service page hero where supported */
@view-transition { navigation: auto; }
.svc-art-fullstack { view-transition-name: art-fullstack; }

.kicker--light { color: var(--mist); }
.kicker--light span { color: #D6C99A; }

.btn--paper {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--ink);
}
.btn--paper::before { background: var(--teal); }
.arrow-link--light {
  border-bottom-color: rgba(241, 235, 221, 0.6);
  color: var(--mist);
}
@media (hover: hover) and (pointer: fine) {
  .btn--paper:hover { color: var(--ink); border-color: var(--teal); }
}

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

.svc-hero {
  padding: var(--pad-top) 0 clamp(40px, 7vh, 72px);
  background: #17251F;
  color: var(--mist);
}
.svc-hero .logo__ink { opacity: 0; }
.svc-hero .logo__light { opacity: 1; }

.svc-hero__grid {
  align-items: center;
  row-gap: 48px;
  margin-top: clamp(48px, 9vh, 104px);
}

.svc-hero__copy {
  grid-column: 1 / 8;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  min-width: 0;
  padding-right: clamp(0px, 2vw, 32px);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #D6C99A;
  font-size: 14px;
}
.crumbs a {
  border-bottom: 1px solid rgba(241, 235, 221, 0.35);
  color: var(--mist);
  transition: border-color 0.3s ease;
}
@media (hover: hover) and (pointer: fine) {
  .crumbs a:hover { border-color: var(--mist); }
}

.svc-hero__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(52px, 7.2vw, 124px);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.svc-hero__lede {
  max-width: 48ch;
  margin: 0;
  color: rgba(241, 235, 221, 0.82);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.6;
}

.svc-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  margin-top: 8px;
}

.svc-hero__art {
  position: relative;
  grid-column: 8 / 13;
  max-width: 100%;
  aspect-ratio: 1 / 1.04;
  margin: 0;
  overflow: hidden;
  background: #E4DABB;
}
.svc-hero__art .illus {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

/* ---------- partnership ---------- */

.partner__head,
.handover__head,
.approach__head {
  align-items: start;
  row-gap: 28px;
}
.partner__head .kicker,
.handover__head .kicker,
.approach__head .kicker {
  grid-column: 1 / 4;
  padding-top: 0.5em;
  padding-right: 16px;
}
.handover__head .section-title,
.approach__head .section-title { grid-column: 4 / 12; }

.partner__statement {
  grid-column: 4 / 13;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 3.6vw, 60px);
  font-weight: 300;
  line-height: 1.14;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.partner__statement a {
  border-bottom: 1px solid currentColor;
  color: var(--teal-deep);
}

.partner__split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(12px, 2vw, 28px);
  margin-top: clamp(56px, 10vh, 112px);
}

.partner__card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  padding: clamp(24px, 3vw, 44px);
}
.partner__card--us { background: var(--stage); color: var(--ink); }
.partner__card--them { background: #17251F; color: var(--mist); }

.partner__mark {
  width: clamp(112px, 10vw, 150px);
  height: auto;
}
.partner__name {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(27px, 2.5vw, 37px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}
.partner__role {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.72;
}
.partner__card ul {
  margin: auto 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid color-mix(in srgb, currentColor 20%, transparent);
}
.partner__card li {
  padding: 14px 0;
  border-bottom: 1px solid color-mix(in srgb, currentColor 20%, transparent);
  font-size: clamp(16px, 1.3vw, 19px);
}

/* CodeNest's card uses CodeNest's own look (their palette, typefaces, logo and terminal motif) */
.cn-card {
  --cn-bg: #090C11;
  --cn-surface: #0F141B;
  --cn-raised: #161C25;
  --cn-ink: #ECF0F5;
  --cn-muted: #98A3B2;
  --cn-accent: #3DDC97;
  --cn-line: rgba(255, 255, 255, 0.08);
  position: relative;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--cn-line);
  border-radius: 12px;
  background: var(--cn-surface);
  color: var(--cn-ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
/* their faint 48px grid, fading out from the top */
.cn-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000, transparent);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000, transparent);
  pointer-events: none;
}

.cn-card__bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--cn-line);
  background: var(--cn-raised);
  color: var(--cn-muted);
  font: 12px/1 "JetBrains Mono", ui-monospace, Menlo, monospace;
}
.cn-card__bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}
.cn-card__bar span { margin-left: 10px; }

.cn-card__body {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  padding: clamp(24px, 3vw, 40px);
}

.cn-logo {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 12px;
  border-radius: 8px;
}
.cn-logo svg {
  flex: none;
  width: 42px;
  height: 42px;
  transition: transform 0.5s var(--ease-out);
}
.cn-logo span {
  color: var(--cn-ink);
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}
.cn-logo:focus-visible { outline-color: var(--cn-accent); }
@media (hover: hover) and (pointer: fine) {
  .cn-logo:hover svg { transform: rotate(-6deg) scale(1.04); }
}

.cn-eyebrow {
  margin: 4px 0 0;
  color: var(--cn-accent);
  font: 12px/1.5 "JetBrains Mono", ui-monospace, Menlo, monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.cn-caret {
  display: inline-block;
  width: 7px;
  height: 13px;
  margin-left: 6px;
  vertical-align: -2px;
  background: var(--cn-accent);
  animation: s5-blink 1.1s steps(1, end) infinite;
}

.cn-tagline {
  margin: 0;
  color: var(--cn-muted);
  font-size: 15px;
  line-height: 1.55;
}

.partner__card .cn-list {
  margin-top: auto;
  border-top: 1px solid var(--cn-line);
}
.partner__card .cn-list li {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid var(--cn-line);
  color: var(--cn-ink);
  font-size: clamp(15px, 1.2vw, 17px);
}
.cn-list li::before {
  content: "\276F";
  color: var(--cn-accent);
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 0.85em;
  line-height: 1.7;
}

@media (prefers-reduced-motion: reduce) {
  .cn-caret { animation: none; }
}

.partner__join {
  align-self: center;
  color: var(--teal);
  font-family: var(--serif);
  font-size: clamp(40px, 4vw, 64px);
  font-weight: 300;
  line-height: 1;
}

.partner__foot {
  align-items: end;
  row-gap: 24px;
  margin-top: clamp(40px, 7vh, 72px);
}
.partner__quote {
  grid-column: 4 / 10;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.6;
}
.partner__foot .arrow-link {
  grid-column: 10 / 13;
  justify-self: end;
}

.stack-table { margin-top: clamp(72px, 12vh, 140px); }
.stack-table__title {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.stack-table dl {
  margin: 0;
  border-top: 1px solid var(--line);
}
.stack-table dl > div {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: 12px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.stack-table dt {
  grid-column: 1 / 4;
  font-family: var(--serif);
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 300;
}
.stack-table dd {
  grid-column: 4 / 13;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
.stack-table dd span {
  padding: 6px 12px 5px;
  border: 1px solid var(--line);
  font-size: 14px;
}

/* ---------- handover ---------- */

.handover {
  background: #344B3A;
  color: var(--mist);
}

.handover__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: clamp(56px, 10vh, 112px) 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid rgba(241, 235, 221, 0.16);
  background: rgba(241, 235, 221, 0.16);
}
.handover__grid li {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: clamp(24px, 2.6vw, 40px);
  background: #344B3A;
  transition: background-color 0.4s ease;
}
.handover__grid svg {
  margin-bottom: 18px;
  fill: none;
  stroke: #D6C99A;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.handover__grid h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(22px, 1.9vw, 30px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.handover__grid p {
  margin: 0;
  color: rgba(241, 235, 221, 0.78);
  font-size: 15px;
  line-height: 1.6;
}
@media (hover: hover) and (pointer: fine) {
  .handover__grid li:hover { background: #4B5F49; }
}

/* ---------- approach ---------- */

.principles {
  margin: clamp(56px, 10vh, 112px) 0 0;
  border-top: 1px solid var(--line);
}
.principle {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: 10px;
  align-items: baseline;
  padding: clamp(22px, 3.6vh, 36px) 0;
  border-bottom: 1px solid var(--line);
}
.principle dt {
  grid-column: 1 / 6;
  font-family: var(--serif);
  font-size: clamp(26px, 2.6vw, 42px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.principle dd {
  grid-column: 7 / 13;
  max-width: 48ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.6;
}

/* ---------- card links on the home page ---------- */

.stack-card__link {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 12px;
  margin-top: clamp(18px, 3vh, 28px);
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  font-size: 15px;
}
/* the whole card is the link target */
.stack-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
}
.stack-card__link svg { transition: transform 0.45s var(--ease-out); }

.card__link {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.card__link:focus-visible { outline-offset: -4px; }
.card__go {
  position: absolute;
  top: clamp(16px, 1.8vw, 24px);
  right: clamp(16px, 1.8vw, 24px);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  transition: transform 0.45s var(--ease-out), background-color 0.3s ease;
}

/* on a service page, that service's own card says so; choosing it brings the page back */
.card.is-current .card__go { display: none; }
.card.is-current .card__panel::after {
  content: "You\2019re here";
  position: absolute;
  top: clamp(20px, 2.1vw, 30px);
  right: clamp(16px, 1.8vw, 24px);
  padding: 5px 10px 4px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 99px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
/* the frame rail is fixed inside the page, so it would jump while the page docks */
.is-clipped .story-rail { visibility: hidden; }

@media (hover: hover) and (pointer: fine) {
  .stack-card:hover .stack-card__link svg { transform: translate3d(5px, 0, 0); }
  .card:has(.card__link):not(.is-current):hover .card__go { transform: rotate(45deg); background: rgba(255, 255, 255, 0.12); }
}

/* ---------- service page layout at smaller widths ---------- */

@media (max-width: 1000px) {
  .svc-hero__copy,
  .svc-hero__art { grid-column: 1 / -1; }
  .svc-hero__art { width: min(100%, 560px); }

  .partner__head .kicker,
  .partner__statement,
  .handover__head .kicker,
  .handover__head .section-title,
  .approach__head .kicker,
  .approach__head .section-title,
  .partner__quote { grid-column: 1 / -1; }
  .partner__head .kicker,
  .handover__head .kicker,
  .approach__head .kicker { padding-top: 0; }
  .partner__foot .arrow-link { grid-column: 1 / -1; justify-self: start; }

  .partner__split { grid-template-columns: minmax(0, 1fr); }
  .partner__join { justify-self: center; }

  .handover__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .principle dt { grid-column: 1 / 6; }
  .principle dd { grid-column: 6 / 13; }
}

@media (max-width: 720px) {
  .stack-table dt,
  .stack-table dd,
  .principle dt,
  .principle dd { grid-column: 1 / -1; }
  .handover__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* ==========================================================================
   BRAND STRATEGY PAGE
   ========================================================================== */

/* ---------- hero: two streams of words meet in the middle ---------- */

.bs-hero {
  position: relative;
  overflow: hidden;
  padding: var(--pad-top) 0 clamp(40px, 7vh, 80px);
  background: var(--stage);
  color: var(--ink);
}
.bs-hero > .container {
  position: relative;
  z-index: 2;
}

.flow {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.flow__word {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--fs, 22px);
  font-weight: 300;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  will-change: transform, opacity;
}
.flow__word--italic { font-style: italic; }
.flow__word--sans {
  font-family: var(--sans);
  font-size: calc(var(--fs, 16px) * 0.8);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.flow__word[data-side="right"] { color: var(--teal-deep); }

.bs-hero__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: min(calc(var(--vh) * 74), 720px);
  padding: 6vh 0 2vh;
  text-align: center;
}

.crumbs--dark { color: var(--muted); }
.crumbs--dark a {
  border-bottom-color: var(--line);
  color: var(--ink);
}
@media (hover: hover) and (pointer: fine) {
  .crumbs--dark a:hover { border-color: var(--ink); }
}

.bs-hero__eyebrow {
  margin: 0;
  color: var(--teal-deep);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.bs-hero__title {
  max-width: 12ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(54px, 9vw, 156px);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.bs-hero__title em { color: var(--teal-deep); }

.bs-hero__lede {
  max-width: 52ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.6;
}

.bs-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 32px;
  margin-top: 6px;
}

/* the headline arrives as the two streams meet */
.reveal.reveal--late { transition-delay: calc(var(--d, 0) * 90ms + 1650ms); }
.js.is-loading .bs-hero__title.reveal { transform: translate3d(0, 28px, 0) scale(0.97); }

/* ---------- shared lead layout (kicker | statement) ---------- */

.lead-head {
  align-items: start;
  row-gap: 28px;
}
.lead-head .kicker {
  grid-column: 1 / 4;
  padding-top: 0.5em;
  padding-right: 16px;
}
.lead-head .section-title { grid-column: 4 / 12; }
.lead-statement {
  grid-column: 4 / 13;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 3.6vw, 60px);
  font-weight: 300;
  line-height: 1.14;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.lead-text {
  grid-column: 4 / 10;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.6;
}

/* ---------- the questions we ask ---------- */

.qs {
  background: #344B3A;
  color: var(--mist);
}
.qs__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.qs__controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.qs__count {
  margin-right: 10px;
  color: #D6C99A;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.14em;
}

.qs__stage {
  display: grid;
  margin-top: clamp(48px, 9vh, 96px);
}
.qs__item {
  grid-area: 1 / 1;
  max-width: 18ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(36px, 5.4vw, 88px);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-wrap: balance;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 28px, 0);
  transition: opacity 0.45s ease, transform 0.6s var(--ease-out), visibility 0s linear 0.6s;
}
.qs__item em { color: #D6C99A; }
.qs__item.is-current {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0);
  transition: opacity 0.7s var(--ease-out) 0.12s, transform 0.9s var(--ease-out) 0.12s, visibility 0s;
}
.qs__item.is-leaving { transform: translate3d(0, -22px, 0); }

.qs__bar {
  height: 1px;
  margin-top: clamp(40px, 7vh, 72px);
  overflow: hidden;
  background: rgba(241, 235, 221, 0.2);
}
.qs__bar span {
  display: block;
  height: 100%;
  background: var(--mist);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.qs.is-auto .qs__bar span { animation: qs-progress 6s linear forwards; }
.qs.is-paused .qs__bar span { animation-play-state: paused; }
@keyframes qs-progress {
  to { transform: scaleX(1); }
}

/* ---------- who we work with ---------- */

.bs-who { padding-bottom: clamp(64px, 12vh, 140px); }

.marquee--small .marquee__group span { font-size: clamp(36px, 5.4vw, 88px); }

.band-note {
  margin: 0;
  padding: clamp(28px, 5vh, 48px) var(--gutter) 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(18px, 1.7vw, 26px);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: center;
  text-wrap: balance;
}
.band-note span { color: #878B6A; }

@media (max-width: 1000px) {
  .lead-head .kicker,
  .lead-head .section-title,
  .lead-statement,
  .lead-text { grid-column: 1 / -1; }
  .lead-head .kicker { padding-top: 0; }
}

@media (max-width: 720px) {
  .bs-hero__center { min-height: calc(var(--vh) * 70); }
  .flow__word { font-size: calc(var(--fs, 22px) * 0.62); }
  .flow__word--sans { font-size: calc(var(--fs, 16px) * 0.55); }
  .qs__top { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal.reveal--late { transition-delay: 0s; }
  .js.is-loading .bs-hero__title.reveal { transform: none; }
  .qs__item,
  .qs__item.is-current { transform: none; }
}

/* ==========================================================================
   IDENTITY & DESIGN PAGE — a scroll-driven storyboard
   ========================================================================== */

/* the example bakery's own palette (the client's world, not ours) */
.story {
  --crust: #B9773C;
  --flour: #F2ECE1;
  --rye: #5B4632;
  --dawn: #EDB86B;
  --brand-serif: "Fraunces", Georgia, serif;
}

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

.id-hero {
  padding: var(--pad-top) 0 clamp(40px, 7vh, 72px);
  background: #A6A078;
  color: #17251F;
}
.id-hero .crumbs--dark { color: rgba(23, 37, 31, 0.7); }
.id-hero .crumbs--dark a { border-bottom-color: rgba(23, 37, 31, 0.35); color: #17251F; }

.id-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  max-width: 980px;
  margin-top: clamp(48px, 9vh, 104px);
}
.id-hero__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(50px, 7.4vw, 128px);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.id-hero__title em { color: #F1EBDD; }
.id-hero__lede {
  max-width: 50ch;
  margin: 0;
  color: rgba(23, 37, 31, 0.82);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.6;
}
.id-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
}

/* ---------- story frame ---------- */

.story {
  position: relative;
  padding-top: var(--section);
  background: var(--stage);
}
.story__intro { padding-bottom: clamp(24px, 6vh, 64px); }

.chapter {
  position: relative;
  height: calc(var(--vh) * 260);
}
.chapter__sticky {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  height: calc(var(--vh) * 100);
  overflow: hidden;
}
.chapter__grid {
  align-items: center;
  width: 100%;
  row-gap: 24px;
}

.chapter__text {
  grid-column: 1 / 5;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.chapter__num {
  margin: 0;
  color: var(--teal-deep);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.chapter__num span { color: var(--muted); }
.chapter__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(36px, 3.7vw, 62px);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.chapter__captions {
  display: grid;
  min-height: 7.2em;
}
.caption {
  grid-area: 1 / 1;
  max-width: 34ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.6;
}
.chapter__bar {
  width: min(100%, 220px);
  height: 1px;
  overflow: hidden;
  background: var(--line);
}
.chapter__bar span {
  display: block;
  height: 100%;
  background: var(--teal-deep);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.chapter__stage {
  grid-column: 5 / 12;
  min-width: 0;
}

/* the artboard: one 4:3 frame per scene; everything inside scales with it */
.artboard {
  position: relative;
  width: min(100%, calc(var(--vh) * 100));
  aspect-ratio: 4 / 3;
  max-width: 100%;
  margin-left: auto;
  overflow: hidden;
  container-type: inline-size;
  border: 1px solid var(--line);
  background: var(--paper);
}

/* elements the storyboard animates: SVG parts scale and turn about themselves */
.story svg [data-in],
.story svg [data-out] {
  transform-box: fill-box;
  transform-origin: center;
}
/* before the script runs, hidden starting states (avoids a flash) */
.js .story [data-in*="o:"] { opacity: 0; }
/* dash 1, gap 2: a hidden line is parked just past its start (offset 1.05, page.js), so its
   rounded end doesn't leave a dot where the line will begin */
.story [data-in*="d:"] { stroke-dasharray: 1 2; }
.js .story [data-in*="d:"] { stroke-dashoffset: 1.05; }
.js .story [data-in*="sx:"] { transform: scaleX(0); }
.js .story [data-in*="c:"] { clip-path: inset(0 100% 0 0); }

/* rail: which frame you're in, fixed at the right while the story runs */
.story-rail {
  position: fixed;
  top: 50%;
  right: clamp(12px, 1.6vw, 28px);
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(8px, -50%, 0);
  transition: opacity 0.4s ease, transform 0.5s var(--ease-out);
}
.story-rail.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, -50%, 0);
}
.story-rail a {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 5px 0;
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
  transition: color 0.3s ease;
}
.story-rail a i {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--line);
  transform: scaleX(0.5);
  transform-origin: 100% 50%;
  transition: transform 0.4s var(--ease-out), background-color 0.3s ease;
}
.story-rail a.is-active { color: var(--ink); }
.story-rail a.is-active i { transform: scaleX(1); background: var(--teal-deep); }
@media (hover: hover) and (pointer: fine) {
  .story-rail a:hover { color: var(--ink); }
}

/* ---------- frame 01: the reason ---------- */

.cliche {
  position: absolute;
  display: inline-block;
  color: #2D2D2D;
  white-space: nowrap;
}
.cl-serif { font-family: var(--serif); font-size: 4.2cqw; font-weight: 400; }
.cl-italic { font-style: italic; }
.cl-caps { font-size: 3.2cqw; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; }
.cl-sans { font-size: 3.6cqw; font-weight: 600; letter-spacing: -0.02em; }
.cl-bold { font-size: 4cqw; font-weight: 700; letter-spacing: -0.04em; text-transform: uppercase; }
.cl-stars {
  padding: 0.5cqw 1.4cqw;
  border-radius: 99px;
  background: #F3D36B;
  font-size: 2.2cqw;
  letter-spacing: 0.1em;
}
.cl-swoosh svg { display: block; width: 10cqw; }
.cl-blob {
  width: 10cqw;
  height: 10cqw;
  border-radius: 46% 54% 60% 40%;
  background: linear-gradient(135deg, #8B5CF6, #EC4899);
}
.cl-photo svg { display: block; width: 13cqw; }
.cl-photo em {
  display: block;
  margin-top: 0.4cqw;
  color: #8A919B;
  font-size: 1.3cqw;
  font-style: normal;
}
.strike {
  position: absolute;
  top: 54%;
  left: -4%;
  width: 108%;
  height: 0.35cqw;
  background: #65745A;
  transform-origin: 0 50%;
}

.reason,
.truth {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.6cqw;
  padding: 0 10cqw;
  text-align: center;
}
.reason__label {
  margin: 0;
  color: var(--teal-deep);
  font-size: 1.4cqw;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.reason__line {
  max-width: 18ch;
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 5.6cqw;
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.reason__line em { color: var(--teal-deep); }
.reason__note {
  margin: 0;
  color: var(--muted);
  font-size: 1.5cqw;
}

/* ---------- frame 02: the tests ---------- */

.st-tests {
  display: flex;
  flex-direction: column;
  gap: 3cqw;
  padding: 4.5cqw;
}
.tests__head {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.8cqw;
}
.tests__head .reason__label { text-align: left; }
.tests__line {
  max-width: 30ch;
  margin: 0;
  font-family: var(--serif);
  font-size: 3cqw;
  font-weight: 300;
  line-height: 1.2;
}
.tests__pass {
  position: absolute;
  top: 0;
  right: 0;
  padding: 0.8cqw 1.6cqw;
  border: 1px solid var(--teal-deep);
  border-radius: 99px;
  color: var(--teal-deep);
  font-size: 1.5cqw;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.tests__grid {
  display: grid;
  flex: 1;
  grid-template-columns: 1fr 1fr;
  gap: 2cqw;
}
.test {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.8cqw;
  padding: 2.4cqw;
  border: 1px solid var(--line);
  background: #FFFFFF;
}
.test__head {
  display: flex;
  align-items: center;
  gap: 1.4cqw;
}
.test__ring { width: 4.6cqw; height: 4.6cqw; flex: none; }
.ring-track { fill: none; stroke: var(--line); stroke-width: 2.5; }
.ring-fill {
  fill: none;
  stroke: var(--teal-deep);
  stroke-width: 2.5;
  stroke-dasharray: 1;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-box: fill-box;
  transform-origin: center;
}
.ring-check {
  fill: none;
  stroke: var(--teal-deep);
  stroke-width: 3;
  stroke-dasharray: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.test__name {
  margin: 0;
  font-family: var(--serif);
  font-size: 3cqw;
  font-weight: 300;
}
.test__q {
  margin: 0;
  color: var(--ink);
  font-size: 1.7cqw;
  font-weight: 500;
}
.test__a {
  margin: 0;
  color: var(--muted);
  font-size: 1.6cqw;
  line-height: 1.45;
}
.test__lit {
  position: absolute;
  inset: -1px;
  border: 2px solid var(--teal-deep);
  pointer-events: none;
}

/* ---------- frame 03: the system ---------- */

.st-system {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  background: var(--flour);
}
.sys {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2cqw;
  padding: 3cqw;
  border-color: rgba(91, 70, 50, 0.18);
  border-style: solid;
  border-width: 0;
}
.sys--mark,
.sys--colour { border-right-width: 1px; }
.sys--mark,
.sys--type { border-bottom-width: 1px; }
.sys__label {
  position: absolute;
  top: 2.4cqw;
  left: 2.6cqw;
  margin: 0;
  color: var(--rye);
  font-size: 1.3cqw;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.sys__note {
  margin: 0;
  color: rgba(91, 70, 50, 0.75);
  font-size: 1.5cqw;
}
.sys__mark { width: 25cqw; }
.sys__aud {
  display: grid;
  place-items: center;
  height: 10cqw;
}
.aud {
  grid-area: 1 / 1;
  color: var(--rye);
  line-height: 1;
  white-space: nowrap;
}
.aud--1 { font-size: 5.4cqw; font-weight: 700; letter-spacing: 0.3em; }
.aud--2 { font-family: var(--serif); font-size: 7.6cqw; font-style: italic; font-weight: 300; }
.aud--3 { font-family: var(--brand-serif); font-size: 8.4cqw; font-weight: 600; letter-spacing: -0.02em; }
.swatches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2cqw;
  width: 100%;
  margin-top: 2cqw;
}
.swatch {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.3cqw;
  aspect-ratio: 3 / 4;
  padding: 1.2cqw;
  background: var(--sw);
  color: var(--flour);
}
.swatch--light {
  color: var(--rye);
  box-shadow: inset 0 0 0 1px rgba(91, 70, 50, 0.2);
}
.swatch span { font-size: 1.6cqw; font-weight: 600; }
.swatch small { font-size: 1.2cqw; opacity: 0.8; }
.sys__voice {
  margin: 0;
  color: var(--crust);
  font-family: var(--brand-serif);
  font-size: 5cqw;
  font-style: italic;
  font-weight: 400;
  white-space: nowrap;
}

/* ---------- frame 04: show, don't say ---------- */

.wipe__before,
.wipe__inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.6cqw;
  padding: 6cqw;
  text-align: center;
}
.wipe__before { background: #121212; color: #C9A54A; }
/* a sliding mask: the window moves right while its content slides back by the same
   amount, so the "shows" label stays put and only the reveal edge travels (GPU only) */
.wipe__after {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transform: translate3d(-100%, 0, 0);
  will-change: transform;
}
.wipe__inner {
  background: var(--flour);
  color: var(--rye);
  transform: translate3d(100%, 0, 0);
  will-change: transform;
}
.wipe__tag {
  position: absolute;
  top: 2.6cqw;
  left: 2.8cqw;
  padding: 0.5cqw 1.2cqw;
  border: 1px solid currentColor;
  border-radius: 99px;
  font-size: 1.3cqw;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.wipe__inner .wipe__tag { left: auto; right: 2.8cqw; }
.says__kicker { margin: 0; font-size: 1.5cqw; letter-spacing: 0.36em; text-transform: uppercase; }
.says__title { max-width: 14ch; margin: 0; font-family: var(--serif); font-size: 6cqw; font-style: italic; font-weight: 300; line-height: 1.05; }
.says__stars { margin: 0; font-size: 1.6cqw; letter-spacing: 0.08em; opacity: 0.85; }
.shows__mark { width: 11cqw; }
.shows__name { margin: -1cqw 0 0; font-family: var(--brand-serif); font-size: 4.4cqw; font-weight: 600; letter-spacing: -0.02em; }
.shows__title { margin: 0; font-family: var(--brand-serif); font-size: 5cqw; font-weight: 600; line-height: 1.05; }
.shows__line { margin: 0; color: var(--crust); font-family: var(--brand-serif); font-size: 3.2cqw; font-style: italic; font-weight: 400; }
.shows__meta { margin: 0; color: rgba(91, 70, 50, 0.75); font-size: 1.5cqw; letter-spacing: 0.08em; }
.wipe__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  margin-left: -1px;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(23, 37, 31, 0.25);
}
.wipe__handle i {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 5.4cqw;
  height: 5.4cqw;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  color: var(--ink);
  font-size: 1.8cqw;
  font-style: normal;
  transform: translate(-50%, -50%);
}

/* ---------- frame 05: one thread ---------- */

.st-touch { background: #F1EBDD; }
.tp {
  position: absolute;
  overflow: hidden;
  box-shadow: 0 1.2cqw 3cqw -1.2cqw rgba(23, 37, 31, 0.35);
}
.tp__cover {
  position: absolute;
  background: repeating-linear-gradient(45deg, #17251F 0 0.6cqw, #344B3A 0.6cqw 1.2cqw);
  transform-origin: 0 50%;
}

.tp--bag {
  left: 4%;
  top: 39.3%;
  width: 20%;
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--crust);
}
.tp__fold {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 12%;
  background: rgba(0, 0, 0, 0.12);
}
.tp__mark { width: 62%; margin-top: 8%; }
.tp__cover--bag { top: 30%; left: 16%; width: 68%; height: 32%; }
.tp__words {
  margin: 4% 0 0;
  color: var(--flour);
  font-family: var(--brand-serif);
  font-size: 1.5cqw;
  font-style: italic;
}

.tp--cup {
  left: 24.5%;
  top: 52.3%;
  width: 13%;
  aspect-ratio: 1 / 1.35;
  background: var(--flour);
  clip-path: polygon(0 0, 100% 0, 86% 100%, 14% 100%);
  box-shadow: none;
}
.tp__band {
  position: absolute;
  top: 34%;
  left: 0;
  right: 0;
  display: grid;
  place-items: center;
  height: 30%;
  background: var(--rye);
  color: var(--flour);
  font-family: var(--brand-serif);
  font-size: 2.2cqw;
  font-weight: 600;
}
.tp__cover--cup { top: 34%; left: 0; width: 100%; height: 30%; }

.tp--web {
  left: 38%;
  top: 24.6%;
  width: 34%;
  aspect-ratio: 1 / 0.68;
  background: var(--flour);
}
.tp__bar {
  display: flex;
  gap: 0.6cqw;
  padding: 1cqw 1.2cqw;
  background: #E2D9CA;
}
.tp__bar i { width: 0.9cqw; height: 0.9cqw; border-radius: 50%; background: rgba(91, 70, 50, 0.35); }
.tp__site {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.2cqw;
  padding: 1.6cqw 2cqw;
}
.tp__logo { color: var(--rye); font-family: var(--brand-serif); font-size: 1.8cqw; font-weight: 600; }
.tp__headline {
  margin: 0.4cqw 0 0;
  color: var(--rye);
  font-family: var(--brand-serif);
  font-size: 3.2cqw;
  font-weight: 600;
  line-height: 1.05;
}
.tp__button {
  padding: 0.7cqw 1.4cqw;
  background: var(--crust);
  color: var(--flour);
  font-size: 1.2cqw;
  font-weight: 600;
}
.tp__cover--web { top: 3.8cqw; left: 1.4cqw; width: 8.4cqw; height: 3cqw; }

.tp--sign {
  left: 44%;
  top: 66.7%;
  width: 22%;
  aspect-ratio: 1 / 0.36;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3cqw;
  background: var(--rye);
  color: var(--flour);
}
.tp__signname { font-family: var(--brand-serif); font-size: 3cqw; font-weight: 600; line-height: 1; }
.tp--sign small { color: var(--dawn); font-size: 1.2cqw; letter-spacing: 0.08em; }
.tp__cover--sign { top: 14%; left: 22%; width: 56%; height: 48%; }

.tp--post {
  left: 74%;
  top: 42.7%;
  width: 20%;
  aspect-ratio: 1 / 1;
  background: #FFFFFF;
}
.tp__avatar {
  position: absolute;
  top: 6%;
  left: 6%;
  z-index: 1;
  width: 16%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 70%, var(--crust) 0 40%, var(--flour) 41%);
  box-shadow: 0 0 0 2px #FFFFFF;
}
.tp__photo {
  display: block;
  height: 74%;
  background:
    radial-gradient(ellipse 34% 26% at 50% 66%, #C98B4A 0 98%, transparent 100%),
    linear-gradient(180deg, var(--dawn), var(--crust));
}
.tp__caption {
  margin: 0;
  padding: 3% 6%;
  color: var(--rye);
  font-family: var(--brand-serif);
  font-size: 1.4cqw;
  font-style: italic;
}
.tp__cover--post { top: 6%; left: 6%; width: 16%; height: 16%; }

.stamp {
  position: absolute;
  top: 7%;
  left: 36%;
  padding: 1cqw 2.2cqw;
  border: 0.35cqw solid var(--teal-deep);
  color: var(--teal-deep);
  background: rgba(241, 235, 221, 0.9);
  font-size: 2cqw;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.tp__tag {
  position: absolute;
  padding: 0.4cqw 1cqw;
  border-radius: 99px;
  background: var(--ink);
  color: var(--paper);
  font-size: 1.3cqw;
  letter-spacing: 0.06em;
}

/* ---------- frame 06: built to last ---------- */

.st-last { background: var(--paper); }
.year {
  position: absolute;
  top: 3cqw;
  right: 3.4cqw;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin: 0;
  line-height: 1;
}
.year small {
  color: var(--muted);
  font-size: 1.3cqw;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.year span {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 7cqw;
  font-variant-numeric: tabular-nums;
  font-weight: 300;
  letter-spacing: -0.03em;
}
.lockup {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8cqw;
}
.lockup svg { width: 16cqw; }
.lockup__name { margin: -1cqw 0 0; color: var(--rye); font-family: var(--brand-serif); font-size: 7cqw; font-weight: 600; line-height: 1; letter-spacing: -0.02em; }
.lockup__line { margin: 0; color: var(--crust); font-family: var(--brand-serif); font-size: 2.6cqw; font-style: italic; }
.lockup__ok {
  margin-top: 1.4cqw;
  padding: 0.6cqw 1.6cqw;
  border-radius: 99px;
  background: var(--teal-deep);
  color: var(--paper);
  font-size: 1.4cqw;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.trend {
  position: absolute;
  padding: 1cqw 1.8cqw;
  font-size: 1.8cqw;
  font-weight: 600;
  white-space: nowrap;
}
.trend--blob { border-radius: 99px; background: linear-gradient(135deg, #8B5CF6, #EC4899); color: #FFFFFF; }
.trend--chrome {
  border-radius: 1cqw;
  background: linear-gradient(180deg, #F5F7FA, #9AA3AE 48%, #E6E9EE 52%, #7C8590);
  color: #20242A;
  letter-spacing: 0.04em;
}
.trend--brutal { background: #000000; color: #FFFFFF; font-weight: 700; letter-spacing: -0.02em; text-transform: uppercase; }
.trend--pastel { border-radius: 99px; background: #FBD5E5; color: #6B4C7A; box-shadow: 0.6cqw 0.6cqw 0 #F1EBDD; }
.trend--grain {
  background:
    radial-gradient(rgba(0, 0, 0, 0.18) 0.08cqw, transparent 0.1cqw) 0 0 / 0.5cqw 0.5cqw,
    #D9C8A9;
  color: #3A2F22;
}
.trend--badge { border: 0.3cqw double #8C3B2E; border-radius: 99px; color: #8C3B2E; letter-spacing: 0.16em; text-transform: uppercase; }

/* ---------- what you get ---------- */

.get-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: clamp(56px, 10vh, 112px) 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  background: var(--line);
}
.get-grid li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: clamp(24px, 2.6vw, 40px);
  background: var(--paper);
}
.get-grid small {
  color: var(--teal-deep);
  font-size: 12px;
  letter-spacing: 0.14em;
}
.get-grid h3 {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: clamp(24px, 2vw, 32px);
  font-weight: 300;
  letter-spacing: -0.015em;
}
.get-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
.get-grid__link { background: var(--stage) !important; }
.get-grid__link .arrow-link { align-self: flex-start; margin-top: auto; }

/* ---------- smaller screens ---------- */

@media (max-width: 1000px) {
  .story-rail { display: none; }

  .chapter { height: calc(var(--vh) * 240); }
  .chapter__sticky { align-items: flex-start; padding-top: calc(var(--vh) * 6); }
  .chapter__stage { grid-column: 1 / -1; order: -1; }
  .chapter__text { grid-column: 1 / -1; gap: 12px; }
  .artboard { width: 100%; margin: 0; }
  .chapter__title { font-size: clamp(30px, 6vw, 44px); }
  .chapter__captions { min-height: 6.4em; }

  .get-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .chapter__sticky { padding-top: calc(var(--vh) * 4); }
  .chapter__title { font-size: 30px; }
  .caption { font-size: 15px; }
  .chapter__captions { min-height: 7.2em; }

  .get-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .story-rail { transition: opacity 0.3s ease; }
}

/* ==========================================================================
   BRAND STRATEGY STORYBOARD — the same bakery, before it has a logo
   ========================================================================== */

.chapter--long { height: calc(var(--vh) * 420); }

/* what the client takes away from a frame */
.chapter__out {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  max-width: 34em;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.5;
}
.chapter__out span {
  padding-top: 3px;
  color: var(--teal-deep);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lead-statement em { color: var(--teal-deep); }
.story__outro {
  padding-top: var(--section);
  padding-bottom: var(--section);
}
.story__outro .arrow-link { grid-column: 4 / 13; justify-self: start; }

/* a phrase we pick out: a teal marker sweeps in behind it */
.said {
  position: relative;
  z-index: 0;
  display: inline-block;
}
.said__mark {
  position: absolute;
  right: -0.15em;
  bottom: 0.02em;
  left: -0.15em;
  z-index: -1;
  height: 0.62em;
  background: rgba(166, 160, 120, 0.45);
  transform-origin: 0 50%;
}

/* ---------- frame 01: why it began ---------- */

.st-origin { background: #F1EBDD; }

.sheet {
  position: absolute;
  top: 9%;
  left: 21%;
  width: 58%;
  padding: 3cqw 3.4cqw 2.6cqw;
  border: 1px solid #D5D9DE;
  background: #FFFFFF;
  box-shadow: 0 1.2cqw 3cqw -1.4cqw rgba(23, 37, 31, 0.35);
}
.sheet__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2cqw;
  padding-bottom: 1.6cqw;
  border-bottom: 0.3cqw solid #2D2D2D;
}
.sheet__head strong {
  color: #2D2D2D;
  font-size: 2.1cqw;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.sheet__head span { color: #8A919B; font-size: 1.4cqw; }
.sheet__rows { margin: 0; }
.sheet__rows div {
  display: flex;
  justify-content: space-between;
  gap: 2cqw;
  padding: 1.4cqw 0;
  border-bottom: 1px dashed #D5D9DE;
}
.sheet__rows dt { color: #2D2D2D; font-size: 1.9cqw; font-weight: 600; }
.sheet__rows dd {
  margin: 0;
  color: #6B7280;
  font-size: 1.8cqw;
  font-variant-numeric: tabular-nums;
}
.sheet__foot {
  margin: 2cqw 0 0;
  color: #9AA3AF;
  font-size: 1.4cqw;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-align: center;
  text-transform: uppercase;
}

.origin {
  position: absolute;
  top: 20%;
  left: 13%;
  width: 74%;
  display: flex;
  flex-direction: column;
  gap: 1.8cqw;
  padding: 4.2cqw 4.8cqw;
  background: var(--flour);
  box-shadow: 0 1.2cqw 3cqw -1.4cqw rgba(91, 70, 50, 0.4);
}
.origin__label {
  margin: 0;
  color: var(--crust);
  font-size: 1.4cqw;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.origin__quote {
  margin: 0;
  color: var(--rye);
  font-family: var(--serif);
  font-size: 3.6cqw;
  font-weight: 300;
  line-height: 1.24;
  letter-spacing: -0.01em;
}
.origin__quote > span { display: block; }
.origin__sign {
  display: flex;
  align-items: center;
  gap: 1.2cqw;
  margin: 0;
  color: rgba(91, 70, 50, 0.75);
  font-size: 1.6cqw;
}
.origin__sign span {
  padding: 0.3cqw 0.9cqw;
  border: 1px solid rgba(91, 70, 50, 0.35);
  border-radius: 99px;
  font-size: 1.15cqw;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.origin__pill {
  position: absolute;
  right: 3.6cqw;
  bottom: 3.4cqw;
  padding: 0.8cqw 1.6cqw;
  border-radius: 99px;
  background: var(--teal-deep);
  color: var(--paper);
  font-size: 1.5cqw;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ---------- frame 02: listen to both sides ---------- */

.listen__side {
  position: absolute;
  top: 4.5%;
  display: flex;
  align-items: center;
  gap: 1cqw;
  margin: 0;
  color: var(--ink);
  font-size: 1.4cqw;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.listen__side--founder { left: 4%; }
.listen__side--people { right: 4%; }
.listen__side i {
  width: 2.6cqw;
  height: 2.6cqw;
  border-radius: 50%;
  background: var(--crust);
}
.listen__side--people i {
  background: var(--teal);
  box-shadow: 0 0 0 0.3cqw var(--paper);
}
.listen__side--people i + i { margin-left: -2.2cqw; background: #D6C99A; }
.listen__side--people i + i + i { background: var(--teal-deep); }

.bubble {
  position: absolute;
  max-width: 45%;
  margin: 0;
  padding: 1.5cqw 2.2cqw;
  border-radius: 2cqw;
  font-size: 2.3cqw;
  line-height: 1.35;
  text-wrap: balance;
}
/* the founder speaks in the bakery's own colours, customers in plain white */
.bubble--founder {
  left: 4%;
  border-bottom-left-radius: 0.4cqw;
  background: var(--flour);
  color: var(--rye);
  transform-origin: 0 100%;
}
.bubble--people {
  right: 4%;
  border: 1px solid var(--line);
  border-bottom-right-radius: 0.4cqw;
  background: #FFFFFF;
  color: var(--ink);
  transform-origin: 100% 100%;
}

.listen__sum {
  position: absolute;
  right: 4%;
  bottom: 5%;
  left: 4%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.2cqw;
  margin: 0;
  padding: 1.8cqw 2cqw;
  background: var(--ink);
  color: var(--paper);
  font-size: 1.8cqw;
}
.listen__sum strong {
  padding: 0.4cqw 1.4cqw;
  border-radius: 99px;
  background: var(--teal);
  color: var(--ink);
  font-weight: 600;
}

/* ---------- frame 03: the one true thing ---------- */

.st-truth { background: #F1EBDD; }

.wall__count {
  position: absolute;
  top: 3%;
  left: 4%;
  display: flex;
  align-items: baseline;
  gap: 1.2cqw;
  margin: 0;
  line-height: 1;
}
.wall__count small {
  color: var(--muted);
  font-size: 1.3cqw;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.wall__count span {
  min-width: 2ch;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 4.4cqw;
  font-variant-numeric: tabular-nums;
  font-weight: 300;
}

.wall-note {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 15%;
  aspect-ratio: 1;
  padding: 1.4cqw;
  background: #F1EBDD;
  box-shadow: 0 0.6cqw 1.4cqw -0.6cqw rgba(23, 37, 31, 0.35);
  color: var(--ink);
  font-size: 1.9cqw;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
}
.wall-note:nth-of-type(3n + 1) { background: #D6C99A; }
.wall-note:nth-of-type(3n) { background: #D6C99A; }
.wall-note__lit {
  position: absolute;
  inset: -0.5cqw;
  border: 0.35cqw solid var(--teal-deep);
}

/* ---------- frame 04: the strategy ---------- */

.strat__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.strat__lines path {
  fill: none;
  stroke: var(--teal-deep);
  stroke-width: 1.4;
  stroke-linecap: round;
}

/* corner cards are sized so the drawn lines land on their inner edges */
.strat {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 0.8cqw;
  width: 28%;
  height: 27%;
  padding: 2cqw 2.2cqw;
  border: 1px solid var(--line);
  background: #FFFFFF;
}
.strat--tl { top: 4%; left: 3%; }
.strat--tr { top: 4%; right: 3%; }
.strat--bl { bottom: 4%; left: 3%; }
.strat--br { right: 3%; bottom: 4%; }
.strat--core {
  top: 38%;
  left: 32%;
  width: 36%;
  height: 24%;
  align-items: center;
  justify-content: center;
  border-color: rgba(91, 70, 50, 0.25);
  background: var(--flour);
  text-align: center;
}
.strat__label {
  margin: 0;
  color: var(--teal-deep);
  font-size: 1.3cqw;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.strat--core .strat__label { color: var(--crust); }
.strat__core {
  margin: 0;
  color: var(--rye);
  font-family: var(--serif);
  font-size: 2.3cqw;
  font-weight: 300;
  line-height: 1.2;
}
.strat__core em { color: var(--crust); }
.strat__text {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 2.4cqw;
  font-weight: 300;
  line-height: 1.22;
}
.strat__lit {
  position: absolute;
  inset: -0.6cqw;
  border: 0.3cqw solid var(--teal-deep);
  pointer-events: none;
}
.strat__trace {
  position: absolute;
  top: 64%;
  right: 0;
  left: 0;
  margin: 0;
  color: var(--teal-deep);
  font-size: 1.3cqw;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

/* ---------- frame 05: six beliefs, applied ---------- */

.bel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 2.2cqw;
  padding: 4.5cqw;
}
.bel__num {
  margin: 0;
  color: var(--teal-deep);
  font-size: 1.4cqw;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.bel__num span { color: var(--muted); }
.bel__title {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 4.8cqw;
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.bel__title em { color: var(--teal-deep); }
.bel__pair {
  display: grid;
  flex: 1;
  grid-template-columns: 1fr 1fr;
  gap: 2.4cqw;
  min-height: 0;
}
.bel__card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5cqw 2.8cqw 2.8cqw;
}
.bel__card small {
  position: absolute;
  top: 2.4cqw;
  left: 2.8cqw;
  font-size: 1.3cqw;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.bel__card p { margin: 0; }
.bel__card--no { background: #ECEDEF; color: #4B5563; }
.bel__card--no small { color: #8A919B; }
.bel__card--no p {
  font-size: 2.7cqw;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.bel__card .strike { top: 54%; left: 5%; width: 90%; height: 0.45cqw; }
.bel__card--yes { background: var(--flour); color: var(--rye); }
.bel__card--yes small { color: var(--crust); }
.bel__card--yes p {
  font-family: var(--brand-serif);
  font-size: 3.3cqw;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.bel__why {
  max-width: 60ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.8cqw;
  line-height: 1.45;
}

/* ---------- frame 06: put it to work, report honestly ---------- */

.report__head { position: absolute; top: 5%; left: 5%; }
.report__label {
  margin: 0;
  color: var(--muted);
  font-size: 1.4cqw;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.report__num {
  margin: 0.6cqw 0 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 7cqw;
  font-variant-numeric: tabular-nums;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
}
.report__pill {
  position: absolute;
  top: 6%;
  right: 5%;
  padding: 0.7cqw 1.6cqw;
  border-radius: 99px;
  background: var(--teal-deep);
  color: var(--paper);
  font-size: 1.4cqw;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.report__chart,
.report__promise {
  position: absolute;
  top: 26%;
  left: 5%;
  width: 90%;
  height: 60%;
  overflow: visible;
}
.report__grid path { fill: none; stroke: var(--line); stroke-width: 1; }
.report__axis { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.report__months text { fill: var(--muted); font-family: var(--sans); font-size: 8px; }
.report__line {
  fill: none;
  stroke: var(--teal-deep);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.report__dot { fill: var(--paper); stroke: var(--teal-deep); stroke-width: 2.4; }
.report__dot--miss { stroke: #B05D45; }
.report__promise path {
  fill: none;
  stroke: #9AA3AF;
  stroke-width: 2;
  stroke-dasharray: 6 6;
}

/* the promises other people make: loud on purpose */
.sticker {
  position: absolute;
  display: inline-block;
  padding: 1cqw 1.8cqw;
  box-shadow: 0 0.8cqw 2cqw -1cqw rgba(0, 0, 0, 0.35);
  font-size: 1.9cqw;
  font-weight: 700;
  white-space: nowrap;
}
.sticker--growth { background: #111111; color: #F3D36B; letter-spacing: 0.02em; text-transform: uppercase; }
.sticker--urgent { border-radius: 0.6cqw; background: #E5484D; color: #FFFFFF; }
.sticker--post { border-radius: 99px; background: #F3D36B; color: #2D2D2D; }
.sticker--funnel { border-radius: 0.6cqw; background: linear-gradient(135deg, #8B5CF6, #EC4899); color: #FFFFFF; }
.sticker .strike { height: 0.5cqw; box-shadow: 0 0 0 0.25cqw var(--paper); }

.report__note {
  position: absolute;
  max-width: 24%;
  margin: 0;
  padding: 1cqw 1.4cqw;
  border: 1px solid var(--line);
  border-left: 0.5cqw solid var(--teal-deep);
  background: #FFFFFF;
  box-shadow: 0 0.8cqw 2cqw -1cqw rgba(23, 37, 31, 0.3);
  color: var(--ink);
  font-size: 1.6cqw;
  line-height: 1.35;
}
.report__note--miss { border-left-color: #B05D45; }
.report__note strong { color: #B05D45; font-weight: 600; }

@media (max-width: 1000px) {
  .chapter--long { height: calc(var(--vh) * 380); }
  .story__outro .arrow-link { grid-column: 1 / -1; }
  .chapter__out { font-size: 14px; }
}

/* ==========================================================================
   STORYBOARDS ON PHONES — each frame is one full screen: the words at the
   top, the scene filling the rest edge to edge, recomposed for portrait.
   Inside a scene, --u is 1% of its width, shrunk on short screens so the
   whole composition (100 × --hd units, centred by --cx / --cy) still fits.
   ========================================================================== */

.wall { display: contents; }          /* the wall of notes only becomes a grid on phones */
.strat__lines--m { display: none; }   /* the strategy's connecting lines, drawn for portrait */

@media (max-width: 720px) {
  .chapter__sticky {
    display: flex;
    align-items: stretch;
    padding: 0;
    background: var(--paper);
  }
  .chapter:has(.st-origin) .chapter__sticky,
  .chapter:has(.st-touch) .chapter__sticky { background: #F1EBDD; }
  .chapter:has(.st-truth) .chapter__sticky { background: #F1EBDD; }
  .chapter:has(.st-system) .chapter__sticky { background: var(--flour); }

  .chapter__grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: calc(env(safe-area-inset-top, 0px) + 22px) 0 0;
  }
  .chapter__text { flex: none; gap: 8px; padding: 0 var(--gutter); }
  .chapter__title { font-size: 28px; }
  .chapter__captions { min-height: 6.4em; }
  .caption { max-width: none; font-size: 15px; }
  .chapter__out { display: none; }
  .chapter__stage { flex: 1; order: 1; min-height: 0; margin-top: 12px; }

  .artboard {
    width: 100%;
    height: 100%;
    max-width: none;
    aspect-ratio: auto;
    margin: 0;
    border: 0;
    background: transparent;
    container-type: size;
    --hd: 125;
    --u: min(1cqw, 100cqh / var(--hd));
    --cx: calc((100cqw - 100 * var(--u)) / 2);
    --cy: calc((100cqh - var(--hd) * var(--u)) / 2);
  }

  /* parts placed by --ml / --mt (design units, set in the markup) */
  .cliche,
  .trend,
  .tp__tag,
  .sticker,
  .report__note {
    left: calc(var(--cx) + var(--ml) * var(--u)) !important;
    top: calc(var(--cy) + var(--mt) * var(--u)) !important;
  }

  /* the corner buttons step aside while you scroll down through the story (page.js) */
  .js:not(.is-loading) .actions.reveal { transition: opacity 0.3s ease, transform 0.45s var(--ease-out); }
  .is-immersed .actions { opacity: 0; transform: translate3d(0, 20px, 0); pointer-events: none; }

  /* ---------- brand strategy 01: why it began ---------- */
  .sheet {
    top: calc(var(--cy) + 8 * var(--u));
    left: calc(var(--cx) + 6 * var(--u));
    width: calc(88 * var(--u));
    padding: calc(5 * var(--u)) calc(6 * var(--u)) calc(4.6 * var(--u));
  }
  .sheet__head { padding-bottom: calc(2.8 * var(--u)); border-bottom-width: calc(0.5 * var(--u)); }
  .sheet__head strong { font-size: calc(3.6 * var(--u)); }
  .sheet__head span { font-size: calc(2.8 * var(--u)); }
  .sheet__rows div { padding: calc(2.3 * var(--u)) 0; }
  .sheet__rows dt { font-size: calc(3.6 * var(--u)); }
  .sheet__rows dd { font-size: calc(3.3 * var(--u)); }
  .sheet__foot { margin-top: calc(3.4 * var(--u)); font-size: calc(2.6 * var(--u)); }
  .origin {
    top: calc(var(--cy) + 16 * var(--u));
    left: calc(var(--cx) + 6 * var(--u));
    width: calc(88 * var(--u));
    gap: calc(3 * var(--u));
    padding: calc(7 * var(--u));
  }
  .origin__label { font-size: calc(2.8 * var(--u)); }
  .origin__quote { font-size: calc(6 * var(--u)); }
  .origin__sign { gap: calc(2 * var(--u)); font-size: calc(3 * var(--u)); }
  .origin__sign span { padding: calc(0.5 * var(--u)) calc(1.6 * var(--u)); font-size: calc(2.2 * var(--u)); }
  .origin__pill {
    position: static;
    align-self: flex-start;
    padding: calc(1.4 * var(--u)) calc(3 * var(--u));
    font-size: calc(2.8 * var(--u));
  }

  /* ---------- brand strategy 02: listen to both sides (a chat, top to bottom) ---------- */
  .st-listen {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-content: center;
    row-gap: 10px;
    padding: 18px 18px 24px;
  }
  .listen__side { position: static; gap: calc(1.6 * var(--u)); font-size: calc(2.8 * var(--u)); }
  .listen__side i { width: calc(4.6 * var(--u)); height: calc(4.6 * var(--u)); }
  .listen__side--people { justify-self: end; }
  .listen__side--people i + i { margin-left: calc(-3.6 * var(--u)); }
  .bubble {
    position: static;
    grid-column: 1 / -1;
    max-width: 82%;
    padding: calc(2.4 * var(--u)) calc(3.4 * var(--u));
    border-radius: calc(3.6 * var(--u));
    font-size: calc(3.9 * var(--u));
  }
  .bubble--founder { justify-self: start; border-bottom-left-radius: calc(0.8 * var(--u)); }
  .bubble--people { justify-self: end; border-bottom-right-radius: calc(0.8 * var(--u)); }
  .listen__sum {
    position: static;
    grid-column: 1 / -1;
    margin-top: 8px;
    gap: calc(2 * var(--u));
    padding: calc(3 * var(--u));
    font-size: calc(3.2 * var(--u));
  }
  .listen__sum strong { padding: calc(0.8 * var(--u)) calc(2.4 * var(--u)); }

  /* ---------- brand strategy 03: the wall, as 3 × 5 notes ---------- */
  .wall__count { top: 14px; left: 18px; gap: calc(2 * var(--u)); }
  .wall__count small { font-size: calc(2.6 * var(--u)); }
  .wall__count span { font-size: calc(8 * var(--u)); }
  .wall {
    --c: min(calc((100cqw - 36px) / 3.3), calc((100cqh - 100px) / 4.35));
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(3, var(--c));
    grid-auto-rows: calc(var(--c) * 0.75);
    gap: calc(var(--c) * 0.15);
    justify-content: center;
    align-content: center;
    padding-top: 48px;
  }
  .wall-note {
    position: relative;
    top: auto !important;
    left: auto !important;
    width: auto;
    aspect-ratio: auto;
    padding: 6px;
    font-size: calc(var(--c) * 0.13);
  }
  .wall-note__lit { inset: -4px; border-width: 3px; }
  .truth { gap: calc(3 * var(--u)); padding: 0 calc(8 * var(--u)); }

  /* ---------- brand strategy 04: the strategy, cards above and below the sentence ---------- */
  .strat__lines:not(.strat__lines--m) { display: none; }
  .strat__lines--m { display: block; }
  .strat__lines--m path { stroke-width: 0.4; }
  .strat {
    width: 44%;
    height: 24%;
    gap: calc(1.4 * var(--u));
    padding: calc(3 * var(--u)) calc(3.4 * var(--u));
  }
  .strat--tl,
  .strat--tr { top: 4%; }
  .strat--bl,
  .strat--br { bottom: 4%; }
  .strat--tl,
  .strat--bl { left: 4%; }
  .strat--tr,
  .strat--br { right: 4%; }
  .strat--core { top: 38%; left: 14%; width: 72%; height: 24%; }
  .strat__label { font-size: calc(2.6 * var(--u)); }
  .strat__text { font-size: calc(4 * var(--u)); }
  .strat__core { font-size: calc(4.4 * var(--u)); }
  .strat__lit { inset: calc(-1 * var(--u)); border-width: calc(0.6 * var(--u)); }
  .strat__trace { top: 63.5%; font-size: calc(2.4 * var(--u)); }

  /* ---------- brand strategy 05: six beliefs, cards stacked ---------- */
  .st-beliefs { --hd: 115; }
  .bel { justify-content: center; gap: calc(3 * var(--u)); padding: calc(6 * var(--u)); }
  .bel__num { font-size: calc(2.8 * var(--u)); }
  .bel__title { font-size: calc(7.4 * var(--u)); }
  .bel__pair { flex: none; grid-template-columns: 1fr; gap: calc(3 * var(--u)); }
  .bel__card { min-height: calc(30 * var(--u)); padding: calc(8 * var(--u)) calc(4.4 * var(--u)) calc(4.4 * var(--u)); }
  .bel__card small { top: calc(3.6 * var(--u)); left: calc(4.4 * var(--u)); font-size: calc(2.6 * var(--u)); }
  .bel__card--no p { font-size: calc(5 * var(--u)); }
  .bel__card--yes p { font-size: calc(6 * var(--u)); }
  .bel__card .strike { height: calc(0.7 * var(--u)); }
  .bel__why { font-size: calc(3.6 * var(--u)); }

  /* ---------- brand strategy 06: the report, notes listed under the chart ---------- */
  .st-report { --hd: 122; }
  .report__head { top: calc(var(--cy) + 5 * var(--u)); left: calc(var(--cx) + 6 * var(--u)); }
  .report__label { font-size: calc(2.7 * var(--u)); }
  .report__num { margin-top: calc(1 * var(--u)); font-size: calc(13 * var(--u)); }
  .report__chart,
  .report__promise {
    top: calc(var(--cy) + 26 * var(--u));
    left: calc(var(--cx) + 4 * var(--u));
    width: calc(92 * var(--u));
    height: calc(46 * var(--u));
  }
  .report__months text { font-size: 13px; }
  .sticker { padding: calc(1.8 * var(--u)) calc(3 * var(--u)); font-size: calc(3.3 * var(--u)); }
  .sticker .strike { height: calc(0.8 * var(--u)); }
  .report__note {
    width: calc(88 * var(--u));
    max-width: none;
    padding: calc(2 * var(--u)) calc(2.8 * var(--u));
    border-left-width: calc(1 * var(--u));
    font-size: calc(3.3 * var(--u));
  }
  .report__pill {
    top: calc(var(--cy) + 109 * var(--u));
    right: auto;
    left: calc(var(--cx) + 6 * var(--u));
    padding: calc(1.4 * var(--u)) calc(3 * var(--u));
    font-size: calc(2.8 * var(--u));
  }

  /* ---------- identity 01 (and brand strategy 03's sentence): the reason ---------- */
  .cl-serif { font-size: calc(7.4 * var(--u)); }
  .cl-caps { font-size: calc(5.2 * var(--u)); }
  .cl-sans { font-size: calc(6.2 * var(--u)); }
  .cl-bold { font-size: calc(6.8 * var(--u)); }
  .cl-stars { padding: calc(0.9 * var(--u)) calc(2.4 * var(--u)); font-size: calc(3.8 * var(--u)); }
  .cl-swoosh svg { width: calc(17 * var(--u)); }
  .cl-blob { width: calc(16 * var(--u)); height: calc(16 * var(--u)); }
  .cl-photo svg { width: calc(22 * var(--u)); }
  .cl-photo em { margin-top: calc(0.7 * var(--u)); font-size: calc(2.4 * var(--u)); }
  .cliche .strike { height: calc(0.6 * var(--u)); }
  .reason { gap: calc(3 * var(--u)); padding: 0 calc(8 * var(--u)); }
  .reason__label { font-size: calc(2.8 * var(--u)); }
  .reason__line { font-size: calc(8 * var(--u)); }
  .reason__note { font-size: calc(3 * var(--u)); }

  /* ---------- identity 02: the tests ---------- */
  .st-tests { justify-content: center; gap: 16px; padding: 18px; }
  .tests__head { gap: calc(1.6 * var(--u)); }
  .tests__line { font-size: calc(5 * var(--u)); }
  .tests__pass {
    position: static;
    align-self: flex-start;
    margin-top: calc(1 * var(--u));
    padding: calc(1.2 * var(--u)) calc(2.8 * var(--u));
    font-size: calc(2.8 * var(--u));
  }
  .tests__grid { flex: none; gap: calc(2.6 * var(--u)); }
  .test { gap: calc(1.2 * var(--u)); padding: calc(3.2 * var(--u)); }
  .test__head { gap: calc(2 * var(--u)); }
  .test__ring { width: calc(8 * var(--u)); height: calc(8 * var(--u)); }
  .test__name { font-size: calc(5.2 * var(--u)); }
  .test__q { font-size: calc(3.2 * var(--u)); }
  .test__a { font-size: calc(3 * var(--u)); }

  /* ---------- identity 03: the system ---------- */
  .sys { gap: calc(2 * var(--u)); padding: calc(9 * var(--u)) calc(3 * var(--u)) calc(4 * var(--u)); }
  .sys__label { top: calc(3.6 * var(--u)); left: calc(3.6 * var(--u)); font-size: calc(2.6 * var(--u)); }
  .sys__note { font-size: calc(2.6 * var(--u)); text-align: center; }
  .sys__mark { width: calc(36 * var(--u)); }
  .sys__aud { height: calc(16 * var(--u)); }
  .aud--1 { font-size: calc(7.4 * var(--u)); }
  .aud--2 { font-size: calc(10.6 * var(--u)); }
  .aud--3 { font-size: calc(11.6 * var(--u)); }
  .swatches { grid-template-columns: repeat(2, 1fr); gap: calc(2 * var(--u)); width: 86%; margin-top: calc(1 * var(--u)); }
  .swatch { aspect-ratio: 1; gap: calc(0.4 * var(--u)); padding: calc(1.8 * var(--u)); }
  .swatch span { font-size: calc(2.8 * var(--u)); }
  .swatch small { font-size: calc(2.2 * var(--u)); }
  .sys__voice { font-size: calc(6.8 * var(--u)); line-height: 1.1; text-align: center; white-space: normal; }

  /* ---------- identity 04: show, don't say ---------- */
  .wipe__before,
  .wipe__inner { gap: calc(3 * var(--u)); padding: calc(12 * var(--u)) calc(8 * var(--u)); }
  .wipe__tag { top: calc(4 * var(--u)); left: calc(4 * var(--u)); padding: calc(1 * var(--u)) calc(2.4 * var(--u)); font-size: calc(2.6 * var(--u)); }
  .wipe__inner .wipe__tag { right: calc(4 * var(--u)); }
  .says__kicker { font-size: calc(2.8 * var(--u)); }
  .says__title { font-size: calc(10 * var(--u)); }
  .says__stars { font-size: calc(3.2 * var(--u)); }
  .shows__mark { width: calc(22 * var(--u)); }
  .shows__name { margin-top: calc(-2 * var(--u)); font-size: calc(8 * var(--u)); }
  .shows__title { font-size: calc(9 * var(--u)); }
  .shows__line { font-size: calc(5.6 * var(--u)); }
  .shows__meta { font-size: calc(2.8 * var(--u)); }
  .wipe__handle i { width: calc(10 * var(--u)); height: calc(10 * var(--u)); font-size: calc(3.4 * var(--u)); }

  /* ---------- identity 05: one thread, the touchpoints in a portrait pile ---------- */
  .st-touch { --hd: 112; }
  .tp { box-shadow: 0 calc(2 * var(--u)) calc(5 * var(--u)) calc(-2 * var(--u)) rgba(23, 37, 31, 0.35); }
  .tp--web { top: calc(var(--cy) + 4 * var(--u)); left: calc(var(--cx) + 4 * var(--u)); width: calc(60 * var(--u)); }
  .tp--post { top: calc(var(--cy) + 8 * var(--u)); left: calc(var(--cx) + 66 * var(--u)); width: calc(30 * var(--u)); }
  .tp--sign { top: calc(var(--cy) + 50 * var(--u)); left: calc(var(--cx) + 50 * var(--u)); width: calc(46 * var(--u)); }
  .tp--bag { top: calc(var(--cy) + 52 * var(--u)); left: calc(var(--cx) + 6 * var(--u)); width: calc(38 * var(--u)); }
  .tp--cup { top: calc(var(--cy) + 74 * var(--u)); left: calc(var(--cx) + 54 * var(--u)); width: calc(24 * var(--u)); box-shadow: none; }
  .tp__words { font-size: calc(2.8 * var(--u)); }
  .tp__band { font-size: calc(4 * var(--u)); }
  .tp__bar { gap: calc(1 * var(--u)); padding: calc(1.8 * var(--u)) calc(2 * var(--u)); }
  .tp__bar i { width: calc(1.6 * var(--u)); height: calc(1.6 * var(--u)); }
  .tp__site { gap: calc(2 * var(--u)); padding: calc(2.8 * var(--u)) calc(3.4 * var(--u)); }
  .tp__logo { font-size: calc(3.2 * var(--u)); }
  .tp__headline { font-size: calc(5.6 * var(--u)); }
  .tp__button { padding: calc(1.2 * var(--u)) calc(2.4 * var(--u)); font-size: calc(2.2 * var(--u)); }
  .tp__cover--web { top: calc(7.6 * var(--u)); left: calc(2.6 * var(--u)); width: calc(13 * var(--u)); height: calc(5 * var(--u)); }
  .tp__signname { font-size: calc(5.6 * var(--u)); }
  .tp--sign small { font-size: calc(2.2 * var(--u)); }
  .tp__caption { font-size: calc(2.6 * var(--u)); }
  .stamp {
    top: calc(var(--cy) + 22 * var(--u));
    left: calc(var(--cx) + 18 * var(--u));
    padding: calc(1.8 * var(--u)) calc(3.6 * var(--u));
    border-width: calc(0.6 * var(--u));
    font-size: calc(3.4 * var(--u));
  }
  .tp__tag { padding: calc(0.8 * var(--u)) calc(1.8 * var(--u)); font-size: calc(2.4 * var(--u)); }

  /* ---------- identity 06: built to last ---------- */
  .year { top: calc(4 * var(--u)); right: calc(5 * var(--u)); }
  .year small { font-size: calc(2.6 * var(--u)); }
  .year span { font-size: calc(12 * var(--u)); }
  .lockup { gap: calc(1.6 * var(--u)); }
  .lockup svg { width: calc(30 * var(--u)); }
  .lockup__name { margin-top: calc(-2 * var(--u)); font-size: calc(12 * var(--u)); }
  .lockup__line { font-size: calc(4.8 * var(--u)); }
  .lockup__ok { margin-top: calc(3 * var(--u)); padding: calc(1.2 * var(--u)) calc(3 * var(--u)); font-size: calc(2.8 * var(--u)); }
  .trend { padding: calc(1.8 * var(--u)) calc(3.2 * var(--u)); font-size: calc(3.4 * var(--u)); }
  .trend--chrome { border-radius: calc(1.6 * var(--u)); }
  .trend--pastel { box-shadow: calc(1 * var(--u)) calc(1 * var(--u)) 0 #F1EBDD; }
  .trend--badge { border-width: calc(0.5 * var(--u)); }
}

/* short phones: a little less room for the words */
@media (max-width: 720px) and (max-height: 700px) {
  .chapter__title { font-size: 24px; }
  .caption { font-size: 14px; }
}
/* tall phones have room for what each step delivers */
@media (max-width: 720px) and (min-height: 800px) {
  .chapter__out { display: flex; }
}

/* ==========================================================================
   WEBSITES PAGE — Seven again, now online.
   Scene parts are sized in --k: 1% of the artboard's width on desktop. On phones
   they're placed again on the 100 × --hd canvas from --mx / --my / --mw / --mh in
   the markup, and --k grows by --zoom so the words on the mock screens stay
   readable (the mock sites reflow to their phone layout, like real ones would).
   ========================================================================== */

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

.ws-hero {
  position: relative;
  padding: var(--pad-top) 0 clamp(40px, 7vh, 72px);
  background: #344B3A;
  color: var(--mist);
}
.ws-hero .logo__ink { opacity: 0; }
.ws-hero .logo__light { opacity: 1; }

/* a page-load bar runs across the top once, as the page appears */
.ws-hero__load {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #D6C99A;
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.js:not(.is-loading) .ws-hero__load {
  opacity: 0;
  transform: scaleX(1);
  transition: transform 0.9s var(--ease-out), opacity 0.5s ease 0.8s;
}

.ws-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  max-width: 1000px;
  margin-top: clamp(48px, 9vh, 104px);
}
.ws-hero__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(50px, 7.4vw, 128px);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.ws-hero__title em { color: #D6C99A; }
.ws-hero__lede {
  max-width: 52ch;
  margin: 0;
  color: rgba(241, 235, 221, 0.82);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.6;
}
.ws-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
}
/* measured on the visitor's own screen (page.js), shown only when it's true and quick */
.ws-ready {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: rgba(241, 235, 221, 0.7);
  font-size: 14px;
}
.ws-ready[hidden] { display: none; }
.ws-ready i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #D6C99A;
  box-shadow: 0 0 0 4px rgba(214, 201, 154, 0.18);
}
.ws-ready strong { color: var(--mist); font-weight: 600; font-variant-numeric: tabular-nums; }


/* ---------- scene basics ---------- */

.ws-scene { --k: 1cqw; --ox: 0px; --oy: 0px; }
.ws-at {
  position: absolute;
  left: calc(var(--ox) + var(--x) * var(--k));
  top: calc(var(--oy) + var(--y) * var(--k));
  width: calc(var(--w) * var(--k));
  height: calc(var(--h) * var(--k));
}

/* a slot that holds the template's version and Seven's on top of each other */
.ws-swap {
  display: grid;
  align-items: start;
  justify-items: start;
}
.ws-swap > * { grid-area: 1 / 1; }

/* browser and phone mock-ups */
.ws-browser {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(23, 37, 31, 0.14);
  border-radius: calc(1.2 * var(--k));
  background: #FFFFFF;
  box-shadow: 0 calc(1.6 * var(--k)) calc(4 * var(--k)) calc(-1.6 * var(--k)) rgba(23, 37, 31, 0.35);
}
.ws-browser__bar {
  display: flex;
  flex: none;
  align-items: center;
  gap: calc(0.7 * var(--k));
  height: calc(3.6 * var(--k));
  padding: 0 calc(1.4 * var(--k));
  border-bottom: 1px solid #E3E6EA;
  background: #EEF0F2;
}
.ws-browser__bar > i {
  width: calc(0.9 * var(--k));
  height: calc(0.9 * var(--k));
  border-radius: 50%;
  background: #C9CED6;
}
.ws-tab {
  margin-left: calc(1.2 * var(--k));
  padding: calc(0.5 * var(--k)) calc(1.4 * var(--k));
  border-radius: calc(0.7 * var(--k));
  background: #FFFFFF;
  color: #5F6773;
  font-size: calc(1.15 * var(--k));
  white-space: nowrap;
}

.ws-phone {
  padding: calc(0.9 * var(--k));
  border-radius: calc(3.4 * var(--k));
  background: #1F2326;
  box-shadow: 0 calc(1.6 * var(--k)) calc(4 * var(--k)) calc(-1.6 * var(--k)) rgba(23, 37, 31, 0.45);
}
.ws-phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: calc(2.6 * var(--k));
  background: #FFFFFF;
}

/* Seven's own site: its palette and type, not ours */
.sv-screen,
.ws-site--seven { background: var(--flour); color: var(--rye); }
.sv-logo {
  color: var(--rye);
  font-family: var(--brand-serif);
  font-size: calc(2 * var(--k));
  font-weight: 600;
  letter-spacing: -0.02em;
}
.sv-h {
  color: var(--rye);
  font-family: var(--brand-serif);
  font-size: calc(3.6 * var(--k));
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.sv-p {
  color: rgba(91, 70, 50, 0.8);
  font-size: calc(1.4 * var(--k));
  line-height: 1.5;
}
.sv-btn {
  padding: calc(0.9 * var(--k)) calc(2 * var(--k));
  border-radius: 99px;
  background: var(--crust);
  color: var(--flour);
  font-size: calc(1.25 * var(--k));
  font-weight: 600;
  white-space: nowrap;
}
.sv-label {
  color: var(--crust);
  font-size: calc(1 * var(--k));
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.sv-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: calc(1 * var(--k));
  padding: calc(1.2 * var(--k)) 0;
  border-bottom: 1px solid rgba(91, 70, 50, 0.18);
  font-size: calc(1.4 * var(--k));
}
.sv-row b { font-weight: 600; }
.sv-row em {
  grid-area: 1 / 2;
  justify-self: end;
  color: var(--crust);
  font-size: calc(1.2 * var(--k));
  font-style: normal;
  font-variant-numeric: tabular-nums;
}
.ws-scene svg { display: block; width: 100%; height: 100%; }

/* the frames that run on our page around the mock-ups */
.ws-stamp {
  padding: calc(1 * var(--k)) calc(2.2 * var(--k));
  border: calc(0.35 * var(--k)) solid var(--teal-deep);
  background: rgba(241, 235, 221, 0.92);
  color: var(--teal-deep);
  font-size: calc(1.7 * var(--k));
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ws-chipline { margin: 0; text-align: center; }
.ws-chip {
  display: inline-block;
  padding: calc(0.6 * var(--k)) calc(1.4 * var(--k));
  border-radius: 99px;
  background: var(--ink);
  color: var(--paper);
  font-size: calc(1.15 * var(--k));
  white-space: nowrap;
}
.ws-chip--grey { background: rgba(23, 37, 31, 0.12); color: var(--ink); }

/* ---------- frame 01: the story, not a template ---------- */

.st-template { background: #F1EBDD; }

.ws-site {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: calc(3 * var(--k));
  min-height: 0;
  padding: calc(2.2 * var(--k)) calc(3.2 * var(--k)) calc(3 * var(--k));
  overflow: hidden;
  color: #2D2D2D;
}
.ws-site > * { position: relative; }
.ws-site > .ws-site__bg {
  position: absolute;
  inset: 0;
  background: var(--flour);
}
.ws-site__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ws-site__links { justify-items: end; }
.tpl-logo {
  padding: calc(0.4 * var(--k)) calc(1 * var(--k));
  border: 1px dashed #C9CED6;
  color: #9AA3AF;
  font-size: calc(1.1 * var(--k));
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.tpl-links,
.sv-links {
  display: flex;
  gap: calc(1.8 * var(--k));
  font-size: calc(1.2 * var(--k));
}
.tpl-links { color: #5F6773; }
.sv-links { color: var(--rye); }
.tpl-links b,
.sv-links b { font-weight: 500; }

.ws-site__hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: calc(3 * var(--k));
}
.ws-site__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(1.4 * var(--k));
}
.tpl-h {
  color: #1F2328;
  font-size: calc(3.3 * var(--k));
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.tpl-p {
  color: #6B7280;
  font-size: calc(1.3 * var(--k));
  line-height: 1.5;
}
.tpl-btn {
  padding: calc(0.9 * var(--k)) calc(2 * var(--k));
  border-radius: calc(0.6 * var(--k));
  background: #2F6FEB;
  color: #FFFFFF;
  font-size: calc(1.25 * var(--k));
  font-weight: 600;
}
.ws-site__media {
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border-radius: calc(0.8 * var(--k));
}
.ws-site__media > * { width: 100%; height: 100%; }
.tpl-photo { position: relative; }
.tpl-photo em {
  position: absolute;
  left: calc(1 * var(--k));
  bottom: calc(0.8 * var(--k));
  color: #5F6773;
  font-size: calc(1.1 * var(--k));
  font-style: normal;
}

.ws-site__features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(2 * var(--k));
}
.ws-site__features .ws-swap { justify-items: stretch; }
.tpl-feat {
  display: flex;
  flex-direction: column;
  gap: calc(0.7 * var(--k));
  padding: calc(1.6 * var(--k));
  border: 1px solid #E3E6EA;
  border-radius: calc(0.8 * var(--k));
  background: #FFFFFF;
}
.tpl-feat i {
  display: grid;
  place-items: center;
  width: calc(3 * var(--k));
  height: calc(3 * var(--k));
  border-radius: 50%;
  background: #E8EEFC;
  color: #2F6FEB;
  font-size: calc(1.4 * var(--k));
  font-style: normal;
}
.tpl-feat b { font-size: calc(1.4 * var(--k)); }
.tpl-feat u {
  display: block;
  height: calc(0.6 * var(--k));
  border-radius: 99px;
  background: #EEF0F2;
}
.tpl-feat u + u { width: 70%; }
.sv-feat {
  display: flex;
  flex-direction: column;
  gap: calc(0.5 * var(--k));
  padding: calc(1.4 * var(--k)) 0 0;
  border-top: calc(0.25 * var(--k)) solid var(--crust);
}
.sv-feat small {
  color: var(--crust);
  font-size: calc(1 * var(--k));
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.sv-feat b {
  color: var(--rye);
  font-family: var(--brand-serif);
  font-size: calc(1.8 * var(--k));
  font-weight: 600;
}
.sv-feat span {
  color: rgba(91, 70, 50, 0.75);
  font-size: calc(1.15 * var(--k));
  line-height: 1.4;
}

.ws-site > .ws-cookie {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(2 * var(--k));
  padding: calc(1.4 * var(--k));
  background: #1F2328;
  color: #E5E7EB;
  font-size: calc(1.2 * var(--k));
}
.ws-cookie b,
.tpl-cookies b {
  padding: calc(0.5 * var(--k)) calc(1.2 * var(--k));
  border-radius: calc(0.5 * var(--k));
  background: #2F6FEB;
  color: #FFFFFF;
  white-space: nowrap;
}
.ws-site > .ws-chat {
  position: absolute;
  right: calc(2 * var(--k));
  bottom: calc(7 * var(--k));
  display: flex;
  align-items: center;
  gap: calc(0.8 * var(--k));
  padding: calc(1 * var(--k)) calc(1.4 * var(--k));
  border-radius: calc(1.4 * var(--k)) calc(1.4 * var(--k)) calc(0.3 * var(--k)) calc(1.4 * var(--k));
  background: #FFFFFF;
  box-shadow: 0 calc(0.8 * var(--k)) calc(2.4 * var(--k)) calc(-0.6 * var(--k)) rgba(0, 0, 0, 0.3);
  color: #1F2328;
  font-size: calc(1.2 * var(--k));
  transform-origin: 100% 100%;
}
.ws-chat i {
  width: calc(2.2 * var(--k));
  height: calc(2.2 * var(--k));
  border-radius: 50%;
  background: linear-gradient(135deg, #8B5CF6, #EC4899);
}

/* ---------- frame 02: fast ---------- */

.st-speed { background: var(--paper); }

.ws-lane {
  margin: 0;
  color: var(--muted);
  font-size: calc(1.3 * var(--k));
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}
.ws-lane--seven { color: var(--teal-deep); font-weight: 600; }

.ws-load {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  height: calc(0.5 * var(--k));
  background: rgba(0, 0, 0, 0.06);
}
.ws-load i {
  display: block;
  height: 100%;
  background: #2F6FEB;
  transform-origin: 0 50%;
}
.ws-load--seven i { background: var(--crust); }
.ws-spin {
  position: absolute;
  left: 50%;
  top: 42%;
  width: calc(4 * var(--k));
  height: calc(4 * var(--k));
  margin: calc(-2 * var(--k)) 0 0 calc(-2 * var(--k));
}
.ws-spin i {
  display: block;
  width: 100%;
  height: 100%;
  border: calc(0.45 * var(--k)) solid #E3E6EA;
  border-top-color: #2F6FEB;
  border-radius: 50%;
  animation: ws-spin 0.9s linear infinite;
}
@keyframes ws-spin { to { transform: rotate(360deg); } }

.tpl-late {
  position: absolute;
  top: calc(3 * var(--k));
  left: calc(1.4 * var(--k));
  right: calc(1.4 * var(--k));
  display: flex;
  flex-direction: column;
  gap: calc(1.2 * var(--k));
}
.tpl-late__img {
  height: calc(14 * var(--k));
  border-radius: calc(0.6 * var(--k));
  background: #C9CED6;
}
.tpl-late__lines {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(0.7 * var(--k));
}
.tpl-late__lines u {
  display: block;
  width: 100%;
  height: calc(0.9 * var(--k));
  border-radius: 99px;
  background: #E3E6EA;
}
.tpl-late__lines u:nth-child(2) { width: 80%; }
.tpl-late__lines u:nth-child(3) { width: 60%; }
.tpl-late__lines b {
  margin-top: calc(0.6 * var(--k));
  padding: calc(0.7 * var(--k)) calc(1.4 * var(--k));
  border-radius: calc(0.5 * var(--k));
  background: #2F6FEB;
  color: #FFFFFF;
  font-size: calc(1.1 * var(--k));
}
.tpl-ad {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: calc(1.4 * var(--k)) calc(1 * var(--k)) calc(1.1 * var(--k));
  background: #F5B43C;
  color: #1F2328;
  font-size: calc(1.05 * var(--k));
  font-weight: 700;
  text-align: center;
}
.tpl-cookies {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(0.8 * var(--k));
  padding: calc(1.2 * var(--k));
  background: #1F2328;
  color: #E5E7EB;
  font-size: calc(1 * var(--k));
}

.sv-mini {
  position: absolute;
  top: calc(2.4 * var(--k));
  left: calc(1.6 * var(--k));
  right: calc(1.6 * var(--k));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(1.2 * var(--k));
}
.sv-mini .sv-logo { font-size: calc(1.7 * var(--k)); }
.sv-mini__photo {
  width: 100%;
  height: calc(13 * var(--k));
  overflow: hidden;
  border-radius: calc(0.8 * var(--k));
}
.sv-mini .sv-h { font-size: calc(2.4 * var(--k)); }
.sv-mini .sv-btn { padding: calc(0.7 * var(--k)) calc(1.4 * var(--k)); font-size: calc(1.05 * var(--k)); }

.ws-timer {
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: calc(5 * var(--k));
  font-variant-numeric: tabular-nums;
  font-weight: 300;
  line-height: 1;
  text-align: center;
}
.ws-timer--seven { color: var(--ink); }
.ws-people {
  display: flex;
  justify-content: center;
  gap: calc(1 * var(--k));
}
.ws-people i {
  width: calc(1.6 * var(--k));
  height: calc(1.6 * var(--k));
  border-radius: 50%;
  background: #9AA3AF;
}
.ws-people--seven i { background: var(--teal-deep); }

/* ---------- frame 03: in the order people care ---------- */

.st-read { background: #F1EBDD; }

.ws-notes { display: grid; }
.ws-note {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: calc(0.8 * var(--k));
  margin: 0;
  text-align: right;
}
.ws-note small {
  color: var(--teal-deep);
  font-size: calc(1.2 * var(--k));
  letter-spacing: 0.16em;
}
.ws-note b {
  color: var(--ink);
  font-family: var(--serif);
  font-size: calc(3.6 * var(--k));
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.ws-note span {
  max-width: 26ch;
  color: var(--muted);
  font-size: calc(1.6 * var(--k));
  line-height: 1.5;
}
.ws-pointer {
  height: 1px;
  background: var(--teal-deep);
}
.ws-pointer::after {
  content: "";
  position: absolute;
  right: 0;
  top: calc(-0.5 * var(--k));
  width: calc(1 * var(--k));
  height: calc(1 * var(--k));
  border-radius: 50%;
  background: var(--teal-deep);
}
.ws-steps { display: grid; }
.ws-steps > b {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  gap: calc(1.2 * var(--k));
}
.ws-steps i {
  width: calc(0.9 * var(--k));
  height: calc(0.9 * var(--k));
  border-radius: 50%;
  background: rgba(23, 37, 31, 0.2);
}
.ws-steps .on i { background: var(--teal-deep); }

.ws-feed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 400%;
}
.ws-feed__step { height: 100%; }
.sv-sec {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(1.2 * var(--k));
  height: 25%;
  padding: calc(2.4 * var(--k)) calc(1.8 * var(--k));
}
.sv-sec .sv-h { font-size: calc(2.8 * var(--k)); }
.sv-sec .sv-p { font-size: calc(1.3 * var(--k)); }
.sv-sec .sv-btn { font-size: calc(1.15 * var(--k)); }
.sv-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  align-self: stretch;
}
.sv-top i {
  width: calc(2 * var(--k));
  height: calc(0.9 * var(--k));
  border-top: calc(0.25 * var(--k)) solid var(--rye);
  border-bottom: calc(0.25 * var(--k)) solid var(--rye);
}
.sv-pic {
  flex: none;
  align-self: stretch;
  height: 34%;
  overflow: hidden;
  border-radius: calc(1 * var(--k));
}
.sv-sec--story {
  justify-content: center;
  background: var(--rye);
  color: var(--flour);
}
.sv-sec--story .sv-label { color: var(--dawn); }
.sv-quote {
  font-family: var(--brand-serif);
  font-size: calc(2.5 * var(--k));
  font-style: italic;
  font-weight: 400;
  line-height: 1.2;
}
.sv-sign { font-size: calc(1.1 * var(--k)); opacity: 0.7; }
.sv-sec--bread { gap: 0; }
.sv-sec--bread .sv-label { margin-bottom: calc(0.8 * var(--k)); }
.sv-sec--bread .sv-h { margin-bottom: calc(1.4 * var(--k)); }
.sv-sec--bread .sv-row { align-self: stretch; padding: calc(1.5 * var(--k)) 0; font-size: calc(1.5 * var(--k)); }
.sv-note {
  margin-top: auto;
  color: rgba(91, 70, 50, 0.65);
  font-size: calc(1 * var(--k));
}
.sv-map {
  position: relative;
  flex: none;
  align-self: stretch;
  height: 30%;
  overflow: hidden;
  border-radius: calc(1 * var(--k));
  background: #E6DCCB;
}
.sv-map i { position: absolute; background: #F8F3EA; }
.sv-map i:nth-child(1) { left: 0; right: 0; top: 40%; height: calc(1.2 * var(--k)); }
.sv-map i:nth-child(2) { top: 0; bottom: 0; left: 30%; width: calc(1.2 * var(--k)); }
.sv-map i:nth-child(3) { left: -10%; right: -10%; top: 72%; height: calc(0.8 * var(--k)); transform: rotate(-12deg); }
.sv-map b {
  position: absolute;
  left: 54%;
  top: 22%;
  width: calc(2.4 * var(--k));
  height: calc(2.4 * var(--k));
  border-radius: 50% 50% 50% 0;
  background: var(--crust);
  transform: rotate(-45deg);
}

/* ---------- frame 04: the busiest morning ---------- */

.st-busy { background: var(--paper); }

.ws-busy__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: calc(2 * var(--k));
}
.ws-busy__head p {
  display: flex;
  flex-direction: column;
  gap: calc(0.4 * var(--k));
  margin: 0;
  color: var(--muted);
  font-size: calc(1.4 * var(--k));
}
.ws-busy__head small,
.ws-flat small {
  color: var(--teal-deep);
  font-size: calc(1.05 * var(--k));
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.ws-busy__head strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: calc(5.6 * var(--k));
  font-variant-numeric: tabular-nums;
  font-weight: 300;
  line-height: 0.9;
}
.ws-chart {
  display: flex;
  align-items: flex-end;
  gap: calc(0.9 * var(--k));
  border-bottom: 1px solid var(--line);
}
.ws-chart i {
  flex: 1;
  height: calc(var(--v) * 1%);
  border-radius: calc(0.3 * var(--k)) calc(0.3 * var(--k)) 0 0;
  background: var(--teal);
  transform-origin: 50% 100%;
}
.ws-chart i:nth-child(5),
.ws-chart i:nth-child(6) { background: var(--teal-deep); }
.ws-hours {
  height: calc(1.6 * var(--k));
  margin: 0;
  color: var(--muted);
  font-size: calc(1.1 * var(--k));
  font-variant-numeric: tabular-nums;
}
.ws-hours span {
  position: absolute;
  left: calc((var(--at) + 0.5) / 14 * 100%);
  transform: translateX(-50%);
}
.ws-flat {
  display: flex;
  flex-direction: column;
  gap: calc(0.9 * var(--k));
}
.ws-flat p {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0;
  font-size: calc(1.3 * var(--k));
}
.ws-flat p span { color: var(--ink); font-weight: 600; }
.ws-flat i {
  display: block;
  height: calc(0.35 * var(--k));
  border-radius: 99px;
  background: var(--teal-deep);
  transform-origin: 0 50%;
}
.ws-toast {
  display: flex;
  align-items: center;
  gap: calc(0.8 * var(--k));
  padding: calc(0.8 * var(--k)) calc(1.4 * var(--k));
  border-radius: 99px;
  background: var(--ink);
  box-shadow: 0 calc(0.8 * var(--k)) calc(2 * var(--k)) calc(-0.8 * var(--k)) rgba(23, 37, 31, 0.5);
  color: var(--paper);
  font-size: calc(1.15 * var(--k));
  white-space: nowrap;
  transform-origin: 0 50%;
}
.ws-toast i {
  width: calc(0.9 * var(--k));
  height: calc(0.9 * var(--k));
  border-radius: 50%;
  background: #7FD1A6;
}
.ws-status {
  padding: calc(2 * var(--k));
  border: 1px solid var(--line);
  border-radius: calc(1 * var(--k));
  background: #FFFFFF;
}
.ws-status__top {
  display: flex;
  align-items: center;
  gap: calc(0.8 * var(--k));
  margin: 0;
  color: var(--ink);
  font-size: calc(1.3 * var(--k));
  font-weight: 600;
}
.ws-status__top i {
  width: calc(1 * var(--k));
  height: calc(1 * var(--k));
  border-radius: 50%;
  background: #3E9C6E;
  box-shadow: 0 0 0 calc(0.4 * var(--k)) rgba(62, 156, 110, 0.18);
}
.ws-status__big {
  display: flex;
  flex-direction: column;
  gap: calc(0.4 * var(--k));
  margin: calc(1.4 * var(--k)) 0 calc(1.2 * var(--k));
  color: var(--ink);
  font-family: var(--serif);
  font-size: calc(4 * var(--k));
  font-weight: 300;
  line-height: 1;
}
.ws-status__big small { color: var(--muted); font-family: var(--sans); font-size: calc(1.1 * var(--k)); }
.ws-status__days {
  display: flex;
  gap: calc(0.25 * var(--k));
  height: calc(2.4 * var(--k));
}
.ws-status__days i {
  flex: 1;
  border-radius: calc(0.2 * var(--k));
  background: var(--teal);
}
.ws-status__days i:nth-child(19) { background: var(--dawn); }
.ws-checks {
  display: flex;
  flex-direction: column;
  gap: calc(1.2 * var(--k));
  margin: 0;
  padding: 0;
  list-style: none;
}
.ws-checks li {
  display: flex;
  align-items: center;
  gap: calc(1 * var(--k));
  color: var(--ink);
  font-size: calc(1.4 * var(--k));
}
.ws-checks li::before {
  content: "\2713";
  display: grid;
  flex: none;
  place-items: center;
  width: calc(2.2 * var(--k));
  height: calc(2.2 * var(--k));
  border-radius: 50%;
  background: var(--teal-deep);
  color: #FFFFFF;
  font-size: calc(1.1 * var(--k));
}

/* ---------- frame 05: found ---------- */

.st-search { background: #F1EBDD; }

.ws-search {
  display: flex;
  align-items: center;
  gap: calc(1.2 * var(--k));
  height: calc(6 * var(--k));
  padding: 0 calc(2.2 * var(--k));
  border-radius: 99px;
  background: #FFFFFF;
  box-shadow: 0 calc(0.6 * var(--k)) calc(2 * var(--k)) calc(-0.8 * var(--k)) rgba(23, 37, 31, 0.3);
  color: var(--ink);
  font-size: calc(1.8 * var(--k));
}
.ws-search svg {
  flex: none;
  width: calc(2.2 * var(--k));
  height: calc(2.2 * var(--k));
  color: var(--muted);
}
.ws-search__q { white-space: nowrap; }
.ws-month {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0;
  color: var(--muted);
  font-size: calc(1.3 * var(--k));
}
.ws-month b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.ws-results {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #E3E6EA;
  border-radius: calc(1 * var(--k));
  background: #FFFFFF;
}
.ws-result-wrap { position: relative; z-index: 2; }
.ws-result {
  display: flex;
  flex-direction: column;
  gap: calc(0.6 * var(--k));
  height: calc(13 * var(--k));
  padding: calc(1.4 * var(--k)) calc(2 * var(--k));
  border-bottom: 1px solid #E3E6EA;
  background: #FFFFFF;
}
.ws-result p { margin: 0; }
.ws-result__site {
  display: flex;
  align-items: center;
  gap: calc(0.8 * var(--k));
  color: #5F6773;
  font-size: calc(1.1 * var(--k));
}
.ws-result__site i {
  display: grid;
  place-items: center;
  width: calc(2 * var(--k));
  height: calc(2 * var(--k));
  border-radius: 50%;
  background: #E3E6EA;
  color: var(--ink);
  font-size: calc(1 * var(--k));
  font-style: normal;
  font-weight: 700;
}
.ws-result--seven { box-shadow: inset calc(0.35 * var(--k)) 0 0 var(--crust); }
.ws-result--seven .ws-result__site i { background: var(--crust); color: var(--flour); font-family: var(--brand-serif); }
.ws-result__title { color: #2B5797; font-size: calc(1.75 * var(--k)); }
.ws-result__text {
  display: -webkit-box;
  overflow: hidden;
  color: #4B5563;
  font-size: calc(1.2 * var(--k));
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.ws-result__chips { display: flex; gap: calc(0.6 * var(--k)); }
.ws-result__chips span {
  padding: calc(0.3 * var(--k)) calc(0.9 * var(--k));
  border-radius: 99px;
  background: #EEF0F2;
  color: #4B5563;
  font-size: calc(1 * var(--k));
}
.ws-result__chips span:first-child { background: #E6F2EB; color: #24724B; }
.ws-reads {
  display: flex;
  flex-direction: column;
  gap: calc(1.8 * var(--k));
  margin: 0;
  padding: 0;
  list-style: none;
}
.ws-reads li {
  display: flex;
  flex-direction: column;
  gap: calc(0.4 * var(--k));
  padding-left: calc(1.4 * var(--k));
  border-left: calc(0.3 * var(--k)) solid var(--teal-deep);
  color: var(--muted);
  font-size: calc(1.25 * var(--k));
  line-height: 1.45;
}
.ws-reads b { color: var(--ink); font-size: calc(1.4 * var(--k)); font-weight: 600; }

/* ---------- frame 06: day one, and after ---------- */

.st-grow { background: var(--paper); }

.ed-screen {
  display: flex;
  flex-direction: column;
  padding: calc(2.6 * var(--k)) calc(1.4 * var(--k)) calc(1.4 * var(--k));
  color: #1F2328;
}
.ed-head {
  display: flex;
  flex-direction: column;
  gap: calc(0.3 * var(--k));
  margin: 0 0 calc(1 * var(--k));
  font-size: calc(1.7 * var(--k));
  font-weight: 600;
}
.ed-head small {
  color: #8A919B;
  font-size: calc(1 * var(--k));
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ed-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(0.8 * var(--k));
  padding: calc(1.1 * var(--k)) 0;
  border-bottom: 1px solid #EEF0F2;
  font-size: calc(1.25 * var(--k));
}
.ed-row b {
  display: flex;
  flex-direction: column;
  gap: calc(0.2 * var(--k));
  font-weight: 500;
}
.ed-row em {
  color: #B4532A;
  font-size: calc(1 * var(--k));
  font-style: normal;
  font-weight: 600;
}
.ed-toggle {
  position: relative;
  flex: none;
  width: calc(3.6 * var(--k));
  height: calc(2 * var(--k));
  border-radius: 99px;
  background: #D5D9DE;
}
.ed-toggle.is-on,
.ed-toggle__on { background: var(--crust); }
.ed-toggle__on {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.ed-toggle i {
  position: absolute;
  top: calc(0.2 * var(--k));
  left: calc(0.2 * var(--k));
  z-index: 1;
  width: calc(1.6 * var(--k));
  height: calc(1.6 * var(--k));
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 calc(0.1 * var(--k)) calc(0.3 * var(--k)) rgba(0, 0, 0, 0.25);
}
.ed-toggle.is-on i { transform: translateX(100%); }
.ed-tap {
  position: absolute;
  top: 50%;
  right: calc(-0.2 * var(--k));
  width: calc(4 * var(--k));
  height: calc(4 * var(--k));
  margin-top: calc(-2 * var(--k));
  border-radius: 50%;
  background: rgba(23, 37, 31, 0.2);
}
.ed-saved {
  margin: auto 0 0;
  padding: calc(0.8 * var(--k)) calc(1 * var(--k));
  border-radius: calc(0.6 * var(--k));
  background: #E6F2EB;
  color: #24724B;
  font-size: calc(1.05 * var(--k));
  text-align: center;
}
.ws-sync { height: 2px; }
.ws-sync i {
  display: block;
  height: 100%;
  background: repeating-linear-gradient(90deg, var(--teal-deep) 0 calc(0.8 * var(--k)), transparent calc(0.8 * var(--k)) calc(1.4 * var(--k)));
  transform-origin: 0 50%;
}
.ws-sync__label {
  color: var(--teal-deep);
  font-size: calc(1.15 * var(--k));
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.ws-browser--small .ws-site {
  gap: 0;
  padding: calc(2.2 * var(--k)) calc(2.6 * var(--k));
}
.ws-browser--small .sv-label { margin-bottom: calc(0.6 * var(--k)); }
.ws-browser--small .sv-h { margin-bottom: calc(1 * var(--k)); font-size: calc(2.6 * var(--k)); }
.ws-site--seven .sv-row em.sv-sold {
  padding: calc(0.25 * var(--k)) calc(0.9 * var(--k));
  border-radius: 99px;
  background: var(--rye);
  color: var(--flour);
  font-size: calc(0.95 * var(--k));
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ws-next {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: calc(1.2 * var(--k));
  padding-top: calc(2.8 * var(--k));
}
.ws-next__line {
  position: absolute;
  top: calc(0.6 * var(--k));
  left: 0;
  right: 0;
  height: 2px;
  background: var(--line);
}
.ws-next__line i {
  display: block;
  height: 100%;
  background: var(--teal-deep);
  transform-origin: 0 50%;
}
.ws-next__step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(0.5 * var(--k));
  margin: 0;
}
.ws-next__step::before {
  content: "";
  position: absolute;
  top: calc(-2.8 * var(--k));
  left: 0;
  width: calc(1.3 * var(--k));
  height: calc(1.3 * var(--k));
  border-radius: 50%;
  background: var(--teal-deep);
  box-shadow: 0 0 0 calc(0.4 * var(--k)) var(--paper);
}
.ws-next__step:has(code)::before {
  background: #3DDC97;
  box-shadow: 0 0 0 calc(0.4 * var(--k)) var(--paper), 0 0 0 calc(0.6 * var(--k)) #0F141B;
}
.ws-next__step small {
  color: var(--muted);
  font-size: calc(1.1 * var(--k));
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ws-next__step b {
  color: var(--ink);
  font-family: var(--serif);
  font-size: calc(2.5 * var(--k));
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.ws-next__step code {
  margin-top: calc(0.3 * var(--k));
  padding: calc(0.3 * var(--k)) calc(0.8 * var(--k));
  border-radius: calc(0.4 * var(--k));
  background: #0F141B;
  color: #3DDC97;
  font: calc(1 * var(--k)) / 1.4 "JetBrains Mono", ui-monospace, Menlo, monospace;
}

/* ---------- more than a landing page (CodeNest's look: palette, type, grid, terminal) ---------- */

.cn-more { padding-top: 0; }
.cn-panel {
  --cn-bg: #090C11;
  --cn-surface: #0F141B;
  --cn-raised: #161C25;
  --cn-ink: #ECF0F5;
  --cn-muted: #98A3B2;
  --cn-accent: #3DDC97;
  --cn-line: rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--cn-line);
  border-radius: 16px;
  background: var(--cn-bg);
  color: var(--cn-ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
/* their faint 48px grid, and a soft green light from the corner */
.cn-panel::before,
.cn-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cn-panel::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 0% 0%, #000, transparent);
  mask-image: radial-gradient(ellipse 80% 80% at 0% 0%, #000, transparent);
}
.cn-panel::after { background: radial-gradient(ellipse 60% 70% at 100% 100%, rgba(61, 220, 151, 0.12), transparent 70%); }
.cn-panel .cn-card__bar { z-index: 1; }

.cn-panel__body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  padding: clamp(32px, 5vw, 80px);
}
.cn-panel__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.cn-panel__title {
  margin: 4px 0 0;
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  font-size: clamp(34px, 4.2vw, 64px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.cn-panel__title span { display: block; color: var(--cn-accent); }
.cn-panel .cn-tagline { max-width: 52ch; font-size: clamp(15px, 1.15vw, 17px); }
.cn-panel__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  margin-top: 8px;
}
.cn-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  background: var(--cn-accent);
  color: #06130D;
  font-size: 15px;
  font-weight: 600;
  transition: transform 160ms var(--ease-out), box-shadow 0.3s ease;
}
.cn-btn:active { transform: scale(0.97); }
.cn-btn svg { transition: transform 0.45s var(--ease-out); }
.cn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(236, 240, 245, 0.3);
  color: var(--cn-muted);
  font-size: 15px;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.cn-btn:focus-visible,
.cn-link:focus-visible { outline-color: var(--cn-accent); }
@media (hover: hover) and (pointer: fine) {
  .cn-btn:hover { box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.18), 0 10px 30px -10px rgba(61, 220, 151, 0.6); }
  .cn-btn:hover svg { transform: translate3d(4px, 0, 0); }
  .cn-link:hover { border-color: var(--cn-ink); color: var(--cn-ink); }
}

.cn-term {
  padding: clamp(20px, 2.4vw, 32px);
  border: 1px solid var(--cn-line);
  border-radius: 12px;
  background: var(--cn-surface);
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.8);
  color: var(--cn-ink);
  font: 14px/1.95 "JetBrains Mono", ui-monospace, Menlo, monospace;
}
.cn-term p {
  display: flex;
  gap: 10px;
  margin: 0;
  white-space: nowrap;
}
.cn-term b { color: var(--cn-muted); font-weight: 400; }
.cn-term__prompt,
.cn-ok { color: var(--cn-accent); }
.cn-dim { margin-left: auto; padding-left: 16px; color: rgba(152, 163, 178, 0.6); }
.cn-term__note { color: var(--cn-muted); white-space: normal !important; }
.cn-term .cn-caret { margin: 0; align-self: center; }

/* the terminal plays once when it scrolls in: the command types, then each line prints */
.js .cn-term p {
  opacity: 0;
  transform: translate3d(0, 6px, 0);
}
.js .cn-panel.is-in .cn-term p {
  opacity: 1;
  transform: none;
  transition: opacity 0.35s ease, transform 0.5s var(--ease-out);
  transition-delay: calc(1100ms + var(--n) * 170ms);
}
.js .cn-panel.is-in .cn-term p:first-child { transition-delay: 250ms; }
.js .cn-term__typed { clip-path: inset(0 100% 0 0); }
.js .cn-panel.is-in .cn-term__typed {
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.6s steps(19, end) 0.5s;
}

/* ---------- smaller screens ---------- */

@media (max-width: 1000px) {
  .cn-panel__body { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .chapter:has(.st-template) .chapter__sticky,
  .chapter:has(.st-search) .chapter__sticky { background: #F1EBDD; }
  .chapter:has(.st-read) .chapter__sticky { background: #F1EBDD; }

  .ws-scene { --k: calc(var(--u) * var(--zoom, 1.8)); --ox: var(--cx); --oy: var(--cy); }
  .ws-at {
    left: calc(var(--ox) + var(--mx, var(--x)) * var(--u));
    top: calc(var(--oy) + var(--my, var(--y)) * var(--u));
    width: calc(var(--mw, var(--w)) * var(--u));
    height: calc(var(--mh, var(--h)) * var(--u));
  }

  /* 01: the mock site in its phone layout */
  .st-template { --hd: 128; --zoom: 1.7; }
  .st-template .ws-site { gap: calc(2.2 * var(--k)); padding: calc(1.8 * var(--k)) calc(2.2 * var(--k)) calc(2.2 * var(--k)); }
  .ws-site__hero { grid-template-columns: minmax(0, 1fr); gap: calc(2 * var(--k)); }
  .st-template .ws-site__media { aspect-ratio: 16 / 8; }
  .ws-site__features { gap: calc(1.2 * var(--k)); }
  .tpl-feat { padding: calc(1 * var(--k)); }
  .tpl-feat u { display: none; }
  .sv-feat span { display: none; }
  .sv-feat b { font-size: calc(1.5 * var(--k)); }
  .tpl-links b:nth-child(n+3) { display: none; }
  .ws-site > .ws-chat { bottom: calc(6 * var(--k)); }
  .ws-site > .ws-cookie { gap: calc(1 * var(--k)); font-size: calc(1.05 * var(--k)); }

  /* 02: the two phones side by side */
  .st-speed { --hd: 116; --zoom: 1.7; }

  /* 03: the phone, with what each part is for underneath */
  .st-read { --hd: 126; --zoom: 1.9; }
  .ws-pointer { display: none; }
  .ws-note { align-items: flex-start; text-align: left; }
  .ws-note b { font-size: calc(2.6 * var(--k)); }
  .ws-note span { max-width: none; font-size: calc(1.4 * var(--k)); }

  /* 04: chart over status */
  .st-busy { --hd: 126; --zoom: 1.8; }
  .ws-status { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: calc(2 * var(--k)); padding: calc(1.6 * var(--k)); }
  .ws-status__top { grid-column: 1 / -1; }
  .ws-status__big { margin: calc(1 * var(--k)) 0 0; }
  .ws-status__days { align-self: end; }
  .ws-checks { display: grid; grid-template-columns: 1fr 1fr; gap: calc(1 * var(--k)) calc(1.4 * var(--k)); }
  .ws-checks li { font-size: calc(1.2 * var(--k)); }

  /* 05: results, then what search engines read */
  .st-search { --hd: 128; --zoom: 1.9; }
  .ws-result { height: calc(12 * var(--k)); padding: calc(1.2 * var(--k)) calc(1.6 * var(--k)); }
  .ws-result__text { -webkit-line-clamp: 1; }
  .ws-reads { gap: calc(1.2 * var(--k)); }

  /* 06: editor beside the live site, the road ahead underneath */
  .st-grow { --hd: 110; --zoom: 1.7; }
  .ws-sync__label { display: none; }
  .ws-browser--small .ws-browser__bar .ws-tab { display: none; }
  .ws-browser--small .ws-site { padding: calc(1.6 * var(--k)) calc(1.4 * var(--k)); }
  .ws-browser--small .sv-row { grid-template-columns: minmax(0, 1fr) auto; font-size: calc(1.2 * var(--k)); }
  .ws-browser--small .sv-row em { font-size: calc(1 * var(--k)); }
  .ws-next__step b { font-size: calc(1.8 * var(--k)); }

  .cn-panel { border-radius: 12px; }
  .cn-panel__body { padding: 28px 20px 24px; }
  .cn-term { font-size: 12px; }
  .cn-dim { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ws-hero__load { display: none; }
  .ws-spin i { animation: none; }
  .js .cn-term p,
  .js .cn-panel.is-in .cn-term p { opacity: 1; transform: none; transition: none; }
  .js .cn-term__typed,
  .js .cn-panel.is-in .cn-term__typed { clip-path: none; transition: none; }
}

/* ==========================================================================
   FULL-STACK PAGE — Seven gets its first real software. The scenes use the
   websites page's scene system (.ws-scene, .ws-at, the mock phones and
   browsers); the engineering parts are drawn in CodeNest's look.
   ========================================================================== */

.svc-hero__title em { color: #D6C99A; }

/* a plain card inside a scene, and its small heading */
.fs-card {
  padding: calc(2 * var(--k)) calc(2.2 * var(--k));
  border: 1px solid var(--line);
  border-radius: calc(1 * var(--k));
  background: #FFFFFF;
  box-shadow: 0 calc(1.2 * var(--k)) calc(3 * var(--k)) calc(-1.6 * var(--k)) rgba(23, 37, 31, 0.35);
}
.fs-card > small,
.fs-arch > small,
.fs-weeks > small {
  display: block;
  margin-bottom: calc(1.2 * var(--k));
  color: var(--teal-deep);
  font-size: calc(1 * var(--k));
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
/* CodeNest's look: their dark surface, mono type and green */
.fs-cn {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: calc(1 * var(--k));
  background: #0F141B;
  box-shadow: 0 calc(1.6 * var(--k)) calc(4 * var(--k)) calc(-1.6 * var(--k)) rgba(9, 12, 17, 0.6);
  color: #ECF0F5;
  font-family: "Inter", system-ui, sans-serif;
}
.fs-cn__bar {
  display: flex;
  align-items: center;
  gap: calc(0.6 * var(--k));
  margin: 0;
  padding: calc(1 * var(--k)) calc(1.4 * var(--k));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #161C25;
  color: #98A3B2;
  font: calc(1 * var(--k)) / 1 "JetBrains Mono", ui-monospace, Menlo, monospace;
}
.fs-cn__bar i {
  width: calc(0.8 * var(--k));
  height: calc(0.8 * var(--k));
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}
.fs-cn__bar span { margin-left: calc(0.6 * var(--k)); }
.fs-kv {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: calc(1 * var(--k));
  margin: 0;
  padding: calc(0.7 * var(--k)) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #98A3B2;
  font-size: calc(1.15 * var(--k));
}
.fs-kv b { color: #ECF0F5; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- frame 01: what's going wrong ---------- */

.st-idea { background: #F1EBDD; }
.fs-calls__head {
  margin: 0;
  padding: calc(2.6 * var(--k)) calc(1.4 * var(--k)) calc(1 * var(--k));
  color: #1F2328;
  font-size: calc(1.6 * var(--k));
  font-weight: 600;
}
.fs-call {
  display: flex;
  flex-direction: column;
  gap: calc(0.2 * var(--k));
  margin: 0;
  padding: calc(1 * var(--k)) calc(1.4 * var(--k));
  border-bottom: 1px solid #EEF0F2;
  font-size: calc(1.2 * var(--k));
}
.fs-call b { color: #C2410C; font-weight: 600; }
.fs-call span { color: #8A919B; font-size: calc(1 * var(--k)); }
.fs-chats {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(1.2 * var(--k));
}
.fs-msg {
  display: flex;
  flex-direction: column;
  gap: calc(0.3 * var(--k));
  margin: 0;
  padding: calc(1.1 * var(--k)) calc(1.4 * var(--k));
  border-radius: calc(1.4 * var(--k)) calc(1.4 * var(--k)) calc(1.4 * var(--k)) calc(0.3 * var(--k));
  background: #FFFFFF;
  box-shadow: 0 calc(0.4 * var(--k)) calc(1.2 * var(--k)) calc(-0.6 * var(--k)) rgba(23, 37, 31, 0.3);
  color: #1F2328;
  font-size: calc(1.3 * var(--k));
}
.fs-msg small { color: var(--teal-deep); font-size: calc(1 * var(--k)); font-weight: 600; }
.fs-book {
  padding: calc(1.8 * var(--k)) calc(2 * var(--k));
  border: 1px solid #E6DCCB;
  background: #FBF7EE repeating-linear-gradient(transparent 0 calc(3 * var(--k) - 1px), rgba(91, 70, 50, 0.14) calc(3 * var(--k) - 1px) calc(3 * var(--k)));
  background-position: 0 calc(1.2 * var(--k));
  box-shadow: 0 calc(1 * var(--k)) calc(2.4 * var(--k)) calc(-1.2 * var(--k)) rgba(23, 37, 31, 0.35);
}
.fs-book p {
  position: relative;
  width: fit-content;
  margin: 0;
  color: #34446B;
  font-family: var(--brand-serif);
  font-size: calc(1.55 * var(--k));
  font-style: italic;
  line-height: calc(3 * var(--k));
}
.fs-book .fs-book__head {
  color: var(--rye);
  font-family: var(--sans);
  font-size: calc(1 * var(--k));
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.fs-strike {
  position: absolute;
  top: 52%;
  left: -3%;
  width: 106%;
  height: calc(0.22 * var(--k));
  background: #34446B;
  transform-origin: 0 50%;
}
.fs-waste {
  display: flex;
  align-items: center;
  gap: calc(1.6 * var(--k));
  padding: calc(1.4 * var(--k)) calc(1.8 * var(--k));
}
.fs-waste__loaves { display: flex; gap: calc(0.5 * var(--k)); }
.fs-waste__loaves i {
  width: calc(2.6 * var(--k));
  height: calc(1.5 * var(--k));
  border-radius: 50%;
  background: var(--crust);
}
.fs-waste p { margin: 0; color: var(--muted); font-size: calc(1.3 * var(--k)); }
.fs-waste b { color: var(--ink); }
.fs-sticky {
  padding: calc(1 * var(--k)) calc(1.6 * var(--k));
  background: #F5D76E;
  box-shadow: 0 calc(0.6 * var(--k)) calc(1.4 * var(--k)) calc(-0.6 * var(--k)) rgba(23, 37, 31, 0.35);
  color: #1F2328;
  font-size: calc(1.4 * var(--k));
  font-weight: 700;
  white-space: nowrap;
}
.fs-brief {
  display: flex;
  flex-direction: column;
  gap: calc(1.2 * var(--k));
  padding: calc(3 * var(--k)) calc(3.4 * var(--k));
  border: 1.5px solid var(--teal-deep);
  background: #FFFFFF;
  box-shadow: 0 calc(1.6 * var(--k)) calc(4 * var(--k)) calc(-1.6 * var(--k)) rgba(23, 37, 31, 0.4);
}
.fs-brief small {
  color: var(--teal-deep);
  font-size: calc(1.1 * var(--k));
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.fs-brief p {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: calc(3.2 * var(--k));
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.fs-brief span { color: var(--muted); font-size: calc(1.4 * var(--k)); }

/* ---------- frame 02: the plan ---------- */

.st-plan { background: var(--paper); }
.fs-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(1.2 * var(--k));
}
.fs-col {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: calc(0.8 * var(--k));
  padding: calc(1 * var(--k));
  border-radius: calc(0.8 * var(--k));
  background: #F1EBDD;
}
.fs-col__head {
  margin: 0 0 calc(0.2 * var(--k));
  color: var(--ink);
  font-size: calc(1.35 * var(--k));
  font-weight: 600;
}
.fs-item {
  padding: calc(1.1 * var(--k)) calc(1.1 * var(--k));
  border-radius: calc(0.5 * var(--k));
  background: #FFFFFF;
  box-shadow: 0 1px 0 rgba(23, 37, 31, 0.12);
  color: var(--ink);
  font-size: calc(1.3 * var(--k));
  line-height: 1.3;
}
.fs-col--later .fs-item { color: var(--muted); background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.fs-col__ring {
  position: absolute;
  inset: calc(-0.4 * var(--k));
  border: calc(0.25 * var(--k)) solid var(--teal-deep);
  border-radius: calc(1 * var(--k));
  pointer-events: none;
}
.fs-weeks__row { display: flex; gap: calc(0.6 * var(--k)); }
.fs-weeks__row p {
  display: flex;
  flex: var(--f) 1 0;
  flex-direction: column;
  gap: calc(0.4 * var(--k));
  margin: 0;
  min-width: 0;
}
.fs-weeks__row i {
  display: block;
  height: calc(1.2 * var(--k));
  border-radius: 99px;
  background: var(--teal);
  transform-origin: 0 50%;
}
.fs-weeks__row p:nth-child(2) i { background: var(--teal-deep); }
.fs-weeks__row p:nth-child(3) i { background: var(--crust); }
.fs-weeks__row b { color: var(--ink); font-size: calc(1.2 * var(--k)); font-weight: 600; }
.fs-weeks__row span { color: var(--muted); font-size: calc(1 * var(--k)); white-space: nowrap; }
.fs-arch svg { display: block; width: 100%; height: auto; overflow: visible; }
.fs-arch text {
  fill: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
}
.fs-arch .fs-arch__api text { fill: #3DDC97; }
.fs-estimate {
  display: flex;
  flex-direction: column;
  gap: calc(0.4 * var(--k));
  position: absolute;
}
.fs-estimate > small { margin-bottom: 0; }
.fs-estimate b {
  color: var(--ink);
  font-family: var(--serif);
  font-size: calc(2.8 * var(--k));
  font-weight: 300;
  letter-spacing: -0.02em;
}
.fs-estimate span { color: var(--muted); font-size: calc(1.2 * var(--k)); }
.fs-stamp {
  position: absolute;
  right: calc(1.4 * var(--k));
  bottom: calc(1.4 * var(--k));
  padding: calc(0.5 * var(--k)) calc(1.2 * var(--k));
  border: calc(0.3 * var(--k)) solid var(--teal-deep);
  color: var(--teal-deep);
  font-size: calc(1.2 * var(--k));
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- frame 03: the prototype ---------- */

.st-proto { background: #F1EBDD; }
.fs-wire,
.fs-ui {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: calc(1 * var(--k));
  padding: calc(3 * var(--k)) calc(1.4 * var(--k)) calc(1.6 * var(--k));
}
.fs-wire { background: #FFFFFF; }
.fs-wire i { display: block; border-radius: calc(0.4 * var(--k)); background: #E3E6EA; }
.fs-wire .w-h { width: 70%; height: calc(1.8 * var(--k)); margin-bottom: calc(0.6 * var(--k)); background: #C9CED6; }
.fs-wire .w-row { height: calc(3.6 * var(--k)); }
.fs-wire .w-slot { height: calc(5 * var(--k)); }
.fs-wire .w-btn { height: calc(3.4 * var(--k)); margin-top: auto; background: #C9CED6; border-radius: 99px; }
.fs-wire--done { align-items: center; justify-content: center; }
.fs-wire .w-ring { width: calc(7 * var(--k)); height: calc(7 * var(--k)); border-radius: 50%; }
.fs-wire .w-line { width: 70%; height: calc(1.2 * var(--k)); }
.fs-ui__title {
  margin: 0 0 calc(0.6 * var(--k));
  color: var(--rye);
  font-family: var(--brand-serif);
  font-size: calc(1.9 * var(--k));
  font-weight: 600;
  line-height: 1.1;
}
.fs-pick,
.fs-slot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(0.6 * var(--k));
  margin: 0;
  padding: calc(0.9 * var(--k)) calc(1 * var(--k));
  border-radius: calc(0.6 * var(--k));
  background: rgba(91, 70, 50, 0.06);
  color: var(--rye);
  font-size: calc(1.15 * var(--k));
}
.fs-pick b,
.fs-slot b { font-weight: 600; }
.fs-pick i {
  display: grid;
  flex: none;
  place-items: center;
  width: calc(2.2 * var(--k));
  height: calc(2.2 * var(--k));
  border: 1px solid rgba(91, 70, 50, 0.3);
  border-radius: 50%;
  font-style: normal;
  font-weight: 600;
}
.fs-pick.is-on i { border-color: var(--crust); background: var(--crust); color: var(--flour); }
.fs-slot { flex-direction: column; align-items: flex-start; gap: calc(0.2 * var(--k)); padding: calc(1 * var(--k)) calc(1.2 * var(--k)); }
.fs-slot b { font-family: var(--brand-serif); font-size: calc(1.8 * var(--k)); line-height: 1; font-variant-numeric: tabular-nums; }
.fs-slot span { color: rgba(91, 70, 50, 0.7); font-size: calc(1 * var(--k)); }
.fs-slot.is-on { box-shadow: inset 0 0 0 calc(0.25 * var(--k)) var(--crust); background: #FFFFFF; }
.fs-ui__btn {
  margin-top: auto;
  padding: calc(1 * var(--k));
  border-radius: 99px;
  background: var(--crust);
  color: var(--flour);
  font-size: calc(1.15 * var(--k));
  font-weight: 600;
  text-align: center;
}
.fs-ui--done { align-items: center; justify-content: center; text-align: center; }
.fs-check {
  display: grid;
  place-items: center;
  width: calc(7 * var(--k));
  height: calc(7 * var(--k));
  margin-bottom: calc(0.6 * var(--k));
  border-radius: 50%;
  background: var(--crust);
  color: var(--flour);
  font-size: calc(3.2 * var(--k));
}
.fs-ui__big {
  margin: 0;
  color: var(--rye);
  font-family: var(--brand-serif);
  font-size: calc(2.6 * var(--k));
  font-weight: 600;
}
.fs-ui__line { margin: 0; color: rgba(91, 70, 50, 0.8); font-size: calc(1.1 * var(--k)); }
.fs-tap {
  position: absolute;
  width: calc(4 * var(--k));
  height: calc(4 * var(--k));
  border-radius: 50%;
  background: rgba(23, 37, 31, 0.25);
}
.fs-tap--1 { top: calc(10.2 * var(--k)); right: calc(0.5 * var(--k)); }
.fs-tap--2 { top: calc(13.6 * var(--k)); left: 40%; }
.fs-flow { height: 2px; }
.fs-flow i {
  display: block;
  height: 100%;
  background: var(--teal-deep);
  transform-origin: 0 50%;
}
.fs-flow::after {
  content: "";
  position: absolute;
  right: calc(-0.2 * var(--k));
  top: calc(-0.6 * var(--k));
  border: calc(0.65 * var(--k)) solid transparent;
  border-left-color: var(--teal-deep);
  border-right-width: 0;
}
.fs-spec {
  padding: calc(0.5 * var(--k)) calc(1.1 * var(--k));
  border-radius: 99px;
  background: var(--ink);
  color: var(--paper);
  font-size: calc(1.1 * var(--k));
  white-space: nowrap;
}

/* ---------- frame 04: the build ---------- */

.st-sprints { background: var(--paper); }
.fs-sprints { display: flex; flex-direction: column; gap: calc(1.2 * var(--k)); }
.fs-sprint {
  display: grid;
  grid-template-columns: calc(17 * var(--k)) 1fr auto;
  align-items: center;
  gap: calc(1.4 * var(--k));
}
.fs-sprint p {
  display: flex;
  flex-direction: column;
  margin: 0;
  color: var(--ink);
  font-size: calc(1.3 * var(--k));
}
.fs-sprint small { color: var(--muted); font-size: calc(1 * var(--k)); letter-spacing: 0.12em; text-transform: uppercase; }
.fs-sprint__bar {
  height: calc(1.2 * var(--k));
  overflow: hidden;
  border-radius: 99px;
  background: #F1EBDD;
}
.fs-sprint__bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal-deep);
  transform-origin: 0 50%;
}
.fs-sprint b {
  padding: calc(0.4 * var(--k)) calc(1 * var(--k));
  border-radius: 99px;
  background: #E6F2EB;
  color: #24724B;
  font-size: calc(1.05 * var(--k));
  font-weight: 600;
  white-space: nowrap;
}
.fs-res {
  padding: calc(0.25 * var(--k)) calc(1 * var(--k));
  border-radius: 99px;
  background: var(--crust);
  color: var(--flour) !important;
  font-size: calc(1 * var(--k)) !important;
}
.fs-cafe {
  margin-top: calc(1.4 * var(--k));
  padding: calc(1 * var(--k)) calc(1.2 * var(--k));
  border-radius: calc(0.6 * var(--k));
  background: rgba(91, 70, 50, 0.08);
  color: var(--rye);
  font-size: calc(1.1 * var(--k));
}
.fs-review { display: flex; flex-direction: column; }
.fs-review__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: calc(1 * var(--k));
  min-height: 0;
  padding: calc(1.4 * var(--k)) calc(1.6 * var(--k));
}
.fs-review__title {
  margin: 0;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: calc(1.6 * var(--k));
  font-weight: 600;
  letter-spacing: -0.02em;
}
.fs-diff { overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: calc(0.5 * var(--k)); }
.fs-diff p {
  margin: 0;
  padding: calc(0.35 * var(--k)) calc(0.8 * var(--k));
  font: calc(0.95 * var(--k)) / 1.5 "JetBrains Mono", ui-monospace, Menlo, monospace;
  white-space: nowrap;
}
.fs-diff .add { background: rgba(61, 220, 151, 0.12); color: #9FF0C8; }
.fs-diff .del { background: rgba(248, 113, 113, 0.12); color: #F7A8A8; }
.fs-comment {
  display: flex;
  flex-direction: column;
  gap: calc(0.3 * var(--k));
  margin: 0;
  padding: calc(0.9 * var(--k)) calc(1 * var(--k));
  border-left: calc(0.25 * var(--k)) solid #3DDC97;
  background: #161C25;
  color: #C9D1DC;
  font-size: calc(1.05 * var(--k));
  line-height: 1.4;
}
.fs-comment b { color: #3DDC97; font-size: calc(0.95 * var(--k)); font-weight: 600; }
.fs-merged {
  align-self: flex-start;
  margin: 0;
  padding: calc(0.4 * var(--k)) calc(1.2 * var(--k));
  border-radius: 99px;
  background: #3DDC97;
  color: #06130D;
  font-size: calc(1.05 * var(--k));
  font-weight: 600;
}
.fs-owner { margin: auto 0 0; color: #98A3B2; font-size: calc(1 * var(--k)); }
.fs-owner b { color: #ECF0F5; }

/* ---------- frame 05: launch ---------- */

.st-launch { background: #F1EBDD; }
.fs-tablet { border-radius: calc(2.4 * var(--k)); }
.fs-tablet .ws-phone__screen { border-radius: calc(1.6 * var(--k)); }
.fs-dash {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr;
  gap: calc(1.6 * var(--k));
  padding: calc(2 * var(--k));
  color: var(--ink);
}
.fs-dash__head {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-end;
  gap: calc(2 * var(--k));
}
.fs-dash__head p {
  display: flex;
  flex-direction: column;
  margin: 0;
  color: var(--muted);
  font-size: calc(1.3 * var(--k));
}
.fs-dash__head small { color: var(--teal-deep); font-size: calc(1 * var(--k)); letter-spacing: 0.14em; text-transform: uppercase; }
.fs-dash__head strong {
  font-family: var(--serif);
  font-size: calc(4.6 * var(--k));
  font-variant-numeric: tabular-nums;
  font-weight: 300;
  line-height: 0.9;
}
.fs-live {
  display: inline-flex;
  align-items: center;
  gap: calc(0.6 * var(--k));
  margin-left: auto;
  padding: calc(0.4 * var(--k)) calc(1 * var(--k));
  border-radius: 99px;
  background: #E6F2EB;
  color: #24724B;
  font-size: calc(1 * var(--k));
  font-weight: 600;
}
.fs-live i,
.fs-monitor__ok i {
  width: calc(0.8 * var(--k));
  height: calc(0.8 * var(--k));
  border-radius: 50%;
  background: #3E9C6E;
}
.fs-orders { display: flex; flex-direction: column; min-width: 0; }
.fs-orders p {
  display: flex;
  flex-direction: column;
  gap: calc(0.2 * var(--k));
  margin: 0;
  padding: calc(1 * var(--k)) 0;
  border-bottom: 1px solid #EEF0F2;
  font-size: calc(1.35 * var(--k));
}
.fs-orders b { font-weight: 600; }
.fs-orders span { color: var(--muted); font-size: calc(1.1 * var(--k)); }
.fs-orders .fs-orders__more { border: 0; color: var(--teal-deep); font-size: calc(1 * var(--k)); }
.fs-oven {
  display: flex;
  flex-direction: column;
  gap: calc(2.2 * var(--k));
  min-width: 0;
  padding: calc(1.4 * var(--k));
  border-radius: calc(0.8 * var(--k));
  background: #F2ECE1;
  color: var(--rye);
}
.fs-oven__title {
  margin: 0;
  font-family: var(--brand-serif);
  font-size: calc(1.6 * var(--k));
  font-weight: 600;
}
.fs-oven__row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: calc(0.7 * var(--k)) calc(1 * var(--k));
  font-size: calc(1.3 * var(--k));
}
.fs-oven__row b { font-weight: 600; }
.fs-oven__row em { grid-area: 1 / 2; font-style: normal; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.fs-oven__row em small { display: block; color: rgba(91, 70, 50, 0.7); font-size: calc(0.9 * var(--k)); font-weight: 400; }
.fs-oven__bar {
  position: relative;
  grid-column: 1 / -1;
  height: calc(1.6 * var(--k));
  border-radius: 99px;
  background: rgba(91, 70, 50, 0.1);
}
.fs-oven__bar i {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--bl);
  width: var(--bw);
  transform-origin: 0 50%;
}
.fs-oven__bar .res { border-radius: 99px 0 0 99px; background: var(--rye); }
.fs-oven__bar .walk { border-radius: 0 99px 99px 0; background: var(--dawn); }
.fs-monitor__body { padding: calc(1.2 * var(--k)) calc(1.6 * var(--k)) calc(1.4 * var(--k)); }
.fs-monitor__ok {
  display: flex;
  align-items: center;
  gap: calc(0.7 * var(--k));
  margin: 0 0 calc(0.6 * var(--k));
  color: #3DDC97;
  font-size: calc(1.15 * var(--k));
  font-weight: 600;
}
.fs-monitor__ok i { background: #3DDC97; box-shadow: 0 0 0 calc(0.35 * var(--k)) rgba(61, 220, 151, 0.2); }
.fs-spark { display: block; width: 100%; height: calc(3 * var(--k)); margin: calc(0.6 * var(--k)) 0; }
.fs-spark path { fill: none; stroke: #3DDC97; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.fs-runbook { display: flex; flex-direction: column; gap: calc(0.5 * var(--k)); }
.fs-runbook > small { margin-bottom: 0; }
.fs-runbook b { color: var(--ink); font-size: calc(1.4 * var(--k)); font-weight: 600; }
.fs-runbook span { color: var(--muted); font-size: calc(1.1 * var(--k)); line-height: 1.45; }

/* ---------- frame 06: yours, and getting better ---------- */

.st-own { background: var(--paper); }
.fs-own__row {
  display: flex;
  align-items: center;
  gap: calc(1 * var(--k));
  margin: 0;
  padding: calc(1 * var(--k)) 0;
  border-bottom: 1px solid #EEF0F2;
  color: var(--ink);
  font-size: calc(1.3 * var(--k));
}
.fs-own__row i {
  display: grid;
  flex: none;
  place-items: center;
  width: calc(2 * var(--k));
  height: calc(2 * var(--k));
  border-radius: 50%;
  background: var(--teal-deep);
  color: #FFFFFF;
  font-size: calc(1 * var(--k));
  font-style: normal;
}
.fs-own__row b {
  margin-left: auto;
  padding: calc(0.3 * var(--k)) calc(0.9 * var(--k));
  border-radius: 99px;
  background: #F2ECE1;
  color: var(--rye);
  font-family: var(--brand-serif);
  font-size: calc(1.1 * var(--k));
  font-weight: 600;
}
.fs-health__row { display: flex; gap: calc(2.4 * var(--k)); }
.fs-health__row p {
  display: flex;
  flex-direction: column;
  margin: 0;
  color: var(--muted);
  font-size: calc(1.1 * var(--k));
}
.fs-health__row b {
  color: var(--ink);
  font-family: var(--serif);
  font-size: calc(2.6 * var(--k));
  font-weight: 300;
  line-height: 1.1;
}
.fs-waste2 { display: flex; flex-direction: column; gap: calc(1.4 * var(--k)); }
.fs-waste2__head { display: flex; align-items: flex-end; justify-content: space-between; }
.fs-waste2__head p,
.fs-cafes p {
  display: flex;
  flex-direction: column;
  gap: calc(0.3 * var(--k));
  margin: 0;
  color: var(--muted);
  font-size: calc(1.15 * var(--k));
}
.fs-waste2__head small,
.fs-cafes small {
  color: var(--teal-deep);
  font-size: calc(1 * var(--k));
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.fs-waste2__head strong,
.fs-cafes strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: calc(4.4 * var(--k));
  font-variant-numeric: tabular-nums;
  font-weight: 300;
  line-height: 0.9;
}
.fs-bars {
  display: flex;
  flex: 1;
  align-items: flex-end;
  gap: calc(1.2 * var(--k));
  min-height: 0;
  border-bottom: 1px solid var(--line);
}
.fs-bars i {
  flex: 1;
  height: calc(var(--v) * 1%);
  border-radius: calc(0.3 * var(--k)) calc(0.3 * var(--k)) 0 0;
  background: var(--crust);
  transform-origin: 50% 100%;
}
.fs-cafes { display: flex; flex-direction: column; gap: calc(1 * var(--k)); }
.fs-cafes p { flex-direction: row; align-items: flex-end; justify-content: space-between; }
.fs-cafes__dots { display: flex; gap: calc(0.7 * var(--k)); }
.fs-cafes__dots i {
  width: calc(2.2 * var(--k));
  height: calc(2.2 * var(--k));
  border-radius: 50%;
  background: var(--teal);
}
.fs-next {
  padding: calc(0.6 * var(--k)) calc(1.4 * var(--k));
  border-radius: 99px;
  background: var(--ink);
  color: var(--paper);
  font-size: calc(1.15 * var(--k));
  white-space: nowrap;
}

/* ---------- phones ---------- */

@media (max-width: 720px) {
  .chapter:has(.st-idea) .chapter__sticky,
  .chapter:has(.st-launch) .chapter__sticky { background: #F1EBDD; }
  .chapter:has(.st-proto) .chapter__sticky { background: #F1EBDD; }

  .st-idea { --hd: 92; --zoom: 1.6; }
  .fs-brief p { font-size: calc(2.6 * var(--k)); }
  .st-plan { --hd: 116; --zoom: 1.5; }
  .fs-arch svg { max-height: calc(40 * var(--u)); }
  .st-proto { --hd: 116; --zoom: 1.3; }
  .fs-flow { display: none; }
  .st-sprints { --hd: 128; --zoom: 1.5; }
  .fs-sprint { grid-template-columns: calc(19 * var(--k)) 1fr auto; }
  .st-launch { --hd: 132; --zoom: 1.4; }
  .st-own { --hd: 118; --zoom: 1.5; }
}

/* ==========================================================================
   SMOOTH ON PHONES
   Everything a scroll handler moves or fades gets its own GPU layer, so updating it
   never repaints the page around it (that repaint is what made scenes wobble on iOS).
   ========================================================================== */

.marquee--hero,
.intro__shade,
.intro__bottom,
.stack-card__veil,
.manifesto .w { will-change: opacity; }
.intro__copy,
.frame img,
.chapter__bar span,
.story-rail,
.story [data-in],
.story [data-out],
.wipe__handle,
.flow__word { will-change: transform, opacity; }
/* SVG parts animate inside their own drawing; promoting each would cost memory for nothing */
.story svg [data-in],
.story svg [data-out] { will-change: auto; }

/* ==========================================================================
   REVEALS
   ========================================================================== */

/* intro: runs once after fonts + hero image are ready */
.reveal {
  transition:
    opacity 0.9s var(--ease-out) calc(var(--d, 0) * 90ms + 300ms),
    transform 1.2s var(--ease-out) calc(var(--d, 0) * 90ms + 300ms);
}
.js.is-loading .reveal {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
}
.js.is-loading .reveal--rise {
  transform: translate3d(0, calc(var(--vh) * 12), 0);
}

/* on scroll: content is always visible, it just settles into place as it enters */
.js .rv {
  transform: translate3d(0, 32px, 0);
  transition: transform 1.1s var(--ease-out) calc(var(--d, 0) * 90ms);
}
.js .rv.is-in {
  transform: translate3d(0, 0, 0);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Tablet & narrow desktop: selection cards become a snap-scrolling row */
@media (max-width: 1000px) {
  .selection {
    padding-left: 0;
    padding-right: 0;
  }
  .selection__track {
    display: flex;
    gap: 16px;
    padding: 0 var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--gutter);
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .selection__track::-webkit-scrollbar { display: none; }
  .card {
    flex: 0 0 min(42vw, 360px);
    scroll-snap-align: start;
  }
  .card__desc { font-size: 13px; }
  .card__title { font-size: min(6vw, 5.6vh, 48px); }

  .panel__body { grid-template-columns: 1fr; }
  .panel__figure { display: none; }

  .about .kicker,
  .manifesto,
  .about__foot,
  .values__head .kicker,
  .values__head .section-title,
  .services__head .kicker,
  .services__head .section-title,
  .services__intro,
  .services__cta { grid-column: 1 / -1; }
  .services__head .kicker { padding-top: 0; }

  .stack-card__content { grid-column: 1 / 8; }
  .stack-card__media { grid-column: 8 / 13; }
  .about .kicker { padding-top: 0; margin-bottom: 28px; }
  .values__head .kicker { padding-top: 0; }
}

/* Portrait tablets: give the headline and image more presence */
@media (min-width: 721px) and (max-aspect-ratio: 1/1) {
  :root {
    --display: 21vw;
    --img: 36vw;
    --mini-scale: 0.5;
    --mini-y: 76;
  }
}

@media (max-width: 720px) {
  :root {
    --display: 26vw;
    --img: 56vw;
    --mini-scale: 0.56;
    --mini-y: 76;
    --intro-length: 290;
  }

  .link { font-size: 14px; }
  .intro__lede { font-size: 17px; }
  .intro__lede br { display: none; }
  .intro__copy { padding: 0 8px; }
  .scroll-cue { font-size: 13px; }
  .btn { height: 44px; padding: 0 16px 0 18px; gap: 12px; font-size: 15px; }
  .btn--square { width: 46px; padding: 0; }

  .about__foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .values__media { row-gap: 20px; }
  .frame--tall { grid-column: 1 / 11; }
  .values__caption { grid-column: 1 / 13; grid-row: auto; margin-top: 8px; }
  .frame--small { grid-column: 5 / 13; grid-row: auto; margin-top: 0; }

  .values__list { grid-template-columns: 1fr; }

  .stack { --stack-top: calc(var(--vh) * 8); --card-h: calc(var(--vh) * 76); }
  .stack-card__inner {
    display: flex;
    flex-direction: column-reverse;
    gap: 22px;
    padding: 18px;
  }
  .stack-card__media { flex: 0 0 42%; }
  .stack-card__content { flex: 1; }
  .stack-card__title { font-size: clamp(32px, 9.5vw, 44px); margin-bottom: 14px; }
  .stack-card__desc { font-size: 14px; line-height: 1.5; }
  .stack-card__tags { margin-top: 18px; gap: 6px; }
  .stack-card__tags li { padding: 5px 10px 4px; font-size: 12px; }
  .stack-card__tags li:nth-child(n+4) { display: none; }
  .values__num { margin-bottom: 18px; }

  .selection { padding-top: calc(var(--vh) * 5); }
  .selection__track { height: calc(var(--vh) * 66); }
  .card { flex-basis: 70vw; }
  .card__title { font-size: min(11vw, 5.6vh); }

  .site-footer__top,
  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .panel__footer { font-size: 13px; }
}

/* ==========================================================================
   REDUCED MOTION — keep fades, drop movement
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .scroller { scroll-behavior: auto; }

  .marquee__track,
  .scroll-cue i::after { animation: none; }

  .page { transition: transform 0.01s linear; }
  .is-selection .mini-return:hover ~ .scroller .page {
    transform: translate3d(0, calc(var(--vh) * var(--mini-y)), 0) scale(var(--mini-scale));
  }

  /* the photo fades over the hero instead of growing; the square stays visible */
  .js .intro__slot img { visibility: visible; }
  .intro__line span { transform: none; }

  .card,
  .is-selection .card {
    transform: none;
    transition: opacity 0.3s ease;
  }

  .reveal { transition: opacity 0.6s ease; }
  .js .rv { transition: none; }
  .js.is-loading .reveal,
  .js.is-loading .reveal--rise,
  .js .rv { transform: none; }
  .frame img { transform: none !important; }
  .illus * { animation: none !important; }

  .panel,
  .panel.is-open {
    transform: none;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
  }
  .panel.is-open { opacity: 1; transition: opacity 0.3s ease, visibility 0s; }
  .panel__inner,
  .panel__nav li,
  .panel__reel { transform: none !important; }
  .panel__reel img { translate: none !important; scale: none !important; }

  .js .intro__reveal,
  .js .intro__reveal-inner { transform: none; animation: none; }

  .btn:active { transform: none; }
}

/* ==========================================================================
   PHONES: LESS EMPTY SCREEN — the desktop's generous gaps, scaled down for a
   phone, where they left whole screens of nothing between the content
   ========================================================================== */

@media (max-width: 720px) {
  :root { --section: clamp(56px, 8vh, 72px); }

  .lead-head,
  .services__head,
  .values__head,
  .partner__head,
  .handover__head,
  .approach__head { row-gap: 16px; }

  /* heroes */
  .id-hero__copy,
  .ws-hero__copy,
  .svc-hero__grid { margin-top: 28px; }
  .svc-hero__grid { row-gap: 28px; }
  .id-hero,
  .ws-hero,
  .svc-hero,
  .bs-hero { padding-bottom: 28px; }
  .bs-hero__center { min-height: calc(var(--vh) * 62); padding-top: 3vh; }

  /* home */
  .about__foot { margin-top: 32px; }
  .stack { margin-top: 28px; padding-bottom: calc(var(--vh) * 4); }
  /* the card's picture takes the room that sat empty above its title */
  .stack-card__media { flex: 1 1 0; min-height: 0; }
  .stack-card__content { flex: none; }
  .stack-card__body { margin-top: 12px; }
  .values__media { margin-top: 28px; }
  .values__list { margin-top: 40px; }

  /* service pages */
  .story__intro { padding-bottom: 8px; }
  .partner__split,
  .handover__grid,
  .principles,
  .get-grid,
  .qs__stage { margin-top: 28px; }
  .partner__foot,
  .qs__bar { margin-top: 24px; }
  .stack-table { margin-top: 40px; }
  .band-note { padding-top: 18px; }

  /* contact and footer */
  .contact__title { margin-top: 18px; }
  .contact__text { margin-top: 14px; }
  .contact__actions { margin-top: 24px; }
  .site-footer { padding-top: 36px; }
}

/* ==========================================================================
   HERO BACKGROUNDS — each service page's hero colour moves, in its own way:
   identity, a field of small suns rising and setting in a wave; websites,
   columns of page layouts drifting past; full-stack, data running along a
   grid. Transforms and opacity only; paused off screen (page.js, .illus).
   ========================================================================== */

.id-hero,
.ws-hero,
.svc-hero { position: relative; overflow: hidden; }
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.id-hero > .container,
.ws-hero > .container,
.svc-hero > .container { position: relative; z-index: 1; }
.ws-hero__load { z-index: 2; }

/* the identity and websites heroes fill the screen, their words in the middle */
@media (min-width: 721px) {
  .id-hero,
  .ws-hero {
    display: flex;
    flex-direction: column;
    min-height: calc(var(--vh) * 92);
  }
  .id-hero > .container,
  .ws-hero > .container {
    display: flex;
    flex: 1;
    flex-direction: column;
  }
  .id-hero__copy,
  .ws-hero__copy { margin: auto 0; padding: 32px 0; }
}

/* ---------- identity: suns rising and setting ---------- */

.hero-suns {
  position: absolute;
  top: 50%;
  right: calc(var(--gutter) * -1);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(8px, 1.2vw, 20px);
  width: min(56vw, 860px, calc(var(--vh) * 100));
  transform: translateY(-48%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.55) 35%, #000 72%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.55) 35%, #000 72%);
}
.hero-suns i {
  position: relative;
  display: block;
  aspect-ratio: 1;
}
.hero-suns i::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: calc(34% - 1px);
  height: 2px;
  border-radius: 2px;
  background: rgba(23, 37, 31, 0.16);
}
.hero-suns s {
  position: absolute;
  inset: 0 0 34%;
  overflow: hidden;
}
.hero-suns b {
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: 0;
  aspect-ratio: 2 / 1;
  border-radius: 999px 999px 0 0;
  background: #D6C99A;
  transform: translate3d(0, 40px, 0);   /* in pixels, not %, so the graphics card can run it */
  will-change: transform;
  animation: hero-sun 7.5s var(--ease-in-out) infinite both;
  animation-delay: calc((var(--c) + var(--r)) * -0.34s);
}
.hero-suns .is-warm b { background: #EDB86B; }
@keyframes hero-sun {
  0%, 6% { transform: translate3d(0, 40px, 0); }
  32%, 70% { transform: translate3d(0, 0, 0); }
  96%, 100% { transform: translate3d(0, 40px, 0); }
}

/* ---------- websites: page layouts drifting past ---------- */

.hero-pages {
  position: absolute;
  top: -24%;
  right: -6%;
  bottom: -24%;
  display: flex;
  gap: clamp(14px, 1.6vw, 24px);
  width: min(62vw, 1000px);
  transform: rotate(-8deg);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.5) 32%, #000 68%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.5) 32%, #000 68%);
}
.hero-pages__col { flex: 1; min-width: 0; }
.hero-pages__run {
  --gap: clamp(14px, 1.6vw, 24px);
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  padding-bottom: var(--gap);   /* so half the run is exactly one loop */
  will-change: transform;
  animation: hero-pages-up var(--t, 60s) linear infinite;
}
.hero-pages__col:nth-child(even) .hero-pages__run { animation-name: hero-pages-down; }
@keyframes hero-pages-up { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, -50%, 0); } }
@keyframes hero-pages-down { from { transform: translate3d(0, -50%, 0); } to { transform: translate3d(0, 0, 0); } }
.hp {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 12px;
  border: 1px solid rgba(241, 235, 221, 0.14);
  border-radius: 8px;
  background: rgba(241, 235, 221, 0.035);
}
.hp i {
  display: block;
  border-radius: 3px;
  background: rgba(241, 235, 221, 0.14);
}
.hp .hp-nav { width: 40%; height: 6px; }
.hp .hp-head { height: 46px; background: rgba(214, 201, 154, 0.2); }
.hp .hp-line { height: 5px; }
.hp .hp-line--s { width: 64%; }
.hp .hp-btn { width: 34%; height: 10px; border-radius: 99px; background: rgba(237, 184, 107, 0.45); }
.hp .hp-img { height: 54px; background: rgba(214, 201, 154, 0.18); }
.hp .hp-img--warm { background: rgba(237, 184, 107, 0.3); }
.hp .hp-list { height: 12px; }
.hp-row { display: flex; gap: 8px; }
.hp-col { display: flex; flex: 1; flex-direction: column; gap: 6px; }
.hp-row .hp-img { flex: 1; height: auto; min-height: 50px; }
.hp-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.hp-feats i { height: 30px; }

/* ---------- full-stack: data running along a grid ---------- */

.hero-net {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 95% at 80% 45%, #000 25%, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 95% at 80% 45%, #000 25%, transparent 80%);
}
.hero-net__h,
.hero-net__v {
  position: absolute;
  background: rgba(214, 201, 154, 0.12);
}
.hero-net__h { left: 0; right: 0; top: var(--y); height: 1px; }
.hero-net__v { top: 0; bottom: 0; left: var(--x); width: 1px; }
.hero-net__h i,
.hero-net__v i {
  position: absolute;
  border-radius: 2px;
  will-change: transform;
  animation-delay: var(--d, 0s);
  animation-duration: var(--t, 9s);
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}
.hero-net__h i {
  top: -1px;
  left: 0;
  width: 44px;
  height: 3px;
  background: linear-gradient(90deg, rgba(61, 220, 151, 0), rgba(61, 220, 151, 0.85));
  animation-name: hero-packet-x;
}
.hero-net__v i {
  top: 0;
  left: -1px;
  width: 3px;
  height: 44px;
  background: linear-gradient(180deg, rgba(214, 201, 154, 0), rgba(214, 201, 154, 0.8));
  animation-name: hero-packet-y;
}
@keyframes hero-packet-x { from { transform: translate3d(-60px, 0, 0); } to { transform: translate3d(100vw, 0, 0); } }
@keyframes hero-packet-y { from { transform: translate3d(0, -60px, 0); } to { transform: translate3d(0, calc(var(--vh) * 130), 0); } }
.hero-net b {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 9px;
  height: 9px;
  margin: -4px 0 0 -4px;
  border: 1px solid rgba(61, 220, 151, 0.55);
  border-radius: 2px;
  animation: hero-node 2.8s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
@keyframes hero-node { 0%, 100% { opacity: 0.25; transform: scale(0.85); } 50% { opacity: 1; transform: scale(1.1); } }

/* ---------- phones: the motion sits under the words ---------- */

@media (max-width: 720px) {
  .id-hero,
  .ws-hero { padding-bottom: 120px; }
  .hero-suns {
    top: auto;
    right: -30vw;
    bottom: -4%;
    width: 130vw;
    transform: none;
    opacity: 0.55;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 55%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 55%);
  }
  .hero-pages {
    top: -10%;
    right: -30%;
    bottom: -10%;
    width: 140vw;
    opacity: 0.4;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 60%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 60%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-suns b { transform: none; }
  .hero-net i { display: none; }
}

/* ==========================================================================
   ROUNDED — no hard corners: buttons are pills, cards and photos are soft
   rectangles, and the parts inside the storyboards round in proportion.
   ========================================================================== */

:root {
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
}

/* buttons and small controls */
.btn { border-radius: 999px; }
.btn--square { width: 46px; padding: 0; }
.icon-grid i { border-radius: 50%; }
.icon-menu i,
.icon-close i { border-radius: 2px; }
.stack-card__tags li,
.stack-table dd span,
.cn-btn { border-radius: 999px; }

/* cards, panels and photos */
.stack-card__inner { border-radius: var(--r-xl); }
.stack-card__media { border-radius: var(--r-lg); }
.card { border-radius: var(--r-lg); }
.frame,
.panel__figure,
.svc-hero__art,
.intro__slot { border-radius: var(--r-lg); }
.intro__media { border-radius: 48px; }          /* scaled with the photo: soft as a square, gentle at full size */
.partner__card,
.cn-card,
.cn-panel,
.get-grid,
.handover__grid { overflow: hidden; border-radius: var(--r-lg); }
.cn-term { border-radius: var(--r-md); }
.seven-cta { overflow: hidden; border-radius: var(--r-md); }
.artboard { border-radius: var(--r-lg); }

/* the docked page in the services overview */
.is-clipped .page {
  clip-path: inset(var(--sy, 0px) 0 calc(100% - var(--sy, 0px) - var(--vh) * 100) 0 round 56px);
}
.mini-return,
.mini-shadow { border-radius: calc(56px * var(--mini-scale)); }

/* inside the storyboards (sizes follow the scene) */
.sheet,
.listen__sum { border-radius: 1.2cqw; }
.origin { border-radius: 1.4cqw; }
.wall-note,
.swatch,
.stamp,
.tp__photo { border-radius: 0.6cqw; }
.strat,
.test,
.report__note,
.tp--web,
.tp--post { border-radius: 1cqw; }
.tp--sign { border-radius: 0.8cqw; }
.tp__button { border-radius: 999px; }
.said__mark { border-radius: 0.3em; }
.ws-stamp,
.fs-stamp { border-radius: calc(0.6 * var(--k)); }
.fs-sticky { border-radius: calc(0.4 * var(--k)); }
.fs-book,
.fs-comment { border-radius: calc(0.6 * var(--k)); }
.fs-brief { border-radius: calc(1.6 * var(--k)); }
.fs-card,
.fs-cn { border-radius: calc(1.4 * var(--k)); }
.tpl-logo { border-radius: calc(0.3 * var(--k)); }

@media (max-width: 720px) {
  .btn--square { width: 44px; height: 44px; }
  .stack-card__inner { border-radius: var(--r-lg); }
  .stack-card__media { border-radius: var(--r-md); }
}
/* the floating menu button keeps an edge over the dark green sections */
.actions .btn--solid { border-color: rgba(241, 235, 221, 0.35); }

/* ==========================================================================
   NAVY ACCENTS — a cool counterpoint to the greens: primary buttons, the
   accent words in headings, small labels and lines, stamps and tags, and
   one navy band per page. The big surfaces stay green and sand.
   ========================================================================== */

:root {
  --navy: #26386A;          /* accent on light grounds */
  --navy-deep: #18233F;     /* fills: buttons, the band, dark tags */
  --navy-light: #AEBBDC;    /* accent on the dark green grounds */
}

/* buttons: navy to act on, green when you hover; the light buttons fill with navy */
.btn--solid {
  border-color: var(--navy-deep);
  background: var(--navy-deep);
}
.btn--solid::before { background: var(--teal-deep); }
.btn::before,
.btn--paper::before { background: var(--navy-deep); }
@media (hover: hover) and (pointer: fine) {
  .btn--solid:hover { border-color: var(--teal-deep); }
  .btn--outline:hover { border-color: var(--navy-deep); }
  .btn--paper:hover { border-color: var(--navy-deep); color: var(--mist); }
  .arrow-link:hover { border-bottom-color: var(--navy); color: var(--navy); }
  .site-footer__nav a:hover,
  .site-footer__bottom a:hover { color: var(--navy); }
}
:focus-visible,
.mini-return:focus-visible { outline-color: var(--navy); }

/* the accent words and second lines of headings */
.kicker span,
.section-title em,
.lead-statement em,
.contact__title em,
.chapter__title em,
.bs-hero__title em,
.id-hero__title em,
.reason__line em,
.bel__title em,
.marquee--hero em { color: var(--navy); }
.kicker--light span,
.ws-hero__title em,
.svc-hero__title em,
.qs__item em { color: var(--navy-light); }

/* small labels, counters and the lines that track progress */
.chapter__num,
.chapter__out span,
.values__num,
.get-grid small,
.reason__label,
.ws-lane--seven,
.partner__join { color: var(--navy); }
.chapter__bar span,
.story-rail a.is-active i,
.scroll-cue i::after { background: var(--navy); }
.panel__nav small { color: var(--navy-light); }

/* one navy band per page */
.band { background: var(--navy-deep); }
.band .marquee__group em { color: #D6C99A; }

/* inside the storyboards: stamps in navy ink, dark tags in navy */
.stamp,
.ws-stamp,
.fs-stamp { border-color: var(--navy); color: var(--navy); }
.tp__tag,
.ws-chip:not(.ws-chip--grey),
.fs-spec,
.fs-next { background: var(--navy-deep); }

/* the identity hero: a few navy suns among the sand and gold */
.hero-suns .is-navy b { background: var(--navy); }

/* ==========================================================================
   THE BOOK — the site reads like a well-made book about your story.
   Front and back covers are deep green (the home hero and every footer), the
   pages between them are cream, each one a rounded sheet laid over the last.
   Headlines and running text are set in a book face (Newsreader, --serif);
   labels, buttons and the working parts of the storyboards stay in the sans.
   ========================================================================== */

:root { --sheet: 44px; }   /* the rounded top of each page */

::selection { background: var(--navy-deep); color: var(--mist); }

/* ---------- pages: every section after the first lies over the one before ----------
   (no specificity on purpose, so a section's own background still applies) */

:where(.page) > :where(section, footer, .story):where(:not(:first-child)) {
  position: relative;
  z-index: 1;
  margin-top: calc(var(--sheet) * -1);
  border-radius: var(--sheet) var(--sheet) 0 0;
  background-color: var(--paper);
}
.band-note + section { margin-top: 0; border-radius: 0; }
/* whatever a sheet lies over keeps its own content clear of the overlap */
.band:has(+ section) { padding-bottom: calc(clamp(18px, 3vh, 32px) + var(--sheet)); }
.id-hero,
.ws-hero,
.svc-hero,
.bs-hero { padding-bottom: calc(clamp(40px, 7vh, 72px) + var(--sheet)); }
/* the first page covers the photo's own rounded corners (48px) as it comes up */
.about { margin-top: calc((var(--sheet) + 48px) * -1); }
.values {
  padding-top: clamp(72px, 12vh, 140px);
  background: var(--stage);
}

/* ---------- front cover: the home hero ---------- */

.intro {
  background: var(--ink);
  color: var(--mist);
}
.intro .logo__ink { opacity: 0; }
.intro .logo__light { opacity: 1; }
.marquee--hero .marquee__group span { color: #D6C99A; }
.marquee--hero em { color: var(--navy-light); }
.intro .scroll-cue i { background: rgba(241, 235, 221, 0.25); }
.intro .scroll-cue i::after { background: var(--mist); }

/* ---------- running text, in the book face ---------- */

.intro__lede,
.about__text,
.services__intro,
.stack-card__desc,
.values__list p,
.contact__text,
.lead-text,
.id-hero__lede,
.ws-hero__lede,
.svc-hero__lede,
.bs-hero__lede,
.partner__quote,
.principle dd,
.caption {
  font-family: var(--serif);
  font-size: clamp(17.5px, 1.4vw, 21px);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
}
.intro__lede {
  font-size: clamp(19px, 1.9vw, 27px);
  line-height: 1.28;
  letter-spacing: -0.01em;
}
.get-grid p,
.handover__grid p {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.5;
}
.caption { max-width: 36ch; }
/* the note beside the photographs reads as a pulled quote */
.values__caption {
  grid-column: 9 / 13;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(21px, 1.9vw, 29px);
  font-weight: 300;
  line-height: 1.28;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

/* a chapter opens with a raised first letter */
@supports (initial-letter: 2) or (-webkit-initial-letter: 2) {
  .about__text::first-letter,
  .story__intro .lead-text::first-letter {
    -webkit-initial-letter: 2;
    initial-letter: 2;
    margin-right: 0.1em;
    color: var(--navy);
    font-weight: 300;
  }
}

/* listen, build, grow: three words, set large */
.values__list { gap: clamp(24px, 4vw, 64px); }
.values__num { margin-bottom: clamp(28px, 5vh, 56px); }
.values__list h3 {
  margin: 0 0 18px;
  font-size: clamp(46px, 5.6vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.values__list p { max-width: 30ch; }

/* ---------- buttons: the arrow rides in its own small circle ---------- */

.btn:has(.btn__arrow) { gap: 14px; padding-right: 8px; }
.btn__arrow {
  flex: none;
  width: 30px;
  height: 30px;
  padding: 7px;
  border-radius: 50%;
  transition: transform 0.45s var(--ease-out), background-color 0.45s var(--ease-out), color 0.45s var(--ease-out);
}
.btn--solid .btn__arrow { background: var(--mist); color: var(--navy-deep); }
.btn--paper .btn__arrow { background: var(--navy-deep); color: var(--mist); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover .btn__arrow { transform: rotate(-45deg); }
  .btn--solid:hover .btn__arrow { color: var(--teal-deep); }
  .btn--paper:hover .btn__arrow { background: var(--mist); color: var(--navy-deep); }
}

/* ---------- back cover: the footer ---------- */

.site-footer {
  padding: clamp(72px, 11vh, 128px) 0 calc(var(--pad-bottom) + env(safe-area-inset-bottom, 0px));
  border-top: 0;
  background: var(--ink);
  color: var(--mist);
}
.site-footer__top {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: 48px clamp(16px, 2vw, 32px);
}
.site-footer__line {
  grid-column: 1 / 7;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(38px, 4.6vw, 76px);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.site-footer__line em { color: var(--navy-light); }
.site-footer__nav {
  grid-column: 8 / 13;
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: space-between;
  gap: 32px 24px;
  font-size: 16px;
}
.site-footer__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.site-footer__col h2 {
  margin: 0 0 6px;
  color: #A6A078;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.site-footer__col a { color: rgba(241, 235, 221, 0.86); }
.site-footer__col a[aria-current] { color: #A6A078; }
/* the name, as large as the cover allows */
.site-footer__mark {
  display: block;
  margin-top: clamp(56px, 10vh, 120px);
}
.site-footer__mark img {
  display: block;
  width: 100%;
  height: auto;
}
/* the last line sits level with the floating buttons, and leaves them room */
.site-footer__bottom {
  align-items: center;
  justify-content: flex-start;
  gap: 8px 32px;
  min-height: 46px;
  margin-top: clamp(20px, 3vh, 36px);
  padding-right: 260px;
  color: rgba(241, 235, 221, 0.6);
}
@media (hover: hover) and (pointer: fine) {
  .site-footer__nav a:hover,
  .site-footer__bottom a:hover { color: #D6C99A; }
}

@media (max-width: 1000px) {
  .site-footer__line,
  .site-footer__nav { grid-column: 1 / -1; }
  .site-footer__nav { justify-content: start; gap: 32px clamp(32px, 8vw, 72px); }
}

@media (max-width: 720px) {
  :root { --sheet: 28px; }
  .svc-hero,
  .bs-hero { padding-bottom: calc(28px + var(--sheet)); }
  .id-hero,
  .ws-hero { padding-bottom: 120px; }
  .values { padding-top: 64px; }

  .stack-card__desc { font-size: 16px; line-height: 1.42; }
  .caption { max-width: none; font-size: 16.5px; line-height: 1.45; }
  .values__caption { grid-column: 1 / -1; font-size: 22px; }
  .values__list h3 { font-size: 52px; }
  .btn__arrow { width: 28px; height: 28px; padding: 6px; }

  .site-footer { padding: 56px 0 calc(var(--pad-bottom) + 70px); }
  .site-footer__nav { grid-template-columns: repeat(2, auto); }
  .site-footer__col:last-child { grid-column: 1 / -1; }
  .site-footer__mark { margin-top: 48px; }
  .site-footer__bottom { min-height: 0; padding-right: 0; }
}

/* on the dark green sections the accent words take the light navy */
.handover .section-title em,
.qs .section-title em { color: var(--navy-light); }
/* the year's label clears the taller figures */
.year small { margin-bottom: 0.5cqw; }

/* reply-time note under the contact email */
.contact__note {
  max-width: 44ch;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
