/* Golden Harbor Group — site styles
   Palette: harbor at night. Navy water, brass light, cool fog. */

:root {
  color-scheme: dark;
  --night: #0E1522;
  --deep: #142036;
  --tide: #22314D;
  --line: rgba(238, 214, 136, 0.16);
  --brass: #C3922E;
  --brass-light: #EED688;
  --fog: #E7EAEC;
  --fog-line: #C9CFD6;
  --text: #EEF0F2;
  --muted: #A3ACBB;
  --ink: #0E1522;
  --ink-muted: #4A5468;

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;

  /* Type scale (perfect fourth) */
  --t-xs: 0.875rem;
  --t-sm: 1rem;
  --t-md: 1.1875rem;
  --t-lg: 1.5rem;
  --t-xl: 2rem;
  --t-2xl: clamp(2.25rem, 4vw, 3.25rem);
  --t-3xl: clamp(2.75rem, 6.2vw, 5.5rem);

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: var(--t-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; text-wrap: balance; }

:focus-visible { outline: 2px solid var(--brass-light); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--brass-light); color: var(--ink); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 500 var(--t-sm)/1 var(--sans); letter-spacing: .01em;
  padding: 1em 1.6em; border-radius: 999px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn-gold { background: var(--brass-light); color: var(--ink); }
.btn-gold:hover { background: #F6E4A6; }
.btn-ghost { border-color: rgba(238, 240, 242, .35); color: var(--text); }
.btn-ghost:hover { border-color: var(--brass-light); color: var(--brass-light); }
.on-fog .btn-ghost { border-color: rgba(14, 21, 34, .3); color: var(--ink); }
.on-fog .btn-ghost:hover { border-color: var(--ink); }

.link {
  font-weight: 400; text-decoration: none; color: var(--brass-light);
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .3s var(--ease);
}
.link:hover { background-size: 100% 1px; }
.on-fog .link { color: #8A6418; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
  padding-top: env(safe-area-inset-top, 0px);
}
.site-header.scrolled { background: rgba(14, 21, 34, .92); backdrop-filter: blur(10px); border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
.nav a:not(.btn) { text-decoration: none; font-size: var(--t-sm); color: var(--muted); transition: color .2s; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--text); }
.nav .btn { padding: .75em 1.25em; }
.menu-toggle { display: none; background: none; border: 0; color: var(--text); padding: 8px; cursor: pointer; }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: flex-start;
    gap: 22px; padding: 28px var(--gutter) 36px; background: var(--night); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { font-size: var(--t-lg); color: var(--text); }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.hero-copy { position: relative; z-index: 2; width: 100%; padding-top: 140px; padding-bottom: clamp(36px, 6vh, 64px); }
.hero h1 {
  font-family: var(--serif); font-weight: 300; font-size: var(--t-3xl);
  line-height: 1.02; letter-spacing: -.015em; max-width: 15ch;
}
.hero-sub { margin-top: 28px; max-width: 54ch; color: var(--muted); font-size: var(--t-md); }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.harbor { position: relative; height: clamp(220px, 34vh, 380px); }
.harbor canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.glow { position: absolute; z-index: 1; left: 0; right: 0; bottom: clamp(220px, 34vh, 380px); height: 340px; pointer-events: none;
  background: radial-gradient(ellipse 34% 100% at var(--lx, 62%) 100%, rgba(214,166,62,.26), rgba(195,146,46,.08) 42%, transparent 70%);
  opacity: 0; transition: opacity 1.6s var(--ease) .4s; }
.loaded .glow { opacity: 1; }
.horizon {
  position: absolute; top: 0; left: 50%; height: 1px; width: 100%;
  transform: translateX(-50%) scaleX(0); transform-origin: center;
  background: linear-gradient(90deg, transparent, var(--brass) 18%, var(--brass-light) 50%, var(--brass) 82%, transparent);
}

/* Orchestrated load: horizon draws, then words rise */
.js .hero h1, .js .hero-sub, .js .hero-actions { opacity: 0; transform: translateY(14px); }
.loaded .horizon { animation: draw 1.3s var(--ease) .1s forwards; }
.loaded .hero h1 { animation: rise .9s var(--ease) .55s forwards; }
.loaded .hero-sub { animation: rise .9s var(--ease) .75s forwards; }
.loaded .hero-actions { animation: rise .9s var(--ease) .9s forwards; }
@keyframes draw { to { transform: translateX(-50%) scaleX(1); } }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 12vw, 150px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(48px, 7vw, 88px); }
.section-head h2 { font-family: var(--serif); font-weight: 300; font-size: var(--t-2xl); line-height: 1.1; letter-spacing: -.01em; }
.section-head p { margin-top: 20px; color: var(--muted); max-width: 58ch; }
.on-fog { background: var(--fog); color: var(--ink); }
.on-fog .section-head p, .on-fog .quiet { color: var(--ink-muted); }

/* Pillars: three columns of plain text, each topped by a brass rule */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
.pillar { border-top: 1px solid var(--brass); padding-top: 28px; display: flex; flex-direction: column; }
.pillar-promise { font-family: var(--serif); font-style: italic; font-size: var(--t-xl); color: var(--brass-light); line-height: 1.1; }
.pillar h3 { font-size: var(--t-md); font-weight: 500; margin-top: 10px; }
.pillar > p { color: var(--muted); margin-top: 14px; }
.pillar ul { list-style: none; padding: 0; margin: 8px 0 28px; }
.pillar li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: var(--t-sm); }
.pillar .link { margin-top: auto; align-self: flex-start; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; gap: 56px; } }

