/* Full Page 30 — "Elevation" family: shared chrome for the home, Portfolio, About and Contact.
 * Tokens, type, reveals, buttons and links, the pill header with its Portfolio flyout and mobile menu,
 * the hairline grid (1fr 2fr 1fr), the stepped-column layer, the graphite band, the CTA band and the footer.
 * Page-specific composition stays inline in each page. */
:root {
  --paper: #f3f2ee;
  --ink: #161616;
  --line: rgba(22, 22, 22, 0.14);
  --graphite: #1c1f21;
  --fog: #e8e7e2;
  --paper-on-dark: rgba(243, 242, 238, 0.72);
  --ink-soft: rgba(22, 22, 22, 0.62);
  --line-on-dark: rgba(243, 242, 238, 0.13);
  --paper-10: rgba(243, 242, 238, 0.1);
  --paper-16: rgba(243, 242, 238, 0.16);
  --paper-28: rgba(243, 242, 238, 0.28);
  --bar: var(--graphite);
  --bar-strong: var(--graphite);
  --ink-06: rgba(22, 22, 22, 0.06);
  --line-strong: rgba(22, 22, 22, 0.5);

  --font-display: "Host Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Host Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-curtain: cubic-bezier(0.32, 0, 0.16, 1);

  --gutter: clamp(16px, 2.2vw, 32px);
  --axis-pad: clamp(24px, 3vw, 48px);
  --axis: calc(25% + var(--axis-pad));

  /* one centred line: the H1 measures 13.79em wide, so 5.05vw fills ~70% of the page */
  --fs-hero: 5.05vw;
  --fs-cta: clamp(2.5rem, 0.8rem + 5.6vw, 7rem);
  --fs-quote: clamp(2rem, 0.8rem + 4.3vw, 5.5rem);
  --fs-h2: clamp(2.25rem, 1rem + 3.9vw, 5rem);
  --fs-cap: clamp(1.6rem, 0.8rem + 2.3vw, 3rem);
  --fs-h3: clamp(1.75rem, 1.05rem + 1.8vw, 2.75rem);
  --fs-lead: clamp(1.25rem, 0.92rem + 1vw, 1.95rem);
  --fs-say: clamp(1.25rem, 0.95rem + 0.75vw, 1.75rem);
  --fs-quote-s: clamp(1.3rem, 0.95rem + 0.95vw, 2rem);
  --fs-body: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  --fs-ui: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --fs-small: clamp(0.875rem, 0.84rem + 0.1vw, 0.9375rem);
  --fs-tag: clamp(1rem, 0.88rem + 0.4vw, 1.3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, blockquote, figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--focus, var(--ink)); outline-offset: 4px; }
main:focus { outline: none; }

.skip {
  position: fixed; left: 16px; top: 12px; z-index: 200;
  padding: 12px 16px; background: var(--ink); color: var(--paper);
  font: 500 var(--fs-ui)/1 var(--font-body); text-decoration: none;
  transform: translateY(-160%); transition: transform 0.3s var(--ease-out);
  --focus: var(--ink);
}
.skip:focus { transform: none; }

/* ---------- line-mask text reveals ---------- */
[data-lines] .lm { display: block; overflow: hidden; padding: 0 0.08em 0.14em; margin: 0 -0.08em -0.14em; }
[data-lines] .ln { display: block; white-space: nowrap; }
.motion [data-lines]:not(.is-split) { visibility: hidden; }
.motion [data-lines] .ln { transform: translate3d(0, 118%, 0); }
.motion [data-lines].is-in .ln {
  transform: none;
  transition: transform 1.05s var(--ease-out) calc(var(--i, 0) * 70ms + var(--d, 0ms));
}
.motion .is-instant .ln, .motion .is-instant { transition: none !important; }

/* clip-path reveal for frames (rises from the bottom edge) */
.motion .frame[data-reveal] { clip-path: inset(100% 0 0 0); -webkit-clip-path: inset(100% 0 0 0); }
.motion .frame[data-reveal].is-in {
  clip-path: inset(0 0 0 0); -webkit-clip-path: inset(0 0 0 0);
  transition: clip-path 1.4s var(--ease-out) var(--d, 0ms), -webkit-clip-path 1.4s var(--ease-out) var(--d, 0ms);
}
.motion .fade[data-reveal] { opacity: 0; transform: translate3d(0, 14px, 0); }
.motion .fade[data-reveal].is-in {
  opacity: 1; transform: none;
  transition: opacity 1s var(--ease-out) var(--d, 0ms), transform 1s var(--ease-out) var(--d, 0ms);
}

