/* Roan Co — roanco.com (v3)
   Design system: Geist-dominant type, Geist-italic accents in pine #213a2c,
   roan #a8512c + gold #c89a4a accent phrases, ink panels @ 24px radius. */

:root {
  --bg: #f1ebde;
  --bg-elev: #ebe3d2;
  --cream: #f5efe1;
  --paper: #f7f2e7;
  --ink: #1c1a15;
  --ink-2: #3a3630;
  --roan: #a8512c;
  --roan-2: #8a3f1f;
  --gold: #c89a4a;
  --pine: #213a2c;
  --pine-deep: #17251b;
  --muted: #756d5e;
  --line: #d9cfb9;
  --line-2: #c4b89e;
  --radius: 12px;
  --radius-lg: 24px;
  --header-h: 62px;
  --mono: "Geist Mono", ui-monospace, "SF Mono", monospace;
  --sans: "Geist", -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

::selection { background: var(--roan); color: var(--cream); }

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

/* iOS 15.0–15.3 has no :focus-visible — keep a baseline focus ring there */
@supports not selector(:focus-visible) {
  a:focus, button:focus { outline: 2px solid var(--roan); outline-offset: 3px; }
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-wrap: break-word;
}

body.nav-open { overflow: hidden; }

.shell {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
  padding-left: max(32px, env(safe-area-inset-left));
  padding-right: max(32px, env(safe-area-inset-right));
}

/* ---------- type ---------- */

.display {
  font-size: clamp(40px, 5.2vw, 64px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.display .accent-pine { font-style: italic; color: var(--pine); }
.display .accent-roan { color: var(--roan); }
.display .accent-roan-i { font-style: italic; color: var(--roan); }
.display .accent-gold { color: var(--gold); }

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin-bottom: 22px;
}

.kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--roan);
  flex: none;
}

.lede {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 460px;
  margin-top: 26px;
}

.mono-caps {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg); /* iOS < 16.2 can't parse color-mix — without this the header goes fully transparent */
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(10px); /* unprefixed backdrop-filter only ships in Safari 18 */
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header-h);
}

.lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0; /* 30px mark + 14px = 44pt touch target */
  text-decoration: none;
  color: var(--ink);
}

.lockup .mark { width: 30px; height: 30px; flex: none; }

.lockup-name {
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav { display: flex; gap: 24px; margin: 0 auto; }

.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.nav a.active { color: var(--ink); border-bottom-color: var(--roan); }

/* ---------- mobile nav (hamburger + drawer) ---------- */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  margin-right: -10px;
  flex: none;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle .bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 29;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding-top: 8px;
  padding-bottom: max(20px, env(safe-area-inset-bottom));
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.mobile-nav.open { opacity: 1; transform: none; }

.mobile-nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding: 0 max(32px, env(safe-area-inset-left));
  font-size: 17px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  border-top: 1px solid var(--line);
}

.mobile-nav a:first-child { border-top: 0; }

.mobile-nav a .idx {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  min-width: 22px;
}

.mobile-nav a.active { color: var(--ink); }
.mobile-nav a.active .idx { color: var(--roan); }
.mobile-nav a:active { color: var(--roan-2); }

.mobile-nav .mobile-nav-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  margin: 16px max(32px, env(safe-area-inset-left)) 8px;
  padding: 0 22px;
  border-radius: 999px;
  border-top: 0;
  background: var(--ink);
  color: var(--cream);
  font-size: 15px;
  font-weight: 600;
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 28;
  background: rgba(28, 26, 21, 0.28);
  opacity: 0;
  transition: opacity 180ms ease;
  border: 0;
  padding: 0;
}

.nav-backdrop.open { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .mobile-nav, .nav-backdrop, .nav-toggle .bar { transition: none; }
  .mobile-nav { transform: none; }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease, transform 90ms ease;
}

.btn:active { transform: translateY(1px); }
.btn-lg { font-size: 15px; padding: 14px 28px; }

.btn-ink { background: var(--ink); color: var(--cream); }
.btn-roan { background: var(--roan); color: var(--cream); }
.btn-light { background: var(--cream); color: var(--ink); }

.btn .arrow { font-weight: 400; }

/* ---------- hash views ---------- */

.view { display: none; }
.view.active { display: block; }

/* No-JS fallback. app.js strips .no-js from <html> before paint, so this only
   applies when scripting is off or app.js failed to load. Without it the router
   never adds .active and every view stays hidden — a blank page below the header.
   Done as a class rather than <noscript><style> so the CSP needs no 'unsafe-inline'. */
