/* ===========================================================
   Roak Systems — shared styles
   Aesthetic: warm editorial utilitarian.
   Paper + ink + one burnt accent. Hard grid. Mono labels.
   =========================================================== */

:root {
  /* Palette */
  --paper: #F5F1EA;
  --paper-2: #EDE7DC;
  --ink: #1A1A1A;
  --ink-2: #2A2A28;
  --muted: #6E6A62;
  --rule: #C8C0B0;
  --rule-strong: #1A1A1A;
  --accent: oklch(0.62 0.14 45);       /* burnt orange */
  --accent-ink: oklch(0.38 0.10 45);    /* deeper for hover */
  --accent-wash: oklch(0.94 0.03 60);   /* soft wash */

  /* Type */
  --serif: "Instrument Serif", "Times New Roman", serif;
  --serif-text: "Newsreader", "Times New Roman", serif;
  --sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Grid */
  --page-max: 1320px;
  --gutter: clamp(20px, 3vw, 40px);

  /* Motion */
  --ease: cubic-bezier(.2,.6,.2,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

::selection { background: var(--ink); color: var(--paper); }

/* ---------- Layout primitives ---------- */
.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
}

.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }
.rule-strong { border: 0; border-top: 1px solid var(--ink); margin: 0; }

/* ---------- Typography ---------- */
.display, h1.display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.022em;
  line-height: 0.98;
  color: var(--ink);
  margin: 0;
}
.lede, .mission-statement, .testimonial-q, .stat-caption, .foot-tag, .side-q, .form-success h3 {
  font-family: var(--serif-text);
  font-weight: 380;
}
h1 { font-size: clamp(44px, 7.2vw, 108px); line-height: 1.02; }
h2 { font-size: clamp(32px, 4.4vw, 60px); font-family: var(--serif); font-weight: 400; letter-spacing: -0.018em; line-height: 1.04; margin: 0; }
h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.012em; line-height: 1.15; margin: 0; }
h4 { font-family: var(--sans); font-weight: 600; font-size: 17px; margin: 0; letter-spacing: 0.01em; }
p { margin: 0 0 1em; }
.lede {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.35;
  color: var(--ink-2);
}

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kicker::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--ink);
}
.section-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