/* ---------- buttons ---------- */
/* pills, to match the nav: the divider sits 56px in from the right, clear of the 28px end curve,
 * and overflow: hidden clips the ::before fill to the rounded shape */
.btn {
  --bc: var(--ink); --bt: var(--paper);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: stretch; min-height: 56px;
  border: 1px solid var(--bc); border-radius: 999px; color: var(--bc);
  font: 500 var(--fs-ui)/1 var(--font-body); letter-spacing: 0.005em;
  text-decoration: none; white-space: nowrap;
  transition: color 0.55s var(--ease-out), transform 0.35s var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--bc); transform: scaleY(0); transform-origin: 50% 100%;
  transition: transform 0.55s var(--ease-out);
}
.btn__label { display: flex; align-items: center; padding: 0 30px; }
.btn__icon { display: grid; place-items: center; width: 56px; border-left: 1px solid currentColor; }
.btn__icon svg { width: 16px; height: 16px; transition: transform 0.55s var(--ease-out); }
.btn--dark { --bc: var(--paper); --bt: var(--graphite); --focus: var(--paper); }
.btn--solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--solid::before { background: var(--paper); }
.btn--lg { min-height: 64px; font-size: clamp(0.9375rem, 0.88rem + 0.2vw, 1.0625rem); }
.btn--lg .btn__label { padding: 0 36px; }
.btn--lg .btn__icon { width: 64px; }
@media (hover: hover) {
  .btn:hover { color: var(--bt); transform: translateY(-1px); }
  .btn--solid:hover { color: var(--ink); }
  .btn:hover::before { transform: scaleY(1); }
  .btn:hover .btn__icon svg { transform: translateX(3px); }
}
.btn:active { transform: translateY(0); }
.btn-wrap { display: flex; justify-content: inherit; }
.cta .btn-wrap { justify-content: center; }

