/* Self-hosted fonts (latin + latin-ext). Source: Google Fonts, SIL Open Font License. */
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/cormorant-garamond-italic-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/cormorant-garamond-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/cormorant-garamond-normal-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/cormorant-garamond-normal-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-normal-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-normal-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/hanken-grotesk-normal-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/hanken-grotesk-normal-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/hanken-grotesk-normal-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/hanken-grotesk-normal-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ==========================================================================
   Dental Studio Budapest — design tokens
   Primary: ORYZO (darkroom editorial, warm cream on walnut)
   Secondary: Mercury (one chromatic CTA, 12px cards, spacious grid)
   Client: black / beige / gold
   ========================================================================== */
:root {
  /* Surfaces */
  --c-canvas: #100904;      /* Walnut Shadow — page canvas */
  --c-surface: #1a120b;     /* one step up, cards */
  --c-bark: #382416;        /* Bark Brown — secondary filled */
  --c-linen: #f4efe7;       /* light sections — warm ivory (was #f1e5d3, too beige) */
  --c-paper: #fbf8f3;       /* price "menu card" on linen — one step lighter */

  /* Lines */
  --c-cork: #40372e;        /* control outlines (icons, chips, days) */
  --c-hair: rgba(255, 237, 215, .10);   /* solid hairline between rows on dark */
  --c-hair-light: rgba(16, 9, 4, .12);  /* solid hairline between rows on linen */
  --c-drift: #6c5f51;       /* secondary structure */
  --c-line-light: #cdbba3;  /* hairline on linen */

  /* Text */
  --c-cream: #ffedd7;       /* primary text on dark */
  --c-sand: #c4b29b;        /* secondary text on dark */
  --c-ink: #100904;         /* text on linen */
  --c-ink-soft: #5a4a3a;    /* secondary text on linen */

  /* Accent — the only chromatic colour, replaces Mercury's cobalt */
  --c-gold: #c9a46c;
  --c-gold-hover: #d8b680;
  --c-gold-ink: #6e5229;    /* gold text on linen (AA) */

  /* Type */
  --f-sans: "Hanken Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-micro: 11px;
  --fs-label: 12px;
  --fs-ui: 14px;
  --fs-body: 17px;
  --fs-lead: clamp(20px, 1.2rem + 0.9vw, 29px);
  --fs-h3: clamp(22px, 1.1rem + 0.6vw, 24px);
  --fs-h2: clamp(27px, min(8vw, 1.4rem + 2vw), 51px);   /* scales down below 400px so the longest heading word still fits */
  --fs-display: clamp(64px, 15vw, 232px);

  /* Space & shape */
  --gutter: clamp(22px, 4vw, 56px);   /* 22px on phones (was 16): text no longer hugs the screen edge */
  --section-y: clamp(72px, 9vw, 136px);
  --gap: 18px;
  --max: 1680px;   /* ONE shared band for nav, hero and every section (was 1440, with nav + hero full-bleed) */
  --r-card: 0;            /* sharp edges on images and panels; only buttons are rounded */
  --r-ghost: 22.5px;
  --r-pill: 36px;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }   /* no scroll-padding: every section has its own top padding, and the 88px it had showed a strip of the previous section above the target (Marcell, 2026-12-01) */
body {
  margin: 0;
  background: var(--c-canvas);
  color: var(--c-cream);
  font-family: var(--f-sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  font-feature-settings: "ss01" on;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--c-gold); color: var(--c-ink); }

:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--c-gold); color: var(--c-ink); padding: 10px 16px; border-radius: var(--r-pill);
  font-size: var(--fs-ui); font-weight: 500; text-transform: uppercase;
}
.skip-link:focus { top: 16px; }

