/* ==========================================================================
   SWAY — site stylesheet
   1. Tokens  2. Base  3. Layout  4. Type  5. Components  6. Sections
   7. Pages   8. Motion  9. Responsive
   ========================================================================== */

/* 1. TOKENS --------------------------------------------------------------- */
:root {
  /* Brand */
  --red: #FC3332;          /* logo red — fills, large type, icons */
  --red-hover: #FF5C4F;
  --red-press: #D92624;
  --red-700: #B8121B;      /* red for small text on light grounds (5.7:1) */
  --red-soft: #FF8A7F;     /* red for text on ink */
  --red-100: #FFE3E0;

  /* Grounds */
  --bg: #F5EAD8;           /* warm ivory page ground */
  --ivory: #F9F4ED;        /* light-on-dark text, light fills */
  --surface: #EBDDC5;      /* sand — cards, open states */

  /* Ink + neutrals */
  --ink: #201E1D;
  --ink-2: #2E2B25;
  --ink-3: #3A3630;
  --n-300: #DCD3C4;
  --n-400: #C0B6A5;
  --n-500: #A19786;
  --muted: #645C50;
  --line: rgba(32, 30, 29, .14);

  /* Second voice — sage */
  --sage-200: #E1EECC;
  --sage-300: #CCDBB2;
  --sage-700: #56633F;
  --sage-800: #3D472B;
  --sage-900: #272E1B;

  /* Type */
  --f-display: "Caprasimo", Georgia, serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Space */
  --gutter: clamp(20px, 5vw, 72px);
  --section: clamp(88px, 11vw, 168px);
  --maxw: 1440px;
  --header-h: 76px;

  /* Radii */
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 32px;
  --r-xl: clamp(28px, 4vw, 56px);

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: .2s;
  --t-med: .45s;
  --t-slow: .9s;
}

/* 2. BASE ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: 17px; line-height: 1.6;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 400; line-height: 1.05; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
p { text-wrap: pretty; }
a { color: var(--red-700); text-underline-offset: 4px; }
a:hover { color: var(--red); }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(252, 51, 50, .28); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  background: var(--ink); color: var(--ivory); padding: 12px 20px; border-radius: 999px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--ivory); }

/* 3. LAYOUT --------------------------------------------------------------- */
.container { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(64px, 8vw, 112px); }
.bg-ink { background: var(--ink); color: var(--ivory); }
.bg-red { background: var(--red); color: var(--ink); }
.bg-sage { background: var(--sage-200); color: var(--sage-900); }
.bg-surface { background: var(--surface); }
.round-top { border-radius: var(--r-xl) var(--r-xl) 0 0; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 48px; margin-bottom: clamp(40px, 5vw, 80px); }
.section-head > p { max-width: 34ch; }
.stack { display: flex; flex-direction: column; gap: var(--gap, 20px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* 4. TYPE ----------------------------------------------------------------- */
.t-hero { font-size: clamp(64px, 11.6vw, 196px); line-height: .9; letter-spacing: -.035em; }
.t-xl { font-size: clamp(52px, 8.6vw, 148px); line-height: .92; letter-spacing: -.035em; }
.t-l { font-size: clamp(42px, 6.2vw, 100px); line-height: .96; letter-spacing: -.03em; }
.t-m { font-size: clamp(30px, 4.2vw, 64px); line-height: 1.1; letter-spacing: -.02em; }
.t-s { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.15; }
.lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--red); flex: none; }
.kicker { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sage-700); }
.bg-ink .kicker { color: var(--sage-300); }
.bg-red .kicker { color: var(--ink); }
.accent { color: var(--red); }
.muted { color: var(--muted); }
.bg-ink .muted { color: var(--n-400); }
.measure { max-width: 36ch; }
.mark {
  --mark: rgba(252, 51, 50, .32);
  background-image: linear-gradient(var(--mark), var(--mark));
  background-repeat: no-repeat; background-position: 0 88%; background-size: 100% 38%;
}
.mark--sage { --mark: rgba(122, 138, 94, .42); }

