/* alibeharlcsw.com — component styles. All theming routes through /assets/tokens.css. */

/* General Sans (Fontshare, ITF Free Font License — license: /assets/fonts/FFL.txt).
   Single variable file covers all weights. */
@font-face {
  font-family: "General Sans";
  src: url("/assets/fonts/GeneralSans-Variable.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "General Sans";
  src: url("/assets/fonts/GeneralSans-VariableItalic.woff2") format("woff2");
  font-weight: 200 700;
  font-style: italic;
  font-display: swap;
}
/* Booton (Dinamo) — licensed for this domain. NOTE: this is still the
   trial binary (reduced glyph set); swap in the retail cut from the Dinamo
   account when convenient. */
@font-face {
  font-family: "Booton";
  src: url("/assets/fonts/Booton-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
/* ABC Otto (Dinamo) — NOT LICENSED YET, so nothing is fetched over the wire.
   src is local() only: it picks up an Otto installed in Font Book and is a
   no-op everywhere else, so the stack falls through to Libre Baskerville
   without a failed request. To ship Otto for real: buy the web license, drop
   the retail woff2 in assets/fonts/, and add it as a url() src below. Never
   point this at assets/fonts/local-only/ — that trial binary is gitignored,
   so it 404s for every visitor on every page load. */
@font-face {
  font-family: "ABC Otto";
  src: local("ABC Otto"), local("ABCOtto"), local("ABC Otto Variable");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
/* Libre Baskerville (Google Fonts, SIL OFL) — Baskerville-style display. */
@font-face {
  font-family: "Libre Baskerville";
  src: url("/assets/fonts/LibreBaskerville-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* Fraunces (Google Fonts, SIL Open Font License) — display serif. */
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/Fraunces-Variable.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* Tokens are defined in /assets/tokens.css. */

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  letter-spacing: var(--tracking-body);
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout helpers */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.section {
  padding: var(--section-gap) 0;
}
.section-lg {
  padding: var(--section-gap-lg) 0;
}
.bg-soft {
  background: var(--color-ice);
}
.bg-mist {
  background: var(--color-mist-line-soft);
}
.bg-dark {
  background: var(--color-bg-dark);
  color: var(--color-pure-white);
}
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 {
  color: var(--color-pure-white);
}
.bg-dark ab-lead, .bg-dark p, .bg-dark ab-muted {
  color: var(--color-on-dark);
}

/* Typography */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-14);
  font-weight: var(--weight-medium);
  letter-spacing: 0.02em;
  color: var(--color-accent-deep);
  text-transform: none;
  margin: 0 0 var(--space-4);
}

h1,
.h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, var(--text-display));
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
  font-weight: var(--weight-medium);
  margin: 0 0 var(--space-6);
  color: var(--color-ink);
}
h2,
.h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, var(--text-heading-lg));
  line-height: var(--leading-heading-lg);
  letter-spacing: var(--tracking-heading-lg);
  font-weight: var(--weight-medium);
  margin: 0 0 var(--space-5);
  color: var(--color-ink);
}
h3,
.h3 {
  font-family: var(--font-display);
  font-size: var(--text-heading);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-heading);
  font-weight: var(--weight-medium);
  margin: 0 0 var(--space-4);
  color: var(--color-ink);
}
h4,
.h4 {
  font-family: var(--font-display);
  font-size: var(--text-heading-sm);
  line-height: var(--leading-heading-sm);
  letter-spacing: var(--tracking-heading-sm);
  font-weight: var(--weight-medium);
  margin: 0 0 var(--space-3);
  color: var(--color-ink);
}
p {
  margin: 0 0 var(--space-4);
}
.lead {
  font-size: var(--text-subheading);
  line-height: var(--leading-subheading);
  letter-spacing: var(--tracking-subheading);
  color: var(--color-slate-mist);
}
.muted {
  color: var(--color-slate-mist);
}
.text-blue {
  color: var(--color-accent-deep);
}
.text-gradient {
  background: var(--gradient-mono);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-gradient-deep {
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-accent {
  color: var(--color-accent-deep);
}
.mono {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: var(--text-13);
  letter-spacing: 0;
}

/* Links */
a.link {
  color: var(--color-accent-deep);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-fast);
}
a.link:hover {
  border-bottom-color: currentColor;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: var(--text-17);
  font-weight: var(--weight-regular);
  line-height: 1.18;
  letter-spacing: var(--tracking-normal);
  padding: var(--space-3) 22px;
  border-radius: var(--radius-buttons);
  border: 1px solid transparent;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
  white-space: nowrap;
}
.btn:active {
  transform: scale(0.98);
}
.btn-primary {
  background: var(--color-accent);
  color: var(--color-on-accent);
}
.btn-primary:hover {
  background: var(--color-accent-hover);
}
.btn-ghost {
  background: transparent;
  color: var(--color-ink);
}
.btn-ghost:hover {
  background: var(--color-mist-line-soft);
}
.btn-outline {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-mist-line);
}
.btn-outline:hover {
  border-color: var(--color-ink);
}
.btn-on-dark {
  background: var(--color-pure-white);
  color: var(--color-ink);
}
.btn-on-dark:hover {
  background: var(--color-ice);
}
.btn-arrow::after {
  content: "→";
  margin-left: var(--space-1);
  transition: transform var(--transition-base);
}
.btn:hover .btn-arrow::after,
.btn-arrow:hover::after {
  transform: translateX(2px);
}

/* Navigation — minimal closed bar + full-viewport mega menu.
   The component injects semantic markup; everything is targeted via
   element selectors against the host. No internal nav-* classes. */

ab-nav {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
}

/* Closed bar — transparent over the page top, translucent + bordered once
   scrolled, solid white while the mega menu is open. */
ab-nav > header {
  position: relative;
  z-index: 2;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 0 var(--space-6);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color var(--transition-base), border-color var(--transition-base);
}
ab-nav.is-scrolled > header {
  background: rgba(247, 246, 241, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--color-border);
}
ab-nav.is-open > header {
  background: var(--color-pure-white);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom-color: transparent;
}

/* Make every ab-* element block-level by default. */
ab-nav, ab-hero, ab-footer, ab-section, ab-section-head, ab-cta-block,
ab-post-body, ab-grid, ab-split, ab-eyebrow, ab-card, ab-lead,
ab-flex-center, ab-field, ab-container {
  display: block;
}
ab-jumpnav-link, ab-logo, ab-logo-label, ab-dot, ab-text-blue,
ab-color-block-title, ab-color-block-sub { display: inline-block; }
ab-phase-list { list-style: none; padding: 0; margin: 0; }
ab-btn, ab-link, ab-muted, ab-eyebrow {
  display: inline-block;
}

/* Avoid FOUC entirely: hide the page until all custom elements are
   upgraded, then fade it in. The .ab-ready class is added by
   /components/index.js once every ab-* tag is registered. */
body:not(.ab-ready) {
  opacity: 0;
}
body {
  opacity: 1;
  transition: opacity var(--duration-base) ease;
}

/* Cross-document view transitions — Chrome/Edge/Safari fade between
   page loads automatically. Browsers without support fall back to a
   normal full reload (no harm done). */
