/* ============================================================
   Seaborne — a 16th century sailing game
   Palette: deep ocean night, vellum, brass, oxblood
   No build step, no dependencies.
   ============================================================ */

:root {
  /* Ink & sea */
  --abyss:      #05101a;
  --deep:       #0a1a26;
  --hull:       #102636;
  --shoal:      #17394d;
  --foam:       #2d6076;

  /* Vellum & light */
  --vellum:     #f2e7cf;
  --vellum-dim: #cfc0a2;
  --vellum-mute:#9aa8a8;

  /* Accents */
  --brass:      #c9922f;
  --brass-lit:  #e8b95c;
  --brass-hi:   #efc266;
  --oxblood:    #9c3f2a;
  --verdigris:  #4f8f83;

  /* Type */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans:  ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Metrics */
  --wrap: 1160px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 3px;
  --rule: 1px solid rgba(201, 146, 47, .22);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  background: var(--deep);
  color: var(--vellum);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
/* Author-level `display:block` above outranks the UA's [hidden] rule
   (author origin beats UA origin), so restate it explicitly. */
[hidden] { display: none !important; }

a { color: var(--brass-lit); text-decoration-color: rgba(201,146,47,.4); text-underline-offset: 3px; }
a:hover { color: var(--brass-hi); }

:focus-visible {
  outline: 2px solid var(--brass-hi);
  outline-offset: 3px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 50%; top: -100px; transform: translateX(-50%);
  background: var(--brass); color: var(--abyss);
  padding: .7rem 1.2rem; font-weight: 700; z-index: 999;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

.wrap {
  width: 100%; max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- shared type ---------- */
.eyebrow, .section-kicker {
  font-family: var(--sans);
  font-size: .75rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 600;
}
.section-kicker { margin-bottom: .9rem; }

/* The hero states the target window, but links straight to the Status
   section where the qualifiers live — so the caveat is one click away
   rather than a scroll the reader may never make. */
.eyebrow-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(201,146,47,.45);
  text-underline-offset: 3px;
  transition: color .2s var(--ease), text-decoration-color .2s var(--ease);
}
.eyebrow-link:hover {
  color: var(--brass-hi);
  text-decoration-color: var(--brass-hi);
}

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 1.1rem + 2.7vw, 3rem);
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--vellum);
}

.section-sub {
  margin-top: 1rem;
  max-width: 56ch;
  color: var(--vellum-dim);
  font-size: 1.05rem;
}

.lead { font-size: 1.15rem; color: var(--vellum); }

