/* ==========================================================================
   The Butterfly Framework — site stylesheet
   Plain CSS, no build step. Phone first; wider screens via min-width queries.
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL Open Font License — see fonts/OFL.txt) */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/cormorant-garamond-400.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/cormorant-garamond-600.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/cormorant-garamond-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/source-serif-4-400.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/source-serif-4-600.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/source-serif-4-400-italic.woff2") format("woff2"); }

/* ---------- Design tokens */
:root {
  --night: #0f1a30;        /* deepest navy: hero, butterfly ground */
  --navy: #14213d;         /* footer, featured blocks */
  --ink: #1b2a4a;          /* body text on ivory */
  --ink-soft: #3d4a66;     /* secondary text on ivory (≥ 7:1) */
  --ivory: #f7f3ea;        /* page ground */
  --ivory-2: #efe8d8;      /* alternate band */
  --line: #d9ceb4;         /* hairlines on ivory */
  --gold: #c9a44c;         /* lines, rules, outlines — never small text on ivory */
  --gold-text: #8a6a1f;    /* gold for text on ivory (≈ 4.9:1) */
  --gold-pale: #e3c77a;    /* gold text on navy */
  --shadow-pole: #5b4b7a;  /* dusk indigo-violet */
  --light-pole: #e2b85c;   /* dawn gold */
  --on-night: #f3ede0;     /* text on navy */
  --on-night-soft: #c9c3b5;

  --serif-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --serif-text: "Source Serif 4", Georgia, "Times New Roman", serif;

  --measure: 38rem;        /* comfortable reading line */
  --wide: 72rem;
  --gap: clamp(1rem, 4vw, 2rem);
  --space: clamp(3.5rem, 10vw, 7rem); /* vertical silence between sections */
}

/* ---------- Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--serif-text);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-kerning: normal;
}
@media (min-width: 48em) { body { font-size: 1.125rem; } }

img { max-width: 100%; height: auto; display: block; }
[id] { scroll-margin-top: 5rem; }
a { color: var(--gold-text); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 3px; border-radius: 2px; }
.on-night :focus-visible, .site-footer :focus-visible { outline-color: var(--gold-pale); }

h1, h2, h3, h4 {
  font-family: var(--serif-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 .6em;
  letter-spacing: .005em;
}
h1 { font-size: clamp(2.4rem, 8vw, 4rem); font-weight: 400; }
h2 { font-size: clamp(1.85rem, 5.5vw, 2.6rem); font-weight: 400; }
h3 { font-size: clamp(1.4rem, 4vw, 1.7rem); }
h4 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
strong { font-weight: 600; }
em { font-style: italic; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--ivory); padding: .6rem 1rem; border-radius: 4px;
}
.skip-link:focus { top: 1rem; color: var(--ivory); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Layout helpers */
.wrap { width: min(100% - 2 * var(--gap), var(--wide)); margin-inline: auto; }
.prose { max-width: var(--measure); }
.prose-center { max-width: var(--measure); margin-inline: auto; }
.section { padding-block: var(--space); }
.section--tight { padding-block: calc(var(--space) * .6); }
.band { background: var(--ivory-2); }
.on-night { background: var(--night); color: var(--on-night); }
.on-night h1, .on-night h2, .on-night h3, .on-night h4 { color: var(--on-night); }
.on-night a { color: var(--gold-pale); }
.on-night a:hover { color: #fff; }

.eyebrow {
  font-family: var(--serif-text);
  font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-text); margin: 0 0 1rem;
}
.on-night .eyebrow { color: var(--gold-pale); }
.lead { font-size: clamp(1.2rem, 3.6vw, 1.45rem); line-height: 1.55; font-family: var(--serif-display); }
.muted { color: var(--ink-soft); }
.on-night .muted { color: var(--on-night-soft); }

/* A single quiet gold line instead of ornament */
.rule { width: 4rem; height: 1px; background: var(--gold); border: 0; margin: 2.5rem 0; }
.rule--center { margin-inline: auto; }

