/* ==========================================================================
   ATHARIA — house system

   Deliberately the opposite of Caldris in every axis that matters:
   Caldris  light paper · serif voice · static editorial · photography-led
   Atharia  deep field  · wide grotesk · kinetic + spatial · light-led

   The organising idea is athar — the mark a thing leaves behind. So the
   page is built around light: a field you disturb, a line that draws
   itself as you descend, panels that come up out of the dark.
   ========================================================================== */

:root {
  /* "Old book": a warm page, a light green board, aged tan, navy ink. */
  --paper:    #f7f5ee;   /* warm book page */
  --paper-2:  #e7efe5;   /* light green board */
  --tan:      #ede3d0;   /* foxed paper */
  --white:    #fffdf8;

  /* Navy is the ink. It is also the logo colour. */
  --ink:      #14294a;
  --ink-2:    #46566e;
  --ink-3:    #6b7a8c;

  --green:      #3f6b52;
  --green-2:    #4d7f62;
  --green-lt:   #cfe2d3;   /* the logo's ground */
  --green-lite: #9fc9ae;   /* the node, on dark */
  --green-deep: #14294a;   /* the deep field is navy, not green */

  /* A muted blue for data and state — a shade of the ink, not a rival to it */
  --sky:       #4a6f9c;
  --sky-ink:   #2c4d76;
  --sky-lite:  #dbe6f0;
  --sky-glow:  #7d9cc4;

  --line:     #e0dccf;
  --line-2:   #c3bda9;

  /* On the navy fields */
  --on-dark:      #eef2ea;
  --on-dark-2:    #a9b8cb;
  --on-dark-3:    #74849b;
  --dark-line:    #2a4166;

  --measure:  84rem;
  --rail:     13rem;
  --ease:     cubic-bezier(0.22, 0.61, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
  background: var(--paper);
}
@media (min-width: 720px)  { html { font-size: 17px; } }
@media (min-width: 1400px) { html { font-size: 18px; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: var(--green); color: var(--paper); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* ---- Type ------------------------------------------------------------- */

.d {
  font-family: "Archivo", system-ui, sans-serif;
  font-variation-settings: "wdth" 112;
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.028em;
  margin: 0;
  text-wrap: balance;
}
.d-hero { font-size: clamp(2.9rem, 8.2vw, 7.6rem); letter-spacing: -0.04em; }
.d-1    { font-size: clamp(2.4rem, 5.4vw, 4.6rem); }
.d-2    { font-size: clamp(1.75rem, 3.1vw, 2.7rem); line-height: 1.05; }
.d-3    { font-size: clamp(1.25rem, 1.9vw, 1.6rem);  line-height: 1.15; letter-spacing: -0.02em; font-weight: 400; }

.accent { color: var(--green); }
.dim   { color: var(--ink-2); }
.faint { color: var(--ink-3); }

.lede { font-size: clamp(1.125rem, 1.5vw, 1.3rem); line-height: 1.6; color: var(--ink-2); margin: 0; }
p { margin: 0; }

.tag {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0;
}
.tag--accent { color: var(--green-2); }

/* ---- Shell ------------------------------------------------------------- */

.wrap { width: 100%; max-width: var(--measure); margin: 0 auto; padding: 0 1.4rem; }
.hero__in .wrap { max-width: none; margin: 0; }
@media (min-width: 1000px) { .hero__in .wrap { padding-right: 3rem; } }
@media (min-width: 720px)  { .wrap { padding: 0 3rem; } }
@media (min-width: 1200px) { .wrap { padding: 0 4.5rem 0 calc(var(--rail) + 1rem); } }

.band { padding: 6rem 0; position: relative; }
@media (min-width: 720px)  { .band { padding: 9rem 0; } }
@media (min-width: 1200px) { .band { padding: 11rem 0; } }

/* ==========================================================================
   The rail — a line that draws itself as you descend, with a node per
   chapter. It is the trace, and it is also the navigation.
   ========================================================================== */

.rail {
  position: fixed;
  left: 3rem; top: 0; bottom: 0;
  width: var(--rail);
  z-index: 40;
  display: none;
  pointer-events: none;
}
@media (min-width: 1200px) { .rail { display: block; } }

.rail__track {
  position: absolute;
  left: 3px; top: 18vh; bottom: 14vh;
  width: 1px;
  background: var(--line);
}
.rail__fill {
  position: absolute;
  left: 0; top: 0; width: 1px;
  height: 0;
  background: linear-gradient(180deg, var(--sky-glow), var(--green));
  box-shadow: 0 0 12px rgba(16, 96, 74, 0.55);
}
.rail__items {
  position: absolute;
  left: 0; top: 18vh; bottom: 14vh;
  display: flex; flex-direction: column; justify-content: space-between;
  pointer-events: auto;
}
.rail__item {
  display: flex; align-items: center; gap: 0.95rem;
  font-family: "DM Mono", monospace;
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3);
  transition: color 400ms var(--ease);
}
.rail__item:hover { color: var(--ink-2); }
.rail__dot {
  width: 7px; height: 7px; flex: 0 0 7px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--paper);
  margin-left: -0.5px;
  transition: all 450ms var(--ease);
}
.rail__item[data-on="true"] { color: var(--sky-ink); }
.rail__item[data-on="true"] .rail__dot {
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(16, 96, 74, 0.14), 0 0 14px rgba(16, 96, 74, 0.6);
}

/* ---- Masthead ---------------------------------------------------------- */

.head {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  transition: background-color 500ms var(--ease), border-color 500ms var(--ease);
  border-bottom: 1px solid transparent;
}
.head[data-stuck="true"] {
  background: rgba(246, 249, 248, 0.72);
  backdrop-filter: blur(18px) saturate(1.2);
  border-bottom-color: var(--line);
}
.head__in {
  max-width: var(--measure); margin: 0 auto;
  padding: 0 1.4rem;
  height: 4.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
@media (min-width: 720px) { .head__in { padding: 0 3rem; height: 5.25rem; } }

.mark { display: inline-flex; align-items: center; gap: 0.7rem; }
.mark__t {
  font-family: "Archivo", sans-serif;
  font-variation-settings: "wdth" 108;
  font-weight: 600; font-size: 1.1rem; letter-spacing: -0.008em;
}
.head__nav { display: flex; align-items: center; gap: 1.8rem; }
.head__nav a {
  font-family: "DM Mono", monospace;
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3);
  transition: color 350ms var(--ease);
}
.head__nav a:hover { color: var(--green); }
@media (max-width: 900px) { .head__nav a:not(.head__cta) { display: none; } }
.head__cta {
  color: var(--ink) !important;
  border: 1px solid var(--line-2);
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  transition: border-color 350ms var(--ease), color 350ms var(--ease), background-color 350ms var(--ease);
}
.head__cta:hover { border-color: var(--green); color: var(--green) !important; background: rgba(16,96,74,0.06); }

/* ==========================================================================
   Hero — a field of light you disturb. The canvas is the brand argument:
   you arrive, you leave a mark, the mark outlives the gesture.
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  background: var(--paper);
  overflow: hidden;
}
/* Stacked on small screens the full-height hero leaves a dead gap between
   the film and the type. Let it size to its content instead. */
@media (max-width: 999px) {
  .hero { min-height: auto; align-items: start; }
}
@media (min-width: 1000px) {
  .hero { grid-template-columns: 1.2fr 0.8fr; }
}

/* The film gets its own half and dissolves into the paper on its inner
   edge. A hard rectangle would read as a stock banner. */
.hero__stage {
  position: relative; order: -1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 2rem 1.4rem 0;
}
@media (min-width: 1000px) { .hero__stage { order: 0; min-height: 100svh; padding: 4rem 3rem 4rem 0; } }

/* The film is framed rather than cropped. A 16:9 source forced to fill a
   tall column loses most of its width; a plate shows what was shot. */
.hero__plate {
  position: relative;
  width: 100%; max-width: 30rem;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper-2);
}
.hero__film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }




.hero__in { position: relative; z-index: 2; width: 100%; padding: 6rem 0 3.5rem; }
@media (min-width: 1000px) { .hero__in { padding: 8rem 0; } }

.hero__h {
  max-width: 15ch;
  margin-top: 1.5rem;
  /* Archivo is wide; this is cut for it. Re-check if the face changes. */
  font-size: clamp(2.15rem, 4.1vw, 4.1rem);
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero__sub { margin-top: 2.4rem; max-width: 34rem; display: grid; gap: 2.2rem; }


.hint {
  display: inline-flex; align-items: center; gap: 0.8rem;
  font-family: "DM Mono", monospace; font-size: 0.72rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3);
}
.hint__key {
  border: 1px solid var(--line-2); border-radius: 4px;
  padding: 0.25rem 0.5rem; color: var(--ink-2);
}

/* ---- Buttons ----------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; gap: 0.8rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 0.95rem; font-weight: 500;
  color: var(--ink);
  transition: border-color 400ms var(--ease), background-color 400ms var(--ease), color 400ms var(--ease);
  white-space: nowrap;
}
.btn:hover { border-color: var(--green); color: var(--green); background: rgba(16,96,74,0.07); }
.btn span { transition: transform 400ms var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn--solid { background: var(--green); border-color: var(--green); color: var(--paper); }
.btn--solid:hover { background: #eec489; border-color: #eec489; color: var(--paper); }

/* ---- Chapter heads ----------------------------------------------------- */

