/* ============================================================
   AYKANA — THE EQUATOR SYSTEM, IN GLASS. LAYER 2.
   Sheets, panels, ledgers and components. Tokens live in
   style.css and are assumed loaded first.

   The composition rule: every section is a sheet with its
   reference apparatus in a margin column, and every set of
   sibling rows lives on ONE white panel separated by hairlines.
   Never a wall of separately-bordered cards. Glass appears only
   on the masthead, the disclosed menu, and chips on a reversed
   block.
   ============================================================ */

/* ============================================================
   PAGE SHELL
   ============================================================ */

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

.site-main { display: block; }

/* ------------------------------------------------------------
   THE SHEET
   ------------------------------------------------------------ */

.sheet {
  display: grid;
  grid-template-columns: var(--margin-col) minmax(0, 1fr);
  column-gap: var(--s7);
  align-items: start;
}

.sheet__margin {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  padding-top: 5px; /* optical: aligns mono cap-height to the heading */
}

.sheet__body { min-width: 0; }

.sheet__body--measure { max-width: var(--read-max); }

/* ------------------------------------------------------------
   SECTION RHYTHM
   ------------------------------------------------------------ */

.section { padding-block: var(--sheet-y); }

.section--lg { padding-block: var(--sheet-y-lg); }

.section--tight { padding-block: calc(var(--sheet-y) * 0.7); }

/* The Equator rule as a section boundary. The brand's one motif,
   kept because the identity is built on it, but rendered at
   hairline weight so it separates without fragmenting.

   Drawn as a filled box rather than a border: the reveal animation
   paints a background gradient, and a zero-height <hr> has no area
   for a background to paint into. */
.section__rule {
  position: relative;
  border: 0;
  height: var(--rule-w);
  background-color: var(--line);
  margin-bottom: var(--sheet-y);
  opacity: 0.85;
}

.section__rule::after {
  content: '';
  position: absolute;
  right: 0;
  top: calc((var(--rule-w) / 2) - (var(--tick-h) / 2));
  width: var(--tick-w);
  height: var(--tick-h);
  background: var(--mark);
}

.section__head { margin-bottom: var(--s7); }

.section__head h2 { max-width: 20ch; }

.section__intro {
  margin-top: var(--s5);
  max-width: 80ch;
  color: var(--text-quiet);
}

/* ============================================================
   THE PANEL
   One white surface, hairline dividers, named radius and a
   two-layer shadow. This is what every list in the theme sits on.
   ============================================================ */

.panel {
  background: var(--surface);
  border-radius: var(--r-panel);
  box-shadow: var(--sh-panel);
  overflow: hidden;
}

/* ============================================================
   MASTHEAD — the one place glass is mandatory
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(247, 247, 245, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  /* Scroll edge, not a permanent divider: flush at rest, hairline
     once content is actually passing beneath. */
  border-bottom: 1px solid transparent;
  transition: border-color 300ms var(--ease-out-quart),
              box-shadow 300ms var(--ease-out-quart);
}

.site-header.scrolled {
  border-bottom-color: var(--hairline);
  box-shadow: 0 1px 12px rgba(17, 18, 20, 0.04);
}

/* Over a dark field hero the masthead is transparent and reversed, and only
   becomes the glass panel once content is passing beneath it. A light bar
   stacked on an Ink hero reads as two unrelated bands.

   It has to be fixed rather than sticky to do that: a sticky header occupies
   layout space, so making it transparent revealed the page ground above the
   hero instead of the hero itself. The hero's top padding already clears it. */
.has-field-hero .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

.has-field-hero .site-header:not(.scrolled) {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  --logo-ink: #FFFFFF;
  --logo-ground: #111214;
  --logo-line: rgba(255, 255, 255, 0.5);
  --logo-desc: rgba(255, 255, 255, 0.7);
}

.has-field-hero .site-header:not(.scrolled) .nav-menu a { color: var(--bond); }

.has-field-hero .site-header:not(.scrolled) .nav-menu a:hover,
.has-field-hero .site-header:not(.scrolled) .nav-menu a:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.has-field-hero .site-header:not(.scrolled) .nav-menu .current-menu-item > a,
.has-field-hero .site-header:not(.scrolled) .nav-menu .current_page_item > a {
  background: rgba(255, 255, 255, 0.16);
}

.has-field-hero .site-header:not(.scrolled) .btn--primary {
  background: var(--bond);
  color: var(--ink);
  border-color: var(--bond);
}

.has-field-hero .site-header:not(.scrolled) .menu-toggle {
  background: rgba(255, 255, 255, 0.12);
}

.has-field-hero .site-header:not(.scrolled) .hamburger-inner,
.has-field-hero .site-header:not(.scrolled) .hamburger-inner::before,
.has-field-hero .site-header:not(.scrolled) .hamburger-inner::after {
  background: var(--bond);
}

.has-field-hero .site-header:not(.scrolled) :focus-visible { outline-color: var(--bond); }

/* Crossing a dark block. The dark register recurs down every page now, and
   the light glass over Ink composited to a murky grey bar. Over a dark block
   the masthead takes the reversed treatment and its glass darkens rather than
   whitens, which is the material rule for translucency on a dark ground. */
.site-header.over-dark {
  background: rgba(17, 18, 20, 0.62);
  border-bottom-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
  --logo-ink: #FFFFFF;
  --logo-ground: #111214;
  --logo-line: rgba(255, 255, 255, 0.5);
  --logo-desc: rgba(255, 255, 255, 0.7);
}

.site-header.over-dark .nav-menu a { color: var(--bond); }

.site-header.over-dark .nav-menu a:hover,
.site-header.over-dark .nav-menu a:focus-visible { background: rgba(255, 255, 255, 0.12); }

.site-header.over-dark .nav-menu .current-menu-item > a,
.site-header.over-dark .nav-menu .current_page_item > a { background: rgba(255, 255, 255, 0.16); }

.site-header.over-dark .btn--primary {
  background: var(--bond);
  color: var(--ink);
  border-color: var(--bond);
}

