/* Instituto Teológico Bathos
   The palette comes from the sea: the page descends from the surface to the abyss.
   Type: Commissioner (headings) and Literata (reading text and Greek). */

:root {
  --surface: #E9EFEC;   /* light at the surface; text on dark */
  --tide: #8FB3B5;      /* secondary text, rules */
  --open-sea: #2F5A66;  /* mid-depth panels */
  --abyss: #0F2531;     /* page background */
  --deep: #081820;      /* below the abyss: footer, hero end */
  --light: #F1DFA8;     /* only for revelation: the Greek, focus */

  --text: var(--surface);
  --text-soft: #B9CCCB;
  --rule: rgba(143, 179, 181, .28);

  --font-head: "Commissioner", system-ui, sans-serif;
  --font-body: "Literata", Georgia, serif;

  /* Scale 4:3 from an 18px base */
  --step--1: .875rem;
  --step-0: 1.125rem;
  --step-1: 1.5rem;
  --step-2: 2rem;
  --step-3: clamp(2.25rem, 1.6rem + 2.6vw, 2.66rem);
  --step-4: clamp(2.5rem, 1.4rem + 4.4vw, 3.55rem);
  --step-5: clamp(2.75rem, 1rem + 7vw, 5.6rem);

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--abyss);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.1;
  letter-spacing: -.015em;
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: var(--step-4); font-weight: 650; }
h3 { font-size: var(--step-1); font-weight: 600; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }

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

.skip {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 50;
  background: var(--surface); color: var(--abyss);
  padding: .5rem .9rem; font-family: var(--font-head); font-weight: 600;
}
.skip:focus { top: .75rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 20;
  background: linear-gradient(rgba(8, 24, 32, .62), rgba(8, 24, 32, 0));
  transition: background-color .3s;
}
.site-header.solid { background: rgba(15, 37, 49, .94); backdrop-filter: blur(8px); }
.bar {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
  min-height: 4rem; display: flex; align-items: center; gap: 2rem;
}
.wordmark {
  font-family: var(--font-head); font-weight: 700; font-size: 1.3rem;
  letter-spacing: -.01em; text-decoration: none; margin: 0;
}
.wordmark span { font-family: var(--font-body); font-weight: 400; font-size: .9rem; color: var(--tide); margin-left: .35rem; }
.site-nav { margin-left: auto; display: flex; gap: 1.6rem; font-family: var(--font-head); font-size: .95rem; font-weight: 500; }
.site-nav a { text-decoration: none; color: var(--text-soft); padding: .35rem 0; }
.site-nav a:hover { color: var(--surface); }
.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 1px solid var(--rule); color: var(--surface);
  font: 500 .95rem var(--font-head); padding: .4rem .9rem; cursor: pointer;
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; inset: 4rem 0 auto; margin: 0;
    flex-direction: column; gap: 0; padding: .5rem var(--gutter) 1rem;
    background: rgba(15, 37, 49, .97);
  }
  .site-nav a { padding: .7rem 0; border-bottom: 1px solid var(--rule); font-size: 1.05rem; }
  .site-header.nav-open .site-nav { display: flex; }
  .site-header.nav-open { background: rgba(15, 37, 49, .97); }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; text-decoration: none;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: .85rem 1.4rem; border-radius: 2px;
  transition: background-color .2s, color .2s;
}
.btn-light { background: var(--surface); color: var(--abyss); }
.btn-light:hover { background: #fff; }

/* ---------- hero ---------- */
/* Without JS or with reduced motion the hero is a static, readable stack over the poster. */
.hero { position: relative; background: var(--deep); }
.hero-stage { position: relative; min-height: 100svh; overflow: hidden; }
.hero-canvas { display: none; }
.hero-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.hero-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(8, 24, 32, .82) 0%, rgba(8, 24, 32, .35) 45%, rgba(8, 24, 32, 0) 70%),
    linear-gradient(to right, rgba(8, 24, 32, .45), rgba(8, 24, 32, 0) 60%);
}
.beat {
  position: relative; z-index: 1;
  max-width: var(--wrap); margin: 0 auto;
  padding: 6rem var(--gutter) 3rem;
}
.beat-line {
  font-family: var(--font-head);
  font-size: var(--step-5);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -.03em;
  max-width: 13ch;
}
.beat-2 .beat-line { font-weight: 500; }
.scroll-hint { display: none; }