.no-js .view { display: block; }
.no-js .nav-toggle { display: none; }        /* drawer is JS-only */
.no-js .reveal { opacity: 1; transform: none; }
/* Both are populated by JS and render empty without it. The picker's Calendly
   CTA and "what comes next" card sit outside these, so the section still converts. */
.no-js .work-grid,
.no-js .roan-start { display: none; }

/* ---------- utilities (were inline style attributes; moved out for the CSP) ---------- */

.svg-sprite { position: absolute; }
.lede-540 { max-width: 540px; }
.lede-560 { max-width: 560px; }
.mt-0 { margin-top: 0; }
.link-roan { color: var(--roan); }

/* ---------- reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 640ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 640ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- home hero ---------- */

.hero {
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h)); /* iOS Safari: 100vh overshoots the visible area while the toolbar shows */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}

.hero .mark { width: 96px; height: 96px; margin-bottom: 40px; }

.hero h1 {
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

.hero-tag {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--muted);
  margin-top: 22px;
}

.hero-down {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-top: 60px;
  color: var(--muted);
  font-size: 20px;
  text-decoration: none;
}

/* ---------- home triptych ---------- */

.triptych {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-top: 1px solid var(--line);
}

.trip {
  padding: 40px 32px 48px;
  text-decoration: none;
  color: inherit;
  border-left: 1px solid var(--line);
}

.trip:first-child { border-left: 0; }

.trip .mono-caps { color: var(--roan); }

.trip h3 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 14px 0 10px;
}

.trip p { font-size: 15px; color: var(--ink-2); }
.trip:active h3 { color: var(--roan-2); }

/* ---------- industries ticker row ---------- */

.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-elev);
  padding: 14px 0;
  overflow: hidden;
}

.ticker-inner {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

/* ---------- sections ---------- */

/* top/bottom only — a `padding` shorthand here would zero out .shell's horizontal padding */
.section { padding-top: 96px; padding-bottom: 96px; }
.section-tight { padding-top: 72px; padding-bottom: 72px; }
.section-ruled { border-top: 1px solid var(--line); }

.sec-split {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.sec-art { justify-self: end; align-self: center; color: var(--ink-2); }
.sec-art svg { display: block; }

/* ---------- cards ---------- */

.card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 32px;
}

.card-grid { display: grid; gap: 20px; margin-top: 56px; }
.cols-2 { grid-template-columns: 1fr 1fr; }
.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

.mini-card h4 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink);
  margin-bottom: 10px;
}

.mini-card p { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }

/* systems step card */

.step-card .step-tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--roan);
  margin-bottom: 14px;
}

.step-card h3 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin-bottom: 14px;
}

.step-card > p { font-size: 15px; color: var(--ink-2); }
.step-card h3 + p, .step-card .step-tag + h3 { margin-top: 0; }
.step-card .step-block + .step-block { margin-top: 34px; }

/* lettered lists (process step cards) */

.abc-list { list-style: none; margin-top: 20px; }

.abc-list li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--ink-2);
}

.abc-list .abc {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  min-width: 14px;
}

/* industry cards */

.ind-card .idx {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 12px;
  display: block;
}

.ind-card h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 10px; }
.ind-card p { font-size: 13.5px; color: var(--ink-2); }

.ind-card .tag {
  display: block;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--roan);
}

/* ---------- tech (Polis) cards ---------- */

.tech-card { position: relative; overflow: hidden; }

.tech-card .verb {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 8px;
}

.tech-card h3 { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 14px; }
.tech-card > p { font-size: 14.5px; color: var(--ink-2); }

.means {
  border-left: 2px solid var(--gold);
  padding-left: 16px;
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.tech-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  margin-top: 24px;
  padding: 16px 0 12px;
  border-top: 1px solid var(--line);
  background: none;
  border-left: 0; border-right: 0; border-bottom: 0;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  cursor: pointer;
}

.tech-toggle:active { color: var(--roan); }
.tech-toggle .plus { font-size: 15px; color: var(--gold); }

.tech-detail { display: none; margin-top: 18px; }
.tech-detail.open { display: block; }

.tech-detail li {
  list-style: none;
  font-size: 13.5px;
  color: var(--ink-2);
  padding: 10px 0;
  border-top: 1px dashed var(--line);
}

.why-band {
  margin-top: 48px;
  background: var(--bg-elev);
  border-left: 3px solid var(--roan);
  border-radius: var(--radius);
  padding: 28px 34px;
}

.why-band .mono-caps { margin-bottom: 12px; display: block; }
.why-band p { font-size: 15px; color: var(--ink-2); max-width: 860px; }

/* ---------- dark picker panel (industries) ---------- */

.picker {
  margin-top: 72px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #26402f 0%, var(--pine) 42%, var(--pine-deep) 100%);
  color: var(--cream);
  padding: 56px;
}

