/* Waverider SEO — site styles. Hand-written. */

/* ---------- fonts ---------- */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('/fonts/serif-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300 600;
  font-display: swap;
  src: url('/fonts/serif-italic-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/sans-var.woff2') format('woff2');
}

/* ---------- tokens ---------- */
:root {
  --navy: #0B1F2A;
  --foam: #E8F1F5;
  --ink: #12232C;
  --mist: #C9D8DF;
  --kelp: #1F6F5B;
  --coral: #E0643C;
  --sand: #F4EEE4;
  --foam-70: rgba(232, 241, 245, 0.7);
  --foam-40: rgba(232, 241, 245, 0.4);
  --foam-16: rgba(232, 241, 245, 0.16);
  --navy-08: rgba(11, 31, 42, 0.08);

  --serif: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;

  --measure: 62ch;
  --frame: 1240px;
  --gutter: 24px;
  --side: 20px;
  --band-y: 64px;
  --head-h: 72px;
  --radius: 6px;
  --radius-button: 12px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (min-width: 900px) {
  :root { --side: 48px; --band-y: 96px; }
}

/* ---------- ground ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
body {
  margin: 0;
  background: var(--foam);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
address { font-style: normal; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 10px 16px; background: var(--navy); color: var(--foam);
  border-radius: var(--radius-button); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-optical-sizing: auto;
  letter-spacing: -0.01em;
  line-height: 1.02;
  text-wrap: balance;
}
.display-xl { font-size: clamp(2.6rem, 5vw, 4.4rem); font-weight: 400; }
.display-l  { font-size: clamp(2rem, 3.6vw, 3rem); }
.display-m  { font-size: clamp(1.7rem, 2.8vw, 2.4rem); line-height: 1.1; }
.display-s  { font-size: clamp(1.35rem, 2vw, 1.65rem); line-height: 1.15; font-weight: 500; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--kelp);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 40px; height: 1px;
  background: currentColor;
  vertical-align: middle;
  margin-right: 12px;
}
.eyebrow-foam { color: var(--foam-70); }
.eyebrow a { text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }

.lede {
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  line-height: 1.5;
  max-width: 34em;
  margin-top: 1.25rem;
  text-wrap: pretty;
}
.lede-foam { color: var(--foam); }

.prose { max-width: var(--measure); text-wrap: pretty; }
.prose-wide { max-width: none; }
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3, .prose h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; margin-top: 2em; }
.prose h2 { font-size: 1.85rem; }
.prose h3 { font-size: 1.4rem; }
.prose h4 { font-size: 1.1rem; font-family: var(--sans); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.4em; }
.prose a { color: var(--kelp); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--navy); }
.prose strong { font-weight: 600; }
.prose blockquote { border-left: 1px solid var(--kelp); padding-left: 1.25rem; font-family: var(--serif); font-style: italic; font-size: 1.2em; }
.prose code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 0.9em; background: var(--navy-08); padding: 0.1em 0.35em; border-radius: 4px; }
.prose pre { overflow-x: auto; background: var(--navy); color: var(--foam); padding: 1rem 1.25rem; border-radius: var(--radius); }
.prose pre code { background: none; padding: 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.95em; }
.prose th, .prose td { text-align: left; padding: 0.5em 0.75em; border-bottom: 1px solid var(--mist); }
.prose hr { border: 0; border-top: 1px solid var(--mist); margin: 2em 0; }

.band-navy .prose a { color: var(--foam); }
.band-navy .prose a:hover { color: var(--mist); }
.band-navy .prose th, .band-navy .prose td { border-color: var(--foam-16); }

/* Ring-mark bullets: lists that carry the logo mark instead of a disc */
.ringlist ul { list-style: none; padding-left: 0; }
.ringlist li { position: relative; padding-left: 1.75rem; }
.ringlist li::before {
  content: '';
  position: absolute; left: 0; top: 0.5em;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--kelp);
  box-shadow: inset 0 0 0 3px var(--foam), inset 0 0 0 4.5px var(--kelp);
}
.band-sand .ringlist li::before { box-shadow: inset 0 0 0 3px var(--sand), inset 0 0 0 4.5px var(--kelp); }

/* ---------- layout ---------- */
.frame { width: 100%; max-width: var(--frame); margin-inline: auto; padding-inline: var(--side); }
.band { padding-block: var(--band-y); position: relative; }
.band-tight { padding-top: 0; }
.band-foam { background: var(--foam); color: var(--ink); }
.band-sand { background: var(--sand); color: var(--ink); }
.band-navy { background: var(--navy); color: var(--foam); }
.band-navy .display { color: var(--foam); }

.split { display: grid; gap: 2.5rem var(--gutter); align-items: start; }
.split-lead .prose { margin-top: 1.25rem; }
@media (min-width: 900px) {
  .split { grid-template-columns: 5fr 7fr; gap: var(--gutter); }
  .split-even { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split-lead { position: sticky; top: calc(var(--head-h) + 32px); }
}

.band-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2.5rem; }
.band-head .prose { margin-top: 1rem; }

