:root {
  --felt: #0f3d2e;
  --felt2: #164a39;
  --ink: #14201b;
  --muted: #5a6b63;
  --paper: #f4f7f8;
  --paper2: #e8eef0;
  --crimson: #c41e3a;
  --gold: #c9a227;
  --line: rgba(20, 32, 27, 0.12);
  --rail: 72px;
  --max: 920px;
  --display: "Syne", "Be Vietnam Pro", sans-serif;
  --body: "Be Vietnam Pro", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.75;
  background:
    radial-gradient(circle at 20% 30%, rgba(201, 162, 39, 0.08), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(196, 30, 58, 0.06), transparent 35%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(0, 0, 0, 0.035) 10px,
      rgba(0, 0, 0, 0.035) 11px
    ),
    linear-gradient(160deg, var(--felt) 0%, #0a2e22 48%, var(--felt2) 100%);
  min-height: 100%;
}
a { color: var(--crimson); }
img { display: block; max-width: 100%; height: auto; }
.skip {
  position: absolute;
  left: 10px;
  top: -44px;
  background: var(--paper);
  color: var(--ink);
  padding: 6px 10px;
  z-index: 50;
}
.skip:focus { top: 10px; }

/* Left stamp rail — different from top-nav sites */
.rail {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--rail);
  z-index: 30;
  background: #0a2a20;
  border-right: 2px solid var(--gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 22px;
}
.rail-mark {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  text-decoration: none;
  color: var(--paper);
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.18em;
}
.rail-mark span {
  color: var(--gold);
  margin-block-start: 8px;
  font-size: 12px;
  letter-spacing: 0.28em;
  font-weight: 600;
}
.rail-dots {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rail-dots a {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--gold);
  text-indent: -999px;
  overflow: hidden;
  transition: background 0.2s ease, transform 0.2s ease;
}
.rail-dots a:hover,
.rail-dots a:focus-visible {
  background: var(--crimson);
  border-color: var(--crimson);
  transform: scale(1.25);
}

.stage {
  margin-left: var(--rail);
  min-height: 100vh;
}

/* Full-bleed hero — not the shared text|image card grid */
.hero {
  position: relative;
  min-height: min(92vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  margin: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1.02); }
  to { transform: scale(1.08) translateY(-1.5%); }
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 42, 32, 0.82) 0%, rgba(10, 42, 32, 0.35) 48%, rgba(10, 42, 32, 0.55) 100%),
    linear-gradient(0deg, rgba(10, 42, 32, 0.92) 0%, transparent 48%);
  pointer-events: none;
}
.hero-copy {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 48px 0 56px;
  color: var(--paper);
}
.brand-lockup {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(48px, 14vw, 96px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin: 0 0 14px;
  color: #fff;
}
.brand-lockup i {
  font-style: normal;
  color: var(--gold);
}
.hero h1 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(22px, 4.5vw, 34px);
  line-height: 1.25;
  max-width: 18ch;
}
.lede {
  margin: 0 0 20px;
  color: rgba(244, 247, 248, 0.82);
  max-width: 38rem;
  font-size: 15px;
}
.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cta:hover { transform: translateY(-2px); }
.cta-fill {
  background: var(--crimson);
  color: #fff;
  box-shadow: 0 8px 24px rgba(196, 30, 58, 0.35);
}
.cta-ghost {
  background: transparent;
  color: var(--paper);
  border: 1.5px solid rgba(244, 247, 248, 0.55);
}

.sheet {
  width: min(var(--max), calc(100% - 28px));
  margin: -28px auto 0;
  position: relative;
  z-index: 3;
  padding-bottom: 48px;
}

/* Magazine zig-zag chapters — not bordered "mod" cards */
.chapter {
  background: var(--paper);
  margin: 0 0 18px;
  padding: 28px 22px 30px;
  border-left: 6px solid var(--crimson);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  animation: riseIn 0.7s ease both;
}
.chapter:nth-child(even) {
  border-left-color: var(--gold);
  background: var(--paper2);
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.chapter-num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--crimson);
  margin: 0 0 8px;
}
.chapter:nth-child(even) .chapter-num { color: #8a6f12; }
.chapter h2 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(22px, 4vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.chapter h2 em {
  font-style: normal;
  color: var(--crimson);
}
.chapter h3 {
  margin: 18px 0 8px;
  font-size: 15px;
  color: var(--felt);
}
.chapter p {
  margin: 0 0 12px;
  color: #2a3832;
}

.zig {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}
.zig figure {
  margin: 0;
  overflow: hidden;
}
.zig img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.zig figure:hover img { transform: scale(1.04); }
.zig figcaption {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.note-box {
  padding: 14px 0 0;
  border-top: 1px dashed var(--line);
}
.note-box h3 { margin-top: 0; }

/* Domain directory — typographic columns, not chip pills */
.dir {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 18px;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
}
.dir li {
  break-inside: avoid;
  padding: 5px 0;
  border-bottom: 1px dotted rgba(20, 32, 27, 0.15);
  color: var(--felt);
  word-break: break-all;
}
.dir.core li {
  font-weight: 700;
  color: var(--crimson);
}

.keys {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.keys li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  display: grid;
  gap: 2px;
}
.keys b {
  font-family: var(--display);
  color: var(--felt);
  font-size: 15px;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.faq summary {
  cursor: pointer;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+";
  display: inline-block;
  width: 1.2em;
  color: var(--crimson);
  font-weight: 800;
}
.faq details[open] summary::before { content: "–"; }
.faq p { margin: 8px 0 0 1.2em; }

.foot {
  text-align: center;
  color: rgba(244, 247, 248, 0.65);
  font-size: 12px;
  padding: 8px 16px 36px;
  margin-left: var(--rail);
}

@media (min-width: 760px) {
  :root { --rail: 88px; }
  .chapter { padding: 36px 40px 40px; }
  .zig { grid-template-columns: 1.15fr 0.85fr; align-items: start; }
  .zig.reverse { grid-template-columns: 0.85fr 1.15fr; }
  .zig.reverse figure { order: 2; }
  .dir { columns: 3; }
  .keys { grid-template-columns: 1fr 1fr; column-gap: 28px; }
  body { font-size: 17px; }
}

@media (max-width: 640px) {
  :root { --rail: 0px; }
  .rail {
    position: sticky;
    top: 0;
    width: 100%;
    height: auto;
    flex-direction: row;
    padding: 10px 14px;
    border-right: 0;
    border-bottom: 2px solid var(--gold);
  }
  .rail-mark {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 18px;
    letter-spacing: 0.08em;
  }
  .rail-mark span {
    display: inline;
    margin: 0 0 0 8px;
    font-size: 11px;
  }
  .rail-dots { flex-direction: row; }
  .stage { margin-left: 0; }
  .foot { margin-left: 0; }
  .dir { columns: 2; }
}
