/* Phanera – termékoldal (v3: hosszabb, részletjelenetek, „előhívás”-motívum; a v2 rendszerére épül)
   Elv: egy képernyő, egy gondolat. Fehér alap, sötét csak ott, ahol a fény dráma (405 nm, plazma).
   Betűk: Instrument Sans (minden szöveg, 450 és 600) + Newsreader dőlt (csak a finálé és a kiemelések).
   Skála: display · headline · statement · body · caption – más méret nincs. */

@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/InstrumentSans-VF.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/Newsreader-VF.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/Newsreader-Italic-VF.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  /* v3: a márka-tokenek (12_Brand/assets/phanera_tokens.css) – anyagszínek */
  --ph-graphite-900: #1D1D1F;
  --ph-graphite-700: #3A3A3D;
  --ph-steel: #6E6E73;
  --ph-alu-400: #A7A9AC;
  --ph-alu-200: #D4D6D8;
  --ph-mist: #F5F5F7;
  --ph-zirconia: #FAF9F6;
  --ph-white: #FFFFFF;
  /* jelzőszínek – egyetlen akcentus a 405 Ibolya; porfirin/pyoverdin csak adat és fluoreszcencia */
  --ph-violet: #5B3DF5;
  --ph-violet-lt: #9D86FF;
  --ph-porphyrin: #FF6B6F;
  --ph-pyoverdin: #46E3C8;
  /* az oldal szerepnevei a tokenekre képezve */
  --white: var(--ph-white);
  --mist: var(--ph-mist);
  --ink: var(--ph-graphite-900);
  --ink-2: var(--ph-steel);
  --black: var(--ph-graphite-900);
  --snow: var(--ph-mist);
  --ash: var(--ph-alu-400);
  --uv: var(--ph-violet-lt);      /* sötét alapon */
  --violet: var(--ph-violet);     /* világos alapon */
  --porphyrin: var(--ph-porphyrin);
  --pyoverdin: var(--ph-pyoverdin);

  --sans: "Instrument Sans", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;

  /* a skála – öt fokozat */
  --fs-display: clamp(64px, 10.4vw, 168px);
  --fs-headline: clamp(44px, 6.4vw, 104px);
  --fs-statement: clamp(32px, 4.3vw, 68px);
  --fs-body: clamp(19px, 1.45vw, 23px);
  --fs-caption: 14px;
  /* márkakönyv: öt fokozat, több nincs – a név és a mért számok is a display fokozatot használják */
  --fs-mega: var(--fs-display);
  --fs-figure: var(--fs-display);
  --fs-label: 12px;

  --gutter: clamp(20px, 6vw, 96px);
  --nav-h: 48px;
  --ease: cubic-bezier(.16, 1, .3, 1);

  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.47;
  font-weight: 450;
  letter-spacing: -.008em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  overflow-x: clip;
}
img, svg, canvas { display: block; }
a { color: inherit; }
p, ul, ol { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; }
::selection { background: rgba(91, 61, 245, .18); }

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  padding: 10px 14px; border-radius: 10px;
  background: var(--white); color: var(--ink); text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

html[data-lang="hu"] [data-l="en"],
html[data-lang="en"] [data-l="hu"] { display: none !important; }

/* ---------------------------------------------------------------- nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  color: var(--snow);
  background: rgba(0, 0, 0, .5);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  transition: color .6s var(--ease), background-color .6s var(--ease), opacity .8s var(--ease), transform .8s var(--ease);
}
html[data-nav="light"] .nav, html[data-nav="white"] .nav { color: var(--ink); background: rgba(255, 255, 255, .72); }
html.nav-hidden .nav { opacity: 0; transform: translateY(-100%); pointer-events: none; }
.wordmark { display: inline-flex; align-items: center; text-decoration: none; }
/* márka: vízszintes mikro lockup (16–63 px között a mikro változat), kontúrozott – a nevet nem gépeljük mellé */
.lockup { display: block; height: 19px; width: auto; fill: currentColor; }
.lang { display: inline-flex; gap: 2px; }
.lang button {
  font: inherit; font-size: 12px; font-weight: 600; letter-spacing: .04em;
  color: inherit; background: none; border: 0; cursor: pointer;
  padding: 6px 7px; opacity: .42; transition: opacity .3s;
}
.lang button:hover { opacity: .8; }
.lang button[aria-pressed="true"] { opacity: 1; }
.lang button:focus-visible, .wordmark:focus-visible, summary:focus-visible, a:focus-visible {
  outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 4px;
}

/* ------------------------------------------------------- jelenetek */
.scene { position: relative; height: calc(var(--len, 300) * 1vh); }
.stage {
  position: sticky; top: 0;
  height: 100vh; overflow: hidden;
  background: var(--bg);
  color: var(--fg);
  transition: color .6s var(--ease);
}
@supports (height: 100svh) { .stage { height: 100svh; } }

.t-black, .stage[data-tone="dark"] { --fg: var(--snow); --muted: var(--ash); --hair: var(--ph-graphite-700); }
.t-black { --bg: var(--black); }
.t-light { --bg: var(--mist); }
.t-white { --bg: var(--white); }
.t-light, .t-white, .stage[data-tone="light"] { --fg: var(--ink); --muted: var(--ink-2); --hair: var(--ph-alu-200); }
.t-black, .t-light, .t-white { background: var(--bg); color: var(--fg); }

.seq-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.seq-badge {
  position: absolute; z-index: 3; right: var(--gutter); bottom: 18px;
  font-size: 11px; letter-spacing: .06em; color: var(--muted); opacity: .6; pointer-events: none;
}
.seq-badge[hidden] { display: none; }

