/* =========================================================
   OWEN SEACHRIS — site styles
   Tokens · Base · Components · Sections
   ========================================================= */

:root {
  --bg: #0A0B09;
  --bg-2: #0F110D;
  --panel: #12140F;
  --line: rgba(236, 234, 224, 0.09);
  --line-2: rgba(236, 234, 224, 0.18);
  --fg: #ECEAE0;
  --fg-2: #A7A79A;
  --fg-3: #8A8B7F;   /* ~5.6:1 on the background, passes WCAG AA for small text */
  --accent: #FF5A1F;
  --accent-ink: #0A0B09;

  --f-display: "Chakra Petch", "Arial Narrow", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1440px;
  --nav-h: 72px;
  /* the nav grows behind the status bar / notch when the page runs edge to edge */
  --safe-top: env(safe-area-inset-top, 0px);
  --nav-total: calc(var(--nav-h) + var(--safe-top));
  --ease: cubic-bezier(.2, .7, .1, 1);
  --chamfer: 10px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-total) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip; /* not hidden: hidden makes body a scroll box and breaks the sticky nav */
}
/* column guides + grain */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background:
    linear-gradient(to right, var(--line) 1px, transparent 1px) 0 0 / calc((min(100vw, var(--max)) - 2 * var(--gutter)) / 4) 100%;
  background-position: calc(max(0px, (100vw - var(--max)) / 2) + var(--gutter)) 0;
  opacity: .4;
  mask-image: linear-gradient(to bottom, #000 0%, #000 60%, transparent 100%);
}
body::after {
  content: "";
  position: fixed; inset: -50%;
  pointer-events: none; z-index: 100;
  opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
main, .footer, .nav { position: relative; z-index: 1; }

[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 600; letter-spacing: -0.01em; text-transform: uppercase; }
p { margin: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 max(var(--gutter), env(safe-area-inset-right, 0px)) 0 max(var(--gutter), env(safe-area-inset-left, 0px)); }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.muted { color: var(--fg-3); }
.lead { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.5; color: var(--fg); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; }
.skip:focus { left: 8px; }

/* ---------- buttons ---------- */
.btn {
  --c: var(--accent);
  display: inline-flex; align-items: center; gap: 12px;
  height: 52px; padding: 0 22px;
  font: 600 14px/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--c);
  border: 0; cursor: pointer; white-space: nowrap;
  clip-path: polygon(var(--chamfer) 0, 100% 0, 100% calc(100% - var(--chamfer)), calc(100% - var(--chamfer)) 100%, 0 100%, 0 var(--chamfer));
  transition: background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn span { transition: transform .3s var(--ease); }
.btn:hover { --c: var(--fg); }
.btn:hover span { transform: translateX(4px); }
.btn--sm { height: 40px; padding: 0 16px; font-size: 12px; --chamfer: 7px; }
.btn--ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-2); clip-path: none; }
.btn--ghost:hover { background: var(--fg); color: var(--accent-ink); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-total);
  padding-top: var(--safe-top);
  /* Safari 26 paints the strip behind the status bar with this colour, but only
     if the bar itself has no backdrop-filter, so the blur lives on ::before. */
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--line);
  transition: background .3s;
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
.nav__inner { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.nav__brand { justify-self: start; }
.nav__brand img { height: 26px; width: auto; }
.nav__links { display: flex; gap: 36px; justify-self: center; }
.nav__links a {
  font: 500 13px/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase;
  color: var(--fg-2); transition: color .2s; position: relative; padding: 8px 0;
}
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--fg); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: none; }
.nav__right { justify-self: end; display: flex; align-items: center; gap: 12px; }
.nav__toggle { display: none; width: 40px; height: 40px; background: none; border: 1px solid var(--line-2); cursor: pointer; padding: 0; position: relative; }
.nav__toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--fg); transition: transform .3s var(--ease), top .3s var(--ease); }
.nav__toggle span:first-child { top: 15px; }
.nav__toggle span:last-child { top: 23px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }

/* ---------- section header ---------- */
.section { padding: clamp(96px, 11vw, 160px) 0; border-top: 1px solid var(--line); position: relative; }
.sh { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px 24px; margin-bottom: clamp(44px, 5vw, 80px); align-items: end; }
.sh__idx { display: block; color: var(--accent); margin-bottom: 20px; }
.sh .sh__idx { grid-column: 1 / -1; margin-bottom: 0; }
.sh h2 { grid-column: 1 / span 7; }
.sh__aside { grid-column: 9 / -1; color: var(--fg-2); max-width: 44ch; }
.sh__link { grid-column: 9 / -1; justify-self: end; font: 500 13px/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2); padding: 12px 0; border-bottom: 1px solid var(--line-2); transition: color .2s, border-color .2s; white-space: nowrap; }
.sh__link span { display: inline-block; transition: transform .3s var(--ease); }
.sh__link:hover { color: var(--fg); border-color: var(--accent); }
.sh__link:hover span { transform: translateX(4px); }
h2 { font-size: clamp(36px, 5.2vw, 76px); line-height: .95; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 112px); overflow: hidden; }
.hero__meta { display: flex; justify-content: space-between; gap: 16px; color: var(--fg-3); padding-bottom: 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.hero__title {
  margin: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 96px);
  font-size: clamp(46px, 10.4vw, 168px);
  line-height: .86; font-weight: 700; letter-spacing: -0.025em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; }
.hero__title .line:nth-child(2) > span { animation-delay: .08s; }
.hero__title .line:nth-child(3) > span { animation-delay: .16s; }
.hero__title em, .cta__title em { font-style: normal; color: var(--accent); }
@keyframes rise { to { transform: none; } }

.hero__base { display: grid; grid-template-columns: repeat(12, 1fr); gap: 40px 24px; align-items: end; }
.hero__lede { grid-column: 1 / span 6; }
.hero__lede p { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: var(--fg-2); max-width: 40ch; }
.hero__ctas { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.hero__spec { grid-column: 8 / -1; margin: 0; border-top: 1px solid var(--line-2); }
.hero__spec div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.hero__spec dt { font: 400 11px/1.6 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); }
.hero__spec dd { margin: 0; font: 500 15px/1.5 var(--f-display); letter-spacing: .06em; text-transform: uppercase; }
.hero__mark {
  position: absolute; right: calc(var(--gutter) - 2vw); top: 90px;
  width: clamp(160px, 26vw, 420px); height: auto;
  opacity: .025; pointer-events: none; user-select: none;
}

/* ---------- ticker ---------- */
.ticker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; background: var(--bg-2); position: relative; z-index: 1; }
.ticker__track { display: flex; width: max-content; gap: 28px; padding: 18px 0; font-size: 13px; color: var(--fg-2); animation: marquee 52s linear infinite; }
.ticker__track b { color: var(--accent); font-weight: 400; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- work ---------- */
.work { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 24px); }
.proj { display: block; }
.proj--wide { grid-column: 1 / -1; }
.proj__cover {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 80% 90% at 70% 20%, hsl(var(--hue) 40% 22% / .55), transparent 70%),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(236,234,224,.03) 39px 40px),
    var(--panel);
}
.proj--wide .proj__cover { aspect-ratio: 16 / 7; }
.proj__cover img { width: clamp(64px, 9vw, 120px); opacity: .14; transition: transform .8s var(--ease), opacity .4s; }
.proj:hover .proj__cover img { transform: scale(1.08); opacity: .22; }
.proj__tag { position: absolute; left: 16px; top: 16px; padding: 6px 10px; font-size: 10.5px; color: var(--fg-2); background: rgba(10, 11, 9, .6); border: 1px solid var(--line-2); backdrop-filter: blur(6px); }
.proj__meta { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 16px; padding: 20px 0 8px; border-bottom: 1px solid var(--line); }
.proj__meta h3 { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.1; }
.proj__meta .mono { grid-row: 2; color: var(--fg-3); font-size: 11px; }
.proj__go { grid-column: 2; grid-row: 1 / span 2; align-self: center; font: 400 22px/1 var(--f-display); color: var(--fg-3); transition: transform .4s var(--ease), color .2s; }
.proj:hover .proj__go { color: var(--accent); transform: translateX(4px); }