.stack > * + * { margin-top: 2rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; margin-top: 2rem; }
.actions .button { max-width: 100%; }

.pagehead { padding-bottom: 3rem; }
.pagehead-inner { max-width: 52rem; }
.pagehead-field { overflow: hidden; }
.pagehead-art { position: absolute; inset: 0 0 auto auto; width: min(60vw, 900px); opacity: 0.9; pointer-events: none; }
.pagehead-field .pagehead-inner { position: relative; }

/* ---------- buttons and links ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 44px; padding: 0.7rem 1.25rem;
  border-radius: var(--radius-button);
  font-weight: 600; text-decoration: none; line-height: 1.2;
  border: 1px solid transparent;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease);
}
.button .ico { width: 18px; height: 18px; }
.button-signal { background: var(--coral); color: var(--navy); border-color: var(--coral); }
.button-signal:hover { background: #E9784F; border-color: #E9784F; }
.button-ghost { color: var(--foam); border-color: var(--foam-40); }
.button-ghost:hover { border-color: var(--foam); }
.button-outline { color: var(--navy); border-color: var(--navy); }
.button-outline:hover { background: var(--navy); color: var(--foam); }

.textlink {
  display: inline-flex; align-items: center; gap: 0.35rem;
  color: var(--kelp); font-weight: 500;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
  min-height: 44px;
}
.textlink:hover { color: var(--navy); }
.band-navy .textlink { color: var(--foam); }
.band-navy .textlink:hover { color: var(--mist); }
.textlink-arrow .ico { transition: transform 160ms var(--ease); }
.textlink-arrow:hover .ico { transform: translateX(3px); }
.crumb { text-decoration: none; }
.crumb:hover { text-decoration: underline; }

.ico { width: 20px; height: 20px; fill: currentColor; flex: none; }
.ico-caret { width: 14px; height: 14px; margin-left: 2px; }

/* ---------- masthead ---------- */
.masthead {
  position: sticky; top: 0; z-index: 50;
  height: var(--head-h);
  background: rgba(232, 241, 245, 0.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease);
}
.masthead.is-scrolled { border-bottom-color: var(--mist); }
.masthead-row { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 1rem; }

.wordmark { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--navy); }
.wordmark-text { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; letter-spacing: -0.01em; line-height: 1; }
.mark { display: inline-block; width: 30px; height: 30px; color: inherit; }
.mark svg { width: 100%; height: 100%; }
.mark-bullet { width: 22px; height: 22px; color: var(--kelp); }

.helm-toggle {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 44px; min-width: 44px; padding: 0 0.5rem;
  color: var(--navy); font-weight: 500;
  border-radius: var(--radius);
}
.helm-toggle .ico { width: 24px; height: 24px; }
.helm-toggle-close { display: none; }
.helm-toggle[aria-expanded="true"] .helm-toggle-open { display: none; }
.helm-toggle[aria-expanded="true"] .helm-toggle-close { display: inline-flex; }

.helm { display: none; }
.helm-list { display: flex; gap: 0.25rem; }
.helm-item { position: relative; }
.helm-link {
  display: inline-flex; align-items: center; gap: 0.2rem;
  min-height: 44px; padding: 0 0.85rem;
  color: var(--navy); font-weight: 500; text-decoration: none;
  border-radius: var(--radius);
}
.helm-link:hover { color: var(--kelp); }
.helm-link[aria-current] { box-shadow: inset 0 -2px 0 var(--kelp); border-radius: 0; }
.helm-drop {
  position: absolute; left: 0; top: calc(100% + 6px);
  min-width: 220px; padding: 0.5rem;
  background: var(--foam); border: 1px solid var(--mist); border-radius: var(--radius);
  box-shadow: 0 12px 32px -12px rgba(11, 31, 42, 0.25);
}
.helm-drop[hidden] { display: none; }
.helm-drop-link { display: block; padding: 0.6rem 0.75rem; min-height: 44px; text-decoration: none; border-radius: 4px; font-weight: 500; }
.helm-drop-link:hover { background: var(--sand); color: var(--kelp); }
.helm-drop-link[aria-current] { color: var(--kelp); }
.helm-cta { margin-left: 0.75rem; }

@media (min-width: 900px) {
  .helm-toggle { display: none; }
  .helm { display: flex; align-items: center; }
}
@media (max-width: 899px) {
  .masthead.is-open .helm {
    display: block;
    position: fixed; inset: var(--head-h) 0 0 0;
    background: var(--foam);
    overflow-y: auto;
    padding: 1rem var(--side) 3rem;
  }
  .helm-list { flex-direction: column; gap: 0; }
  .helm-item { border-bottom: 1px solid var(--mist); }
  .helm-link { width: 100%; justify-content: space-between; padding: 0.9rem 0; font-size: 1.15rem; font-family: var(--serif); font-weight: 500; }
  .helm-link[aria-current] { box-shadow: none; color: var(--kelp); }
  .helm-drop { position: static; min-width: 0; padding: 0 0 0.75rem 1rem; border: 0; box-shadow: none; background: none; }
  .helm-cta { margin: 1.5rem 0 0; width: 100%; }
  body.no-scroll { overflow: hidden; }
}

