/* ==========================================================================
   Nebula Group — design system
   Concept: 19th-century astronomical survey plate meets investment memorandum.
   Cold ink ground, hairline coordinate rules, marginal data annotations,
   and a single warm light source (the brand gold #D2AB82).
   Committed single-theme brand surface — every colour is painted explicitly.
   ========================================================================== */

:root {
  /* Ground — the deep field. Near-black carrying a cool blue bias. */
  --ink:          #070A12;
  --ink-raised:   #0A101E;
  --ink-panel:    #0E1626;
  --ink-line:     rgba(235, 231, 223, 0.08);
  --ink-line-lit: rgba(210, 171, 130, 0.16);

  /* Amber — annotation ink. The warm light source. */
  --gold:         #D2AB82;
  --gold-bright:  #E0BE9B;
  --gold-dim:     rgba(210, 171, 130, 0.62);
  --gold-wash:    rgba(210, 171, 130, 0.06);

  /* Ion — cold starlight, reserved strictly for data: codes, counts,
     registration numbers. Never used for emphasis or decoration. */
  --ion:          #8FB8D6;
  --ion-dim:      rgba(143, 184, 214, 0.55);
  --ion-line:     rgba(143, 184, 214, 0.14);

  /* Text */
  --bone:         #EBE7DF;
  --slate:        #A9B1C0;
  --slate-dim:    #78829A;

  /* Type */
  --display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --body:    "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --data:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Rhythm */
  --gutter:   clamp(1.25rem, 5vw, 4rem);
  --measure:  62ch;
  --rule:     1px solid var(--ink-line);
  --ease:     cubic-bezier(.22, .61, .36, 1);

  /* The prospectus grid: a narrow margin column for data labels,
     a wide column for content. Collapses to one column on small screens. */
  --margin-col: 9.5rem;
  --shell:      78rem;
}

/* --------------------------------------------------------------- reset -- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-bright); }

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

::selection { background: var(--gold); color: var(--ink); }

/* ---------------------------------------------------------------- type -- */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.018em;
  text-wrap: balance;
  margin: 0;
  color: var(--bone);
}

h1 { font-size: clamp(2.6rem, 6.6vw, 5rem); font-weight: 200; line-height: 1.02; letter-spacing: -0.025em; }
h2 { font-size: clamp(2rem, 4.1vw, 3.3rem); font-weight: 200; letter-spacing: -0.02em; }

/* The signature device: one word per heading set in amber italic. It marks the
   claim the sentence actually turns on, so it has to be chosen, not sprinkled. */
h1 em, h2 em, h3 em, .pull em {
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
}
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.2; }
h4 { font-size: 1.0625rem; line-height: 1.3; letter-spacing: -0.008em; }

p { margin: 0; }

.lede {
  font-size: clamp(1.0625rem, 1.55vw, 1.3125rem);
  line-height: 1.62;
  color: var(--bone);
  max-width: var(--measure);
}

.prose { display: flex; flex-direction: column; gap: 1.15em; max-width: var(--measure); color: var(--slate); }
.prose strong { color: var(--bone); font-weight: 600; }
.prose em { font-family: var(--display); font-style: italic; color: var(--bone); font-size: 1.05em; }

/* Marginal annotation — mono, uppercase, tracked. Used for real data:
   section indices, sector codes, registration numbers, jurisdictions. */
.label {
  font-family: var(--data);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}
.label--mute { color: var(--slate-dim); }

/* Section eyebrow: a short rule then the label, like the caption line ruled
   under a plate in a survey volume. */
.eyebrow {
  font-family: var(--data);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
  flex: none;
}
@media (min-width: 60.01rem) {
  /* in the margin column the rule would collide with the text, so stack it */
  .grid-margin > .eyebrow { flex-direction: column; align-items: flex-start; gap: 0.7rem; }
  .grid-margin > .eyebrow::before { width: 34px; }
}

/* Data annotation — ion blue, strictly for codes and counts. */
.mono-tag {
  font-family: var(--data);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ion);
  margin: 0;
}

