/* ============================================================
   SOLOMON WORKS — Four Pillars
   Classical editorial / architectural consulting site
   Palette: limestone / ink / gold / blueprint-blue / obsidian
   ============================================================ */

/* ── Tokens ───────────────────────────────────────────── */
:root {
  --limestone: #F0EBE1;
  --parchment: #E2DAD0;
  --ink: #1A1610;
  --ink-80: #2D2820;
  --ink-50: #6B655A;
  --gold: #C8A44A;
  --gold-soft: #D9BC6B;
  --blueprint: #2A4A6B;
  --blueprint-deep: #1B3149;
  --blueprint-line: #365C84;
  --slate: #8C8378;
  --obsidian: #0F0D0B;

  --serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --sans: "DM Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "SF Mono", Menlo, monospace;

  --max: 1340px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-pad: clamp(72px, 10vw, 160px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-sharp: cubic-bezier(0.7, 0, 0.2, 1);
}

/* ── Reset ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--limestone);
  font-feature-settings: "kern","liga","calt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; padding: 0; margin: 0; }
blockquote { margin: 0; }

.skip {
  position: fixed; top: 8px; left: 8px;
  background: var(--ink); color: var(--limestone);
  padding: 10px 14px; border-radius: 4px;
  transform: translateY(-120%);
  transition: transform .2s var(--ease);
  z-index: 1000;
}
.skip:focus { transform: translateY(0); }

/* Keyboard focus — visible on every interactive element */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 1px;
}
.btn:focus-visible { outline-offset: 4px; }
.contact-form input:focus-visible,
.contact-form textarea:focus-visible { outline: none; border-bottom-color: var(--gold); box-shadow: 0 1px 0 0 var(--gold); }

/* Anchor offsets so fixed nav doesn't cover section headings */
section[id], article[id] { scroll-margin-top: 96px; }

/* ── Global noise (premium finish) ─────────────────── */
.noise-layer {
  position: fixed;
  inset: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 9;
  mix-blend-mode: multiply;
  opacity: 0.42;
}

/* ── INTRO: Architect's Draft → Hold → Fade → Curtain Peel ─────────
   Timeline (ms) — tightened from 4.9s to 3.85s:
   0–100    grid + markers fade in
   100–1350 temple lines draw in (stroke-dashoffset)
   1200–2100 wordmark SOLOMON / WORKS fade in
   1500–2250 ticker 1 + ticker 2 tick in
   2250–2700 HOLD (450ms breath — tight but readable)
   2700–3300 intro-scene crossfades out (600ms)
   2850–3850 curtain panels crossfade + scale out (staggered 80ms, 750ms)
   3850     .js-loaded fires, curtain display:none
*/
.curtain {
  position: fixed; inset: 0; z-index: 100;
  pointer-events: none;
  background: var(--obsidian);
}
.curtain-panel {
  position: absolute;
  top: 0; bottom: 0;
  width: 25.1%; /* slight overlap kills sub-pixel seams */
  background: var(--obsidian);
  transform-origin: center;
  animation: curtain-out 750ms cubic-bezier(0.76, 0, 0.24, 1) forwards;
  animation-delay: calc(2850ms + var(--i) * 80ms);
}
.curtain-panel:nth-child(1) { left: 0; }
.curtain-panel:nth-child(2) { left: 25%; }
.curtain-panel:nth-child(3) { left: 50%; }
.curtain-panel:nth-child(4) { left: 75%; }
@keyframes curtain-out {
  0%   { transform: scaleY(1); opacity: 1; }
  60%  { transform: scaleY(0.35); opacity: 0.6; }
  100% { transform: scaleY(0); opacity: 0; }
}

.intro-scene {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 24px;
  text-align: center;
  color: var(--gold);
  animation: intro-scene-out 600ms 2700ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes intro-scene-out {
  0%   { opacity: 1; filter: blur(0); transform: scale(1); }
  100% { opacity: 0; filter: blur(3px); transform: scale(1.02); }
}

/* Blueprint grid lines (faint) */
.intro-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  opacity: 0;
  animation: intro-fade-in 600ms 100ms var(--ease) forwards;
}
.intro-grid span {
  border-right: 1px solid rgba(200, 164, 74, 0.06);
}
.intro-grid span:nth-child(6) { border-top: 1px solid rgba(200, 164, 74, 0.06); grid-column: 1 / -1; }
@keyframes intro-fade-in { to { opacity: 1; } }