@view-transition {
  navigation: auto;
}

/* Dark-tone CTA block variant — used on platform/process closing CTAs. */
.cta-block-dark {
  background: var(--color-bg-dark);
  color: var(--color-pure-white);
  padding: var(--space-14) var(--space-10);
  border-radius: var(--radius-cards);
  text-align: center;
}
.cta-block-dark h2 { color: var(--color-pure-white); }
.cta-block-dark p { color: var(--color-on-dark); }

/* Centered page title — fades in when the page's first h1 scrolls past */
ab-nav > header > p {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) translateY(6px);
  margin: 0;
  max-width: min(60%, 480px);
  font-family: var(--font-display);
  font-size: var(--text-15);
  font-weight: var(--weight-medium);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--color-ink);
  text-align: center;
  pointer-events: none;
  opacity: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: opacity var(--transition-base), transform var(--transition-base);
}
ab-nav.is-title-visible > header > p {
  opacity: 1;
  transform: translate(-50%, -50%);
}
ab-nav > header > div {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* CTA pill */
ab-nav > header > .bar-right > a {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 var(--space-5);
  border: 1px solid transparent;
  border-radius: var(--radius-buttons);
  background: var(--color-ink);
  color: var(--color-pure-white);
  font-size: var(--text-15);
  letter-spacing: var(--tracking-normal);
  transition: background-color var(--transition-base), color var(--transition-base),
    border-color var(--transition-base);
}
ab-nav > header > .bar-right > a:hover {
  background: var(--color-pure-black);
}

/* Hamburger — three thin bars that morph to × when open */
ab-nav > header > .bar-right > button {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
ab-nav > header > .bar-right > button > span {
  position: relative;
  display: inline-block;
  width: 28px;
  height: 20px;
}
ab-nav > header > .bar-right > button > span > span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-ink);
  transition: transform var(--transition-base), top var(--transition-base),
    opacity var(--transition-base), background-color var(--transition-base);
}
ab-nav > header > .bar-right > button > span > span:nth-child(1) { top: 2px; }
ab-nav > header > .bar-right > button > span > span:nth-child(2) { top: 9px; }
ab-nav > header > .bar-right > button > span > span:nth-child(3) { top: 16px; }
ab-nav.is-open > header > div > button > span > span:nth-child(1) {
  top: 9px;
  transform: rotate(45deg);
}
ab-nav.is-open > header > div > button > span > span:nth-child(2) {
  opacity: 0;
}
ab-nav.is-open > header > div > button > span > span:nth-child(3) {
  top: 9px;
  transform: rotate(-45deg);
}

/* ── Mega menu — slides down like a window blind ── */
ab-nav > nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  background: var(--color-pure-white);
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-12);
  padding: calc(var(--nav-height) + var(--space-4) + var(--space-14)) var(--space-14) var(--space-20);
  transform: translateY(-100%);
  transition: transform var(--duration-slow) var(--ease-out);
}
ab-nav.is-open > nav {
  transform: translateY(0);
}

/* Primary column — huge display links */
ab-nav > nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
ab-nav > nav > ul > li + li {
  margin-top: var(--space-6);
}
ab-nav > nav > ul > li > a {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 80px);
  font-weight: var(--weight-medium);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
  color: var(--color-ink);
  transition: color var(--transition-base);
}
ab-nav > nav > ul > li > a:hover,
ab-nav > nav > ul > li > a[aria-current="page"] {
  color: var(--color-accent-deep);
}

/* Secondary columns — small label + grouped list */
ab-nav > nav > section {
  padding-top: var(--space-4);
}
ab-nav > nav > section > h2 {
  margin: 0 0 var(--space-5);
  font-family: var(--font-body);
  font-size: var(--text-13);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-normal);
  color: var(--color-slate-mist);
}
ab-nav > nav > section > ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
ab-nav > nav > section > ul > li + li {
  margin-top: var(--space-3);
}
ab-nav > nav > section > ul > li > a {
  font-size: var(--text-21);
  line-height: var(--leading-snug);
  color: var(--color-ink);
  transition: color var(--transition-base);
}
ab-nav > nav > section > ul > li > a:hover,
ab-nav > nav > section > ul > li > a[aria-current="page"] {
  color: var(--color-accent-deep);
}

@media (max-width: 760px) {
  ab-nav > header > .bar-right > a {
    display: none;
  }
  ab-nav > nav {
    grid-template-columns: 1fr;
    gap: var(--space-10);
    padding: calc(var(--nav-height) + var(--space-4) + var(--space-10)) var(--space-6) var(--space-16);
  }
  ab-nav > nav > ul > li > a {
    font-size: clamp(36px, 10vw, 56px);
  }
}

/* ── Overlay mode (home) — white logo/CTA/hamburger over hero video ── */
ab-nav[overlay]:not(.is-scrolled):not(.is-open) > header > a img {
  filter: invert(1) brightness(2);
}
ab-nav[overlay]:not(.is-scrolled):not(.is-open) > header > div > a {
  background: transparent;
  color: var(--color-pure-white);
  border-color: rgba(255, 255, 255, 0.6);
}
ab-nav[overlay]:not(.is-scrolled):not(.is-open) > header > div > a:hover {
  background: var(--color-pure-white);
  color: var(--color-ink);
  border-color: var(--color-pure-white);
}
ab-nav[overlay]:not(.is-scrolled):not(.is-open) > header > div > button > span > span {
  background: var(--color-pure-white);
}

/* Hero */
.hero,
ab-hero {
  display: block;
  padding: calc(var(--nav-height) + var(--space-4) + var(--space-20)) 0 var(--space-20);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-eyebrow {
  font-size: var(--text-14);
  letter-spacing: var(--tracking-wide);
  font-weight: var(--weight-medium);
  color: var(--color-accent-deep);
  margin-bottom: 18px;
}
.hero h1,
ab-hero h1 {
  font-size: clamp(48px, 7vw, 88px);
  line-height: var(--leading-none);
  letter-spacing: -0.03em;
  margin: 0 0 var(--space-10);
}
.hero .hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(40px, 8vw, 96px);
  line-height: var(--leading-none);
  letter-spacing: var(--tracking-display);
  font-weight: var(--weight-medium);
  margin: 0 0 var(--space-8);
}
.hero p.lead,
ab-hero p.lead {
  max-width: var(--content-narrow);
  margin: 0 auto 36px;
}
.hero-cta {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.hero-decor {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(0, 113, 227, 0.06), transparent 60%),
    radial-gradient(40% 35% at 80% 20%, rgba(0, 113, 227, 0.04), transparent 60%);
  z-index: -1;
}

/* Cards / grids */
.grid {
  display: grid;
  gap: var(--space-6);
}
.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--color-pure-white);
  border-radius: var(--radius-cards);
  padding: var(--space-9);
  border: var(--border);
}
.card-frost {
  background: var(--color-ice);
  border: none;
}
.card-dark {
  background: var(--color-ink);
  color: var(--color-pure-white);
  border: none;
}
.card-dark .muted,
.card-dark p {
  color: rgba(255, 255, 255, 0.72);
}
.card h3 {
  margin-bottom: var(--space-3);
}
.card-tall {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-height: 320px;
  justify-content: space-between;
}
.card-eyebrow {
  font-size: var(--text-13);
  font-weight: var(--weight-medium);
  letter-spacing: 0.02em;
  color: var(--color-accent-deep);
  margin-bottom: var(--space-2);
}
.card-feature {
  padding: var(--space-14);
}