.chap { display: grid; gap: 1.6rem; }
@media (min-width: 900px) {
  .chap { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: end; }
}
.chap__n {
  font-family: "DM Mono", monospace;
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--green-2);
  display: flex; align-items: center; gap: 0.9rem;
  margin: 0 0 1.4rem;
}
.chap__n::after { content: ""; flex: 1; max-width: 4rem; height: 1px; background: var(--line-2); }

/* ==========================================================================
   Name — the word, traced
   ========================================================================== */

.name-stage { position: relative; padding: 2rem 0 0; }
.name-svg { width: 100%; height: auto; overflow: visible; display: block; }
.name-svg text {
  font-family: "Archivo", sans-serif;
  font-variation-settings: "wdth" 110;
  font-weight: 300;
  font-size: 100px;
  letter-spacing: -0.03em;
  fill: none;
  stroke: var(--green);
  stroke-width: 0.7;
  paint-order: stroke;
}
.name-svg text.fillup { fill: var(--ink); stroke: none; opacity: 0; transition: opacity 900ms 700ms var(--ease); }
.name-stage[data-on="true"] .name-svg text.fillup { opacity: 1; }

.gloss { display: grid; gap: 2.5rem; margin-top: 4rem; }
@media (min-width: 860px) { .gloss { grid-template-columns: repeat(2, 1fr); gap: 4rem; } }
.gloss__item { border-top: 1px solid var(--line); padding-top: 1.6rem; }
.gloss__w {
  font-family: "Archivo", sans-serif;
  font-variation-settings: "wdth" 90, "opsz" 40;
  font-weight: 400; font-size: 1.5rem; letter-spacing: -0.02em;
}
.gloss__o { font-family: "DM Mono", monospace; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--green-2); margin-top: 0.5rem; }
.gloss__b { margin-top: 1rem; color: var(--ink-2); }

/* ==========================================================================
   Practice — a grid that lights up
   ========================================================================== */

.grid4 { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 4rem; }
@media (min-width: 720px)  { .grid4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .grid4 { grid-template-columns: repeat(4, 1fr); } }

.cell {
  background: var(--paper-2);
  padding: 2.4rem 1.8rem 2.8rem;
  position: relative;
  overflow: hidden;
  transition: background-color 500ms var(--ease);
  min-height: 20rem;
  display: flex; flex-direction: column;
}
.cell::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% 0%, rgba(16,96,74,0.12), transparent 62%);
  opacity: 0; transition: opacity 550ms var(--ease);
}
.cell:hover { background: var(--white); }
.cell:hover::before { opacity: 1; }
.cell__n { font-family: "DM Mono", monospace; font-size: 0.72rem; letter-spacing: 0.18em; color: var(--green-2); position: relative; }
.cell__h { margin: 1.6rem 0 0; position: relative; }
.cell__b { margin-top: 1rem; color: var(--ink-2); font-size: 0.97rem; position: relative; }
.cell__rule { margin-top: auto; padding-top: 1.8rem; position: relative; }
.cell__rule i {
  display: block; height: 1px; width: 2rem; background: var(--line-2);
  transition: width 600ms var(--ease), background-color 600ms var(--ease);
}
.cell:hover .cell__rule i { width: 100%; background: var(--green); }