/* ---------- services ---------- */
.caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cap { background: var(--bg); padding: clamp(28px, 3vw, 44px); display: flex; flex-direction: column; position: relative; transition: background .35s var(--ease); }
.cap::before, .cap::after { content: ""; position: absolute; width: 14px; height: 14px; border: 0 solid var(--accent); opacity: 0; transition: opacity .3s, transform .4s var(--ease); }
.cap::before { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; transform: translate(6px, 6px); }
.cap::after { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; transform: translate(-6px, -6px); }
.cap:hover { background: var(--panel); }
.cap:hover::before, .cap:hover::after { opacity: 1; transform: none; }
.cap__top { display: flex; justify-content: space-between; align-items: flex-start; }
.cap__no { color: var(--fg-3); }
.cap__icon { width: 64px; height: 64px; fill: none; stroke: var(--fg); stroke-width: 1.5; stroke-linecap: square; stroke-linejoin: miter; transition: transform .5s var(--ease); }
.cap__icon .acc { stroke: var(--accent); }
.cap__icon .thin { stroke-width: 1; opacity: .6; }
.cap:hover .cap__icon { transform: translateY(-3px); }
.cap h3 { font-size: clamp(24px, 2.2vw, 32px); line-height: 1.05; margin: 48px 0 16px; }
.cap p { color: var(--fg-2); }
.cap__list { list-style: none; margin: 0; padding: 28px 0 0; display: grid; gap: 12px; color: var(--fg); font-size: 11.5px; }
.cap__list li { display: flex; gap: 12px; align-items: baseline; }
.cap__list li::before { content: "+"; color: var(--accent); }
.cap__more { margin-top: auto; padding-top: 36px; color: var(--fg-2); font-size: 11.5px; transition: color .2s; }
.cap__more span { display: inline-block; transition: transform .3s var(--ease); }
.cap:hover .cap__more { color: var(--accent); }
.cap:hover .cap__more span { transform: translateX(4px); }

/* ---------- process ---------- */
.sop { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line-2); }
.sop li { padding: 28px 24px 0 0; position: relative; }
.sop li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.sop li::before { content: ""; position: absolute; top: -1px; left: 0; width: 0; height: 2px; background: var(--accent); transition: width 1.2s var(--ease); }
.sop li.is-in::before { width: 100%; }
.sop li:nth-child(2)::before { transition-delay: .15s; } .sop li:nth-child(3)::before { transition-delay: .3s; }
.sop li:nth-child(4)::before { transition-delay: .45s; } .sop li:nth-child(5)::before { transition-delay: .6s; }
.sop__n { color: var(--accent); }
.sop h3 { font-size: clamp(22px, 2vw, 30px); margin: 48px 0 14px; }
.sop p { color: var(--fg-2); font-size: 15px; }

/* ---------- north dakota ---------- */
.nd { background: radial-gradient(ellipse 50% 80% at 85% 50%, rgba(255, 90, 31, .045), transparent 70%); }
.nd__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 40px 24px; align-items: start; }
.nd__head { grid-column: 1 / span 6; }
.nd__body { grid-column: 8 / -1; }
.nd__body .lead { color: var(--fg-2); }
.towns { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); }
.towns li { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--fg); font-size: 11.5px; }

/* ---------- about ---------- */
.about__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 48px 24px; align-items: center; }
.portrait {
  grid-column: 1 / span 5; aspect-ratio: 4 / 5; position: relative;
  background:
    repeating-linear-gradient(135deg, transparent 0 10px, rgba(236, 234, 224, .025) 10px 11px),
    var(--panel);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  clip-path: polygon(24px 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%, 0 24px);
}
.portrait img { width: 32%; opacity: .1; }
.portrait__tag { position: absolute; left: 20px; bottom: 18px; color: var(--fg-3); font-size: 10.5px; }
.portrait__frame { position: absolute; inset: 20px; pointer-events: none;
  background:
    linear-gradient(var(--accent), var(--accent)) left top / 16px 1.5px no-repeat,
    linear-gradient(var(--accent), var(--accent)) left top / 1.5px 16px no-repeat,
    linear-gradient(var(--accent), var(--accent)) right bottom / 16px 1.5px no-repeat,
    linear-gradient(var(--accent), var(--accent)) right bottom / 1.5px 16px no-repeat;
}
.about__copy { grid-column: 7 / -1; }
.about__copy h2 { margin-bottom: 32px; }
.principles { list-style: none; margin: 36px 0 40px; padding: 0; border-top: 1px solid var(--line-2); }
.principles li { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--fg); }
.principles span { color: var(--accent); margin-right: 20px; }

/* ---------- notes ---------- */
.notes { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.note { background: var(--bg); padding: clamp(24px, 2.6vw, 36px); display: flex; flex-direction: column; min-height: 280px; transition: background .35s var(--ease); }
.note:hover { background: var(--panel); }
.note__cat { color: var(--accent); font-size: 11px; }
.note h3 { font-size: clamp(20px, 1.7vw, 24px); line-height: 1.15; margin: 28px 0 32px; text-transform: none; letter-spacing: 0; }
.note__meta { margin-top: auto; color: var(--fg-3); font-size: 11px; display: flex; justify-content: space-between; }
.note__meta span { transition: transform .3s var(--ease), color .2s; }
.note:hover .note__meta span { color: var(--accent); transform: translateX(4px); }

/* ---------- CTA ---------- */
.cta { border-top: 1px solid var(--line); padding: clamp(96px, 12vw, 176px) 0; background: linear-gradient(to bottom, transparent, rgba(255, 90, 31, .05)); position: relative; z-index: 1; }
.cta__title { font-size: clamp(52px, 9vw, 152px); line-height: .88; font-weight: 700; letter-spacing: -0.025em; }
.cta__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-top: clamp(40px, 5vw, 64px); padding-top: 28px; border-top: 1px solid var(--line-2); }
.cta__row p { color: var(--fg-2); max-width: 40ch; font-size: 18px; }
.cta__btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: clamp(64px, 8vw, 112px) 0 32px; overflow: hidden; }
.footer__top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer__line { font: 600 clamp(24px, 2.6vw, 38px)/1.05 var(--f-display); text-transform: uppercase; }
.footer__cols { display: flex; gap: clamp(40px, 6vw, 96px); flex-wrap: wrap; }
.footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer__col > .mono { color: var(--fg-3); font-size: 10.5px; margin-bottom: 6px; }
.footer__col a { color: var(--fg-2); transition: color .2s; }
.footer__col a:hover { color: var(--fg); }
.footer__plain { color: var(--fg-2); }
.footer__word { width: 100%; height: auto; margin: clamp(56px, 8vw, 120px) 0 clamp(28px, 3vw, 40px); opacity: .95; }
.footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--line); color: var(--fg-3); font-size: 10.5px; }
.footer__base a:hover { color: var(--fg); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.caps .reveal:nth-child(2), .sop .reveal:nth-child(2), .notes .reveal:nth-child(2), .work .reveal:nth-child(3) { transition-delay: .08s; }
.caps .reveal:nth-child(3), .sop .reveal:nth-child(3), .notes .reveal:nth-child(3) { transition-delay: .16s; }
.sop .reveal:nth-child(4) { transition-delay: .24s; }
.sop .reveal:nth-child(5) { transition-delay: .32s; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .nav__links { gap: 24px; }
  .caps, .notes { grid-template-columns: 1fr; }
  .note { min-height: 0; }
  .cap h3 { margin-top: 36px; }
  .sop { grid-template-columns: repeat(2, 1fr); }
  .sop li, .sop li + li { padding: 28px 24px 36px 0; border-left: 0; }
  .sop li:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
}
@media (max-width: 980px) {
  .nav__inner { grid-template-columns: 1fr auto; }
  .nav__links, .nav__right .btn { display: none; }
  .nav__toggle { display: block; }
  .sh h2, .sh__aside { grid-column: 1 / -1; }
  .sh__link { grid-column: 1 / -1; justify-self: start; }
  .hero__lede, .hero__spec, .nd__head, .nd__body, .portrait, .about__copy { grid-column: 1 / -1; }
  .portrait { max-width: 480px; }
  .work { grid-template-columns: 1fr; }
  .proj--wide .proj__cover { aspect-ratio: 4 / 3; }
}
@media (max-width: 640px) {
  :root { --nav-h: 64px; }
  body { font-size: 16px; }
  .nav__brand img { height: 22px; }
  .hide-sm { display: none; }
  .hero__spec div { grid-template-columns: 110px 1fr; }
  .hero__ctas .btn, .cta__btns .btn { flex: 1 1 auto; justify-content: center; }
  .sop { grid-template-columns: 1fr; }
  .sop li, .sop li + li, .sop li:nth-child(even) { padding: 24px 0 28px; border-left: 0; }
  .sop h3 { margin-top: 20px; }
  .towns { grid-template-columns: repeat(2, 1fr); }
  .cta__btns { width: 100%; }
}

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

/* =========================================================
   CASE STUDY  (/work/<project>)
   ========================================================= */
.crumbs { display: flex; gap: 10px; flex-wrap: wrap; color: var(--fg-3); font-size: 11px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.crumbs a { color: var(--fg-2); transition: color .2s; }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: var(--fg); }

.case-hero { padding: clamp(32px, 5vw, 56px) 0 clamp(48px, 6vw, 80px); }
.case-hero__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 40px 24px; align-items: end; margin: clamp(48px, 7vw, 96px) 0 clamp(48px, 6vw, 80px); }
.case-hero__head { grid-column: 1 / span 7; }
.case-hero__title { font-size: clamp(44px, 8vw, 128px); line-height: .88; font-weight: 700; letter-spacing: -0.025em; }
.case-hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.case-hero__title .line > span { display: inline-block; transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; }
.case-hero__title .line:nth-child(2) > span { animation-delay: .08s; }
.case-hero__title em { font-style: normal; color: var(--accent); }
.case-hero__lede { margin-top: 32px; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: var(--fg-2); max-width: 46ch; }