/* Two-column layouts */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-14);
  align-items: center;
}
.split-top {
  align-items: start;
}
@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

/* Section header */
.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}
.section-head .eyebrow {
  margin-bottom: var(--space-3);
}
.section-head h2 {
  margin-bottom: var(--space-8);
}

/* Big CTA */
.cta-block {
  text-align: center;
  padding: var(--space-24) var(--space-6);
}
.cta-block h2 {
  margin-bottom: var(--space-3);
}
.cta-block p {
  margin-bottom: var(--space-8);
}

/* Footer */
.footer,
ab-footer {
  display: block;
  background: var(--color-ice);
  padding: var(--space-16) 0 var(--space-10);
  font-size: var(--text-13);
  color: var(--color-slate-mist);
}
ab-footer h5 {
  font-size: var(--text-13);
  font-weight: var(--weight-medium);
  color: var(--color-ink);
  margin: 0 0 var(--space-4);
  letter-spacing: var(--tracking-normal);
}
ab-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
ab-footer li {
  margin-bottom: 10px;
}
ab-footer a {
  color: var(--color-slate-mist);
}
ab-footer a:hover {
  color: var(--color-ink);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: var(--border-soft);
}
.footer h5 {
  font-size: var(--text-13);
  font-weight: var(--weight-medium);
  color: var(--color-ink);
  margin: 0 0 var(--space-4);
  letter-spacing: var(--tracking-normal);
}
.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer li {
  margin-bottom: 10px;
}
.footer a {
  color: var(--color-slate-mist);
}
.footer a:hover {
  color: var(--color-ink);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-6);
  font-size: var(--text-12);
}
.footer-legal {
  display: flex;
  gap: var(--space-5);
}
.footer-brand-line {
  color: var(--color-ink);
  font-weight: var(--weight-medium);
  font-family: var(--font-display);
  letter-spacing: var(--tracking-normal);
  margin-bottom: var(--space-3);
  font-size: var(--text-17);
}
@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-2);
    align-items: flex-start;
  }
}

/* Form */
.form,
form {
  display: grid;
  gap: var(--space-6);
  max-width: 560px;
  margin-top: var(--space-6);
}
form > div:has(ab-btn) {
  margin-top: var(--space-3);
}
.field {
  display: grid;
  gap: var(--space-3);
}
.field label {
  font-size: var(--text-13);
  font-weight: var(--weight-medium);
  color: var(--color-ink);
  letter-spacing: var(--tracking-normal);
}
.field input,
.field textarea,
.field select {
  font: inherit;
  width: 100%;
  padding: 14px var(--space-4);
  background: var(--color-pure-white);
  border: 1px solid var(--color-mist-line);
  border-radius: 12px;
  color: var(--color-ink);
  font-size: var(--text-16);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}
.field textarea {
  min-height: 140px;
  resize: vertical;
}

/* Long-form post body (Manifesto, Security) */
.post-body {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-6) var(--space-20);
  font-size: var(--text-18);
  line-height: var(--leading-loose);
  color: var(--color-ink);
}
.post-body h2 {
  margin: var(--space-14) 0 var(--space-8);
  font-size: clamp(28px, 3.6vw, 40px);
}
.post-body h2:first-child {
  margin-top: 0;
}
.post-body h3 {
  margin: var(--space-8) 0 var(--space-3);
  font-size: var(--text-20);
}
.post-body p {
  margin: 0 0 var(--space-5);
  color: var(--color-navy-slate);
}
.post-body blockquote {
  margin: var(--space-8) 0;
  padding: var(--space-5) var(--space-7);
  border-left: 3px solid var(--color-accent);
  background: var(--color-ice);
  border-radius: 0 12px 12px 0;
}
.post-body blockquote p {
  font-family: var(--font-display);
  font-size: var(--text-22);
  line-height: 1.3;
  letter-spacing: var(--tracking-tight);
  color: var(--color-ink);
  margin: 0;
}
.post-body a.link {
  color: var(--color-accent-deep);
  border-bottom: 1px solid currentColor;
}
.post-body ul {
  margin: 0 0 var(--space-5);
  padding-left: var(--space-6);
  list-style: disc;
}
.post-body li {
  margin: 0 0 var(--space-2);
  color: var(--color-navy-slate);
}
.post-body li strong {
  color: var(--color-ink);
}
.security-badge {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-8);
  align-items: stretch;
  background: var(--color-ice);
  padding: var(--space-8);
  border-radius: var(--radius-cards);
  margin: var(--space-8) 0;
}
.security-badge h2 {
  margin-top: 0;
}
.security-badge aside {
  text-align: right;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-self: stretch;
}
.security-badge aside strong {
  font-family: var(--font-display);
  font-weight: var(--weight-medium);
  font-size: var(--text-16);
}
.security-badge aside span {
  font-size: var(--text-13);
  letter-spacing: var(--tracking-normal);
  color: var(--color-slate-mist);
}
.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin: var(--space-6) 0 var(--space-8);
}
@media (max-width: 700px) {
  .security-grid,
  .security-badge {
    grid-template-columns: 1fr;
  }
  .security-badge aside {
    text-align: left;
  }
}
.security-grid article {
  padding: var(--space-6);
  border: var(--border);
  border-radius: 16px;
  background: var(--color-pure-white);
}
.security-grid h3 {
  margin: 0 0 var(--space-2);
  font-size: var(--text-18);
}
.security-grid p {
  margin: 0;
  color: var(--color-slate-mist);
  font-size: var(--text-15);
  line-height: var(--leading-relaxed);
}

/* Utility */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-8 { margin-top: var(--space-2); }
.mt-16 { margin-top: var(--space-4); }
.mt-24 { margin-top: var(--space-6); }
.mt-32 { margin-top: var(--space-8); }
.mt-48 { margin-top: var(--space-12); }
.mb-8 { margin-bottom: var(--space-2); }
.mb-16 { margin-bottom: var(--space-4); }
.mb-24 { margin-bottom: var(--space-6); }
.mb-32 { margin-bottom: var(--space-8); }
.mb-48 { margin-bottom: var(--space-12); }
.text-center { text-align: center; }
.flex { display: flex; gap: 10px; }
.flex-center { display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: var(--space-12); }
.divider {
  height: 1px;
  background: var(--color-mist-line-soft);
  border: 0;
  margin: 0;
}

/* ───────────────────────────────────────────────────────── Accessibility ── */

/* Skip link — first focusable element; visible only when focused. */
.skip-link {
  position: fixed;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 1000;
  padding: var(--space-2) var(--space-4);
  background: var(--color-ink);
  color: var(--color-pure-white);
  border-radius: var(--radius-buttons);
  font-size: var(--text-14);
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform var(--transition-fast);
}
.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--color-pure-white);
  outline-offset: 2px;
}

