/* ───────────────────────────────────────────────────────────────
   Galen Humber — galenhumber.com
   Design system: dusk on the water.
   Cormorant Garamond (display) · Lora (prose) · Inter (interface)
   ─────────────────────────────────────────────────────────────── */

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

:root {
  /* Water and light */
  --deep-ocean:  #0a1e3d;
  --deeper:      #081831;
  --surface:     #1a2d4a;
  --warm-ground: #faf5ee;
  --warm-deep:   #f3ecdf;

  /* Text */
  --text-light:  #e8e4dd;
  --text-dim:    rgba(232, 228, 221, 0.78);
  --heading:     #ffffff;
  --ink:         #1a1a18;
  --ink-soft:    #4d4c47;

  /* Accents */
  --amber:       #c4956a;
  --amber-deep:  #96683c;
  --amber-soft:  rgba(196, 149, 106, 0.55);
  --coral:       #d4734e;
  --coral-deep:  #c0623f;
  --muted-blue:  #7a9bb5;

  /* Faces */
  --display: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --prose:   'Lora', 'Iowan Old Style', Georgia, serif;
  --ui:      'Inter', -apple-system, 'Helvetica Neue', sans-serif;

  /* Rhythm */
  --measure: 38rem;
  --section-pad: clamp(6rem, 16vh, 11rem);
  --gutter: clamp(1.5rem, 5vw, 3rem);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--deep-ocean);
  color: var(--text-dim);
  font-family: var(--prose);
  font-weight: 400;
  line-height: 1.8;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(196, 149, 106, 0.35); color: inherit; }

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

/* picture is only a source-picker — the img lays out against the figure */
.photo-band picture, .photo-section-img picture { display: contents; }

/* ─── Navigation ─────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem var(--gutter);
  transition: background 0.6s ease;
}

.nav.scrolled {
  background: rgba(8, 24, 49, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-logo {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text-light);
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.nav-link {
  font-family: var(--ui);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--text-light);
  text-decoration: none;
  opacity: 0.72;
  transition: opacity 0.3s ease;
}

.nav-link:hover, .nav-link[aria-current="page"] { opacity: 1; }

.nav-cta {
  font-family: var(--ui);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-light);
  text-decoration: none;
  border: 1px solid rgba(232, 228, 221, 0.35);
  padding: 0.55rem 1.4rem;
  border-radius: 100px;
  white-space: nowrap;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.nav-cta:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: #241505;
}

/* ─── Sections ───────────────────────────────────────────────── */

section { position: relative; padding: var(--section-pad) var(--gutter); }

.inner { max-width: 68rem; margin: 0 auto; width: 100%; }
.inner--prose { max-width: var(--measure); }
.inner--wide { max-width: 78rem; }

/* The sea (dark) and the shore (warm) — the site's two moods */
.sea {
  background: linear-gradient(180deg, var(--deeper) 0%, var(--deep-ocean) 55%, #0c2140 100%);
  color: var(--text-dim);
}

.shore {
  background: var(--warm-ground);
  color: var(--ink-soft);
}

/* Grain — a breath of texture on the dark water */
.sea::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
.sea > * { position: relative; z-index: 1; }

/* ─── Photo-fabric sections — content set into the imagery ───── */

.photo-section {
  position: relative;
  isolation: isolate;
  color: var(--text-dim);
}

.photo-section > .photo-section-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.photo-section > .photo-section-img img {
  position: relative;
  top: -15%;
  width: 100%; height: 130%;
  object-fit: cover;
  will-change: transform;
}

.photo-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, var(--deeper) 0%, rgba(8, 24, 49, 0.55) 18%, rgba(8, 24, 49, 0.55) 82%, var(--deeper) 100%);
}

.photo-section[data-blend-top="shore"]::before {
  background:
    linear-gradient(180deg, var(--warm-ground) 0%, rgba(250, 245, 238, 0) 18%, rgba(8, 24, 49, 0.5) 34%, rgba(8, 24, 49, 0.62) 55%, rgba(8, 24, 49, 0.62) 82%, var(--deeper) 100%);
}

