/* ============================================================
   Dorika Wealth — design system
   Concept: still water, deep currents.
   Palette drawn from the lotus mark: deep ocean → surface light.
   ============================================================ */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: "Literata";
  src: url("../fonts/literata-var.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Commissioner";
  src: url("../fonts/commissioner-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* water column — dark */
  --abyss: oklch(23.5% 0.052 248);
  --deep: oklch(31.5% 0.075 245);
  --deep-soft: oklch(36% 0.07 244);
  /* surface — light */
  --surface: oklch(98.5% 0.006 230);
  --shallow: oklch(94.5% 0.022 228);
  --ice: oklch(91% 0.045 222);
  /* text */
  --ink: oklch(26% 0.045 243);
  --ink-soft: oklch(44% 0.04 240);
  --foam: oklch(90% 0.03 228);
  --foam-soft: oklch(90% 0.03 228 / 0.78);
  /* brand */
  --azure: oklch(58.5% 0.125 237);
  --azure-deep: oklch(47% 0.105 242);
  --sky: oklch(71% 0.14 233);
  --sky-bright: oklch(78% 0.12 228);

  --hairline: oklch(26% 0.045 243 / 0.14);
  --hairline-dark: oklch(90% 0.03 228 / 0.22);

  /* type */
  --serif: "Literata", "Iowan Old Style", Georgia, serif;
  --sans: "Commissioner", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --fs-hero: clamp(2.5rem, 1.4rem + 4.6vw, 4.75rem);
  --fs-h2: clamp(1.9rem, 1.35rem + 2.3vw, 3.1rem);
  --fs-h3: clamp(1.35rem, 1.2rem + 0.8vw, 1.8rem);
  --fs-lead: clamp(1.1rem, 1rem + 0.45vw, 1.35rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;

  /* rhythm */
  --sect: clamp(5rem, 3.5rem + 6.5vw, 9.5rem);
  --sect-tight: clamp(3.5rem, 2.5rem + 4vw, 6rem);

  /* motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);      /* quint */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 220ms;
  --t-med: 480ms;
  --t-slow: 900ms;

  /* z scale */
  --z-nav: 100;
  --z-menu: 200;
  --z-skip: 300;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--azure-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--azure); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 480;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
p { text-wrap: pretty; }

.container {
  width: min(100% - clamp(2.5rem, 8vw, 6rem), 72.5rem);
  margin-inline: auto;
}
.prose-measure { max-width: 66ch; }

/* Skip link */
.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: var(--z-skip);
  padding: 0.75rem 1.25rem;
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  box-shadow: 0 4px 24px oklch(23.5% 0.052 248 / 0.35);
  transition: top var(--t-fast) var(--ease-out);
}
.skip-link:focus-visible { top: 1rem; }

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

::selection { background: var(--sky); color: var(--abyss); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.9rem;
  border-radius: 999px;
  border: 0;
  font: 600 1rem/1 var(--sans);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease-out),
              box-shadow var(--t-fast) var(--ease-out),
              background-color var(--t-fast) var(--ease-out);
  min-height: 48px;
}
.btn:active { transform: translateY(1px); }
.btn--sky {
  background: var(--sky);
  color: var(--abyss);
  box-shadow: 0 6px 28px oklch(71% 0.14 233 / 0.35);
}
.btn--sky:hover {
  background: var(--sky-bright);
  color: var(--abyss);
  box-shadow: 0 10px 36px oklch(71% 0.14 233 / 0.45);
  transform: translateY(-2px);
}
.btn--deep {
  background: var(--azure-deep);
  color: #fff;
  box-shadow: 0 6px 24px oklch(47% 0.105 242 / 0.3);
}
.btn--deep:hover {
  background: var(--azure);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px oklch(47% 0.105 242 / 0.38);
}
.btn--ghost-dark {
  background: transparent;
  color: var(--foam);
  box-shadow: inset 0 0 0 1.5px var(--hairline-dark);
}
.btn--ghost-dark:hover { color: #fff; box-shadow: inset 0 0 0 1.5px var(--foam-soft); }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font: 600 1rem/1.3 var(--sans);
  text-decoration: none;
}
.arrow-link .arr { transition: translate var(--t-fast) var(--ease-out); }
.arrow-link:hover .arr, .arrow-link:focus-visible .arr { translate: 5px 0; }

