/*
  Relax Physiotherapy Centre

  System rules
  - Two fonts: Cormorant Garamond (headings), Figtree (body). Icons: Phosphor Light only.
  - Type scale: 1.25 ratio from a 16px base. Every font-size uses a --fs-* step.
  - One corner radius (--radius) on every rounded element. Exception: the hover cursor ring.
  - One accent (--accent, the logo's brick red), used for primary buttons, links and the wordmark.
  - No shadows, no gradients, no hover styles. Pressed (:active) and focus states only.
  - Text is left-aligned; paragraphs cap at ~68 characters.
  Z-index scale: cursor 90 · intro 80 · grain 70 · nav 50 · menu 45 · whatsapp 40.
*/

:root {
  /* Type scale, ratio 1.25 */
  --fs--1: 0.8rem;     /* 12.8px */
  --fs-0: 1rem;        /* 16px */
  --fs-1: 1.25rem;     /* 20px */
  --fs-2: 1.5625rem;   /* 25px */
  --fs-3: 1.953rem;    /* 31.25px */
  --fs-4: 2.441rem;    /* 39px */
  --fs-5: 3.052rem;    /* 48.8px */
  --fs-6: 3.815rem;    /* 61px */
  --fs-7: 4.768rem;    /* 76.3px */

  --radius: 12px;
  --measure: 68ch;

  --canvas: #f4f3ef;
  --surface-soft: #ecebe5;
  --surface-card: #e3e2db;
  --ink: #1c1f1c;
  --body-strong: #2b2f2b;
  --body: #454a45;
  --muted: #62675f;
  --line: #d9d8d0;
  --line-input: #8c9089;

  --band: #232823;
  --on-band: #f4f3ef;
  --on-band-soft: rgba(244, 243, 239, 0.76);
  --on-band-line: rgba(244, 243, 239, 0.16);

  --accent: #b3372c;
  --accent-pressed: #922a21;
  --accent-text: #b3372c;
  --on-accent: #ffffff;

  --footer-bg: #171a17;
  --on-dark: #f4f3ef;
  --on-dark-soft: #a3a79f;
  --error: #ad2f25;

  --serif: "Cormorant Garamond", "Tiempos Headline", Garamond, "Times New Roman", serif;
  --sans: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(96px, 11vw, 160px);

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);

  --intro: 1.55s;

  color-scheme: light;
}
.intro-skip { --intro: 0.05s; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #131513;
    --surface-soft: #181b18;
    --surface-card: #1f221f;
    --ink: #eceee8;
    --body-strong: #dcdfd7;
    --body: #c2c6be;
    --muted: #999d95;
    --line: #2c302c;
    --line-input: #6b706a;
    --band: #1c211c;
    --accent: #c4473a;
    --accent-pressed: #a53a2f;
    --accent-text: #e47a6a;
    --footer-bg: #0d0f0d;
    --error: #ef8478;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --canvas: #131513;
  --surface-soft: #181b18;
  --surface-card: #1f221f;
  --ink: #eceee8;
  --body-strong: #dcdfd7;
  --body: #c2c6be;
  --muted: #999d95;
  --line: #2c302c;
  --line-input: #6b706a;
  --band: #1c211c;
  --accent: #c4473a;
  --accent-pressed: #a53a2f;
  --accent-text: #e47a6a;
  --footer-bg: #0d0f0d;
  --error: #ef8478;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--body);
  font-family: var(--sans);
  font-size: var(--fs-0);
  line-height: 1.6;
  text-align: left;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* Paper grain: fixed and non-interactive */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 70; pointer-events: none; opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
:root[data-theme="dark"] body::after { opacity: 0.06; filter: invert(1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body::after { opacity: 0.06; filter: invert(1); } }

[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
p { max-width: var(--measure); }
ul[role="list"] { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--on-accent); }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 95;
  background: var(--ink); color: var(--canvas); padding: 10px 18px; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

/* ---------- Type ---------- */
.display-xl, .display-lg, .display-sm, .about__bio, .stat__num, .brand__name, .menu__link, .intro__word {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.display-xl { font-size: var(--fs-5); line-height: 1.02; }
.display-xl em { font-style: italic; }
.display-lg { font-size: var(--fs-4); line-height: 1.06; }
.display-sm { font-size: var(--fs-3); line-height: 1.12; }
@media (min-width: 640px) { .display-xl { font-size: var(--fs-6); } }
@media (min-width: 900px) { .display-lg { font-size: var(--fs-5); } }
@media (min-width: 1100px) { .display-xl { font-size: var(--fs-7); } }

.title { font-size: var(--fs-1); font-weight: 600; line-height: 1.3; color: var(--ink); }
.title-sm { font-size: var(--fs-0); font-weight: 600; line-height: 1.4; color: var(--ink); }
.lead { font-size: var(--fs-1); line-height: 1.55; color: var(--body); max-width: 34ch; }
@media (min-width: 640px) { .lead { max-width: 46ch; } }
.eyebrow { font-size: var(--fs--1); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.text-link { color: var(--accent-text); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.text-link .ph-light { margin-left: 6px; vertical-align: -2px; }
.link-btn {
  padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--body); font-size: var(--fs-0); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 20px; border-radius: var(--radius); border: 1px solid transparent;
  font-size: var(--fs-0); font-weight: 500; line-height: 1; white-space: nowrap; cursor: pointer;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease);
}
.btn .ph-light { font-size: var(--fs-1); }
.btn:active { transform: scale(0.98); }
.btn--lg { height: 56px; padding: 0 24px; }
.btn--block { width: 100%; justify-content: space-between; }
.btn--block .btn__label { white-space: normal; text-align: left; line-height: 1.25; }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:active { background: var(--accent-pressed); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-input); }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: var(--radius); border: 1px solid var(--line-input); background: transparent; color: var(--ink);
  font-size: var(--fs-1); cursor: pointer; transition: transform 0.3s var(--ease);
}
.icon-btn:active { transform: scale(0.94); }
.icon-btn--bare { border-color: transparent; }

/* ---------- Nav: invisible (no background, border or blur) ---------- */
.nav { position: absolute; top: 0; left: 0; right: 0; z-index: 50; }
.nav__inner { display: flex; align-items: center; gap: 24px; padding-block: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand__mark { width: 36px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-weight: 600; font-size: var(--fs-2); color: var(--accent-text); letter-spacing: -0.01em; }
.brand__sub { font-size: var(--fs--1); font-weight: 500; color: var(--muted); margin-top: 2px; }

.nav__links { display: flex; gap: 32px; margin-left: auto; }
.nav__links a { font-size: var(--fs-0); font-weight: 500; color: var(--body); padding-block: 10px; }
.nav__actions { display: flex; align-items: center; gap: 12px; }

.icon-sun { display: none; }
:root[data-theme="dark"] .icon-sun { display: block; }
:root[data-theme="dark"] .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun { display: block; }
  :root:not([data-theme="light"]) .icon-moon { display: none; }
}

.burger { display: none; }
.burger__close { display: none; }
.burger[aria-expanded="true"] .burger__open { display: none; }
.burger[aria-expanded="true"] .burger__close { display: block; }

/* Full-screen menu (solid surface, staggered links) */
.menu {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 32px;
  padding: 120px var(--gutter) 40px;
  background: var(--canvas);
  opacity: 0; visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0s 0.5s;
}
.menu.is-open { opacity: 1; visibility: visible; transition: opacity 0.5s var(--ease); }
.menu__links { display: flex; flex-direction: column; }
.menu__link, .menu__cta {
  transform: translateY(40px); opacity: 0;
  transition: transform 0.8s var(--ease), opacity 0.8s var(--ease);
  transition-delay: calc(var(--i, 0) * 60ms + 80ms);
}
.menu__link { font-size: var(--fs-5); line-height: 1.15; padding-block: 6px; border-bottom: 1px solid var(--line); }
.menu.is-open .menu__link, .menu.is-open .menu__cta { transform: none; opacity: 1; }
html.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { padding-block: 140px clamp(64px, 8vw, 104px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; align-items: center; }
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.line { display: block; overflow: hidden; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.line > span { display: inline-block; }

.hero__frame { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--surface-card); }
.hero__frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(56px, 7vw, 112px); }
  .hero__frame img { aspect-ratio: auto; height: min(640px, calc(100dvh - 200px)); min-height: 460px; }
}

