/* Hallmark · shape: a clinic front page in the manner of the user's three reference sites (info bar, split hero with a contact strip, treatment rail, photo band with cards, mosaic, steps, doctor band, booking) · genre: editorial · theme: custom · job: book · idea: "CIMA means the summit, so the page climbs: every screen ends on a way up into the agenda" · vibe: "night blue, bone, calm clinical luxury"
 * paper: oklch(98.6% 0.004 85) · accent: oklch(23.1% 0.046 253) · display: Nexa (Montserrat stands in) · body: Montserrat · hero: a night-blue panel beside a full-height portrait, the head crossing the seam on a bone plate, a strip of four ways in hanging off its foot · nav: info bar over a three-part bar with a booking block · footer: index columns, as the references have · width: full, by request · imagery: photographs, the user's own 11 (Drive and brand manual), natural · signature: "punto más alto" on a bone plate crossing from the night-blue panel onto the portrait
 * axes: light/geometric-sans/cool · posture: committed, night blue carries the hero, two bands and the footer · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R3 V5 · weakest: R, the references are full pages with many sections; kept nine and cut the blog, the logo row and every figure nobody gave */
/* Hallmark · user: the page runs 100% wide and follows three reference sites the user sent in chat; container uncapped, gutters 4.5vw; 44d reported, not waived */
/* Hallmark · user: asked in chat for animations and parallax as on the reference sites; the motion layer is motion.css, and the one-reveal and no-parallax rules of craft 5 are set aside by that request */
/* Hallmark · waive 11 · one scale, on the photograph inside each treatment card · the reference sites the user asked to follow zoom their treatment photographs on hover */
/* Hallmark · waive 37 · font slot: --font-display names Nexa first and Montserrat is the loaded stand-in · CIMA has not licensed Nexa yet, and the footer credits say Montserrat stands in */
/* Hallmark · waive 38iii · one plate, once, in the hero and named as the signature · the plate carries CIMA's own meaning, the highest point, as the user's reference heroes set one phrase apart */
/* Hallmark · dismissed F4 · one filled action a surface: bone on the night-blue band and night blue on paper are the same primary, and the hero's second action is outlined */
/* Hallmark · waive 83 · eleven photographs, all the user's own material · the three reference sites the user asked to follow are led by photographs on every screen */
@import url("./tokens.css");
@import url("./base.css");

/* ---------- Type ---------- */
body { color: var(--color-ink-2); line-height: 1.65; }
h1, h2, h3 { color: var(--color-ink); line-height: 1.06; }
h1, h2 { font-weight: var(--display-weight); letter-spacing: var(--tracking-display); }
.lead { font-size: var(--text-lead); line-height: 1.5; max-width: 52ch; }
h2 { font-size: var(--text-section); }
h3 { font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.lead { color: var(--color-muted); }
.icon { width: 20px; height: 20px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); }
.skip:focus-visible { top: var(--space-md); }