/* 5. COMPONENTS ----------------------------------------------------------- */
/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 14px 28px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--f-display); font-size: 18px; line-height: 1; text-decoration: none; cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-med) var(--ease);
}
.btn svg { width: 20px; height: 20px; flex: none; transition: transform var(--t-med) var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--red); color: var(--ink); }
.btn--primary:hover { background: var(--red-hover); color: var(--ink); transform: translateY(-2px); }
.btn--primary:active { background: var(--red-press); transform: none; }
.btn--outline { border-color: currentColor; color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.bg-ink .btn--outline { color: var(--ivory); }
.bg-ink .btn--outline:hover { background: var(--ivory); border-color: var(--ivory); color: var(--ink); }
.bg-red .btn--primary, .btn--ink { background: var(--ink); color: var(--ivory); }
.bg-red .btn--primary:hover, .btn--ink:hover { background: var(--ink-3); color: var(--ivory); }
.bg-sage .btn--outline { color: var(--sage-900); }
.bg-sage .btn--outline:hover { background: var(--sage-900); border-color: var(--sage-900); color: var(--ivory); }
.btn--sm { min-height: 46px; padding: 10px 22px; font-size: 16px; }

/* Animated underline link */
.link-u {
  display: inline-block; font-weight: 700; color: inherit; text-decoration: none; padding-bottom: 4px;
  background: linear-gradient(var(--red), var(--red)) left bottom / 100% 3px no-repeat;
}
.link-u:hover { color: inherit; animation: underline .7s var(--ease); }
@keyframes underline {
  0% { background-size: 100% 3px; background-position: right bottom; }
  45% { background-size: 0 3px; background-position: right bottom; }
  46% { background-size: 0 3px; background-position: left bottom; }
  100% { background-size: 100% 3px; background-position: left bottom; }
}

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; padding: 6px 13px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(32, 30, 29, .08); color: var(--ink); }
.tag--red { background: var(--red-100); color: #8A0E15; }
.tag--sage { background: var(--sage-200); color: var(--sage-800); }
.bg-ink .tag { background: rgba(249, 244, 237, .1); color: var(--ivory); }
.bg-ink .tag--red { background: var(--red); color: var(--ink); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); transition: box-shadow var(--t-med); }
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(32, 30, 29, .35); }
.nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); min-height: var(--header-h); }
.nav__logo { margin-right: auto; line-height: 0; border-radius: 8px; }
.nav__logo img { height: 44px; width: auto; }
.nav__links { display: flex; gap: clamp(20px, 2.4vw, 34px); list-style: none; margin: 0; padding: 0; }
.nav__links a { position: relative; display: block; padding: 8px 0; color: var(--ink); text-decoration: none; font-weight: 600; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 3px; border-radius: 3px; background: var(--red);
  transform: scaleX(0); transform-origin: right; transition: transform var(--t-med) var(--ease);
}
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__toggle {
  display: none; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px; border: 0; border-radius: 999px;
  background: var(--ink); color: var(--ivory); font-weight: 600; font-size: 16px; cursor: pointer;
}
.nav__toggle svg { width: 20px; height: 20px; }

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; overflow: auto;
  padding: 0 var(--gutter) 32px; background: var(--red); color: var(--ink);
  clip-path: circle(0% at calc(100% - 64px) 38px); visibility: hidden;
  transition: clip-path .6s var(--ease), visibility 0s linear .6s;
}
.menu.is-open { clip-path: circle(150% at calc(100% - 64px) 38px); visibility: visible; transition: clip-path .7s var(--ease); }
.menu__top { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); }
.menu__top img { height: 44px; width: auto; }
.menu__links { list-style: none; margin: auto 0 0; padding: 48px 0 0; display: flex; flex-direction: column; gap: 2px; }
.menu__links a {
  display: inline-block; font-family: var(--f-display); font-size: clamp(44px, 12vw, 84px); line-height: 1.1;
  color: var(--ink); text-decoration: none; opacity: 0; transform: translateY(24px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), color var(--t-fast);
}
.menu.is-open .menu__links a { opacity: 1; transform: none; }
.menu.is-open .menu__links li:nth-child(2) a { transition-delay: .05s; }
.menu.is-open .menu__links li:nth-child(3) a { transition-delay: .1s; }
.menu.is-open .menu__links li:nth-child(4) a { transition-delay: .15s; }
.menu.is-open .menu__links li:nth-child(5) a { transition-delay: .2s; }
.menu.is-open .menu__links li:nth-child(6) a { transition-delay: .25s; }
.menu__links a:hover, .menu__links a[aria-current="page"] { color: var(--ivory); }
.menu__foot { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-weight: 700; }
.menu__foot a { color: var(--ink); }