/* ---------- Type primitives ---------- */
.label {
  font-size: var(--fs-label);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.label--gold { color: var(--c-gold); }
.lead {
  font-size: var(--fs-lead);
  line-height: 1.26;
  font-weight: 400;
  letter-spacing: -0.005em;
}
.muted { color: var(--c-sand); }
.h2 {
  font-size: var(--fs-h2);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.015em;
}
.h3 {
  font-size: var(--fs-h3);
  line-height: 1.09;
  text-transform: uppercase;
  letter-spacing: -0.005em;
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
/* Light (beige) sections flip the dark-theme tokens locally, so every
   component that reads them (text, hairlines, outlines) adapts by itself. */
.section--linen {
  --c-cream: #382416;                  /* primary text → warm dark brown (bark), not near-black; 12:1 on linen */
  --c-sand: #6f5b47;                   /* secondary text → warm brown-grey; 5.4:1 on linen */
  --c-hair: rgba(16, 9, 4, .12);       /* row hairlines */
  --c-cork: rgba(16, 9, 4, .22);       /* control outlines */
  --c-drift: #8a7a68;
  background: var(--c-linen); color: var(--c-cream);   /* text inherits the warm dark brown, not near-black ink */
}
.section--linen + .section--linen { padding-top: 0; }   /* consecutive light sections read as one */

.section--linen .muted { color: var(--c-ink-soft); }
.section--linen .label--gold,
.section--linen .principle .principle__by { color: var(--c-gold-ink); }
.section--linen .rule,
.section--linen .principle::before { background: var(--c-gold-ink); }
.section--linen .person__quote::before,
.section--linen .person__quote::after { color: var(--c-gold-ink); }
.section--linen .treatment summary:hover .treatment__title { color: var(--c-gold-ink); }
.section--linen .treatment[open]:not(.is-closing) .treatment__icon::before,
.section--linen .treatment[open]:not(.is-closing) .treatment__icon::after { background: var(--c-linen); }
.section--linen .ticks li::before { background: var(--c-gold-ink); }

/* Brand rule — the short line from the logo lockup ("— STUDIO —"). Decorative, used sparingly. */
.rule { width: 40px; height: 1px; border: 0; margin: 0; background: var(--c-gold); }

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: clamp(40px, 5vw, 72px);
}
@media (min-width: 900px) {
  .section-head { grid-template-columns: 5fr 7fr; align-items: end; gap: var(--gap); }
  .section-head .lead { max-width: 30ch; justify-self: end; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px;
  padding: 16px 34px;
  border-radius: 0;                 /* sharp, like the images and the price card (pill shape rejected 2026-12-01) */
  font: 400 13px/1 var(--f-sans);   /* regular weight carries the wide tracking better than 500 did */
  text-transform: uppercase;
  letter-spacing: 0.18em;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  /* Hover = a second colour sweeps in from the left and leaves to the right (the fill is a
     background layer whose width is animated). Each variant only sets four colours:
     --btn-bg (resting), --btn-fill (sweep), --btn-fg (text), --btn-fg-hover (text on the sweep). */
  color: var(--btn-fg);
  background-color: var(--btn-bg, transparent);
  background-image: linear-gradient(var(--btn-fill, transparent), var(--btn-fill, transparent));
  background-repeat: no-repeat; background-origin: border-box;
  background-size: 0% 100%; background-position: 100% 0;
  /* slow start, long glide, soft stop */
  transition: background-size .8s cubic-bezier(.66, 0, .24, 1), background-color .4s var(--ease), color .5s ease .15s,
              border-color .4s var(--ease), transform .2s var(--ease);
}
.btn:hover, .btn:focus-visible {
  background-size: 100% 100%; background-position: 0 0;
  color: var(--btn-fg-hover, var(--btn-fg));
}
.btn:active { transform: scale(.98); }   /* press feedback */

/* Buttons that carry their label in data-label (set by main.js) use a better sweep: a second
   copy of the label in the hover colours sits on the fill, and both are revealed together from
   the left (and leave to the right). Every letter changes colour exactly when the fill reaches
   it, and the resting text is drawn normally. Without data-label the plain version above applies. */
.btn[data-label] { position: relative; background-image: none; }
.btn[data-label]:hover, .btn[data-label]:focus-visible { color: var(--btn-fg); }
.btn[data-label]::after {
  content: attr(data-label);
  content: attr(data-label) / "";          /* decorative copy: not read out twice */
  position: absolute; inset: -1px;          /* covers the border as well */
  display: flex; align-items: center; justify-content: center;
  background: var(--btn-fill, transparent); color: var(--btn-fg-hover, var(--btn-fg));
  clip-path: inset(0 0 0 100%);             /* hidden; main.js animates it in from the left and out to the right */
  pointer-events: none;
}
/* only if the browser cannot animate a pseudo-element from script (very old Safari): plain reveal */
.btn[data-label].is-swept::after { clip-path: inset(0); transition: clip-path .8s cubic-bezier(.66, 0, .24, 1); }

.btn--gold  { --btn-bg: var(--c-gold); --btn-fill: #ffedd7; --btn-fg: var(--c-ink); border-color: var(--c-gold); }
.btn--ghost { --btn-bg: transparent; --btn-fill: #ffedd7; --btn-fg: #ffedd7; --btn-fg-hover: var(--c-ink); border-color: #ffedd7; }
/* on light sections the sweep is dark */
.section--linen .btn--gold  { --btn-fill: var(--c-bark); --btn-fg-hover: var(--c-linen); }   /* hover fill: warm Bark Brown, not near-black (Marcell, 2026-12-01) */
.section--linen .btn--ghost { --btn-fill: var(--c-ink); --btn-fg: var(--c-ink); --btn-fg-hover: var(--c-linen); border-color: var(--c-ink); }

.btn--sm { min-height: 40px; padding: 12px 22px; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.link {
  font-size: var(--fs-ui); font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat;
  padding-bottom: 3px;
  transition: background-size .3s var(--ease), color .2s;
}
.link:hover { color: var(--c-gold); }

/* ---------- Image placeholders (swap for <img> when photos arrive) ---------- */
.ph {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(110% 80% at 72% 18%, rgba(201,164,108,.16) 0%, rgba(201,164,108,0) 55%),
    radial-gradient(90% 70% at 20% 90%, #2a1c11 0%, rgba(42,28,17,0) 70%),
    #160f09;
}
.ph::after {
  content: attr(data-label);
  position: absolute; left: 16px; bottom: 14px; right: 16px;
  font-size: var(--fs-micro); font-weight: 500; text-transform: uppercase; letter-spacing: .06em;
  color: var(--c-drift);
}
.ph::before {
  content: ""; position: absolute; inset: 10px;
  border: 1px solid rgba(255,237,215,.06); border-radius: inherit; pointer-events: none;
}
.ph > img { width: 100%; height: 100%; object-fit: cover; }
.ph:has(> img)::before, .ph:has(> img)::after { display: none; }

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s;
}
.nav.is-scrolled {
  border-bottom-color: rgba(255, 237, 215, .14);   /* hairline once the header floats over content */
  background: rgba(16, 9, 4, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
/* menu open: no hairline, no translucent band – the header is the top of the same dark sheet */
.nav.is-menu-open { background: var(--c-canvas); border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 76px;
  max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter);
}
.nav__brand { display: inline-flex; align-items: center; gap: 12px; }
.nav__brand-mark { width: 34px; height: auto; }

/* Wordmark — mirrors the client logo lockup (serif DENTAL, ruled STUDIO) */
.brand-word { display: inline-grid; justify-items: center; gap: 3px; color: var(--c-cream); }
.brand-word__main {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-weight: 500; font-size: 22px; line-height: 1;
  letter-spacing: .16em; margin-right: -.16em;
  text-transform: uppercase;
}
.brand-word__sub {
  display: flex; align-items: center; gap: 6px; width: 100%;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-weight: 500; font-size: 8.5px; line-height: 1;
  letter-spacing: .42em; margin-right: -.42em;
  text-transform: uppercase; color: var(--c-gold);
}
.brand-word__sub::before, .brand-word__sub::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .7; }
.nav__links { display: none; gap: 0; }
/* a short hairline between the menu items (asked for by Marcell); spacing comes from its margins */
.nav__links li { display: flex; align-items: center; }
.nav__links li + li::before { content: ""; width: 1px; height: 13px; margin-inline: 22px; background: rgba(255, 237, 215, .3); }
/* same voice as the buttons: Hanken regular, tracked (original: 500, .06em; Cormorant caps tried and rejected) */
.nav__links a {
  --ls: .18em;
  font-size: 13.5px; font-weight: 400; text-transform: uppercase; letter-spacing: var(--ls);
  padding-block: 6px 7px;
  /* underline drawn in from the left and out to the right, with the same timing as the button sweep;
     it stops under the last letter (--ls is the letter-spacing that follows it) */
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat; background-size: 0 1px; background-position: right var(--ls) bottom 0;
  transition: background-size .8s cubic-bezier(.66, 0, .24, 1), color .2s;
}
/* hover / focus and the CURRENT place (aria-current: "location" = the section you are in, set by main.js while scrolling;
   "page" = the Kapcsolat page): gold + the underline, the same as in the footer (Marcell, 2026-12-01) */
.nav__links a:hover, .nav__links a:focus-visible, .nav__links a[aria-current] {
  color: var(--c-gold);
  background-size: calc(100% - var(--ls)) 1px; background-position: left 0 bottom 0;
}
.nav__right { display: flex; align-items: center; gap: 18px; }
.lang { display: none; gap: 2px; font-size: var(--fs-label); font-weight: 500; letter-spacing: .06em; }
.lang a { padding: 6px 6px; color: var(--c-drift); transition: color .2s; }
.lang a[aria-current="true"], .lang a:hover { color: var(--c-cream); }
.nav__cta { display: none; }

.nav__toggle {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--c-cork); background: transparent; color: var(--c-cream);
  display: grid; place-items: center; cursor: pointer;
}
.nav__toggle span { display: block; width: 16px; height: 1px; background: currentColor; position: relative; }
.nav__toggle span::before, .nav__toggle span::after { content: ""; position: absolute; left: 0; width: 16px; height: 1px; background: currentColor; }
.nav__toggle span::before { top: -5px; }
.nav__toggle span::after { top: 5px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { transform: translateY(-5px) rotate(-45deg); }

/* Mobile menu: a dark sheet drawn down from under the header (same easing as the button sweep),
   then the links rise into place one after another, the foot last. Closing is quicker and plain. */
.mobile-menu {
  position: fixed; inset: 0; z-index: 49;
  padding: calc(76px + 32px) var(--gutter) calc(28px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; overflow-y: auto;
  background:
    radial-gradient(120% 55% at 85% 100%, #2a1c11 0%, rgba(42,28,17,0) 70%),
    var(--c-canvas);
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .5s cubic-bezier(.66, 0, .24, 1), visibility 0s .5s;
}
.mobile-menu.is-open {
  visibility: visible; clip-path: inset(0);
  transition: clip-path .7s cubic-bezier(.66, 0, .24, 1), visibility 0s;
}
.mobile-menu__links { display: grid; }
.mobile-menu a.mm-link {
  display: block; overflow: hidden;            /* the mask the label rises out of */
  padding-block: clamp(14px, 2.7svh, 26px);    /* roomier on tall phones, still fits a 568px-high one */
  /* sized so the longest label (SZOLGÁLTATÁSAINK ≈ 8.85em wide) always fits between the gutters */
  font-size: clamp(26px, calc((100vw - 2 * var(--gutter)) / 9.1), 46px); line-height: 1; font-weight: 500; text-transform: uppercase; letter-spacing: -0.015em;
}
.mm-link span {
  display: block;
  transform: translateY(calc(100% + 16px)); opacity: 0;
  transition: transform .3s ease-in, opacity .2s, color .2s;
}
.mm-link + .mm-link { border-top: 1px solid var(--c-hair); }   /* very thin rule between the items */
.mm-link:nth-child(2) { --i: 1; } .mm-link:nth-child(3) { --i: 2; } .mm-link:nth-child(4) { --i: 3; }
.mobile-menu.is-open .mm-link span {
  transform: none; opacity: 1;
  transition: transform .9s cubic-bezier(.2, .7, .2, 1) calc(.22s + var(--i, 0) * .07s),
              opacity .5s ease calc(.22s + var(--i, 0) * .07s), color .2s;
}
.mm-link:active span { color: var(--c-gold); }
@media (hover: hover) { .mm-link:hover span { color: var(--c-gold); } }

.mobile-menu__foot {
  margin-top: auto; padding-top: clamp(16px, 3svh, 32px); display: grid; gap: 12px;
  opacity: 0; transform: translateY(14px);
  transition: opacity .2s, transform .3s ease-in;
}
.mobile-menu.is-open .mobile-menu__foot {
  opacity: 1; transform: none;
  transition: opacity .6s ease .55s, transform .8s cubic-bezier(.2, .7, .2, 1) .55s;
}
.mobile-menu .lang { display: flex; gap: 6px; margin-bottom: 8px; font-size: 13px; font-weight: 400; letter-spacing: .18em; }
.mobile-menu .lang a { padding: 10px 12px 10px 0; }
/* the icon turns into the X in step with the sheet: same curve, .7s opening, .5s closing */
.nav__toggle { transition: border-color .5s cubic-bezier(.66, 0, .24, 1); }
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after { transition: transform .5s cubic-bezier(.66, 0, .24, 1), background-color .25s ease; }
.nav__toggle[aria-expanded="true"], .nav__toggle[aria-expanded="true"] span, .nav__toggle[aria-expanded="true"] span::before, .nav__toggle[aria-expanded="true"] span::after { transition-duration: .7s, .35s; }
.nav__toggle[aria-expanded="true"] { border-color: var(--c-cream); }


@media (min-width: 1024px) {
  .nav__links, .lang, .nav__cta { display: flex; }
  .nav__toggle, .mobile-menu { display: none; }
}
/* small laptops: the tracked menu needs a little less air to fit beside the logo and the CTA */
@media (min-width: 1024px) and (max-width: 1279px) {
  .nav__inner { gap: 16px; }
  .nav__links li + li::before { margin-inline: 13px; }
  .nav__links a { font-size: 12.5px; --ls: .12em; }
  .nav__cta { padding-inline: 16px; letter-spacing: .12em; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
/* Dark wordmark hero with the team cut out (background removed) standing
   on the right in the warm dark, lifted by a soft gold glow behind them.
   Their feet dissolve into the page; the cards sit there. */
.hero {
  --ph-top: 92px;                                        /* figures start below the nav */
  /* left/right edge of the shared band: the gutter, plus the centring margin on screens wider than --max */
  --side: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  --band: calc(min(100vw, var(--max)) - 2 * var(--gutter));   /* width of the band's content */
  --fig-right: var(--side);                              /* same edge as the nav CTA and the left text */
  /* photo width: sized by the screen height, but never more than 44% of the width
     (on near-square screens like 1024×768 it would otherwise squeeze the wordmark) */
  --fig-max: calc(min(100vw, var(--max)) * 0.44);        /* 44% of the screen, or of the band on very wide screens */
  --fig-w: min(calc((100svh - var(--ph-top)) * 0.7356), var(--fig-max));
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  padding: 108px var(--side) var(--gutter);
  background:
    radial-gradient(90% 70% at 20% 90%, #2a1c11 0%, rgba(42,28,17,0) 70%),
    var(--c-canvas);
  overflow: hidden;
  isolation: isolate;
}
.hero__img {
  position: absolute; z-index: -1;
  bottom: 0; right: var(--fig-right);
  height: min(calc(100% - var(--ph-top)), calc(var(--fig-max) / 0.7356)); width: auto; max-width: none;
}
/* studio light: a lighter warm brown backdrop behind the figures (same box as the photo) */
.hero::before {
  content: ""; position: absolute; z-index: -2; pointer-events: none;
  top: var(--ph-top); bottom: 0; right: var(--fig-right);
  aspect-ratio: 1302 / 1770;
  background: radial-gradient(closest-side, rgba(84,58,38,.7) 0%, rgba(58,39,25,.36) 45%, rgba(42,28,17,0) 100%);
  transform: translateY(-6%) scale(1.45);
}
/* feet dissolve into the dark page below */
.hero::after {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 30%;
  background: linear-gradient(180deg, rgba(16,9,4,0) 0%, rgba(16,9,4,.6) 55%, var(--c-canvas) 100%);
  pointer-events: none;
}
.hero__title { align-self: start; }
.hero__wordmark {
  display: block;
  font-size: var(--fs-display);
  line-height: .84;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  font-weight: 500;
}
.hero__wordmark-row { display: flex; align-items: flex-end; gap: clamp(12px, 2vw, 28px); flex-wrap: wrap; }
.hero__city {
  font-size: var(--fs-label); font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--c-gold);
  padding-bottom: .9em;
}

.hero__bottom {
  display: grid; gap: var(--gap);
  grid-template-columns: 1fr;
  align-items: end;
  margin-top: 48px;
}
/* Hero text sits directly on the dark – no boxed "glass" cards */
.hero .card { background: none; border: 0; padding: 0; border-radius: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
/* Desktop: tagline + CTAs + visit line sit right under the wordmark as one group. */
@media (min-width: 900px) {
  /* Left group (wordmark + tagline + CTAs) is centred vertically, nudged
     slightly above true centre (top spacer 0.85fr vs bottom 1fr). */
  .hero { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: .85fr auto auto 1fr; }
  .hero__title { grid-column: 1 / -1; grid-row: 2; }   /* full width so the wordmark is never squeezed by the visit column */
  .hero__bottom { display: contents; }
  .hero__info { grid-column: 1; grid-row: 3; align-self: start; margin-top: clamp(28px, 3.2vw, 52px); }
  /* the wordmark takes the room left of the photo (DENTAL ≈ 3.45em, "Budapest" + air ≈ 140px),
     so on taller screens (16:10 MacBook, 1024×768) it shrinks instead of running into the photo */
  .hero__wordmark {
    font-size: clamp(64px, calc((var(--band) - var(--fig-w) - 140px) / 3.45), var(--fs-display));
  }
  .hero .hero__info { max-width: min(560px, calc(var(--band) - var(--fig-w) - 32px)); }
  /* the two buttons always stay side by side; on smaller laptops their inner padding shrinks instead */
  .hero__actions { flex-wrap: nowrap; }
  .hero__actions .btn { padding-inline: clamp(14px, calc(4.5vw - 26px), 34px); }
}

/* Mobile: wordmark, figures (full width, feet fade out), then the cards */
@media (max-width: 899px) {
  .hero {
    display: block; min-height: 0; padding: 0;
    background:
      radial-gradient(75% 38% at 50% 40%, rgba(84,58,38,.55) 0%, rgba(58,39,25,.28) 45%, rgba(42,28,17,0) 100%),
      var(--c-canvas);
  }
  .hero::before, .hero::after { display: none; }
  .hero__title { padding: 108px var(--gutter) 12px; }
  .hero__img {
    position: static; z-index: auto; display: block;
    width: 100%; height: auto; max-height: 72svh;
    object-fit: contain; object-position: 50% 0;
    -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  }
  .hero__bottom { margin: 0; padding: var(--gap) var(--gutter) var(--gutter); }
}
.card {
  border-radius: var(--r-card);
  padding: 24px;
  background: rgba(16, 9, 4, .55);
  border: 1px solid rgba(64, 55, 46, .9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero__info { max-width: 560px; }
.hero__info .lead { font-size: clamp(20px, 1.1rem + .6vw, 26px); }
.hero__services { margin-top: 10px; color: var(--c-sand); font-size: var(--fs-ui); line-height: 1.5; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Mobile / tablet hero = exactly one screen: wordmark, photo, line, services, both buttons.
   The photo takes whatever height is left; the wordmark fills the line edge to edge
   (width-based) but shrinks on short screens (height-based cap); equal full-width buttons. */
@media (max-width: 899px) {
  .hero {
    display: flex; flex-direction: column;
    height: 100vh; height: var(--hero-h, 100svh); min-height: 560px;   /* --hero-h: screen height locked on load (main.js) */
  }
  .hero__title { flex: none; padding-top: 84px; }
  /* height cap from the VISIBLE height (--hero-vis), not the full hero that now reaches behind the browser bar */
  .hero__wordmark { font-size: min(calc((100vw - 2 * var(--gutter)) / 3.42), calc(var(--hero-vis, var(--hero-h, 100svh)) * .125)); }
  .hero__wordmark-row { row-gap: 6px; }
  .hero__city { margin-left: auto; padding-bottom: 0; }
  .hero__img {
    flex: 1 1 0; min-height: 0; max-height: none; height: auto;
    object-position: 50% 100%;
  }
  /* text starts over the photo's faded lower part */
  .hero__bottom {
    /* the text sits further over the photo's faded lower part (was -44px), so the photo gets more height on real phones,
       where the browser bars leave ~120px less than in a simulator (Marcell, 2026-12-01). --hero-under (main.js): the
       part of the hero behind the browser's bottom bar at load – the buttons stay above it. */
    flex: none; position: relative; margin-top: -80px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom) + var(--hero-under, 0px));
  }
  .hero__info { max-width: none; }
  .hero__actions { flex-direction: column; gap: 10px; margin-top: 20px; }
  .hero__actions .btn { width: 100%; }
}
/* ==========================================================================
   Intro / principles
   ========================================================================== */
.intro__grid { display: grid; gap: 40px; }
.intro__statement { max-width: 22ch; }
.intro__body { display: grid; gap: 28px; max-width: 640px; }
@media (min-width: 900px) {
  .intro__grid { grid-template-columns: 5fr 7fr; gap: var(--gap); }
  .intro__body { justify-self: end; }
}
.principles {
  display: grid; gap: var(--gap);
  margin-top: clamp(56px, 7vw, 96px);
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .principles { grid-template-columns: repeat(3, 1fr); } }
.principle {
  display: grid; gap: 14px; align-content: start;
}
.principle::before { content: ""; width: 40px; height: 1px; background: var(--c-gold); margin-bottom: 8px; }
.principle p { color: var(--c-sand); max-width: 36ch; }
.principle .principle__by { color: var(--c-gold); font-size: var(--fs-ui); font-weight: 500; }

/* ==========================================================================
   Treatments (accordion)
   ========================================================================== */
.treatments { border-bottom: 1px solid var(--c-hair); }
/* the row line is drawn by summary::before (not a border) so it can be animated (see "Szolgáltatások" in Motion) */
.treatment summary::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--c-hair); transform-origin: 0 50%; pointer-events: none; }
.treatment summary {
  position: relative;
  list-style: none; cursor: pointer;
  display: grid;
  grid-template-columns: 1fr 44px;
  align-items: center;
  gap: 12px;
  padding-block: clamp(22px, 2.6vw, 34px);
  transition: color .2s;
}
.treatment summary::-webkit-details-marker { display: none; }
.treatment__title {
  font-size: clamp(26px, 1.2rem + 2.2vw, 51px);
  line-height: .95; text-transform: uppercase; letter-spacing: -0.015em;
}
/* phones: titles that wrap to two lines need air between the lines (accents on the second line touched the first) */
@media (max-width: 899px) { .treatment__title { line-height: 1.24; } }
.treatment__tag { display: none; color: var(--c-sand); font-size: var(--fs-ui); }
.treatment__icon {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--c-cork);
  position: relative; justify-self: end;
  transition: background-color .25s, border-color .25s;
}
.treatment__icon::before, .treatment__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1px; background: var(--c-cream);
  transform: translate(-50%, -50%); transition: transform .3s var(--ease);
}
.treatment__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.treatment[open]:not(.is-closing) .treatment__icon { background: var(--c-cream); border-color: var(--c-cream); }
.treatment[open]:not(.is-closing) .treatment__icon::before, .treatment[open]:not(.is-closing) .treatment__icon::after { background: var(--c-ink); }
.treatment[open]:not(.is-closing) .treatment__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.treatment summary:hover .treatment__title { color: var(--c-gold); }
/* height is animated from main.js; "clip" (not "hidden") keeps the sticky left column working */
.treatment__clip.is-animating { overflow: hidden; overflow: clip; will-change: height; }
@media (min-width: 900px) {
  .treatment summary { grid-template-columns: 1fr minmax(220px, 320px) 44px; gap: var(--gap); }
  .treatment__tag { display: block; }
}

/* Open treatment = a "treatment sheet", built like the price list:
   left, the description as a larger opening statement + the CTA (stays in view while reading);
   right, the points as a ledger – hairline rows, term on the left, explanation on the right.
   No bullets, no three equal columns. (Old 3-column version: _backup/2026-12-01_szolgaltatasok-lenyitva-elott/) */
.treatment__body {
  display: grid; gap: 40px;
  padding: 12px 0 clamp(44px, 5vw, 72px);
}
.treatment__col { display: grid; gap: 14px; align-content: start; }
@media (min-width: 900px) {
  .treatment__body { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px clamp(40px, 6vw, 112px); }
  .treatment__col:first-child { grid-column: 1; grid-row: 1 / span 2; position: sticky; top: 104px; align-self: start; }
  .treatment__col:not(:first-child) { grid-column: 2; }
}
/* Client's own sub-questions read as content headings, not UI labels */
.treatment__col .label { text-transform: none; letter-spacing: 0; font-size: 18px; color: var(--c-cream); }
.treatment__col p, .treatment__col li { color: var(--c-sand); font-size: 16px; }
/* the first paragraph of the description is the opening statement */
.treatment__col:first-child > p:first-child:not(.label),
.treatment__col:first-child > .label + p {
  font-size: clamp(19px, 1rem + .55vw, 24px); line-height: 1.38; color: var(--c-cream); max-width: 34ch;
}
.treatment__col:first-child > p { max-width: 46ch; }
/* the treatment question that opens the description ("Mi a gyökérkezelés?" …): Cormorant Garamond italic – Míra's
   favourite face, as in the Idézet – and a clear step above the opening statement under it (it was 18px, smaller
   than that statement). Cream, not gold: gold stays the rare accent. (Marcell, 2026-12-01) */
.treatment__col:first-child > .label:first-child {
  font-family: "Cormorant Garamond", "Times New Roman", serif; font-style: italic; font-weight: 400;
  font-size: clamp(28px, 1.3rem + 1.3vw, 38px); line-height: 1.1; letter-spacing: 0; color: var(--c-cream);
  margin-bottom: 4px;
}

/* ledger rows */
/* list headings are a clear step above the row terms and carry the only rule; rows have no lines
   between them (the every-row hairlines read as a table – variants: screenshots/kezeles-lista-valtozatok.png) */
.treatment__col:not(:first-child) .label {
  font-size: 26px; line-height: 1.15; letter-spacing: -.01em;
  padding-bottom: 16px; border-bottom: 1px solid var(--c-hair); margin-bottom: 10px;
}
.ticks { display: block; }
.ticks li { padding: 8px 0; color: var(--c-cream); }
.ticks li:has(> strong) { color: var(--c-sand); }
.ticks strong { display: block; color: var(--c-cream); font-weight: 500; }
@media (min-width: 600px) {
  .ticks li:has(> strong) { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4px 28px; align-items: baseline; }
}
.treatment__col .label--next { margin-top: 52px; }   /* second group inside the same column */
/* Notes (the client's "Fontos…" sentences) are set apart from the lists: a small round info mark,
   drawn like the + / − control, and more air above. No side bar (rejected earlier). */
.treatment__note {
  position: relative; max-width: 56ch; margin-top: 22px; padding-left: 36px;
  font-size: var(--fs-ui); line-height: 1.55; color: var(--c-sand);
}
.treatment__note::before {
  content: "i"; content: "i" / "";
  position: absolute; left: 0; top: .1em;
  width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--c-gold);
  display: grid; place-items: center;
  font: italic 500 15px/1 "Cormorant Garamond", "Times New Roman", serif; color: var(--c-gold);
}
.treatment__cta { margin-top: 14px; justify-self: start; }
/* The treatment's button is gold (one treatment is open at a time, so one gold button in the section).
   Phones: it closes the opened treatment, full width, after the lists. The first column dissolves
   into the body grid so the button can be ordered last; spacing is rebuilt with margins.
   Desktop keeps it under the description in the sticky left column. */
@media (max-width: 899px) {
  .treatment__body { gap: 14px; }
  .treatment__col:first-child { display: contents; }
  .treatment__cta { order: 10; margin-top: 36px; justify-self: stretch; min-height: 48px; }
  /* phone rhythm: clear groups instead of evenly spaced lines – more air before each list,
     list headings a step larger than the row terms, roomier rows */
  .treatment__col:not(:first-child) { margin-top: 46px; }
  .treatment__col:not(:first-child) .label { font-size: 22px; line-height: 1.2; padding-bottom: 14px; margin-bottom: 8px; }
  .treatment__col .label--next { margin-top: 46px; }
  .ticks li { padding: 10px 0; }               /* no rules between rows, so the gap separates them */
  .ticks strong { margin-bottom: 2px; }
  .ticks--price li { padding: 16px 0; }
  .treatment__note { margin-top: 26px; }
}
/* Fogékszer: three square crops, the price row from their price list, and who the sentence is from */
.gems { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.gems img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.treatment__col .treatment__by { font-size: var(--fs-ui); color: var(--c-sand); }

/* Gem photos open large. main.js wraps each photo in a button and builds one <dialog>;
   without JS the photos are simply shown. */
.gems__btn { display: block; padding: 0; border: 0; background: none; overflow: hidden; cursor: pointer; }
.gems__btn img { transition: transform .6s var(--ease); }
@media (hover: hover) { .gems__btn:hover img { transform: scale(1.05); } }
/* focus returns here when the large view closes: a hairline instead of the default 2px rounded ring */
.gems__btn:focus-visible { outline: 1px solid var(--c-gold); outline-offset: 3px; border-radius: 0; }

/* the dialog itself is the dark sheet (not ::backdrop), so opening and closing can fade it as one */
.lightbox { border: 0; padding: 0; margin: 0; background: rgba(16, 9, 4, .94); color: var(--c-cream);
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; overflow: hidden; }
.lightbox[open] { display: grid; place-items: center; animation: lb-fade .3s ease both; }
.lightbox::backdrop { background: transparent; }
.lightbox__img { display: block; width: auto; height: auto; max-width: min(92vw, 800px); max-height: 80vh; max-height: 80dvh; animation: lb-rise .45s var(--ease) both; }
.lightbox__count { position: absolute; left: 0; right: 0; bottom: max(22px, env(safe-area-inset-bottom)); text-align: center; font-size: var(--fs-label); letter-spacing: .18em; color: var(--c-sand); }
.lightbox__close, .lightbox__nav {
  position: absolute; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--c-cork); background: rgba(16, 9, 4, .6); color: var(--c-cream); cursor: pointer;
  transition: background-color .25s, border-color .25s, color .25s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--c-cream); border-color: var(--c-cream); color: var(--c-ink); }
.lightbox__close { top: max(18px, env(safe-area-inset-top)); right: 18px; }
.lightbox__close::before, .lightbox__close::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 1px; background: currentColor; }
.lightbox__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.lightbox__close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.lightbox__nav { top: 50%; margin-top: -24px; }
.lightbox__nav--prev { left: 18px; }
.lightbox__nav--next { right: 18px; }
.lightbox__nav::before { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; }
.lightbox__nav--prev::before { transform: translate(-30%, -50%) rotate(-135deg); }
.lightbox__nav--next::before { transform: translate(-70%, -50%) rotate(45deg); }
@media (max-width: 699px) {   /* phones: arrows below the photo, not over it */
  .lightbox__nav { top: auto; margin-top: 0; bottom: max(64px, calc(env(safe-area-inset-bottom) + 52px)); }
  .lightbox__nav--prev { left: calc(50% - 60px); }
  .lightbox__nav--next { right: calc(50% - 60px); }
  .lightbox__img { max-height: 66vh; max-height: 66dvh; }
}
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lb-rise { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.ticks--price li:has(> strong) { display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; align-items: baseline; }   /* name left, price right – on phones too */
.ticks--price strong { margin-bottom: 0; }
.ticks--price { border-top: 1px solid var(--c-hair); }                       /* the price row keeps its rules */
.ticks--price li { padding: 16px 0; border-bottom: 1px solid var(--c-hair); }

/* warm backdrop, as on the approved moodboard (starts as plain canvas under the hero) */
#szolgaltatasok {
  background:
    radial-gradient(85% 75% at 88% 100%, #2a1c11 0%, rgba(42,28,17,0) 70%),
    var(--c-canvas);
}

/* ==========================================================================
   Feature — Invisalign (ORYZO "product reveal": text / object / text)
   ========================================================================== */
.feature { display: grid; align-content: center; }.feature__grid { display: grid; gap: 32px; }
.feature__media { aspect-ratio: 4 / 5; border-radius: var(--r-card); }
.feature__aside { display: grid; gap: 24px; align-content: end; }
@media (min-width: 1024px) {
  .feature__grid { grid-template-columns: 1fr minmax(320px, 1.05fr) 1fr; gap: var(--gap); align-items: stretch; }
  /* no media yet: heading left + lead right, then the four facts in one row, then the CTA
     (no half-empty left column) */
  .feature__grid:not(:has(.feature__media:not([hidden]))) { grid-template-columns: 1fr 1fr; gap: 40px clamp(40px, 5vw, 96px); }
  .feature__grid:not(:has(.feature__media:not([hidden]))) .feature__aside { display: contents; }
  .feature__grid:not(:has(.feature__media:not([hidden]))) .facts { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); }
  .feature__grid:not(:has(.feature__media:not([hidden]))) .fact { border-right: 1px solid var(--c-hair); padding: 20px 20px 20px 0; }
  .feature__grid:not(:has(.feature__media:not([hidden]))) .fact + .fact { padding-left: 20px; }
  .feature__grid:not(:has(.feature__media:not([hidden]))) .fact:last-child { border-right: 0; }
  .feature__grid:not(:has(.feature__media:not([hidden]))) .feature__aside > div:last-child { grid-column: 1 / -1; }
  .feature__head { align-self: start; }
  .feature__media { aspect-ratio: 3 / 4; }
}
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--c-hair); }
.fact { padding: 16px 12px 16px 0; border-bottom: 1px solid var(--c-hair); display: grid; gap: 6px; }
.fact:nth-child(odd) { border-right: 1px solid var(--c-hair); }
.fact:nth-child(even) { padding-left: 16px; }
.fact p { font-size: var(--fs-ui); color: var(--c-sand); line-height: 1.4; }

/* ==========================================================================
   Result — before / after
   ========================================================================== */
.result__grid { display: grid; gap: var(--gap); }
.result__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.result__img { aspect-ratio: 4 / 3; border-radius: var(--r-card); }
.result__img:first-child { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.result__img:last-child { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.result__tag {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  background: rgba(16,9,4,.7); padding: 6px 10px; border-radius: 20px;
}
.result__caption { margin-top: 14px; font-size: var(--fs-ui); color: var(--c-sand); }
.result__text { display: grid; gap: 24px; align-content: end; }
@media (min-width: 1024px) { .result__grid { grid-template-columns: 7fr 4fr; gap: clamp(32px, 4vw, 72px); } }

/* ==========================================================================
   Team
   ========================================================================== */
/* One shared portrait (left, sticky) + both people stacked (right) */
.team { display: grid; gap: clamp(40px, 5vw, 64px); }
.team__photo { margin: 0; }
.team__photo img {
  width: 100%; height: auto; border-radius: var(--r-card);
  filter: sepia(.08) saturate(.94);   /* warms the grey studio backdrop slightly */
}
.team__people { display: grid; gap: clamp(48px, 6vw, 72px); align-content: start; }
@media (min-width: 900px) {
  .team { grid-template-columns: minmax(320px, 5fr) 7fr; gap: clamp(40px, 5vw, 96px); align-items: start; }
  .team__photo { position: sticky; top: 100px; max-width: 520px; }
}
/* Rólunk: one row per person across the full band, sides alternating (reference: Marcell's
   Örökcsokor "about" page). Large uncropped full-length portrait in one half, text in the other,
   both centred in their half, so the rows fill the width evenly on any screen. */
.members { display: grid; gap: clamp(72px, 9vw, 140px); }
.member { display: grid; gap: 28px; }
.member__photo { margin: 0; width: min(100%, 300px); position: relative; isolation: isolate; }
/* hairline frame offset behind the portrait, the same gold-ink line as the price card's frame;
   it steps outward (away from the text): down-left in row 1, down-right in row 2 */
.member__photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  border: 1px solid var(--c-gold-ink); opacity: .55;
  transform: translate(var(--frame-x, 14px), var(--frame-y, 14px));
}
.member__photo img { display: block; width: 100%; height: auto; }
.member__name { font-size: clamp(30px, 1.3rem + 2.4vw, 56px); line-height: .95; font-weight: 500; text-transform: uppercase; letter-spacing: -0.015em; }
.member__role { margin-top: 12px; }
.member .person__head { display: block; }
/* the two personal quotes: Cormorant Garamond italic – "what is a quote is Cormorant italic", as in the Idézet
   (Marcell, 2026-12-01); names stay Hanken caps */
.member .person__quote {
  font-family: "Cormorant Garamond", "Times New Roman", serif; font-style: italic; font-weight: 400;
  font-size: clamp(26px, 1.2rem + 1.4vw, 38px); line-height: 1.18; letter-spacing: 0; max-width: 22ch; margin-top: 6px;
}
/* tablets in portrait (iPad): still stacked, but the photo and a text column are centred as one block */
@media (min-width: 600px) and (max-width: 899px) {
  .member { justify-items: center; }
  .member__photo { width: 360px; }
  .member__text { width: min(100%, 540px); }
}
@media (min-width: 900px) {
  .member { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(40px, 5vw, 96px); align-items: start; }
  .member__photo { width: min(100%, clamp(320px, 30vw, 520px)); justify-self: center; }   /* not sticky (Marcell: felt odd) */
  /* text starts lower so the closed text sits near the photo's middle; opening only grows it downward */
  .member__text { width: min(100%, 580px); justify-self: center; padding-top: clamp(16px, calc(22.5vw - 200px), 190px); }
  .member--flip .member__photo { order: 2; }
  .member__photo { --frame-x: calc(-1 * clamp(16px, 1.6vw, 28px)); --frame-y: clamp(16px, 1.6vw, 28px); }
  .member--flip .member__photo { --frame-x: clamp(16px, 1.6vw, 28px); }
}
/* Idézet (#mosoly): its own dark section between Rólunk and Fogfehérítés (2026-12-01, Marcell): a pause that cuts
   the two light blocks apart. Only the quote, generous height, spread wide (2–3 lines on desktop).
   Cormorant here on purpose (Marcell): the one quote moment on the page, an exception to "Cormorant only in the
   wordmark and the price card". Larger than a Hanken size because Cormorant's x-height is much smaller. */
.quote {
  padding-block: clamp(78px, 9.6vw, 150px);   /* trimmed a touch (Marcell, 2026-12-01) */
  background: radial-gradient(60% 70% at 50% 50%, #2a1c11 0%, rgba(42,28,17,0) 75%), var(--c-canvas);
}
.quote__text {
  margin-inline: auto; max-width: 52ch; text-align: center; text-wrap: balance;   /* wide: 2 long lines on desktop (Marcell: not a narrow centred column) */
  font-family: "Cormorant Garamond", "Times New Roman", serif; font-style: italic;
  font-size: clamp(29px, 1.05rem + 2.2vw, 56px); line-height: 1.38; font-weight: 400; letter-spacing: .035em;   /* variant B, chosen by Marcell (2026-12-01; C = upright was the runner-up) */
  text-transform: none; color: var(--c-cream);
}
.quote__text::before { content: "„"; color: var(--c-gold); }   /* Hungarian quotes: „…” */
.quote__text::after { content: "”"; color: var(--c-gold); }
/* Fogfehérítés (#fogfeherites): the before–after result row, on linen (follows the dark quote, precedes Árlista). */
.smile__row { display: grid; gap: 32px; }
.smile__result { margin: 0; position: relative; width: min(100%, 520px); }
.smile__result img { display: block; width: 100%; height: auto; }
.smile__tag {
  position: absolute; bottom: 14px; left: 14px; padding: 7px 12px;
  background: rgba(16, 9, 4, .72); color: #ffedd7;   /* fixed cream: sits on the photo, also inside linen */
  font-size: 12px; font-weight: 400; letter-spacing: .18em; text-transform: uppercase;
}
.smile__tag--after { left: auto; right: 14px; }
.smile__text { display: grid; gap: 18px; align-content: start; justify-items: start; }
.smile__title { font-size: clamp(28px, 1.2rem + 1.8vw, 46px); line-height: 1.02; font-weight: 500; text-transform: uppercase; letter-spacing: -0.015em; max-width: 16ch; }
.smile__lead { color: var(--c-sand); max-width: 42ch; font-size: 17px; }
.smile__cta { margin-top: 10px; }
@media (min-width: 600px) and (max-width: 899px) {
  .smile__row { justify-items: center; }
  .smile__text { width: min(100%, 540px); }
}
@media (min-width: 900px) {
  .smile__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(40px, 5vw, 96px); align-items: center; }
  .smile__row--flip .smile__result { order: 2; justify-self: center; }
  .smile__row--flip .smile__text { justify-self: center; width: min(100%, 520px); }
}
.person { display: grid; gap: 22px; align-content: start; }
.person__head { display: flex; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; }
.person__quote { font-size: clamp(20px, 1.1rem + .5vw, 24px); line-height: 1.3; max-width: 28ch; }
.person__focus { font-size: var(--fs-ui); color: var(--c-sand); }
.person__intro { color: var(--c-sand); max-width: 56ch; }
.person__quote::before { content: "„"; color: var(--c-gold); margin-right: 2px; }   /* Hungarian quotes: „…” */
.person__quote::after { content: "”"; color: var(--c-gold); margin-left: 1px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: var(--fs-micro); font-weight: 500; text-transform: uppercase; letter-spacing: .06em;
  padding: 7px 12px; border: 1px solid var(--c-cork); border-radius: 40px; color: var(--c-sand);
}
/* "Bővebben": same voice as the buttons and the nav (thin, tracked caps); the underline draws in
   on hover like the nav links; the + turns into × when open; opening/closing is animated in main.js */
.more summary {
  list-style: none; cursor: pointer; display: inline-flex; gap: 14px; align-items: center;
  font-size: 13px; font-weight: 400; text-transform: uppercase; letter-spacing: .18em;
  padding-block: 6px 7px;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat; background-size: calc(100% - 26px) 1px; background-position: left 0 bottom 0;
}
.more summary::-webkit-details-marker { display: none; }
.more__icon { position: relative; width: 12px; height: 12px; flex: none; }
.more__icon::before, .more__icon::after {
  content: ""; position: absolute; left: 0; top: 50%; width: 12px; height: 1px; background: var(--c-gold-ink);
  transition: transform .6s cubic-bezier(.66, 0, .24, 1);
}
.more__icon::after { transform: rotate(90deg); }
.more.is-open .more__icon::before { transform: rotate(45deg); }
.more.is-open .more__icon::after { transform: rotate(135deg); }
.more__body { display: grid; gap: 14px; padding-top: 20px; color: var(--c-sand); font-size: 16px; max-width: 60ch; }
.more__clip { overflow: hidden; }

/* ==========================================================================
   Clinic gallery
   ========================================================================== */
.gallery { display: grid; gap: 6px; grid-template-columns: 1fr 1fr; }
.gallery .ph { border-radius: var(--r-card); aspect-ratio: 1 / 1; }
.gallery .g-wide { grid-column: span 2; aspect-ratio: 16 / 9; }
@media (min-width: 900px) {
  .gallery { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(220px, 26vw)); }
  .gallery .ph { aspect-ratio: auto; }
  .gallery .g-wide { grid-column: auto; grid-row: span 2; }
}

/* ==========================================================================
   Prices — "menu card": the client's own Instagram price list, translated.
   A linen printed card with a double gold frame, set alone in the dark.
   ========================================================================== */
.menu-card {
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  position: relative;
  max-width: 820px; margin-inline: auto;
  background: var(--c-paper); color: var(--c-ink);
  border: 1px solid var(--c-gold-ink);
  padding: clamp(36px, 4vw, 56px) clamp(22px, 4vw, 56px) clamp(24px, 3vw, 40px);
}
.menu-card::before {
  content: ""; position: absolute; inset: clamp(6px, 1vw, 12px);
  border: 1px solid rgba(110, 82, 41, .55); pointer-events: none;
}
.menu-card__head { text-align: center; margin-bottom: clamp(28px, 3vw, 40px); }
.menu-card__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(38px, 1.6rem + 2vw, 56px); line-height: 1; letter-spacing: -0.005em;
}
.menu-card__script {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(22px, 1rem + .8vw, 28px); line-height: 1;
  color: var(--c-gold-ink); margin-top: 6px;
}

/* Two columns with a hairline between them, like the printed list */
.price-groups { column-gap: clamp(28px, 3.5vw, 48px); }
@media (min-width: 760px) {
  .price-groups { columns: 2; column-rule: 1px solid rgba(110, 82, 41, .35); }
}
.price-group { break-inside: avoid; margin-bottom: clamp(24px, 2.5vw, 32px); }
.price-group__title {
  font-family: var(--serif); font-weight: 500; font-size: 14px;
  text-transform: uppercase; letter-spacing: .14em; text-align: center;
  margin-bottom: 8px;
}
.price-row {
  display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: baseline;
  padding-block: 3px;
  font-family: var(--serif); font-size: 17px; line-height: 1.3;
}
.price-row__name { font-weight: 400; }
.price-row__val { font-weight: 500; white-space: nowrap; text-align: right; font-variant-numeric: lining-nums tabular-nums; }
.price-note {
  font-family: var(--serif); font-style: italic; font-size: 14px;
  color: var(--c-ink-soft); text-align: center; padding-block: 6px 8px;
}
.menu-card__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: clamp(24px, 3vw, 36px); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { display: grid; gap: clamp(48px, 6vw, 80px); }
@media (min-width: 1024px) { .contact { grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 96px); } }
/* while the form is hidden (no backend yet): heading + phone left, the details list right */
@media (min-width: 1024px) {
  .contact:has(> .form[hidden]) { grid-template-columns: 1fr; }
  .contact:has(> .form[hidden]) > div { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(40px, 5vw, 96px); align-items: start; }
  .contact:has(> .form[hidden]) > div > * { grid-column: 1; justify-self: start; }
  .contact:has(> .form[hidden]) .contact__list { grid-column: 2; grid-row: 1 / span 4; justify-self: stretch; margin-top: 8px; }
}
.contact__phone {
  display: inline-block;
  font-size: clamp(36px, 1.6rem + 3vw, 64px); line-height: 1; letter-spacing: -0.02em; font-weight: 500;
  margin-block: 28px 8px;
  transition: color .2s;
}
.contact__phone:hover { color: var(--c-gold); }
.contact__list { display: grid; margin-top: 40px; border-top: 1px solid var(--c-hair); }
.contact__item {
  display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px;
  padding-block: 18px; border-bottom: 1px solid var(--c-hair);
}
/* small phones: label above the value (the e-mail address did not fit beside a 120px label at 360px) */
@media (max-width: 479px) { .contact__item { grid-template-columns: minmax(0, 1fr); gap: 6px; } }
.contact__item dd { overflow-wrap: anywhere; }
/* very small phones (320px): long words and the footer e-mail may break instead of overflowing */
@media (max-width: 359px) {
  .h2 { hyphens: auto; overflow-wrap: anywhere; }
  .footer__col { min-width: 0; overflow-wrap: anywhere; }
}
.contact__item dt { color: var(--c-sand); }
.contact__item dd { margin: 0; }
.contact__item dd a:hover { color: var(--c-gold); }

