/* ============================================================
   DROMOS — SHARED STYLES (v1.1)
   Used by all sub-pages. Homepage carries its own inline CSS.
   ============================================================ */

:root {
  --ink: #0E1418;
  --ink-2: #171F25;
  --bone: #EFE7D6;
  --bone-2: #E2D7BF;
  --bone-3: #D4C7AC;
  --terra: #C24A1F;
  --terra-2: #9B3A14;
  --pine: #1C3A2C;
  --oxblood: #6B1F1F;
  --stone: #6E665A;
  --rule: rgba(14,20,24,0.14);
  --rule-light: rgba(239,231,214,0.14);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Archivo', sans-serif;
  background: var(--bone);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Type primitives ────────────────────────────────────────── */
.display { font-family: 'Archivo', sans-serif; font-weight: 900; letter-spacing: -0.03em; line-height: 0.9; text-transform: uppercase; }
.editorial { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 400; line-height: 1.15; letter-spacing: -0.005em; }
.label { font-family: 'Archivo', sans-serif; font-weight: 600; font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--terra); }
.micro { font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 500; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; }
.body { font-family: 'Archivo', sans-serif; font-weight: 400; font-size: clamp(14px, 1.05vw, 16px); line-height: 1.65; color: var(--ink); text-wrap: pretty; }
.greek { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 400; }

/* ── Page header (shared, top-of-page nav) ──────────────────── */
.dn {
  position: sticky; top: 0; z-index: 100;
  background: rgba(14,20,24,0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule-light);
  padding: 0.85rem 2.5rem;
  display: flex; align-items: center; gap: 2rem;
  color: var(--bone);
}
.dn-brand { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; text-decoration: none; }
.dn-icon {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--ink);
  border: 1px solid rgba(239,231,214,0.25);
  position: relative;
  flex-shrink: 0;
}
.dn-icon::before {
  /* horizontal path */
  content: ''; position: absolute; left: 4px; right: 4px; top: 50%;
  height: 1.5px; background: rgba(239,231,214,0.55);
  transform: translateY(-50%);
}
.dn-icon::after {
  /* terminal dot — the finish */
  content: ''; position: absolute; right: 3px; top: 50%;
  width: 6px; height: 6px; background: var(--terra);
  border-radius: 50%; transform: translateY(-50%);
}
.dn-mark { font-family: 'Archivo', sans-serif; font-weight: 900; font-size: 15px; letter-spacing: -0.04em; text-transform: uppercase; color: var(--bone); line-height: 1; }
.dn-links { display: flex; gap: 1.75rem; flex: 1; flex-wrap: wrap; }
.dn-link {
  font-family: 'Archivo', sans-serif; font-weight: 500; font-size: 12.5px;
  letter-spacing: 0.04em; color: rgba(239,231,214,0.7);
  text-decoration: none; transition: color 0.2s ease;
  position: relative;
}
.dn-link:hover { color: var(--bone); }
.dn-link.active { color: var(--bone); }
.dn-link.active::after {
  content: ''; position: absolute; bottom: -8px; left: 0;
  width: 100%; height: 1px; background: var(--terra);
}
.dn-right { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.dn-cta {
  font-family: 'Archivo', sans-serif; font-weight: 600; font-size: 12px;
  letter-spacing: 0.04em; color: var(--bone);
  padding: 0.5rem 1rem;
  border: 1px solid rgba(239,231,214,0.25);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
  display: flex; align-items: center; gap: 0.5rem;
}
.dn-cta:hover { background: var(--terra); border-color: var(--terra); }
.dn-cta-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--terra); }
.dn-cta:hover .dn-cta-dot { background: var(--bone); }

@media (max-width: 900px) {
  .dn { padding: 0.7rem 1.25rem; gap: 1rem; }
  .dn-links { display: none; }
}

/* ── Page hero (shared, per-page eyebrow + title) ───────────── */
.page-hero {
  background: var(--ink); color: var(--bone);
  padding: 7rem 6vw 5rem;
  position: relative; overflow: hidden;
}
.page-hero-inner { max-width: 1280px; margin: 0 auto; position: relative; z-index: 1; }
.page-hero-eyebrow {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--terra); margin-bottom: 1.5rem;
}
.page-hero-title {
  font-family: 'Archivo', sans-serif; font-weight: 900;
  font-size: clamp(48px, 9vw, 140px); letter-spacing: -0.045em;
  line-height: 0.86; text-transform: uppercase; color: var(--bone);
}
.page-hero-title em {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-weight: 500; letter-spacing: -0.01em; text-transform: none;
  color: var(--terra);
}
.page-hero-sub {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: clamp(20px, 2.4vw, 32px); line-height: 1.3;
  color: rgba(239,231,214,0.75); margin-top: 1.75rem; max-width: 760px;
}
.page-hero-delta {
  position: absolute; right: 3vw; top: 50%; transform: translateY(-50%);
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: clamp(240px, 36vw, 480px);
  color: rgba(239,231,214,0.04); line-height: 0.85;
  pointer-events: none; user-select: none; z-index: 0;
}