/* ---------- header (pill navigation) ---------- */
.site-header {
  --focus: var(--paper);
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; justify-content: center;
  padding: 14px var(--gutter);
  color: var(--paper);
  pointer-events: none;
}
.motion .site-header { opacity: 0; transform: translate3d(0, -8px, 0); }
.motion .site-header:focus-within { opacity: 1; transform: none; }
.motion .site-header.is-ready {
  opacity: 1; transform: none;
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.shell {
  position: relative; width: 100%; max-width: 1100px; pointer-events: auto;
  transition: max-width 0.8s var(--ease-curtain);
}
.site-header.is-scrolled .shell { max-width: max(50vw, 640px); }
.site-header.is-scrolled .nav__item { padding-inline: 13px; }
.bar {
  position: absolute; inset: 0; border-radius: 999px; pointer-events: none;
  background: var(--bar);
  opacity: 0; transition: opacity 0.45s var(--ease-out);
}
.site-header.is-scrolled .bar { opacity: 1; }
.head {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  min-height: 54px; padding: 6px 7px;
}
.logo {
  justify-self: start; text-decoration: none; white-space: nowrap;
  font-size: 16px; font-weight: 300; letter-spacing: -0.01em; line-height: 1;
  padding: 6px 0; margin-left: 15px;
}
.logo span { font-weight: 500; }

.nav { position: relative; justify-self: center; }
.nav__list {
  position: relative; z-index: 2; display: flex; align-items: center;
  padding: 3px; border: 1px solid var(--paper-28); border-radius: 999px;
  transition: border-color 0.45s var(--ease-out);
}
.site-header.is-scrolled .nav__list { border-color: var(--paper-16); }
.nav__item {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border: 0; border-radius: 999px; background: none;
  color: inherit; font: 500 14px/1 var(--font-body); letter-spacing: 0.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: opacity 0.15s ease, padding 0.6s var(--ease-curtain);
}
.nav__list:has(.nav__item:is(:hover, :focus-visible, [aria-expanded="true"])) .nav__item { opacity: 0.55; }
.nav__list:has(.nav__item:is(:hover, :focus-visible, [aria-expanded="true"])) .nav__item:is(:hover, :focus-visible, [aria-expanded="true"]) { opacity: 1; }
.nav__item:focus-visible { outline-offset: 2px; }
.chev { width: 9px; height: 9px; transition: transform 0.2s var(--ease-out); }
.nav__item[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav__hover {
  position: absolute; top: 3px; left: 0; z-index: 0; height: calc(100% - 6px); width: 0;
  border-radius: 999px; background: var(--paper-16); pointer-events: none; opacity: 0;
  transition: transform 0.22s var(--ease-out), width 0.22s var(--ease-out), opacity 0.15s ease;
}
.nav__hover.is-on { opacity: 1; }

.head__cta {
  --focus: var(--paper);
  justify-self: end; display: inline-flex; align-items: center; gap: 12px;
  height: 40px; padding: 0 7px 0 18px; border-radius: 999px;
  background: var(--paper); color: var(--ink);
  font: 500 14px/1 var(--font-body); letter-spacing: 0.005em;
  text-decoration: none; white-space: nowrap;
  transition: background-color 0.3s ease, transform 0.3s var(--ease-out);
}
.head__cta i {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
}
.head__cta svg { width: 11px; height: 11px; transition: transform 0.45s var(--ease-out); }
@media (hover: hover) {
  .head__cta:hover { background: var(--fog); }
  .head__cta:hover svg { transform: translateX(2px); }
}
.head__cta:active { transform: scale(0.98); }

/* flyout */
.fly {
  position: absolute; top: calc(100% + 12px); left: 50%; z-index: 10;
  transform: translateX(-50%);
  visibility: hidden; pointer-events: none;
  transition: visibility 0s linear 0.22s;
}
.fly::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.fly.is-open { visibility: visible; pointer-events: auto; transition: visibility 0s; }
.fly__panel {
  display: flex; gap: 6px; padding: 6px; border-radius: 18px;
  background: var(--bar-strong);
  opacity: 0; transform: translate3d(0, -6px, 0) scale(0.98); transform-origin: 50% 0;
  transition: opacity 0.2s ease, transform 0.5s var(--ease-out);
}
.fly.is-open .fly__panel { opacity: 1; transform: none; }
.fly__side { position: relative; width: 212px; padding: 2px; display: flex; flex-direction: column; }
.fly__all {
  margin-top: auto; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  padding: 12px 16px 12px; border-top: 1px solid var(--line-on-dark); width: 100%;
  color: var(--paper-on-dark); text-decoration: none;
  font: 500 13px/1 var(--font-body); letter-spacing: 0.005em;
  transition: color 0.2s ease;
}
.fly__all svg { width: 11px; height: 11px; transition: transform 0.45s var(--ease-out); }
.fly__all:hover { color: var(--paper); }
.fly__all:hover svg { transform: translateX(3px); }
.fly__all:focus-visible { outline-offset: -2px; border-radius: 10px; }
.fly__list { position: relative; z-index: 1; }
.fly__item {
  display: block; padding: 15px 16px 16px; border-radius: 12px;
  color: var(--paper-on-dark); text-decoration: none;
  font-size: 21px; font-weight: 300; letter-spacing: -0.02em; line-height: 1.1;
  transition: color 0.2s ease;
}
.fly__item.is-active, .fly__item:hover { color: var(--paper); }
.fly__item:focus-visible { outline-offset: -2px; }
.fly__pill {
  position: absolute; left: 2px; right: 2px; top: 0; height: 0; z-index: 0;
  border-radius: 12px; background: var(--paper-10); opacity: 0; pointer-events: none;
  transition: transform 0.22s var(--ease-out), height 0.22s var(--ease-out), opacity 0.15s ease;
}
.fly__preview {
  position: relative; width: 360px; aspect-ratio: 1600 / 1205;
  border-radius: 12px; overflow: hidden; background: var(--graphite);
}
.fly__img { position: absolute; inset: 0; opacity: 0; transition: opacity 0.24s ease; }
.fly__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 0.7s var(--ease-out); }
.fly__img.is-active { opacity: 1; }
.fly__img.is-active img { transform: none; }

.menu-toggle {
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin-left: 2px; padding: 0; border: 0; border-radius: 999px;
  background: none; color: inherit; cursor: pointer;
}
.menu-toggle__icon { position: relative; width: 16px; height: 10px; }
.menu-toggle__icon span {
  position: absolute; left: 0; top: 50%; width: 100%; height: 1.5px; border-radius: 2px; background: currentColor;
  transition: transform 0.4s var(--ease-out);
}
.menu-toggle__icon span:nth-child(1) { transform: translateY(calc(-50% - 3.25px)); }
.menu-toggle__icon span:nth-child(2) { transform: translateY(calc(-50% + 3.25px)); }
.is-menu-open .menu-toggle__icon span:nth-child(1) { transform: translateY(-50%) rotate(45deg); }
.is-menu-open .menu-toggle__icon span:nth-child(2) { transform: translateY(-50%) rotate(-45deg); }

@media (max-width: 900px) {
  .site-header { padding: 12px 12px; }
  .shell, .site-header.is-scrolled .shell { max-width: none; }
  .bar { opacity: 1; }
  .head { display: flex; gap: 6px; min-height: 52px; padding: 6px 6px 6px 18px; }
  .logo { margin: 0 auto 0 0; font-size: 15px; }
  .site-header.is-scrolled .nav__item { padding-inline: 18px; }
  .head__cta { height: 38px; padding: 0 6px 0 14px; font-size: 13px; gap: 9px; }
  .head__cta i { width: 26px; height: 26px; }
  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 5; justify-self: stretch;
    padding: 8px; border-radius: 24px;
    background: var(--bar-strong);
    max-height: calc(100dvh - 96px); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
    visibility: hidden; opacity: 0;
    clip-path: inset(-1px 0 100% 0 round 24px); -webkit-clip-path: inset(-1px 0 100% 0 round 24px);
    transition: clip-path 0.55s var(--ease-curtain), -webkit-clip-path 0.55s var(--ease-curtain), opacity 0.25s ease, visibility 0s linear 0.55s;
  }
  .is-menu-open .nav {
    visibility: visible; opacity: 1;
    clip-path: inset(0 0 0 0 round 24px); -webkit-clip-path: inset(0 0 0 0 round 24px);
    transition: clip-path 0.55s var(--ease-curtain), -webkit-clip-path 0.55s var(--ease-curtain), opacity 0.2s ease, visibility 0s;
  }
  .nav__list { display: block; padding: 0; border: 0; }
  .nav__list .nav__item {
    display: flex; width: 100%; justify-content: space-between;
    padding: 18px 18px; border-radius: 16px;
    font-size: 24px; font-weight: 300; letter-spacing: -0.025em;
    opacity: 1 !important;
  }
  .nav__li.is-expanded > .nav__item { background: var(--paper-10); }
  .chev { width: 12px; height: 12px; }
  .nav__hover { display: none; }
  .fly {
    position: static; transform: none; visibility: visible; pointer-events: auto;
    display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease-curtain);
  }
  .fly::before { display: none; }
  .nav__li.is-expanded .fly { grid-template-rows: 1fr; }
  .fly__panel {
    display: block; min-height: 0; overflow: hidden; padding: 0; border-radius: 0;
    background: none;
    opacity: 1; transform: none; transition: none;
  }
  .fly__side { width: auto; padding: 4px 0 10px; }
  .fly__item { padding: 13px 18px 13px 30px; font-size: 19px; }
  .fly__preview, .fly__pill, .fly__all { display: none; }
}

