/* ══════════════════════════════════════════════════════════════════════════
   Pogfish Trading — the water column.
   One continuous surface, flat depth strata, one unbroken sounding rule.
   ══════════════════════════════════════════════════════════════════════════ */

@font-face {
  font-family: "Atkinson";
  src: url("fonts/atkinson-var-latin.woff2") format("woff2-variations");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-var-latin.woff2") format("woff2-variations");
  font-weight: 400 700;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  /* strata, surface down to the bed */
  --surface: #071e42;
  --mid:     #061a3a;
  --deep:    #051631;
  --bed:     #04122a;
  --blue:    #3d66d8;
  --cyan:    #4fc0f5;
  --amber:   #f5a524;

  --ink:     #eef4ff;
  --ink-2:   #a9bfe2;   /* 8:1 on surface navy */
  --ink-3:   #6f8ab5;   /* rules and ticks only, never body copy */
  --on-amber:#0a1a33;

  --rail:    96px;
  --pad:     clamp(1.5rem, 5vw, 6rem);
  --band:    clamp(5rem, 9vw, 9rem);   /* the band unit the type scale steps off */

  --ease: cubic-bezier(.16, 1, .3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }   /* a class-set display must not outrank it */

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--blue) var(--bed);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bed);
  color: var(--ink);
  font: 400 clamp(1.0625rem, .55vw + .95rem, 1.1875rem)/1.62 "Atkinson", ui-sans-serif, system-ui, sans-serif;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--cyan); color: var(--on-amber); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bed); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

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

a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }

.skip {
  position: fixed; top: .75rem; left: .75rem; z-index: 60;
  padding: .6rem 1rem; background: var(--amber); color: var(--on-amber);
  font: 700 .875rem/1 "Archivo", sans-serif; text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ─── the sounding rail ─────────────────────────────────────────────────── */

.rail {
  position: fixed; inset: 0 0 0 auto; z-index: 40;
  width: var(--rail);
  background: var(--bed);
  border-left: 1px solid rgba(111, 138, 181, .28);
  pointer-events: none;
  contain: strict;
}
.rail-line {
  position: absolute; top: 0; bottom: 0; left: 22px;
  width: 1px; background: rgba(111, 138, 181, .42);
}
.rail-ticks {
  position: absolute; top: 0; bottom: 0; left: 22px; width: 11px;
  background:
    repeating-linear-gradient(to bottom,
      rgba(111,138,181,.34) 0 1px, transparent 1px 10px);
}
/* every fifth tick runs long */
.rail-ticks::after {
  content: ""; position: absolute; inset: 0; width: 20px;
  background:
    repeating-linear-gradient(to bottom,
      rgba(111,138,181,.5) 0 1px, transparent 1px 50px);
}

.rail-mark {
  position: absolute; left: 22px; width: calc(var(--rail) - 22px);
  display: flex; align-items: center; gap: 6px;
  transform: translateY(-50%);
  transition: color .45s var(--ease);
  color: var(--ink-3);
}
.rail-mark::before {
  content: ""; width: 16px; height: 2px; background: currentColor; flex: none;
}
.rail-mark span {
  font: 600 .6875rem/1 "Archivo", sans-serif;
  font-stretch: 112%;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: currentColor;
}
.rail-mark i { font-style: normal; margin-left: .25em; opacity: .7; }
.rail-unit {
  display: none;                      /* desk marks carry their own unit */
  position: absolute; bottom: 12px; left: 22px;
  font: 600 .5625rem/1 "Archivo", sans-serif;
  font-stretch: 118%; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-3);
}
.rail-mark.is-on { color: var(--cyan); }
.rail-mark.is-on span { font-weight: 700; }

.rail-marker {
  position: absolute; left: 0; width: var(--rail); height: 22px;
  border-top: 2px solid var(--cyan);
  background: linear-gradient(to bottom, rgba(79, 192, 245, .30), transparent 85%);
  will-change: top;
}
.rail-marker-read {
  position: absolute; right: 6px; top: 4px;
  font: 700 .625rem/1 "Archivo", sans-serif;
  font-stretch: 118%; letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
  color: var(--cyan);
}