.photo-section h2, .photo-section .big-quiet { color: var(--heading); }

/* ─── Type ───────────────────────────────────────────────────── */

h1, h2, h3 { font-family: var(--display); font-weight: 400; color: var(--heading); }
.shore h1, .shore h2, .shore h3 { color: var(--ink); }

h2 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: clamp(2rem, 5vh, 3.5rem);
}

p { max-width: var(--measure); }

.shore .off-ramp { color: var(--amber-deep); }

.big-quiet {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  color: var(--heading);
  line-height: 1.3;
}

/* ─── Buttons & off-ramps ────────────────────────────────────── */

.cta-button {
  display: inline-block;
  font-family: var(--ui);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #fdf9f3;
  background: var(--coral);
  text-decoration: none;
  padding: 1rem 2.4rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
  background: var(--coral-deep);
  transform: translateY(-1px);
  box-shadow: 0 10px 34px rgba(212, 115, 78, 0.28);
}

.cta-note {
  font-family: var(--ui);
  font-size: 0.8125rem;
  opacity: 0.55;
  margin: 1.1rem auto 0;
  letter-spacing: 0.02em;
}

.off-ramp {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  font-family: var(--ui);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  text-decoration: none;
  margin-top: 2.5rem;
}

.off-ramp::after {
  content: '⟶';
  font-family: var(--prose);
  font-size: 1rem;
  letter-spacing: 0;
  transition: transform 0.35s ease;
}

.off-ramp:hover::after { transform: translateX(0.5rem); }

.off-ramp--sea { color: var(--muted-blue); }

/* ─── Hero ───────────────────────────────────────────────────── */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 8rem;
  isolation: isolate;
}

/* Dusk sky breathed into the water — the farthest plane, receding as you scroll */
.hero .hero-sky {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  opacity: 0.6;
}

.hero .hero-sky img {
  position: absolute;
  left: 0; top: -26%;
  width: 100%; height: 152%;
  object-fit: cover;
  object-position: center 30%;
  will-change: transform;
}

.hero .inner { will-change: transform, opacity; }

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 24, 49, 0.66) 0%, rgba(8, 24, 49, 0.38) 45%, rgba(8, 24, 49, 0.82) 100%),
    radial-gradient(ellipse 90% 55% at 50% 108%, rgba(196, 149, 106, 0.16) 0%, transparent 60%);
}

.hero h1, .hero .hero-sub { text-shadow: 0 1px 18px rgba(8, 24, 49, 0.55); }

.hero h1 {
  font-weight: 300;
  font-size: clamp(3.1rem, 9vw, 7.25rem);
  line-height: 1.04;
  letter-spacing: -0.018em;
  margin-bottom: 2.25rem;
}

.hero h1 em { font-style: italic; font-weight: 300; }

.hero-sub {
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  line-height: 1.85;
  max-width: 34rem;
  margin: 0 auto 3rem;
  color: var(--text-light);
}

/* ─── Waveforms — the noise, and later, the music ────────────── */

.wave {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: clamp(120px, 20vh, 220px);
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 2.5s ease;
}

.wave.visible { opacity: 0.3; }

.wave svg {
  width: 200%;
  height: 100%;
  display: block;
}

.wave path {
  fill: none;
  stroke: var(--muted-blue);
  stroke-width: 1.5;
  stroke-linecap: round;
}

.wave--music path { stroke: var(--amber); }

/* The noise drifts against itself — two voices in opposite directions.
   The music moves as one, two speeds of the same current. */
.wave .drift-slow   { animation: wave-drift 90s linear infinite; }
.wave .drift-slower { animation: wave-drift 130s linear infinite; }
.wave .drift-fast   { animation: wave-drift 55s linear infinite; }
.wave .drift-rev    { animation: wave-drift-rev 70s linear infinite; }

.wave .layer-2 { opacity: 0.45; }

