/* pharos.nexus (CDEV-2256). Built from Pharos First Light (Loom ref-pharos-first-light,
   sha256 55c4b5a4…), with the artifact wrapper's base rules restored and the
   signup pages added. CSS lives in a file so the CSP can stay 'self'-only for styles. */

*, *::before, *::after { box-sizing: border-box; }
:root { color-scheme: dark; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
html { scroll-padding-top: env(safe-area-inset-top, 0px); -webkit-font-smoothing: antialiased; }
body { margin: 0; padding: 0; }
img { max-width: 100%; }
[hidden]:not([hidden=until-found i]) { display: none !important; }
  :root {
    --ground: #0B1626;
    --ground-2: #11203A;
    --ink: #F3EEE2;
    --ink-soft: #B5C2D3;
    --muted: #8496AC;
    --rule: #22344F;
    --lamp: #EBA63F;
    --lamp-text: #EBA63F;
    --on-lamp: #0B1626;
    --sea: #6FB0B3;
    --gutter: clamp(16px, 5vw, 72px);
    --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    --sans: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
    --mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
  }
  /* Night only (Erich, 2026-10-17): the page is a lighthouse sweeping a dark
     field, so it does not follow the OS light scheme. First Light's light
     tokens were removed; a light ground turned the beam into a beige wedge and
     the scroll stories into long pale fields. */

  body { background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; }
  .wrap { padding-inline: var(--gutter); max-width: 1320px; margin-inline: auto; }
  a { color: inherit; }
  :focus-visible { outline: 2px solid var(--lamp); outline-offset: 3px; }
  p { margin: 0; }

  .label { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lamp-text); }
  .label.quiet { color: var(--muted); }

  /* top bar */
  .top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; padding-block: 22px; position: relative; z-index: 2; }
  .mark { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; letter-spacing: 0.01em; }
  .mark i { color: var(--lamp-text); font-style: normal; }

  /* hero */
  .hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--rule); }
  .hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
  .hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; min-height: 660px; }
  .hero-copy { display: flex; flex-direction: column; gap: 26px; max-width: min(42rem, 48%); padding-block: 56px 88px; margin-block: auto; }
  h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(2.7rem, 6vw, 5.2rem); line-height: 1.02; letter-spacing: -0.015em; text-wrap: balance; margin: 0; }
  h1 em { font-style: italic; color: var(--lamp-text); }
  .lede { font-size: 1.16rem; color: var(--ink-soft); max-width: 36rem; }

  form { display: flex; flex-direction: column; gap: 10px; max-width: 30rem; }
  .field { display: flex; gap: 8px; flex-wrap: wrap; }
  .field input { flex: 1 1 14rem; min-width: 0; font: inherit; color: var(--ink); background: var(--ground-2); border: 1px solid var(--rule); border-radius: 2px; padding: 13px 14px; }
  .field input::placeholder { color: var(--muted); }
  .field button { flex: 0 0 auto; font: 600 0.98rem var(--sans); color: var(--on-lamp); background: var(--lamp); border: 0; border-radius: 2px; padding: 13px 20px; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
  .field button:hover { transform: translateY(-1px); box-shadow: 0 6px 24px -8px var(--lamp); }
  .status { font-size: 0.92rem; color: var(--ink-soft); min-height: 1.4em; }
  form label { font-size: 0.92rem; color: var(--ink-soft); }

  /* sections */
  section.band { padding-block: clamp(64px, 9vw, 120px); border-bottom: 1px solid var(--rule); }
  section.band.tone { background: var(--ground-2); }
  h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.1; letter-spacing: -0.01em; text-wrap: balance; margin: 0; max-width: 24ch; }
  h3 { margin: 0; }
  .band-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: clamp(36px, 5vw, 64px); }
  .band-head p { color: var(--ink-soft); max-width: 40rem; }

  /* the floor: three facts, one rule */
  .floor { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
  .floor > div { padding-block: 28px; padding-inline: 0 32px; display: flex; flex-direction: column; gap: 10px; }
  .floor h3 { font-family: var(--serif); font-weight: 400; font-size: 1.55rem; line-height: 1.15; }
  .floor p { color: var(--ink-soft); max-width: 24rem; }
  .custody { margin-top: clamp(36px, 5vw, 64px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 80px); }
  .custody h3 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; margin-bottom: 4px; }
  .custody dl { margin: 0; display: flex; flex-direction: column; }
  .custody dl div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 12px; padding-block: 11px; border-top: 1px solid var(--rule); }
  .custody dt { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
  .custody dd { margin: 0; color: var(--ink-soft); }
  .custody dd b { color: var(--ink); font-weight: 500; }
  .bridge { margin-top: clamp(28px, 4vw, 48px); font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 2.1vw, 1.6rem); line-height: 1.3; max-width: 40rem; }

  /* out of focus list: each word sits further out of focus than the last */
  .focus { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
  .focus li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 12px 48px; align-items: baseline; padding-block: 24px; border-top: 1px solid var(--rule); }
  .focus .far { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(2.3rem, 5.6vw, 4.4rem); line-height: 1; color: var(--ink); transition: filter .5s ease, opacity .5s ease; }
  .focus li:nth-child(1) .far { filter: blur(0.6px); opacity: .96; }
  .focus li:nth-child(2) .far { filter: blur(1.4px); opacity: .92; }
  .focus li:nth-child(3) .far { filter: blur(2.2px); opacity: .88; }
  .focus li:nth-child(4) .far { filter: blur(3.2px); opacity: .84; }
  .focus li:nth-child(5) .far { filter: blur(5px); opacity: .72; }
  .focus li:hover .far, .focus li:focus-within .far { filter: blur(0); opacity: 1; }
  .focus .near { display: flex; flex-direction: column; gap: 6px; }
  .focus .near b { font-weight: 600; font-size: 1.08rem; }
  .focus .near span { color: var(--ink-soft); max-width: 36rem; }
  .focus li.peers .near b { color: var(--lamp-text); }

  /* federation */
  .fed { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
  .fed-fig { margin: 0; border: 1px solid var(--rule); background: var(--ground); padding: 20px; }
  .fed-fig svg { display: block; width: 100%; height: auto; max-width: 100%; }
  .fed-fig figcaption { margin-top: 12px; font-size: 0.88rem; color: var(--muted); }
  .fed-copy { display: flex; flex-direction: column; }
  .fed-copy > div { padding-block: 20px; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 6px; }
  .fed-copy h3 { font-weight: 600; font-size: 1.08rem; }
  .fed-copy p { color: var(--ink-soft); max-width: 34rem; }

  .versus { margin-top: clamp(40px, 6vw, 80px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--rule); }
  .versus > div { padding: clamp(22px, 3vw, 40px); display: flex; flex-direction: column; gap: 14px; }
  .versus > div + div { border-left: 1px solid var(--rule); }
  .versus h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1.15; }
  .versus ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; color: var(--ink-soft); }
  .versus li { display: grid; grid-template-columns: 1.1rem minmax(0, 1fr); gap: 10px; }
  .versus li::before { content: "–"; color: var(--muted); }
  .versus .keeps li::before { content: "+"; color: var(--lamp-text); font-weight: 600; }
  .versus .keeps { background: var(--ground-2); }
  .versus p.note { font-size: 0.92rem; color: var(--muted); }


  /* scenarios: a pinned ledger that changes as the story scrolls past it */
  .scene { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
  .scene + .scene { margin-top: clamp(40px, 6vw, 96px); padding-top: clamp(32px, 5vw, 64px); border-top: 1px solid var(--rule); }
  .scene-title { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 10px; }
  .scene-title h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.1; }
  .scene-title p { color: var(--ink-soft); max-width: 40rem; }
  .panel-wrap { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 24px); }
  .panel { border: 1px solid var(--rule); background: var(--ground); }
  .panel-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--rule); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
  .panel-head b { color: var(--ink); font-weight: 500; }
  .ledger + .ledger { border-top: 1px solid var(--rule); }
  .zone { padding: 6px 16px 12px; }
  .zone + .zone { border-top: 1px dashed var(--rule); }
  .zone-name { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding-block: 8px 4px; }
  .zone.between { background: var(--ground-2); padding-block: 4px 10px; }
  .row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding-block: 10px; border-top: 1px solid var(--rule); align-items: start; }
  .zone-name + .row { border-top: 0; }
  .row .txt { font-size: 0.96rem; line-height: 1.4; }
  .row .meta { grid-column: 1 / -1; font-family: var(--mono); font-size: 0.72rem; line-height: 1.5; color: var(--muted); }
  .pill { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 8px; border: 1px solid var(--rule); border-radius: 2px; color: var(--ink-soft); white-space: nowrap; }
  .pill.settled { background: var(--lamp); color: var(--on-lamp); border-color: var(--lamp); }
  .pill.proposed, .pill.grant, .pill.crossed { border-color: var(--sea); color: var(--sea); }
  .pill.revoked, .pill.superseded { color: var(--muted); }
  .row.superseded .txt { color: var(--muted); text-decoration: line-through; }
  .row.trace .txt { font-family: var(--mono); font-size: 0.8rem; color: var(--ink-soft); }
  .row.new { animation: rise .45s ease both; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  .steps { display: flex; flex-direction: column; }
  .step { min-height: 64vh; display: flex; flex-direction: column; justify-content: center; gap: 10px; opacity: .38; transition: opacity .3s ease; }
  .step.active { opacity: 1; }
  .step .when { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lamp-text); }
  .step h4 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 1.5rem; line-height: 1.2; text-wrap: balance; }
  .step p { color: var(--ink-soft); max-width: 32rem; }
  .step:first-child { min-height: 44vh; }
  .step:last-child { min-height: 48vh; }

  /* gate */
  .gate { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 1fr); border: 1px solid var(--rule); }
  .gate > div { padding: clamp(22px, 3vw, 40px); display: flex; flex-direction: column; gap: 12px; }
  .gate > div + div { border-left: 1px solid var(--rule); }
  .gate h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1.15; }
  .gate p { color: var(--ink-soft); }
  .gate .mid { background: var(--lamp); color: var(--on-lamp); }
  .gate .mid .label, .gate .mid p { color: var(--on-lamp); }
  .gate .slow { background: var(--ground); }

  /* close */
  .close { padding-block: clamp(72px, 10vw, 140px); }
  .close .wrap { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
  .close h2 { max-width: 20ch; font-size: clamp(2.2rem, 5vw, 4rem); }
  .cta { display: inline-block; font-weight: 600; text-decoration: none; color: var(--on-lamp); background: var(--lamp); padding: 14px 22px; border-radius: 2px; }

  footer { border-top: 1px solid var(--rule); padding-block: 28px 40px; color: var(--muted); font-size: 0.88rem; }
  footer .wrap { display: flex; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; }

  @media (max-width: 900px) {
    .hero-inner { min-height: 0; }
    .hero-copy { max-width: 100%; padding-block: 250px 56px; margin-block: 0; }
    .floor { grid-template-columns: minmax(0, 1fr); }
    .floor > div { border-top: 1px solid var(--rule); padding-inline: 0; }
    .floor > div:first-child { border-top: 0; }
    .custody, .fed, .versus { grid-template-columns: minmax(0, 1fr); }
    .versus > div + div { border-left: 0; border-top: 1px solid var(--rule); }
    .focus li { grid-template-columns: minmax(0, 1fr); }
    .gate { grid-template-columns: minmax(0, 1fr); }
    .gate > div + div { border-left: 0; border-top: 1px solid var(--rule); }

    .scene { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .panel-wrap { top: calc(env(safe-area-inset-top, 0px) + 8px); z-index: 1; }
    .panel { max-height: 46vh; overflow: auto; box-shadow: 0 12px 32px -16px rgba(0,0,0,.6); }
    .step { min-height: 52vh; }
    .step:first-child { min-height: 40vh; }
  }
  .fed-fig .still { display: none; }
  @media (prefers-reduced-motion: reduce) {
    .focus .far, .field button, .step { transition: none; }
    .row.new { animation: none; }
    .fed-fig .trav { display: none; }
    .fed-fig .still { display: inline; }
  }

  /* category framing: today vs Pharos */
  .vs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--rule); }
  .vs > div { padding: clamp(20px, 2.6vw, 32px); display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--rule); }
  .vs > div:nth-child(-n+2) { border-top: 0; }
  .vs > div:nth-child(2n) { border-left: 1px solid var(--rule); background: var(--ground-2); }
  .vs .label { margin-bottom: 4px; }
  .vs h3 { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; line-height: 1.2; }
  .vs p { color: var(--ink-soft); max-width: 30rem; }
  .vs .ours h3 { color: var(--ink); }
  .who { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
  .who > div { display: flex; flex-direction: column; gap: 12px; padding: clamp(22px, 3vw, 36px); border: 1px solid var(--rule); background: var(--ground); }
  .who h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1.15; }
  .who p { color: var(--ink-soft); }
  .who .fit { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; color: var(--muted); }
  .why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--rule); }
  .why > div { padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; gap: 10px; }
  .why > div + div { border-left: 1px solid var(--rule); }
  .why h3 { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; line-height: 1.2; }
  .why p { color: var(--ink-soft); }
  .why .verdict { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lamp-text); }
  .tagline { font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1.25; color: var(--ink); }
  .tagline i { color: var(--lamp-text); font-style: normal; }
  .own { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); }
  .own > div { display: flex; flex-direction: column; gap: 8px; padding-top: 20px; border-top: 1px solid var(--rule); }
  .own h3 { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; line-height: 1.2; }
  .own p { color: var(--ink-soft); }
  @media (max-width: 900px) {
    .vs { grid-template-columns: minmax(0, 1fr); }
    .vs > div:nth-child(-n+2) { border-top: 1px solid var(--rule); }
    .vs > div:first-child { border-top: 0; }
    .vs > div:nth-child(2n) { border-left: 0; }
    .who, .why, .own { grid-template-columns: minmax(0, 1fr); }
    .why > div + div { border-left: 0; border-top: 1px solid var(--rule); }
  }

/* ---- pharos.nexus additions ---- */
a.mark { text-decoration: none; color: var(--ink); }
.status a { color: var(--ink); text-decoration-color: var(--lamp); text-underline-offset: 3px; }
.status.ok { color: var(--lamp-text); }
.status.err { color: var(--ink); }
.status.err::before { content: "! "; color: var(--lamp-text); font-weight: 600; }
.field button[disabled] { opacity: .6; cursor: default; transform: none; box-shadow: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.hero-small .hero-inner { min-height: 72vh; min-height: 72svh; }
.card { margin-block: auto; padding-block: 48px 96px; display: flex; flex-direction: column; gap: 18px; max-width: 34rem; }
.card p { color: var(--ink-soft); }
.card a { color: var(--ink); text-decoration-color: var(--lamp); text-underline-offset: 3px; }
@media (max-width: 900px) { .hero-small .hero-copy, .card { padding-block: 40px 72px; } }
