/* ============================================================
   Minerva Logic v2 - site styles
   Pill nav, callout row, module rows, amber glow.

   Fonts are loaded with a <link> in each page head, not with an
   @import here, so the browser can start fetching them alongside
   this file instead of waiting for it to parse.

   Palette values are the brand kit hexes converted to oklch. If a
   color changes in brand/brand.css it has to change here too.
   ============================================================ */

:root {
  --bg:        #100D0A;
  --bg-2:      #15110D;
  --panel:     rgba(236, 231, 221, 0.022);
  --panel-2:   rgba(236, 231, 221, 0.04);
  --border:    rgba(236, 231, 221, 0.11);
  --border-2:  rgba(236, 231, 221, 0.17);
  --ink:       #F1ECE3;
  --ink-soft:  #B3AB9C;
  --ink-faint: #6E685B;

  --accent:     oklch(0.72 0.13 55);   /* Amber      #E28D4F */
  --accent-ink: oklch(0.80 0.11 60);   /* Amber ink  #F2AD73 */
  --accent-on:  #1A1206;               /* text sitting on an amber fill */
  --glow:       oklch(0.72 0.13 55 / 0.16);
  --glow-hi:    oklch(0.72 0.13 55 / 0.45);  /* hover halo   */
  --glow-drop:  oklch(0.72 0.13 55 / 0.50);  /* button shadow */
  --ring:       oklch(0.72 0.13 55 / 0.40);  /* hairline ring on hover */

  --font-display: 'Sora', system-ui, sans-serif;
  --font-serif:   'Newsreader', Georgia, serif;
  --font-body:    'Hanken Grotesk', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  --maxw: 1080px;
  --gutter: clamp(20px, 5vw, 64px);
  --r: 20px;
}

* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px; line-height: 1.6;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--bg); }

/* ---------- Focus ----------
   Every interactive thing on the site is a pill or a card with its own
   radius, and an outline follows that radius on its own, so one rule
   covers the lot. :focus-visible means a mouse click never shows it,
   only the keyboard does. */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn:focus-visible, .nav-cta:focus-visible, .brand:focus-visible { outline-offset: 4px; }

/* Skip link: first thing in the tab order, invisible until it has focus. */
.skip {
  position: fixed; top: 14px; left: 50%; z-index: 200;
  transform: translate(-50%, -200%);
  background: var(--accent); color: var(--accent-on);
  font-family: var(--font-mono); font-size: 12.5px;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 13px 22px; border-radius: 100px;
  transition: transform .25s cubic-bezier(.2,.8,.2,1);
}
.skip:focus { transform: translate(-50%, 0); }

