/* ------------------------------------------------------------------
   Flexapil Epidaurus — style, second pass
   Grounds: ink (deep indigo), slate, plaster (light).
   Type: Sofia Sans Extra Condensed (display, uppercase, black weight)
         Sofia Sans (text). Hard rectangles. Diagonal seams between grounds,
         taken from the angled LED strips in the second room.
   ------------------------------------------------------------------ */

:root {
  --ink: #0C1024;
  --ink-2: #070A19;
  --slate: #151B38;
  --plaster: #E6E1D6;
  --plaster-2: #DAD3C4;
  --ultra: #3D46FF;
  --aqua: #5CF0F0;
  --amber: #E7A94A;
  --text: #F3F1EA;
  --text-dim: rgba(243, 241, 234, 0.62);
  --rule: rgba(243, 241, 234, 0.14);
  --ink-text: #0C1024;
  --ink-text-dim: rgba(12, 16, 36, 0.66);
  --ink-rule: rgba(12, 16, 36, 0.18);

  --display: 'Sofia Sans Extra Condensed', 'Arial Narrow', Impact, sans-serif;
  --sans: 'Sofia Sans', 'Helvetica Neue', Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 88px);
  --measure: 34rem;
  --seam: clamp(28px, 4vw, 64px);

  --fs-display: clamp(5.2rem, 17vw, 19rem);
  --fs-display-md: clamp(3rem, 7.5vw, 7.5rem);
  --fs-display-sm: clamp(2rem, 4vw, 3.8rem);
  --fs-body: clamp(1rem, 0.95rem + 0.3vw, 1.2rem);
  --fs-small: 0.86rem;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.83, 0, 0.17, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 900; }