.case-spec { grid-column: 9 / -1; margin: 0; border-top: 1px solid var(--line-2); }
.case-spec div { display: grid; grid-template-columns: 100px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.case-spec dt { font: 400 11px/1.6 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); }
.case-spec dd { margin: 0; font: 500 15px/1.5 var(--f-display); letter-spacing: .06em; text-transform: uppercase; }
.case-spec__link { color: var(--accent); text-transform: none; letter-spacing: .02em; }
.case-spec__link:hover { color: var(--fg); }

/* image placeholders — replace with <img> inside the same <figure class="ph"> */
.ph {
  position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 80% 90% at 70% 20%, hsl(var(--hue, 18) 40% 22% / .55), transparent 70%),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(236,234,224,.03) 39px 40px),
    var(--panel);
}
.ph > img:not([aria-hidden]) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph > img[aria-hidden] { width: clamp(56px, 8vw, 110px); opacity: .12; }
.ph--hero { aspect-ratio: 16 / 9; }
.ph--wide { grid-column: 1 / -1; aspect-ratio: 16 / 8; }
.ph--tall { aspect-ratio: 4 / 5; }
.ph__cap { position: absolute; left: 16px; bottom: 16px; z-index: 1; padding: 6px 10px; font-size: 10.5px; color: var(--fg-2); background: rgba(10, 11, 9, .6); border: 1px solid var(--line-2); backdrop-filter: blur(6px); }

.case-row { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid var(--line); }
.case-row:first-child { border-top: 0; padding-top: 0; }
.case-row__label { grid-column: 1 / span 4; color: var(--accent); }
.case-row__body { grid-column: 5 / span 7; display: grid; gap: 20px; }
.case-row__body p:not(.lead) { color: var(--fg-2); max-width: 62ch; }
.case-row--note { border-top: 0; padding: clamp(48px, 6vw, 88px) 0; }

.results { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); padding: clamp(64px, 8vw, 112px) 0; position: relative; z-index: 1; }
.results__grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); margin-top: 8px; }
.result { padding: 32px 24px 0 0; }
.result + .result { padding-left: 24px; border-left: 1px solid var(--line); }
.result b { display: block; font: 700 clamp(48px, 6vw, 96px)/1 var(--f-display); letter-spacing: -0.03em; }
.result .mono { display: block; margin: 16px 0 10px; color: var(--accent); font-size: 11px; }
.result p { color: var(--fg-2); font-size: 15px; max-width: 30ch; }

.gallery { border-top: 0; }
.gallery__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 24px); }

.scope { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.scope__col { background: var(--bg); padding: clamp(28px, 3vw, 44px); }
.scope__head { display: flex; align-items: center; gap: 20px; padding-bottom: 24px; border-bottom: 1px dashed var(--line-2); }
.scope__head .cap__icon { width: 48px; height: 48px; }
.scope__head h3 { font-size: clamp(22px, 2vw, 28px); }

.quote__fig { margin: 0; max-width: 1100px; }
.quote blockquote { margin: 0; font: 500 clamp(26px, 3.4vw, 48px)/1.2 var(--f-display); letter-spacing: -0.005em; text-wrap: balance; }
.quote__by { display: flex; align-items: center; gap: 16px; margin-top: 40px; }
.quote__by b { display: block; font: 600 15px/1.3 var(--f-display); letter-spacing: .06em; text-transform: uppercase; }
.quote__by .mono { color: var(--fg-3); font-size: 11px; }
.quote__avatar { width: 48px; height: 48px; background: var(--panel); border: 1px solid var(--line-2); clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }

.pager { border-top: 1px solid var(--line); position: relative; z-index: 1; }
.pager__grid { display: grid; grid-template-columns: 1fr 1fr; }
.pager__link { display: grid; gap: 14px; padding: clamp(40px, 5vw, 64px) 24px clamp(40px, 5vw, 64px) 0; transition: background .35s var(--ease); }
.pager__link--next { text-align: right; border-left: 1px solid var(--line); padding: clamp(40px, 5vw, 64px) 0 clamp(40px, 5vw, 64px) 24px; }
.pager__link .mono { color: var(--fg-3); transition: color .2s; }
.pager__link b { font: 600 clamp(22px, 2.6vw, 40px)/1 var(--f-display); text-transform: uppercase; transition: color .2s; }
.pager__link:hover .mono { color: var(--accent); }
.pager__link:hover b { color: var(--fg); }
.pager__link b { color: var(--fg-2); }

.gallery__grid .reveal:nth-child(3), .results__grid .reveal:nth-child(2), .scope .reveal:nth-child(2) { transition-delay: .08s; }
.results__grid .reveal:nth-child(3), .scope .reveal:nth-child(3) { transition-delay: .16s; }

@media (max-width: 980px) {
  .case-hero__head, .case-spec { grid-column: 1 / -1; }
  .case-row__label, .case-row__body { grid-column: 1 / -1; }
  .scope { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .results__grid { grid-template-columns: 1fr; }
  .result, .result + .result { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .gallery__grid { grid-template-columns: 1fr; }
  .ph--wide { aspect-ratio: 4 / 3; }
  .pager__grid { grid-template-columns: 1fr; }
  .pager__link, .pager__link--next { padding: 32px 0; text-align: left; border-left: 0; }
  .pager__link--next { border-top: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  .case-hero__title .line > span { transform: none; }
}

/* ---------- media frame: video ---------- */
.ph__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s var(--ease); background: var(--panel); }
[data-video].is-ready .ph__video { opacity: 1; }
[data-video].is-ready > img[aria-hidden] { opacity: 0; }
[data-video]:not(.is-ready) .vctrl, [data-video]:not(.is-ready) .vprog { display: none; }
[data-video][data-no-audio] [data-v-sound] { display: none; }
[data-video] .ph__cap { z-index: 2; }

.vctrl { position: absolute; right: 16px; bottom: 16px; z-index: 2; display: flex; gap: 6px; }
.vctrl__btn {
  width: 40px; height: 40px; display: grid; place-items: center; padding: 0; cursor: pointer;
  color: var(--fg); background: rgba(10, 11, 9, .6); border: 1px solid var(--line-2);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
  transition: background .2s, color .2s;
}
.vctrl__btn:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.vctrl__btn svg { width: 14px; height: 14px; fill: currentColor; }
.vctrl__btn .i-play, .vctrl__btn .i-off { display: none; }
[data-video].is-paused .i-pause { display: none; }
[data-video].is-paused .i-play { display: block; }
[data-video].is-muted .i-on { display: none; }
[data-video].is-muted .i-off { display: block; }

.vprog { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; z-index: 2; background: rgba(236, 234, 224, .12); }
.vprog span { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }

@media (max-width: 640px) {
  .vctrl { right: 10px; bottom: 10px; }
  .vctrl__btn { width: 36px; height: 36px; }
}

/* ---------- case study: palette swatches ---------- */
.swatches { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: 2.2fr 1.6fr 1.2fr 1.2fr 1.2fr; border: 1px solid var(--line); }
.swatches li { background: var(--c); color: var(--t); aspect-ratio: auto; min-height: clamp(200px, 22vw, 320px); padding: 20px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; }
.swatches span { font: 500 clamp(18px, 1.6vw, 24px)/1 var(--f-display); letter-spacing: .04em; text-transform: uppercase; }
.swatches code { font-size: 11px; opacity: .75; }
/* columns come from each project's colours and their width weights (set inline as --cols) */
.swatches--auto { grid-template-columns: var(--cols); }
.swatches--auto li { box-shadow: inset 0 0 0 1px var(--line); }
.swatches--auto li span { font-size: clamp(15px, 1.4vw, 22px); }
@media (max-width: 980px) {
  .swatches--auto { grid-template-columns: 1fr 1fr; }
  .swatches--auto li:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 640px) { .swatches--auto { grid-template-columns: 1fr; } }
.swatches__note { margin-top: 28px; color: var(--fg-2); max-width: 62ch; }
.scope--2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 980px) { .scope--2 { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .swatches { grid-template-columns: 1fr; }
  .swatches li { min-height: 88px; flex-direction: row; justify-content: space-between; align-items: flex-end; }
}

/* real project covers */
.proj__cover .proj__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 1; transition: transform 1.2s var(--ease); }
.proj:hover .proj__cover .proj__img { transform: scale(1.03); opacity: 1; }
.proj__cover .proj__tag { z-index: 1; }

/* =========================================================
   GENERIC PAGE HEADER  (/work, /services, …)
   ========================================================= */
.page-hero { padding: clamp(32px, 5vw, 56px) 0 clamp(40px, 5vw, 64px); }
.page-hero__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px 24px; align-items: end; margin: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); }
.page-hero__grid > div { grid-column: 1 / span 8; min-width: 0; }
.page-hero__title { font-size: clamp(56px, 10vw, 168px); line-height: .84; font-weight: 700; letter-spacing: -0.03em; }
.page-hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.page-hero__title .line > span { display: inline-block; transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; }
.page-hero__title em { font-style: normal; color: var(--accent); }
.page-hero__lede { grid-column: 9 / -1; color: var(--fg-2); font-size: 18px; max-width: 44ch; }
.section--tight { padding-top: 0; border-top: 0; }

