/* Succession Partners: site styles
   Contents
   01 Fonts and tokens     06 Stats            11 Photo grid       16 Small pages
   02 Base                 07 Thesis, compare  12 Values           17 Scroll reveals
   03 Buttons and links    08 Promise          13 FAQ              18 Reduced motion
   04 Header               09 Process          14 Contact          19 Opening sequence
   05 Hero                 10 People           15 Footer
   Breakpoints are in em so they follow the visitor's own text size setting. */

/* ---------- 01 Fonts and tokens ---------- */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/manrope-var-latin.woff2') format('woff2');
}

:root {
  --ink: #121b28;
  --paper: #f7f6f2;
  --sand: #ece8df;
  --white: #ffffff;
  --scrim: 18 27 40; /* ink as an rgb triplet, for photo overlays */

  --bg: var(--paper);
  --bg-alt: var(--sand);
  --surface: var(--white);
  --surface-2: #f1eee7;
  --fg: var(--ink);
  --fg-soft: #5a6370;
  --fg-mute: #5f6773; /* small secondary text, 4.5:1 on every light surface */
  --fg-faint: #7c8490; /* large display text only */
  --line: #e2dfd7;
  --line-strong: #c9c5bb;
  --field-line: #85847e; /* input outlines need 3:1 */
  --primary: var(--ink);
  --primary-fg: #ffffff;
  --accent: #2f5bea;
  --accent-soft: #e6ecfd;
  --on-accent: #ffffff;
  --danger: #b3261e;
  --positive: #8fd3a8;
  --band: var(--ink);
  --band-fg: #f7f6f2;
  --band-soft: rgb(247 246 242 / 0.72);
  --band-line: rgb(247 246 242 / 0.16);
  --on-photo: #ffffff;
  --on-photo-soft: rgb(255 255 255 / 0.84);
  --focus: #2f5bea;
  --shadow: 0 24px 60px rgb(var(--scrim) / 0.12), 0 2px 8px rgb(var(--scrim) / 0.06);
  --shadow-sm: 0 6px 18px rgb(var(--scrim) / 0.08);

  --font: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  --measure: 60ch;
  --radius: 20px;
  --radius-sm: 12px;
  --nav-h: 84px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0e141c;
    --bg-alt: #141c26;
    --surface: #182230;
    --surface-2: #1e2938;
    --fg: #f2f1ec;
    --fg-soft: #aeb5be;
    --fg-mute: #919aa5;
    --fg-faint: #7e8792;
    --line: #273241;
    --line-strong: #3a4656;
    --field-line: #7a8696;
    --primary: #f2f1ec;
    --primary-fg: #121b28;
    --accent: #7d9bff;
    --accent-soft: #1c2a4a;
    --on-accent: #0e141c;
    --danger: #ff8f80;
    --band: #0a0f15;
    --band-fg: #f2f1ec;
    --band-soft: rgb(242 241 236 / 0.72);
    --band-line: rgb(242 241 236 / 0.14);
    --focus: #7d9bff;
    --shadow: 0 24px 60px rgb(0 0 0 / 0.5), 0 2px 8px rgb(0 0 0 / 0.35);
    --shadow-sm: 0 6px 18px rgb(0 0 0 / 0.4);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #0e141c;
  --bg-alt: #141c26;
  --surface: #182230;
  --surface-2: #1e2938;
  --fg: #f2f1ec;
  --fg-soft: #aeb5be;
  --fg-mute: #919aa5;
  --fg-faint: #7e8792;
  --line: #273241;
  --line-strong: #3a4656;
  --field-line: #7a8696;
  --primary: #f2f1ec;
  --primary-fg: #121b28;
  --accent: #7d9bff;
  --accent-soft: #1c2a4a;
  --on-accent: #0e141c;
  --danger: #ff8f80;
  --band: #0a0f15;
  --band-fg: #f2f1ec;
  --band-soft: rgb(242 241 236 / 0.72);
  --band-line: rgb(242 241 236 / 0.14);
  --focus: #7d9bff;
  --shadow: 0 24px 60px rgb(0 0 0 / 0.5), 0 2px 8px rgb(0 0 0 / 0.35);
  --shadow-sm: 0 6px 18px rgb(0 0 0 / 0.4);
  color-scheme: dark;
}