ul, ol { list-style: none; margin: 0; padding: 0; }
dl, dd { margin: 0; }
figure { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

:focus-visible { outline: 2px solid var(--aqua); outline-offset: 4px; }
::selection { background: var(--aqua); color: var(--ink); }

.skip {
  position: absolute; left: var(--gutter); top: -100px;
  padding: 10px 16px; background: var(--aqua); color: var(--ink); z-index: 100;
}
.skip:focus { top: 12px; }

/* Type ---------------------------------------------------------------- */

.display, .display-md, .display-sm {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
}
.display { font-size: var(--fs-display); line-height: 0.82; letter-spacing: -0.01em; }
.display-md { font-size: var(--fs-display-md); line-height: 0.88; letter-spacing: 0; }
.display-sm { font-size: var(--fs-display-sm); line-height: 0.92; font-weight: 800; letter-spacing: 0.005em; }

/* Frames: hard rectangles, a thin aqua bar on top ------------------------ */

.frame {
  position: relative;
  overflow: hidden;
  background: var(--ink-2);
}
.frame::before {
  content: ''; position: absolute; left: 0; top: 0; z-index: 2;
  width: 100%; height: 3px; background: var(--aqua);
}
.frame img, .frame video { width: 100%; height: 100%; object-fit: cover; }
.frame figcaption {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--text);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Buttons --------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 1.05em 1.7em 0.95em;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  position: relative;
  isolation: isolate;
  transition: color 0.3s var(--ease-out);
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  transform-origin: left;
  transition: transform 0.4s var(--ease-out), background-color 0.3s;
}
.btn-fill { color: var(--ink); }
.btn-fill::before { background: var(--aqua); }
.btn-fill:hover::before { background: #9bf7f7; }
.btn-line { color: var(--text); box-shadow: inset 0 0 0 2px var(--text); }
.btn-line::before { background: var(--text); transform: scaleX(0); }
.btn-line:hover { color: var(--ink); }
.btn-line:hover::before { transform: scaleX(1); }

.on-light .btn-line { color: var(--ink-text); box-shadow: inset 0 0 0 2px var(--ink-text); }
.on-light .btn-line::before { background: var(--ink-text); }
.on-light .btn-line:hover { color: var(--plaster); }

/* Header ---------------------------------------------------------------- */

.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: calc(env(safe-area-inset-top, 0px) + 20px) var(--gutter) 20px;
  color: #fff;
  pointer-events: none;
  transition: transform 0.45s var(--ease-out), padding 0.35s var(--ease-out);
}
.top::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgba(7, 10, 25, 0.9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.top.is-solid { padding-top: calc(env(safe-area-inset-top, 0px) + 12px); padding-bottom: 12px; }
.top.is-solid::before { opacity: 1; }
.top.is-hidden { transform: translateY(-100%); }
.top:focus-within { transform: none; }
.top > * { pointer-events: auto; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 22px; height: auto; }
.brand-word { width: 108px; height: auto; }
.brand-place {
  font-family: var(--display); font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.7;
  margin-left: 2px; padding-top: 2px;
}

.menu { display: flex; gap: clamp(18px, 3vw, 40px); }
.menu a, .call, .lang {
  font-family: var(--display); font-weight: 700; font-size: 1rem;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.menu a { position: relative; padding: 4px 0; }
.menu a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.menu a:hover::after { transform: scaleX(1); }

.tools { display: flex; justify-content: flex-end; align-items: center; gap: clamp(14px, 2vw, 28px); }
.lang { display: inline-flex; align-items: center; gap: 8px; }
.lang span[data-lang] { opacity: 0.4; transition: opacity 0.3s; }
.lang span[data-lang][aria-pressed="true"] { opacity: 1; }
.lang-sep { width: 2px; height: 12px; background: currentColor; opacity: 0.4; transform: skewX(-20deg); }
.call span { opacity: 0.6; margin-right: 0.4em; }

@media (max-width: 860px) {
  .top { grid-template-columns: 1fr auto; }
  .menu { display: none; }
  .call span { display: none; }
}
@media (max-width: 600px) {
  .brand-place { display: none; }
  .brand-word { width: 88px; }
  .tools { gap: 14px; }
}

/* Hero ------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  background: var(--ink-2);
  isolation: isolate;
}

.hero-media {
  position: absolute; inset: -14% 0 0 0; z-index: 0;
  --wipe: 0;
  clip-path: inset(0 calc(var(--wipe) * 1%) 0 0);
  will-change: clip-path, transform;
}
/* Real photos crossfade; the active one zooms slowly (and keeps zooming while it fades out). */
.hero-slides, .hero-slide, .hero-slide img {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.hero-slide { opacity: 0; transition: opacity 1.6s ease; }
.hero-slide.is-on { opacity: 1; }
.hero-slide img {
  object-fit: cover;
  object-position: var(--op, 50% 50%);
  transform: scale(1.02);
  will-change: transform;
}
.hero-slide.is-on img, .hero-slide.was-on img { animation: heroZoom 8.5s linear forwards; }
.hero.is-paused .hero-slide img { animation-play-state: paused; }
@keyframes heroZoom {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.14) translate3d(var(--tx, -1.5%), var(--ty, -1%), 0); }
}
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 10, 25, 0.5) 0%, rgba(7, 10, 25, 0.05) 30%, rgba(7, 10, 25, 0.2) 65%, rgba(7, 10, 25, 0.95) 100%),
    linear-gradient(90deg, rgba(7, 10, 25, 0.5) 0%, rgba(7, 10, 25, 0) 55%);
}
.js .hero-media { --wipe: 100; }

.hero-copy {
  position: relative; z-index: 2;
  align-self: end;
  padding: calc(env(safe-area-inset-top, 0px) + 20vh) var(--gutter) 0;
  max-width: 1400px;
}
.hero-title { color: var(--text); }
.hero .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero .line-in { display: block; }
.js .hero .line-in { transform: translateY(105%); }

.hero-sub {
  max-width: var(--measure);
  margin-top: clamp(22px, 3vh, 40px);
  font-size: clamp(1.05rem, 1vw + 0.65rem, 1.35rem);
  line-height: 1.45;
}
.hero-sub strong { display: block; font-weight: 700; color: var(--aqua); margin-bottom: 4px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(22px, 3vh, 40px); }
.js .hero-sub, .js .hero-actions, .js .hero-foot { opacity: 0; }

.hero-foot {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 28px var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 26px);
  font-size: var(--fs-small);
  color: var(--text-dim);
}
.reel-dots { display: flex; gap: 6px; }
.reel-dots li { width: 28px; height: 3px; background: rgba(243, 241, 234, 0.25); transition: background 0.4s; }
.reel-dots li.is-on { background: var(--aqua); }
.reel-dots li.is-off { display: none; }

@media (max-width: 799px) {
  .hero-copy { padding-top: 24vh; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 14px; }
  .reel-dots { display: none; }
}

/* Diagonal seams -------------------------------------------------------- */