/* ---------- filter ---------- */
.filter { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--line); }
.filter__btn {
  display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px; cursor: pointer;
  font: 500 13px/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase;
  color: var(--fg-2); background: transparent; border: 1px solid var(--line-2);
  transition: color .2s, border-color .2s, background .2s;
}
.filter__btn .mono { font-size: 10.5px; color: var(--fg-3); transition: color .2s; }
.filter__btn:hover { color: var(--fg); border-color: var(--fg-2); }
.filter__btn[aria-pressed="true"] { background: var(--fg); color: var(--accent-ink); border-color: var(--fg); }
.filter__btn[aria-pressed="true"] .mono { color: var(--accent-ink); opacity: .6; }
.filter__status { margin-left: auto; color: var(--fg-3); font-size: 11px; }
.filter__empty { color: var(--fg-3); padding: 48px 0; }
[data-tags].is-hidden { display: none !important; }

/* ---------- work index cards ---------- */
.work--index { row-gap: clamp(40px, 4vw, 56px); }
.proj__title { font-size: clamp(22px, 2vw, 30px); line-height: 1.05; }
.proj--wide .proj__title { font-size: clamp(28px, 3vw, 44px); }
.proj__no { position: absolute; right: 16px; top: 16px; z-index: 1; color: var(--fg-2); font-size: 11px; padding: 6px 10px; background: rgba(10, 11, 9, .6); border: 1px solid var(--line-2); backdrop-filter: blur(6px); }
.proj__img--top { z-index: 0; transition: opacity .6s var(--ease), transform 1.2s var(--ease) !important; }
.proj:hover .proj__img--top.has-video { opacity: 0 !important; }
.proj--soon { cursor: default; }
.proj--soon .proj__meta h2, .proj--soon .proj__meta h3 { color: var(--fg-2); }
.proj__soon { position: absolute; left: 16px; bottom: 16px; z-index: 1; color: var(--fg-3); font-size: 10.5px; }
.proj__soon::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--fg-3); margin-right: 8px; vertical-align: 1px; }

/* ---------- project index table ---------- */
.ptable { border-top: 1px solid var(--line-2); }
.ptable__row {
  display: grid; grid-template-columns: 70px 1.4fr 1fr 1fr 1fr 170px; gap: 24px; align-items: center;
  padding: 22px 0; border-bottom: 1px solid var(--line); color: var(--fg-2); font-size: 15px;
  position: relative; transition: background .3s var(--ease), padding .4s var(--ease);
}
.ptable__row--head { color: var(--fg-3); font-size: 10.5px; padding: 14px 0; }
.ptable__row .mono { font-size: 11px; }
.ptable__client { font: 600 clamp(17px, 1.4vw, 20px)/1.2 var(--f-display); text-transform: uppercase; color: var(--fg); }
.ptable__status { color: var(--fg-3); text-align: right; }
.ptable__status--live { color: var(--accent); }
.ptable__status span { display: inline-block; transition: transform .3s var(--ease); }
a.ptable__row:hover { background: var(--panel); padding-left: 16px; padding-right: 16px; }
a.ptable__row:hover .ptable__status span { transform: translateX(4px); }

@media (max-width: 980px) {
  .page-hero__grid > div, .page-hero__lede { grid-column: 1 / -1; }
  .ptable__row { grid-template-columns: 50px 1.4fr 1fr 150px; }
  .ptable__row > :nth-child(4), .ptable__row > :nth-child(5) { display: none; }
}
@media (max-width: 640px) {
  .filter__status { display: none; }
  .ptable__row { grid-template-columns: 40px 1fr auto; gap: 12px; }
  .ptable__row > :nth-child(3) { display: none; }
  .ptable__status { font-size: 10px !important; }
}
@media (prefers-reduced-motion: reduce) { .page-hero__title .line > span { transform: none; } }

/* =========================================================
   SERVICES  (/services)
   ========================================================= */
.svc-jump { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); }
.svc-jump a {
  display: flex; align-items: center; gap: 14px; padding: 20px 0;
  font: 600 clamp(15px, 1.3vw, 18px)/1.2 var(--f-display); letter-spacing: .06em; text-transform: uppercase;
  color: var(--fg-2); border-bottom: 1px solid var(--line); transition: color .2s;
}
.svc-jump a + a { padding-left: 24px; border-left: 1px solid var(--line); }
.svc-jump a .mono { color: var(--accent); font-size: 11px; }
.svc-jump a > span:last-child { margin-left: auto; padding-right: 24px; color: var(--fg-3); transition: transform .3s var(--ease), color .2s; }
.svc-jump a:hover { color: var(--fg); }
.svc-jump a:hover > span:last-child { color: var(--accent); transform: translateY(3px); }

.svc__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 48px 24px; }
.svc__side { grid-column: 1 / span 4; }
.svc__sticky { position: sticky; top: calc(var(--nav-total) + 40px); }
.svc__icon { width: 72px; height: 72px; display: block; margin: 32px 0 28px; }
.svc__side h2 { font-size: clamp(34px, 4vw, 60px); }
.svc__body { grid-column: 6 / -1; display: grid; gap: clamp(40px, 5vw, 64px); }
.svc__body > .lead { color: var(--fg); max-width: 40ch; }
.svc__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-top: 32px; border-top: 1px solid var(--line-2); }
.svc__h { color: var(--fg-3); font-size: 10.5px; font-weight: 400; margin: 0 0 20px; }
.svc__cols .cap__list { padding: 0; }
.svc__fit { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.svc__fit li { padding: 14px 0 14px 28px; border-bottom: 1px solid var(--line); color: var(--fg-2); font-size: 15px; position: relative; }
.svc__fit li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }

.svc__example { display: grid; grid-template-columns: 1.3fr 1fr; border: 1px solid var(--line); background: var(--panel); overflow: hidden; transition: border-color .3s; }
.svc__example img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 1.2s var(--ease); }
.svc__example-meta { display: flex; flex-direction: column; gap: 8px; padding: clamp(20px, 2.4vw, 32px); }
.svc__example-meta > .mono:first-child { color: var(--fg-3); font-size: 10.5px; }
.svc__example-meta b { font: 600 clamp(22px, 2vw, 30px)/1.05 var(--f-display); text-transform: uppercase; }
.svc__example-go { margin-top: auto; color: var(--fg-2); font-size: 11px; transition: color .2s; }
.svc__example-go span { display: inline-block; transition: transform .3s var(--ease); }
.svc__example:hover { border-color: var(--line-2); }
.svc__example:hover img { transform: scale(1.03); }
.svc__example:hover .svc__example-go { color: var(--accent); }
.svc__example:hover .svc__example-go span { transform: translateX(4px); }

.ai-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.ai-steps li { background: var(--bg); padding: 24px; display: grid; gap: 12px; align-content: start; }
.ai-steps .mono { color: var(--accent); font-size: 11px; }
.ai-steps b { font: 600 20px/1.1 var(--f-display); text-transform: uppercase; letter-spacing: .02em; }
.ai-steps p { color: var(--fg-2); font-size: 15px; }

.together__grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); }
.together__item { padding: 28px 24px 0 0; display: grid; gap: 14px; align-content: start; }
.together__item + .together__item { padding-left: 24px; border-left: 1px solid var(--line); }
.together__item .mono { color: var(--accent); }
.together__item p { color: var(--fg-2); font-size: 17px; max-width: 32ch; }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 48px 24px; align-items: start; }
.faq__head { grid-column: 1 / span 4; }
.faq__head .sh__aside { margin-top: 24px; }
.faq__list { grid-column: 6 / -1; border-top: 1px solid var(--line-2); }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; font: 500 clamp(17px, 1.5vw, 21px)/1.3 var(--f-display); letter-spacing: .01em; color: var(--fg);
  transition: color .2s;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: "+"; flex: none; font: 400 24px/1 var(--f-mono); color: var(--accent); transition: transform .3s var(--ease); }
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list summary:hover { color: var(--accent); }
.faq__list details p { color: var(--fg-2); padding: 0 48px 28px 0; max-width: 64ch; }
.inline-link { color: var(--fg); border-bottom: 1px solid var(--accent); transition: color .2s; }
.inline-link:hover { color: var(--accent); }