/* ---------- Stats ---------- */
.stats__row {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px;
  padding-top: 48px; border-top: 1px solid var(--line);
}
.stat__num { font-size: var(--fs-5); line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.stat__label { margin-top: 10px; font-size: var(--fs-0); color: var(--muted); }
.stats__note { grid-column: 1 / -1; color: var(--body); max-width: 40ch; }
@media (min-width: 900px) {
  .stat__num { font-size: var(--fs-6); }
  .stats__row { grid-template-columns: repeat(3, auto) minmax(0, 1fr); gap: 88px; align-items: end; }
  .stats__note { grid-column: auto; max-width: 30ch; }
}
@media (max-width: 520px) { .stats__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section--tint { background: var(--surface-soft); }
.section-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head .display-lg { max-width: 18ch; }
.section-head__sub { font-size: var(--fs-1); line-height: 1.55; color: var(--muted); max-width: 52ch; }

/* ---------- Treatments ---------- */
.treatments { display: grid; grid-template-columns: minmax(0, 1fr); gap: 64px; }
.treatment__media { overflow: hidden; border-radius: var(--radius); background: var(--surface-card); }
.treatment__media img { width: 100%; height: 100%; object-fit: cover; }
.treatment__body { display: flex; flex-direction: column; gap: 10px; }
.treatment__tag { font-weight: 500; color: var(--body-strong); }

.treatment--feature .treatment__media { aspect-ratio: 4 / 3; margin-bottom: 28px; }
.treatment--row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.treatment--row .treatment__media { aspect-ratio: 16 / 10; }
.treatments__stack { display: grid; gap: 64px; }
@media (min-width: 640px) {
  .treatment--row { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 32px; align-items: center; }
  .treatment--row .treatment__media { aspect-ratio: 1 / 1; }
}
@media (min-width: 1000px) {
  .treatments { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(56px, 6vw, 96px); align-items: start; }
  .treatments__stack { gap: 56px; padding-top: 80px; }
  .treatment--row { grid-template-columns: 210px minmax(0, 1fr); }
}

/* ---------- Conditions ---------- */
.conditions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 64px; }
.condition {
  display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 20px; align-items: start;
  padding-block: 36px; border-top: 1px solid var(--line);
}
.condition__icon { font-size: var(--fs-4); line-height: 1; color: var(--ink); }
.condition p { margin-top: 8px; color: var(--body); }
@media (min-width: 700px) { .conditions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .conditions { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; }
.about__main { display: flex; flex-direction: column; gap: 28px; }
.about__bio { font-size: var(--fs-3); line-height: 1.22; max-width: 30ch; }
@media (min-width: 900px) { .about__bio { font-size: var(--fs-4); } }
.checks { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px 32px; margin-top: 8px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--body-strong); font-weight: 500; }
.checks .ph-light { color: var(--ink); font-size: var(--fs-1); flex: none; }
@media (min-width: 640px) { .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.about__quals { align-self: start; padding: 32px; border-radius: var(--radius); background: var(--surface-soft); }
.quals { display: grid; gap: 20px; margin-top: 20px; }
.quals li { display: flex; gap: 14px; align-items: flex-start; }
.quals .ph-light { font-size: var(--fs-2); color: var(--muted); }
.quals span { display: flex; flex-direction: column; color: var(--body); }
.quals strong { color: var(--ink); font-weight: 600; }
@media (min-width: 1000px) { .about { grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.8fr); gap: 96px; align-items: end; } }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; border-bottom: 1px solid var(--line); }
.faq__item { border-top: 1px solid var(--line); }
.faq__item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding-block: 28px; cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { flex: none; font-size: var(--fs-2); color: var(--ink); transition: transform 0.3s var(--ease); }
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__item p { padding-bottom: 28px; max-width: var(--measure); color: var(--body); }