/* Kapcsolat as its own page (kapcsolat.html, 2026-12-01): the first section starts under the fixed nav */
.contact-page {
  padding-top: calc(76px + var(--section-y));
  background: radial-gradient(70% 80% at 85% 0%, #2a1c11 0%, rgba(42,28,17,0) 70%), var(--c-canvas);
}
.contact-page .h2 { font-size: clamp(40px, 1.6rem + 4vw, 88px); line-height: .95; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 3vw, 44px); }   /* no big phone number here (Marcell): the buttons follow the title */
@media (max-width: 479px) { .contact__actions .btn { flex: 1 1 0; } }
.contact__route { display: inline-block; margin-top: 10px; }
.contact__social { display: flex; gap: 18px; flex-wrap: wrap; }
/* the page you are on, in the header and the mobile menu */
.nav__links a[aria-current], .mm-link[aria-current] { color: var(--c-gold); }

/* Map: sharp edges, no frame and no link row under it (Marcell: not needed; Google's own "Megnyitás a Térképen" sits in the map, "Útvonaltervezés" is next to the address) */
.map { margin: 0; }
.map__frame {
  display: block; width: 100%; aspect-ratio: 4 / 5; border: 0; background: #e8e0d4;
  filter: grayscale(.35) sepia(.12);   /* calmer, warmer than Google's default colours; a light touch so it stays readable */
}
@media (min-width: 600px) { .map__frame { aspect-ratio: 4 / 3; } }
@media (min-width: 900px) { .map__frame { aspect-ratio: 21 / 9; } }
.days { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.day {
  font-size: var(--fs-micro); font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--c-cork); color: var(--c-drift);
}
.day.is-open { border-color: var(--c-gold); color: var(--c-gold); }