/* ---------- 02 Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  accent-color: var(--accent);
  caret-color: var(--accent);
}
body::before {
  content: '';
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  background: var(--bg);
  z-index: 60;
}
::selection {
  background: var(--accent);
  color: var(--on-accent);
}
img,
svg {
  max-width: 100%;
  display: block;
}
img {
  height: auto;
}
picture {
  display: contents;
}
a {
  color: inherit;
  text-underline-offset: 0.2em;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
h1,
h2,
h3,
h4 {
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.8rem, 2rem + 4vw, 5.6rem);
  letter-spacing: -0.04em;
}
h2 {
  font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.8rem);
}
h3 {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}
p {
  margin: 0;
}
section[id] {
  scroll-margin-top: 2.5rem;
}
.lead {
  font-size: clamp(1.15rem, 1.05rem + 0.45vw, 1.4rem);
  line-height: 1.5;
  color: var(--fg-soft);
  max-width: var(--measure);
}
.wrap {
  max-width: 1240px;
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
.section {
  padding-block: clamp(5rem, 4rem + 5vw, 9.5rem);
}
.section-flush {
  padding-top: 0;
}
.section-head {
  max-width: 820px;
  margin-bottom: clamp(2.5rem, 2rem + 2.5vw, 4.5rem);
}
.section-head .lead {
  margin-top: 1.3rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  left: var(--gutter-l);
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  z-index: 70;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-fg);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
}
main:focus {
  outline: none;
}

/* ---------- 03 Buttons and links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 58px;
  max-width: 100%;
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  font: 700 1.05rem/1.2 var(--font);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out),
    background-color 0.25s,
    color 0.25s,
    border-color 0.25s;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0) scale(0.99);
}
.btn[disabled] {
  opacity: 0.7;
  cursor: progress;
  transform: none;
}
.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
  transition: transform 0.3s var(--ease-out);
}
.btn:hover svg {
  transform: translateX(3px);
}
.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
}
.btn-primary:hover {
  box-shadow: var(--shadow-sm);
}
.btn-light {
  background: var(--white);
  color: var(--ink);
}
.btn-light:hover {
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.25);
}
.btn-ghost-light {
  background: rgb(var(--scrim) / 0.38);
  color: var(--on-photo);
  border-color: rgb(255 255 255 / 0.5);
}
.btn-ghost-light:hover {
  background: rgb(var(--scrim) / 0.55);
  border-color: var(--on-photo);
}
.link {
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--fg);
  border-bottom: 2px solid var(--line-strong);
  padding-block: 0.5rem 0.15rem;
  transition: border-color 0.25s;
}
.link:hover {
  border-color: var(--fg);
}
@media (max-width: 30em) {
  .btn {
    white-space: normal;
    text-align: center;
    padding-inline: 1.4rem;
  }
}

/* ---------- 04 Header ---------- */
.nav {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  left: 0;
  right: 0;
  z-index: 50;
  color: var(--on-photo);
  --focus: #ffffff;
  transition:
    background-color 0.35s,
    box-shadow 0.35s,
    color 0.35s;
}
html:not(.js) .nav {
  position: absolute;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  color: var(--fg);
  --focus: var(--accent);
}
.nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--nav-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.025em;
  white-space: nowrap;
}
.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
}
.brand-mark path {
  fill: currentColor;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.4rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  position: relative;
  display: block;
  padding: 0.7rem 0;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.35rem;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.nav-links a:hover::after,
.nav-links a[aria-current='true']::after {
  transform: scaleX(1);
}
.nav.is-scrolled .nav-links a {
  color: var(--fg-soft);
}
.nav.is-scrolled .nav-links a:hover,
.nav.is-scrolled .nav-links a[aria-current='true'] {
  color: var(--fg);
}
.nav-cta {
  min-height: 48px;
  padding: 0.6rem 1.3rem;
  font-size: 0.98rem;
  background: var(--white);
  color: var(--ink);
}
.nav.is-scrolled .nav-cta {
  background: var(--primary);
  color: var(--primary-fg);
}
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid currentColor;
  border-radius: 12px;
  width: 48px;
  height: 48px;
  cursor: pointer;
  color: inherit;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition:
    transform 0.3s var(--ease-out),
    background-color 0.2s;
}
.nav-toggle span {
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
}
.nav-toggle span::before {
  transform: translateY(-7px);
}
.nav-toggle span::after {
  transform: translateY(7px);
}
.nav-toggle[aria-expanded='true'] span {
  background: transparent;
}
.nav-toggle[aria-expanded='true'] span::before {
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded='true'] span::after {
  transform: rotate(-45deg);
}
.progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  overflow: hidden;
  pointer-events: none;
}
.progress i {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}
@media (max-width: 68.75em) {
  .nav-menu {
    gap: 1.5rem;
  }
  .nav-links {
    gap: 1.35rem;
  }
  .nav-cta {
    padding-inline: 1.1rem;
  }
}
@media (max-width: 61.25em) {
  .nav-toggle {
    display: inline-flex;
  }
  .nav-menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--surface);
    color: var(--fg);
    box-shadow: var(--shadow);
    padding: 1rem var(--gutter-r) 1.5rem var(--gutter-l);
    border-radius: 0 0 var(--radius) var(--radius);
    --focus: var(--accent);
  }
  .nav-menu.is-open {
    display: block;
  }
  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-bottom: 1.2rem;
  }
  .nav-links a,
  .nav.is-scrolled .nav-links a {
    padding: 1rem 0.25rem;
    font-size: 1.15rem;
    color: var(--fg);
    border-bottom: 1px solid var(--line);
    white-space: normal;
  }
  .nav-links a::after {
    display: none;
  }
  .nav-cta,
  .nav.is-scrolled .nav-cta {
    width: 100%;
    background: var(--primary);
    color: var(--primary-fg);
  }
}

