/* ==========================================================================
   copyzor.com — cybercore site styles
   Tokens copied from copyzor_brand_kit/colors_and_type.css, plus site tokens.
   Space Mono is the only live face. Atmosphere appears only via the logo SVGs.
   ========================================================================== */

@font-face {
  font-family: "Space Mono";
  src: url("../assets/fonts/SpaceMono-Regular.woff2?v=140b5a81") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("../assets/fonts/SpaceMono-Italic.woff2?v=7702f289") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("../assets/fonts/SpaceMono-Bold.woff2?v=7078b13e") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  /* ── Brand kit primitives ── */
  --cz-acid: #d1fe17;
  --cz-acid-hover: #c2ef0a;
  --cz-acid-dim: #aacf12;
  --cz-black: #000000;
  --cz-white: #ffffff;
  --cz-grey-95: #0a0a0a;
  --cz-grey-85: #1a1a1a;
  --cz-grey-70: #333333;
  --cz-grey-50: #777777;
  --cz-grey-30: #b8b8b8;
  --cz-grey-15: #e5e5e5;
  --cz-grey-08: #f4f4f4;

  --font-body: "Space Mono", ui-monospace, monospace;
  --font-mono: "Space Mono", ui-monospace, monospace;

  --t-2xs: 11px; --t-xs: 13px; --t-sm: 14px; --t-base: 16px; --t-md: 18px;
  --t-lg: 22px; --t-xl: 28px; --t-2xl: 36px; --t-3xl: 48px; --t-4xl: 64px;

  --lh-tight: 1.05; --lh-snug: 1.2; --lh-base: 1.5; --lh-loose: 1.65;
  --tracking-display: -0.01em;
  --tracking-wide: 0.08em;

  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px;
  --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;

  --r-0: 0px; --r-xs: 2px; --r-sm: 4px; --r-pill: 999px;
  --bw-hair: 1px; --bw-thick: 2px;

  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-snap: cubic-bezier(0.7, 0, 0.2, 1);
  --dur-fast: 120ms; --dur-base: 200ms; --dur-slow: 320ms;

  /* ── Site (dark cybercore) semantics ── */
  --bg: var(--cz-black);
  --bg-raise: var(--cz-grey-95);
  --bg-panel: var(--cz-grey-85);
  --fg: var(--cz-white);
  --fg-2: var(--cz-grey-30);      /* secondary text: 10.6:1 on #000 */
  --fg-3: #9a9a9a;                /* tertiary text: 7.4:1 on #000, 6.9:1 on #0a0a0a */
  --line: var(--cz-grey-70);
  --acid: var(--cz-acid);
  --glow: 0 0 0 1px var(--cz-acid), 0 0 22px -2px rgba(209, 254, 23, 0.45);
  --glow-soft: 0 0 18px rgba(209, 254, 23, 0.28);
  --gutter: clamp(16px, 3.2vw, 40px);
  --max-w: 1600px;
  --head-h: 64px;
  --chamfer: 10px;
  --z-fx: 0; --z-content: 1; --z-head: 20; --z-skip: 60; --z-boot: 70;
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html {
  font-size: 16px;
  scrollbar-gutter: stable;
  scroll-padding-top: calc(var(--head-h) + 32px);
  scrollbar-color: var(--cz-grey-70) var(--cz-black);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: var(--lh-loose);
  color: var(--fg);
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--acid);
  display: flex;
  flex-direction: column;
}
::selection { background: var(--acid); color: var(--cz-black); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(209, 254, 23, 0.22);
}
:focus:not(:focus-visible) { outline: none; }

.vh {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: fixed; left: var(--sp-4); top: var(--sp-3); z-index: var(--z-skip);
  padding: 10px 16px; background: var(--acid); color: var(--cz-black);
  font-weight: 700; text-decoration: none; transform: translateY(-160%);
}
.skip:focus { transform: none; }

.wrap { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }

/* ── HUD labels (uppercase, wide tracking) ── */
.hud-label {
  font-size: var(--t-2xs);
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-2);
  font-variant-numeric: tabular-nums;
}
.hud-label b { color: var(--acid); font-weight: 400; }
.dot {
  display: inline-block; width: 7px; height: 7px; margin-right: 0.7em;
  border-radius: var(--r-pill); background: var(--acid);
  box-shadow: 0 0 8px rgba(209, 254, 23, 0.8); vertical-align: 0.05em;
}

/* HUD corner brackets: 8 hairline gradients, colour via --hc */
.hud {
  --hc: var(--cz-grey-50);
  --hl: 14px;
  background:
    linear-gradient(var(--hc), var(--hc)) top left / var(--hl) 1px,
    linear-gradient(var(--hc), var(--hc)) top left / 1px var(--hl),
    linear-gradient(var(--hc), var(--hc)) top right / var(--hl) 1px,
    linear-gradient(var(--hc), var(--hc)) top right / 1px var(--hl),
    linear-gradient(var(--hc), var(--hc)) bottom left / var(--hl) 1px,
    linear-gradient(var(--hc), var(--hc)) bottom left / 1px var(--hl),
    linear-gradient(var(--hc), var(--hc)) bottom right / var(--hl) 1px,
    linear-gradient(var(--hc), var(--hc)) bottom right / 1px var(--hl);
  background-repeat: no-repeat;
}

