/* Single deliberate dark look: black page, warm off-white type, Avana gold accent. */
:root {
  color-scheme: dark;
  --bg: #000000;
  --surface: #1b1b1e;
  --card: #111113;
  --ink: #f2f0ec;
  --ink-2: #d4d2cd;
  --muted: #9a9ba1;
  --line: rgba(255, 255, 255, .1);
  --gold: #c58a12;
  --gold-hover: #d99c22;
  --radius-lg: 28px;
  --radius: 18px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1280px;
  --display: "Outfit", system-ui, -apple-system, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
address { font-style: normal; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; margin: 0; }
[hidden] { display: none !important; }

.wrap { width: min(var(--max), 100% - var(--gutter) * 2); margin-inline: auto; }

/* type */
.display { font-size: clamp(44px, 8vw, 104px); line-height: .96; letter-spacing: -.045em; text-align: center; max-width: 13ch; margin: 0 auto; text-wrap: balance; }
.h2 { font-size: clamp(32px, 4.6vw, 60px); line-height: 1.02; letter-spacing: -.04em; text-wrap: balance; }
.h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; letter-spacing: -.02em; margin-bottom: 14px; }
.eyebrow { font: 500 14px/1.4 var(--body); color: var(--muted); text-align: center; margin: 0 0 14px; }
.eyebrow.light { color: rgba(255,255,255,.72); }
.lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); max-width: 46ch; margin: 18px auto 0; text-align: center; text-wrap: pretty; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 12px; font: 500 15px/1 var(--body); text-decoration: none; border: 0; cursor: pointer; transition: background .2s, transform .2s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn-gold { background: var(--gold); color: #000; }
.btn-gold:hover { background: var(--gold-hover); }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ink:hover { background: #fff; }
.btn-soft { background: var(--surface); color: var(--ink); }
.btn-soft:hover { background: #2a2a2e; }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* announcement */
.announce { background: var(--gold); color: #000; text-align: center; font-size: 14px; padding: 9px var(--gutter); }
.announce a { color: #000; margin-left: 6px; text-underline-offset: 3px; }

/* nav */
.nav-wrap { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; padding: 12px var(--gutter) 0; }
.nav { max-width: var(--max); margin: 0 auto; display: flex; align-items: center; gap: 24px; padding: 10px 10px 10px 22px; border-radius: 20px; background: rgba(20, 20, 22, .78); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: inset 0 0 0 1px var(--line), 0 10px 30px -18px rgba(0,0,0,.8); }
.brand img { height: 26px; width: auto; }
.nav-links { list-style: none; display: flex; gap: 4px; margin: 0 auto 0 12px; padding: 0; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 10px; text-decoration: none; font-size: 15px; color: var(--ink-2); transition: background .2s; }
.nav-links a:hover { background: rgba(255,255,255,.08); }
.nav-links a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.nav-cta { display: flex; gap: 8px; align-items: center; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--surface); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.menu-btn span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* hero */
.hero { padding: clamp(48px, 8vw, 88px) var(--gutter) 0; }
.hero-tight { padding-bottom: 40px; }
.hero-media { max-width: 1400px; margin: clamp(32px, 5vw, 56px) auto 0; border-radius: var(--radius-lg); overflow: hidden; background: #fff; aspect-ratio: 16 / 9; box-shadow: 0 30px 60px -40px rgba(22,24,29,.4); }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.center { text-align: center; }

/* full-width video hero with overlaid title */
.hero-full { position: relative; width: 100%; aspect-ratio: 16 / 9; min-height: 540px; max-height: 88vh; overflow: hidden; background: var(--bg); margin-top: -76px; }
.hero-full video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-full::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34%; background: linear-gradient(to bottom, transparent, var(--bg)); z-index: 1; pointer-events: none; }
.hero-overlay { position: absolute; inset: 0 0 auto 0; z-index: 2; padding-top: clamp(96px, 8.5vw, 124px); padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); text-align: center; pointer-events: none; }
.hero-title { position: absolute; left: 0; right: 0; bottom: clamp(20px, 3.2vw, 52px); z-index: 2; margin: 0 auto; font-size: clamp(36px, 4.6vw, 72px); max-width: 20ch; padding: 0 max(16px, env(safe-area-inset-left, 0px)); text-shadow: 0 2px 24px rgba(0,0,0,.6); }
.hero-overlay .eyebrow { color: var(--ink-2); }

/* surgeon reviews: coverflow of portrait video cards (after the Home banner) */
.testimonials { position: relative; text-align: center; padding: clamp(40px, 6vw, 88px) 0 clamp(64px, 8vw, 112px); overflow: hidden; }
.t-pill { display: inline-block; font: 600 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); background: #1b1b1e; padding: 9px 15px; border-radius: 999px; }
.t-title { font-size: clamp(36px, 4.6vw, 72px); max-width: 20ch; margin: 18px auto 12px; padding: 0 16px; }
.t-sub { color: var(--muted); font-size: clamp(15px, 1.3vw, 17px); margin: 0 auto; max-width: 52ch; padding: 0 16px; }
.t-stage { --w: clamp(240px, 27vw, 400px); position: relative; height: calc(var(--w) * 1.5 + 24px); margin-top: clamp(36px, 5vw, 64px); outline: none; touch-action: pan-y; }
.t-card { position: absolute; left: 50%; top: 50%; width: var(--w); aspect-ratio: 2 / 3; margin: 0; border-radius: 22px; overflow: hidden; background: #111; transform: translate(-50%, -50%) translateX(var(--x, 0px)) scale(var(--s, 1)); opacity: var(--o, 1); filter: grayscale(1) brightness(.48); transition: transform .65s cubic-bezier(.2,.7,.2,1), filter .65s, opacity .65s; }
.t-card.is-active { filter: none; }
.t-init .t-card, .t-init .t-meta { transition: none !important; }
.t-card video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.t-card.is-playing video { object-fit: contain; }
.t-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s; }
.t-card.is-playing .t-thumb, .t-card.is-playing .t-meta, .t-card.is-playing .t-play, .t-card.is-playing::after { opacity: 0; pointer-events: none; }
.t-play { position: absolute; left: 50%; top: 64%; z-index: 2; width: 72px; height: 72px; margin: -36px 0 0 -36px; border: 0; border-radius: 50%; background: rgba(22,24,29,.88); color: #f2f0ec; display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .4s, transform .25s; }
.t-play svg { width: 26px; height: 26px; margin-left: 4px; fill: currentColor; }
.t-card.is-active .t-play { opacity: 1; pointer-events: auto; }
.t-play:hover { transform: scale(1.08); }
.t-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(255,255,255,.95) 0%, rgba(255,255,255,.75) 14%, rgba(255,255,255,0) 32%); pointer-events: none; }
.t-meta { position: absolute; left: 0; right: 0; bottom: clamp(18px, 2.2vw, 30px); z-index: 1; padding: 0 clamp(18px, 2vw, 26px); text-align: left; display: flex; flex-direction: column; gap: 4px; opacity: 0; transform: translateY(8px); transition: opacity .5s .15s, transform .5s .15s; }
.t-card.is-active .t-meta { opacity: 1; transform: none; }
.t-label { font: 600 11px/1.2 var(--body); letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.t-person { font: 600 clamp(20px, 1.9vw, 26px)/1.15 var(--body); color: #16181d; letter-spacing: -.01em; }
.t-place { font: 500 clamp(13px, 1.05vw, 15px)/1.35 var(--body); color: #4a4c53; }
.t-nav { display: flex; gap: 12px; justify-content: center; margin-top: clamp(28px, 4vw, 48px); }
.t-arrow { position: relative; width: 56px; height: 56px; border: 0; border-radius: 14px; background: #1b1b1e; color: var(--ink); display: grid; place-items: center; transition: background .2s, color .2s; }
.t-arrow::before { content: ""; position: absolute; inset: -16px -6px; } /* larger click target */
.t-arrow:hover { background: var(--ink); color: #000; }
.t-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.t-arrow:focus-visible, .t-play:focus-visible, .t-stage:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (max-width: 720px) { .t-stage { --w: 64vw; } .t-card { border-radius: 18px; } }

/* About: two hands slide in from either side as you scroll, framing the heading */
.hands-scene { position: relative; height: max(100vh, 600px); margin-top: -76px; }
.hs-sticky { position: relative; height: 100%; overflow: hidden; display: grid; place-items: center; }
.hs-text { position: relative; z-index: 2; text-align: center; padding: 0 16px; }
.hs-title { font-size: clamp(36px, 4.6vw, 72px); max-width: 16ch; }
.hs-sub { color: var(--ink-2); font-size: clamp(15px, 1.3vw, 18px); max-width: 44ch; margin: 18px auto 0; text-wrap: balance; }
.hs-hand { position: absolute; left: 0; width: min(64vw, 122vh); height: auto; pointer-events: none; will-change: transform; z-index: 1; }
.hands-scene.is-moving .hs-hand { transition: transform 2s cubic-bezier(.2,.7,.15,1); }
/* once settled, each hand drifts a few pixels so it reads as a live hand (separate from the slide-in transform) */
.hands-scene.is-idle .hs-top { animation: hand-idle-top 6.5s ease-in-out infinite; }
.hands-scene.is-idle .hs-bottom { animation: hand-idle-bottom 7.5s ease-in-out infinite; }
@keyframes hand-idle-top {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  30% { translate: 5px -4px; rotate: -.35deg; }
  65% { translate: -3px 2px; rotate: .25deg; }
}
@keyframes hand-idle-bottom {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  35% { translate: -5px 3px; rotate: .3deg; }
  70% { translate: 3px -3px; rotate: -.3deg; }
}
.hs-top { top: 13%; transform: translateX(-100%); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); }
.hs-bottom { bottom: 8%; transform: translateX(100vw); -webkit-mask-image: linear-gradient(270deg, transparent 0, #000 22%); mask-image: linear-gradient(270deg, transparent 0, #000 22%); }
.hero-after { padding-top: 0; }
.hero-after .hero-media { margin-top: 0; }
@media (max-width: 720px) { .hs-hand { width: 96vw; } .hs-top { top: 16%; } .hs-bottom { bottom: 12%; } }

/* About: facility photos on a slowly turning curved gallery (drag to scroll, pauses on hover) */
.curve { --cw: clamp(240px, 27vw, 480px); width: 100vw; margin-left: calc(50% - 50vw); position: relative; }
.curve-stage { position: relative; height: calc(var(--cw) * 1.1); overflow: hidden; cursor: grab; touch-action: pan-y; user-select: none; }
.curve-stage:active { cursor: grabbing; }
.curve-card { position: absolute; left: 50%; top: 50%; width: var(--cw); aspect-ratio: 16 / 10; margin: calc(var(--cw) * -0.3125) 0 0 calc(var(--cw) * -0.5); border-radius: 6px; overflow: hidden; background: #111; will-change: transform; visibility: hidden; }
.curve-card img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; -webkit-user-drag: none; }
.curve-caption { text-align: center; color: var(--ink-2); font: 500 clamp(17px, 1.6vw, 22px)/1.3 var(--display); letter-spacing: -.01em; margin: clamp(14px, 2vw, 24px) auto 0; padding: 0 16px; max-width: 40ch; min-height: 2.6em; transition: opacity .35s; }

@media (max-width: 720px) { .curve { --cw: 66vw; } }

/* About: facility photos at full size in a plain horizontal scroller */
.fgal .track { gap: 20px; scroll-snap-type: x mandatory; }
.fslide { flex: 0 0 min(86vw, 1016px); margin: 0; scroll-snap-align: center; }
.fslide img { width: 100%; height: auto; aspect-ratio: 1016 / 554; object-fit: cover; border-radius: 18px; background: #111; }
.fslide figcaption { margin-top: 14px; color: var(--ink-2); font: 500 clamp(16px, 1.5vw, 20px)/1.35 var(--display); letter-spacing: -.01em; max-width: 60ch; }
.fgal .carousel-nav { justify-content: center; }

/* statement */
.statement { text-align: center; padding: clamp(80px, 12vw, 150px) 0 clamp(56px, 8vw, 96px); }
.statement .h2 { max-width: 20ch; margin: 0 auto; }
.statement-logo { height: 92px; width: auto; margin: 0 auto 32px; }

/* stats */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat { background: var(--card); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 260px; }
.stat-num { font: 500 clamp(56px, 7vw, 96px)/.9 var(--display); letter-spacing: -.05em; }
.stat-label { color: var(--muted); font-size: 17px; max-width: 30ch; }
.stat-dark { background: var(--gold); color: #000; }
.stat-dark .stat-num { color: #000; }
.stat-dark .stat-label { color: rgba(0,0,0,.72); }

section.wrap { margin-top: clamp(80px, 10vw, 140px); }
section.wrap.flush { margin-top: 0; }

.section-head { text-align: center; margin-bottom: clamp(32px, 4vw, 56px); }

/* courses */
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.course { background: var(--card); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.course:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line), 0 24px 50px -30px rgba(0,0,0,.9); }
.course-img { aspect-ratio: 469 / 295; background: #000; overflow: hidden; }
.course-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.course:hover .course-img img { transform: scale(1.04); }
.course-body { padding: 22px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.course-body h3 { font-size: 26px; letter-spacing: -.02em; margin: 12px 0 8px; }
.course-desc { color: var(--muted); font-size: 14px; margin: 0 0 6px; }
.chip { align-self: flex-start; background: var(--surface); border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 500; }
.facts { margin: 10px 0 22px; display: grid; gap: 0; flex: 1; align-content: start; }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; text-align: right; }

/* carousel */
.carousel { position: relative; }
.track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 4px; }
.track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 min(78%, 900px); scroll-snap-align: start; margin: 0; position: relative; border-radius: var(--radius-lg); overflow: hidden; background: #fff; aspect-ratio: 16 / 9; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide figcaption { position: absolute; left: 16px; bottom: 16px; max-width: min(440px, calc(100% - 32px)); background: rgba(12,12,14,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: var(--radius); padding: 18px 20px; }
.slide figcaption h3 { font-size: 22px; letter-spacing: -.02em; line-height: 1.15; }
.slide figcaption p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.carousel-nav { display: flex; gap: 8px; margin-top: 20px; align-items: center; }
.carousel-nav .btn { margin-left: auto; }
.arrow { width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--card); color: var(--ink); font-size: 18px; cursor: pointer; transition: background .2s; }
.arrow:hover { background: var(--surface); }
.arrow:disabled { opacity: .4; cursor: default; }

/* reviews */
.review { flex: 0 0 min(80%, 420px); scroll-snap-align: start; background: var(--card); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.review-media { position: relative; aspect-ratio: 832 / 480; background: #000; }
.review-media video { width: 100%; height: 100%; object-fit: cover; }
.play { position: absolute; inset: 0; display: grid; place-items: center; border: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.35)); cursor: pointer; }
.play span { width: 64px; height: 64px; border-radius: 50%; background: rgba(242,240,236,.92); display: grid; place-items: center; transition: transform .25s; }
.play:hover span { transform: scale(1.08); }
.play svg { width: 22px; height: 22px; margin-left: 4px; fill: #000; }
.review-meta { padding: 18px 20px 20px; }
.review-meta h3 { font-size: 21px; letter-spacing: -.02em; }
.review-meta p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review-grid .review { flex: none; }

/* specialties */
.spec-card { background: var(--card); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 48px); display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--surface); border-radius: 999px; padding: 9px 16px; font-size: 15px; }

/* partners */
.partners { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--radius-lg); padding: clamp(36px, 5vw, 64px) clamp(24px, 4vw, 56px); text-align: center; }
.partners .eyebrow { max-width: 60ch; margin: 0 auto 36px; font-size: 16px; }
.logo-row { display: flex; align-items: center; justify-content: center; gap: clamp(28px, 6vw, 88px); flex-wrap: wrap; }
.logo-row img { height: clamp(48px, 6vw, 72px); width: auto; }
.logo-row img[src*="arthrex"] { height: clamp(64px, 8vw, 100px); }
.logo-row img[src*="arthrolab"] { height: clamp(32px, 4vw, 48px); }

/* CTA */
.cta-card { background: radial-gradient(120% 90% at 50% 0%, #2a2112, var(--card) 60%); box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--radius-lg); text-align: center; padding: clamp(56px, 9vw, 120px) var(--gutter); }
.cta-card .h2 { max-width: 18ch; margin: 0 auto; }
.cta-logo { height: 34px; width: auto; margin: 0 auto 28px; }

/* about */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-grid > div { background: var(--card); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; }
.about-grid p { color: var(--ink-2); font-size: 17px; margin: 0 0 28px; }
.inline-logo { height: 56px; width: auto; max-width: 100%; object-fit: contain; align-self: flex-start; margin-top: auto; }
.inline-logo[src*="arthrex"] { height: 76px; }
.facility-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { margin: 0; background: var(--card); border-radius: var(--radius-lg); overflow: hidden; }
.tile img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; }
.tile figcaption { padding: 16px 20px 20px; font-family: var(--display); font-size: 19px; line-height: 1.25; letter-spacing: -.01em; }
.location { background: var(--card); border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.location > img { width: min(380px, 100%); margin: 0 auto; }
.location address { color: var(--ink-2); font-size: 17px; margin-bottom: 24px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 0 !important; }
.contact-card { background: var(--card); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; min-height: 200px; }
.contact-card .eyebrow { text-align: left; margin-bottom: 10px; }
.contact-card strong { font: 500 22px/1.2 var(--display); letter-spacing: -.02em; overflow-wrap: anywhere; }
.contact-card a { font-size: 17px; text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }
.contact-card address { font-size: 16px; color: var(--ink-2); }
a.contact-card:hover { background: var(--surface); }

/* contact: split panel (noir video left, form right) */
.contact-split { width: min(var(--max), 100% - var(--gutter) * 2); margin: clamp(24px, 3vw, 40px) auto 0; display: grid; grid-template-columns: 1.3fr 1fr; border-radius: var(--radius-lg); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); background: var(--card); }
.cs-media { position: relative; min-height: 640px; background: #000; overflow: hidden; }
.cs-media video { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); width: 138%; max-width: none; aspect-ratio: 16 / 9; object-fit: cover; filter: grayscale(1) contrast(1.15); -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 84%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 84%, transparent 100%); }
.cs-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1.5px); background-size: 6px 6px; mix-blend-mode: overlay; }
.cs-title { position: absolute; z-index: 1; margin: 0; font: 500 clamp(40px, 5.4vw, 84px)/.92 var(--display); letter-spacing: -.045em; color: #fff; text-wrap: balance; }
.cs-top { top: clamp(24px, 3vw, 40px); left: clamp(20px, 3vw, 44px); }
.cs-bottom { bottom: clamp(24px, 3vw, 40px); right: clamp(20px, 3vw, 44px); text-align: right; }
.cs-form { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; gap: 0; min-width: 0; }
.cs-form h2 { font: 500 clamp(36px, 4vw, 56px)/1 var(--display); letter-spacing: -.04em; margin-bottom: 12px; }
.cs-lede { color: var(--muted); font-size: 15px; margin: 0 0 22px; max-width: 42ch; }
.cs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cs-grid label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; color: var(--ink-2); min-width: 0; }
.cs-full { grid-column: 1 / -1; }
.cs-grid input, .cs-grid textarea { width: 100%; font: 400 15px/1.4 var(--body); color: var(--ink); background: #232326; border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; resize: vertical; }
.cs-grid input:focus, .cs-grid textarea:focus { outline: 2px solid #bdbcb8; outline-offset: 1px; }
.cs-grid input[aria-invalid="true"], .cs-grid textarea[aria-invalid="true"] { border-color: #e0703a; }
.cs-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 20px; }
.cs-status { margin: 0; font-size: 13px; color: var(--muted); }
.cs-submit { height: 46px; padding: 0 34px; border: 0; border-radius: 10px; background: #d6d5d2; color: #000; font: 600 15px/1 var(--body); cursor: pointer; flex: none; }
.cs-submit:hover { background: #f2f0ec; }
.cs-details { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; font-size: 13px; line-height: 1.5; }
.cs-details dt { color: var(--muted); font-size: 12px; margin-bottom: 2px; }
.cs-details dd { margin: 0; color: var(--ink-2); overflow-wrap: anywhere; }

/* footer */
body:has(.page[data-page="home"]:not([hidden])) .footer { margin-top: 0; }
.footer { margin-top: clamp(80px, 10vw, 140px); background: var(--card); border-top: 1px solid var(--line); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
.footer-logo { height: 28px; width: auto; margin-bottom: 20px; }
.footer-about p { color: var(--muted); font-size: 14px; max-width: 56ch; }
.footer h4 { font-size: 15px; font-weight: 600; font-family: var(--body); margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; color: var(--ink-2); font-size: 14px; overflow-wrap: anywhere; }
.footer a:hover { text-decoration: underline; }
.footer address { font-size: 14px; color: var(--muted); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-bottom p { margin: 0; color: var(--muted); font-size: 13px; }
.footer-logos { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; }
.footer-logos img { height: 40px; width: auto; }
.footer-logos img[src*="arthrex"] { height: 54px; }

/* cursor: the Arthrex instrument, clicking at its centre */
*, *::before, *::after {
  cursor: url("../images/cursor-instrument-64.png") 32 32, auto !important;
  cursor: image-set(url("../images/cursor-instrument-64.png") 1x, url("../images/cursor-instrument-128.png") 2x) 32 32, auto !important;
}
input, textarea { cursor: text !important; }
/* when the script draws the instrument itself, hide the system pointer everywhere (big image cursors get dropped near page edges) */
html.has-cursor, html.has-cursor *, html.has-cursor *::before, html.has-cursor *::after { cursor: none !important; }
html.has-cursor input, html.has-cursor textarea { cursor: text !important; }
.cursor-instrument { position: fixed; left: 0; top: 0; width: 64px; height: 64px; pointer-events: none; z-index: 2147483647; opacity: 0; will-change: transform; }
html.cur-visible .cursor-instrument { opacity: 1; }
html.cur-text .cursor-instrument { opacity: 0; }

/* reveal */
.reveal.in { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { transform: translateY(18px); } to { transform: none; } }

/* responsive */
@media (max-width: 1060px) {
  .contact-split { grid-template-columns: 1fr; }
  .cs-media { min-height: 0; aspect-ratio: 4 / 3; }
  .cs-media video { width: 112%; }
  .nav-links { position: absolute; top: calc(100% + 8px); left: var(--gutter); right: var(--gutter); flex-direction: column; margin: 0; padding: 10px; border-radius: 18px; background: rgba(20,20,22,.97); box-shadow: inset 0 0 0 1px var(--line), 0 20px 40px -20px rgba(0,0,0,.8); display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 17px; }
  .nav { position: relative; justify-content: space-between; }
  .menu-btn { display: flex; }
  .course-grid, .review-grid, .facility-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .cs-media { aspect-ratio: 4 / 5; }
  .cs-media video { width: 150%; }
  .cs-grid, .cs-details { grid-template-columns: 1fr; }
  .cs-actions { flex-direction: column-reverse; align-items: stretch; }
  .nav-cta .btn-soft { display: none; }
  .nav { padding-left: 16px; gap: 12px; }
  .brand img { height: 22px; }
  .stat-grid, .course-grid, .review-grid, .facility-grid, .about-grid, .contact-grid, .footer-grid, .location { grid-template-columns: 1fr; }
  .spec-card { grid-template-columns: 1fr; }
  .stat { min-height: 200px; }
  .slide { flex-basis: 88%; aspect-ratio: 4 / 5; }
  .slide figcaption { left: 10px; right: 10px; bottom: 10px; max-width: none; }
  .hero-media { border-radius: 20px; }
  /* phones: show the whole 16:9 frame like on desktop; title sits in the fade just below the video */
  .hero-full { aspect-ratio: auto; height: auto; min-height: 0; max-height: none; margin-top: 0; overflow: visible; }
  .hero-full video { position: relative; inset: auto; display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 50%; }
  .hero-full::after { bottom: auto; top: calc(56.25vw * 0.55); height: calc(56.25vw * 0.45 + 1px); }
  .hero-title { position: relative; bottom: auto; margin-top: -10px; padding-bottom: 8px; font-size: clamp(28px, 8vw, 40px); }
  .hero-overlay { padding-top: 104px; }
  .carousel-nav .btn { margin-left: auto; }
}

/* ArthroLab in numbers: photo bento before the surgeon reviews (Home) */
.numbers{text-align:center;padding:clamp(24px,3vw,40px) 16px 0}
.n-bento{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(300px,auto));gap:16px;max-width:1200px;margin:0 auto;text-align:left}
.n-card{position:relative;overflow:hidden;border-radius:24px;background:#141416;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);display:flex;align-items:flex-end;min-height:200px;opacity:0;transform:translateY(24px);transition:opacity .8s,transform .8s cubic-bezier(.2,.7,.2,1)}
.n-card:nth-child(2){transition-delay:.12s}.n-card:nth-child(3){transition-delay:.24s}.n-card:nth-child(4){transition-delay:.36s}
.numbers.in .n-card{opacity:1;transform:none}
.n-in{position:relative;z-index:1;display:flex;flex-direction:column;gap:12px;padding:clamp(22px,2.6vw,36px)}
.n-surgeons{grid-column:1/3;grid-row:1}.n-map{grid-column:3;grid-row:1;background:#2e2f33}.n-labs{grid-column:1;grid-row:2}.n-hosp{grid-column:2/4;grid-row:2}.n-hosp img{object-position:40% 40%}
.n-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transform:scale(1.08);transition:transform 2.4s cubic-bezier(.2,.7,.2,1)}
.numbers.in .n-photo img{transform:scale(1)}
.n-surgeons img{object-position:50% 40%}
.n-map img{object-fit:contain;object-position:50% 30%;filter:none}.n-map::after{background:none}.n-map img{transform:none!important;top:0;height:78%;object-position:92% 50%}
.n-photo::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(0,0,0,.88) 0%,rgba(0,0,0,.35) 45%,rgba(0,0,0,0) 70%),linear-gradient(90deg,rgba(0,0,0,.45),rgba(0,0,0,0) 60%)}
.n-num{font:500 clamp(52px,6vw,96px)/.9 var(--display);letter-spacing:-.05em;color:#fff;font-variant-numeric:tabular-nums}
.n-surgeons .n-num{font-size:clamp(56px,6.4vw,104px)}
.n-label{color:var(--ink-2);font-size:clamp(15px,1.3vw,18px)}
@media (max-width:760px){.n-bento{grid-template-columns:1fr;grid-template-rows:auto}.n-surgeons,.n-map,.n-labs,.n-hosp{grid-column:auto;grid-row:auto}.n-card{min-height:260px}.n-map{min-height:300px}}
.n-intro{max-width:60ch;margin:0 auto clamp(28px,4vw,48px);color:var(--ink-2);font-size:clamp(16px,1.4vw,19px);line-height:1.6;text-wrap:balance}
.hands-scene + .statement { padding-top: clamp(16px, 2vw, 32px); margin-top: 0; position: relative; z-index: 1; }
/* About: keep statement, Who we are/SAAME and The facility on one even rhythm */
.hands-scene + .statement { padding-bottom: clamp(28px, 3.5vw, 48px); }
[data-page="about"] section.wrap:not(.statement) { margin-top: clamp(48px, 6vw, 88px); }
[data-page="about"] .hands-scene + .statement + section.wrap { margin-top: 0; }
.cs-map { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 7px 12px 7px 10px; border-radius: 999px; background: #1b1b1e; color: var(--ink); font: 500 13px/1 var(--body); text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); transition: background .2s, color .2s; }
.cs-map:hover { background: var(--ink); color: #000; }
.cs-map-icon { width: 12px; height: 17px; flex: none; }
.footer-bottom { display: grid; grid-template-columns: 1fr auto 1fr; }
.footer-bottom p { text-align: center; }
.footer-ramaiah { height: 40px; width: auto; justify-self: start; }
.footer-avana { justify-self: end; display: block; }
.footer-avana img { height: 40px; width: auto; display: block; transition: opacity .2s; }
.footer-avana:hover img { opacity: .75; }
@media (max-width: 640px) { .footer-bottom { grid-template-columns: 1fr 1fr; } .footer-bottom p { grid-column: 1 / -1; grid-row: 2; } }

/* numbers: hover lifts the card out as a highlight */
.numbers.in .n-card{transition:opacity .8s,transform .45s cubic-bezier(.2,.7,.2,1),box-shadow .45s}
.numbers.in .n-card:hover{transform:translateY(-8px) scale(1.035);z-index:2;transition-delay:0s;box-shadow:inset 0 0 0 1px rgba(255,255,255,.22),0 24px 60px rgba(0,0,0,.6),0 0 0 1px rgba(197,138,18,.45),0 0 40px rgba(197,138,18,.18)}
.numbers.in .n-photo img{transition:transform .7s cubic-bezier(.2,.7,.2,1),filter .5s}
.numbers.in .n-card:hover img{transform:scale(1.07);filter:brightness(1.12) contrast(1.05)}
.n-bento{position:relative}
@media (hover:none){.numbers.in .n-card:hover{transform:none;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}.numbers.in .n-card:hover img{transform:scale(1);filter:none}}

/* FAQs (Courses page) */
.faq { max-width: 980px; }
.faq-title { text-align: center; font-size: clamp(44px, 6vw, 88px); margin-bottom: clamp(24px, 3.5vw, 44px); }
.faq-list { display: grid; gap: 12px; }
.faq-item { border-radius: 20px; background: #141416; box-shadow: inset 0 0 0 1px var(--line); transition: background .25s, box-shadow .25s; }
.faq-item:hover { background: #18181b; }
.faq-item[open] { background: #1a1a1e; box-shadow: inset 0 0 0 1px rgba(197,138,18,.45); }
.faq-item summary { list-style: none; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 22px 24px; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 20px; }
.faq-n { font: 500 14px/1 var(--body); color: var(--gold); letter-spacing: .06em; }
.faq-q { font: 500 clamp(18px, 1.6vw, 22px)/1.3 var(--display); letter-spacing: -.01em; color: var(--ink); }
.faq-x { position: relative; width: 34px; height: 34px; border-radius: 50%; background: #222226; flex: none; transition: transform .3s, background .3s; }
.faq-x::before, .faq-x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--ink); border-radius: 2px; transform: translate(-50%, -50%); }
.faq-x::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-x { transform: rotate(45deg); background: var(--gold); }
.faq-item[open] .faq-x::before, .faq-item[open] .faq-x::after { background: #000; }
.faq-item p { margin: 0; padding: 0 24px 24px calc(24px + 18px + 2ch); color: var(--ink-2); font-size: 16px; line-height: 1.65; max-width: 72ch; }
@media (max-width: 720px) { .faq-item summary { padding: 18px; gap: 12px; } .faq-item p { padding: 0 18px 20px; } }

.about-grid .about-lede { font: 500 clamp(20px, 1.8vw, 24px)/1.3 var(--display); letter-spacing: -.01em; color: var(--ink); margin: 10px 0 16px; }

/* Express interest: banner under the calendar button + in-page form */
.eoi-banner { max-width: 980px; margin-top: clamp(36px, 5vw, 56px); }
.eoi-strip { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 20px 24px; border-radius: 18px; background: linear-gradient(90deg, rgba(197,138,18,.16), rgba(197,138,18,.04)); box-shadow: inset 0 0 0 1px rgba(197,138,18,.35); }
.eoi-strip p { margin: 0; color: var(--ink-2); font-size: 15px; max-width: 60ch; }
.eoi-strip strong { color: var(--ink); font: 500 18px/1.35 var(--display); display: block; margin-bottom: 2px; }
.eoi-modal { position: fixed; inset: 0; z-index: 95; background: rgba(0,0,0,.66); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: grid; place-items: center; padding: 16px; }
.eoi-modal[hidden] { display: none; }
.eoi-dialog { position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; border-radius: 22px; padding: 28px; background: linear-gradient(160deg, #1b1c21, #111216); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 40px 100px rgba(0,0,0,.6); }
.eoi-x { position: absolute; top: 16px; right: 16px; }
.eoi-form h3, .eoi-done h3 { font: 500 clamp(26px, 3vw, 32px)/1.1 var(--display); letter-spacing: -.02em; margin: 0 0 6px; }
.eoi-sub { margin: 0 0 20px; color: var(--muted); font-size: 15px; }
.eoi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.eoi-full { grid-column: 1 / -1; }
.eoi-grid > label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; color: var(--ink-2); min-width: 0; }
.eoi-grid input:not([type="radio"]), .eoi-grid select, .eoi-grid textarea { width: 100%; font: 400 15px/1.4 var(--body); color: var(--ink); background: #232326; border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; }
.eoi-grid select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.eoi-grid textarea { resize: vertical; margin-top: 4px; }
.eoi-grid :is(input, select, textarea):focus { outline: 2px solid #bdbcb8; outline-offset: 1px; }
.eoi-grid [aria-invalid="true"] { border-color: #e0703a; }
.eoi-reasons { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.eoi-reasons legend { font-size: 13px; color: var(--ink-2); margin-bottom: 4px; }
.eoi-radio { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; background: #1f1f23; box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; color: var(--ink); cursor: pointer; }
.eoi-radio:has(input:checked) { box-shadow: inset 0 0 0 1px rgba(197,138,18,.7); background: rgba(197,138,18,.08); }
.eoi-radio input { accent-color: var(--gold); width: 16px; height: 16px; margin: 0; }
.eoi-reasons.bad .eoi-radio { box-shadow: inset 0 0 0 1px #e0703a; }
.eoi-status { min-height: 1.2em; margin: 14px 0 0; color: #e0a07a; font-size: 13px; }
.eoi-submit { margin-top: 10px; width: 100%; justify-content: center; }
.eoi-done { text-align: center; padding: 12px 4px 4px; }
.eoi-done p { color: var(--ink-2); font-size: 16px; line-height: 1.6; margin: 8px auto 0; max-width: 42ch; }
.eoi-done .eoi-note { color: var(--muted); font-size: 13px; margin-top: 14px; }
.eoi-done .btn { margin-top: 20px; }
.eoi-tick { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--gold); margin-bottom: 16px; }
.eoi-tick::after { content: ""; width: 20px; height: 11px; border: solid #000; border-width: 0 0 3px 3px; transform: translateY(-2px) rotate(-45deg); }
@media (max-width: 560px) { .eoi-grid { grid-template-columns: 1fr; } .eoi-dialog { padding: 22px 18px; } .eoi-strip .btn { width: 100%; justify-content: center; } }
.eoi-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.eoi-done .eoi-actions .btn { margin-top: 0; }
.cs-status a { color: var(--gold); }
.eoi-logo { display: block; height: 30px; width: auto; margin: 2px 0 22px; }
.eoi-done .eoi-tick { margin-top: 4px; }

/* Contact Us dropdown */
.nav-drop { position: relative; }
.nav-drop > a { display: flex; align-items: center; gap: 6px; }
.nav-caret { width: 10px; height: 6px; transition: transform .25s; }
.nav-sub { list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 180px; border-radius: 14px; background: rgba(20,20,22,.97); box-shadow: inset 0 0 0 1px var(--line), 0 20px 40px -20px rgba(0,0,0,.8); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s; }
.nav-drop::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }
.nav-sub { margin-top: 8px; }
.nav-drop:hover .nav-sub, .nav-drop:focus-within .nav-sub { opacity: 1; visibility: visible; transform: none; }
.nav-drop:hover .nav-caret, .nav-drop:focus-within .nav-caret { transform: rotate(180deg); }
.nav-sub a { white-space: nowrap; }
@media (max-width: 1060px) {
  .nav-caret { display: none; }
  .nav-sub { position: static; opacity: 1; visibility: visible; transform: none; margin: 2px 0 0 14px; padding: 0 0 0 10px; min-width: 0; background: none; box-shadow: inset 1px 0 0 var(--line); border-radius: 0; }
  .nav-drop::after { display: none; }
}

/* FAQs page */
.faq-page { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(64px, 8vw, 120px); }

/* About: one panel with the ArthroLab surgeon in the middle; a huge word sits behind him and he changes pose with the side you point at */
.about-grid:has(.about-doc) { position: relative; grid-template-columns: 1fr minmax(240px, .78fr) 1fr; gap: 0; margin-top: clamp(40px, 5vw, 70px); border-radius: var(--radius-lg); background: radial-gradient(ellipse 45% 70% at 50% 100%, rgba(197,138,18,.13), transparent 70%), linear-gradient(180deg, #121214, #0b0b0c); box-shadow: inset 0 0 0 1px var(--line); }
.about-grid:has(.about-doc) > div { position: relative; z-index: 3; align-self: stretch; margin: clamp(14px, 1.6vw, 22px); border-radius: 22px; background: rgba(24,24,27,.86); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 20px 40px -24px rgba(0,0,0,.9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .4s, box-shadow .4s; }
.about-grid:has(.about-doc) > div[data-pose].is-pointed { background: rgba(30,27,22,.9); box-shadow: inset 0 0 0 1px rgba(197,138,18,.6), 0 24px 50px -24px rgba(197,138,18,.35); }
.about-doc { position: relative; margin: 0; min-height: 420px; z-index: 1; container-type: size; pointer-events: none; }
.about-doc img { position: absolute; left: 50%; bottom: 0; width: 251%; height: 100%; object-fit: contain; object-position: 50% 100%; max-width: none; transform: translateX(-50%) scale(.985); opacity: 0; transition: opacity .35s ease, transform .5s cubic-bezier(.2,.8,.2,1); pointer-events: none; z-index: 2; filter: drop-shadow(0 30px 40px rgba(0,0,0,.55)); -webkit-mask-image: linear-gradient(180deg, #000 84%, transparent 100%); mask-image: linear-gradient(180deg, #000 84%, transparent 100%); }
.about-doc img.is-on { opacity: 1; transform: translateX(-50%) scale(1); }
.about-word { position: absolute; left: 50%; bottom: calc(min(100cqh, 177cqw) * .2); z-index: 3; transform: translate(-50%, 12px); width: max-content; max-width: 150cqw; font: 600 clamp(30px, 3.4vw, 52px)/1 var(--display); letter-spacing: -.035em; text-align: center; color: var(--ink); text-shadow: 0 2px 18px rgba(0,0,0,.85), 0 0 2px rgba(0,0,0,.6); opacity: 0; transition: opacity .35s, transform .45s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.about-word.is-on { opacity: 1; transform: translate(-50%, 0); }
.about-word::after { content: ""; display: block; width: 44px; height: 3px; margin: 12px auto 0; border-radius: 2px; background: var(--gold); }
.about-doc::after { display: none; content: ""; position: absolute; left: 15%; right: 15%; bottom: -4px; height: 24px; border-radius: 50%; z-index: 1; background: radial-gradient(closest-side, rgba(0,0,0,.7), transparent); }
@media (min-width: 1061px) and (max-width: 1260px) {
  .about-grid:has(.about-doc) { grid-template-columns: 1.15fr .7fr 1.15fr; }
  .about-grid:has(.about-doc) > div { padding: 32px 28px; }
  .about-grid:has(.about-doc) p:not(.about-lede) { font-size: 15px; line-height: 1.55; margin-bottom: 20px; }
  .about-doc img { width: 275%; }
  .about-word { bottom: calc(min(100cqh, 194cqw) * .2); }
}
@media (max-width: 1060px) {
  .about-grid:has(.about-doc) { grid-template-columns: 1fr; margin-top: 60px; }
  .about-doc { order: -1; margin-top: -60px; min-height: 0; height: min(92vw, 520px); }
  .about-word { font-size: clamp(28px, 7vw, 44px); }
}

.display .tm { font-size: .32em; vertical-align: top; position: relative; top: .35em; margin-left: .04em; letter-spacing: 0; }

/* Facility gallery: big title left, short lede right, rounded mosaic of photos */
.g-page { padding: clamp(24px, 3vw, 44px) 0 clamp(80px, 9vw, 130px); }
.g-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(28px, 4vw, 48px); }
.g-chip { display: inline-block; padding: 7px 14px; border-radius: 99px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font: 500 13px/1 var(--body); color: var(--ink-2); }
.g-title { margin: 22px 0 0 clamp(0px, 5vw, 70px); font: 600 clamp(44px, 6.4vw, 92px)/.98 var(--display); letter-spacing: -.045em; color: var(--ink); }
.g-title .tm { font-size: .32em; vertical-align: top; position: relative; top: .35em; margin-left: .04em; letter-spacing: 0; }
.g-lede { max-width: 300px; margin: 0 0 10px; text-align: right; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.g-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(220px, 27vw, 380px); gap: clamp(8px, 1vw, 12px); }
.g-tile { position: relative; margin: 0; overflow: hidden; border-radius: 20px; background: var(--card); cursor: zoom-in; }
.g-tile.g-wide { grid-column: span 2; }
.g-tile.g-full { grid-column: span 3; }
.g-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.g-tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 18px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.75)); color: #fff; font-size: 15px; line-height: 1.4; opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s; }
.g-tile:hover img, .g-tile:focus-visible img { transform: scale(1.04); }
.g-tile:hover figcaption, .g-tile:focus-visible figcaption { opacity: 1; transform: none; }
.g-tile:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.g-lightbox { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 24px; background: rgba(0,0,0,.92); }
.g-lightbox[hidden] { display: none; }
.g-lightbox figure { margin: 0; max-width: min(1400px, 100%); }
.g-lightbox img { display: block; max-width: 100%; max-height: 82vh; border-radius: 16px; }
.g-lightbox figcaption { margin-top: 14px; text-align: center; color: var(--ink-2); font-size: 15px; }
.g-close { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
@media (hover: none) { .g-tile figcaption { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  .g-head { flex-direction: column; align-items: flex-start; }
  .g-title { margin-left: 0; }
  .g-lede { text-align: left; }
  .g-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 44vw; }
  .g-tile.g-wide, .g-tile.g-full { grid-column: span 2; }
}


/* FAQ banner: wide lab photo with the title and a short intro over a soft fade */
.faq-hero { position: relative; width: min(var(--max), 100% - var(--gutter) * 2); margin: clamp(16px, 2vw, 28px) auto 0; aspect-ratio: 8 / 3; min-height: 300px; border-radius: var(--radius-lg); overflow: hidden; }
.faq-hero img, .faq-hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.faq-hero video { z-index: 0; }
.faq-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.55) 38%, rgba(0,0,0,0) 70%), linear-gradient(0deg, rgba(0,0,0,.35), transparent 40%); }
.faq-hero-text { position: absolute; left: clamp(22px, 4vw, 56px); bottom: clamp(22px, 4vw, 52px); z-index: 1; max-width: 520px; }
.faq-hero-text h1 { margin: 0; text-align: left; font-size: clamp(48px, 7vw, 104px); }
.faq-hero-text p { margin: 14px 0 0; color: var(--ink-2); font-size: clamp(15px, 1.3vw, 18px); line-height: 1.55; }
section.wrap.faq-page { margin-top: 0; padding-top: clamp(24px, 3vw, 40px); }
@media (max-width: 640px) { .faq-hero { aspect-ratio: 1000 / 1147; } .faq-hero::after { background: linear-gradient(0deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.4) 55%, rgba(0,0,0,.1) 100%); } .faq-hero img { object-position: 50% 50%; } .faq-hero video { display: none; } }

/* About hands: a soft rim of light gives each hand more shape against the black */
.hs-hand { filter: drop-shadow(0 0 1px rgba(255,236,214,.35)) drop-shadow(0 14px 30px rgba(0,0,0,.6)) contrast(1.06); }

/* Courses: a big, easy-to-hit calendar button above the featured courses */
.cal-cta { display: flex; align-items: center; gap: clamp(16px, 2vw, 26px); margin-top: clamp(24px, 3vw, 40px); padding: clamp(18px, 2.2vw, 26px) clamp(20px, 3vw, 36px); border-radius: 22px; background: linear-gradient(110deg, #c58a12, #e3b04a 55%, #c58a12); color: #111; text-decoration: none; box-shadow: 0 20px 40px -24px rgba(197,138,18,.7); transition: transform .3s, box-shadow .3s; }
.cal-cta:hover, .cal-cta:focus-visible { transform: translateY(-3px); box-shadow: 0 28px 50px -22px rgba(197,138,18,.85); }
.cal-cta:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.cal-cta-icon { flex: none; display: grid; place-items: center; width: clamp(52px, 5vw, 64px); height: clamp(52px, 5vw, 64px); border-radius: 16px; background: rgba(0,0,0,.14); }
.cal-cta-icon svg { width: 55%; height: 55%; fill: none; stroke: #111; stroke-width: 1.8; stroke-linecap: round; }
.cal-cta-icon circle { fill: #111; stroke: none; }
.cal-cta-text { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.cal-cta-text strong { font: 600 clamp(22px, 2.4vw, 32px)/1.1 var(--display); letter-spacing: -.02em; }
.cal-cta-text span { font-size: clamp(14px, 1.2vw, 16px); color: rgba(0,0,0,.72); }
.cal-cta-arrow { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #111; color: #fff; font-size: 22px; transition: transform .3s; }
.cal-cta:hover .cal-cta-arrow { transform: translateX(4px); }

/* Home: delegate feedback band (98% excellent & very good) */
.feedback { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; min-height: 420px; margin-top: clamp(70px, 9vw, 120px); border-radius: var(--radius-lg); overflow: hidden; background: radial-gradient(ellipse 60% 80% at 15% 40%, rgba(197,138,18,.10), transparent 70%), #0a0a0b; box-shadow: inset 0 0 0 1px var(--line); }
.fb-text { position: relative; z-index: 2; padding: clamp(28px, 4vw, 56px); }
.fb-eyebrow { display: flex; align-items: center; gap: 14px; margin: 0; font: 500 13px/1 var(--body); letter-spacing: .24em; text-transform: uppercase; color: var(--ink-2); }
.fb-eyebrow::after { content: ""; width: 56px; height: 1px; background: var(--gold); }
.fb-score { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 34px); margin-top: clamp(18px, 2vw, 26px); }
.fb-num { margin: 0; font: 600 clamp(84px, 10vw, 150px)/.85 var(--display); letter-spacing: -.05em; background: linear-gradient(180deg, #fbe3a6 0%, #e0a526 45%, #9a6a10 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 22px rgba(224,165,38,.25)); }
.fb-pct { font-size: .5em; margin-left: .04em; }
.fb-rating { padding-left: clamp(18px, 2.4vw, 30px); border-left: 1px solid rgba(255,255,255,.25); }
.fb-head { margin: 0; font: 600 clamp(22px, 2.4vw, 32px)/1.1 var(--display); letter-spacing: .02em; text-transform: uppercase; color: var(--ink); }
.fb-sub { margin: 8px 0 0; font: 500 13px/1 var(--body); letter-spacing: .26em; text-transform: uppercase; color: var(--ink-2); }
.fb-stars { margin: 10px 0 0; font-size: clamp(20px, 2vw, 26px); letter-spacing: .12em; color: var(--gold); }
.fb-line { margin: clamp(22px, 2.6vw, 32px) 0 0; padding-top: 16px; border-top: 1px solid rgba(197,138,18,.5); width: max-content; max-width: 100%; font: 500 13px/1.4 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.fb-pillars { list-style: none; display: flex; gap: 0; margin: clamp(22px, 2.6vw, 34px) 0 0; padding: 0; }
.fb-pillars li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 0 12px; text-align: center; font: 500 13px/1.3 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.fb-pillars li + li { border-left: 1px solid rgba(197,138,18,.45); }
.fb-ic { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--gold); }
.fb-ic svg { width: 28px; height: 28px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.fb-photo { position: relative; }
.fb-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(.7); }
.fb-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #0a0a0b 0%, rgba(10,10,11,.6) 22%, transparent 55%); }
.fb-photo::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: 22%; height: 2px; z-index: 1; background: linear-gradient(90deg, transparent, var(--gold) 40%, #f3cf7a 70%, transparent); transform: rotate(-14deg); box-shadow: 0 0 12px rgba(224,165,38,.6); }
@media (max-width: 900px) {
  .feedback { grid-template-columns: 1fr; }
  .fb-photo { height: 240px; order: -1; }
  .fb-photo::before { background: linear-gradient(0deg, #0a0a0b 0%, transparent 60%); }
}
@media (max-width: 480px) { .fb-score { flex-direction: column; align-items: flex-start; } .fb-rating { border-left: 0; padding-left: 0; } .fb-pillars li { font-size: 11px; letter-spacing: .1em; } .fb-ic { width: 50px; height: 50px; } }
.course-grid ~ .cal-cta, section.flush + .cal-cta { margin-top: clamp(32px, 4vw, 56px); }
section.wrap.eoi-banner { margin-top: clamp(20px, 2.4vw, 32px); }

/* spam trap on the forms: hidden from people, left for bots to fill in */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Register dialog (js/register.js): same look as Express Interest */
.reg-for { color: var(--gold-2, #e0a526); }
.reg-note { margin: 12px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; text-align: center; }
.course-none { grid-column: 1 / -1; }
button.btn-block { width: 100%; justify-content: center; border: 0; cursor: pointer; }

/* Refund and Cancellation Policy (#refund-policy) */
.legal { max-width: 820px; padding: clamp(96px, 10vw, 140px) 0 clamp(64px, 8vw, 110px); }
.legal .eyebrow { text-align: left; }
.legal-title { text-align: left; margin: 0; max-width: none; font-size: clamp(40px, 6vw, 72px); }
.legal-body { margin-top: clamp(28px, 4vw, 44px); padding-top: clamp(24px, 3vw, 36px); border-top: 1px solid var(--line); }
.legal-body h2 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -.02em; margin: 30px 0 12px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { color: var(--ink-2); font-size: 16.5px; line-height: 1.75; margin: 0 0 14px; text-wrap: pretty; }
.legal-body strong { color: var(--ink); font-weight: 600; }
.legal-body a { color: var(--gold-hover); text-underline-offset: 3px; }

/* Register dialog: the confirmation after paying */
.reg-confirm { margin: 18px auto 0; max-width: 400px; display: grid; gap: 1px; border-radius: 14px; overflow: hidden; background: var(--line); text-align: left; }
.reg-confirm div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 10px 14px; background: #18191d; }
.reg-confirm dt { color: var(--muted); font-size: 13px; }
.reg-confirm dd { margin: 0; color: var(--ink); font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