.copy {
  position: absolute; z-index: 2;
  left: var(--gutter); right: var(--gutter);
  pointer-events: none;
}
/* réteg-tipp csak a nézet közelében lévő jelenetben (page.js: .is-live) – mobilon a sok szó-réteg memóriát foglal */
.is-live [data-a], .is-live [data-rise], .is-live .w { will-change: opacity, transform; }

/* --------------------------------------------------------- tipográfia */
.display {
  font-size: var(--fs-display);
  line-height: .9;
  letter-spacing: -.052em;
  font-weight: 600;
  font-stretch: 92%;
}
.headline {
  font-size: var(--fs-headline);
  line-height: .96;
  letter-spacing: -.045em;
  font-weight: 600;
  font-stretch: 94%;
  text-wrap: balance;
}
.headline--sm { font-size: calc(var(--fs-headline) * .62); letter-spacing: -.038em; line-height: 1; }
.statement {
  font-size: var(--fs-statement);
  line-height: 1.1;
  letter-spacing: -.032em;
  font-weight: 600;
  font-stretch: 96%;
  text-wrap: pretty;
}
.body {
  font-size: var(--fs-body);
  line-height: 1.38;
  letter-spacing: -.012em;
  font-weight: 450;
  color: var(--muted);
  max-width: 24em;
  text-wrap: pretty;
}
.body b { font-weight: 600; }
.body i { font-style: italic; }
.caption { font-size: var(--fs-caption); line-height: 1.4; color: var(--muted); letter-spacing: 0; }
.kicker { font-size: var(--fs-body); font-weight: 600; letter-spacing: -.012em; color: var(--fg); }

/* maszk mögül felemelkedő szavak (data-rise) */
.wm {
  display: inline-block; vertical-align: top; overflow: hidden;
  padding: .14em .04em .22em; margin: -.14em -.04em -.22em;
}
.wm > .w { display: inline-block; }

/* betöltéskor: a hero címe egyszer, nyugodtan felemelkedik */
.intro-fade { animation: introFade 1.6s var(--ease) .1s backwards; }
@keyframes introFade { from { opacity: 0; } }
.intro-rise .w { animation: riseIn 1.5s var(--ease) backwards; }
@keyframes riseIn { from { transform: translateY(112%); filter: blur(6px); } }

/* ------------------------------------------------------------- hero */
.copy--hero { bottom: 12vh; text-align: center; display: grid; justify-items: center; gap: 14px; }
.display--hero { font-size: min(var(--fs-display), 8.6vw); text-wrap: balance; }
.copy--hero2 { bottom: 12vh; text-align: center; display: grid; justify-items: center; gap: 12px; }
.greek {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: calc(var(--fs-headline) * .82); line-height: 1; letter-spacing: -.02em;
  font-variation-settings: "opsz" 72;
}

/* ------------------------------------------------------- kijelentés */
.copy--statement { top: 50%; transform: translateY(-50%); max-width: 1180px; margin: 0 auto; }
.statement .w { opacity: .14; }
.statement em { font-family: var(--serif); font-style: italic; font-weight: 380; letter-spacing: -.015em; font-size: 1.06em; }

/* -------------------------------------------------------- elrendezés */
.copy--top { top: calc(var(--nav-h) + 11vh); max-width: 640px; display: grid; gap: 22px; }
.copy--side { top: calc(var(--nav-h) + 14vh); left: auto; width: min(500px, 36vw); display: grid; gap: 22px; }
.copy--br { bottom: 11vh; left: auto; width: min(500px, 40vw); display: grid; gap: 16px; }
/* asztalon: lágy, a háttérrel azonos színű fény-folt a hasábos szöveg mögött – bármilyen kompozíciónál olvasható marad */
@media (min-width: 821px) {
  .copy--side::before, .copy--br::before {
    content: ""; position: absolute; z-index: -1; inset: -18% -30% -22% -26%;
    background: radial-gradient(closest-side, var(--bg) 48%, transparent);
    opacity: calc(.94 * var(--on, 0)); pointer-events: none;
  }
}
.copy--end { bottom: 11vh; text-align: center; display: grid; justify-items: center; }

/* felépítés – alkatrészek */
.copy--parts { bottom: 8vh; }
.parts { list-style: none; padding: 0; margin: 0 auto; max-width: 1240px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 clamp(16px, 2.2vw, 36px); }
.parts li { display: grid; gap: 4px; align-content: start; padding-top: 14px; border-top: 1px solid var(--hair); }
.parts b { font-weight: 600; font-size: 17px; letter-spacing: -.015em; }
.parts li > span { font-size: var(--fs-caption); color: var(--muted); }

/* látni */
.display--uv { color: var(--uv); }
.display .unit { font-size: .36em; letter-spacing: -.02em; margin-left: .12em; font-weight: 600; color: var(--fg); text-shadow: none; }
.red { color: var(--porphyrin); }
.cyan { color: var(--pyoverdin); }
.spectrum { width: 100%; max-width: 420px; margin-top: 10px; }
.spectrum text { font-family: var(--sans); font-size: 11px; fill: var(--muted); letter-spacing: .01em; }

/* ritmus */
.copy--rhythm { top: 50%; transform: translateY(-50%); max-width: 1240px; margin: 0 auto; }
.rhythm { list-style: none; padding: 0; display: grid; gap: clamp(4px, 1vh, 14px); }
.rhythm li {
  --on: 0;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); align-items: baseline; gap: 40px;
}
.r-word {
  font-size: calc(var(--fs-headline) * 1.12); line-height: 1.02; letter-spacing: -.05em; font-weight: 600; font-stretch: 94%;
  opacity: calc(.13 + .87 * var(--on));
}
.r-cap {
  font-size: var(--fs-body); line-height: 1.38; color: var(--muted); letter-spacing: -.012em;
  opacity: var(--on); transform: translateY(calc((1 - var(--on)) * 14px)); filter: blur(calc((1 - var(--on)) * 6px));
}