/* Form — Mercury-style surface, ORYZO underline inputs */
.form { background: var(--c-surface); border-radius: var(--r-card); padding: clamp(24px, 3vw, 40px); display: grid; gap: 28px; }
.form__row { display: grid; gap: 28px; }
/* grid items may shrink below their content (the select's longest option used to push the
   form wider than a 360px phone) */
.form, .form__row, .field, .field select, .field input, .field textarea { min-width: 0; }
#kapcsolat .wrap > *, #kapcsolat .wrap > * > * { min-width: 0; }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-size: var(--fs-label); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; color: var(--c-sand); }
.field input, .field select, .field textarea {
  width: 100%;
  background: transparent;
  border: 0; border-bottom: 1px solid var(--c-drift); border-radius: 0;
  color: var(--c-cream);
  font: 400 17px/1.4 var(--f-sans);
  padding: 10px 0;
  transition: border-color .2s;
  appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--c-sand) 50%), linear-gradient(135deg, var(--c-sand) 50%, transparent 50%);
  background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.field select option { background: var(--c-surface); color: var(--c-cream); }
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: var(--c-drift); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--c-gold); }
.consent { display: grid; grid-template-columns: 20px 1fr; gap: 12px; font-size: var(--fs-ui); color: var(--c-sand); align-items: start; }
.consent input { accent-color: var(--c-gold); width: 18px; height: 18px; margin: 2px 0 0; }
.consent a { text-decoration: underline; text-underline-offset: 3px; }
.form__foot { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.form__status { font-size: var(--fs-ui); color: var(--c-gold); min-height: 1.4em; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { padding: clamp(56px, 7vw, 96px) 0 calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--c-hair); }
.footer__word {
  font-size: calc((min(100vw, var(--max)) - 2 * var(--gutter)) / 6.95); line-height: .84; letter-spacing: -0.035em;   /* fills the band edge to edge */
  white-space: nowrap;
  text-transform: uppercase; font-weight: 500; color: var(--c-bark);
  user-select: none;
}
/* "Budapest" small and gold at the bottom right of the big wordmark, as in the hero (Marcell, 2026-12-01) */
.footer__brand { display: flex; flex-direction: column; margin-bottom: 48px; user-select: none; }
.footer__city {
  align-self: flex-end; margin-top: clamp(8px, 1vw, 14px);
  font-size: var(--fs-label); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--c-gold);
}
.footer__grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
@media (max-width: 479px) { .footer__grid { gap: 28px 18px; } }   /* room for the e-mail address beside the other column */
@media (min-width: 900px) { .footer__grid { grid-template-columns: repeat(4, 1fr); } }
.footer__col { display: grid; gap: 10px; align-content: start; font-size: var(--fs-ui); }
.footer__col .label { color: var(--c-sand); margin-bottom: 6px; }
.footer__col a:hover { color: var(--c-gold); }
/* hover: gold + the same underline as the header menu, drawn in from the left and out to the right with the same
   timing (Marcell, 2026-12-01). On social links it sits under the name only, not the icon. No size change: it would
   make the neighbouring lines jump. */