/* ==========================================================================
   The venture — one product, given the whole stage
   ========================================================================== */

.feature {
  margin-top: 4rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--white);
  display: grid;
}
@media (min-width: 1000px) { .feature { grid-template-columns: 1.05fr 1fr; } }

.feature__film { position: relative; min-height: 17rem; background: var(--paper-2); overflow: hidden; }
.feature__film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* The footage is already cool and clinical; it needs a whisper, not a wash. */
.feature__film::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(150deg, rgba(16,96,74,0.10), rgba(12,33,49,0.08));
}
.feature__badge {
  position: absolute; left: 1.6rem; top: 1.6rem; z-index: 2;
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: rgba(246,249,248,0.92); backdrop-filter: blur(6px);
  border-radius: 999px; padding: 0.45rem 0.95rem;
  font-family: "DM Mono", monospace; font-size: 0.7rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--green);
}
.feature__badge i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green-2);
  animation: pip 2.4s ease-in-out infinite;
}
@keyframes pip { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.7); } }

.feature__body { padding: 2.4rem 1.8rem 2.6rem; display: flex; flex-direction: column; }
@media (min-width: 720px) { .feature__body { padding: 3.2rem 3rem 3.4rem; } }
.feature__b { margin-top: 1.4rem; color: var(--ink-2); max-width: 34rem; }
.feature__meta { margin-top: 2.4rem; border-top: 1px solid var(--line); display: grid; }
.feature__row {
  display: flex; justify-content: space-between; gap: 1.5rem;
  padding: 0.85rem 0; border-bottom: 1px solid var(--line);
  font-family: "DM Mono", monospace; font-size: 0.8rem;
}
.feature__row span:first-child { color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.7rem; }
.feature__row span:last-child { color: var(--ink); text-align: right; }
.feature__cta { margin-top: 2.4rem; }

/* ==========================================================================
   Mechanism — the scroll-driven diagram
   ========================================================================== */

.mech { margin-top: 4rem; border: 1px solid var(--line); background: var(--paper-2); border-radius: 3px; overflow: hidden; }
.mech__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--line); }
.mech__svg { display: block; width: 100%; height: auto; }
.mech__steps { display: grid; gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
@media (min-width: 820px) { .mech__steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--paper-2); padding: 1.7rem 1.5rem; transition: background-color 500ms var(--ease); }
.step[data-on="true"] { background: var(--paper-2); }
.step__n { font-family: "DM Mono", monospace; font-size: 0.7rem; letter-spacing: 0.16em; color: var(--ink-3); transition: color 500ms var(--ease); }
.step[data-on="true"] .step__n { color: var(--green); }
.step__h { margin: 0.9rem 0 0; font-weight: 500; font-size: 1.05rem; }
.step__b { margin-top: 0.6rem; color: var(--ink-2); font-size: 0.94rem; }

/* ==========================================================================
   Principles
   ========================================================================== */

.rules { margin-top: 3.5rem; border-top: 1px solid var(--line); }
.rule-row {
  display: grid; gap: 0.6rem;
  padding: 1.9rem 0; border-bottom: 1px solid var(--line);
  transition: padding-left 500ms var(--ease), background-color 500ms var(--ease);
}
@media (min-width: 900px) {
  .rule-row { grid-template-columns: 4rem 20rem 1fr; gap: 2.5rem; align-items: baseline; padding: 2.2rem 0; }
  .rule-row:hover { padding-left: 1.2rem; background: linear-gradient(90deg, rgba(16,96,74,0.05), transparent 60%); }
}
.rule-row__n { font-family: "DM Mono", monospace; font-size: 0.72rem; letter-spacing: 0.16em; color: var(--green-2); }
.rule-row__b { color: var(--ink-2); max-width: 44rem; }

/* ==========================================================================
   Record
   ========================================================================== */

