/* Normal Variant
   Layout: the home page is a dive. One continuous water-column photograph sits
   behind everything and moves with scroll, from the sunlit surface to the deep;
   a light canvas layer (ocean.js) adds drifting marine snow. Content arrives one
   idea per screen. Palette from the nautilus and the sea: abyssal blue, nacre
   cream type, rust from the shell's stripes as the one accent. Single look. */

:root {
  --abyss: #041226;
  --deep: #0a2547;
  --nacre: #fbefe2;      /* text */
  --mist: #a9c6dc;       /* secondary text */
  --rule: rgba(169, 198, 220, 0.22);
  --rust: #f08457;       /* accent: the shell's stripe */
  --pearl: #ffd2bd;      /* hover */
  --glass: rgba(4, 18, 38, 0.38);

  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --body: "Jost", "Futura", "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;

  --step--1: 0.8125rem;
  --step-0: 1.0625rem;
  --step-1: clamp(1.15rem, 1rem + 0.6vw, 1.35rem);
  --step-2: clamp(1.7rem, 1.3rem + 1.8vw, 2.4rem);
  --step-3: clamp(2.2rem, 1.4rem + 4vw, 4rem);
  --step-hero: clamp(3rem, 1rem + 10vw, 8.5rem);
  --wide: 70rem;
  --measure: 34rem;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; background: var(--abyss); scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: linear-gradient(180deg, #13708a 0%, var(--deep) 45%, var(--abyss) 100%) fixed;
  color: var(--nacre);
  font-family: var(--body);
  font-weight: 300;
  font-size: var(--step-0);
  line-height: 1.6;
  overflow-x: hidden;
}

.water { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.water img {
  position: absolute; left: 0; top: 0;
  width: 100%; height: auto; min-height: 260vh;
  object-fit: cover; object-position: 50% 0;
  will-change: transform;
}
#ocean { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; pointer-events: none; }

.wrap {
  max-width: calc(var(--wide) + 2 * 16px);
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

a { color: var(--nacre); text-decoration-color: var(--rust); text-underline-offset: 0.22em; text-decoration-thickness: 1px; transition: color 200ms; }
a:hover { color: var(--pearl); text-decoration-color: var(--pearl); }
a:focus-visible { outline: 1px solid var(--nacre); outline-offset: 4px; }

h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; text-wrap: balance; }
h1 em, h2 em { font-style: italic; color: var(--rust); }

.label {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mist);
  font-variant-numeric: tabular-nums;
}

/* Header floats over the water */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10;
  background: rgba(4, 18, 38, 0.5);
}
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 5;
  background: transparent;
  transition: background-color 300ms, backdrop-filter 300ms;
}
.site-header.scrolled {
  background: rgba(4, 18, 38, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.1rem;
}
.wordmark {
  font-size: 0.78rem; font-weight: 400; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--nacre); text-decoration: none;
}
.site-nav { display: flex; gap: 1.75rem; font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; }
.site-nav a { color: var(--mist); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--nacre); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--rust); text-underline-offset: 0.5em; }

/* Depth zones */
main, .site-footer { position: relative; z-index: 1; }
main { display: grid; }
.zone {
  position: relative;
  z-index: 0;
  min-height: 92vh;
  display: grid;
  align-content: center;
  gap: 1.75rem;
  padding-block: clamp(4rem, 12vh, 8rem);
}
.zone-tag { display: flex; gap: 0.8rem; align-items: center; }
.zone-tag::before { content: ""; width: 2.5rem; height: 1px; background: var(--rust); }

/* 0 m: the surface */
.zone-surface { min-height: calc(100vh - 4rem); align-content: end; padding-bottom: clamp(4rem, 14vh, 9rem); }
.surface-art {
  position: absolute; inset: -5rem 0 0; margin: 0; z-index: -1; overflow: hidden; pointer-events: none;
  width: 100vw; left: 50%; transform: translateX(-50%);
  -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
}
.surface-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; display: block; }
.zone-surface h1, .zone-surface .lede { position: relative; z-index: 1; }
.zone-surface h1 {
  text-shadow: 0 4px 40px rgba(4, 18, 38, 0.55);
  font-size: var(--step-hero);
  color: var(--nacre);
  line-height: 0.95;
  letter-spacing: -0.015em;
  text-shadow: 0 4px 40px rgba(4, 18, 38, 0.45);
}
.zone-surface h1 span { display: block; }
.lede { margin: 0; font-size: var(--step-1); max-width: var(--measure); text-shadow: 0 1px 16px rgba(4, 18, 38, 0.6); }
.scroll-cue { display: inline-flex; align-items: center; gap: 0.75rem; color: var(--nacre); text-decoration: none; }
.scroll-cue svg { width: 14px; height: 22px; }
@media (prefers-reduced-motion: no-preference) {
  .scroll-cue svg { animation: bob 2.4s ease-in-out infinite; }
  @keyframes bob { 50% { transform: translateY(5px); } }
}