/* Visible keyboard focus ring across interactive elements. Mouse users keep a
   clean look (focus-visible only). */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-default);
}

/* Note: motion is reduced only when a visitor opts in via the <ab-a11y>
   widget (html[data-a11y-motion="off"]), not from the OS setting — so the
   site's intended animations and the hero video play by default. */

/* ── User-toggled preferences (set on <html> by <ab-a11y>) ── */

/* Larger text — px-based type tokens don't scale via root font-size, so zoom. */
html[data-a11y-text="lg"] {
  zoom: 1.15;
}

/* High contrast — push the semantic + raw tokens to AA-safe values; the whole
   token-driven site inherits the change. */
html[data-a11y-contrast] {
  --color-text: #000000;
  --color-text-muted: #1a1a1a;
  --color-slate-mist: #1a1a1a;
  --color-ink: #000000;
  --color-navy-slate: #1a1a1a;
  --color-bg: #ffffff;
  --color-border: #000000;
  --color-border-soft: #000000;
  --color-mist-line-soft: #767676;
  --color-accent: #0030a8;
  --color-accent-deep: #0030a8;
  --color-accent-deep: #0030a8;
}
html[data-a11y-contrast] a {
  text-decoration: underline;
}

/* Reduce motion (manual toggle, mirrors the media query). */
html[data-a11y-motion="off"] *,
html[data-a11y-motion="off"] *::before,
html[data-a11y-motion="off"] *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}

/* Underline all links. */
html[data-a11y-links="underline"] a {
  text-decoration: underline !important;
}

/* ── The widget itself ── */
ab-a11y {
  position: fixed;
  bottom: var(--space-5);
  right: var(--space-5);
  z-index: 90;
  display: block;
}
.a11y-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: var(--border);
  background: var(--color-pure-white);
  color: var(--color-ink);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}
.a11y-btn:hover {
  background: var(--color-ice);
  transform: translateY(-1px);
}
.a11y-btn svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}
.a11y-panel {
  position: absolute;
  bottom: calc(100% + var(--space-3));
  right: 0;
  width: 248px;
  background: var(--color-pure-white);
  border: var(--border);
  border-radius: var(--radius-cards);
  box-shadow: var(--shadow-soft);
  padding: var(--space-4);
}
.a11y-title {
  margin: 0 0 var(--space-3);
  font-size: var(--text-12);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.a11y-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.a11y-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-2) var(--space-3);
  border: 0;
  border-radius: var(--radius-default);
  background: transparent;
  color: var(--color-text);
  font-size: var(--text-15);
  text-align: left;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}
.a11y-opt:hover {
  background: var(--color-ice);
}
.a11y-knob {
  flex: 0 0 auto;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: var(--color-mist-line);
  position: relative;
  transition: background-color var(--transition-fast);
}
.a11y-knob::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-pure-white);
  transition: transform var(--transition-fast);
}
.a11y-opt[aria-checked="true"] .a11y-knob {
  background: var(--color-accent);
}
.a11y-opt[aria-checked="true"] .a11y-knob::after {
  transform: translateX(16px);
}
.a11y-reset {
  margin-top: var(--space-3);
  width: 100%;
  padding: var(--space-2);
  border: var(--border);
  border-radius: var(--radius-buttons);
  background: transparent;
  color: var(--color-text-muted);
  font-size: var(--text-13);
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}
.a11y-reset:hover {
  background: var(--color-ice);
  color: var(--color-text);
}


/* ── Aura — ambient gradient art (the site's imagery in place of stock photos) ── */
ab-hero,
ab-section,
ab-card {
  position: relative;
}
ab-card {
  overflow: hidden;
}
ab-hero > .container,
ab-section > .container,
ab-section > .container-wide,
ab-section > .container-narrow,
ab-card > :not(ab-aura) {
  position: relative;
  z-index: 1;
}
ab-aura {
  display: block;
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
ab-aura .aura-blob {
  display: block;
  position: absolute;
  border-radius: 28% 34% 24% 36% / 32% 26% 36% 28%;
  filter: blur(clamp(36px, 5vw, 64px));
  will-change: transform, opacity;
  animation: aura-drift 32s var(--ease-in-out) infinite alternate;
}
/* Film grain over the wash — inline SVG noise, no external request.
   Scoped to contained fields (hero, wash panels); bare section blobs stay clean. */
ab-hero > ab-aura::after,
.wash > ab-aura::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix type='saturate' values='0'/></filter><rect width='240' height='240' filter='url(%23n)' opacity='0.6'/></svg>");
  background-size: 240px 240px;
  mix-blend-mode: soft-light;
  opacity: 0.55;
}
ab-aura .aura-blob:nth-child(1) {
  width: 46%;
  aspect-ratio: 1;
  left: -12%;
  top: -24%;
  background: var(--aura-steel);
  animation-duration: 36s;
}
ab-aura .aura-blob:nth-child(2) {
  width: 34%;
  aspect-ratio: 1;
  right: -10%;
  top: 6%;
  background: var(--aura-pale);
  animation-duration: 27s;
  animation-delay: -9s;
}
ab-aura .aura-blob:nth-child(3) {
  width: 28%;
  aspect-ratio: 1;
  left: 28%;
  bottom: -26%;
  background: var(--aura-blush);
  animation-duration: 44s;
  animation-delay: -18s;
}
/* Lead-blob hue variants */
ab-aura[hue="pale"] .aura-blob:nth-child(1) {
  background: var(--aura-pale);
}
ab-aura[hue="pale"] .aura-blob:nth-child(2) {
  background: var(--aura-blush);
}
ab-aura[hue="blush"] .aura-blob:nth-child(1) {
  background: var(--aura-blush);
}
ab-aura[hue="blush"] .aura-blob:nth-child(3) {
  background: var(--aura-steel);
}
@keyframes aura-drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.9;
  }
  50% {
    transform: translate3d(4%, -3%, 0) scale(1.07);
    opacity: 1;
  }
  100% {
    transform: translate3d(-3%, 2%, 0) scale(0.95);
    opacity: 0.85;
  }
}
/* Ambient auras are large background motion — they respect the OS
   reduced-motion setting outright, plus the a11y widget toggle. */
@media (prefers-reduced-motion: reduce) {
  ab-aura .aura-blob {
    animation: none;
  }
}
ab-aura[static] .aura-blob {
  animation: none;
}

/* ── Nav wordmark (text brand — no logo asset) ── */
ab-nav header a.brand {
  font-size: var(--text-17);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-normal);
  color: var(--color-ink);
  white-space: nowrap;
}

/* ── Footer crisis note ── */
.footer-crisis {
  max-width: 620px;
  margin: var(--space-8) 0 0;
  font-size: var(--text-13);
  line-height: var(--leading-normal);
  color: var(--color-slate-mist);
}
.footer-crisis a {
  color: var(--color-accent-deep);
  font-weight: var(--weight-medium);
}

/* ── Photos are soft-edged site-wide, matching the card radius ── */
main img {
  border-radius: var(--radius-cards);
}

