/* ============================================================
   Self-hosted fonts (Latin subset) — no third-party requests
   ============================================================ */
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/newsreader-normal.woff2") format("woff2-variations"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/newsreader-italic.woff2") format("woff2-variations"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/hanken-normal.woff2") format("woff2-variations"); }
@font-face { font-family: "Hanken Grotesk"; font-style: italic; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/hanken-italic.woff2") format("woff2-variations"); }

/* ===========================================================
   Angel De Leon — Enterprise Security Leader
   Espresso brown, ivory and antique gold
   =========================================================== */

:root {
  /* Canvas */
  --bg:        #2A1F18;   /* espresso brown */
  --bg-2:      #30241C;
  --paper:     #372A21;

  /* Ink */
  --ink:       #F5EEE2;   /* ivory */
  --ink-soft:  #DDD3C3;
  --muted:     #B8AC9C;
  --faint:     #9C9082;

  /* Lines */
  --hairline:        rgba(245, 238, 226, 0.14);
  --hairline-strong: rgba(245, 238, 226, 0.30);

  /* Accent: antique gold */
  --accent:    #D2AE6A;   /* antique gold */
  --accent-2:  #E0C48A;   /* light gold (small labels) */
  --accent-soft: rgba(210, 174, 106, 0.12);

  /* Depth */
  --shadow-sm: 0 2px 10px -4px rgba(0,0,0,0.35);
  --shadow:    0 30px 60px -34px rgba(0,0,0,0.60);
  --shadow-lg: 0 50px 90px -40px rgba(0,0,0,0.70);

  /* Type */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  --maxw: 1140px;
  --gutter: clamp(22px, 5.5vw, 72px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; transition-duration: .001ms !important;
  }
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
  line-height: 1.62;
  font-size: clamp(15px, 1.04vw, 17px);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* soft depth */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(70% 50% at 80% -5%, rgba(210,174,106,0.07), transparent 60%),
    radial-gradient(60% 45% at -5% 30%, rgba(210,174,106,0.05), transparent 60%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left), env(safe-area-inset-right)); }
section { position: relative; }

/* tracked label + numeral eyebrow */
.eyebrow {
  display: inline-flex; align-items: baseline; gap: 14px;
  font-family: var(--sans);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow .num { font-family: var(--serif); font-size: 0.95rem; font-weight: 500; letter-spacing: 0; color: var(--accent); }

.section-head { margin-bottom: clamp(38px, 5vw, 60px); max-width: 760px; }
.section-head h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.06; letter-spacing: -0.015em;
  margin-top: 22px; color: var(--ink);
}
.section-head .lede { color: var(--ink-soft); margin-top: 18px; font-size: 1.12rem; max-width: 58ch; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  background: rgba(42,31,24,0.78);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease), background .4s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--hairline); background: rgba(42,31,24,0.92); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand .mono {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px;
  background: var(--ink); color: var(--bg);
  font-family: var(--serif); font-size: 0.95rem; font-weight: 500; letter-spacing: -0.02em;
}
.brand .nm { font-family: var(--serif); font-weight: 500; font-size: 1.12rem; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 34px; align-items: center; }
.nav-links a { font-size: 0.92rem; color: var(--muted); transition: color .25s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  font-weight: 600; color: var(--ink) !important; font-size: 0.88rem !important;
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--hairline-strong);
  transition: all .25s var(--ease);
}
.nav-cta:hover { background: var(--ink); color: var(--bg) !important; border-color: var(--ink); }
@media (max-width: 760px) { .nav-links a:not(.nav-cta) { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-weight: 600; font-size: 0.95rem;
  padding: 13px 24px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .3s var(--ease), background .3s var(--ease),
              border-color .3s var(--ease), box-shadow .3s var(--ease), color .3s var(--ease);
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--accent); color: var(--bg); box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(0,0,0,0.6); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--hairline-strong); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--ink); background: rgba(245,238,226,0.07); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(56px, 9vw, 112px); }
.hero-grid {
  display: grid; grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(40px, 6vw, 88px); align-items: center;
}
.hero-copy { max-width: 600px; }
.hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(3.1rem, 8.4vw, 5.6rem);
  line-height: 0.96; letter-spacing: -0.03em;
  margin: 26px 0 0; color: var(--ink);
}
.hero h1 em { font-style: italic; font-weight: 400; color: var(--accent); }
.hero .role {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin: 22px 0 26px;
}
.hero .headline {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.4;
  color: var(--ink-soft); max-width: 30ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 36px; }