/* ---------- Work ---------- */
.work-list { display: flex; flex-direction: column; gap: clamp(72px, 10vw, 140px); }
.project { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.project:nth-child(even) { grid-template-columns: 5fr 7fr; }
.project:nth-child(even) .project-media { order: 2; }
.project-media {
  position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden;
  border-radius: 6px; background: var(--deep); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
}
.project-media img, .project-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.project-media video { opacity: 0; transition: opacity .4s var(--ease); }
.project-media.playing video { opacity: 1; }
.project-media::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(238,214,136,.12); border-radius: inherit; pointer-events: none; }
.js .project-media { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease); }
.js .project-media.in { clip-path: inset(0 0 0 0); }
.project-kind { color: var(--muted); font-size: var(--t-sm); }
.project h3 { font-family: var(--serif); font-weight: 400; font-size: var(--t-xl); margin-top: 6px; line-height: 1.1; }
.project-story { font-family: var(--serif); font-size: var(--t-lg); line-height: 1.3; margin-top: 18px; color: var(--text); }
.project-did { color: var(--muted); font-size: var(--t-sm); margin-top: 18px; }
.project blockquote { margin: 26px 0 0; padding-left: 18px; border-left: 1px solid var(--brass); }
.project blockquote p { font-size: var(--t-sm); color: var(--text); }
.project cite { font-style: normal; font-size: var(--t-xs); color: var(--muted); }
.project-links { margin-top: 26px; display: flex; gap: 24px; flex-wrap: wrap; font-size: var(--t-sm); }
@media (max-width: 860px) {
  .project, .project:nth-child(even) { grid-template-columns: 1fr; }
  .project:nth-child(even) .project-media { order: 0; }
}

.more-work { margin-top: clamp(80px, 10vw, 130px); padding-top: 32px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 220px 1fr; gap: 24px; }
.more-work h3 { font-size: var(--t-sm); font-weight: 500; color: var(--muted); }
.more-work ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 36px; font-family: var(--serif); font-size: var(--t-lg); }
@media (max-width: 700px) { .more-work { grid-template-columns: 1fr; } }