@keyframes wave-drift {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes wave-drift-rev {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

/* ─── Scene art — drawn layers, each idea given a picture ────── */

.scene-art {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transition: opacity 2.4s ease;
}

.scene-art.visible { opacity: 1; }

.scene-art svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  will-change: transform;
}

/* Soundings — chart contours around an island of thought */
.contours path {
  fill: none;
  stroke: var(--muted-blue);
  stroke-width: 1;
  opacity: 0.22;
}

/* ─── Problem ────────────────────────────────────────────────── */

.problem { text-align: center; }

.problem p {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.9;
  margin: 0 auto 2.4rem;
}

.problem .turn {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  color: var(--amber);
  line-height: 1.5;
  margin-top: 3.5rem;
}

/* ─── Guide — prose to port, a compass to starboard ─────────── */

.guide p {
  font-size: clamp(1.0625rem, 1.5vw, 1.15rem);
  line-height: 1.9;
  margin-bottom: 1.6rem;
}

.guide-grid {
  display: grid;
  grid-template-columns: minmax(0, var(--measure)) 1fr;
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: center;
  max-width: 64rem;
  margin: 0 auto;
}

.guide-art {
  display: flex;
  justify-content: center;
  /* the compass rises out of the scene above, breaking the section line */
  margin-top: calc(-1 * clamp(6rem, 24vh, 15rem));
}

.guide-art .case-motif {
  width: clamp(200px, 23vw, 320px);
  margin: 0;
}

/* ─── Plan — a plotted course, traced as you travel it ───────── */

.course {
  position: relative;
  max-width: 54rem;
  margin: clamp(3rem, 7vh, 4.5rem) auto 0;
  --course-p: 0;
  --course-x: 50%;
}

/* the route ahead — faint, dashed, waiting */
.course::before {
  content: '';
  position: absolute;
  top: 0.5rem; bottom: 0.5rem;
  left: var(--course-x);
  border-left: 1px dashed rgba(150, 104, 60, 0.4);
}

/* the route traveled — drawn in behind you */
.course::after {
  content: '';
  position: absolute;
  top: 0.5rem; bottom: 0.5rem;
  left: var(--course-x);
  width: 2px;
  margin-left: -1px;
  background: linear-gradient(180deg, var(--amber-deep), var(--amber));
  transform-origin: top;
  transform: scaleY(var(--course-p));
}

.course .step {
  position: relative;
  width: calc(50% - 4.5rem);
  padding-bottom: clamp(3rem, 8vh, 5rem);
}

.course .step:nth-of-type(odd) { text-align: right; }
.course .step:nth-of-type(even) { margin-left: calc(50% + 4.5rem); }
.course .step:last-of-type { padding-bottom: 0.5rem; }

/* waypoint — a numbered mark on the chart */
.course .wp {
  position: absolute;
  top: -0.35rem;
  width: 3.1rem; height: 3.1rem;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--amber-deep);
  background: var(--warm-ground);
  border: 1px solid rgba(150, 104, 60, 0.55);
  border-radius: 50%;
  transition: background 0.9s ease, color 0.9s ease, border-color 0.9s ease, box-shadow 0.9s ease;
}

.course .step:nth-of-type(odd) .wp { right: -6.05rem; }
.course .step:nth-of-type(even) .wp { left: -6.05rem; }

.course .step.passed .wp {
  background: var(--amber);
  border-color: var(--amber);
  color: #241505;
  box-shadow: 0 0 0 7px rgba(196, 149, 106, 0.16);
}

.step h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  margin-bottom: 0.6rem;
}

.step p { font-size: 1rem; line-height: 1.85; }

.course .step:nth-of-type(odd) p { margin-left: auto; }
.step p { max-width: 24rem; }

/* ─── Pinned scenes — the camera holds while the shot plays ──── */

.pin { position: relative; height: 320vh; padding: 0; }
.pin--short { height: 260vh; }

.pin-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  z-index: 1;
}

/* a held photograph, dollying slowly toward the viewer */
.pin-photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.pin-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
  will-change: transform;
}

.pin-photo picture { display: contents; }

.pin-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 72% 56% at 50% 50%, rgba(8, 24, 49, 0.42), rgba(8, 24, 49, 0.16) 62%, rgba(8, 24, 49, 0.5) 100%);
}

/* supers — lines of copy holding the center of the frame */
.pin-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 var(--gutter);
  will-change: opacity, transform;
}