.manifesto, .owner {
  clip-path: polygon(0 0, 100% var(--seam), 100% 100%, 0 100%);
  margin-top: calc(var(--seam) * -1);
  padding-top: calc(var(--seam) + clamp(70px, 10vw, 150px));
  position: relative; z-index: 1;
}
.tour, .visit {
  clip-path: polygon(0 var(--seam), 100% 0, 100% 100%, 0 100%);
  margin-top: calc(var(--seam) * -1);
  padding-top: var(--seam);
  position: relative;
}

/* Manifesto (plaster) ---------------------------------------------------- */

.manifesto {
  background: var(--plaster);
  color: var(--ink-text);
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  padding-bottom: clamp(90px, 12vw, 180px);
}
.manifesto-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.manifesto-text .display-md { max-width: 14ch; }
.manifesto-cols {
  margin-top: clamp(32px, 5vw, 64px);
  color: var(--ink-text-dim);
  max-width: var(--measure);
}
.manifesto-fig { aspect-ratio: 3 / 4; }

.reveal .w { display: inline-block; opacity: 0.14; transition: opacity 0.35s; }
.reveal .w.on { opacity: 1; }

@media (max-width: 860px) {
  .manifesto-grid { grid-template-columns: 1fr; }
}

/* Tour (slate, pinned horizontal) ---------------------------------------- */

.tour { background: var(--slate); }
.tour-pin {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(40px, 6vh, 72px) 0;
  overflow: hidden;
}
.tour-ghost {
  position: absolute; left: 0; top: 50%; z-index: 0;
  transform: translateY(-50%);
  font-family: var(--display); font-weight: 900; font-size: 42vw; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(243, 241, 234, 0.2);
  white-space: nowrap; pointer-events: none; user-select: none;
  will-change: transform;
}
.tour-head {
  position: relative; z-index: 1;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter);
  margin-bottom: clamp(24px, 4vh, 48px);
}
.tour-count { font-family: var(--display); font-weight: 900; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1; white-space: nowrap; }
.tour-of { color: var(--aqua); }

.tour-track {
  position: relative; z-index: 1;
  display: flex; gap: clamp(12px, 1.6vw, 24px);
  padding: 0 var(--gutter);
  width: max-content;
  will-change: transform;
}
.tour-item {
  flex: 0 0 auto;
  width: clamp(240px, 30vw, 460px);
  aspect-ratio: 3 / 4;
}
.tour-item img, .tour-item video { width: 120%; margin-left: -10%; will-change: transform; }

@media (max-width: 899px), (prefers-reduced-motion: reduce) {
  .tour-pin { min-height: 0; padding-bottom: clamp(60px, 10vw, 100px); }
  .tour-ghost { font-size: 60vw; }
  .tour-track {
    width: auto; overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 8px;
  }
  .tour-track::-webkit-scrollbar { display: none; }
  .tour-item { scroll-snap-align: center; width: 72vw; }
  .tour-item img, .tour-item video { width: 100%; margin-left: 0; }
}

/* Services (ink): a typographic list, no photos ----------------------------- */
/* The aqua top rule stands in for the accent bar every .frame carries         */
/* elsewhere on the page — here it marks the list itself instead of a photo.   */

.services {
  background: var(--ink);
  padding: clamp(90px, 12vw, 170px) var(--gutter) clamp(90px, 12vw, 170px);
}
.services-head {
  margin-bottom: clamp(36px, 6vw, 64px);
}

.svc-list { border-top: 3px solid var(--aqua); }
.svc-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 96px);
  align-items: center;
  padding: clamp(40px, 7vw, 96px) 0;
  border-bottom: 2px solid var(--rule);
}
.svc-row h3 { line-height: 0.9; }
.svc-row-body p { max-width: var(--measure); color: var(--text-dim); margin-bottom: clamp(22px, 2.4vw, 32px); }

@media (max-width: 860px) {
  .svc-row { grid-template-columns: 1fr; gap: clamp(16px, 4vw, 28px); padding: clamp(32px, 8vw, 56px) 0; }
}

/* Flexapil app ------------------------------------------------------------ */