/* ---------- Mouse-follow glow ---------- */
#glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 16%), var(--glow), transparent 70%);
  transition: background .18s ease-out;
}
/* static ambient glows */
#glow::before {
  content: ""; position: absolute; top: -10%; left: 50%; transform: translateX(-50%);
  width: 80vw; height: 60vh;
  background: radial-gradient(60% 60% at 50% 0%, var(--glow), transparent 72%);
  opacity: .7;
}

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); position: relative; z-index: 1; }
.section { padding-block: clamp(46px, 5.6vw, 78px); position: relative; z-index: 1; }
.center { text-align: center; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent-ink);
  display: inline-flex; gap: 9px; align-items: center;
}
.eyebrow::before, .eyebrow.dual::after {
  content: "·"; color: var(--accent); font-size: 1.1em;
}
.section-head { margin-bottom: clamp(26px, 3.2vw, 42px); }
.section-head.center { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1; letter-spacing: -0.025em;
  margin: 8px 0 0; text-wrap: balance; max-width: 24ch;
}
.section-head.center .section-title { margin-inline: auto; }
.section-title .em {
  font-family: var(--font-serif); font-style: italic; font-weight: 500;
  color: var(--accent-ink); letter-spacing: -0.01em;
}
.lead {
  font-size: clamp(17.5px, 1.8vw, 20px); color: var(--ink-soft);
  max-width: 60ch; line-height: 1.6; text-wrap: pretty; margin: 0;
}
.section-head.center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--font-mono); font-size: 13.5px; letter-spacing: 0.05em;
  text-transform: uppercase; padding: 15px 26px; border-radius: 100px;
  cursor: pointer; transition: transform .35s cubic-bezier(.2,.8,.2,1), gap .35s, box-shadow .35s, background .3s, border-color .3s;
  border: 1px solid transparent;
}
.btn .arr { transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.btn:hover { gap: 15px; }
.btn:hover .arr { transform: translateX(4px); }
.btn.primary {
  background: var(--accent); color: var(--accent-on); border-color: var(--accent);
  font-weight: 500;
  box-shadow: 0 0 0 0 var(--glow), 0 10px 30px -10px var(--glow-drop);
}
.btn.primary:hover { box-shadow: 0 0 30px -2px var(--glow-hi), 0 10px 30px -8px var(--glow-drop); }
.btn.ghost { background: var(--panel); color: var(--ink); border-color: var(--border-2); }
.btn.ghost:hover { border-color: var(--accent); background: var(--panel-2); }

/* ---------- Pill nav ---------- */
#top-fade {
  position: fixed; top: 0; left: 0; right: 0; height: 92px; z-index: 90;
  pointer-events: none;
  background: linear-gradient(to bottom, var(--bg) 0%, var(--bg) 38%, transparent 100%);
}
header.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  z-index: 100; width: min(960px, calc(100% - 28px));
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 9px 9px 22px;
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  border: 1px solid var(--border); border-radius: 100px;
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 10px 40px -16px rgba(0,0,0,.6);
  transition: top .4s ease, box-shadow .4s ease, background .4s ease;
}
header.nav.scrolled { box-shadow: 0 14px 44px -14px rgba(0,0,0,.75); }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; padding-right: 18px; border-right: 1px solid var(--border); }
.brand .owl-img { height: 26px; width: auto; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); margin-left: auto; padding-inline: 8px 14px; }
.nav-links a.txt {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--ink-soft); transition: color .25s;
}
.nav-links a.txt:hover { color: var(--ink); }
.nav-cta {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--ink); color: var(--bg); padding: 11px 20px; border-radius: 100px;
  font-weight: 500; transition: background .3s, color .3s, transform .3s;
}
.nav-cta:hover { background: var(--accent); color: var(--accent-on); }

/* On a phone the section anchors are worth little (the page is one scroll)
   but the audit is the thing people come for, so it keeps its place. */
@media (max-width: 760px) {
  .nav-links a.txt:not(.keep) { display: none; }
  .nav-links { gap: 0; padding-inline: 0 14px; }
}
@media (max-width: 420px) {
  .brand span { display: none; }
  .brand { border-right: 0; padding-right: 0; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  align-items: center; text-align: center; position: relative;
  padding-top: 112px; padding-bottom: 52px;
}
.hero .eyebrow { margin-bottom: 22px; }
.hero h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(38px, 5.8vw, 70px); line-height: 1.05; letter-spacing: -0.03em;
  margin: 0; max-width: 18ch; text-wrap: balance;
}
.hero h1 .em {
  font-family: var(--font-serif); font-style: italic; font-weight: 500; color: var(--accent-ink);
}
.hero .sub {
  margin: clamp(20px, 2.6vw, 28px) auto 0; max-width: 64ch;
  font-size: clamp(17px, 1.9vw, 20px); color: var(--ink-soft); line-height: 1.62;
}
.hero .sub .muted { color: var(--ink-faint); }
.hero-cta { margin-top: clamp(24px, 3vw, 34px); display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-note {
  margin: 18px auto 0; max-width: 46ch;
  font-family: var(--font-mono); font-size: 14.5px; letter-spacing: 0.02em;
  color: var(--ink-faint);
}

/* credential callout row (reference stat-card treatment, real content) */
.callout-row {
  margin: clamp(32px, 4vw, 52px) auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border); border-radius: var(--r);
  background: var(--panel); overflow: hidden;
  width: min(840px, 100%);
}
.callout-cell { padding: clamp(22px, 3vw, 32px) clamp(18px, 2.4vw, 28px); text-align: left; position: relative; }
.callout-cell + .callout-cell { border-left: 1px solid var(--border); }
.callout-cell .k { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-ink); display: block; margin-bottom: 14px; }
.callout-cell .v { font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 2.7vw, 32px); line-height: 1; letter-spacing: -0.03em; }
.callout-cell .v .u { font-size: 0.52em; color: var(--ink-faint); font-weight: 500; }
.callout-cell .c { margin-top: 10px; font-size: 16.5px; line-height: 1.5; color: var(--ink-faint); }
@media (max-width: 720px) {
  .callout-row { grid-template-columns: 1fr; }
  .callout-cell + .callout-cell { border-left: 0; border-top: 1px solid var(--border); }
}