/* ---------- Header ---------- */
.site-head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-nav);
  transition: background-color var(--t-med) var(--ease-out),
              box-shadow var(--t-med) var(--ease-out);
}
.site-head.is-scrolled {
  background: oklch(23.5% 0.052 248 / 0.94);
  box-shadow: 0 1px 0 var(--hairline-dark);
}
.site-head__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.1rem;
}
.site-head.is-scrolled .site-head__bar { padding-block: 0.8rem; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: #fff;
}
.brand__mark { width: 42px; height: 42px; flex: none; }
.brand__name {
  font: 650 1.02rem/1.05 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.brand__name small {
  display: block;
  font-size: 0.72em;
  font-weight: 450;
  letter-spacing: 0.34em;
  color: var(--foam-soft);
}
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.2rem); }
.site-nav__link {
  color: var(--foam);
  text-decoration: none;
  font: 500 0.98rem/1 var(--sans);
  padding: 0.6rem 0.15rem;
  position: relative;
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0.25rem;
  height: 1.5px;
  background: var(--sky);
  transition: right var(--t-fast) var(--ease-out);
}
.site-nav__link:hover { color: #fff; }
.site-nav__link:hover::after, .site-nav__link[aria-current="page"]::after { right: 0; }
.site-nav__link[aria-current="page"] { color: #fff; }
.site-nav .btn { padding: 0.65rem 1.4rem; min-height: 42px; }

.menu-btn {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  padding: 0.6rem;
  cursor: pointer;
}

/* Mobile menu */
.mobile-menu {
  border: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  background: var(--abyss);
  color: var(--foam);
}
.mobile-menu::backdrop { background: oklch(23.5% 0.052 248 / 0.5); }
.mobile-menu__inner {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding: 1.2rem clamp(1.4rem, 6vw, 2.5rem) 3rem;
}
.mobile-menu__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3.5rem;
}
.mobile-menu nav { display: flex; flex-direction: column; gap: 0.4rem; }
.mobile-menu nav a {
  color: #fff;
  text-decoration: none;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 6.5vw, 2.4rem);
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--hairline-dark);
}
.mobile-menu nav a:last-of-type { border-bottom: 0; }
.mobile-menu .btn { margin-top: 2.2rem; align-self: flex-start; }
.mobile-menu__contact {
  margin-top: auto;
  padding-top: 2.5rem;
  font-size: var(--fs-small);
  color: var(--foam-soft);
  line-height: 1.9;
}
.mobile-menu__contact a { color: var(--foam); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: clip;
  background:
    radial-gradient(58rem 34rem at 50% 30%, oklch(36% 0.07 244 / 0.55), transparent 68%),
    linear-gradient(180deg, var(--deep) 0%, var(--abyss) 78%);
  color: #fff;
  padding-block: 7.5rem 5.5rem;
}
.contours {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.contours path { fill: none; stroke: var(--foam); stroke-width: 1.4; }
.contours .drift-a { opacity: 0.11; }
.contours .drift-b { opacity: 0.07; }
@keyframes driftA { from { transform: translateX(0); } to { transform: translateX(-1200px); } }
@keyframes driftB { from { transform: translateX(-1200px); } to { transform: translateX(0); } }
.drift-a { animation: driftA 85s linear infinite; }
.drift-b { animation: driftB 110s linear infinite; }

.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 62rem;
  margin-inline: auto;
}
.hero__title {
  font-size: var(--fs-hero);
  font-weight: 440;
  margin-top: clamp(1.6rem, 3.5vh, 2.6rem);
  font-variation-settings: "opsz" 72;
}
.hero__title em {
  font-style: italic;
  font-weight: 430;
  color: var(--sky-bright);
}
.hero__lead {
  margin-top: 1.6rem;
  max-width: 46ch;
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--foam);
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.4rem;
}
.hero__scrollcue {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  translate: -50% 0;
  width: 1.5px;
  height: 56px;
  background: linear-gradient(var(--foam-soft), transparent);
  overflow: hidden;
}
.hero__scrollcue::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(#fff, transparent);
  animation: cueDrop 2.6s var(--ease-out) infinite;
}
@keyframes cueDrop {
  0% { transform: translateY(-100%); }
  55%, 100% { transform: translateY(100%); }
}