.app-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1.12fr);
  gap: clamp(40px, 5vw, 88px);
  align-items: center;
  min-height: 100svh;
  padding: clamp(90px, 11vw, 160px) var(--gutter) calc(clamp(100px, 13vw, 190px) + var(--seam));
  background:
    radial-gradient(circle at 78% 38%, rgba(92, 240, 240, 0.1), transparent 26%),
    radial-gradient(circle at 90% 76%, rgba(126, 73, 235, 0.13), transparent 28%),
    var(--ink-2);
}
.app-section::before {
  content: 'FLEXAPIL';
  position: absolute;
  left: -0.025em;
  bottom: -0.12em;
  z-index: -1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(243, 241, 234, 0.07);
  font-family: var(--display);
  font-size: clamp(9rem, 24vw, 26rem);
  font-weight: 900;
  line-height: 0.75;
  white-space: nowrap;
  pointer-events: none;
}
.app-copy { position: relative; z-index: 4; }
.app-kicker {
  margin-bottom: 14px;
  color: var(--aqua);
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.app-copy .display-md { max-width: 8ch; }
.app-lead {
  max-width: var(--measure);
  margin-top: clamp(24px, 3vw, 38px);
  color: var(--text-dim);
}
.app-features {
  max-width: 42rem;
  margin-top: clamp(34px, 4vw, 56px);
  border-top: 3px solid var(--aqua);
}
.app-features li {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}
.app-features li > span {
  color: var(--aqua);
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.app-features h3 {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  line-height: 1;
  text-transform: uppercase;
}
.app-features p {
  max-width: 31rem;
  margin-top: 7px;
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.45;
}
.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: clamp(30px, 4vw, 48px);
}
.store-badge {
  display: flex;
  align-items: center;
  min-height: 56px;
  transition: transform 0.3s var(--ease-out), filter 0.3s ease;
}
.store-badge:hover { transform: translateY(-3px); filter: brightness(1.12); }
.store-badge-apple img { width: auto; height: 52px; }
.store-badge-google img { width: auto; height: 68px; }

.app-showcase {
  position: relative;
  width: min(54vw, 820px);
  height: min(68vw, 980px);
  min-height: 720px;
  justify-self: end;
}
.app-showcase::before {
  content: '';
  position: absolute;
  inset: 13% 4% 11% 8%;
  border: 1px solid rgba(92, 240, 240, 0.2);
  background: linear-gradient(145deg, rgba(92, 240, 240, 0.07), rgba(61, 70, 255, 0.025));
  clip-path: polygon(8% 0, 100% 5%, 91% 100%, 0 92%);
}
.app-phone {
  position: absolute;
  overflow: hidden;
  margin: 0;
  border: 4px solid #151a20;
  border-radius: clamp(25px, 3vw, 46px);
  background: #050a0d;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.48);
  transform-origin: 50% 90%;
}
.app-phone img { width: 100%; height: auto; }
.app-phone-progress {
  top: 11%;
  left: 0;
  z-index: 1;
  width: 36%;
  transform: rotate(-5deg);
  opacity: 0.82;
}
.app-phone-dark {
  left: 24%;
  bottom: 2%;
  z-index: 2;
  width: 37%;
  transform: rotate(4deg);
}
.app-phone-main {
  top: 0;
  right: 1%;
  z-index: 3;
  width: 43%;
  border-color: #e8eeee;
}
@media (max-width: 1100px) {
  .app-section { grid-template-columns: minmax(0, 0.95fr) minmax(430px, 1.05fr); }
  .app-showcase { width: 50vw; min-height: 650px; }
}
@media (max-width: 860px) {
  .app-section {
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: calc(clamp(90px, 16vw, 140px) + var(--seam));
  }
  .app-copy .display-md { max-width: 10ch; }
  .app-showcase {
    width: min(100%, 660px);
    height: min(126vw, 820px);
    min-height: 580px;
    justify-self: center;
  }
  .app-phone-progress { top: 9%; left: -1%; width: 39%; }
  .app-phone-dark { left: 25%; bottom: 1%; width: 40%; }
  .app-phone-main { right: 0; width: 47%; }
}
@media (max-width: 520px) {
  .app-features li { grid-template-columns: 2.2rem 1fr; gap: 10px; }
  .store-badges { gap: 12px; }
  .store-badge-apple img { height: 46px; }
  .store-badge-google img { height: 60px; }
  .app-showcase { height: 136vw; min-height: 500px; }
  .app-phone { border-width: 3px; border-radius: 24px; }
  .app-phone-progress { left: -7%; width: 45%; }
  .app-phone-dark { left: 21%; width: 46%; }
  .app-phone-main { right: -4%; width: 54%; }
}

/* Owner (plaster) --------------------------------------------------------- */
/* The trainer cutout stands in front of the gym's own window photo (the one
   with his name on it); his head breaks out above the frame. */

.owner {
  background: var(--plaster-2);
  color: var(--ink-text);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(32px, 5vw, 90px);
  align-items: end;
  min-height: max(100svh, 780px);
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  padding-bottom: 0;
  overflow: hidden;
}
.owner-stage {
  grid-column: 1; grid-row: 1;
  position: relative; z-index: 1;
  display: flex; justify-content: flex-start; align-items: flex-end;
}
.owner-backdrop {
  position: absolute; right: 0; bottom: 0; z-index: 0;
  width: 70%; height: 80%;
}
.owner-backdrop img { object-position: 60% 0%; will-change: transform; }
.owner-cutout {
  position: relative; z-index: 1;
  width: min(620px, 74svh); max-width: none; height: auto;
  flex-shrink: 0;
  margin-left: -12%;
  will-change: transform;
}
.owner-text {
  grid-column: 2; grid-row: 1;
  position: relative; z-index: 2;
  align-self: center;
  padding: clamp(40px, 5vw, 80px) 0;
}
.owner-text h2 { font-size: var(--fs-display-sm); }
.owner-kicker {
  font-family: var(--display); font-weight: 700; font-size: 1.1rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-text-dim);
  margin-bottom: 10px;
}
.owner-body { max-width: var(--measure); color: var(--ink-text-dim); margin: clamp(16px, 2vw, 24px) 0 clamp(24px, 3vw, 36px); }