/* gallery-framed portrait */
.portrait {
  position: relative; background: var(--paper); padding: 16px;
  border-radius: 6px; border: 1px solid var(--hairline);
  box-shadow: var(--shadow-lg); max-width: 440px; margin-inline: auto;
}
.portrait::after {
  content: ""; position: absolute; inset: 16px;
  box-shadow: inset 0 0 0 1px rgba(245,238,226,0.07);
  pointer-events: none;
}
.portrait img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1100 / 1375;   /* reserve the true shape so it can't collapse or stretch */
  object-fit: cover;           /* defensive: if a box is ever forced, fill it cleanly */
  object-position: 50% 18%;    /* ...and keep the face in frame, never the torso */
  border-radius: 2px;
  background: #45362B;         /* neutral placeholder — never a black box if it fails to load */
}
.portrait .plate {
  position: absolute; left: 50%; bottom: -15px; transform: translateX(-50%);
  background: var(--ink); color: var(--bg);
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 8px 18px; border-radius: 999px; white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 340px; margin-inline: auto; }
  .hero-copy { max-width: 100%; }
}

/* ---------- Approach (editorial thesis) ---------- */
.approach { padding-block: clamp(56px, 9vw, 120px); border-top: 1px solid var(--hairline); }
.approach .statement {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.6rem, 3.6vw, 2.7rem);
  line-height: 1.28; letter-spacing: -0.012em;
  color: var(--ink); max-width: 24ch;
}
.approach .statement .hl { color: var(--accent); font-style: italic; }
.approach-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
.approach .body { color: var(--ink-soft); font-size: 1.08rem; }
.approach .body p + p { margin-top: 18px; }
@media (max-width: 820px) { .approach-grid { grid-template-columns: 1fr; gap: 30px; } }

/* ---------- Operating model (how I think) ---------- */
.model { padding-block: clamp(56px, 9vw, 110px); border-top: 1px solid var(--hairline); }
.tenets { border-top: 1px solid var(--hairline); }
.tenet {
  display: grid; grid-template-columns: 90px 1fr; gap: clamp(18px, 3vw, 40px);
  padding: clamp(28px, 4vw, 44px) 0; border-bottom: 1px solid var(--hairline);
  transition: background .35s var(--ease);
}
.tenet:hover { background: rgba(245,238,226,0.035); }
.tenet .n { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; color: var(--faint); }
.tenet h3 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem); letter-spacing: -0.012em; color: var(--ink);
}
.tenet p { color: var(--ink-soft); margin-top: 12px; max-width: 60ch; font-size: 1.05rem; }
@media (max-width: 560px) {
  .tenet { grid-template-columns: 1fr; gap: 8px; }
  .tenet .n { font-size: 1.1rem; }
}

/* ---------- Domains (pillars) ---------- */
.domains { padding-block: clamp(56px, 9vw, 110px); border-top: 1px solid var(--hairline); }
.domain-grid { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; }
.domain {
  flex: 0 1 320px; min-width: 0; max-width: 360px;
  background: var(--paper); border: 1px solid var(--hairline); border-radius: 16px;
  padding: 30px 28px 32px; box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
@media (max-width: 540px) { .domain { flex-basis: 100%; max-width: none; } }
.domain:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(210,174,106,0.45); }
.domain .dn {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; color: var(--accent-2);
}
.domain h3 { font-family: var(--serif); font-weight: 500; font-size: 1.34rem; letter-spacing: -0.01em; margin: 14px 0 10px; }
.domain p { color: var(--muted); font-size: 0.97rem; }