/* ---------- hero ---------- */
.hero { overflow: hidden; padding-block: clamp(3rem, 8vw, 6.5rem) clamp(4rem, 10vw, 8rem); }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.hero-text { position: relative; z-index: 1; max-width: 40rem; }
.hero .display-xl { color: var(--foam); }
.hero-art { position: relative; }
.hero-art img { width: 100%; height: auto; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 7fr 5fr; }
  .hero-home .hero-art { position: absolute; right: -6%; top: -12%; width: 56%; opacity: 0.95; pointer-events: none; }
  .hero-home { min-height: min(82vh, 760px); display: flex; align-items: center; }
}
.hero-field { position: absolute; inset: 0; pointer-events: none; }
.hero-field img { position: absolute; right: -10%; top: -10%; width: 70%; min-width: 600px; height: auto; opacity: 0.9; }
.hero-case .hero-art-case img { border-radius: var(--radius); border: 1px solid var(--foam-16); }

/* ---------- the fathom mark: enormous serif numbers ---------- */
.fathom { overflow-wrap: anywhere;
  font-family: var(--serif);
  font-weight: 300;
  font-variation-settings: 'opsz' 144;
  letter-spacing: -0.035em;
  line-height: 0.95;
  color: var(--navy);
}
.band-navy .fathom, .fathom-label-foam { color: var(--foam); }
.fathom-xl { font-size: clamp(4.5rem, 12vw, 9rem); margin-top: 2rem; }
.fathom-l  { font-size: clamp(3.4rem, 8vw, 6rem); }
.fathom-m  { font-size: clamp(2.6rem, 5vw, 3.8rem); }
.fathom-s  { font-size: clamp(2.2rem, 3.4vw, 2.6rem); }
.fathom-label { font-size: 0.9rem; font-weight: 500; color: var(--kelp); margin-top: 0.5rem; letter-spacing: 0.01em; }
.fathom-label-foam { color: var(--foam-70); }

/* Proof ledger: straddles the navy hero and the foam page */
.ledger-wrap { background: linear-gradient(to bottom, var(--navy) 0, var(--navy) 96px, var(--foam) 96px); padding-bottom: var(--band-y); }
.ledger {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0;
  background: var(--foam); border: 1px solid var(--mist); border-radius: var(--radius);
}
.ledger-cell { padding: 1.5rem 1.25rem; border-bottom: 1px solid var(--mist); min-width: 0; overflow-wrap: anywhere; }
.ledger-cell:nth-child(odd) { border-right: 1px solid var(--mist); }
.ledger-cell:nth-last-child(-n+2) { border-bottom: 0; }
@media (min-width: 900px) {
  .ledger { grid-template-columns: repeat(4, 1fr); }
  .ledger-cell { padding: 2rem 1.75rem; border-bottom: 0; border-right: 1px solid var(--mist); }
  .ledger-cell:last-child { border-right: 0; }
}
.ledger-flat { background: none; border: 0; border-radius: 0; margin-top: 2.5rem; grid-template-columns: 1fr; }
.ledger-flat .ledger-cell { padding: 1.5rem 0; border: 0; border-top: 1px solid var(--mist); }
.ledger-flat .ledger-cell:nth-child(odd) { border-right: 0; }
@media (min-width: 700px) {
  .ledger-flat { grid-template-columns: repeat(3, 1fr); gap: 0 var(--gutter); }
  .ledger-flat.ledger-foam { grid-template-columns: repeat(5, 1fr); }
}
.ledger-foam .ledger-cell { border-color: var(--foam-16); }

.soundings { display: grid; gap: 1rem; margin-top: 1.5rem; }
@media (min-width: 700px) { .soundings { grid-template-columns: repeat(3, 1fr); gap: var(--gutter); } }
.sounding { display: flex; flex-direction: column; gap: 0.35rem; padding: 1.25rem 0 0; border-top: 1px solid var(--mist); }
.sounding-metric { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; letter-spacing: -0.01em; color: var(--navy); }
.sounding-descriptor { font-size: 0.95rem; color: var(--ink); }

/* ---------- tiles (cards) ---------- */
.tile-row { display: grid; gap: var(--gutter); }
@media (min-width: 700px) { .tile-row-2, .tile-row-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tile-row-3 { grid-template-columns: repeat(3, 1fr); } }
.tile-row-1 { grid-template-columns: 1fr; }

