/* =========================================================
   PEAKD AGENCY · style.css  (v2 — calm editorial)
   Warm paper + ink, one deep-teal accent, serif italics.
   Mobile-first.
   ========================================================= */

:root {
  --paper: #f3f1ec;
  --paper-2: #eae6df;
  --paper-3: #e1dcd3;
  --ink: #141414;
  --ink-2: #5d5a54;
  --line: rgba(20, 20, 20, .12);
  --line-2: rgba(20, 20, 20, .22);

  --night: #121211;
  --night-2: #1c1c1a;
  --night-ink: #ece8e1;
  --night-mute: #9b968e;
  --night-line: rgba(236, 232, 225, .14);

  --accent: #0f6f6e;
  --accent-ink: #e8f3f1;
  --danger: #b4372f;

  --sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gut: clamp(16px, 4vw, 56px);
  --hdr: 68px;
  --r: clamp(14px, 1.6vw, 22px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--hdr); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.55; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
body.is-loading { overflow: hidden; }

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 2000; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 8px; transition: top .2s; }
.skip:focus { top: 12px; }

.label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font-family: var(--sans); font-weight: 500; font-size: 15px; letter-spacing: -.01em; white-space: nowrap;
  transition: background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease), transform .2s var(--ease);
  touch-action: manipulation;
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn b { font-weight: 400; transition: transform .35s var(--ease); }
.btn:active { transform: scale(.97); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--line { box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }
@media (hover: hover) {
  .btn--dark:hover { background: var(--accent); }
  .btn--line:hover { background: var(--ink); color: var(--paper); box-shadow: none; }
  .btn--light:hover { background: var(--accent); color: var(--accent-ink); }
  .btn:hover b { transform: translateX(4px); }
}

.link {
  display: inline-flex; align-items: center; min-height: 44px; font-weight: 500;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 10px) / 100% 1px no-repeat;
  transition: background-size .45s var(--ease);
}
@media (hover: hover) { .link:hover { background-size: 0 1px; background-position: 100% calc(100% - 10px); } }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 1000; background: var(--paper);
  display: grid; place-items: center;
}
.loader__inner { display: flex; align-items: center; gap: 16px; }
.loader__mark { width: 48px; height: 50px; color: var(--ink); }
.loader__word { overflow: hidden; font-weight: 600; font-size: 40px; letter-spacing: -.05em; line-height: 1.1; }
.loader__word span { display: inline-block; }
.loader__count { position: absolute; right: var(--gut); bottom: 22px; font-family: var(--serif); font-style: italic; font-size: clamp(56px, 8vw, 110px); line-height: .9; color: var(--ink); }
.loader__bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Cursor ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: grid; place-items: center; position: fixed; left: 0; top: 0; z-index: 950; pointer-events: none;
    width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
    background: var(--ink); opacity: 0;
    transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), background .3s, opacity .3s;
  }
  .cursor.is-live { opacity: 1; }
  .cursor.is-hover { width: 36px; height: 36px; margin: -18px 0 0 -18px; background: rgba(20, 20, 20, .12); }
  .cursor.on-dark { background: var(--night-ink); }
  .cursor.on-dark.is-hover { background: rgba(236, 232, 225, .18); }
  .cursor__label { font-size: 13px; font-weight: 500; color: var(--paper); opacity: 0; transition: opacity .2s; }
  .cursor.is-label { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--ink); }
  .cursor.is-label .cursor__label { opacity: 1; }
  .cursor.is-hidden { opacity: 0; }
}