@media (max-width: 22.5em) {
  .brand {
    font-size: 1.05rem;
    gap: 0.55rem;
    min-width: 0;
    white-space: normal;
    line-height: 1.15;
  }
  .brand-mark {
    width: 30px;
    height: 30px;
  }
}

/* ---------- 05 Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(620px, 92vh, 980px);
  display: flex;
  align-items: flex-end;
  color: var(--on-photo);
  overflow: hidden;
  isolation: isolate;
  --focus: #ffffff;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: var(--ink);
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
  transform: scale(1.08);
  animation: kenburns 18s var(--ease) forwards;
}
@keyframes kenburns {
  to {
    transform: scale(1.03) translateX(-1%);
  }
}
/* Scrim: darker under the header and under the copy, clear across the middle of the photo. */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      180deg,
      rgb(var(--scrim) / 0.62) 0%,
      rgb(var(--scrim) / 0.36) 14%,
      rgb(var(--scrim) / 0.24) 36%,
      rgb(var(--scrim) / 0.55) 70%,
      rgb(var(--scrim) / 0.88) 100%
    ),
    linear-gradient(90deg, rgb(var(--scrim) / 0.5) 0%, rgb(var(--scrim) / 0) 68%);
}
.hero-inner {
  position: relative;
  width: 100%;
  padding-block: 9rem clamp(6rem, 5rem + 5vw, 9rem);
}
.hero-copy {
  max-width: 820px;
}
.hero h1 {
  text-shadow: 0 2px 28px rgb(var(--scrim) / 0.35);
}
.hero h1 .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em);
  animation: rise 1s var(--ease-out) forwards;
}
.hero .lead {
  color: var(--on-photo-soft);
  margin-top: 1.6rem;
  max-width: 56ch;
  opacity: 0;
  animation: fade 1s 0.7s var(--ease) forwards;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.4rem;
  opacity: 0;
  animation: fade 1s 0.9s var(--ease) forwards;
}
@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes fade {
  to {
    opacity: 1;
  }
}
@media (max-width: 43.75em) {
  .hero-bg img {
    object-position: 68% 50%;
  }
  .hero-inner {
    padding-top: 7rem;
  }
  .hero::after {
    background: linear-gradient(
      180deg,
      rgb(var(--scrim) / 0.62) 0%,
      rgb(var(--scrim) / 0.44) 16%,
      rgb(var(--scrim) / 0.5) 34%,
      rgb(var(--scrim) / 0.8) 58%,
      rgb(var(--scrim) / 0.92) 100%
    );
  }
}