.footer__col > a { justify-self: start; }
.footer__col > a:not(.footer__social):not(.footer__addr), .footer__social span {
  padding-bottom: 3px;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat; background-size: 0 1px; background-position: right 0 bottom 0;
  transition: background-size .8s cubic-bezier(.66, 0, .24, 1), color .2s;
}
.footer__col > a:not(.footer__social):not(.footer__addr):hover, .footer__col > a:not(.footer__social):not(.footer__addr):focus-visible,
.footer__social:hover span, .footer__social:focus-visible span { background-size: 100% 1px; background-position: left 0 bottom 0; }
/* the address itself opens Google Maps (2026-12-01, Marcell: no embedded map in the footer – it squeezed the column).
   Hover: the address turns gold, and ONE underline is drawn under the "Térkép ↗" line below it (an underline under
   each of the three address lines started three separate lines at once – Marcell: not good). */
.footer__addr { display: grid; gap: 10px; justify-items: start; }
.footer__addr-map {
  font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: .12em; color: var(--c-sand);
  padding-bottom: 3px;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat; background-size: 0 1px; background-position: right 0 bottom 0;
  transition: background-size .8s cubic-bezier(.66, 0, .24, 1), color .2s;
}
.footer__addr:hover .footer__addr-map, .footer__addr:focus-visible .footer__addr-map { color: var(--c-gold); background-size: 100% 1px; background-position: left 0 bottom 0; }
/* phones: Navigáció + Szolgáltatásaink on top, Cím + Social below (Marcell, 2026-12-01); desktop keeps its order */
@media (max-width: 899px) {
  .footer__grid > :nth-child(2) { order: 1; }   /* Navigáció */
  .footer__grid > :nth-child(3) { order: 2; }   /* Szolgáltatásaink */
  .footer__grid > :nth-child(1) { order: 3; }   /* Cím */
  .footer__grid > :nth-child(4) { order: 4; }   /* Social */
}
/* social links with their icons */
.footer__social { display: inline-flex; align-items: center; gap: 10px; }
.footer__icon { width: 18px; height: 18px; flex: none; }
.footer__legal {
  margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--c-hair);
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
  font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: .06em; color: var(--c-drift);
}
.footer__legal a:hover { color: var(--c-cream); }