.tile {
  display: flex; flex-direction: column;
  background: var(--foam); border: 1px solid var(--mist); border-radius: var(--radius);
  overflow: hidden; color: var(--ink); text-decoration: none;
  transition: border-color 160ms var(--ease);
}
.tile:hover, .tile:focus-within { border-color: var(--kelp); }
.tile-media { display: block; }
.tile-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tile-post .tile-media img { aspect-ratio: 8 / 5; }
.tile-body { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.25rem 1.5rem 1.5rem; flex: 1; }
.tile-title { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.01em; }
.tile-title a { text-decoration: none; }
.tile-title a::after { content: ''; position: absolute; inset: 0; }
.tile-title a:hover { color: var(--kelp); }
.tile { position: relative; }
.tile-text { font-size: 0.98rem; color: var(--ink); }
.tile-meta { font-size: 0.85rem; color: var(--kelp); font-weight: 500; margin-top: auto; padding-top: 0.5rem; }
.tile-case .fathom-s { margin-bottom: -0.25rem; }
.tile-case .fathom-label { margin-top: 0; }

.tile-service { padding: 2rem; gap: 1rem; }
.tile-service .tile-title { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.tile-service .ringlist { margin-top: 0.25rem; }
.tile-service .textlink { margin-top: auto; }
.tile-service .textlink::after { content: ''; position: absolute; inset: 0; }
.tile-service .eyebrow { margin-bottom: 0; }

.tile-engage { margin-top: var(--gutter); background: var(--sand); }
.tile-engage .tile-body { padding: 1.75rem 2rem; }
.tile-engage .tile-title { font-size: 1.5rem; }
.tile-engage .textlink { min-height: 0; }
.tile-row-1 .tile-case { flex-direction: row; }
@media (min-width: 700px) {
  .tile-row-1 .tile-case .tile-media { width: 42%; flex: none; }
  .tile-row-1 .tile-case .tile-media img { height: 100%; aspect-ratio: auto; }
}
@media (max-width: 699px) { .tile-row-1 .tile-case { flex-direction: column; } }

.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tags li { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--kelp); border: 1px solid var(--mist); border-radius: 999px; padding: 0.2rem 0.6rem; }
.tags-foam { margin-top: 1.5rem; }
.tags-foam li { color: var(--foam); border-color: var(--foam-40); }

/* ---------- depth gauge: numbered rule down the left ---------- */
.gauge { position: relative; padding-left: 3.5rem; }
.gauge::before { content: ''; position: absolute; left: 0.75rem; top: 0.5rem; bottom: 0; width: 1px; background: var(--kelp); opacity: 0.55; }
.gauge-stage { position: relative; padding-bottom: 2.75rem; }
.gauge-stage:last-child { padding-bottom: 0; }
.gauge-stage .display-s { margin-bottom: 0.75rem; }
.gauge-stage .eyebrow { margin-bottom: 0.5rem; }
.gauge-tick {
  position: absolute; left: -3.5rem; top: 0.35rem;
  width: 3.5rem; display: flex; align-items: center; gap: 0.35rem;
  font-family: var(--sans); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; color: var(--kelp);
}
.gauge-tick::after { content: ''; flex: 1; height: 1px; background: var(--kelp); opacity: 0.55; }
.gauge-receive { margin-top: 0.9rem; padding-left: 1rem; border-left: 2px solid var(--kelp); font-size: 0.95rem; font-weight: 500; }
@media (min-width: 900px) {
  .gauge { padding-left: 5.5rem; }
  .gauge::before { left: 1.25rem; }
  .gauge-tick { left: -5.5rem; width: 5.5rem; }
  .gauge-stage { padding-bottom: 3.5rem; }
}
.band-navy .gauge::before, .band-navy .gauge-tick, .band-navy .gauge-tick::after { color: var(--foam-70); background-color: transparent; }
.band-navy .gauge::before { background: var(--foam-40); }
.band-navy .gauge-tick::after { background: var(--foam-40); }

.situation { position: relative; padding-left: 3.5rem; }
.situation .gauge-tick { left: 0; }
.situation .display-s { margin-bottom: 0.5rem; }
@media (min-width: 900px) { .situation { padding-left: 5.5rem; } .situation .gauge-tick { width: 5.5rem; } }

/* Method rings figure with stage labels */
.rings { position: relative; margin-top: 2.5rem; max-width: 460px; }
.rings img { width: 100%; }
.rings-label {
  position: absolute; transform: translate(-50%, -50%);
  font-family: var(--sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--navy); background: var(--sand); padding: 0.15rem 0.45rem; border-radius: 999px; border: 1px solid var(--mist);
}
.rings-label-1 { left: 50%; top: 50%; }
.rings-label-2 { left: 66%; top: 34%; }
.rings-label-3 { left: 76%; top: 24%; }
.rings-label-4 { left: 87%; top: 14%; }

