/* Carlos R. Santos, DDS — site styles
   Brand colors come from the building: pale stone piers, dark spandrels and granite,
   a spruce green for the practice and brass for wayfinding. The dark "night" tone is the
   building after hours, with the 18th floor still lit. */

@font-face { font-family: 'Marcellus'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/marcellus-latin.woff2) format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/instrument-sans-latin.woff2) format('woff2'); }

:root {
  --night: #0b1a16;
  --night-2: #10231e;
  --night-3: #183029;
  --on-night: #e7eeea;
  --on-night-2: #a9bab3;
  --line-night: rgba(231, 238, 234, .12);

  --paper: #f3f5f2;
  --paper-2: #e7ece8;
  --white: #fbfcfa;
  --ink: #15231e;
  --ink-2: #4b5b55;
  --ink-3: #56655f;
  --line: #cfd8d3;

  --spruce: #1e5245;
  --spruce-2: #163f35;
  --brass: #a9823f;
  --brass-ink: #8c6a2e;
  --brass-2: #d9bd86;
  --lit: #f3dfae;
  --danger: #a23b2a;
  --danger-bg: #fbf1ee;

  --display: 'Marcellus', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --sans: 'Instrument Sans', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;

  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --radius: 26px;
  --radius-s: 16px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
  interpolate-size: allow-keywords;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -0.028em; text-wrap: balance; }
p { margin: 0; }
a { color: var(--spruce); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--spruce); outline-offset: 3px; border-radius: 4px; }
.on-night :focus-visible, .night :focus-visible { outline-color: var(--brass-2); }

.accent { font-family: var(--display); font-weight: 400; letter-spacing: -0.01em; color: var(--brass-ink); }
.night .accent, .on-night .accent { color: var(--brass-2); }
h1 .accent, h2 .accent { display: block; }

.wrap { max-width: 1240px; margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 200; background: var(--ink); color: var(--white); padding: .6rem 1rem; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }

.eyebrow { display: inline-flex; align-items: center; gap: .7rem; font-size: .84rem; font-weight: 600; letter-spacing: .02em; color: var(--brass-ink); margin-bottom: 1.2rem; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.night .eyebrow, .on-night .eyebrow { color: var(--brass-2); }

/* ---------- surfaces ---------- */
.night { background: var(--night); color: var(--on-night); }
.night p { color: var(--on-night-2); }
.grid-tex { position: relative; isolation: isolate; }
.grid-tex::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(231,238,234,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(231,238,234,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 75%); mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 75%);
}
.paper-tex { background-color: var(--paper); background-image: linear-gradient(rgba(21,35,30,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(21,35,30,.035) 1px, transparent 1px); background-size: 56px 56px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .8rem;
  min-height: 54px; padding: 0 .45rem 0 1.5rem; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s var(--ease), box-shadow .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .arr { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; flex: none; transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn .arr svg { width: 16px; height: 16px; }
.btn.no-arr { padding: 0 1.5rem; }
.btn > svg.ico { width: 18px; height: 18px; flex: none; }
.btn-gold { background: var(--brass-2); color: var(--night); box-shadow: 0 10px 30px -14px rgba(217,189,134,.7); }
.btn-gold:hover { background: #e4cb98; }
.btn-gold .arr { background: rgba(11,26,22,.12); }
.btn-dark { background: var(--night); color: var(--white); }
.btn-dark:hover { background: var(--spruce-2); }
.btn-dark .arr { background: rgba(255,255,255,.12); }
.btn-spruce { background: var(--spruce); color: var(--white); }
.btn-spruce:hover { background: var(--spruce-2); }
.btn-spruce .arr { background: rgba(255,255,255,.14); }
.btn-line { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--white); }
.night .btn-line, .on-night .btn-line { color: var(--on-night); border-color: rgba(231,238,234,.35); }
.night .btn-line:hover, .on-night .btn-line:hover { background: rgba(255,255,255,.06); border-color: var(--brass-2); }
.btn-small { min-height: 44px; font-size: .94rem; padding: 0 .35rem 0 1.1rem; gap: .6rem; }
.btn-small .arr { width: 32px; height: 32px; }
.phone-link { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; color: inherit; text-decoration: none; min-height: 44px; }
.phone-link svg { width: 18px; height: 18px; color: var(--brass-2); }
.phone-link span { border-bottom: 1px solid rgba(217,189,134,.5); padding-bottom: 1px; }
.phone-link:hover span { border-color: var(--brass-2); }
.text-link { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; text-decoration: none; color: var(--spruce); }
.text-link svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.text-link:hover svg { transform: translateX(3px); }
.night .text-link { color: var(--brass-2); }

/* ---------- header ---------- */
.site-top { position: fixed; top: 0; left: 0; right: 0; z-index: 60; padding-top: env(safe-area-inset-top, 0px); pointer-events: none; }
.site-top > * { pointer-events: auto; }
.concept { background: rgba(11,26,22,.92); color: #cfdbd6; font-size: .82rem; line-height: 1.35; border-bottom: 1px solid var(--line-night); transition: margin-top .3s var(--ease), opacity .3s; }
.concept .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .4rem; }
.concept-x { flex: none; background: none; border: 0; color: inherit; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.concept-x:hover { background: rgba(255,255,255,.1); }
.concept-x svg { width: 12px; height: 12px; }
.concept :focus-visible { outline-color: var(--brass-2); }
.scrolled .concept { margin-top: -48px; opacity: 0; pointer-events: none; }

.nav-shell { padding: 14px var(--gutter-r) 0 var(--gutter); }
.nav-pill {
  max-width: 1240px; margin-inline: auto; display: flex; align-items: center; gap: 1.25rem;
  min-height: 64px; padding: 0 .5rem 0 1.1rem; border-radius: 999px; color: var(--on-night);
  border: 1px solid transparent; transition: background-color .35s ease, border-color .35s ease, box-shadow .35s ease, max-width .45s var(--ease);
}
.scrolled .nav-pill, .menu-open .nav-pill {
  max-width: 1080px; background: rgba(16,35,30,.78); border-color: rgba(231,238,234,.12);
  -webkit-backdrop-filter: saturate(1.3) blur(14px); backdrop-filter: saturate(1.3) blur(14px);
  box-shadow: 0 18px 40px -22px rgba(0,0,0,.6);
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: inherit; margin-right: auto; min-width: 0; }
.mark { width: 34px; height: 32px; flex: none; }
.mk-frame { fill: var(--spruce); stroke: rgba(217,189,134,.55); stroke-width: .8; }
.mk-line { stroke: var(--brass-2); stroke-width: 1.4; }
.mk-text { font-family: var(--display); font-size: 12.5px; fill: var(--white); letter-spacing: .04em; }
.brand-text { display: grid; line-height: 1.15; min-width: 0; }
.brand-name { font-family: var(--display); font-size: 1.12rem; white-space: nowrap; letter-spacing: .01em; }
.brand-tag { font-size: .74rem; color: var(--on-night-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-list { display: flex; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.nav-list a { display: block; color: var(--on-night); text-decoration: none; font-size: .94rem; padding: .5rem .8rem; border-radius: 999px; white-space: nowrap; transition: background-color .2s, color .2s; }
.nav-list a:hover { background: rgba(255,255,255,.08); }
.nav-list a[aria-current="page"] { color: var(--brass-2); }
.hdr-actions { display: flex; align-items: center; gap: .4rem; }
.lang-switch { background: none; border: 1px solid rgba(231,238,234,.25); border-radius: 999px; min-height: 42px; padding: 0 .9rem; font-weight: 600; font-size: .88rem; color: var(--on-night); cursor: pointer; }
.lang-switch:hover { border-color: var(--brass-2); color: var(--brass-2); }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(231,238,234,.25); background: none; color: var(--on-night); cursor: pointer; place-items: center; }
.menu-btn span { display: block; width: 18px; height: 1.6px; background: currentColor; position: relative; transition: background-color .2s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.6px; background: currentColor; transition: transform .3s var(--ease); }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }

/* full-screen mobile menu */
.menu-panel {
  position: fixed; inset: 0; z-index: 55; background: radial-gradient(120% 80% at 80% 0%, #17322a 0%, var(--night) 60%);
  color: var(--on-night); padding: calc(140px + env(safe-area-inset-top, 0px)) var(--gutter-r) calc(2rem + env(safe-area-inset-bottom, 0px)) var(--gutter);
  display: flex; flex-direction: column; overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s;
}
.menu-open .menu-panel { opacity: 1; visibility: visible; }
.menu-panel ul { list-style: none; margin: 0; padding: 0; }
.menu-panel li { border-top: 1px solid var(--line-night); }
.menu-panel li a { display: flex; justify-content: space-between; align-items: center; padding: 1.05rem 0; font-size: clamp(1.6rem, 6vw, 2.2rem); font-weight: 600; letter-spacing: -0.03em; color: var(--on-night); text-decoration: none; transform: translateY(14px); opacity: 0; transition: transform .45s var(--ease), opacity .45s ease, color .2s; }
.menu-panel li a::after { content: "→"; font-size: 1.1rem; color: var(--brass-2); }
.menu-panel li a[aria-current="page"] { color: var(--brass-2); }
.menu-open .menu-panel li a { transform: none; opacity: 1; }
.menu-open .menu-panel li:nth-child(2) a { transition-delay: .04s; } .menu-open .menu-panel li:nth-child(3) a { transition-delay: .08s; }
.menu-open .menu-panel li:nth-child(4) a { transition-delay: .12s; } .menu-open .menu-panel li:nth-child(5) a { transition-delay: .16s; }
.menu-foot { margin-top: auto; padding-top: 2rem; display: grid; gap: .8rem; }
.menu-foot .btn { width: 100%; }
.menu-foot p { color: var(--on-night-2); font-size: .92rem; }

/* ---------- home hero ---------- */
.hero { position: relative; overflow: hidden; padding: calc(150px + env(safe-area-inset-top, 0px)) 0 clamp(3rem, 6vw, 5rem); min-height: min(100svh, 980px); display: flex; flex-direction: column; }
.hero::after { content: ""; position: absolute; width: 760px; height: 760px; right: -120px; top: -160px; z-index: -1; background: radial-gradient(circle, rgba(217,189,134,.16) 0%, rgba(217,189,134,0) 62%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; flex: 1; }
.hero h1 { font-size: clamp(2.5rem, 1.2rem + 4.2vw, 4.6rem); line-height: 1.02; max-width: 15ch; }
.hero h1 .accent { margin-top: .14em; font-size: .84em; line-height: 1.1; }
.hero .hero-name { font-family: var(--display); font-weight: 400; letter-spacing: -.01em; line-height: 1.04; font-size: clamp(2.65rem, 1.4rem + 4.4vw, 5rem); max-width: 12ch; }
.hero-sub { margin-top: 1rem; font-family: var(--display); font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); line-height: 1.35; color: var(--brass-2); max-width: 30ch; }
.dash-list { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: .55rem; max-width: 52ch; }
.dash-list li { position: relative; padding-left: 1.7rem; color: var(--on-night-2); font-size: 1.06rem; }
.dash-list li::before { content: ""; position: absolute; left: 0; top: .8em; width: 14px; height: 1px; background: var(--brass-2); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.6rem; margin-top: 2.2rem; }

.hero-copy { position: relative; z-index: 2; }

.floor-chip {
  position: absolute; top: 4%; left: 0; display: inline-flex; align-items: center; gap: .6rem;
  padding: .5rem .85rem .5rem .6rem; border-radius: 999px; background: rgba(16,35,30,.72); border: 1px solid var(--line-night);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--on-night); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
}
.floor-chip .arrow-up { position: relative; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(217,189,134,.15); color: var(--brass-2); }
.floor-chip .arrow-up svg { width: 11px; height: 11px; transition: transform .4s var(--ease-out); }
.arrived .floor-chip .arrow-up svg { transform: scale(0); }
.arrived .floor-chip .arrow-up::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brass-2); position: absolute; }
.reels { display: inline-flex; font-family: var(--display); font-weight: 400; font-size: 1.3rem; line-height: 1; color: var(--brass-2); letter-spacing: 0; }
.reel { display: block; height: 1em; overflow: hidden; }
.reel-strip { display: block; transform: translate3d(0, calc(var(--d, 0) * -1em), 0); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.reel-strip i { display: block; height: 1em; width: .74em; font-style: normal; text-align: center; }

.tower-foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-top: 1.1rem; position: relative; z-index: 1; }
.tower-cap { font-size: .82rem; line-height: 1.5; color: var(--on-night-2); max-width: 36ch; padding-left: .8rem; border-left: 2px solid var(--brass); }
.replay { flex: none; display: inline-flex; align-items: center; gap: .45rem; background: none; border: 1px solid var(--line-night); color: var(--on-night); border-radius: 999px; min-height: 38px; padding: 0 .85rem; font-size: .82rem; cursor: pointer; transition: border-color .25s, color .25s; }
.replay:hover { border-color: var(--brass-2); color: var(--brass-2); }
.replay svg { width: 14px; height: 14px; transition: transform .6s var(--ease-out); }
.replay:hover svg { transform: rotate(-200deg); }

/* ---------- inner page hero ---------- */
.page-hero { position: relative; overflow: hidden; padding: calc(170px + env(safe-area-inset-top, 0px)) 0 clamp(3.5rem, 7vw, 6rem); }
.page-hero h1 { font-size: clamp(2.3rem, 1.3rem + 3.6vw, 4.2rem); line-height: 1.03; max-width: 18ch; }
.page-hero h1 .accent { font-size: .92em; margin-top: .1em; }
.page-hero .lede { margin-top: 1.4rem; max-width: 58ch; font-size: 1.12rem; }
.page-hero::after { content: ""; position: absolute; width: 620px; height: 620px; right: -140px; top: -180px; z-index: -2; background: radial-gradient(circle, rgba(217,189,134,.13) 0%, rgba(217,189,134,0) 62%); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--line-night); color: var(--on-night); text-decoration: none; font-size: .9rem; transition: border-color .2s, background-color .2s; }
.chip:hover { border-color: var(--brass-2); background: rgba(255,255,255,.04); text-decoration: none; }

/* ---------- sections ---------- */
.section { padding-block: clamp(4.5rem, 9vw, 8rem); }
.section-head { max-width: 680px; margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2, .h2 { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.3rem); }
.section-head p { margin-top: 1rem; color: var(--ink-2); font-size: 1.1rem; max-width: 60ch; }
.night .section-head p { color: var(--on-night-2); }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.head-row .section-head { margin-bottom: 0; }

.panel { margin-inline: clamp(8px, 1.4vw, 20px); border-radius: var(--radius); overflow: hidden; }

/* situations: photo cards dealt from a stack as the section scrolls in */
.sits { overflow: clip; }
.sits-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.2rem 3rem; flex-wrap: wrap; margin-bottom: clamp(2.2rem, 4.5vw, 3.6rem); }
.sits-head h2 { font-size: clamp(2.3rem, 1.3rem + 3vw, 3.75rem); line-height: 1; letter-spacing: -0.035em; }
.sits-head h2 .accent { display: inline; }
.sits-lead { max-width: 44ch; color: var(--ink-2); font-size: 1.06rem; }
.deck { position: relative; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 248px 248px auto; gap: 18px; }
.sit-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-width: 0;
  border-radius: 22px; overflow: hidden; isolation: isolate; color: var(--on-night); text-decoration: none;
  background: var(--night-2); box-shadow: 0 34px 60px -42px rgba(11,26,22,.6);
}
.sit-card:hover { text-decoration: none; }
.sit-card:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }
.sit-card.is-main { grid-row: 1 / span 2; }
.sit-card.is-wide { grid-column: 1 / -1; min-height: 250px; }
.sit-photo { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(120% 90% at 70% 12%, rgba(217,189,134,.12), transparent 60%), var(--night-2); }
.sit-photo::before { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(-45deg, rgba(231,238,234,.05) 0 1px, transparent 1px 11px); }
.sit-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,20,17,.08) 0%, rgba(8,20,17,0) 30%, rgba(8,20,17,.55) 62%, rgba(8,20,17,.93) 100%); }
.sit-photo img { position: absolute; left: 0; top: -7%; width: 100%; height: 114%; object-fit: cover; filter: saturate(.9) contrast(1.04); scale: 1.02; transition: scale 1.3s var(--ease-out), opacity .9s ease; }
.sit-card:hover .sit-photo img { scale: 1.07; }
.sit-card.is-main .sit-photo img { object-position: 50% 45%; }
.sit-card.is-wide .sit-photo img { object-position: 50% 50%; }
.sit-card.is-wide .sit-photo::after { background: linear-gradient(90deg, rgba(8,20,17,.94) 0%, rgba(8,20,17,.62) 38%, rgba(8,20,17,0) 72%); }
.sit-idx { position: absolute; top: 18px; right: 22px; z-index: 1; font-weight: 600; font-size: .95rem; color: rgba(231,238,234,.82); font-variant-numeric: tabular-nums; text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.is-main .sit-idx { top: 26px; right: 30px; font-size: 1.1rem; }
.sit-body { position: relative; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.is-main .sit-body { padding: 32px; gap: 14px; }
.sit-voice { margin: 0; font-size: 1.25rem; font-weight: 700; line-height: 1.14; letter-spacing: -0.025em; color: #fff; text-wrap: pretty; max-width: 22ch; }
.is-main .sit-voice { font-size: clamp(1.6rem, 1.1rem + 1.2vw, 2.05rem); max-width: 14ch; }
.is-wide .sit-voice { font-size: clamp(1.4rem, 1.1rem + .9vw, 1.8rem); max-width: 22ch; }
.sit-route { display: inline-flex; align-items: center; gap: 9px; font-size: .86rem; font-weight: 500; letter-spacing: .01em; color: rgba(231,238,234,.82); transition: color .3s; }
.sit-route svg { width: 15px; height: 15px; flex: none; color: var(--brass-2); transition: transform .35s var(--ease-out); }
.sit-card:hover .sit-route { color: #fff; }
.sit-card:hover .sit-route svg { transform: translateX(5px); }
.sit-num { font-size: .9rem; font-weight: 500; color: var(--on-night-2); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
@media (min-width: 861px) {
  .deck-on .sits-head { transform: translate3d(calc((1 - min(1, calc(var(--p, 1) / .45))) * 240px), 0, 0); opacity: min(1, calc(var(--p, 1) / .35)); }
  .deck-on .sit-card {
    --cp: clamp(0, calc((var(--p, 1) - .2 - var(--i, 0) * .07) / .45), 1);
    transform: translate3d(calc((1 - var(--cp)) * var(--sx, 0px)), calc((1 - var(--cp)) * var(--sy, 0px)), 0) rotate(calc((1 - var(--cp)) * var(--sr, 0deg))) scale(calc(1 - (1 - var(--cp)) * .06));
    opacity: clamp(0, calc(var(--p, 1) * 6), 1);
  }
  .deck-on .sit-card.is-main { z-index: 2; }
}


/* reasons: sticky title + numbered list */
.reasons { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.reasons-head { position: sticky; top: 130px; }
.reasons-head h2 { font-size: clamp(2.1rem, 1.3rem + 2.6vw, 3.4rem); }
.reasons-head p { margin-top: 1.2rem; max-width: 40ch; }
.reasons-head .btn { margin-top: 2rem; }
.num-list { list-style: none; margin: 0; padding: 0; counter-reset: n; }
.num-list li { counter-increment: n; display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: 1rem; padding: 2rem 0; border-top: 1px solid var(--line-night); }
.num-list li:last-child { border-bottom: 1px solid var(--line-night); }
.num-list li::before { content: "0" counter(n); font-size: .95rem; font-weight: 500; letter-spacing: .04em; color: var(--brass-2); padding-top: .35rem; }
.num-list h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.95rem); color: var(--white); }
.num-list p { margin-top: .8rem; max-width: 52ch; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 1.6rem 1.5rem 1.8rem; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s; }
.steps li:hover { transform: translateY(-3px); box-shadow: 0 24px 40px -30px rgba(21,35,30,.45); }
.steps li::before { content: counter(step, decimal-leading-zero); font-size: 2.4rem; font-weight: 500; letter-spacing: -0.04em; line-height: 1; color: var(--brass); font-variant-numeric: tabular-nums; margin-bottom: 2.4rem; }
.steps li::after { content: ""; position: absolute; top: 2.55rem; left: 5.2rem; right: 1.5rem; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.steps h3 { font-size: 1.3rem; letter-spacing: -0.02em; }
.steps p { margin-top: .6rem; color: var(--ink-2); font-size: .98rem; }

/* doctor editorial */
.editorial { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.portrait { position: relative; border-radius: var(--radius); overflow: hidden; background: radial-gradient(120% 90% at 30% 10%, #1d3a31 0%, var(--night) 70%); aspect-ratio: 4 / 5; display: grid; place-items: center; isolation: isolate; }
.portrait::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(231,238,234,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(231,238,234,.05) 1px, transparent 1px); background-size: 32px 32px; }
.monogram { width: 66%; height: auto; }
.mg-frame { fill: var(--spruce); }
.mg-inner { fill: none; stroke: var(--brass-2); stroke-width: 1.5; }
.mg-text { font-family: var(--display); font-size: 96px; fill: var(--white); letter-spacing: .05em; }
.mg-rule { stroke: var(--brass-2); stroke-width: 1.5; }
.mg-sub { font-family: var(--display); font-size: 26px; fill: var(--brass-2); letter-spacing: .14em; }
.portrait-cap { position: absolute; left: 1.4rem; bottom: 1.2rem; right: 1.4rem; display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; color: var(--on-night); }
.portrait-cap b { font-family: var(--display); font-weight: 400; font-size: 1.15rem; }
.portrait-cap span { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-2); }
.doc-name { font-size: clamp(2.3rem, 1.4rem + 3vw, 3.8rem); line-height: 1; }
.doc-name small { display: inline-block; font-size: .32em; vertical-align: middle; letter-spacing: .12em; padding: .35em .7em; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-3); font-weight: 600; margin-left: .3em; transform: translateY(-.3em); }
.doc-lede { font-family: var(--display); font-size: clamp(1.3rem, 1.1rem + .7vw, 1.65rem); line-height: 1.35; color: var(--brass-ink); margin-top: 1.2rem; max-width: 30ch; }
.creds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; margin: 2rem 0 0; }
.creds div { border-top: 1px solid var(--line); padding: .85rem 0 .95rem; }
.creds dt { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-ink); font-weight: 600; }
.creds dd { margin: .25rem 0 0; }
.prose p { color: var(--ink-2); font-size: 1.08rem; max-width: 62ch; }
.prose p + p { margin-top: 1rem; }

/* Spanish band */
.es-band { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem 2rem; flex-wrap: wrap; padding: 2.2rem clamp(1.5rem, 4vw, 3rem); background: var(--spruce-2); color: var(--on-night); border-radius: var(--radius); }
.es-band h2 { font-size: clamp(1.45rem, 1.2rem + .9vw, 1.9rem); color: var(--white); }
.es-band p { margin-top: .35rem; color: #c3d6ce; }
html[lang="es"] .only-en { display: none; }

/* insurance */
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.split .section-head { margin-bottom: 0; position: sticky; top: 130px; }
.ins-cards { display: grid; gap: 12px; }
.ins-card { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1.2rem; padding: 1.5rem 1.6rem; background: var(--white); border: 1px solid var(--line); border-radius: 20px; }
.ins-card dt { font-family: var(--display); font-size: 1.45rem; line-height: 1.2; }
.ins-card dd { margin: 0; color: var(--ink-2); }

/* location */
.loc-block { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #e3e9e5; }
.loc-block .map { display: block; width: 100%; height: clamp(460px, 42vw, 580px); }
.loc-card { position: absolute; left: 20px; top: 20px; bottom: 20px; width: min(380px, calc(100% - 40px)); background: rgba(251,252,250,.95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 20px; padding: 1.6rem; display: flex; flex-direction: column; gap: 1.1rem; overflow-y: auto; box-shadow: 0 30px 50px -35px rgba(21,35,30,.5); }
.loc-card .k { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-ink); font-weight: 600; margin-bottom: .3rem; }
.address { font-size: 1.15rem; font-weight: 600; line-height: 1.4; }
.corner { margin-top: .4rem; color: var(--ink-2); font-size: .95rem; }
.lines { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: .95rem; color: var(--ink-2); }
.lines li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .6rem; align-items: start; }
.bullets { display: inline-flex; gap: 3px; padding-top: 1px; flex-wrap: wrap; max-width: 92px; }
.bullet { width: 21px; height: 21px; border-radius: 50%; display: inline-grid; place-items: center; font-size: .72rem; font-weight: 700; color: #fff; line-height: 1; }
.b-g { background: #00933c; } .b-p { background: #b933ad; } .b-s { background: #808183; } .b-o { background: #ff6319; } .b-rr { background: var(--spruce); width: auto; padding: 0 .45rem; border-radius: 999px; font-size: .64rem; letter-spacing: .04em; }
.loc-card .btn { margin-top: auto; align-self: flex-start; }
.map-note { position: absolute; right: 14px; bottom: 12px; font-size: .74rem; color: var(--ink-3); background: rgba(243,245,242,.88); padding: .25rem .6rem; border-radius: 999px; }
.m-block { fill: #e3e9e5; }
.m-street { stroke: var(--paper); stroke-width: 7; }
.m-major { stroke-width: 11; }
.m-ave { stroke: var(--paper); stroke-width: 11; fill: none; }
.m-minor { stroke-width: 5; }
.m-park { fill: #c7dbc9; }
.m-lib { fill: #d9dfd6; stroke: #b4c0b6; }
.m-gct { fill: #d3dcd7; stroke: #a9b8b0; }
.m-route-base { stroke: rgba(169,130,63,.25); stroke-width: 4; fill: none; stroke-linecap: round; }
.m-route { stroke: var(--brass); stroke-width: 3; stroke-dasharray: 1 8; stroke-linecap: round; fill: none; animation: march 1.6s linear infinite; }
@keyframes march { to { stroke-dashoffset: -18; } }
.m-office { fill: var(--spruce); }
.m-pin { fill: var(--lit); }
.m-pulse { fill: none; stroke: var(--spruce); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(2.6); opacity: 0; } }
.m-t, .m-t-office, .m-t-street { paint-order: stroke; stroke-linejoin: round; }
.m-t { font-family: var(--sans); font-size: 13px; font-weight: 600; fill: var(--ink-2); stroke: rgba(227,233,229,.85); stroke-width: 3px; }
.m-t-small { font-size: 11px; }
.m-t-office { font-family: var(--display); font-size: 17px; fill: var(--spruce); stroke: var(--paper); stroke-width: 5px; }
.m-t-street { font-family: var(--sans); font-size: 10.5px; fill: var(--ink-3); stroke: rgba(243,245,242,.9); stroke-width: 3px; }
.m-north path { fill: var(--ink-2); }

/* FAQ */
.faq-split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.faq-side { position: sticky; top: 130px; }
.faq-side h2 { font-size: clamp(2.1rem, 1.3rem + 2.4vw, 3.3rem); }
.faq-side p { margin-top: 1.1rem; color: var(--ink-2); max-width: 38ch; }
.faq-side .btn { margin-top: 1.8rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.45rem 0; font-weight: 600; font-size: clamp(1.05rem, 1rem + .3vw, 1.22rem); line-height: 1.35; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--spruce); }
.pm { position: relative; width: 38px; height: 38px; flex: none; border-radius: 50%; border: 1px solid var(--line); transition: background-color .25s, border-color .25s; }
.pm::before, .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.6px; margin: -.8px 0 0 -6px; background: var(--ink); transition: transform .3s var(--ease), background-color .25s; }
.pm::after { transform: rotate(90deg); }
.faq details[open] .pm { background: var(--brass-2); border-color: var(--brass-2); }
.faq details[open] .pm::after { transform: rotate(0deg); }
.faq .ans { padding: 0 4rem 1.6rem 0; color: var(--ink-2); max-width: 68ch; }
.faq details[open] .ans { animation: ans-in .35s var(--ease); }
@keyframes ans-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* treatments page */
.treat { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: start; padding-block: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--line); }
.treat:first-child { border-top: 0; }
.treat-card { position: sticky; top: 120px; border-radius: 22px; padding: 1.8rem; min-height: 380px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 2rem; background: var(--night-2); color: var(--on-night); overflow: hidden; isolation: isolate; box-shadow: 0 34px 60px -42px rgba(11,26,22,.6); }
.treat-photo { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--night-2); }
.treat-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,20,17,.2) 0%, rgba(8,20,17,.3) 40%, rgba(8,20,17,.92) 100%); }
.treat-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) contrast(1.04); scale: 1.02; transition: scale 1.3s var(--ease-out), opacity .9s ease; }
.treat-card:hover .treat-photo img { scale: 1.06; }
.treat-card .sit-num { align-self: flex-end; font-size: 1.05rem; color: rgba(231,238,234,.85); text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.treat-card p { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.025em; line-height: 1.2; color: var(--white); max-width: 18ch; }
.treat-body h2 { font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.6rem); }
.treat-body > p { margin-top: 1rem; color: var(--ink-2); font-size: 1.08rem; max-width: 62ch; }
.treat-body h3 { margin: 2rem 0 .8rem; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-ink); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; max-width: 60ch; }
.ticks li { position: relative; padding: .8rem 0 .8rem 2rem; border-top: 1px solid var(--line); }
.ticks li:last-child { border-bottom: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: .2rem; top: 1.35rem; width: 8px; height: 8px; background: var(--brass); transform: rotate(45deg); }
.treat-body .btn { margin-top: 2rem; }
.urgent { margin-top: 1.6rem; padding: 1rem 1.15rem; background: var(--danger-bg); border-left: 3px solid var(--danger); border-radius: 0 12px 12px 0; font-size: .97rem; line-height: 1.5; color: #5c241a; max-width: 62ch; }

/* final CTA */
.final { text-align: center; padding-block: clamp(5rem, 10vw, 8.5rem); border-radius: var(--radius) var(--radius) 0 0; position: relative; overflow: hidden; }
.final::after { content: ""; position: absolute; left: 50%; top: -260px; width: 900px; height: 520px; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(217,189,134,.18), transparent 65%); z-index: -1; }
.final h2 { font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.4rem); }
.final h2 .accent { display: inline; }
.final .lede { margin: 1.3rem auto 0; max-width: 52ch; font-size: 1.1rem; }
.final .cta-row { justify-content: center; }
.or { display: flex; align-items: center; gap: 1rem; max-width: 420px; margin: 2.2rem auto 1.2rem; color: var(--on-night-2); font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line-night); }
.big-phone { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); font-weight: 600; letter-spacing: -0.02em; color: var(--brass-2); text-decoration: none; font-variant-numeric: tabular-nums; }
.big-phone:hover { text-decoration: underline; text-decoration-thickness: 1px; }

