/* ACE Musculoskeletal Institute · acemsk.in
   Layout concept: one idea per viewport on calm warm paper; colour arrives as
   whole fields (navy stage, beige, teal, mauve), never as scattered accents.
   The gait figure is the one authored moment. */

@font-face {
  font-family: "Anek Latin";
  src: url("../fonts/anek-latin.woff2") format("woff2");
  font-weight: 100 800; font-stretch: 75% 125%; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Anek Latin";
  src: url("../fonts/anek-latin-ext.woff2") format("woff2");
  font-weight: 100 800; font-stretch: 75% 125%; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;

  /* colour: ACE blue from the logo; beige, mauve and teal from the interiors */
  --paper: #fbfaf7;
  --white: #ffffff;
  --beige: #f2ede6;
  --sand: #e4d9cb;
  --line: #ddd5c9;
  --ink: #0e2038;
  --ink-2: #44546a;
  --ink-3: #55637a;
  --navy: #0a2a5e;
  --navy-deep: #071f47;
  --blue: #1476c1;
  --blue-ink: #0d5fa3;
  --sky: #2798d0;
  --sky-soft: #9fd3f2;
  --teal: #146f6f;
  --teal-field: #e2efec;
  --mauve: #84606a;
  --mauve-field: #f1e6e3;
  --gold: #86641a;
  --gold-field: #f3ead6;
  --on-navy: #f3f6fb;
  --on-navy-2: #b8c7de;
  --line-navy: rgba(255, 255, 255, 0.16);
  --danger: #a3302a;

  /* type */
  --font: "Anek Latin", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-display: clamp(2.9rem, 1.4rem + 6.4vw, 6rem);
  --fs-h1: clamp(2.5rem, 1.5rem + 4.2vw, 4.5rem);
  --fs-h2: clamp(1.95rem, 1.3rem + 2.7vw, 3.25rem);
  --fs-h3: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem);
  --fs-lede: clamp(1.2rem, 1.05rem + 0.7vw, 1.55rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-fine: 0.875rem;

  /* space */
  --gutter: clamp(20px, 5vw, 64px);
  --wrap: 1240px;
  --section: clamp(4.5rem, 3rem + 7vw, 9.5rem);
  --radius: 22px;
  --radius-s: 12px;
  --header-h: 64px;
  --night: #0e1217;

  /* motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: var(--fs-body); line-height: 1.55; font-weight: 400;
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.on-navy :focus-visible { outline-color: var(--sky-soft); }
html { scrollbar-color: #c2b8aa var(--paper); }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; transition: top 160ms var(--ease-out); }
.skip:focus { top: 12px; }

/* ── type ─────────────────────────────────────────── */
h1, h2, h3 { text-wrap: balance; }
.display, h1, h2 { font-stretch: 110%; font-weight: 520; }
.display { font-size: var(--fs-display); line-height: 0.98; letter-spacing: -0.032em; }
h1 { font-size: var(--fs-h1); line-height: 1; letter-spacing: -0.03em; }
h2 { font-size: var(--fs-h2); line-height: 1.04; letter-spacing: -0.026em; }
h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -0.012em; font-weight: 600; }
h4 { font-size: var(--fs-body); font-weight: 650; letter-spacing: 0; }
p { text-wrap: pretty; }
.lede { font-size: var(--fs-lede); line-height: 1.38; color: var(--ink-2); letter-spacing: -0.008em; max-width: 34em; }
.prose { max-width: 34em; }
.sub { font-size: var(--fs-h3); font-stretch: 100%; font-weight: 600; letter-spacing: -0.012em; margin-bottom: 1.1rem; }
.prose > * + * { margin-top: 1.05em; }
.prose h3 { margin-top: 2.2em; }
.prose a:not(.btn):not(.more), .text-link { color: var(--blue-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; text-decoration-color: color-mix(in srgb, var(--blue-ink) 40%, transparent); transition: text-decoration-color 160ms ease; }
.prose a:not(.btn):not(.more):hover, .text-link:hover { text-decoration-color: currentColor; }
.muted { color: var(--ink-2); }
.fine { font-size: var(--fs-fine); color: var(--ink-3); line-height: 1.45; }
.num { font-variant-numeric: tabular-nums; }

/* ── layout ───────────────────────────────────────── */
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.section { padding-block: var(--section); }
.section-tight { padding-block: calc(var(--section) * 0.6); }
.field-white { background: var(--white); }
.field-beige { background: var(--beige); }
.field-teal { background: var(--teal-field); }
.field-mauve { background: var(--mauve-field); }
.field-gold { background: var(--gold-field); }
.field-navy, .on-navy { background: var(--navy); color: var(--on-navy); }
.on-navy .lede, .on-navy .muted { color: var(--on-navy-2); }
.on-navy .fine { color: #a9bad4; }
.field-teal .lede, .field-teal .muted { color: #2c4f52; }
.field-mauve .lede, .field-mauve .muted { color: #5a4449; }
.field-beige .lede, .field-beige .muted { color: #4a4f57; }
.head { display: grid; gap: clamp(1rem, 2vw, 1.5rem); max-width: 52rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.split { display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split.wide-media { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .split.flip > :first-child { order: 2; }
  .split.top { align-items: start; }
}
.stack { display: grid; gap: 1.1rem; align-content: start; }
.stack-l { display: grid; gap: clamp(1.4rem, 2.4vw, 2rem); align-content: start; }

/* ── buttons ──────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; min-height: 48px; padding: 0.7em 1.45em; border: 0; border-radius: 999px; font-weight: 560; font-size: 1.0625rem; line-height: 1.1; letter-spacing: -0.005em; transition: transform 140ms var(--ease-out), background-color 180ms ease, box-shadow 180ms ease; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 26%, transparent); }
.on-navy .btn-ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.4); }
.btn-s { min-height: 38px; padding: 0.5em 1.1em; font-size: 0.9375rem; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: #0f66ab; }
  .btn-ink:hover { background: #1a3354; }
  .btn-light:hover { background: #eaf2fb; }
  .btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
  .on-navy .btn-ghost:hover { box-shadow: inset 0 0 0 1.5px #fff; }
}
.more { display: inline-flex; align-items: center; gap: 0.35em; color: var(--blue-ink); font-weight: 560; font-size: 1.0625rem; }
.on-navy .more { color: var(--sky-soft); }
.more svg { width: 0.62em; height: 0.62em; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .more:hover svg { transform: translateX(3px); } .more:hover { text-decoration: underline; text-underline-offset: 0.22em; text-decoration-thickness: 1px; } }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; }

/* ── header ───────────────────────────────────────── */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; height: var(--header-h); background: color-mix(in srgb, var(--paper) 86%, transparent); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); transition: box-shadow 240ms ease, background-color 320ms ease; }
.menu-open .site-header { background: var(--paper); }
.site-header.is-scrolled { box-shadow: 0 1px 0 rgba(14, 32, 56, 0.09); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--paper); }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; padding-block: 6px; }
.brand img.mark { height: 40px; width: auto; }
.brand .word { position: relative; display: block; height: 19px; }
.brand .word img { height: 100%; width: auto; max-width: none; transition: opacity 260ms ease; }
.brand .word .on-dark { position: absolute; inset: 0; opacity: 0; }
.brand-sub { display: none; font-size: 0.6875rem; line-height: 1.2; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-2); padding-left: 13px; margin-left: 2px; border-left: 1px solid var(--line); transition: color 260ms ease, border-color 260ms ease; }
@media (min-width: 1120px) { :root { --header-h: 78px; } .brand img.mark { height: 50px; } .brand .word { height: 24px; } }
@media (min-width: 1280px) { .brand-sub { display: block; } }
.nav { margin-left: auto; display: none; align-items: center; gap: clamp(0.9rem, 1.7vw, 1.75rem); }
.nav a { font-size: 0.9375rem; color: var(--ink-2); padding: 8px 0; transition: color 160ms ease; }
.nav a[aria-current="page"], .nav a[aria-current="true"] { color: var(--ink); font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--ink); } }
.header-cta { margin-left: auto; }
.menu-btn { position: relative; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; border-radius: 12px; }
.menu-btn .bar { position: absolute; left: 12px; top: 21px; width: 20px; height: 1.75px; background: var(--ink); border-radius: 2px; transition: transform 280ms var(--ease-out), background-color 260ms ease; }
.menu-btn .bar:nth-child(1) { transform: translateY(-4px); }
.menu-btn .bar:nth-child(2) { transform: translateY(4px); }
.menu-open .menu-btn .bar:nth-child(1) { transform: rotate(45deg); }
.menu-open .menu-btn .bar:nth-child(2) { transform: rotate(-45deg); }
@media (min-width: 1120px) {
  .nav { display: flex; }
  .header-cta { margin-left: 0; }
  .menu-btn { display: none; }
}
@media (max-width: 420px) { .header-cta { display: none; } .menu-btn { margin-left: auto; } }