/* Corner markers (blueprint style) */
.intro-top, .intro-bottom {
  position: absolute;
  left: 32px; right: 32px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: rgba(200, 164, 74, 0.6);
  opacity: 0;
  animation: intro-fade-in 600ms 400ms var(--ease) forwards;
}
.intro-top { top: 24px; }
.intro-bottom { bottom: 24px; }
.intro-marker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.intro-marker::before, .intro-marker::after {
  content: "";
  width: 20px; height: 1px;
  background: rgba(200, 164, 74, 0.5);
}
.intro-marker--tl::after, .intro-marker--bl::after { display: none; }
.intro-marker--tr::before, .intro-marker--br::before { display: none; }

/* Temple draws in via stroke-dashoffset */
.intro-temple {
  width: min(140px, 22vw);
  height: auto;
  margin: 0 auto;
}
.iL {
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: draw-line 600ms cubic-bezier(0.7, 0, 0.3, 1) forwards;
  animation-delay: calc(100ms + var(--d, 0) * 750ms);
}
.iL-col { stroke-dasharray: 120; stroke-dashoffset: 120; }
.iL-ped { stroke-dasharray: 160; stroke-dashoffset: 160; }
@keyframes draw-line {
  to { stroke-dashoffset: 0; }
}

/* Wordmark fades in sequentially */
.intro-word {
  display: flex;
  justify-content: center;
  gap: 14px;
  font-family: var(--serif);
  font-size: clamp(18px, 2.5vw, 28px);
  letter-spacing: 0.02em;
  color: var(--limestone);
}
.intro-w {
  opacity: 0;
  transform: translateY(10px);
  animation: intro-w-in 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.intro-w--1 { animation-delay: 1200ms; font-weight: 500; }
.intro-w--2 {
  animation-delay: 1400ms;
  font-family: var(--mono);
  font-size: 0.55em;
  letter-spacing: 0.3em;
  color: var(--gold);
  font-weight: 500;
  align-self: flex-end;
  text-transform: uppercase;
  padding-bottom: 0.32em;
}
@keyframes intro-w-in {
  to { opacity: 1; transform: none; }
}

/* Ticker below */
.intro-ticker {
  display: flex;
  justify-content: center;
  gap: 18px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.34em;
  color: rgba(240, 235, 225, 0.5);
  margin-top: 6px;
}
.intro-tick {
  opacity: 0;
  animation: intro-tick-in 500ms var(--ease) forwards;
}
.intro-tick:nth-child(1) { animation-delay: 1500ms; }
.intro-tick--gold { color: var(--gold); animation-delay: 1750ms; }
@keyframes intro-tick-in {
  0%   { opacity: 0; letter-spacing: 0.5em; }
  100% { opacity: 1; letter-spacing: 0.34em; }
}

.js-loaded .curtain { display: none; }

/* Skip-intro on return visits (sessionStorage flag sets .intro-skip) */
html.intro-skip .curtain-panel {
  animation-duration: 300ms;
  animation-delay: calc(var(--i) * 40ms);
}
html.intro-skip .intro-scene { display: none; }

@media (prefers-reduced-motion: reduce) {
  .curtain-panel { animation-duration: 300ms; animation-delay: 0ms; }
  .intro-scene { animation-duration: 0ms; animation-delay: 0ms; opacity: 0; }
  .iL { animation-duration: 0ms; stroke-dashoffset: 0; }
  .intro-w, .intro-tick { opacity: 1; transform: none; animation: none; }
}

/* ── Magnetic Cursor ──────────────────────────────── */
.cursor {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 80;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity .3s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  body.cursor-ready .cursor { opacity: 1; }
  body.cursor-ready * { cursor: none !important; }
}
.cursor-dot, .cursor-ring {
  position: absolute; top: 0; left: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--limestone);
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid var(--limestone);
  transition: width .25s var(--ease), height .25s var(--ease), border-color .25s var(--ease);
}
body.cursor-hover .cursor-ring {
  width: 64px; height: 64px;
  border-color: var(--gold);
}