/* ── Split hero — text left, rounded portrait right, aura behind ── */
ab-hero.hero-split {
  text-align: left;
}
ab-hero.hero-split > .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-16);
  align-items: center;
}
ab-hero.hero-split h1 {
  font-size: clamp(40px, 4.6vw, 64px);
  margin-bottom: var(--space-8);
}
ab-hero.hero-split img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-cards);
  box-shadow: var(--shadow-soft);
}
@media (max-width: 900px) {
  ab-hero.hero-split > .container {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
}


/* ── Olive/butter scheme accents: pill buttons, mono eyebrows, yellow nav CTA ── */
.btn {
  border-radius: 999px;
}
.eyebrow,
.hero-eyebrow,
.card-eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  font-size: var(--text-12);
  letter-spacing: 0.09em;
  color: var(--color-text-muted);
}
ab-nav > header > .bar-right > a {
  background: transparent;
  color: var(--color-ink);
  border: 1px solid var(--color-border) !important;
  font-family: var(--font-body);
  text-transform: uppercase;
  font-size: var(--text-12);
  letter-spacing: 0.07em;
  border-radius: 999px;
}
ab-nav > header > .bar-right > a:hover {
  background: var(--color-pure-white);
  color: var(--color-ink);
}

/* ── Trim-loss restorations: layout classes the components reference ── */
.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.grid-spaced {
  gap: var(--space-6);
}
.split-flip > :first-child {
  order: 2;
}
.split-flip > :last-child {
  order: 1;
}
.section-head-lg h2 {
  font-size: clamp(40px, 5.5vw, var(--text-64));
}

/* ── Editorial split (Ode grammar): short statement left, washed text right ── */
.split-editorial {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: stretch;
}
.split-editorial > div:first-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
@media (max-width: 900px) {
  .split-editorial {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}
.wash {
  position: relative;
  padding: clamp(28px, 5vw, 72px);
}
.wash > ab-aura {
  border-radius: var(--radius-cards);
}
.wash > :not(ab-aura) {
  position: relative;
  z-index: 1;
}
.wash p {
  color: var(--color-slate-mist);
  max-width: 56ch;
}
.wash p strong {
  color: var(--color-ink);
}

/* Plume aura — one large soft field anchored high, like a single brushed cloud */
ab-aura[shape="plume"] .aura-blob:nth-child(2),
ab-aura[shape="plume"] .aura-blob:nth-child(3) {
  display: none;
}
ab-aura[shape="plume"] .aura-blob:nth-child(1) {
  width: 130%;
  left: -18%;
  top: -35%;
  border-radius: 34% 38% 30% 40% / 36% 32% 40% 34%;
  background: var(--aura-pale);
}
ab-aura[shape="plume"][hue="blush"] .aura-blob:nth-child(1) {
  background: var(--aura-blush);
}
ab-aura[shape="plume"][hue="steel"] .aura-blob:nth-child(1) {
  background: var(--aura-steel);
}

/* Numbered section label chip */
.head-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: var(--text-12);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-on-chip);
  background: var(--color-chip);
  border-radius: 6px;
  padding: 3px 9px;
  margin-right: var(--space-3);
  vertical-align: 0.35em;
}

/* Editorial plain list — hairline rows instead of cards */
.plain-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 56ch;
}
.plain-list li {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-ink);
}
.plain-list li:last-child {
  border-bottom: none;
}

/* ── Chip row — compact specialty tags ── */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--color-pure-white);
  border: 1px solid var(--color-border);
  font-size: var(--text-14);
  color: var(--color-ink);
}
a.chip:hover {
  border-color: var(--color-ink);
}


/* ── Slick pass: Ode-scale type, mono pill buttons, muted body copy ── */
h1, .h1 {
  font-size: clamp(26px, 2.8vw, 36px);
  letter-spacing: -0.02em;
}
h2, .h2 {
  font-size: clamp(19px, 1.9vw, 24px);
  letter-spacing: -0.015em;
}
h3, .h3 {
  font-size: var(--text-18);
}
h4, .h4 {
  font-size: var(--text-16);
}
.lead,
ab-hero p.lead {
  font-size: var(--text-17);
}
ab-hero h1 {
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.04;
}
ab-hero.hero-split h1 {
  font-size: clamp(26px, 2.8vw, 36px);
}
.hero-eyebrow {
  font-size: var(--text-11);
}
.btn {
  font-family: var(--font-body);
  text-transform: uppercase;
  font-size: var(--text-12);
  font-weight: var(--weight-medium);
  letter-spacing: 0.06em;
  padding: 10px 18px;
}
ab-post-body p, .post-body p {
  color: var(--color-slate-mist);
}
ab-post-body strong, .post-body strong {
  color: var(--color-ink);
  font-weight: var(--weight-medium);
}
.card h3 {
  font-size: var(--text-17);
}
.card p {
  font-size: var(--text-14);
  color: var(--color-slate-mist);
}
.plain-list li {
  font-size: var(--text-14);
}
.cta-block-dark {
  padding: var(--space-16) var(--space-10);
}


/* ── Minimal hero (Ode grammar): tiny line top-left, comet plume, line lower-right ── */
ab-hero.hero-minimal {
  text-align: left;
  padding: calc(var(--nav-height) + 10vh) 0 14vh;
}
ab-hero.hero-minimal > .container {
  position: relative;
  min-height: 44vh;
}
.hero-line-a {
  margin: 0;
  font-size: var(--text-20);
  letter-spacing: var(--tracking-normal);
  color: var(--color-ink);
  max-width: 30ch;
}
.hero-line-b {
  position: relative;
  z-index: 2;
  margin: 24vh 0 0 52%;
  font-size: var(--text-16);
  color: var(--color-slate-mist);
  max-width: 22ch;
}
ab-hero.hero-minimal .hero-cta {
  position: relative;
  z-index: 2;
  margin: var(--space-5) 0 0 52%;
}
.hero-cutout {
  position: absolute;
  right: 5%;
  bottom: -4vh;
  width: clamp(160px, 18vw, 250px);
  height: auto;
  border-radius: 0;
  box-shadow: none;
  z-index: 1;
  pointer-events: none;
}
@media (max-width: 900px) {
  .hero-line-b,
  ab-hero.hero-minimal .hero-cta {
    margin-left: 0;
  }
  .hero-line-b {
    margin-top: 34vh;
  }
  .hero-cutout {
    right: -4%;
    bottom: 10vh;
    width: 160px;
    opacity: 0.9;
  }
}

/* Comet plume — wide soft sweep with a rounded tip, Ode hero style */
ab-aura[shape="comet"] .aura-blob:nth-child(2),
ab-aura[shape="comet"] .aura-blob:nth-child(3) {
  display: none;
}
ab-aura[shape="comet"] .aura-blob:nth-child(1) {
  width: 74%;
  height: 34%;
  aspect-ratio: auto;
  left: 6%;
  top: 30%;
  border-radius: 50% 52% 54% 48% / 62% 58% 60% 56%;
  background: var(--aura-steel);
}