/* ---------- Header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 500; height: var(--hdr); padding: 0 var(--gut);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--ink);
  transition: transform .6s var(--ease), background .4s, color .4s, box-shadow .4s;
}
.hdr.is-scrolled { background: rgba(243, 241, 236, .82); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
.hdr.is-dark { color: var(--night-ink); }
.hdr.is-dark.is-scrolled { background: rgba(18, 18, 17, .78); box-shadow: 0 1px 0 var(--night-line); }
.hdr.is-dark .btn--dark { background: var(--night-ink); color: var(--night); }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr__logo { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.hdr__mark { width: 24px; height: 25px; color: currentColor; }
.hdr__word { font-weight: 600; font-size: 20px; letter-spacing: -.05em; }
.hdr__nav { display: none; }
.hdr__right { display: flex; align-items: center; gap: 14px; }
.hdr__clock, .hdr__right .btn { display: none; }
.hdr__clock { font-size: 13px; color: inherit; opacity: .65; }
.hdr__clock b { font-weight: 500; }
.hdr__burger { position: relative; width: 46px; height: 46px; border-radius: 50%; box-shadow: inset 0 0 0 1px currentColor; opacity: .9; }
.hdr__burger i { position: absolute; left: 15px; right: 15px; height: 1.5px; background: currentColor; transition: transform .45s var(--ease); }
.hdr__burger i:first-child { top: 19px; } .hdr__burger i:last-child { top: 26px; }
.menu-open .hdr { color: var(--ink); background: transparent; box-shadow: none; }
.menu-open .hdr__burger i:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .hdr__burger i:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 480; background: var(--paper);
  padding: calc(var(--hdr) + 28px) var(--gut) calc(24px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .8s var(--ease), visibility 0s .8s;
}
.menu-open .menu { clip-path: inset(0); visibility: visible; transition: clip-path .8s var(--ease), visibility 0s; }
.menu__nav { display: grid; }
.menu__nav a {
  padding: 8px 0; font-weight: 500; font-size: clamp(38px, 11vw, 72px); line-height: 1.05; letter-spacing: -.05em;
  transform: translateY(24px); opacity: 0; transition: transform .7s var(--ease), opacity .7s var(--ease);
}
.menu__nav a em { font-size: 1.08em; }
.menu-open .menu__nav a { transform: none; opacity: 1; }
.menu-open .menu__nav a:nth-child(2) { transition-delay: .04s; } .menu-open .menu__nav a:nth-child(3) { transition-delay: .08s; }
.menu-open .menu__nav a:nth-child(4) { transition-delay: .12s; } .menu-open .menu__nav a:nth-child(5) { transition-delay: .16s; }
.menu-open .menu__nav a:nth-child(6) { transition-delay: .2s; }
.menu__foot { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-2); font-size: 15px; }
.menu__foot a { min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- Section scaffolding ---------- */
section { position: relative; }
.sec-head { padding: 0 var(--gut); margin-bottom: clamp(40px, 6vw, 88px); display: grid; gap: 18px; }
.sec-title { font-weight: 500; font-size: clamp(40px, 6.4vw, 104px); line-height: .98; letter-spacing: -.05em; max-width: 14ch; }
.sec-title em { font-size: 1.08em; letter-spacing: -.02em; }
.sec-title--xl { font-size: clamp(48px, 9vw, 156px); max-width: 12ch; }
.sec-note { color: var(--ink-2); max-width: 36ch; }

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto auto; gap: 26px;
  padding: calc(var(--hdr) + 14px) var(--gut) 30px; overflow: hidden; isolation: isolate;
}
.hero__gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__stage { grid-row: 2; min-height: 34vh; min-height: 34svh; }
.hills { position: absolute; z-index: -2; right: 0; top: 0; width: 100%; height: 50%; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent); mask-image: linear-gradient(to bottom, #000 62%, transparent); }
.hills svg { width: 100%; height: 100%; overflow: visible; }
.hill { transform-box: fill-box; will-change: transform; }
.hill--a { animation: drift 16s ease-in-out infinite alternate; }
.hill--b { animation: drift 12s ease-in-out -4s infinite alternate; }
.hill--c { animation: drift 10s ease-in-out -2s infinite alternate-reverse; }
@keyframes drift { from { translate: 0 0; } to { translate: -10px 6px; } }
.hero__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 18px; font-size: 14px; color: var(--ink-2); }
.hero__meta .status { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); padding: 7px 14px 7px 12px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line-2); background: rgba(243, 241, 236, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero__meta .status i { width: 7px; height: 7px; border-radius: 50%; background: #2f9e6d; box-shadow: 0 0 0 4px rgba(47, 158, 109, .15); }

.hero__title {
  grid-row: 3; align-self: end; display: grid;
  font-weight: 500; font-size: clamp(44px, 12.2vw, 172px); line-height: .92; letter-spacing: -.055em;
}
.hero__line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__line .rl { display: inline-block; }
.hero__line--serif { color: #0d5c50; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.16em; letter-spacing: -.025em; line-height: .9; padding: 0 .1em .12em; margin: -.02em -.1em 0; }
.kinetic { display: inline-block; white-space: nowrap; }
.kinetic .ch { display: inline-block; will-change: transform; }

.hero__bottom { grid-row: 4; display: grid; gap: 24px; }
.hero__copy { display: contents; }
.hero__lede { order: 1; }
.hero__ctas { order: 2; }
.hero__proof { order: 3; margin-top: 12px; padding-top: 22px; border-top: 1px solid var(--line); }
.hero__lede { max-width: 46ch; color: var(--ink-2); font-size: 16.5px; line-height: 1.55; }
.hero__proof { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.hero__proof b { color: var(--ink); font-weight: 500; }
.proof__stack { display: flex; flex: none; }
.proof__stack img, .proof__stack span { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--paper); margin-left: -10px; background: var(--ink); }
.proof__stack > :first-child { margin-left: 0; }
.proof__stack span { display: grid; place-items: center; color: var(--paper); font-size: 12px; font-weight: 500; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__ctas .btn { flex: 1 1 auto; }

/* ---------- PILLARS (service strip under hero) ---------- */
.pillars { padding: 0 var(--gut); }
.pillars__list { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.pillar { display: flex; align-items: flex-start; gap: 12px; padding: 22px 12px 24px 0; }
.pillar:nth-child(odd) { padding-right: 16px; }
.pillar:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.pillar svg { flex: none; width: 26px; height: 26px; margin-top: 1px; fill: none; stroke: #0d5c50; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .6s var(--ease); }
.pillar h3 { font-weight: 500; font-size: 15.5px; letter-spacing: -.02em; line-height: 1.25; }
.pillar p { margin-top: 4px; color: var(--ink-2); font-size: 13.5px; line-height: 1.4; }
@media (hover: hover) { .pillar:hover svg { transform: translateY(-3px) rotate(-6deg); } }

/* ---------- CLIENTS ---------- */
.clients { padding: clamp(40px, 6vw, 80px) 0; border-top: 1px solid var(--line); }
.clients__label { padding: 0 var(--gut); margin-bottom: 28px; }
.marquee { overflow: hidden; mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; align-items: center; gap: clamp(40px, 5vw, 80px); width: max-content; padding-right: clamp(40px, 5vw, 80px); }
.lg { flex: none; display: flex; align-items: center; gap: 12px; height: 64px; transition: opacity .4s, filter .4s; }
.lg img { height: 34px; width: auto; }
.lg--tall img { height: 58px; }
.lg--multiply img { mix-blend-mode: multiply; }
.lg--icon img { width: 40px; height: 40px; border-radius: 11px; object-fit: cover; }
.lg--bare img { border-radius: 0; object-fit: contain; }
.lg b { font-weight: 600; font-size: 19px; letter-spacing: -.03em; white-space: nowrap; }
.lg b span { font-weight: 400; }
.lg .serif-caps { font-family: var(--serif); font-weight: 400; letter-spacing: .22em; text-transform: uppercase; font-size: 18px; }
@media (hover: hover) {
  .lg { filter: grayscale(1); opacity: .62; }
  .lg:hover { filter: none; opacity: 1; }
}

/* ---------- INTRO ---------- */
.intro { padding: clamp(80px, 12vw, 180px) var(--gut) clamp(80px, 10vw, 160px); display: grid; gap: 26px; }
.intro__text { font-weight: 400; font-size: clamp(26px, 3.7vw, 58px); line-height: 1.14; letter-spacing: -.035em; max-width: 24ch; }
.intro__text em { font-size: 1.08em; }
.intro__text .w { opacity: .16; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 20px; margin-top: clamp(40px, 7vw, 100px); }
.stat { display: grid; gap: 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.stat b { font-family: var(--serif); font-weight: 400; font-size: clamp(72px, 9vw, 140px); line-height: .85; letter-spacing: -.02em; }
.stat span { color: var(--ink-2); font-size: 14px; }

/* ---------- WORK ---------- */
.work { padding: clamp(40px, 6vw, 80px) 0 clamp(80px, 10vw, 160px); }
.projects { display: grid; gap: clamp(56px, 7vw, 96px) 24px; padding: 0 var(--gut); }
.proj { display: grid; gap: 18px; align-content: start; }
.proj__media {
  position: relative; display: block; overflow: hidden; border-radius: var(--r);
  background: var(--paper-2); aspect-ratio: 4 / 3.5; isolation: isolate;
}
.proj__shot {
  position: absolute; left: 8%; right: 8%; top: 11%;
  border-radius: 8px; overflow: hidden; background: #fff;
  box-shadow: 0 40px 70px -40px rgba(20, 20, 20, .45), 0 0 0 1px rgba(20, 20, 20, .06);
  transition: transform .9s var(--ease);
}
.proj__shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease); }
.proj__phone {
  position: absolute; right: 5%; bottom: 6%; width: 27%; max-width: 190px;
  border-radius: 20px; padding: 4px; background: #111;
  box-shadow: 0 30px 50px -24px rgba(20, 20, 20, .55);
  transition: transform .9s var(--ease);
}
.proj__phone img { width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; border-radius: 16px; }
@media (hover: hover) {
  .proj__media:hover .proj__shot { transform: translateY(-10px); }
  .proj__media:hover .proj__shot img { transform: scale(1.03); }
  .proj__media:hover .proj__phone { transform: translateY(-18px) rotate(-2deg); }
}
.proj__info { display: grid; gap: 10px; }
.proj__row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.proj__row h3 { font-weight: 500; font-size: clamp(24px, 2.3vw, 34px); letter-spacing: -.04em; line-height: 1.1; }
.proj__tag { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.proj__info p { color: var(--ink-2); max-width: 58ch; }
.proj__info .link { justify-self: start; }

/* ---------- INDUSTRIES ---------- */
.inds { padding: 0 0 clamp(90px, 12vw, 180px); }
.inds__list { padding: 0 var(--gut); }
.ind {
  display: grid; grid-template-columns: 40px 1fr; gap: 4px 12px; align-items: baseline;
  padding: 22px 0; border-top: 1px solid var(--line);
}
.ind:last-child { border-bottom: 1px solid var(--line); }
.ind__n { font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); }
.ind h3 { font-weight: 500; font-size: clamp(26px, 3.2vw, 48px); letter-spacing: -.045em; line-height: 1.05; transition: transform .6s var(--ease); }
.ind h3 em { font-size: 1.1em; color: var(--accent); }
.ind p, .ind .link { grid-column: 2; color: var(--ink-2); }
.ind .link { justify-self: start; color: var(--ink); }

/* ---------- NIGHT (services + process) ---------- */
.night {
  background: var(--night); color: var(--night-ink);
  border-radius: clamp(20px, 3vw, 40px) clamp(20px, 3vw, 40px) 0 0;
  padding-top: clamp(80px, 10vw, 150px);
}
.night .label, .night .sec-note { color: var(--night-mute); }
.services { padding-bottom: clamp(90px, 12vw, 180px); }
.svc { padding: 0 var(--gut); }
.svc__row {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: baseline;
  padding: 24px 0 26px; border-top: 1px solid var(--night-line);
  transition: opacity .45s var(--ease);
}
.svc__row:last-child { border-bottom: 1px solid var(--night-line); }
.svc__n { font-family: var(--mono); font-size: 11.5px; color: var(--night-mute); }
.svc__row h3 { font-weight: 500; font-size: clamp(28px, 3.8vw, 58px); letter-spacing: -.045em; line-height: 1.02; transition: transform .6s var(--ease); }
.svc__row p { grid-column: 2; color: var(--night-mute); max-width: 48ch; }
.svc__float { display: none; }

.process { padding-bottom: clamp(100px, 12vw, 180px); }
.steps { position: relative; display: grid; gap: 36px; padding: 0 var(--gut) 0 calc(var(--gut) + 30px); }
.steps__line { position: absolute; left: calc(var(--gut) + 5px); top: 6px; bottom: 6px; width: 1px; background: var(--night-line); }
.steps__line i { position: absolute; inset: 0; background: var(--night-ink); transform-origin: 0 0; transform: scaleY(var(--p, 0)); }
.step { position: relative; display: grid; gap: 10px; }
.step__node { position: absolute; left: -30px; top: 5px; width: 11px; height: 11px; border-radius: 50%; background: var(--night); box-shadow: inset 0 0 0 1px var(--night-mute); transition: background .5s, box-shadow .5s; }
.step.is-on .step__node { background: var(--night-ink); box-shadow: 0 0 0 5px rgba(236, 232, 225, .1); }
.step__n { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--night-mute); }
.step h3 { font-weight: 500; font-size: clamp(26px, 2.4vw, 36px); letter-spacing: -.035em; line-height: 1.15; }
.step p:last-child { color: var(--night-mute); max-width: 36ch; }

/* ---------- FAQ ---------- */
.faq { padding: clamp(90px, 12vw, 170px) 0; }
.faq__list { padding: 0 var(--gut); }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  min-height: 72px; padding: 20px 0; font-weight: 500; font-size: clamp(19px, 1.9vw, 26px); letter-spacing: -.03em; line-height: 1.2;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); transition: background .35s, color .35s, box-shadow .35s; }
.qa summary i::before, .qa summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; margin: -.75px 0 0 -5.5px; background: currentColor; transition: transform .45s var(--ease); }
.qa summary i::after { transform: rotate(90deg); }
.qa[open] summary i { background: var(--ink); color: var(--paper); box-shadow: none; }
.qa[open] summary i::after { transform: rotate(0); }
.qa__a { overflow: hidden; }
.qa__a p { padding: 0 0 26px; color: var(--ink-2); max-width: 60ch; }

/* ---------- CONTACT ---------- */
.contact { padding: clamp(60px, 8vw, 120px) var(--gut) clamp(80px, 10vw, 140px); border-top: 1px solid var(--line); }
.contact__title {
  display: grid; margin: 20px 0 clamp(44px, 6vw, 88px);
  font-weight: 500; font-size: clamp(58px, 12vw, 216px); line-height: .9; letter-spacing: -.065em;
}
.contact__title .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.contact__title .ln > span { display: inline-block; }
.contact__title em { font-size: 1.1em; letter-spacing: -.03em; color: var(--accent); }
.contact__grid { display: grid; gap: 44px; }

.brief { display: grid; gap: 24px; padding: 24px 20px; border-radius: var(--r); background: var(--paper-2); }
.brief__intro { color: var(--ink-2); }
.field { display: grid; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); padding: 0; margin-bottom: 8px; }
.field .opt { text-transform: none; letter-spacing: 0; }
.field input[type="text"], .field textarea {
  width: 100%; min-height: 48px; padding: 10px 0; background: transparent; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0;
  color: var(--ink); font: 400 18px/1.4 var(--sans); resize: vertical; transition: border-color .3s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(93, 90, 84, .55); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field.has-err input { border-color: var(--danger); }
.field__err { color: var(--danger); font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; margin: 0; font-family: var(--sans); text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--ink); }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line-2); background: var(--paper); transition: background .25s, color .25s, box-shadow .25s; }
.chips input:checked + span { background: var(--ink); color: var(--paper); box-shadow: none; }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (hover: hover) { .chips label:hover span { box-shadow: inset 0 0 0 1px var(--ink); } }