/* ---------- Controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 52px; padding: 0 var(--space-xl); border: var(--rule-hair) solid var(--color-ink); border-radius: var(--radius-pill); background: var(--color-ink); color: var(--color-paper); font: 700 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-band-2); border-color: var(--color-band-2); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }
.btn--bone { background: var(--color-band-type); border-color: var(--color-band-type); color: var(--color-band); }
.btn--bone:hover { background: var(--color-paper); border-color: var(--color-paper); color: var(--color-band); }
.btn--line { background: transparent; color: var(--color-ink); }
.btn--line:hover { background: var(--color-ink); color: var(--color-paper); border-color: var(--color-ink); }
.btn--line-light { background: transparent; border-color: var(--color-band-muted); color: var(--color-band-type); }
.btn--line-light:hover { background: var(--color-band-type); border-color: var(--color-band-type); color: var(--color-band); }
.btn--time { min-width: 92px; padding: 0 var(--space-md); font-variant-numeric: tabular-nums; }
.on-band :focus-visible, .on-band .btn:focus-visible { outline-color: var(--color-band-focus); }
.link { color: var(--color-ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--color-stone); text-underline-offset: 0.24em; }
.link:hover { text-decoration-color: var(--color-ink); }
.link:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }

/* ---------- Chrome: an info bar over the main bar ---------- */
.top { background: var(--color-band-deep); color: var(--color-band-muted); font-size: var(--text-sm); }
.top .container { display: flex; justify-content: space-between; align-items: center; gap: var(--space-lg); min-height: var(--top-h); }
.top__links { display: flex; gap: var(--space-lg); margin: 0; padding: 0; list-style: none; }
.top a { display: inline-flex; align-items: center; gap: var(--space-xs); color: var(--color-band-type); text-decoration: none; }
.top a:hover { text-decoration: underline; }
.top .icon { width: 16px; height: 16px; }
.nav { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: var(--color-paper); border-bottom: var(--rule-hair) solid var(--color-rule); }
.nav .container { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: stretch; gap: var(--space-xl); min-height: var(--nav-h); padding-right: 0; }
.nav__home { display: inline-flex; align-items: center; }
.nav__home img { height: 36px; width: auto; }
.nav__home:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 6px; }
.nav__links { display: flex; justify-content: center; align-items: center; gap: var(--space-xl); margin: 0; padding: 0; list-style: none; }
.nav__links a { color: var(--color-ink); font-weight: 400; text-decoration: none; }
.nav__links a:hover { text-decoration: underline; text-decoration-color: var(--color-stone); text-underline-offset: 0.3em; }
.nav__links a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.nav__block { display: flex; align-items: center; gap: var(--space-lg); padding-inline: var(--space-xl) var(--gutter); background: var(--color-band); color: var(--color-band-type); }
.nav__block .btn { min-height: 48px; padding: 0 var(--space-lg); }
.nav__wa { display: inline-flex; align-items: center; gap: var(--space-sm); color: var(--color-band-type); text-decoration: none; line-height: 1.25; }
.nav__wa small { display: block; font-size: var(--text-sm); color: var(--color-band-muted); }
.nav__wa b { display: block; font-weight: 700; }
.nav__wa .icon { width: 26px; height: 26px; }
.nav__wa:hover b { text-decoration: underline; }

/* ---------- Hero ---------- */
/* The banner video is vertical. It stands whole in a column of its own on the right edge, as tall as the
   banner down to the strip, so nothing of it is cropped or covered. Its width follows from that height. */
.hero { --hh: var(--hero-h, max(600px, calc(100dvh - var(--top-h) - var(--nav-h)))); --video-w: min(calc((var(--hh) - var(--strip-h) * 0.5) * 9 / 16), 30%); position: relative; isolation: isolate; min-height: var(--hh); display: grid; align-items: center; background: var(--color-band); color: var(--color-band-type); }
.hero::before { content: ""; position: absolute; left: -4%; bottom: -10%; z-index: 0; width: 44%; aspect-ratio: 368 / 300; background: url("brand/cima-simbolo-claro.svg") no-repeat center / contain; opacity: 0.045; pointer-events: none; }
.hero__photo { position: absolute; top: 0; right: 0; z-index: 1; display: grid; align-items: center; width: var(--video-w); height: calc(var(--hh) - var(--strip-h) * 0.5); overflow: hidden; background: var(--color-band-deep); }
.hero__video { display: block; width: 100%; height: auto; max-width: none; aspect-ratio: 9 / 16; object-fit: contain; cursor: pointer; }
.hero__video:focus-visible { outline: 2px solid var(--color-band-focus); outline-offset: -4px; }
.hero .container { position: relative; z-index: 2; display: grid; gap: var(--space-lg); justify-items: start; padding-block: var(--space-2xl) calc(var(--strip-h) * 0.5 + var(--space-2xl)); padding-right: calc(var(--video-w) + var(--space-xl)); }
.hero h1 { max-width: none; font-size: clamp(2.75rem, 7.4vw, 9rem); line-height: 1.04; color: var(--color-band-type); }
.hero h1 span { display: block; }
.hero h1 .plate { width: max-content; white-space: nowrap; margin-top: var(--space-xs); padding: 0.04em 0.5em 0.1em 0.2em; margin-left: -0.2em; background: var(--color-paper); color: var(--color-band); font-weight: 700; }
.hero .lead { max-width: 30ch; color: var(--color-band-muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-md); margin-top: var(--space-xs); }