/* ── Typography base ──────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin: 0;
}
h1 em, h2 em, h3 em, blockquote em {
  font-style: italic;
  font-weight: 300;
  color: var(--ink-80);
}
p { margin: 0; }

.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-50);
  font-weight: 500;
}
.label::before {
  content: "";
  width: 20px; height: 1px;
  background: var(--gold);
}

/* ── Buttons ──────────────────────────────────────── */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--limestone);
  --btn-border: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px 13px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-border);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .5s var(--ease), background .3s var(--ease), color .3s var(--ease);
  will-change: transform;
}
.btn svg {
  width: 14px; height: 14px;
  transition: transform .35s var(--ease);
}
.btn:hover svg { transform: translateX(4px); }
.btn-primary {
  --btn-bg: var(--ink);
  --btn-fg: var(--limestone);
  --btn-border: var(--ink);
}
.btn-primary:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-border: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--limestone); }
.btn-text {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-border: transparent;
  padding: 0;
  border-bottom: 1px solid var(--gold);
  border-radius: 0;
  padding-bottom: 6px;
}
.btn-text:hover { color: var(--gold); }
.btn-text svg { width: 12px; height: 12px; }
.btn-text--onblue { color: var(--limestone); }
.btn-text--onblue:hover { color: var(--gold); }

/* ── NAV ──────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background .3s var(--ease), backdrop-filter .3s var(--ease);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}
.nav.is-scrolled {
  background: rgba(240, 235, 225, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
}
.nav.is-scrolled .nav-hairline { opacity: 1; }
.nav-hairline {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ink-50) 20%, var(--ink-50) 80%, transparent);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.nav-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.nav-temple {
  width: 36px; height: 36px;
  color: var(--gold);
  transition: transform .6s var(--ease);
}
.nav-mark:hover .nav-temple { transform: rotate(-3deg) scale(1.05); }
.nav-wordmark {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.nav-solomon { color: var(--ink); }
.nav-works {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-left: 2px;
}
.nav-links {
  display: flex;
  gap: 28px;
  justify-self: center;
}
.nav-links a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-80);
  display: inline-flex;
  gap: 6px;
  padding: 6px 0;
  position: relative;
  transition: color .3s var(--ease);
}
.nav-num {
  color: var(--gold);
  font-weight: 500;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width .4s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav .btn-primary {
  padding: 11px 18px 10px;
  font-size: 11px;
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-inner { grid-template-columns: auto 1fr auto; gap: 16px; }
  .nav .btn-primary span { display: none; }
  .nav .btn-primary { padding: 10px; }
  .nav .btn-primary svg { width: 16px; height: 16px; }
}

/* ── HERO ─────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: min(100vh, 960px);
  min-height: min(100svh, 960px);
  padding: clamp(140px, 16vh, 200px) var(--gutter) clamp(80px, 8vh, 120px);
  display: grid;
  align-content: center;
  overflow: hidden;
  isolation: isolate;
}

.ghost-mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(220px, 42vw, 640px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(26, 22, 16, 0.06);
  pointer-events: none;
  z-index: 0;
  user-select: none;
  white-space: nowrap;
}

.hero-temple {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  pointer-events: none;
  z-index: 1;
  opacity: 0.82;
}
.temple-svg {
  width: min(1100px, 120vw);
  height: auto;
  stroke: var(--ink);
  fill: none;
  stroke-width: 1;
  stroke-linecap: square;
  opacity: 0.36;
}
.temple-svg line, .temple-svg polyline {
  stroke: var(--ink);
  vector-effect: non-scaling-stroke;
}
.temple-pediment polyline { stroke: var(--gold); stroke-width: 1.2; opacity: 0.75; }
.temple-pediment line:first-of-type { stroke: var(--gold); }

/* Columns rise on load */
.temple-col {
  transform-origin: bottom;
  animation: col-rise 1400ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}