.picker .kicker { color: #b8c4b0; }
.picker .kicker::before { background: var(--gold); }

.picker h2 {
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 560px;
}

.picker h2 .accent-gold { color: var(--gold); }

.picker .sub {
  margin-top: 20px;
  font-size: 15px;
  color: #cdd6c6;
  max-width: 480px;
}

.picker-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 48px;
  margin-top: 44px;
  align-items: start;
}

.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.work-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-align: left;
  background: rgba(245, 239, 225, 0.04);
  border: 1px solid rgba(245, 239, 225, 0.16);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--cream);
  cursor: pointer;
  font: inherit;
  transition: border-color 140ms ease, background 140ms ease;
}

.work-item:active { border-color: rgba(245, 239, 225, 0.4); }

.work-item.on {
  background: rgba(200, 154, 74, 0.12);
  border-color: rgba(200, 154, 74, 0.65);
}

.work-item .box {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  border-radius: 4px;
  border: 1px solid rgba(245, 239, 225, 0.45);
  display: grid;
  place-items: center;
  font-size: 11px;
  color: var(--pine-deep);
}

.work-item.on .box { background: var(--gold); border-color: var(--gold); }

.work-item h4 { font-size: 14px; font-weight: 600; }
.work-item p { font-size: 12.5px; color: #b8c4b0; margin-top: 3px; line-height: 1.5; }

.picker-side .roan-start {
  border: 1px solid rgba(245, 239, 225, 0.2);
  background: rgba(245, 239, 225, 0.05);
  border-radius: 12px;
  padding: 22px 24px;
}

.roan-start-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #b8c4b0;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(245, 239, 225, 0.14);
}

.roan-start ol { list-style: none; }

.roan-start li {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(245, 239, 225, 0.1);
  font-size: 13px;
  color: #cdd6c6;
  line-height: 1.55;
}

.roan-start li:last-child { border-bottom: 0; }
.roan-start li .n { font-family: var(--mono); font-size: 10.5px; color: var(--gold); margin-top: 3px; }
.roan-start li strong { color: var(--cream); font-weight: 600; }

.roan-start .empty { padding: 18px 0 6px; font-size: 13px; color: #b8c4b0; }

.next-card {
  margin-top: 16px;
  background: var(--roan);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  color: var(--cream);
}

.next-card .mono-caps { color: rgba(245, 239, 225, 0.8); }
.next-card .line2 { font-family: var(--mono); font-size: 11.5px; margin-top: 8px; color: var(--cream); }
.next-card .step { font-size: 26px; font-weight: 500; letter-spacing: -0.02em; white-space: nowrap; }

.picker-note {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: #b8c4b0;
  line-height: 1.7;
}

.picker-cta { margin-top: 28px; }

/* ---------- numbered principles ---------- */

.principles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-top: 64px;
}

.principle { border-top: 1px solid var(--ink-2); padding-top: 22px; }

.principle .big-n {
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 14px;
}

.principle p { font-size: 13.5px; color: var(--ink-2); }

/* ethos (home) */

.ethos-list { list-style: none; margin-top: 56px; }

.ethos-list li {
  display: flex;
  gap: 28px;
  align-items: baseline;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  max-width: 880px;
}

.ethos-list .n { font-family: var(--mono); font-size: 12px; color: var(--gold); min-width: 28px; }
.ethos-list p { font-size: 16.5px; font-weight: 500; }

/* ---------- selected work ---------- */

.work-card {
  margin-top: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 48px;
}

.work-card .eng-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 18px;
}

.work-card h3 { font-size: 26px; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 16px; }

.work-card .body {
  font-style: italic;
  font-size: 15.5px;
  color: var(--ink-2);
}

.work-card .signed {
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.work-facets { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }

.facet {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 20px;
}

.facet h4 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.facet p {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- founder ---------- */

.founder-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 28px;
  max-width: 620px;
  margin-top: 56px;
}

.founder-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.founder-card .role {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 6px;
}

.founder-card h3 { font-size: 26px; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 10px; }
.founder-card p { font-size: 14.5px; color: var(--ink-2); }

.founder-card .reach {
  display: inline-block;
  margin-top: 2px;
  margin-bottom: -12px;
  padding: 12px 0; /* 44pt target; underline moved to text-decoration so it stays on the text */
  font-family: var(--mono);
  font-size: 12px;
  color: var(--roan);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 4px;
}

/* ---------- contact panel ---------- */

.contact-panel {
  margin: 72px 0;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(168, 81, 44, 0.35), transparent 60%),
    var(--ink);
  color: var(--cream);
  padding: 72px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.contact-panel .kicker { color: rgba(245, 239, 225, 0.55); }
.contact-panel .display { color: var(--cream); }
.contact-panel .sub { margin-top: 22px; font-size: 15px; color: rgba(245, 239, 225, 0.75); max-width: 420px; }

.contact-side {
  background: rgba(245, 239, 225, 0.06);
  border: 1px solid rgba(245, 239, 225, 0.16);
  border-radius: 14px;
  padding: 30px 32px;
}

.contact-side .mono-caps { color: rgba(245, 239, 225, 0.6); display: block; margin-bottom: 16px; }

.contact-side ul { list-style: none; margin-bottom: 26px; }

.contact-side li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(245, 239, 225, 0.12);
  font-size: 14px;
  color: rgba(245, 239, 225, 0.85);
}