/* booking */
.book-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.book-side { position: sticky; top: 120px; display: grid; gap: 14px; }
.side-card { border-radius: 22px; padding: 1.6rem; }
.side-card.night h3 { font-size: 1.1rem; color: var(--white); }
.side-card .big-phone { display: inline-block; margin-top: .8rem; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); }
.side-card p { margin-top: .6rem; font-size: .95rem; }
.side-card.light { background: var(--white); border: 1px solid var(--line); }
.side-card.light p { color: var(--ink-2); }
.side-card .side-k { margin: 1.4rem 0 .6rem; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-ink); font-weight: 600; }
.side-card .btn { margin-top: 1.5rem; }
.form-card { background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 3.4vw, 2.6rem); }
.form-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.preview-tag { display: inline-block; font-size: .84rem; line-height: 1.4; background: #f2ead8; color: #5e4a22; padding: .4rem .8rem; border-radius: 999px; }
.form-step { font-size: .82rem; color: var(--ink-3); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 1.25rem; }
.span-2 { grid-column: 1 / -1; }
.field { display: grid; gap: .5rem; align-content: start; min-width: 0; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.field > label, .field legend { font-weight: 600; font-size: 1rem; padding: 0; letter-spacing: -0.01em; }
.field legend { margin-bottom: .6rem; }
.opt { font-weight: 400; color: var(--ink-3); }
.hint { font-size: .86rem; color: var(--ink-3); margin-top: -.3rem; }
.input { width: 100%; min-height: 54px; padding: 0 1rem; border: 1.5px solid #b9c5bf; border-radius: 14px; background: #fff; font-size: 1rem; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.input:focus { border-color: var(--spruce); outline: none; box-shadow: 0 0 0 4px rgba(30,82,69,.18); }
.choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: inline-flex; align-items: center; gap: .55rem; min-height: 46px; padding: 0 1.1rem; border: 1.5px solid #b9c5bf; border-radius: 999px; background: #fff; cursor: pointer; font-size: .97rem; line-height: 1.25; transition: border-color .2s, background-color .2s; }
.choice span:hover { border-color: var(--spruce); }
.choice input:checked + span { border-color: var(--spruce); background: #e6efeb; color: var(--spruce-2); font-weight: 600; }
.choice input:focus-visible + span { outline: 3px solid var(--spruce); outline-offset: 2px; }
.choices.stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choices.stack .choice span { width: 100%; min-height: 54px; border-radius: 14px; }
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.option { position: relative; }
.option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.option > span { display: flex; align-items: center; gap: .85rem; min-height: 60px; height: 100%; padding: .7rem 1rem .7rem .7rem; border: 1.5px solid #cdd6d1; border-radius: 16px; background: #fff; cursor: pointer; font-size: .97rem; line-height: 1.3; transition: border-color .2s, background-color .2s, transform .2s var(--ease); }
.option > span::before { content: attr(data-l); flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 1px solid #cdd6d1; font-size: .8rem; font-weight: 600; color: var(--ink-3); transition: all .2s; }
.option > span:hover { border-color: var(--spruce); transform: translateY(-1px); }
.option input:checked + span { border-color: var(--spruce); background: #eef4f1; font-weight: 600; color: var(--spruce-2); }
.option input:checked + span::before { background: var(--spruce); border-color: var(--spruce); color: #fff; }
.option input:focus-visible + span { outline: 3px solid var(--spruce); outline-offset: 2px; }
.err { color: var(--danger); font-size: .88rem; font-weight: 600; }
.field.invalid .input, .field.invalid .choice span, .field.invalid .option > span { border-color: var(--danger); }
.form-alert { background: var(--danger-bg); color: #5c241a; border-left: 3px solid var(--danger); border-radius: 0 12px 12px 0; padding: .8rem 1rem; margin-bottom: 1.4rem; font-weight: 600; font-size: .95rem; }
.privacy-note { font-size: .9rem; color: var(--ink-2); padding: .9rem 1.1rem; background: var(--paper); border-radius: 14px; }
.form-card .btn-spruce { width: 100%; min-height: 58px; font-size: 1.05rem; }
.done h3 { font-size: 2rem; }
.done h3:focus { outline: none; }
.done > p { margin-top: .8rem; color: var(--ink-2); }
.done h4 { margin: 1.8rem 0 .5rem; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-ink); }
.done dl { margin: 0; border-bottom: 1px solid var(--line); }
.done dl div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1rem; border-top: 1px solid var(--line); padding: .7rem 0; }
.done dt { color: var(--ink-3); font-size: .92rem; }
.done dd { margin: 0; }
.done .btn { margin-top: 1.8rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--night); color: var(--on-night-2); font-size: .95rem; padding-top: clamp(3.5rem, 7vw, 5rem); overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr) minmax(0, .9fr) minmax(0, 1fr); gap: 2.5rem; }
.site-footer a { color: var(--on-night); }
.site-footer .brand-name { color: var(--white); font-size: 1.3rem; }
.foot-brand p { margin-top: .9rem; line-height: 1.6; }
.foot-phone { display: inline-block; margin-top: 1rem; font-size: 1.35rem; font-weight: 600; text-decoration: none; color: var(--brass-2) !important; }
.foot-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.2rem; }
.foot-chips span { font-size: .78rem; padding: .3rem .75rem; border-radius: 999px; border: 1px solid var(--line-night); color: var(--on-night); }
.foot-h { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-2); font-weight: 600; margin-bottom: 1rem; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { text-decoration: underline; color: var(--white); }
.foot-col p + p { margin-top: .8rem; }
.wordmark { font-family: var(--display); font-size: clamp(5rem, 22vw, 19rem); line-height: .82; letter-spacing: -0.02em; text-align: center; margin-top: clamp(3rem, 6vw, 5rem); background: linear-gradient(180deg, rgba(217,189,134,.55) 0%, rgba(217,189,134,.08) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; white-space: nowrap; }
.foot-base { border-top: 1px solid var(--line-night); padding: 1.3rem 0 1.6rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .86rem; }

/* ---------- mobile action bar ---------- */
.action-bar { display: none; }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; translate: 0 28px; transition: opacity .9s var(--ease-out), translate 1.1s var(--ease-out), filter .9s var(--ease-out); }
.js .reveal.in { opacity: 1; translate: none; filter: none; }
.js .reveal-d1 { transition-delay: .08s; } .js .reveal-d2 { transition-delay: .16s; } .js .reveal-d3 { transition-delay: .24s; } .js .reveal-d4 { transition-delay: .32s; }
@media (min-width: 981px) { .js .reveal:not(.in) { filter: blur(6px); } }
.js .sit-photo img:not(.is-loaded), .js .treat-photo img:not(.is-loaded) { opacity: 0; }

/* ---------- smooth page changes and accordions ---------- */
@view-transition { navigation: auto; }
.site-top { view-transition-name: site-top; }
@supports selector(::details-content) {
  .faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .55s var(--ease-out), content-visibility .55s allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .site-nav { display: none; }
  .menu-btn { display: inline-grid; }
  .hdr-cta { display: none; }
}
@media (max-width: 980px) {
  .hero-grid, .reasons, .editorial, .split, .faq-split, .book-grid, .treat { grid-template-columns: minmax(0, 1fr); }
  .hero { min-height: 0; }
  .reasons-head, .split .section-head, .faq-side, .book-side, .treat-card { position: static; }
  .treat-card { position: relative; top: auto; min-height: 240px; padding: 1.4rem 1.5rem; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portrait { max-width: 420px; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
  .action-bar {
    display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: .6rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: rgba(11,26,22,.92); border-top: 1px solid var(--line-night);
    padding: .6rem var(--gutter-r) calc(.6rem + env(safe-area-inset-bottom, 0px)) var(--gutter);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    transform: translateY(110%); visibility: hidden; transition: transform .25s ease, visibility .25s;
  }
  .show-bar .action-bar { transform: none; visibility: visible; }
  .host-badge .action-bar { padding-bottom: calc(4.4rem + env(safe-area-inset-bottom, 0px)); }
  .host-badge .site-footer { padding-bottom: calc(9rem + env(safe-area-inset-bottom, 0px)); }
  .action-bar .btn { min-height: 48px; padding: 0 1rem; }
  .site-footer { padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 680px) {
  html { scroll-padding-top: 90px; }
  body { font-size: 1.03rem; }
  .brand-tag { display: none; }
  .brand-name { font-size: 1.02rem; }
  .nav-pill { min-height: 58px; padding-left: .9rem; }
  .hero { padding-top: calc(128px + env(safe-area-inset-top, 0px)); }
  .page-hero { padding-top: calc(140px + env(safe-area-inset-top, 0px)); }
  .cta-row .btn { flex: 1 1 100%; justify-content: space-between; }
  .cta-row .phone-link { justify-content: center; width: 100%; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .creds { grid-template-columns: minmax(0, 1fr); }
  .ins-card { grid-template-columns: minmax(0, 1fr); gap: .4rem; }
  .form-grid, .options, .choices.stack { grid-template-columns: minmax(0, 1fr); }
  .faq .ans { padding-right: 0; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .loc-card { position: relative; left: auto; top: auto; bottom: auto; width: auto; margin: 0; border-radius: 0; border: 0; border-bottom: 1px solid var(--line); box-shadow: none; }
  .loc-block .map { height: auto; }
  .m-t { font-size: 16px; } .m-t-small { font-size: 14px; } .m-t-office { font-size: 20px; } .m-t-street { font-size: 13.5px; }
  .m-wide-only { display: none; }
  /* first screen: the building above, the doctor's name below */
  .hero { min-height: 100vh; min-height: 100svh; padding-top: calc(112px + env(safe-area-inset-top, 0px)); padding-bottom: calc(1.6rem + env(safe-area-inset-bottom, 0px)); }
  .hero-grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .hero-copy { position: relative; z-index: 2; }
  .hero .dash-list { display: none; }
  .hero-name { font-size: 2.65rem; }
  .hero-sub { font-size: 1.05rem; margin-top: .7rem; }
  .hero .cta-row { flex-wrap: nowrap; gap: .7rem; margin-top: 1.5rem; }
  .hero .cta-row .btn { flex: 1 1 auto; }
  .hero .cta-row .phone-link { flex: none; width: 58px; height: 58px; justify-content: center; border: 1px solid var(--line-night); border-radius: 50%; }
  .hero .phone-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  [data-page="home"] .nav-pill {
    background: rgba(16,35,30,.72); border-color: rgba(231,238,234,.12);
    -webkit-backdrop-filter: saturate(1.3) blur(14px); backdrop-filter: saturate(1.3) blur(14px);
  }
}
@media (max-width: 860px) {
  .deck { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 14px; }
  .sit-card { min-height: 200px; }
  .sit-card.is-main { grid-row: auto; min-height: 300px; }
  .sit-card.is-wide { min-height: 230px; }
  .sit-card.is-wide .sit-photo img { object-position: 50% 50%; }
  .sit-card.is-wide .sit-photo::after { background: linear-gradient(180deg, rgba(8,20,17,0) 25%, rgba(8,20,17,.6) 60%, rgba(8,20,17,.94)); }
  .is-main .sit-body, .sit-body { padding: 20px; }
  .is-main .sit-voice { font-size: 1.55rem; }
  html.js .sit-card { opacity: 0; transform: translateY(-28px) scale(.955); transition: opacity .5s ease, transform .75s cubic-bezier(.22, 1.12, .36, 1); }
  html.js .sit-card.m-in { opacity: 1; transform: none; }
}
@media (min-width: 600px) and (max-width: 860px) {
  .deck { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sit-card.is-main, .sit-card.is-wide { grid-column: 1 / -1; }
  .sit-card { min-height: 230px; }
}
@media (max-width: 520px) {
  .hdr-actions .lang-switch { display: none; }
  .concept { font-size: .74rem; }
  .concept .wrap { padding-block: .3rem; }
}
.menu-lang { min-height: 54px; border-radius: 999px; font-size: 1rem; }
@media (min-width: 521px) { .menu-lang { display: none; } }
@media (max-width: 380px) {
  .brand-name { font-size: .95rem; }
  .mark { width: 28px; height: 26px; }
  .lang-switch { padding: 0 .65rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; translate: none; filter: none; }
  .m-route { animation: none; }
  html.js .sit-card { opacity: 1; transform: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ---------- floor counter in the header: climbs with the page, rides to the booking form ---------- */
.nav-floor {
  display: inline-flex; align-items: center; gap: .45rem; height: 40px; padding: 0 .75rem 0 .45rem; margin-right: .2rem;
  border-radius: 999px; border: 1px solid var(--line-night); background: rgba(217,189,134,.08); color: var(--brass-2); text-decoration: none;
  opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .35s ease, transform .45s var(--ease-out), background-color .25s;
}
.scrolled .nav-floor { opacity: 1; transform: none; pointer-events: auto; }
.nav-floor:hover { background: rgba(217,189,134,.18); }
.nav-floor-arrow { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(217,189,134,.15); }
.nav-floor-arrow svg { width: 11px; height: 11px; transition: transform .3s var(--ease-out); }
.nav-floor.going-down .nav-floor-arrow svg { transform: rotate(180deg); }
.nav-floor .reels { font-size: 1.15rem; }
.nav-floor.at-top { background: rgba(217,189,134,.22); }

/* ---------- the sky behind the home hero follows the hour in New York ---------- */
.hero { isolation: isolate; }
.hero-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 1.4s ease; }
.hero-sky .sun { position: absolute; border-radius: 50%; }
.sky-day .hero-sky {
  opacity: 1;
  background: radial-gradient(ellipse 60% 45% at 74% 18%, rgba(255,241,210,.30), rgba(255,241,210,0) 70%),
              linear-gradient(180deg, #2a5a62 0%, #1f4a4d 34%, #143631 62%, var(--night) 92%);
}
.sky-day .hero-sky .sun { width: 150px; height: 150px; right: 14%; top: 12%; background: radial-gradient(circle, rgba(255,246,222,.85) 0 22%, rgba(255,240,205,.28) 40%, rgba(255,240,205,0) 70%); }
.sky-dusk .hero-sky {
  opacity: 1;
  background: radial-gradient(ellipse 55% 38% at 72% 70%, rgba(214,140,82,.55), rgba(214,140,82,0) 72%),
              linear-gradient(180deg, #172836 0%, #2a2a3a 38%, #3a2c2a 66%, var(--night) 94%);
}
.sky-dusk .hero-sky .sun { width: 120px; height: 120px; right: 22%; top: 60%; background: radial-gradient(circle, rgba(255,200,140,.8) 0 20%, rgba(240,160,100,.25) 42%, rgba(240,160,100,0) 70%); }

/* ---------- situation icons draw themselves when they come into view ---------- */
.ic { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.ic .ic-accent { fill: rgba(217,189,134,.28); stroke: var(--brass-2); }
.ic .ic-accent-line { stroke: var(--brass-2); }
.ic path, .ic circle { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.5s var(--ease-out), fill-opacity .6s ease .9s; }
.ic .ic-accent { fill-opacity: 0; }
.ic.draw path, .ic.draw circle { stroke-dashoffset: 0; }
.ic.draw .ic-accent { fill-opacity: 1; }
.ic.draw path:nth-child(2), .ic.draw circle:nth-child(2) { transition-delay: .15s, .9s; }
.ic.draw path:nth-child(3) { transition-delay: .3s, .9s; }
.sit-ic {
  position: absolute; top: 14px; left: 16px; z-index: 1; width: 46px; height: 46px; padding: 8px; border-radius: 50%;
  color: #fff; background: rgba(11,26,22,.42); border: 1px solid rgba(231,238,234,.22); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.is-main .sit-ic { top: 22px; left: 24px; width: 54px; height: 54px; }
.treat-card .sit-ic { top: 1.4rem; left: 1.4rem; }

/* ---------- treatment finder ---------- */
.sits-side { display: grid; gap: 1rem; justify-items: start; max-width: 44ch; }
.quiz-open {
  display: inline-flex; align-items: center; gap: .65rem; min-height: 48px; padding: .45rem 1.1rem .45rem .5rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white); color: var(--ink); font: inherit; font-weight: 600; font-size: .95rem; text-align: left; cursor: pointer;
  box-shadow: 0 10px 24px -18px rgba(11,26,22,.5); transition: border-color .25s, transform .3s var(--ease-out);
}
.quiz-open:hover { border-color: var(--spruce); transform: translateY(-1px); }
.quiz-open svg { width: 15px; height: 15px; flex: none; color: var(--spruce); }
.quiz-open-ic { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--spruce); color: var(--brass-2); font-family: var(--display); font-size: 1.15rem; }
.quiz {
  width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 26px; overflow: auto;
  background: var(--paper); color: var(--ink); box-shadow: 0 40px 90px -30px rgba(0,0,0,.6);
}
.quiz::backdrop { background: rgba(6,14,12,.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.quiz[open] { animation: quiz-in .5s var(--ease-out); }
@keyframes quiz-in { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.quiz-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1.5rem 1.5rem .9rem; }
.quiz-top h2 { font-size: 1.5rem; }
.quiz-step { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-ink); font-weight: 600; margin-bottom: .3rem; }
.quiz-x { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.quiz-x svg { width: 12px; height: 12px; }
.quiz-bar { height: 3px; margin: 0 1.5rem; background: var(--line); border-radius: 3px; overflow: hidden; }
.quiz-bar span { display: block; height: 100%; width: var(--qp, 0%); background: var(--brass); transition: width .5s var(--ease-out); }
.quiz-body { padding: 1.4rem 1.5rem 1.6rem; }
.quiz-pane { animation: pane-in .45s var(--ease-out); }
@keyframes pane-in { from { opacity: 0; transform: translateX(22px); } }
.quiz-q { font-family: var(--display); font-size: 1.35rem; line-height: 1.25; margin-bottom: 1rem; }
.quiz-opts { display: grid; gap: .6rem; }
.quiz-opt {
  display: flex; align-items: center; gap: .8rem; width: 100%; min-height: 56px; padding: .7rem 1rem; border-radius: 16px; border: 1px solid var(--line);
  background: var(--white); color: var(--ink); font: inherit; font-size: 1rem; text-align: left; cursor: pointer; transition: border-color .2s, background-color .2s, transform .25s var(--ease-out);
}
.quiz-opt:hover, .quiz-opt:focus-visible { border-color: var(--spruce); background: #eef3f0; }
.quiz-opt:active { transform: scale(.985); }
.quiz-opt b { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); font-size: .8rem; color: var(--ink-2); }
.quiz-foot { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.1rem; }
.quiz-link { background: none; border: 0; padding: .4rem 0; font: inherit; font-size: .92rem; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.quiz-result { display: grid; gap: 1rem; }
.quiz-result .k { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-ink); font-weight: 600; }
.quiz-card { display: flex; gap: 1rem; align-items: center; padding: 1rem; border-radius: 18px; background: var(--night); color: var(--on-night); }
.quiz-card .sit-ic { position: static; flex: none; }
.quiz-card h3 { font-size: 1.3rem; color: var(--white); }
.quiz-card p { font-size: .92rem; color: var(--on-night-2); margin-top: .2rem; }
.quiz-result .urgent { margin: 0; }
.quiz-actions { display: grid; gap: .6rem; }
.quiz-actions .btn { justify-content: space-between; }

/* ---------- walking routes on the map ---------- */
.m-way { transition: opacity .5s ease; }
.m-way.is-off { opacity: 0; }
.m-walker { fill: var(--brass); stroke: #fff; stroke-width: 2.2; filter: drop-shadow(0 2px 3px rgba(11,26,22,.35)); }
.map-walk { position: absolute; top: 14px; right: 14px; z-index: 2; display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: rgba(251,252,250,.94); border: 1px solid var(--line); box-shadow: 0 10px 24px -16px rgba(11,26,22,.5); }
.map-walk button { border: 0; background: none; font: inherit; font-size: .82rem; font-weight: 600; color: var(--ink-2); padding: .45rem .8rem; border-radius: 999px; cursor: pointer; min-height: 36px; transition: background-color .25s, color .25s; }
.map-walk button[aria-pressed="true"] { background: var(--spruce); color: #fff; }
.map-walk-note { position: absolute; top: 62px; right: 14px; z-index: 2; max-width: min(300px, calc(100% - 28px)); font-size: .8rem; color: var(--ink); background: rgba(251,252,250,.94); padding: .35rem .75rem; border-radius: 12px; border: 1px solid var(--line); }

/* ---------- elevator doors when the booking request is sent ---------- */
.form-card { position: relative; overflow: hidden; }

@media (max-width: 680px) {
  .nav-floor { height: 38px; padding: 0 .6rem 0 .35rem; }
  .nav-floor .reels { font-size: 1.05rem; }
  .map-walk { top: 10px; right: 10px; left: 10px; justify-content: center; }
  .map-walk button { flex: 1; }
  .map-walk-note { top: 58px; left: 10px; right: 10px; max-width: none; text-align: center; }
  .sits-side { max-width: none; }
  .quiz { border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .ic path, .ic circle { stroke-dashoffset: 0; } .ic .ic-accent { fill-opacity: 1; }
  .m-walker { display: none; }
}
@media (max-width: 400px) {
  .nav-floor { padding: 0 .65rem; margin-right: 0; }
  .nav-floor-arrow { display: none; }
}

/* =====================================================================
   The hero: 275 Madison Avenue, drawn
   ===================================================================== */
/* the building: stacked layers, each drifting at its own depth */
.tower-col { position: relative; justify-self: end; width: 100%; max-width: 470px; margin: 0; }
.tower-stage {
  position: relative; --px: 0; --py: 0; --sp: 0;
  transform: translate3d(0, calc(var(--sp) * -24px), 0) rotateY(calc(var(--ry, 0) * 1deg)) rotateX(calc(var(--rx, 0) * 1deg)) scale(calc(1 + var(--sp) * .1));
  transform-origin: 34% 60%;
}
/* the tower can be dragged to turn it */
.tower-col { perspective: 1300px; touch-action: pan-y; cursor: grab; -webkit-user-select: none; user-select: none; }
.tower-col.dragging { cursor: grabbing; }
.tower-col .tower-base { cursor: inherit; }
/* the 18th floor is a link to the booking form */
.tower-live .tw-book { pointer-events: auto; cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; }
.tw-book-hit { fill: transparent; pointer-events: all; }
.tw-t-book { font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: .02em; fill: var(--brass-2); opacity: 0; transition: opacity .6s ease .5s; }
.arrived .tw-t-book { opacity: 1; animation: book-nudge 2.6s ease-in-out 1.4s infinite; }
@keyframes book-nudge { 50% { opacity: .55; } }
.arrived .tw-band { animation: f18-glow 2.6s ease-in-out 1.4s infinite; }
@keyframes f18-glow { 50% { fill: var(--brass-2); } }
.tower-live:has(.tw-book:hover) .tw-band, .booking .tw-band { fill: var(--lit); animation: none; }
.tower-live:has(.tw-book:hover) .tw-t-floor { fill: var(--brass-2); }
.booking .tw-halo, .booking .tower-base ellipse { opacity: 1 !important; }
.tw-layer { position: absolute; inset: 0; pointer-events: none; transform: translate3d(calc(var(--px) * var(--depth) * 1px), calc(var(--py) * var(--depth) * .7px), 0); }
.tw-bldg { position: relative; inset: auto; pointer-events: auto; --depth: 6; }
.tw-sky { --depth: -10; inset: -14% -24% 30% -34%; }
.tw-mist-back { --depth: 3; }
.tw-mist-front { --depth: 18; }
.tw-front { --depth: 14; }
.tw-front > * { pointer-events: auto; }
.tower { display: block; width: 100%; height: auto; overflow: visible; }
.tower-base { cursor: pointer; }
.tower-live { position: absolute; inset: 0; pointer-events: none; }
.stars { position: absolute; inset: 0; background-repeat: no-repeat; animation: twinkle-a 4.6s ease-in-out infinite alternate; }
.stars.s1 { background-image:
  radial-gradient(circle at 8% 22%, rgba(255,255,255,.9) 0 1px, transparent 1.6px), radial-gradient(circle at 19% 9%, rgba(255,255,255,.7) 0 .8px, transparent 1.4px),
  radial-gradient(circle at 31% 30%, rgba(243,223,174,.9) 0 1px, transparent 1.6px), radial-gradient(circle at 46% 6%, rgba(255,255,255,.8) 0 1.1px, transparent 1.7px),
  radial-gradient(circle at 63% 18%, rgba(255,255,255,.7) 0 .8px, transparent 1.4px), radial-gradient(circle at 78% 4%, rgba(255,255,255,.9) 0 1px, transparent 1.6px),
  radial-gradient(circle at 88% 27%, rgba(243,223,174,.8) 0 1px, transparent 1.6px), radial-gradient(circle at 96% 12%, rgba(255,255,255,.6) 0 .8px, transparent 1.4px),
  radial-gradient(circle at 54% 40%, rgba(255,255,255,.5) 0 .8px, transparent 1.4px), radial-gradient(circle at 14% 48%, rgba(255,255,255,.5) 0 .8px, transparent 1.4px); }
.stars.s2 { animation-name: twinkle-b; animation-duration: 6.4s; background-image:
  radial-gradient(circle at 4% 8%, rgba(255,255,255,.8) 0 .9px, transparent 1.5px), radial-gradient(circle at 24% 41%, rgba(255,255,255,.6) 0 .8px, transparent 1.4px),
  radial-gradient(circle at 39% 15%, rgba(255,255,255,.9) 0 1.2px, transparent 1.8px), radial-gradient(circle at 57% 27%, rgba(243,223,174,.8) 0 .9px, transparent 1.5px),
  radial-gradient(circle at 70% 9%, rgba(255,255,255,.6) 0 .8px, transparent 1.4px), radial-gradient(circle at 84% 36%, rgba(255,255,255,.7) 0 1px, transparent 1.6px),
  radial-gradient(circle at 92% 20%, rgba(255,255,255,.8) 0 .8px, transparent 1.4px), radial-gradient(circle at 66% 46%, rgba(255,255,255,.4) 0 .8px, transparent 1.4px); }
@keyframes twinkle-a { from { opacity: .25; } to { opacity: .85; } }
@keyframes twinkle-b { from { opacity: .8; } to { opacity: .2; } }

.tw-mist { overflow: hidden; inset: 0 -12%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent); mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent); }
.mist { position: absolute; left: 0; width: 72%; height: 15%; border-radius: 50%; background: radial-gradient(closest-side, rgba(231,238,234,.14), rgba(231,238,234,0)); animation: drift 50s linear infinite; }
.mist.m1 { top: 15%; animation-duration: 56s; animation-delay: -14s; }
.mist.m2 { top: 42%; height: 11%; opacity: .8; animation-duration: 41s; animation-delay: -31s; }
.mist.m3 { top: 27%; width: 64%; height: 10%; opacity: .5; animation-duration: 68s; animation-delay: -22s; }
@keyframes drift { from { transform: translate3d(-80%, 0, 0); } to { transform: translate3d(150%, 0, 0); } }

.tw-ledge { fill: #8fa39a; }
.tw-crown { fill: #c4d0ca; }
.tw-win { fill: #183029; }
.tw-sill { stroke: rgba(231,238,234,.5); stroke-width: 1; fill: none; }
.tw-granite { fill: #1c332c; stroke: #2b463d; stroke-width: 1; }
.tw-opening { fill: #0b1a16; }
.tw-ground { stroke: rgba(231,238,234,.25); stroke-width: 1; }
.tw-lit-win { fill: var(--lit); transition: opacity 1.6s ease; }
.tw-shaft { stroke: rgba(217,189,134,.22); stroke-width: 1.2; stroke-dasharray: 2 4; fill: none; }
.tw-trail { stroke: var(--brass-2); stroke-width: 2.2; fill: none; stroke-linecap: round; }
.tw-car, .tw-car2 { fill: var(--lit); }
.tw-car2-glow { opacity: .55; }
.tw-sheen { opacity: .9; animation: sheen 11s cubic-bezier(.45, .05, .3, 1) 2s infinite; }
@keyframes sheen { 0% { transform: translate3d(-180px, 0, 0); } 26%, 100% { transform: translate3d(560px, 0, 0); } }
.tw-beacon, .tw-beacon-glow { animation: beacon 2.6s steps(1, end) infinite; }
@keyframes beacon { 0% { opacity: 1; } 16% { opacity: 0; } }
.tw-band { fill: var(--brass); opacity: 0; transition: opacity .6s ease; }
.tw-f18 { fill: var(--lit); opacity: 0; transition: opacity .45s ease; }
.tw-lead { stroke: var(--brass-2); stroke-width: 1.4; fill: none; stroke-dasharray: 60; stroke-dashoffset: 60; transition: stroke-dashoffset .7s var(--ease-out); }
.tw-label { opacity: 0; transform: translateX(-6px); transition: opacity .6s ease, transform .7s var(--ease-out); transform-box: fill-box; }
.tw-t-floor { font-family: var(--sans); font-size: 25px; font-weight: 600; letter-spacing: -0.02em; fill: var(--white); }
.tw-t-suite { font-family: var(--display); font-size: 17px; fill: var(--brass-2); }
.tw-t-street { font-family: var(--sans); font-size: 12px; fill: var(--on-night-2); letter-spacing: .04em; }
.tw-ring { fill: none; stroke: var(--brass-2); stroke-width: 1.4; opacity: 0; }
.arrived .tw-band { opacity: 1; }
.arrived .tw-lead { stroke-dashoffset: 0; }
.arrived .tw-label { opacity: 1; transform: none; }
.arrived .tw-ring { animation: ring 2.4s ease-out .3s 2; }
.arrived .tw-car-glow { animation: breathe 3.4s ease-in-out 1s infinite; }
@keyframes ring { 0% { opacity: .9; r: 4; } 100% { opacity: 0; r: 40; } }
@keyframes breathe { 50% { opacity: .35; } }
.is-idle .stars, .is-idle .mist, .is-idle .tw-sheen, .is-idle .tw-beacon, .is-idle .tw-beacon-glow, .is-idle .tw-car-glow { animation-play-state: paused; }

.sky-day .stars { display: none; }
.sky-dusk .stars.s1 { opacity: .35; }
.sky-day .tw-mist .mist { opacity: .5; }

/* the glass elevator: a brass car rides up a glass shaft, lights the offices it passes,
   and opens on the 18th floor, its light spilling along the floor */
.tw-glass { opacity: .94; }
.tw-glass-floors { stroke: rgba(217,189,134,.24); stroke-width: .7; fill: none; }
.tw-rail { stroke: rgba(217,189,134,.6); stroke-width: 1; fill: none; }
.tw-pass { fill: var(--lit); transition: opacity 1.4s ease; }
.riding .tw-pass { transition: none; }
.tw-cab-in { fill: #fff6df; }
.tw-cab-door { fill: var(--brass-2); stroke: rgba(140,106,46,.85); stroke-width: .5; transform-box: fill-box; transition: transform .8s var(--ease-out) .1s; }
.tw-cab-l { transform-origin: 0 50%; } .tw-cab-r { transform-origin: 100% 50%; }
.tw-cab-frame { fill: none; stroke: var(--lit); stroke-width: 1; }
.arrived .tw-cab-door { transform: scaleX(.14); }
.tw-spill { opacity: 0; transform-box: fill-box; transform: scaleX(0); transition: transform 1s var(--ease-out) .3s, opacity .5s ease .3s; }
.tw-spill-l { transform-origin: 100% 50%; } .tw-spill-r { transform-origin: 0 50%; }
.arrived .tw-spill { opacity: .8; transform: none; }
.booking .tw-spill { opacity: 1; }
.tw-grip { position: absolute; z-index: 2; left: 27.3%; width: 13.6%; top: 7.5%; height: 88.4%; touch-action: none; cursor: grab; }
.holding .tw-grip { cursor: grabbing; }
.tw-hint {
  position: absolute; left: 34.1%; bottom: -1%; transform: translateX(-50%); white-space: nowrap; pointer-events: none;
  font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--on-night);
  padding: .3rem .75rem; border-radius: 99px; background: rgba(11,26,22,.72); border: 1px solid rgba(217,189,134,.35);
  opacity: 0; transition: opacity .6s ease;
}
.arrived .tw-hint { opacity: 1; transition-delay: 1.8s; }
.has-held .tw-hint, .holding .tw-hint { opacity: 0; transition-delay: 0s; }

@media (max-width: 980px) {
  .tower-col { justify-self: center; max-width: 420px; margin-top: 1rem; }
}
@media (max-width: 680px) {
  .tower-col {
    order: -1; flex: 1 1 auto; min-height: 250px; position: relative; z-index: 0;
    width: auto; max-width: none; justify-self: auto; margin: 0 0 1.4rem;
  }
  /* site.js measures the space (--bw, --bh) so the whole drawing fits it */
  .tower-stage {
    --tw: min(var(--bw, 100vw), var(--bh, 50vh) * .698);
    position: absolute; top: 0; width: var(--tw); left: calc(50% - var(--tw) * .5);
    transform: translate3d(0, calc(var(--sp) * 60px), 0) rotateY(calc(var(--ry, 0) * 1deg)) rotateX(calc(var(--rx, 0) * 1deg)) scale(calc(1 + var(--sp) * .08));
  }
  .tw-sky { inset: -10% -30% 20% -30%; }
  .floor-chip { top: 6%; left: auto; right: 0; font-size: .7rem; }
  .tw-t-floor { font-size: 34px; } .tw-t-suite { font-size: 23px; } .tw-t-book { font-size: 19px; }
  .tower-foot { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tower-stage, .tw-layer { transform: none !important; }
  .stars, .mist, .tw-sheen, .tw-beacon, .tw-beacon-glow { animation: none !important; }
}

/* inner pages: a photo for each page, faded into the night behind the title */
.bldg-photo {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(46vw, 640px); z-index: -1; pointer-events: none; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%); mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
}
.bldg-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,26,22,.2) 0%, rgba(11,26,22,0) 40%, var(--night) 100%); }
.bldg-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; filter: saturate(.95) brightness(.88) contrast(1.04); transform: scale(1.14); transition: transform 2.6s var(--ease-out); }
.bldg-photo.mv-in img { transform: scale(1.02); }
@media (max-width: 680px) { .bldg-photo { width: 100%; opacity: .32; } }

/* =====================================================================
   Booking: the elevator panel
   ===================================================================== */
.lift-form { padding: 0; border-color: rgba(169,130,63,.5); box-shadow: 0 0 0 6px var(--white), 0 0 0 7px rgba(169,130,63,.32), 0 40px 80px -50px rgba(21,35,30,.65); }
.form-body { padding: clamp(1.4rem, 3.4vw, 2.6rem); }
.panel-head { position: relative; padding: 16px 18px 14px; background: #121110 url(../img/ascensor/placa.webp) 50% 30% / cover; border-bottom: 1px solid rgba(169,130,63,.7); text-align: center; }
.dial { position: relative; max-width: 330px; margin: 0 auto; }
.dial img { display: block; width: 100%; height: auto; border-radius: 8px; box-shadow: 0 8px 22px -10px rgba(0,0,0,.8); }
.dial-needle {
  position: absolute; left: 50%; bottom: 10.5%; width: 4px; height: 36%; margin-left: -2px; border-radius: 3px 3px 1px 1px;
  background: linear-gradient(90deg, #3a2810, #9a7230 50%, #3a2810); box-shadow: 0 1px 3px rgba(0,0,0,.6);
  transform-origin: 50% 100%; transform: rotate(var(--needle, -78deg)); transition: transform 1s cubic-bezier(.34, 1.45, .5, 1);
}
.dial-needle::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #f6e7c2, #8a6a33); }
.dial-floor {
  display: inline-flex; margin-top: 10px; padding: .25rem .7rem; border-radius: 6px; background: #050807; border: 1px solid #3b3220;
  color: var(--lit); font-size: 1.35rem; text-shadow: 0 0 10px rgba(243,223,174,.85);
}
.dial-floor::before { content: "▲"; font-size: .6rem; align-self: center; margin-right: .4rem; color: var(--lit); }
/* brass buttons: the letter of each reason lights up like an elevator button */
.lift-form .option > span::before {
  background: radial-gradient(circle at 50% 30%, #f6e7c2, #c9a35e 55%, #8a6a33); border-color: #7a5c2a; color: #3a2a10;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 2px 4px rgba(0,0,0,.22); transition: box-shadow .3s ease, background .3s ease;
}
.lift-form .option input:checked + span { border-color: var(--brass); background: #fbf6ea; color: var(--ink); }
.lift-form .option input:checked + span::before { background: radial-gradient(circle at 50% 40%, #fffaf0, var(--lit) 45%, #e3c27e); border-color: #c9a35e; color: var(--night); box-shadow: 0 0 0 3px rgba(243,223,174,.5), 0 0 18px rgba(233,196,120,.95); }
.lift-form .choice input:checked + span { border-color: var(--brass); background: #fbf6ea; color: var(--ink); }
.lift-form .input:focus { border-color: var(--brass); box-shadow: 0 0 0 4px rgba(169,130,63,.2); }
.bk-q { font-family: var(--display); font-size: clamp(1.35rem, 1.1rem + .8vw, 1.75rem); line-height: 1.2; margin-bottom: 1.1rem; }
.bk-step + .bk-step { margin-top: 2rem; }
.is-stepped .bk-step + .bk-step { margin-top: 0; }
.is-stepped .bk-step:not(.is-on) { display: none; }
.is-stepped .bk-step.is-on { animation: floor-up .6s var(--ease-out); }
.is-stepped .bk-step.is-on.from-down { animation-name: floor-down; }
@keyframes floor-up { from { opacity: 0; transform: translateY(32px); } }
@keyframes floor-down { from { opacity: 0; transform: translateY(-32px); } }
.bk-nav { display: flex; gap: .7rem; margin-top: 1.7rem; }
.bk-nav .btn { flex: 1 1 auto; }
.form-card .bk-back { flex: 0 0 auto; width: auto; min-height: 58px; }
.form-card:not(.is-stepped) .bk-back, .form-card:not(.is-stepped) .bk-next { display: none; }
form[data-step="1"] .bk-back, form[data-step="3"] .bk-next, form[data-step="1"] .bk-send, form[data-step="2"] .bk-send { display: none; }

/* doors: brass, closing over the request and opening on the pass */
.doors { position: absolute; inset: 0; z-index: 6; pointer-events: none; visibility: hidden; }
.door { position: absolute; top: 0; bottom: 0; width: 50.4%; background-size: cover; background-repeat: no-repeat; box-shadow: inset 0 0 50px rgba(0,0,0,.35); }
.door-l { left: 0; background-image: url(../img/ascensor/puerta-izq.webp); background-position: 100% 50%; transform: translateX(-101%); }
.door-r { right: 0; background-image: url(../img/ascensor/puerta-der.webp); background-position: 0 50%; transform: translateX(101%); }
.door-l::after, .door-r::after { content: ""; position: absolute; top: 0; bottom: 0; width: 2px; background: linear-gradient(transparent, rgba(255,240,205,.9), transparent); }
.door-l::after { right: 0; } .door-r::after { left: 0; }
.doors-ind {
  position: absolute; left: 50%; top: 14%; z-index: 1; display: grid; justify-items: center; gap: .15rem; text-align: center; padding: .7rem 1.2rem;
  border-radius: 14px; background: rgba(5,8,7,.88); border: 1px solid #5a4724; color: var(--brass-2); opacity: 0; transform: translateX(-50%);
}
.doors-ind b { font-family: var(--display); font-weight: 400; font-size: 3.2rem; line-height: 1; color: var(--lit); text-shadow: 0 0 24px rgba(243,223,174,.75); }
.doors-ind small { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; }
.doors-up { font-size: .8rem; }
.doors.run { visibility: visible; }
.doors.run .door-l { animation: door-l 2.2s cubic-bezier(.7, 0, .3, 1) forwards; }
.doors.run .door-r { animation: door-r 2.2s cubic-bezier(.7, 0, .3, 1) forwards; }
.doors.run .doors-ind { animation: doors-ind 2.2s ease forwards; }
@keyframes door-l { 0% { transform: translateX(-101%); } 23%, 58% { transform: none; } 100% { transform: translateX(-101%); } }
@keyframes door-r { 0% { transform: translateX(101%); } 23%, 58% { transform: none; } 100% { transform: translateX(101%); } }
@keyframes doors-ind { 0%, 22% { opacity: 0; transform: translate(-50%, 10px); } 30%, 54% { opacity: 1; transform: translate(-50%, 0); } 62%, 100% { opacity: 0; transform: translate(-50%, 0); } }
.confetti { position: absolute; left: 0; top: 0; width: 100%; z-index: 7; pointer-events: none; }

/* the pass to the 18th floor */
.pass { position: relative; margin-top: 1.6rem; perspective: 900px; outline: none; --tx: 0; --ty: 0; -webkit-tap-highlight-color: transparent; }
.pass:focus-visible .pass-in { outline: 3px solid var(--brass); outline-offset: 4px; }
.pass-in {
  position: relative; overflow: hidden; border-radius: 22px; padding: 1.4rem 1.4rem 1.2rem; color: var(--night);
  background: linear-gradient(125deg, #f7ead0 0%, #e8cf95 26%, #fff4dc 42%, #dbe8e1 50%, #e9cd8f 64%, #f6e3b4 100%);
  background-size: 180% 180%; background-position: calc(50% + var(--tx) * 40%) calc(50% + var(--ty) * 40%);
  transform: rotateY(calc(var(--tx) * 10deg)) rotateX(calc(var(--ty) * -8deg));
  transition: transform .45s var(--ease-out), background-position .45s var(--ease-out);
  box-shadow: 0 34px 60px -30px rgba(169,130,63,.75), inset 0 0 0 1px rgba(255,255,255,.75);
  animation: pass-in .9s var(--ease-out) both;
}
@keyframes pass-in { from { opacity: 0; transform: translateY(26px) rotateX(18deg) scale(.96); } }
.pass-shine {
  position: absolute; inset: -30%; pointer-events: none; mix-blend-mode: overlay;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.9) 50%, transparent 62%);
  translate: calc(var(--tx) * 25%) 0; animation: pass-sheen 4s ease-in-out 1.2s infinite;
}
@keyframes pass-sheen { 0% { transform: translateX(-70%); } 45%, 100% { transform: translateX(70%); } }
.pass-top { display: grid; gap: .2rem; }
.pass-brand { font-family: var(--display); font-size: 1.02rem; white-space: nowrap; }
.pass-k { order: -1; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: #6b5527; }
.form-card:has(.done:not([hidden])) .form-step, .form-card:has(.done:not([hidden])) .preview-tag { display: none; }
.pass-floor { display: flex; align-items: center; gap: 1rem; margin: .9rem 0 .7rem; }
.pass-floor b { font-family: var(--display); font-weight: 400; font-size: 3.8rem; line-height: .9; letter-spacing: -.02em; }
.pass-floor span { font-size: .86rem; font-weight: 600; line-height: 1.35; color: #4a3a18; }
.pass-status { display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 600; background: rgba(11,26,22,.08); padding: .3rem .75rem; border-radius: 999px; }
.pass-status::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #c9902e; box-shadow: 0 0 0 3px rgba(201,144,46,.25); animation: status-pulse 1.6s ease-in-out infinite; }
@keyframes status-pulse { 50% { box-shadow: 0 0 0 6px rgba(201,144,46,.08); } }
.done .pass dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 1rem; margin: 1.1rem 0 0; border: 0; }
.done .pass dl div { display: block; border: 0; padding: 0; }
.done .pass dt { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: #6b5527; font-weight: 700; }
.done .pass dd { margin: .1rem 0 0; font-weight: 600; font-size: .92rem; color: var(--night); }
.pass-cut { position: relative; margin: 1.1rem -1.4rem .8rem; border-top: 1.5px dashed rgba(11,26,22,.3); }
.pass-cut::before, .pass-cut::after { content: ""; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); }
.pass-cut::before { left: -10px; } .pass-cut::after { right: -10px; }
.pass-foot { font-size: .82rem; color: #4a3a18; }
.pass-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.3rem; }
.pass-actions .btn { flex: 1 1 auto; }
.done .done-again { margin-top: 1rem; width: 100%; }

/* =====================================================================
   Motion details: masks, light and a little gravity
   ===================================================================== */
.hero-name.words .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .1em; margin-bottom: -.1em; }
.hero-name.words .w > span { display: inline-block; transform: translateY(108%); animation: word-up 1.05s var(--ease-out) forwards; animation-delay: calc(.2s + var(--wi) * .1s); }
@keyframes word-up { to { transform: none; } }
.js h2.mv { clip-path: inset(0 0 100% 0); transform: translateY(.35em); transition: clip-path 1.1s var(--ease-out), transform 1.1s var(--ease-out); }
.js h2.mv.mv-in { clip-path: inset(-12% -4% -18% -4%); transform: none; }
.js .sit-photo.mv, .js .treat-photo.mv, .js .portrait.mv { clip-path: inset(0 50% 0 50%); transition: clip-path 1.2s cubic-bezier(.75, 0, .2, 1) .1s; }
.js .sit-photo.mv.mv-in, .js .treat-photo.mv.mv-in, .js .portrait.mv.mv-in { clip-path: inset(0 0 0 0); }
.js .eyebrow.mv::before { width: 0; transition: width .9s var(--ease-out) .15s; }
.js .eyebrow.mv.mv-in::before { width: 22px; }
.card-glow {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1; opacity: 0; transition: opacity .45s ease;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(217,189,134,.2), transparent 46%);
}
.lit-card:hover > .card-glow { opacity: 1; }
.side-card.lit-card, .ins-card.lit-card { position: relative; }
.lit-card:not(.sit-card) { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease-out), box-shadow .3s ease; }
.steps li.lit-card:hover { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-3px); }
.magnet { translate: var(--gx, 0) var(--gy, 0); transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s var(--ease), box-shadow .2s ease, translate .4s var(--ease-out); }
.btn-gold, .btn-spruce { position: relative; overflow: hidden; isolation: isolate; }
.btn-gold::after, .btn-spruce::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%);
}
.btn-gold:hover::after, .btn-spruce:hover::after { transform: translateX(120%); transition: transform .9s var(--ease-out); }
.btn:active { transform: translateY(0) scale(.97); }
.site-nav a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--ease-out), color .2s; }
.site-nav a:hover { background-size: 100% 1px; }
.shaft-line { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 80; pointer-events: none; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--brass), var(--lit)); box-shadow: 0 0 10px rgba(243,223,174,.6); }

/* page changes: the new page opens like elevator doors over the old one */
::view-transition-old(root) { animation: vt-old .6s cubic-bezier(.7, 0, .3, 1) both; }
::view-transition-new(root) { animation: vt-doors .8s cubic-bezier(.75, 0, .2, 1) both; }
@keyframes vt-old { to { transform: scale(.94); filter: brightness(.45); } }
@keyframes vt-doors { from { clip-path: inset(0 50% 0 50%); } to { clip-path: inset(0 0 0 0); } }

@media (prefers-reduced-motion: reduce) {
  .hero-name.words .w > span { transform: none; animation: none; }
  .js h2.mv, .js .sit-photo.mv, .js .treat-photo.mv, .js .portrait.mv { clip-path: none; transform: none; }
  .pass-in { transform: none; animation: none; } .pass-shine { animation: none; }
  .lit-card:not(.sit-card) { transform: none; }
  .magnet { translate: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