/* hero entrance */
@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}
.hero__title { animation: rise 1s var(--ease-out-expo) 1.15s both; }
.hero__lead { animation: rise 1s var(--ease-out-expo) 1.35s both; }
.hero__cta { animation: rise 1s var(--ease-out-expo) 1.55s both; }
.hero__scrollcue { animation: rise 1.2s var(--ease-out-expo) 2.4s both; }

/* ---------- Lotus mark ---------- */
.lotus { width: clamp(108px, 16vw, 150px); height: auto; overflow: visible; }
.lotus--hero { filter: drop-shadow(0 10px 40px oklch(71% 0.14 233 / 0.28)); }

.lotus__float { transform-origin: 120px 120px; animation: lotusFloat 7s ease-in-out 3.4s infinite; }
@keyframes lotusFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.lotus__ring { stroke-dasharray: 100; stroke-dashoffset: 0; }
.lotus--hero .lotus__ring { animation: ringDraw 1.4s var(--ease-out-expo) 0.1s both; }
@keyframes ringDraw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }

.lotus--hero .lotus__stem { transform-origin: 168px 168px; animation: stemDrop 0.9s var(--ease-out-expo) 1s both; }
@keyframes stemDrop { from { transform: scaleY(0); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }

.lotus .petal { transform-origin: 120px 152px; }
.lotus--hero .petal {
  animation: bloom 1.1s var(--ease-out-expo) both;
  animation-delay: calc(0.45s + var(--i) * 90ms);
}
@keyframes bloom {
  from { opacity: 0; transform: scale(0.45) rotate(var(--r, 0deg)); }
  to { opacity: 1; transform: scale(1) rotate(0deg); }
}
.lotus__veins path { stroke-dasharray: 60; stroke-dashoffset: 0; }
.lotus--hero .lotus__veins path { animation: veinDraw 1s var(--ease-out) 1.5s both; }
@keyframes veinDraw { from { stroke-dashoffset: 60; opacity: 0; } to { stroke-dashoffset: 0; opacity: 1; } }

/* hero reflection */
.hero__mark-wrap { position: relative; }
.hero__reflection {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  transform: scaleY(-1);
  opacity: 0.11;
  filter: blur(3px);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 44%);
  mask-image: linear-gradient(to bottom, black 0%, transparent 44%);
  pointer-events: none;
  animation: shimmer 6s ease-in-out 3.4s infinite;
}
@keyframes shimmer {
  0%, 100% { opacity: 0.11; }
  50% { opacity: 0.06; }
}