/* ---------- First 30 days: a real timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; position: relative; }
.timeline::before { content: ''; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--fog-line); }
.timeline li { position: relative; padding-top: 34px; }
.timeline li::before {
  content: ''; position: absolute; top: 0; left: 0; width: 15px; height: 15px; border-radius: 50%;
  background: var(--fog); border: 1px solid #8A6418;
}
.timeline li:last-child::before { background: #8A6418; }
.timeline .when { font-family: var(--serif); font-style: italic; font-size: var(--t-lg); color: #8A6418; line-height: 1; }
.timeline h3 { font-size: var(--t-md); font-weight: 500; margin-top: 12px; }
.timeline p { margin-top: 8px; color: var(--ink-muted); font-size: var(--t-sm); }
@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline::before { left: 7px; right: auto; top: 8px; bottom: 8px; width: 1px; height: auto; }
  .timeline li { padding: 0 0 32px 40px; }
  .timeline li::before { top: 4px; }
  .timeline h3 { margin-top: 6px; }
}

/* ---------- The Golden Harbor standard ---------- */
.on-deep { background: var(--deep); }
.standard-head { max-width: 640px; margin-bottom: clamp(48px, 7vw, 80px); }
.standard-head h2 { font-family: var(--serif); font-weight: 300; font-size: var(--t-2xl); line-height: 1.1; }
.standard-head p { margin-top: 18px; color: var(--muted); }
.needs { display: flex; flex-direction: column; }
.need { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(20px, 5vw, 80px); padding: clamp(28px, 4vw, 44px) 0; border-top: 1px solid rgba(238, 214, 136, .22); }
.need:last-child { border-bottom: 1px solid rgba(238, 214, 136, .22); }
.need-q { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.5rem, 2.6vw, 2.125rem); line-height: 1.2; color: var(--muted); margin: 0; }
.need h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.75rem, 3vw, 2.375rem); line-height: 1.1; color: var(--brass-light); }
.need h3 + p { margin-top: 14px; color: var(--text); max-width: 52ch; }
.need-fact { margin: 18px 0 0; padding-left: 14px; border-left: 1px solid var(--brass); font-size: var(--t-xs); color: var(--muted); max-width: 56ch; }
.need-fact cite { display: block; font-style: normal; opacity: .75; margin-top: 2px; }
@media (max-width: 760px) { .need { grid-template-columns: 1fr; } }

/* AHH feature list */
.features { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.features li { display: flex; flex-direction: column; gap: 4px; padding-top: 12px; border-top: 1px solid var(--line); font-size: var(--t-xs); color: var(--muted); line-height: 1.5; }
.features strong { font-weight: 500; color: var(--text); font-size: var(--t-sm); }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }

/* ---------- Founder note ---------- */
.note { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.note h2 { font-size: var(--t-sm); font-weight: 500; color: var(--muted); }
.note blockquote { margin: 0; }
.note blockquote p { font-family: var(--serif); font-weight: 300; font-size: clamp(1.5rem, 2.6vw, 2.125rem); line-height: 1.3; }
.note-sign { margin-top: 28px; display: flex; flex-direction: column; }
.note-sign .name { font-family: var(--serif); font-style: italic; font-size: var(--t-xl); color: var(--brass-light); }
.note-sign .role { color: var(--muted); font-size: var(--t-sm); }
@media (max-width: 760px) { .note { grid-template-columns: 1fr; } }

/* ---------- Closing CTA ---------- */
.closing { position: relative; overflow: hidden; text-align: left; border-top: 1px solid var(--line); }
.closing h2 { font-family: var(--serif); font-weight: 300; font-size: var(--t-3xl); line-height: 1.02; max-width: 14ch; letter-spacing: -.015em; }
.closing p { color: var(--muted); margin-top: 22px; max-width: 52ch; }
.closing .hero-actions { opacity: 1; transform: none; }

/* ---------- Footer ---------- */
.site-footer { background: #0A101B; border-top: 1px solid var(--line); padding: 64px 0 40px; font-size: var(--t-sm); color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-grid h3 { font-size: var(--t-sm); font-weight: 500; color: var(--text); margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--text); }
.footer-brand img { height: 44px; width: auto; margin-bottom: 18px; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: var(--t-xs); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Assistant ---------- */
.ask-btn {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--deep); color: var(--text); border: 1px solid rgba(238,214,136,.35);
  padding: 12px 18px 12px 14px; border-radius: 999px; font: 400 var(--t-sm)/1 var(--sans);
  cursor: pointer; box-shadow: 0 14px 34px -12px rgba(0,0,0,.7);
  transition: border-color .2s, transform .2s var(--ease);
}
.ask-btn:hover { border-color: var(--brass-light); transform: translateY(-2px); }
.ask-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brass-light); box-shadow: 0 0 0 4px rgba(238,214,136,.18); }
.ask-panel {
  position: fixed; right: 20px; bottom: 84px; z-index: 61;
  width: min(390px, calc(100vw - 24px)); height: min(580px, calc(100svh - 120px));
  background: var(--deep); border: 1px solid rgba(238,214,136,.22); border-radius: 14px;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.75);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateY(12px) scale(.98); transform-origin: bottom right; visibility: hidden;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.ask-panel.open { opacity: 1; transform: none; visibility: visible; }
