/* debutia.com · the public apex page. Debutia's own language, taken from the demo's kit (tokens, type, the judges'
   gels, light as attention). Static: no external requests, no cookies, no analytics. Light and dark follow the system
   (apex.js sets data-theme and keeps a visitor's own choice); hu / en follow the browser. */

@font-face{font-family:"Besley";font-style:normal;font-weight:400 900;font-display:swap;src:url(fonts/besley-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:"Besley";font-style:normal;font-weight:400 900;font-display:swap;src:url(fonts/besley-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:"Golos Text";font-style:normal;font-weight:400 900;font-display:swap;src:url(fonts/golos-text-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:"Golos Text";font-style:normal;font-weight:400 900;font-display:swap;src:url(fonts/golos-text-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}

/* ───────── tokens: the kit's (demo/assets/v2/tokens.css), value for value ───────── */
:root{
  --display:"Besley","Georgia",serif;
  --ui:"Golos Text",system-ui,-apple-system,"Segoe UI",sans-serif;
  --ease:cubic-bezier(.2,.7,.2,1);
  --gut:20px;
  /* fixed in both themes: the house, ivory, the judges' three gels, the stage (dusk plum, never black) */
  --house:#0c0a12; --ivory:#fff4e4;
  --gold:#ffcd57; --rose:#ff6f9e; --sky:#62bfff;
  --stage:#150f28; --stage-ink:#fbf7ff; --stage-2:rgb(251 247 255/.78); --stage-3:rgb(251 247 255/.62);
  --stage-line:rgb(251 247 255/.14);
  /* the identity palette (pastel icon tiles; never a status) */
  --violet:#8d4ccf; --magenta:#bc35a6; --olive:#78750d; --teal:#097d70; --petrol:#197887;
  /* light: a calm lilac-grey ground, white paper, plum ink */
  color-scheme:light;
  --ground:#e7e5ed; --paper:#fff; --paper-2:#f5f3f8; --well:#dcd9e4;
  --ink:#1c1926; --ink-2:#464152; --ink-3:#625c70;
  --line:rgb(28 25 38/.12); --line-2:rgb(28 25 38/.075); --hover:rgb(28 25 38/.05);
  --idle-line:rgb(28 25 38/.26);
  --lift:0 0 0 1px rgb(28 25 38/.045),0 1px 2px rgb(44 32 80/.05),0 12px 28px -20px rgb(44 32 80/.3);
  --lift-hi:0 0 0 1px rgb(28 25 38/.06),0 2px 4px rgb(44 32 80/.06),0 18px 36px -20px rgb(44 32 80/.38);
  --btn:#1c1926; --btn-ink:#fff4e4; --btn-hover:#2e2a3b;
  --bar:rgb(255 255 255/.94); --focus:#1c1926;
  --tile-bg:7%; --tile-ink:72%; --tile-line:24%; --tile-to:var(--ink);
  --sep:#ecebf1;
}
/* dark: dusk, not midnight. Every readable text at 4.5:1 or better on paper */
:root[data-theme="dark"]{
  color-scheme:dark;
  --ground:#110d20; --paper:#201a39; --paper-2:#1a1530; --well:#0a0717;
  --ink:rgb(255 247 236/.96); --ink-2:rgb(255 247 236/.84); --ink-3:rgb(255 247 236/.71);
  --line:rgb(244 240 255/.15); --line-2:rgb(244 240 255/.09); --hover:rgb(244 240 255/.06);
  --idle-line:rgb(244 240 255/.34);
  --lift:0 0 0 1px rgb(244 240 255/.06),0 16px 32px -20px rgb(4 2 14/.8);
  --lift-hi:0 0 0 1px rgb(244 240 255/.09),0 20px 40px -20px rgb(4 2 14/.9);
  --btn:#fff4e4; --btn-ink:#17132a; --btn-hover:#fff;
  --bar:rgb(32 26 57/.94); --focus:#fff4e4;
  --tile-bg:16%; --tile-ink:42%; --tile-line:46%; --tile-to:#fff6ec;
  --sep:#332d4b;
}
/* without JavaScript the page still follows the system */
@media (prefers-color-scheme:dark){
  :root:not([data-theme]){
    color-scheme:dark;
    --ground:#110d20; --paper:#201a39; --paper-2:#1a1530; --well:#0a0717;
    --ink:rgb(255 247 236/.96); --ink-2:rgb(255 247 236/.84); --ink-3:rgb(255 247 236/.71);
    --line:rgb(244 240 255/.15); --line-2:rgb(244 240 255/.09); --hover:rgb(244 240 255/.06);
    --idle-line:rgb(244 240 255/.34);
    --lift:0 0 0 1px rgb(244 240 255/.06),0 16px 32px -20px rgb(4 2 14/.8);
    --lift-hi:0 0 0 1px rgb(244 240 255/.09),0 20px 40px -20px rgb(4 2 14/.9);
    --btn:#fff4e4; --btn-ink:#17132a; --btn-hover:#fff;
    --bar:rgb(32 26 57/.94); --focus:#fff4e4;
    --tile-bg:16%; --tile-ink:42%; --tile-line:46%; --tile-to:#fff6ec;
    --sep:#332d4b;
  }
}

/* ───────── base ───────── */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;min-height:100vh;min-height:100svh;background:var(--ground);color:var(--ink);font-family:var(--ui);font-size:16px;line-height:1.5;
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility}
h1,h2,h3,p,ul,ol,figure{margin:0}
ul,ol{padding:0;list-style:none}
img,svg{display:block}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
:focus-visible{outline:2px solid var(--focus);outline-offset:3px;border-radius:6px}
.ico{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.skip{position:absolute;left:12px;top:-60px;z-index:50;padding:10px 16px;border-radius:999px;background:var(--btn);color:var(--btn-ink);font-weight:600}
.skip:focus{top:10px}

/* two languages in the markup; the page shows the one on <html lang> */
html[lang="hu"] [lang="en"]:not([data-lang]),html[lang="en"] [lang="hu"]:not([data-lang]){display:none !important}

/* ───────── the wordmark: Besley, and its dot is a footlight ───────── */
.mark{display:inline-flex;align-items:center;gap:7px;font-family:var(--display);font-weight:800;font-size:22px;letter-spacing:-.01em;line-height:1}
.mark i{width:9px;height:9px;border-radius:50%;background:currentColor;box-shadow:0 0 0 3px color-mix(in srgb,currentColor 9%,transparent)}

/* ───────── tools: the theme, the language, the private preview ───────── */
.tools{display:flex;align-items:center;gap:6px}
.tool{display:grid;place-items:center;width:42px;height:42px;border-radius:50%}
.tool:hover{background:var(--hover)}
.tool .ico--sun{display:none}
:root[data-theme="dark"] .tool .ico--sun{display:block}
:root[data-theme="dark"] .tool .ico--moon{display:none}
.seg{display:inline-flex;gap:2px;padding:3px;border-radius:999px;box-shadow:inset 0 0 0 1px var(--line)}
.seg button{min-width:38px;padding:6px 10px;border-radius:999px;font-size:13px;font-weight:700;line-height:1.2;letter-spacing:.01em;color:var(--ink-2)}
.seg button:hover{color:var(--ink);background:var(--hover)}
.seg button[aria-pressed="true"]{background:var(--btn);color:var(--btn-ink)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:0 20px;border-radius:999px;font-weight:600;font-size:15.5px;line-height:1.2;
  transition:background-color .2s,box-shadow .2s,transform .15s}
.btn:active{transform:translateY(1px)}
.btn--s{min-height:38px;padding:0 15px;font-size:14px}
.btn--quiet{color:var(--ink);box-shadow:inset 0 0 0 1px var(--line)}
.btn--quiet:hover{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--ink) 40%,transparent)}
.btn .ico{width:16px;height:16px;stroke-width:2}
.preview{display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:600;color:var(--ink-2);border-radius:8px}
.preview:hover{color:var(--ink);text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:3px}
.preview .ico{width:15px;height:15px;stroke-width:2;transition:transform .2s var(--ease)}
.preview:hover .ico{transform:translateX(3px)}

/* without JavaScript the switches can't work, so they aren't shown (the page follows the system, in Hungarian) */
:root:not([data-theme]) .tool,:root:not([data-theme]) .seg{display:none}

/* ───────── the status, "not yet": the kit's grey clock, and the words ───────── */
.smk{display:inline-grid;place-items:center;flex:none;width:22px;height:22px;border-radius:50%;color:var(--ink-3);box-shadow:inset 0 0 0 1.25px var(--idle-line)}
.smk svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}

/* ───────── pastel icon tiles, each a different hue (identity, never a status) ───────── */
.tile{--h:var(--violet);display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:10px;
  background:color-mix(in srgb,var(--h) var(--tile-bg),var(--paper));color:color-mix(in srgb,var(--h) var(--tile-ink),var(--tile-to));
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--h) var(--tile-line),transparent)}
.tile .ico{width:19px;height:19px}
.tile--magenta{--h:var(--magenta)}.tile--olive{--h:var(--olive)}.tile--teal{--h:var(--teal)}.tile--petrol{--h:var(--petrol)}