/* ---------- hairline grid: statement + capabilities ---------- */
.ledger { position: relative; z-index: 1; background: var(--paper); }
.ledger::before, .ledger::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 1px; z-index: 2;
  background: var(--line); pointer-events: none; transform-origin: 50% 0;
}
.ledger::before { left: 25%; }
.ledger::after { left: 75%; }
.motion .ledger[data-reveal]::before, .motion .ledger[data-reveal]::after { transform: scaleY(0); }
.motion .ledger[data-reveal].is-in::before, .motion .ledger[data-reveal].is-in::after { transform: none; transition: transform 2.6s var(--ease-out); }
.row { position: relative; display: grid; grid-template-columns: 1fr 2fr 1fr; }
.row:not(.row--first)::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; z-index: 2;
  background: var(--line); transform-origin: 0 50%;
}
.row--end::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; z-index: 2; background: var(--line);
}
.motion .row[data-reveal]:not(.row--first)::before { transform: scaleX(0); }
.motion .row[data-reveal].is-in:not(.row--first)::before { transform: none; transition: transform 1.6s var(--ease-out); }
.row--gap { height: clamp(48px, 8vh, 96px); }
.row--gap-s { height: clamp(32px, 5vh, 64px); }
.cell--mid {
  grid-column: 2; grid-row: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: clamp(40px, 6vh, 72px) clamp(24px, 3vw, 48px);
}
.cell--side { grid-row: 1; margin: 0; align-self: start; }
.row--img-right .cell--side { grid-column: 3; padding: 0 16px 0 1px; }
.row--img-left .cell--side { grid-column: 1; padding: 0 1px 0 16px; }
.cell--side .frame { margin-top: 1px; }
.row--statement .cell--mid { padding-block: clamp(72px, 11vh, 132px); }
.lead {
  font-size: var(--fs-lead); font-weight: 300; letter-spacing: -0.014em; line-height: 1.42;
  max-width: 30em; text-wrap: pretty;
}
.cap {
  font-family: var(--font-display); font-size: var(--fs-cap); font-weight: 300;
  letter-spacing: -0.035em; line-height: 1.1; max-width: 14.5em; text-wrap: balance;
}
.frame { position: relative; overflow: hidden; aspect-ratio: var(--ar); background: var(--fog); }
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame[data-parallax] img { transform: scale(1.06); will-change: transform; }
.row--cta .cell--mid { padding-block: clamp(48px, 7.5vh, 88px); }

