/* PrimeLeaper shared layer: visual components + motion.
   Loaded after each page's inline base styles, so it extends them. */

/* ============================================================
   VISUAL PASS — exhibits, icons, and tags carry the ideas so the
   copy can stay short. Brand tokens only; no photography yet.
   ============================================================ */

/* Hero: the logo curve runs behind the copy — flat, then the leap */
.hero--split { position: relative; overflow: hidden; padding: 88px 0 168px; }
.hero--split > .container { position: relative; z-index: 1; }
.hero--split .hero__body { max-width: 640px; }
.hero__mark {
  position: absolute; z-index: 0; pointer-events: none;
  left: 0; right: 0; margin: 0 auto; width: min(1180px, 100%);
  top: 56px; bottom: 44px;
}
.hero__mark svg { display: block; width: 100%; height: 100%; overflow: visible; }
.hero__mark path {
  fill: none; stroke: var(--navy); stroke-width: 2.5; stroke-linecap: round;
  vector-effect: non-scaling-stroke; opacity: .85;
}
.hero__mark:not(.is-live) svg { clip-path: inset(0 100% 0 0); animation: hero-draw 1.6s cubic-bezier(.45,0,.2,1) .25s forwards; }
.hero__dot {
  position: absolute; left: 95%; top: 8%;
  width: 26px; height: 26px; border-radius: 50%; transform: translate(-50%, -50%) scale(0);
  background: radial-gradient(circle at 38% 34%, #E3A57A 0%, #C47A4A 45%, #8C4F2C 100%);
  box-shadow: 0 6px 18px rgba(140, 79, 44, .35), 0 0 0 6px rgba(181, 107, 63, .12);
  animation: hero-dot .45s cubic-bezier(.3,1.6,.5,1) 1.7s forwards;
}
@keyframes hero-draw { to { clip-path: inset(0 0 0 0); } }
@keyframes hero-dot { to { transform: translate(-50%, -50%) scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .hero__mark:not(.is-live) svg { animation: none; clip-path: none; }
  .hero__dot { animation: none; transform: translate(-50%, -50%) scale(1); }
}
.hero--split .hero__question { font-size: clamp(19px, 1.9vw, 23px); margin-bottom: 18px; color: var(--copper-text); }
.hero--split .hero__headline { font-size: clamp(34px, 3.6vw, 48px); max-width: none; margin-bottom: 22px; }
.hero--split .hero__support { font-size: clamp(16.5px, 1.45vw, 18.5px); max-width: 52ch; margin-bottom: 30px; }
.hero__facts {
  list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px;
  margin: 16px 0 0; padding: 0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.hero__facts li { display: flex; align-items: center; gap: 8px; }
.hero__facts li::before { content: ""; width: 5px; height: 5px; background: var(--teal); }

/* Section title — one bold line per section */
.section-title {
  font-size: clamp(30px, 3.4vw, 46px); font-weight: 400;
  letter-spacing: -.02em; line-height: 1.1; max-width: 32ch; margin-bottom: 44px;
}

/* Sound familiar? — icon cards with tags instead of sentences */
.signs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sign {
  background: var(--surface);
  border: 1px solid var(--hairline);
  padding: 30px 26px 28px;
  display: flex; flex-direction: column;
}
.sign__icon { width: 48px; height: 48px; margin-bottom: 22px; }
.sign__title {
  font-family: 'Tinos', 'Times New Roman', Times, serif;
  font-size: 23px; font-weight: 400; line-height: 1.2; color: var(--navy);
  letter-spacing: -.01em; margin-bottom: 20px;
}
.sign__label {
  margin-top: auto;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
  padding-top: 16px; border-top: 1px solid var(--hairline);
}
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.tags li {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11.5px; letter-spacing: .04em; line-height: 1.2;
  color: var(--ink); background: var(--paper);
  border: 1px solid var(--hairline); border-radius: 3px;
  padding: 6px 9px; white-space: nowrap;
}
.tags--ask li { color: var(--copper-deep); background: var(--copper-tint); border-color: rgba(181, 107, 63, .35); }

/* Navy band — what we keep, as four tiles */
.keepband { padding: 112px 0; }
.keepband__head {
  font-size: clamp(32px, 3.8vw, 52px); font-weight: 400; letter-spacing: -.02em;
  line-height: 1.08; max-width: 22ch; margin-bottom: 18px;
}
.keepband__head em { font-style: italic; color: var(--copper-on-dark); }
.keepband__lead { font-size: 18px; color: var(--body-on-dark); margin-bottom: 40px; }
.keep-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--rule-dark); border: 1px solid var(--rule-dark);
}
.keep-tile { background: var(--navy); padding: 28px 24px 30px; }
.keep-tile svg { width: 40px; height: 40px; display: block; margin-bottom: 26px; }
.keep-tile__num {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: .16em; color: var(--copper-on-dark); margin-bottom: 8px;
}
.keep-tile__text {
  font-family: 'Tinos', 'Times New Roman', Times, serif;
  font-size: 21px; line-height: 1.22; color: var(--headline-on-dark);
}
.keepband__closer {
  font-family: 'Tinos', 'Times New Roman', Times, serif; font-style: italic;
  font-size: clamp(19px, 2vw, 24px); color: var(--copper-on-dark); margin-top: 36px;
}

/* Fit list with check / cross marks */
.marks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.marks li { position: relative; padding-left: 32px; font-size: 16.5px; line-height: 1.45; }
.marks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23F7F4EE' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.marks--no li { opacity: .82; }
.marks--no li::before {
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='9.25' fill='none' stroke='%236F7585' stroke-width='1.5'/%3E%3Cpath d='M7 7l6 6M13 7l-6 6' stroke='%236F7585' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.fit-note { font-size: 14.5px; font-style: italic; color: var(--muted); margin: 16px 0 30px; }
.not-fit__head {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px; padding-top: 22px; border-top: 1px solid var(--hairline);
}

/* Trust — portrait slot, numbers, tags */
.trust__head { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.portrait {
  flex: 0 0 auto; width: 84px; height: 84px; border-radius: 50%;
  background: var(--navy); color: var(--paper);
  display: grid; place-items: center; overflow: hidden;
  font-family: 'Tinos', 'Times New Roman', Times, serif; font-size: 28px; letter-spacing: .02em;
  box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--hairline);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
  margin-bottom: 24px;
}
.stat { padding: 18px 14px 16px 0; }
.stat + .stat { padding-left: 16px; border-left: 1px solid var(--hairline); }
.stat__num {
  font-family: 'Tinos', 'Times New Roman', Times, serif;
  font-size: clamp(30px, 3vw, 40px); line-height: 1; color: var(--navy); letter-spacing: -.02em;
}
.stat__label { font-size: 13px; line-height: 1.35; color: var(--muted); margin-top: 8px; }
.trust__orgs { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.trust__orgs li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 10px; border-bottom: 1px dashed var(--hairline); }
.trust__orgs .org { font-family: 'Tinos', 'Times New Roman', Times, serif; font-size: 20px; color: var(--navy); line-height: 1.15; }
.trust__orgs .org small { display: block; font-family: 'Arimo', Arial, sans-serif; font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.trust__orgs .yrs {
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11.5px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--copper-text); white-space: nowrap;
}

.next-step__facts {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted-on-dark); margin-top: 6px;
}

@media (max-width: 1100px) {
  .hero--split { padding-bottom: 300px; }
  .hero__mark { top: auto; bottom: 36px; height: 230px; left: 56px; right: 56px; margin: 0; width: auto; }
  .hero__dot { width: 20px; height: 20px; }
}
@media (max-width: 1024px) {
  .keep-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .hero--split { padding: 40px 0 250px; }
  .hero__mark { left: 24px; right: 24px; height: 190px; }
  .signs { grid-template-columns: 1fr; gap: 14px; }
  .sign { padding: 24px 22px; }
  .sign__icon { width: 40px; height: 40px; margin-bottom: 16px; }
  .keepband { padding: 80px 0; }
  .section-title { margin-bottom: 30px; }
}
@media (max-width: 560px) {
  .keep-grid { grid-template-columns: 1fr; }
  .keep-tile { display: grid; grid-template-columns: 40px 1fr; gap: 4px 18px; padding: 22px 20px; }
  .keep-tile svg { margin: 0; grid-row: span 2; }
  .stat { padding-right: 8px; }
  .stat + .stat { padding-left: 10px; }
  .stat__label { font-size: 12px; }
}
/* ============================================================
   MOTION — restrained, consulting-grade. Everything here is
   progressive: without JS (or with reduced motion) the page is
   complete and still. html.motion is set by the script below.
   ============================================================ */

/* Nav: frosted once you scroll, with a copper reading-progress line */
.nav { transition: box-shadow .3s ease, background-color .3s ease; }
.nav.is-scrolled {
  background: rgba(247, 244, 238, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  box-shadow: 0 8px 28px rgba(13, 31, 60, .07);
}
.nav__progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, var(--copper), #D18B5B);
  transform-origin: 0 50%; transform: scaleX(0); pointer-events: none;
}

/* Hero, full-height on desktop so the curve has room to climb */
@media (min-width: 1101px) {
  .hero--split { min-height: min(880px, calc(100svh - 62px)); justify-content: center; }
}

/* Live hero curve (built by script at true pixel size, so the dot always sits on the line) */
.hero__mark.is-live path { vector-effect: none; }
.hero__mark .mk-main { fill: none; stroke: var(--navy); stroke-width: 2.5; stroke-linecap: round; opacity: .88; }
.hero__mark .mk-echo { fill: none; stroke-linecap: round; }
.hero__mark .mk-echo--a { stroke: var(--navy); stroke-width: 1; opacity: .14; }
.hero__mark .mk-echo--b { stroke: var(--copper); stroke-width: 1.2; opacity: .22; }
.hero__mark .mk-pulse { fill: none; stroke: #E3A57A; stroke-width: 3.5; stroke-linecap: round; opacity: 0; }
.hero__mark .mk-halo { fill: none; stroke: var(--copper); stroke-width: 1.5; opacity: 0; }
.hero__mark .mk-layer { transition: transform .9s cubic-bezier(.2,.7,.2,1); will-change: transform; }

html.motion .hero__mark .mk-main { stroke-dasharray: 1; stroke-dashoffset: 1; animation: mk-draw 1.8s cubic-bezier(.45,0,.2,1) .2s forwards; }
html.motion .hero__mark .mk-echo { stroke-dasharray: 1; stroke-dashoffset: 1; animation: mk-draw 2.6s cubic-bezier(.45,0,.2,1) .7s forwards; }
html.motion .hero__mark .mk-echo--b { animation-delay: 1s; }
html.motion .hero__mark .mk-dot { transform-box: fill-box; transform-origin: center; transform: scale(0); animation: mk-pop .5s cubic-bezier(.3,1.6,.5,1) 1.85s forwards; }
html.motion .hero__mark .mk-pulse { stroke-dasharray: .07 1; stroke-dashoffset: .07; animation: mk-pulse 6.5s cubic-bezier(.5,0,.3,1) 3s infinite; }
html.motion .hero__mark .mk-halo { transform-box: fill-box; transform-origin: center; animation: mk-halo 6.5s ease-out 3s infinite; }
@keyframes mk-draw { to { stroke-dashoffset: 0; } }
@keyframes mk-pop { to { transform: scale(1); } }
@keyframes mk-pulse {
  0% { stroke-dashoffset: .07; opacity: 0; }
  6% { opacity: 1; }
  44% { stroke-dashoffset: -1; opacity: 1; }
  46%, 100% { stroke-dashoffset: -1; opacity: 0; }
}
@keyframes mk-halo {
  0%, 42% { transform: scale(1); opacity: 0; }
  45% { transform: scale(1); opacity: .7; }
  70%, 100% { transform: scale(2.6); opacity: 0; }
}

/* Reveal on scroll */
html.motion .rv {
  opacity: 0; transform: translateY(26px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
  transition-delay: calc(var(--i, 0) * 110ms);
}
html.motion .rv.is-in { opacity: 1; transform: none; }

/* Icons draw themselves when their card arrives */
html.motion .rv .ic-line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s cubic-bezier(.45,0,.2,1); transition-delay: calc(var(--i, 0) * 110ms + .35s); }
html.motion .rv.is-in .ic-line { stroke-dashoffset: 0; }
html.motion .rv .ic-pop { transform-box: fill-box; transform-origin: center; transform: scale(0); opacity: 0; transition: transform .5s cubic-bezier(.3,1.6,.5,1), opacity .3s ease; transition-delay: calc(var(--i, 0) * 110ms + var(--d, 1.1s)); }
html.motion .rv.is-in .ic-pop { transform: scale(1); opacity: 1; }
/* Lists inside a revealed block arrive one item at a time */
html.motion .rv .stg > *, html.motion .rv.stg > * { opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .5s ease; transition-delay: calc(var(--i, 0) * 110ms + .55s + var(--t, 0) * 60ms); }
html.motion .rv.is-in .stg > *, html.motion .rv.is-in.stg > * { opacity: 1; transform: none; }

/* Cards respond to the pointer */
.sign, .flow__stage { transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, border-color .35s ease; }
@media (hover: hover) {
  .sign:hover { transform: translateY(-6px); box-shadow: 0 22px 50px rgba(13, 31, 60, .10); border-color: rgba(181, 107, 63, .45); }
  .flow__stage:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(13, 31, 60, .09); }
  html.motion .rv.is-in.sign:hover, html.motion .rv.is-in.flow__stage:hover { transition-delay: 0s; }
  .keep-tile { transition: background-color .35s ease; }
  .keep-tile:hover { background: rgba(22, 44, 82, .92); }
}
.btn { position: relative; transition: background-color .2s linear, border-color .2s linear, transform .2s ease, box-shadow .2s ease; }
@media (hover: hover) { .btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(13, 31, 60, .18); } }