p + p { margin-top: 1rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.6rem;
  font: inherit; font-weight: 600; font-size: .95rem;
  letter-spacing: .02em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s var(--ease), background-color .18s var(--ease),
              border-color .18s var(--ease), color .18s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(180deg, var(--brass-lit), var(--brass));
  color: #1a1207;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset,
              0 8px 22px -12px rgba(201,146,47,.9);
}
.btn-primary:hover { background: linear-gradient(180deg, #f2cd77, var(--brass-lit)); color:#1a1207; }

.btn-discord {
  background: #5865f2;
  color: #fff;
  box-shadow: 0 8px 24px -12px rgba(88,101,242,.95);
}
.btn-discord:hover { background: #6f7bf7; color: #fff; }
.icon-discord { width: 20px; height: 20px; flex: none; }
.btn-wide { margin-top: 1.6rem; }

.btn-ghost {
  background: transparent;
  border-color: rgba(201,146,47,.4);
  color: var(--vellum);
}
.btn-ghost:hover { border-color: var(--brass); background: rgba(201,146,47,.08); color: var(--vellum); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background-color .3s var(--ease), border-color .3s var(--ease),
              backdrop-filter .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(6, 18, 28, .88);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom-color: rgba(201,146,47,.18);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; height: 4.75rem;
}

.brand {
  display: inline-flex; align-items: center; gap: .7rem;
  color: var(--brass); text-decoration: none;
}
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-project {
  font-size: .58em; letter-spacing: .22em;
  color: var(--brass); margin-right: .45em;
  vertical-align: baseline;
}
.brand-word {
  font-family: var(--serif);
  font-size: 1.35rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--vellum);
}

.nav-list {
  display: flex; align-items: center; gap: 1.9rem;
  list-style: none; padding: 0;
}
.nav-list a {
  color: var(--vellum-dim); text-decoration: none;
  font-size: .92rem; letter-spacing: .04em;
  position: relative; padding-block: .4rem;
  transition: color .2s var(--ease);
}
.nav-list a:hover { color: var(--vellum); }
.nav-list a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--brass);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav-list a:not(.nav-cta):hover::after { transform: scaleX(1); }
/* Current page stays underlined so you always know where you are. */
.nav-list a.is-current { color: var(--vellum); }
.nav-list a.is-current::after { transform: scaleX(1); }

.nav-cta {
  border: 1px solid rgba(201,146,47,.45);
  padding: .5rem 1.1rem !important;
  border-radius: var(--radius);
  color: var(--brass-lit) !important;
}
.nav-cta:hover { background: rgba(201,146,47,.12); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 1px solid rgba(201,146,47,.35);
  border-radius: var(--radius); cursor: pointer;
  position: relative;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  position: absolute; left: 50%; width: 18px; height: 1.5px;
  background: var(--vellum); transform: translateX(-50%);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle-bars { top: 50%; margin-top: -.75px; }
.nav-toggle-bars::before { content: ""; top: -6px; }
.nav-toggle-bars::after  { content: ""; top:  6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateX(-50%) translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after  { transform: translateX(-50%) translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-list {
    position: fixed; inset: 4.75rem 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(6, 18, 28, .97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(201,146,47,.2);
    padding: .5rem var(--gutter) 1.5rem;
    clip-path: inset(0 0 100% 0);
    transition: clip-path .35s var(--ease);
  }
  .nav-list.is-open { clip-path: inset(0 0 0 0); }
  .nav-list li { border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav-list li:last-child { border-bottom: 0; padding-top: 1rem; }
  .nav-list a { display: block; padding: 1rem 0; font-size: 1.05rem; }
  .nav-cta { text-align: center; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: min(100svh, 900px);
  display: flex; align-items: center;
  padding-top: 7rem; padding-bottom: 8rem;
  /* Key art slot: drop a wide image at assets/img/key-art.jpg and it
     appears here automatically. Until then the file simply 404s, that
     layer paints nothing, and the gradients below stand in — so the
     hero looks deliberate either way.
     The scrim layers sit ABOVE the photo to keep the headline legible
     over bright artwork (the key art has a blown-out sun mid-frame). */
  background:
    linear-gradient(100deg, rgba(5,16,26,.94) 0%, rgba(5,16,26,.72) 42%, rgba(5,16,26,.30) 70%, rgba(5,16,26,.55) 100%),
    linear-gradient(180deg, rgba(5,16,26,.85) 0%, transparent 30%, rgba(10,26,38,.9) 100%),
    url("../img/key-art.jpg") center 38% / cover no-repeat,
    radial-gradient(120% 90% at 50% 0%, #123047 0%, transparent 60%),
    radial-gradient(90% 70% at 80% 20%, rgba(79,143,131,.18) 0%, transparent 55%),
    linear-gradient(180deg, var(--abyss) 0%, var(--hull) 55%, var(--deep) 100%);
  overflow: hidden;
}

/* faint star / spray speckle */
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 18%, rgba(242,231,207,.35), transparent),
    radial-gradient(1px 1px   at 68% 12%, rgba(242,231,207,.28), transparent),
    radial-gradient(1.2px 1.2px at 84% 30%, rgba(242,231,207,.22), transparent),
    radial-gradient(1px 1px   at 35% 8%,  rgba(242,231,207,.2),  transparent),
    radial-gradient(1.4px 1.4px at 52% 26%, rgba(242,231,207,.18), transparent);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 3; }

.hero-logo {
  /* Capped on BOTH axes and letterboxed, so whatever aspect ratio the
     supplied file has, it can never blow out the hero height. */
  width: auto;
  max-width: min(100%, 600px);
  max-height: 230px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 1.2rem;
  /* The wordmark is metal-on-transparent; a soft drop shadow keeps it
     from dissolving into the dark water behind it. */
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.65));
}

.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 1.1rem + 6.2vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  margin: 1.1rem 0 0;
}
.hero-title-line { display: block; }
.hero-title-accent {
  color: transparent;
  background: linear-gradient(100deg, var(--brass-hi) 10%, var(--brass) 45%, #a8763f 90%);
  -webkit-background-clip: text; background-clip: text;
  font-style: italic;
}

.hero-lede {
  margin-top: 1.6rem;
  max-width: 60ch;
  font-size: clamp(1.02rem, .96rem + .3vw, 1.2rem);
  color: var(--vellum-dim);
}
.hero-lede strong { color: var(--vellum); font-weight: 600; }

.hero-actions {
  display: flex; flex-wrap: wrap; gap: .9rem;
  margin-top: 2.2rem;
}

.hero-facts {
  display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 5vw, 3.5rem);
  list-style: none; padding: 0;
  margin-top: 3.4rem; padding-top: 1.8rem;
  border-top: var(--rule);
  max-width: 640px;
}
.hero-facts li { display: flex; flex-direction: column; gap: .15rem; }
.fact-num {
  font-family: var(--serif); font-size: 1.5rem;
  color: var(--brass-lit); letter-spacing: .02em;
}
.fact-label {
  font-size: .82rem; color: var(--vellum-mute);
  letter-spacing: .04em;
}

/* animated sea */
.hero-sea {
  position: absolute; inset: auto 0 0 0; height: 42%;
  z-index: 2; pointer-events: none;
}
.sea-layer {
  position: absolute; bottom: 0; left: -5%;
  width: 110%; height: 100%;
  /* opt out of the global svg max-width so the drift animation
     never exposes an uncovered strip at either edge */
  max-width: none;
}
.sea-far  { fill: rgba(45,96,118,.30); animation: drift 19s ease-in-out infinite alternate; }
.sea-mid  { fill: rgba(23,57,77,.55);  animation: drift 13s ease-in-out infinite alternate-reverse; height: 82%; }
.sea-near { fill: var(--deep);          animation: drift  9s ease-in-out infinite alternate; height: 62%; }

@keyframes drift {
  from { transform: translateX(-2.5%) translateY(4px); }
  to   { transform: translateX( 2.5%) translateY(-4px); }
}

.scroll-hint {
  position: absolute; left: 50%; bottom: 2rem;
  transform: translateX(-50%);
  z-index: 4; width: 44px; height: 44px;
  display: grid; place-items: center;
}
.scroll-hint-line {
  width: 1px; height: 34px;
  background: linear-gradient(180deg, transparent, var(--brass));
  animation: sink 2.4s ease-in-out infinite;
}
@keyframes sink {
  0%, 100% { opacity: .25; transform: translateY(-6px); }
  50%      { opacity: 1;   transform: translateY(4px); }
}

/* ============================================================
   INTERIOR PAGE HEADER
   ============================================================ */
.page-hero {
  position: relative;
  padding-top: clamp(8rem, 6rem + 6vw, 11rem);
  padding-bottom: clamp(2.5rem, 4vw, 4rem);
  background:
    radial-gradient(90% 120% at 20% 0%, rgba(45,96,118,.35), transparent 60%),
    linear-gradient(180deg, var(--abyss), var(--deep));
  border-bottom: var(--rule);
}
.page-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem);
  line-height: 1.08; letter-spacing: -.015em;
  color: var(--vellum); margin-top: .9rem;
}
.page-lede {
  margin-top: 1.1rem; max-width: 60ch;
  font-size: clamp(1rem, .96rem + .3vw, 1.15rem);
  color: var(--vellum-dim);
}
/* Interior pages carry their own <h1>, so the imported section's heading
   block is kept for screen readers but hidden visually. */