/* ---------- 06 Stats (card overlapping the hero) ---------- */
.stats {
  position: relative;
  z-index: 2;
  margin-top: -4.5rem;
}
.stats-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
}
.stat {
  padding: 2.2rem 2.2rem 2.4rem;
  border-left: 1px solid var(--line);
  min-width: 0;
}
.stat:first-child {
  border-left: 0;
}
.stat b {
  display: block;
  font-size: clamp(2.8rem, 2.2rem + 2vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat p {
  margin-top: 0.9rem;
  color: var(--fg-soft);
  font-size: 1rem;
  max-width: 30ch;
}
.stats-src {
  margin-top: 1.3rem;
  font-size: 0.88rem;
  color: var(--fg-mute);
  text-align: right;
}
.stats-src a {
  color: inherit;
}
@media (max-width: 50em) {
  .stats-card {
    grid-template-columns: 1fr;
  }
  .stat {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 1.6rem 1.6rem 1.8rem;
  }
  .stat:first-child {
    border-top: 0;
  }
  .stats-src {
    text-align: left;
  }
}

/* ---------- 07 Thesis and comparison ---------- */
.thesis {
  padding-block: clamp(6rem, 5rem + 5vw, 10rem) clamp(4rem, 3rem + 3vw, 6rem);
}
.thesis h2 {
  font-size: clamp(2rem, 1.3rem + 3vw, 4.2rem);
  max-width: 22ch;
}
.thesis h2 em {
  font-style: normal;
  color: var(--fg-faint);
}
.thesis .prose {
  margin-top: 2rem;
}
.prose {
  max-width: var(--measure);
  color: var(--fg-soft);
  font-size: 1.15rem;
  line-height: 1.6;
}
.prose p + p {
  margin-top: 1.1rem;
}
.prose strong {
  color: var(--fg);
  font-weight: 700;
}
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  margin-top: 3.5rem;
}
.compare-col {
  border-radius: var(--radius);
  padding: 2.2rem;
  min-width: 0;
}
.compare-col.them {
  background: var(--surface-2);
  color: var(--fg-soft);
}
.compare-col.us {
  background: var(--band);
  color: var(--band-fg);
}
.compare-col h3 {
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 1.4rem;
}
.compare-col.us h3 {
  color: var(--band-soft);
}
.compare-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.3rem;
}
.compare-col li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 0.9rem;
  align-items: start;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
  font-size: 1.08rem;
}
.compare-col.us li {
  border-top-color: var(--band-line);
  font-weight: 600;
}
.compare-col li svg {
  width: 24px;
  height: 24px;
  margin-top: 0.15em;
}
.compare-col.them li svg {
  color: var(--fg-mute);
}
.compare-col.us li svg {
  color: var(--positive);
}
.compare-col li small {
  display: block;
  font-size: 0.92rem;
  font-weight: 400;
  margin-top: 0.15rem;
}
.compare-col.us li small {
  color: var(--band-soft);
}
@media (max-width: 48.75em) {
  .compare {
    grid-template-columns: 1fr;
  }
  .compare-col {
    padding: 1.6rem;
  }
}