/* The strip hanging off the hero's foot: four ways in */
.strip { position: absolute; left: var(--gutter); right: var(--gutter); bottom: calc(var(--strip-h) * -0.5); z-index: 3; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; background: var(--color-band-2); box-shadow: var(--shadow-lift); }
.strip a { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-2xs) var(--space-md); align-items: center; align-content: center; min-height: var(--strip-h); padding: var(--space-md) var(--space-lg); color: var(--color-band-type); text-decoration: none; border-left: var(--rule-hair) solid var(--color-band-rule); transition: background-color var(--dur-short) var(--ease-out); }
.strip li:first-child a { border-left: 0; background: var(--color-band-type); color: var(--color-band); }
.strip a:hover { background: var(--color-band); }
.strip li:first-child a:hover { background: var(--color-paper); }
.strip a:focus-visible { outline: 2px solid var(--color-band-focus); outline-offset: -4px; }
.strip li:first-child a:focus-visible { outline-color: var(--color-focus); }
.strip .icon { grid-row: span 2; width: 28px; height: 28px; }
.strip b { font-size: var(--text-lg); font-weight: 700; line-height: 1.2; }
.strip span { font-size: var(--text-sm); color: var(--color-band-muted); }
.strip li:first-child span { color: var(--color-ink-2); }

/* ---------- Statement ---------- */
.statement { padding-block: calc(var(--strip-h) * 0.5 + var(--section-gap)) var(--section-gap-s); text-align: center; }
.statement img { width: 56px; height: auto; margin: 0 auto var(--space-xl); }
.statement p { margin-inline: auto; max-width: 28ch; font: 300 var(--text-display-s)/1.14 var(--font-display); letter-spacing: -0.025em; color: var(--color-ink); text-wrap: balance; }

/* ---------- About: photo beside a checklist ---------- */
.about { padding-block: var(--section-gap-s) var(--section-gap-l); }
.about .container { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-3xl); align-items: center; }
.about__photo { aspect-ratio: 5 / 4; min-height: 480px; border-radius: var(--radius-card); }
.about__text { display: grid; gap: var(--space-lg); }
.about h2 { max-width: 14ch; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-sm) var(--gap-columns); margin: var(--space-xs) 0; padding: var(--space-lg) 0; list-style: none; border-block: var(--rule-hair) solid var(--color-rule); }
.checks li { display: flex; align-items: flex-start; gap: var(--space-sm); color: var(--color-ink); font-weight: 400; }
.checks .icon { margin-top: var(--space-2xs); }

/* ---------- Treatments: a rail of photo cards ---------- */
.treat { padding-block: var(--section-gap-s) var(--section-gap); background: var(--color-paper-2); }
.treat__head { display: flex; justify-content: space-between; align-items: end; gap: var(--space-xl); margin-bottom: var(--space-2xl); }
.treat__head p { margin-top: var(--space-md); }
.arrows { display: flex; gap: var(--space-xs); }
.arrows button { display: inline-grid; place-items: center; width: 52px; height: 52px; border: var(--rule-hair) solid var(--color-ink); border-radius: var(--radius-pill); background: transparent; color: var(--color-ink); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.arrows button:hover { background: var(--color-ink); color: var(--color-paper); }
.arrows button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
html:not(.js) .arrows { display: none; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(18rem, 23%); gap: var(--space-lg); margin: 0; padding: 0 var(--gutter) var(--space-md); list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain; scrollbar-width: thin; }
.rail:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.rail > li { scroll-snap-align: start; }
.rail.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.tcard { position: relative; display: grid; align-items: end; height: clamp(27.5rem, 34vw, 38rem); border-radius: var(--radius-card); overflow: hidden; color: var(--color-band-type); text-decoration: none; }
.tcard [data-slot] { position: absolute; inset: 0; }
.tcard::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(0deg, var(--scrim-1) 0%, var(--scrim-2) 46%, var(--scrim-0) 72%); transition: opacity var(--dur-short) var(--ease-out); }
.tcard__body { position: relative; z-index: 3; display: grid; gap: var(--space-xs); padding: var(--space-lg); }
.tcard h3 { color: var(--color-band-type); font-size: var(--text-title); }
.tcard p { color: var(--color-band-muted); font-size: var(--text-sm); line-height: 1.5; }
.tcard__go { justify-self: start; margin-top: var(--space-sm); padding: var(--space-sm) var(--space-md); border: var(--rule-hair) solid var(--color-band-muted); border-radius: var(--radius-pill); font-size: var(--text-sm); font-weight: 700; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.tcard:hover .tcard__go { background: var(--color-band-type); color: var(--color-band); }
.tcard:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }

/* ---------- Values: a photo band with cards on it ---------- */
.values { position: relative; isolation: isolate; min-height: 760px; display: grid; }
.values__photo { position: absolute; inset: 0; z-index: -1; }
.values .container { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto 1fr auto; gap: var(--gap-columns); padding-block: var(--space-2xl); }
.vcard { padding: var(--space-xl); border-radius: var(--radius-card); }
.vcard h3 { font: 300 var(--text-display-s)/1 var(--font-display); letter-spacing: -0.03em; }
.vcard p { margin-top: var(--space-md); max-width: 30ch; }
.vcard--lead { grid-column: 9 / 13; grid-row: 1; background: var(--color-band-type); }
.vcard--ink { grid-column: 1 / 4; grid-row: 3; background: var(--color-band); color: var(--color-band-muted); }
.vcard--glass { grid-column: 4 / 7; grid-row: 3; background: var(--glass); color: var(--color-band-muted); }
.vcard--ink h3, .vcard--glass h3 { color: var(--color-band-type); font-size: var(--text-2xl); }
.vcard--ink p, .vcard--glass p { color: var(--color-band-muted); font-size: var(--text-sm); }

/* ---------- Mosaic: men's health ---------- */
.mosaic { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 4fr); min-height: 600px; }
.mosaic [data-slot] { min-height: 600px; }
.mosaic__tile { display: grid; gap: var(--space-lg); align-content: center; justify-items: start; padding: var(--space-2xl) var(--space-2xl); background: var(--color-band); color: var(--color-band-type); }
.mosaic__tile h2 { color: var(--color-band-type); max-width: 9ch; }
.mosaic__tile p { color: var(--color-band-muted); font-size: var(--text-lead); line-height: 1.5; max-width: 28ch; }

/* ---------- Steps ---------- */
.steps { padding-block: var(--section-gap-l) var(--section-gap); }
.steps .container { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap-columns); align-items: start; }
.steps h2 { max-width: 9ch; }
.steps ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; counter-reset: paso; border-top: var(--rule-hair) solid var(--color-ink); }
.steps li { counter-increment: paso; display: grid; gap: var(--space-sm); align-content: start; padding: var(--space-lg) var(--space-lg) 0; border-left: var(--rule-hair) solid var(--color-rule); }
.steps li:first-child { padding-left: 0; border-left: 0; }
.steps li::before { content: counter(paso, decimal-leading-zero); font: 300 var(--text-display)/1 var(--font-display); letter-spacing: -0.04em; color: var(--color-ink); font-variant-numeric: tabular-nums; }
.steps li h3 { margin-top: var(--space-md); font-size: var(--text-title); }
.steps li p { max-width: 28ch; }

/* ---------- The doctor, on the band ---------- */
.doctor { background: var(--color-band); color: var(--color-band-type); }
.doctor .container { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: center; padding-right: 0; }
.doctor__text { display: grid; gap: var(--space-lg); padding-block: var(--section-gap-s); }
.doctor h2 { color: var(--color-band-type); max-width: 13ch; }
.doctor p { color: var(--color-band-muted); font-size: var(--text-lead); line-height: 1.55; max-width: 36ch; }
.doctor .sign { display: grid; gap: var(--space-3xs); margin-top: var(--space-md); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-band-rule); max-width: 36ch; }
.doctor .sign b { font: italic 400 var(--text-2xl)/1.1 var(--font-outlier); color: var(--color-band-type); }
.doctor .sign span { font-size: var(--text-sm); color: var(--color-band-muted); }
.doctor__photo { align-self: stretch; min-height: 680px; }