/* család */
.copy--family-head { top: calc(var(--nav-h) + 8vh); text-align: center; display: grid; justify-items: center; }
.copy--family { bottom: 7vh; text-align: center; display: grid; justify-items: center; gap: 20px; }
.family-stack { position: relative; width: min(640px, 100%); height: 96px; }
.family-item { position: absolute; inset: 0; display: grid; align-content: start; justify-items: center; gap: 8px; }
.family-item h3 { font-size: clamp(28px, 2.8vw, 44px); letter-spacing: -.035em; font-weight: 600; font-stretch: 94%; line-height: 1.05; }
.family-item p { color: var(--muted); font-size: var(--fs-body); letter-spacing: -.012em; }
.family-ticks { display: flex; gap: 6px; }
.family-ticks span { width: 28px; height: 2px; background: var(--hair); position: relative; overflow: hidden; border-radius: 2px; }
.family-ticks span i { position: absolute; inset: 0; background: var(--fg); transform-origin: left; transform: scaleX(0); }

/* finálé */
.copy--finale { top: 13vh; text-align: center; display: grid; justify-items: center; }
.deep {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 5.6vw, 92px);
  line-height: 1.06;
  letter-spacing: -.025em;
  color: var(--ink);
  font-variation-settings: "opsz" 72;
}
.deep .line { display: block; }
.deep em { font-style: italic; font-weight: 300; }
.deep .w { opacity: 0; display: inline-block; }
.copy--mark { bottom: 5vh; display: grid; justify-items: center; }
.finale-mark { display: inline-flex; color: var(--ink); }
.finale-mark .lockup { height: 18px; }

/* ------------------------------------------------------------ lábléc */
.foot { background: var(--mist); color: var(--ink-2); padding: 40px var(--gutter) 28px; font-size: 12px; line-height: 1.5; letter-spacing: 0; }
.foot .wrap { max-width: 1180px; margin: 0 auto; }
.foot__line { color: var(--ink); font-size: 13px; padding-bottom: 14px; border-bottom: 1px solid rgba(0,0,0,.1); }
.foot__more { padding: 14px 0; border-bottom: 1px solid rgba(0,0,0,.1); }
.foot__more summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-size: 12px; }
.foot__more summary::-webkit-details-marker { display: none; }
.foot__more summary::after { content: ""; width: 6px; height: 6px; border-right: 1.2px solid currentColor; border-bottom: 1.2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .3s var(--ease); }
.foot__more[open] summary::after { transform: rotate(-135deg) translate(-1px, -1px); }
.foot__cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 56px; padding: 22px 0 8px; }
.notes, .sources { padding-left: 16px; display: grid; gap: 10px; }
.sources a { color: var(--ink); text-underline-offset: 2px; text-decoration-color: rgba(0,0,0,.25); }
.foot__base { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; padding-top: 16px; }
.foot__base .wordmark { color: var(--ink); margin-right: auto; }
.foot__base .wordmark .lockup { height: 16px; }

/* ------------------------------------------------------------ mobil */
@media (max-width: 820px) {
  :root {
    --fs-display: clamp(60px, 18vw, 92px);
    --fs-headline: clamp(40px, 11.4vw, 60px);
    --fs-statement: clamp(28px, 8.2vw, 40px);
    --fs-body: 17px;
    --fs-caption: 13px;
    --gutter: 22px;
  }
  .copy--hero, .copy--hero2 { bottom: 9vh; }
  .display--hero { font-size: clamp(46px, 13.6vw, 72px); line-height: .94; }
  .copy--top { top: calc(var(--nav-h) + 5vh); max-width: none; gap: 14px; }
  .copy--side { top: calc(var(--nav-h) + 5vh); left: var(--gutter); width: auto; gap: 14px; }
  .copy--br { bottom: 7vh; left: var(--gutter); width: auto; gap: 10px; }
  .copy--end { bottom: 9vh; }
  .headline--sm { font-size: calc(var(--fs-headline) * .74); }
  .copy--parts { bottom: 5vh; }
  .parts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
  .parts li { padding-top: 9px; gap: 1px; }
  .parts b { font-size: 15px; }
  .spectrum { max-width: none; }
  .rhythm { gap: 26px; }
  .rhythm li { grid-template-columns: 1fr; gap: 6px; }
  .r-word { font-size: calc(var(--fs-headline) * 1.05); }
  .copy--family { bottom: 6vh; }
  .family-stack { height: 92px; }
  .copy--finale { top: 10vh; }
  .foot__cols { grid-template-columns: 1fr; }
  .foot__base .wordmark { flex-basis: 100%; }
  /* mobilon a szöveg mögé lágy, a jelenet hátterével azonos fátyol kerül */
  .scrim-top::before, .scrim-bottom::before {
    content: ""; position: absolute; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); z-index: -1;
    height: calc(100% + 16vh);
    opacity: var(--on, 1); /* a fátyol a saját szövegével együtt jön és megy, nem takarja a jelenet másik szövegét */
  }
  .scrim-top::before { top: calc(-1 * var(--nav-h) - 5vh); background: linear-gradient(var(--bg) 66%, transparent); }
  .scrim-bottom::before { bottom: -9vh; background: linear-gradient(transparent, var(--bg) 40%); }
  .seq-badge { display: none; }
}