@media (max-width: 980px) {
  .svc-jump { grid-template-columns: 1fr; }
  .svc-jump a + a { padding-left: 0; border-left: 0; }
  .svc-jump a > span:last-child { padding-right: 0; }
  .svc__side, .svc__body, .faq__head, .faq__list { grid-column: 1 / -1; }
  .svc__sticky { position: static; }
  .svc__icon { margin: 24px 0 20px; width: 56px; height: 56px; }
  .ai-steps, .together__grid { grid-template-columns: 1fr; }
  .together__item, .together__item + .together__item { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .svc__cols { grid-template-columns: 1fr; }
  .svc__example { grid-template-columns: 1fr; }
  .faq__list details p { padding-right: 0; }
}

/* =========================================================
   PRICING  (/pricing)
   ========================================================= */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.plan { background: var(--bg); padding: clamp(28px, 3vw, 40px); display: flex; flex-direction: column; position: relative; }
.plan--featured { background: var(--panel); box-shadow: inset 0 2px 0 var(--accent); }
.plan__flag { position: absolute; top: 0; right: clamp(28px, 3vw, 40px); transform: translateY(-50%); padding: 6px 10px; font-size: 10.5px; background: var(--accent); color: var(--accent-ink); }
.plan__head { display: flex; justify-content: space-between; align-items: flex-start; }
.plan__head .mono { color: var(--fg-3); }
.plan__icon { width: 52px; height: 52px; }
.plan__name { font-size: clamp(24px, 2.2vw, 32px); line-height: 1.05; margin: 36px 0 12px; }
.plan__desc { color: var(--fg-2); font-size: 15.5px; }
.plan__price { display: flex; align-items: baseline; gap: 10px; margin: 32px 0 28px; padding: 20px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line); }
.plan__price .mono { color: var(--fg-3); font-size: 11px; }
.plan__price b { font: 700 clamp(36px, 3.6vw, 52px)/1 var(--f-display); letter-spacing: -0.02em; }
.plan__per { color: var(--fg-2) !important; }
.plan .cap__list { padding: 0 0 32px; }
.plan__cta { margin-top: auto; justify-content: space-between; width: 100%; }

.retainer { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 24px 48px; align-items: start; margin-top: clamp(24px, 3vw, 40px); padding: clamp(28px, 3vw, 40px); border: 1px solid var(--line); background: var(--bg-2); }
.retainer .plan__name { margin-top: 28px; }
.retainer__list { padding: 8px 0 0 !important; }
.retainer__side { display: flex; flex-direction: column; }
.retainer__side .plan__price { margin-top: 0; }
.retainer__note { color: var(--fg-3); font-size: 14px; margin: -12px 0 24px; }
.retainer__note span { color: var(--fg-2); }

.addons { border-top: 1px solid var(--line-2); }
.addons__row { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.addons__row b { display: block; font: 600 clamp(17px, 1.5vw, 21px)/1.2 var(--f-display); text-transform: uppercase; letter-spacing: .02em; margin-bottom: 4px; }
.addons__row b + span { color: var(--fg-2); font-size: 15px; }
.addons__price { font: 600 clamp(20px, 1.8vw, 26px)/1 var(--f-display); white-space: nowrap; text-align: right; }
.addons__price small { color: var(--fg-3); font-size: 10.5px; font-weight: 400; }

@media (max-width: 1180px) {
  .plans { grid-template-columns: 1fr; }
  .plan--featured { order: -1; }
  .retainer { grid-template-columns: 1fr 1fr; }
  .retainer__main { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .retainer { grid-template-columns: 1fr; }
  .addons__row { grid-template-columns: 1fr; gap: 10px; }
  .addons__price { text-align: left; }
}

/* =========================================================
   ABOUT  (/about)
   ========================================================= */
.about__grid--page { align-items: start; }
.portrait--tall { position: sticky; top: calc(var(--nav-total) + 32px); }
.portrait__img { position: absolute; inset: 0; width: 100% !important; height: 100%; object-fit: cover; opacity: 1 !important; }
.about__prose { display: grid; gap: 20px; margin-top: 28px; color: var(--fg-2); max-width: 60ch; }
.about__facts { margin-top: 44px; }
.about__nd-p { color: var(--fg-2); margin-top: 20px; max-width: 58ch; }

.principle-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.principle-grid li { background: var(--bg); padding: clamp(24px, 2.6vw, 36px); display: flex; flex-direction: column; min-height: 300px; transition: background .35s var(--ease); }
.principle-grid li:hover { background: var(--panel); }
.principle-grid .mono { color: var(--accent); }
.principle-grid h3 { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.1; margin: auto 0 14px; padding-top: 48px; }
.principle-grid p { color: var(--fg-2); font-size: 15px; }
.principle-grid .reveal:nth-child(2) { transition-delay: .08s; }
.principle-grid .reveal:nth-child(3) { transition-delay: .16s; }
.principle-grid .reveal:nth-child(4) { transition-delay: .24s; }

.expect { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-2); }
.expect__item { padding: 28px 24px 0 0; }
.expect__item + .expect__item { padding-left: 24px; border-left: 1px solid var(--line); }
.expect__item b { display: block; font: 600 clamp(18px, 1.6vw, 22px)/1.15 var(--f-display); text-transform: uppercase; margin-bottom: 12px; }
.expect__item b::before { content: ""; display: block; width: 16px; height: 2px; background: var(--accent); margin-bottom: 20px; }
.expect__item p { color: var(--fg-2); font-size: 15px; }
.about__ex-desc { color: var(--fg-2); font-size: 15px; margin-top: 4px; }

@media (max-width: 1180px) {
  .principle-grid, .expect { grid-template-columns: repeat(2, 1fr); }
  .expect__item, .expect__item + .expect__item { padding: 24px 24px 28px 0; border-left: 0; }
  .expect__item:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
}
@media (max-width: 980px) {
  .portrait--tall { position: relative; top: 0; }
}
@media (max-width: 640px) {
  .principle-grid, .expect { grid-template-columns: 1fr; }
  .principle-grid li { min-height: 0; }
  .principle-grid h3 { padding-top: 28px; }
  .expect__item, .expect__item:nth-child(even) { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* =========================================================
   CONTACT  (/contact)
   ========================================================= */
.page-hero--contact { padding-bottom: 0; }
.contact__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 56px 24px; align-items: start; padding-top: clamp(40px, 6vw, 88px); }
.contact__side { grid-column: 1 / span 5; position: sticky; top: calc(var(--nav-total) + 32px); }
.contact__title { font-size: clamp(52px, 7vw, 112px); line-height: .88; font-weight: 700; letter-spacing: -0.025em; margin-top: 20px; }
.contact__title em { font-style: normal; color: var(--accent); }
.contact__intro { color: var(--fg-2); font-size: 18px; max-width: 40ch; margin-top: 28px; }
.contact__dl { margin-top: 40px; }
.contact__dl dd a { text-transform: none; letter-spacing: .02em; color: var(--accent); transition: color .2s; }
.contact__dl dd a:hover { color: var(--fg); }
.contact__formwrap { grid-column: 7 / -1; }

.next { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 0; }
.next li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.next .mono { color: var(--accent); padding-top: 3px; }
.next b { display: block; font: 600 15px/1.3 var(--f-display); letter-spacing: .06em; text-transform: uppercase; }
.next p { color: var(--fg-3); font-size: 14px; margin-top: 2px; }

/* ---------- form ---------- */
.form { display: grid; gap: 28px; padding: clamp(24px, 3vw, 44px); border: 1px solid var(--line-2); background: var(--panel); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }
.field { display: grid; gap: 10px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field__label { color: var(--fg-3); font-size: 10.5px; padding: 0; }
.field__label i { color: var(--accent); font-style: normal; }
fieldset.field > legend { margin-bottom: 14px; }
.field input, .field textarea, .field select {
  width: 100%; background: transparent; color: var(--fg); font: 400 17px/1.5 var(--f-body);
  border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; padding: 8px 0 12px;
  transition: border-color .2s; -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-bottom-color: var(--accent); }
.field input::placeholder, .field textarea::placeholder { color: var(--fg-3); }
.field input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px var(--panel) inset; -webkit-text-fill-color: var(--fg); }
.select { position: relative; display: block; }
.select::after { content: ""; position: absolute; right: 2px; top: 50%; width: 7px; height: 7px; border-right: 1.5px solid var(--fg-2); border-bottom: 1.5px solid var(--fg-2); transform: translateY(-75%) rotate(45deg); pointer-events: none; }
.field select { padding-right: 24px; cursor: pointer; }
.field select option { background: var(--panel); color: var(--fg); }
.field select:invalid, .field select.is-empty { color: var(--fg-3); }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: #FF5C5C; }
.field__err { color: #FF7A7A; font: 400 11px/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span { display: inline-block; padding: 11px 14px; border: 1px solid var(--line-2); font: 500 12px/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-2); transition: background .2s, border-color .2s, color .2s; }
.chips label:hover span { border-color: var(--fg-2); color: var(--fg); }
.chips input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__check { min-height: 0; }
.form__check:empty { display: none; }
.form__foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 4px; }
.form__note { color: var(--fg-3); font-size: 10.5px; }
.form__note.is-err { color: #FF7A7A; }
.btn[disabled] { opacity: .6; cursor: progress; }

.form-done { padding: clamp(32px, 4vw, 56px); border: 1px solid var(--line-2); background: var(--panel); box-shadow: inset 0 2px 0 var(--accent); }
.form-done:focus { outline: none; }
.form-done__mark svg { width: 56px; height: 56px; fill: none; stroke: var(--fg); stroke-width: 1.5; }
.form-done__mark .acc { stroke: var(--accent); stroke-width: 2; }
.form-done h2 { font-size: clamp(36px, 4vw, 56px); margin: 28px 0 16px; }
.form-done h2 em { font-style: normal; color: var(--accent); }
.form-done p { color: var(--fg-2); max-width: 46ch; }
.form-done__btns { margin-top: 32px; }

@media (max-width: 980px) {
  .contact__side, .contact__formwrap { grid-column: 1 / -1; }
  .contact__side { position: static; }
}
@media (max-width: 640px) {
  .form__row { grid-template-columns: 1fr; }
  .form__foot .btn { width: 100%; justify-content: center; }
}

/* =========================================================
   INSIGHTS  (/insights)
   ========================================================= */
.post { display: flex; flex-direction: column; background: var(--bg); transition: background .35s var(--ease); }
.post__cover {
  position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 80% 90% at 75% 15%, hsl(var(--hue, 18) 40% 22% / .5), transparent 70%),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(236,234,224,.03) 39px 40px),
    var(--panel);
}
.post__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post:hover .post__photo, .svc__example:hover .post__photo { transform: scale(1.03); }
.post__glyph { width: clamp(56px, 6vw, 84px); height: auto; fill: none; stroke: var(--fg); stroke-width: 1.2; stroke-linecap: square; opacity: .85; transition: transform .8s var(--ease); }
.post__glyph .acc { stroke: var(--accent); }
.post__glyph .thin { stroke-width: .8; opacity: .6; }
.post:hover .post__glyph { transform: scale(1.08); }
.post__flag { position: absolute; left: 16px; top: 16px; padding: 6px 10px; font-size: 10.5px; background: var(--accent); color: var(--accent-ink); }
.post__body { display: flex; flex-direction: column; flex: 1; padding: clamp(22px, 2.4vw, 32px); }
.post__cat { color: var(--accent); font-size: 11px; }
.post__title { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.2; text-transform: none; letter-spacing: 0; margin: 16px 0 12px; transition: color .2s; }
.post__excerpt { color: var(--fg-2); font-size: 15px; }
.post__meta { margin-top: auto; padding-top: 28px; display: flex; justify-content: space-between; color: var(--fg-3); font-size: 11px; }
.post__go { transition: transform .3s var(--ease), color .2s; }
.post:hover { background: var(--panel); }
.post:hover .post__go { color: var(--accent); transform: translateX(4px); }

.post--featured { display: grid; grid-template-columns: 1.2fr 1fr; border: 1px solid var(--line); margin-bottom: clamp(16px, 2vw, 24px); }
.post--featured .post__cover { aspect-ratio: auto; min-height: 380px; border-bottom: 0; border-right: 1px solid var(--line); }
.post--featured .post__glyph { width: clamp(96px, 10vw, 150px); }
.post--featured .post__body { justify-content: center; padding: clamp(28px, 4vw, 56px); }
.post--featured .post__title { font-size: clamp(28px, 3vw, 44px); line-height: 1.08; text-transform: uppercase; letter-spacing: -0.005em; margin: 20px 0 18px; }
.post--featured .post__excerpt { font-size: 17px; max-width: 46ch; }
.post--featured .post__meta { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); }