.rec { margin-top: 3.5rem; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.rec__row { display: grid; gap: 0.35rem; padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--line); }
.rec__row:last-child { border-bottom: none; }
@media (min-width: 720px) { .rec__row { grid-template-columns: 15rem 1fr; gap: 2.5rem; align-items: baseline; padding: 1.35rem 2rem; } }
.rec__k { font-family: "DM Mono", monospace; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.rec__v { font-size: 1rem; }
.rec__v--wait { color: var(--green-2); font-family: "DM Mono", monospace; font-size: 0.85rem; }

.objects { margin-top: 3rem; border-top: 1px solid var(--line); padding-top: 2rem; }
.objects__b { margin-top: 1.4rem; max-width: 62rem; color: var(--ink-3); font-size: 0.95rem; line-height: 1.75; }
.objects__b p + p { margin-top: 1rem; }

/* ---- Plates (used sparingly here — this is not a photo-led site) -------- */

.plate { position: relative; overflow: hidden; background: var(--paper-2); border: 1px solid var(--line); border-radius: 3px; }
.plate img, .plate video { width: 100%; height: 100%; object-fit: cover; display: block; }
.plate::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(16,96,74,0.05), rgba(12,33,49,0.10));
}
.plate--wide { aspect-ratio: 21 / 9; }
.plate--sq   { aspect-ratio: 1 / 1; }

/* A film band — cinema between chapters, edge to edge. */
.filmband { position: relative; overflow: hidden; background: var(--paper-2); }
.filmband video { width: 100%; height: 100%; object-fit: cover; display: block; }
.filmband--tall { height: 46vw; max-height: 30rem; min-height: 15rem; }
.filmband__veil {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, var(--paper) 0%, rgba(246,249,248,0.15) 26%, rgba(246,249,248,0.15) 74%, var(--paper) 100%);
}
.filmband__cap { position: absolute; left: 0; right: 0; bottom: 1.6rem; }

/* ---- Footer ------------------------------------------------------------ */

.foot { border-top: 1px solid var(--line); padding: 5rem 0 2.5rem; background: var(--paper-2); }
.foot__grid { display: grid; gap: 3rem; }
@media (min-width: 860px) { .foot__grid { grid-template-columns: 1fr auto; gap: 6rem; align-items: start; } }
.foot__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 4rem; }
.foot__nav a { font-family: "DM Mono", monospace; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); transition: color 350ms var(--ease); }
.foot__nav a:hover { color: var(--green); }
.foot__base { margin-top: 4rem; padding-top: 1.6rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.6rem; }
@media (min-width: 720px) { .foot__base { flex-direction: row; justify-content: space-between; align-items: baseline; } }

/* ---- Reveal ------------------------------------------------------------ */

.up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out);
}
.up[data-on="true"] { opacity: 1; transform: none; }

/* Display type rises out from behind a line rather than sliding in.
   The mask does the work, so there is no blur filter to pay for. */
.up--wipe {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 105% 0);
  transition: clip-path 1150ms var(--ease-out);
  will-change: clip-path;
}
.up--wipe[data-on="true"] { clip-path: inset(-25% 0 -12% 0); }

/* Films drift against the scroll — a few percent, never enough to notice
   as an effect, just enough that the page does not feel pasted down. */
.filmband video, .feature__film video { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .up { opacity: 1 !important; transform: none !important; }
  .up--wipe { clip-path: none !important; }
  .filmband video, .feature__film video { transform: none !important; }
  .filmband video, .feature__film video { display: none; }
}


/* ==========================================================================
   Deep field — a green section, used twice for weight
   ========================================================================== */

.deepfield { background: var(--green-deep); color: var(--on-dark); border-top: none; }
.deepfield .d { color: var(--on-dark); }
.deepfield .lede,
.deepfield .rule-row__b,
.deepfield .objects__b { color: var(--on-dark-2); }
.deepfield .tag { color: var(--on-dark-3); }
.deepfield .chap__n { color: var(--green-lite); }
.deepfield .chap__n::after { background: var(--dark-line); }
.deepfield .accent { color: var(--green-lite); }
.deepfield .rec { border-color: var(--dark-line); }
.deepfield .rec__row { border-color: var(--dark-line); }
.deepfield .rec__k { color: var(--on-dark-3); }
.deepfield .rec__v { color: var(--on-dark); }
.deepfield .rec__v--wait { color: var(--green-lite); }
.deepfield .objects { border-color: var(--dark-line); }
.deepfield .btn { border-color: var(--dark-line); color: var(--on-dark); }
.deepfield .btn:hover { border-color: var(--green-lite); color: var(--green-lite); background: rgba(108,192,164,0.08); }