.site-header.over-dark .menu-toggle { background: rgba(255, 255, 255, 0.12); }

.site-header.over-dark .hamburger-inner,
.site-header.over-dark .hamburger-inner::before,
.site-header.over-dark .hamburger-inner::after { background: var(--bond); }

.site-header.over-dark :focus-visible { outline-color: var(--bond); }

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s6);
  min-height: 64px;
  padding-block: var(--s3);
}

.site-branding { flex: 0 0 auto; }
.site-branding a { display: block; }

.aykana-logo { display: block; }
.aykana-logo--lockup { width: 164px; height: auto; }
.aykana-logo--brandmark { width: 28px; height: auto; }

/* Navigation */
.main-navigation { margin-inline-start: auto; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--s2);
  list-style: none;
}

.nav-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.008em;
  color: var(--ink);
  transition: background-color var(--dur) var(--ease-out-quart);
}

.nav-menu a:hover,
.nav-menu a:focus-visible { background: rgba(17, 18, 20, 0.05); }

.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a {
  background: rgba(17, 18, 20, 0.06);
  font-weight: 600;
}

/* Submenus.
   The v2.0 nav had dropdown styles; the rebuild dropped them, so any menu with
   children rendered its <ul class="sub-menu"> inline and forced the masthead
   open to fit every child. The live Primary menu still carried six retired
   practice items under Services, which is exactly how that surfaced. Styles
   restored so a submenu can never break the header again, whatever an editor
   adds to the menu. */
.nav-menu li { position: relative; }

.nav-menu .sub-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 950;
  min-width: 250px;
  padding: var(--s2);
  margin: 0;
  list-style: none;
  border-radius: var(--r-card);
  background: rgba(247, 247, 245, 0.97);
  border: 1px solid var(--hairline);
  box-shadow: var(--sh-overlay);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 200ms var(--ease-out-quart),
              transform 200ms var(--ease-out-quart),
              visibility 200ms;
}

.nav-menu li:hover > .sub-menu,
.nav-menu li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.nav-menu .sub-menu a {
  display: block;
  min-height: 44px;
  padding: 11px var(--s4);
  border-radius: var(--r-thumb);
  font-size: 0.9375rem;
  white-space: normal;
}

.header-cta { flex: 0 0 auto; }

/* The CTA repeated inside the disclosed menu; hidden on desktop. */
.nav-cta-inline { display: none; }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(17, 18, 20, 0.05);
  border: 0;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease-out-quart), transform 100ms ease-out;
}

.menu-toggle:active { transform: scale(0.94); }

.hamburger-box { display: block; width: 18px; height: 12px; position: relative; }

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 300ms var(--ease-spring), opacity 200ms var(--ease-out-quart);
}

.hamburger-inner { top: 50%; }
.hamburger-inner::before { top: -5px; }
.hamburger-inner::after { top: 5px; }

.menu-toggle[aria-expanded="true"] .hamburger-inner { background: transparent; }
.menu-toggle[aria-expanded="true"] .hamburger-inner::before { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .hamburger-inner::after { transform: translateY(-5px) rotate(-45deg); }

/* Scroll progress: a thin rule along the top edge. */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--ink);
  z-index: 1001;
}

/* ============================================================
   HERO
   No photograph. The opening is a statement set in type.
   ============================================================ */

/* ============================================================
   THE FIELD — living monochrome background
   ============================================================ */

.field-stage {
  position: relative;
  isolation: isolate;
  background: var(--ink);
  overflow: hidden;
}

.equator-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  display: block;
  /* Until the shader paints, the Ink ground is what shows: the section is
     never a white flash or an empty box. */
  background: var(--ink);
  opacity: 0;
  transition: opacity 900ms var(--ease-out-quart);
}

.equator-field.is-live { opacity: 1; }

/* Keeps display text legible over the brightest part of the field without
   flattening it: a vertical scrim, not a blanket tint. */
.field-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    rgba(17, 18, 20, 0.92) 0%,
    rgba(17, 18, 20, 0.72) 42%,
    rgba(17, 18, 20, 0.30) 78%,
    rgba(17, 18, 20, 0.10) 100%
  );
}

/* ============================================================
   FIELD BREAK
   The dark register recurring between sections rather than appearing
   once in the hero. Full-bleed out of the page grid, so the rhythm
   changes rather than just the colour.
   ============================================================ */

.field-break {
  --ground: var(--ink);
  --text: var(--bond);
  --text-quiet: rgba(255, 255, 255, 0.76);
  --line: rgba(255, 255, 255, 0.28);
  --hairline: rgba(255, 255, 255, 0.14);
  --mark: var(--bond);
  --focus: var(--bond);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  color: var(--bond);
  padding-block: clamp(72px, 12vw, 150px);
  margin-block: var(--sheet-y-lg);
}

.field-break .equator-field { z-index: -1; }

.field-break::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    rgba(17, 18, 20, 0.90) 0%,
    rgba(17, 18, 20, 0.66) 46%,
    rgba(17, 18, 20, 0.24) 82%,
    rgba(17, 18, 20, 0.08) 100%
  );
}

.field-break__quote {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.2vw, 3.25rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 20ch;
  color: var(--bond);
}

.field-break__note {
  margin-top: var(--s6);
  max-width: 68ch;
  color: rgba(255, 255, 255, 0.78);
}

/* ============================================================
   TICKER
   The sector list as a moving band. Horizontal motion is the one
   axis nothing else on the page uses, so it changes the rhythm
   rather than adding more of the same. Content, not decoration:
   these are the nine sectors from the approved write-up.
   ============================================================ */

.ticker {
  position: relative;
  overflow: hidden;
  padding-block: var(--s6);
  border-block: 1px solid var(--hairline);
  /* Fades at both edges so items enter and leave rather than being cut. */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ticker__track {
  display: flex;
  width: max-content;
  gap: var(--s7);
  animation: ticker-run 46s linear infinite;
}

.ticker:hover .ticker__track,
.ticker:focus-within .ticker__track { animation-play-state: paused; }

.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: var(--s5);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--text);
}