.temple-col[data-col="1"] { animation-delay: 1400ms; }
.temple-col[data-col="2"] { animation-delay: 1550ms; }
.temple-col[data-col="3"] { animation-delay: 1700ms; }
.temple-col[data-col="4"] { animation-delay: 1850ms; }
@keyframes col-rise {
  0%   { transform: scaleY(0); opacity: 0; }
  100% { transform: scaleY(1); opacity: 1; }
}
.temple-pediment {
  animation: pediment-drop 900ms 2000ms var(--ease) both;
}
@keyframes pediment-drop {
  0%   { transform: translateY(-40px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.hero-inner {
  position: relative;
  z-index: 3;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 28px;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}
.kicker-rule {
  width: 36px; height: 1px; background: var(--gold);
}
.hero-h {
  font-size: clamp(52px, 9vw, 136px);
  max-width: 18ch;
  line-height: 0.94;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: grid;
  gap: 0;
}
.hero-h em {
  display: inline-block;
  color: var(--ink-50);
  font-weight: 300;
}
.hero-line { display: block; }
.hero-lede {
  font-family: var(--sans);
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--ink-80);
  max-width: 52ch;
  line-height: 1.55;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}
.hero-pillar-legend {
  position: relative;
  z-index: 3;
  margin: clamp(60px, 8vh, 100px) auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: var(--max);
  border-top: 1px solid rgba(26, 22, 16, 0.18);
  padding-top: 20px;
}
.hero-pillar-legend li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 4px 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-80);
  border-left: 1px solid rgba(26, 22, 16, 0.12);
}
.hero-pillar-legend li:first-child { border-left: 0; padding-left: 0; }
.hero-pillar-legend li span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--gold);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.hero-scroll {
  position: absolute;
  bottom: 22px;
  left: var(--gutter);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--ink-50);
  text-transform: uppercase;
  z-index: 3;
}
.hero-scroll span::before {
  content: "↓ ";
  color: var(--gold);
}

@media (max-width: 760px) {
  .hero-pillar-legend {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .hero-pillar-legend li:first-child,
  .hero-pillar-legend li:nth-child(3) { border-left: 0; padding-left: 0; }
  .hero-pillar-legend li:nth-child(2) { border-left: 1px solid rgba(26, 22, 16, 0.12); }
}

/* ── MISSION ──────────────────────────────────────── */
.mission {
  padding: var(--section-pad) var(--gutter);
  border-top: 1px solid rgba(26, 22, 16, 0.12);
  position: relative;
}
.mission-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}
.mission-copy {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 22ch;
}
.mission-copy em {
  font-style: italic;
  color: var(--ink-50);
}
.mission-meta {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: clamp(48px, 8vw, 96px);
  border-top: 1px solid rgba(26, 22, 16, 0.14);
  padding-top: 28px;
}
.mission-meta > div {
  padding: 0 24px 0 0;
  border-right: 1px solid rgba(26, 22, 16, 0.12);
  display: grid;
  gap: 10px;
}
.mission-meta > div:last-child { border-right: 0; }
.meta-num {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(44px, 5vw, 72px);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.meta-lbl {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-50);
  max-width: 30ch;
  line-height: 1.45;
}
@media (max-width: 800px) {
  .mission-inner { grid-template-columns: 1fr; }
  .mission-meta { grid-template-columns: 1fr; gap: 20px; }
  .mission-meta > div { border-right: 0; border-bottom: 1px solid rgba(26, 22, 16, 0.1); padding-bottom: 16px; }
}