.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.posts .reveal:nth-child(3n+2) { transition-delay: .08s; }
.posts .reveal:nth-child(3n) { transition-delay: .16s; }

@media (max-width: 1180px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 980px) {
  .post--featured { grid-template-columns: 1fr; }
  .post--featured .post__cover { min-height: 0; aspect-ratio: 16 / 9; border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) { .posts { grid-template-columns: 1fr; } }

/* =========================================================
   ARTICLE  (/insights/<slug>)
   ========================================================= */
.read-progress { position: fixed; left: 0; right: 0; top: var(--nav-total); height: 2px; z-index: 49; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }

.article-hero { padding: clamp(32px, 5vw, 56px) 0 clamp(40px, 5vw, 64px); }
.article-hero__inner { max-width: 980px; margin: clamp(48px, 7vw, 96px) 0 0; }
.article-hero__cat { color: var(--accent); }
.article-hero__title { font-size: clamp(36px, 5.4vw, 80px); line-height: .98; letter-spacing: -0.015em; margin: 20px 0 28px; text-wrap: balance; }
.article-hero__dek { font-size: clamp(18px, 1.7vw, 23px); line-height: 1.5; color: var(--fg-2); max-width: 54ch; }

.byline { display: flex; align-items: center; gap: 14px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.byline__avatar { width: 44px; height: 44px; flex: none; display: grid; place-items: center; background: var(--panel); border: 1px solid var(--line-2); clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px); }
.byline__avatar img { width: 55%; opacity: .9; }
.byline__text { display: grid; gap: 2px; }
.byline__text b { font: 600 15px/1.2 var(--f-display); letter-spacing: .06em; text-transform: uppercase; }
.byline__text .mono { color: var(--fg-3); font-size: 11px; }
.byline__text i { font-style: normal; margin: 0 6px; }

.article-cover { aspect-ratio: 21 / 9; border: 1px solid var(--line); margin: 0; }
.article-cover .post__glyph { width: clamp(90px, 10vw, 150px); }

.article__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 48px 24px; padding: clamp(56px, 7vw, 104px) var(--gutter) clamp(72px, 9vw, 128px); }
.toc { grid-column: 1 / span 3; }
.toc__sticky { position: sticky; top: calc(var(--nav-total) + 40px); display: grid; gap: 40px; }
.toc__label { display: block; color: var(--fg-3); font-size: 10.5px; margin-bottom: 14px; }
.toc__list { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-2); }
.toc__list a { display: block; padding: 8px 0 8px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--fg-3); font-size: 14px; line-height: 1.35; transition: color .2s, border-color .2s; }
.toc__list a:hover { color: var(--fg); }
.toc__list a.is-active { color: var(--fg); border-left-color: var(--accent); }
.share__btns { display: flex; gap: 8px; }
.share__btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; background: transparent; border: 1px solid var(--line-2); color: var(--fg-2); cursor: pointer; transition: color .2s, border-color .2s; }
.share__btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.share__btn .mono { font-size: 10.5px; }
.share__logo { display: inline-flex; }
.share__logo svg { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.share__btn:hover { color: var(--fg); border-color: var(--fg-2); }

/* long-form typography */
.prose { grid-column: 5 / span 7; max-width: 720px; font-size: 18px; line-height: 1.75; color: var(--fg-2); }
.prose > * + * { margin-top: 1.25em; }
.prose__lead { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.6; color: var(--fg); }
.prose h2 { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.1; color: var(--fg); margin-top: 2.4em; scroll-margin-top: calc(var(--nav-total) + 32px); }
.prose h3 { font-size: clamp(19px, 1.6vw, 22px); color: var(--fg); margin-top: 1.8em; }
.prose h2 + p, .prose h3 + p { margin-top: .9em; }
.prose strong { color: var(--fg); font-weight: 500; }
.prose a:not(.inline-link) { color: var(--fg); border-bottom: 1px solid var(--accent); }
.prose a:not(.inline-link):hover { color: var(--accent); }
.prose ul, .prose ol { padding: 0; list-style: none; display: grid; gap: .7em; }
.prose ul li { position: relative; padding-left: 28px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 8px; height: 2px; background: var(--accent); }
.prose ol { counter-reset: n; }
.prose ol li { position: relative; padding-left: 44px; counter-increment: n; }
.prose ol li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: .3em; font: 500 12px/1 var(--f-mono); color: var(--accent); letter-spacing: .06em; }
.prose blockquote { margin: 2em 0; padding: 4px 0 4px 28px; border-left: 2px solid var(--accent); }
.prose blockquote p { font: 500 clamp(21px, 2vw, 27px)/1.35 var(--f-display); color: var(--fg); }
.callout { margin: 2em 0 !important; padding: 24px 28px; background: var(--panel); border: 1px solid var(--line-2); box-shadow: inset 2px 0 0 var(--accent); }
.callout__label { display: block; color: var(--accent); font-size: 10.5px; margin-bottom: 10px; }
.callout p { color: var(--fg); margin: 0; }