/* The Equator tick between items, so the separator is the brand's mark
   rather than a bullet. */
.ticker__item::after {
  content: '';
  width: 2px;
  height: 0.7em;
  background: var(--mark);
  opacity: 0.55;
}

@keyframes ticker-run {
  from { transform: translateX(0); }
  /* The track holds two identical runs; travelling exactly half its width
     lands the second run where the first began, so the loop is seamless. */
  to { transform: translateX(-50%); }
}

/* The Services band runs west, against the home page's east. Reversing the
   same keyframe is still seamless: it travels from -50% back to 0, which are
   the same two frames in the other order. */
.ticker--reverse .ticker__track { animation-direction: reverse; }

/* The markets ticker carries 54 items against the sector ticker's nine, so the
   track is roughly 3.7x longer. Left at 46s the same keyframe would fling it
   past at nearly four times the speed, which reads as urgency the brand does
   not want. The duration is scaled to hold the sector ticker's pace. */
.ticker--markets .ticker__track { animation-duration: 170s; }

@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; flex-wrap: wrap; width: 100%; }
  .ticker { -webkit-mask-image: none; mask-image: none; }
  .ticker__item { font-size: 1rem; }
}

/* ============================================================
   PINNED SEQUENCE
   The section holds while its steps advance under the scroll.
   Authored as a plain stacked list, so without the pin engine
   (reduced motion, short viewport, no JS) it simply reads as one.
   ============================================================ */

.pin { position: relative; }

/* `overflow: hidden` on an ancestor disables position:sticky in a descendant,
   and .field-break carries it. The pinned section is both, so the stage was
   scrolling away instead of holding: the steps still activated, which is why
   the behavioural test passed, but nothing was ever on screen.
   Safe to drop here, because the canvas and the scrim are both inset:0 and so
   cannot paint outside the section anyway. */
.pin.field-break { overflow: visible; }

.pin--live {
  height: calc( var(--pin-steps, 4) * 78vh );
}

.pin--live .pin__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.pin--live .pin__steps {
  position: relative;
  min-height: 12em;
}

.pin--live .pin__step {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 480ms var(--ease-out-quart), transform 620ms var(--ease-spring);
  pointer-events: none;
}

.pin--live .pin__step.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.pin--live .pin__step.is-past {
  opacity: 0;
  transform: translateY(-28px);
}

/* Static fallback: steps stacked, separated by the ledger hairline. */
.pin:not(.pin--live) .pin__step + .pin__step {
  margin-top: var(--s6);
  padding-top: var(--s6);
  border-top: 1px solid var(--hairline);
}

.pin__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text-quiet);
  display: block;
  margin-bottom: var(--s4);
}

.pin__name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: var(--s5);
}

.pin__desc {
  max-width: 68ch;
  font-size: clamp(1rem, 1.4vw, 1.1875rem);
  line-height: 1.65;
  color: var(--text-quiet);
}

/* The question that tests the claim, set in the apparatus face and ruled off,
   so it reads as a separate instrument rather than more prose. */
.pin__test {
  margin-top: var(--s5);
  padding-top: var(--s4);
  border-top: 1px solid var(--hairline);
  max-width: 68ch;
  text-transform: none;
  letter-spacing: 0.02em;
  line-height: 1.6;
}

/* Progress rule: the Equator line filling west to east as the sequence
   advances, with the destination tick waiting at its end. */
.pin__progress {
  position: relative;
  margin-top: var(--s8);
  height: 1px;
  background: var(--hairline);
}

.pin__progress-fill {
  position: absolute;
  inset: 0;
  background: var(--mark);
  transform: scaleX(0);
  transform-origin: left;
}

.pin__progress::after {
  content: '';
  position: absolute;
  right: 0;
  top: -4px;
  width: 2px;
  height: 9px;
  background: var(--mark);
}

.pin:not(.pin--live) .pin__progress { display: none; }

/* ============================================================
   SPLIT-LINE REVEAL
   Each line rises out of its own mask. The mask is the point: without
   overflow:hidden the line slides in from visible space and reads as a
   generic fade-up rather than type being set.
   ============================================================ */

.split-line {
  display: block;
  overflow: hidden;
  /* A descender would be clipped by the mask, so the box is grown and the
     extra pulled back off the layout. */
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}

.split-line__inner {
  display: block;
  transform: translateY(105%);
  opacity: 0;
  transition: transform 900ms var(--ease-spring), opacity 700ms var(--ease-out-quart);
}

.split-in .split-line__inner {
  transform: none;
  opacity: 1;
}

/* No JS, no measurement, or reduced motion: the text is simply present. */
[data-split]:not(.split-ready) { visibility: visible; }

@media (prefers-reduced-motion: reduce) {
  .split-line__inner { transform: none; opacity: 1; transition: none; }
  .equator-field { transition: none; }
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  padding-block: clamp(48px, 8vw, 104px) var(--sheet-y);
}

/* The field hero: full-height, Ink ground, type over living background. */
.hero--field {
  --ground: var(--ink);
  --surface: rgba(255, 255, 255, 0.06);
  --text: var(--bond);
  --text-quiet: rgba(255, 255, 255, 0.76);
  --line: rgba(255, 255, 255, 0.28);
  --hairline: rgba(255, 255, 255, 0.14);
  --mark: var(--bond);
  --focus: var(--bond);
  color: var(--bond);
  min-height: min(94vh, 900px);
  display: flex;
  align-items: center;
  padding-block: clamp(96px, 14vh, 180px) clamp(56px, 8vh, 96px);
}

.hero--field .hero__title {
  max-width: 15ch;
  font-size: clamp(2.75rem, 7.2vw, 5.75rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-bottom: var(--s6);
}

.hero--field .hero__lede {
  max-width: 68ch;
  color: rgba(255, 255, 255, 0.82);
}

.hero--field .btn--primary {
  background: var(--bond);
  color: var(--ink);
  border-color: var(--bond);
}

.hero--field .btn--primary:hover,
.hero--field .btn--primary:focus-visible {
  background: var(--platinum);
  border-color: var(--platinum);
}

.hero--field .btn--ruled {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--bond);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: none;
}