/* Reduced motion: swap the pip animation off */
@media (prefers-reduced-motion: reduce) {
  .feature__badge i { animation: none; }
}


/* The rail is fixed and passes over both paper and deep-green sections,
   so it has to invert when a deep field is behind it. */
.rail[data-dark="true"] .rail__item { color: var(--on-dark-3); }
.rail[data-dark="true"] .rail__item:hover { color: var(--on-dark-2); }
.rail[data-dark="true"] .rail__item[data-on="true"] { color: var(--green-lite); }
.rail[data-dark="true"] .rail__track { background: var(--dark-line); }
.rail[data-dark="true"] .rail__dot { background: var(--green-deep); border-color: var(--dark-line); }
.rail[data-dark="true"] .rail__item[data-on="true"] .rail__dot {
  background: var(--green-lite); border-color: var(--green-lite);
  box-shadow: 0 0 0 4px rgba(108,192,164,0.16);
}
.rail[data-dark="true"] .rail__fill {
  background: linear-gradient(180deg, var(--dark-line), var(--green-lite));
  box-shadow: none;
}


/* ==========================================================================
   The mark — an A built around an aperture.
   ========================================================================== */

.sig { width: 27px; height: 27px; display: block; flex: 0 0 auto; overflow: visible; }
.sig__a {
  fill: none; stroke: var(--ink); stroke-width: 6;
  stroke-linecap: round; stroke-linejoin: round;
  transition: stroke 400ms var(--ease);
}
.sig__b {
  fill: none; stroke: var(--ink); stroke-width: 3.4;
  stroke-linecap: round;
  transition: stroke 400ms var(--ease);
}
.sig__o {
  fill: var(--green); stroke: none;
  transform-origin: 32px 36px;
  transition: transform 620ms var(--ease), fill 400ms var(--ease);
}
/* The link registers on hover — once, briefly. */
.mark:hover .sig__o { transform: scale(1.6); }

.deepfield .sig__a, .deepfield .sig__b { stroke: var(--ink); }
.deepfield .sig__o { fill: var(--green); }


/* The hero caption sits over film, so it carries its own ground. */
.stage__cap {
  margin: 1.1rem 0 0;
  text-align: center;
  font-family: "DM Mono", monospace; font-size: 0.68rem;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-3);
}
.stage__cap i { font-style: italic; color: var(--green-2); }


/* The three claims that make Caldris a product rather than a rebuild. */
.claims { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: 0.9rem; }
.claims li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--ink-2);
  font-size: 0.97rem;
  line-height: 1.55;
}
.claims li::before {
  content: "";
  position: absolute; left: 0; top: 0.58em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--sky);
}
.claims b { color: var(--ink); font-weight: 600; }


/* The feature card is a white plate on the green field: its own colours win. */
.deepfield .feature { background: var(--white); border-color: transparent; }
.deepfield .feature .d,
.deepfield .feature__row span:last-child { color: var(--ink); }
.deepfield .feature__b,
.deepfield .claims li { color: var(--ink-2); }
.deepfield .claims b { color: var(--ink); }
.deepfield .feature .tag { color: var(--ink-3); }
.deepfield .feature .tag--accent { color: var(--green-2); }
.deepfield .feature__row span:first-child { color: var(--ink-3); }
.deepfield .feature__meta, .deepfield .feature__row { border-color: var(--line); }
.deepfield .feature .btn { border-color: var(--line-2); color: var(--ink); }
.deepfield .feature .btn:hover { border-color: var(--sky); color: var(--sky-ink); background: rgba(47,143,212,0.06); }


/* ==========================================================================
   The seal — the cut version of the mark, for signing rather than for UI.
   ========================================================================== */

.colophon { margin-top: 2.2rem; display: flex; align-items: center; gap: 1.1rem; }
.seal {
  width: 46px; height: 46px; flex: 0 0 46px;
  fill: var(--ink-3);
  transition: fill 500ms var(--ease), transform 700ms var(--ease);
}
.colophon:hover .seal { fill: var(--green); transform: rotate(-4deg); }