.contact-side li:last-child { border-bottom: 0; }
.contact-side li .tick { color: var(--gold); font-family: var(--mono); }

.contact-side .note {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(245, 239, 225, 0.5);
  line-height: 1.8;
}

/* ---------- quick links row ---------- */

.quick-links {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  padding: 40px 0 72px;
  border-top: 1px solid var(--line);
}

.quick-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 6px;
  margin: -12px -6px; /* 44pt hit area without moving the visual layout */
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.quick-links .arrow { color: var(--roan); }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--line); background: var(--bg); }

.colophon {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 44px;
}

.colophon .lockup { margin-bottom: 16px; }
.colophon .about { font-size: 13px; color: var(--muted); max-width: 240px; }

.colophon-head {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 16px;
}

.colophon-nav { display: grid; gap: 2px; }

.colophon-nav a {
  display: block;
  padding: 11px 8px;
  margin: 0 -8px; /* keeps text aligned while the tap area clears 44pt */
  font-size: 13px;
  color: var(--ink-2);
  text-decoration: none;
}

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 20px;
  padding-bottom: max(28px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

/* ---------- hover styles, gated to real pointers so taps don't leave sticky states ---------- */

@media (hover: hover) {
  .nav a:hover { color: var(--ink); }
  .btn-ink:hover { background: #2c2921; }
  .btn-roan:hover { background: var(--roan-2); }
  .btn-light:hover { background: #fff; }
  .trip:hover h3 { color: var(--roan-2); }
  .tech-toggle:hover { color: var(--roan); }
  .work-item:hover { border-color: rgba(245, 239, 225, 0.4); }
  .founder-card .reach:hover { text-decoration-color: var(--roan); }
  .quick-links a:hover { color: var(--roan); }
  .colophon-nav a:hover { color: var(--roan); }
  .mobile-nav a:hover { color: var(--ink); }
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .header-inner { justify-content: space-between; gap: 14px; }
  .header-inner .lockup { margin-right: auto; }
  .header-inner .btn { font-size: 13px; padding: 12px 16px; min-height: 44px; white-space: nowrap; }
  .sec-split { grid-template-columns: 1fr; gap: 36px; }
  .sec-art { display: none; }
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .triptych { grid-template-columns: 1fr; }
  .trip { border-left: 0; border-top: 1px solid var(--line); }
  .trip:first-child { border-top: 0; }
  .picker {
    padding: 36px 28px;
    border-radius: 18px;
  }
  .picker-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .principles-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .work-card { grid-template-columns: 1fr; }
  .work-facets { grid-template-columns: 1fr 1fr; }
  .founder-card { grid-template-columns: 1fr; }
  .contact-panel { grid-template-columns: 1fr; padding: 44px 32px; margin: 40px 0; border-radius: 18px; }
  .colophon { grid-template-columns: 1fr 1fr; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .hero { min-height: 72vh; min-height: 72svh; }
}

/* tablet tier: iPad portrait (620-900px) gets two columns instead of the phone stack */
@media (min-width: 620px) and (max-width: 900px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr 1fr; }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .triptych { grid-template-columns: 1fr 1fr 1fr; }
  .trip { border-top: 0; border-left: 1px solid var(--line); }
  .trip:first-child { border-left: 0; }
}

/* landscape phones: compress the hero's vertical rhythm */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  .hero { min-height: auto; padding: 56px 24px 64px; }
  .hero .mark { width: 64px; height: 64px; margin-bottom: 24px; }
  .hero-down { margin-top: 28px; }
}

/* very narrow phones (320-359px): keep the header on one line */
@media (max-width: 359px) {
  .header-inner { gap: 10px; }
  .header-inner .btn { font-size: 12px; padding: 10px 12px; }
  .lockup .mark { width: 26px; height: 26px; }
  .lockup-name { font-size: 15.5px; }
}