/* ---------- Impact ---------- */
.impact { padding-block: clamp(56px, 9vw, 110px); border-top: 1px solid var(--hairline); }
.impact-list { border-top: 1px solid var(--hairline); }
.impact-row {
  display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: baseline;
  padding: 28px 4px; border-bottom: 1px solid var(--hairline);
  transition: padding-left .35s var(--ease), background .35s var(--ease);
}
.impact-row:hover { padding-left: 14px; background: rgba(245,238,226,0.035); }
.impact-row .mk { font-family: var(--serif); font-size: 1.1rem; color: var(--accent); }
.impact-row p { font-family: var(--serif); font-weight: 400; font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.4; color: var(--ink); }

/* ---------- Principles (credo) ---------- */
.principles { padding-block: clamp(56px, 9vw, 110px); border-top: 1px solid var(--hairline); }
.credo { display: grid; gap: 0; max-width: 880px; }
.credo .line {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem); line-height: 1.32; letter-spacing: -0.012em;
  color: var(--ink); padding: 26px 0; border-bottom: 1px solid var(--hairline);
}
.credo .line:first-child { border-top: 1px solid var(--hairline); }
.credo .line span { color: var(--faint); font-size: 0.55em; vertical-align: middle; margin-right: 16px; }

/* ---------- Contact ---------- */
.contact { padding-block: clamp(64px, 10vw, 130px); border-top: 1px solid var(--hairline); }
.contact-card {
  background: var(--paper); border: 1px solid var(--hairline); border-radius: 26px;
  padding: clamp(44px, 7vw, 88px); text-align: center; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.contact-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(80% 120% at 50% -20%, var(--accent-soft), transparent 60%);
  pointer-events: none;
}
.contact-card h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.08; letter-spacing: -0.02em;
  position: relative; margin-top: 20px;
}
.contact-card .lede { color: var(--ink-soft); max-width: 52ch; margin: 18px auto 0; font-size: 1.1rem; position: relative; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 13px; justify-content: center; margin-top: 36px; position: relative; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--hairline); padding-block: 44px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.footer-meta { color: var(--faint); font-size: 0.85rem; }
.footer-social { display: flex; gap: 20px; }
.footer-social a { color: var(--muted); transition: color .25s var(--ease); }
.footer-social a:hover { color: var(--accent); }
.footer-social svg { width: 19px; height: 19px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .07s; }
.reveal[data-d="2"] { transition-delay: .14s; }
.reveal[data-d="3"] { transition-delay: .21s; }
.reveal[data-d="4"] { transition-delay: .28s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

@media (max-width: 420px) {
  .hero-actions .btn, .contact-actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* ---------- Final polish ---------- */
main section[id] { scroll-margin-top: 92px; }
.hero h1, .section-head h2, .approach .statement, .contact-card h2, .credo .line { text-wrap: balance; }
::selection { background: rgba(210,174,106, 0.24); color: var(--ink); }
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.brand:focus-visible { outline-offset: 5px; }

/* ===========================================================
   WRITING / BLOG  —  added section, same design language
   =========================================================== */

/* Keep the Writing link reachable on phones (nav otherwise hides
   non-CTA links under 760px). */
@media (max-width: 760px) {
  .nav-links a.nav-blog { display: inline-flex !important; }
}

/* ---------- Shared page header (sub-pages) ---------- */
.page-head {
  padding-top: clamp(48px, 8vw, 92px);
  padding-bottom: clamp(30px, 4vw, 48px);
}
.page-head h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.04; letter-spacing: -0.02em;
  margin-top: 22px; color: var(--ink);
  max-width: 24ch; text-wrap: balance;
}
.page-head .lede {
  color: var(--ink-soft); margin-top: 20px;
  font-size: clamp(1.08rem, 1.6vw, 1.22rem); max-width: 54ch;
}
.crumb {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.04em; color: var(--muted);
  transition: color .25s var(--ease);
}
.crumb:hover { color: var(--accent); }
.crumb svg { width: 15px; height: 15px; }

/* ---------- Writing index — editorial table of contents ---------- */
.writing { padding-bottom: clamp(64px, 10vw, 120px); }
.post-list { border-top: 1px solid var(--hairline); max-width: 760px; }
.post-row {
  display: block; max-width: 760px;
  padding: clamp(28px, 4vw, 40px) 4px; border-bottom: 1px solid var(--hairline);
  transition: padding-left .35s var(--ease), background .35s var(--ease);
}
.post-row:hover { padding-left: 14px; background: rgba(245,238,226,0.035); }
.post-row .meta {
  font-family: var(--sans); font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-2);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
  margin-bottom: 16px;
}
.post-row .meta .dot { color: var(--faint); }
.post-row h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.5rem, 2.8vw, 2rem); line-height: 1.12;
  letter-spacing: -0.015em; color: var(--ink);
  transition: color .25s var(--ease); text-wrap: balance;
}
.post-row:hover h2 { color: var(--accent); }
.post-row .dek { color: var(--ink-soft); margin-top: 12px; font-size: 1.04rem; max-width: 64ch; }
.post-row .more {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 16px;
  font-family: var(--sans); font-size: 0.84rem; font-weight: 600; color: var(--accent);
}
.post-row .more svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.post-row:hover .more svg { transform: translateX(4px); }