/* ─── the column ────────────────────────────────────────────────────────── */

.column { padding-right: var(--rail); }

.masthead {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
  padding: clamp(1.1rem, 2.2vw, 2rem) var(--pad);
  background: var(--surface);
  position: relative; z-index: 5;
}
.lockup { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.lockup-fish { width: auto; height: clamp(34px, 4.4vw, 46px); }
.lockup-word { width: auto; height: clamp(21px, 2.6vw, 29px); }
.masthead-meta {
  margin: 0;
  font: 600 .6875rem/1 "Archivo", sans-serif;
  font-stretch: 118%; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-2);
}

/* ─── bands ─────────────────────────────────────────────────────────────── */

.band { position: relative; padding: 0 var(--pad); }
.band--surface  { background: var(--surface); }
.band--journal  { background: var(--mid); }
.band--included { background: var(--deep); }
.band--install  { background: var(--mid); }
.band--price    { background: var(--deep); }
.band--bottom   { background: var(--amber); color: var(--on-amber); }
.sediment       { background: var(--bed); padding: 0 var(--pad); }

.band-rule {
  display: flex; align-items: baseline; gap: .85rem;
  padding: calc(var(--band) * .5) 0 0;
  border-top: 1px solid rgba(111, 138, 181, .3);
  margin-top: 0;
}
.band--bottom .band-rule { border-top-color: rgba(10, 26, 51, .3); }
.band-depth {
  font: 600 .6875rem/1 "Archivo", sans-serif;
  font-stretch: 118%; letter-spacing: .15em; text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.band-depth { color: var(--cyan); }
.band--bottom .band-depth { color: var(--on-amber); }

.band-body {
  padding: calc(var(--band) * .42) 0 var(--band);
  max-width: 74ch;
}

h1, h2, h3 { text-wrap: balance; }

h1 {
  margin: 0 0 1.1rem;
  font-weight: 800;
  font-size: clamp(2.05rem, 5.4vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.032em;
}
h2 {
  margin: 0 0 1.4rem;
  font-weight: 800;
  font-size: clamp(1.75rem, 3.1vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.024em;
}
h3 {
  margin: 0 0 .6rem;
  font: 600 .75rem/1.3 "Archivo", sans-serif;
  font-stretch: 118%; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cyan);
}
p { margin: 0 0 1.15rem; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

/* ─── 0 ft, the surface ─────────────────────────────────────────────────── */

.band--surface { overflow: hidden; }

.water { position: absolute; inset: 0; pointer-events: none; }
.water-far, .water-near {
  position: absolute; inset: -5% -10%;
  background-repeat: repeat;
  will-change: transform;
}
.water-far  { background-image: url("assets/sonar-far.svg");  background-size: 640px 960px; animation: drift 54s linear infinite; }
.water-near { background-image: url("assets/sonar-near.svg"); background-size: 640px 960px; animation: drift 31s linear infinite; }
@keyframes drift { to { transform: translate3d(-640px, 0, 0); } }

.hero {
  position: relative; z-index: 2;
  padding: calc(var(--band) * .75) 0 var(--band);
  max-width: 52rem;
}
.tagline {
  margin: 0 0 1.5rem;
  font: 600 clamp(.9375rem, 1.3vw, 1.0625rem)/1.45 "Archivo", sans-serif;
  font-stretch: 108%; letter-spacing: .01em;
  color: var(--cyan);
}
.lead { font-size: 1.1em; color: var(--ink-2); max-width: 58ch; }

.facts {
  list-style: none; margin: 2rem 0; padding: 0;
  width: fit-content; max-width: 100%;
  display: flex; flex-wrap: wrap;
  border-top: 1px solid rgba(111, 138, 181, .3);
  border-bottom: 1px solid rgba(111, 138, 181, .3);
}
.facts li {
  padding: .9rem 1.6rem .9rem 0;
  margin-right: 1.6rem;
  border-right: 1px solid rgba(111, 138, 181, .3);
  display: flex; flex-direction: column; gap: .2rem;
}
.facts li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.facts b {
  font: 700 1.0625rem/1 "Archivo", sans-serif;
  font-stretch: 112%; letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.facts span {
  font: 500 .6875rem/1 "Archivo", sans-serif;
  font-stretch: 118%; letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-2);
}

.hero-fish {
  position: absolute; z-index: 1;
  right: clamp(-3.5rem, -1.5vw, -1rem); bottom: -6%;
  width: clamp(17rem, 30vw, 30rem); height: auto;
  opacity: .92;
  -webkit-mask-image: linear-gradient(to bottom, #000 68%, transparent 97%);
          mask-image: linear-gradient(to bottom, #000 68%, transparent 97%);
  pointer-events: none;
}

/* ─── the waitlist ──────────────────────────────────────────────────────── */

.waitlist { margin-top: 2.2rem; max-width: 34rem; }
.waitlist-row { display: flex; gap: .5rem; align-items: flex-end; flex-wrap: wrap; }
.field { flex: 1 1 15rem; display: flex; flex-direction: column; gap: .4rem; }
.field label {
  font: 600 .6875rem/1 "Archivo", sans-serif;
  font-stretch: 118%; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-2);
}
.field input {
  width: 100%;
  padding: .85rem .95rem;
  font: 400 1rem/1.3 "Atkinson", sans-serif;
  color: var(--ink);
  background: rgba(4, 18, 42, .55);
  border: 1px solid rgba(111, 138, 181, .55);
  border-radius: 2px;
  caret-color: var(--cyan);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.field input::placeholder { color: var(--ink-3); }
.field input:hover { border-color: rgba(169, 191, 226, .75); }
.field input:focus { outline: none; border-color: var(--cyan); background: rgba(4, 18, 42, .85); }
.field input:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.field input[aria-invalid="true"] { border-color: var(--amber); }

.waitlist button {
  flex: 0 0 auto;
  padding: .85rem 1.5rem;
  font: 700 .9375rem/1.3 "Archivo", sans-serif;
  font-stretch: 108%; letter-spacing: .02em;
  color: var(--on-amber); background: var(--amber);
  border: 1px solid var(--amber); border-radius: 2px;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), filter .2s var(--ease);
}
.waitlist button:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 2px rgba(10, 26, 51, .9);   /* the control arms: a mark, not a glow */
}
.waitlist button:active { transform: translateY(1px); }
.waitlist button[disabled] { filter: saturate(.3) brightness(.8); cursor: progress; box-shadow: none; }

.waitlist-note {
  margin: .9rem 0 0;
  font-size: .875rem; color: var(--ink-2);
}
.waitlist-ask {
  margin: 0 0 1rem;
  font: 700 1.125rem/1.4 "Atkinson", sans-serif;
}
.waitlist-done {
  margin: 1rem 0 0;
  padding-left: 1rem;
  border-left: 1px solid var(--cyan);
  font-size: .9375rem; color: var(--ink-2);
}
.waitlist-done[data-state="error"] { border-left-color: var(--amber); color: var(--ink); }

/* on the amber bed the control inverts: dark ink on the hard return */
.waitlist--bottom { margin-top: 2.6rem; max-width: 36rem; }
.waitlist--bottom .field label { color: rgba(10, 26, 51, .78); }
.waitlist--bottom .field input {
  background: rgba(255, 255, 255, .92);
  border-color: rgba(10, 26, 51, .45);
  color: var(--on-amber);
  caret-color: var(--on-amber);
}
.waitlist--bottom .field input::placeholder { color: rgba(10, 26, 51, .5); }
.waitlist--bottom .field input:hover { border-color: var(--on-amber); }
.waitlist--bottom .field input:focus { border-color: var(--on-amber); background: #fff; }
.waitlist--bottom :focus-visible { outline-color: var(--on-amber); }
.waitlist--bottom button {
  background: var(--on-amber); color: var(--amber);
  border-color: var(--on-amber);
}
.waitlist--bottom button:hover { box-shadow: inset 0 0 0 2px var(--amber); }
.waitlist--bottom .waitlist-done { border-left-color: var(--on-amber); color: rgba(10, 26, 51, .85); }
.waitlist--bottom .waitlist-done a { color: var(--on-amber); }

/* ─── content blocks ────────────────────────────────────────────────────── */

.aside {
  margin-top: 1.6rem; padding-left: 1rem;
  border-left: 1px solid rgba(79, 192, 245, .5);
  color: var(--ink-2); font-size: .9375rem;
}

.rows { margin: 0; }
.row {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 0 2.5rem;
  padding: 1.3rem 0;
  border-top: 1px solid rgba(111, 138, 181, .24);
}
.row:last-child { border-bottom: 1px solid rgba(111, 138, 181, .24); }
.row dt {
  font: 600 .75rem/1.5 "Archivo", sans-serif;
  font-stretch: 118%; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cyan);
}
.row dd { margin: 0; color: var(--ink-2); }

.gallery {
  margin: 2.6rem 0 0; padding: 0; list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  gap: 1rem 1.1rem;
}
.gallery figure { margin: 0; }
.gallery img {
  /* height:auto is load-bearing — the HTML height attribute outranks aspect-ratio
     unless one axis is auto, which left every tile at its natural height. */
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover;
  background: var(--deep);
  border: 1px solid rgba(111, 138, 181, .3);
}
.gallery figcaption {
  margin-top: .5rem;
  font: 600 .6875rem/1 "Archivo", sans-serif;
  font-stretch: 118%; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3);
}

.room-shots {
  margin-top: 1.1rem;
  display: flex; flex-wrap: wrap; gap: .7rem;
}
.room-shots img {
  display: block; height: 7.25rem; width: auto;
  background: var(--deep);
  border: 1px solid rgba(111, 138, 181, .3);
}

.steps { margin: 0 0 1.6rem; padding: 0; list-style: none; counter-reset: s; }
.steps li {
  counter-increment: s;
  position: relative;
  padding: 1rem 0 1rem 3.2rem;
  border-top: 1px solid rgba(111, 138, 181, .24);
  color: var(--ink-2);
}
.steps li:last-child { border-bottom: 1px solid rgba(111, 138, 181, .24); }
.steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: 1rem;
  width: 2rem; text-align: left;
  font: 700 .9375rem/1.45 "Archivo", sans-serif;
  font-stretch: 118%; letter-spacing: .1em;
  font-variant-numeric: tabular-nums;
  color: var(--cyan);
}
.steps b { color: var(--ink); font-weight: 700; }

.split {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem 3rem; margin-top: 2.4rem;
}
.split p { color: var(--ink-2); font-size: .9375rem; max-width: none; }

.hard { margin: 0; padding: 0; list-style: none; }
.hard li {
  padding: 1.1rem 0;
  border-top: 1px solid rgba(10, 26, 51, .28);
  max-width: 68ch;
}
.hard li:last-child { border-bottom: 1px solid rgba(10, 26, 51, .28); }
.hard b { font-weight: 800; }

.band--bottom h2 { color: var(--on-amber); }
.band--bottom .band-body { color: rgba(10, 26, 51, .88); }

/* ─── the bed ───────────────────────────────────────────────────────────── */

.sediment .band-body { padding-bottom: calc(var(--band) * .7); }
.sediment h2 { color: var(--ink); }
.sediment p { color: var(--ink-2); font-size: .9375rem; }

.colophon {
  margin-top: 3rem; padding-top: 1.4rem;
  border-top: 1px solid rgba(111, 138, 181, .24);
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: .6rem 2rem;
}
.colophon p { margin: 0; font-size: .8125rem; }
.colophon-id { color: var(--ink-2); }
.colophon-note { color: var(--ink-2); flex-basis: 100%; order: 3; }
.colophon-copy { color: var(--ink-3); margin-left: auto !important; }
.colophon-links { display: flex; gap: 1.25rem; }
.colophon-links a { font-size: .8125rem; color: var(--ink-2); text-decoration: none; border-bottom: 1px solid rgba(169,191,226,.35); }
.colophon-links a:hover { color: var(--cyan); border-bottom-color: var(--cyan); }

/* ─── wide: the label spine ─────────────────────────────────────────────
   At desk widths the band's heading drops into a left spine so the measure
   stays at 60ch and every label, dt and depth numeral lines up on one axis. */

@media (min-width: 1100px) {
  .band-body {
    display: grid;
    grid-template-columns: 24rem minmax(0, 60ch);
    gap: 0 5rem;
    max-width: none;
  }
  .band-body > * { grid-column: 2; }
  .band-body > h2 {
    grid-column: 1; grid-row: 1;
    align-self: start;
    font-size: clamp(1.6rem, 2.1vw, 2.15rem);
    margin-bottom: 0;
  }
  .band-body > .rows,
  .band-body > .split,
  .band-body > .gallery,
  .band-body > .colophon { grid-column: 1 / -1; }

  .row { grid-template-columns: 24rem minmax(0, 60ch); gap: 0 5rem; }
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 5rem; margin-top: 2.8rem; }
  .split h3 { margin-top: 0; }
}