/* ── Global FX layer: grid lives on body; scanlines + noise sit
      BEHIND content so they never cover the artwork. ── */
.fx {
  position: fixed; inset: 0; z-index: var(--z-fx); pointer-events: none; overflow: hidden;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 3px);
}
.fx::before {
  content: ""; position: absolute; inset: 0; opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.site-head, main, .site-foot { position: relative; z-index: var(--z-content); }

/* ── Boot reveal (JS-only; content is never hidden without JS) ── */
.boot { display: none; }
html.is-booting .boot {
  display: grid; place-items: center start;
  position: fixed; inset: 0; z-index: var(--z-boot); pointer-events: none;
  padding: var(--gutter);
  background: var(--cz-black);
  animation: boot-out 600ms var(--ease-snap) both;
}
.boot__lines { font-size: var(--t-xs); letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-2); }
.boot__lines p { opacity: 0; animation: boot-line 1ms linear forwards; }
.boot__lines p:nth-child(2) { animation-delay: 110ms; }
.boot__lines p:nth-child(3) { animation-delay: 220ms; color: var(--acid); }
@keyframes boot-line { to { opacity: 1; } }
@keyframes boot-out {
  0%, 60% { transform: none; opacity: 1; }
  100% { transform: translateY(-100%); opacity: 0.4; }
}

/* ── Caret ── */
.caret {
  display: inline-block; width: 0.55em; height: 0.82em; margin-left: 0.18em;
  background: var(--acid); vertical-align: -0.04em;
  box-shadow: 0 0 10px rgba(209, 254, 23, 0.6);
  animation: blink 1.05s steps(1, end) infinite;
}
.is-offscreen .caret { animation-play-state: paused; }
@keyframes blink { 50% { opacity: 0; } }

/* ── Glitch headline (transform/opacity only; one burst on load + on hover) ── */
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  background: var(--cz-black);
  opacity: 0; pointer-events: none;
}
.glitch::before { color: var(--acid); clip-path: inset(12% 0 52% 0); }
.glitch::after { color: var(--cz-white); text-shadow: -2px 0 var(--acid); clip-path: inset(58% 0 8% 0); }
.glitch.is-glitching::before, .glitch:hover::before { animation: gl-a 280ms steps(2, end) 1; }
.glitch.is-glitching::after, .glitch:hover::after { animation: gl-b 280ms steps(2, end) 1; }
@keyframes gl-a {
  0% { opacity: 1; transform: translate(-4px, 0); }
  30% { transform: translate(5px, -1px); }
  60% { transform: translate(-2px, 1px); }
  99% { opacity: 1; transform: translate(3px, 0); }
  100% { opacity: 0; transform: none; }
}
@keyframes gl-b {
  0% { opacity: 1; transform: translate(4px, 0); }
  35% { transform: translate(-5px, 1px); }
  70% { transform: translate(2px, 0); }
  99% { opacity: 1; transform: translate(-3px, 0); }
  100% { opacity: 0; transform: none; }
}


/* ── Buttons & links ── */
.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; gap: 0.8em;
  min-height: 52px; padding: 0 26px;
  font-size: var(--t-sm); font-weight: 700; letter-spacing: var(--tracking-wide); text-transform: uppercase;
  color: var(--cz-black); text-decoration: none; border: 0; cursor: pointer;
  background: none;
  transition: transform 80ms var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--acid);
  clip-path: polygon(var(--chamfer) 0, 100% 0, 100% calc(100% - var(--chamfer)), calc(100% - var(--chamfer)) 100%, 0 100%, 0 var(--chamfer));
}
.btn:hover::before { background: var(--cz-acid-hover); }
.btn:hover { filter: drop-shadow(0 0 14px rgba(209, 254, 23, 0.45)); }
.btn:active { transform: scale(0.98); }
.btn .arr { transition: transform var(--dur-base) var(--ease-out); }
.btn:hover .arr { transform: translateX(4px); }


.panel {
  position: relative;
  padding: clamp(20px, 2.6vw, 32px);
  background-color: rgba(10, 10, 10, 0.88);
  border: 1px solid var(--cz-grey-85);
}
.panel.hud { --hc: var(--acid); --hl: 18px; background-color: rgba(10, 10, 10, 0.88); }
.panel__tag { position: absolute; top: -0.75em; left: 22px; padding: 0 8px; background: var(--cz-black); }

/* ── Section heads (contact) ── */
.sect__head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--sp-3) var(--sp-5);
  padding-bottom: var(--sp-4); margin-bottom: clamp(20px, 3vw, 36px);
  border-bottom: 1px solid var(--line);
}
.sect__title { display: flex; flex-direction: column; gap: var(--sp-2); }
.sect__head h1, .sect__head h2 {
  font-size: clamp(34px, 5vw, 64px); line-height: var(--lh-tight);
  letter-spacing: var(--tracking-display); text-transform: lowercase; font-weight: 700;
}