.ask-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.ask-head strong { font-weight: 500; font-size: var(--t-sm); }
.ask-head small { display: block; color: var(--muted); font-size: var(--t-xs); }
.ask-close { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px; }
.ask-close:hover { color: var(--text); }
.ask-log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 86%; padding: 11px 14px; border-radius: 12px; font-size: .95rem; line-height: 1.5; white-space: pre-wrap; }
.msg.bot { background: rgba(255,255,255,.05); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.me { background: var(--brass-light); color: var(--ink); align-self: flex-end; border-bottom-right-radius: 4px; }
.msg.typing { color: var(--muted); }
.ask-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 12px; }
.ask-quick button {
  background: none; border: 1px solid rgba(238,214,136,.3); color: var(--text); border-radius: 999px;
  padding: 7px 12px; font: 400 var(--t-xs)/1.2 var(--sans); cursor: pointer;
}
.ask-quick button:hover { border-color: var(--brass-light); color: var(--brass-light); }
.ask-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.ask-form input {
  flex: 1; min-width: 0; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 999px;
  color: var(--text); padding: 11px 16px; font: 300 .95rem var(--sans);
}
.ask-form input:focus { outline: none; border-color: var(--brass-light); }
.ask-form button { background: var(--brass-light); color: var(--ink); border: 0; border-radius: 999px; padding: 0 16px; font: 500 var(--t-xs) var(--sans); cursor: pointer; }
.ask-note { padding: 0 18px 12px; color: var(--muted); font-size: .75rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .hero h1, .js .hero-sub, .js .hero-actions { opacity: 1; transform: none; }
  .horizon { transform: translateX(-50%) scaleX(1); }
  .js .project-media { clip-path: none; }
}

/* =========================================================
   Inner pages
   ========================================================= */
.page-hero { position: relative; padding: 160px 0 clamp(56px, 8vw, 96px); overflow: hidden; }
.page-hero .kicker { font-family: var(--serif); font-style: italic; font-size: var(--t-xl); color: var(--brass-light); line-height: 1; margin-bottom: 18px; }
.page-hero h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(2.5rem, 5.4vw, 4.5rem); line-height: 1.04; letter-spacing: -.015em; max-width: 18ch; }
.page-hero .lead { margin-top: 26px; max-width: 58ch; color: var(--muted); font-size: var(--t-md); }
.page-hero .hero-actions { opacity: 1; transform: none; }
.page-hero .horizon { top: auto; bottom: 0; }
.loaded .page-hero .horizon { animation: draw 1.3s var(--ease) .1s forwards; }

/* Service rows */
.svc-list { display: flex; flex-direction: column; }
.svc { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(20px, 5vw, 80px); padding: clamp(36px, 5vw, 56px) 0; border-top: 1px solid var(--line); }
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.75rem, 3vw, 2.375rem); line-height: 1.1; }
.svc .get { margin-top: 14px; color: var(--brass-light); font-size: var(--t-md); max-width: 34ch; }
.svc-body > p { color: var(--text); max-width: 60ch; }
.svc-body ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.svc-body li { font-size: var(--t-sm); color: var(--muted); padding-left: 16px; position: relative; }
.svc-body li::before { content: ''; position: absolute; left: 0; top: .72em; width: 6px; height: 1px; background: var(--brass); }
.svc-proof { margin: 22px 0 0; padding-left: 14px; border-left: 1px solid var(--brass); font-size: var(--t-sm); color: var(--muted); max-width: 60ch; }
.svc-proof a { color: var(--brass-light); }
@media (max-width: 760px) { .svc { grid-template-columns: 1fr; } .svc-body ul { grid-template-columns: 1fr; } }