.author { display: flex; gap: 20px; margin-top: 64px !important; padding-top: 32px; border-top: 1px solid var(--line-2); }
.author__avatar { width: 64px; height: 64px; }
.author__label { display: block; color: var(--fg-3); font-size: 10.5px; }
.author b { display: block; font: 600 20px/1.3 var(--f-display); letter-spacing: .04em; text-transform: uppercase; color: var(--fg); margin: 4px 0 8px; }
.author p { font-size: 15px; line-height: 1.6; margin-bottom: 12px; }
.author .inline-link { font-size: 15px; }

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

@media (max-width: 1180px) {
  .toc { grid-column: 1 / span 4; }
  .prose { grid-column: 5 / -1; }
}
@media (max-width: 980px) {
  .toc, .prose { grid-column: 1 / -1; }
  .toc__sticky { position: static; gap: 24px; padding: 20px; border: 1px solid var(--line); background: var(--bg-2); }
  .article-cover { aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
  .prose { font-size: 17px; }
  .posts--2 { grid-template-columns: 1fr; }
  .author { flex-direction: column; gap: 14px; }
}

/* =========================================================
   LEGAL  (/legal)
   ========================================================= */
.legal .page-hero__lede { display: grid; gap: 16px; }
.legal__updated { color: var(--fg-3); font-size: 11px; }
.legal__grid { padding-top: clamp(24px, 3vw, 40px); border-top: 1px solid var(--line); }
.legal .prose { font-size: 17px; }
.legal .prose h2 { font-size: clamp(28px, 3vw, 44px); padding-top: 1.4em; margin-top: 1.6em; border-top: 1px solid var(--line-2); }
.legal .prose .callout + h2 { margin-top: 1.2em; }
.legal .prose h3 { font-size: 16px; letter-spacing: .08em; margin-top: 2em; }
.legal__address { font-style: normal; display: grid; gap: 4px; padding: 24px 28px; border: 1px solid var(--line-2); background: var(--panel); }
.legal__address b { font: 600 17px/1.3 var(--f-display); letter-spacing: .06em; text-transform: uppercase; color: var(--fg); }
.legal__address a { color: var(--accent) !important; border: 0 !important; }

/* =========================================================
   FOOTNOTES & FINE PRINT
   ========================================================= */
/* fixed-size note markers so they stay small next to large headings */
.fn { font: 500 10px/0 var(--f-mono); letter-spacing: 0; vertical-align: 0; position: relative; top: -0.75em; margin-left: 3px; color: var(--fg-3); }
.fn a { color: inherit; text-decoration: none; padding: 2px; border: 0 !important; transition: color .2s; }
.fn a:hover, .fn a:focus-visible { color: var(--accent); }

.svc__h--addons { margin-top: 28px; }
.svc__addons { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--fg-2); font-size: 11.5px; }
.svc__addons li { display: flex; gap: 12px; align-items: baseline; }
.svc__addons li::before { content: "＋"; color: var(--fg-3); font-size: 10px; }
.svc__pricelink { display: inline-block; margin-top: 16px; color: var(--fg-2); font-size: 10.5px; border-bottom: 1px solid var(--line-2); padding-bottom: 4px; transition: color .2s, border-color .2s; }
.svc__pricelink:hover { color: var(--accent); border-color: var(--accent); }

.fineprint { position: relative; z-index: 1; border-top: 1px solid var(--line); padding: clamp(48px, 6vw, 72px) 0; background: var(--bg-2); }
.fineprint__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.fineprint__title { grid-column: 1 / span 3; color: var(--fg-3); font-size: 11px; font-weight: 400; }
.fineprint__grid > div { grid-column: 4 / -1; max-width: 860px; }
.fineprint__list { margin: 0; padding: 0; list-style: none; counter-reset: fn; display: grid; gap: 14px; }
.fineprint__list li { counter-increment: fn; position: relative; padding-left: 32px; color: var(--fg-3); font-size: 13.5px; line-height: 1.6; scroll-margin-top: calc(var(--nav-total) + 24px); }
.fineprint__list li::before { content: counter(fn); position: absolute; left: 0; top: 1px; font: 500 11px/1.6 var(--f-mono); color: var(--accent); }
.fineprint__list b { color: var(--fg-2); font-weight: 500; }
.fineprint__list li:target { color: var(--fg-2); }
.fineprint__list li:target b { color: var(--fg); }
.fineprint__more { margin-top: 20px; color: var(--fg-3); font-size: 13.5px; }
.fineprint__more a { color: var(--fg-2); border-bottom: 1px solid var(--line-2); }
.fineprint__more a:hover { color: var(--accent); }
@media (max-width: 980px) {
  .fineprint__title, .fineprint__grid > div { grid-column: 1 / -1; }
}

/* ---------- project media: label above, media, description below ---------- */
.shot { margin: 0; }
.shot + .shot { margin-top: clamp(72px, 9vw, 128px); }
.shot__label { margin-bottom: 20px; }
.shot__desc { margin-top: 28px; color: var(--fg-2); max-width: 62ch; font-size: 17px; line-height: 1.6; }
.case-hero + .wrap .shot__desc, .case-hero .shot__desc { font-size: 16px; }

.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; }
.shot__link { display: inline-flex; gap: 8px; margin-top: 20px; color: var(--accent); font-size: 11.5px; padding-bottom: 4px; border-bottom: 1px solid var(--accent); transition: color .2s, border-color .2s; }
.shot__desc .shot__link { display: flex; width: fit-content; }
.shot__link:hover { color: var(--fg); border-color: var(--fg); }

.ph__soon { position: absolute; left: 50%; bottom: 18%; transform: translateX(-50%); color: var(--fg-3); font-size: 11px; white-space: nowrap; }
[data-video].is-ready .ph__soon { display: none; }
.addons__price--quote { font-size: 12px; color: var(--fg-2); letter-spacing: .08em; }
.addons__row--head { padding: 14px 0 !important; color: var(--fg-3); font-size: 10.5px; }
.addons__row--head span:last-child { text-align: right; }
.addons__est { color: var(--fg-3); font-size: 10.5px; font-weight: 400; letter-spacing: .08em; margin-right: 6px; vertical-align: middle; }
@media (max-width: 640px) { .addons__row--head span:last-child { display: none; } }

.ph--poster { aspect-ratio: 4 / 5; }
.scope--1 { grid-template-columns: 1fr; max-width: 640px; }

/* footer: centered "built in ND" line */
.footer__base { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.footer__base > :last-child { justify-self: end; }
.footer__made { display: inline-flex; align-items: center; gap: 10px; color: var(--fg-2); }
.flag { width: 19px; height: 10px; flex: none; }
@media (max-width: 640px) {
  .footer__base { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 12px; }
  .footer__base > :last-child { justify-self: center; }
  .footer__made { order: -1; }
}

/* project titles turn orange on hover, with the arrow */
.proj__title, .proj__meta h3 { transition: color .25s; }
.proj:hover .proj__title, .proj:hover .proj__meta h3 { color: var(--accent); }

/* follow-cursor label for clickable cards ([data-cursor]) */
.cursor-tag { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; will-change: transform; }
.cursor-tag span {
  display: grid; place-items: center; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%;
  background: var(--tag-bg, var(--accent)); color: var(--tag-fg, var(--accent-ink)); text-align: center;
  font: 500 11px/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase;
  transform: scale(.2); opacity: 0; transition: transform .45s var(--ease), opacity .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}
.cursor-tag.is-on span { transform: scale(1); opacity: 1; }
.cursor-tag b { display: block; padding: 0 12px; font-weight: 500; transition: opacity .14s, transform .14s var(--ease); }
.cursor-tag.is-swap b { opacity: 0; transform: translateY(4px); }
.has-cursor-tag [data-cursor] { cursor: none; }

/* ---------- North Dakota section with map ---------- */
.nd__grid { align-items: center; }
.nd__text { grid-column: 1 / span 5; }
.nd__text .lead { color: var(--fg-2); margin-top: 28px; }
.ndmap { grid-column: 7 / -1; margin: 0; }
.ndmap svg { width: 100%; height: auto; overflow: visible; display: block; }
.ndmap__state { fill: rgba(236, 234, 224, .035); stroke: var(--fg-2); stroke-width: 1.4; stroke-linejoin: round; }
.ndmap__river { fill: none; stroke: var(--fg-3); stroke-width: 1.6; stroke-dasharray: 4 6; opacity: .7; }
.ndmap__city { cursor: default; }
.ndmap__city circle { fill: var(--accent); transform-box: fill-box; transform-origin: center; transition: transform .3s var(--ease); }
.ndmap__city text { fill: var(--fg-2); font: 500 15px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; transition: fill .2s; }
.ndmap__city.is-hi circle { transform: scale(1.7); }
.ndmap__city.is-hi text { fill: var(--fg); }
.ndmap__cap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--fg-3); font-size: 10.5px; }
.towns li { transition: color .2s; cursor: default; }
.towns li:hover, .towns li.is-hi { color: var(--accent); }
@media (max-width: 980px) {
  .nd__text, .ndmap { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .ndmap__city text { font-size: 22px; }
}

/* ---------- process timeline: tablet = full-width rows ---------- */
@media (max-width: 1180px) and (min-width: 641px) {
  .sop { grid-template-columns: 1fr; }
  .sop li, .sop li + li, .sop li:nth-child(even) {
    display: grid; grid-template-columns: 64px minmax(160px, 1fr) 2fr; gap: 24px; align-items: baseline;
    padding: 26px 0; border-left: 0; border-bottom: 1px solid var(--line);
  }
  .sop li::before { display: none; }
  .sop h3 { margin: 0; }
}

.svc__example--article .post__cover { aspect-ratio: 16 / 10; border-bottom: 0; border-right: 1px solid var(--line); }
.svc__example--article b { text-transform: none; letter-spacing: 0; line-height: 1.15; }
@media (max-width: 640px) { .svc__example--article .post__cover { border-right: 0; border-bottom: 1px solid var(--line); } }

/* ---------- footer social icons ---------- */
.social { list-style: none; margin: 10px 0 0; padding: 0; display: flex; gap: 8px; }
.social a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line-2); color: var(--fg-2); transition: color .2s, border-color .2s, background .2s; }
.social a:hover, .social a:focus-visible { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.social svg { width: 16px; height: 16px; fill: currentColor; }
.social svg.ig { fill: none; stroke: currentColor; stroke-width: 2.1; }
.social svg.ig .dot { fill: currentColor; stroke: none; }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; }
.notfound__links { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-2); }
.notfound__links a { display: flex; align-items: center; gap: 14px; padding: 22px 0; font: 600 clamp(15px, 1.3vw, 18px)/1.2 var(--f-display); letter-spacing: .06em; text-transform: uppercase; color: var(--fg-2); border-bottom: 1px solid var(--line); transition: color .2s; }
.notfound__links a + a { padding-left: 24px; border-left: 1px solid var(--line); }
.notfound__links a .mono { color: var(--accent); font-size: 11px; }
.notfound__links a > span:last-child { margin-left: auto; padding-right: 24px; color: var(--fg-3); transition: transform .3s var(--ease), color .2s; }
.notfound__links a:hover { color: var(--fg); }
.notfound__links a:hover > span:last-child { color: var(--accent); transform: translateX(4px); }
@media (max-width: 980px) {
  .notfound__links { grid-template-columns: 1fr; }
  .notfound__links a + a { padding-left: 0; border-left: 0; }
  .notfound__links a > span:last-child { padding-right: 0; }
}