.verse { margin: 0; max-width: 40rem; }
.verse-greek {
  font-family: var(--font-body);
  font-size: var(--step-4);
  line-height: 1.25;
  color: var(--light);
  font-weight: 400;
}
.verse-greek .key { font-style: italic; }
.verse-pt { margin-top: 1.25rem; font-size: var(--step-1); line-height: 1.4; max-width: 30ch; }
.verse cite { display: block; margin-top: .75rem; font-style: normal; color: var(--tide); font-size: var(--step--1); }

.brand {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(4rem, 2rem + 11vw, 10rem);
  line-height: .9;
  letter-spacing: -.045em;
}
.lede { margin-top: 1.25rem; font-size: var(--step-1); line-height: 1.45; max-width: 32ch; }

/* Scroll-driven version: a tall track with a sticky stage; JS drives frames and beats. */
.js .hero.scrub { height: 520svh; }
.js .hero.scrub .hero-stage { position: sticky; top: 0; height: 100svh; }
.js .hero.scrub .hero-canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.js .hero.scrub .hero-poster { display: none; }
.js .hero.scrub .beat {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding-bottom: clamp(3rem, 12svh, 7rem);
  opacity: 0; visibility: hidden;
  transform: translateY(calc((1 - var(--o, 0)) * 1.5rem));
  will-change: opacity, transform;
}
.js .hero.scrub .beat.on { visibility: visible; }
.js .hero.scrub .beat { opacity: var(--o, 0); }
.js .hero.scrub .scroll-hint {
  display: block; margin-top: 2rem;
  font-family: var(--font-head); font-size: var(--step--1); color: var(--text-soft);
}
/* The Greek lights up word by word as you go deeper. */
.js .hero.scrub .verse-greek span { opacity: .18; transition: opacity .5s, text-shadow .5s; }
.js .hero.scrub .verse-greek span.lit { opacity: 1; }
.js .hero.scrub .verse-greek span.key.lit { text-shadow: 0 0 1.2rem rgba(241, 223, 168, .45); }

/* ---------- sections ---------- */
#conteudo > section { padding: clamp(4.5rem, 10vw, 8rem) 0; scroll-margin-top: 4rem; }
.intro { margin-top: 1.25rem; max-width: 38rem; color: var(--text-soft); }

.prose { max-width: 38rem; }
.prose p + p { margin-top: 1.1rem; }
.prose p { color: var(--text-soft); }
.prose .pull, .pull {
  font-family: var(--font-head); font-weight: 500; font-size: var(--step-1);
  line-height: 1.3; letter-spacing: -.01em; color: var(--text);
}
.greek-inline { font-style: italic; color: var(--light); }

/* Heading on the left, text on the right, on wide screens */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 1.5rem; } }

