/* base media guard */
img, video, svg { max-width: 100%; height: auto; }

/* ============================================================
   TOKENS — light is the complete set; dark redefines tokens only
   ============================================================ */
:root {
  --paper:      #F2F3EF;
  --surface:    #FAFBF8;
  --surface-alt:#E9ECE6;
  --ink:        #14231E;
  --ink-soft:   #33453E;
  --ink-muted:  #5B6A63;
  --rule:       #D6DBD4;
  --rule-strong:#B9C2BA;
  --seal:       #A32438;
  --seal-ink:   #FFFFFF;
  --seal-wash:  rgba(163, 36, 56, 0.07);
  --shadow:     0 1px 2px rgba(20, 35, 30, .05), 0 8px 24px -12px rgba(20, 35, 30, .16);

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body:    "Newsreader", Georgia, "Times New Roman", serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --measure: 63ch;
  --wide: 1140px;
  --step--1: clamp(.82rem, .8rem + .1vw, .88rem);
  --step-0:  clamp(1.06rem, 1.01rem + .22vw, 1.19rem);
  --step-1:  clamp(1.25rem, 1.15rem + .4vw, 1.5rem);
  --step-2:  clamp(1.6rem, 1.4rem + .8vw, 2.1rem);
  --step-3:  clamp(2.1rem, 1.7rem + 1.7vw, 3.1rem);
  --step-4:  clamp(2.7rem, 1.9rem + 3.4vw, 4.9rem);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:      #101A17;
    --surface:    #16221E;
    --surface-alt:#1B2723;
    --ink:        #E8EDE8;
    --ink-soft:   #C3CDC7;
    --ink-muted:  #93A29B;
    --rule:       #263531;
    --rule-strong:#384A45;
    --seal:       #E05068;
    --seal-ink:   #14231E;
    --seal-wash:  rgba(224, 80, 104, 0.10);
    --shadow:     0 1px 2px rgba(0,0,0,.35), 0 10px 28px -14px rgba(0,0,0,.6);
  }
}
:root[data-theme="dark"] {
  --paper:      #101A17;
  --surface:    #16221E;
  --surface-alt:#1B2723;
  --ink:        #E8EDE8;
  --ink-soft:   #C3CDC7;
  --ink-muted:  #93A29B;
  --rule:       #263531;
  --rule-strong:#384A45;
  --seal:       #E05068;
  --seal-ink:   #14231E;
  --seal-wash:  rgba(224, 80, 104, 0.10);
  --shadow:     0 1px 2px rgba(0,0,0,.35), 0 10px 28px -14px rgba(0,0,0,.6);
}

/* ============================================================
   BASE
   ============================================================ */
* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, .u-display {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -.022em;
  line-height: 1.08;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--wide); margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 2.5rem); }
.measure { max-width: var(--measure); }

.eyebrow {
  font-family: var(--mono);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: .7rem;
}
.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 2px;
  background: var(--seal);
  flex: none;
}

.lede { font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); }

section { padding-block: clamp(2.5rem, 5vw, 4.25rem); }
.section-alt { background: var(--surface-alt); }
.stack { display: flex; flex-direction: column; }
.stack-sm  { gap: 1rem; }
.stack-md  { gap: 1.15rem; }
.stack-lg  { gap: clamp(1.5rem, 3vw, 2.25rem); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  font-family: var(--display);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1.4rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn-seal { background: var(--seal); color: var(--seal-ink); }
.btn-seal:hover { transform: translateY(-1px); }
.btn-ghost { border-color: var(--rule-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--seal);
  outline-offset: 3px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1rem;
}
.brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: -.02em;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: .1rem;
}
.brand .mark { color: var(--seal); }
.nav { display: flex; align-items: center; gap: 1.9rem; }
.nav a {
  font-family: var(--display);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: .01em;
  text-decoration: none;
  color: var(--ink-muted);
  transition: color .16s ease;
}
.nav a:hover { color: var(--ink); }
@media (max-width: 860px) { .nav { display: none; } }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-block: clamp(.75rem, 1.5vw, 1.25rem) clamp(2rem, 4vw, 3rem); }
.hero h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -.035em; max-width: 17ch; }
.hero h1 em { font-style: normal; color: var(--seal); }
.hero-sub { max-width: 54ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 2.2rem;
  padding-top: clamp(1.5rem, 2.5vw, 2rem);
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: var(--step--1);
  color: var(--ink-muted);
  letter-spacing: .01em;
}
.hero-meta b { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }

/* ============================================================
   THE FIVE STEPS — spine
   ============================================================ */
.steps { display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.step {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  padding-block: clamp(1.9rem, 3.5vw, 2.9rem);
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.step-num {
  font-family: var(--mono);
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--seal);
  letter-spacing: .08em;
  padding-top: .45rem;
  font-variant-numeric: tabular-nums;
}
.step h3 { font-size: var(--step-2); font-weight: 600; letter-spacing: -.026em; }
.step h3 span { display: block; font-family: var(--mono); font-size: var(--step--1); font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); margin-top: .6rem; }
.step-body { color: var(--ink-soft); }
.step-body p + p { margin-top: .9rem; }
@media (max-width: 780px) {
  .step { grid-template-columns: 3.2rem minmax(0, 1fr); }
  .step-body { grid-column: 2; }
}

.pillars { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.pillar {
  font-family: var(--mono);
  font-size: var(--step--1);
  color: var(--ink);
  background: var(--seal-wash);
  border: 1px solid color-mix(in srgb, var(--seal) 22%, transparent);
  padding: .3rem .6rem;
}

/* ============================================================
   DIMENSIONS GRID
   ============================================================ */
.dims { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.dim { background: var(--surface); padding: clamp(1.5rem, 3vw, 2.1rem); display: flex; flex-direction: column; gap: .65rem; }
.dim-label { font-family: var(--mono); font-size: var(--step--1); letter-spacing: .07em; text-transform: uppercase; color: var(--seal); }
.dim h3 { font-size: var(--step-1); font-weight: 600; letter-spacing: -.02em; }
.dim p { color: var(--ink-muted); font-size: .96em; line-height: 1.6; }

/* ============================================================
   PROOF
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.stat { display: flex; flex-direction: column; gap: .35rem; border-top: 2px solid var(--seal); padding-top: 1.1rem; }
.stat b { font-family: var(--display); font-size: var(--step-3); font-weight: 700; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { font-family: var(--mono); font-size: var(--step--1); color: var(--ink-muted); letter-spacing: .04em; line-height: 1.45; }

.deal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11.5rem), 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin: 0;
  padding: 0;
}
.deal-grid li {
  list-style: none;
  background: var(--surface);
  padding: 1.15rem 1.15rem 1.25rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: var(--step-1);
  letter-spacing: -.025em;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: .55rem;
}
.deal-grid li::before {
  content: "";
  width: .4rem;
  height: .4rem;
  background: var(--seal);
  flex: none;
  transform: translateY(-.1rem);
}

.clients {
  display: flex; flex-wrap: wrap; gap: .5rem 2rem;
  font-family: var(--mono); font-size: var(--step--1);
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted);
}

/* ============================================================
   PULL QUOTE
   ============================================================ */
.pull {
  border-left: 2px solid var(--seal);
  padding-left: clamp(1.25rem, 3vw, 2rem);
  font-size: var(--step-2);
  line-height: 1.35;
  letter-spacing: -.015em;
  font-family: var(--display);
  font-weight: 500;
  max-width: 26ch;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.4rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: var(--step-1);
  letter-spacing: -.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--seal); font-size: 1.2rem; flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding-bottom: 1.6rem; color: var(--ink-soft); max-width: var(--measure); }
.faq .answer p + p { margin-top: .9rem; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.direct { display: flex; flex-direction: column; gap: 1.3rem; }
.direct-item { display: flex; flex-direction: column; gap: .2rem; }
.direct-item .k { font-family: var(--mono); font-size: var(--step--1); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.direct-item .v { font-family: var(--display); font-weight: 600; font-size: var(--step-1); letter-spacing: -.02em; text-decoration: none; }
.direct-item .v:hover { color: var(--seal); }

form { display: flex; flex-direction: column; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-family: var(--mono); font-size: var(--step--1); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-muted); }
.field input, .field textarea, .field select {
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  padding: .75rem .85rem;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 7rem; }
.form-note { font-family: var(--mono); font-size: var(--step--1); color: var(--ink-muted); line-height: 1.5; }
.form-status { font-family: var(--mono); font-size: var(--step--1); color: var(--seal); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-foot { border-top: 1px solid var(--rule); padding-block: 2.5rem 3.5rem; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.2rem; font-family: var(--mono); font-size: var(--step--1); color: var(--ink-muted); }
.foot-row a { text-decoration: none; }
.foot-row a:hover { color: var(--ink); }

/* ============================================================
   MOTION
   ============================================================ */
.rise { opacity: 0; transform: translateY(14px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rise { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
  * { scroll-behavior: auto !important; }
}
html { scroll-behavior: smooth; }

/* ============================================================
   INTERIOR PAGES
   ============================================================ */
.page-head { padding-block: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.25rem); border-bottom: 1px solid var(--rule); }
.page-head h1 { font-size: var(--step-3); font-weight: 800; letter-spacing: -.032em; max-width: 20ch; }
.page-head .lede { max-width: 58ch; }

.detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 820px) { .detail { grid-template-columns: 1fr; } }

.aside {
  border-top: 2px solid var(--seal);
  padding-top: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.aside h3 {
  font-family: var(--mono);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0;
}
.aside ul { margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.aside li { list-style: none; font-size: .95em; line-height: 1.5; color: var(--ink-soft); padding-left: 1rem; position: relative; }
.aside li::before { content: ""; position: absolute; left: 0; top: .62em; width: .35rem; height: .35rem; background: var(--seal); }

.cta-band { border-top: 1px solid var(--rule); background: var(--surface-alt); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: clamp(2.5rem, 5vw, 4rem); }
.cta-inner h2 { font-size: var(--step-2); font-weight: 600; letter-spacing: -.026em; max-width: 22ch; }

.numbered { margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.1rem; counter-reset: n; }
.numbered li { list-style: none; position: relative; padding-left: 3rem; color: var(--ink-soft); }
.numbered li::before {
  position: absolute;
  left: 0;
  top: .22em;
  counter-increment: n;
  content: counter(n, decimal-leading-zero);
  font-family: var(--mono);
  font-size: var(--step--1);
  color: var(--seal);
  font-variant-numeric: tabular-nums;
}

.direct-item .v a { text-decoration: none; color: inherit; }
.direct-item .v a:hover { color: var(--seal); }

/* ============================================================
   ABOUT
   ============================================================ */
.bio { display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: clamp(1.75rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 820px) { .bio { grid-template-columns: 1fr; } }

.portrait { width: 100%; display: block; }
.portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 57% 35%;
  display: block;
  border: 1px solid var(--rule);
  background: var(--surface-alt);
}
.portrait figcaption {
  font-family: var(--mono);
  font-size: var(--step--1);
  color: var(--ink-muted);
  letter-spacing: .04em;
  line-height: 1.5;
  padding-top: .8rem;
  border-top: 2px solid var(--seal);
  margin-top: .9rem;
}
.portrait figcaption b { display: block; color: var(--ink); font-weight: 500; }

.bio-body p + p { margin-top: 1rem; }
.bio-body .lede { margin-bottom: .4rem; }

.numbered li b { color: var(--ink); font-weight: 600; }

/* About page: heading sits beside the portrait so both are above the fold */
.bio-body > .eyebrow { margin-bottom: .1rem; }
.bio-body > h1 { font-size: var(--step-3); font-weight: 800; letter-spacing: -.032em; margin-bottom: .4rem; }
.bio-lead { padding-top: clamp(.75rem, 1.5vw, 1.25rem) !important; }

/* Honeypot: off-canvas rather than display:none, which some bots detect and skip. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* wrap + measure on the same element let .measure override the container width,
   centring that section in the viewport instead of aligning it with the others.
   Keep the container at full width; constrain its children to the reading measure. */
.wrap.measure { max-width: var(--wide); }
.wrap.measure > * { max-width: var(--measure); }