/* ---------- Pathways triptych ---------- */
.paths { background: var(--abyss); }
.paths__grid { display: flex; min-height: 78vh; }
.path-panel {
  position: relative;
  flex: 1 1 0;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  transition: flex-grow 700ms var(--ease-out);
  outline-offset: -6px;
}
@media (hover: hover) {
  .path-panel:hover { flex-grow: 1.42; }
}
.path-panel__art {
  position: absolute;
  inset: 0;
}
.path-panel__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 1200ms var(--ease-out), opacity var(--t-med) var(--ease-out);
}
.path-panel:hover .path-panel__art img,
.path-panel:focus-visible .path-panel__art img { transform: scale(1.045); }
.path-panel::before {
  /* vertical separators */
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 1px;
  background: var(--hairline-dark);
  z-index: 2;
}
.path-panel:first-child::before { display: none; }
.path-panel__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    oklch(23.5% 0.052 248 / 0.18) 0%,
    oklch(23.5% 0.052 248 / 0.06) 42%,
    oklch(23.5% 0.052 248 / 0.82) 82%,
    oklch(23.5% 0.052 248 / 0.94) 100%);
  transition: opacity var(--t-med) var(--ease-out);
}
.path-panel__body {
  position: relative;
  z-index: 1;
  padding: clamp(1.6rem, 3vw, 2.8rem);
  width: 100%;
}
.path-panel__kicker {
  display: block;
  font: 500 var(--fs-small)/1.4 var(--sans);
  color: var(--sky-bright);
  margin-bottom: 0.5rem;
}
.path-panel__title {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.15rem);
  font-weight: 470;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
  max-width: 17ch;
}
.path-panel__sub {
  display: block;
  margin-top: 0.7rem;
  color: var(--foam);
  max-width: 34ch;
  font-size: var(--fs-small);
  line-height: 1.6;
}
.path-panel__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.1rem;
  font: 600 0.98rem/1 var(--sans);
  color: var(--sky-bright);
}
.path-panel__link .arr { transition: translate var(--t-fast) var(--ease-out); }
.path-panel:hover .path-panel__link .arr { translate: 5px 0; }
.path-panel__link::after {
  content: "";
  display: block;
  height: 1.5px;
  background: var(--sky);
  position: absolute;
  left: 0; right: 100%;
}

/* ---------- Section heading pattern ---------- */
.sect-head { margin-bottom: clamp(2.2rem, 5vw, 3.8rem); }
.sect-head h2 { font-size: var(--fs-h2); color: var(--ink); max-width: 22ch; }
.sect-head--center { text-align: center; }
.sect-head--center h2 { margin-inline: auto; }
.sect-head .sub {
  margin-top: 1.1rem;
  color: var(--ink-soft);
  font-size: var(--fs-lead);
  max-width: 56ch;
}
.sect-head--center .sub { margin-inline: auto; }

/* ---------- Three paths, one focus ---------- */
.focus { padding-block: var(--sect); background: var(--surface); }
.focus__wrap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.focus h2 { font-size: var(--fs-h2); }
.focus p { margin-top: 1.4rem; color: var(--ink-soft); font-size: var(--fs-lead); line-height: 1.7; }
.focus__diagram { width: 100%; height: auto; }
.focus__diagram .stream { fill: none; stroke: var(--azure); stroke-width: 2; opacity: 0.85; }
.focus__diagram .stream-label { font: 500 13px/1 var(--sans); fill: var(--ink-soft); }
.focus__diagram .node { fill: var(--surface); stroke: var(--azure); stroke-width: 2; }

html.js .focus__diagram .stream { stroke-dasharray: 620; stroke-dashoffset: 620; }
html.js .focus__diagram.is-visible .stream {
  animation: streamDraw 1.6s var(--ease-out-expo) forwards;
}
html.js .focus__diagram.is-visible .stream:nth-of-type(2) { animation-delay: 0.15s; }
html.js .focus__diagram.is-visible .stream:nth-of-type(3) { animation-delay: 0.3s; }
@keyframes streamDraw { to { stroke-dashoffset: 0; } }