.about__text { max-width: var(--measure); color: var(--body); }

/* Awards strip */
.awards { margin-top: clamp(88px, 10vw, 128px); }
.awards__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }
.awards__head > div:first-child { display: flex; flex-direction: column; gap: 12px; }
.awards__controls { display: flex; gap: 8px; }
.awards__track {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2));
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2));
  padding-bottom: 8px;
}
.awards__track::-webkit-scrollbar { display: none; }
.award { flex: none; scroll-snap-align: start; display: flex; flex-direction: column; gap: 14px; }
.award__open { display: block; padding: 0; border: 0; overflow: hidden; border-radius: var(--radius); background: var(--surface-card); cursor: zoom-in; }
.award__open img { height: clamp(260px, 34vw, 380px); width: auto; }
.award figcaption { font-size: var(--fs--1); color: var(--muted); max-width: 30ch; }
@media (max-width: 640px) { .awards__controls { display: none; } }

/* ---------- Book ---------- */
.section--book { padding-block: 0; }
.book {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px;
  background: var(--band); color: var(--on-band);
  border-radius: var(--radius); border: 1px solid transparent;
  padding: clamp(24px, 5vw, 72px);
}
:root[data-theme="dark"] .book { border-color: var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .book { border-color: var(--line); } }
.book .display-lg { color: var(--on-band); max-width: 14ch; }
.book__intro { display: flex; flex-direction: column; gap: 20px; }
.book__sub { font-size: var(--fs-1); line-height: 1.55; color: var(--on-band-soft); max-width: 40ch; }
.hours { display: grid; margin-top: 16px; border-top: 1px solid var(--on-band-line); }
.hours div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding-block: 16px; border-bottom: 1px solid var(--on-band-line); }
.hours dt, .hours dd { white-space: nowrap; }
.hours dt { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.hours dt .ph-light { font-size: var(--fs-1); }
.hours dd { color: var(--on-band-soft); }

.book__panel { background: var(--canvas); color: var(--body); border-radius: var(--radius); padding: clamp(20px, 3.5vw, 40px); }
@media (max-width: 480px) { .book { padding: 24px 16px; } .book__panel { padding: 20px 16px; } }
@media (min-width: 1000px) { .book { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 80px; align-items: center; } }

/* Panel states: form (before interaction), sent, error */
.form-head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 24px; }
.form-head p { color: var(--muted); }
.panel-state--message { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding-block: 12px; outline: none; }
.panel-state__icon { font-size: var(--fs-5); line-height: 1; color: var(--ink); }
.panel-state__icon--error { color: var(--error); }
.panel-state__meta { color: var(--muted); }
.panel-state__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.panel-state--message .btn--ghost:only-of-type { margin-top: 8px; }