/* ── Tiles: HUD frame + glitch split on hover ── */
.tile { display: block; text-decoration: none; color: inherit; outline-offset: 8px; }
.tile__frame {
  position: relative; display: block; aspect-ratio: 16 / 9;
  background: var(--cz-grey-85);
  outline: 1px solid var(--line);
}
.tile__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.tile__clip { position: absolute; inset: 0; overflow: hidden; }
.tile__frame::before, .tile__frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; z-index: 2;
  border: 2px solid var(--acid);
}
.tile__frame::after { border-color: var(--cz-white); }
.tile__hud { position: absolute; inset: -7px; pointer-events: none; --hc: transparent; --hl: 16px; transition: transform var(--dur-base) var(--ease-out); }
.tile:hover .tile__frame, .tile:focus-visible .tile__frame { outline-color: var(--acid); box-shadow: var(--glow); }
.tile:hover .tile__hud, .tile:focus-visible .tile__hud { --hc: var(--acid); transform: scale(1.012); }
.tile:hover img, .tile:focus-visible img { transform: scale(1.02); }
.tile:hover .tile__frame::before, .tile:focus-visible .tile__frame::before { animation: split-a 260ms steps(3, end) 1; }
.tile:hover .tile__frame::after, .tile:focus-visible .tile__frame::after { animation: split-b 260ms steps(3, end) 1; }
.tile:focus-visible { outline: none; box-shadow: none; }
@keyframes split-a { 0% { opacity: 0.95; transform: translate(-5px, 1px); } 99% { opacity: 0.95; transform: translate(3px, 0); } 100% { opacity: 0; transform: none; } }
@keyframes split-b { 0% { opacity: 0.8; transform: translate(5px, -1px); } 99% { opacity: 0.8; transform: translate(-3px, 0); } 100% { opacity: 0; transform: none; } }

/* ── Contact ── */
.contact { display: grid; gap: var(--sp-7) clamp(32px, 5vw, 96px); grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
.contact__intro { max-width: 52ch; color: var(--fg-2); font-size: var(--t-sm); margin-bottom: var(--sp-5); }
.form { display: grid; gap: var(--sp-5); }
.field { display: grid; gap: 8px; }
.field label { font-size: var(--t-2xs); letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-2); }
.field label b { color: var(--acid); font-weight: 400; }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: inherit; font-size: 16px; line-height: 1.5; color: var(--fg);
  background: var(--cz-black); border: 1px solid var(--cz-grey-50); border-radius: var(--r-xs);
}
.field textarea { min-height: 168px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--fg-3); }
.field input:hover, .field textarea:hover { border-color: var(--fg-2); }
.field input:focus-visible, .field textarea:focus-visible { outline: 1px solid var(--acid); outline-offset: 0; border-color: var(--acid); box-shadow: var(--glow-soft); }
.field [aria-invalid="true"] { border-color: var(--cz-white); border-style: dashed; }
.field__err { font-size: var(--t-xs); color: var(--cz-white); min-height: 0; }
.field__err:not(:empty)::before { content: "! "; color: var(--acid); font-weight: 700; }
.form__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4) var(--sp-5); }
.form__hint { font-size: var(--t-2xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); }
.status { padding: var(--sp-4) var(--sp-5); border: 1px solid var(--acid); box-shadow: var(--glow-soft); font-size: var(--t-sm); color: var(--fg); }
.status[hidden] { display: none; }
.status p + p { margin-top: var(--sp-2); color: var(--fg-2); }
.status a { color: var(--acid); }

.direct li { border-bottom: 1px solid var(--line); }
.direct li:first-child { border-top: 1px solid var(--line); }
.direct a {
  display: grid; grid-template-columns: 9ch 1fr auto; align-items: center; gap: var(--sp-3);
  min-height: 56px; padding: 6px 4px; text-decoration: none;
}
.direct .k { font-size: var(--t-2xs); letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-3); }
.direct .v { font-size: var(--t-sm); overflow-wrap: anywhere; }
.direct .arr { color: var(--fg-3); transition: transform var(--dur-base) var(--ease-out); }
.direct a:hover .v, .direct a:hover .arr { color: var(--acid); }
.direct a:hover .arr { transform: translateX(4px); }
.direct-title { margin-bottom: var(--sp-4); }

/* ── Eyebrows ── */
.eyebrow { font-size: var(--t-2xs); line-height: 1.5; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; }
.wrap--1280 { max-width: calc(1280px + 2 * var(--gutter)); }

/* ── i18n: hide swappable text until the stored language is applied (head script adds a 1.5s failsafe) ── */
html.js:not(.lang-hu):not(.i18n-done) [data-i18n], html.js:not(.i18n-done) [data-booking] { visibility: hidden; }
html.lang-hu [data-only="en"], html:not(.lang-hu) [data-only="hu"] { display: none; }