/* ==========================================================================
   Motion
   ========================================================================== */
/* Intro (2026-12-01, Marcell: "szépen animálva, soft, lassú"): one slow, soft overture on load, about 2.5 s.
   1 the warm studio light behind the figures comes up, 2 DENTAL then STUDIO rise out of the dark and sharpen,
   3 the figures drift up into focus, 4 "Budapest", the line, the services and the buttons follow one by one,
   5 the header settles in from above. Everything waits in its first frame until the display font is in
   (html.is-ready, set in the <head>), so nothing swaps face mid-motion. Without JS nothing is hidden. */
:root { --ease-soft: cubic-bezier(.16, 1, .3, 1); }
/* v2 (2026-12-01, Marcell: v1 was "kicsit bohókás"): far fewer moving parts. v1 had the huge letters rising + blurring
   + clipping at once, the photo floating up 32px out of a blur, the line / services / buttons arriving one by one and
   the menu items dropping in one by one. Now: the light comes up; the wordmark is only revealed from below (no rise,
   no blur – "developed"); the photo fades in where it stands and settles from a hint of scale; text + buttons arrive
   as ONE block; the header simply fades in, all at once. */
@media (prefers-reduced-motion: no-preference) {
  /* v3 (Marcell): v2 a little fast – everything slower; the header intro of v1 is back (he liked it) */
  .js .hero::before { animation: hero-light 3.4s .05s var(--ease-soft) both; }
  .js .hero__wordmark { animation: hero-reveal 1.4s .1s var(--ease-soft) both; }   /* was 2.5s – Marcell: the wordmark got too slow */
  .js .hero__wordmark-row .hero__wordmark { animation-delay: .22s; }
  .js .hero__img { transform-origin: 50% 100%; animation: hero-settle 3.4s .4s cubic-bezier(.25, .6, .3, 1) both; }
  .js .hero__city { animation: hero-fade 1.2s .7s var(--ease-soft) both; }   /* "Budapest" belongs to the wordmark, so it comes right after it */
  .js .hero__info { animation: hero-fade 2.2s 1.35s var(--ease-soft) both; }
  .js .nav__brand { animation: nav-in 1.4s .8s var(--ease-soft) both; }
  .js .nav__links li { animation: nav-in 1.4s .9s var(--ease-soft) both; }
  .js .nav__links li:nth-child(2) { animation-delay: .97s; }
  .js .nav__links li:nth-child(3) { animation-delay: 1.04s; }
  .js .nav__links li:nth-child(4) { animation-delay: 1.11s; }
  .js .nav__right { animation: nav-in 1.4s 1.2s var(--ease-soft) both; }
  /* hold everything in its first frame until the font is ready */
  .js:not(.is-ready) .hero::before, .js:not(.is-ready) .hero *, .js:not(.is-ready) .nav * { animation-play-state: paused; }
}
/* Hero "Időpontfoglalás": once the intro has settled, one soft warm glint passes across the gold button, left to right,
   once – the light of the Idézet in miniature (Marcell, 2026-12-01). Only this button, only on load. */