/* 120 m: a full-bleed photograph with the line of text in its open water */
.zone-bleed { min-height: auto; padding-block: clamp(3rem, 10vh, 6rem); }
.bleed {
  margin: 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  position: relative;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 80%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 80%, transparent 100%);
}
.bleed img { width: 100%; height: clamp(26rem, 50vw, 52rem); object-fit: cover; object-position: 70% 85%; display: block; }
.bleed:not([hidden]) + .bleed-copy {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  max-width: min(32rem, 46%);
}
.can-rise .bleed:not([hidden]) + .bleed-copy.rise { transform: translateY(calc(-50% + 28px)); }
.can-rise .bleed:not([hidden]) + .bleed-copy.rise.risen { transform: translateY(-50%); }
.bleed-copy { display: grid; gap: 1.25rem; }
.bleed-copy .pull { text-shadow: 0 2px 24px rgba(4, 18, 38, 0.55); }
.caption { margin: 0; font-size: var(--step--1); color: var(--mist); max-width: 26rem; }
.caption i { font-family: var(--display); color: var(--nacre); }
@media (max-width: 48rem) {
  .bleed img { height: 70vw; object-position: 80% 85%; }
  .bleed:not([hidden]) + .bleed-copy, .can-rise .bleed:not([hidden]) + .bleed-copy.rise.risen { position: static; transform: none; max-width: none; margin-top: -2rem; }
  .can-rise .bleed:not([hidden]) + .bleed-copy.rise { transform: translateY(28px); }
}

/* 600 m: deep water photograph behind the last screen */
.floor-art {
  position: absolute; inset: 0 auto 0 50%; width: 100vw; transform: translateX(-50%); margin: 0; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 35%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 35%);
}
.floor-art img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.85; }

/* One idea per screen, no frame */
.solo { max-width: var(--measure); position: relative; z-index: 1; }

/* Creatures: cut-out animals swimming in the shared water. ocean.js moves them
   across the zone as it scrolls past and adds a slow bob. */
.zone { overflow: visible; }
.creature {
  position: absolute;
  z-index: 0;
  top: var(--top, 10%);
  left: 0;
  width: var(--w, 300px);
  height: auto;
  max-width: none;
  pointer-events: none;
  opacity: var(--o, 1);
  filter: blur(var(--blur, 0px)) drop-shadow(0 30px 40px rgba(2, 10, 24, 0.45));
  will-change: transform;
}
.creature.glow { mix-blend-mode: screen; filter: blur(var(--blur, 0px)); }
/* Jellies keep their shape and simply drift; ocean.js moves them. */
.creature[data-motion="jelly"] { transform-origin: 50% 30%; }
@media (max-width: 48rem) { .creature { opacity: calc(var(--o, 1) * 0.9); } }