/* ── Header (from Nav.jsx): logo · centred links · HU/EN ── */
.site-head {
  position: sticky; top: 0; z-index: var(--z-head);
  background: var(--cz-black); border-bottom: 1px solid var(--line);
}
.site-head__in {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--sp-5);
  min-height: var(--head-h); padding: env(safe-area-inset-top) var(--gutter) 0;
}
.brand { display: block; justify-self: start; padding: 10px 0; }
.brand img { height: 22px; width: auto; }
.site-menu { display: contents; }
.nav { display: flex; gap: clamp(16px, 2.2vw, 32px); }
.nav a {
  display: flex; align-items: center; min-height: 44px;
  font-size: var(--t-sm); letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--fg-2); text-decoration: none; white-space: nowrap;
}
.nav a:hover { color: var(--fg); }
.nav a.is-active { color: var(--acid); text-decoration: underline 2px; text-underline-offset: 8px; }
.lang { justify-self: end; display: flex; align-items: center; font-size: var(--t-2xs); font-weight: 700; letter-spacing: 0.05em; color: var(--fg-3); }
.lang button {
  min-width: 44px; min-height: 44px; padding: 0 6px;
  background: none; border: 0; cursor: pointer; color: var(--fg-3);
}
.lang button:hover { color: var(--fg); }
.lang button[aria-pressed="true"] { color: var(--acid); }
.burger { display: none; }
html:not(.js) .lang { display: none; }
/* the account link (fiokom.html) next to the HU/EN switch */
.head-end { justify-self: end; display: flex; align-items: center; gap: 6px; }
.head-acc {
  display: flex; align-items: center; min-height: 44px; padding: 0 6px;
  font-size: var(--t-2xs); font-weight: 700; letter-spacing: 0.05em; color: var(--fg-2); text-decoration: none; white-space: nowrap;
}
.head-acc:hover { color: var(--fg); }
.head-acc.is-active { color: var(--acid); }
/* 720–879px: the one-row header has no room for it (the logo would shrink); the footer link stays */
@media (min-width: 720px) and (max-width: 879.98px) { .head-acc { display: none; } }

@media (max-width: 719.98px) {
  .site-head__in { grid-template-columns: 1fr auto; }
  html.js .burger {
    display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
    background: none; border: 2px solid var(--fg); cursor: pointer;
  }
  .burger__bars span { display: block; width: 18px; height: 2px; margin: 4px 0; background: var(--fg); transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast); }
  .menu-open .burger__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-open .burger__bars span:nth-child(2) { opacity: 0; }
  .menu-open .burger__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .site-menu { grid-column: 1 / -1; display: flex; flex-direction: column; padding-bottom: var(--sp-4); }
  html.js .site-menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    padding: 4px var(--gutter) 20px; background: var(--cz-black); border-bottom: 1px solid var(--line);
  }
  html.js.menu-open .site-menu { display: flex; }
  .nav { flex-direction: column; gap: 0; }
  .nav a { min-height: 44px; }
  .lang { justify-self: start; margin-left: -6px; }
  .head-end { justify-self: start; margin-left: -6px; }
  .head-end .lang { margin-left: 0; }
}

/* ── Animated acid glow (transform only; replaces the export's WebGL) ── */
.glow { position: relative; isolation: isolate; overflow: hidden; }
/* order section: clip (not hidden) keeps the glow clipped without making a scroll container, so the sticky total bar (.of-bar) sticks */
.of-sect.glow { overflow: clip; }
.glow::before {
  content: ""; position: absolute; inset: -30%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle at 30% 32%, rgba(209, 254, 23, 0.16), transparent 30%),
    radial-gradient(circle at 72% 66%, rgba(209, 254, 23, 0.11), transparent 34%);
  -webkit-mask-image: linear-gradient(#000 50%, transparent 78%); mask-image: linear-gradient(#000 50%, transparent 78%);
  animation: drift 14s ease-in-out infinite alternate;
}
.glow.is-offscreen::before { animation-play-state: paused; }
@keyframes drift { to { transform: translate3d(-8%, 6%, 0) scale(1.08); } }

/* ── Buttons: variants ── */
.btn--ghost { color: var(--fg); box-shadow: inset 0 0 0 2px var(--fg); }
.btn--ghost::before { display: none; }
.btn--ghost:hover { color: var(--acid); box-shadow: inset 0 0 0 2px var(--acid); filter: none; }
.btn--dark { color: var(--acid); }
.btn--dark::before { background: var(--cz-black); }
.btn--dark:hover::before { background: var(--cz-grey-85); }
.btn--dark:hover { filter: drop-shadow(4px 4px 0 var(--cz-white)); }
.btn--dark:focus-visible { outline-color: var(--cz-black); box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.25); }