.pin-copy--bottom { justify-content: flex-end; padding-bottom: 15vh; }

.poss-line {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2rem, 4.6vw, 3.7rem);
  line-height: 1.32;
  color: var(--text-light);
  letter-spacing: -0.005em;
  text-shadow: 0 1px 26px rgba(8, 24, 49, 0.75);
  max-width: 62rem;
}

.poss-line em { font-style: italic; color: var(--heading); }

/* words hold their own against the lines crossing behind them */
.problem .pin-copy p {
  text-shadow: 0 1px 14px rgba(8, 24, 49, 0.95), 0 0 34px rgba(8, 24, 49, 0.8);
}

/* the morph — tangled voices resolving into one clear tone */
.morph {
  position: absolute;
  left: 0; right: 0;
  top: 14%;
  height: 72%;
  width: 100%;
}

.morph path {
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
}

/* Without motion, the scenes settle into plain, readable pages */
.motion-off .pin, .motion-off .pin--short { height: auto; }
.motion-off .pin-stage {
  position: relative;
  height: auto;
  padding: var(--section-pad) 0;
  display: block;
}
.motion-off .pin-copy {
  position: static;
  padding: 1.6rem var(--gutter);
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}
.motion-off .morph { opacity: 0.35; height: 100%; top: 0; }

/* ─── Proof — a borrowed voice ──────────────────────────────── */

.proof-quote {
  border-left: 2px solid var(--amber);
  padding-left: 1.75rem;
}

.proof-quote p {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 1.4rem;
}