/* ---------- Team: two columns, the title band between the rows ---------- */
.team { padding-block: var(--section-gap) var(--section-gap); overflow: clip; }
.team__layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2xl) var(--space-3xl); align-items: center; }
.team__band { grid-column: 1 / -1; order: 2; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: var(--space-sm) var(--space-2xl); margin-inline: calc(-1 * var(--gutter)); padding: var(--space-xl) var(--gutter); background: var(--color-paper-2); border-block: var(--rule-hair) solid var(--color-rule); }
.member { order: 1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; }
.member:nth-of-type(n + 3) { order: 3; }
.member__info { position: relative; z-index: 2; display: grid; gap: var(--space-xs); justify-items: end; text-align: right; padding-right: var(--space-lg); }
.member__name { margin-right: calc(-1 * var(--space-3xl)); margin-bottom: var(--space-xs); padding: var(--space-sm) var(--space-lg); background: var(--color-band); color: var(--color-band-type); font-size: var(--text-title); white-space: nowrap; }
.member:nth-of-type(even) .member__name { background: var(--color-stone); color: var(--color-ink); }
.member__spec { max-width: 22ch; font-weight: 700; color: var(--color-ink); }
.member__focus { font-size: var(--text-sm); color: var(--color-muted); }
.member .link { margin-top: var(--space-xs); font-size: var(--text-sm); }
/* The frame leans like CIMA's mark. The portrait is anchored to its top edge, so no head is ever cut. */
.member__photo { position: relative; aspect-ratio: 6 / 7; overflow: hidden; background: var(--color-paper-3); clip-path: polygon(20% 0, 100% 0, 80% 100%, 0 100%); }
.member__photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transform-origin: 50% 0; }

/* ---------- Booking ---------- */
.book { padding-block: var(--section-gap) var(--section-gap-l); }
.book .container { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-3xl); align-items: start; }
.book__main { display: grid; gap: var(--space-xl); }
.book h2 { max-width: 12ch; }
.book__main .lead { margin-top: var(--space-md); }
.book__frame { display: block; width: 100%; height: 980px; border: 0; background: var(--color-paper); }
.book__alt { font-size: var(--text-sm); color: var(--color-muted); }
.book__fallback { padding: var(--space-lg); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-paper-2); color: var(--color-ink); }
.days { border-top: var(--rule-hair) solid var(--color-ink); }
.day { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: var(--gap-columns); align-items: center; padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); }
.day time { font-size: var(--text-lg); font-weight: 700; color: var(--color-ink); }
.slots { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.visit { display: grid; gap: var(--space-lg); padding: var(--space-xl); background: var(--color-paper-2); border-radius: var(--radius-card); }
.visit h3 { font-size: var(--text-title); }
.visit dl { display: grid; gap: var(--space-md); margin: 0; }
.visit dl div { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-2xs) var(--space-md); padding-top: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); }
.visit .icon { grid-row: span 2; margin-top: var(--space-3xs); color: var(--color-ink); }
.visit dt { font-size: var(--text-sm); color: var(--color-muted); }
.visit dd { margin: 0; color: var(--color-ink); font-weight: 400; }
.fill { padding: 0 0.25em; border: 1px dashed color-mix(in oklch, var(--color-muted) 70%, transparent); border-radius: 3px; color: var(--color-muted); font-weight: 400; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ---------- Posts: CIMA's own toxin carousel ---------- */
.posts { padding-block: var(--section-gap) var(--section-gap); }
.posts__head { display: flex; justify-content: space-between; align-items: end; gap: var(--space-xl); margin-bottom: var(--space-2xl); }
.posts__head p { margin-top: var(--space-md); }
.rail--posts { grid-auto-columns: minmax(17rem, 27%); }
.post { display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius-card); overflow: hidden; background: var(--color-band); cursor: zoom-in; box-shadow: var(--shadow-card); }
a.post { cursor: pointer; }
.post img { width: 100%; height: auto; aspect-ratio: 1086 / 1448; object-fit: cover; }
.post:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.zoom { max-width: min(92vw, 720px); max-height: 94dvh; padding: 0; border: 0; border-radius: var(--radius-card); background: var(--color-band); overflow: visible; }
.zoom::backdrop { background: var(--scrim-1); }
.zoom img { display: block; width: auto; max-width: 100%; height: auto; max-height: 94dvh; border-radius: var(--radius-card); }
.zoom__close { position: absolute; right: var(--space-sm); top: var(--space-sm); display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: var(--radius-pill); background: var(--color-paper); color: var(--color-ink); cursor: pointer; }
.zoom__close:hover { background: var(--color-paper-2); }
.zoom__close:focus-visible { outline: 2px solid var(--color-band-focus); outline-offset: 3px; }