.section-head.visually-hidden { margin: 0; }
/* The page header already supplies the top breathing room; without this
   the first section adds its own and leaves a dead band. */
.page-hero + .section { padding-top: clamp(2.5rem, 5vw, 4rem); }

/* ============================================================
   HOME — SECTION CARDS
   ============================================================ */
.page-cards {
  list-style: none; padding: 0;
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
/* Two columns so the four topic cards sit 2x2 and the status card spans
   both — three columns would strand the fourth card on its own row. */
@media (min-width: 760px) {
  .page-cards { grid-template-columns: 1fr 1fr; }
}
.page-card {
  position: relative;
  border: 1px solid rgba(201,146,47,.22);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(23,57,77,.5), rgba(10,26,38,.5));
  padding: 1.7rem 1.8rem 3.2rem;
  transition: border-color .3s var(--ease), transform .3s var(--ease),
              box-shadow .3s var(--ease);
}
.page-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201,146,47,.5);
  box-shadow: 0 26px 50px -30px rgba(0,0,0,.95);
}
.page-card h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: 1.5rem; margin-bottom: .55rem;
}
.page-card h3 a {
  color: var(--vellum); text-decoration: none;
}
/* Stretch the heading link over the whole card so the card is the target. */
.page-card h3 a::after { content: ""; position: absolute; inset: 0; }
.page-card:hover h3 a { color: var(--brass-hi); }
.page-card p { color: var(--vellum-dim); font-size: .96rem; }
.page-card-go {
  position: absolute; left: 1.8rem; bottom: 1.5rem;
  color: var(--brass); font-size: 1.2rem;
  transition: transform .3s var(--ease);
}
.page-card:hover .page-card-go { transform: translateX(6px); }
.page-card-wide { grid-column: 1 / -1; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding-block: clamp(4.5rem, 9vw, 8rem); position: relative; }