/* ── Home hero ── */
.hero { padding: 40px 0 0; }
.hero__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; max-width: calc(1280px + 2 * var(--gutter)); }
.hero__book { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--acid); }
.hero__book a { color: var(--acid); text-decoration: none; display: inline-flex; align-items: center; min-height: 24px; }
.hero__book a:hover { text-decoration: underline; }
.pulse { position: relative; width: 8px; height: 8px; border-radius: var(--r-pill); background: var(--acid); box-shadow: 0 0 0 3px rgba(209, 254, 23, 0.25); }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--acid); animation: pulse 1.6s var(--ease-out) infinite; }
.is-offscreen .pulse::after { animation-play-state: paused; }
@keyframes pulse { from { transform: scale(1); opacity: 0.7; } to { transform: scale(3); opacity: 0; } }
.hero__clock { color: var(--fg-3); font-weight: 400; font-variant-numeric: tabular-nums; }
.hero__body { max-width: calc(1280px + 2 * var(--gutter)); padding-top: 72px; padding-bottom: 56px; text-align: center; }
.hero h1 { font-size: clamp(30px, 4.6vw, 66px); line-height: 0.95; letter-spacing: -0.02em; text-transform: lowercase; font-weight: 700; }
.hero__l1, .hero__l2 { display: block; }
/* the keyword line inside the H1 (SEO), shown as a small label above the two headline lines */
.hero h1 .hero__kw { display: block; width: fit-content; margin: 0 auto 1.4em; font-family: var(--font-mono); font-size: var(--t-2xs); line-height: 1.5; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--fg-2); text-shadow: none; }
.hero__l1 { width: fit-content; margin: 0 auto; }
.hero__l2 { width: fit-content; margin: 0.08em auto 0; color: var(--acid); }
.hero__sub { max-width: 640px; margin: 32px auto 0; font-size: 18px; line-height: 1.6; color: var(--fg-2); }
.hero__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 40px; }
.hero__hint { margin-top: 56px; color: var(--fg-3); font-weight: 400; letter-spacing: 0.1em; }