/* ------------------------------------------------------------- layout --- */

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

/* Full-bleed hairline dividing one plate from the next */
.plate { border-top: var(--rule); }
.plate__inner { padding-block: clamp(3.5rem, 8vw, 7rem); }

/* The two-column prospectus grid */
.grid-margin {
  display: grid;
  grid-template-columns: var(--margin-col) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
@media (max-width: 60rem) {
  .grid-margin { grid-template-columns: 1fr; gap: 1.25rem; }
}

.stack   { display: flex; flex-direction: column; gap: 1.5rem; }
.stack-s { display: flex; flex-direction: column; gap: 0.75rem; }
.stack-l { display: flex; flex-direction: column; gap: clamp(2rem, 4vw, 3.25rem); }

/* --------------------------------------------------------- navigation --- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(10, 12, 15, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: var(--rule);
}

.masthead__inner {
  max-width: var(--shell);
  margin-inline: auto;
  padding: 0.9rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--bone); }
.brand:hover { color: var(--bone); }
.brand__mark { width: 26px; height: 26px; flex: none; }
.brand__name {
  font-family: var(--data);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); }
.nav a {
  font-family: var(--data);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--slate);
  padding-block: 0.35rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav a:hover { color: var(--bone); border-bottom-color: var(--gold-dim); }
.nav a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }

.nav-toggle {
  display: none;
  background: none;
  border: var(--rule);
  color: var(--bone);
  font-family: var(--data);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--gold-dim); color: var(--gold); }

@media (max-width: 56rem) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink-raised);
    border-bottom: var(--rule);
    padding: 0.5rem var(--gutter) 1.25rem;
  }
  .nav[hidden] { display: none; }
  .nav a { padding-block: 0.8rem; border-bottom: var(--rule); }
}

/* -------------------------------------------------------------- hero ---- */

.hero { position: relative; overflow: hidden; border-bottom: var(--rule); }

.hero__field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.85;
}

/* Gold light bleeding in from the upper right, like a plate exposure */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 82% 8%, rgba(210, 171, 130, 0.13), transparent 58%),
    linear-gradient(to bottom, transparent 55%, var(--ink) 100%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(4.5rem, 13vw, 9.5rem) var(--gutter) clamp(3.5rem, 8vw, 6rem);
}

.hero h1 { max-width: 17ch; }
.hero .lede { margin-top: 1.75rem; }

.hero__coords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-bottom: 2rem;
}

/* Staged entrance — one orchestrated moment on load, nothing after */
.rise { animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; }
.rise-1 { animation-delay: 0.05s; }
.rise-2 { animation-delay: 0.18s; }
.rise-3 { animation-delay: 0.32s; }
.rise-4 { animation-delay: 0.46s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------ buttons --- */

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.5rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--data);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.9rem 1.5rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}
.btn:hover { background: var(--gold); color: var(--ink); }
.btn--solid { background: var(--gold); color: var(--ink); }
.btn--solid:hover { background: var(--gold-bright); border-color: var(--gold-bright); color: var(--ink); }
.btn--quiet { border-color: var(--ink-line-lit); color: var(--bone); }
.btn--quiet:hover { background: transparent; border-color: var(--gold); color: var(--gold); }

.btn__arrow { transition: transform 0.22s ease; }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* --------------------------------------------------------- tile grids -- */
/* One pattern for every tiled block: a 1px background showing through the
   grid gap draws the rules. Column counts are explicit (never auto-fit) so a
   row is always complete and no empty cell renders as a filled slab. */