.direct-list { display: grid; align-content: start; }
.direct { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: end; padding: 22px 0; border-bottom: 1px solid var(--line); }
.direct:first-child { border-top: 1px solid var(--line); }
.direct .label { grid-column: 1 / -1; }
.direct b { font-weight: 500; font-size: clamp(24px, 2.8vw, 40px); letter-spacing: -.04em; line-height: 1.05; }
.direct i { font-style: normal; font-size: 22px; transition: transform .45s var(--ease); }
@media (hover: hover) { a.direct:hover i { transform: translate(4px, -4px); } a.direct:hover b { color: var(--accent); } }

/* ---------- FOOTER ---------- */
.ftr { background: var(--night); color: var(--night-ink); padding: clamp(70px, 9vw, 130px) var(--gut) calc(22px + env(safe-area-inset-bottom)); overflow: hidden; }
.ftr .label { color: var(--night-mute); margin-bottom: 12px; }
.ftr__top { display: grid; gap: 56px; }
.ftr__pitch { font-size: clamp(28px, 3.4vw, 52px); line-height: 1.1; letter-spacing: -.04em; max-width: 18ch; }
.ftr__pitch a { border-bottom: 1px solid currentColor; }
.ftr__pitch em { font-size: 1.1em; }
.ftr__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 20px; }
.ftr__cols > div { display: grid; gap: 2px; align-content: start; }
.ftr__cols a, .ftr__totop { min-height: 36px; display: inline-flex; align-items: center; justify-self: start; color: var(--night-mute); transition: color .3s; }
.ftr__totop { color: var(--night-ink); margin-top: 12px; }
@media (hover: hover) { .ftr__cols a:hover, .ftr__totop:hover { color: var(--night-ink); } }
.ftr__word {
  display: flex; margin: clamp(56px, 8vw, 110px) 0 10px;
  font-weight: 600; font-size: 30vw; line-height: .8; letter-spacing: -.075em; user-select: none; white-space: nowrap;
}
.ftr__word span { display: inline-block; }
.ftr__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding-top: 18px; border-top: 1px solid var(--night-line); color: var(--night-mute); font-size: 13px; }