/* ---------- Card grid (What I do / Who) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 1.8vw, 22px); }
.card {
  border: 1px solid var(--border); border-radius: var(--r);
  background: var(--panel); padding: clamp(26px, 3vw, 36px);
  position: relative; overflow: hidden;
  transition: border-color .4s ease, background .4s ease, transform .4s cubic-bezier(.2,.8,.2,1);
}
.card::after {
  content: ""; position: absolute; inset: -1px; border-radius: var(--r); pointer-events: none;
  box-shadow: inset 0 0 0 1px transparent, 0 0 40px -10px transparent;
  transition: box-shadow .4s ease;
}
.card:hover { border-color: var(--border-2); transform: translateY(-3px); background: var(--panel-2); }
.card:hover::after { box-shadow: inset 0 0 0 1px var(--ring), 0 0 50px -12px var(--glow); }
.card .badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-ink); border: 1px solid var(--border-2); border-radius: 100px;
  padding: 6px 12px; margin-bottom: 18px;
}
.card .badge .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.card h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 2vw, 23px); line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 11px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 17.5px; line-height: 1.6; }
@media (max-width: 860px) { .card-grid { grid-template-columns: 1fr; } }

/* ---------- Module rows (Typical work / How it works) ---------- */
.rows { display: flex; flex-direction: column; gap: clamp(12px, 1.4vw, 16px); }
.row {
  display: grid; grid-template-columns: 52px 118px 1fr; align-items: center;
  gap: clamp(12px, 1.8vw, 22px);
  border: 1px solid var(--border); border-radius: var(--r);
  background: var(--panel); padding: clamp(22px, 2.6vw, 30px) clamp(22px, 3vw, 36px);
  transition: border-color .4s ease, background .4s ease, transform .35s cubic-bezier(.2,.8,.2,1);
  position: relative; overflow: hidden;
}
.row:hover { border-color: var(--border-2); background: var(--panel-2); }
.row:hover .row-num { color: var(--accent-ink); }
.row-num { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 2.9vw, 33px); line-height: 1; letter-spacing: -0.03em; color: var(--ink-faint); transition: color .4s; }
.row-badge {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-ink); border: 1px solid var(--border-2); border-radius: 8px;
  padding: 8px 12px; text-align: center; white-space: nowrap;
}
.row-body h4 { font-family: var(--font-display); font-weight: 600; font-size: clamp(19.5px, 2vw, 22px); letter-spacing: -0.02em; margin: 0 0 8px; line-height: 1.25; }
.row-body h4 .free { font-family: var(--font-mono); font-size: 0.62em; color: var(--ink-faint); letter-spacing: 0.08em; text-transform: uppercase; margin-left: 10px; }
.row-body p { margin: 0; color: var(--ink-soft); font-size: 17.5px; line-height: 1.6; max-width: 66ch; }
/* "What it looks like" is a catalogue, not a sequence, so it gets no numbers.
   The badge is doing the sorting there and the numbers would imply an order
   the content does not have. "How it works" keeps its numbers: those steps
   really do happen in that order. */
.rows.plain .row { grid-template-columns: 118px 1fr; }

@media (max-width: 820px) {
  .row { grid-template-columns: 54px 1fr; gap: 8px 18px; }
  .row-badge { display: none; }
  .row-body { grid-column: 1 / -1; }
  .rows.plain .row { grid-template-columns: 1fr; }
  .rows.plain .row-badge { display: inline-block; justify-self: start; margin-bottom: 4px; }
}