@media (max-width: 860px) {
  .owner { grid-template-columns: 1fr; min-height: 0; align-items: start; }
  .owner-stage { grid-row: 1; }
  .owner-backdrop { width: 72%; height: 82%; }
  .owner-cutout { width: 100%; max-width: 86vw; margin-left: -6%; }
  .owner-text { grid-column: 1; grid-row: 2; padding: 40px 0 clamp(70px, 14vw, 110px); }
}

/* Visit (ink) -------------------------------------------------------------- */

.visit {
  background: var(--ink);
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  padding-bottom: clamp(80px, 11vw, 160px);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  column-gap: clamp(32px, 5vw, 90px);
  align-items: end;
}
.visit-head {
  padding-top: clamp(80px, 12vw, 170px);
  display: flex; flex-direction: column; gap: clamp(12px, 2vw, 24px);
}
.visit-head .display { font-size: clamp(4.2rem, 12vw, 13rem); }
.visit-phone {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(3.2rem, 8vw, 9rem); line-height: 0.9; letter-spacing: 0.01em;
  color: var(--aqua);
  align-self: flex-start;
  transition: color 0.3s;
}
.visit-phone:hover { color: #fff; }

.visit-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(40px, 5vw, 72px);
}
.visit-facts > div { border-top: 2px solid var(--rule); padding-top: 18px; }
.visit-facts dt {
  font-family: var(--display); font-weight: 700; font-size: 1.05rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--aqua);
  margin-bottom: 10px;
}
.visit-facts dd { max-width: 28rem; }

.visit-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(32px, 4vw, 56px); }

.visit-fig { aspect-ratio: 3 / 4; }
.visit-fig img { object-position: 50% 40%; }

@media (max-width: 860px) {
  .visit { grid-template-columns: 1fr; }
  .visit-fig { margin-top: 56px; aspect-ratio: 4 / 5; }
}

/* Privacy modal ------------------------------------------------------------ */