/* ---------- FAB ---------- */
.fab {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 400;
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--paper); box-shadow: 0 14px 30px -12px rgba(20, 20, 20, .5);
  transform: scale(0); transition: transform .5s var(--ease);
}
.fab svg { width: 26px; height: 26px; }
.fab.is-on { transform: scale(1); }

/* =========================================================
   ≥ 640px
   ========================================================= */
@media (min-width: 640px) {
  .hero__ctas .btn { flex: 0 0 auto; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .ftr__cols { grid-template-columns: repeat(4, 1fr); }
  .brief { padding: 32px 30px; }
}

/* =========================================================
   ≥ 1024px
   ========================================================= */
@media (min-width: 1024px) {
  :root { --hdr: 80px; }
  .hdr__nav { display: flex; gap: 2px; position: absolute; left: 50%; transform: translateX(-50%); }
  .hdr__nav a { font-size: 14.5px; padding: 10px 14px; border-radius: 99px; opacity: .7; transition: opacity .3s, background .3s; }
  .hdr__nav a:hover, .hdr__nav a.is-active { opacity: 1; }
  .hdr__nav a.is-active { background: rgba(20, 20, 20, .06); }
  .hdr.is-dark .hdr__nav a.is-active { background: rgba(236, 232, 225, .08); }
  .hdr__clock { display: inline; }
  .hdr__right .btn { display: inline-flex; }
  .hdr__burger, .menu { display: none; }

  .hero { gap: 30px; padding-bottom: 40px; }
  .hero__stage { min-height: 0; }
  .hills { top: auto; bottom: 0; width: 68%; height: 100%; -webkit-mask-image: none; mask-image: none; }
  .hero__title { font-size: clamp(60px, 7.2vw, 150px); max-width: 60%; }
  .hero__bottom { max-width: 600px; gap: 26px; }
  .hero__lede { font-size: 18.5px; }

  .pillars__list { grid-template-columns: repeat(4, 1fr); }
  .pillar { padding: 30px 28px 32px 0; gap: 16px; position: relative; }
  .pillar:nth-child(-n+2) { border-bottom: 0; }
  .pillar + .pillar { padding-left: 28px; }
  .pillar + .pillar::before { content: ""; position: absolute; left: 0; top: 30px; bottom: 32px; width: 1px; background: var(--line); }
  .pillar svg { width: 30px; height: 30px; }
  .pillar h3 { font-size: 17px; }
  .pillar p { font-size: 14px; }
  .intro { grid-template-columns: 1fr 3fr; column-gap: 40px; }
  .intro .label { padding-top: 14px; }
  .intro .stats { grid-column: 1 / -1; }

  .work .sec-head { grid-template-columns: 1fr auto; align-items: end; }
  .work .sec-head .label { grid-column: 1 / -1; }
  .projects { grid-template-columns: 1fr 1fr; }
  .proj--wide { grid-column: 1 / -1; }
  .proj--wide .proj__media { aspect-ratio: 16 / 8.2; }
  .proj--wide .proj__shot { left: 18%; right: 18%; top: 10%; }
  .proj--wide .proj__phone { right: 12%; width: 15%; }
  .proj--wide .proj__info { grid-template-columns: 1fr 1.3fr; column-gap: 40px; align-items: start; }
  .proj--wide .proj__row { grid-row: span 2; flex-direction: column; align-items: flex-start; }

  .ind { grid-template-columns: 80px 1.2fr 1fr; padding: 30px 0; align-items: center; }
  .ind p, .ind .link { grid-column: auto; }
  .ind:hover h3 { transform: translateX(14px); }

  .svc__row { grid-template-columns: 80px 1.1fr 1fr; padding: 34px 0; align-items: center; }
  .svc__row p { grid-column: auto; }
  .svc:hover .svc__row { opacity: .32; }
  .svc .svc__row:hover { opacity: 1; }
  .svc__row:hover h3 { transform: translateX(16px); }
  .svc__float {
    display: block; position: fixed; left: 0; top: 0; z-index: 300; width: 340px; pointer-events: none;
    border-radius: 12px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7);
    opacity: 0; transform: translate(-50%, -50%) scale(.6);
  }
  .svc__float img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }

  .steps { grid-template-columns: repeat(4, 1fr); gap: 40px; padding: 44px var(--gut) 0; }
  .steps__line { left: var(--gut); right: var(--gut); top: 5px; bottom: auto; width: auto; height: 1px; }
  .steps__line i { transform: scaleX(var(--p, 0)); }
  .step__node { left: 0; top: -44px; }

  .faq { display: grid; grid-template-columns: 1fr 1.4fr; align-items: start; }
  .faq .sec-head { position: sticky; top: calc(var(--hdr) + 30px); }

  .contact__grid { grid-template-columns: 1.25fr 1fr; gap: clamp(40px, 6vw, 110px); align-items: start; }
  .brief { padding: 40px; }

  .ftr__top { grid-template-columns: 1.2fr 1.5fr; align-items: start; }
  .fab { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .intro__text .w { opacity: 1; }
}