/* ---------- 08 Promise (photo and list) ---------- */
.promise {
  background: var(--bg-alt);
}
.promise-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2.5rem, 2rem + 3vw, 6rem);
  align-items: center;
}
.promise-grid > * {
  min-width: 0;
}
.promise-photo {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  max-width: 100%;
  background: var(--surface-2);
}
.promise-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.promise-list {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
}
.promise-list li {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.4rem;
  padding: 1.8rem 0;
  border-top: 1px solid var(--line-strong);
}
.promise-list li:last-child {
  border-bottom: 1px solid var(--line-strong);
}
.p-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--surface);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
}
.p-icon svg {
  width: 28px;
  height: 28px;
}
.promise-list h3 {
  font-size: 1.35rem;
}
.promise-list p {
  margin-top: 0.5rem;
  color: var(--fg-soft);
}
@media (max-width: 56.25em) {
  .promise-grid {
    grid-template-columns: 1fr;
  }
  .promise-photo {
    aspect-ratio: 4 / 3;
  }
}

/* ---------- 09 Process (photo follows the step being read) ---------- */
.process-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 2rem + 4vw, 7rem);
  align-items: start;
}
.process-grid > * {
  min-width: 0;
}
.process-sticky {
  position: sticky;
  top: 120px;
}
.process-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface-2);
  max-width: 100%;
}
.process-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition:
    opacity 0.8s var(--ease),
    transform 1.6s var(--ease-out);
}
.process-frame img.is-active {
  opacity: 1;
  transform: scale(1);
}
.process-counter {
  position: absolute;
  left: 1.4rem;
  top: 1.4rem;
  z-index: 2;
  background: rgb(var(--scrim) / 0.78);
  color: var(--on-photo);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.process-bar {
  display: flex;
  gap: 0.4rem;
  margin-top: 1.2rem;
}
.process-bar i {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
  position: relative;
}
.process-bar i::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--fg);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out);
}
.process-bar i.is-done::after,
.process-bar i.is-active::after {
  transform: scaleX(1);
}
.pstep {
  padding: clamp(2rem, 1.5rem + 2vw, 3.5rem) 0;
  border-top: 1px solid var(--line);
}
.pstep:first-child {
  border-top: 0;
  padding-top: 0;
}
/* The step in view is marked by colour, not by fading the others: every step stays readable. */
.pstep-num {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--fg-mute);
  margin-bottom: 0.8rem;
  transition: color 0.4s;
}
.pstep h3 {
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.3rem);
  color: var(--fg-soft);
  transition: color 0.4s;
}
.pstep.is-active .pstep-num {
  color: var(--accent);
}
.pstep.is-active h3 {
  color: var(--fg);
}
.pstep p {
  margin-top: 1rem;
  color: var(--fg-soft);
  font-size: 1.12rem;
  max-width: 50ch;
}
.pstep .note {
  margin-top: 1.3rem;
  padding: 1rem 1.2rem;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  color: var(--fg);
}
.pstep-img {
  display: none;
}
@media (max-width: 53.75em) {
  .process-grid {
    grid-template-columns: 1fr;
  }
  .process-sticky {
    display: none;
  }
  .pstep-num {
    color: var(--accent);
  }
  .pstep h3 {
    color: var(--fg);
  }
  .pstep-img {
    display: block;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    margin-bottom: 1.4rem;
    max-width: 100%;
    background: var(--surface-2);
  }
  .pstep-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* ---------- 10 People ---------- */
.people {
  background: var(--bg-alt);
}
.people-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 1.5rem + 2vw, 4rem);
}
.person {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  min-width: 0;
  align-content: start;
}
.portrait {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--surface-2);
  max-width: 100%;
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  transform: scale(1.03);
  transition: transform 1.2s var(--ease-out);
}
.person:hover .portrait img {
  transform: scale(1);
}
.person h3 {
  font-size: 1.9rem;
}
.person .role {
  color: var(--fg-mute);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.4rem;
}
.person p {
  color: var(--fg-soft);
  margin-top: 1rem;
  font-size: 1.08rem;
}
.person .link {
  margin-top: 1rem;
}
.people-quote {
  margin: clamp(3.5rem, 3rem + 3vw, 6rem) 0 0;
  max-width: 980px;
  font-size: clamp(1.7rem, 1.2rem + 2vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.people-quote span {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-top: 1.2rem;
}
@media (max-width: 47.5em) {
  .people-grid {
    grid-template-columns: 1fr;
  }
  .portrait {
    max-width: 420px;
  }
}

/* ---------- 11 Photo grid ---------- */
.band-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 3rem;
  margin-bottom: 2.5rem;
}
.band-head .lead {
  max-width: 46ch;
}
.photo-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-template-rows: 320px 320px;
  gap: 1.2rem;
}
.photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-2);
  max-width: 100%;
}
.photo:first-child {
  grid-row: span 2;
}
.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}
.photo:hover img {
  transform: scale(1.05);
}
.photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgb(var(--scrim) / 0.7) 100%);
  pointer-events: none;
}
.photo figcaption {
  position: absolute;
  left: 1.3rem;
  bottom: 1.2rem;
  right: 1.3rem;
  z-index: 2;
  color: var(--on-photo);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
}
@media (max-width: 53.75em) {
  .photo-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 280px 230px 230px;
  }
  .photo:first-child {
    grid-column: span 2;
    grid-row: span 1;
  }
}
@media (max-width: 32.5em) {
  .photo-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 280px repeat(4, 230px);
  }
  .photo:first-child {
    grid-column: span 1;
  }
}