/* Form */
.form { display: flex; flex-direction: column; gap: 20px; }
.form__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 560px) { .form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: var(--fs-0); font-weight: 500; color: var(--ink); }
.field__opt { font-weight: 400; color: var(--muted); }
.field__hint { font-size: var(--fs--1); color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px;
  border: 1px solid var(--line-input); border-radius: var(--radius);
  background: var(--canvas); color: var(--ink); font: inherit; font-size: var(--fs-0);
}
.field textarea { resize: vertical; min-height: 104px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field__error { display: flex; align-items: center; gap: 6px; font-size: var(--fs--1); color: var(--error); font-weight: 500; }
.field__error .ph-light { font-size: var(--fs-0); }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 48px; cursor: pointer; }
.select__icon { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: var(--fs-1); color: var(--muted); pointer-events: none; }
.btn__spinner { display: none; }
.is-loading .btn__arrow { display: none; }
.is-loading .btn__spinner { display: inline-block; animation: spin 0.9s linear infinite; }
.is-loading { pointer-events: none; opacity: 0.85; }
@keyframes spin { to { transform: rotate(360deg); } }
.form__alt { font-size: var(--fs--1); color: var(--muted); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; }
.contact__info { display: flex; flex-direction: column; gap: 32px; }
.contact__info li { display: flex; gap: 16px; align-items: flex-start; }
.contact__info > li > .ph-light { font-size: var(--fs-2); color: var(--muted); flex: none; }
.contact__info p { margin-top: 4px; }
.contact__social { flex-wrap: wrap; gap: 12px !important; padding-top: 4px; }
.contact__map { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.contact__map-frame { position: relative; width: 100%; min-height: 360px; overflow: hidden; border-radius: var(--radius); background: var(--surface-card); }
.map-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 24px; color: var(--muted); }
.map-fallback .ph-light { font-size: var(--fs-3); color: var(--ink); }
.contact__map iframe { position: relative; display: block; width: 100%; height: 100%; min-height: 360px; border: 0; }
:root[data-theme="dark"] .contact__map iframe { filter: grayscale(0.4) invert(0.9) hue-rotate(180deg) contrast(0.9); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .contact__map iframe { filter: grayscale(0.4) invert(0.9) hue-rotate(180deg) contrast(0.9); } }
@media (min-width: 900px) {
  .contact { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 80px; }
  .contact__map-frame, .contact__map iframe { min-height: 460px; }
}