/* Navy band: the curve returns, drawn by your scroll */
.keepband { position: relative; overflow: hidden; }
.keepband > .container { position: relative; z-index: 1; }
.band-curve { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.band-curve path { fill: none; stroke: #D18B5B; stroke-width: 2; stroke-linecap: round; opacity: .55; }
.band-curve .bc-echo { stroke: rgba(247, 244, 238, .5); stroke-width: 1; opacity: .25; }
.band-curve circle { fill: #D18B5B; }
html.motion .band-curve path { stroke-dasharray: 1; stroke-dashoffset: var(--draw, 1); }
html.motion .band-curve circle { transform-box: fill-box; transform-origin: center; transform: scale(var(--dot, 0)); transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.keep-tile { background: rgba(13, 31, 60, .84); }
@media (max-width: 880px) {
  .keepband { padding-bottom: 230px; }
  .band-curve { top: auto; height: 210px; }
}

/* Steps: the "you decide" gates turn as they arrive */
html.motion .flow__gate.rv svg { transform: rotate(-90deg) scale(.6); transition: transform .8s cubic-bezier(.3,1.4,.5,1); transition-delay: calc(var(--i, 0) * 110ms + .25s); }
html.motion .flow__gate.rv.is-in svg { transform: none; }
@media (max-width: 880px) { html.motion .flow__gate.rv.is-in svg { transform: rotate(90deg); } }

.hero__mark .mk-dot { filter: drop-shadow(0 6px 9px rgba(140, 79, 44, .35)); }
html.motion .hero__mark.settled .mk-main, html.motion .hero__mark.settled .mk-echo { animation: none; stroke-dashoffset: 0; }
html.motion .hero__mark.settled .mk-dot { animation: none; transform: none; }

/* ------------------------------------------------------------
   Inner pages (About, Problem Recovery)
   ------------------------------------------------------------ */

/* A shorter hero that still carries the logo curve */
.hero--sub { padding: 80px 0 120px; }
@media (min-width: 1101px) {
  .hero--split.hero--sub { min-height: 0; }
  .hero--sub .hero__mark { width: auto; margin: 0; left: 52%; right: max(40px, calc((100% - 1180px) / 2 + 40px)); }
}
@media (max-width: 1100px) {
  .hero--split.hero--sub { padding-bottom: 230px; }
  .hero--sub .hero__mark { height: 170px; }
}
@media (max-width: 880px) { .hero--split.hero--sub { padding: 40px 0 220px; } }

/* About: portrait beside the name */
.hero__id { display: flex; align-items: center; gap: 28px; }
.hero__id .hero__headline { margin-bottom: 6px; }
.portrait--lg { width: 124px; height: 124px; font-size: 42px; box-shadow: 0 0 0 6px var(--paper), 0 0 0 7px var(--hairline), 0 18px 40px rgba(13, 31, 60, .12); }
@media (max-width: 560px) {
  .hero__id { gap: 18px; }
  .portrait--lg { width: 84px; height: 84px; font-size: 28px; }
}

/* Problem Recovery: the 01–06 rail becomes a sticky tracker */
.sys-rail {
  position: sticky; top: 62px; z-index: 20;
  margin: 36px -14px 44px; padding: 12px 14px;
  background: rgba(247, 244, 238, .9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule-light);
}
.sys-rail__item { padding: 0; transition: background-color .3s ease, color .3s ease, border-color .3s ease, transform .3s ease; }
.sys-rail__item a { display: inline-flex; align-items: baseline; gap: 9px; padding: 11px 15px; color: inherit; text-decoration: none; }
.sys-rail__item.is-done { border-bottom-color: var(--navy); }
.sys-rail__item.is-active { background: var(--navy); color: var(--paper); border-color: var(--navy); border-bottom-color: var(--copper); transform: translateY(-2px); }
.sys-rail__item.is-active .sys-rail__n { color: #D18B5B; }
@media (hover: hover) { .sys-rail__item:not(.is-active):hover { border-color: var(--copper); } }
@media (max-width: 880px) {
  .sys-rail { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 28px -24px 32px; padding: 10px 24px; }
  .sys-rail::-webkit-scrollbar { display: none; }
  .sys-rail__item, .sys-rail__arrow { flex: 0 0 auto; }
}

/* Stages read as a process: one row each */
.sys-grid--rows { grid-template-columns: 1fr; gap: 18px; }
.sys-grid--rows + .sys-grid--rows { margin-top: 18px; }
.sys-stage { scroll-margin-top: 150px; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, border-color .35s ease; }
.sys-stage__icon { width: 46px; height: 46px; display: block; margin-bottom: 18px; }
@media (min-width: 961px) {
  .sys-grid--rows .sys-stage {
    display: grid; grid-template-columns: 190px minmax(0, 1fr) 250px; column-gap: 40px;
    align-items: start; padding: 30px 32px;
  }
  .sys-grid--rows .sys-stage > .sys-stage__id { grid-column: 1; grid-row: 1 / span 8; }
  .sys-grid--rows .sys-stage > :not(.sys-stage__id):not(.sys-stage__out) { grid-column: 2; }
  .sys-grid--rows .sys-stage > .sys-stage__q { font-size: 27px; }
  .sys-grid--rows .sys-stage > .sys-stage__out {
    grid-column: 3; grid-row: 1 / span 8; align-self: stretch; margin: 0;
    padding: 4px 0 0 26px; border-top: 0; border-left: 1px solid var(--rule-light);
  }
}
@media (hover: hover) {
  .sys-stage:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(13, 31, 60, .08); border-top-color: var(--copper); }
  html.motion .rv.is-in.sys-stage:hover { transition-delay: 0s; }
}

/* The loop: each node takes its turn, so it reads as a cycle */
html.motion .loop.is-in .loop__node,
html.motion .loop.is-in .loop__return { animation: loop-beat calc(var(--n, 6) * 1.1s) ease-in-out infinite; animation-delay: calc(1.2s + var(--k, 0) * 1.1s); }
@keyframes loop-beat {
  0%, 22%, 100% { background-color: transparent; box-shadow: none; }
  6%, 14% { background-color: rgba(209, 139, 91, .22); box-shadow: 0 0 0 1px #D18B5B, 0 0 26px rgba(209, 139, 91, .28); }
}

/* People and AI: small marks beside the column labels */
.sys-col-label { display: flex; align-items: center; gap: 10px; }
.sys-col-label svg { width: 22px; height: 22px; flex: 0 0 auto; }

/* The map: items pop in, and respond to the pointer */
.map__items li { transition: transform .3s ease, box-shadow .3s ease; }
@media (hover: hover) { .map__items li:hover { transform: translateX(4px); box-shadow: 0 8px 22px rgba(13, 31, 60, .07); } }

@media (prefers-reduced-motion: reduce) {
  html.motion .rv, html.motion .rv .stg > *, html.motion .rv.stg > *, html.motion .rv .ic-pop { opacity: 1; transform: none; transition: none; }
  html.motion .rv .ic-line { stroke-dashoffset: 0; transition: none; }
}

/* Printing always shows the finished page */
@media print {
  html.motion .rv, html.motion .rv .stg > *, html.motion .rv.stg > *, html.motion .rv .ic-pop { opacity: 1 !important; transform: none !important; }
  html.motion .rv .ic-line { stroke-dashoffset: 0 !important; }
  .nav__progress, .hero__mark, .band-curve { display: none; }
}

/* ------------------------------------------------------------
   Team: photo slots, the homepage strip, and About cards
   ------------------------------------------------------------ */
.portrait--sm { width: 40px; height: 40px; font-size: 14px; box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--hairline); }
.portrait--md { width: 64px; height: 64px; font-size: 22px; }

.team-strip { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 26px; }
.team-strip li { display: flex; align-items: center; gap: 12px; font-family: 'Tinos', 'Times New Roman', Times, serif; font-size: 17px; color: var(--navy); line-height: 1.2; }
.team-strip small { display: block; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--copper-text); margin-top: 3px; }

.section--team { padding-top: 40px; }
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 20px; }
.team-card {
  background: var(--surface); border: 1px solid var(--hairline); border-top: 3px solid var(--navy);
  padding: 28px 28px 24px;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, border-color .35s ease;
}
.team-card__head { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.team-card__name { font-family: 'Tinos', 'Times New Roman', Times, serif; font-size: 25px; font-weight: 400; letter-spacing: -.01em; line-height: 1.1; color: var(--navy); }
.team-card__role { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--copper-text); margin-top: 6px; }
.team-card .trust__list li { font-size: 15.5px; }
@media (hover: hover) {
  .team-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(13, 31, 60, .08); border-top-color: var(--copper); }
  html.motion .rv.is-in.team-card:hover { transition-delay: 0s; }
}

/* ------------------------------------------------------------
   Navigation: logo mark, and a real menu on phones
   ------------------------------------------------------------ */
.nav__brand { display: inline-flex; align-items: center; gap: 9px; }
.nav__mark { width: 20px; height: 20px; color: var(--navy); flex: 0 0 auto; transform: translateY(-1px); }
.nav__link--home, .nav__cta--bar, .nav__toggle { display: none; }
.nav__link[aria-current="page"] { opacity: 1; color: var(--copper-text); }

/* "Schedule" lands with the calendar in full view, just under the bar */
#schedule { scroll-margin-top: calc(var(--nav-h, 64px) + 14px); }

@media (max-width: 760px) {
  html.js .nav__inner { flex-wrap: nowrap; position: relative; gap: 10px; padding: 10px 14px 10px 18px; row-gap: 0; }
  html.js .nav__brandwrap { flex: 1 1 auto; min-width: 0; }
  html.js .nav__brand { flex: none; font-size: 12px; letter-spacing: .16em; }
  html.js .nav__cat { display: none; }
  html.js .nav__cta--bar { display: inline-flex; align-items: center; margin: 0; padding: 10px 12px; font-size: 11px; letter-spacing: .05em; }
  html.js .nav__toggle {
    display: inline-grid; place-items: center; flex: 0 0 auto;
    width: 44px; height: 40px; padding: 0; cursor: pointer;
    background: var(--surface); color: var(--navy);
    border: 1px solid var(--rule-light); border-radius: 4px;
  }
  .nav__toggle-bars, .nav__toggle-bars::before, .nav__toggle-bars::after {
    display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px;
    transition: transform .25s ease, opacity .2s ease;
  }
  .nav__toggle-bars { position: relative; }
  .nav__toggle-bars::before, .nav__toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav__toggle-bars::before { top: -6px; }
  .nav__toggle-bars::after { top: 6px; }
  .nav.is-open .nav__toggle-bars { background: transparent; }
  .nav.is-open .nav__toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav.is-open .nav__toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

  /* the panel */
  html.js .nav__links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0; flex-wrap: nowrap;
    padding: 6px 20px 24px; margin: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule-light);
    box-shadow: 0 28px 44px rgba(13, 31, 60, .14);
    max-height: calc(100svh - var(--nav-h, 60px)); overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
  }
  html.js .nav.is-open .nav__links { visibility: visible; opacity: 1; transform: none; transition: opacity .22s ease, transform .22s ease; }
  html.js .nav__links .nav__link {
    display: flex; justify-content: space-between; align-items: center;
    font-family: 'Tinos', 'Times New Roman', Times, serif; font-size: 25px; font-weight: 400;
    color: var(--navy); opacity: 1; padding: 15px 2px; border-bottom: 1px solid var(--rule-light);
  }
  html.js .nav__links .nav__link::after { content: "\2192"; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 16px; color: var(--copper-text); }
  html.js .nav__links .nav__link[aria-current="page"] { color: var(--copper-text); border-left: 3px solid var(--copper); padding-left: 12px; }
  html.js .nav__links .nav__link[aria-current="page"]::after { content: "You are here"; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
  html.js .nav__links .nav__cta { display: block; width: 100%; text-align: center; margin: 22px 0 0; padding: 18px 16px; font-size: 13.5px; letter-spacing: .08em; }
}
@media (max-width: 359px) { html.js .nav__cta--bar { display: none; } }

/* On phones the menu bar drops the category, so the hero carries it */
.hero__cat { display: none; }
@media (max-width: 760px) {
  html.js .hero__cat {
    display: flex; align-items: center; gap: 12px; margin: 0 0 16px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
    color: var(--navy); opacity: .75;
  }
  html.js .hero__cat::before { content: ""; width: 24px; height: 1px; background: var(--teal); }
}