.menu { position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 0; z-index: 49; background: var(--paper); padding: 1.25rem max(var(--gutter), env(safe-area-inset-right, 0px)) calc(2rem + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px)); overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity 220ms ease, transform 320ms var(--ease-out), visibility 0s linear 320ms; }
.menu-open .menu { visibility: visible; opacity: 1; transform: none; transition: opacity 220ms ease, transform 320ms var(--ease-out), visibility 0s; }
.menu a.big { display: block; font-size: clamp(1.7rem, 7vw, 2.2rem); font-stretch: 110%; font-weight: 520; letter-spacing: -0.025em; line-height: 1.1; padding: 0.42em 0; border-bottom: 1px solid var(--line); }
.menu .menu-foot { margin-top: 1.75rem; display: grid; gap: 1rem; }
@media (min-width: 1120px) { .menu { display: none; } }

/* over the night photograph on the home page the header is clear and its ink is white */
.js .has-dark-hero .site-header:not(.is-solid) { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
.js .has-dark-hero .site-header:not(.is-solid).is-scrolled { background: color-mix(in srgb, var(--night) 62%, transparent); -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px); }
.js .has-dark-hero .site-header:not(.is-solid) .nav a { color: rgba(255, 255, 255, 0.84); }
.js .has-dark-hero .site-header:not(.is-solid) .nav a:hover { color: #fff; }
.js .has-dark-hero .site-header:not(.is-solid) .brand .word img:first-child { opacity: 0; }
.js .has-dark-hero .site-header:not(.is-solid) .brand .word .on-dark { opacity: 1; }
.js .has-dark-hero .site-header:not(.is-solid) .brand-sub { color: rgba(255, 255, 255, 0.8); border-color: rgba(255, 255, 255, 0.3); }
.js .has-dark-hero .site-header:not(.is-solid) .menu-btn .bar { background: #fff; }
.js .has-dark-hero .site-header:not(.is-solid) .header-cta { background: #fff; color: var(--navy); }

/* ── hero (home) ──────────────────────────────────── */
.hero { position: relative; isolation: isolate; margin-top: calc(-1 * var(--header-h)); min-height: calc(100svh + 28px); display: grid; background: var(--night); color: #fff; overflow: clip; }
.hero-media { position: absolute; inset: 0 auto 0 0; width: 78%; z-index: -1; -webkit-mask-image: linear-gradient(to right, #000 70%, transparent); mask-image: linear-gradient(to right, #000 70%, transparent); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 74% 50%; transform-origin: 42% 62%; }
.hero-inner { display: grid; align-items: center; padding-block: calc(var(--header-h) + 1.5rem) calc(3.5rem + 28px); }
.hero-copy { display: grid; gap: clamp(1rem, 2.2svh, 1.5rem); justify-items: start; width: min(100%, 31rem); margin-left: auto; }
.hero-logo { width: clamp(112px, min(13vw, 19svh), 196px); height: auto; margin-bottom: 0.25rem; }
.hero .display { font-size: clamp(2.6rem, min(1.4rem + 4.3vw, 10svh), 5rem); }
.hero .lede { color: rgba(255, 255, 255, 0.84); max-width: 25em; }
.hero-open { width: 100%; margin-top: 0.4rem; padding-top: 1.1rem; border-top: 1px solid rgba(255, 255, 255, 0.24); display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 1rem; font-weight: 600; }
.hero-open span { font-weight: 400; font-size: var(--fs-small); color: rgba(255, 255, 255, 0.72); }
.hero-cap { position: absolute; left: max(var(--gutter), env(safe-area-inset-left, 0px)); bottom: calc(28px + 1.35rem); font-size: var(--fs-fine); color: rgba(255, 255, 255, 0.62); }
.hero-cue { position: absolute; left: 50%; bottom: calc(28px + 1.1rem); width: 44px; height: 44px; margin-left: -22px; display: grid; place-items: center; border-radius: 50%; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34); transition: background-color 200ms ease, transform 160ms var(--ease-out); }
.hero-cue svg { width: 14px; height: 14px; }
.hero-cue:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .hero-cue:hover { background: rgba(255, 255, 255, 0.14); } }
@media (min-width: 900px) and (max-width: 1279px) { .hero-media { width: 68%; } .hero-media img { object-position: 60% 50%; } .hero-copy { width: min(100%, 27rem); } }
@media (max-width: 899px) {
  .hero-media { inset: 0 0 auto 0; width: 100%; height: 64svh; -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent); mask-image: linear-gradient(to bottom, #000 58%, transparent); }
  .hero-media img { object-position: 53% 50%; }
  .hero-inner { align-items: end; padding-block: 36svh calc(4.5rem + 28px); }
  .hero-copy { width: 100%; margin-left: 0; }
  .hero-logo { width: clamp(92px, 26vw, 120px); }
  .hero-cap { left: auto; right: max(var(--gutter), env(safe-area-inset-right, 0px)); top: calc(var(--header-h) + 0.5rem); bottom: auto; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .hero-media img { animation: hero-in 2400ms var(--ease-out) both; }
  .js .hero-copy > * { animation: rise-in 1100ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 110ms + 250ms); }
  .js .hero-copy > :nth-child(2) { --i: 1; } .js .hero-copy > :nth-child(3) { --i: 2; } .js .hero-copy > :nth-child(4) { --i: 3; }
  .js .hero-logo { animation-name: logo-in; animation-duration: 1400ms; }
}
@keyframes hero-in { from { opacity: 0; transform: scale(1.09); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(22px); } }
@keyframes logo-in { from { opacity: 0; transform: translateY(10px) scale(0.92); filter: blur(8px); } }

/* the page slides over the photograph like a sheet of paper */
.sheet { position: relative; z-index: 2; background: var(--paper); border-radius: 28px 28px 0 0; margin-top: -28px; }
.statement { font-size: clamp(1.7rem, 1.05rem + 2.9vw, 3.5rem); font-stretch: 108%; font-weight: 470; line-height: 1.14; letter-spacing: -0.026em; max-width: 21em; }
.statement .w { transition: opacity 500ms ease; }
.js .statement.is-split .w { opacity: 0.16; }
.js .statement.is-split .w.on { opacity: 1; }
.roof-grid { margin-top: clamp(2.5rem, 6vw, 5rem); }
@media (min-width: 900px) { .roof-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); } }

/* ── the picture sequence ─────────────────────────── */
.film { padding-top: var(--section); }
.film .head { margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.film-stage { padding-bottom: var(--section); }
.film-frame { position: relative; width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; display: grid; gap: clamp(12px, 1.6vw, 20px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.scene { border-radius: var(--radius); overflow: hidden; background: var(--sand); aspect-ratio: 4 / 3; }
.scene img { width: 100%; height: 100%; object-fit: cover; }
.film-shade, .film-dots { display: none; }
.film-caps { grid-column: 1 / -1; display: grid; gap: 0.35rem; font-size: var(--fs-small); color: var(--ink-2); }
.film-caps b { color: var(--ink); font-weight: 600; margin-right: 0.5em; }
.film-note { grid-column: 1 / -1; font-size: var(--fs-fine); color: var(--ink-3); }
@media (prefers-reduced-motion: no-preference) {
  .js .film-track { height: calc(var(--n) * 78svh + 70svh); }
  .js .film-stage { position: sticky; top: var(--header-h); height: calc(100svh - var(--header-h)); padding: 0; overflow: clip; }
  .js .film-frame { display: block; width: 100%; height: 100%; background: var(--night); clip-path: inset(var(--fy, 5%) var(--fx, 6%) round var(--fr, 28px)); }
  .js .scene { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; background: none; opacity: 0; transition: opacity 1000ms ease; }
  .js .scene.on { opacity: 1; }
  .js .scene img { transform: scale(var(--z, 1.14)); will-change: transform; }
  .js .film-shade { display: block; position: absolute; inset: 40% 0 0; background: linear-gradient(to top, rgba(8, 11, 16, 0.78), rgba(8, 11, 16, 0)); }
  .js .film-caps { position: absolute; left: calc(6% + clamp(1.25rem, 3vw, 3rem)); right: calc(6% + clamp(1.25rem, 3vw, 3rem)); bottom: calc(5% + clamp(3.25rem, 9svh, 5.5rem)); gap: 0; color: #fff; font-size: inherit; }
  .js .film-caps li { grid-area: 1 / 1; opacity: 0; transform: translateY(16px); transition: opacity 420ms ease, transform 700ms var(--ease-out); }
  .js .film-caps li.on { opacity: 1; transform: none; transition-delay: 260ms; }
  .js .film-caps b { display: block; margin: 0; color: #fff; font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3.6rem); font-stretch: 110%; font-weight: 520; letter-spacing: -0.028em; line-height: 1.02; }
  .js .film-caps span { display: block; margin-top: 0.6rem; max-width: 24em; font-size: var(--fs-lede); line-height: 1.35; color: rgba(255, 255, 255, 0.88); }
  .js .film-dots { display: flex; gap: 6px; position: absolute; left: calc(6% + clamp(1.25rem, 3vw, 3rem)); bottom: calc(5% + clamp(1.5rem, 4.5svh, 2.75rem)); }
  .js .film-dots i { width: 22px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.36); transition: width 500ms var(--ease-out), background-color 300ms ease; }
  .js .film-dots i.on { width: 44px; background: #fff; }
  .js .film-note { position: absolute; right: calc(6% + clamp(1.25rem, 3vw, 3rem)); bottom: calc(5% + clamp(1.35rem, 4.2svh, 2.5rem)); color: rgba(255, 255, 255, 0.72); }
}

.stride-intro .cycle { margin-top: 0; }
@media (prefers-reduced-motion: no-preference) { .js .cycle svg[data-rv] .fig { animation: none; opacity: 0; transform: translateX(-14px); transition: opacity 700ms ease, transform 800ms var(--ease-out); transition-delay: calc(var(--i) * 85ms + 150ms); } .js .cycle svg[data-rv].in .fig { opacity: 1; transform: none; } }
.callback { display: grid; gap: 0.6rem; max-width: 33rem; }
.callback-row { display: flex; gap: 8px; padding: 6px; background: var(--white); border-radius: 999px; box-shadow: 0 0 0 1px var(--line), 0 10px 30px -18px rgba(14, 32, 56, 0.35); transition: box-shadow 180ms ease; }
.callback-row:focus-within { box-shadow: 0 0 0 2px var(--blue), 0 10px 30px -18px rgba(14, 32, 56, 0.35); }
.callback input { flex: 1; min-width: 0; border: 0; background: none; padding: 0 0 0 1.1rem; font-size: 1.0625rem; caret-color: var(--blue); }
.callback input:focus { outline: none; }
.callback input::placeholder { color: var(--ink-3); }
.on-navy .callback-row { box-shadow: none; }
.on-navy .callback-row:focus-within { box-shadow: 0 0 0 3px var(--sky); }
.on-navy .callback input { color: var(--ink); }
.form-note { font-size: var(--fs-small); color: var(--ink-2); min-height: 1.4em; }
.on-navy .form-note { color: var(--on-navy-2); }
.form-note[data-state="error"] { color: var(--danger); }
.on-navy .form-note[data-state="error"] { color: #ffc2bd; }
.form-note[data-state="ok"] { color: var(--teal); font-weight: 560; }
.form-note[data-state="preview"] { color: var(--ink); }
.on-navy .form-note[data-state="preview"] { color: #fff; }
.on-navy .form-note[data-state="ok"] { color: #b9f0df; }

.cycle { margin-top: clamp(2rem, 3.5vw, 3.5rem); }
.cycle svg { width: 100%; height: auto; overflow: visible; }
.cycle .narrow { display: none; }
@media (max-width: 719px) { .cycle .wide { display: none; } .cycle svg.narrow { display: block; } .cycle ol.narrow, .cycle .cycle-bar.narrow { display: grid; } }
.g-bone, .g-foot, .g-head { fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.g-far.g-bone, .g-far.g-foot { stroke: #a9bcd2; }
.g-trunk { stroke-width: 2.6; }
.g-joint { fill: var(--paper); stroke: var(--blue); stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.g-joint.g-far { stroke: #a9bcd2; }
.g-ground { stroke: var(--ink); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.g-tick { stroke: var(--ink); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.cycle .fig { animation: fig-in 700ms var(--ease-out) both; animation-delay: calc(var(--i) * 85ms + 120ms); }
@keyframes fig-in { from { opacity: 0; transform: translateX(-14px); } }
.cycle-key { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); margin-top: 10px; }
.cycle-key li { text-align: center; font-size: var(--fs-fine); line-height: 1.25; color: var(--ink-2); padding-inline: 2px; }
.cycle-key li b { display: block; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.cycle-bar { display: grid; grid-template-columns: 60fr 40fr; gap: 3px; margin-top: 14px; font-size: var(--fs-fine); font-weight: 600; }
.cycle-bar span { padding: 7px 12px; border-radius: 6px; }
.cycle-bar .stance { background: var(--navy); color: #fff; }
.cycle-bar .swing { background: var(--sand); color: var(--ink); }
.cycle-cap { margin-top: 14px; max-width: 44em; }

/* ── the stride (pinned) ──────────────────────────── */
.stride { position: relative; }
.stride-head { padding-block: clamp(3rem, 7vw, 6rem) clamp(1rem, 3vw, 2rem); }
.stride-head .lede { max-width: 30em; }
.stride-grid { display: grid; }
.stage { position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); z-index: 2; background: var(--navy); height: 44svh; min-height: 280px; display: grid; grid-template-rows: minmax(0, 1fr) auto; padding-block: 0.5rem 1.25rem; row-gap: 0.75rem; border-bottom: 1px solid var(--line-navy); }
.stage svg { width: 100%; height: 100%; min-height: 0; overflow: visible; }
.stage .g-bone, .stage .g-foot, .stage .g-head { stroke: #fff; stroke-width: 3; }
.stage .g-far.g-bone, .stage .g-far.g-foot { stroke: #5f80b3; }
.stage .g-joint { fill: var(--navy); stroke: var(--sky-soft); stroke-width: 2.4; }
.stage .g-joint.g-far { stroke: #5f80b3; }
.stage .g-ground { stroke: rgba(255, 255, 255, 0.55); }
.stage .g-trace { fill: none; stroke: var(--sky-soft); stroke-width: 1.4; stroke-dasharray: 1 7; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: 0.8; }
.stage .g-marks line { stroke: rgba(255, 255, 255, 0.4); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.readout { display: flex; align-items: baseline; justify-content: space-between; gap: 0.25rem 1rem; flex-wrap: wrap; font-size: var(--fs-fine); color: var(--on-navy-2); }
.readout b { color: #fff; font-weight: 600; font-size: 1.125rem; margin-right: 0.6em; }
.readout .rd-gait { font-variant-numeric: tabular-nums; }
/* the knee's angle through one step; the six marks are the stages of care */
.chart { position: relative; height: 34px; margin-top: 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.3); }
.chart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.chart path { fill: none; stroke: var(--sky-soft); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.chart .mark { position: absolute; bottom: -1px; width: 1px; height: 9px; margin-left: -0.5px; background: rgba(255, 255, 255, 0.75); }
.chart .mark:last-of-type { margin-left: -1px; }
.chart i { position: absolute; left: 0; top: 85%; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(159, 211, 242, 0.35); }
.chart-key { display: none; position: relative; height: 1.5em; margin-top: 6px; font-size: var(--fs-fine); color: #9fb0cb; }
.chart-key li { position: absolute; top: 0; white-space: nowrap; transition: color 200ms ease; }
.chart-key li.on { color: #fff; font-weight: 600; }
.steps { padding-bottom: clamp(3rem, 8vw, 7rem); }
.step { min-height: 50svh; display: grid; align-content: start; gap: 1rem; padding-block: 2.5rem; max-width: 30rem; }
.js .step { opacity: 0.7; transition: opacity 320ms ease; }
.js .step.on { opacity: 1; }
@media (prefers-contrast: more) { .js .step { opacity: 1; } }
.step h3 { font-size: clamp(2rem, 1.5rem + 2.4vw, 3.25rem); font-stretch: 110%; font-weight: 520; letter-spacing: -0.028em; line-height: 1.02; }
.step p { color: var(--on-navy-2); font-size: 1.125rem; line-height: 1.5; }
.step .where { color: #fff; font-size: var(--fs-small); font-weight: 560; }
@media (min-width: 900px) {
  .stride-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); column-gap: clamp(2rem, 6vw, 6rem); }
  .stage { height: calc(100svh - var(--header-h)); border-bottom: 0; padding-block: 2rem; grid-template-rows: minmax(0, min(64svh, 600px)) auto; align-content: center; row-gap: 1.25rem; }
  .step { min-height: 60svh; align-content: center; }
  .step:first-child { padding-top: 6rem; }
  .chart { height: 46px; }
  .chart-key { display: block; }
}

/* ── spec table ───────────────────────────────────── */
.specs { border-top: 1px solid var(--line); }
.specs > div { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 0.25rem 1.5rem; padding-block: 1rem; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--ink-2); }
.specs dd { font-weight: 520; }
.specs dd span { display: block; font-weight: 400; color: var(--ink-2); font-size: var(--fs-small); }
.on-navy .specs, .on-navy .specs > div { border-color: var(--line-navy); }
.on-navy .specs dt, .on-navy .specs dd span { color: var(--on-navy-2); }
@media (max-width: 520px) { .specs > div { grid-template-columns: 1fr; } }

/* ── speciality index ─────────────────────────────── */
.index { display: grid; column-gap: clamp(2rem, 5vw, 5rem); border-top: 1px solid var(--line); }
@media (min-width: 860px) { .index { grid-template-columns: 1fr 1fr; } }
.index a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; align-content: center; gap: 0.25rem clamp(0.9rem, 1.6vw, 1.4rem); padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.dmark { width: 48px; height: 48px; flex: none; color: var(--navy); }
.index .dmark { grid-row: 1 / span 2; grid-column: 1; width: clamp(44px, 4.4vw, 56px); height: clamp(44px, 4.4vw, 56px); transition: color 260ms ease, transform 420ms var(--ease-out); }
.index a strong { grid-column: 2; }
.index a strong { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem); font-stretch: 108%; font-weight: 520; letter-spacing: -0.02em; line-height: 1.12; }
.index a span { grid-column: 2; color: var(--ink-2); font-size: var(--fs-small); line-height: 1.4; max-width: 32em; }
.index a > svg:not(.dmark) { grid-row: 1 / span 2; grid-column: 3; width: 34px; height: 34px; padding: 10px; border-radius: 50%; background: var(--beige); color: var(--ink); transition: background-color 200ms ease, color 200ms ease, transform 260ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .index a:hover > svg:not(.dmark) { background: var(--blue); color: #fff; transform: translateX(4px); } .index a:hover strong { color: var(--blue-ink); } }
.index a:active > svg:not(.dmark) { transform: scale(0.94); }

/* ── media ────────────────────────────────────────── */
.media { border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media.r43 { aspect-ratio: 4 / 3; } .media.r11 { aspect-ratio: 1; } .media.r169 { aspect-ratio: 16 / 9; } .media.r45 { aspect-ratio: 4 / 5; } .media.r219 { aspect-ratio: 21 / 9; }
@media (max-width: 700px) { .media.r219 { aspect-ratio: 4 / 3; } }
figure figcaption { margin-top: 0.7rem; font-size: var(--fs-fine); color: var(--ink-3); }
.on-navy figure figcaption { color: #a9bad4; }

.gallery { display: flex; gap: clamp(12px, 1.6vw, 20px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); overscroll-behavior-x: contain; }
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { flex: none; width: min(78vw, 640px); scroll-snap-align: start; }
.gallery .media { aspect-ratio: 4 / 3; }
.gallery-ctl { display: flex; gap: 10px; justify-content: flex-end; margin-top: 1.25rem; }
.round { width: 44px; height: 44px; border-radius: 50%; border: 0; background: color-mix(in srgb, var(--ink) 9%, transparent); display: grid; place-items: center; transition: background-color 180ms ease, transform 140ms var(--ease-out), opacity 180ms ease; }
.round svg { width: 14px; height: 14px; }
.round:active { transform: scale(0.94); }
.round:disabled { opacity: 0.35; cursor: default; }
@media (hover: hover) and (pointer: fine) { .round:not(:disabled):hover { background: color-mix(in srgb, var(--ink) 16%, transparent); } }

/* ── page hero (inner pages) ──────────────────────── */
.page-hero { padding-block: clamp(2.5rem, 2rem + 4vw, 6rem) clamp(2.5rem, 5vw, 5rem); }
.page-hero .stack-l { max-width: 58rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.4em; font-size: var(--fs-small); color: var(--ink-3); margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 0.2em; }
.crumbs li + li::before { content: "/"; margin-right: 0.4em; color: var(--line); }

/* ── lists ────────────────────────────────────────── */
.cols { display: grid; gap: clamp(2.5rem, 5vw, 5rem); }
@media (min-width: 820px) { .cols { grid-template-columns: 1fr 1fr; } .cols.three { grid-template-columns: repeat(3, 1fr); } }
.plain { border-top: 1px solid var(--line); }
.plain li { padding: 0.8rem 0; border-bottom: 1px solid var(--line); line-height: 1.4; }
.field-teal .plain, .field-teal .plain li { border-color: #bfd8d3; }
.field-mauve .plain, .field-mauve .plain li { border-color: #dfcbc8; }
.field-beige .plain, .field-beige .plain li, .field-beige .specs, .field-beige .specs > div { border-color: #dccfbf; }
.on-navy .plain, .on-navy .plain li { border-color: var(--line-navy); }
.plain li span { display: block; color: var(--ink-2); font-size: var(--fs-small); margin-top: 0.15rem; }
.path { counter-reset: path; display: grid; gap: 0; border-top: 1px solid var(--line); }
.path li { counter-increment: path; display: grid; align-content: start; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 0 0.5rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.path li::before { content: counter(path); font-variant-numeric: tabular-nums; font-weight: 600; color: var(--blue-ink); font-size: 1.125rem; line-height: 1.35; }
.path li h3 { font-size: 1.25rem; }
.path li p { grid-column: 2; color: var(--ink-2); margin-top: 0.3rem; max-width: 38em; }
@media (min-width: 900px) { .path.across { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); border-top: 0; } .path.across li { grid-template-columns: 1fr; border-bottom: 0; border-top: 1px solid var(--ink); padding: 1.1rem 0 0; } .path.across li p { grid-column: 1; } .path.across li::before { margin-bottom: 0.5rem; } }
.field-teal .path.across li { border-color: var(--teal); }

/* ── building ─────────────────────────────────────── */
.building { display: grid; gap: clamp(1.5rem, 4vw, 4rem); }
@media (min-width: 900px) { .building { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; } .tower { position: sticky; top: calc(var(--header-h) + 2rem); } }
/* The building drawn in section: slabs as hairlines, the garden at grade beside it, parking below the ground line. */
.tower { display: grid; grid-template-columns: minmax(0, 0.58fr) minmax(0, 1fr); grid-template-areas: ". rooms" ". l4" ". l3" ". l2" ". l1" "garden g" "grade grade" ". b"; }
.floor { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr) auto; align-items: center; gap: 0.6rem; width: 100%; text-align: left; border: 0; border-inline: 1.5px solid var(--ink); border-top: 1px solid var(--ink); background: var(--white); padding: 0.85rem 1rem; min-height: 60px; transition: background-color 220ms ease, color 220ms ease; }
.floor.top { min-height: 104px; border-top-width: 1.5px; border-radius: 6px 6px 0 0; align-items: end; padding-bottom: 1rem; }
.floor .lv { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 1.125rem; color: var(--ink-2); }
.floor.top { grid-template-columns: minmax(0, 1fr) auto; row-gap: 0.15rem; align-content: end; }
.floor.top .lv { font-size: var(--fs-fine); grid-column: 1 / -1; }
@media (max-width: 559px) { .floor { grid-template-columns: 1.6rem minmax(0, 1fr) auto; padding-inline: 0.8rem 0.7rem; } .floor.top { grid-template-columns: minmax(0, 1fr) auto; } }
.floor .nm { font-weight: 560; font-size: 1.0625rem; line-height: 1.25; }
.floor > svg:last-child { width: 12px; height: 12px; opacity: 0; transform: translateX(-4px); transition: opacity 200ms ease, transform 240ms var(--ease-out); }
.floor[aria-selected="true"] { background: var(--navy); color: #fff; }
.floor[aria-selected="true"] .lv { color: var(--sky-soft); }
.floor[aria-selected="true"] > svg:last-child { opacity: 1; transform: none; }
.floor:active { background: var(--beige); }
.floor[aria-selected="true"]:active { background: var(--navy-deep); }
@media (hover: hover) and (pointer: fine) { .floor:not([aria-selected="true"]):hover { background: var(--beige); } .floor.side:not([aria-selected="true"]):hover { background: var(--teal-field); } }
.floor:focus-visible { outline-offset: -4px; position: relative; z-index: 1; }
.floor.side { border: 0; background: none; grid-template-columns: 1fr; align-content: end; align-items: end; gap: 0.5rem; padding: 0.5rem 0.9rem 0.7rem 0; color: var(--teal); border-radius: 10px 0 0 0; }
.floor.side .nm { font-size: 0.9375rem; color: var(--ink); }
.floor.side .garden-art { width: min(100%, 132px); height: auto; overflow: visible; }
.floor.side[aria-selected="true"] { background: var(--teal); color: #fff; padding-left: 0.75rem; }
.floor.side[aria-selected="true"] .nm { color: #fff; }
.floor.below { background: var(--sand); border-style: dashed; border-top: 0; border-bottom: 1.5px dashed var(--ink); min-height: 54px; }
.floor.below[aria-selected="true"] { background: var(--navy); }
.grade { grid-area: grade; height: 12px; border-top: 2px solid var(--ink); position: relative; background: repeating-linear-gradient(135deg, transparent 0 5px, color-mix(in srgb, var(--ink) 38%, transparent) 5px 6px); -webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent); }
.grade span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.floor-panel { display: grid; gap: 1.25rem; align-content: start; }
.floor-panel h3 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem); font-stretch: 110%; font-weight: 520; letter-spacing: -0.025em; line-height: 1.05; }
.js .floor-panel[hidden] { display: none; }
.floor-panels { display: grid; gap: 3rem; }
.js .floor-panel { animation: panel-in 380ms var(--ease-out); }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); filter: blur(3px); } }

/* ── people ───────────────────────────────────────── */
.people { border-top: 1px solid var(--line); }
.person { display: grid; gap: 0.6rem 3rem; padding-block: clamp(2rem, 4vw, 3.25rem); border-bottom: 1px solid var(--line); }
@media (min-width: 860px) { .person { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.person h2 { font-size: clamp(1.6rem, 1.3rem + 1.3vw, 2.3rem); font-stretch: 110%; font-weight: 520; letter-spacing: -0.025em; line-height: 1.06; }
.person .role { color: var(--ink-2); margin-top: 0.4rem; }
.person .reg { margin-top: 0.75rem; }

/* ── faq ──────────────────────────────────────────── */
.faq { border-top: 1px solid var(--line); max-width: 50rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 1.2rem 0; font-size: 1.1875rem; font-weight: 560; letter-spacing: -0.01em; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 16px; height: 16px; transition: transform 260ms var(--ease-out); color: var(--ink-3); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq .answer { padding: 0 2.5rem 1.4rem 0; color: var(--ink-2); max-width: 42em; }
.faq .answer > * + * { margin-top: 0.8em; }

/* ── forms ────────────────────────────────────────── */
.form { display: grid; gap: 1.1rem; }
.form .row { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form .row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.4rem; scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.field input, .field select, .field textarea { scroll-margin-top: calc(var(--header-h) + 4rem); }
.field label { font-size: var(--fs-small); font-weight: 560; }
.field label small { font-weight: 400; color: var(--ink-3); font-size: inherit; }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 0.75rem 1rem; border: 1px solid #cfc6b9; border-radius: var(--radius-s); background: var(--white); caret-color: var(--blue); transition: border-color 160ms ease, box-shadow 160ms ease; }
.field textarea { min-height: 124px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%230e2038' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 12px; padding-right: 2.6rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 22%, transparent); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field [aria-invalid="true"]:focus { border-color: var(--danger); box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 20%, transparent); }
.field .err { font-size: var(--fs-small); color: var(--danger); }
.card { background: var(--white); border-radius: var(--radius); padding: clamp(1.5rem, 3.5vw, 2.75rem); }
.field-white .card { background: var(--paper); }

/* ── notice ───────────────────────────────────────── */
.notice { display: grid; gap: 0.35rem; padding: 1.1rem 1.3rem; border-radius: var(--radius-s); background: var(--beige); font-size: var(--fs-small); color: var(--ink-2); max-width: 44rem; }
.notice strong { color: var(--ink); font-weight: 600; }
.field-beige .notice { background: var(--white); }

/* ── close band and footer ────────────────────────── */
.close { padding-block: var(--section); }
.close .split { align-items: center; }
@media (min-width: 900px) { .close .split.solo { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; } .close .split.solo .callback { justify-self: end; width: 100%; } }
.site-footer { background: var(--navy-deep); color: var(--on-navy-2); padding-block: clamp(3rem, 6vw, 5rem) calc(2rem + env(safe-area-inset-bottom, 0px)); font-size: var(--fs-small); }
.site-footer a { color: var(--on-navy); }
@media (hover: hover) and (pointer: fine) { .site-footer a:hover { text-decoration: underline; text-underline-offset: 0.22em; text-decoration-thickness: 1px; } }
.foot-grid { display: grid; gap: 2.5rem; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); } }
.foot-grid h2 { font-size: var(--fs-small); font-stretch: 100%; font-weight: 600; letter-spacing: 0; color: var(--on-navy-2); margin-bottom: 0.9rem; }
.foot-grid ul { display: grid; gap: 0.55rem; }
.foot-brand img { width: clamp(120px, 12vw, 150px); height: auto; }
.foot-brand p { margin-top: 1.25rem; max-width: 22em; line-height: 1.5; }
.foot-base { margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.5rem; border-top: 1px solid var(--line-navy); display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between; font-size: var(--fs-fine); color: #9fb0cb; }

/* ── speciality hero, resources ───────────────────── */
.spec-hero { display: grid; gap: 1.5rem; }
.dmark.big { width: clamp(84px, 22vw, 112px); height: auto; aspect-ratio: 1; color: var(--blue); order: -1; }
@media (min-width: 900px) { .spec-hero { grid-template-columns: minmax(0, 1fr) auto; gap: 4rem; align-items: center; } .dmark.big { order: 0; width: clamp(160px, 17vw, 240px); } }
@media (hover: hover) and (pointer: fine) { .index a:hover .dmark { color: var(--blue); transform: scale(1.06); } }
.videos { display: grid; gap: 2.25rem clamp(1rem, 2vw, 1.5rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.video { display: grid; gap: 0.35rem; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-s); overflow: hidden; background: rgba(255, 255, 255, 0.62); box-shadow: inset 0 0 0 1px #bfd8d3; display: grid; place-items: center; color: var(--teal); margin-bottom: 0.55rem; }
.video-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-frame svg { position: relative; width: 52px; height: 52px; padding: 12px; border-radius: 50%; background: #fff; box-shadow: 0 6px 20px -8px rgba(14, 60, 60, 0.45); transition: transform 300ms var(--ease-out); }
.video strong { font-weight: 600; line-height: 1.3; }
.video-meta { font-size: var(--fs-small); color: #2c4f52; }
a.video:active .video-frame svg { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { a.video:hover .video-frame svg { transform: scale(1.08); } }
.reslist a { color: var(--blue-ink); font-weight: 560; }

/* ── arrival: things settle into place as they come into view ── */
@media (prefers-reduced-motion: no-preference) {
  .js [data-rv] { opacity: 0; transform: translateY(24px); transition: opacity 900ms var(--ease-out), transform 1100ms var(--ease-out); transition-delay: var(--d, 0ms); }
  .js [data-rv].in { opacity: 1; transform: none; }
  .js [data-rv="media"] { opacity: 1; transform: none; clip-path: inset(7% 5% round var(--radius)); transition: clip-path 1300ms var(--ease-out); }
  .js [data-rv="media"].in { clip-path: inset(0 round var(--radius)); }
  .js [data-rv="media"] img { transform: scale(1.14); transition: transform 1700ms var(--ease-out); }
  .js [data-rv="media"].in img { transform: none; }
}
/* moving between pages: the old page fades, the new one rises in, the header stays put */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) {
  .site-header { view-transition-name: site-header; }
  ::view-transition-old(root) { animation: vt-out 200ms ease both; }
  ::view-transition-new(root) { animation: vt-in 560ms var(--ease-out) both; }
}
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(16px); } }

/* ── motion preferences ───────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; }
}
@media (prefers-reduced-transparency: reduce) { .site-header { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (prefers-contrast: more) { :root { --ink-2: #2a3a50; --ink-3: #3c4a5f; --line: #8f8779; } .site-header { background: var(--paper); box-shadow: 0 1px 0 var(--ink); } }
@media print { .site-header, .menu, .site-footer, .gallery-ctl { display: none; } body { background: #fff; } }