/* Italic editorial accent */
em.edit { font-family: var(--serif); font-style: italic; font-weight: 360; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(0px);
  background: transparent;
  transition: background .25s var(--ease), backdrop-filter .25s var(--ease), border-color .25s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in oklab, var(--paper) 86%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.logo img {
  height: 30px;
  width: auto;
  display: block;
}
.logo .sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: 4px;
}
/* Legacy text logo (still used in footer mark) */
.logo-text {
  font-family: var(--serif);
  font-weight: 380;
  font-size: 26px;
  letter-spacing: -0.015em;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
}
.logo-text .dot {
  width: 7px; height: 7px; background: var(--accent); border-radius: 50%;
  transform: translateY(-2px);
  display: inline-block;
}
.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 999px;
  position: relative;
}
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 1px; background: var(--ink);
}
.nav-links a:hover { color: var(--accent-ink); }
.nav-cta {
  margin-left: 8px;
}
.nav-links a.btn { color: var(--paper); }
.nav-links a.btn:hover { color: var(--paper); }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--ink); margin: 5px 0; transition: .25s var(--ease); }
@media (max-width: 780px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--paper);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding: 14px var(--gutter) 20px;
    gap: 0;
    align-items: stretch;
  }
  .nav.open .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--rule);
    text-align: left;
  }
  .nav.open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink);
  --fg: var(--paper);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--bg);
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn .arrow {
  display: inline-block;
  transition: transform .25s var(--ease);
}
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn:hover .arrow { transform: translateX(4px); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.btn-ghost {
  --bg: transparent;
  --fg: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.btn-accent {
  --bg: var(--accent);
  --fg: #fff;
  border-color: var(--accent);
}
.btn-accent:hover { background: var(--accent-ink); border-color: var(--accent-ink); }

.btn-sm {
  padding: 10px 16px;
  font-size: 11px;
}

/* ---------- Hero (home) ---------- */
.hero {
  padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 6vw, 80px);
  position: relative;
}
.hero-kicker-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
  gap: 24px;
  flex-wrap: wrap;
}
.hero h1 { max-width: 14ch; margin-bottom: clamp(32px, 4vw, 56px); }
.hero h1 .slash {
  display: inline-block;
  color: var(--accent);
  font-style: italic;
  font-weight: 300;
}
.hero-body {
  margin-top: clamp(40px, 5vw, 72px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 900px) {
  .hero-body { grid-template-columns: 1.2fr .9fr; gap: 64px; }
}
.hero-sub { max-width: 44ch; }
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Automation thread — the memorable moment */
.thread {
  border: 1px solid var(--ink);
  border-radius: 14px;
  background: var(--paper-2);
  padding: 20px 22px 22px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink);
  min-height: 260px;
  position: relative;
  overflow: hidden;
}
.thread-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed var(--rule);
  padding-bottom: 10px;
  margin-bottom: 10px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.thread-head .live::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 6px;
  transform: translateY(-1px);
  animation: pulse 1.8s infinite var(--ease);
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.thread-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 0;
}
.thread-line .tick {
  width: 14px; height: 14px;
  border: 1px solid var(--muted);
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 10px;
  color: transparent;
  transition: all .3s var(--ease);
}
.thread-line.done .tick {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.thread-line.done .task { text-decoration: line-through; color: var(--muted); }
.thread-line .task { flex: 1; }
.thread-line .time { color: var(--muted); font-size: 11px; }
.cursor {
  display: inline-block;
  width: 8px; height: 14px;
  background: var(--ink);
  vertical-align: -2px;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Section rhythm ---------- */
section {
  padding: clamp(64px, 8vw, 120px) 0;
  position: relative;
}
.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: clamp(32px, 4vw, 56px);
}
@media (min-width: 900px) {
  .section-head {
    grid-template-columns: 180px 1fr;
    gap: 32px;
    align-items: start;
  }
}
.section-head .meta { display: flex; flex-direction: column; gap: 10px; }
.section-head h2 { max-width: 22ch; }

/* Mission */
.mission-statement {
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(26px, 3vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.008em;
  max-width: 22ch;
}
.mission-statement .hl {
  background: linear-gradient(transparent 62%, var(--accent-wash) 62%);
  padding: 0 2px;
}

/* Industries cards */
.industries {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
@media (min-width: 820px) {
  .industries { grid-template-columns: 1fr 1fr; }
  .industries .industry + .industry { border-left: 1px solid var(--ink); }
}
.industry {
  padding: clamp(28px, 3vw, 44px) clamp(24px, 3vw, 40px) clamp(32px, 3vw, 48px);
  position: relative;
  transition: background .3s var(--ease);
}
.industry + .industry { border-top: 1px solid var(--ink); }
@media (min-width: 820px) {
  .industry + .industry { border-top: 0; }
}
.industry:hover { background: var(--paper-2); }
.industry .ind-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}
.industry .ind-ico {
  width: 56px; height: 56px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.industry h3 { margin-bottom: 12px; }
.industry p { color: var(--ink-2); max-width: 44ch; }
.industry .ind-tasks {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
}
.chip {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 5px 10px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: var(--paper);
}

/* Proof / stat */
.proof {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(64px, 8vw, 120px) 0;
  border-radius: 0;
}
.proof .mono { color: color-mix(in oklab, var(--paper) 60%, transparent); }
.proof .stat {
  font-family: var(--serif);
  font-weight: 320;
  font-size: clamp(80px, 14vw, 200px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin: 24px 0 16px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.proof .stat .unit {
  font-family: var(--mono);
  font-size: clamp(14px, 1.4vw, 18px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 400;
  align-self: flex-start;
  padding-top: 20px;
}
.proof .stat-caption {
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(22px, 2.4vw, 32px);
  max-width: 30ch;
  line-height: 1.25;
  color: color-mix(in oklab, var(--paper) 88%, transparent);
}
.proof .stat-caption em { color: var(--accent); font-style: normal; }
.proof-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 900px) {
  .proof-row { grid-template-columns: 1.4fr 1fr; gap: 80px; align-items: end; }
}
.proof .footnote-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid color-mix(in oklab, var(--paper) 22%, transparent);
}
.proof .footnote-list .fn-num {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 340;
  letter-spacing: -0.01em;
  display: block;
  margin-bottom: 4px;
}
.proof .footnote-list .fn-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--paper) 55%, transparent);
}
@media (max-width: 640px) {
  .proof .footnote-list { grid-template-columns: 1fr; }
}

/* Testimonial */
.testimonial {
  padding: clamp(72px, 9vw, 140px) 0;
}
.testimonial-q {
  font-family: var(--serif);
  font-weight: 320;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 22ch;
  margin: 0 0 40px;
  position: relative;
}
.testimonial-q::before {
  content: "“";
  font-family: var(--serif);
  font-size: 1.4em;
  color: var(--accent);
  line-height: 0;
  margin-right: 4px;
  vertical-align: -0.1em;
}
.testimonial-attr {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--ink);
}
.testimonial-attr .avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background:
    repeating-linear-gradient(135deg, var(--paper-2) 0 6px, var(--rule) 6px 7px);
  border: 1px solid var(--ink);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
}