/* ── Pathline (decorative motif) ─────────────────────────────── */
.pathline {
  display: inline-flex; align-items: center; gap: 0;
}
.pathline-bar {
  display: inline-block; height: 1.5px; background: currentColor;
  width: 60px; opacity: 0.55;
}
.pathline-dot {
  display: inline-block; width: 8px; height: 8px;
  border-radius: 50%; background: var(--terra);
  flex-shrink: 0;
}
.pathline-tick {
  display: inline-block; width: 2px; height: 12px;
  background: currentColor; opacity: 0.55;
  margin-right: 4px;
}

/* ── Section primitives ──────────────────────────────────────── */
.section { padding: 6rem 6vw; }
.section-inner { max-width: 1280px; margin: 0 auto; }
.section-dark { background: var(--ink); color: var(--bone); }
.section-bone { background: var(--bone); color: var(--ink); }
.section-bone-2 { background: var(--bone-2); color: var(--ink); }
.section-pine { background: var(--pine); color: var(--bone); }

.section-label {
  font-family: 'Archivo', sans-serif; font-weight: 600; font-size: 10px;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--terra);
  margin-bottom: 1rem;
}
.section-dark .section-label, .section-pine .section-label { color: var(--terra); }

.section-title {
  font-family: 'Archivo', sans-serif; font-weight: 900;
  font-size: clamp(32px, 5vw, 72px); letter-spacing: -0.035em;
  line-height: 0.92; text-transform: uppercase;
}
.section-title em {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-weight: 500; letter-spacing: -0.01em; text-transform: none;
  color: var(--terra);
}

.section-lede {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: clamp(18px, 2.1vw, 28px); line-height: 1.35;
  margin-top: 1.5rem; max-width: 720px;
}

/* ── Cards ────────────────────────────────────────────────────── */
.card {
  background: var(--bone); border: 1px solid var(--rule);
  padding: 2rem 2rem 1.75rem;
  display: flex; flex-direction: column; gap: 0.75rem;
}
.section-dark .card, .section-pine .card {
  background: rgba(239,231,214,0.04); border-color: var(--rule-light); color: var(--bone);
}
.card-num {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.22em; color: var(--terra);
}
.card-title {
  font-family: 'Archivo', sans-serif; font-weight: 800; font-size: clamp(18px, 1.7vw, 22px);
  letter-spacing: -0.015em; text-transform: uppercase; line-height: 1.05;
}
.card-body {
  font-family: 'Archivo', sans-serif; font-size: 14px; line-height: 1.65;
  color: var(--stone); text-wrap: pretty;
}
.section-dark .card-body, .section-pine .card-body { color: rgba(239,231,214,0.65); }

/* ── Reveal animations ───────────────────────────────────────── */
.r { opacity: 0; transform: translateY(28px); transition: opacity 0.85s cubic-bezier(0.16,1,0.3,1), transform 0.85s cubic-bezier(0.16,1,0.3,1); }
.r.on { opacity: 1; transform: translateY(0); }
.r-d1 { transition-delay: 0.1s; }
.r-d2 { transition-delay: 0.22s; }
.r-d3 { transition-delay: 0.36s; }
.r-d4 { transition-delay: 0.5s; }

/* ── Footer ──────────────────────────────────────────────────── */
.df {
  background: var(--ink); color: var(--bone);
  padding: 5rem 6vw 2.5rem;
  border-top: 1px solid var(--rule-light);
}
.df-inner { max-width: 1280px; margin: 0 auto; }
.df-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 4rem; }
.df-brand { display: flex; flex-direction: column; gap: 1.25rem; }
.df-wordmark {
  font-family: 'Archivo', sans-serif; font-weight: 900;
  font-size: clamp(36px, 4.5vw, 56px); letter-spacing: -0.045em;
  text-transform: uppercase; color: var(--bone); line-height: 0.88;
}
.df-tag {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 18px; color: rgba(239,231,214,0.55); line-height: 1.3;
}
.df-col-head {
  font-family: 'JetBrains Mono', monospace; font-size: 9px;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--terra); margin-bottom: 1rem;
}
.df-col { display: flex; flex-direction: column; gap: 0.5rem; }
.df-col a, .df-col span {
  font-family: 'Archivo', sans-serif; font-size: 13px; line-height: 1.5;
  color: rgba(239,231,214,0.65); text-decoration: none;
  transition: color 0.2s ease;
}
.df-col a:hover { color: var(--bone); }
.df-bot {
  border-top: 1px solid var(--rule-light); padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.df-meta {
  font-family: 'JetBrains Mono', monospace; font-size: 9px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(239,231,214,0.32);
}
.df-status {
  font-family: 'JetBrains Mono', monospace; font-size: 9px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(194,74,31,0.65);
}

@media (max-width: 780px) {
  .df-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .page-hero { padding: 5rem 5vw 3.5rem; }
  .section { padding: 4rem 5vw; }
}

/* ── Plain-English glossary tag (used to define jargon on first use) ─ */
.gloss {
  border-bottom: 1px dotted var(--terra);
  cursor: help;
  position: relative;
}
.gloss-pop {
  position: absolute; bottom: 100%; left: 0;
  background: var(--ink); color: var(--bone);
  padding: 0.6rem 0.8rem;
  font-family: 'Archivo', sans-serif; font-size: 12px; line-height: 1.5;
  width: 240px; opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
  border-left: 2px solid var(--terra);
  z-index: 10; text-transform: none; letter-spacing: 0;
  font-weight: 400; text-wrap: pretty;
}
.gloss:hover .gloss-pop { opacity: 1; }