/* ---------- principles, creed ---------- */
.principles { display: grid; gap: 2rem; }
@media (min-width: 700px) { .principles { grid-template-columns: repeat(3, 1fr); gap: var(--gutter); } }
.principle { padding-top: 1.25rem; border-top: 1px solid var(--foam-40); }
.band-sand .principle, .band-foam .principle { border-top-color: var(--mist); }
.principle .display-s { margin-bottom: 0.75rem; }

.creed { counter-reset: creed; }
.creed-item { display: grid; grid-template-columns: 3rem 1fr; gap: 0 1rem; padding: 1.5rem 0; border-top: 1px solid var(--mist); counter-increment: creed; }
.creed-item:last-child { border-bottom: 1px solid var(--mist); }
.creed-item::before { content: counter(creed, decimal-leading-zero); font-family: var(--serif); font-size: 1.4rem; font-weight: 300; color: var(--kelp); line-height: 1.2; grid-row: span 2; }
.creed-item .display-s { margin-bottom: 0.4rem; }
.creed-compact .creed-item { padding: 1rem 0; }
.creed-compact h3 { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; }

/* ---------- hung quotation ---------- */
.hung { position: relative; margin-top: 4rem; padding-left: 1.5rem; border-left: 1px solid var(--foam-40); max-width: 44rem; }
.hung-text { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.25; letter-spacing: -0.01em; text-wrap: pretty; }
.hung-attr { margin-top: 1.25rem; font-size: 0.9rem; font-weight: 500; color: var(--foam-70); }
.hung-ink { border-left-color: var(--kelp); }
.hung-ink .hung-attr { color: var(--kelp); }
@media (min-width: 1100px) { .hung { margin-left: -2.5rem; padding-left: 2.5rem; } .hung-post { margin-left: -3.5rem; padding-left: 3.5rem; } }