.hero.gl-on .hills { display: none; }

/* =========================================================
   INNER PAGES (services / industries)
   ========================================================= */
.svc__row h3 a, .ind h3 a { color: inherit; }
.svc__row h3 a::after, .ind h3 a::after { content: " ↗"; font-size: .45em; vertical-align: super; opacity: 0; transition: opacity .3s; }
@media (hover: hover) { .svc__row:hover h3 a::after, .ind:hover h3 a::after { opacity: .6; } }

.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 82vh; min-height: 82svh; display: grid; align-content: end; gap: 20px;
  padding: calc(var(--hdr) + 40px) var(--gut) clamp(56px, 7vw, 100px);
}
.page-hero .hills { position: absolute; z-index: -1; top: auto; bottom: 0; right: 0; width: 100%; height: 46%; opacity: .55; -webkit-mask-image: none; mask-image: none; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.crumbs a { min-height: 32px; display: inline-flex; align-items: center; }
@media (hover: hover) { .crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; } }
.page-title { font-weight: 500; font-size: clamp(44px, 8vw, 132px); line-height: .94; letter-spacing: -.055em; max-width: 13ch; }
.page-title em { color: #0d5c50; font-size: 1.1em; letter-spacing: -.025em; }
.page-title + .page-lede { margin-top: 10px; }
.page-lede { max-width: 54ch; color: var(--ink-2); font-size: clamp(16.5px, 1.4vw, 19.5px); line-height: 1.55; }

.feat { padding: clamp(70px, 9vw, 140px) 0 clamp(40px, 6vw, 80px); border-top: 1px solid var(--line); }
.feat__grid { display: grid; gap: 0 40px; padding: 0 var(--gut); }
.feat__item { display: grid; grid-template-columns: 40px 1fr; gap: 4px 12px; align-content: start; padding: 22px 0 26px; border-top: 1px solid var(--line); }
.feat__n { font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); padding-top: 6px; }
.feat__item h3 { font-weight: 500; font-size: clamp(21px, 1.9vw, 27px); letter-spacing: -.035em; line-height: 1.15; }
.feat__item p { grid-column: 2; color: var(--ink-2); }
.work--page { padding-top: clamp(50px, 7vw, 100px); }