/* ── PILLARS ──────────────────────────────────────── */
.pillars {
  padding: var(--section-pad) 0 0;
  border-top: 1px solid rgba(26, 22, 16, 0.12);
}
.pillars-head {
  max-width: var(--max);
  margin: 0 auto clamp(48px, 8vw, 96px);
  padding: 0 var(--gutter);
  display: grid;
  gap: 20px;
}
.pillars-title {
  font-size: clamp(40px, 6vw, 96px);
  max-width: 16ch;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.pillar {
  position: relative;
  padding: clamp(60px, 9vw, 120px) var(--gutter);
  border-top: 1px solid rgba(26, 22, 16, 0.12);
}
.pillar:last-child { border-bottom: 1px solid rgba(26, 22, 16, 0.12); }

.pillar-rail {
  max-width: var(--max);
  margin: 0 auto 40px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-50);
}
.rail-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  color: var(--gold);
  letter-spacing: 0;
  text-transform: none;
  min-width: 28px;
}
.rail-dot {
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

.pillar-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.pillar-grid--reverse .pillar-copy { order: 2; }
.pillar-grid--reverse .pillar-visual { order: 1; }

.pillar-copy { display: grid; gap: 20px; max-width: 48ch; }
.pillar-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.pillar-name {
  font-size: clamp(48px, 7vw, 112px);
  line-height: 0.92;
  letter-spacing: -0.025em;
}
.pillar-copy p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-80);
  max-width: 42ch;
}
.pillar-kicker {
  font-family: var(--serif) !important;
  font-style: italic;
  font-size: 22px !important;
  line-height: 1.3 !important;
  color: var(--ink) !important;
  padding-top: 10px;
  border-top: 1px solid rgba(26, 22, 16, 0.14);
  padding-top: 14px;
  margin-top: 4px;
}

.pillar-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--parchment);
  border: 1px solid rgba(26, 22, 16, 0.14);
  display: grid;
  place-content: center;
  overflow: hidden;
}