.hero--field .btn--ruled:hover,
.hero--field .btn--ruled:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.45);
}

/* Scroll cue: the Equator rule stood on end, drawing downward on a loop. */
.hero__cue {
  position: absolute;
  left: var(--gutter);
  bottom: var(--s7);
  display: flex;
  align-items: center;
  gap: var(--s3);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
}

.hero__cue::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0));
  transform-origin: top;
  animation: cue-draw 2.4s var(--ease-out-quart) infinite;
}

@keyframes cue-draw {
  0% { transform: scaleY(0); opacity: 0; }
  35% { transform: scaleY(1); opacity: 1; }
  75% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(14px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__cue::after { animation: none; transform: scaleY(1); }
}

.hero__ref { display: flex; flex-direction: column; gap: var(--s2); }

.hero__title { max-width: 16ch; margin-bottom: var(--s6); }

.hero__lede { max-width: 80ch; margin-bottom: var(--s7); }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  margin-bottom: var(--s7);
}

/* Coverage stated as a document footer, closed by the tick. */
.hero__footer {
  position: relative;
  border-top: var(--rule-w) solid var(--line);
  padding-top: var(--s4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3) var(--s6);
  align-items: baseline;
}

.hero__footer::after {
  content: '';
  position: absolute;
  right: 0;
  top: calc(-1 * (var(--tick-h) / 2));
  width: var(--tick-w);
  height: var(--tick-h);
  background: var(--mark);
}

/* Interior page hero. Sits flush on the ground: the reading surface
   is continuous, so no card wrapper around the opening. */
.page-hero {
  padding-block: clamp(40px, 6vw, 76px) var(--s8);
}

.page-hero h1 { max-width: 18ch; }
.page-hero .lede { margin-top: var(--s5); }

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-quiet);
  margin-bottom: var(--s5);
}

.breadcrumbs a { padding-block: 6px; }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumbs .sep { padding-inline: var(--s2); color: var(--silver); }

/* ============================================================
   THE LEDGER — as a unified panel list
   Sibling rows on one surface, hairline between, row hover tint.
   Scales to any count with no orphan cell.
   ============================================================ */

.ledger {
  background: var(--surface);
  border-radius: var(--r-panel);
  box-shadow: var(--sh-panel);
  overflow: hidden;
}

/* Inside a reversed block the block itself IS the panel: nesting a second
   translucent surface inside it stacks light material on light material,
   which the material grammar forbids and which reads as a box in a box.
   The rows keep their hairlines and lose the surface. */
.ground--ink .ledger,
.ground--ink .record,
.ground--ink .offerings,
.ground--ink .panel {
  background: transparent;
  box-shadow: none;
  border: 0;
  border-radius: 0;
}

.ledger__row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) minmax(0, 24ch) auto;
  column-gap: var(--s6);
  align-items: baseline;
  padding: var(--s5) clamp(var(--s5), 3vw, var(--s7));
  transition: background-color 150ms var(--ease-out-quart);
}

/* Adjacent sibling, so there is no leading or trailing rule inside
   the panel and the radius stays clean. */
.ledger__row + .ledger__row { border-top: 1px solid var(--hairline); }

a.ledger__row:hover,
a.ledger__row:focus-visible { background: var(--row-hover); }

.ledger__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--text-quiet);
  font-variant-numeric: tabular-nums;
}