/* ---------- deliverables, benefits ---------- */
.deliverables, .benefits { display: grid; gap: 2rem var(--gutter); margin-top: 2rem; }
@media (min-width: 700px) { .deliverables, .benefits { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .deliverables { grid-template-columns: repeat(4, 1fr); } .benefits { grid-template-columns: repeat(4, 1fr); } }
.deliverable, .benefit { padding-top: 1.25rem; border-top: 1px solid var(--mist); }
.deliverable h3, .benefit h3 { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; line-height: 1.2; margin: 0.75rem 0 0.5rem; }
.deliverable .prose, .benefit .prose { font-size: 0.98rem; }

/* ---------- accordion ---------- */
.accordion-item { border-top: 1px solid var(--mist); }
.accordion-item:last-of-type { border-bottom: 1px solid var(--mist); }
.accordion-heading { font-size: inherit; font-weight: inherit; }
.accordion-toggle {
  display: flex; width: 100%; align-items: flex-start; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 0; text-align: left;
  font-family: var(--serif); font-weight: 500; font-size: 1.2rem; line-height: 1.25; color: inherit;
}
.accordion-toggle:hover { color: var(--kelp); }
.accordion-icon { display: inline-flex; margin-top: 0.15rem; transition: transform 200ms var(--ease); }
.accordion-icon .ico { width: 22px; height: 22px; }
.accordion-toggle[aria-expanded="true"] .accordion-icon { transform: rotate(45deg); }
.accordion-panel { padding: 0 0 1.5rem; }
.accordion-panel[hidden] { display: none; }
.accordion-foam .accordion-item { border-color: var(--foam-16); }
.accordion-foam .accordion-toggle:hover { color: var(--mist); }
.role-title { display: flex; flex-direction: column; gap: 0.25rem; }
.role-meta { font-family: var(--sans); font-size: 0.85rem; font-weight: 500; color: var(--foam-70); }
.role-cols { display: grid; gap: 1.5rem; margin: 1.5rem 0; }
@media (min-width: 700px) { .role-cols { grid-template-columns: 1fr 1fr; gap: var(--gutter); } }
.role .prose ul { list-style: disc; }
.role .prose h4 { margin-top: 0; }

/* ---------- callouts, notices ---------- */
.callout { margin-top: 2.5rem; padding: 1.75rem; border: 1px solid var(--mist); border-radius: var(--radius); background: var(--sand); }
.callout .display-s { margin-bottom: 0.5rem; }
.callout .button, .callout .textlink { margin-top: 1.25rem; }
.callout-foam { background: transparent; border-color: var(--foam-40); }
.callout-wide { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem 3rem; margin-top: 0; background: var(--sand); padding: 2.5rem; }
.callout-wide .prose { margin-top: 0.75rem; }
.notice { display: flex; gap: 0.6rem; align-items: flex-start; margin-top: 1.25rem; font-size: 0.92rem; color: var(--ink); }
.notice .ico { color: var(--kelp); width: 22px; height: 22px; margin-top: 0.1rem; }

/* ---------- crew (team) ---------- */
.crew { display: grid; gap: var(--gutter); }
@media (min-width: 600px) { .crew { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .crew { grid-template-columns: repeat(4, 1fr); } .crew-3 { grid-template-columns: repeat(3, 1fr); } }
.crew-card { display: flex; flex-direction: column; gap: 0.3rem; padding: 1rem; background: var(--foam); border: 1px solid var(--mist); border-radius: var(--radius); }
.band-foam .crew-card { background: var(--sand); }
.crew-portrait { width: 100%; border-radius: 4px; margin-bottom: 0.75rem; }
.crew-name { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; line-height: 1.2; }
.crew-title { font-size: 0.85rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--kelp); }
.crew-specialty { font-size: 0.95rem; margin-top: 0.25rem; }
.crew-card .textlink-toggle { align-self: flex-start; margin-top: 0.25rem; }
.crew-bio { font-size: 0.95rem; margin-top: 0.5rem; }
.crew-bio[hidden] { display: none; }
.crew-detail { color: var(--kelp); font-style: italic; font-family: var(--serif); font-size: 1.05rem; }
.crew-3 .crew-bio { margin-top: 0.75rem; }

/* ---------- filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.chip {
  min-height: 40px; padding: 0.4rem 0.9rem; border-radius: 999px;
  border: 1px solid var(--mist); font-size: 0.9rem; font-weight: 500; color: var(--navy);
  transition: background-color 120ms var(--ease), color 120ms var(--ease), border-color 120ms var(--ease);
}
.chip:hover { border-color: var(--kelp); color: var(--kelp); }
.chip[aria-pressed="true"] { background: var(--navy); color: var(--foam); border-color: var(--navy); }
.tile.is-filtered-out { display: none; }

/* ---------- post ---------- */
.post-head { padding-bottom: 2.5rem; }
.post-measure { max-width: calc(var(--measure) + 2 * var(--side)); }
.post-hero .frame { max-width: 960px; }
.post-hero img { width: 100%; border-radius: var(--radius); border: 1px solid var(--mist); }
.post-body { padding-top: 3rem; }
.prose-post { font-size: 1.1rem; }
.prose-post > p:first-child::first-letter { font-family: var(--serif); font-size: 3.4em; float: left; line-height: 0.8; padding: 0.08em 0.12em 0 0; color: var(--navy); font-weight: 400; }
.byline { display: flex; align-items: center; gap: 0.85rem; margin-top: 1.75rem; }
.byline-portrait { width: 48px; height: 58px; border-radius: 4px; border: 1px solid var(--mist); }
.byline-text { display: flex; flex-direction: column; font-size: 0.9rem; color: var(--kelp); font-weight: 500; }
.byline-name { color: var(--ink); font-size: 1rem; }
.hung-post { margin-top: 3rem; }

/* ---------- legal ---------- */
.legal-measure { max-width: calc(var(--measure) + 2 * var(--side)); }
.legal .display-l { margin-bottom: 1.5rem; }
.legal-sections { margin-top: 3rem; }
.legal-section { padding: 2rem 0; border-top: 1px solid var(--mist); }
.legal-section h2 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; line-height: 1.2; margin-bottom: 0.75rem; }
.legal-num { color: var(--kelp); font-weight: 300; margin-right: 0.25rem; }
.legal-contact { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--mist); line-height: 1.7; }
.legal-contact a { color: var(--kelp); }

/* ---------- contact ---------- */
.harbour { overflow: hidden; }
.harbour-art { position: absolute; left: -20%; bottom: -30%; width: 60%; min-width: 520px; opacity: 0.8; pointer-events: none; }
.harbour .frame { position: relative; }
.harbour .display-s { margin-top: 2.5rem; margin-bottom: 0.5rem; }
.reach { display: grid; gap: 1.25rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--mist); }
.reach dt { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--kelp); margin-bottom: 0.25rem; }
.reach dt .ico { width: 18px; height: 18px; }
.reach dd a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.reach dd a:hover { color: var(--kelp); }