/* unpublished articles: shown as "coming soon", not clickable */
.note--soon, .post--soon { cursor: default; }
.note--soon h3, .post--soon .post__title { color: var(--fg-2); }
.note--soon:hover, .post--soon:hover { background: var(--bg); }
.note--soon .note__meta span, .post--soon .post__meta span { color: var(--fg-3); transform: none !important; }
.post--soon .post__glyph { opacity: .45; }
.post--soon:hover .post__glyph { transform: none; }

/* =========================================================
   FULL-SCREEN MOBILE MENU
   Closed-state rules hold the closing timing; .is-open rules hold the opening timing.
   Only transform and opacity animate, so it stays smooth on phones.
   ========================================================= */
.mmenu {
  --mm-in: cubic-bezier(.76, 0, .24, 1);
  position: fixed; inset: 0; z-index: 49;           /* just under the sticky nav bar (50) */
  visibility: hidden; pointer-events: none;
  transition: visibility 0s linear .75s;            /* stay visible until the close finishes */
}
.mmenu.is-open { visibility: visible; pointer-events: auto; transition-delay: 0s; }

.mmenu__bg {
  position: absolute; inset: 0; background: var(--bg);
  transform: translate3d(0, -101%, 0);
  transition: transform .55s var(--mm-in) .15s;     /* close: lift away after the links leave */
  will-change: transform;
}
.mmenu__bg::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleY(1); transition: transform .4s var(--ease) .1s; }
.mmenu.is-open .mmenu__bg { transform: none; transition: transform .65s var(--mm-in); }
.mmenu.is-open .mmenu__bg::after { transform: scaleY(0); transition-delay: .5s; }

.mmenu__inner {
  position: relative; height: 100%; height: 100dvh;
  display: flex; flex-direction: column; gap: 32px;
  padding-top: calc(var(--nav-total) + clamp(16px, 4dvh, 40px));
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
}
.mmenu__list { list-style: none; margin: 0; padding: 0; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.mmenu__link {
  position: relative; display: grid; grid-template-columns: 34px 1fr auto; align-items: baseline; gap: 8px;
  padding: clamp(10px, 1.8dvh, 18px) 0; color: var(--fg);
  -webkit-tap-highlight-color: transparent;
}
/* divider draws in from the left */
.mmenu__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line-2); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.mmenu__num { color: var(--accent); font-size: 11px; opacity: 0; transition: opacity .2s; }
.mmenu__label { display: block; overflow: hidden; padding-bottom: .04em; }
.mmenu__label > span {
  display: block; font: 600 clamp(34px, min(11vw, 7.2dvh), 64px)/1 var(--f-display); letter-spacing: -0.01em; text-transform: uppercase;
  transform: translate3d(0, 105%, 0); transition: transform .3s cubic-bezier(.5, 0, .75, 0);
}
.mmenu__arrow { font: 400 22px/1 var(--f-display); color: var(--fg-3); opacity: 0; transform: translate3d(-8px, 0, 0); transition: opacity .2s, transform .2s, color .2s; }
.mmenu__link[aria-current="page"] .mmenu__label > span { color: var(--accent); }
.mmenu__link:active .mmenu__arrow, .mmenu__link:focus-visible .mmenu__arrow { color: var(--accent); }

.mmenu.is-open .mmenu__link::after { transform: none; transition: transform .8s var(--ease) calc(.25s + var(--i) * .06s); }
.mmenu.is-open .mmenu__num { opacity: 1; transition: opacity .5s var(--ease) calc(.35s + var(--i) * .06s); }
.mmenu.is-open .mmenu__label > span { transform: none; transition: transform .75s var(--ease) calc(.2s + var(--i) * .06s); }
.mmenu.is-open .mmenu__arrow { opacity: 1; transform: none; transition: opacity .5s var(--ease) calc(.4s + var(--i) * .06s), transform .5s var(--ease) calc(.4s + var(--i) * .06s), color .2s; }

.mmenu__foot { display: grid; gap: 22px; opacity: 0; transform: translate3d(0, 12px, 0); transition: opacity .2s, transform .2s; }
.mmenu.is-open .mmenu__foot { opacity: 1; transform: none; transition: opacity .6s var(--ease) .55s, transform .6s var(--ease) .55s; }
.mmenu__cta { width: 100%; justify-content: space-between; height: 56px; }
.mmenu__meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid var(--line); }
.mmenu__email { color: var(--fg-2); font-size: 11px; text-transform: none; letter-spacing: .04em; }
.mmenu .social { margin: 0; }
.mmenu .social a { width: 44px; height: 44px; }        /* comfortable touch targets */

/* lock the page behind the open menu */
html.menu-open { overflow: hidden; }
html.menu-open .nav { background: var(--bg); }

@media (min-width: 981px) { .mmenu { display: none; } }
@media (max-width: 980px) { .nav__toggle { width: 44px; height: 44px; } .nav__toggle span { left: 13px; right: 13px; } .nav__toggle span:first-child { top: 17px; } .nav__toggle span:last-child { top: 25px; } .nav__toggle[aria-expanded="true"] span:first-child, .nav__toggle[aria-expanded="true"] span:last-child { top: 21px; } }

@media (prefers-reduced-motion: reduce) {
  .mmenu__bg, .mmenu.is-open .mmenu__bg { transform: none; opacity: 0; transition: opacity .2s !important; }
  .mmenu.is-open .mmenu__bg { opacity: 1; }
  .mmenu__label > span, .mmenu.is-open .mmenu__label > span { transform: none; }
  .mmenu__link::after { transform: none; }
}

/* ---------- slim footer wherever the full-screen menu is used (≤980px) ----------
   Navigation, email and social links live in the menu, so the footer keeps only
   the wordmark, the "Built and designed in North Dakota" line and Legal. */
@media (max-width: 980px) {
  .footer { padding: clamp(48px, 10vw, 72px) 0 calc(28px + env(safe-area-inset-bottom)); }
  .footer__top, .footer__base > span:first-child { display: none; }
  .footer__word { margin: 0 0 24px; }
  .footer__base { grid-template-columns: 1fr auto; justify-items: start; text-align: left; gap: 16px; padding-top: 18px; }
  .footer__base > :last-child { justify-self: end; }
  .footer__made { order: 0; }
}
@media (max-width: 480px) {
  .footer__base { grid-template-columns: 1fr; gap: 14px; }
  .footer__base > :last-child { justify-self: start; }
}

/* homepage About: space between the intro and the "More about me" button */
.about__copy > .btn { margin-top: clamp(28px, 3vw, 40px); }