.ledger__name {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.ledger__note {
  color: var(--text-quiet);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.ledger__meta {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-quiet);
  white-space: nowrap;
  justify-self: end;
  font-variant-numeric: tabular-nums;
}

/* A deliverable title is UI text, not a brand moment: it stays in the
   body face so it does not compete with the practice names. */
.ledger__name--ui {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.ledger--method .ledger__row {
  grid-template-columns: 46px minmax(0, 15ch) minmax(0, 1fr);
}

/* Deliverable titles are full phrases, not single words like the method
   steps, so they get a wider name column instead of wrapping to three lines. */
.ledger--deliverables .ledger__row {
  grid-template-columns: 46px minmax(0, 26ch) minmax(0, 1fr);
}

/* Offerings: a dense list of concrete services, on one panel. */
.offerings {
  background: var(--surface);
  border-radius: var(--r-panel);
  box-shadow: var(--sh-panel);
  overflow: hidden;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.offerings li {
  padding: var(--s4) clamp(var(--s5), 3vw, var(--s6));
  font-size: 0.9375rem;
  line-height: 1.5;
  border-top: 1px solid var(--hairline);
}

/* Remove the leading rule from the first row of each column. */
.offerings li:nth-child(1),
.offerings li:nth-child(2) { border-top: 0; }

/* An odd-numbered final item would sit alone in the left column, leaving its
   rule stopping halfway across the panel. Let it span both columns so the
   rule reads as a divider rather than a broken line. */
.offerings li:last-child:nth-child(odd) { grid-column: 1 / -1; }

.offerings--single { grid-template-columns: minmax(0, 1fr); }
.offerings--single li:nth-child(2) { border-top: 1px solid var(--hairline); }
.offerings--single li:nth-child(1) { border-top: 0; }

/* Sub-heading inside an expanded practice: names the block that follows
   without introducing another heading level into the outline. */
.practice-sublabel {
  display: block;
  margin-top: var(--s7);
  margin-bottom: var(--s4);
}

.prose + .practice-sublabel { margin-top: var(--s6); }

/* Offerings as chips: the same inventory at lower weight. Used by the B
   composition, where the deliverables ledger leads and the offerings are the
   supporting detail rather than the main event. Not a panel, so two
   consecutive practices never present the same block twice. */
.offerings--chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}

.offerings--chips li {
  border-top: 0;
  padding: 9px 16px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-quiet);
  background: var(--surface);
  box-shadow: var(--sh-card);
  border-radius: var(--r-pill);
  transition: transform 200ms var(--ease-out-quart), box-shadow 200ms var(--ease-out-quart);
}

.offerings--chips li:hover { transform: translateY(-2px); box-shadow: var(--sh-lift); }

/* ============================================================
   THE PRACTICE RUN
   Five practices in sequence. The v2.3 page gave all five the same
   composition and an alternation that resolved to no visible change,
   so the run read as one card stamped five times.
   ============================================================ */

.practice-run { position: relative; }

/* The rail is sticky inside the run rather than fixed, so it rides the five
   practices and releases at the end of the run on its own. No scroll
   listener decides when it stops: `position: sticky` is scoped to its
   containing block, and .practice-run IS that block. */
.practice-rail {
  position: sticky;
  /* JS publishes the masthead's measured height; 72px is what it currently
     measures, so the no-JS fallback lands within a pixel rather than letting
     the rail slide under the bar. */
  top: var(--header-h, 72px);
  z-index: 400;
  background: rgba(247, 247, 245, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
}

.practice-rail__list {
  display: flex;
  list-style: none;
  gap: clamp(var(--s4), 2.5vw, var(--s7));
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x proximity;
  /* Bleeds the scroll area to the wrap's edges so the first and last items
     are not clipped mid-word when the rail overflows. */
  padding-block: var(--s3);
}

.practice-rail__list::-webkit-scrollbar { display: none; }

.practice-rail__item { flex: 0 0 auto; scroll-snap-align: start; }

.practice-rail__item a {
  display: flex;
  align-items: baseline;
  gap: var(--s2);
  padding-block: 6px;
  color: var(--text-quiet);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 200ms var(--ease-out-quart), border-color 200ms var(--ease-out-quart);
}

.practice-rail__num {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  opacity: 0.7;
}

.practice-rail__name {
  font-size: 0.875rem;
  letter-spacing: -0.01em;
}

.practice-rail__item a:hover { color: var(--ink); }

/* The current practice. Marked with weight and the brand's own rule rather
   than a colour, because the system has no accent hue to spend. */
.practice-rail__item.is-current a {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.practice-rail__item.is-current .practice-rail__num { opacity: 1; }

/* ============================================================
   ONE PRACTICE
   Four type registers out of one block of prose: problem at display
   size, body as prose, outcome against a rule, fit as a single line.
   The v2.3 build set all of it at body weight in one grey column.
   ============================================================ */

.practice__name {
  max-width: 20ch;
}

/* The opening paragraph states the tension the practice exists to resolve.
   At display size it becomes the practice's headline rather than the first
   of four indistinguishable paragraphs. */
.practice__problem {
  margin-top: var(--s5);
  max-width: 34ch;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.1vw, 1.75rem);
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: var(--text);
}

.practice__body {
  margin-top: var(--s6);
  max-width: var(--read-max);
}

.practice__blocks { display: block; }

.practice__cta { margin-top: var(--s6); }

/* The B composition leads with the deliverables ledger, so its problem
   statement carries more of the load and is set wider. */
.practice--b .practice__problem { max-width: 68ch; }

/* ============================================================
   ROUTE LEDGER
   The index re-cut as a router: the reader recognises a situation
   rather than being asked to already know which practice answers it.
   ============================================================ */

.ledger--route .ledger__row {
  grid-template-columns: 46px minmax(0, 1fr) minmax(0, 22ch);
  align-items: start;
}

.ledger__note--lead {
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, 1.6vw, 1.3125rem);
  font-weight: 400;
  line-height: 1.32;
  letter-spacing: -0.015em;
  color: var(--text);
}

/* The practice a row routes to: UI text, not a brand moment, so it sits
   quietly to the right and lets the situation lead. */
.ledger__name--target {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.5;
  color: var(--text-quiet);
  display: flex;
  align-items: baseline;
  gap: var(--s3);
}

/* The destination tick, travelling east on hover: the brand's own mark
   used as the affordance instead of a chevron. */
.ledger__tick {
  flex: 0 0 auto;
  /* Pinned to the cell's right edge rather than trailing the text, so the
     ticks line up down the column whether a practice name wraps or not. */
  margin-inline-start: auto;
  width: var(--tick-w, 3px);
  height: var(--tick-h, 10px);
  background: var(--mark);
  transform: translateX(0);
  transition: transform 260ms var(--ease-spring);
}

a.ledger__row:hover .ledger__tick,
a.ledger__row:focus-visible .ledger__tick { transform: translateX(6px); }

/* Sector strip: the apparatus face as content, set as quiet chips. */
.strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  list-style: none;
}

.strip li {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-quiet);
  background: var(--surface);
  box-shadow: var(--sh-card);
  border-radius: var(--r-pill);
  padding: 9px 16px;
}

/* ============================================================
   THE RECORD — a key/value panel
   Where the brand's candour rule becomes a layout: a field with
   no value is not blank, it is recorded as not yet established.
   ============================================================ */

.record {
  background: var(--surface);
  border-radius: var(--r-panel);
  box-shadow: var(--sh-panel);
  overflow: hidden;
}

.record__row {
  display: grid;
  grid-template-columns: minmax(0, 15ch) minmax(0, 1fr);
  column-gap: var(--s7);
  padding: var(--s5) clamp(var(--s5), 3vw, var(--s7));
  align-items: baseline;
}

.record__row + .record__row { border-top: 1px solid var(--hairline); }

.record__key {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-quiet);
  line-height: 1.5;
}

.record__value { font-size: 0.9375rem; line-height: 1.65; }
.record__value p { max-width: 80ch; }

.record__value--pending .record__state {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  background: var(--platinum);
  border-radius: var(--r-pill);
  padding: 6px 13px;
  margin-bottom: var(--s3);
}

.ground--ink .record__value--pending .record__state {
  background: rgba(255, 255, 255, 0.14);
  color: var(--bond);
}

.record__value--pending p { color: var(--text-quiet); }

.contact-record .record__value a:hover { text-decoration: underline; }

/* ============================================================
   FIGURES — one panel, hairline-separated cells
   Only counts that are true and checkable go here.
   ============================================================ */

.figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  background: var(--surface);
  border-radius: var(--r-panel);
  box-shadow: var(--sh-panel);
  overflow: hidden;
}

.figures__item {
  padding: clamp(var(--s5), 3vw, var(--s7));
  border-inline-start: 1px solid var(--hairline);
}

.figures__item:first-child { border-inline-start: 0; }

.figures__figure {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.25rem, 3.6vw, 3rem);
  line-height: 1;
  letter-spacing: -0.035em;
  font-variant-numeric: lining-nums tabular-nums;
  margin-bottom: var(--s3);
}

.figures__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-quiet);
  line-height: 1.6;
  max-width: 24ch;
}

/* ============================================================
   PULL STATEMENT
   ============================================================ */

.statement {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.9vw, 2.2rem);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.025em;
  max-width: 24ch;
}

.statement--quote {
  font-style: italic;
  font-weight: 400;
  color: var(--text-quiet);
  max-width: 30ch;
}

/* ============================================================
   FAQ — native disclosure on one panel
   ============================================================ */

.faq-group { margin-bottom: var(--s8); }

.faq-group__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: var(--s5);
}

.faq-panel {
  background: var(--surface);
  border-radius: var(--r-panel);
  box-shadow: var(--sh-panel);
  overflow: hidden;
}

.faq-item + .faq-item { border-top: 1px solid var(--hairline); }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
  min-height: 44px;
  padding: var(--s5) clamp(var(--s5), 3vw, var(--s7));
  cursor: pointer;
  font-weight: 500;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  list-style: none;
  transition: background-color 150ms var(--ease-out-quart);
}

.faq-item summary:hover { background: var(--row-hover); }
.faq-item summary::-webkit-details-marker { display: none; }

/* The marker is a rule that becomes a minus, not a chevron icon. */
.faq-item__mark {
  position: relative;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
}

.faq-item__mark::before,
.faq-item__mark::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--text);
  transition: transform 300ms var(--ease-spring), opacity 200ms var(--ease-out-quart);
}

.faq-item__mark::before { width: 14px; height: 1.5px; }
.faq-item__mark::after { width: 1.5px; height: 14px; }

.faq-item[open] .faq-item__mark::after { transform: scaleY(0); opacity: 0; }

.faq-item__answer {
  padding: 0 clamp(var(--s5), 3vw, var(--s7)) var(--s6);
  color: var(--text-quiet);
  max-width: 80ch;
  line-height: 1.75;
}

/* ============================================================
   FORMS — grouped on one panel, label above control
   ============================================================ */

.form-panel {
  background: var(--surface);
  border-radius: var(--r-panel);
  box-shadow: var(--sh-panel);
  padding: clamp(var(--s5), 3.5vw, var(--s7));
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s6);
}

.field { display: flex; flex-direction: column; gap: var(--s2); }
.field--full { grid-column: 1 / -1; }

/* A submit button is not a form field: it takes its own width.
   `.field` is a stretch flex column, so this needs align-self. */
.field > .btn { align-self: flex-start; }

.field label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-quiet);
}

.field .req { color: var(--text); }

.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--archive);
  border: 1px solid transparent;
  border-radius: var(--r-thumb);
  padding: 13px 14px;
  min-height: 44px;
  transition: background-color var(--dur) var(--ease-out-quart),
              border-color var(--dur) var(--ease-out-quart);
  /* A <select>'s intrinsic minimum width is set by its longest option,
     which on a narrow screen pushes the grid column wider than the page. */
  min-width: 0;
  max-width: 100%;
}

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--hairline); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  background: var(--bond);
  border-color: rgba(17, 18, 20, 0.24);
}

.field textarea { resize: vertical; min-height: 132px; line-height: 1.6; }

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%),
                    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% + 1px), calc(100% - 13px) calc(50% + 1px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: var(--s8);
}

.form-note {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: 1.7;
  color: var(--text-quiet);
  text-transform: none;
  letter-spacing: 0;
}

.form-message {
  border-radius: var(--r-thumb);
  background: var(--archive);
  padding: var(--s4) var(--s5);
  margin-bottom: var(--s6);
  font-size: 0.9375rem;
}

/* ============================================================
   REVERSED BLOCK — the CTA, contained rather than full-bleed
   Radius tier, deep two-layer shadow, and blurred orbs behind the
   glass so the frost has something to refract. Monochrome: the
   orbs are white at low opacity, never a hue.
   ============================================================ */

.section.ground--ink { background: transparent; }

.section.ground--ink > .wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-hero);
  background: var(--ink);
  box-shadow: var(--sh-hero);
  padding: clamp(var(--s7), 5.5vw, var(--s9)) clamp(var(--s5), 4vw, var(--s8));
}

/* The field replaces the static blurred orbs that used to sit behind the
   glass here. Same job, giving the frost something to refract, but moving,
   which is the whole point of the change. */
.section.ground--ink > .wrap {
  isolation: isolate;
}

.section.ground--ink > .wrap > .equator-field {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
}

.section.ground--ink > .wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    rgba(17, 18, 20, 0.90) 0%,
    rgba(17, 18, 20, 0.68) 46%,
    rgba(17, 18, 20, 0.28) 84%,
    rgba(17, 18, 20, 0.10) 100%
  );
}

.section.ground--ink > .wrap > *:not(.equator-field) { position: relative; }

/* The section rule belongs between sections, not inside a block. */
.section.ground--ink .section__rule { display: none; }

/* ============================================================
   FOOTER — the colophon
   ============================================================ */

.site-footer {
  --ground: var(--ink);
  --surface: rgba(255, 255, 255, 0.05);
  --text: var(--bond);
  --text-quiet: rgba(255, 255, 255, 0.7);
  --line: rgba(255, 255, 255, 0.2);
  --hairline: rgba(255, 255, 255, 0.14);
  --mark: var(--bond);
  --focus: var(--bond);
  --logo-ink: #FFFFFF;
  --logo-ground: #111214;
  --logo-line: rgba(255, 255, 255, 0.5);
  --logo-desc: rgba(255, 255, 255, 0.7);
  background: var(--ink);
  color: var(--bond);
  border-radius: var(--r-hero) var(--r-hero) 0 0;
  margin-top: var(--sheet-y);
  padding-block: var(--sheet-y-lg) var(--s7);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: var(--s8) var(--s6);
  padding-bottom: var(--s8);
}