/* ---------- Story in numbers (ledger) ---------- */
.ledger { padding-block: var(--sect); background: var(--shallow); }
.ledger__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hairline);
}
.stat {
  padding: clamp(1.6rem, 3vw, 2.6rem) clamp(1.2rem, 2.5vw, 2.2rem);
  border-bottom: 1px solid var(--hairline);
}
.stat:nth-child(3n+2), .stat:nth-child(3n) { border-left: 1px solid var(--hairline); }
.stat__num {
  font-family: var(--serif);
  font-variation-settings: "opsz" 60;
  font-weight: 430;
  font-size: clamp(2.5rem, 2rem + 2.4vw, 4rem);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.stat__num .suffix { color: var(--azure); }
.stat__label {
  margin-top: 0.7rem;
  color: var(--ink-soft);
  font-size: var(--fs-small);
  line-height: 1.5;
  max-width: 22ch;
}

/* ---------- The Dorika difference ---------- */
.diff { padding-block: var(--sect); background: var(--surface); }
.diff__rows { border-top: 1px solid var(--hairline); }
.diff__row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(1.2rem, 4vw, 4rem);
  padding-block: clamp(1.8rem, 3.5vw, 2.8rem);
  border-bottom: 1px solid var(--hairline);
}
.diff__row h3 {
  font-size: var(--fs-h3);
  display: flex;
  align-items: baseline;
  gap: 1rem;
}
.diff__row h3 .tick {
  flex: none;
  width: 26px;
  height: 2px;
  background: var(--azure);
  translate: 0 -0.35em;
  transform-origin: left center;
  transition: transform var(--t-med) var(--ease-out);
}
.diff__row:hover h3 .tick { transform: scaleX(1.55); }
.diff__row p { color: var(--ink-soft); max-width: 58ch; }