.hero__actions .btn--gold { position: relative; }
@media (prefers-reduced-motion: no-preference) {
  .js .hero__actions .btn--gold::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(105deg, rgba(255, 246, 228, 0) 38%, rgba(255, 246, 228, .62) 50%, rgba(255, 246, 228, 0) 62%) 130% 0 / 260% 100% no-repeat;
    animation: btn-glint 2s 2.6s cubic-bezier(.45, 0, .25, 1) both;   /* was 1.3s – Marcell: a bit slower */
  }
  .js:not(.is-ready) .hero__actions .btn--gold::before { animation-play-state: paused; }
  .no-intro .hero__actions .btn--gold::before { animation: none; opacity: 0; }
}
@media (prefers-reduced-motion: no-preference) and ((max-width: 899px) or (pointer: coarse)) {
  .js .hero__actions .btn--gold::before { animation-delay: 2.2s; }
}
/* Header "Időpontfoglalás": the same glint, ONCE, at the moment the hero button scrolls out of view – when the header
   button becomes the booking button ("you can book here too"). Nothing after that (Marcell, 2026-12-01: "elég ekkor").
   main.js adds .is-glint. */
.nav__cta { position: relative; }
@media (prefers-reduced-motion: no-preference) {
  .nav__cta.is-glint::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(105deg, rgba(255, 246, 228, 0) 38%, rgba(255, 246, 228, .62) 50%, rgba(255, 246, 228, 0) 62%) 130% 0 / 260% 100% no-repeat;
    animation: btn-glint 2s .25s cubic-bezier(.45, 0, .25, 1) both;
  }
}
@keyframes btn-glint {
  0%   { opacity: 0; background-position: 130% 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { opacity: 0; background-position: -30% 0; }
}
/* Kapcsolat page intro (2026-12-01, Marcell: "ott sincsenek animációk"): the hero language on load – the "Kapcsolat"
   title is revealed from below like the hero wordmark, then the buttons, then the details list as ONE block; the map fades in
   when it arrives (data-reveal="soft"). Waits for the font like the hero (html.is-ready). */
@media (prefers-reduced-motion: no-preference) {
  .js .contact-page .h2 { animation: hero-reveal 1.6s .1s var(--ease-soft) both; }
  .js .contact-page .contact__actions { animation: hero-up 1.3s .55s var(--ease-soft) both; }
  .js .contact-page .contact__list { animation: hero-up 1.4s .7s var(--ease-soft) both; }
  .js:not(.is-ready) .contact-page * { animation-play-state: paused; }
}
/* Opened at a point further down (html.no-intro: the URL has a #…, e.g. index.html#kezeles-fogekszer from the
   Kapcsolat page footer): no intro at all – the reader is not at the top, so a header dropping in and a hero playing
   off-screen only looked odd (Marcell, 2026-12-01). The header is simply there, its background without a fade. */
.no-intro .nav__brand, .no-intro .nav__links li, .no-intro .nav__right,
.no-intro .hero::before, .no-intro .hero *, .no-intro .contact-page * { animation: none !important; }
.no-intro .nav { transition: none; }
/* Page change (2026-12-01): when a link leads to the other page, the current one fades into the dark background
   first (main.js adds html.is-leaving, then navigates ~0.35 s later), so there is no hard jump; the new page then
   plays its own intro. */
/* only the content fades – the header is the same on both pages, so it stays where it is (Marcell, 2026-12-01: the
   header vanished, came back and animated again) */
html.is-leaving main, html.is-leaving .footer { opacity: 0; transition: opacity .35s ease; }
/* arriving from the other page: the header neither drops in again nor redraws its underline / background */
.from-site .nav__brand, .from-site .nav__links li, .from-site .nav__right { animation: none !important; }
.nav-still .nav, .nav-still .nav__links a, .nav-still .mm-link { transition: none !important; }
@keyframes hero-light {
  from { opacity: 0; transform: translateY(-2%) scale(1.2); }
  to   { opacity: 1; transform: translateY(-6%) scale(1.45); }   /* = the resting .hero::before transform */
}
@keyframes hero-reveal {
  from { opacity: 0; clip-path: inset(100% -5% -10% -5%); }
  45%  { opacity: 1; }
  to   { opacity: 1; clip-path: inset(-10% -5% -10% -5%); }
}
@keyframes hero-settle { from { opacity: 0; transform: scale(1.035); } to { opacity: 1; transform: none; } }
@keyframes hero-fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes nav-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes hero-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
/* Phones / tablets (Marcell: "ne terheljük túl telefonon"): the calm v2 uses no blur at all (only opacity, a clip and
   transforms, cheap for the GPU); on phones the sequence is just a little quicker so the buttons are usable sooner. */
@media (prefers-reduced-motion: no-preference) and ((max-width: 899px) or (pointer: coarse)) {
  .js .hero__img { animation-duration: 2.8s; animation-delay: .3s; }
  .js .hero__info { animation-delay: 1.05s; }
}
/* Scroll reveal infrastructure (main.js: [data-reveal] → .is-in under html.reveal-ready) is kept for later sections.
   On Rólunk a timed, staggered reveal was tried and dropped (Marcell: too fast, looked "generative AI"). */
/* Rólunk (2026-12-01, v4, Marcell: "jelenjen meg animálva, ne görgetésre"): plays by itself, once, when the row comes
   into view (main.js: [data-reveal] → .is-in) – the same slow, soft language as the hero intro. The portrait fades in,
   rises a little and (desktop) sharpens out of a slight blur; the text block follows as ONE piece, a bit later.
   No curtain, no line-by-line stagger (v1, dropped), no scroll-scrubbing (v2 parallax, v3 scroll fade, dropped). */
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready .member .member__photo { transition: opacity 1.8s var(--ease-soft), transform 2s var(--ease-soft), filter 1.8s var(--ease-soft); }
  .reveal-ready .member:not(.is-in) .member__photo { opacity: 0; transform: translateY(30px); filter: blur(6px); }
  .reveal-ready .member .member__text { transition: opacity 1.7s .45s var(--ease-soft), transform 1.9s .45s var(--ease-soft); }
  .reveal-ready .member:not(.is-in) .member__text { opacity: 0; transform: translateY(22px); }
}
/* Generic soft reveal ([data-reveal="soft"], 2026-12-01): the Rólunk language for blocks – plays once by itself when
   the block comes into view: a slow fade with a small rise. No blur (these blocks are large). Used on the Szolgáltatások heading + list (the Árlista card has its own Rólunk-style rules below) (whose row lines keep their scroll-drawn hairline on top of this). */
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready [data-reveal="soft"] { transition: opacity 1.6s var(--ease-soft), transform 1.9s var(--ease-soft); }
  .reveal-ready [data-reveal="soft"]:not(.is-in) { opacity: 0; transform: translateY(26px); }
}
/* Idézet – the "extra" (2026-12-01, Marcell): light on gilded lettering. The sentence waits almost in the dark; when it
   arrives, one soft warm light glides across it left to right (~3.5 s, once). Where the light has passed the letters stay
   lit cream; at its edge they catch a moment of gold. The gold „ ” marks appear last. One gradient on one short text
   block (background-clip: text), so it stays light on phones too. Without JS / reduced motion: plain cream text. */