/* Timeline variant with any number of steps */
.timeline.auto { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
@media (max-width: 900px) { .timeline.auto { grid-template-columns: 1fr; } }

/* Pillar cards on the services hub */
.hub { display: flex; flex-direction: column; }
.hub-row { display: grid; grid-template-columns: 4fr 5fr 3fr; gap: clamp(20px, 4vw, 56px); align-items: start; padding: clamp(36px, 5vw, 56px) 0; border-top: 1px solid var(--line); text-decoration: none; }
.hub-row:last-child { border-bottom: 1px solid var(--line); }
.hub-row .pillar-promise { margin: 0; }
.hub-row h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.6vw, 2.75rem); line-height: 1.05; margin-top: 8px; }
.hub-row p { color: var(--muted); margin: 0; }
.hub-row ul { list-style: none; margin: 0; padding: 0; font-size: var(--t-sm); display: grid; gap: 6px; }
.hub-row .go { color: var(--brass-light); margin-top: 16px; display: inline-block; }
.hub-row:hover h2 { color: var(--brass-light); }
@media (max-width: 860px) { .hub-row { grid-template-columns: 1fr; } }

/* Work index: compact list of more projects */
.work-table { list-style: none; margin: 0; padding: 0; }
.work-table li { display: grid; grid-template-columns: 4fr 4fr 3fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); align-items: baseline; }
.work-table li:last-child { border-bottom: 1px solid var(--line); }
.work-table .name { font-family: var(--serif); font-size: var(--t-lg); }
.work-table .type { color: var(--muted); font-size: var(--t-sm); }
.work-table .site { font-size: var(--t-sm); justify-self: end; }
@media (max-width: 700px) { .work-table li { grid-template-columns: 1fr; gap: 4px; } .work-table .site { justify-self: start; } }

/* About */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 6vw, 96px); }
.split h2 { font-family: var(--serif); font-weight: 300; font-size: var(--t-2xl); line-height: 1.1; }
.split .body p { max-width: 62ch; }
.split .body p + p { margin-top: 1em; }
.on-fog .split .body p { color: var(--ink); }
.facts { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 0; }
.facts li { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: var(--t-sm); }
.facts li:last-child { border-bottom: 1px solid var(--line); }
.facts .k { color: var(--muted); }
.on-fog .facts li { border-color: var(--fog-line); }
.on-fog .facts .k { color: var(--ink-muted); }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } .facts li { grid-template-columns: 1fr; gap: 2px; } }

/* Publications */
.pubs { list-style: none; margin: 0; padding: 0; }
.pubs li { padding: 28px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 140px 1fr; gap: 24px; }
.pubs li:last-child { border-bottom: 1px solid var(--line); }
.pubs .date { color: var(--muted); font-size: var(--t-sm); }
.pubs h3 { font-family: var(--serif); font-weight: 400; font-size: var(--t-lg); line-height: 1.25; }
.pubs p { color: var(--muted); font-size: var(--t-sm); margin-top: 8px; }
@media (max-width: 640px) { .pubs li { grid-template-columns: 1fr; gap: 6px; } }