.proof-quote cite {
  font-family: var(--ui);
  font-style: normal;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.proof-bridge {
  font-size: 1.0938rem;
  line-height: 1.9;
  margin-top: 2.4rem;
}

/* ─── Photography bands — breaths between moods ──────────────── */

.photo-band {
  position: relative;
  padding: 0;
  height: clamp(64vh, 88vh, 100vh);
  overflow: hidden;
}

.photo-band img {
  position: relative;
  top: -15%;
  width: 100%; height: 130%;
  object-fit: cover;
  will-change: transform;
}

/* Soften each photo edge into its neighbours */
.photo-band::before, .photo-band::after {
  content: '';
  position: absolute; left: 0; right: 0;
  height: 22%;
  pointer-events: none;
  z-index: 1;
}
.photo-band[data-blend-top="sea"]::before   { top: 0;    background: linear-gradient(180deg, #0c2140 0%, transparent 100%); }
.photo-band[data-blend-top="shore"]::before { top: 0;    background: linear-gradient(180deg, var(--warm-ground) 0%, transparent 100%); }
.photo-band[data-blend-bottom="sea"]::after   { bottom: 0; background: linear-gradient(0deg, var(--deeper) 0%, transparent 100%); }
.photo-band[data-blend-bottom="shore"]::after { bottom: 0; background: linear-gradient(0deg, var(--warm-ground) 0%, transparent 100%); }

/* ─── Final CTA — stakes and call, one continuous water ──────── */

.final-cta {
  text-align: center;
  padding-top: clamp(8rem, 20vh, 14rem);
  padding-bottom: clamp(11rem, 26vh, 17rem);
  overflow: hidden;
}

.final-cta .stakes-line {
  font-family: var(--display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  color: var(--heading);
  line-height: 1.4;
  max-width: 46rem;
  margin: 0 auto clamp(5rem, 12vh, 8rem);
}

.final-cta h2 { margin-bottom: 1.4rem; }

.final-cta > .inner > p:not(.stakes-line) {
  margin: 0 auto 3rem;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  max-width: var(--measure);
  margin-left: auto;
  margin-right: auto;
}

/* ─── Essay pages (/approach) ────────────────────────────────── */

.page-hero {
  padding-top: clamp(11rem, 26vh, 16rem);
  padding-bottom: clamp(4rem, 10vh, 7rem);
}

.page-hero h1 {
  font-weight: 300;
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  max-width: 56rem;
}

.page-hero .lede {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  line-height: 1.85;
  margin-top: 2.2rem;
  max-width: 36rem;
}

.page-hero--center { text-align: center; }
.page-hero--center h1 { margin-left: auto; margin-right: auto; }
.page-hero--center .lede, .page-hero--center p { margin-left: auto; margin-right: auto; }

.essay h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  margin-top: clamp(4rem, 9vh, 6rem);
  margin-bottom: 1.8rem;
}

.essay h2:first-child { margin-top: 0; }

.essay p {
  font-size: 1.0938rem;
  line-height: 1.9;
  margin-bottom: 1.6rem;
}

.essay .pull {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.45;
  color: var(--ink);
  border-left: 2px solid var(--amber);
  padding-left: 1.75rem;
  margin: 3rem 0;
  max-width: 36rem;
}

.sea .essay .pull { color: var(--heading); }

/* ─── The wall (/work) — the whole practice on one surface ───── */

.wall-head {
  max-width: 96rem;
  margin: 0 auto;
  padding: clamp(8rem, 18vh, 11rem) var(--gutter) clamp(3.5rem, 8vh, 5rem);
}

.wall-head h1 {
  font-weight: 300;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1.08;
  margin-bottom: 1.4rem;
}

.wall-lede {
  font-size: 1.0625rem;
  line-height: 1.85;
  max-width: 46rem;
  color: var(--text-dim);
}

.wall {
  max-width: 96rem;
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(2rem, 5vh, 4rem);
}

/* each passage is one hand-set composition, phones beside dashboards */
.passage {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.1rem, 2vw, 2rem);
  align-items: start;
  margin-bottom: clamp(4.5rem, 10vh, 7.5rem);
}

/* markers — the practice named in five moves */
.marker { grid-column: 1 / -1; align-self: end; }

.marker h2 {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.marker-num {
  font-family: var(--ui);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--amber);
  vertical-align: 0.45em;
  margin-right: 0.9rem;
}

.marker p {
  font-size: 0.9688rem;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 30rem;
}

/* tiles — a few distinct textures, so the wall reads hung */
.tile { margin: 0; min-width: 0; grid-column: 1 / -1; }

.t-shot img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(232, 228, 221, 0.14);
  box-shadow: 0 2px 10px rgba(4, 12, 26, 0.3), 0 26px 70px rgba(4, 12, 26, 0.45);
  background: var(--warm-ground);
}

.t-phone { grid-column: span 1; }

.t-phone img {
  width: 100%;
  height: auto;
  border-radius: clamp(16px, 2vw, 24px);
  border: 1px solid rgba(232, 228, 221, 0.16);
  box-shadow: 0 2px 8px rgba(4, 12, 26, 0.35), 0 26px 70px rgba(4, 12, 26, 0.5);
}

.t-photo picture { display: contents; }

.t-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 10px;
}

.t-note {
  background: var(--warm-ground);
  color: var(--ink);
  border-radius: 10px;
  padding: 1.7rem 1.6rem 1.8rem;
}

.t-note h3 {
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.t-note p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

.t-note--line {
  background: transparent;
  border: 1px solid rgba(122, 155, 181, 0.32);
}

.t-note--line p {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-dim);
}

.t-note .case-motif {
  width: clamp(72px, 6.5vw, 96px);
  margin-bottom: 1.1rem;
}

/* system diagrams — the integrations drawn the way they run */
.t-diagram {
  background: rgba(6, 14, 30, 0.4);
  border: 1px solid rgba(122, 155, 181, 0.28);
  border-radius: 10px;
  padding: 1.3rem 1.1rem 1.1rem;
}

.t-diagram svg { width: 100%; height: auto; display: block; }