/* ── Section separation: all-white ground, fine dotted dividers (Ode style) ── */
main > * + ab-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background-image: repeating-linear-gradient(90deg, var(--color-border) 0 2px, transparent 2px 9px);
  z-index: 1;
}


/* Editorial split: left-align the head with its statement */
.split-editorial .section-head {
  text-align: left;
  margin: 0 0 var(--space-4);
  max-width: none;
}
.split-editorial .section-head h2,
.split-editorial .section-head .h2 {
  margin-bottom: 0;
}

/* ── Visible bar links (Ode-style) + card link baseline ── */
ab-nav > header > .bar-left {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.bar-links {
  display: flex;
  gap: var(--space-5);
}
.bar-links a {
  font-size: var(--text-14);
  color: var(--color-ink);
  border-bottom: 1px solid transparent;
}
.bar-links a:hover,
.bar-links a[aria-current="page"] {
  border-bottom-color: var(--color-ink);
}
@media (max-width: 760px) {
  .bar-links {
    display: none;
  }
}
.card {
  display: flex;
  flex-direction: column;
}
.card ab-link {
  margin-top: auto;
}


/* ── Word cycler ── */
.rotate-line {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 27px);
  line-height: 1.35;
  font-weight: var(--weight-medium);
  color: var(--color-ink);
}
ab-rotate.rotate {
  display: inline-grid;
  color: var(--color-accent-deep);
}
ab-rotate.rotate > span {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 480ms var(--ease-out), transform 480ms var(--ease-out);
  white-space: nowrap;
}
ab-rotate.rotate > span.is-active {
  opacity: 1;
  transform: translateY(0);
}


/* ── Floating bubbles ── */
ab-bubbles {
  display: block;
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.wash > ab-bubbles {
  position: absolute;
  z-index: 0;
}
ab-bubbles .bubble {
  position: absolute;
  top: 104%;
  border-radius: 50%;
  opacity: 0;
  animation-name: bubble-rise;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: top, transform;
}
@keyframes bubble-rise {
  0% {
    top: 104%;
    transform: translateX(0);
    opacity: 0;
  }
  10% {
    opacity: var(--bo, 0.5);
  }
  50% {
    transform: translateX(var(--sway, 20px));
  }
  90% {
    opacity: var(--bo, 0.5);
  }
  100% {
    top: -12%;
    transform: translateX(calc(var(--sway, 20px) * -0.6));
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  ab-bubbles {
    display: none;
  }
}
html[data-a11y-motion="off"] ab-bubbles {
  display: none;
}


/* ── Floating word pills ── */
ab-float-words {
  display: block;
  position: relative;
  height: 100%;
  min-height: 340px;
}
.float-word {
  position: absolute;
  padding: 9px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(228, 190, 170, 0.5), rgba(223, 170, 191, 0.36));
  color: var(--color-ink);
  font-size: var(--text-14);
  white-space: nowrap;
  animation: word-float ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes word-float {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(var(--fx, 8px), var(--fy, -8px));
  }
}
@media (prefers-reduced-motion: reduce) {
  .float-word {
    animation: none;
  }
}
.wash {
  overflow: hidden;
  border-radius: var(--radius-cards);
}




.mtn-cloud {
  position: absolute;
  left: -130px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  filter: blur(7px);
  animation: cloud-drift linear infinite;
}
@keyframes cloud-drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(640px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .mtn-cloud {
    animation: none;
    opacity: 0;
  }
}






/* ── First section of a page without a hero: clear the fixed nav ── */
ab-section.page-top {
  padding-top: calc(var(--nav-height) + var(--space-16));
}


/* ── Mountain scape — frameless painted band with drifting clouds ── */
.mountain-scape {
  position: relative;
  margin-top: auto;
  padding-top: var(--space-10);
  width: 100%;
  max-width: 380px;
  aspect-ratio: 40 / 21;
  overflow: hidden;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%),
    linear-gradient(180deg, transparent 0, #000 16%, #000 84%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%),
    linear-gradient(180deg, transparent 0, #000 16%, #000 84%, transparent 100%);
  mask-composite: intersect;
}
.mountain-scape img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 74%;
  border-radius: 0;
  display: block;
}


/* ── Soft-blend photos (hero treatment applied to page photos) ── */
img.soft-blend {
  border-radius: 0;
  box-shadow: none;
}


/* Anchored sections scroll clear of the fixed nav */
ab-section[id] {
  scroll-margin-top: calc(var(--nav-height) + 12px);
}


/* ── Photo mounted on a wash panel (About section) ── */
.about-photo-col {
  max-width: 380px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.wash-photo {
  padding: clamp(6px, 1.2vw, 14px);
  max-width: 330px;
}
.wash-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1.02;
  object-fit: cover;
  object-position: 50% 26%;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%),
    linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%),
    linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%);
  mask-composite: intersect;
}


/* ── Hover language: cards lift, chips rise ── */
.card {
  border: 1px solid transparent;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
  border-color: var(--color-border);
}
.chip {
  transition: transform var(--transition-base), border-color var(--transition-base), background-color var(--transition-base);
}
.chip:hover {
  transform: translateY(-2px);
  border-color: var(--color-ink);
  background: var(--color-pure-white);
}

/* ── Credential pills floating above the About photo ── */
.cred-row {
  position: relative;
  z-index: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  margin: var(--space-10) 0 0;
}
.chip-bob {
  animation: word-float ease-in-out infinite alternate;
  will-change: transform;
}
.chip-bob:hover {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  .chip-bob {
    animation: none;
  }
}


/* ── Feminine display pass: Fraunces headings, gentler tracking ── */
h1, .h1, h2, .h2, h3, .h3, h4, .h4,
ab-hero h1, .hero-line-a {
  font-family: var(--font-display);
  letter-spacing: -0.008em;
  font-weight: 400;
}
.rotate-line {
  font-family: var(--font-display);
  font-weight: 480;
}

