/* ==========================================================================
   GRG DESIGN / EDITORIAL COASTAL SYSTEM
   Native CSS, Canvas 2D, scroll state, sticky storytelling, View Transitions
   ========================================================================== */

:root {
  --ink: #314b67;
  --ink-2: #24394f;
  --sea: #4c6867;
  --sage: #5c7c67;
  --sage-2: #8da69b;
  --mist: #dce7e3;
  --mist-2: #bfd2cc;
  --sand: #e7dccb;
  --shell: #f3efe6;
  --paper: #fbf8f2;
  --white: #fffdf8;
  --black: #172024;
  --line: rgba(36, 57, 79, .18);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
  --ease: cubic-bezier(.22, .76, .28, 1);
  --header-h: 72px;
}

@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: .45s; animation-timing-function: var(--ease); }
::view-transition-old(project-image),
::view-transition-new(project-image) { animation-duration: .7s; animation-timing-function: var(--ease); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--black);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
::selection { background: var(--mist-2); color: var(--ink-2); }

.shell { width: min(1260px, calc(100% - 9vw)); margin-inline: auto; }
.shell-wide { width: min(1580px, calc(100% - 4vw)); margin-inline: auto; }

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 9999;
  transform: translateY(-150%); background: #fff; padding: 10px 14px;
}
.skip-link:focus { transform: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.page-noise {
  position: fixed; inset: 0; z-index: 998; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* cursor */
.cursor-orb {
  position: fixed; width: 78px; height: 78px; left: 0; top: 0; z-index: 9999;
  border-radius: 50%; border: 1px solid rgba(36,57,79,.35);
  background: rgba(255,255,255,.18); backdrop-filter: blur(3px);
  pointer-events: none; transform: translate(-50%, -50%) scale(.18);
  opacity: 0; transition: opacity .2s, transform .28s var(--ease), background .2s, border-color .2s;
  display: grid; place-items: center; color: var(--ink-2); mix-blend-mode: multiply;
}
.cursor-orb.is-visible { opacity: 1; }
.cursor-orb.is-active { transform: translate(-50%, -50%) scale(1); background: rgba(243,239,230,.82); border-color: transparent; }
.cursor-orb span {
  font-size: 8px; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; opacity: 0;
  transition: opacity .2s;
}
.cursor-orb.is-active span { opacity: 1; }

/* header */
.site-header {
  position: fixed; z-index: 1000; left: 2.1vw; right: 2.1vw; top: 16px;
  min-height: var(--header-h); display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; padding: 9px 18px;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), border .35s var(--ease), transform .35s var(--ease);
  border: 1px solid transparent; border-radius: 999px;
}
.site-header.is-scrolled {
  background: rgba(248,245,238,.82); backdrop-filter: blur(18px) saturate(130%);
  border-color: rgba(36,57,79,.1); box-shadow: 0 10px 40px rgba(36,57,79,.07);
}
.brand { width: 112px; z-index: 2; }
.brand img { width: 100%; height: 45px; object-fit: contain; object-position: left center; }

.desktop-nav { display: flex; align-items: center; gap: 28px; }
.desktop-nav a, .header-inquire {
  font-size: 9px; text-transform: uppercase; letter-spacing: .15em; font-weight: 600; color: var(--ink-2);
}
.desktop-nav a { position: relative; }
.desktop-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -5px; width: 100%; height: 1px;
  background: var(--ink-2); transform: scaleX(0); transform-origin: right; transition: transform .25s var(--ease);
}
.desktop-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header-inquire { justify-self: end; display: inline-flex; gap: 10px; align-items: center; padding: 9px 14px; }
.header-inquire span { font-size: 15px; line-height: 1; }
.menu-toggle { display: none; justify-self: end; border: 0; background: transparent; padding: 10px; z-index: 4; }
.menu-toggle > span:not(.sr-only) { display: block; width: 26px; height: 1px; background: var(--ink-2); margin: 6px 0; transition: .25s var(--ease); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 900; background: var(--shell); visibility: hidden; opacity: 0;
  transition: opacity .3s var(--ease), visibility .3s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu nav { min-height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 110px 9vw 55px; }
.mobile-menu a {
  display: flex; align-items: baseline; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line);
  font-family: var(--serif); font-size: clamp(48px, 13vw, 74px); line-height: .95; color: var(--ink-2);
}
.mobile-menu a span { font-family: var(--sans); font-size: 9px; letter-spacing: .12em; color: var(--sage); }