/* ---------- Videos: each one with its detail beside it ---------- */
.reels { padding-block: var(--section-gap-s); background: var(--color-paper-2); }
.reels .container { display: grid; gap: var(--space-2xl); }
.reels__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3xl); }
.vcase { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-xl); align-items: center; }
.vcase__text { display: grid; gap: var(--space-md); justify-items: start; }
.vcase__text h3 { font-size: var(--text-2xl); font-weight: 300; letter-spacing: var(--tracking-display); line-height: 1.1; }
.vcase__text p { max-width: 22ch; font-size: var(--text-lead); line-height: 1.5; color: var(--color-ink-2); }
.vcase__text .vcase__meta { max-width: none; font-size: var(--text-sm); color: var(--color-muted); }
.reel__frame { position: relative; aspect-ratio: 9 / 16; border-radius: var(--radius-card); overflow: hidden; background: var(--color-band); box-shadow: var(--shadow-lift); }
.reel__frame video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.reel__play { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; border: 0; background: linear-gradient(0deg, var(--scrim-2), var(--scrim-0) 50%); color: var(--color-band); cursor: pointer; }
.reel__play .icon { box-sizing: content-box; width: 26px; height: 26px; padding: var(--space-lg); border-radius: 50%; background: var(--color-paper); fill: currentColor; stroke: none; }
.reel__play:focus-visible { outline: 2px solid var(--color-band-focus); outline-offset: -4px; }
.reel__frame.is-playing .reel__play { display: none; }

/* ---------- The laser: its own stage ---------- */
.laser { position: relative; isolation: isolate; overflow: clip; padding-block: var(--section-gap-s); background: var(--color-band); color: var(--color-band-type); }
.laser::before { content: ""; position: absolute; right: -6%; bottom: -18%; z-index: -1; width: 48%; aspect-ratio: 368 / 300; background: url("brand/cima-simbolo-claro.svg") no-repeat center / contain; opacity: 0.045; pointer-events: none; }
.laser .container { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: center; }
.laser__video { width: min(100%, 25rem); justify-self: center; }
.laser__text { display: grid; gap: var(--space-xl); justify-items: start; }
.laser h2 { max-width: 13ch; color: var(--color-band-type); }
.laser__certs { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; border-block: var(--rule-hair) solid var(--color-band-rule); }
.laser__certs li { padding: var(--space-lg) var(--space-xl); border-left: var(--rule-hair) solid var(--color-band-rule); font: 300 var(--text-display-s)/1 var(--font-display); letter-spacing: -0.03em; color: var(--color-band-type); white-space: nowrap; }
.laser__certs li:first-child { padding-left: 0; border-left: 0; }
.laser__text > p { max-width: 36ch; font-size: var(--text-lead); line-height: 1.5; color: var(--color-band-muted); }

.visit__photo { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 62%; border-radius: var(--radius-card); }

/* ---------- Footer ---------- */
.foot { background: var(--color-band-deep); color: var(--color-band-muted); padding-block: var(--space-3xl) var(--space-xl); }
.foot__cols { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: var(--gap-columns); padding-bottom: var(--space-2xl); }
.foot__brand img { width: 132px; height: auto; }
.foot__brand p { margin-top: var(--space-lg); max-width: 30ch; }
.foot h2 { margin-bottom: var(--space-md); font: 700 var(--text-md)/1.3 var(--font-body); letter-spacing: 0; color: var(--color-band-type); }
.foot ul { display: grid; gap: var(--space-sm); margin: 0; padding: 0; list-style: none; }
.foot a { color: var(--color-band-muted); text-decoration: none; }
.foot a:hover { color: var(--color-band-type); text-decoration: underline; }
.foot a:focus-visible { outline: 2px solid var(--color-band-focus); outline-offset: 3px; }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-md); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-band-rule); font-size: var(--text-sm); }

/* ---------- Reduced motion: the controls stop easing (the motion layer is motion.css) ---------- */
@media (prefers-reduced-motion: reduce) {
  .btn, .strip a, .arrows button, .tcard::after, .tcard__go { transition: none; }
}

