/* Layout: wide bands, a ~65ch reading column, asymmetric two-column sections; a slim sticky header.
   Direction: taken from John's photographs: flint and stone paper, navy bands, one amber accent (the watch strap). */
:root {
  --paper: #EAE7E1;
  --surface: #F6F4F0;
  --ink: #141B2B;
  --muted: #535A68;
  --line: #D3CEC5;
  --band: #141D30;
  --band-fg: #EEEBE5;
  --band-muted: #A9AFBE;
  --ember: #D18A2E;
  --ember-ink: #8A5410;
  --on-ember: #1C1306;
  --focus: #D18A2E;

  --f-display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --f-body: "Hanken Grotesk", -apple-system, "Segoe UI", system-ui, sans-serif;

  --s-xs: .8125rem; --s-sm: .9375rem; --s-md: 1.0625rem; --s-lg: 1.375rem;
  --s-xl: clamp(1.75rem, 3.2vw, 2.5rem); --s-2xl: clamp(2.5rem, 6.4vw, 5.25rem);
  --wrap: 72rem;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0D111A; --surface: #161C28; --ink: #E9E6E0; --muted: #9EA4B2; --line: #2A3142;
    --band: #172034; --band-fg: #EEEBE5; --band-muted: #A3AABA;
    --ember: #E09A44; --ember-ink: #EBAE62; --on-ember: #1C1306; --focus: #E09A44;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0D111A; --surface: #161C28; --ink: #E9E6E0; --muted: #9EA4B2; --line: #2A3142;
    --band: #172034; --band-fg: #EEEBE5; --band-muted: #A3AABA;
    --ember: #E09A44; --ember-ink: #EBAE62; --on-ember: #1C1306; --focus: #E09A44;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: var(--s-md); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 10; background: var(--paper);
}
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -0.015em; }
h1 { font-size: var(--s-2xl); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: var(--s-xl); font-weight: 650; }
h3 { font-size: var(--s-lg); font-weight: 600; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap {
  max-width: var(--wrap); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
}
.eyebrow {
  font-size: var(--s-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ember-ink);
}
.band .eyebrow { color: var(--ember); }
.lede { font-size: var(--s-lg); line-height: 1.5; color: var(--muted); max-width: 40ch; }
.prose { display: grid; gap: 1em; max-width: 65ch; }
.prose p { color: var(--ink); }
.muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em; font: 600 var(--s-sm)/1 var(--f-body);
  padding: .95em 1.4em; border-radius: 999px; text-decoration: none; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ember); color: var(--on-ember); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.wordmark { display: flex; flex-direction: column; text-decoration: none; line-height: 1; gap: .2rem; }
.wordmark b { font-family: var(--f-display); font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; }
.wordmark span { font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: var(--s-sm); color: var(--muted); }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--ember); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav .btn { padding: .75em 1.15em; }
.menu-btn { display: none; background: none; border: 1.5px solid var(--line); color: var(--ink); border-radius: 999px; padding: .5em 1em; font: 600 var(--s-sm) var(--f-body); cursor: pointer; }
@media (max-width: 760px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: .5rem max(16px, env(safe-area-inset-right, 0px)) 1.25rem max(16px, env(safe-area-inset-left, 0px)); }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: var(--s-md); }
  .nav .btn { margin-top: 1rem; justify-content: center; }
}

/* Sections */
section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.band { background: var(--band); color: var(--band-fg); }
.band .muted, .band .lede { color: var(--band-muted); }
.band .prose p { color: var(--band-fg); }
.section-head { display: grid; gap: .9rem; margin-bottom: clamp(2rem, 4vw, 3rem); max-width: 46rem; }
.split { display: grid; gap: clamp(2rem, 5vw, 5rem); }
@media (min-width: 900px) { .split { grid-template-columns: 5fr 7fr; align-items: start; } }
.split > * { min-width: 0; }

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 9vw, 7.5rem) clamp(3rem, 7vw, 5.5rem); border-bottom: 1px solid var(--line); }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero .wrap { position: relative; display: grid; gap: 1.5rem; }
.hero h1 { max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--ember-ink); }
.hero .lede { font-size: clamp(1.25rem, 2.2vw, 1.6rem); color: var(--ink); max-width: 30ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }
.page-hero h1 { font-size: clamp(2.25rem, 5vw, 4rem); max-width: 18ch; }