/* Marquee */
.marquee-wrap { overflow: hidden; padding-block: 22px; }
.marquee { background: var(--red); color: var(--ink); transform: rotate(-1.6deg) scaleX(1.05); padding-block: clamp(14px, 1.8vw, 22px); overflow: hidden; }
.marquee__track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: inline-flex; align-items: center; gap: .6em; padding-right: .6em; white-space: nowrap; font-family: var(--f-display); font-size: clamp(28px, 3.4vw, 50px); line-height: 1.1; }
.marquee__item::after { content: ""; width: .3em; height: .3em; border-radius: 50%; background: var(--ivory); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Accordion (services) */
.acc { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.acc__item { border-radius: var(--r-lg); transition: background var(--t-med); }
.acc__item.is-open { background: var(--surface); }
.bg-ink .acc__item.is-open { background: var(--ink-2); }
.acc__btn {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(12px, 2vw, 28px); align-items: center;
  padding: clamp(16px, 2vw, 24px) clamp(16px, 2vw, 28px); border-radius: var(--r-lg); transition: background var(--t-fast);
}
.acc__btn:hover { background: rgba(32, 30, 29, .05); }
.acc__btn:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.acc__num { font-weight: 700; font-size: 15px; color: var(--sage-700); min-width: 2ch; }
.acc__name { font-family: var(--f-display); font-size: clamp(26px, 3.4vw, 50px); line-height: 1.05; letter-spacing: -.02em; }
.acc__icon {
  width: clamp(42px, 4vw, 54px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: rgba(32, 30, 29, .08); transition: transform var(--t-med) var(--ease), background var(--t-fast);
}
.acc__icon svg { width: 22px; height: 22px; }
.is-open .acc__icon { background: var(--red); transform: rotate(45deg); }
.acc__panel { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .55s var(--ease); }
.js .acc__item:not(.is-open) .acc__panel { grid-template-rows: 0fr; }
.acc__panel > div { overflow: hidden; }
.acc__body { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 24px 32px; padding: 4px clamp(16px, 2vw, 28px) clamp(24px, 3vw, 36px); }
.acc__problem { font-family: var(--f-display); font-size: clamp(20px, 1.7vw, 25px); line-height: 1.25; }

/* Project tiles */
.tile { display: flex; flex-direction: column; gap: 18px; color: inherit; text-decoration: none; }
.tile:hover { color: inherit; }
.tile__media { position: relative; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: var(--ar, 4 / 3); isolation: isolate; }
.tile__media > * { transition: transform 1s var(--ease); }
.tile:hover .tile__media > * { transform: scale(1.045); }
.tile__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile__meta { display: flex; flex-direction: column; gap: 10px; }
.tile__title { font-size: clamp(26px, 2.6vw, 40px); line-height: 1.08; }
.tile__title .arrow { display: inline-block; transition: transform var(--t-med) var(--ease); }
.tile:hover .tile__title .arrow { transform: translateX(8px); }
.tile__desc { max-width: 46ch; }
.bg-ink .tile__desc { color: var(--n-300); }

/* Cover — typographic stand-in until real project imagery is dropped in */
.cover { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(20px, 2.4vw, 34px); overflow: hidden; }
.cover::after { content: ""; position: absolute; z-index: 0; border-radius: 50%; width: var(--cs, 62%); aspect-ratio: 1; right: var(--cx, -12%); bottom: var(--cy, -22%); background: var(--cc); }
.cover > * { position: relative; z-index: 1; }
.cover__word { font-family: var(--f-display); font-size: clamp(40px, 5.6vw, 100px); line-height: .9; letter-spacing: -.03em; max-width: 7ch; }
.cover__label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.cover--red { background: var(--red); color: var(--ink); --cc: var(--ivory); }
.cover--sage { background: var(--sage-300); color: var(--sage-900); --cc: var(--red); --cs: 48%; --cx: 8%; --cy: -18%; }
.cover--ivory { background: var(--ivory); color: var(--red-700); --cc: var(--sage-300); --cs: 70%; --cx: -24%; --cy: -30%; }
.cover--ink { background: var(--ink-3); color: var(--ivory); --cc: var(--red); --cs: 40%; --cx: 10%; --cy: 12%; }
.cover--sand { background: var(--surface); color: var(--ink); --cc: var(--ink); --cs: 34%; --cx: -6%; --cy: -8%; }

/* Cursor badge (fine pointers only, created by JS) */
.cursor-badge {
  position: fixed; left: 0; top: 0; z-index: 70; width: 104px; height: 104px; border-radius: 50%;
  display: grid; place-items: center; text-align: center; background: var(--red); color: var(--ink);
  font-family: var(--f-display); font-size: 18px; line-height: 1.1; pointer-events: none;
  transform: translate(calc(var(--x, -200px) - 50%), calc(var(--y, -200px) - 50%)) scale(var(--s, 0));
  transition: transform .4s var(--ease);
}
.cursor-badge.is-on { --s: 1; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  min-height: 46px; padding: 10px 20px; border-radius: 999px; border: 2px solid var(--line);
  background: transparent; color: var(--ink); font-weight: 600; font-size: 15px; cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--ivory); }

/* Circles */
.circle { border-radius: 50%; aspect-ratio: 1; display: grid; place-items: center; text-align: center; }
.stamp {
  width: clamp(124px, 12vw, 168px); background: var(--ink); color: var(--ivory); transform: rotate(-10deg);
  font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; line-height: 1.4;
}
.stamp strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: 24px; letter-spacing: 0; text-transform: none; color: var(--red); }

/* Forms */
.form { display: grid; gap: 24px; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field > label, .field > legend { font-weight: 700; font-size: 15px; padding: 0; }
.field .opt { font-weight: 400; color: var(--muted); }
.input {
  width: 100%; min-height: 56px; padding: 14px 22px; border-radius: 999px; border: 2px solid transparent;
  background: var(--ivory); color: var(--ink); font: inherit; font-size: 17px;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.input::placeholder { color: #8a8174; }
.input:hover { border-color: rgba(32, 30, 29, .25); }
.input:focus { border-color: var(--ink); background: #fff; }
.input:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 999px; }
textarea.input { border-radius: var(--r-md); min-height: 170px; resize: vertical; line-height: 1.55; }
textarea.input:focus-visible { border-radius: var(--r-md); }
select.input {
  appearance: none; -webkit-appearance: none; padding-right: 52px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23201E1D' stroke-width='2.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 20px center;
}
.input[aria-invalid="true"] { border-color: var(--red-700); background-color: #FFF6F4; }
.field__error { font-size: 14px; font-weight: 600; color: var(--red-700); }
.field__error:empty { display: none; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: inline-flex; align-items: center; min-height: 46px; padding: 10px 18px; border-radius: 999px;
  border: 2px solid rgba(32, 30, 29, .2); font-weight: 600; font-size: 15px; cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.choice span:hover { border-color: var(--ink); }
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.choice input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 16px 22px; border-radius: var(--r-md); font-weight: 600; }
.form-status--error { background: var(--red-100); color: #8A0E15; }
.form-status--info { background: var(--sage-200); color: var(--sage-900); }
.form-success { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.btn[aria-busy="true"] { opacity: .7; cursor: progress; }

/* Prose (articles, legal) */
.prose { max-width: 68ch; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.72; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(28px, 2.8vw, 40px); margin-top: 1.8em; }
.prose h3 { font-size: clamp(22px, 2vw, 28px); margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--red); }
.prose blockquote { font-family: var(--f-display); font-size: clamp(24px, 2.4vw, 34px); line-height: 1.25; color: var(--red-700); margin-block: 1.4em; }
.note { padding: 16px 22px; border-radius: var(--r-md); background: var(--sage-200); color: var(--sage-900); font-size: 15px; font-weight: 600; }

/* Footer */
.site-footer { background: var(--red); color: var(--ink); }
.footer__grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 48px clamp(40px, 6vw, 96px); padding-top: clamp(72px, 8vw, 120px); }
.footer__intro { flex: 1 1 300px; max-width: 420px; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.footer__cols { display: flex; flex-wrap: wrap; gap: 40px clamp(40px, 6vw, 96px); }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col h2 { font-family: var(--f-body); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.footer__col a { color: var(--ink); text-decoration: none; font-size: 17px; font-weight: 500; }
.footer__col a:hover { color: var(--ivory); }
.footer__logo { width: 100%; margin-block: clamp(56px, 7vw, 104px) clamp(24px, 3vw, 40px); }
.footer__logo img { width: min(100%, 1180px); margin-left: -1%; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-bottom: 32px; font-size: 15px; font-weight: 600; }
.footer__base a { color: var(--ink); }
.footer__base a:hover { color: var(--ivory); }

/* 6. SECTIONS — HOME ------------------------------------------------------ */
/* Hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(40px, 6vw, 88px) clamp(56px, 7vw, 104px); }
.hero__noise { position: absolute; inset: 0; pointer-events: none; }
.noise {
  position: absolute; left: var(--x); top: var(--y); white-space: nowrap;
  font-weight: 600; font-size: clamp(13px, 1.15vw, 18px); color: var(--n-500);
  transform: translate(var(--dx, 0), var(--dy, 0)) rotate(var(--r, 0deg));
  transition: opacity 1.4s var(--ease), transform .7s var(--ease);
}
.hero.is-quiet .noise { opacity: .32; }
.hero__inner { position: relative; }
.hero__title { margin: clamp(20px, 2.4vw, 32px) 0 clamp(40px, 4.6vw, 72px); }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .line:last-child { overflow: visible; }
.hero__title .line > span { display: inline-block; }
.sway-wrap { display: inline-block; transform: rotate(var(--tilt, 0deg)); transform-origin: 20% 70%; transition: transform .9s var(--ease); }
.hero__sway { display: inline-block; height: 1.34em; width: auto; vertical-align: -.6em; margin-left: .06em; transform-origin: 30% 72%; }
.hero__foot { display: grid; grid-template-columns: minmax(0, 1.15fr) auto minmax(0, .7fr); gap: clamp(28px, 4vw, 64px); align-items: end; }
.hero__foot .stamp { justify-self: end; }
.cycle { font-family: var(--f-display); font-size: clamp(20px, 1.9vw, 26px); line-height: 1.2; margin-top: 20px; }
.cycle__word { display: inline-block; color: var(--red-700); }

/* Intro */
.intro { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: end; }
.facts { display: flex; flex-wrap: wrap; gap: 20px 36px; margin-top: 8px; }
.fact strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: clamp(34px, 3vw, 44px); line-height: 1; color: var(--red-700); }
.fact span { font-size: 14px; font-weight: 600; color: var(--muted); }

/* Selected work grid (home) */
.work-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(48px, 5vw, 80px) clamp(20px, 2.6vw, 44px); }
.work-grid > :nth-child(1) { grid-column: 1 / span 7; --ar: 5 / 4; }
.work-grid > :nth-child(2) { grid-column: 8 / span 5; --ar: 4 / 5; margin-top: clamp(0px, 10vw, 180px); }
.work-grid > :nth-child(3) { grid-column: 1 / span 5; --ar: 1 / 1; }
.work-grid > :nth-child(4) { grid-column: 6 / span 7; --ar: 16 / 11; margin-top: clamp(0px, 6vw, 96px); }

/* Services split (home) */
.svc-split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.6fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.svc-split__head { position: sticky; top: calc(var(--header-h) + 32px); display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }

/* Growth */
.equation { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(12px, 2vw, 28px); margin-block: clamp(56px, 7vw, 104px); }
.eq { width: clamp(168px, 21vw, 300px); padding: 9%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; }
.eq__word { font-family: var(--f-display); font-size: clamp(30px, 3.4vw, 52px); line-height: 1; }
.eq__sub { font-size: clamp(13px, 1.1vw, 16px); line-height: 1.4; }
.eq--ivory { background: var(--ivory); color: var(--ink); }
.eq--ink { background: var(--ink); color: var(--ivory); }
.eq--ink .eq__sub { color: var(--n-300); }
.eq--sage { background: var(--sage-300); transform: rotate(-8deg); }
.eq--sage img { width: 72%; }
.eq-op { font-family: var(--f-display); font-size: clamp(40px, 5vw, 80px); line-height: 1; }
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 36px clamp(28px, 4vw, 56px); }
.principles h3 { margin-bottom: 10px; }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px clamp(24px, 3vw, 48px); }
.step { display: flex; flex-direction: column; gap: 16px; }
.step:nth-child(2) { padding-top: 96px; }
.step:nth-child(3) { padding-top: 28px; }
.step:nth-child(4) { padding-top: 128px; }
.step__num { width: clamp(96px, 9vw, 128px); font-family: var(--f-display); font-size: clamp(36px, 3.4vw, 50px); }
.step p { max-width: 30ch; }

/* Big CTA */
.cta { position: relative; overflow: hidden; }
.cta__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.cta__script { width: min(100%, 520px); transform: rotate(-8deg); justify-self: center; }

/* 7. PAGES ---------------------------------------------------------------- */
.page-hero { padding-block: clamp(48px, 7vw, 112px) clamp(48px, 6vw, 96px); }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.page-hero h1 { margin-block: 20px 0; }

/* Services page */
.svc-index { position: sticky; top: var(--header-h); z-index: 30; background: var(--bg); padding-block: 12px; }
.svc-index ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.svc-index ul::-webkit-scrollbar { display: none; }
.svc-index a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; white-space: nowrap; border-radius: 999px;
  border: 2px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.svc-index a:hover { border-color: var(--ink); }
.svc-index a[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.svc-block__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(40px, 6vw, 96px); }
.svc-block__head { position: sticky; top: calc(var(--header-h) + 96px); align-self: start; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.svc-block__num { font-family: var(--f-display); font-size: clamp(72px, 9vw, 150px); line-height: .8; color: var(--red); }
.bg-red .svc-block__num { color: var(--ivory); }
.bg-sage .svc-block__num { color: var(--sage-700); }
.svc-detail { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 40px clamp(28px, 3vw, 48px); }
.svc-detail ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.svc-detail li { display: flex; gap: 12px; align-items: baseline; }
.svc-detail li::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--red); transform: translateY(-1px); }
.bg-red .svc-detail li::before { background: var(--ink); }
.svc-detail__problem { font-family: var(--f-display); font-size: clamp(22px, 2vw, 30px); line-height: 1.2; }

/* Work page */
.work-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(40px, 5vw, 64px); }
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); grid-auto-flow: dense; gap: clamp(48px, 5vw, 72px) clamp(20px, 2.4vw, 40px); }
.proj-grid .tile--wide { grid-column: span 2; --ar: 16 / 9; }
.proj-grid .tile.is-entering { animation: tileIn .6s var(--ease) both; }
@keyframes tileIn { from { opacity: 0; transform: translateY(20px); } }
.empty { padding: 40px; border-radius: var(--r-lg); background: var(--surface); font-weight: 600; }