/* Feature: a big image with a line of text beside or over it */
.feature { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.feature.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.feature.flip > figure { order: 2; }
.feature > * { min-width: 0; }
.feature figure { margin: 0; display: grid; gap: 0.75rem; }
.feature img {
  width: 100%; max-width: 100%; height: auto; display: block;
  border-radius: 2px;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(251, 239, 226, 0.06);
}
.feature figcaption { font-size: var(--step--1); color: var(--mist); }
.feature figcaption i { font-family: var(--display); color: var(--nacre); }
@media (max-width: 48rem) {
  .feature, .feature.flip { grid-template-columns: 1fr; }
  .feature.flip > figure { order: 0; }
}

.pull {
  font-family: var(--display);
  font-style: italic;
  font-size: var(--step-3);
  line-height: 1.12;
  max-width: 18ch;
  margin: 0;
}
.copy { display: grid; gap: 1.1rem; max-width: var(--measure); position: relative; z-index: 1; }
.copy h2 { font-size: var(--step-3); line-height: 1.05; }
.copy p { margin: 0; font-size: var(--step-1); color: var(--mist); }
.copy .pull { font-size: var(--step-3); color: var(--nacre); }
.copy p strong { color: var(--nacre); font-weight: 400; }
.more { font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; display: inline-flex; gap: 0.6rem; align-items: center; }
.more::after { content: "→"; transition: transform 200ms; }
.more:hover::after { transform: translateX(4px); }

/* 600 m: the floor */
.zone-floor { min-height: 80vh; align-content: end; }
.zone-floor .copy h2 { font-size: var(--step-2); }

/* Content rises into place. Visible at rest; the motion is only an offset. */
.can-rise .rise { transform: translateY(28px); opacity: 0.55; transition: transform 1100ms cubic-bezier(.2,.7,.2,1), opacity 1100ms ease-out; }
.can-rise .rise.risen { transform: none; opacity: 1; }

/* Inner pages */
.page { padding-block: clamp(4rem, 12vh, 8rem) 5rem; display: grid; gap: 3rem; min-height: 80vh; align-content: start; }
.page-head { display: grid; gap: 1.25rem; }
.page-head h1 { font-size: var(--step-hero); line-height: 0.95; letter-spacing: -0.015em; }
.page-head p { margin: 0; color: var(--mist); font-size: var(--step-1); max-width: var(--measure); }
.prose { max-width: var(--measure); display: grid; gap: 1em; }
.prose p { margin: 0; font-size: var(--step-1); line-height: 1.6; }

.entries { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); max-width: 48rem; }
.entries li {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 0.25rem 2rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--rule);
}
.entries li > * { min-width: 0; }
.entries .status { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mist); padding-top: 0.6em; }
.entries h2 { font-size: var(--step-2); line-height: 1.1; }
.entries p { margin: 0.4rem 0 0; color: var(--mist); }
.entries .more { margin-top: 0.9rem; }
@media (max-width: 34rem) { .entries li { grid-template-columns: 1fr; } }

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: 1.5rem calc(3rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist);
}

.site-footer .social { display: flex; gap: 1.5rem; }
.site-footer .social a { color: var(--mist); text-decoration: none; }
.site-footer .social a:hover { color: var(--nacre); }

/* Legibility pass (mobile review, 2026-11-26) */
:root { --mist: #c4d9e8; }
.site-header { background: linear-gradient(180deg, rgba(4, 18, 38, 0.55), rgba(4, 18, 38, 0)); }
.site-nav, .wordmark { font-size: 0.8125rem; }
.site-nav a, .wordmark { font-weight: 400; text-shadow: 0 1px 3px rgba(4, 18, 38, 0.6); }
.zone-surface h1 em { color: var(--pearl); }
h1 em { text-shadow: 0 0 2px rgba(4, 18, 38, 0.7), 0 2px 18px rgba(4, 18, 38, 0.6); }
.lede { text-shadow: 0 1px 3px rgba(4, 18, 38, 0.6), 0 1px 16px rgba(4, 18, 38, 0.5); }
.copy p, .page-head p, .prose p { text-shadow: 0 1px 3px rgba(4, 18, 38, 0.45); }
.label, .more, .site-footer, .entries .status {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.14em;
}
.page-head .label { font-size: 0.8125rem; color: var(--mist); }
@media (max-width: 48rem) {
  body { font-weight: 400; }
  .lede { font-weight: 400; }
}

/* Legibility pass 2 (iPad review, 2026-11-27). Same faces, sturdier settings.
   Bodoni's large optical sizes have hairline strokes that disappear over the
   bright water, so headings are held at a smaller optical size (thicker thin
   strokes) and set a step heavier. Body text is regular Jost, a touch larger.
   Small caps are tracked less. A soft dark halo keeps text off the water. */
:root { --mist: #dbe8f2; --step-0: 1.125rem; }
body { font-weight: 400; }
h1, h2, h3, .pull {
  font-optical-sizing: none;
  font-variation-settings: "opsz" 20;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(4, 18, 38, 0.55), 0 2px 24px rgba(4, 18, 38, 0.45);
}
.zone-surface h1, .page-head h1 { font-variation-settings: "opsz" 32; }
h1 em, h2 em { font-weight: 600; }
.lede, .copy p, .page-head p, .prose p, .entries p, .caption, .feature figcaption {
  font-weight: 400;
  text-shadow: 0 1px 2px rgba(4, 18, 38, 0.6), 0 1px 14px rgba(4, 18, 38, 0.45);
}
.entries p { font-size: var(--step-1); }
.wordmark, .site-nav, .label, .page-head .label, .more, .site-footer, .entries .status {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-shadow: 0 1px 3px rgba(4, 18, 38, 0.65);
}
.wordmark { letter-spacing: 0.16em; }
.site-nav a, .site-footer .social a { color: var(--nacre); }