.diagram .d-box { fill: rgba(26, 45, 74, 0.55); stroke: rgba(122, 155, 181, 0.7); stroke-width: 1.3; }
.diagram .d-box--hub { fill: rgba(196, 149, 106, 0.12); stroke: rgba(196, 149, 106, 0.55); }
.diagram .d-title { font-family: var(--ui); font-size: 11px; font-weight: 500; letter-spacing: 0.13em; fill: var(--text-light); }
.diagram .d-sub { font-family: var(--ui); font-size: 8.8px; letter-spacing: 0.05em; fill: var(--muted-blue); }
.diagram .d-flow { stroke: var(--amber); stroke-width: 1.3; fill: none; }
.diagram .d-flow--back { stroke-dasharray: 4 5; opacity: 0.85; }
.diagram .d-label { font-family: var(--ui); font-size: 8px; font-weight: 500; letter-spacing: 0.15em; fill: var(--amber); }
.diagram .d-glyph { fill: none; stroke: var(--muted-blue); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.diagram .d-head, .diagram .d-dot { fill: var(--amber); stroke: none; }

/* captions — one line of context on solid ground */
.tile-cap {
  margin-top: 0.85rem;
  font-size: 0.8438rem;
  line-height: 1.6;
  color: var(--text-dim);
}

.tile-cap strong {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-right: 0.5rem;
}

.cap-link {
  font-family: var(--ui);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 228, 221, 0.4);
  padding-bottom: 1px;
  margin-left: 0.5rem;
  white-space: nowrap;
  transition: border-color 0.3s ease;
}

.cap-link:hover { border-bottom-color: currentColor; }
.cap-link:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* small screens: phones pair up and alternate height */
.p2-b, .p2-d { margin-top: 2rem; }

/* ── the compositions ── */

@media (min-width: 640px) and (max-width: 999px) {
  .passage { grid-template-columns: repeat(6, 1fr); }
  .marker { grid-column: 1 / 6; }
  .tile { grid-column: 1 / 7; }
  .t-phone { grid-column: span 3; }
  .p1-b { grid-column: 2 / 7; }
  .p2-b, .p2-d { margin-top: 2.5rem; }
  .p3-a { grid-column: 1 / 6; }
  .p4-a { grid-column: 1 / 4; }
  .p4-b { grid-column: 4 / 7; margin-top: 2rem; }
  .p4-c { grid-column: 1 / 4; }
  .p4-d { grid-column: 4 / 7; margin-top: 2rem; }
  .p5-b { grid-column: 2 / 7; }
  .p5-c { grid-column: 1 / 4; }
  .p5-d { grid-column: 4 / 7; margin-top: 2rem; }
  .p5-e { grid-column: 1 / 4; }
}

@media (min-width: 1000px) {
  .passage { grid-template-columns: repeat(12, 1fr); }

  .marker { grid-column: 1 / 6; grid-row: 1; }
  .marker--right { grid-column: 8 / 13; }
  .marker--mid { grid-column: 4 / 13; }

  .p1-a { grid-column: 1 / 9; grid-row: 2; }
  .p1-b { grid-column: 9 / 13; grid-row: 2; margin-top: 7rem; }
  .p1-c { grid-column: 6 / 13; grid-row: 3; }

  .p2-a { grid-column: 1 / 4; grid-row: 2; margin-top: 0; }
  .p2-b { grid-column: 4 / 7; grid-row: 2; margin-top: 3.5rem; }
  .p2-c { grid-column: 7 / 10; grid-row: 2; margin-top: 1.25rem; }
  .p2-d { grid-column: 10 / 13; grid-row: 2; margin-top: 5rem; }

  .p3-a { grid-column: 1 / 5; grid-row: 2; margin-top: 5rem; }
  .p3-b { grid-column: 5 / 13; grid-row: 2; }
  .p3-c { grid-column: 3 / 10; grid-row: 3; }

  .p4-a { grid-column: 1 / 4; grid-row: 2; }
  .p4-b { grid-column: 4 / 7; grid-row: 2; margin-top: 2.5rem; }
  .p4-c { grid-column: 7 / 10; grid-row: 2; margin-top: 0.75rem; }
  .p4-d { grid-column: 10 / 13; grid-row: 2; margin-top: 3.5rem; }

  .p5-a { grid-column: 1 / 7; grid-row: 2; }
  .p5-b { grid-column: 7 / 10; grid-row: 2; margin-top: 4rem; }
  .p5-c { grid-column: 10 / 13; grid-row: 2; margin-top: 1rem; }
  .p5-d { grid-column: 4 / 7; grid-row: 3; }
  .p5-e { grid-column: 7 / 10; grid-row: 3; margin-top: 2rem; }
}