/* Case study */
.cs-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 20px 32px; margin-top: clamp(40px, 5vw, 64px); }
.cs-meta dt { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.cs-meta dd { font-weight: 600; font-size: 18px; }
.cs-cover { --ar: 16 / 8; }
.cs-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 20px clamp(40px, 6vw, 96px); padding-block: clamp(40px, 5vw, 72px); }
.cs-section + .cs-section { border-top: 2px solid var(--line); }
.cs-section h2 { font-size: clamp(28px, 3vw, 44px); }
.results { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.result { padding: 28px; border-radius: var(--r-lg); background: var(--ivory); color: var(--ink); display: flex; flex-direction: column; gap: 8px; }
.result strong { font-family: var(--f-display); font-weight: 400; font-size: clamp(32px, 3vw, 48px); line-height: 1; color: var(--red-700); }

/* About */
.split-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split-2 > * { padding: clamp(40px, 6vw, 96px) var(--gutter); display: flex; flex-direction: column; gap: 20px; }
.principle-list { list-style: none; margin: 0; padding: 0; counter-reset: p; }
.principle-list li { counter-increment: p; display: grid; grid-template-columns: minmax(64px, 120px) minmax(0, 1fr) minmax(0, 1fr); gap: 16px clamp(24px, 4vw, 64px); align-items: baseline; padding-block: clamp(24px, 3vw, 40px); border-top: 2px solid rgba(249, 244, 237, .14); }
.principle-list li::before { content: "0" counter(p); font-family: var(--f-display); font-size: clamp(28px, 3vw, 44px); color: var(--red); }
.principle-list h3 { font-size: clamp(26px, 3vw, 44px); }
.principle-list p { color: var(--n-300); }
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 40px 28px; }
.member { display: flex; flex-direction: column; gap: 14px; }
.member__photo { width: 100%; aspect-ratio: 1; border-radius: 50%; background: var(--surface); display: grid; place-items: center; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; overflow: hidden; }
.member__photo img { width: 100%; height: 100%; object-fit: cover; }
.member:nth-child(3n+2) .member__photo { background: var(--sage-300); color: var(--sage-900); }
.member:nth-child(3n+3) .member__photo { background: var(--red-100); color: #8A0E15; }
.diff { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.diff__item { padding: clamp(28px, 3vw, 44px); border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 14px; min-height: 320px; justify-content: space-between; }
.diff__item:nth-child(1) { background: var(--ink); color: var(--ivory); }
.diff__item:nth-child(2) { background: var(--red); color: var(--ink); }
.diff__item:nth-child(3) { background: var(--sage-300); color: var(--sage-900); }
.diff__item h3 { font-size: clamp(26px, 2.6vw, 38px); }

/* Journal */
.feature { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; color: inherit; text-decoration: none; }
.feature:hover { color: inherit; }
.feature .tile__media { --ar: 4 / 3; }
.feature:hover .tile__media > * { transform: scale(1.045); }
.upcoming { list-style: none; margin: 0; padding: 0; }
.upcoming li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 32px; align-items: baseline; padding-block: clamp(22px, 2.6vw, 32px); border-top: 2px solid var(--line); }
.upcoming h3 { font-size: clamp(24px, 2.6vw, 38px); }
.article-head { max-width: 22ch; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; font-weight: 600; color: var(--muted); }
.article-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 68ch) minmax(0, 1fr); }
.article-body > .prose { grid-column: 2; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__aside { position: sticky; top: calc(var(--header-h) + 32px); display: flex; flex-direction: column; gap: 28px; }
.contact__card { padding: clamp(24px, 4vw, 56px); border-radius: var(--r-xl); background: var(--surface); }
.direct { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.direct a { font-family: var(--f-display); font-size: clamp(22px, 2vw, 28px); color: var(--ink); text-decoration: none; }
.direct a:hover { color: var(--red-700); }
.direct small { display: block; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.next-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.next-steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; }
.next-steps li span { width: 40px; font-family: var(--f-display); background: var(--sage-300); color: var(--sage-900); }

/* 404 */
.lost { min-height: calc(100svh - var(--header-h)); display: flex; align-items: center; }
.lost__logo { width: min(70vw, 520px); }

/* 8. MOTION --------------------------------------------------------------- */
@keyframes sway { 0%, 100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(4deg) translateY(-3%); } }
@keyframes rise { from { transform: translateY(105%); } }
@keyframes wordIn { from { opacity: 0; transform: translateY(60%) rotate(4deg); } }
.motion-ok .hero__sway, .motion-ok .lost__logo { animation: sway 5.5s ease-in-out infinite; }
.motion-ok .hero__title .line > span { animation: rise 1s var(--ease) both; }
.motion-ok .hero__title .line:nth-child(2) > span { animation-delay: .14s; }
.motion-ok .cycle__word.is-swap { animation: wordIn .6s var(--ease); }
[data-reveal] { transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); transition-delay: calc(var(--d, 0) * 1ms); }
.motion-ok [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(32px); }
.motion-ok .mark { transition: background-size 1.2s var(--ease) .35s; }
.motion-ok .mark:not(.is-in) { background-size: 0 38%; }
.motion-ok .mark--sage { transition-delay: .75s; }