/* work-outro */
.work-outro { margin-top: clamp(22px, 2.8vw, 34px); }

/* ---------- Who it's for: intro + cards ---------- */
.who-intro { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(24px, 4vw, 54px); align-items: end; margin-bottom: clamp(24px, 3.2vw, 38px); }
.who-intro .section-title { font-size: clamp(25px, 3.1vw, 35px); max-width: 22ch; }
@media (max-width: 820px){ .who-intro { grid-template-columns: 1fr; gap: 18px; align-items: start; } }

/* ---------- About ---------- */
.about-panel {
  border: 1px solid var(--border); border-radius: calc(var(--r) + 6px);
  background: var(--panel); padding: clamp(28px, 4vw, 56px);
  display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: center;
}
.portrait { aspect-ratio: 4/5; border-radius: var(--r); overflow: hidden; position: relative; border: 1px solid var(--border-2); background: var(--bg-2); }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.about-body .eyebrow { margin-bottom: 18px; }
.about-body p { font-size: clamp(17px, 1.8vw, 19.5px); color: var(--ink); margin: 0; line-height: 1.62; }
.about-body p + p { margin-top: 1.1em; color: var(--ink-soft); }
.about-body strong { font-weight: 600; color: var(--ink); }
@media (max-width: 760px) {
  .about-panel { grid-template-columns: 1fr; }
  .portrait { width: 100%; max-width: 300px; aspect-ratio: 4/5; margin-inline: auto; }
}

/* ---------- Contact ---------- */
.contact-panel {
  border: 1px solid var(--border-2); border-radius: calc(var(--r) + 10px);
  background: var(--panel); padding: clamp(36px, 4.4vw, 62px) clamp(28px, 5vw, 64px);
  text-align: center; position: relative; overflow: hidden;
}
.contact-panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 90% at 50% 0%, var(--glow), transparent 70%);
}
.contact-panel > * { position: relative; z-index: 1; }
.contact-panel h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(30px, 4.4vw, 48px); line-height: 1.08; letter-spacing: -0.03em;
  margin: 12px 0 0; text-wrap: balance;
}
.contact-panel h2 .em { font-family: var(--font-serif); font-style: italic; font-weight: 500; color: var(--accent-ink); }
.contact-actions { margin-top: clamp(24px, 3vw, 34px); display: flex; gap: 16px; justify-content: center; align-items: center; flex-wrap: wrap; }
/* Zero-height full-width flex item: forces whatever follows onto its own row.
   Used to drop the email link below the buttons without stretching its underline. */
.contact-actions .break { flex-basis: 100%; height: 0; }
.mail-link { font-family: var(--font-mono); font-size: 15.5px; letter-spacing: 0.02em; color: var(--ink-soft); border-bottom: 1px solid var(--border-2); padding-bottom: 3px; transition: color .3s, border-color .3s; }
.mail-link:hover { color: var(--ink); border-color: var(--accent); }
.contact-note { margin: clamp(22px, 3vw, 32px) auto 0; max-width: 56ch; color: var(--ink-soft); font-size: 17.5px; line-height: 1.6; }
.contact-note .em { color: var(--ink); }

.contact-watermark { position: absolute; bottom: -8%; right: -4%; z-index: 0; pointer-events: none; opacity: 0.06; }
.contact-watermark .owl-img { height: clamp(280px, 40vw, 460px); width: auto; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border); margin-top: clamp(40px, 6vw, 80px);
  padding: 36px var(--gutter); display: flex; flex-wrap: wrap; gap: 14px 26px;
  align-items: center; justify-content: space-between;
  font-family: var(--font-mono); font-size: 13.5px; color: var(--ink-faint); letter-spacing: 0.02em;
  position: relative; z-index: 1;
}
footer .fl { display: flex; gap: 20px; flex-wrap: wrap; }
footer a:hover { color: var(--ink); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .85s cubic-bezier(.2,.7,.2,1), transform .85s cubic-bezier(.2,.7,.2,1); }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } html { scroll-behavior: auto; } #glow { display: none; } }