/* ---------- Article (single post) ---------- */
.post { padding-bottom: clamp(56px, 9vw, 104px); }
.article { max-width: 720px; margin-inline: auto; }
.article-head { padding-top: clamp(40px, 7vw, 80px); }
.article-head .eyebrow { margin-bottom: 22px; }
.article-head h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.1rem, 5vw, 3.3rem); line-height: 1.06; letter-spacing: -0.02em;
  color: var(--ink); text-wrap: balance;
}
.article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-top: 26px; padding-bottom: 30px; border-bottom: 1px solid var(--hairline);
  font-family: var(--sans); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.article-meta .dot { color: var(--faint); }
.article-meta .by { color: var(--ink-soft); }

/* Long-form prose — tuned for phone, tablet, desktop reading */
.prose { margin-top: clamp(28px, 4vw, 40px); }
.prose p {
  font-family: var(--serif); font-weight: 400;
  color: var(--ink-soft);
  font-size: clamp(1.12rem, 0.98rem + 0.5vw, 1.26rem);
  line-height: 1.72; letter-spacing: 0.002em;
}
.prose p + p { margin-top: 1.35em; }
.prose strong { font-weight: 600; color: var(--ink); }
.prose a {
  color: var(--accent); text-decoration: underline;
  text-decoration-color: rgba(210,174,106,0.4); text-underline-offset: 3px;
  transition: text-decoration-color .25s var(--ease);
}
.prose a:hover { text-decoration-color: var(--accent); }

/* Emphasis line — a sentence the writer sets apart. No rule, just air. */
.prose .pull {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.22rem, 1.08rem + 0.5vw, 1.42rem); line-height: 1.45; letter-spacing: -0.005em;
  color: var(--ink);
  margin: clamp(26px, 4vw, 40px) 0;
}

/* Numbered layered-model list */
.prose ol.steps { list-style: none; counter-reset: step; margin: clamp(26px,4vw,36px) 0; }
.prose ol.steps li {
  counter-increment: step; position: relative;
  padding: 16px 0 16px 58px; border-bottom: 1px solid var(--hairline);
  font-family: var(--serif); font-size: clamp(1.08rem, 0.98rem + 0.4vw, 1.2rem);
  line-height: 1.5; color: var(--ink);
}
.prose ol.steps li:first-child { border-top: 1px solid var(--hairline); }
.prose ol.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 16px;
  font-family: var(--serif); font-size: 1rem; font-weight: 500;
  color: var(--accent); letter-spacing: 0.02em;
}
.prose h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.16; letter-spacing: -0.012em;
  color: var(--ink); margin: clamp(40px, 5vw, 56px) 0 14px;
}

/* End-of-article footer */
.article-foot {
  max-width: 720px; margin: clamp(48px, 7vw, 72px) auto 0;
  padding-top: clamp(30px, 4vw, 44px); border-top: 1px solid var(--hairline);
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between;
}
.article-foot .endcap { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 1.02rem; }