.section-head { max-width: 62ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.section-world {
  background: linear-gradient(180deg, var(--deep), var(--hull));
}
.section-features {
  background: var(--hull);
  border-top: var(--rule); border-bottom: var(--rule);
}
.section-ashore  { background: linear-gradient(180deg, var(--hull), var(--abyss)); }
.section-crewsys { background: var(--abyss); border-top: var(--rule); }
.section-status  { background: linear-gradient(180deg, var(--abyss), var(--deep)); }
.section-mate    {
  background:
    radial-gradient(70% 100% at 25% 40%, rgba(201,146,47,.10), transparent 65%),
    var(--abyss);
  border-top: var(--rule);
}
.section-roadmap { background: var(--abyss); }
.section-join    {
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(79,143,131,.16), transparent 60%),
    var(--deep);
  border-top: var(--rule);
}

/* ---------- world ---------- */
.world-grid {
  display: grid; gap: clamp(2.5rem, 5vw, 4.5rem);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 900px) {
  .world-grid { grid-template-columns: 1.05fr .95fr; }
}
.world-copy p { color: var(--vellum-dim); }
.world-copy .lead { color: var(--vellum); }

.world-chart {
  margin: 0;
  border: 1px solid rgba(201,146,47,.3);
  border-radius: var(--radius);
  padding: .6rem;
  background: rgba(0,0,0,.25);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.9);
  transform: rotate(-1.1deg);
}
.world-chart picture { display: block; }
.world-chart svg,
.world-chart img { border-radius: 2px; width: 100%; height: auto; }
.world-chart figcaption {
  margin-top: .85rem; padding: 0 .3rem .2rem;
  font-size: .85rem; color: var(--vellum-mute);
  font-style: italic; text-align: center;
}