.footer-brand .aykana-logo--lockup { width: 178px; margin-bottom: var(--s5); }

.footer-signoff {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.125rem;
  letter-spacing: -0.015em;
  color: var(--bond);
  margin-bottom: var(--s4);
}

.footer-desc {
  color: var(--text-quiet);
  font-size: 0.9375rem;
  line-height: 1.65;
  max-width: 34ch;
}

.footer-col__title {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-quiet);
  padding-bottom: var(--s3);
  border-bottom: 1px solid var(--hairline);
  margin-bottom: var(--s3);
}

.footer-list { list-style: none; }

.footer-list a,
.footer-list span {
  display: block;
  padding-block: 9px;
  font-size: 0.9375rem;
  color: var(--bond);
}

.footer-list span { color: var(--text-quiet); }

.footer-list a {
  border-radius: var(--r-chip);
  transition: opacity var(--dur) var(--ease-out-quart);
  opacity: 0.82;
}

.footer-list a:hover,
.footer-list a:focus-visible { opacity: 1; text-decoration: underline; }

.footer-bottom {
  position: relative;
  border-top: 1px solid var(--hairline);
  padding-top: var(--s5);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--text-quiet);
}

/* Policy links sit as one group against the copyright, rather than as loose
   flex children — with space-between, two links would push the cookie policy
   into the middle of the rule and read as a third column. */
.footer-bottom__policies {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s4);
}

.footer-bottom__policies a {
  color: inherit;
  opacity: 0.82;
  text-decoration: none;
  transition: opacity var(--dur) var(--ease-out-quart);
}

.footer-bottom__policies a:hover,
.footer-bottom__policies a:focus-visible { opacity: 1; text-decoration: underline; }

.footer-bottom::after {
  content: '';
  position: absolute;
  right: 0;
  top: calc(-1 * (var(--tick-h) / 2));
  width: var(--tick-w);
  height: var(--tick-h);
  background: var(--mark);
}

/* ============================================================
   MOTION
   Static content keeps a tiny budget: a settle on reveal and a
   lift on hover. The disclosed menu is an interactive layer and
   gets the full materialize treatment.
   ============================================================ */

.js-motion [data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 420ms var(--ease-spring), transform 420ms var(--ease-spring);
}

.js-motion [data-reveal].revealed { opacity: 1; transform: none; }

/* The rule draws itself west to east. */
.js-motion .section__rule {
  background-color: transparent;
  background-image: linear-gradient(var(--line), var(--line));
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: 0 100%;
  transition: background-size 380ms var(--ease-spring);
}

.js-motion .section__rule.revealed { background-size: 100% 100%; }

.js-motion .hero__footer {
  background-image: linear-gradient(var(--line), var(--line));
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: 0 var(--rule-w);
  border-top-color: transparent;
  transition: background-size 380ms var(--ease-spring);
}

.js-motion .hero__footer.revealed { background-size: 100% var(--rule-w); }

.js-motion .section__rule::after,
.js-motion .hero__footer::after {
  opacity: 0;
  transition: opacity 200ms var(--ease-out-quart) 380ms;
}

.js-motion .section__rule.revealed::after,
.js-motion .hero__footer.revealed::after { opacity: 1; }

/* Hover lift on the one genuinely pickable surface set. */
.strip li {
  transition: transform 200ms var(--ease-out-quart), box-shadow 200ms var(--ease-out-quart);
}

.strip li:hover { transform: translateY(-2px); box-shadow: var(--sh-lift); }

@media (prefers-reduced-motion: reduce) {
  .js-motion [data-reveal] { opacity: 1; transform: none; }
  .js-motion .section__rule { background-color: var(--line); background-size: 100% 100%; }
  .js-motion .hero__footer { background-size: 100% var(--rule-w); border-top-color: var(--line); }
  .js-motion .section__rule::after,
  .js-motion .hero__footer::after { opacity: 1; }
  .strip li:hover { transform: none; }
  .offerings--chips li:hover { transform: none; }
  a.ledger__row:hover .ledger__tick,
  a.ledger__row:focus-visible .ledger__tick { transform: none; }
  /* The menu keeps its positional states and loses only the travel,
     so it can still be dismissed. */
  .desktop-menu-wrap {
    transition: opacity 200ms ease;
    transform: none;
  }
}

/* ============================================================
   RESPONSIVE
   One design adapts. The margin column folds above the body
   rather than shrinking, so the apparatus stays legible.
   ============================================================ */

@media (max-width: 1024px) {
  :root { --margin-col: 130px; }
  .ledger__row { grid-template-columns: 40px minmax(0, 1fr) minmax(0, 22ch); }
  .ledger__meta { display: none; }
  .ledger--route .ledger__row { grid-template-columns: 40px minmax(0, 1fr) minmax(0, 17ch); }
}