/* ─── between: keep the fish clear of the reading column ───────────────── */

@media (min-width: 641px) and (max-width: 1099px) {
  .hero { padding-bottom: calc(var(--band) * 1.9); }
  .hero-fish {
    width: clamp(13rem, 24vw, 19rem);
    right: -2.5rem; bottom: -1.5rem; opacity: .82;
  }
}

/* ─── narrow ────────────────────────────────────────────────────────────── */

@media (max-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .row { grid-template-columns: minmax(0, 1fr); gap: .45rem; }
}

@media (max-width: 640px) {
  :root { --rail: 44px; --band: 4.25rem; }
  .rail-line, .rail-ticks { left: 9px; }
  .rail-unit { display: block; left: 9px; bottom: 10px; font-size: .5rem; letter-spacing: .12em; }
  .rail-mark { left: 9px; width: calc(var(--rail) - 9px); gap: 3px; }
  .rail-mark::before { width: 9px; }
  .rail-mark span { font-size: .5625rem; letter-spacing: .02em; }
  .rail-mark i { display: none; }
  .rail-marker-read { right: 3px; font-size: .5rem; }

  .masthead { padding-top: 1rem; padding-bottom: 1rem; }
  .masthead-meta { display: none; }        /* the facts row says it louder */

  .hero { padding-top: calc(var(--band) * .5); padding-bottom: calc(var(--band) * 3); }
  .hero-fish { right: -2.25rem; bottom: -1.25rem; width: 12.5rem; opacity: .82; }

  /* facts become an instrument readout: value left, unit right, hairline between */
  .facts { display: block; margin: 1.6rem 0; }
  .facts { width: auto; }
  .facts li {
    display: flex; flex-direction: row; align-items: baseline;
    justify-content: space-between; gap: 1rem;
    padding: .7rem 0; margin: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(111, 138, 181, .24);
  }
  .facts li:last-child { border-bottom: 0; padding-bottom: .7rem; }
  .facts span { text-align: right; }

  .waitlist-row { gap: .75rem; }
  .waitlist button { width: 100%; }
  .band-rule { gap: .6rem; flex-wrap: wrap; }
  .colophon-copy { margin-left: 0 !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .water-far, .water-near { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