/* ---------- Footer ---------- */
.footer { background: var(--footer-bg); color: var(--on-dark-soft); padding-block: 96px 40px; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
.footer__brand { display: flex; flex-direction: column; gap: 14px; }
.footer__brand p { max-width: 44ch; }
.brand--footer .brand__name { color: #e47a6a; }
.brand--footer .brand__sub { color: var(--on-dark-soft); }
.footer__doc { color: var(--on-dark); font-weight: 500; }
.footer__title { font-size: var(--fs--1); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--on-dark); margin-bottom: 16px; }
.footer ul { display: flex; flex-direction: column; gap: 10px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 72px; padding-top: 24px; border-top: 1px solid rgba(244, 243, 239, 0.1); font-size: var(--fs--1); }
.footer__bottom a { color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 800px) { .footer__grid { grid-template-columns: 2fr 1fr 1.2fr; gap: 80px; } }

/* ---------- WhatsApp shortcut ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--radius);
  background: var(--band); color: var(--on-band); font-size: var(--fs-3);
  border: 1px solid rgba(244, 243, 239, 0.14);
}

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 900px); max-height: 92dvh; overflow: visible; color: var(--on-dark); }
.lightbox::backdrop { background: rgba(14, 16, 14, 0.9); }
.lightbox img { max-height: 80dvh; width: auto; border-radius: var(--radius); }
.lightbox p { margin-top: 14px; font-size: var(--fs-0); }
.lightbox__close { position: absolute; top: -60px; right: 0; color: var(--on-dark); border-color: rgba(244, 243, 239, 0.3); }
.lightbox[open] { animation: lb-in 0.5s var(--ease); }
@keyframes lb-in { from { opacity: 0; transform: translateY(16px); } }

/* ---------- Responsive nav ---------- */
@media (max-width: 899px) {
  .nav__links, .nav__cta { display: none; }
  .burger { display: inline-grid; }
  .nav__actions { margin-left: auto; }
}
@media (min-width: 900px) { .menu { display: none; } }

/* ---------- Hover cursor (deliberate exception: circular, reacts to targets) ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 90; pointer-events: none; display: none; }
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor label, .has-cursor [data-cursor] { cursor: none; }
.has-cursor input, .has-cursor textarea { cursor: text; }
.has-cursor select { cursor: pointer; }
.cursor__dot, .cursor__ring { position: absolute; top: 0; left: 0; will-change: transform; }
.cursor__dot {
  width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--accent);
  transition: opacity 0.3s var(--ease), scale 0.4s var(--ease);
}
.cursor__ring { width: 40px; height: 40px; margin: -20px 0 0 -20px; display: grid; place-items: center; }
.cursor__shape {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--ink) 35%, transparent);
  transition: transform 0.6s var(--ease), background-color 0.5s var(--ease), border-color 0.5s var(--ease), opacity 0.4s var(--ease);
}
.cursor__label {
  position: relative; font-size: var(--fs--1); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--on-accent); opacity: 0; transform: scale(0.6); transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
}
.cursor.is-hover .cursor__shape { transform: scale(1.5); background: color-mix(in srgb, var(--accent) 12%, transparent); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.cursor.is-hover .cursor__dot { scale: 0; }
.cursor.is-view .cursor__shape { transform: scale(2.1); background: var(--accent); border-color: transparent; }
.cursor.is-view .cursor__label { opacity: 1; transform: scale(1); }
.cursor.is-view .cursor__dot { scale: 0; }
.cursor.is-down .cursor__shape { transform: scale(0.8); }
.cursor.is-hidden .cursor__shape, .cursor.is-hidden .cursor__dot, .cursor.is-hidden .cursor__label { opacity: 0; }

/* ---------- Opening intro (deliberate exception; pure CSS timing so it always clears) ---------- */
.intro { display: none; }
.js .intro {
  position: fixed; inset: 0; z-index: 80; display: grid; place-items: center;
  background: var(--canvas);
  animation: intro-out 1s var(--ease-in-out) 1.15s forwards;
}
.js.intro-skip .intro { display: none; }
.intro__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; animation: intro-inner-out 0.7s var(--ease-in-out) 1.1s forwards; }
.intro__mark { width: 88px; height: auto; margin-bottom: 14px; opacity: 0; transform: scale(0.6) rotate(-12deg); animation: intro-mark 0.9s var(--ease-out) 0.05s forwards; }
.intro__word, .intro__sub { overflow: hidden; padding-bottom: 0.1em; }
.intro__word span, .intro__sub span { display: inline-block; transform: translateY(110%); animation: rise-in 0.9s var(--ease-out) forwards; }
.intro__word span { font-weight: 600; font-size: var(--fs-5); line-height: 1; color: var(--accent-text); animation-delay: 0.3s; }
.intro__sub span { font-size: var(--fs--1); font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); animation-delay: 0.45s; }
.intro__bar { width: 120px; height: 1px; margin-top: 22px; background: var(--line); position: relative; overflow: hidden; }
.intro__bar::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; animation: bar-fill 0.95s var(--ease-in-out) 0.15s forwards; }