/* Lead paragraph (standfirst) — opening line carries the thesis */
.prose > p:first-of-type {
  font-size: clamp(1.24rem, 1.05rem + 0.7vw, 1.5rem);
  line-height: 1.5; color: var(--ink); font-weight: 400;
}

/* ===========================================================
   CONTACT FORM  —  same quiet-luxury language as the card
   =========================================================== */
.contact-form {
  position: relative;
  text-align: left;
  max-width: 560px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field { display: flex; flex-direction: column; gap: 9px; }
.field label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg-2);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 13px 15px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.contact-form textarea { resize: vertical; min-height: 132px; line-height: 1.6; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--faint); }
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--paper);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Custom select caret */
.select-wrap { position: relative; }
.select-wrap select { padding-right: 42px; cursor: pointer; }
.select-caret {
  position: absolute; right: 15px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--muted); pointer-events: none;
}

/* Honeypot — kept out of view and off the tab order, still in the DOM */
.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.cf-turnstile-container { min-height: 0; }
.cf-turnstile-container:not(:empty) { margin-top: 4px; }

.form-actions { display: flex; margin-top: 4px; }
.form-actions .btn { width: 100%; justify-content: center; }

/* Status message */
.form-status {
  font-size: 0.95rem;
  line-height: 1.55;
  margin-top: 4px;
  padding: 12px 15px;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  background: var(--bg-2);
  color: var(--ink-soft);
}
.form-status.is-success {
  color: var(--accent-2);
  border-color: rgba(210,174,106, 0.30);
  background: var(--accent-soft);
}
.form-status.is-error {
  color: #F0A898;
  border-color: rgba(240, 168, 152, 0.40);
  background: rgba(240, 168, 152, 0.08);
}
.form-status a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Secondary channels under the form */
.contact-alt {
  position: relative;
  margin-top: 26px;
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
}
.contact-alt a { color: var(--accent); text-decoration: none; transition: color .25s var(--ease); }
.contact-alt a:hover { color: var(--accent-2); text-decoration: underline; text-underline-offset: 2px; }
.contact-alt .dot { color: var(--faint); }

@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
}

/* ---------- Home Writing section ---------- */
.home-writing { padding-top: clamp(56px, 8vw, 100px); padding-bottom: clamp(64px, 10vw, 120px); }
.home-writing .post-list { margin-top: 12px; }
.home-writing .writing-more { margin-top: 40px; }
.home-writing .writing-more .btn { display: inline-flex; align-items: center; gap: 8px; }
.home-writing .writing-more .btn svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.home-writing .writing-more .btn:hover svg { transform: translateX(4px); }

/* external-post badge */
.post-row .meta .ext-badge {
  display: inline-flex; align-items: center;
  font-family: var(--sans);
  font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-2);
  background: var(--accent-soft);
  border: 1px solid rgba(210,174,106,0.22);
  padding: 3px 8px;
  border-radius: 999px;
  margin-left: 6px;
}

/* ---------- Privacy / meta helpers ---------- */
.page-head .updated {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--faint);
  margin-top: 14px;
  letter-spacing: 0.02em;
}
.prose ul.bul {
  list-style: disc; padding-left: 1.35em; margin: 0.6em 0 1.2em;
  color: var(--ink-soft);
}
.prose ul.bul li { margin: 0.55em 0; line-height: 1.65; }
.prose ul.bul li strong { color: var(--ink); font-weight: 600; }