/* ── Marquees ── */
.marquee { position: relative; overflow: hidden; padding: 18px 0; border-block: 1px solid var(--cz-black); }
.marquee--acid { background: var(--acid); color: var(--cz-black); }
.marquee--dark { background: var(--cz-black); color: var(--acid); border-color: #1c1c1c; }
.marquee__label { margin-bottom: 12px; font-size: 10px; letter-spacing: 0.18em; opacity: 0.72; }
.marquee--dark .marquee__label { color: var(--fg-3); opacity: 1; }
.marquee__track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee--dark .marquee__track { animation-duration: 60s; animation-direction: reverse; }
.marquee.is-offscreen .marquee__track { animation-play-state: paused; }
.marquee__row { display: flex; align-items: center; gap: 40px; padding-right: 40px; }
.marquee__item { font-size: var(--t-2xs); font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; white-space: nowrap; }
.marquee__sep { opacity: 0.5; font-size: 12px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Grid sections (Home recent, work.html, other-works.html, related) ── */
.sect { padding: 80px 0 96px; }
.ghead {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px;
  margin-bottom: 48px; padding-bottom: 24px; border-bottom: 2px solid var(--fg);
}
.ghead h1, .ghead h2 { font-size: clamp(40px, 5vw, 64px); line-height: 0.95; letter-spacing: -0.01em; text-transform: lowercase; font-weight: 700; }
.ghead__count { font-size: 12px; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.tile__name { display: block; margin-top: 12px; font-size: var(--t-sm); font-weight: 700; line-height: 1.4; letter-spacing: -0.005em; color: var(--fg); }
.tile__venue { display: block; margin-top: 2px; font-size: var(--t-2xs); line-height: 1.4; color: var(--fg-3); }
.tile:hover .tile__name { color: var(--acid); }
.sect__cta { display: flex; justify-content: center; margin-top: 48px; }

/* ── About (Home) ── */
.about-sect { padding: 0 0 96px; }
.about { display: grid; gap: var(--sp-4); }
.about h2 { font-size: clamp(24px, 2.6vw, 32px); line-height: var(--lh-snug); letter-spacing: var(--tracking-display); text-transform: none; }
.about__flag { display: flex; align-items: center; gap: 10px; margin-bottom: var(--sp-2); color: var(--fg-2); font-weight: 400; }
.about__flag span { font-size: 16px; letter-spacing: 0; }
.about__lang p:not(.about__flag) { font-size: var(--t-sm); line-height: 1.7; color: var(--fg-2); max-width: 80ch; }

/* ── Acid CTA band ── */
.cta { background: var(--acid); color: var(--cz-black); text-align: center; }
.cta__in { padding-top: 64px; padding-bottom: 64px; max-width: calc(760px + 2 * var(--gutter)); }
.cta__eyebrow { margin-bottom: 28px; font-size: clamp(18px, 2.4vw, 26px); font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; }
.cta__title { margin-top: 32px; font-size: clamp(26px, 5vw, 60px); line-height: 0.95; letter-spacing: -0.01em; text-transform: lowercase; font-weight: 700; }
.cta ::selection { background: var(--cz-black); color: var(--acid); }

/* ── Detail pages ── */
.proj { padding: 80px 0; }
.proj__hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.back {
  display: inline-flex; align-items: center; gap: 0.5em; min-height: 44px; margin-top: -12px;
  font-size: var(--t-xs); letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-2);
}
.back:hover { color: var(--acid); }
.proj__kind { margin: 24px 0 20px; color: var(--fg-2); }
.proj__title .proj__kind { display: block; margin: 24px 0 20px; }  /* the "Party Flyer" label inside the detail H1 */
/* 404.html */
.nf__in { display: grid; gap: 24px; justify-items: start; padding-top: 40px; padding-bottom: 80px; }
.nf h1 { font-size: clamp(40px, 6vw, 88px); line-height: 0.95; letter-spacing: -0.02em; font-weight: 700; }
.nf__txt { max-width: 560px; color: var(--fg-2); }
.nf__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.proj__title { font-size: clamp(40px, 6vw, 96px); line-height: 0.92; letter-spacing: -0.01em; font-weight: 700; color: var(--acid); overflow-wrap: anywhere; }
.proj__title .glitch::before { color: var(--cz-white); }
.proj__venue { margin-top: 24px; font-size: 18px; color: var(--fg); }
.proj__cta { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }  /* work details: order CTA + pricing link */
.proj__pr { color: var(--fg); text-decoration: underline; text-underline-offset: 4px; }
.proj__pr:hover { color: var(--acid); }
picture { display: contents; }  /* AVIF / WebP wrapper (tools/gen.py picture()): the <img> keeps its own layout */
.proj__cover { margin: 0; padding: 10px; --hc: var(--acid); --hl: 18px; }
.proj__cover img { width: 100%; outline: 1px solid var(--line); }
.proj__more { padding: 0 0 80px; }
.proj__h { margin-bottom: 24px; color: var(--fg-2); }
/* other-works client page with events (tools/events.json): per event the cover on top, then feed / story / ticket in one row at a
   common height (flex-grow = --ar, the aspect ratio); two per row on phones, the ticket full width */
.evsec { scroll-margin-top: 96px; }
.evgal { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.evgal li { flex: var(--ar) 1 0%; min-width: 0; }
.evgal--cover li { flex: 0 1 960px; }
.evgal img { width: 100%; height: auto; outline: 1px solid var(--line); background: var(--cz-grey-85); }
@media (max-width: 600px) {
  .evgal { flex-wrap: wrap; gap: 12px; }
  .evgal li { flex: 0 1 calc(50% - 6px); }
  .evgal li.evgal__wide, .evgal--cover li { flex-basis: 100%; }
}
.gallery { columns: 3; column-gap: 16px; }
.gallery li { break-inside: avoid; margin-bottom: 16px; }
.gallery img { width: 100%; outline: 1px solid var(--line); background: var(--cz-grey-85); }
/* Instagram post on a detail page (click-to-load, js/site.js initInsta): a glass card with the blurred cover until the click;
   without JS only the link shows */
.proj__insta { padding: 0 0 80px; }
.insta {
  max-width: 540px; margin: 0 auto; padding: 20px; border-radius: var(--sm-r-md, 20px);
  background: var(--sm-glass, rgba(140, 140, 140, 0.16)); box-shadow: inset 0 0 0 1px var(--sm-hair, rgba(255, 255, 255, 0.10));
  -webkit-backdrop-filter: var(--sm-glass-blur, blur(28px)); backdrop-filter: var(--sm-glass-blur, blur(28px));
}
.insta .proj__h { margin-bottom: 16px; }
.insta__ph { position: relative; overflow: hidden; border-radius: var(--sm-r-sm, 12px); background: #000; }
html:not(.js) .insta__ph, .insta.is-loaded .insta__ph { display: none; }
.insta__img img { display: block; width: 100%; height: auto; filter: blur(6px) brightness(0.45); transform: scale(1.06); }
.insta__over { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; text-align: center; }
.insta__icon { color: #fff; }
.insta__note { max-width: 340px; font-size: var(--t-2xs); line-height: 1.5; color: var(--fg-2); }
.insta__embed .instagram-media { margin: 0 auto !important; }
.insta__link { margin-top: 14px; text-align: center; font-size: var(--t-sm); }
.insta__link a { color: var(--fg); text-decoration: underline; text-underline-offset: 4px; }
.insta__link a:hover { color: var(--acid); }
.proj__rel { background: var(--cz-grey-95); border-top: 1px solid var(--line); padding-top: 64px; }
.proj__relh { margin-bottom: 32px; font-size: 32px; font-weight: 400; letter-spacing: -0.01em; text-transform: lowercase; }

/* ── Footer (from Footer.jsx) ── */
.site-foot { margin-top: auto; background: var(--cz-black); border-top: 1px solid var(--line); padding: 64px 0 calc(40px + env(safe-area-inset-bottom)); }
.foot__grid { max-width: calc(1280px + 2 * var(--gutter)); display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; align-items: start; }
.foot__brand img { height: 32px; width: auto; margin-bottom: 16px; }
.foot__brand p { max-width: 360px; font-size: var(--t-sm); line-height: 1.6; color: var(--fg-2); }
.foot__h { margin-bottom: 12px; color: var(--fg-3); }
.foot__list a { display: inline-flex; align-items: center; gap: 0.4em; min-height: 32px; font-size: var(--t-sm); color: var(--fg); text-decoration: none; }
.foot__list a:hover { color: var(--acid); }
.foot__bar {
  max-width: calc(1280px + 2 * var(--gutter)); margin-top: 48px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px;
  font-size: var(--t-2xs); color: var(--fg-3);
}
.foot__bar::before { content: ""; flex: 1 1 100%; height: 1px; margin-bottom: 12px; background: var(--line); }
.foot__bar small { font-size: inherit; }
.foot__legal { display: flex; flex-wrap: wrap; gap: 0 18px; }
.foot__legal a, .foot__top { display: inline-flex; align-items: center; min-height: 32px; color: var(--fg-3); text-decoration: none; }
.foot__legal a:hover { color: var(--fg); text-decoration: underline; }
.foot__top { color: var(--acid); }
.foot__top:hover { text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .contact { grid-template-columns: minmax(0, 1fr); }
  .gallery { columns: 2; }
}
@media (max-width: 719.98px) {
  .grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .proj { padding: 48px 0; }
  .proj__hero { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .foot__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero__body { padding-top: 48px; }
  .hero__sub { font-size: 16px; }
  .sect { padding: 56px 0 72px; }
}
@media (max-width: 480px) {
  .foot__bar { flex-direction: column; align-items: flex-start; }
  .gallery { columns: 1; }
}

/* ── Pricing teaser (pricing.html) ── */
.pricing { display: flex; align-items: center; min-height: 70vh; }
.pricing__in { max-width: calc(840px + 2 * var(--gutter)); padding-top: 96px; padding-bottom: 112px; text-align: center; }
.pricing h1 { margin-bottom: 28px; font-size: clamp(40px, 6vw, 72px); line-height: 0.95; letter-spacing: -0.01em; text-transform: lowercase; font-weight: 700; }
.pricing__teaser { max-width: 620px; margin: 0 auto 40px; font-size: clamp(15px, 1.6vw, 19px); line-height: 1.65; color: var(--fg-2); }
.pricing__mail { display: inline-flex; align-items: center; min-height: 44px; margin-top: 20px; font-size: var(--t-xs); color: var(--fg-2); text-decoration: none; }
.pricing__mail:hover { color: var(--acid); text-decoration: underline; }
.pricing__vat { margin-top: 32px; font-size: var(--t-2xs); letter-spacing: 0.06em; color: var(--fg-3); }

/* ── Legal pages (terms / privacy / cookies / imprint) ── */
.legal-wrap { max-width: calc(820px + 2 * var(--gutter)); }
.legal__eyebrow { margin-bottom: 16px; color: var(--acid); }
.legal h1 { margin-bottom: 20px; font-size: clamp(32px, 4.6vw, 56px); line-height: 1.02; letter-spacing: -0.01em; text-transform: lowercase; font-weight: 700; }
.legal__updated { margin-bottom: 28px; font-size: var(--t-2xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); }
.legal__tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.legal__tabs a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 13px;
  font-size: var(--t-2xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-2); text-decoration: none; border: 1px solid var(--cz-grey-50);
}
.legal__tabs a:hover { color: var(--fg); border-color: var(--fg); }
.legal__tabs a[aria-current="page"] { color: var(--acid); border-color: var(--acid); }
.legal__intro { margin-bottom: 20px; font-size: 15px; line-height: 1.75; }
.legal__note { margin-bottom: 52px; padding-left: 14px; border-left: 2px solid rgba(209, 254, 23, 0.6); font-size: 12px; line-height: 1.7; color: var(--fg-3); }
.legal section + section { margin-top: 44px; }
.legal h2 { margin-bottom: 16px; font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; }
.legal section ul { display: flex; flex-direction: column; gap: 12px; }
.legal section li { position: relative; padding-left: 18px; font-size: var(--t-sm); line-height: 1.7; color: var(--fg-2); overflow-wrap: anywhere; }
.legal section li::before { content: "—"; position: absolute; left: 0; color: var(--acid); }
.ph { color: var(--acid); }

/* ── Coupon popup (js/coupon.js): native <dialog>, built by JS only ── */
.cp {
  width: min(520px, calc(100% - 2 * var(--gutter))); max-width: none; max-height: calc(100dvh - 32px);
  margin: auto; padding: 0; overflow: auto;
  color: var(--fg); background: var(--cz-grey-95); border: 1px solid var(--cz-grey-70);
  box-shadow: inset 0 1px 0 var(--acid), 0 24px 80px rgba(0, 0, 0, 0.9);
}
.cp::backdrop { background: rgba(0, 0, 0, 0.78); }
.cp__in { --hc: var(--acid); --hl: 18px; position: relative; padding: clamp(28px, 5vw, 44px) clamp(20px, 5vw, 40px) clamp(24px, 4vw, 36px); }
.cp__x {
  position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; padding: 0; cursor: pointer;
  font-size: 24px; line-height: 1; color: var(--fg-2); background: none; border: 0;
}
.cp__x:hover { color: var(--acid); }
.cp__eyebrow { margin-bottom: 14px; padding-right: 40px; color: var(--acid); }
.cp__title { font-size: clamp(24px, 4.4vw, 32px); line-height: var(--lh-snug); letter-spacing: var(--tracking-display); }
.cp__body { margin-top: 14px; font-size: var(--t-sm); line-height: 1.65; color: var(--fg-2); }
.cp__valid { margin-top: 14px; font-size: 12px; line-height: 1.6; color: var(--fg-2); }
.cp__days { color: var(--acid); }
.cp__form { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; padding-top: 22px; border-top: 1px solid rgba(209, 254, 23, 0.5); }
.cp__form[hidden], .cp__done[hidden] { display: none; }
.cp__label { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg); }
.cp__email {
  width: 100%; min-height: 52px; padding: 13px 16px;
  font: inherit; font-size: 16px; line-height: 1.4; color: var(--fg);
  background: rgba(0, 0, 0, 0.55); border: 2px solid var(--cz-grey-50); border-radius: 0;
}
.cp__email:hover { border-color: var(--fg-2); }
.cp__email:focus-visible { outline: 0; border-color: var(--acid); box-shadow: var(--glow-soft); }
.cp__email[aria-invalid="true"] { border-color: var(--acid); border-style: dashed; }
.cp__err { align-self: flex-start; padding: 4px 8px; font-size: 12px; line-height: 1.5; color: var(--cz-black); background: var(--acid); }
.cp__err[hidden] { display: none; }
.cp__check { display: flex; align-items: flex-start; gap: 12px; margin-top: 4px; padding: 4px 0; font-size: 13px; line-height: 1.55; color: var(--fg-2); cursor: pointer; }
.cp__check input { flex: 0 0 20px; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--acid); cursor: pointer; }
.cp__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cp__send { align-self: flex-start; margin-top: 8px; }
.cp__send[aria-disabled="true"] { cursor: progress; opacity: 0.7; }
.cp__privacy { font-size: 12px; line-height: 1.6; color: var(--fg-2); }
.cp__privacy a { color: var(--acid); text-decoration: underline; text-underline-offset: 3px; }
.cp__done { margin-top: 22px; padding: 14px 16px; font-size: var(--t-sm); line-height: 1.65; color: var(--fg); border-left: 2px solid var(--acid); background: rgba(209, 254, 23, 0.06); }
.cp__done:focus { outline: 0; }
@media (max-width: 480px) { .cp__send { width: 100%; justify-content: center; text-align: center; } }
@media (prefers-reduced-motion: no-preference) {
  .cp[open] { animation: cp-in 220ms var(--ease-out) both; }
  .cp[open]::backdrop { animation: cp-fade 220ms linear both; }
}
@keyframes cp-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes cp-fade { from { opacity: 0; } }

/* ── CTA chooser (services on; gen.py choose_dialog(), js/site.js initChooser): native <dialog>, two big choice links ── */
.choose {
  width: min(560px, calc(100% - 2 * var(--gutter))); max-width: none; max-height: calc(100dvh - 32px);
  margin: auto; padding: 0; overflow: auto;
  color: var(--fg); background: var(--cz-grey-95); border: 1px solid var(--cz-grey-70);
  box-shadow: inset 0 1px 0 var(--acid), 0 24px 80px rgba(0, 0, 0, 0.9);
}
.choose::backdrop { background: rgba(0, 0, 0, 0.78); }
.choose__in { position: relative; padding: clamp(28px, 5vw, 40px) clamp(18px, 4vw, 32px) clamp(20px, 4vw, 32px); }
.choose__x {
  position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; padding: 0; cursor: pointer;
  font-size: 24px; line-height: 1; color: var(--fg-2); background: none; border: 0;
}
.choose__x:hover { color: var(--acid); }
.choose__title { padding-right: 40px; font-size: clamp(24px, 4.4vw, 32px); line-height: var(--lh-snug); letter-spacing: var(--tracking-display); }
.choose__list { display: grid; gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.choose__opt {
  position: relative; display: grid; gap: 6px; min-height: 44px; padding: 18px 52px 18px 20px;
  color: var(--fg); text-decoration: none; background: rgba(0, 0, 0, 0.55); border: 1px solid var(--cz-grey-70);
  transition: border-color 200ms, background-color 200ms;
}
.choose__opt:hover { border-color: var(--acid); }
.choose__h { font-size: clamp(18px, 2.4vw, 22px); font-weight: 700; line-height: 1.25; }
.choose__s { font-size: var(--t-sm); line-height: 1.5; color: var(--fg-2); }
.choose__arr { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--acid); transition: transform 200ms; }
.choose__opt:hover .choose__arr { transform: translate(4px, -50%); }
@media (prefers-reduced-motion: no-preference) {
  .choose[open] { animation: cp-in 220ms var(--ease-out) both; }
  .choose[open]::backdrop { animation: cp-fade 220ms linear both; }
}

/* ── Reduced motion: kill glitch, boot, caret blink, marquees, glow drift and transitions ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html.is-booting .boot { display: none; }
}