/* What we do: two ways */
.both-ways { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 640px) { .both-ways { grid-template-columns: 1fr 1fr; } }
.both-ways a { background: var(--surface); padding: 1.5rem; text-decoration: none; display: grid; gap: .4rem; align-content: start; transition: background-color .2s; }
.both-ways a:hover { background: var(--paper); }
.both-ways .tag { font-size: var(--s-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.both-ways h3 { display: flex; justify-content: space-between; gap: 1rem; }
.both-ways p { color: var(--muted); font-size: var(--s-sm); }

/* Testimonials */
.quotes { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
@media (min-width: 900px) { .quotes { grid-template-columns: 1fr 1fr; } }
.quote { display: grid; gap: 1.25rem; align-content: start; margin: 0; }
.quote blockquote { margin: 0; font-family: var(--f-display); font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.4; font-weight: 450; letter-spacing: -0.01em; }
.quote blockquote::before { content: "\201C"; display: block; font-size: 3.5rem; line-height: .6; color: var(--ember); margin-bottom: .6rem; }
.quote figcaption { display: grid; gap: .1rem; font-size: var(--s-sm); }
.quote figcaption b { font-weight: 600; }

/* Audience tabs */
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.tab {
  font: 600 var(--s-sm) var(--f-body); padding: .7em 1.2em; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--ink); border: 1.5px solid var(--line);
}
.tab[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.panel { display: grid; gap: 1.25rem; max-width: 65ch; }
.panel h3 { font-size: var(--s-xl); }
.panel ol { margin: 0; padding-left: 1.2rem; display: grid; gap: 1rem; }
.panel ol li::marker { font-family: var(--f-display); font-weight: 700; color: var(--ember-ink); }
.panel .btn { justify-self: start; margin-top: .5rem; }

/* Matchmaker */
.mm { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2.25rem); display: grid; gap: 1.5rem; }
.band .mm { color: var(--ink); }
.mm-progress { display: flex; gap: .35rem; }
.mm-progress span { height: 4px; flex: 1; border-radius: 2px; background: var(--line); transition: background-color .25s; }
.mm-progress span.done { background: var(--ember); }
.mm-step { font-size: var(--s-xs); color: var(--muted); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.mm-q { font-family: var(--f-display); font-size: var(--s-lg); font-weight: 600; line-height: 1.25; }
.mm-opts { display: grid; gap: .6rem; }
@media (min-width: 640px) { .mm-opts { grid-template-columns: 1fr 1fr; } }
.mm-opt {
  text-align: left; font: 500 var(--s-sm)/1.4 var(--f-body); color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 10px; padding: .95rem 1.1rem; cursor: pointer; transition: border-color .15s, transform .15s;
}
.mm-opt:hover { border-color: var(--ember); transform: translateY(-1px); }
.mm-nav { display: flex; justify-content: space-between; gap: 1rem; }
.linkish { background: none; border: 0; padding: 0; font: 600 var(--s-sm) var(--f-body); color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.mm-result { display: grid; gap: 1.1rem; }
.mm-result h3 { font-size: var(--s-xl); }
.mm-result h3 em { font-style: normal; color: var(--ember-ink); }
.mm-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill { font-size: var(--s-xs); font-weight: 600; padding: .4em .85em; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.pill.primary { background: var(--ember); border-color: var(--ember); color: var(--on-ember); }
.mm-note { font-size: var(--s-sm); color: var(--muted); }
.mm-result .row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* How it works: flip cards */
.steps { display: grid; gap: 1rem; list-style: none; padding: 0; margin: 0; counter-reset: step; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.flip { perspective: 1200px; min-height: 17rem; display: grid; }
.flip button {
  all: unset; box-sizing: border-box; display: grid; cursor: pointer; position: relative; transform-style: preserve-3d;
  transition: transform .6s cubic-bezier(.2,.7,.2,1); border-radius: var(--radius);
}
.flip button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.flip button[aria-pressed="true"] { transform: rotateY(180deg); }
.face {
  grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: var(--radius);
  padding: 1.6rem; display: grid; align-content: space-between; gap: 1.5rem; border: 1px solid color-mix(in srgb, var(--band-fg) 18%, transparent);
}
.face.front { background: color-mix(in srgb, var(--band-fg) 6%, transparent); }
.face.back { background: var(--band-fg); color: var(--band); transform: rotateY(180deg); border-color: transparent; }
.face .n { font-family: var(--f-display); font-size: 3.25rem; font-weight: 700; line-height: 1; color: var(--ember); }
.face .ft { font-family: var(--f-display); font-size: 1.5rem; font-weight: 600; line-height: 1.1; }
.face .hint { font-size: var(--s-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--band-muted); font-weight: 600; }
.face.back > span:not(.ft) { font-size: var(--s-md); }
@media (prefers-reduced-motion: reduce) {
  .flip button { transition: none; }
}

/* AI this month */
.monthly { display: grid; gap: 1rem; border: 1.5px dashed var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); }
.monthly .stamp { font-variant-numeric: tabular-nums; font-size: var(--s-xs); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* Bio */
.facts { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: var(--s-xs); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: .2rem; }
.facts dd { margin: 0; }

/* Contact */
.form { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; } }
.form .two { display: grid; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: var(--s-sm); font-weight: 600; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px; padding: .8rem .95rem; width: 100%;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ember); }
.form-status { font-size: var(--s-sm); padding: .9rem 1rem; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }

/* Services page */
.svc-layout { display: grid; gap: 2.5rem; }
@media (min-width: 980px) { .svc-layout { grid-template-columns: 14rem 1fr; gap: 4rem; } }
.svc-index { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 5.5rem); align-self: start; display: grid; gap: .25rem; }
.svc-index a { text-decoration: none; color: var(--muted); font-weight: 500; padding: .45rem 0 .45rem .9rem; border-left: 2px solid var(--line); font-size: var(--s-sm); }
.svc-index a:hover, .svc-index a.active { color: var(--ink); border-left-color: var(--ember); }
@media (max-width: 979px) {
  .svc-index { position: static; display: flex; flex-wrap: wrap; gap: .5rem; }
  .svc-index a { border: 1.5px solid var(--line); border-radius: 999px; padding: .45rem .9rem; }
}
.svc { display: grid; gap: 1.4rem; padding-block: 0 clamp(3rem, 6vw, 5rem); scroll-margin-top: 6rem; }
.svc + .svc { padding-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--line); }
.svc .kicker { font-family: var(--f-display); font-size: var(--s-lg); font-weight: 500; color: var(--ember-ink); max-width: 40ch; line-height: 1.3; }
.svc .btn { justify-self: start; }
.duo { display: grid; gap: 1rem; }
@media (min-width: 760px) { .duo { grid-template-columns: 1fr 1fr; } }
.duo > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: .9rem; align-content: start; min-width: 0; }
.duo .tag { font-size: var(--s-xs); letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.next-step { font-size: var(--s-sm); color: var(--muted); max-width: 65ch; padding-left: 1rem; border-left: 2px solid var(--ember); }

/* Story: why + values */
.pillars { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 860px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillars > div { background: var(--surface); padding: 1.6rem; display: grid; gap: .75rem; align-content: start; }
.pillars p { color: var(--muted); font-size: var(--s-sm); }
.values { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .1em .55em; font-family: var(--f-display); font-size: clamp(1.6rem, 4.2vw, 3.1rem); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
.values li { --glow: .42; opacity: var(--glow); transition: opacity .35s ease, color .35s ease; }
.values li:not(:last-child)::after { content: " /"; color: var(--ember); opacity: .7; font-weight: 400; }
.values li.lit { color: var(--ember); }
@media (prefers-reduced-motion: reduce) { .values li { transition: none; } }

/* Footer */
.site-footer { background: var(--band); color: var(--band-fg); padding-block: 3.5rem 2.5rem; }
.site-footer .wrap { display: grid; gap: 2.5rem; }
.foot-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.5rem; }
.foot-cta h2 { max-width: 18ch; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; padding-top: 1.5rem; border-top: 1px solid color-mix(in srgb, var(--band-fg) 18%, transparent); font-size: var(--s-sm); color: var(--band-muted); }
.foot-links nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.foot-links a { text-decoration: none; color: var(--band-muted); }
.foot-links a:hover { color: var(--band-fg); }

/* Photo hero */
.hero-photo { background: var(--band); color: var(--band-fg); border-bottom: 0; padding: 0; display: grid; grid-template-areas: "stack"; min-height: min(28rem, 70vh); align-items: end; }
.hero-photo > * { grid-area: stack; }
.hero-photo .hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; max-width: 100%; }
.hero-photo::after { content: ""; grid-area: stack; background: linear-gradient(to top, var(--band) 0%, color-mix(in srgb, var(--band) 80%, transparent) 50%, transparent 80%); }
.hero-photo .wrap { z-index: 1; padding-block: 2.25rem 3rem; }
.hero-photo .lede { color: var(--band-fg); }
.hero-photo h1 em { color: var(--ember); }
.hero-photo .eyebrow { color: var(--ember); }
@media (min-width: 900px) {
  .hero-photo { min-height: min(44rem, 78vh); align-items: center; }
  .hero-photo .hero-img { object-position: center 15%; }
  .hero-photo::after { background: linear-gradient(90deg, var(--band) 0%, color-mix(in srgb, var(--band) 85%, transparent) 34%, transparent 62%); }
  .hero-photo .wrap { width: 100%; padding-block: 4rem; }
}
.hero-photo .wrap { position: relative; }
@media (max-width: 899px) and (orientation: portrait) {
  .hero-photo { grid-template-areas: "img" "wrap"; min-height: auto; align-items: start; }
  .hero-photo .hero-img { grid-area: img; height: auto; aspect-ratio: 1; object-position: center 15%; }
  .hero-photo::after { display: none; }
  .hero-photo .wrap { grid-area: wrap; }
}

/* Portraits */
.portrait { margin: 0; display: grid; gap: .6rem; }
.portrait img { width: 100%; max-width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); display: block; background: var(--line); }
.portrait figcaption { font-size: var(--s-xs); color: var(--muted); }
.page-hero .hero-split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .page-hero .hero-split { grid-template-columns: 7fr 4fr; gap: 4rem; } }
.page-hero .hero-split > * { min-width: 0; }
.page-hero .hero-split .portrait img { max-height: 30rem; }
@media (max-width: 899px) { .page-hero .hero-split .portrait img { aspect-ratio: 3 / 2; object-position: 50% 25%; } }

/* AI note */
.note { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .note { grid-template-columns: 5fr 7fr; gap: 4rem; } }
.note > * { min-width: 0; }
.note h3 { font-size: var(--s-xl); }
.note .sources { font-size: var(--s-sm); color: var(--muted); display: grid; gap: .35rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.note .sources a { color: var(--ember-ink); }
.note .ask { font-family: var(--f-display); font-size: var(--s-lg); font-weight: 500; line-height: 1.3; color: var(--ember-ink); }

/* CV timeline */
.facts.cv div { grid-template-columns: 7.5rem 1fr; }
.facts.cv dt { font-variant-numeric: tabular-nums; letter-spacing: .04em; }
@media (max-width: 480px) { .facts div, .facts.cv div { grid-template-columns: 1fr; gap: .2rem; } }

/* Pull quote inside a service */
.quote.pull { max-width: 52ch; padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.quote.pull blockquote { font-size: 1.15rem; }
.quote.pull blockquote::before { font-size: 2.75rem; }