/* A drawn motif beside each story */
.case-motif {
  width: clamp(90px, 12vw, 150px);
  margin-bottom: 2rem;
}

.case-motif path, .case-motif circle, .case-motif rect, .case-motif line {
  fill: none;
  stroke: var(--amber);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.75;
}

.case-motif .draw {
  stroke-dasharray: var(--len, 600);
  stroke-dashoffset: var(--len, 600);
}

.visible .case-motif .draw, .case-motif.drawn .draw {
  animation: motif-draw 2.6s ease-out forwards;
}

@keyframes motif-draw { to { stroke-dashoffset: 0; } }

/* ─── Contact ────────────────────────────────────────────────── */

.contact-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.contact-page h1 {
  font-weight: 300;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 1.08;
  margin-bottom: 2rem;
}

.contact-page .lede {
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  line-height: 1.9;
  max-width: 32rem;
  margin: 0 auto 3.2rem;
}

/* ─── Footer ─────────────────────────────────────────────────── */

footer {
  background: var(--deeper);
  padding: 3.5rem var(--gutter) 3rem;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0; left: 15%; right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(122, 155, 181, 0.3), transparent);
}

.footer-inner {
  max-width: 68rem;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-name {
  font-family: var(--display);
  font-size: 1.2rem;
  color: var(--text-light);
}

.footer-line {
  font-family: var(--display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--muted-blue);
}

.footer-links { display: flex; gap: 1.75rem; }

.footer-links a {
  font-family: var(--ui);
  font-size: 0.8125rem;
  color: var(--muted-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover { color: var(--text-light); }

/* ─── Reveal ─────────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1s cubic-bezier(0.22, 0.61, 0.36, 1), transform 1s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.reveal.visible { opacity: 1; transform: none; }

/* planes drive these transforms per frame — only opacity may transition */
.reveal[data-tilt], .reveal[data-depth] {
  transition: opacity 1s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.reveal[data-delay="1"] { transition-delay: 0.15s; }
.reveal[data-delay="2"] { transition-delay: 0.3s; }
.reveal[data-delay="3"] { transition-delay: 0.45s; }
.reveal[data-delay="4"] { transition-delay: 0.6s; }

.hero .reveal { transition-duration: 1.4s; }

/* ─── Reduced motion ─────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .wave { opacity: 0.3; transition: none; }
  .wave .drift-slow, .wave .drift-slower, .wave .drift-fast, .wave .drift-rev { animation: none; }
  .case-motif .draw { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
  .photo-band img, .photo-section > .photo-section-img img { transform: none !important; }
  .scene-art { opacity: 1; transition: none; }
  [data-depth] { transform: none !important; }
  .course-trace { transform: scaleY(1); }
  .course .wp { transition: none; }
}

/* ─── Small screens ──────────────────────────────────────────── */

@media (max-width: 900px) {
  .guide-grid { grid-template-columns: 1fr; }
  .guide-art { display: none; }
}

@media (max-width: 720px) {
  .nav { padding: 1rem 1.25rem; }
  .nav-link { display: none; }
  .nav-cta { font-size: 0.75rem; padding: 0.5rem 1.1rem; }
  .footer-inner { flex-direction: column; gap: 1rem; }
  .photo-band { height: 56vh; }
  .contours { display: none; }
  .pin { height: 240vh; }
  .pin--short { height: 200vh; }
  .morph { top: 20%; height: 60%; }
  .poss-line { font-size: clamp(1.7rem, 6.4vw, 2.2rem); }

  /* the course runs down the left margin, every step to starboard */
  .course { --course-x: 1.5rem; }
  .course .step,
  .course .step:nth-of-type(even) { width: auto; margin-left: 4.4rem; text-align: left; }
  .course .step:nth-of-type(odd) { text-align: left; }
  .course .step:nth-of-type(odd) .wp,
  .course .step:nth-of-type(even) .wp { left: -4.35rem; right: auto; width: 2.7rem; height: 2.7rem; font-size: 1.3rem; }
  .course .step:nth-of-type(odd) p { margin-left: 0; }
}