/* Closing CTA */
.closing {
  padding: clamp(72px, 9vw, 130px) 0;
  border-top: 1px solid var(--ink);
}
.closing h2 { max-width: 18ch; }
.closing p { color: var(--ink-2); max-width: 50ch; margin-top: 16px; font-family: var(--serif); font-size: clamp(20px, 1.8vw, 24px); line-height: 1.3; }
.closing .cta-row { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
footer.site-foot {
  background: var(--paper);
  border-top: 1px solid var(--ink);
  padding: 64px 0 32px;
  font-size: 14px;
}
.foot-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 820px) {
  .foot-top { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.foot-brand .logo-text { font-size: 32px; }
.foot-tag {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.3;
  margin-top: 16px;
  max-width: 24ch;
  color: var(--ink-2);
}
.foot-col h5 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
  font-weight: 500;
}
.foot-col a, .foot-col span {
  display: block;
  text-decoration: none;
  color: var(--ink);
  padding: 5px 0;
  font-family: var(--sans);
  font-size: 15px;
}
.foot-col a:hover { color: var(--accent-ink); }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  gap: 16px;
  flex-wrap: wrap;
}
.foot-mark {
  display: block;
  margin: 48px 0 -8px;
  user-select: none;
  overflow: hidden;
  line-height: 0;
}
.foot-mark img {
  width: auto;
  height: clamp(64px, 10vw, 140px);
  display: block;
  object-fit: contain;
  object-position: left center;
}

/* ---------- How page ---------- */
.page-intro {
  padding: clamp(48px, 6vw, 96px) 0 clamp(40px, 5vw, 64px);
}
.page-intro .top-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ink);
  flex-wrap: wrap;
  gap: 16px;
}
.page-intro h1 {
  font-size: clamp(54px, 8.5vw, 128px);
  margin-bottom: 24px;
}
.page-intro .lede { max-width: 34ch; margin-top: 24px; }

.steps {
  border-top: 1px solid var(--ink);
}
.step {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: clamp(32px, 4vw, 56px) 0;
  border-bottom: 1px solid var(--ink);
  position: relative;
  transition: background .3s var(--ease);
}
@media (min-width: 900px) {
  .step {
    grid-template-columns: 120px 2fr 1.3fr;
    gap: 48px;
    align-items: start;
  }
}
.step:hover { background: var(--paper-2); }
.step .step-num {
  font-family: var(--serif);
  font-weight: 320;
  font-size: clamp(44px, 5.5vw, 80px);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.step .step-num .sm {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}
.step h3 {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 380;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.step .step-body p { color: var(--ink-2); max-width: 46ch; margin: 0 0 18px; }
.step .step-body .mono-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.step .step-body .mono-list li {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  padding: 6px 0;
  border-bottom: 1px dashed var(--rule);
  display: flex;
  gap: 12px;
}
.step .step-body .mono-list li::before {
  content: "→";
  color: var(--accent);
}

.step .step-side {
  align-self: start;
  padding: 20px;
  border: 1px solid var(--rule-strong);
  border-radius: 10px;
  background: var(--paper);
}
.step .step-side .side-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.step .step-side .side-q {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 360;
  font-size: 18px;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 14px;
}
.step .step-side .side-a {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
}

.midcta {
  padding: clamp(64px, 8vw, 120px) 0;
  border-bottom: 1px solid var(--ink);
  text-align: left;
}
.midcta h2 { max-width: 18ch; margin-bottom: 28px; }

/* ---------- About page ---------- */
.about-intro {
  padding: clamp(48px, 6vw, 96px) 0 clamp(48px, 6vw, 80px);
}
.about-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 900px) {
  .about-cols {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
}
.about-block h3 { margin-bottom: 16px; }
.about-block p { color: var(--ink-2); }

.team {
  padding: clamp(64px, 8vw, 110px) 0;
  border-top: 1px solid var(--ink);
}
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-top: 48px;
}
@media (min-width: 820px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}
.bio {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.bio-portrait {
  aspect-ratio: 4/5;
  width: 100%;
  background: var(--paper-2);
  border: 1px solid var(--ink);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}
.bio-portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 22px, color-mix(in oklab, var(--ink) 6%, transparent) 22px 23px),
    repeating-linear-gradient(0deg, transparent 0 22px, color-mix(in oklab, var(--ink) 4%, transparent) 22px 23px);
  pointer-events: none;
}
.bio-portrait .initials {
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(80px, 12vw, 140px);
  letter-spacing: -0.03em;
  line-height: 0.9;
  color: var(--ink);
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
}
.bio-portrait .tag {
  position: absolute;
  top: 14px; left: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--paper);
  padding: 4px 8px;
  border: 1px solid var(--rule);
}
.bio h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; letter-spacing: -0.01em; margin: 0; }
.bio .role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-top: -6px;
}
.bio p { color: var(--ink-2); font-size: 15.5px; line-height: 1.55; margin: 0; }