/* Why Bathos: each line goes a little deeper, the last one is the point */
.name { background: var(--deep); }
.name .prose { margin-top: 1.75rem; }
.deeper { list-style: none; margin: clamp(3rem, 7vw, 5rem) 0 0; padding: 0; }
.deeper li {
  font-family: var(--font-head);
  font-size: var(--step-3);
  line-height: 1.15;
  letter-spacing: -.02em;
  padding: .55rem 0;
  border-top: 1px solid var(--rule);
}
.deeper li:nth-child(1) { font-weight: 300; color: var(--tide); }
.deeper li:nth-child(2) { font-weight: 400; color: #A6C2C2; padding-left: 1.5rem; }
.deeper li:nth-child(3) { font-weight: 500; color: #BFD3D1; padding-left: 3rem; }
.deeper li:nth-child(4) { font-weight: 600; color: #D6E2DF; padding-left: 4.5rem; }
.deeper li:nth-child(5) { font-weight: 750; color: var(--surface); padding-left: 6rem; font-size: var(--step-4); }
@media (max-width: 700px) {
  .deeper li:nth-child(n) { padding-left: 0; }
}
/* Pinned reveal (JS adds .reveal-deeper): the list holds the screen for a stretch of
   scroll; as the scroll reaches each line, JS adds .is-in and the line sinks into place
   on its own by transitioning --t (0 hidden, 1 in place; registered with @property). */
.reveal-deeper .deeper-track { height: 360svh; }
.reveal-deeper .deeper-stage {
  position: sticky; top: 0; height: 100svh;
  display: flex; align-items: center;
}
.reveal-deeper .deeper-stage .wrap { width: 100%; padding-top: 4rem; }
.reveal-deeper .deeper { margin: 0; }
.reveal-deeper .deeper li {
  --t: 0;
  transition: --t .5s cubic-bezier(.4, 0, .2, 1);
  opacity: var(--t, 0);
  transform: translateY(calc((1 - var(--t, 0)) * -2.5rem));
}
.reveal-deeper .deeper li.is-in { --t: 1; transition: --t 1.1s cubic-bezier(.2, .7, .1, 1); }
.reveal-deeper .deeper li + li { margin-top: clamp(.5rem, 2.5vh, 1.5rem); }

/* Who it's for: a sounding line descends past eight audiences, from the beginner
   to the doctor. JS sets --reach (px the weight has descended) on .sounding and
   --t (0..1, how much of a row the weight has passed) on each row. Without JS or
   with reduced motion, the defaults show the line fully sounded. */
.who { background: var(--deep); }
.sounding {
  --gutter-w: 2.75rem;
  position: relative;
  margin-top: 2.5rem;
  max-width: 49rem;
  padding-left: var(--gutter-w);
}
.sounding-line { position: absolute; left: 0; top: 0; bottom: 0; width: var(--gutter-w); pointer-events: none; }
/* The part of the sea still unsounded: a faint dotted track */
.sounding-line::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px;
  background: repeating-linear-gradient(to bottom, var(--rule) 0 3px, transparent 3px 9px);
}
.sounding-rope {
  position: absolute; left: 50%; top: 0; width: 1px; margin-left: 0;
  height: var(--reach, 100%);
  background: var(--tide);
}
.sounding-weight {
  position: absolute; left: 50%; top: var(--reach, 100%);
  transform: translate(-50%, -1px);
  color: var(--surface);
  filter: drop-shadow(0 0 .5rem rgba(143, 179, 181, .35));
}

.ladder { list-style: none; margin: 0; padding: 0; }
.ladder li {
  --mix: calc(var(--depth) * 14%);
  --band: color-mix(in srgb, var(--abyss) var(--mix), var(--open-sea));
  position: relative;
  isolation: isolate;
  padding: 1.15rem 1.5rem;
  font-family: var(--font-head);
  font-size: 1.3rem;
  line-height: 1.3;
  font-weight: calc(400 + var(--depth) * 40);
  background: rgba(143, 179, 181, .04);
  color: color-mix(in srgb, var(--surface) calc(var(--t, 1) * 100%), #58777C);
}
/* The band floods with water, left to right, as the weight passes the row */
.ladder li::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--band);
  transform: scaleX(var(--t, 1));
  transform-origin: left;
}
/* A knot on the line for each audience; it fills once the weight reaches it */
.ladder li::before {
  content: ""; position: absolute;
  left: calc(var(--gutter-w) / -2); top: 50%;
  width: .6rem; height: .6rem; margin: -.3rem 0 0 -.3rem;
  border-radius: 50%;
  border: 1px solid var(--tide);
  background: var(--deep);
  transition: background-color .25s, box-shadow .25s;
}
.ladder li.reached::before, .sounding:not(.live) .ladder li::before {
  background: var(--surface); border-color: var(--surface);
  box-shadow: 0 0 0 .3rem rgba(233, 239, 236, .12);
}
.ladder li + li { margin-top: 2px; }

.ladder-note {
  margin-top: 2rem; max-width: 38rem; font-size: var(--step-1); line-height: 1.45;
  opacity: var(--note, 1);
  transform: translateY(calc((1 - var(--note, 1)) * .75rem));
}
@media (max-width: 520px) {
  .sounding { --gutter-w: 2rem; }
  .ladder li { padding: .85rem 1rem; font-size: 1.05rem; }
}

.mission .statement {
  margin-top: 1.75rem; max-width: 30ch;
  font-family: var(--font-body); font-size: var(--step-3); line-height: 1.3;
}
.mission .prose { margin-top: 2.5rem; }

.vision { background: var(--deep); }
.vision .pull { margin-top: 1.75rem; }

/* Identity: a descent in three beats. Clarity first, the central faith coming into
   focus as if seen through water; then the sea darkens and the debated positions
   drift in from both sides and hold, facing each other without touching; last, the
   line about disagreeing without war settles over them. Static, it reads as a stack.
   With JS (.pin-identity) the scene pins, and JS sets data-beat (0-3) on the stage
   from the scroll position; each beat then plays on its own, by transitioning the
   registered properties --a (clarity focus), --out (clarity leaving), --d (depth of
   the water), --cap (caption), --c (the closing line) and --t per row. */
@property --a { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --out { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --d { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --cap { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --c { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --t { syntax: "<number>"; inherits: true; initial-value: 0; }
.depth-scene h2 { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.depth-clarity {
  font-family: var(--font-head); font-weight: 300; font-size: var(--step-4);
  line-height: 1.08; letter-spacing: -.025em; max-width: 16ch;
}
.depth-clarity span { display: inline-block; font-weight: 750; color: var(--light); }

.depth-divide { margin-top: clamp(3rem, 8vw, 5rem); }
.currents { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(.9rem, 2.4vh, 1.5rem); }
.currents li {
  --gap: clamp(1rem, 7vw, 7rem);
  display: grid; grid-template-columns: 1fr 1fr; align-items: baseline;
  column-gap: var(--gap);
  font-family: var(--font-head); font-weight: 400; font-size: clamp(.95rem, .55rem + 2vw, 2.1rem);
  letter-spacing: -.015em; color: var(--surface);
}
.currents li:has(> :nth-child(3)) { grid-template-columns: 1fr auto 1fr; }
.currents li span { position: relative; white-space: nowrap; }
.currents li span:first-child { text-align: right; }
.currents li span:last-child { text-align: left; }
/* A faint axis between the positions of each row */
.currents li span + span::before {
  content: ""; position: absolute; top: 15%; bottom: 15%; width: 1px;
  left: calc(var(--gap) / -2); background: var(--rule);
}
@media (max-width: 600px) {
  .currents li:has(> :nth-child(3)) { --gap: .9rem; font-size: .85rem; }
}
.depth-divide p {
  margin: clamp(1.75rem, 5vh, 2.75rem) auto 0; max-width: 40rem; text-align: center;
  font-size: var(--step-1); line-height: 1.4; color: var(--text-soft);
}
/* The answer to the divide, marked like "clareza" in the first beat */
.depth-divide p span {
  display: block; margin-top: .35rem; white-space: nowrap;
  font-family: var(--font-head); font-weight: 750; letter-spacing: -.02em;
  font-size: clamp(1rem, 4.1vw, 2rem); color: var(--light);
}
@media (max-width: 600px) { .depth-divide p { font-size: 1.05rem; } }
.depth-peace {
  margin-top: clamp(3rem, 8vw, 5rem); max-width: 24ch;
  font-family: var(--font-head); font-weight: 300; font-size: var(--step-3);
  line-height: 1.15; letter-spacing: -.02em;
}
/* The plain statement after the scene: centered like the scene's lines, brighter
   and larger than regular prose, under a short tide rule */
.identity-prose {
  margin: clamp(3rem, 8vw, 5rem) auto 0; max-width: 42rem; text-align: center;
}
.identity-prose::before {
  content: ""; display: block; width: 3rem; height: 2px; margin: 0 auto 2rem;
  background: var(--tide);
}
.identity-prose p { color: var(--text); font-size: clamp(1.15rem, 1rem + .5vw, 1.3rem); line-height: 1.6; }
.identity-prose p:first-child {
  font-family: var(--font-head); font-weight: 450; font-size: var(--step-1);
  line-height: 1.35; letter-spacing: -.01em; color: var(--surface);
}
.identity-prose p + p { margin-top: 1.4rem; color: var(--text-soft); }
/* Pinned, the closing line sits mid-screen and leaves the lower part of the stage
   empty; the statement rises into that space instead of waiting below it. */
.pin-identity .identity-prose { position: relative; z-index: 1; margin-top: -26svh; }

/* --- Pinned scene --- */
.pin-identity #conteudo > .identity { background: var(--deep); padding-top: 0; }
.pin-identity .depth-track { height: 320svh; }
.pin-identity .depth-stage {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: flex; align-items: center;
}
/* The surface water, thinning as the scene goes down */
.pin-identity .depth-stage::before {
  content: ""; position: absolute; inset: 0; background: var(--abyss);
  opacity: calc(1 - var(--d, 0));
}
/* Faint light from above that fades with depth */
.pin-identity .depth-stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 45% at 50% 0%, rgba(143, 179, 181, .14), transparent 70%);
  opacity: calc(1 - var(--d, 0));
}
.pin-identity .depth-scene {
  position: relative; z-index: 1; width: 100%; height: 100%;
  display: grid; justify-items: center; align-items: center; text-align: center;
}
.pin-identity .depth-scene > * { grid-area: 1 / 1; }
.pin-identity .depth-scene h2 {
  align-self: start; justify-self: start; margin: 0; text-align: left;
  padding-top: clamp(5rem, 13svh, 7.5rem);
  font-size: var(--step-2); color: var(--tide);
}
.pin-identity .depth-clarity {
  margin: 0; max-width: 18ch;
  opacity: calc((.12 + .88 * var(--a, 0)) * (1 - var(--out, 0)));
  filter: blur(calc((1 - var(--a, 0)) * 14px));
  transform: translateY(calc(var(--out, 0) * -3rem)) scale(calc(.96 + .04 * var(--a, 0)));
}
.pin-identity .depth-clarity span {
  --f: clamp(0, (var(--a, 0) - .45) / .55, 1);
  filter: blur(calc((1 - var(--f)) * 10px));
  color: color-mix(in srgb, var(--light) calc(var(--f) * 100%), var(--text-soft));
}
.pin-identity .depth-divide { margin: 0; width: 100%; }
.pin-identity .currents li {
  opacity: calc(var(--t, 0) * (1 - .88 * var(--c, 0)));
  filter: blur(calc(var(--c, 0) * 5px));
  animation: current-sway 6s ease-in-out infinite alternate;
}
.pin-identity .currents li:nth-child(2) { animation-duration: 7.4s; animation-delay: -2s; }
.pin-identity .currents li:nth-child(3) { animation-duration: 6.7s; animation-delay: -4s; }
/* Sides arrive from the edges; when the closing line comes they drift further apart */
.pin-identity .currents li span:first-child { transform: translateX(calc((1 - var(--t, 0)) * -38vw - var(--c, 0) * 6vw)); }
.pin-identity .currents li span:last-child { transform: translateX(calc((1 - var(--t, 0)) * 38vw + var(--c, 0) * 6vw)); }
.pin-identity .currents li span:nth-child(2):not(:last-child) { opacity: var(--t, 0); }
.pin-identity .currents li span + span::before { transform: scaleY(var(--t, 0)); }
@keyframes current-sway { from { translate: 0 -3px; } to { translate: 0 3px; } }

/* Beats. Each state carries the timing for arriving at it, from either direction. */
.pin-identity .depth-stage {
  --ease: cubic-bezier(.2, .7, .1, 1);
  --a: 0; --out: 0; --d: 0; --cap: 0; --c: 0;
  transition: --a .6s var(--ease), --out .6s var(--ease), --d .8s var(--ease), --cap .4s, --c .5s;
}
.pin-identity .depth-stage[data-beat="1"] {
  --a: 1;
  transition: --a 1.6s var(--ease) .15s, --out .9s var(--ease) .45s, --d 1.2s var(--ease) .3s, --cap .35s, --c .5s;
}
.pin-identity .depth-stage[data-beat="2"],
.pin-identity .depth-stage[data-beat="3"] { --a: 1; --out: 1; --d: 1; --cap: 1; }
.pin-identity .depth-stage[data-beat="2"] {
  transition: --a .6s, --out .7s var(--ease), --d 1.8s var(--ease), --cap 1s var(--ease) 1.1s, --c .9s var(--ease);
}
.pin-identity .depth-stage[data-beat="3"] {
  --c: 1;
  transition: --a .6s, --out .7s var(--ease), --d 1.8s var(--ease), --cap 1s var(--ease), --c 1.6s var(--ease) .1s;
}
.pin-identity .currents li { --t: 0; transition: --t .45s var(--ease); }
.pin-identity [data-beat="2"] .currents li,
.pin-identity [data-beat="3"] .currents li { --t: 1; transition: --t 1.3s var(--ease) .35s; }
.pin-identity [data-beat="2"] .currents li:nth-child(2) { transition-delay: .55s; }
.pin-identity [data-beat="2"] .currents li:nth-child(3) { transition-delay: .75s; }
.pin-identity .depth-divide p {
  opacity: calc(var(--cap, 0) * (1 - var(--c, 0)));
  transform: translateY(calc((1 - var(--cap, 0)) * 1.25rem));
}
.pin-identity .depth-peace {
  margin: 0; max-width: 22ch; position: relative; z-index: 1;
  opacity: var(--c, 0);
  filter: blur(calc((1 - var(--c, 0)) * 8px));
  transform: translateY(calc((1 - var(--c, 0)) * 2rem));
}

.values { background: var(--deep); }

/* Values: each one a closed band with its title and a plus. Opening one is a small
   descent: the band lights along its top edge, the title gains weight (weight is depth
   on this page), the plus turns into a minus and the text surfaces from the murk.
   Without JS every value stays open; with reduced motion it simply appears. */
.value-list { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: .75rem; }
.value {
  position: relative; overflow: hidden;
  border: 1px solid var(--rule); border-radius: 4px;
  background: rgba(47, 90, 102, .14);
  transition: background-color .5s, border-color .5s;
}
.value:hover { border-color: rgba(143, 179, 181, .55); }
.value.is-open { background: rgba(47, 90, 102, .32); border-color: var(--tide); }
.value::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(to right, var(--light), var(--tide) 45%, transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .9s cubic-bezier(.2, .7, .1, 1);
}
.value.is-open::before { transform: scaleX(1); }
.value h3 { font-size: inherit; font-weight: inherit; }

.value-toggle {
  all: unset; box-sizing: border-box; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  width: 100%; padding: 1.25rem clamp(1.1rem, 3vw, 1.75rem);
  font-family: var(--font-head); font-size: var(--step-1); line-height: 1.25; letter-spacing: -.01em;
}
.value-toggle:focus-visible { outline: 2px solid var(--light); outline-offset: -2px; border-radius: 4px; }
.value-name {
  font-weight: 450; color: var(--text-soft);
  transition: font-weight .6s cubic-bezier(.2, .7, .1, 1), color .4s, transform .6s cubic-bezier(.2, .7, .1, 1);
}
.value-toggle:hover .value-name { color: var(--surface); transform: translateX(.3rem); }
.value.is-open .value-name { font-weight: 650; color: var(--surface); transform: none; }

/* The sign: a plus whose upright sinks into the bar, leaving a minus */
.value-sign { flex: none; position: relative; width: 1.1rem; height: 1.1rem; transition: transform .7s cubic-bezier(.3, 1.4, .5, 1); }
.value-sign::before, .value-sign::after {
  content: ""; position: absolute; left: 50%; top: 50%; background: var(--tide);
  transition: transform .6s cubic-bezier(.2, .7, .1, 1), background-color .4s, opacity .4s;
}
.value-sign::before { width: 100%; height: 1.5px; transform: translate(-50%, -50%); }
.value-sign::after { width: 1.5px; height: 100%; transform: translate(-50%, -50%); }
.value-toggle:hover .value-sign::before, .value-toggle:hover .value-sign::after { background: var(--surface); }
.value.is-open .value-sign { transform: rotate(180deg); }
.value.is-open .value-sign::before { background: var(--light); }
.value.is-open .value-sign::after { transform: translate(-50%, -50%) scaleY(0); opacity: 0; }

.value-panel { display: grid; grid-template-rows: 1fr; }
.value-body { overflow: hidden; min-height: 0; }
.value-body p {
  max-width: 40rem; color: var(--text-soft);
  padding: 0 clamp(1.1rem, 3vw, 1.75rem) 1.5rem;
}

.js .value-panel { grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.4, 0, .2, 1) .08s; }
.js .value-body p {
  opacity: 0; filter: blur(6px); transform: translateY(.9rem);
  transition: opacity .22s, filter .22s, transform .3s;
}
.js .value.is-open .value-panel { grid-template-rows: 1fr; transition: grid-template-rows .7s cubic-bezier(.2, .7, .1, 1); }
.js .value.is-open .value-body p {
  opacity: 1; filter: blur(0); transform: none;
  transition: opacity .8s .18s, filter .9s .18s cubic-bezier(.2, .7, .1, 1), transform .9s .18s cubic-bezier(.2, .7, .1, 1);
}
@media (prefers-reduced-motion: reduce) {
  .value, .value::before, .value-name, .value-sign, .value-sign::before, .value-sign::after,
  .js .value-panel, .js .value-body p, .js .value.is-open .value-panel, .js .value.is-open .value-body p { transition: none; }
  .js .value-body p { filter: none; transform: none; }
}

/* The closing call to action: back up at the surface */
.cta { background: var(--surface); color: var(--abyss); }
.cta h2 { font-size: var(--step-5); font-weight: 750; letter-spacing: -.03em; }
.cta p { margin-top: 1.25rem; max-width: 34rem; font-size: var(--step-1); line-height: 1.45; }
.cta .btn { margin-top: 2.25rem; }
.btn-dark { background: var(--abyss); color: var(--surface); font-size: 1.1rem; padding: 1rem 1.75rem; }
.btn-dark:hover { background: var(--open-sea); }
.cta :focus-visible { outline-color: var(--abyss); }

/* Placeholder page for the future content catalog */
.soon { min-height: 70svh; display: flex; align-items: center; padding: 8rem 0 5rem; }
.soon h1 { font-size: var(--step-4); font-weight: 650; max-width: 18ch; }
.soon p { margin-top: 1.25rem; max-width: 34rem; color: var(--text-soft); font-size: var(--step-1); line-height: 1.45; }
.soon .btn { margin-top: 2rem; }

.site-footer { background: var(--deep); padding: 3rem 0; color: var(--text-soft); font-size: var(--step--1); }
.site-footer .wordmark { color: var(--surface); margin-bottom: .5rem; }