/* ── Type experiment: serif italic leads, lowercase mono buttons, serif wordmark ── */
.lead,
ab-hero p.lead,
.hero-line-b {
  font-family: var(--font-display);
  font-style: italic;
}
.btn,
ab-nav > header > .bar-right > a {
  text-transform: none;
  letter-spacing: 0.015em;
}
ab-nav header a.brand {
  font-family: var(--font-display);
  font-size: var(--text-19);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════ Mobile pass ══ */
@media (max-width: 760px) {
  /* Nav: the sticky page title collides with the wordmark — drop it, and
     bring the consultation CTA back so the conversion path is one tap. */
  ab-nav > header > p[data-nav-title] {
    display: none;
  }
  ab-nav > header {
    padding: 0 var(--space-4);
    gap: var(--space-2);
  }
  ab-nav header a.brand {
    font-size: var(--text-16);
  }
  ab-nav > header > .bar-right {
    display: flex;
    align-items: center;
    gap: var(--space-2);
  }
  ab-nav > header > .bar-right > a {
    display: inline-flex;
    font-size: 11px;
    padding: 7px 12px;
    white-space: nowrap;
  }

  /* Hero: photo flows inline instead of absolutely overlapping the copy. */
  ab-hero.hero-minimal {
    padding: calc(var(--nav-height) + var(--space-10)) 0 var(--space-14);
  }
  ab-hero.hero-minimal > .container {
    min-height: 0;
  }
  .hero-line-a {
    font-size: clamp(24px, 6.4vw, 30px);
    max-width: 22ch;
  }
  .hero-line-b,
  ab-hero.hero-minimal .hero-cta {
    margin-left: 0;
  }
  .hero-line-b {
    margin-top: var(--space-4);
    max-width: 30ch;
  }
  ab-hero.hero-minimal .hero-cta {
    margin-top: var(--space-5);
  }

  /* Word pills: absolute scatter overlaps at this width — flow them. */
  ab-float-words {
    min-height: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
  }
  .float-word {
    position: static;
    animation: none;
  }

  /* Panels + sections: tighter, less dead space. */
  .wash {
    padding: var(--space-6);
  }
  .section {
    padding: var(--space-14) 0;
  }
  .cta-block-dark {
    padding: var(--space-12) var(--space-6);
  }
  .container,
  .container-wide,
  .container-narrow {
    padding: 0 var(--space-5);
  }

  /* Full-width tap targets for primary actions. */
  .hero-cta .btn,
  ab-cta-block .btn {
    width: 100%;
    justify-content: center;
  }
  .cred-row {
    margin-top: var(--space-6);
  }
  .about-photo-col {
    justify-content: flex-start;
    max-width: none;
  }
  form .btn {
    width: 100%;
    justify-content: center;
  }
  .split-editorial,
  .split {
    gap: var(--space-6);
  }
}

/* Anchor targets (and in-page headings) clear the fixed bar when jumped to. */
[id] {
  scroll-margin-top: calc(var(--nav-height) + 16px);
}


/* ── Hero figure: crisp cutout set on a soft pink disc ── */
.hero-figure {
  display: block;
  position: absolute;
  right: 2%;
  bottom: -6vh;
  width: clamp(180px, 19.5vw, 272px);
  margin: 0;
  padding: 0;
  z-index: 1;
  pointer-events: none;
}
.hero-disc {
  position: absolute;
  left: 50%;
  top: 34%;
  transform: translate(-50%, -50%);
  width: 118%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 44%,
      rgba(232, 179, 196, 0.55) 0%,
      rgba(228, 190, 170, 0.3) 52%,
      rgba(228, 190, 170, 0) 72%);
}
.hero-cut {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  border-radius: 0;
  filter: drop-shadow(0 12px 26px rgba(27, 26, 23, 0.12));
}
/* Subject scales independently of the disc behind her. */
.hero-cut {
  transform: scale(0.9);
  transform-origin: 50% 50%;
}
@media (max-width: 760px) {
  .hero-figure {
    position: relative;
    right: auto;
    bottom: auto;
    width: 52%;
    max-width: 180px;
    margin: var(--space-9) auto var(--space-3);
    padding: 0;
  }
  .hero-disc {
    position: absolute;
    left: 50%;
    top: 46%;
    transform: translate(-50%, -50%);
    width: 138%;
    aspect-ratio: 1;
    border-radius: 50%;
    background:
      radial-gradient(circle at 50% 44%,
        rgba(232, 179, 196, 0.62) 0%,
        rgba(228, 190, 170, 0.34) 52%,
        rgba(228, 190, 170, 0) 72%);
  }
  .hero-cut {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    border-radius: 0;
    filter: drop-shadow(0 10px 22px rgba(27, 26, 23, 0.13));
  }
}


/* ── Airy editorial blocks (light wide-tracked heads, centred copy) ── */
.airy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(64px, 9vw, 150px) clamp(56px, 8vw, 130px);
}
.airy-block {
  text-align: center;
}
.airy-head {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: none;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.005em;
  line-height: 1.25;
  color: var(--color-ink);
  margin: 0 0 var(--space-8);
}
.airy-block p {
  max-width: 46ch;
  margin: 0 auto var(--space-5);
  line-height: 1.95;
  color: var(--color-slate-mist);
}
.airy-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.airy-list li {
  font-weight: var(--weight-medium);
  color: var(--color-ink);
  line-height: 1.35;
  padding: var(--space-2) 0;
}
.airy-cta {
  margin-top: var(--space-8);
  text-align: center;
}
/* Pink panel sitting inside an airy cell */
.airy-block .wash {
  text-align: left;
  margin-top: var(--space-2);
}
@media (max-width: 760px) {
  .airy-grid {
    grid-template-columns: 1fr;
    gap: var(--space-16);
  }
  .airy-block p {
    line-height: 1.8;
  }
}


/* Full-width airy block + multi-column list flow */
.airy-span {
  grid-column: 1 / -1;
}
.airy-list-flow {
  columns: 3;
  column-gap: var(--space-10);
  max-width: 720px;
  margin: 0 auto;
}
.airy-list-flow li {
  break-inside: avoid;
}
@media (max-width: 760px) {
  .airy-list-flow {
    columns: 1;
  }
}

/* Secondary-tone pills (modalities) inside the floating panel */
.float-word-alt {
  background: linear-gradient(135deg, rgba(181, 205, 229, 0.62), rgba(198, 216, 233, 0.45));
  color: var(--color-on-chip);
}
/* The panel holds more terms now — give it room. */
ab-float-words {
  min-height: 320px;
}
/* Second panel: cooler ground for the modality pills */
.wash-alt {
  background: linear-gradient(150deg, rgba(219, 231, 242, 0.62), rgba(240, 236, 228, 0.5));
}


/* Small label sitting at the top of a floating panel */
.panel-label {
  position: relative;
  z-index: 1;
  margin: 0 0 var(--space-4);
  font-family: var(--font-body);
  text-transform: uppercase;
  font-size: var(--text-11);
  letter-spacing: 0.09em;
  color: var(--color-slate-mist);
}


/* ── Buttons: warm brown with cream type, body face (no mono) ── */
.btn {
  font-family: var(--font-body);
  text-transform: none;
  font-size: var(--text-15);
  font-weight: var(--weight-medium);
  letter-spacing: 0.005em;
  padding: 12px 22px;
}
.btn-primary {
  background: var(--color-brown-deep);
  color: var(--color-cream);
}
.btn-primary:hover {
  background: var(--color-brown-deeper);
  color: var(--color-cream);
}
/* Closing CTA panel. Uses the deeper terracotta, not the decorative one:
   white-on-#c07a63 is 3.38:1 and the body copy only 2.86:1, both under AA.
   On -deep the heading clears 5.15:1 and the cream button text 4.76:1. */
.cta-block-dark {
  background: var(--color-brown-deep);
}
/* The global 84% white lands at 4.17:1 here; 92% clears AA at 4.64:1 while
   keeping the body copy a step softer than the heading. */
.cta-block-dark p {
  color: rgba(255, 255, 255, 0.92);
}
.cta-block-dark .btn-on-dark {
  background: var(--color-cream);
  color: var(--color-brown-deep);
}
.cta-block-dark .btn-on-dark:hover {
  background: var(--color-pure-white);
  color: var(--color-brown-deeper);
}


/* Disc retired — the aura behind the hero carries the colour now. */
.hero-disc {
  display: none;
}