/* ---------- 12 Values ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.value {
  min-width: 0;
  padding-top: 1.5rem;
  border-top: 2px solid var(--line-strong);
  position: relative;
}
.value::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--fg);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s var(--ease-out) var(--d, 0s);
}
.value.is-in::before,
html:not(.js) .value::before {
  transform: scaleX(1);
}
.value h3 {
  font-size: 1.5rem;
}
.value p {
  margin-top: 0.7rem;
  color: var(--fg-soft);
}
@media (max-width: 56.25em) {
  .values-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 32.5em) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- 13 FAQ ---------- */
.faq {
  background: var(--bg-alt);
}
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(2rem, 1.5rem + 3vw, 6rem);
  align-items: start;
}
.faq-grid > * {
  min-width: 0;
}
.faq-intro .lead {
  margin-top: 1.2rem;
}
.faq-item {
  border-top: 1px solid var(--line-strong);
}
.faq-item:last-child {
  border-bottom: 1px solid var(--line-strong);
}
.faq-item h3 {
  font: inherit;
  letter-spacing: normal;
}
.faq-q {
  width: 100%;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 0;
  font: 700 1.25rem/1.3 var(--font);
  letter-spacing: -0.015em;
  color: var(--fg);
  border-radius: 8px;
}
.faq-q .plus {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  display: grid;
  place-items: center;
  position: relative;
  transition:
    transform 0.4s var(--ease-out),
    background-color 0.3s,
    color 0.3s;
}
.faq-q .plus::before,
.faq-q .plus::after {
  content: '';
  position: absolute;
  background: currentColor;
  width: 14px;
  height: 2px;
  border-radius: 1px;
}
.faq-q .plus::after {
  transform: rotate(90deg);
}
.faq-item.is-open .plus {
  background: var(--primary);
  color: var(--primary-fg);
  transform: rotate(45deg);
}
/* Answers are open by default; the script collapses them, so they stay readable if it never runs. */
.faq-a {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.45s var(--ease-out);
}
.faq-a > div {
  overflow: hidden;
  min-height: 0;
}
.js .faq-item:not(.is-open) .faq-a {
  grid-template-rows: 0fr;
}
.js .faq-item:not(.is-open) .faq-a > div {
  visibility: hidden;
  transition: visibility 0s 0.45s;
}
html:not(.js) .faq-q .plus {
  display: none;
}
.faq-a p {
  padding-bottom: 1.6rem;
  color: var(--fg-soft);
  font-size: 1.1rem;
  max-width: var(--measure);
}
@media (max-width: 53.75em) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- 14 Contact ---------- */
.cta {
  position: relative;
  color: var(--on-photo);
  overflow: hidden;
  isolation: isolate;
  --focus: #ffffff;
}
.cta-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--ink);
}
.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}
.cta::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgb(var(--scrim) / 0.92) 0%,
    rgb(var(--scrim) / 0.8) 50%,
    rgb(var(--scrim) / 0.6) 100%
  );
}
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 2rem + 3vw, 6rem);
  align-items: center;
  padding-block: clamp(5rem, 4rem + 5vw, 9rem);
}
.cta-grid > * {
  min-width: 0;
}
.cta .lead {
  color: var(--on-photo-soft);
  margin-top: 1.3rem;
}
.direct {
  margin-top: 2.2rem;
  display: grid;
  gap: 0.5rem;
  font-size: 1.08rem;
}
.direct a {
  color: var(--on-photo);
  font-weight: 700;
  text-decoration-color: rgb(255 255 255 / 0.5);
  text-underline-offset: 5px;
  overflow-wrap: anywhere;
}
.form {
  background: var(--surface);
  color: var(--fg);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 1.4rem + 1vw, 2.6rem);
  box-shadow: var(--shadow);
  display: grid;
  gap: 1.2rem;
  --focus: var(--accent);
}
.form h3 {
  font-size: 1.5rem;
}
.field {
  display: grid;
  gap: 0.45rem;
}
.field label {
  font-weight: 700;
  font-size: 1rem;
}
.field label small {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--fg-mute);
}
.field input,
.field select {
  width: 100%;
  min-height: 58px;
  padding: 0.85rem 1.1rem;
  border: 2px solid var(--field-line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--fg);
  font: 1.05rem var(--font);
  transition:
    border-color 0.25s,
    box-shadow 0.25s;
}
.field input:hover,
.field select:hover {
  border-color: var(--fg-soft);
}
.field input:focus,
.field select:focus {
  outline: 2px solid transparent;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.field .hint {
  font-size: 0.9rem;
  color: var(--fg-mute);
}
.field input[aria-invalid='true'] {
  border-color: var(--danger);
}
.field .err {
  font-size: 0.92rem;
  color: var(--danger);
  font-weight: 600;
}
.field .err[hidden] {
  display: none;
}
.form-foot {
  font-size: 0.92rem;
  color: var(--fg-mute);
}
.form-status {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--danger);
}
.form-status:empty {
  display: none;
}
.form-status a {
  color: inherit;
}
.form-success {
  text-align: center;
  padding: 2rem 1rem;
}
.form-success[hidden] {
  display: none;
}
.form-success svg {
  width: 64px;
  height: 64px;
  color: var(--accent);
  margin: 0 auto 1rem;
}
.form-success h3 {
  font-size: 1.6rem;
}
.form-success p {
  margin-top: 0.6rem;
  color: var(--fg-soft);
}
.form.is-sent > *:not(.form-success) {
  display: none;
}
.form.is-sent .form-success {
  animation: panel-in 0.5s var(--ease);
}
@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 56.25em) {
  .cta-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- 15 Footer ---------- */
.footer {
  background: var(--band);
  color: var(--band-soft);
  padding-block: 3.5rem 2.5rem;
  font-size: 0.95rem;
  --focus: #ffffff;
}
.footer .brand {
  color: var(--band-fg);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  align-items: center;
}
.footer a {
  color: var(--band-soft);
  text-decoration-color: var(--band-line);
  text-underline-offset: 4px;
}
.footer a:hover {
  color: var(--band-fg);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links a,
.footer-bottom a {
  display: inline-block;
  padding-block: 0.6rem;
}
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--band-line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem 2rem;
  font-size: 0.88rem;
}

/* ---------- 16 Small pages (partner login, 404) ---------- */
.page-center {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 2rem var(--gutter-r) 2rem var(--gutter-l);
  background: var(--bg-alt);
}
.page-card {
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.4rem;
  display: grid;
  gap: 1.2rem;
  text-align: center;
}
.page-card .brand {
  justify-content: center;
  margin-bottom: 0.5rem;
}
.page-card h1 {
  font-size: 1.8rem;
  letter-spacing: -0.03em;
}
.page-card p {
  color: var(--fg-soft);
  font-size: 1rem;
}
.page-card .btn {
  width: 100%;
}
.page-card .fine {
  font-size: 0.9rem;
  color: var(--fg-mute);
}

/* ---------- 17 Scroll reveals ----------
   Content is visible by default. The script adds .js, then .is-in as each block arrives.
   Text eases up a short distance; photos uncover from the top; grouped items follow each other. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.7s var(--ease-out) var(--d, 0s),
    transform 0.8s var(--ease-out) var(--d, 0s);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}
.js [data-reveal='photo'] {
  opacity: 1;
  transform: none;
  clip-path: inset(-80px -80px 100% -80px);
  transition: clip-path 1.1s var(--ease-out) var(--d, 0s);
}
/* Negative insets so the frame's drop shadow is not clipped once the photo is uncovered. */
.js [data-reveal='photo'].is-in {
  clip-path: inset(-80px);
}

/* ---------- 18 Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero h1 .w,
  .hero .lead,
  .hero-actions {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .hero-bg img {
    transform: none;
    animation: none;
  }
  .js [data-reveal],
  .js [data-reveal='photo'] {
    opacity: 1;
    transform: none;
    clip-path: none;
    transition: none;
  }
  .value::before {
    transform: scaleX(1);
    transition: none;
  }
  .btn,
  .btn svg,
  .photo img,
  .portrait img {
    transition: none;
  }
  .btn:hover,
  .btn:hover svg,
  .photo:hover img,
  .portrait img,
  .person:hover .portrait img {
    transform: none;
  }
  .process-frame img {
    transform: none;
    transition: opacity 0.2s linear;
  }
  .process-bar i::after,
  .faq-a,
  .faq-q .plus,
  .nav-toggle span,
  .nav-toggle span::before,
  .nav-toggle span::after {
    transition: none;
  }
  .form.is-sent .form-success {
    animation: none;
  }
}

/* ---------- 19 Opening sequence ----------
   First visit in a session only: the arch draws itself, the name types in, both settle into the header. */
.intro {
  display: none;
}
.intro-on .intro {
  display: grid;
  place-items: center;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  transition: background-color 0.9s var(--ease-out);
}
.intro-on body {
  overflow: hidden;
}
.intro-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}
.intro-mark {
  width: 92px;
  height: 92px;
  display: block;
  transform-origin: 0 0;
  will-change: transform;
}
.intro-mark path {
  fill: none;
  stroke: currentColor;
  stroke-width: 13;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}