/* Pillar I — Terminal */
.visual-ai {
  background: var(--obsidian);
  border: 1px solid var(--ink);
  padding: 24px;
  align-content: start;
}
.terminal {
  width: 100%;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--limestone);
}
.term-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(240, 235, 225, 0.14);
  margin-bottom: 14px;
  font-size: 11px;
  color: rgba(240, 235, 225, 0.5);
}
.term-chrome span {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(240, 235, 225, 0.2);
}
.term-chrome em {
  font-style: normal;
  margin-left: 10px;
  letter-spacing: 0.12em;
  color: var(--gold-soft);
}
.term-body { display: grid; gap: 6px; }
.term-line { line-height: 1.5; }
.term-line .prompt {
  color: var(--gold);
  margin-right: 10px;
}
.term-dim { color: rgba(240, 235, 225, 0.56); padding-left: 22px; }
.term-flag {
  color: var(--gold);
  border-top: 1px dashed rgba(200, 164, 74, 0.4);
  border-bottom: 1px dashed rgba(200, 164, 74, 0.4);
  padding: 8px 0;
  margin: 8px 0;
  font-style: italic;
}
.term-ok { color: #9ec5a0; padding-left: 22px; }
.term-caret .caret {
  display: inline-block;
  width: 8px;
  background: var(--gold);
  color: var(--gold);
  animation: blink 1s steps(2) infinite;
  margin-left: 6px;
}
@keyframes blink { 50% { opacity: 0; } }

/* Pillar II — Blueprint */
.visual-build {
  background: var(--limestone);
  padding: 24px;
  color: var(--blueprint);
}
.blueprint { width: 100%; height: 100%; }
.build-flag > * {
  opacity: 0;
  transition: opacity .55s var(--ease);
}
.build-flag > circle { transform-origin: 340px 200px; transform: scale(0); transition: transform .7s cubic-bezier(0.2, 1.5, 0.4, 1), opacity .55s var(--ease); }
.build-flag > line {
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  transition: stroke-dashoffset .9s cubic-bezier(0.7, 0, 0.3, 1), opacity .4s var(--ease);
  opacity: 1;
}
.visual-build.is-revealed .build-flag > circle { transform: scale(1); opacity: 1; transition-delay: 150ms; }
.visual-build.is-revealed .build-flag > line { stroke-dashoffset: 0; opacity: 1; transition-delay: 400ms; }
.visual-build.is-revealed .build-flag > rect { opacity: 1; transition-delay: 900ms; }
.visual-build.is-revealed .build-flag > text { opacity: 1; transition-delay: 1050ms; }
.visual-build.is-revealed .build-flag { animation: flag-pulse 2.8s 2s var(--ease) infinite; transform-origin: 340px 200px; }
@keyframes flag-pulse {
  0%, 100% { opacity: 0.95; }
  50% { opacity: 0.7; }
}

/* Pillar III — Gantt */
.visual-gantt {
  background: var(--parchment);
  padding: 20px;
  align-content: start;
  display: block;
}
.gantt {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink);
}
.gantt-head {
  display: grid;
  grid-template-columns: 50px 1.4fr repeat(4, 1fr);
  padding: 6px 0;
  border-bottom: 1px solid var(--ink);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-80);
}
.gantt-row {
  display: grid;
  grid-template-columns: 50px 1.4fr minmax(0, 4fr);
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(26, 22, 16, 0.14);
  position: relative;
}
.gantt-row .wbs { color: var(--gold); font-weight: 500; }
.gantt-row > span:nth-child(2) {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink);
}
.gantt-row .crit {
  font-family: var(--mono);
  font-size: 10px;
  color: #B63D2E;
  font-style: normal;
  margin-left: 6px;
  letter-spacing: 0.14em;
}
.bar {
  position: relative;
  height: 14px;
  background: var(--color);
  width: calc(var(--len) * 1%);
  margin-left: calc(var(--start) * 1%);
  max-width: calc(100% - var(--start, 0) * 1%);
  display: flex;
  align-items: center;
  padding-left: 8px;
}
.bar em {
  font-family: var(--mono);
  font-size: 9px;
  font-style: normal;
  color: var(--limestone);
  letter-spacing: 0.1em;
}
.bar-crit {
  background: repeating-linear-gradient(135deg, #B63D2E 0 6px, #8F2F24 6px 12px);
}
.gantt-foot {
  padding: 14px 0 4px;
  border-top: 1px solid var(--ink);
  margin-top: 6px;
  font-size: 11px;
  color: var(--gold);
  font-style: italic;
  letter-spacing: 0.04em;
}

/* Pillar IV — Blueprint Blue */
.pillar--blueprint {
  background: var(--blueprint);
  color: var(--limestone);
  border-top: 1px solid var(--blueprint-line);
  border-bottom: 1px solid var(--blueprint-line);
  margin-top: -1px;
}
.pillar--blueprint .rail-num { color: var(--gold); }
.pillar--blueprint .rail-dot { background: var(--gold); }
.pillar--blueprint .rail-name,
.pillar--blueprint .pillar-rail { color: rgba(240, 235, 225, 0.6); }
.pillar--blueprint .pillar-copy p { color: rgba(240, 235, 225, 0.82); }
.pillar--blueprint .pillar-eyebrow { color: var(--gold); }
.pillar--blueprint .pillar-name { color: var(--limestone); }
.pillar--blueprint .pillar-kicker {
  color: var(--limestone) !important;
  border-top-color: var(--blueprint-line);
}
.visual-rack {
  background: var(--blueprint-deep);
  padding: 24px;
  color: var(--limestone);
  border: 1px solid var(--blueprint-line);
}
.rack { width: 100%; height: 100%; }

@media (max-width: 900px) {
  .pillar-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .pillar-grid--reverse .pillar-copy { order: 1; }
  .pillar-grid--reverse .pillar-visual { order: 2; }
}

/* ── METHOD ───────────────────────────────────────── */
.method {
  padding: var(--section-pad) var(--gutter);
  background: var(--parchment);
  border-top: 1px solid rgba(26, 22, 16, 0.12);
}
.method-head {
  max-width: var(--max);
  margin: 0 auto clamp(48px, 8vw, 96px);
  display: grid;
  gap: 20px;
}
.method-title {
  font-size: clamp(40px, 6vw, 96px);
  max-width: 14ch;
  line-height: 0.98;
}
.method-lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--ink-50);
}
.method-scaffold {
  max-width: var(--max);
  margin: 0 auto -2px;
  color: var(--gold);
  opacity: 0.9;
  padding: 0;
}
.method-scaffold svg {
  width: 100%;
  height: 80px;
  display: block;
}
.method-scaffold .mdrop {
  stroke-dasharray: 38;
  stroke-dashoffset: 38;
  animation: draw-line 800ms cubic-bezier(0.7, 0, 0.3, 1) forwards;
}
.method-scaffold .mdrop:nth-of-type(1) { animation-delay: 200ms; }
.method-scaffold .mdrop:nth-of-type(2) { animation-delay: 320ms; }
.method-scaffold .mdrop:nth-of-type(3) { animation-delay: 440ms; }
.method-scaffold .mdrop:nth-of-type(4) { animation-delay: 560ms; }

