/* Peak OMS and Dental Implant Center: homepage concept. Tokens from DESIGN.md (oura, re-tokened). */
:root {
  --paper: #ffffff;
  --surface: #f2f6fb;
  --tint: #e4eef8;
  --ink: #23292f;
  --muted: #56606b;
  --line: #d6dee7;
  --peak: #5b9bd5;
  --peak-deep: #2c6aa6;
  --peak-ink: #1f5689;

  --f-display: "Outfit", "Hanken Grotesk", sans-serif;
  --f-body: "Hanken Grotesk", "Outfit", sans-serif;

  --step--1: clamp(0.875rem, 0.85rem + 0.11vw, 0.9375rem);
  --step-0: clamp(1rem, 0.96rem + 0.19vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.37vw, 1.5rem);
  --step-2: clamp(1.44rem, 1.3rem + 0.65vw, 2rem);
  --step-3: clamp(1.728rem, 1.5rem + 1.05vw, 2.666rem);
  --step-4: clamp(2.07rem, 1.7rem + 1.75vw, 3.55rem);
  --step-5: clamp(2.49rem, 1.9rem + 2.75vw, 4.74rem);
  --step-hero: clamp(2.6rem, 1.75rem + 3.6vw, 5.9rem);

  --gutter: clamp(20px, 4vw, 64px);
  --gap: clamp(1.25rem, 1rem + 0.8vw, 1.75rem);
  --shell: 107.5rem;
  --W: min(var(--shell), 100% - 2 * var(--gutter));
  --section: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --hdr: 4.75rem;
  --radius: 0.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* the logo's peak, as clip-paths (no border-triangle hacks) */
  --tri: polygon(50% 0, 100% 100%, 0 100%);
  --tri-down: polygon(0 0, 100% 0, 50% 100%);
  --tri-right: polygon(0 0, 100% 50%, 0 100%);
}
@media (min-width: 64rem) { :root { --hdr: 6rem; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: var(--step-0); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; }
::selection { background: var(--tint); color: var(--ink); }
input, textarea, select { caret-color: var(--peak-deep); accent-color: var(--peak-deep); }
:focus-visible { outline: 2px solid var(--peak-deep); outline-offset: 3px; border-radius: 2px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 1rem; top: 1rem; z-index: 100; background: var(--peak-deep); color: #fff; padding: 0.75rem 1.25rem; border-radius: 999px; transform: translateY(-200%); transition: transform 0.2s; }
.skip:focus { transform: none; }

.wrap { width: var(--W); margin-inline: auto; }

.h2 { font-family: var(--f-display); font-size: var(--step-4); line-height: 1.06; letter-spacing: -0.02em; font-weight: 500; }
.h2--md { font-size: var(--step-3); line-height: 1.12; }
.hl { color: var(--peak-deep); }

/* buttons: one pair, pill shape (oura) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3rem; padding: 0.8rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--f-body); font-weight: 600; font-size: 1rem; line-height: 1.1; text-decoration: none; white-space: nowrap;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease), transform 0.18s var(--ease), border-color 0.18s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(0.985); }
.btn--lg { min-height: 3.5rem; padding: 1rem 1.9rem; font-size: 1.0625rem; }
.btn--primary { background: var(--peak-deep); color: #fff; }
.btn--primary:hover { background: var(--peak-ink); }
.btn--light { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn--light:hover { background: var(--ink); color: #fff; }
.btn--block { width: 100%; }

.ulink { text-decoration: none; font-weight: 600; color: var(--peak-deep); background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; padding-bottom: 2px; transition: background-size 0.3s var(--ease); }
.ulink:hover { background-size: 0 1.5px; background-position: 100% 100%; }

/* ---------------- header ---------------- */
.hdr { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.hdr.is-scrolled { border-bottom-color: var(--line); }
.hdr__bar { height: var(--hdr); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; }
.hdr__logo { justify-self: start; display: block; }
.hdr__logo img { height: 2.6rem; width: auto; }
@media (min-width: 64rem) { .hdr__logo img { height: 3.4rem; } }
.hdr__cta { justify-self: end; }
.nav__list { display: flex; gap: clamp(1rem, 1.6vw, 2rem); }
.nav__trigger {
  background: none; border: 0; padding: 0.6rem 0; font-size: 1.0625rem; font-weight: 500; position: relative;
}
.nav__trigger::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.25rem; height: 1.5px; background: var(--peak-deep); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.nav__trigger:hover::after, .nav__item.is-open .nav__trigger::after, .nav__trigger:focus-visible::after { transform: scaleX(1); }
.dd {
  position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0s 0.22s;
}
.nav__item.is-open .dd { visibility: visible; opacity: 1; transform: none; transition: opacity 0.28s var(--ease), transform 0.28s var(--ease); }
.dd__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding-block: 2.25rem 2.75rem; }
.dd__lead { grid-column: 1 / span 3; font-family: var(--f-display); font-size: var(--step-2); text-decoration: none; line-height: 1.15; align-self: start; }
.dd__lead:hover { color: var(--peak-deep); }
.dd__cols { grid-column: 4 / -1; columns: 1; column-gap: var(--gap); }
.dd__cols--2 { columns: 2; } .dd__cols--3 { columns: 3; } .dd__cols--4 { columns: 4; }
.dd__cols li { break-inside: avoid; border-top: 1px solid var(--line); }
.dd__cols a { display: block; padding: 0.8rem 0; text-decoration: none; font-size: 1.0625rem; }
.dd__cols a:hover { color: var(--peak-deep); }
.dd__offices li { display: flex; flex-direction: column; padding-block: 0.6rem 0.9rem; }
.dd__offices li a { padding: 0.2rem 0; }
.dd__offices span { color: var(--muted); font-size: 0.9375rem; }
.dd__offices .dd__tel { font-weight: 600; color: var(--peak-deep); }

.menu-btn { display: none; justify-self: end; align-items: center; gap: 0.75rem; min-height: 2.75rem; padding: 0 1.1rem; border: 1.5px solid var(--ink); border-radius: 999px; background: #fff; font-weight: 600; }
.menu-btn__icon { width: 1.1rem; height: 0.7rem; position: relative; }
.menu-btn__icon i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform 0.3s var(--ease), top 0.3s var(--ease); }
.menu-btn__icon i:first-child { top: 0; } .menu-btn__icon i:last-child { top: calc(100% - 1.5px); }
.menu-btn[aria-expanded="true"] .menu-btn__icon i:first-child { top: calc(50% - 0.75px); transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__icon i:last-child { top: calc(50% - 0.75px); transform: rotate(-45deg); }

.panel { position: fixed; inset: var(--hdr) 0 0 0; background: #fff; overflow-y: auto; border-top: 1px solid var(--line); opacity: 0; transform: translateY(-8px); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
.panel.is-open { opacity: 1; transform: none; }
.panel__inner { padding-block: 0.5rem 2.5rem; }
.panel details { border-bottom: 1px solid var(--line); }
.panel summary { list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 3.75rem; font-family: var(--f-display); font-size: 1.375rem; cursor: pointer; }
.panel summary::-webkit-details-marker { display: none; }
.panel summary::after { content: ""; width: 12px; height: 9px; background: var(--peak); clip-path: var(--tri-down); transition: transform 0.3s var(--ease); }
.panel details[open] summary::after { transform: rotate(180deg); }
.panel details ul { padding-bottom: 1rem; }
.panel details a { display: flex; align-items: center; min-height: 2.75rem; text-decoration: none; color: var(--muted); }
.panel__link { display: flex; align-items: center; min-height: 3.75rem; font-family: var(--f-display); font-size: 1.375rem; text-decoration: none; border-bottom: 1px solid var(--line); }
.panel__foot { display: grid; gap: 0.25rem; padding-top: 1.75rem; }
.panel__label { color: var(--muted); font-size: var(--step--1); margin-bottom: 0.25rem; }
.panel__foot > a:not(.btn) { display: flex; justify-content: space-between; min-height: 2.75rem; align-items: center; text-decoration: none; border-bottom: 1px solid var(--line); }
.panel__foot > a span { font-weight: 600; color: var(--peak-deep); }
.panel__foot .btn { margin-top: 1.25rem; }

.hdr.is-compact .nav, .hdr.is-compact .hdr__cta { display: none; }
.hdr.is-compact .menu-btn { display: inline-flex; }
.hdr.is-compact .hdr__bar { grid-template-columns: 1fr auto; }

/* ---------------- 1. hero ---------------- */
.hero { position: relative; background: var(--paper); overflow: hidden; }
.hero__ground { position: absolute; inset: 0; background: linear-gradient(170deg, #fff 30%, var(--surface) 70%, #f7efe3 100%); }
.hero__shader { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero__shader.is-live { opacity: 1; }
.hero__shader canvas { display: block; width: 100% !important; height: 100% !important; }
.hero__grid { position: relative; z-index: 1; display: grid; }
.hero__copy { padding-top: clamp(2rem, 1rem + 4vw, 3rem); }
.hero__h { font-family: var(--f-display); font-weight: 500; font-size: var(--step-hero); line-height: 1.02; letter-spacing: -0.03em; max-width: 13ch; }
.hero__sub { margin-top: 1.5rem; max-width: 34rem; color: var(--muted); font-size: var(--step-1); line-height: 1.45; }
.hero__actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero__offices { display: grid; gap: 0; margin-top: 2.25rem; }
.hero__offices li { display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; padding: 0.9rem 0; border-top: 1px solid var(--line); }
.hero__city { font-weight: 600; text-decoration: none; position: relative; padding-left: 1.1rem; }
.hero__city::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 10px; height: 9px; background: var(--peak); clip-path: var(--tri); }
.hero__city:hover { color: var(--peak-deep); }
.hero__offices span { grid-column: 1; color: var(--muted); font-size: var(--step--1); padding-left: 1.1rem; }
.hero__tel { padding-left: 1.1rem; grid-column: 2; grid-row: 1 / span 2; align-self: center; font-weight: 600; color: var(--peak-deep); text-decoration: none; white-space: nowrap; min-height: 2.75rem; display: inline-flex; align-items: center; }
.hero__tel:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero__media { margin: 0; position: relative; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 42% 50%; transform-origin: 40% 50%; }

@media (max-width: 63.99rem) {
  .hero__grid { padding-bottom: 0; }
  .hero__media { margin-top: 2rem; aspect-ratio: 4 / 3.2; }
  .hero__offices { margin-top: 0; padding-block: 1rem 2.5rem; order: 3; }
  .hero { display: flex; flex-direction: column; }
  .hero__grid { display: contents; }
  .hero__copy { width: var(--W); margin-inline: auto; position: relative; z-index: 1; order: 1; }
  .hero__media { order: 2; }
  .hero__offices { width: var(--W); margin-inline: auto; position: relative; z-index: 1; }
}
@media (min-width: 64rem) {
  .hero { min-height: clamp(40rem, calc(100svh - var(--hdr)), 90rem); }
  .hero__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); min-height: inherit; align-content: center; padding-block: clamp(2.5rem, 5vh, 4.5rem) clamp(2rem, 4vh, 3.5rem); }
  .hero__copy { grid-column: 1 / span 6; padding-top: 0; padding-right: 1rem; }
  .hero__offices { grid-column: 1 / span 6; grid-template-columns: repeat(3, 1fr); column-gap: var(--gap); margin-top: clamp(3rem, 7vh, 6.5rem); }
  .hero__offices li { grid-template-columns: 1fr; row-gap: 0.15rem; }
  .hero__offices li .hero__tel { grid-column: 1; grid-row: auto; min-height: 0; margin-top: 0.35rem; }
  .hero__media { position: absolute; top: 0; bottom: 0; right: 0; left: calc((100% - var(--W)) / 2 + (var(--W) + var(--gap)) / 2); }
  .hero__h { max-width: none; }
}
@media (min-width: 64rem) and (max-width: 79.99rem) {
  .hero__offices { grid-template-columns: 1fr; margin-top: 2rem; }
  .hero__offices li { grid-template-columns: 1fr auto; padding: 0.8rem 0; }
  .hero__offices li .hero__tel { padding-left: 1.1rem; grid-column: 2; grid-row: 1 / span 2; margin: 0; }
  .hero__offices span { display: none; }
  .hero__media img { object-position: 30% 50%; }
}

/* ---------------- 2. treatments ---------------- */
.tx { padding-block: var(--section); }
.tx__grid { display: grid; gap: 2.5rem var(--gap); }
.tx__frame { position: relative; margin-top: 2rem; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.tx__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(100% 0 0 0); transform: scale(1.04); z-index: 0; }
.tx__frame img.is-prev { clip-path: inset(0 0 0 0); transform: none; z-index: 1; }
.tx__frame img.is-on { clip-path: inset(0 0 0 0); transform: none; z-index: 2; transition: clip-path 0.7s var(--ease), transform 1.2s var(--ease); }
.tx__frame img[data-tx="0"] { object-position: 35% 50%; }
.tx__frame img[data-tx="2"] { object-position: 30% 50%; }
.tx__frame img[data-tx="3"] { object-position: 35% 40%; }
.tx__cta { margin-top: 1.75rem; }
.tx__rows { border-bottom: 1px solid var(--line); }
.tx__rows li { border-top: 1px solid var(--line); }
.tx__row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: clamp(1.1rem, 0.6rem + 1.6vw, 2.2rem); text-decoration: none; position: relative; }
.tx__name { font-family: var(--f-display); font-weight: 400; font-size: var(--step-4); line-height: 1.05; letter-spacing: -0.02em; transition: transform 0.45s var(--ease), color 0.3s; display: inline-flex; align-items: center; }
.tx__name::before { content: ""; display: inline-block; width: 0.64em; height: 0.56em; background: var(--peak); clip-path: var(--tri); margin-right: 0.35em; transform: scale(0); transform-origin: 50% 80%; transition: transform 0.45s var(--ease); margin-left: -0.99em; }
.tx__row.is-on .tx__name, .tx__row:hover .tx__name { color: var(--peak-deep); transform: translateX(0.99em); }
.tx__row.is-on .tx__name::before, .tx__row:hover .tx__name::before { transform: scale(1); }
.tx__go { flex: none; width: 3rem; height: 3rem; border-radius: 50%; border: 1.5px solid var(--line); position: relative; transition: background-color 0.3s, border-color 0.3s; }
.tx__go::before { content: ""; position: absolute; left: 50%; top: 50%; width: 0.8rem; height: 0.8rem; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: translate(-65%, -50%) rotate(45deg); }
.tx__row:hover .tx__go, .tx__row.is-on .tx__go { background: var(--peak-deep); border-color: var(--peak-deep); color: #fff; }
.tx__more { margin-top: 2.5rem; display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gap); }
.tx__more li { border-bottom: 1px solid var(--line); }
.tx__more a { display: flex; align-items: center; min-height: 3.25rem; text-decoration: none; color: var(--muted); transition: color 0.2s, transform 0.3s var(--ease); }
.tx__more a:hover { color: var(--peak-deep); transform: translateX(4px); }
@media (min-width: 64rem) {
  .tx__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .tx__side { grid-column: 1 / span 5; }
  .tx__sticky { position: sticky; top: calc(var(--hdr) + 2rem); }
  .tx__frame { aspect-ratio: 5 / 4; }
  .tx__main { grid-column: 7 / -1; padding-top: 0.5rem; }
}
@media (max-width: 40rem) { .tx__more { grid-template-columns: 1fr; } .tx__go { width: 2.5rem; height: 2.5rem; } }

/* ---------------- 3. doctor ---------------- */
.dr { background: var(--surface); padding-block: var(--section); }
.dr__grid { display: grid; gap: 2.5rem var(--gap); }
.dr__frame { margin: 0; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--tint); }
.dr__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
@media (min-width: 36rem) and (max-width: 63.99rem) { .dr__frame { max-width: 26rem; } }
.dr__welcome { margin-top: 1.1rem; font-family: var(--f-display); font-size: var(--step-1); color: var(--muted); }
.dr__welcome a { color: var(--ink); text-decoration: none; font-weight: 500; }
.dr__welcome a:hover { color: var(--peak-deep); }
.dr__body { margin-top: 2rem; display: grid; gap: 1rem; max-width: 62ch; color: var(--muted); }
.dr__body strong { color: var(--ink); font-weight: 600; }
.dr__body a, .dr__foot a { color: var(--peak-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.dr__pull { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); font-family: var(--f-display); font-size: var(--step-2); line-height: 1.3; letter-spacing: -0.01em; max-width: 34ch; }
.dr__foot { margin-top: 2.5rem; display: grid; gap: 0.75rem; color: var(--muted); font-size: var(--step--1); max-width: 62ch; }
.dr__foot a { font-weight: 600; }
@media (min-width: 64rem) {
  .dr__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .dr__side { grid-column: 1 / span 5; }
  .dr__main { grid-column: 7 / -1; }
}

/* ---------------- 4. film (signature) ---------------- */
.film { position: relative; background: #fff; }
.film__stage { position: relative; height: 100svh; overflow: hidden; }
.film__lockup { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--f-display); font-weight: 300; font-size: clamp(4.5rem, 17vw, 22rem); line-height: 1; letter-spacing: -0.02em; color: var(--ink); z-index: 1; pointer-events: none; }
.film__word { position: relative; padding-bottom: 0.12em; display: inline-block; }
.film__rule { position: absolute; left: 0.02em; right: 0.02em; bottom: 0; height: max(3px, 0.025em); background: var(--peak); transform-origin: left; }
.film__word--r .film__rule { transform-origin: right; }
.film__gap { width: 0.82em; flex: none; }
.film__window { position: absolute; inset: 0; z-index: 2; clip-path: polygon(50% 0, 50% 0, 100% 100%, 0 100%); }
.film__window img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.film__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 22, 30, 0) 62%, rgba(15, 22, 30, 0.45) 100%); }
.film__end { position: absolute; left: 0; right: 0; bottom: clamp(2rem, 6vh, 4.5rem); z-index: 3; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.film__logo { height: clamp(2.75rem, 2rem + 3vw, 5.5rem); width: auto; }
.play { width: 10px; height: 12px; background: currentColor; clip-path: var(--tri-right); }
/* no JS / reduced motion: the finished frame */
.film.is-static .film__stage { height: auto; aspect-ratio: 21 / 9; min-height: 26rem; }
.film.is-static .film__lockup { display: none; }
.film.is-static .film__window { clip-path: none; }
@media (max-width: 40rem) { .film.is-static .film__stage { aspect-ratio: 4 / 5; } .film__end { flex-direction: column; align-items: flex-start; } }

/* ---------------- 5. credentials ---------------- */
.creds { border-block: 1px solid var(--line); overflow: hidden; padding-block: 2.25rem; }
.creds__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.creds:hover .creds__track, .creds:focus-within .creds__track { animation-play-state: paused; }
.creds__row { display: flex; align-items: center; gap: clamp(3rem, 6vw, 6.5rem); padding-right: clamp(3rem, 6vw, 6.5rem); }
.creds__row a { display: flex; align-items: center; height: 4.5rem; opacity: 0.75; filter: grayscale(1); transition: opacity 0.25s, filter 0.25s; }
.creds__row a:hover, .creds__row a::selection { background: var(--tint); color: var(--ink); }
input, textarea, select { caret-color: var(--peak-deep); accent-color: var(--peak-deep); }
:focus-visible { opacity: 1; filter: none; }
.creds__row img { max-height: 4.25rem; width: auto; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------- 6. stories ---------------- */
.stories { padding-block: var(--section); }
.stories__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.stories__ctrl { display: flex; gap: 0.5rem; }
.arrow { position: relative; width: 3.25rem; height: 3.25rem; border-radius: 50%; border: 1.5px solid var(--ink); background: #fff; transition: background-color 0.2s, color 0.2s, transform 0.2s var(--ease); }
.arrow span { position: absolute; left: 50%; top: 50%; width: 0.7rem; height: 0.7rem; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: translate(-65%, -50%) rotate(45deg); }
.arrow[data-dir="-1"] span { transform: translate(-35%, -50%) rotate(-135deg); }
.arrow:hover { background: var(--ink); color: #fff; }
.arrow:active { transform: scale(0.95); }
.arrow:disabled { opacity: 0.35; pointer-events: none; }
.rail { margin-top: 2.5rem; overflow-x: auto; scrollbar-width: none; cursor: grab; scroll-snap-type: x mandatory; scroll-padding-inline: calc((100% - var(--W)) / 2); }
.rail::-webkit-scrollbar { display: none; }
.rail.is-drag { cursor: grabbing; scroll-snap-type: none; }
.rail.is-drag .story { pointer-events: none; }
.rail__track { display: flex; gap: var(--gap); padding-inline: calc((100% - var(--W)) / 2); width: max-content; }
.rail__track li { scroll-snap-align: start; width: clamp(17rem, 30vw, 34rem); }
.story { display: block; width: 100%; padding: 0; border: 0; background: var(--surface); border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 750 / 550; }
.story img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.story:hover img { transform: scale(1.03); }
.story__play { position: absolute; right: 1rem; top: 1rem; width: 3.25rem; height: 3.25rem; border-radius: 50%; background: #fff; transition: background-color 0.2s, transform 0.3s var(--ease); }
.story__play::before { content: ""; position: absolute; left: 54%; top: 50%; transform: translate(-50%, -50%); width: 11px; height: 14px; background: var(--ink); clip-path: var(--tri-right); }
.story:hover .story__play { background: var(--peak-deep); transform: scale(1.06); }
.story:hover .story__play::before { background: #fff; }
.stories__links { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; }

/* ---------------- 7. offices ---------------- */
.offices { background: var(--surface); padding-block: var(--section); }
.of__grid { display: grid; gap: 2.5rem var(--gap); }
.of__list { margin-top: 2rem; border-bottom: 1px solid var(--line); }
.of__item { border-top: 1px solid var(--line); }
.of__pick { display: flex; align-items: center; gap: 0.8rem; width: 100%; padding: 1.25rem 0; border: 0; background: none; text-align: left; font-family: var(--f-display); font-size: var(--step-3); line-height: 1.1; letter-spacing: -0.015em; color: var(--muted); transition: color 0.25s; }
.of__pick:hover { color: var(--ink); }
.of__tri { width: 0.56em; height: 0.48em; background: var(--peak); clip-path: var(--tri); transform: scale(0); transition: transform 0.45s var(--ease); flex: none; }
.of__item.is-on .of__pick { color: var(--ink); }
.of__item.is-on .of__tri { transform: scale(1); }
.of__info { display: none; gap: 0.75rem; padding: 0 0 1.5rem 1.4rem; }
.of__item.is-on .of__info { display: grid; animation: ofIn 0.5s var(--ease); }
@keyframes ofIn { from { opacity: 0; transform: translateY(6px); } }
.of__k { display: inline-block; min-width: 3.5rem; color: var(--muted); }
.of__info a[href^="tel"] { font-weight: 600; color: var(--peak-deep); text-decoration: none; }
.of__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; padding-top: 0.25rem; }
.of__links .ulink { min-height: 2.25rem; display: inline-flex; align-items: center; }
.of__map { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--tint); }
.of__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; transition: opacity 0.4s var(--ease); }
.of__map iframe.is-loading { opacity: 0.2; }
.of__mapfallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.of__meta { margin-top: 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.of__label { font-weight: 600; margin-bottom: 0.75rem; }
.of__hours dl { margin: 0; }
.of__hours dl div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.8rem 0 0.35rem; border-top: 1px solid var(--line); font-size: var(--step--1); }
.of__hours dt { color: var(--muted); }
.of__hours dd { margin: 0; }
.of__serving ul { display: flex; flex-wrap: wrap; gap: 0.25rem 0; }
.of__serving li { font-family: var(--f-display); font-size: var(--step-1); line-height: 1.4; }
.of__serving li:not(:last-child)::after { content: ","; margin-right: 0.35em; }
@media (min-width: 64rem) {
  .of__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .of__side { grid-column: 1 / span 5; }
  .of__main { grid-column: 6 / -1; padding-top: 0.5rem; }
  .of__map { aspect-ratio: 16 / 10; }
}
@media (max-width: 40rem) { .of__meta { grid-template-columns: 1fr; } .of__map { aspect-ratio: 1 / 1; } }

/* ---------------- 8. appointment ---------------- */
.appt { background: var(--tint); padding-block: var(--section); }
.ap__grid { display: grid; gap: 2.5rem var(--gap); }
.ap__lead { margin-top: 1.5rem; font-size: var(--step-1); line-height: 1.45; max-width: 30ch; }
.ap__phones { margin-top: 2rem; border-bottom: 1px solid rgba(35, 41, 47, 0.14); }
.ap__phones li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 3.5rem; padding-block: 0.8rem; border-top: 1px solid rgba(35, 41, 47, 0.14); }
.ap__phones a { font-family: var(--f-display); font-size: var(--step-2); text-decoration: none; color: var(--peak-deep); }
.ap__phones a:hover { color: var(--ink); }
.ap__ref { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; }
.form { background: #fff; border-radius: calc(var(--radius) * 2); padding: clamp(1.5rem, 1rem + 2.5vw, 3rem); display: grid; gap: 1.4rem; }
.form__h { font-family: var(--f-display); font-size: var(--step-2); }
.form__note { color: var(--muted); font-size: var(--step--1); margin-top: -0.75rem; }
.form__row { display: grid; gap: 1.4rem; }
.field { display: grid; gap: 0.45rem; border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: 0.9375rem; padding: 0; }
.field legend { margin-bottom: 0.6rem; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 0.5rem; padding: 0.8rem 0.95rem; min-height: 3.25rem; transition: border-color 0.2s; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 1.3rem) 55%, calc(100% - 0.95rem) 55%; background-size: 0.36rem 0.36rem; background-repeat: no-repeat; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #b7c3d0; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--peak-deep); box-shadow: 0 0 0 3px rgba(44, 106, 166, 0.18); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field__err { color: #b3261e; font-size: 0.875rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips label { position: relative; font-weight: 500; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1.1rem; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; transition: background-color 0.2s, border-color 0.2s, color 0.2s; }
.chips span:hover { border-color: var(--peak-deep); }
.chips input:checked + span { background: var(--peak-deep); border-color: var(--peak-deep); color: #fff; }
.chips input:focus-visible + span { outline: 2px solid var(--peak-deep); outline-offset: 2px; }
.form .btn { justify-self: start; }
.form__done { padding: 1rem 1.25rem; background: var(--surface); border-radius: 0.5rem; border: 1px solid var(--line); }
@media (min-width: 48rem) { .form__row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) {
  .ap__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .ap__side { grid-column: 1 / span 5; }
  .ap__main { grid-column: 6 / -1; }
}

/* ---------------- footer ---------------- */
.ft { border-top: 1px solid var(--line); padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem) 2rem; font-size: var(--step--1); }
.ft__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.ft__logo img { height: clamp(2.6rem, 2rem + 2vw, 3.6rem); width: auto; }
.ft__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(13rem, 42%), 1fr)); gap: 2rem var(--gap); padding-block: 2.5rem; }
.ft__col h3 { font-family: var(--f-body); font-size: 1rem; font-weight: 600; margin-bottom: 0.75rem; }
.ft__col h3 a { text-decoration: none; }
.ft__col h3 a:hover { color: var(--peak-deep); }
.ft__col p { color: var(--muted); margin-bottom: 0.6rem; }
.ft__col p a { color: var(--peak-deep); font-weight: 600; text-decoration: none; }
.ft__col ul a { display: inline-flex; min-height: 2rem; align-items: center; color: var(--muted); text-decoration: none; }
.ft__col ul a:hover { color: var(--peak-deep); }
.ft__nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.75rem; padding-block: 1.5rem; border-top: 1px solid var(--line); }
.ft__nav a { text-decoration: none; min-height: 2.5rem; display: inline-flex; align-items: center; }
.ft__nav a:hover { color: var(--peak-deep); }
.ft__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; color: var(--muted); padding-top: 1rem; }

/* ---------------- video dialog ---------------- */
.vid { width: min(72rem, 92vw); padding: 0; border: 0; background: transparent; overflow: visible; }
.vid::backdrop { background: rgba(20, 26, 33, 0.82); }
.vid__box { position: relative; }
.vid video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); }
.vid__close { position: absolute; right: 0; top: -3.75rem; width: 3rem; height: 3rem; border-radius: 50%; border: 0; background: #fff; }
.vid__close span::before, .vid__close span::after { content: ""; position: absolute; left: 50%; top: 50%; width: 1.1rem; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%) rotate(45deg); }
.vid__close span::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* ---------------- motion helpers ---------------- */
.split-line { overflow: clip; padding-bottom: 0.08em; margin-bottom: -0.08em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .creds__track { animation: none; }
  .creds { overflow-x: auto; }
}