.h2 {
  font-family: var(--font-display); font-size: var(--fs-h2); font-weight: 300;
  letter-spacing: -0.04em; line-height: 1;
}

/* stepped columns (cover + reveal) */
.steps {
  position: absolute; left: 0; right: 0; z-index: 4; pointer-events: none; overflow: hidden;
  display: grid; grid-template-columns: repeat(var(--n, 7), minmax(0, 1fr));
}
.steps--cover { bottom: -1px; height: calc(var(--cover-h, 52vh) + 1px); }
.steps--reveal { top: -1px; height: 44vh; }
.steps__col { position: relative; overflow: hidden; width: calc(100% + 2px); margin-inline: -1px; }
.steps__fill {
  position: absolute; inset: 0; background: var(--graphite);
  -webkit-backface-visibility: hidden; backface-visibility: hidden; will-change: transform;
}
.steps--cover .steps__fill { transform: translate3d(0, 100%, 0); }

/* ---------- graphite band: pull quote + about ---------- */
.band {
  --focus: var(--paper); --quote-top: clamp(24px, 4vh, 48px);
  position: relative; z-index: 1; background: var(--graphite); color: var(--paper);
}
.band::before {
  content: ""; position: absolute; top: var(--quote-top); bottom: 0; left: 25%; width: 1px; background: var(--line-on-dark);
}
.quote { padding: var(--quote-top) var(--gutter) 0 var(--axis); }
.quote p {
  font-family: var(--font-display); font-size: var(--fs-quote); font-weight: 300;
  letter-spacing: -0.04em; line-height: 1.02; max-width: 14em; text-wrap: balance;
}

.text-link {
  font: 500 var(--fs-ui)/1.2 var(--font-body); letter-spacing: 0.005em; text-decoration: none;
  color: var(--paper-on-dark); padding: 6px 0 5px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: color 0.3s ease, background-size 0.6s var(--ease-out);
}
@media (hover: hover) { .text-link:hover { color: var(--paper); background-size: 0 1px; background-position: 100% 100%; } }