/* Founder + results proof ------------------------------------------------ */
.founder { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.founder__photo { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 1; background: var(--surface); }
.founder__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.proof-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(20px, 2.5vw, 36px); align-items: start; }
.proof { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.proof--wide { grid-column: 1 / -1; }
.proof__media { display: block; border-radius: var(--r-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); transition: transform var(--t-med) var(--ease); }
.proof__media:hover { transform: translateY(-4px); }
.proof__media img { display: block; width: 100%; height: auto; }
.proof figcaption { display: flex; flex-direction: column; gap: 4px; }
.proof figcaption .kicker { margin-bottom: 4px; }
.proof figcaption strong { font-family: var(--f-display); font-weight: 400; font-size: clamp(22px, 2vw, 30px); line-height: 1.15; }
@media (max-width: 959px) { .founder, .proof-grid { grid-template-columns: 1fr; } .founder__photo { max-width: 520px; } }

/* FAQ (AEO) ---------------------------------------------------------------- */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(20px, 2.4vw, 30px) 0; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__q { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(22px, 2.2vw, 32px); line-height: 1.15; }
.faq__icon { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--surface); position: relative; transition: background var(--t-fast), transform var(--t-med) var(--ease); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2.5px; border-radius: 2px; background: currentColor; transform: translate(-50%, -50%); }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__icon { background: var(--red); transform: rotate(45deg); }
.faq__item summary:hover .faq__icon { background: var(--red-100); }
.faq__a { padding: 0 0 clamp(22px, 2.4vw, 32px); max-width: 68ch; }
.faq__a p { margin: 0; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; }
.faq__a a { color: var(--red-700); text-decoration: underline; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .marquee__track { animation: none; }
}