/* ---------- Contact page ---------- */
.contact-wrap {
  padding: clamp(48px, 6vw, 88px) 0 clamp(72px, 8vw, 120px);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-top: 40px;
}
@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
  }
}
.contact-side h3 { margin-bottom: 16px; }
.contact-side p { color: var(--ink-2); margin-bottom: 32px; max-width: 36ch; }
.contact-meta {
  border-top: 1px solid var(--ink);
  padding-top: 24px;
}
.contact-meta .row {
  display: grid;
  grid-template-columns: 140px 1fr;
  padding: 14px 0;
  border-bottom: 1px dashed var(--rule);
  font-size: 15px;
}
.contact-meta .row .k {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 2px;
}
.contact-meta .row .v { color: var(--ink); }
.contact-meta .row .v a { text-decoration: none; border-bottom: 1px solid var(--ink); }

/* Form */
.form {
  display: grid;
  gap: 20px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.field label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.field label .req { color: var(--accent-ink); }
.field input, .field select, .field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  padding: 10px 0;
  font-family: var(--sans);
  font-size: 17px;
  color: var(--ink);
  border-radius: 0;
  outline: none;
  transition: border-color .2s var(--ease);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; font-family: var(--sans); }
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%231A1A1A' stroke-width='1.2' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 2px center;
  padding-right: 28px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-bottom-color: var(--accent);
}
.field .err {
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  display: none;
  margin-top: -2px;
}
.field.has-error .err { display: block; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-bottom-color: var(--accent-ink); }

.field.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 640px) {
  .field.two { grid-template-columns: 1fr; }
}

.form .submit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--ink);
}
.form .submit-hint {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.form-success {
  display: none;
  padding: 48px 32px;
  border: 1px solid var(--ink);
  border-radius: 14px;
  background: var(--paper-2);
  text-align: center;
}
.form-success.show { display: block; }
.form-success .check {
  width: 56px; height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 32px;
}
.form-success h3 { margin-bottom: 12px; }
.form-success p { color: var(--ink-2); }

/* ---------- Reveal anim ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Utilities ---------- */
.col-span-6 { grid-column: span 12; }
@media (min-width: 820px) { .col-span-6 { grid-column: span 6; } }
.col-span-7 { grid-column: span 12; }
@media (min-width: 820px) { .col-span-7 { grid-column: span 7; } }
.col-span-5 { grid-column: span 12; }
@media (min-width: 820px) { .col-span-5 { grid-column: span 5; } }
.col-span-4 { grid-column: span 12; }
@media (min-width: 820px) { .col-span-4 { grid-column: span 4; } }
.col-span-8 { grid-column: span 12; }
@media (min-width: 820px) { .col-span-8 { grid-column: span 8; } }

.spacer-sm { height: 12px; }
.spacer-md { height: 32px; }
.spacer-lg { height: 64px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 14px;
  font-family: var(--mono);
  font-size: 12px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

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

/* ---------- Marquee for how page intro ---------- */
.marquee {
  display: flex;
  gap: 32px;
  overflow: hidden;
  white-space: nowrap;
  padding: 12px 0;
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(26px, 3.6vw, 48px);
  letter-spacing: -0.01em;
  color: var(--ink);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee .track {
  display: inline-flex;
  gap: 32px;
  animation: marquee 38s linear infinite;
  padding-left: 32px;
  align-items: center;
}
.marquee .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  flex-shrink: 0;
}
.marquee em { font-style: italic; color: var(--muted); font-weight: 340; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