/* ---------- CTA band ---------- */
.cta { position: relative; z-index: 1; background: var(--paper); padding: clamp(104px, 15vh, 180px) var(--gutter) clamp(112px, 16vh, 190px); text-align: center; }
.cta__title {
  font-family: var(--font-display); font-size: var(--fs-cta); font-weight: 300;
  letter-spacing: -0.045em; line-height: 0.98;
}
.cta .btn-wrap { margin-top: clamp(36px, 6vh, 60px); }

/* ---------- footer ---------- */
.foot { position: relative; z-index: 1; background: var(--fog); color: var(--ink); }
.foot__grid { position: relative; display: grid; grid-template-columns: 1fr 2fr 1fr; border-top: 1px solid var(--line); }
.foot__grid::before, .foot__grid::after { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
.foot__grid::before { left: 25%; }
.foot__grid::after { left: 75%; }
.foot__cell { padding: clamp(40px, 7vh, 72px) var(--gutter) clamp(40px, 6vh, 64px); }
.foot__cell--nav { padding-left: var(--axis-pad); }
.foot .logo { font-size: 18px; padding: 0; margin-left: 0; }
.foot__nav a {
  display: inline-block; text-decoration: none;
  font-size: clamp(1.5rem, 1.1rem + 1vw, 2.125rem); font-weight: 300; letter-spacing: -0.03em; line-height: 1.25;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.6s var(--ease-out);
}
.foot__nav li + li { margin-top: 4px; }
.foot__mail {
  font-size: var(--fs-ui); font-weight: 500; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 3px; transition: background-size 0.6s var(--ease-out);
}
@media (hover: hover) {
  .foot__nav a:hover { background-size: 100% 1px; }
  .foot__mail:hover { background-size: 0 1px; background-position: 100% 100%; }
}
.foot__credit { margin-top: 18px; font-size: var(--fs-small); color: var(--ink-soft); }

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .cap { font-size: clamp(1.6rem, 0.6rem + 2.6vw, 3rem); }
}

/* ---------- mobile (shared parts) ---------- */
@media (max-width: 767px) {
  :root { --axis: var(--gutter); --axis-pad: var(--gutter); }

  .ledger::before { left: 16px; }
  .ledger::after { left: auto; right: 16px; }
  .row { grid-template-columns: 1fr; }
  .cell--mid { grid-column: 1; grid-row: auto; align-items: flex-start; text-align: left; padding: 36px 32px 44px; }
  .row--statement .cell--mid { padding-block: 64px 72px; }
  .row--img-right .cell--side, .row--img-left .cell--side { grid-column: 1; grid-row: 1; padding: 0 17px; }
  .row--cap .cell--mid { grid-row: 2; }
  .row--cta .cell--mid { align-items: flex-start; padding-block: 48px 56px; }
  .lead { text-wrap: pretty; }
  .cap { font-size: clamp(1.45rem, 1.1rem + 1.4vw, 1.75rem); max-width: none; }

  .band::before { left: 16px; }
  .quote { padding: var(--quote-top) var(--gutter) 0 32px; }

  .cta { text-align: left; padding-inline: 32px var(--gutter); }
  .cta .btn-wrap { justify-content: flex-start; }

  .foot__grid { grid-template-columns: 1fr; }
  .foot__grid::before { left: 16px; }
  .foot__grid::after { display: none; }
  .foot__cell, .foot__cell--nav { padding: 32px var(--gutter) 0 32px; }
  .foot__cell:last-child { padding-bottom: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}

/* ---------- deeper pages: header state + current page ---------- */
.site-header.is-solid .bar { opacity: 1; }
.nav__item.is-current::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; border-radius: 50%;
  background: currentColor; transform: translateX(-50%);
}
.nav__item[data-flyout].is-current::after { left: calc(50% - 8px); }
.fly__all[aria-current="page"], .fly__item[aria-current="true"] { color: var(--paper); }
.foot__nav a[aria-current="page"] { background-size: 100% 1px; }
@media (max-width: 900px) {
  .nav__list .nav__item.is-current::after { left: 7px; bottom: auto; top: 50%; width: 5px; height: 5px; transform: translateY(-50%); }
  .nav__item[data-flyout].is-current::after { left: 7px; }
}

/* graphite CTA band (deeper pages) */
.cta--dark { background: var(--graphite); color: var(--paper); --focus: var(--paper); }