.method-steps {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  counter-reset: step;
  border-top: 1px solid rgba(26, 22, 16, 0.2);
  border-bottom: 1px solid rgba(26, 22, 16, 0.2);
}
.method-steps li {
  padding: 40px 28px 32px 0;
  border-right: 1px solid rgba(26, 22, 16, 0.14);
  display: grid;
  align-content: start;
  gap: 14px;
  position: relative;
  min-height: 280px;
}
.method-steps li:last-child { border-right: 0; padding-right: 0; }
.step-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(60px, 7vw, 108px);
  color: var(--gold);
  line-height: 0.9;
  letter-spacing: -0.02em;
}
.method-steps h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--ink);
}
.method-steps p {
  font-size: 15px;
  color: var(--ink-80);
  line-height: 1.55;
  max-width: 28ch;
}
.step-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px dashed rgba(26, 22, 16, 0.2);
}
@media (max-width: 900px) {
  .method-steps { grid-template-columns: 1fr 1fr; }
  .method-steps li:nth-child(-n+2) { border-bottom: 1px solid rgba(26, 22, 16, 0.14); }
  .method-steps li:nth-child(2n) { border-right: 0; }
}
@media (max-width: 560px) {
  .method-steps { grid-template-columns: 1fr; }
  .method-steps li { border-right: 0; border-bottom: 1px solid rgba(26, 22, 16, 0.14); min-height: 0; }
  .method-steps li:last-child { border-bottom: 0; }
}

/* ── WHO ─────────────────────────────────────────── */
.who {
  padding: var(--section-pad) var(--gutter);
  border-top: 1px solid rgba(26, 22, 16, 0.12);
}
.who-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: start;
}
.who-copy {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.2;
  color: var(--ink);
  max-width: 26ch;
}
.who-copy em { font-style: italic; color: var(--ink-50); }
.who-tags {
  grid-column: 1 / -1;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(26, 22, 16, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-50);
}
.who-tags li:nth-child(odd) { color: var(--ink); }
@media (max-width: 800px) {
  .who-inner { grid-template-columns: 1fr; gap: 24px; }
}

/* ── OBSIDIAN CLOSER ─────────────────────────────── */
.closer {
  padding: clamp(100px, 15vw, 200px) var(--gutter);
  background: var(--obsidian);
  color: var(--limestone);
  position: relative;
  overflow: hidden;
}
.closer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(200, 164, 74, 0.12), transparent 60%),
    radial-gradient(ellipse at 100% 100%, rgba(42, 74, 107, 0.3), transparent 50%);
  pointer-events: none;
}
/* Marcus amplify 3 — stone-grain texture on closer (screen blend, visible on dark) */
.closer::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 0.94  0 0 0 0 0.86  0 0 0 0.08 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: screen;
  opacity: 0.55;
  pointer-events: none;
}
.closer-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  display: grid;
  gap: 32px;
  justify-items: center;
}
.closer-label::before { background: var(--gold); }
.closer-label { color: rgba(240, 235, 225, 0.6); }
.closer-quote {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 7vw, 104px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--limestone);
  max-width: 20ch;
}
.closer-quote em {
  font-style: italic;
  color: var(--gold);
}
.closer-cite {
  font-family: var(--mono);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(240, 235, 225, 0.6);
}
.closer-cite strong {
  font-weight: 500;
  color: var(--limestone);
}
.closer-divider {
  width: 56px; height: 1px;
  background: var(--gold);
  margin: 8px auto;
}
.closer-coda {
  display: flex;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: rgba(240, 235, 225, 0.5);
}
.closer-coda span:nth-child(even) { color: var(--gold); }