/* ───────── the foot ───────── */
.foot{display:grid;gap:10px;padding:22px var(--gut) calc(26px + env(safe-area-inset-bottom));font-size:13.5px;line-height:1.45;color:var(--ink-3)}
.foot b{font-weight:600;color:var(--ink-2)}
.foot__contact a{font-weight:600;color:var(--ink-2);text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:3px}
@media (min-width:960px){
  :root{--gut:40px}
  .foot{grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:28px;width:100%;max-width:1320px;margin:0 auto;padding:18px var(--gut) 24px}
  .foot__mid{text-align:center}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none !important;transition:none !important}
}

/* ═════════ version A · "The moment before": one light finds a dancer about to step on. The front door is a stage band,
   dark in both themes (dusk plum, never black); the facts stand on the ground in one merged card. ═════════ */
.top{position:relative;z-index:6;display:flex;align-items:center;justify-content:space-between;gap:12px;height:58px;padding:0 var(--gut);
  background:var(--bar);box-shadow:0 1px 0 var(--line-2),0 6px 16px -14px rgb(44 32 80/.35)}
.tools__preview{display:none;margin-right:10px}

.stage{position:relative;isolation:isolate;overflow:hidden;background:var(--stage);color:var(--stage-ink)}
.stage__pic{position:relative;height:min(88vw,44svh);min-height:290px;overflow:hidden}
.stage__pic img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:54% 30%;
  -webkit-mask-image:linear-gradient(to bottom,#000 52%,transparent 98%);mask-image:linear-gradient(to bottom,#000 52%,transparent 98%)}
/* the photograph's black lifts to the band's plum, so there is no tone seam */
.stage__pic::after{content:"";position:absolute;inset:0;background:var(--stage);mix-blend-mode:lighten}
/* the dark the light opens out of, on load only */
@property --k{syntax:"<number>";inherits:true;initial-value:1}
.stage__dark{position:absolute;z-index:1;inset:0;pointer-events:none;opacity:0;
  background:radial-gradient(circle at var(--sx,66%) var(--sy,17%),rgb(21 15 40/0) 0,rgb(21 15 40/0) calc(var(--k) * 16%),rgb(21 15 40/.97) calc(var(--k) * 58%))}
.stage__body{position:relative;z-index:2;margin-top:-92px;padding:0 var(--gut) 34px}
.kick{font-size:13.5px;font-weight:600;color:var(--stage-3)}
.stage h1{margin-top:8px;font-family:var(--display);font-weight:800;font-size:clamp(33px,10.2vw,50px);line-height:.98;letter-spacing:-.022em;text-wrap:balance}
.lead{margin-top:16px;max-width:30em;font-size:16.5px;line-height:1.5;color:var(--stage-2);text-wrap:pretty}
.lead b{font-family:var(--display);font-weight:700;color:var(--stage-ink)}
.soon{display:flex;flex-wrap:wrap;align-items:center;gap:12px 22px;margin-top:26px;padding-top:20px;border-top:1px solid var(--stage-line)}
.soon__when{display:inline-flex;align-items:center;gap:11px;font-family:var(--display);font-weight:650;font-size:23px;line-height:1.1;letter-spacing:-.01em;font-variant-numeric:lining-nums}
.stage .smk{color:var(--stage-2);box-shadow:inset 0 0 0 1.25px rgb(251 247 255/.36)}
.stage .preview{color:var(--stage-2)}
.stage .preview:hover{color:var(--stage-ink)}
.stage :focus-visible{outline-color:var(--stage-ink)}
.stage__cap{position:relative;z-index:2;padding:0 var(--gut) 22px;font-size:12.5px;line-height:1.4;color:var(--stage-3)}

/* the facts: one merged card, a pastel tile each (the kit's .tilesteps) */
.facts{position:relative;z-index:3;padding:18px var(--gut) 8px}
.facts__grid{display:grid;gap:1px;border-radius:16px;background:var(--sep);box-shadow:var(--lift);overflow:hidden}
.fact{position:relative;display:grid;grid-template-columns:36px minmax(0,1fr);gap:3px 14px;align-content:start;padding:16px 18px;background:var(--paper)}
.fact>.tile{grid-row:span 2}
.fact b{font-weight:650;font-size:16px;line-height:1.3}
.fact p{grid-column:2;font-size:14.5px;line-height:1.45;color:var(--ink-2);text-wrap:pretty}
/* three voice notes, one per judge, in the judges' gels (identity, never a status) */
.voices{position:absolute;right:18px;top:18px}
.voices .g-0{fill:color-mix(in srgb,var(--gold) 80%,var(--ink))}
.voices .g-1{fill:color-mix(in srgb,var(--rose) 80%,var(--ink))}
.voices .g-2{fill:color-mix(in srgb,var(--sky) 80%,var(--ink))}
:root[data-theme="dark"] .voices .g-0{fill:var(--gold)}
:root[data-theme="dark"] .voices .g-1{fill:var(--rose)}
:root[data-theme="dark"] .voices .g-2{fill:var(--sky)}
.fact--voice b{padding-right:104px}

/* the one moment: the light finds her, then the words settle */
.intro .stage__dark{animation:lightUp 2s cubic-bezier(.22,.7,.2,1) both}
@keyframes lightUp{from{--k:.05;opacity:1}55%{opacity:1}to{--k:3.4;opacity:0}}
.intro .stage__body>*{animation:settle .8s var(--ease) both}
.intro .stage__body>.kick{animation-delay:.5s}
.intro .stage__body>h1{animation-delay:.6s}
.intro .stage__body>.lead{animation-delay:.74s}
.intro .stage__body>.soon{animation-delay:.9s}
@keyframes settle{from{opacity:0;transform:translateY(10px)}}

@media (min-width:600px){
  .facts__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .fact--voice{grid-column:span 2}
}
@media (min-width:960px){
  .top{height:64px}
  .top__in,.top{padding:0 max(var(--gut),calc(50vw - 620px))}
  .tools__preview{display:inline-flex}
  .stage{display:grid;align-items:center;min-height:clamp(520px,calc(100svh - 64px - 232px),720px)}
  .stage__pic{position:absolute;inset:0 0 0 auto;width:78%;height:auto;min-height:0}
  .stage__pic img{object-position:50% 30%;
    -webkit-mask-image:linear-gradient(to right,transparent 0,#000 36%),linear-gradient(to bottom,#000 80%,transparent 100%);-webkit-mask-composite:source-in;
    mask-image:linear-gradient(to right,transparent 0,#000 36%),linear-gradient(to bottom,#000 80%,transparent 100%);mask-composite:intersect}
  .stage__dark{--sx:73%;--sy:25%}
  .stage__body{width:100%;max-width:1320px;margin:0 auto;padding:54px var(--gut) 76px}
  .stage__body>*{max-width:min(560px,42vw)}
  .stage__body>h1{max-width:min(640px,42vw)}
  .soon .preview{display:none}
  .kick{font-size:14.5px}
  .stage h1{margin-top:10px;font-size:clamp(44px,4.5vw,66px)}
  .stage__body>.lead{margin-top:20px;font-size:18px;max-width:min(27em,42vw)}
  .soon{margin-top:34px;padding-top:24px;max-width:min(500px,42vw)}
  .soon__when{font-size:27px}
  .stage__cap{position:absolute;right:max(var(--gut),calc(50vw - 620px));bottom:52px;padding:0;max-width:22em;text-align:right}
  .facts{max-width:1320px;margin:-38px auto 0;padding:0 var(--gut) 4px}
  /* three and two up to 1199 px, then five in a row */
  .facts__grid{grid-template-columns:repeat(6,minmax(0,1fr))}
  .fact,.fact--voice{grid-column:span 2;grid-template-columns:1fr;gap:5px;padding:20px 20px 22px}
  .fact:nth-child(n+4){grid-column:span 3}
  .fact>.tile{grid-row:auto;margin-bottom:8px}
  .fact p{grid-column:auto;font-size:14px}
  .fact--voice b{padding-right:0}
  .voices{right:20px;top:20px}
}
@media (min-width:1200px){
  .facts__grid{grid-template-columns:repeat(5,minmax(0,1fr))}
  .fact,.fact--voice,.fact:nth-child(n+4){grid-column:auto}
}