/* 9. RESPONSIVE ----------------------------------------------------------- */
@media (max-width: 1099px) {
  .proj-grid .tile--wide { grid-column: auto; --ar: 4 / 3; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:nth-child(n) { padding-top: 0; }
  .step:nth-child(even) { padding-top: 56px; }
  .diff { grid-template-columns: 1fr; }
  .diff__item { min-height: 0; }
}
@media (max-width: 959px) {
  :root { --header-h: 68px; }
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__logo img { height: 38px; }
  .hero__foot { grid-template-columns: 1fr; }
  .hero__foot .stamp { justify-self: start; }
  .intro, .svc-split, .cta__grid, .page-hero__grid, .svc-block__grid, .contact, .feature, .cs-section { grid-template-columns: 1fr; }
  .svc-split__head, .svc-block__head, .contact__aside { position: static; }
  .work-grid { grid-template-columns: 1fr; }
  .work-grid > :nth-child(n) { grid-column: auto; margin-top: 0; }
  .work-grid > :nth-child(2) { --ar: 1 / 1; }
  .split-2 { grid-template-columns: 1fr; }
  .principle-list li { grid-template-columns: 1fr; }
  .cta__script { width: min(80%, 380px); }
  .noise:nth-child(2n) { display: none; }
}
@media (min-width: 960px) { .menu { display: none; } }
@media (max-width: 599px) {
  body { font-size: 16px; }
  .steps { grid-template-columns: 1fr; }
  .step:nth-child(n) { padding-top: 0; }
  .btn { width: 100%; }
  .actions .btn { width: auto; flex: 1 1 auto; }
  .upcoming li { grid-template-columns: 1fr; }
  .eq { width: min(62vw, 240px); }
  .cursor-badge { display: none; }
}
@media print {
  .site-header, .menu, .marquee-wrap, .cursor-badge { display: none !important; }
  body { background: #fff; }
}