/* ---------- Content markers (search the code for REVIEW / REVISAR / PLACEHOLDER) */
.todo {
  display: inline-block;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: .72rem; line-height: 1.4; letter-spacing: 0;
  color: #6b2d0f; background: #fbe9c8;
  border: 1px dashed #b5651d; border-radius: 3px;
  padding: .1rem .4rem; margin: .2rem 0; vertical-align: middle;
}
.on-night .todo { color: #3a1a05; }

/* ---------- Header & navigation */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 243, 234, .96);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(6px)) {
  .site-header { background: rgba(247, 243, 234, .85); backdrop-filter: blur(6px); }
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand svg { width: 2.2rem; height: 2.2rem; flex: none; }
.brand-name { font-family: var(--serif-display); font-size: 1.08rem; font-weight: 600; line-height: 1.1; }
@media (min-width: 30em) { .brand-name { font-size: 1.3rem; } }
.brand svg { width: 1.9rem; height: 1.9rem; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: .5rem;
  font: inherit; font-size: .9rem; color: var(--ink);
  background: none; border: 1px solid var(--line); border-radius: 999px;
  padding: .45rem .8rem; cursor: pointer; min-height: 44px; flex: none;
}
.nav-toggle-bars { width: 1.1rem; height: 1px; background: currentColor; position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 1px; background: currentColor;
}
.nav-toggle-bars::before { top: -5px; } .nav-toggle-bars::after { top: 5px; }

.site-nav { width: 100%; }
.js .site-nav { display: none; }
.js .site-nav.is-open { display: block; }
.no-js .nav-toggle { display: none; }
.nav-list { list-style: none; margin: 0; padding: .5rem 0 1rem; }
.nav-list a {
  display: block; padding: .7rem 0; text-decoration: none; color: var(--ink);
  border-bottom: 1px solid var(--line); font-size: 1.05rem;
}
.nav-list a[aria-current="page"] { color: var(--gold-text); }
.lang-switch { display: flex; flex-wrap: wrap; gap: .25rem .9rem; list-style: none; margin: 0; padding: .6rem 0 1rem; font-size: .9rem; }
.lang-switch a { color: var(--ink-soft); text-decoration: none; padding: .35rem 0; display: inline-block; }
.lang-switch a[aria-current="true"] { color: var(--gold-text); font-weight: 600; }
.lang-switch .soon { font-size: .72rem; color: var(--ink-soft); }

.header-inner { flex-wrap: wrap; }

@media (min-width: 72em) {
  .header-inner { flex-wrap: nowrap; }
  .nav-list a, .lang-switch a, .brand-name { white-space: nowrap; }
  .lang-switch { flex-wrap: nowrap; }
  .nav-toggle { display: none; }
  .js .site-nav, .site-nav { display: flex !important; width: auto; align-items: center; gap: 1.4rem; }
  .nav-list { display: flex; gap: 1.25rem; padding: 0; }
  .nav-list a { border: 0; padding: .4rem 0; font-size: .98rem; position: relative; }
  .nav-list a[aria-current="page"]::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold);
  }
  .lang-switch { padding: 0; border-left: 1px solid var(--line); padding-left: 1.2rem; gap: .7rem; font-size: .82rem; }
  .lang-switch .soon { display: none; }
}

/* ---------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.5rem;
  font-family: var(--serif-text); font-size: 1rem; line-height: 1.2;
  text-decoration: none; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--gold); background: transparent; color: var(--ink);
  transition: background-color .2s, color .2s;
}
.btn:hover { background: var(--gold); color: var(--night); }
.btn--solid { background: var(--gold); color: var(--night); }
.btn--solid:hover { background: var(--gold-pale); color: var(--night); }
.on-night .btn { color: var(--on-night); }
.on-night .btn:hover, .on-night .btn--solid { color: var(--night); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

/* ---------- Hero */
.hero { padding-block: clamp(3.5rem, 12vw, 7rem) clamp(2rem, 6vw, 3rem); text-align: center; }
.hero h1 { margin-bottom: .4em; }
.hero .lead { max-width: 34rem; margin: 0 auto; color: var(--on-night); }
.hero .btn-row { justify-content: center; }
.page-hero { padding-block: clamp(3rem, 10vw, 5.5rem) clamp(2.5rem, 7vw, 4rem); }
.page-hero .lead { max-width: 40rem; }