.pillars, .cards, .people {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--ink-line);
  border: var(--rule);
}
@media (min-width: 48rem) {
  .pillars, .cards, .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.pillar, .card, .person {
  background: var(--ink);
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: background 0.3s ease;
}
.pillar:hover, .card:hover, .person:hover { background: var(--ink-raised); }
.pillar p, .card p, .person p { color: var(--slate); font-size: 0.9375rem; line-height: 1.62; }
.pillar h3 { font-size: 1.3rem; }

/* Trailing cell that completes an odd row. Collapses to nothing in one column. */
.tile-filler { background: var(--ink); }
@media (max-width: 47.99rem) { .tile-filler { display: none; } }

/* -------------------------------------------------------- sector table -- */

.sectors { border-top: var(--rule); }

.sector {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 1.5fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: baseline;
  padding: clamp(1.25rem, 2.4vw, 1.85rem) 0;
  border-bottom: var(--rule);
  transition: background 0.28s ease, padding-inline 0.28s ease;
}
.sector:hover { background: var(--gold-wash); padding-inline: 1rem; }
.sector h3 { font-size: clamp(1.15rem, 1.9vw, 1.5rem); }
.sector p { color: var(--slate); font-size: 0.9375rem; line-height: 1.6; }
.sector .label { padding-top: 0.35rem; }

@media (max-width: 52rem) {
  .sector { grid-template-columns: 1fr; gap: 0.5rem; }
  .sector:hover { padding-inline: 0; }
}

/* -------------------------------------------------------- step sequence - */
/* Numbered only where order is real: capital → sector → project entity. */

.steps { display: grid; gap: 0; border-top: var(--rule); counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
  border-bottom: var(--rule);
  align-items: start;
}
.step__n {
  font-family: var(--data);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  padding-top: 0.4rem;
  font-variant-numeric: tabular-nums;
}
.step p { color: var(--slate); margin-top: 0.65rem; max-width: var(--measure); }

/* ------------------------------------------------------------- people --- */

.person__name { font-family: var(--display); font-size: clamp(1.35rem, 1.8vw, 1.55rem); font-weight: 500; line-height: 1.16; letter-spacing: -0.014em; color: var(--bone); }
.person__role {
  font-family: var(--data);
  font-size: 0.625rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--gold);
}
.person p { font-size: 0.9rem; }
.person--open .person__name { color: var(--slate-dim); }
.person--open .person__role { color: var(--slate-dim); }

/* ---------------------------------------------------------- quote/pull -- */

.pull {
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 2.15rem);
  line-height: 1.28;
  font-weight: 300;
  letter-spacing: -0.015em;
  color: var(--bone);
  max-width: 26ch;
  text-wrap: balance;
}
.pull span { color: var(--gold); font-style: italic; }

/* --------------------------------------------------------------- note --- */

.note {
  border-left: 2px solid var(--gold-dim);
  padding: 0.25rem 0 0.25rem 1.25rem;
  color: var(--slate);
  font-size: 0.9375rem;
  max-width: var(--measure);
}

.panel {
  border: var(--rule);
  background: var(--ink-raised);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

/* --------------------------------------------------------------- list --- */

.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.9rem; max-width: var(--measure); }
.ticks li {
  position: relative;
  padding-left: 1.65rem;
  color: var(--slate);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.7rem;
  height: 1px;
  background: var(--gold);
}
.ticks strong { color: var(--bone); font-weight: 600; }

/* --------------------------------------------------------------- meta --- */

.meta { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--ink-line); border: var(--rule); }
@media (min-width: 40rem) { .meta { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 70rem) { .meta { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.meta__cell { background: var(--ink); padding: 1.35rem clamp(1.1rem, 2vw, 1.75rem); display: flex; flex-direction: column; gap: 0.45rem; }
.meta__val { font-family: var(--display); font-size: 1.15rem; color: var(--bone); line-height: 1.3; font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------- form --- */

.form { display: grid; gap: 1.15rem; max-width: 34rem; }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field label {
  font-family: var(--data);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%),
                    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 1.1rem) 1.15rem, calc(100% - 0.75rem) 1.15rem;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
  cursor: pointer;
}
.field select option { background: var(--ink-raised); color: var(--bone); }

.field input, .field textarea, .field select {
  font-family: var(--body);
  font-size: 0.9375rem;
  color: var(--bone);
  background: var(--ink-raised);
  border: var(--rule);
  padding: 0.8rem 0.9rem;
  width: 100%;
  transition: border-color 0.2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); outline: none; }
.field textarea { resize: vertical; min-height: 8rem; }
.field input::placeholder, .field textarea::placeholder { color: var(--slate-dim); }

/* ------------------------------------------------------------- footer --- */

.footer { border-top: var(--rule); background: var(--ink); }
.footer__inner {
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(2.5rem, 5vw, 4rem) var(--gutter) 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(9rem, 1fr));
  gap: clamp(1.75rem, 4vw, 3rem);
}
.footer__col { display: flex; flex-direction: column; gap: 0.7rem; }
.footer__col a, .footer__col p { font-size: 0.875rem; color: var(--slate); }
.footer__col a:hover { color: var(--gold); }
.footer__legal {
  max-width: var(--shell);
  margin-inline: auto;
  padding: 1.5rem var(--gutter) 2.5rem;
  border-top: var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}