/* ---------- Books block ---------- */
.books-block {
  margin-top: clamp(56px, 8vw, 88px);
  padding-top: clamp(40px, 5vw, 56px);
  border-top: 1px solid var(--hairline);
}
.books-block .books-head {
  display: flex; align-items: baseline; gap: 20px;
  flex-wrap: wrap;
  margin-bottom: clamp(24px, 3.5vw, 36px);
  max-width: 760px;
}
.books-block .books-label {
  font-family: var(--sans);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent);
}
.books-block .books-lede {
  color: var(--ink-soft);
  font-size: 1.02rem;
  max-width: 52ch;
}
.books-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
  max-width: 900px;
}
@media (max-width: 720px) {
  .books-grid { grid-template-columns: 1fr; }
}
.book {
  display: flex; flex-direction: column;
  padding: 26px 28px 24px;
  background: var(--bg-2);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.book:hover {
  transform: translateY(-2px);
  border-color: var(--hairline-strong);
  box-shadow: var(--shadow-sm);
}
.book .book-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px;
  font-family: var(--sans);
  font-size: 0.74rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.book .book-tag { color: var(--accent-2); font-weight: 600; }
.book .book-year { color: var(--faint); font-variant-numeric: tabular-nums; }
.book .book-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.32rem, 2vw, 1.55rem);
  line-height: 1.18; letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 12px;
}
.book .book-blurb {
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.58;
  flex: 1;
}
.book .book-more {
  display: inline-flex; align-items: center; gap: 6px;
  align-self: flex-start;
  margin-top: 18px;
  padding: 0;
  font-family: var(--sans);
  font-size: 0.86rem; font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  transition: color .2s var(--ease);
}
.book .book-more svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.book:hover .book-more { color: var(--accent-2); }
.book:hover .book-more svg { transform: translate(2px, -2px); }

/* ---------- iOS / mobile hardening ---------- */
@media (max-width: 760px) {
  /* Inputs must be >=16px or Safari zooms in on focus */
  .contact-form input,
  .contact-form textarea,
  .contact-form select { font-size: 16px; }
  /* keep footer clear of the iPhone home indicator */
  .footer { padding-bottom: max(28px, calc(28px + env(safe-area-inset-bottom))); }
}
/* Books: tighten padding at very small phone widths so cards don't feel cramped */
@media (max-width: 480px) {
  .book { padding: 22px 22px 22px; }
  .book .book-title { font-size: 1.24rem; }
}

/* ============================================================
   Tonal bands: one hue, several depths.
   Each section redefines the tokens it needs, so every child
   picks up the right ink, line and accent for its ground.
   ============================================================ */
.nav { background: rgba(26,18,13,0.86); border-bottom-color: rgba(210,174,106,0.20); }
.nav.scrolled { background: rgba(26,18,13,0.96); border-bottom-color: rgba(210,174,106,0.28); }

.hero {
  background:
    radial-gradient(60% 80% at 82% 10%, rgba(120,82,52,0.42), transparent 65%),
    linear-gradient(180deg, #2A1F18 0%, #241A14 100%);
}

.approach, .impact, .principles, .footer { background: var(--bg); border-top: 0; }
.approach   { --bg: #37291F; --paper: #433226; --bg-2: #3D2D22; }            /* walnut */
.impact     { --bg: #3F2D21; --paper: #4B3729; --bg-2: #453226; }            /* chestnut */
.principles { --bg: #4B3526; --paper: #57402F; --bg-2: #513A2A;              /* cognac */
              --muted: #C9BBA8; --faint: #B3A492; }
.footer     { --bg: #1A120D; }                                               /* dark roast */

.model, .home-writing {
  --bg: #EBE2D2; --bg-2: #F1EADD; --paper: #F8F3EA;                          /* sand */
  --ink: #2A1F18; --ink-soft: #4F4036; --muted: #6B5D51; --faint: #6F6257;
  --hairline: rgba(42,31,24,0.14); --hairline-strong: rgba(42,31,24,0.28);
  --accent: #765326; --accent-2: #5E421C; --accent-soft: rgba(118,83,38,0.12);
  --shadow-sm: 0 2px 10px -4px rgba(42,31,24,0.14);
  --shadow:    0 30px 60px -34px rgba(42,31,24,0.32);
  --shadow-lg: 0 50px 90px -40px rgba(42,31,24,0.40);
  background: var(--bg); color: var(--ink); border-top: 0;
}
.home-writing { padding-top: clamp(56px, 9vw, 110px); }
.domains, .contact { border-top: 0; }

/* Header never wraps; tighten spacing on tablets */
.brand .nm, .nav-links a { white-space: nowrap; }
@media (max-width: 1000px) { .nav-links { gap: 22px; } }