@keyframes intro-mark { to { opacity: 1; transform: none; } }
@keyframes rise-in { to { transform: none; } }
@keyframes bar-fill { to { transform: scaleX(1); } }
@keyframes intro-inner-out { to { opacity: 0; transform: translateY(-28px); } }
@keyframes intro-out { to { transform: translateY(-100%); visibility: hidden; } }

/* ---------- Motion: hero choreography + scroll reveals ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .nav__inner { opacity: 0; transform: translateY(-16px); animation: drop-in 1s var(--ease) calc(var(--intro) + 0.1s) forwards; }
  .js .line > span { transform: translateY(105%); animation: rise-in 1.2s var(--ease) calc(var(--intro) + var(--d) * 110ms) forwards; }
  .js .hero-in { opacity: 0; transform: translateY(28px); filter: blur(6px); animation: fade-up 1.1s var(--ease) calc(var(--intro) + var(--d) * 110ms) forwards; }
  .js .hero__frame { opacity: 0; transform: translateY(40px); animation: fade-up 1.4s var(--ease) calc(var(--intro) + 0.05s) forwards; }
  .js .hero__frame img { transform: scale(1.18); animation: settle 2s var(--ease) calc(var(--intro) + 0.05s) forwards; }
  .js .hero__frame::after {
    content: ""; position: absolute; inset: 0; background: var(--surface-card); transform-origin: top;
    animation: curtain 1.3s var(--ease-in-out) calc(var(--intro) + 0.15s) forwards;
  }

  .js [data-reveal] { opacity: 0; transform: translateY(48px); filter: blur(8px); transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }
}
@keyframes drop-in { to { opacity: 1; transform: none; } }
@keyframes fade-up { to { opacity: 1; transform: none; filter: none; } }
@keyframes settle { to { transform: scale(1); } }
@keyframes curtain { to { transform: scaleY(0); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .intro { display: none !important; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