/* ---------- system cards ---------- */
.sys-grid {
  list-style: none; padding: 0;
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
.sys {
  border: 1px solid rgba(201,146,47,.2);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(23,57,77,.5), rgba(10,26,38,.5));
  padding: 1.5rem 1.6rem 1.7rem;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.sys:hover { border-color: rgba(201,146,47,.42); transform: translateY(-3px); }

.sys-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin-bottom: .7rem;
}
.sys-head h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: 1.28rem; color: var(--vellum); line-height: 1.2;
}
.sys-pct {
  flex: none;
  font-size: .82rem; font-weight: 700; letter-spacing: .06em;
  color: var(--brass-hi); font-variant-numeric: tabular-nums;
}
.sys-pct.is-done  { color: var(--verdigris); }
.sys-pct.is-early { color: #e08a72; }

/* Completion bar. Width comes from an inline --v so the figure printed in
   the markup and the bar drawn here can never disagree. */
.bar {
  display: block; height: 4px; width: 100%;
  background: rgba(242,231,207,.12);
  border-radius: 2px; overflow: hidden; position: relative;
}
.bar::after {
  content: ""; position: absolute; inset: 0 auto 0 0;
  width: var(--v, 0%);
  background: linear-gradient(90deg, var(--brass), var(--brass-hi));
  border-radius: 2px;
}
.sys .bar { margin-bottom: 1rem; }
.bar.is-done::after  { background: linear-gradient(90deg, #3f7c72, var(--verdigris)); }
.bar.is-early::after { background: linear-gradient(90deg, #8c3a26, #c9674a); }

.sys p { color: var(--vellum-dim); font-size: .95rem; }
.sys-left {
  margin-top: .85rem; padding-top: .85rem;
  border-top: 1px solid rgba(242,231,207,.1);
  font-size: .89rem; color: var(--vellum-mute);
}
.sys-left strong { color: var(--brass); font-weight: 600; }

/* ---------- combat callout ---------- */
.callout {
  margin-top: 2rem;
  border: 1px solid rgba(224,138,114,.42);
  border-left-width: 3px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(120,45,30,.22), rgba(10,26,38,.55));
  padding: clamp(1.5rem, 3vw, 2.2rem);
}
.callout-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin-bottom: .7rem;
}
.callout-head h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); color: var(--vellum);
}
.callout .bar { margin-bottom: 1.1rem; max-width: 420px; }
.callout p { color: var(--vellum-dim); }
.callout strong { color: var(--vellum); }

/* ---------- status statement ---------- */
.statement {
  margin: 0 0 clamp(2.5rem, 5vw, 4rem);
  padding: clamp(1.6rem, 3vw, 2.4rem) clamp(1.6rem, 3vw, 2.6rem);
  border-left: 3px solid var(--brass);
  background: linear-gradient(90deg, rgba(201,146,47,.09), transparent 70%);
  max-width: 68ch;
}
.statement p { font-size: 1.08rem; color: var(--vellum-dim); }
.statement strong { color: var(--brass-hi); font-weight: 600; }

.when {
  margin: 0 0 clamp(2.5rem, 5vw, 3.5rem);
  padding: clamp(1.4rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2.2rem);
  border: 1px solid rgba(201,146,47,.28);
  border-radius: var(--radius);
  background: rgba(201,146,47,.05);
  max-width: 68ch;
}
.when-title {
  font-family: var(--serif); font-weight: 400;
  font-size: 1.35rem; color: var(--vellum); margin-bottom: .5rem;
}
.when-target {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem);
  color: var(--brass-hi); margin-bottom: .9rem;
}
.when p:not(.when-target) { color: var(--vellum-dim); font-size: .97rem; }

.status-sub {
  font-family: var(--serif); font-weight: 400;
  font-size: 1.5rem; color: var(--vellum);
  margin-bottom: 1.4rem;
  padding-bottom: .7rem; border-bottom: var(--rule);
}

/* ---------- first mate ---------- */
.mate-inner {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .mate-inner { grid-template-columns: minmax(240px, 380px) 1fr; }
}

.mate-portrait { margin: 0; }
.portrait-frame {
  position: relative;
  filter: drop-shadow(0 26px 40px rgba(0,0,0,.75));
}
.portrait-frame picture { display: block; }
.portrait-frame svg,
.portrait-frame img { width: 100%; height: auto; }
/* No border-radius here: the portrait art carries its own frame and a
   nameplate that hangs below the circle, which a 50% radius would clip. */

.portrait-note {
  margin-top: 1rem; text-align: center;
  font-size: .82rem; font-style: italic; color: var(--vellum-mute);
}
/* Hidden automatically once real art is present. */
.portrait-frame.has-art .portrait-note,
.mate-portrait.has-art .portrait-note { display: none; }