.footer__legal p {
  font-family: var(--data);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--slate-dim);
}

.disclaimer {
  max-width: var(--shell);
  margin-inline: auto;
  padding: 0 var(--gutter) 3rem;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--slate-dim);
  max-width: 62rem;
}

/* ------------------------------------------------------- page opener ---- */

.opener { border-bottom: var(--rule); position: relative; overflow: hidden; }
.opener::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(90% 120% at 88% -10%, rgba(210, 171, 130, 0.10), transparent 60%);
}
.opener__inner {
  position: relative;
  z-index: 1;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(3.5rem, 9vw, 6.5rem) var(--gutter) clamp(2.5rem, 6vw, 4rem);
}
.opener h1 { max-width: 15ch; }
.opener .lede { margin-top: 1.5rem; }

/* --------------------------------------------------------- utilities ---- */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--ink);
  padding: 0.75rem 1.25rem;
  font-family: var(--data);
  font-size: 0.75rem;
  z-index: 100;
}
.skip:focus { left: 0; }

.scroll-x { overflow-x: auto; }

/* ------------------------------------------------------------ portrait -- */
/* Duotone-graded headshots and monogram tiles share one square footprint so
   a row never jumps when someone has no photograph. */

.person__head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.person__shot,
.person__mono {
  flex: none;
  width: clamp(4.25rem, 8vw, 5.25rem);
  aspect-ratio: 1;
  border: var(--rule);
  background: var(--ink-raised);
  overflow: hidden;
}
.person__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1) contrast(1);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.person:hover .person__shot img { transform: scale(1.04); }

.person__mono {
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--gold-dim);
  border-color: var(--ink-line-lit);
}

.person__id { display: flex; flex-direction: column; gap: 0.3rem; padding-top: 0.15rem; min-width: 0; }

/* ------------------------------------------------------------- consent -- */

.consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  background: var(--ink-raised);
  border-top: 1px solid var(--gold-dim);
  box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.55);
  transform: translateY(102%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.consent[data-open="true"] { transform: none; }
.consent[hidden] { display: none; }

.consent__inner {
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(1.25rem, 3vw, 1.75rem) var(--gutter);
  display: grid;
  gap: 1.15rem;
}
@media (min-width: 62rem) {
  .consent__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 2.5rem;
  }
  .consent__panel { grid-column: 1 / -1; }
}

.consent__copy { display: flex; flex-direction: column; gap: 0.5rem; }
.consent__copy p { font-size: 0.875rem; line-height: 1.6; color: var(--slate); max-width: 60ch; }

/* Accept and reject carry identical visual weight — required, and correct. */
.consent__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.consent__actions .btn { padding: 0.75rem 1.1rem; flex: 1 1 auto; justify-content: center; }
@media (min-width: 62rem) {
  .consent__actions { flex-wrap: nowrap; }
  .consent__actions .btn { flex: 0 0 auto; }
}

.consent__panel {
  border-top: var(--rule);
  padding-top: 1.15rem;
  display: grid;
  gap: 0.85rem;
}
.consent__panel[hidden] { display: none; }