.cta-band {
  margin: 0 clamp(10px, 2vw, 24px) clamp(10px, 2vw, 24px); border-radius: var(--r);
  background: var(--night); color: var(--night-ink);
  padding: clamp(60px, 8vw, 120px) var(--gut); display: grid; gap: 30px;
}
.cta-band__title { font-weight: 500; font-size: clamp(48px, 9vw, 150px); line-height: .92; letter-spacing: -.06em; }
.cta-band__title em { color: #7fd1bb; font-size: 1.1em; }
.btn--ghost-light { box-shadow: inset 0 0 0 1px var(--night-line); color: var(--night-ink); }
@media (hover: hover) { .btn--ghost-light:hover { background: var(--night-ink); color: var(--night); } }
.related { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding-top: 26px; border-top: 1px solid var(--night-line); }
.related .label { color: var(--night-mute); margin-right: 4px; }
.related a { min-height: 40px; display: inline-flex; align-items: center; color: var(--night-mute); transition: color .3s; }
@media (hover: hover) { .related a:hover { color: var(--night-ink); } }

@media (min-width: 640px) {
  .feat__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .page-hero .hills { width: 62%; height: 78%; opacity: 1; }
  .page-lede, .page-hero .label, .crumbs, .page-title, .page-hero .hero__ctas { max-width: 58%; }
  .page-title { max-width: 11ch; }
  .feat__grid { grid-template-columns: repeat(3, 1fr); }
  .work--page .proj:only-child { grid-column: 1 / -1; }
  .work--page .proj:only-child .proj__media { aspect-ratio: 16 / 8.2; }
  .work--page .proj:only-child .proj__shot { left: 18%; right: 18%; top: 10%; }
  .work--page .proj:only-child .proj__phone { right: 12%; width: 15%; }
}
.cta-band .hero__ctas { order: 0; }