/* ---------- Deep band (why businesses work with dorika) ---------- */
.band {
  position: relative;
  padding-block: var(--sect);
  background:
    radial-gradient(50rem 26rem at 78% 8%, oklch(36% 0.07 244 / 0.5), transparent 65%),
    linear-gradient(175deg, var(--deep) 0%, var(--abyss) 82%);
  color: #fff;
  overflow: clip;
}
.band .contours { opacity: 0.65; }
.band__wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.band h2 { font-size: var(--fs-h2); color: #fff; }
.band .lede { margin-top: 1.4rem; font-size: var(--fs-lead); color: var(--foam); max-width: 44ch; }
.band__side p { color: var(--foam); margin-bottom: 1.2rem; max-width: 52ch; }
.band__side .btn { margin-top: 0.8rem; }

/* ---------- Community ---------- */
.community { padding-block: var(--sect); background: var(--surface); }
.community__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}
.community__media {
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.community__media img { width: 100%; height: 100%; object-fit: cover; }
.community__note {
  margin-top: 1.4rem;
  color: var(--ink-soft);
  font-size: var(--fs-small);
  max-width: 58ch;
}

/* ---------- Contact ---------- */
.contact {
  position: relative;
  padding-block: var(--sect);
  background: linear-gradient(180deg, var(--deep) 0%, var(--abyss) 60%);
  color: #fff;
  overflow: clip;
}
.contact .contours { opacity: 0.5; }
.contact__wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}
.contact h2 { font-size: var(--fs-h2); color: #fff; }
.contact__info { margin-top: 1.5rem; color: var(--foam); max-width: 46ch; }
.contact__channels {
  margin-top: 2.4rem;
  display: grid;
  gap: 1.1rem;
  font-size: var(--fs-body);
}
.contact__channels a { color: #fff; text-decoration-color: var(--sky); }
.contact__channels a:hover { color: var(--sky-bright); }
.contact__channels .place { color: var(--foam-soft); line-height: 1.7; }
.contact__reassure {
  margin-top: 2.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--hairline-dark);
  color: var(--foam-soft);
  font-size: var(--fs-small);
  max-width: 40ch;
}

.form {
  background: oklch(31.5% 0.075 245 / 0.55);
  border: 1px solid var(--hairline-dark);
  border-radius: 22px;
  padding: clamp(1.6rem, 3.5vw, 2.6rem);
  display: grid;
  gap: 1.25rem;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { display: grid; gap: 0.45rem; }
.field label { font: 550 var(--fs-small)/1.3 var(--sans); color: var(--foam); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1.5px solid var(--hairline-dark);
  background: oklch(23.5% 0.052 248 / 0.45);
  color: #fff;
  font: 400 1rem/1.4 var(--sans);
  transition: border-color var(--t-fast) var(--ease-out), background-color var(--t-fast) var(--ease-out);
}
.field input::placeholder, .field textarea::placeholder { color: var(--foam-soft); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none;
  border-color: var(--sky);
  background: oklch(23.5% 0.052 248 / 0.7);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none'%3E%3Cpath d='M1 1.5 7 7.5 13 1.5' stroke='%23cae2ee' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.6rem;
}
.field select option { background: var(--abyss); color: #fff; }
.field textarea { min-height: 128px; resize: vertical; }
.form__actions { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.form__hint { color: var(--foam-soft); font-size: 0.875rem; }
.form__status {
  display: none;
  padding: 0.9rem 1.2rem;
  border-radius: 12px;
  font-size: var(--fs-small);
}
.form__status.is-ok {
  display: block;
  background: oklch(71% 0.14 233 / 0.16);
  border: 1px solid oklch(71% 0.14 233 / 0.5);
  color: #fff;
}
.form__status.is-err {
  display: block;
  background: oklch(55% 0.19 25 / 0.22);
  border: 1px solid oklch(65% 0.2 25 / 0.6);
  color: #fff;
}
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-foot {
  background: var(--abyss);
  color: var(--foam-soft);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  border-top: 1px solid var(--hairline-dark);
}
.site-foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr);
  gap: clamp(2rem, 5vw, 4rem);
}
.site-foot .brand__name { color: #fff; }
.site-foot__blurb { margin-top: 1.2rem; max-width: 40ch; font-size: var(--fs-small); line-height: 1.7; }
.site-foot h4 {
  font: 600 0.85rem/1 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--foam);
  margin-bottom: 1.1rem;
}
.site-foot ul { list-style: none; padding: 0; display: grid; gap: 0.65rem; }
.site-foot a { color: var(--foam-soft); text-decoration: none; }
.site-foot a:hover { color: #fff; }
.site-foot address { font-style: normal; font-size: var(--fs-small); line-height: 1.8; }
.site-foot__bottom {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--hairline-dark);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
}

/* ---------- Subpage hero ---------- */
.page-hero {
  position: relative;
  min-height: min(72svh, 46rem);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: clip;
  background: linear-gradient(180deg, var(--deep) 0%, var(--abyss) 85%);
  padding-block: 8.5rem 4rem;
}
.page-hero__art {
  position: absolute;
  inset: 0;
}
.page-hero__art img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.page-hero__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    oklch(23.5% 0.052 248 / 0.5) 0%,
    oklch(23.5% 0.052 248 / 0.2) 45%,
    oklch(23.5% 0.052 248 / 0.9) 100%);
}
.page-hero__inner { position: relative; }
.page-hero .crumb {
  font: 550 var(--fs-small)/1 var(--sans);
  color: var(--sky-bright);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.3rem;
}
.page-hero .crumb:hover { color: #fff; }
.page-hero h1 {
  font-size: clamp(2.3rem, 1.5rem + 3.6vw, 4.2rem);
  font-weight: 450;
  max-width: 18ch;
  font-variation-settings: "opsz" 64;
}
.page-hero .lede {
  margin-top: 1.4rem;
  font-size: var(--fs-lead);
  color: var(--foam);
  max-width: 52ch;
}
.page-hero .btn { margin-top: 2rem; }

/* ---------- Subpage content blocks ---------- */
.split { padding-block: var(--sect); }
.split--shallow { background: var(--shallow); }
.split__wrap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 5rem);
}
.split__wrap > h2 { font-size: var(--fs-h2); max-width: 16ch; }
.split__body { color: var(--ink-soft); display: grid; gap: 1.2rem; align-content: start; }
.split__body strong { color: var(--ink); }