/* ── CONTACT ─────────────────────────────────────── */
.contact {
  padding: var(--section-pad) var(--gutter);
  border-top: 1px solid rgba(26, 22, 16, 0.12);
  background: var(--limestone);
}
.contact-head {
  max-width: var(--max);
  margin: 0 auto clamp(48px, 7vw, 80px);
  display: grid;
  gap: 18px;
  max-width: 1000px;
}
.contact-title {
  font-size: clamp(44px, 7vw, 112px);
  line-height: 0.98;
  max-width: 12ch;
}
.contact-lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2vw, 26px);
  color: var(--ink-50);
}
.contact-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}
.contact-meta {
  display: grid;
  gap: 20px;
}
.meta-row {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(26, 22, 16, 0.14);
}
.meta-row:last-child { border-bottom: 0; }
.meta-k {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gold);
  font-weight: 500;
  padding-top: 4px;
}
.meta-row > div { display: grid; gap: 4px; }
.meta-row .meta-lbl {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-50);
  line-height: 1;
}
.meta-row .meta-v {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
  line-height: 1.2;
}
a.meta-v { transition: color .25s var(--ease); }
a.meta-v:hover { color: var(--gold); }

.contact-form {
  background: var(--parchment);
  border: 1px solid rgba(26, 22, 16, 0.14);
  padding: clamp(24px, 3vw, 40px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-head {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-80);
}
.contact-form label {
  display: grid;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-50);
}
.contact-form label.form-fullwidth { grid-column: 1 / -1; }
.contact-form input,
.contact-form textarea {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(26, 22, 16, 0.3);
  padding: 8px 0 10px;
  outline: none;
  transition: border-color .3s var(--ease);
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-bottom-color: var(--gold);
}
.contact-form textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 1.4;
}
.form-fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.form-fieldset legend {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-50);
  padding: 0;
  margin-bottom: 4px;
}
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-success {
  grid-column: 1 / -1;
  padding: 20px 0;
  display: grid;
  gap: 12px;
}
.form-success-title {
  font-family: var(--serif);
  font-size: 36px;
  line-height: 1.1;
  color: var(--ink);
}
.form-success-sub {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink-80);
  max-width: 40ch;
}
.form-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.form-pills label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.form-pills input { position: absolute; opacity: 0; pointer-events: none; }
.form-pills span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.form-pills label:has(input:checked) {
  background: var(--ink);
}
.form-pills label:has(input:checked) span { color: var(--limestone); }
.form-foot {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
  flex-wrap: wrap;
}
.form-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-50);
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
}

/* ── FOOTER (Blueprint Blue) ─────────────────────── */
.foot {
  background: var(--blueprint-deep);
  color: var(--limestone);
  padding: clamp(72px, 10vw, 120px) var(--gutter) 32px;
  position: relative;
  overflow: hidden;
}
.foot::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(200, 164, 74, 0.07), transparent 50%);
  pointer-events: none;
}
.foot-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
  gap: clamp(32px, 5vw, 80px);
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(240, 235, 225, 0.16);
}
.foot-mark { display: grid; gap: 16px; align-content: start; }
.foot-temple { width: 56px; height: 56px; color: var(--gold); }
.foot-word {
  font-family: var(--serif);
  font-size: 26px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.foot-solomon { color: var(--limestone); }
.foot-works {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
.foot-col { display: grid; gap: 12px; align-content: start; }
.foot-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 8px;
}
.foot-col a {
  font-family: var(--serif);
  font-size: 20px;
  color: rgba(240, 235, 225, 0.86);
  display: flex;
  align-items: baseline;
  gap: 10px;
  transition: color .25s var(--ease);
}
.foot-col a span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gold);
  min-width: 24px;
}
.foot-col a:hover { color: var(--gold); }
.foot-closer p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: rgba(240, 235, 225, 0.86);
  line-height: 1.3;
}
.foot-byline {
  font-family: var(--mono) !important;
  font-style: normal !important;
  font-size: 11px !important;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(240, 235, 225, 0.5) !important;
}
.foot-base {
  position: relative;
  max-width: var(--max);
  margin: 24px auto 0;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(240, 235, 225, 0.4);
}
.foot-base-right { color: var(--gold); }
@media (max-width: 900px) {
  .foot-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 560px) {
  .foot-inner { grid-template-columns: 1fr; }
}

/* ── Reveal transitions: JS adds .animated to html, then hides + transitions ── */
html.animated [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
html.animated [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}
.split-char, .split-word, .split-line { display: inline-block; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