.mate-copy .section-title { margin-bottom: .4rem; }
.mate-copy p:not(.section-kicker) { color: var(--vellum-dim); }
.mate-copy .lead { color: var(--vellum); margin-top: .8rem; }

/* ---------- roadmap ---------- */
.roadmap {
  list-style: none; padding: 0;
  display: grid; gap: 0;
  position: relative;
  border-left: 1px solid rgba(201,146,47,.25);
  margin-left: .6rem;
}
.milestone {
  position: relative;
  padding: 1.4rem 0 1.9rem 2.2rem;
}
.milestone::before {
  content: ""; position: absolute; left: -6.5px; top: 1.95rem;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--abyss);
  border: 2px solid rgba(201,146,47,.45);
}
.milestone.done::before   { background: var(--verdigris); border-color: var(--verdigris); }
.milestone.active::before {
  background: var(--brass); border-color: var(--brass);
  box-shadow: 0 0 0 5px rgba(201,146,47,.18);
}
.milestone h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: 1.3rem; color: var(--vellum);
  display: inline-block; margin-right: .75rem;
}
.milestone p { color: var(--vellum-dim); font-size: .96rem; margin-top: .3rem; }
.milestone-tag {
  display: inline-block; vertical-align: middle;
  font-size: .68rem; letter-spacing: .13em; text-transform: uppercase;
  padding: .25rem .6rem; border-radius: 100px;
  border: 1px solid rgba(242,231,207,.22);
  color: var(--vellum-mute);
}
.milestone.done   .milestone-tag { color: var(--verdigris); border-color: rgba(79,143,131,.5); }
.milestone.active .milestone-tag { color: var(--brass-hi);  border-color: rgba(201,146,47,.55); }

/* ---------- crew / signup ---------- */
.crew-inner {
  display: grid; gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
@media (min-width: 900px) {
  .crew-inner { grid-template-columns: 1.05fr .95fr; }
}
.crew-copy p { color: var(--vellum-dim); margin-top: 1rem; max-width: 52ch; }

.crew-form { width: 100%; }
.field-row {
  display: flex; gap: .6rem; flex-wrap: wrap;
}
.field-row input {
  flex: 1 1 240px;
  padding: .85rem 1.1rem;
  font: inherit; font-size: .98rem;
  color: var(--vellum);
  background: rgba(0,0,0,.32);
  border: 1px solid rgba(242,231,207,.22);
  border-radius: var(--radius);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.field-row input::placeholder { color: var(--vellum-mute); }
.field-row input:focus {
  border-color: var(--brass);
  background: rgba(0,0,0,.45);
  outline: none;
}
.field-row input[aria-invalid="true"] { border-color: var(--oxblood); }

.form-lede {
  margin-bottom: .9rem;
  font-size: .95rem; color: var(--vellum-mute);
}

.form-note {
  margin-top: .85rem; font-size: .85rem; color: var(--vellum-mute);
}
.form-note.is-error   { color: #e08a72; }
.form-note.is-success { color: var(--verdigris); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--abyss);
  border-top: var(--rule);
  padding-block: 3rem 2.5rem;
}
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 1.75rem;
  align-items: flex-start; justify-content: space-between;
}
.footer-brand .brand-project {
  font-size: .58em; letter-spacing: .22em;
  color: var(--brass); margin-right: .45em;
  vertical-align: baseline;
}
.brand-word { font-size: 1.15rem; }
.footer-brand p {
  margin-top: .5rem; font-size: .88rem; color: var(--vellum-mute);
  max-width: 30ch;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer-nav a {
  color: var(--vellum-dim); text-decoration: none; font-size: .9rem;
}
.footer-nav a:hover { color: var(--brass-lit); }
.footer-legal {
  flex-basis: 100%; padding-top: 1.75rem;
  border-top: 1px solid rgba(242,231,207,.08);
  font-size: .82rem; color: var(--vellum-mute);
}

/* ============================================================
   SCROLL REVEAL (progressive enhancement)
   ============================================================ */
.js .reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}