/* numbered process — a real sequence, numbers earned */
.steps { counter-reset: step; display: grid; gap: 0; border-top: 1px solid var(--hairline); }
.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 1.4rem;
  padding-block: clamp(1.6rem, 3vw, 2.4rem);
  border-bottom: 1px solid var(--hairline);
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 420;
  color: var(--azure);
  line-height: 1;
  padding-top: 0.2rem;
}
.step h3 { font-size: var(--fs-h3); margin-bottom: 0.5rem; }
.step p { color: var(--ink-soft); max-width: 58ch; }

/* role / service list */
.cols { padding-block: var(--sect); }
.cols--shallow { background: var(--shallow); }
.cols__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.6rem, 3.5vw, 3rem) clamp(2rem, 5vw, 4.5rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}
@media (max-width: 620px) {
  .cols__grid { grid-template-columns: 1fr; }
}
.cols__item { border-top: 2px solid var(--azure); padding-top: 1.2rem; }
.cols__item h3 { font-size: 1.25rem; margin-bottom: 0.55rem; }
.cols__item p { color: var(--ink-soft); font-size: var(--fs-small); line-height: 1.65; }

/* CTA banner on subpages */
.cta-banner {
  position: relative;
  background: linear-gradient(170deg, var(--deep) 0%, var(--abyss) 90%);
  color: #fff;
  padding-block: var(--sect-tight);
  overflow: clip;
}
.cta-banner .contours { opacity: 0.5; }
.cta-banner__wrap {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.cta-banner h2 { font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.6rem); color: #fff; max-width: 24ch; }
.cta-banner p { margin-top: 0.8rem; color: var(--foam); max-width: 46ch; }

/* ---------- Reveal on scroll (JS-gated; visible by default) ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
  transition-delay: var(--rd, 0ms);
}
html.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .site-nav { display: none; }
  .menu-btn { display: inline-flex; }

  .paths__grid { flex-direction: column; min-height: 0; }
  .path-panel { min-height: clamp(320px, 52vh, 460px); }
  .path-panel::before { inset: 0 0 auto 0; width: auto; height: 1px; }
  .path-panel:hover { flex-grow: 1; }

  .focus__wrap, .band__wrap, .contact__wrap, .split__wrap { grid-template-columns: 1fr; }
  .focus__diagram { max-width: 30rem; }
  .site-foot__grid { grid-template-columns: 1fr 1fr; }
  .ledger__grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(n) { border-left: 0; }
  .stat:nth-child(2n) { border-left: 1px solid var(--hairline); }
}
@media (max-width: 620px) {
  .form__row { grid-template-columns: 1fr; }
  .ledger__grid { grid-template-columns: 1fr; }
  .stat:nth-child(n) { border-left: 0; }
  .community__grid { grid-template-columns: 1fr; }
  .site-foot__grid { grid-template-columns: 1fr; }
  .diff__row { grid-template-columns: 1fr; gap: 0.8rem; }
  .step { grid-template-columns: 3.2rem minmax(0, 1fr); gap: 1rem; }
  .brand__mark { width: 36px; height: 36px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .drift-a, .drift-b,
  .lotus__float,
  .hero__reflection,
  .hero__scrollcue::after,
  .lotus--hero .lotus__ring,
  .lotus--hero .lotus__stem,
  .lotus--hero .petal,
  .lotus--hero .lotus__veins path,
  .hero__title, .hero__lead, .hero__cta, .hero__scrollcue {
    animation: none !important;
  }
  html.js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html.js .focus__diagram .stream {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
    animation: none !important;
  }
  .path-panel, .path-panel__art img, .btn, .arrow-link .arr {
    transition-duration: 1ms !important;
  }
  .path-panel:hover { flex-grow: 1; }
}