.intro.is-drawing .intro-mark path {
  animation: intro-draw 0.95s cubic-bezier(0.65, 0, 0.25, 1) forwards;
}
@keyframes intro-draw {
  to {
    stroke-dashoffset: 0;
  }
}
.intro-word {
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
  white-space: nowrap;
  min-height: 1.2em;
  transform-origin: 0 0;
  will-change: transform;
  position: relative;
}
.intro-word::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 12%;
  bottom: 12%;
  width: 2px;
  background: currentColor;
  opacity: 0;
}
.intro.is-typing .intro-word::after {
  opacity: 1;
  animation: intro-caret 0.7s steps(1) infinite;
}
@keyframes intro-caret {
  50% {
    opacity: 0;
  }
}
.intro.is-settling {
  background-color: rgb(var(--scrim) / 0);
  pointer-events: none;
}
.intro.is-settling .intro-mark,
.intro.is-settling .intro-word {
  transition: transform 0.9s cubic-bezier(0.7, 0, 0.2, 1);
}
/* Hold the page's own entrance until the intro hands over. */
.intro-on .nav .brand {
  visibility: hidden;
}
.intro-on .hero h1 .w,
.intro-on .hero .lead,
.intro-on .hero-actions,
.intro-on .hero-bg img {
  animation-play-state: paused;
}