.consent__opt {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem 0.9rem;
  align-items: start;
  border: var(--rule);
  padding: 0.9rem 1rem;
  background: var(--ink);
}
.consent__opt input { margin: 0.2rem 0 0; accent-color: var(--gold); width: 1rem; height: 1rem; }
.consent__opt input:disabled { opacity: 0.55; }
.consent__opt label {
  font-family: var(--data);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone);
  cursor: pointer;
}
.consent__opt input:disabled + label { cursor: default; color: var(--slate-dim); }
.consent__opt p { grid-column: 2; font-size: 0.8125rem; line-height: 1.55; color: var(--slate); margin-top: -0.35rem; }

.consent-reopen {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 0.875rem;
  color: var(--slate);
  cursor: pointer;
  text-align: left;
}
.consent-reopen:hover { color: var(--gold); }

/* ----------------------------------------------------------- pillars 2 -- */
/* Numbered because the four tests are applied as a sequence of gates:
   commercial case first, horizon last. The order is the argument. */

.pillar__n {
  font-family: var(--data);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ion);
  margin: 0;
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------- sector list -- */
/* Each sector opens to the underwriting view: why the sector is hard, and the
   three things we actually check. Native <details> so it works without JS. */

.survey { border-top: var(--rule); }

.entry { border-bottom: var(--rule); }
.entry > summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr) minmax(0, 1.35fr) 1.75rem;
  gap: clamp(0.75rem, 2.5vw, 2.25rem);
  align-items: baseline;
  padding: clamp(1.25rem, 2.4vw, 1.85rem) 0;
  transition: background 0.4s var(--ease), padding-inline 0.4s var(--ease);
}
.entry > summary::-webkit-details-marker { display: none; }
.entry > summary:hover { background: var(--gold-wash); padding-inline: 1rem; }
.entry[open] > summary { background: var(--gold-wash); padding-inline: 1rem; }

.entry__h {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  line-height: 1.18;
  letter-spacing: -0.018em;
  color: var(--bone);
  margin: 0;
}
.entry__sum { color: var(--slate); font-size: 0.9375rem; line-height: 1.6; margin: 0; }

.entry__plus {
  position: relative;
  width: 14px;
  height: 14px;
  justify-self: end;
  align-self: center;
  flex: none;
}
.entry__plus::before, .entry__plus::after {
  content: "";
  position: absolute;
  background: var(--gold);
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.entry__plus::before { left: 0; right: 0; top: 6px; height: 1px; }
.entry__plus::after  { top: 0; bottom: 0; left: 6px; width: 1px; }
.entry[open] .entry__plus::after { transform: scaleY(0); opacity: 0; }

.entry__body {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(0.75rem, 2.5vw, 2.25rem);
  padding: 0 1rem clamp(1.5rem, 3vw, 2.25rem);
}
.entry__body > :first-child { grid-column: 2; }
.entry__why { color: var(--slate); font-size: 0.9375rem; line-height: 1.66; margin: 0; max-width: 52ch; }

@media (max-width: 56rem) {
  .entry > summary { grid-template-columns: minmax(0, 1fr) 1.75rem; gap: 0.4rem 1rem; }
  .entry > summary .mono-tag { grid-column: 1; }
  .entry > summary .entry__plus { grid-row: 1 / span 3; grid-column: 2; align-self: start; margin-top: 0.35rem; }
  .entry__body { grid-template-columns: 1fr; padding-inline: 1rem; }
  .entry__body > :first-child { grid-column: 1; }
}

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; align-content: start; }
.checks__k {
  font-family: var(--data);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin: 0 0 0.15rem;
}
.checks li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--slate);
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 1px;
  background: var(--gold);
  opacity: 0.8;
}

/* -------------------------------------------------------------- stages -- */
/* The six stages of an opportunity. Numbered because the order is the claim:
   ownership is settled before money is spent deciding whether to own. */