/* ================================================================ v3
   Mit tesz hozzá a v3 (frontend-design):
   - ütem: hosszú képsor-jelenetek közé rövid, statikus „részlet” jelenetek (arc, kijelző, mélyedés, anyagok);
   - skála-kontraszt: két új szélső fokozat (--fs-mega, --fs-figure) a hatalmas név és a mért számok számára,
     a többi szöveg marad az 5 fokozatú skálán;
   - egyetlen saját motívum: „előhívás” – a szó halványan, szinte láthatatlanul áll, és egy ibolya fénycsík
     végighaladva tintává hívja elő (a 405 nm-es látás képe). Csak a név-jelenetben, máshol nincs;
   - az állóképek lassan közelítenek (--p), semmi nem pattog. */

/* nav: négy fejezet-link asztalon */
.nav__links { display: flex; gap: clamp(18px, 2.4vw, 34px); margin-left: auto; margin-right: clamp(20px, 3vw, 44px); }
.nav__links a { font-size: 12px; font-weight: 450; color: inherit; letter-spacing: 0; text-decoration: none; opacity: .72; transition: opacity .3s; }
.nav__links a:hover { opacity: 1; }

.label { font-size: var(--fs-label); font-weight: 600; letter-spacing: .11em; text-transform: uppercase; color: var(--muted); }
.lede { font-size: calc(var(--fs-body) * 1.18); font-weight: 600; letter-spacing: -.018em; line-height: 1.25; max-width: 22em; text-wrap: balance; }
.soft { color: var(--muted); }
.note { font-size: var(--fs-caption); line-height: 1.45; color: var(--muted); max-width: 34em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* hero: a második fele dőlt serif – egyetlen mozdulat a groteszk mellett */
.display--hero em { font-family: var(--serif); font-style: italic; font-weight: 380; letter-spacing: -.035em; font-variation-settings: "opsz" 72; }

/* „színesben.” / „in colour.” – founder-kivétel a márkakönyv „jelzőszín csak adat” szabálya alól, EGYETLEN szóra.
   A szó grafitként emelkedik fel, aztán „előhívódik”: a porfirin-vörös és a pyoverdin-cián fluoreszcenciává válik,
   mint a telepek 405 nm alatt; utána lassan, alig észrevehetően sodródik a két szín között.
   Világos alapon a mély árnyalatok viszik a kontúrt (olvashatóság), a világosak csak csúcsfényként jelennek meg. */
.display--hero em .w,
html.nojs .display--hero em {
  --ink-c: var(--ink);
  --por-a: var(--ph-porphyrin-dp, #C8323F); --por-b: var(--ph-porphyrin);
  --pyo-a: var(--ph-pyoverdin-dp, #0B8F7C); --pyo-b: var(--ph-pyoverdin);
  background-image: linear-gradient(100deg,
    var(--ink-c) 0%, var(--ink-c) 43%,
    var(--por-a) 53%, var(--por-b) 60%, var(--por-a) 66%,
    var(--pyo-a) 75%, var(--pyo-b) 82%, var(--pyo-a) 88%,
    var(--por-a) 100%);
  background-size: 220% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  /* az ékezetek és a dőlt túlnyúlás is kapjon színt */
  padding: .06em .08em .1em; margin: -.06em -.08em -.1em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.display--hero em .w {
  animation: riseIn 1.5s var(--ease) backwards, heroDevelop 2.4s cubic-bezier(.45, 0, .2, 1) 1.5s forwards, heroDrift 7s ease-in-out 3.9s infinite alternate;
}
@keyframes heroDevelop { from { background-position: 0% 50%; } to { background-position: 82% 50%; } }
@keyframes heroDrift { from { background-position: 82% 50%; } to { background-position: 100% 50%; } }
/* sötét render fölött: a világos árnyalatok vezetnek, halk dereng a szó körül */
.stage[data-tone="dark"] .display--hero em .w { --ink-c: var(--snow); --por-a: var(--ph-porphyrin); --por-b: #FF9A9D; --pyo-a: var(--ph-pyoverdin); --pyo-b: #9BF2E3; }
.stage[data-tone="dark"] .display--hero em { filter: drop-shadow(0 0 .22em rgba(255, 107, 111, .22)) drop-shadow(0 0 .3em rgba(70, 227, 200, .14)); }
/* csökkentett mozgás / JS nélkül: álló, kéttónusú kitöltés */
html.rm .display--hero em .w, html.nojs .display--hero em { animation: none; background-position: 88% 50%; }
@media (prefers-reduced-motion: reduce) { .display--hero em .w { animation: none; background-position: 88% 50%; } }

/* --------------------------------------------- név: előhívás (develop) */
.copy--name { top: 50%; transform: translateY(-54%); display: grid; justify-items: center; text-align: center; gap: clamp(10px, 2vh, 26px); }
.develop {
  --s: clamp(0, calc((var(--p, 1) - .08) / .46), 1);
  position: relative; margin: 0;
  font-family: var(--serif); font-style: italic; font-weight: 380;
  font-size: calc(var(--fs-mega) * 1.12); line-height: .9; letter-spacing: -.04em;
  font-variation-settings: "opsz" 72;
  padding: 0 .08em .06em;
}
.develop__ghost { color: var(--ph-mist); display: block; }
.develop__ink {
  position: absolute; inset: 0; padding: inherit; color: var(--ink);
  -webkit-mask-image: linear-gradient(100deg, #000 calc(var(--s) * 130% - 22%), transparent calc(var(--s) * 130% - 4%));
          mask-image: linear-gradient(100deg, #000 calc(var(--s) * 130% - 22%), transparent calc(var(--s) * 130% - 4%));
}
/* az előhívó vonal: 405 Ibolya, egyszínű (márkakönyv: nincs ibolya színátmenet). „A fény esemény”:
   csak amíg halad, utána eltűnik, és minden grafit marad. */
.develop::after {
  content: ""; position: absolute; top: 4%; bottom: 4%; width: 2px;
  left: calc(var(--s) * 130% - 13%);
  background: var(--violet); pointer-events: none;
  opacity: calc(var(--s) * (1 - var(--s)) * 4);
}
.name-gloss { display: inline-flex; align-items: baseline; gap: 14px; font-size: var(--fs-body); color: var(--muted); letter-spacing: -.01em; }
.greek-script { font-family: var(--serif); font-size: 1.12em; color: var(--ink); }
.name-gloss__sep { width: 28px; height: 1px; background: var(--hair); align-self: center; }

/* kijelentés – csendes változat (állapot) */
.statement--quiet { font-size: calc(var(--fs-statement) * .86); max-width: 20em; }
.scene--status .copy--statement { display: grid; gap: 22px; }

/* ------------------------------------------------- két szín (sötét) */
.colours { position: absolute; inset: calc(var(--nav-h) + 8vh) var(--gutter) 7vh; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr auto; }
.colour { --on: 0; display: grid; gap: 10px; align-content: start; }
.colour--red { grid-column: 1; grid-row: 1; }
.colour--cyan { grid-column: 2; grid-row: 2; justify-self: end; text-align: right; align-self: center; }
.colour__word {
  font-size: var(--fs-headline); line-height: .96; letter-spacing: -.045em; font-weight: 600; font-stretch: 94%;
}
.colour--red .colour__word { color: var(--porphyrin); }
.colour--cyan .colour__word { color: var(--pyoverdin); }
/* halk fluoreszcens dereng a szó mögött (nem text-shadow: a maszk levágná) */
.colour { position: relative; }
/* adatjel: a két emissziós sáv egy-egy rövid, egyszínű csíkként a szó előtt */
.colour::before {
  content: ""; display: block; width: 56px; height: 4px; border-radius: 2px; margin-bottom: 14px;
  background: var(--porphyrin); opacity: var(--on); transform: scaleX(var(--on)); transform-origin: left;
}
.colour--cyan::before { background: var(--pyoverdin); justify-self: end; transform-origin: right; }
.colour__note { font-size: var(--fs-body); color: var(--muted); letter-spacing: -.012em; }
.colour__note b { color: var(--fg); font-weight: 600; }
.colour__note i { font-style: italic; }
.colours__foot { grid-column: 1 / -1; grid-row: 3; display: grid; gap: 10px; max-width: 520px; }
.colours__foot .spectrum { margin: 0 0 6px; }

/* ------------------------------------------- érintés nélkül (ábra) */
.copy--touch { top: calc(var(--nav-h) + 8vh); text-align: center; display: grid; justify-items: center; gap: 14px; }
.copy--touch .headline { font-size: calc(var(--fs-headline) * .84); max-width: 16em; }
/* v5 (2026-11-03): 3D-render + vektoros overlay (render/erintes_3d/) a régi SVG-ábra helyett */
.touch-fig { position: absolute; left: 50%; top: 56%; width: min(1100px, 94vw, calc((100vh - 410px) * 2.4)); margin: 0; transform: translate(-50%, -50%); }
.touch-media { position: relative; margin: 0; }
.touch-media img { display: block; width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 26%); mask-image: linear-gradient(to bottom, transparent 0, #000 26%); }
.touch-ov { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.touch-ov--m { display: none; }
.touch-ov .tv-line, .touch-ov .tv-dim, .touch-ov .tv-lead { fill: none; stroke: var(--ink); stroke-width: 1.1; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.touch-ov .tv-lead { stroke: var(--ink-2); }
.touch-ov .tv-axis { stroke: var(--ink-2); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 10 5 2 5; opacity: .75; }
.touch-ov .tv-dot { fill: var(--ink); }
.touch-ov .tv-lab { font-family: var(--sans); fill: var(--ink); letter-spacing: -.01em; font-weight: 450; }
.touch-ov .tv-lab--muted { fill: var(--ink-2); }
.touch-ov .tv-fig { font-family: var(--sans); fill: var(--ink); font-weight: 450; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.touch-ov .tv-plasma { fill: var(--violet);
  opacity: calc(.06 + .12 * var(--p, 1)); }
.touch-ov .tv-plasma--spot { opacity: calc(.08 + .16 * var(--p, 1)); }
.copy--touch-foot { bottom: 7vh; display: grid; justify-items: center; text-align: center; gap: 14px; }
.copy--touch-foot .body { max-width: 30em; }

/* ------------------------------------------------- állóképek */
.still {
  position: absolute; left: var(--sx); top: var(--sy); width: var(--w);
  transform: translate(calc(-100% * var(--ax)), calc(-100% * var(--ay))) scale(calc(var(--z0) + (var(--z1) - var(--z0)) * var(--p, 1)));
  transform-origin: calc(var(--ax) * 100%) calc(var(--ay) * 100%);
  will-change: transform;
}
.still img { display: block; width: 100%; height: auto; }
.copy--still-tl { top: calc(var(--nav-h) + 8vh); max-width: 560px; display: grid; gap: 18px; }
.copy--still-bl { bottom: 8vh; max-width: 420px; }
.copy--still-bottom { bottom: 9vh; }
.copy--still-split { bottom: 8vh; display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.copy--still-split .body { max-width: 19em; text-align: right; }
.scene--dimple .copy--still-tl { max-width: 600px; }
.scene--still .headline { font-size: calc(var(--fs-headline) * .84); }
.scene--display .copy--still-tl { max-width: 52vw; }
.copy--still-tr { top: calc(var(--nav-h) + 8vh); left: auto; display: grid; justify-items: end; }
.figure--right { justify-items: end; text-align: right; }
.copy--still-bottom-r { display: grid; justify-items: end; text-align: right; }
.copy--still-bottom-r .body { max-width: 22em; }

.figure { display: grid; gap: 8px; }
.figure__n { font-size: var(--fs-figure); line-height: .86; letter-spacing: -.055em; font-weight: 600; font-stretch: 90%; font-variant-numeric: tabular-nums; }
.figure__u { font-size: .32em; letter-spacing: -.01em; margin-left: .14em; font-weight: 600; }
.figure__l { font-size: var(--fs-caption); color: var(--muted); max-width: 22em; line-height: 1.4; }

/* anyagok: feliratok közvetlenül a képen, a képpel együtt mozognak */
.copy--materials-head { top: calc(var(--nav-h) + 8vh); display: grid; gap: 16px; max-width: 900px; }
.callouts { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.callouts__t { display: block; }
.callouts li {
  position: absolute; left: var(--cx); top: var(--cy); transform: translate(-50%, -100%);
  font-size: var(--fs-label); font-weight: 600; letter-spacing: .11em; text-transform: uppercase; white-space: nowrap;
  padding-bottom: 30px;
}
.callouts li::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 1px; height: 22px; background: var(--ink-2); opacity: .5; }
.callouts li.callouts__below { transform: translate(-100%, 0); padding: 30px 0 0; left: calc(var(--cx) + 1%); }
.callouts li.callouts__below::after { left: auto; right: 0; top: 4px; bottom: auto; }
.callouts li.callouts__start { transform: translate(-6px, -100%); }
.callouts li.callouts__start::after { left: 6px; }
/* a hero második üteme csak akkor látszik, ha a JS már vezérli (lassú betöltésnél ne fedje az elsőt) */
html:not(.ready):not(.nojs):not(.rm) .copy--hero2 { visibility: hidden; }
.copy--materials-foot { bottom: 8vh; }

/* -------------------------------------------- Clinic / Home */
.copy--places { top: 50%; transform: translateY(-50%); max-width: 1180px; margin: 0 auto; display: grid; gap: clamp(28px, 6vh, 64px); }
.places { display: grid; grid-template-columns: 1fr 1fr; }
.places__label { margin-bottom: calc(-1 * clamp(14px, 4vh, 44px)); }
.place { --on: 0; display: grid; gap: 8px; padding: 0 clamp(20px, 4vw, 60px); opacity: calc(.18 + .82 * var(--on)); }
.place:first-child { padding-left: 0; border-right: 1px solid var(--hair); }
.place__brand { font-size: var(--fs-body); font-weight: 600; letter-spacing: -.012em; }
.place__word { font-size: var(--fs-display); line-height: .92; letter-spacing: -.05em; font-weight: 600; font-stretch: 92%; }
.place__line { font-size: var(--fs-body); color: var(--muted); max-width: 20em; margin-top: 10px; transform: translateY(calc((1 - var(--on)) * 12px)); }

/* --------------------------------------------------- v3 mobil */
@media (max-width: 820px) {
  .nav__links { display: none; }
  .lang { margin-left: auto; }
  :root { --fs-mega: var(--fs-display); --fs-figure: var(--fs-display); }
  .copy--name { transform: translateY(-58%); }
  .name-gloss { gap: 10px; }
  .colours { inset: calc(var(--nav-h) + 4vh) var(--gutter) 5vh; grid-template-columns: 1fr; grid-template-rows: auto auto 1fr auto; gap: 4vh; }
  .colour--cyan { grid-column: 1; grid-row: 2; justify-self: end; }
  .colours__foot { grid-row: 4; }
  .copy--touch { top: calc(var(--nav-h) + 4vh); }
  .touch-fig { top: 53%; width: min(100vw, calc((100svh - 400px) * 1.111)); }
  .touch-ov--d { display: none; }
  .touch-ov--m { display: block; }
  .touch-media img { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 24%), linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
    -webkit-mask-composite: source-in; mask-image: linear-gradient(to bottom, transparent 0, #000 24%), linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%); mask-composite: intersect; }
  .copy--touch-foot { bottom: 5vh; }
  .still { left: var(--sx-m); top: var(--sy-m); width: var(--w-m); }
  .copy--still-tl { top: calc(var(--nav-h) + 4vh); gap: 12px; }
  .copy--still-bl, .copy--still-split, .copy--still-bottom, .copy--materials-foot { bottom: 5vh; }
  .copy--still-split { flex-direction: column; align-items: start; gap: 14px; }
  .copy--still-tr { top: auto; bottom: 16vh; left: var(--gutter); justify-items: start; }
  .figure--right { justify-items: start; text-align: left; }
  .scene--display .copy--still-tl { max-width: none; }
  .copy--still-bottom-r { justify-items: start; text-align: left; }
  .copy--still-split .body { text-align: left; }
  .copy--materials-head { top: calc(var(--nav-h) + 4vh); gap: 12px; }
  .callouts li { font-size: 12px; padding-bottom: 22px; }
  .callouts li::after { height: 16px; }
  .callouts li.callouts__below { padding-top: 22px; }
  .places { grid-template-columns: 1fr; gap: 5vh; }
  .place, .place:first-child { padding: 0; border: 0; }
  .place:first-child { padding-bottom: 5vh; border-bottom: 1px solid var(--hair); }
  .lede { font-size: 19px; }
}

/* ---------------------------------------- csökkentett mozgás / JS nélkül */
html.rm .scene, html.nojs .scene { height: auto; }
html.rm .stage, html.nojs .stage { position: relative; height: auto; min-height: 0; display: grid; padding-bottom: 8vh; }
html.rm .copy, html.nojs .copy { position: relative; inset: auto; transform: none; padding: calc(var(--nav-h) + 8vh) var(--gutter) 4vh; max-width: 900px; width: auto; left: auto; right: auto; margin: 0 auto; text-align: left; justify-items: start; }
html.rm .copy + .copy, html.nojs .copy + .copy { padding-top: 0; }
html.rm .copy--parts, html.nojs .copy--parts { max-width: 1240px; }
html.rm .parts, html.nojs .parts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 24px; }
html.rm .seq-canvas, html.nojs .seq-canvas { position: relative; height: 72vh; min-height: 320px; order: 2; }
html.rm .scene--hero .seq-canvas, html.nojs .scene--hero .seq-canvas { order: 0; }
html.rm [data-a], html.rm [data-rise], html.rm .w, html.nojs [data-a] { opacity: 1 !important; transform: none !important; filter: none !important; visibility: visible !important; }
html.rm .statement .w { opacity: 1 !important; }
html.rm .rhythm li, html.nojs .rhythm li { --on: 1; }
html.rm .family-stack, html.nojs .family-stack { height: auto; display: grid; gap: 24px; justify-items: start; }
html.rm .family-item, html.nojs .family-item { position: relative; justify-items: start; }
html.rm .family-ticks, html.nojs .family-ticks { display: none; }
html.rm .intro-fade, html.rm .intro-rise .w { animation: none; }
html.rm .copy--mark, html.nojs .copy--mark { padding-top: 0; }
html.rm .still, html.nojs .still { position: relative; left: auto; top: auto; width: 100%; transform: none; order: 2; }
html.rm .touch-fig, html.nojs .touch-fig { position: relative; left: auto; top: auto; transform: none; margin: 0 auto; order: 2; width: min(1100px, 94vw); }
@media (max-width: 820px) { html.rm .touch-fig, html.nojs .touch-fig { width: 100vw; } }
html.rm .copy--touch-foot, html.nojs .copy--touch-foot { order: 3; }
html.rm .colours, html.nojs .colours { position: relative; inset: auto; padding: calc(var(--nav-h) + 8vh) var(--gutter) 4vh; gap: 6vh; }
html.rm .colour, html.rm .place, html.nojs .colour, html.nojs .place { --on: 1; }
html.rm .callouts, html.nojs .callouts { display: none; }
html.rm .copy--name, html.nojs .copy--name { justify-items: start; }
html.rm .copy--places, html.nojs .copy--places { max-width: 1180px; }
@media (prefers-reduced-motion: reduce) {
  .nav { transition: none; }
}

/* v3b – sötét nyitány: a hero mindig grafit. Ha a hero-render még világos (fehér high-key kockák),
   a vászon rejtve marad (page.js: data-require-tone), és a cím a képernyő közepén áll. */
.seq-canvas { transition: opacity .6s var(--ease); }
.stage.seq-off .seq-canvas { opacity: 0; }
html:not(.rm):not(.nojs) .scene--hero .stage.seq-off .copy--hero,
html:not(.rm):not(.nojs) .scene--hero .stage.seq-off .copy--hero2 { bottom: auto; top: 50%; transform: translateY(-50%); }
.scene--hero .stage.seq-off .scrim-bottom::before { display: none; }
.scene--treat .body { max-width: 21em; }
html.rm .stage.seq-off .seq-canvas, html.nojs .stage.seq-off .seq-canvas { display: none; }
html.rm .scene--hero .stage.seq-off .copy--hero { padding-top: calc(var(--nav-h) + 20vh); }
html.rm .scene--hero .stage.seq-off .copy--hero2 { padding-top: 2vh; padding-bottom: 20vh; }

/* v3c – „részlet” elrendezés (kijelző): rácsban, a szöveg és a kép soha nem fedi egymást.
   Asztalon: bal hasáb cím + szám + mondat, jobb hasáb a lekerekített, kitöltő makró-kivágás.
   Mobilon/álló tableten: cím → kép → szám + mondat, egymás alatt. */
.detail {
  position: absolute; inset: calc(var(--nav-h) + 6vh) var(--gutter) 6vh;
  display: grid; grid-template-columns: minmax(280px, 4fr) 8fr; grid-template-areas: "head media" "meta media";
  grid-template-rows: auto auto; align-content: center; column-gap: clamp(32px, 5vw, 96px); row-gap: clamp(20px, 4vh, 44px);
}
.detail__head { grid-area: head; align-self: end; }
.detail__meta { grid-area: meta; align-self: start; display: grid; gap: 18px; }
.detail__media { grid-area: media; align-self: center; margin: 0; border-radius: clamp(18px, 2vw, 30px); overflow: hidden; aspect-ratio: 1930 / 926; background: #cfd0d2; max-height: calc(100svh - var(--nav-h) - 14vh); }
.detail__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transform: scale(calc(1.06 - .06 * var(--p, 1))); transform-origin: 55% 50%; }
.detail .headline { font-size: calc(var(--fs-headline) * .8); }
.figure--detail .figure__n { font-size: calc(var(--fs-headline) * .9); }
.detail .body { max-width: 22em; }
.detail__head { display: grid; gap: 18px; }
.detail--flip { grid-template-columns: 8fr minmax(280px, 4fr); grid-template-areas: "media head" "media meta"; }
.detail--flip .detail__media img { object-position: 40% 50%; transform-origin: 40% 45%; }
.detail .headline--sm { font-size: calc(var(--fs-headline) * .56); }
@media (max-width: 820px) {
  .detail { inset: calc(var(--nav-h) + 4vh) var(--gutter) 4vh; grid-template-columns: 1fr; grid-template-areas: "head" "media" "meta"; align-content: center; row-gap: 22px; }
  .detail__head { align-self: start; }
  .detail__media { aspect-ratio: 4 / 3; max-height: 44vh; width: 100%; }
  .detail__media img { object-position: 58% 50%; }
  .detail--flip { grid-template-columns: 1fr; grid-template-areas: "head" "media" "meta"; }
  .detail--flip .detail__media img { object-position: 42% 50%; }
  .figure--detail .figure__n { font-size: calc(var(--fs-headline) * .95); }
}
html.rm .detail, html.nojs .detail { position: relative; inset: auto; padding: calc(var(--nav-h) + 8vh) var(--gutter) 6vh; }
html.rm .detail__media img { transform: none; }

/* a címke és a nagy szám között levegő (a display sorköze szoros) */
.copy--side .label + .display { margin-top: .1em; }

/* ================================================================
   HÍRLEVÉL (#hirlevel) – önálló blokk, a newsletter.js-hez tartozik.
   Grafit sáv a fehér finálé és a világosszürke lábléc között (fekete/fehér ritmus).
   ================================================================ */
.signup { background: var(--black); color: var(--snow); padding: clamp(88px, 13vh, 150px) var(--gutter) clamp(72px, 11vh, 120px); }
.signup .wrap { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px 96px; align-items: start; }
.signup__head { display: grid; gap: 18px; }
.signup__label { font-size: var(--fs-label); font-weight: 600; letter-spacing: .11em; text-transform: uppercase; color: var(--ash); }
.signup__title { font-size: var(--fs-statement); font-weight: 600; line-height: 1.06; letter-spacing: -.022em; }
.signup__title em { font-family: var(--serif); font-style: italic; font-weight: 380; letter-spacing: -.015em; font-size: 1.06em; }
.signup__lede { font-size: var(--fs-body); line-height: 1.4; color: var(--ash); max-width: 24em; }
.signup__form { display: grid; gap: 22px; position: relative; padding-top: 6px; }
.signup__field { display: grid; gap: 6px; }
.signup__field label { font-size: var(--fs-label); font-weight: 600; letter-spacing: .11em; text-transform: uppercase; color: var(--ash); }
.signup__row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; padding-top: 4px; }
.signup__row .signup__status { flex: 1 1 220px; }
.signup__input {
  width: 100%; min-height: 48px; padding: 10px 0 9px; margin: 0;
  font: inherit; font-size: var(--fs-body); letter-spacing: -.008em; color: var(--snow);
  background: transparent; border: 0; border-bottom: 1px solid var(--ph-steel); border-radius: 0;
  -webkit-appearance: none; appearance: none;
  transition: border-color .3s var(--ease);
}
.signup__input:hover { border-bottom-color: var(--ash); }
.signup__input:focus { outline: none; border-bottom-color: var(--snow); }
.signup__input:focus-visible { outline: 2px solid var(--uv); outline-offset: 4px; border-radius: 2px; }
.signup__input[aria-invalid="true"] { border-bottom-color: var(--porphyrin); }
.signup__submit {
  flex: 0 0 auto; min-height: 48px; padding: 0 26px; margin: 0;
  font: inherit; font-size: 15px; font-weight: 600; letter-spacing: 0;
  color: var(--ink); background: var(--snow); border: 0; border-radius: 999px; cursor: pointer;
  transition: background-color .3s var(--ease), opacity .3s var(--ease);
}
.signup__submit:hover { background: var(--white); }
.signup__submit:focus-visible { outline: 2px solid var(--uv); outline-offset: 3px; }
.signup__submit[aria-disabled="true"] { opacity: .55; cursor: progress; }
.signup__check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 15px; line-height: 1.45; color: var(--snow); cursor: pointer; }
.signup__check input {
  -webkit-appearance: none; appearance: none; margin: 1px 0 0; width: 20px; height: 20px;
  border: 1.5px solid var(--ash); border-radius: 5px; background: transparent; cursor: pointer;
  display: grid; place-content: center; transition: background-color .2s, border-color .2s;
}
.signup__check input::after { content: ""; width: 10px; height: 5px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.signup__check input:checked { background: var(--snow); border-color: var(--snow); }
.signup__check input:checked::after { opacity: 1; }
.signup__check input:focus-visible { outline: 2px solid var(--uv); outline-offset: 3px; }
.signup__check input[aria-invalid="true"] { border-color: var(--porphyrin); }
.signup__status { min-height: 1.45em; font-size: 15px; line-height: 1.45; color: var(--snow); }
.signup__form[data-state="error"] .signup__status { color: var(--porphyrin); }
.signup__form[data-state="ok"] .signup__status::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--snow); vertical-align: .08em; }
.signup__trap { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.signup__privacy { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid var(--ph-graphite-700); font-size: 13px; line-height: 1.55; color: var(--ash); max-width: 78ch; }
.signup__privacy p + p { margin-top: 8px; }
.signup__privacy b { color: var(--snow); font-weight: 600; }
.signup__privacy a { color: var(--snow); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(245, 245, 247, .35); }
.signup__nojs { font-size: 15px; color: var(--ash); }
html.nojs .signup__form { display: none; }
@media (max-width: 820px) {
  .signup .wrap { grid-template-columns: 1fr; gap: 36px; }
  .signup__row { flex-direction: column; align-items: stretch; gap: 14px; }
  .signup__row .signup__status { flex: 0 0 auto; }
  .signup__submit { width: 100%; }
  .signup__privacy { padding-top: 18px; }
}
/* ======================================================= /HÍRLEVÉL */