/* v3 (Marcell: the light seemed to stop at the end of a line and restart late; still started late; the quote marks
   should not wait). Now one continuous, even-paced light: the gradient is set up so its gold point is exactly at the
   start of a line at 0% and just past its end at 100% (background 224% wide so it always covers the whole line –
   a narrower one left letters at the edges without colour, i.e. invisible; position 100% → 0%), the timing is
   linear, and the next line starts as the previous one leaves the text (delay = line index × duration × 0.82) – like the eye
   moving to the next line. Starts as the sentence first appears (data-reveal-at="2"). The gold „ ” are there from the start. */
@media (prefers-reduced-motion: no-preference) {
  .quote__text { --line-t: 1s; }   /* was 1.35s – Marcell: a bit slow next to the other animations */
  .reveal-ready .quote__line {
    color: transparent;
    background: linear-gradient(100deg, var(--c-cream) 0%, var(--c-cream) 44.6%, #f2d49c 50%, rgba(255, 237, 215, .16) 55.4%, rgba(255, 237, 215, .16) 100%) 100% 0 / 224% 100% no-repeat;
    -webkit-background-clip: text; background-clip: text;
  }
  .reveal-ready .quote__text.is-in .quote__line { animation: quote-light var(--line-t) calc(var(--i, 0) * var(--line-t) * .82) linear forwards; }
  .reveal-ready .quote__text.is-done .quote__line { animation: none; background: none; color: var(--c-cream); }
}
/* phones: shorter lines, so each takes less time */
@media (prefers-reduced-motion: no-preference) and (max-width: 899px) {
  .quote__text { --line-t: .72s; }
}
@keyframes quote-light { from { background-position: 100% 0; } to { background-position: 0% 0; } }
/* Szolgáltatások rows (2026-12-01, v3): like Rólunk, each row plays by itself, once, when it has really arrived
   (main.js trigger line 14% above the bottom edge): its hairline is drawn left to right and the title with its + icon
   slides in a touch from the left and fades up. Rows arriving together start 0.09 s apart (--d from main.js), so a
   fast scroll still shows the motion where the reader lands. (v1/v2 tied this to the scroll position, which on a
   fast scroll jumped straight to the end – Marcell: "mintha nem menne az animáció".) */
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready .treatment summary::before { transition: transform 1.6s var(--ease-soft) var(--d, 0s); }
  .reveal-ready .treatment:not(.is-in) summary::before { transform: scaleX(0); }
  .reveal-ready .treatment summary > * {
    transition: opacity 1.5s var(--ease-soft) calc(var(--d, 0s) + .15s), transform 1.7s var(--ease-soft) calc(var(--d, 0s) + .15s);
  }
  .reveal-ready .treatment:not(.is-in) summary > * { opacity: 0; transform: translateX(-18px); }
}
/* Árlista (2026-12-01, v3, Marcell: "úgy jöjjön be, mint a Rólunk"): the same two steps as a Rólunk row – first the
   card itself fades in, rises a little and (desktop) sharpens out of a slight blur, then its content follows as ONE
   piece about 0.45 s later. Plays once, by itself, when the card comes into view. */
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready .menu-card { transition: opacity 1.8s var(--ease-soft), transform 2s var(--ease-soft), filter 1.8s var(--ease-soft); }
  .reveal-ready .menu-card:not(.is-in) { opacity: 0; transform: translateY(30px); filter: blur(6px); }
  .reveal-ready .menu-card > * { transition: opacity 1.7s .45s var(--ease-soft), transform 1.9s .45s var(--ease-soft); }
  .reveal-ready .menu-card:not(.is-in) > * { opacity: 0; transform: translateY(22px); }
}
/* Fogfehérítés (2026-12-01): the Rólunk language – the before–after photo fades in, rises a little and (desktop)
   sharpens out of a slight blur; the text block follows as ONE piece about 0.45 s later. The one small extra, tied
   to the content: the "Előtte" tag appears once the photo has settled, then "Utána", so the eye reads the result
   left to right. (No animation that "whitens" the teeth – that would fake the result.) */
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready .smile__row .smile__result { transition: opacity 1.8s var(--ease-soft), transform 2s var(--ease-soft), filter 1.8s var(--ease-soft); }
  .reveal-ready .smile__row:not(.is-in) .smile__result { opacity: 0; transform: translateY(30px); filter: blur(6px); }
  .reveal-ready .smile__row .smile__text { transition: opacity 1.7s .45s var(--ease-soft), transform 1.9s .45s var(--ease-soft); }
  .reveal-ready .smile__row:not(.is-in) .smile__text { opacity: 0; transform: translateY(22px); }
  .reveal-ready .smile__row .smile__tag { transition: opacity 1.1s var(--ease-soft) 1.15s, transform 1.3s var(--ease-soft) 1.15s; }
  .reveal-ready .smile__row .smile__tag--after { transition-delay: 1.6s; }
  .reveal-ready .smile__row:not(.is-in) .smile__tag { opacity: 0; transform: translateY(8px); }
}
/* Lábléc (2026-12-01): the page closes the way it opens – the large, dim "DENTAL STUDIO" rises out of the dark with
   the same motion as the hero wordmark (revealed from below, no rise, no blur – calm v2), then the columns
   follow as ONE block, then the bottom line. Plays once when the footer comes into view (on both pages). */
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready .footer .footer__word { transition: clip-path 1.7s var(--ease-soft), opacity 1.1s var(--ease-soft); }
  .reveal-ready .footer:not(.is-in) .footer__word { opacity: 0; clip-path: inset(100% -5% -10% -5%); }
  .reveal-ready .footer.is-in .footer__word { clip-path: inset(-10% -5% -10% -5%); }
  .reveal-ready .footer .footer__grid { transition: opacity 1.6s var(--ease-soft) .5s, transform 1.8s var(--ease-soft) .5s; }
  .reveal-ready .footer .footer__legal { transition: opacity 1.4s var(--ease-soft) .8s; }
  .reveal-ready .footer:not(.is-in) .footer__grid { opacity: 0; transform: translateY(22px); }
  .reveal-ready .footer:not(.is-in) .footer__legal { opacity: 0; }
  .reveal-ready .footer .footer__city { transition: opacity 1.3s var(--ease-soft) .75s, transform 1.4s var(--ease-soft) .75s; }
  .reveal-ready .footer:not(.is-in) .footer__city { opacity: 0; transform: translateY(8px); }
}
/* phones / tablets: no blur */
@media (prefers-reduced-motion: no-preference) and ((max-width: 899px) or (pointer: coarse)) {
  .reveal-ready .member .member__photo { transition: opacity 1.5s var(--ease-soft), transform 1.7s var(--ease-soft); }
  .reveal-ready .member:not(.is-in) .member__photo, .reveal-ready .menu-card:not(.is-in), .reveal-ready .smile__row:not(.is-in) .smile__result { filter: none; }
  .reveal-ready .smile__row .smile__result { transition: opacity 1.5s var(--ease-soft), transform 1.7s var(--ease-soft); }
  .reveal-ready .smile__row .smile__text { transition-delay: .3s; }
  .reveal-ready .menu-card { transition: opacity 1.5s var(--ease-soft), transform 1.7s var(--ease-soft); }
  .reveal-ready .menu-card > * { transition-delay: .3s; }
  .reveal-ready .member .member__text { transition-delay: .3s; }
}
/* RULE (2026-12-01, Marcell OK): every scroll-linked fade/draw is finished by the time the element is fully on screen
   (large blocks: "entry 100%"; small rows/headings: within ~200px of scrolling), so a reader who stops never sees
   half-faded content – only something just entering at the very bottom edge is mid-way. Parallax may run on. */
@keyframes soft-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation-duration: .01ms !important; }
}