/* ---------- Under 72rem: the bar tightens ---------- */
@media (max-width: 72rem) {
  .nav__wa { display: none; }
  .nav__links { gap: var(--space-lg); }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); position: relative; left: auto; right: auto; bottom: auto; margin-inline: var(--gutter); margin-top: calc(var(--space-xl) * -1); }
  .strip li:nth-child(3) a { border-left: 0; }
  .strip li:nth-child(n + 3) a { border-top: var(--rule-hair) solid var(--color-band-rule); }
  .hero { align-items: start; padding-bottom: var(--space-xl); }
  .hero h1 { font-size: clamp(2.75rem, 6.2vw, 7.75rem); }
  .hero__photo { height: auto; bottom: 0; }
  .hero .strip { margin-right: calc(var(--video-w) + var(--gutter)); }
  .hero .container { padding-bottom: var(--space-3xl); }
  .statement { padding-top: var(--section-gap); }
  .vcard--lead { grid-column: 7 / 13; }
  .vcard--ink { grid-column: 1 / 7; }
  .vcard--glass { grid-column: 7 / 13; }
}

/* ---------- Under 60rem: stack in reading order ---------- */
@media (max-width: 60rem) {
  .top p { display: none; }
  .top .container { justify-content: flex-end; }
  .nav .container { grid-template-columns: auto minmax(0, 1fr); gap: var(--space-md); }
  .nav__links { display: none; }
  .nav__block { justify-self: end; padding-inline: var(--space-md) var(--gutter); }
  .hero { min-height: 0; display: flex; flex-direction: column; align-items: stretch; }
  .hero .container { order: 1; padding-right: var(--gutter); }
  .hero__photo { order: 2; position: relative; top: auto; right: auto; bottom: auto; width: min(100% - 2 * var(--gutter), 20rem); height: auto; margin-inline: auto; border-radius: var(--radius-card); }
  .hero .strip { order: 3; margin-right: var(--gutter); margin-top: var(--space-xl); }
  .hero::before { display: none; }
  .hero h1 .plate { width: fit-content; white-space: normal; margin-left: 0; padding-right: 0.2em; }
  .hero .container { padding-block: var(--space-xl) var(--space-2xl); }
  .about .container, .steps .container, .doctor .container, .book .container { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .reels__grid, .team__layout { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); }
  .team__band { order: 0; justify-content: flex-start; }
  .member, .member:nth-of-type(n + 3) { order: 1; }
  .laser .container { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); }
  .laser__video { justify-self: start; }
  .posts__head { flex-direction: column; align-items: flex-start; }
  .about__photo { min-height: 0; }
  .treat__head { flex-direction: column; align-items: flex-start; }
  .values { min-height: 0; }
  .values .container { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; padding-block: var(--space-3xl) var(--space-xl); }
  .vcard--lead, .vcard--ink, .vcard--glass { grid-column: 1; grid-row: auto; }
  .mosaic { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .mosaic [data-slot] { min-height: 0; aspect-ratio: 5 / 4; }
  .mosaic__tile { padding: var(--space-2xl) var(--gutter); }
  .steps ol { grid-template-columns: minmax(0, 1fr); }
  .steps li { padding: var(--space-lg) 0; border-left: 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
  .doctor .container { padding-right: var(--gutter); }
  .doctor__text { padding-block: var(--section-gap-s) 0; }
  .doctor__photo { min-height: 0; aspect-ratio: 5 / 4; margin-inline: calc(-1 * var(--gutter)); }
  .foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 40rem) {
  .strip { grid-template-columns: minmax(0, 1fr); }
  .strip li + li a { border-left: 0; border-top: var(--rule-hair) solid var(--color-band-rule); }
  .checks { grid-template-columns: minmax(0, 1fr); }
  .vcase { grid-template-columns: minmax(0, 1fr); }
  .vcase .reel__frame { max-width: 20rem; }
  .member { grid-template-columns: minmax(0, 1fr); }
  .member__photo { order: -1; max-width: 20rem; }
  .member__info { justify-items: start; text-align: left; margin-top: calc(-1 * var(--space-lg)); padding-right: 0; }
  .member__name { margin-right: 0; white-space: normal; }
  .laser__certs li { padding: var(--space-md) var(--space-lg); }
  .day { grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); }
  .nav__block .btn { padding: 0 var(--space-md); }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero h1 { font-size: 2.375rem; }
}