.inquiry { display: grid; gap: 1.25rem; padding: 2rem; background: var(--sand); border: 1px solid var(--mist); border-radius: var(--radius); }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: 0.9rem; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0.65rem 0.85rem;
  background: var(--foam); border: 1px solid var(--mist); border-radius: var(--radius);
  transition: border-color 120ms var(--ease);
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--kelp); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--coral); outline-offset: 1px; border-color: var(--kelp); }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F6F5B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.85rem center; background-size: 18px; padding-right: 2.5rem; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--coral); }
.field-error { font-size: 0.85rem; color: #B6431F; }
.field-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 0.92rem; min-height: 1.4em; }
.form-status.is-error { color: #B6431F; }
.inquiry-thanks { padding: 2.5rem; background: var(--sand); border: 1px solid var(--kelp); border-radius: var(--radius); }
.inquiry-thanks .prose { margin-top: 1rem; }
.inquiry-thanks[hidden] { display: none; }
.inquiry button[disabled] { opacity: 0.6; cursor: wait; }

/* ---------- 404 ---------- */
.lost { min-height: 60vh; display: flex; align-items: center; overflow: hidden; }
.lost-art { position: absolute; inset: 0; opacity: 0.7; pointer-events: none; }
.lost-art img { width: 100%; height: 100%; object-fit: cover; }
.lost-inner { position: relative; max-width: 44rem; }
.lost-links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* ---------- section ornaments ---------- */
.origin { overflow: hidden; }
.origin-art { position: absolute; right: -15%; bottom: -25%; width: 60%; min-width: 520px; opacity: 0.8; pointer-events: none; }
.origin .frame { position: relative; }
.swell { margin-top: 2.5rem; max-width: 900px; }
.swell img { width: 100%; }

/* ---------- CTA band ---------- */
.cta-band-inner { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .cta-band-inner { grid-template-columns: 7fr 5fr; } .cta-band-actions { justify-self: end; text-align: right; } }
.cta-band-actions { display: flex; flex-direction: column; gap: 0.75rem; align-items: flex-start; }
@media (min-width: 900px) { .cta-band-actions { align-items: flex-end; } }
.cta-band .lede { margin-top: 1rem; }

/* ---------- footer: the hero field, turned over ---------- */
.bulwark { position: relative; background: var(--navy); color: var(--foam); overflow: hidden; padding-block: var(--band-y) 2rem; }
.bulwark-field { position: absolute; inset: auto 0 0 0; height: 520px; background: url('/art/footer-field.svg') center bottom / 1600px 520px no-repeat; pointer-events: none; }
.bulwark-inner { position: relative; }
.bulwark-columns { display: grid; gap: 2.5rem var(--gutter); }
@media (min-width: 600px) { .bulwark-columns { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .bulwark-columns { grid-template-columns: repeat(4, 1fr); } }
.bulwark-heading { font-family: var(--sans); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--foam-70); margin-bottom: 1rem; }
.bulwark-list li + li { margin-top: 0.15rem; }
.bulwark-list a, .bulwark-address a { display: inline-block; padding: 0.35rem 0; color: var(--foam); text-decoration: none; }
.bulwark-list a:hover, .bulwark-address a:hover { text-decoration: underline; text-underline-offset: 4px; }
.bulwark-address { line-height: 1.7; }
.bulwark-brand { margin-top: 4rem; padding-top: 2.5rem; border-top: 1px solid var(--foam-16); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.wordmark-foot { color: var(--foam); }
.bulwark-positioning { max-width: 36rem; color: var(--foam-70); font-size: 0.95rem; }
.bulwark-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--foam-16); font-size: 0.85rem; color: var(--foam-70); }
.bulwark-legal-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.bulwark-legal-links a { color: var(--foam-70); text-decoration: none; padding: 0.35rem 0; display: inline-block; }
.bulwark-legal-links a:hover { color: var(--foam); }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .band, .js .ledger-wrap { opacity: 0; transform: translateY(14px); transition: opacity 300ms var(--ease), transform 300ms var(--ease); }
  .js .band.is-seen, .js .ledger-wrap.is-seen, .js .hero { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .masthead, .bulwark, .cta-band, .skip { display: none; }
  .band { padding-block: 1rem; }
}

/* ---------- estate articles: long-form reading layout ---------- */
.hero-article .hero-text { max-width: 46rem; }
.hero-article .lede-foam { color: var(--foam-70); }
.article-band { padding-top: 3rem; }
.article-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) {
  .article-grid { grid-template-columns: minmax(200px, 3fr) minmax(0, 9fr); gap: var(--gutter); }
  .article-nav { position: sticky; top: calc(var(--head-h) + 24px); max-height: calc(100vh - var(--head-h) - 48px); overflow-y: auto; padding-right: 1rem; }
}
.toc-summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; list-style: none; min-height: 44px; }
.toc-summary::-webkit-details-marker { display: none; }
.toc-summary .eyebrow { margin: 0; }
.toc-summary .accordion-icon .ico { width: 20px; height: 20px; color: var(--kelp); }
.toc[open] .toc-summary .accordion-icon { transform: rotate(45deg); }
.toc-list { counter-reset: toc; margin-top: 0.75rem; border-top: 1px solid var(--mist); }
.toc-list li { counter-increment: toc; border-bottom: 1px solid var(--mist); }
.toc-list a { display: flex; gap: 0.75rem; padding: 0.6rem 0; font-size: 0.92rem; font-weight: 500; text-decoration: none; color: var(--ink); line-height: 1.35; }
.toc-list a::before { content: counter(toc, decimal-leading-zero); flex: none; font-family: var(--serif); font-weight: 300; color: var(--kelp); font-variant-numeric: tabular-nums; }
.toc-list a:hover { color: var(--kelp); }
@media (max-width: 899px) { .toc { border: 1px solid var(--mist); border-radius: var(--radius); padding: 0.25rem 1rem; } .toc-list { max-height: 50vh; overflow-y: auto; } }