.privacy-dialog {
  width: min(1180px, calc(100% - 40px));
  max-width: none;
  max-height: calc(100svh - 40px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 0;
  background: var(--plaster);
  color: var(--ink-text);
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.52);
}
.privacy-dialog:not([open]) { display: none; }
.privacy-dialog[open] { animation: privacyIn 0.42s var(--ease-out) both; }
.privacy-dialog::backdrop {
  background: rgba(7, 10, 25, 0.82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: privacyBackdrop 0.3s ease both;
}
@keyframes privacyIn {
  from { opacity: 0; transform: translateY(28px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
@keyframes privacyBackdrop {
  from { opacity: 0; }
  to { opacity: 1; }
}
body.privacy-open { overflow: hidden; }
.privacy-shell {
  padding: clamp(44px, 6vw, 84px);
}
.privacy-close {
  position: sticky;
  top: 16px;
  z-index: 10;
  float: right;
  display: grid;
  width: 50px;
  height: 50px;
  margin: 16px 16px -66px 0;
  place-items: center;
  background: var(--ink);
  color: var(--text);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s var(--ease-out);
}
.privacy-close span { font-size: 2rem; font-weight: 300; line-height: 1; transform: translateY(-2px); }
.privacy-close:hover { background: var(--aqua); color: var(--ink); transform: rotate(4deg); }
.privacy-close:focus-visible { outline-color: var(--ink); }
.privacy-dialog::-webkit-scrollbar { width: 10px; }
.privacy-dialog::-webkit-scrollbar-track { background: var(--plaster-2); }
.privacy-dialog::-webkit-scrollbar-thumb { background: var(--ink-text); }
.privacy-dialog {
  scrollbar-color: var(--ink-text) var(--plaster-2);
  scrollbar-width: thin;
}
.privacy-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.75fr);
  gap: clamp(36px, 7vw, 120px);
  align-items: end;
  padding-bottom: clamp(44px, 6vw, 76px);
}
.privacy-kicker {
  margin-bottom: 14px;
  color: #087c83;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.privacy-head .display-md { max-width: 9ch; }
.privacy-intro { max-width: 37rem; color: var(--ink-text-dim); }
.privacy-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  color: var(--ink-text);
  font-size: 0.95rem;
}
.privacy-status span {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #0b9f83;
  box-shadow: 0 0 0 5px rgba(11, 159, 131, 0.12);
}
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 3px solid var(--ink-text);
  border-left: 1px solid var(--ink-rule);
}
.privacy-card {
  min-height: 300px;
  padding: clamp(28px, 4vw, 52px);
  border-right: 1px solid var(--ink-rule);
  border-bottom: 1px solid var(--ink-rule);
}
.privacy-number {
  margin-bottom: clamp(32px, 4vw, 52px);
  color: #087c83;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.privacy-card h3 {
  margin-bottom: 16px;
  font-family: var(--display);
  font-size: clamp(1.7rem, 2.5vw, 2.6rem);
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
}
.privacy-card > p:not(.privacy-number) {
  max-width: 38rem;
  color: var(--ink-text-dim);
}
.privacy-links,
.privacy-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 22px;
}
.privacy-links a,
.privacy-authority,
.privacy-contact a {
  width: fit-content;
  border-bottom: 2px solid #087c83;
  font-weight: 700;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.privacy-links a:hover,
.privacy-authority:hover,
.privacy-contact a:hover { color: #087c83; border-color: var(--ink-text); }
.privacy-contact { flex-direction: column; color: var(--ink-text-dim); }
.privacy-authority { display: inline-block; margin-top: 22px; }
.privacy-updated {
  margin-top: 24px;
  color: var(--ink-text-dim);
  font-size: var(--fs-small);
}

@media (max-width: 860px) {
  .privacy-dialog { width: calc(100% - 20px); max-height: calc(100svh - 20px); }
  .privacy-shell { padding: 66px 20px 36px; }
  .privacy-close { top: 10px; margin: 10px 10px -60px 0; }
  .privacy-head { grid-template-columns: 1fr; align-items: start; }
  .privacy-grid { grid-template-columns: 1fr; }
  .privacy-card { min-height: 0; }
}

/* Footer ------------------------------------------------------------------ */

.foot {
  background: var(--ink-2);
  padding: clamp(48px, 7vw, 96px) var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 32px);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px);
  border-top: 3px solid var(--aqua);
}
.foot-brand img { width: clamp(150px, 16vw, 220px); height: auto; }
.foot-col { display: flex; flex-direction: column; gap: 10px; color: var(--text-dim); }
.foot-col a, .foot-link { color: var(--text); width: fit-content; border-bottom: 2px solid transparent; transition: border-color 0.3s; }
.foot-col a:hover, .foot-link:hover { border-color: var(--aqua); }
.foot-link { line-height: inherit; }
.foot-h {
  font-family: var(--display); font-weight: 700; font-size: 1.05rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--aqua);
  margin-bottom: 6px;
}
.foot-legal {
  grid-column: 1 / -1;
  margin-top: clamp(24px, 4vw, 48px);
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: var(--fs-small); color: var(--text-dim);
}

@media (max-width: 860px) {
  .foot { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .foot { grid-template-columns: 1fr; }
}

/* Language crossfade ------------------------------------------------------- */

.lang-fade [data-i18n] { transition: opacity 0.22s ease; }
.lang-fade.is-fading [data-i18n] { opacity: 0; }

/* Reduced motion ----------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .js .hero-media { --wipe: 0; }
  .js .hero .line-in { transform: none; }
  .js .hero-sub, .js .hero-actions, .js .hero-foot { opacity: 1; }
  .reveal .w { opacity: 1; }
  .hero-slide img { animation: none !important; transform: none; }
}