@media (max-width: 900px) {
  .sheet,
  .record__row {
    grid-template-columns: 1fr;
    row-gap: var(--s4);
  }
  .sheet__margin { padding-top: 0; flex-direction: row; gap: var(--s4); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .offerings { grid-template-columns: minmax(0, 1fr); }
  .offerings li:nth-child(2) { border-top: 1px solid var(--hairline); }
  .offerings--chips { grid-template-columns: none; }
  .figures__item { border-inline-start: 0; border-top: 1px solid var(--hairline); }
  .figures__item:first-child { border-top: 0; }
}

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .main-navigation { margin-inline-start: 0; }

  /* Disclosed in place beneath the masthead, as one glass layer that
     materializes: blur, scale and opacity together. */
  .desktop-menu-wrap {
    position: absolute;
    top: calc(100% + 8px);
    left: var(--gutter);
    right: var(--gutter);
    padding: var(--s3);
    border-radius: var(--r-panel);
    /* Bigger surface, thicker material. A full menu sheet sits above busy
       text, so it needs more weight than the masthead strip: at 0.86 the
       hero copy read straight through the labels. */
    background: rgba(247, 247, 245, 0.97);
    border: 1px solid var(--hairline);
    box-shadow: var(--sh-overlay);
    -webkit-backdrop-filter: saturate(180%) blur(0px);
    backdrop-filter: saturate(180%) blur(0px);
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top right;
    pointer-events: none;
    transition: opacity 250ms var(--ease-out-quart),
                transform 250ms var(--ease-out-quart),
                -webkit-backdrop-filter 250ms var(--ease-out-quart),
                backdrop-filter 250ms var(--ease-out-quart);
  }

  .desktop-menu-wrap.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    -webkit-backdrop-filter: saturate(180%) blur(30px);
    backdrop-filter: saturate(180%) blur(30px);
    transition-duration: 400ms;
    transition-timing-function: var(--ease-spring);
  }

  .nav-menu { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-menu a { border-radius: var(--r-thumb); padding: 0 var(--s4); font-size: 1rem; }

  /* In the disclosed menu a submenu is a static indented list, not a floating
     dropdown: there is nothing to hover and no room to float. */
  .nav-menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-width: 0;
    padding: 0 0 0 var(--s4);
    background: transparent;
    border: 0;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .header-container { position: relative; }
  .header-cta { display: none; }
  .nav-cta-inline { display: inline-flex; width: 100%; margin-top: var(--s3); }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  :root { --gutter: 18px; }
  .ledger__row {
    grid-template-columns: 34px minmax(0, 1fr);
    row-gap: var(--s3);
  }
  .ledger__note { grid-column: 2; }
  .ledger--method .ledger__row { grid-template-columns: 34px minmax(0, 1fr); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .section.ground--ink > .wrap { border-radius: var(--r-card); }

  /* Route rows stack: the situation leads, the practice it routes to sits
     beneath it rather than being squeezed into a column too narrow to read. */
  .ledger--route .ledger__row { grid-template-columns: 34px minmax(0, 1fr); }
  .ledger--route .ledger__name--target { grid-column: 2; }

  /* The rail keeps its numbers and loses its labels: five one-word labels
     still overflow a 375px viewport, and a rail you have to scroll to read
     is worse than a rail that just counts. */
  .practice-rail__name { display: none; }
  .practice-rail__num { font-size: 0.75rem; }
  .practice-rail__list { gap: var(--s5); }
  .practice-rail__item.is-current .practice-rail__name {
    display: inline;
    font-size: 0.8125rem;
  }
}

/* ============================================================
   CONSENT BANNER (Complianz)
   The plugin ships an indigo primary button and blue links. Strict
   monochrome is a client instruction on record, not a preference, so the
   banner is mapped onto the brand's own tokens here rather than in the
   plugin's colour pickers: this way it is version-controlled, and it
   survives a plugin reset or reconfiguration, which those settings do not.

   Scoped to colour, radius and shadow only. The banner's layout and its
   show/hide behaviour are the plugin's business and are left alone, so an
   update cannot be broken by this block.
   ============================================================ */

#cmplz-cookiebanner-container .cmplz-cookiebanner {
  background: var(--bond);
  color: var(--ink);
  border: 0;
  border-radius: var(--r-panel);
  box-shadow: var(--sh-panel);
  font-family: var(--font-body);
}

#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-title,
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-message {
  color: var(--ink);
}

/* Accept carries the same weight as the site's own primary button:
   Ink ground, Bond text. */
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-btn.cmplz-accept {
  background: var(--ink);
  color: var(--bond);
  border: 1px solid var(--ink);
  border-radius: var(--r-pill);
}

/* Deny must not read as the lesser option — under GDPR it has to be as
   easy to refuse as to accept — so it gets equal size and a full border
   rather than being demoted to a faint link. */
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-btn.cmplz-deny,
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-btn.cmplz-view-preferences,
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-btn.cmplz-save-preferences {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
}

#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-btn:hover,
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-btn:focus-visible {
  opacity: 0.86;
}

#cmplz-cookiebanner-container .cmplz-cookiebanner a,
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-link,
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-documents-link {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* The category toggles default to the plugin's accent; Ink keeps the one
   colour rule intact. */
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-slider-checkbox:checked + .cmplz-slider,
#cmplz-cookiebanner-container .cmplz-cookiebanner input:checked + .cmplz-slider {
  background-color: var(--ink);
}

/* Focus must stay visible on a white panel: the theme's focus token is Ink,
   which the plugin's own outline colour would otherwise override. */
#cmplz-cookiebanner-container .cmplz-cookiebanner :focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* ============================================================
   BACK TO TOP
   The long pages navigate by in-page anchor, where the browser's Back
   button leaves the document instead of returning up it. This is the
   control that does what Back appears to promise.

   Bottom-LEFT: the consent banner takes the bottom right, and the
   site's grammar already puts reference apparatus in the left margin.
   ============================================================ */

#back-to-top {
  position: fixed;
  left: var(--gutter);
  bottom: var(--gutter);
  z-index: 500;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(247, 247, 245, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: var(--sh-card);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;

  /* Hidden until the scroll handler adds .visible past 400px. Kept out of
     the tab order while invisible, so a keyboard user is never sent to a
     control they cannot see. */
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 240ms var(--ease-out-quart),
              transform 320ms var(--ease-spring),
              visibility 0s linear 240ms;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 240ms var(--ease-out-quart),
              transform 320ms var(--ease-spring),
              visibility 0s;
}

#back-to-top:hover,
#back-to-top:focus-visible {
  background: var(--ink);
  color: var(--bond);
  border-color: var(--ink);
}

#back-to-top:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  #back-to-top { transition: opacity 120ms linear, visibility 0s linear 120ms; transform: none; }
  #back-to-top.visible { transition: opacity 120ms linear, visibility 0s; }
}

@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  #back-to-top {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--bond);
  }
}