/* Forms */
.form-wrap { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .form-wrap { grid-template-columns: 1fr; } }
.form { display: grid; gap: 20px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label { font-size: var(--t-sm); color: var(--text); }
.field label .opt { color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; background: rgba(255,255,255,.04); color: var(--text);
  border: 1px solid rgba(238,240,242,.18); border-radius: 8px; padding: 13px 14px;
  font: 300 var(--t-sm)/1.4 var(--sans);
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { color: #111; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brass-light); }
.field .err { color: #F2A38C; font-size: var(--t-xs); min-height: 1em; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #F2A38C; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: var(--t-xs); color: var(--muted); }
.form-status { padding: 28px; border: 1px solid var(--line); border-radius: 10px; }
.form-status h3 { font-family: var(--serif); font-size: var(--t-xl); color: var(--brass-light); }
.form-status p { margin-top: 10px; color: var(--muted); }
.aside-card { border-top: 1px solid var(--brass); padding-top: 24px; }
.aside-card h2 { font-family: var(--serif); font-weight: 400; font-size: var(--t-xl); }
.aside-card p { color: var(--muted); margin-top: 10px; }
.aside-card .big { font-family: var(--serif); font-size: var(--t-xl); color: var(--text); text-decoration: none; }
.aside-card ol { padding-left: 20px; color: var(--muted); margin: 12px 0 0; }
.aside-card ol li { margin-bottom: 8px; }
.aside-card + .aside-card { margin-top: 40px; }

/* Legal prose */
.prose { max-width: 70ch; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: var(--t-xl); margin: 2em 0 .5em; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 20px; }
.prose a { color: var(--brass-light); }

/* ---------- Case studies ---------- */
.link-quiet { color: var(--muted); }
.link-quiet:hover { color: var(--text); }
.more-work ul a { color: var(--text); text-decoration: none; background-image: linear-gradient(var(--brass-light), var(--brass-light)); background-size: 0% 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .3s var(--ease), color .3s var(--ease); }
.more-work ul a:hover, .more-work ul a:focus-visible { color: var(--brass-light); background-size: 100% 1px; }

.cs-hero { padding-bottom: clamp(40px, 5vw, 64px); }
.cs-hero .kicker { font-family: var(--sans); font-style: normal; font-size: var(--t-sm); color: var(--brass-light); letter-spacing: .04em; margin-bottom: 14px; }
.cs-hero h1 { max-width: 16ch; }
.cs-meta { margin: clamp(36px, 5vw, 56px) 0 0; display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 24px; border-top: 1px solid var(--line); padding-top: 22px; }
.cs-meta dt { font-size: var(--t-xs); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.cs-meta dd { margin: 6px 0 0; font-size: var(--t-sm); color: var(--text); }
@media (max-width: 760px) { .cs-meta { grid-template-columns: 1fr; gap: 16px; } }

.cs-feature .wrap { padding-bottom: clamp(24px, 4vw, 48px); }
.cs-media { aspect-ratio: 16 / 9; }
.cs-media video { opacity: 0; }
.cs-media.playing video { opacity: 1; }

.cs-built { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(24px, 3vw, 48px); }
.cs-built li { border-top: 1px solid var(--fog-line); padding: 22px 0 30px; display: flex; flex-direction: column; gap: 8px; }
.cs-built strong { font-family: var(--serif); font-weight: 400; font-size: var(--t-lg); line-height: 1.15; color: var(--ink); }
.cs-built span { color: #3A4556; font-size: var(--t-sm); }
@media (max-width: 960px) { .cs-built { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cs-built { grid-template-columns: 1fr; } }

.cs-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.cs-gallery figure { margin: 0; }
.cs-gallery img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 6px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6), inset 0 0 0 1px rgba(238,214,136,.12); display: block; }
.cs-gallery figcaption { margin-top: 12px; font-size: var(--t-sm); color: var(--muted); }
.cs-gallery figure:nth-child(2) { margin-top: clamp(0px, 6vw, 80px); }
@media (max-width: 700px) { .cs-gallery { grid-template-columns: 1fr; } .cs-gallery figure:nth-child(2) { margin-top: 0; } }

.cs-quote { margin: 0; max-width: 34ch; }
.cs-quote p { font-family: var(--serif); font-weight: 300; font-size: clamp(1.75rem, 3.4vw, 2.75rem); line-height: 1.2; color: var(--text); }
.cs-quote cite { display: block; margin-top: 22px; font-style: normal; font-size: var(--t-sm); color: var(--brass-light); }

.cs-next { border-top: 1px solid var(--line); }
.cs-next-label { font-size: var(--t-sm); color: var(--muted); }
.cs-next-link { display: inline-block; margin-top: 8px; font-family: var(--serif); font-weight: 300; font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.05; color: var(--text); text-decoration: none; transition: color .3s var(--ease), transform .4s var(--ease); }
.cs-next-link::after { content: ' →'; color: var(--brass-light); }
.cs-next-link:hover { color: var(--brass-light); transform: translateX(8px); }

/* ---------- Insights guides ---------- */
.guides { list-style: none; margin: 0; padding: 0; }
.guides li { border-top: 1px solid var(--line); }
.guides li:last-child { border-bottom: 1px solid var(--line); }
.guides a { display: grid; grid-template-columns: 64px 1fr 120px; gap: 24px; align-items: baseline; padding: 30px 0; text-decoration: none; color: var(--text); transition: padding .35s var(--ease); }
.guides a:hover { padding-left: 10px; }
.guide-n { font-family: var(--serif); font-style: italic; color: var(--brass-light); font-size: var(--t-lg); }
.guide-t strong { display: block; font-family: var(--serif); font-weight: 400; font-size: var(--t-xl); line-height: 1.15; transition: color .3s var(--ease); }
.guides a:hover .guide-t strong { color: var(--brass-light); }
.guide-t span { display: block; margin-top: 8px; color: var(--muted); font-size: var(--t-sm); max-width: 62ch; }
.guide-m { color: var(--muted); font-size: var(--t-xs); text-align: right; }
@media (max-width: 700px) { .guides a { grid-template-columns: 40px 1fr; } .guide-m { grid-column: 2; text-align: left; } }

.guide-hero .kicker { font-family: var(--sans); font-style: normal; font-size: var(--t-sm); letter-spacing: .04em; }
.guide-hero .kicker a { color: inherit; }
.guide-hero h1 { max-width: 22ch; font-size: clamp(2.25rem, 4.6vw, 3.75rem); }
.guide-hero .byline { margin-top: 20px; font-size: var(--t-xs); color: var(--muted); letter-spacing: .04em; }
.guide.prose { font-size: 1.0625rem; }
.guide.prose p + p { margin-top: 1em; }
.guide.prose ul, .guide.prose ol { padding-left: 22px; margin: 1em 0; }
.guide.prose li { margin-top: .6em; }
.guide.prose li::marker { color: var(--brass-light); }
.guide.prose strong { color: var(--text); font-weight: 500; }
.guide.prose h2 + p { margin-top: 0; }

/* ---------- Case study: at a glance + apps ---------- */
.cs-stats-wrap .wrap { padding-bottom: clamp(8px, 2vw, 24px); }
.cs-stats { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 0; }
.cs-stats div { display: flex; flex-direction: column; gap: 6px; }
.cs-stats dt { font-family: var(--serif); font-weight: 300; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1; color: var(--brass-light); }
.cs-stats dd { margin: 0; color: var(--muted); font-size: var(--t-sm); max-width: 26ch; }
@media (max-width: 700px) { .cs-stats { grid-template-columns: 1fr; gap: 20px; } }
.cs-result-tight { padding-top: 0; }

.cs-apps-strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 6px; box-shadow: 0 30px 60px -30px rgba(14,21,34,.45); background: #fff; scrollbar-width: thin; }
.cs-apps-strip img { flex: 0 0 auto; width: calc(100% / 6); min-width: 160px; height: auto; display: block; scroll-snap-align: start; }
.cs-apps-links { margin-top: 22px; display: flex; gap: 28px; flex-wrap: wrap; font-size: var(--t-sm); }
@media (max-width: 960px) { .cs-apps-strip img { width: 33.333%; } }
@media (max-width: 600px) { .cs-apps-strip img { width: 50%; } }

/* ---------- Client strip ---------- */
.clients { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; }
.clients-inner { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: center; }
.clients-label { font-size: var(--t-xs); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.clients-track { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.clients-track ul { list-style: none; margin: 0; padding: 0; display: flex; flex: 0 0 auto; gap: 48px; padding-right: 48px; animation: clients-scroll 60s linear infinite; }
.clients-track li { font-family: var(--serif); font-size: var(--t-lg); color: var(--text); white-space: nowrap; opacity: .82; }
.clients-track:hover ul { animation-play-state: paused; }
@keyframes clients-scroll { to { transform: translateX(-100%); } }
@media (max-width: 760px) { .clients-inner { grid-template-columns: 1fr; gap: 10px; } }
@media (prefers-reduced-motion: reduce) {
  .clients-track { -webkit-mask-image: none; mask-image: none; }
  .clients-track ul { animation: none; flex-wrap: wrap; gap: 8px 28px; flex: 1 1 auto; }
  .clients-track ul[aria-hidden] { display: none; }
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font-family: var(--serif); font-size: var(--t-lg); line-height: 1.25; color: var(--text); transition: color .25s var(--ease); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--sans); font-weight: 300; font-size: 1.5rem; color: var(--brass-light); transition: transform .3s var(--ease); }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary:hover, .faq-item summary:focus-visible { color: var(--brass-light); }
.faq-item p { color: var(--muted); padding: 0 40px 24px 0; max-width: 62ch; }

/* ---------- Guide short answer ---------- */
.answer-box { border: 1px solid var(--line); border-left: 2px solid var(--brass); border-radius: 4px; padding: 20px 24px; margin-bottom: 2.2em; background: rgba(238, 214, 136, .04); }
.answer-box .answer-label { font-size: var(--t-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--brass-light); margin-bottom: 8px; }
.answer-box p:last-child { color: var(--text); margin: 0; }