.prose-article { font-size: 1.1rem; }
.prose-article > p:first-child::first-letter { font-family: var(--serif); font-size: 3.4em; float: left; line-height: 0.8; padding: 0.08em 0.12em 0 0; color: var(--navy); font-weight: 400; }
.prose-article h2 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: 1.1; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--mist); scroll-margin-top: calc(var(--head-h) + 16px); }
.prose-article h3 { margin-top: 2.25rem; }
.prose-article h4 { margin-top: 1.75rem; }
.prose-article hr { display: none; }
.prose-article ol, .prose-article ul { padding-left: 1.5em; }
.prose-article li + li { margin-top: 0.55em; }
.prose-article a[id]:empty { display: block; scroll-margin-top: calc(var(--head-h) + 16px); }

/* Chart cards: blockquote callouts with an h3 lead */
.prose-article blockquote {
  font-family: var(--sans); font-style: normal; font-size: 1rem;
  margin-top: 2rem; padding: 1.5rem 1.75rem; border: 1px solid var(--mist); border-left: 3px solid var(--kelp);
  border-radius: var(--radius); background: var(--sand);
}
.prose-article blockquote > * + * { margin-top: 0.85em; }
.prose-article blockquote h3, .prose-article blockquote h4 { margin-top: 0; font-size: 1.25rem; }
.prose-article blockquote .card-title { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; color: var(--navy); }
.prose-article blockquote .card-kicker { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--kelp); }
.prose-article blockquote ol, .prose-article blockquote ul { padding-left: 1.25em; }

/* Tables: scroll wrapper, caption-style lead heading, zebra rows */
.table-wrap { overflow-x: auto; margin-top: 1.5rem; border: 1px solid var(--mist); border-radius: var(--radius); background: #fff; -webkit-overflow-scrolling: touch; }
.prose-article h3 + .table-wrap, .prose-article h4 + .table-wrap { margin-top: 1rem; }
.prose-article table { font-size: 0.92rem; min-width: 640px; }
.prose-article th { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--kelp); background: var(--sand); border-bottom: 1px solid var(--mist); vertical-align: bottom; }
.prose-article td { vertical-align: top; border-bottom: 1px solid var(--mist); }
.prose-article tbody tr:nth-child(even) td { background: rgba(244, 238, 228, 0.55); }
.prose-article tbody tr:last-child td { border-bottom: 0; }
.prose-article th, .prose-article td { padding: 0.7em 0.9em; }

/* Code and diagrams */
.prose-article pre { margin-top: 1.5rem; font-size: 0.82rem; line-height: 1.5; }
.prose-article pre.chart { background: var(--sand); color: var(--navy); border: 1px solid var(--mist); font-size: 0.74rem; line-height: 1.35; }
.prose-article code { font-size: 0.88em; }
.prose-article th code { background: none; padding: 0; }
@media (min-width: 1100px) { .prose-article pre.chart { margin-right: -6rem; } }

/* Formulas */
.prose-article .formula {
  font-family: var(--serif); font-size: 1.2rem; font-weight: 500; letter-spacing: -0.01em; text-align: center;
  margin-top: 1.5rem; padding: 1.25rem 1.5rem; border-top: 1px solid var(--kelp); border-bottom: 1px solid var(--kelp); color: var(--navy);
}
.prose-article li > .formula { text-align: left; padding: 0.75rem 0; margin-top: 0.75rem; }

/* Pricing cards */
.price-grid { display: grid; gap: var(--gutter); margin-top: 1.5rem; }
@media (min-width: 900px) { .price-grid { grid-template-columns: repeat(3, 1fr); margin-right: -6rem; } }
.price-card { padding: 1.5rem; border: 1px solid var(--mist); border-radius: var(--radius); background: var(--sand); }
.price-card h3 { margin-top: 0; font-size: 1.2rem; }
.price-card ul { padding-left: 1.1em; margin-top: 1rem; font-size: 0.95rem; }

/* Consultation form */
.consult-inner { display: grid; gap: 2.5rem var(--gutter); align-items: start; }
@media (min-width: 900px) { .consult-inner { grid-template-columns: 5fr 7fr; } .consult-lead { position: sticky; top: calc(var(--head-h) + 32px); } }
.consult .inquiry { background: var(--foam); }
.consult .inquiry-thanks { background: var(--foam); }
.consult-note { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.9rem; color: var(--ink); }
.consult-note .ico { color: var(--kelp); width: 20px; height: 20px; margin-top: 0.15rem; }

/* Estate cards (hub, related) */
.tile-estate .tile-body { padding: 1.5rem 1.5rem 1.75rem; }
.tile-estate .eyebrow { margin-bottom: 0; }
.tile-estate .tile-text { font-size: 0.95rem; }