/* ── Hero frame: a drawn box the figure breaks out of ── */
.hero-frame {
  position: absolute;
  left: 30%;
  right: 5%;
  top: 30%;
  bottom: 6%;
  border: 1px solid rgba(192, 122, 99, 0.5);
  border-radius: 14px;
  z-index: 0;
  pointer-events: none;
}
@media (max-width: 760px) {
  .hero-frame {
    left: 6%;
    right: 6%;
    top: 22%;
    bottom: 10%;
  }
}

/* Hero photo (full frame, not a cutout) */
.hero-cut {
  transform: none;
  border-radius: var(--radius-cards);
  box-shadow: 0 14px 40px rgba(27, 26, 23, 0.13);
}
.hero-figure {
  width: clamp(200px, 23vw, 330px);
}
@media (max-width: 760px) {
  .hero-figure {
    width: 74%;
    max-width: 300px;
  }
}

/* ── Hero composition: text stack left, photo right, vertically centred ── */
ab-hero.hero-minimal > .container {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  column-gap: clamp(32px, 5vw, 84px);
  align-items: center;
  min-height: 0;
}
.hero-line-a {
  grid-column: 1;
  grid-row: 1;
  margin: 0 0 var(--space-6);
  max-width: 17ch;
  align-self: end;
}
.hero-line-b {
  grid-column: 1;
  grid-row: 2;
  margin: 0 0 var(--space-7);
  max-width: 32ch;
  align-self: start;
}
ab-hero.hero-minimal .hero-cta {
  grid-column: 1;
  grid-row: 3;
  margin: 0;
  align-self: start;
}
.hero-figure {
  grid-column: 2;
  grid-row: 1 / 4;
  position: relative;
  right: auto;
  bottom: auto;
  justify-self: center;
  align-self: center;
  width: 100%;
  max-width: 340px;
}
@media (max-width: 760px) {
  ab-hero.hero-minimal > .container {
    grid-template-columns: 1fr;
  }
  .hero-line-a,
  .hero-line-b,
  ab-hero.hero-minimal .hero-cta {
    grid-column: 1;
    grid-row: auto;
  }
  .hero-figure {
    grid-column: 1;
    grid-row: auto;
    order: 3;
    max-width: 300px;
    margin: var(--space-6) auto 0;
  }
}

/* Keep the text stack tight; float the photo beside it, vertically centred. */
ab-hero.hero-minimal > .container {
  display: block;
  position: relative;
  padding-right: 0;
}
ab-hero.hero-minimal .hero-line-a,
ab-hero.hero-minimal .hero-line-b,
ab-hero.hero-minimal .hero-cta {
  max-width: 30ch;
}
ab-hero.hero-minimal .hero-line-a {
  margin: 0 0 var(--space-5);
  max-width: 17ch;
}
ab-hero.hero-minimal .hero-line-b {
  margin: 0 0 var(--space-6);
}
ab-hero.hero-minimal .hero-figure {
  position: absolute;
  top: 50%;
  right: 2%;
  transform: translateY(-50%);
  width: clamp(210px, 25vw, 320px);
  margin: 0;
}
@media (max-width: 760px) {
  ab-hero.hero-minimal .hero-figure {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    width: 74%;
    max-width: 300px;
    margin: var(--space-7) auto 0;
  }
  ab-hero.hero-minimal .hero-line-a,
  ab-hero.hero-minimal .hero-line-b,
  ab-hero.hero-minimal .hero-cta {
    max-width: none;
  }
}

/* Give the hero enough height for the floated photo to sit inside it. */
ab-hero.hero-minimal > .container {
  min-height: clamp(380px, 48vh, 470px);
}
ab-hero.hero-minimal .hero-figure {
  width: clamp(180px, 20vw, 278px);
}
@media (max-width: 760px) {
  ab-hero.hero-minimal > .container {
    min-height: 0;
  }
}

/* ── Mobile hero: headline → tagline → CTA → photo, in that order ── */
@media (max-width: 760px) {
  ab-hero.hero-minimal {
    padding: calc(var(--nav-height) + var(--space-8)) 0 var(--space-12);
  }
  ab-hero.hero-minimal > .container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  ab-hero.hero-minimal .hero-line-a {
    order: 1;
    font-size: clamp(23px, 6vw, 28px);
    line-height: 1.15;
    max-width: 19ch;
    margin: 0 0 var(--space-4);
  }
  ab-hero.hero-minimal .hero-line-b {
    order: 2;
    max-width: 30ch;
    margin: 0 0 var(--space-5);
  }
  ab-hero.hero-minimal .hero-cta {
    order: 3;
    width: 100%;
    margin: 0;
  }
  ab-hero.hero-minimal .hero-figure {
    order: 4;
    align-self: center;
    width: 82%;
    max-width: 320px;
    margin: var(--space-8) auto 0;
  }
}

/* Clear the grid-era cross-axis alignment now the hero is flex/block. */
ab-hero.hero-minimal .hero-line-a,
ab-hero.hero-minimal .hero-line-b,
ab-hero.hero-minimal .hero-cta {
  align-self: flex-start;
}

/* ── Mobile: floating pills flow in a column (must come last in the
   cascade; the pills carry inline left/top from JS, so those need
   overriding explicitly). ── */
@media (max-width: 760px) {
  ab-float-words {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
    min-height: 0;
  }
  .float-word {
    position: static !important;
    left: auto !important;
    top: auto !important;
    animation: none;
  }
  .wash {
    overflow: visible;
  }
}

/* Mobile: photo shares the text column's width and left edge. */
@media (max-width: 760px) {
  ab-hero.hero-minimal .hero-figure {
    align-self: auto;
    width: 100%;
    max-width: none;
    margin: var(--space-8) 0 0;
  }
}

/* The desktop float zeroes padding-right so the photo can sit at the edge;
   on mobile the photo is in flow, so the gutter must come back. */
@media (max-width: 760px) {
  ab-hero.hero-minimal > .container {
    padding-right: var(--space-5);
  }
}

/* Mobile: editorial bands stack tightly — no orphaned label with a void
   beneath it before its panel. */
@media (max-width: 760px) {
  .split-editorial {
    gap: var(--space-5);
  }
  .split-editorial .section-head {
    margin-bottom: var(--space-2);
  }
  .split-editorial .lead {
    margin-bottom: var(--space-4);
  }
  .cred-row {
    margin-top: var(--space-4);
  }
  .section {
    padding: var(--space-12) 0;
  }
}


/* Two typefaces only: serif for headings, sans for everything else.
   (Leads were previously set in serif italic — that read as a third face.) */
.lead,
ab-hero p.lead,
.hero-line-b,
.split-editorial .lead {
  font-family: var(--font-body);
  font-style: normal;
}

/* One text colour: leads differ from body by size, not by colour. */
.lead,
ab-hero p.lead,
.hero-line-b,
.split-editorial .lead {
  color: var(--color-ink);
}

/* Hamburger is a mobile affordance only — on desktop the bar links plus the
   footer cover everything the mega menu held. */
@media (min-width: 761px) {
  ab-nav > header > .bar-right > button {
    display: none;
  }
}