.stage { border-bottom: var(--rule); }
.stage:first-child { border-top: var(--rule); }
.stage > summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr) 1.75rem;
  gap: clamp(0.75rem, 2.5vw, 2rem);
  align-items: baseline;
  padding: clamp(1.1rem, 2.2vw, 1.6rem) 0;
  transition: background 0.4s var(--ease), padding-inline 0.4s var(--ease);
}
.stage > summary::-webkit-details-marker { display: none; }
.stage > summary:hover, .stage[open] > summary { background: var(--gold-wash); padding-inline: 1rem; }
.stage__n {
  font-family: var(--data);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.stage__h {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  letter-spacing: -0.015em;
  color: var(--bone);
  margin: 0;
}
.stage__body { padding: 0 1rem clamp(1.35rem, 2.6vw, 2rem) calc(3.25rem + clamp(0.75rem, 2.5vw, 2rem) + 1rem); }
.stage__body p { color: var(--slate); font-size: 0.9375rem; line-height: 1.66; max-width: 56ch; }
.stage__marks { display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; margin-top: 1.1rem; }
.stage__marks span {
  font-family: var(--data);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ion);
  border: 1px solid var(--ion-line);
  padding: 0.4rem 0.7rem;
}
@media (max-width: 48rem) {
  .stage > summary { grid-template-columns: 2.5rem minmax(0, 1fr) 1.5rem; }
  .stage__body { padding-left: 1rem; }
}

/* ------------------------------------------------------- closing band --- */

.closing {
  border-top: var(--rule);
  background: var(--ink-raised);
  position: relative;
  overflow: hidden;
}
.closing::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(80% 140% at 50% 120%, rgba(210, 171, 130, 0.12), transparent 62%);
}
.closing__inner {
  position: relative;
  z-index: 1;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(4rem, 9vw, 7.5rem) var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}
.closing__h {
  font-family: var(--display);
  font-weight: 200;
  font-size: clamp(2.1rem, 5.2vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--bone);
  margin: 0;
  max-width: 18ch;
  text-wrap: balance;
}
.closing__h em { font-style: italic; font-weight: 300; color: var(--gold); }
.closing p { color: var(--slate); max-width: 52ch; }

/* -------------------------------------------------------- vacancy note -- */

.vacancy {
  border: var(--rule);
  border-left: 2px solid var(--gold-dim);
  background: var(--ink-raised);
  padding: clamp(1.25rem, 2.6vw, 1.75rem);
  color: var(--slate);
  font-size: 0.9375rem;
  line-height: 1.62;
  max-width: 62ch;
}

/* --------------------------------------------------------- plate tones -- */
/* Alternating grounds give the long pages a rhythm without extra rules. */

.plate.sec--panel { background: var(--ink-raised); }
.plate.sec--panel .card,
.plate.sec--panel .pillar,
.plate.sec--panel .person,
.plate.sec--panel .tile-filler { background: var(--ink-raised); }
.plate.sec--panel .card:hover,
.plate.sec--panel .pillar:hover,
.plate.sec--panel .person:hover { background: var(--ink-panel); }
.plate.sec--panel .field input,
.plate.sec--panel .field textarea,
.plate.sec--panel .field select { background: var(--ink); }

/* ------------------------------------------------------- thesis columns -- */

.thesis-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 4rem);
  align-items: start;
}
@media (max-width: 56rem) { .thesis-cols { grid-template-columns: 1fr; } }
.thesis-cols .prose { max-width: 46ch; }

/* The thesis pull is the loudest thing on the page, so it gets the rule
   above it rather than beside it — the top of an argument, not an aside. */
.plate .pull {
  max-width: 22ch;
  border-top: 1px solid var(--gold);
  padding-top: 1.85rem;
  font-size: clamp(1.6rem, 3.6vw, 2.85rem);
  line-height: 1.16;
  font-style: italic;
  font-weight: 200;
}
.plate .pull em, .plate .pull span { font-style: italic; color: var(--gold); }

/* Block, not grid: as grid items the <details> take min-width:auto and refuse
   to shrink below their summary's intrinsic width, which pushed the page
   sideways at phone widths. */
.stages { display: block; }
.stages > details, .survey > details { min-width: 0; }