/* shared */
.section-tag {
  margin: 0; color: var(--ink); font-size: 9px; line-height: 1.4; font-weight: 600;
  text-transform: uppercase; letter-spacing: .16em;
}
.section-tag.light { color: rgba(255,255,255,.6); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .85s var(--ease), transform .85s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* HERO */
.hero {
  position: relative; min-height: 100svh; overflow: hidden; isolation: isolate;
  background: linear-gradient(125deg, #eaf0ec 0%, #d4e2dd 45%, #afc8c3 100%);
  color: var(--ink-2);
}
.caustic-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -3; }
.hero-wash {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(circle at 77% 25%, rgba(255,255,255,.6), transparent 17%),
    linear-gradient(110deg, rgba(243,239,230,.45) 0 22%, rgba(255,255,255,.05) 54%, rgba(49,75,103,.07));
}
.hero-inner {
  min-height: 100svh; width: min(1480px, calc(100% - 8vw)); margin-inline: auto;
  padding: 132px 0 38px; display: flex; flex-direction: column; justify-content: space-between;
}
.hero-kicker {
  display: flex; justify-content: space-between; gap: 30px; width: 100%;
  font-size: 9px; text-transform: uppercase; letter-spacing: .17em; font-weight: 600;
}
.hero-title {
  max-width: 1320px; margin: auto 0; padding: 5vh 0;
  font-family: var(--serif); font-size: clamp(64px, 7.65vw, 128px); font-weight: 400;
  line-height: 1.02; letter-spacing: -.05em;
}
.hero-title em { font-weight: 400; color: var(--sage); }
.hero-bottom { display: grid; grid-template-columns: minmax(0, 500px) auto; justify-content: space-between; gap: 40px; align-items: end; }
.hero-bottom > p { margin: 0; max-width: 490px; color: #445b5d; font-size: 13px; line-height: 1.8; }
.round-link, .send-disc {
  width: 112px; height: 112px; border-radius: 50%; border: 1px solid rgba(36,57,79,.42);
  display: flex; flex-direction: column; justify-content: space-between; padding: 20px;
  color: var(--ink-2); transition: background .3s var(--ease), color .3s var(--ease), border .3s;
}
.round-link span, .send-disc span { font-size: 9px; line-height: 1.25; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.round-link b, .send-disc b { align-self: flex-end; font-size: 20px; font-weight: 300; line-height: 1; }
.round-link:hover { background: var(--ink-2); color: #fff; border-color: var(--ink-2); }
.hero-monogram {
  position: absolute; z-index: -1; right: 1.5vw; bottom: -2.2vw;
  font-family: var(--serif); font-size: clamp(220px, 28vw, 500px); line-height: .78;
  letter-spacing: -.12em; color: rgba(255,255,255,.115); pointer-events: none;
}
.hero-edge-note {
  position: absolute; right: 1.4vw; top: 50%; transform: rotate(90deg) translateX(50%);
  transform-origin: right center; font-size: 8px; text-transform: uppercase; letter-spacing: .17em;
  color: rgba(36,57,79,.55);
}

/* MANIFESTO */
.manifesto { padding: clamp(130px, 16vw, 250px) 0 clamp(120px, 14vw, 220px); background: var(--paper); overflow: hidden; }
.manifesto-line { position: relative; }
.manifesto-index { position: absolute; left: 0; top: 1.2em; font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); font-weight: 600; }
.manifesto-copy {
  margin: 0; padding: 0; max-width: min(1260px, 86vw);
  font-family: var(--serif); font-size: clamp(50px, 5.05vw, 86px); line-height: .96; letter-spacing: -.04em; color: var(--ink-2);
}
.manifesto-copy i { font-weight: 400; color: var(--sage); }
.manifesto-line.line-right .manifesto-copy { padding: 0; margin-left: auto; max-width: min(1260px, 86vw); text-align: right; margin-top: 24px; }
.manifesto-detail {
  margin-top: clamp(75px, 9vw, 130px); display: grid; grid-template-columns: .7fr 1.15fr .8fr; gap: 8vw; align-items: end;
}
.manifesto-small { align-self: start; color: var(--sage); font-size: 9px; letter-spacing: .13em; text-transform: uppercase; }
.manifesto-detail > p { margin: 0; font-family: var(--serif); color: #405355; font-size: clamp(25px, 2.5vw, 37px); line-height: 1.25; }
.manifesto-signature { width: 100%; max-width: 300px; justify-self: end; }

/* WORK */
.work-intro { background: var(--paper); padding: 0 0 70px; }
.work-heading { display: flex; align-items: end; justify-content: space-between; gap: 50px; border-top: 1px solid var(--line); padding-top: 30px; }
.work-heading h2, .designer-copy h2, .notes-head h2, .inquire-copy h2 {
  margin: 24px 0 0; font-family: var(--serif); font-weight: 400; line-height: .96;
  color: var(--ink-2); letter-spacing: -.04em; font-size: clamp(58px, 6.5vw, 104px);
}
.work-heading h2 em, .designer-copy h2 em, .notes-head h2 em { color: var(--sage); font-weight: 400; }
.work-note { width: min(330px, 100%); margin: 0 0 8px; font-size: 11px; color: #6d7877; line-height: 1.7; }

.project-stack { background: var(--paper); padding-bottom: 13vh; }
.stack-card {
  position: sticky; top: calc(var(--header-h) + 34px); height: calc(100svh - var(--header-h) - 50px);
  width: min(1540px, calc(100% - 3vw)); margin: 0 auto 16vh;
  border-radius: 4px; overflow: hidden; box-shadow: 0 18px 70px rgba(23,32,36,.11);
  background: var(--mist); transform-origin: center top;
}
.stack-card:nth-child(2) { width: min(1500px, calc(100% - 5vw)); }
.stack-card:nth-child(3) { width: min(1460px, calc(100% - 7vw)); }
.stack-card-link { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; }
.stack-image, .stack-image img { position: absolute; inset: 0; width: 100%; height: 100%; }
.stack-image img { object-fit: cover; transform: scale(1.015); transition: transform 1.2s var(--ease); }
.stack-card-link:hover .stack-image img { transform: scale(1.045); }
.stack-overlay {
  position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(19,31,38,.23), transparent 32%, transparent 55%, rgba(19,31,38,.58));
}
.stack-top {
  position: absolute; left: 28px; right: 28px; top: 24px; display: grid; grid-template-columns: 1fr 1fr 1fr;
  color: #fff; font-size: 8px; letter-spacing: .15em; text-transform: uppercase; font-weight: 600;
}
.stack-top span:nth-child(2) { text-align: center; }
.stack-top span:nth-child(3) { text-align: right; }
.stack-bottom {
  position: absolute; left: 28px; right: 28px; bottom: 28px; color: #fff;
  display: grid; grid-template-columns: 1.5fr .75fr auto; gap: 45px; align-items: end;
}
.stack-bottom h3 { margin: 0; font-family: var(--serif); font-size: clamp(62px, 7vw, 116px); font-weight: 400; line-height: .82; letter-spacing: -.04em; }
.stack-bottom p { margin: 0 0 6px; font-size: 11px; line-height: 1.65; max-width: 430px; }
.stack-arrow { font-size: 32px; line-height: 1; }
.placeholder-chip {
  position: absolute; right: 15px; top: 15px; background: rgba(243,239,230,.85); color: var(--ink-2);
  font-size: 7px; text-transform: uppercase; letter-spacing: .13em; padding: 6px 8px; z-index: 3;
}

/* APPROACH */
.approach {
  background:
    radial-gradient(circle at -12% 42%,
      transparent 0 24%,
      rgba(255,255,255,.055) 24.1% 24.22%,
      transparent 24.32% 32%,
      rgba(255,255,255,.028) 32.1% 32.22%,
      transparent 32.32% 40%,
      rgba(255,255,255,.018) 40.1% 40.22%,
      transparent 40.32%),
    var(--ink-2);
  color: #fff; position: relative; overflow: clip;
}
.approach::before { content: none; }
.approach-shell { display: grid; grid-template-columns: .9fr 1.1fr; gap: 9vw; }
.approach-sticky {
  position: sticky; top: 0; height: 100svh; padding: 122px 0 58px 2vw;
  display: flex; flex-direction: column; justify-content: space-between;
}
.process-display { max-width: 580px; }
.process-display > span { display: block; color: #9cb8ae; font-family: var(--serif); font-size: 20px; margin-bottom: 18px; }
.process-display h2 {
  margin: 0; font-family: var(--serif); font-size: clamp(82px, 9vw, 150px); line-height: .8; font-weight: 400; letter-spacing: -.05em;
  transition: opacity .2s, transform .35s var(--ease);
}
.process-display p { max-width: 410px; margin: 28px 0 0; color: rgba(255,255,255,.62); font-size: 13px; }
.process-progress { width: 170px; height: 1px; background: rgba(255,255,255,.18); position: relative; }
.process-progress i { position: absolute; inset: 0 auto 0 0; width: 25%; background: #b9cec5; transform-origin: left; transition: width .45s var(--ease); }
.process-steps { padding: 29vh 0 20vh; }
.process-step { min-height: 66vh; border-top: 1px solid rgba(255,255,255,.14); padding: 35px 0 80px; display: flex; flex-direction: column; justify-content: flex-start; opacity: .32; transition: opacity .45s var(--ease); }
.process-step.is-active { opacity: 1; }
.process-step > span { font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: #9cb8ae; font-weight: 600; }
.process-step h3 { margin: 20px 0 22px; font-family: var(--serif); font-size: clamp(45px, 5vw, 72px); line-height: 1; font-weight: 400; }
.process-step p { margin: 0; max-width: 500px; color: rgba(255,255,255,.58); font-size: 13px; }

/* services ribbon */
.services-ribbon { height: 150px; background: var(--shell); overflow: hidden; display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.ribbon-track {
  display: flex; gap: 30px; align-items: center; white-space: nowrap; will-change: transform;
  font-family: var(--serif); font-size: clamp(39px, 4.5vw, 68px); color: var(--ink-2); letter-spacing: -.025em;
}
.ribbon-track i { color: var(--sage); font-style: normal; font-size: 18px; }

/* DESIGNER */
.designer { background: var(--shell); padding: clamp(120px, 13vw, 210px) 0; }
.designer-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 10vw; align-items: center; }
.designer-copy h2 { margin-bottom: 42px; }
.designer-lede { font-family: var(--serif); color: #405355; font-size: clamp(25px, 2.55vw, 38px); line-height: 1.22; max-width: 690px; }
.designer-body { max-width: 560px; margin: 27px 0 35px; color: #687472; font-size: 12px; }
.designer-services { display: flex; gap: 8px; flex-wrap: wrap; }
.designer-services span { border: 1px solid var(--line); border-radius: 999px; padding: 7px 11px; font-size: 8px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink); }

.portrait-stage { perspective: 900px; transform-style: preserve-3d; }
.portrait-graphic {
  position: relative; min-height: 720px; overflow: hidden; transform: rotate(1.25deg);
  background:
    radial-gradient(circle at 72% 19%, rgba(243,239,230,.9) 0 13%, transparent 13.4%),
    linear-gradient(155deg, #a9bfba 0%, #dce7e3 53%, #d8cbb9 100%);
  box-shadow: 0 35px 90px rgba(36,57,79,.12);
  transition: transform .2s ease-out;
}
.portrait-graphic::before, .portrait-graphic::after {
  content: ""; position: absolute; width: 125%; height: 36%; left: -12%; bottom: 15%;
  border-radius: 50%; border-top: 2px solid rgba(49,75,103,.55); transform: rotate(-8deg);
}
.portrait-graphic::after { bottom: 7%; transform: rotate(5deg); border-color: rgba(255,255,255,.5); }
.portrait-horizon { position: absolute; left: 10%; right: 10%; top: 56%; height: 1px; background: rgba(49,75,103,.24); }
.portrait-label {
  position: absolute; left: 50%; top: 48%; transform: translate(-50%,-50%); color: rgba(36,57,79,.55);
  font-family: var(--serif); font-size: 24px; line-height: 1.05; text-align: center;
}
.portrait-graphic img { position: absolute; width: 84%; right: -9%; bottom: 4%; opacity: .78; transform: rotate(-4deg); }
.portrait-caption { display: block; margin-top: 14px; font-size: 8px; text-transform: uppercase; letter-spacing: .14em; color: #6a7774; }

/* NOTES */
.notes { background: var(--mist); padding: clamp(115px, 13vw, 205px) 0; }
.notes-head { display: flex; align-items: end; justify-content: space-between; gap: 60px; margin-bottom: 70px; }
.notes-head h2 { margin: 0 0 0 auto; max-width: 840px; text-align: right; }
.notes-rail { display: grid; grid-template-columns: 1.18fr .91fr .91fr; gap: 24px; align-items: start; }
.note-card { position: relative; padding-top: 0; }
.note-card:nth-child(2) { margin-top: 92px; }
.note-card:nth-child(3) { margin-top: 175px; }
.note-art { aspect-ratio: 1 / 1; overflow: hidden; background: #c5d5d1; }
.note-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), filter .7s; }
.note-card:hover .note-art img { transform: scale(1.035); filter: saturate(.85); }
.note-meta { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(36,57,79,.22); margin-top: 14px; padding-top: 10px; font-size: 8px; text-transform: uppercase; letter-spacing: .13em; color: var(--ink); }
.note-card h3 { margin: 17px 0 8px; font-family: var(--serif); color: var(--ink-2); font-size: clamp(32px, 3vw, 47px); font-weight: 400; line-height: .95; }
.note-card p { margin: 0; color: #60716e; font-size: 11px; max-width: 95%; }
.note-card b { position: absolute; right: 0; bottom: 0; font-size: 19px; font-weight: 300; color: var(--ink); }

/* INQUIRE */
.inquire { position: relative; overflow: hidden; background: var(--ink-2); color: #fff; padding: clamp(125px, 13vw, 205px) 0 70px; min-height: 100svh; }
.inquire::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 112% -12%,
      transparent 0 28%,
      rgba(255,255,255,.045) 28.1% 28.22%,
      transparent 28.32% 36%,
      rgba(255,255,255,.022) 36.1% 36.22%,
      transparent 36.32% 44%,
      rgba(255,255,255,.014) 44.1% 44.22%,
      transparent 44.32%);
}
.inquire-shell { display: grid; grid-template-columns: .84fr 1.16fr; gap: 11vw; position: relative; z-index: 2; }
.inquire-copy h2 { color: #fff; margin-top: 28px; }
.inquire-copy h2 em { color: #a8c1b7; font-weight: 400; }
.inquire-copy > p:not(.section-tag) { max-width: 430px; color: rgba(255,255,255,.55); font-size: 12px; margin: 34px 0; }
.inquire-email { display: inline-block; color: #b8cec5; font-family: var(--serif); font-size: 24px; border-bottom: 1px solid rgba(184,206,197,.38); }
.inquire-form-wrap { padding-top: 20px; }
.inquire-form { border-top: 1px solid rgba(255,255,255,.24); }
.field-line {
  min-height: 86px; display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.field-line > span { font-size: 8px; letter-spacing: .13em; color: #a8c1b7; }
.field-line input, .field-line select, .field-line textarea {
  width: 100%; border: 0; outline: 0; color: #fff; background: transparent; padding: 17px 0;
  font-family: var(--serif); font-size: clamp(25px, 2.5vw, 38px); font-weight: 400; line-height: 1.1;
  appearance: none;
}
.field-line select { cursor: pointer; }
.field-line select option { color: var(--ink-2); background: var(--shell); font-size: 18px; }
.field-line textarea { resize: vertical; min-height: 115px; }
.field-line input::placeholder, .field-line textarea::placeholder { color: rgba(255,255,255,.42); opacity: 1; }
.field-message { align-items: start; padding-top: 19px; }
.form-bottom { display: flex; justify-content: space-between; gap: 30px; align-items: end; padding-top: 28px; }
.privacy-check { display: flex; gap: 9px; align-items: flex-start; color: rgba(255,255,255,.48); font-size: 9px; }
.privacy-check input { margin-top: 3px; }
.privacy-check a { text-decoration: underline; }
.send-disc { cursor: pointer; background: #a8c1b7; color: var(--ink-2); border: 0; flex: 0 0 auto; }
.send-disc:hover { background: var(--shell); }
.form-status { margin-bottom: 18px; padding: 13px 15px; font-size: 10px; letter-spacing: .05em; }
.form-status.success { border: 1px solid rgba(168,193,183,.45); color: #c6dbd3; }
.form-status.error { border: 1px solid rgba(222,173,158,.42); color: #e7c2b6; }
.honeypot { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.closing-word {
  position: absolute; left: -2vw; right: -2vw; bottom: -8vw; z-index: 0; text-align: center;
  font-family: var(--serif); font-size: 34vw; line-height: .7; letter-spacing: -.13em; color: rgba(255,255,255,.025); pointer-events: none;
}

/* FOOTER */
.site-footer { background: var(--ink-2); color: rgba(255,255,255,.6); padding: 0 4vw 28px; }
.footer-rule { border-top: 1px solid rgba(255,255,255,.12); }
.footer-inner { min-height: 115px; display: grid; grid-template-columns: 1fr auto auto auto; gap: 35px; align-items: center; }
.footer-logo { width: 100px; }
.footer-logo img { filter: brightness(0) invert(1); opacity: .7; }
.footer-inner p, .footer-inner > a:not(.footer-logo) { margin: 0; font-size: 8px; letter-spacing: .13em; text-transform: uppercase; }

/* PROJECT + NOTE DETAIL */
.detail-page { background: var(--paper); }
.detail-page .site-footer { background: var(--paper); color: #697574; padding-top: 80px; }
.detail-page .footer-rule { border-color: var(--line); }
.detail-page .footer-logo img { filter: none; opacity: 1; }

.detail-head {
  padding-top: clamp(165px, 16vw, 245px); padding-bottom: 58px;
  display: grid; grid-template-columns: .35fr 1.4fr .65fr; gap: 5vw; align-items: end;
}
.back-link { align-self: start; font-size: 9px; text-transform: uppercase; letter-spacing: .14em; color: var(--ink); }
.detail-title > p { margin: 0 0 18px; color: var(--sage); font-size: 8px; letter-spacing: .15em; text-transform: uppercase; font-weight: 600; }
.detail-title h1 { margin: 0; font-family: var(--serif); color: var(--ink-2); font-size: clamp(70px, 9vw, 145px); line-height: .78; letter-spacing: -.05em; font-weight: 400; }
.detail-dek { margin: 0; color: #60716e; font-family: var(--serif); font-size: clamp(21px, 2vw, 30px); line-height: 1.25; }
.detail-cover { position: relative; margin: 0 auto; overflow: hidden; background: var(--mist); }
.detail-cover img { width: 100%; height: min(82svh, 950px); object-fit: cover; }
.detail-cover figcaption {
  position: absolute; right: 12px; bottom: 12px; background: rgba(243,239,230,.84); color: var(--ink-2);
  font-size: 7px; letter-spacing: .12em; text-transform: uppercase; padding: 6px 8px;
}
.detail-story { padding: clamp(90px, 10vw, 150px) 0; display: grid; grid-template-columns: .38fr 1fr; gap: 8vw; }
.story-marker { font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.story-lede { margin: 0; font-family: var(--serif); color: #405355; font-size: clamp(31px, 3.8vw, 58px); line-height: 1.17; }
.detail-gallery { display: grid; grid-template-columns: 1.18fr .82fr; gap: 2vw; align-items: start; }
.detail-crop { overflow: hidden; background: var(--mist); }
.detail-crop img { width: 100%; height: 100%; object-fit: cover; }
.crop-a { height: 720px; }
.crop-b { height: 520px; margin-top: 140px; }
.crop-b img { transform: scale(1.22); }
.detail-notes { padding: 90px 0 140px; display: grid; grid-template-columns: repeat(3, 1fr); }
.detail-notes > div { border-top: 1px solid var(--line); padding: 18px 28px 0 0; min-height: 140px; }
.detail-notes > div + div { border-left: 1px solid var(--line); padding-left: 28px; }
.detail-notes span { font-size: 8px; color: var(--sage); letter-spacing: .12em; }
.detail-notes p { margin: 35px 0 0; font-family: var(--serif); font-size: 22px; line-height: 1.15; color: var(--ink-2); }
.detail-next { border-top: 1px solid var(--line); padding: 28px 0 90px; display: flex; justify-content: space-between; }
.detail-next a { font-family: var(--serif); font-size: 28px; color: var(--ink-2); }
.detail-next span { font-family: var(--sans); font-size: 16px; margin-left: 6px; }

.note-cover img { object-fit: cover; }
.note-body { padding: clamp(85px, 9vw, 140px) 0; display: grid; grid-template-columns: .4fr 1fr .3fr; gap: 6vw; }
.note-body aside { font-size: 8px; text-transform: uppercase; letter-spacing: .14em; color: var(--sage); }
.note-body > div { grid-column: 2; }
.note-body p { margin: 0 0 1.15em; font-family: var(--serif); color: #405355; font-size: clamp(26px, 2.6vw, 39px); line-height: 1.45; }
.note-body p:first-child::first-letter { float: left; font-size: 95px; line-height: .7; padding: 15px 12px 6px 0; color: var(--sage); }

.minimal-error {
  min-height: 80svh; padding: 180px 5vw 80px; display: flex; flex-direction: column; justify-content: center;
}
.minimal-error > p { font-size: 9px; letter-spacing: .15em; color: var(--sage); }
.minimal-error h1 { margin: 10px 0 30px; font-family: var(--serif); font-size: clamp(70px, 10vw, 145px); line-height: .8; color: var(--ink-2); font-weight: 400; }
.minimal-error h1 em { color: var(--sage); font-weight: 400; }
.minimal-error a { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink); }

/* privacy fallback */
.legal-page { width: min(920px, calc(100% - 9vw)); margin: auto; padding: 170px 0 100px; min-height: 80vh; }
.legal-page .eyebrow { font-size: 9px; letter-spacing: .15em; text-transform: uppercase; color: var(--sage); }
.legal-page .page-title { margin: 15px 0 45px; font-family: var(--serif); color: var(--ink-2); font-size: clamp(65px, 8vw, 110px); line-height: .85; font-weight: 400; }
.legal-page .page-title em { color: var(--sage); font-weight: 400; }
.legal-copy { color: #667472; max-width: 720px; }
.legal-copy a { text-decoration: underline; color: var(--ink); }

/* scroll-linked refinement where supported */
@supports (animation-timeline: view()) {
  .manifesto-copy {
    animation: manifesto-drift linear both;
    animation-timeline: view();
    animation-range: entry 0% exit 100%;
  }
  .line-right .manifesto-copy { animation-name: manifesto-drift-right; }
  @keyframes manifesto-drift {
    from { transform: translateX(5vw); }
    to { transform: translateX(-5vw); }
  }
  @keyframes manifesto-drift-right {
    from { transform: translateX(-4vw); }
    to { transform: translateX(4vw); }
  }
}

/* responsive */
@media (max-width: 1020px) {
  .desktop-nav { display: none; }
  .site-header { grid-template-columns: 1fr auto; }
  .header-inquire { display: none; }
  .menu-toggle { display: block; }
  .menu-open .menu-toggle > span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-open .menu-toggle > span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

  .manifesto-copy { padding-left: 5vw; }
  .manifesto-detail { grid-template-columns: .55fr 1.2fr; }
  .manifesto-signature { grid-column: 2; justify-self: start; max-width: 260px; }

  .approach-shell { grid-template-columns: .85fr 1.15fr; gap: 6vw; }
  .designer-grid { gap: 6vw; }
  .portrait-graphic { min-height: 620px; }
  .notes-rail { grid-template-columns: 1.1fr .9fr; }
  .note-card:nth-child(3) { grid-column: 2; margin-top: 25px; }
  .inquire-shell { gap: 6vw; }
}

@media (max-width: 760px) {
  :root { --header-h: 62px; }
  body { font-size: 14px; }
  .shell { width: calc(100% - 34px); }
  .shell-wide { width: calc(100% - 18px); }
  .site-header { left: 9px; right: 9px; top: 8px; padding: 5px 12px; min-height: 60px; }
  .brand { width: 93px; }

  .hero-inner { width: calc(100% - 34px); padding: 105px 0 24px; }
  .hero-kicker { flex-direction: column; gap: 5px; }
  .hero-place { color: rgba(36,57,79,.62); }
  .hero-title { font-size: clamp(63px, 19vw, 94px); line-height: .82; padding: 8vh 0 5vh; }
  .hero-bottom { grid-template-columns: 1fr auto; gap: 25px; }
  .hero-bottom > p { font-size: 11px; }
  .round-link { width: 88px; height: 88px; padding: 15px; }
  .hero-monogram { font-size: 57vw; right: -1vw; bottom: -1.5vw; }
  .hero-edge-note { display: none; }

  .manifesto { padding: 115px 0; }
  .manifesto-index { position: static; display: block; margin-bottom: 28px; }
  .manifesto-copy { padding: 0; max-width: 100%; font-size: clamp(52px, 14vw, 78px); line-height: .97; }
  .manifesto-line.line-right .manifesto-copy { padding: 0; text-align: left; margin-top: 5px; }
  .manifesto-detail { display: block; margin-top: 65px; }
  .manifesto-detail > p { margin: 28px 0; font-size: 27px; }
  .manifesto-signature { width: 235px; }

  .work-intro { padding-bottom: 38px; }
  .work-heading { display: block; }
  .work-heading h2, .designer-copy h2, .notes-head h2, .inquire-copy h2 { font-size: clamp(56px, 15vw, 84px); }
  .work-note { margin-top: 25px; }

  .stack-card, .stack-card:nth-child(2), .stack-card:nth-child(3) {
    top: 78px; width: calc(100% - 18px); height: calc(100svh - 94px); margin-bottom: 11vh;
  }
  .stack-top { left: 17px; right: 17px; top: 16px; grid-template-columns: auto 1fr; gap: 16px; }
  .stack-top span:nth-child(2) { text-align: right; }
  .stack-top span:nth-child(3) { display: none; }
  .stack-bottom { left: 17px; right: 17px; bottom: 18px; display: block; }
  .stack-bottom h3 { font-size: clamp(56px, 16vw, 82px); margin-bottom: 18px; }
  .stack-bottom p { max-width: 82%; font-size: 10px; }
  .stack-arrow { position: absolute; right: 0; bottom: 0; }

  .approach-shell { display: block; width: calc(100% - 34px); }
  .approach-sticky {
    position: sticky; top: 0; height: 57svh; min-height: 420px; padding: 105px 0 30px;
    background: linear-gradient(var(--ink-2) 82%, rgba(36,57,79,0));
    z-index: 2;
  }
  .process-display h2 { font-size: 88px; }
  .process-display p { font-size: 11px; max-width: 310px; margin-top: 18px; }
  .process-steps { padding: 0 0 85px; }
  .process-step { min-height: 52svh; padding-top: 27px; }
  .process-step h3 { font-size: 48px; }

  .services-ribbon { height: 110px; }
  .ribbon-track { font-size: 42px; }

  .designer { padding: 105px 0; }
  .designer-grid { display: flex; flex-direction: column; gap: 70px; }
  .designer-lede { font-size: 27px; }
  .portrait-stage { width: 92%; align-self: flex-end; }
  .portrait-graphic { min-height: 540px; }

  .notes { padding: 105px 0; }
  .notes-head { display: block; margin-bottom: 52px; }
  .notes-head h2 { text-align: left; margin-top: 24px; }
  .notes-rail { display: flex; overflow-x: auto; gap: 14px; width: 100%; padding-left: 17px; padding-right: 17px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .notes-rail::-webkit-scrollbar { display: none; }
  .note-card, .note-card:nth-child(2), .note-card:nth-child(3) { flex: 0 0 82vw; margin: 0; scroll-snap-align: center; }
  .note-card h3 { font-size: 39px; }
  .note-card b { display: none; }

  .inquire { padding: 105px 0 55px; }
  .inquire-shell { display: block; }
  .inquire-copy { margin-bottom: 70px; }
  .field-line { grid-template-columns: 34px 1fr; min-height: 73px; }
  .field-line input, .field-line select, .field-line textarea { font-size: 26px; }
  .form-bottom { align-items: center; }
  .send-disc { width: 94px; height: 94px; padding: 17px; }
  .inquire-email { font-size: 21px; }

  .footer-inner { grid-template-columns: 1fr 1fr; gap: 12px 24px; padding: 28px 0; }
  .footer-logo { grid-row: span 2; }
  .footer-inner p:nth-of-type(1) { display: none; }

  .detail-head { padding-top: 130px; display: block; }
  .back-link { display: inline-block; margin-bottom: 54px; }
  .detail-title h1 { font-size: clamp(68px, 20vw, 105px); }
  .detail-dek { margin-top: 28px; font-size: 24px; }
  .detail-cover img { height: 72svh; }
  .detail-story { grid-template-columns: 1fr; gap: 30px; padding: 80px 0; }
  .story-lede { font-size: 34px; }
  .detail-gallery { grid-template-columns: 1fr; gap: 12px; }
  .crop-a { height: 520px; }
  .crop-b { height: 340px; margin-top: 0; }
  .detail-notes { grid-template-columns: 1fr; padding: 70px 0 90px; }
  .detail-notes > div, .detail-notes > div + div { border-left: 0; padding: 18px 0 28px; min-height: 0; border-top: 1px solid var(--line); }
  .detail-notes p { margin-top: 18px; }
  .detail-next { flex-direction: column; gap: 20px; padding-bottom: 60px; }
  .note-body { grid-template-columns: 1fr; padding: 70px 0; }
  .note-body > div { grid-column: 1; }
  .note-body p { font-size: 29px; }
}

@media (hover: none), (pointer: coarse) {
  .cursor-orb { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .caustic-canvas { display: none; }
}

.hero-title .word { display: inline-block; overflow: visible; vertical-align: baseline; padding: 0 0 .16em; margin: 0 0 -.16em; }
.hero-title .word > span { display: inline-block; transform: translateY(112%); opacity: 0; transition: transform .9s var(--ease), opacity .7s var(--ease); }
.hero-title .word > span.word-in { transform: translateY(0); opacity: 1; }


/* V5 viewport-fit corrections */
.manifesto-line:not(.line-right) .manifesto-copy {
  margin-left: clamp(120px, 12vw, 210px);
}
.manifesto-break { display: none; }

/* The earlier horizontal drift could move the already-large type beyond the viewport.
   Keep the expensive editorial motion elsewhere, but keep these two statements stable. */
@supports (animation-timeline: view()) {
  .manifesto-copy,
  .line-right .manifesto-copy {
    animation: none !important;
    transform: none !important;
  }
}

@media (max-width: 1180px) {
  .hero-title {
    font-size: clamp(62px, 8.4vw, 105px);
    line-height: 1.02;
  }
  .manifesto-copy {
    font-size: clamp(49px, 6.3vw, 75px);
    max-width: 84vw;
  }
  .manifesto-line:not(.line-right) .manifesto-copy {
    margin-left: 11vw;
  }
}

@media (max-width: 760px) {
  .hero-title {
    font-size: clamp(54px, 15.2vw, 78px);
    line-height: 1.00;
  }
  .hero-title br {
    display: block;
  }
  .manifesto-line:not(.line-right) .manifesto-copy,
  .manifesto-line.line-right .manifesto-copy {
    margin-left: 0;
    max-width: 100%;
    text-align: left;
  }
  .manifesto-break { display: none; }
}


/* V6 performance safeguards */
.designer,
.notes,
.inquire,
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: 900px;
}

/* Avoid promoting huge sticky surfaces unnecessarily. */
.stack-card {
  will-change: auto;
  contain: paint;
}
.process-display h2 {
  will-change: auto;
}

/* Slightly cheaper blur on the floating header for integrated GPUs. */
.site-header.is-scrolled {
  backdrop-filter: blur(12px) saturate(115%);
  -webkit-backdrop-filter: blur(12px) saturate(115%);
}

@media (max-width: 1020px) {
  .site-header.is-scrolled {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}


/* V7 HERO TYPOGRAPHY — hard fix for clipped italic descenders */
.hero-title-safe {
  display: block;
  overflow: visible !important;
  padding: .06em 0 .22em;
  margin: auto 0;
  font-size: clamp(62px, 7.35vw, 122px);
  line-height: 1;
}

.hero-title-safe .hero-line {
  display: block;
  overflow: visible !important;
  position: relative;
  padding: 0 0 .18em;
  margin: 0 0 -.09em;
  opacity: 0;
  transform: translateY(30px);
  animation: heroLineIn .9s var(--ease) forwards;
}

.hero-title-safe .hero-line:nth-child(1) { animation-delay: .12s; }
.hero-title-safe .hero-line:nth-child(2) { animation-delay: .22s; }
.hero-title-safe .hero-line:nth-child(3) { animation-delay: .32s; }

.hero-title-safe em {
  display: inline;
  overflow: visible !important;
  padding-bottom: .12em;
}

@keyframes heroLineIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Old split-word wrappers are no longer used by the hero. */
.hero-title .word,
.hero-title .word > span {
  overflow: visible !important;
}

@media (max-width: 1180px) {
  .hero-title-safe {
    font-size: clamp(58px, 7.8vw, 98px);
    line-height: 1.01;
  }
}

@media (max-width: 760px) {
  .hero-title-safe {
    font-size: clamp(51px, 14.4vw, 74px);
    line-height: 1.01;
    padding-bottom: .3em;
  }

  .hero-title-safe .hero-line {
    padding-bottom: .22em;
    margin-bottom: -.10em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-title-safe .hero-line {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