/* ---------- The Butterfly (interactive SVG) */
.butterfly { padding-bottom: var(--space); }
.bf-layout { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 62em) { .bf-layout { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 3rem; align-items: center; } }

.bf-figure { margin: 0; }
.bf-svg { width: 100%; height: auto; display: block; overflow: visible; -webkit-tap-highlight-color: transparent; }
.bf-svg text { font-family: var(--serif-display); pointer-events: none; user-select: none; }
.bf-caption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .3rem 1rem;
  font-size: .8rem; letter-spacing: .08em; color: var(--on-night-soft); margin-top: .8rem; }
.bf-hint { font-size: .9rem; color: var(--on-night-soft); text-align: center; margin: .6rem 0 0; }

/* field */
.bf-field-shape { fill: url(#bfFieldGlow); stroke: var(--gold); stroke-width: 1.2; stroke-dasharray: 2 7; stroke-linecap: round; }
.bf-field-label { fill: var(--gold-pale); font-size: 22px; letter-spacing: .14em; font-style: italic; }
/* wings */
.bf-wing .bf-shape { stroke: var(--gold); stroke-width: 1.4; transition: fill .45s ease, opacity .3s ease, stroke-width .2s; }
.bf-wing--past .bf-shape { fill: url(#bfPast); }
.bf-wing--future .bf-shape { fill: url(#bfFuture); }
.bf-wing[data-pole="shadow"] .bf-shape { fill: url(#bfShadow); }
.bf-wing[data-pole="light"] .bf-shape { fill: url(#bfLight); }
.bf-vein { fill: none; stroke: var(--gold); stroke-width: .8; opacity: .45; pointer-events: none; }
.bf-label { fill: var(--on-night); font-size: 25px; font-weight: 600; text-anchor: middle; }
.bf-wing[data-pole="light"] .bf-label { fill: var(--night); }
.bf-pole-tag { font-size: 14px; font-style: italic; text-anchor: middle; fill: var(--gold-pale); letter-spacing: .04em; }
.bf-wing[data-pole="light"] .bf-pole-tag { fill: #4a3810; }
/* heart */
.bf-heart-shape { fill: url(#bfHeart); stroke: var(--gold-pale); stroke-width: 1.5; }
.bf-heart-title { fill: var(--night); font-size: 21px; font-weight: 600; text-anchor: middle; }
.bf-heart-sub { fill: #3a2c0c; font-size: 15px; font-style: italic; text-anchor: middle; }
@media (max-width: 47.99em) {
  .bf-label { font-size: 30px; }
  .bf-heart-title { font-size: 21px; }
  .bf-heart-sub { font-size: 17px; }
  .bf-field-label { font-size: 26px; }
  .bf-pole-tag { font-size: 18px; }
}
.bf-body { fill: var(--night); stroke: var(--gold); stroke-width: 1.2; pointer-events: none; }
.bf-antenna { fill: none; stroke: var(--gold); stroke-width: 1.2; pointer-events: none; }
.bf-antenna-tip { fill: var(--gold); pointer-events: none; }
/* dance */
.bf-dance { fill: none; stroke: var(--gold-pale); stroke-width: 1.3; opacity: .75; stroke-dasharray: 5 9; pointer-events: none;
  animation: bf-breathe 9s linear infinite; }
.bf-arrowhead { fill: var(--gold-pale); }
@keyframes bf-breathe { to { stroke-dashoffset: -140; } }
.bf-heart-glow { animation: bf-glow 7s ease-in-out infinite; transform-origin: 400px 280px; pointer-events: none; }
@keyframes bf-glow { 0%, 100% { opacity: .35; transform: scale(1); } 50% { opacity: .7; transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .bf-dance, .bf-heart-glow { animation: none; } }

/* interaction states */
.bf-region { cursor: pointer; outline: none; }
.bf-region:hover .bf-shape, .bf-region:hover .bf-heart-shape { stroke-width: 2.6; }
.bf-region:focus-visible .bf-shape,
.bf-region:focus-visible .bf-heart-shape,
.bf-region:focus-visible .bf-field-shape { stroke: #fff; stroke-width: 3.5; stroke-dasharray: none; }
.bf-svg.has-active .bf-wing:not(.is-active) .bf-shape { opacity: .55; }
.bf-region.is-active .bf-shape, .bf-region.is-active .bf-heart-shape { stroke: var(--gold-pale); stroke-width: 3; }
.bf-field.is-active .bf-field-shape { stroke-width: 3; stroke-dasharray: none; }

/* panel */
.bf-panel { background: rgba(255, 255, 255, .04); border: 1px solid rgba(201, 164, 76, .35); border-radius: 6px; padding: 1.4rem 1.3rem; }
@media (min-width: 48em) { .bf-panel { padding: 1.8rem 2rem; } }
.bf-entry h3 { color: var(--on-night); font-size: 1.55rem; margin-bottom: .2rem; }
.bf-entry .bf-kicker { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-pale); margin: 0 0 .5rem; }
.bf-entry p { color: var(--on-night); }
.bf-entry .more { margin-bottom: 0; }
.bf-pole { border-left: 2px solid; padding: .2rem 0 .2rem 1rem; margin: 1rem 0; }
.bf-pole h4 { font-size: 1.12rem; margin-bottom: .2rem; color: var(--on-night); }
.bf-pole p { margin: 0; color: var(--on-night-soft); }
.bf-pole--shadow { border-color: #8f7cb8; }
.bf-pole--light { border-color: var(--light-pole); }

.bf-toggle { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0 .2rem; }
.bf-toggle button {
  font: inherit; font-size: .88rem; min-height: 44px; padding: .45rem .9rem;
  border-radius: 999px; cursor: pointer; color: var(--on-night);
  background: transparent; border: 1px solid rgba(201, 164, 76, .55);
}
.bf-toggle button[aria-pressed="true"] { background: var(--gold); color: var(--night); border-color: var(--gold); }
.bf-toggle button[data-pole="shadow"][aria-pressed="true"] { background: #8f7cb8; border-color: #8f7cb8; color: #120c22; }

/* JS on: show only the active entry */
.bf-ready .bf-entry { display: none; }
.bf-ready .bf-entry.is-active { display: block; animation: bf-fade .35s ease; }
.bf-ready .bf-entry.is-active[data-pole="shadow"] .bf-pole--light,
.bf-ready .bf-entry.is-active[data-pole="light"] .bf-pole--shadow { display: none; }
@keyframes bf-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .bf-ready .bf-entry.is-active { animation: none; } }
/* JS off: list every entry, spaced */
.bf-entries:not(.bf-ready) .bf-entry + .bf-entry { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid rgba(201, 164, 76, .3); }

/* ---------- Generic blocks */
.grid-2 { display: grid; gap: 2.5rem; }
@media (min-width: 52em) { .grid-2 { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.grid-3 { display: grid; gap: 1.5rem; }
@media (min-width: 52em) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card { background: #fffdf8; border: 1px solid var(--line); border-radius: 6px; padding: 1.5rem 1.4rem; }
.card h3 { font-size: 1.45rem; }
.card .meta { font-size: .85rem; color: var(--ink-soft); margin-bottom: .6rem; }
.card :last-child { margin-bottom: 0; }

.feature { background: var(--navy); color: var(--on-night); border-radius: 8px; padding: clamp(1.6rem, 5vw, 3rem); position: relative; overflow: hidden; }
.feature h2, .feature h3 { color: var(--on-night); }
.feature a:not(.btn) { color: var(--gold-pale); }
.feature .details { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; gap: .4rem; }
.feature .details li { padding-left: 1.4rem; position: relative; color: var(--on-night-soft); }
.feature .details li::before { content: ""; position: absolute; left: 0; top: .8em; width: .7rem; height: 1px; background: var(--gold); }

.quote { margin: 0; text-align: center; }
.quote p { font-family: var(--serif-display); font-style: italic; font-size: clamp(1.4rem, 4.4vw, 2rem); line-height: 1.4; max-width: 44rem; margin: 0 auto 1.2rem; }
.quote footer { font-size: .92rem; color: var(--ink-soft); }
.quote cite { font-style: normal; }

.stages { list-style: none; padding: 0; margin: 1.5rem 0 0; counter-reset: stage; display: grid; gap: 1.2rem; }
.stages li { position: relative; padding-left: 3rem; }
.stages li::before {
  counter-increment: stage; content: counter(stage, upper-roman);
  position: absolute; left: 0; top: .05rem; width: 2.1rem; height: 2.1rem; border-radius: 50%;
  border: 1px solid var(--gold); display: grid; place-items: center;
  font-family: var(--serif-display); font-size: 1rem; color: var(--gold-pale);
}
.stages h4 { margin-bottom: .2rem; color: inherit; }

.offer { padding-block: 2.5rem; border-top: 1px solid var(--line); }
.offer:first-of-type { border-top: 0; }
.offer-num { font-family: var(--serif-display); color: var(--gold-text); font-size: 1.1rem; letter-spacing: .1em; margin-bottom: .3rem; }
.offer .for { font-size: .95rem; color: var(--ink-soft); font-style: italic; }

.figures { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; list-style: none; padding: 0; margin: 2rem 0; }
.figures li { display: flex; flex-direction: column; }
.figures strong { font-family: var(--serif-display); font-size: 2.6rem; font-weight: 400; color: var(--gold-text); line-height: 1; }
.figures span { font-size: .9rem; color: var(--ink-soft); }

.portrait { border-radius: 6px; width: 100%; max-width: 22rem; aspect-ratio: 3 / 4; object-fit: cover; }
.person { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 52em) { .person { grid-template-columns: 18rem 1fr; gap: 3.5rem; } }

/* Framework page */
.toc { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .95rem; }
.toc a { text-decoration: none; }
.def { margin: 1.2rem 0; }
.def dt { font-family: var(--serif-display); font-weight: 600; font-size: 1.25rem; }
.def dd { margin: .2rem 0 1rem; }
.numbered { padding-left: 1.3rem; }
.numbered li { margin-bottom: .8rem; padding-left: .3rem; }
.numbered li::marker { font-family: var(--serif-display); color: var(--gold-text); font-weight: 600; }
.movement { display: block; width: 100%; max-width: 30rem; margin: 1.5rem auto; height: auto; }

/* Territories table → stacked cards on phones */
.territories { width: 100%; border-collapse: collapse; margin: 2rem 0; font-size: .98rem; }
.territories caption { text-align: left; font-family: var(--serif-display); font-size: 1.3rem; font-weight: 600; margin-bottom: .8rem; }
.territories th, .territories td { text-align: left; vertical-align: top; padding: 1rem; border-bottom: 1px solid var(--line); }
.territories thead th { font-family: var(--serif-display); font-size: 1.15rem; border-bottom: 2px solid var(--gold); }
.territories thead th.col-shadow { color: var(--shadow-pole); }
.territories thead th.col-light { color: var(--gold-text); }
.territories tbody th { font-family: var(--serif-display); font-size: 1.15rem; white-space: nowrap; }
@media (max-width: 47.99em) {
  .territories thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .territories, .territories tbody, .territories tr, .territories th, .territories td { display: block; width: 100%; }
  .territories tr { border: 1px solid var(--line); border-radius: 6px; margin-bottom: 1rem; background: #fffdf8; }
  .territories tbody th { border-bottom: 1px solid var(--gold); white-space: normal; }
  .territories td { border-bottom: 0; padding-top: .6rem; }
  .territories td::before { content: attr(data-label); display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .2rem; }
  .territories td.cell-shadow::before { color: var(--shadow-pole); }
  .territories td.cell-light::before { color: var(--gold-text); }
}

/* Resources & blog */
.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.doc { display: grid; gap: .3rem; padding: 1.3rem 1.4rem; background: #fffdf8; border: 1px solid var(--line); border-radius: 6px; }
.doc h3 { font-size: 1.35rem; margin: 0; }
.doc .meta { font-size: .85rem; color: var(--ink-soft); margin: 0; }
.doc p { margin: .2rem 0 .4rem; }
.doc .links { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; font-size: .95rem; }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; padding: 0; margin: .2rem 0; }
.tags li { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 999px; padding: .1rem .55rem; color: var(--ink-soft); }

/* ---------- Contact form */
.form { display: grid; gap: 1.1rem; max-width: 36rem; }
.field { display: grid; gap: .35rem; }
.field label { font-size: .95rem; font-weight: 600; }
.field .hint { font-size: .85rem; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #fffdf8; border: 1px solid #b9ad92; border-radius: 4px;
  padding: .7rem .8rem; min-height: 48px; width: 100%;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold-text); outline-offset: 1px; border-color: var(--gold-text); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5em; font-size: .98rem; }
.form-status.is-ok { color: #2d5a2d; }
.form-status.is-error { color: #8a1f1f; }
.contact-alt { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.email-link { font-size: 1.15rem; }

/* ---------- Footer */
.site-footer { background: var(--navy); color: var(--on-night-soft); padding-block: 3.5rem 2.5rem; font-size: .92rem; }
.site-footer a { color: var(--gold-pale); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 52em) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand { font-family: var(--serif-display); font-size: 1.4rem; color: var(--on-night); margin-bottom: .4rem; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.footer-list a { text-decoration: none; display: inline-block; padding: .2rem 0; }
.footer-list a:hover { text-decoration: underline; }
.footer-note { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(201, 164, 76, .25); font-size: .82rem; }

/* ---------- Coming-soon & utility pages */
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }
.small { font-size: .9rem; }

/* ---------- Final Project (thesis) & Life Cycle pages — same Phase 1 palette */
.chip { display: inline-block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  border-radius: 999px; padding: .15rem .6rem; border: 1px solid var(--line); white-space: nowrap; vertical-align: middle; color: var(--ink-soft); }
.chip--full { color: #2f5f60; border-color: #4f8a8b; }
.chip--abridged { color: var(--gold-text); border-color: var(--gold); }
.chip--summary { color: #5b4b7a; border-color: #5b4b7a; }
.epigraphs { text-align: center; font-family: var(--serif-display); font-style: italic; font-size: clamp(1.25rem, 3.6vw, 1.6rem); }
.epigraphs p { margin-bottom: 1.2rem; }
.thesis-toc { list-style: none; padding: 0; margin: 1.5rem 0 2rem; }
.toc-part { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); margin: 1.8rem 0 .4rem; }
.toc-item { border-top: 1px solid var(--line); }
.toc-item details > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem 1rem; padding: .8rem 0; }
.toc-item details > summary::-webkit-details-marker { display: none; }
.toc-head { display: flex; flex-direction: column; flex: 1 1 18rem; }
.toc-label { font-size: .8rem; color: var(--ink-soft); }
.toc-head a { font-family: var(--serif-display); font-size: 1.3rem; font-weight: 600; color: var(--ink); text-decoration: none; line-height: 1.25; }
.toc-head a:hover { color: var(--gold-text); text-decoration: underline; }
.toc-sub { margin: .6rem 0 .2rem; font-family: var(--serif-display); font-size: 1.1rem; }
.t-subtoc { list-style: none; margin: 0 0 1rem; padding: 0 0 0 1rem; border-left: 1px solid var(--gold); font-size: .92rem; color: var(--ink-soft); }
.t-subtoc li { padding: .15rem 0; }
.t-request { background: #fffdf8; border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 6px; padding: 1.3rem 1.4rem; margin: 2.5rem 0; }
.t-request p:last-child { margin-bottom: 0; }
.t-kicker { font-size: .9rem; color: var(--ink-soft); margin: 0 0 .3rem; }
.t-title { font-size: clamp(2rem, 6vw, 3.1rem); }
.t-meta { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; align-items: center; font-size: .95rem; }
.thesis { padding-bottom: var(--space); }
.thesis h2 { font-size: clamp(1.6rem, 4.6vw, 2.1rem); margin-top: 2.6rem; }
.thesis h2.t-section { font-size: clamp(2rem, 6vw, 2.6rem); padding-top: 1.5rem; border-top: 1px solid var(--line); }
.thesis h3 { font-size: 1.35rem; margin-top: 2rem; }
.thesis .t-label { font-weight: 600; margin: 1.4rem 0 .4rem; }
.thesis .t-list { padding-left: 1.3rem; }
.thesis .t-list li { margin-bottom: .5rem; }
.thesis .t-list li::marker { color: var(--gold-text); }
.t-edition { font-size: .9rem; color: var(--ink-soft); background: var(--ivory-2); border-radius: 6px; padding: .8rem 1rem; }
.ed { color: #2f5f60; font-style: normal; }
.ed-summary { border-left: 2px solid var(--gold); padding-left: 1rem; font-style: italic; }
.ed-summary .ed { color: var(--ink-soft); }
.fn-ref { font-size: .7em; line-height: 0; }
.fn-ref a { text-decoration: none; padding: 0 .1em; }
.t-notes { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .88rem; color: var(--ink-soft); }
.t-notes h2 { font-size: 1.4rem; margin-top: 0; }
.t-notes li { margin-bottom: .5rem; overflow-wrap: anywhere; }
.fn-back { text-decoration: none; }
.t-toc { margin: 1.5rem 0 2rem; background: #fffdf8; border: 1px solid var(--line); border-radius: 6px; padding: .4rem 1.2rem; }
.t-toc summary { cursor: pointer; padding: .6rem 0; font-weight: 600; }
.t-toc ol { margin: 0 0 1rem; padding-left: 1.2rem; font-size: .95rem; }
.t-copy { margin-top: 2.5rem; }
.t-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.t-pager a { display: flex; flex-direction: column; gap: .1rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; background: #fffdf8; color: var(--ink); font-family: var(--serif-display); font-size: 1.1rem; }
.t-pager a span { font-family: var(--serif-text); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.t-next { text-align: right; }
.t-pager a:hover { border-color: var(--gold); }

.photo-band { margin: 0; }
.photo-band__fig { margin: 0; }
.photo-band__fig img { width: 100%; height: clamp(16rem, 45vw, 30rem); object-fit: cover; }
.photo-band__fig figcaption, .credit { font-size: .78rem; color: var(--ink-soft); padding: .5rem var(--gap); text-align: right; }
.photo-band__fig figcaption a, .credit a { color: inherit; }
.lc-hero { position: relative; isolation: isolate; min-height: clamp(24rem, 65vh, 36rem); display: grid; align-items: end; color: var(--on-night); overflow: hidden; background: var(--night); }
.lc-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.lc-hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(15, 26, 48, .92) 0%, rgba(15, 26, 48, .5) 50%, rgba(15, 26, 48, .1) 85%); }
.lc-hero .wrap { padding-block: 3rem 2.5rem; }
.lc-hero h1 { color: var(--on-night); }
.lc-hero .eyebrow, .lc-hero a { color: var(--gold-pale); }
.lc-hero .lead { color: var(--on-night); max-width: 36rem; }
.lc-hero .credit { color: var(--on-night-soft); text-align: left; padding: 0; margin-top: 1.2rem; }
.lc-hero :focus-visible { outline-color: var(--gold-pale); }
.lc-stages { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(3rem, 8vw, 5rem); }
.lc-stage { display: grid; gap: 1.4rem; align-items: center; }
@media (min-width: 52em) {
  .lc-stage { grid-template-columns: 1fr 1.1fr; gap: 3.5rem; }
  .lc-stage:nth-child(even) .lc-photo { order: 2; }
}
.lc-photo { margin: 0; }
.lc-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; }
.lc-photo figcaption { text-align: left; padding: .5rem 0 0; }
.lc-num { font-family: var(--serif-display); font-size: 1rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); margin-bottom: .3rem; }
.lc-text blockquote { margin: 1rem 0; padding-left: 1rem; border-left: 2px solid var(--gold); font-style: italic; color: var(--ink-soft); }
.lc-text blockquote footer { font-style: normal; font-size: .85rem; margin-top: .4rem; }
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); margin-top: 2rem; }
.slot { margin: 0; aspect-ratio: 4 / 3; border-radius: 6px; border: 1px dashed var(--gold); background: #fffdf8; display: grid; place-items: center; text-align: center; padding: 1rem; color: var(--ink-soft); font-size: .9rem; }
.slot strong { display: block; font-family: var(--serif-display); font-size: 1.15rem; color: var(--ink); }

@media print {
  .site-header, .site-footer, .bf-toggle, .btn-row { display: none !important; }
  body { background: #fff; color: #000; }
  .on-night { background: #fff; color: #000; }
}

/* Short excerpt inside a blog card */
.excerpt { margin: .6rem 0; padding-left: 1rem; border-left: 2px solid var(--gold); font-style: italic; color: var(--ink-soft); }
.excerpt p { margin: 0; }
