/* ==========================================================================
   Forbidden Codes
   The studio frame is monochrome (graphite + bone). Colour only enters
   through the work: each case file brings its own palette.
   ========================================================================== */

/* ---------- Fonts: self-hosted Google Fonts (SIL Open Font License) ---------- */
@font-face {
  font-family: 'Martian Mono';
  font-style: normal;
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  font-display: swap;
  src: url('../fonts/martian-mono-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: 'Martian Mono';
  font-style: normal;
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  font-display: swap;
  src: url('../fonts/martian-mono-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Same file as above, but blocking: the wordmark never flashes in a fallback face. */
@font-face {
  font-family: 'Martian Mono Wordmark';
  font-style: normal;
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  font-display: block;
  src: url('../fonts/martian-mono-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/schibsted-grotesk-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: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/schibsted-grotesk-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Anton';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/anton-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: 'Anton';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/anton-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'M PLUS Rounded 1c';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/mplus-rounded-800-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: 'M PLUS Rounded 1c';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/mplus-rounded-800-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;

  /* Studio frame: graphite ground, bone ink. Greys lean warm, toward the bone. */
  --ink: #100f0f;
  --ink-2: #171615;
  --ink-3: #1e1d1b;
  --rule: #2b2927;
  --rule-2: #3d3a36;
  --bone: #ebe6da;
  --bone-2: #c8c2b5;
  --ash: #968f84;
  --smoke: #5f5b55;

  /* Ares case file: the product's own palette (from its app and trailer) */
  --ares-bg: #0a0f22;
  --ares-card: #10142c;
  --ares-row: #181d3c;
  --ares-line: #283060;
  --ares-text: #f4f5ff;
  --ares-soft: #c9cbe8;
  --ares-mut: #8e93b8;
  --ares-indigo: #7d8cff;
  --ares-violet: #b36bff;
  --ares-cyan: #22dcff;
  --ares-green: #22c55e;
  --ares-amber: #f59e0b;
  --ares-grad: linear-gradient(100deg, #7d8cff 0%, #b36bff 50%, #22dcff 100%);

  /* Lucy case file: her dashboard's palette, "maid pink" on violet-black */
  --lucy-bg: #12111a;
  --lucy-panel: #1a1a24;
  --lucy-panel-2: #24242f;
  --lucy-line: #33334a;
  --lucy-text: #e8e8f0;
  --lucy-soft: #cfcfdc;
  --lucy-mut: #9a9ab0;
  --lucy-pink: #d98db4;
  --lucy-pink-2: #f0b8d3;

  --f-mono: 'Martian Mono', ui-monospace, 'Cascadia Mono', 'SFMono-Regular', Menlo, Consolas, monospace;
  --f-sans: 'Schibsted Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --f-ares: 'Anton', Impact, 'Haettenschweiler', 'Arial Narrow Bold', sans-serif;
  --f-lucy: 'M PLUS Rounded 1c', ui-rounded, 'Hiragino Maru Gothic ProN', 'Arial Rounded MT Bold', system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1280px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Rubber-stamp ink texture (alpha mask) and film grain */
  --stamp-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' seed='11'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -7 4.6'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' 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 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--bone);
  font: 400 1.0625rem/1.6 var(--f-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* Film grain over everything, very faint */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  background-image: var(--grain);
  opacity: .035;
}

img, video, canvas, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 800; text-wrap: balance; }
ul, ol, dl { margin: 0; padding: 0; }
dd { margin: 0; }

::selection { background: var(--bone); color: var(--ink); }

:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 400;
  padding: 12px 16px;
  background: var(--bone);
  color: var(--ink);
  font: 600 .8125rem/1 var(--f-mono);
  text-decoration: none;
}
.skip:focus { top: 16px; }

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

.i { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Type roles ---------- */
.label {
  font: 500 .6875rem/1.4 var(--f-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ash);
}

.lede {
  font-size: clamp(1.125rem, 1.5vw, 1.3125rem);
  line-height: 1.55;
  color: var(--bone-2);
  max-width: 34rem;
}
.lede a,
.section-head a {
  color: var(--bone);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
  text-decoration-color: var(--smoke);
  transition: text-decoration-color .2s;
}
.lede a:hover { text-decoration-color: var(--bone); }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7em;
  min-height: 48px;
  padding: 0 1.25rem;
  border: 1px solid var(--bone);
  border-radius: 2px;
  background: var(--bone);
  color: var(--ink);
  font: 600 .75rem/1 var(--f-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn:hover { background: transparent; color: var(--bone); }
.btn .i { width: 1.2em; height: 1.2em; }

.btn--ghost { background: transparent; color: var(--bone); border-color: var(--rule-2); }
.btn--ghost:hover { border-color: var(--bone); background: transparent; }

.btn--sm { min-height: 38px; padding: 0 .9rem; font-size: .6875rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font: 600 .75rem/1 var(--f-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bone);
}
.link-arrow .i { transition: transform .25s var(--ease); }
.link-arrow:hover .i { transform: translateX(4px); }
.link-arrow--back:hover .i { transform: translateX(-4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s;
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(16, 15, 15, .82);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--rule);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  text-decoration: none;
  color: var(--bone);
}
.brand__mark { width: 28px; height: 28px; }
.brand__name {
  font: 600 .75rem/1 var(--f-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.site-nav { margin-left: auto; }
.site-nav__toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  border: 0;
  background: none;
  cursor: pointer;
}
.site-nav__toggle .i { width: 24px; height: 24px; }
.site-nav__list {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.site-nav__list a:not(.btn) {
  font: 500 .6875rem/1 var(--f-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bone-2);
  transition: color .2s;
}
.site-nav__list a:not(.btn):hover { color: var(--bone); }
.site-nav__cta { margin-left: 8px; }

/* Language switch: HU / EN. Needs the script, so it only shows when the script runs. */
.lang {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 4px;
  padding-left: 16px;
  border-left: 1px solid var(--rule-2);
  font: 600 .6875rem/1 var(--f-mono);
  letter-spacing: .12em;
  color: var(--smoke);
}
html:not(.js) .lang { display: none; }
.lang button {
  display: grid;
  place-items: center;
  min-width: 34px;
  min-height: 34px;
  padding: 0 4px;
  border: 0;
  background: none;
  font: inherit;
  letter-spacing: inherit;
  color: var(--ash);
  cursor: pointer;
  transition: color .2s;
}
.lang button:hover { color: var(--bone); }
.lang button[aria-pressed="true"] { color: var(--bone); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

/* A returning Hungarian visitor gets Hungarian straight away instead of a flash of English.
   The script lifts this within milliseconds; the delay is only a failsafe. */
.lang-pending body { visibility: hidden; animation: fc-reveal 0s 1.2s forwards; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + clamp(40px, 6vw, 88px));
  padding-bottom: clamp(56px, 6vw, 88px);
}
.hero__field {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent);
  mask-image: linear-gradient(to bottom, #000 62%, transparent);
}
.hero__wrap { container-type: inline-size; }

.hero__kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(20px, 3vw, 32px);
  color: var(--bone-2);
}
.hero__kicker .i { width: 16px; height: 16px; }

/* The wordmark: one monospaced cell per letter, so the decrypt never reflows. */
.wordmark {
  font-family: 'Martian Mono Wordmark', var(--f-mono);
  font-weight: 800;
  font-stretch: 87.5%;
  /* 9 cells for FORBIDDEN at .62em each (advance + tracking) = 5.58em; 5.7 leaves a hair of room */
  font-size: min(10.5rem, calc(100cqi / 5.7));
  line-height: .86;
  letter-spacing: -.03em;
  text-transform: uppercase;
  color: var(--bone);
}
.wordmark__line { display: block; white-space: nowrap; }
.ch { display: inline-block; position: relative; }

/* Slashed-zero O, the studio's mark */
.ch--o::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 45%;
  width: .1em;
  height: .9em;
  background: currentColor;
  box-shadow: 0 0 0 .045em var(--ink);
  transform: translate(-50%, -50%) rotate(35deg) scaleY(1);
  transition: transform .45s var(--ease);
}

.wordmark__cursor {
  display: inline-block;
  width: .52em;
  height: .7em;
  margin-left: .06em;
  background: var(--bone);
  animation: blink 1.1s steps(1, end) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Decrypt states (JS). Without JS, or if it fails, the wordmark shows as plain text. */
.js .wordmark:not(.is-live) .ch {
  visibility: hidden;
  animation: fc-reveal 0s 2.5s forwards;
}
@keyframes fc-reveal { to { visibility: visible; } }
.js .wordmark:not(.is-decrypted) .ch--o::after {
  transform: translate(-50%, -50%) rotate(35deg) scaleY(0);
  animation: fc-slash 0s 2.5s forwards;
}
.js .wordmark.is-live:not(.is-decrypted) .ch--o::after { animation: none; }
@keyframes fc-slash { to { transform: translate(-50%, -50%) rotate(35deg) scaleY(1); } }
.wordmark.is-live:not(.is-decrypted) .ch:not(.is-set) { color: var(--smoke); }
.ch.is-set { animation: fc-set .6s ease-out; }
@keyframes fc-set {
  from { color: #fff; text-shadow: 0 0 .25em rgba(235, 230, 218, .55); }
  to { color: var(--bone); text-shadow: none; }
}

.hero__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 40px 24px;
  align-items: end;
  margin-top: clamp(32px, 4vw, 52px);
}
.hero__text { grid-column: 1 / span 6; display: grid; gap: 28px; }
.hero__spec { grid-column: 8 / -1; }

/* ---------- Spec sheet (dossier rows) ---------- */
.spec > div {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 11px 0;
  border-top: 1px solid var(--rule);
}
.spec > div:last-child { border-bottom: 1px solid var(--rule); }
.spec dt {
  font: 500 .625rem/1.5 var(--f-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ash);
}
.spec dd {
  font: 400 .8125rem/1.5 var(--f-mono);
  color: var(--bone);
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.spec dd a { text-decoration: none; border-bottom: 1px solid var(--smoke); transition: border-color .2s; }
.spec dd a:hover { border-color: var(--bone); }

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--bone);
  vertical-align: .08em;
  box-shadow: 0 0 0 0 rgba(235, 230, 218, .5);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(235, 230, 218, .45); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(235, 230, 218, 0); }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(80px, 10vw, 144px); }
.section + .section { border-top: 1px solid var(--rule); }

.section-head {
  display: grid;
  gap: 18px;
  max-width: 46rem;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head h2 {
  font: 800 clamp(2.5rem, 6vw, 4.5rem)/.98 var(--f-sans);
  letter-spacing: -.035em;
}
.section-head p:not(.label) {
  max-width: 38rem;
  font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
  color: var(--bone-2);
}

/* ---------- Case files ---------- */
.work { padding-top: clamp(64px, 8vw, 112px); border-top: 1px solid var(--rule); }

.file { position: relative; display: flex; flex-direction: column; }
.file__tab {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  height: 38px;
  padding: 0 34px 0 18px;
  background: var(--ink-3);
  border-radius: 4px 0 0 0;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 100%, 0 100%);
  font: 500 .6875rem/1 var(--f-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ash);
}
.file__body {
  flex: 1;
  background: var(--ink-3);
  border-radius: 0 4px 4px 4px;
  padding: clamp(22px, 3vw, 36px);
}
.file__title {
  font: 800 clamp(1.625rem, 2.6vw, 2.125rem)/1.05 var(--f-sans);
  letter-spacing: -.02em;
  margin-bottom: 24px;
}
/* Rubber stamp */
.stamp {
  position: absolute;
  z-index: 3;
  padding: 9px 14px 8px;
  border: 2.5px solid currentColor;
  border-radius: 5px;
  outline: 1.5px solid currentColor;
  outline-offset: -7px;
  font: 800 .8125rem/1 var(--f-mono);
  letter-spacing: .2em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--bone);
  opacity: .9;
  transform: rotate(-7deg);
  -webkit-mask-image: var(--stamp-mask);
  mask-image: var(--stamp-mask);
  pointer-events: none;
}

/* File 003: an empty file, open for the next project */
.file--blank { margin-top: clamp(40px, 6vw, 72px); }
.blank {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto;
  gap: 28px clamp(28px, 4vw, 56px);
  align-items: center;
}
.blank__head { display: grid; gap: 10px; }
.blank__head .file__title { margin-bottom: 0; }
.blank__head p { max-width: 30rem; color: var(--bone-2); }

/* ---------- Case file panels (shared) ----------
   Each product file sets its palette through --c-* on the article; the components read those. */
.file--ares {
  --c-bg: var(--ares-bg);
  --c-text: var(--ares-text);
  --c-soft: var(--ares-soft);
  --c-mut: var(--ares-mut);
  --c-edge: rgba(125, 140, 255, .12);
  --c-rule: rgba(125, 140, 255, .2);
}
.file--lucy {
  --c-bg: var(--lucy-bg);
  --c-text: var(--lucy-text);
  --c-soft: var(--lucy-soft);
  --c-mut: var(--lucy-mut);
  --c-edge: rgba(217, 141, 180, .12);
  --c-rule: rgba(217, 141, 180, .22);
}
.file--ares .file__tab,
.file--lucy .file__tab { background: var(--c-bg); color: var(--c-mut); }
.file__tab-name { color: var(--c-text); }
.stamp--ares,
.stamp--lucy { top: 8px; right: clamp(20px, 5vw, 64px); color: var(--c-text); }
.stamp--ares { transform: rotate(-6deg); }
.stamp--lucy { transform: rotate(5deg); }

.ares,
.lucy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 64px) clamp(32px, 5vw, 72px);
  padding: clamp(28px, 4.5vw, 64px);
  color: var(--c-text);
  box-shadow: inset 0 0 0 1px var(--c-edge);
}
.ares__intro,
.lucy__intro { grid-area: intro; display: flex; flex-direction: column; align-items: flex-start; }
.ares__stage,
.lucy__stage { grid-area: stage; }

.ares__summary,
.lucy__summary {
  margin-top: 18px;
  max-width: 34rem;
  color: var(--c-soft);
}
.ares__features,
.lucy__features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 28px;
  margin: 34px 0 38px;
  width: 100%;
}
.ares__features li,
.lucy__features li {
  position: relative;
  display: grid;
  align-content: start; /* a taller neighbour in the row must not pull title and text apart */
  gap: 3px;
  padding-left: 18px;
}
.ares__features li::before,
.lucy__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5em;
  width: 7px;
  height: 7px;
}
.ares__features strong,
.lucy__features strong { font-weight: 700; font-size: 1rem; color: var(--c-text); }
.ares__features span,
.lucy__features span { font-size: .9375rem; line-height: 1.5; color: var(--c-mut); }
.ares .actions,
.lucy .actions { margin-top: auto; }

.ares__spec,
.lucy__spec {
  grid-area: spec;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 28px;
  padding-top: 26px;
  border-top: 1px solid var(--c-rule);
}
.ares__spec div,
.lucy__spec div { display: grid; gap: 6px; align-content: start; }
.ares__spec dt,
.lucy__spec dt {
  font: 500 .625rem/1.4 var(--f-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-mut);
}
.ares__spec dd,
.lucy__spec dd { font: 400 .8125rem/1.55 var(--f-mono); color: var(--c-text); text-wrap: balance; }

/* ---------- File 001: Ares ---------- */
.ares {
  grid-template-areas: "intro stage" "spec spec";
  background:
    radial-gradient(55% 60% at 88% 18%, rgba(125, 140, 255, .26), transparent 70%),
    radial-gradient(45% 55% at 62% 92%, rgba(179, 107, 255, .2), transparent 70%),
    radial-gradient(35% 40% at 8% 100%, rgba(34, 220, 255, .09), transparent 70%),
    var(--ares-bg);
}

.ares__brand { display: flex; align-items: center; gap: clamp(14px, 2vw, 22px); }
.ares__brand img {
  width: clamp(44px, 5vw, 64px);
  height: auto;
  filter: drop-shadow(0 0 22px rgba(154, 140, 255, .5));
}
.ares__name {
  font: 400 clamp(4.25rem, 9vw, 7.25rem)/.84 var(--f-ares);
  letter-spacing: .05em;
  text-transform: uppercase;
  background: var(--ares-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-top: .04em;
}
.ares__kicker {
  margin-top: 18px;
  font: 400 clamp(1.5rem, 2.6vw, 2.125rem)/1 var(--f-ares);
  letter-spacing: .02em;
  text-transform: uppercase;
}
.ares__features li::before { border-radius: 1px; background: var(--ares-grad); }

.btn--ares {
  border: 1px solid transparent;
  background: linear-gradient(var(--ares-text), var(--ares-text)) padding-box, var(--ares-grad) border-box;
  color: #07080f;
}
.btn--ares:hover {
  background: linear-gradient(var(--ares-bg), var(--ares-bg)) padding-box, var(--ares-grad) border-box;
  color: var(--ares-text);
}
.btn--ares-ghost { background: transparent; color: var(--ares-text); border-color: var(--ares-line); }
.btn--ares-ghost:hover { border-color: var(--ares-indigo); background: rgba(125, 140, 255, .08); color: var(--ares-text); }
.btn--ares-ghost[aria-pressed="true"] { border-color: var(--ares-cyan); }

/* Stage: phone with the trailer, plus illustrative UI cards */
.ares__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 620px;
}
.ares__stage::before {
  content: "";
  position: absolute;
  inset: 6% 8%;
  background: radial-gradient(closest-side, rgba(125, 140, 255, .38), rgba(179, 107, 255, .16) 60%, transparent);
  filter: blur(18px);
}

.phone {
  position: relative;
  z-index: 1;
  width: 276px;
  margin: 0;
  padding: 9px;
  border-radius: 40px;
  background: #05060b;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .09),
    inset 0 0 0 1px rgba(255, 255, 255, .05),
    0 50px 100px -30px rgba(125, 140, 255, .55),
    0 30px 60px -20px rgba(0, 0, 0, .8);
}
.phone__screen {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 31px;
  overflow: hidden;
  background: #050608;
}
.phone__video { width: 100%; height: 100%; object-fit: cover; }
.phone__controls {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 8px;
}
.phone__btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  background: rgba(5, 6, 11, .62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.phone__btn:hover { background: rgba(5, 6, 11, .85); border-color: rgba(255, 255, 255, .45); }
.phone__btn .i { width: 18px; height: 18px; }

.float {
  position: absolute;
  z-index: 2;
  width: 212px;
  padding: 14px;
  border: 1px solid var(--ares-line);
  border-radius: 16px;
  background: rgba(16, 20, 44, .9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .75);
  color: var(--ares-text);
  font-size: .8125rem;
  line-height: 1.3;
  animation: bob 8s ease-in-out infinite;
}
.float--set { left: -32px; top: 9%; width: 228px; }
.float--macros { right: -40px; top: 45%; width: 196px; animation-delay: -2.7s; }
.float--coach { left: -12px; bottom: 6%; width: 222px; animation-delay: -5.3s; }
@keyframes bob { 50% { transform: translateY(-8px); } }

.float__head { display: grid; gap: 2px; margin-bottom: 10px; }
.float__head b { font-weight: 700; font-size: .875rem; }
.float__head small { font-size: .6875rem; color: var(--ares-mut); }

.setrow {
  display: grid;
  grid-template-columns: 20px 1fr auto auto 16px;
  align-items: center;
  gap: 7px;
  padding: 7px 8px;
  border-radius: 9px;
  background: var(--ares-row);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}
.setrow + .setrow { margin-top: 5px; }
.setrow i {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  font-style: normal;
  font-size: .6875rem;
  color: var(--ares-mut);
}
.setrow span:nth-of-type(2) { color: var(--ares-mut); }
.setrow em {
  font-style: normal;
  font-size: .625rem;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 6px;
  color: var(--ares-amber);
  background: rgba(245, 158, 11, .14);
}
.setrow svg { width: 16px; height: 16px; color: var(--ares-green); }
.setrow.is-active { box-shadow: inset 0 0 0 1px rgba(125, 140, 255, .55); }
.setrow__todo { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #3a4180; }

.macro {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 8px;
  font-variant-numeric: tabular-nums;
}
.macro + .macro { margin-top: 9px; }
.macro span { color: var(--ares-mut); font-size: .75rem; }
.macro b { font-size: .75rem; }
.macro i {
  grid-column: 1 / -1;
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--c) calc(var(--p) * 100%), rgba(255, 255, 255, .08) 0);
}
/* Share of the daily target, as classes rather than inline styles (the CSP forbids those) */
.macro--protein { --p: .91; --c: var(--ares-indigo); }
.macro--carbs { --p: .72; --c: var(--ares-cyan); }
.macro--fat { --p: .66; --c: var(--ares-violet); }

.coach__when { font-weight: 700; font-size: .9375rem; }
.coach__actions { display: flex; gap: 6px; margin-top: 10px; }
.pill {
  padding: 6px 9px;
  white-space: nowrap;
  border-radius: 8px;
  border: 1px solid var(--ares-line);
  font-size: .6875rem;
  font-weight: 700;
  color: var(--ares-soft);
}
.pill--primary { border-color: transparent; background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; }

/* ---------- File 002: Lucy ---------- */
.file--lucy { margin-top: clamp(56px, 7vw, 96px); }
.lucy {
  grid-template-areas: "stage intro" "spec spec";
  background:
    radial-gradient(50% 50% at 24% 58%, rgba(217, 141, 180, .22), transparent 70%),
    radial-gradient(40% 45% at 16% 100%, rgba(251, 191, 36, .07), transparent 70%),
    radial-gradient(45% 50% at 94% 6%, rgba(217, 141, 180, .08), transparent 70%),
    var(--lucy-bg);
}
.lucy__features li::before { border-radius: 50%; background: var(--lucy-pink); }

.lucy__brand { display: flex; align-items: center; gap: clamp(14px, 2vw, 22px); }
.lucy__avatar {
  width: clamp(52px, 5.5vw, 76px);
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--lucy-bg), 0 0 0 5px var(--lucy-pink), 0 0 32px rgba(217, 141, 180, .45);
}
.lucy__name {
  font: 800 clamp(4rem, 8.5vw, 6.75rem)/.9 var(--f-lucy);
  letter-spacing: -.02em;
  color: var(--lucy-text);
}
.lucy__kicker {
  margin-top: 16px;
  font: 800 clamp(1.25rem, 2.2vw, 1.75rem)/1.15 var(--f-lucy);
  color: var(--lucy-pink-2);
}
.btn--lucy { border-color: var(--lucy-pink); background: var(--lucy-pink); color: #1c1018; }
.btn--lucy:hover { background: transparent; color: var(--lucy-pink-2); }

/* Stage: the sticker, pieces of her dashboard, and one sample day to step through */
.lucy__stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-height: 640px;
}
/* The cards are placed against the sticker's own box, not the (stretching) stage */
.lucy__scene {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
}
.lucy__sticker {
  display: block;
  width: min(320px, 72%);
  transform: rotate(-4deg);
  filter: drop-shadow(0 26px 40px rgba(0, 0, 0, .55));
}
.lucy__sticker img { width: 100%; height: auto; }

.lfloat {
  position: absolute;
  z-index: 2;
  border: 1px solid var(--lucy-line);
  border-radius: 14px;
  background: rgba(26, 26, 36, .92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .75);
  color: var(--lucy-text);
  font-size: .8125rem;
  line-height: 1.35;
}
.lfloat--kiosk { top: -8%; right: -36px; width: 236px; padding: 6px; transform: rotate(2deg); }
.lfloat--home { top: 30%; left: -36px; width: 190px; padding: 12px; }
.lfloat--chat { right: -28px; bottom: -2%; width: 270px; padding: 12px; display: grid; gap: 8px; }

.kiosk__screen {
  position: relative;
  aspect-ratio: 492 / 321;
  overflow: hidden;
  border-radius: 9px;
  background: #000;
}
.kiosk__screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .8s ease;
}
.kiosk__screen img.is-on { opacity: 1; }
.kiosk__bar { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 8px 6px 3px; }
.kiosk__bar b { font: 700 .875rem/1 var(--f-mono); font-variant-numeric: tabular-nums; }
.kiosk__bar span { font-size: .6875rem; color: var(--lucy-mut); }

.lfloat__head { display: grid; gap: 2px; margin-bottom: 9px; }
.lfloat__head b { font-size: .875rem; font-weight: 700; }
.lfloat__head small { font-size: .6875rem; color: var(--lucy-mut); }
.dev {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 9px;
  background: var(--lucy-panel-2);
  font-weight: 600;
}
.dev + .dev { margin-top: 5px; }
.tog {
  position: relative;
  flex: none;
  width: 30px;
  height: 17px;
  border-radius: 9px;
  background: #3a3a4e;
  transition: background-color .3s;
}
.tog::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #c9c9da;
  transition: transform .35s var(--ease), background-color .35s;
}
.dev.is-on .tog { background: var(--lucy-pink); }
.dev.is-on .tog::after { transform: translateX(13px); background: #fff; }

.chat__you {
  justify-self: end;
  max-width: 92%;
  padding: 7px 10px;
  border-radius: 12px 12px 4px 12px;
  background: var(--lucy-panel-2);
  color: var(--lucy-soft);
}
.chat__lucy {
  min-height: 4.2em;
  padding: 9px 11px;
  border: 1px solid rgba(217, 141, 180, .35);
  border-radius: 12px 12px 12px 4px;
  background: rgba(217, 141, 180, .13);
}
.chat__state {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 500 .625rem/1 var(--f-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lucy-mut);
}
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.eq i { width: 3px; height: 3px; border-radius: 1px; background: var(--lucy-pink); }
.lucy__stage.is-speaking .eq i { animation: eq .8s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; }
.eq i:nth-child(3) { animation-delay: -.6s; }
.eq i:nth-child(4) { animation-delay: -.15s; }
.eq i:nth-child(5) { animation-delay: -.45s; }
@keyframes eq { 50% { height: 12px; } }
.lucy__stage.is-thinking .eq i { animation: think 1s ease-in-out infinite; }
@keyframes think { 50% { opacity: .25; } }
.lucy__stage.is-asleep .eq i { background: var(--lucy-mut); opacity: .5; }

.lucy__day {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  max-width: 360px;
}
.lucy__day button {
  position: relative;
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px 10px 11px;
  border: 1px solid var(--lucy-line);
  border-radius: 10px;
  background: rgba(26, 26, 36, .75);
  color: var(--lucy-mut);
  text-align: left;
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.lucy__day button:hover { border-color: var(--lucy-mut); }
.lucy__day b { font: 700 .8125rem/1 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--lucy-text); }
.lucy__day span { font-size: .6875rem; line-height: 1.2; }
.lucy__day [aria-pressed="true"] { border-color: var(--lucy-pink); background: rgba(217, 141, 180, .14); }
.lucy__day [aria-pressed="true"] b { color: var(--lucy-pink-2); }
/* While the day plays by itself, the active moment fills a thin progress line */
.lucy__day button::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 1px;
  background: var(--lucy-pink);
  transform: scaleX(0);
  transform-origin: left;
}
.lucy__stage.is-auto .lucy__day [aria-pressed="true"]::after { animation: day-progress var(--scene-ms, 7000ms) linear forwards; }
.lucy__stage.is-auto.is-held .lucy__day [aria-pressed="true"]::after { animation-play-state: paused; }
@keyframes day-progress { to { transform: scaleX(1); } }

/* ---------- Capabilities ---------- */
.caps__layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px clamp(40px, 6vw, 96px);
  align-items: start;
}
.caps__head { position: sticky; top: calc(var(--header-h) + 40px); margin-bottom: 0; }

.caps__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 4vw, 56px) clamp(24px, 3vw, 40px);
}
.cap {
  display: grid;
  align-content: start;
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid var(--rule-2);
}
.cap__ext {
  justify-self: start;
  padding: 5px 9px 4px;
  border: 1px solid var(--rule-2);
  font: 500 .75rem/1 var(--f-mono);
  letter-spacing: .04em;
  color: var(--bone);
}
.cap h3 { font: 700 1.375rem/1.2 var(--f-sans); letter-spacing: -.015em; margin-top: 8px; }
.cap p { color: var(--bone-2); font-size: 1rem; }
.cap .cap__stack {
  font: 400 .6875rem/1.6 var(--f-mono);
  letter-spacing: .04em;
  color: var(--ash);
}

/* ---------- Contact ---------- */
.contact .section-head { margin-bottom: clamp(28px, 4vw, 44px); }
.mail {
  display: inline-block;
  max-width: 100%;
  font: 700 clamp(1.3rem, 5.2vw, 4.25rem)/1.1 var(--f-mono);
  font-stretch: 87.5%;
  letter-spacing: -.03em;
  text-decoration: none;
  color: var(--bone);
  overflow-wrap: anywhere;
  background: linear-gradient(var(--bone), var(--bone)) left bottom / 0 2px no-repeat;
  padding-bottom: 6px;
  transition: background-size .45s var(--ease);
}
.mail:hover { background-size: 100% 2px; }

.contact__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px 64px;
  margin-top: clamp(32px, 4vw, 48px);
}
.btn.is-done { border-color: var(--bone); }

.brief { display: grid; gap: 14px; min-width: min(100%, 22rem); }
.brief ul { list-style: none; display: grid; gap: 8px; }
.brief li {
  position: relative;
  padding-left: 22px;
  color: var(--bone-2);
  font-size: .9375rem;
}
.brief li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 10px;
  height: 1px;
  background: var(--ash);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--rule);
  padding-top: clamp(48px, 6vw, 72px);
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  gap: 40px 48px;
  align-items: start;
}
.site-footer__brand { display: grid; gap: 16px; justify-items: start; }
.site-footer__brand p { color: var(--ash); font-size: .9375rem; }
.site-footer__nav { display: grid; gap: 12px; justify-items: start; }
.site-footer__nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 500 .6875rem/1.4 var(--f-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bone-2);
}
.site-footer__nav a:hover { color: var(--bone); }
.site-footer__nav .i { width: 14px; height: 14px; }

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font: 400 .6875rem/1.6 var(--f-mono);
  letter-spacing: .06em;
  color: var(--ash);
}
.site-footer__base a { text-decoration: none; }
.site-footer__base a:hover { color: var(--bone); }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer__legal [aria-current="page"] { color: var(--bone); }
.site-footer--slim { padding-top: 0; }
.site-footer--slim .site-footer__base { margin-top: 0; }

/* ---------- Document pages: Impresszum, Adatkezelési tájékoztató ---------- */
.doc {
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + clamp(48px, 7vw, 96px));
  padding-bottom: clamp(72px, 9vw, 128px);
}
.doc__body { max-width: 46rem; }
.doc__head { display: grid; gap: 16px; margin-bottom: clamp(32px, 5vw, 52px); }
.doc__head h1 {
  font: 800 clamp(2.5rem, 6vw, 4.25rem)/.98 var(--f-sans);
  letter-spacing: -.035em;
}
.doc__meta { font: 400 .75rem/1.5 var(--f-mono); letter-spacing: .04em; color: var(--ash); }
.doc__lead { font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); color: var(--bone-2); }
.doc section {
  display: grid;
  gap: 14px;
  padding-block: 28px;
  border-top: 1px solid var(--rule);
}
.doc h2 { font: 700 1.375rem/1.25 var(--f-sans); letter-spacing: -.01em; }
.doc h2 .num {
  margin-right: 12px;
  font: 500 .75rem/1 var(--f-mono);
  color: var(--ash);
  vertical-align: .22em;
}
.doc p,
.doc li { color: var(--bone-2); }
.doc ul { list-style: none; display: grid; gap: 6px; }
.doc ul li { position: relative; padding-left: 20px; }
.doc ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 10px;
  height: 1px;
  background: var(--ash);
}
.doc a { color: var(--bone); text-decoration-thickness: 1px; text-underline-offset: .2em; }
.doc code {
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--ink-3);
  font: .875em var(--f-mono);
  color: var(--bone);
}
.doc .spec > div { grid-template-columns: 11rem minmax(0, 1fr); }
.spec--prose dd { font: 400 .9375rem/1.55 var(--f-sans); text-wrap: pretty; }
.doc__back { margin-top: clamp(32px, 5vw, 48px); }

/* Details only the operator can supply. Bright on purpose, so none slips through to the live site. */
.todo {
  display: inline-block;
  padding: 1px 7px;
  border: 1px dashed #f59e0b;
  border-radius: 3px;
  background: rgba(245, 158, 11, .1);
  color: #fbbf24;
  font: 500 .8125rem/1.5 var(--f-mono);
}

/* ---------- 404 ---------- */
.hero--404 {
  display: grid;
  align-content: center;
  min-height: 100svh;
}
.wordmark--404 { font-size: min(15rem, calc(100cqi / 2.6)); }
.hero--404 .hero__text { max-width: 36rem; margin-top: clamp(28px, 4vw, 44px); }

/* Cheat pad: the most famous forbidden code there is */
.cheat { display: grid; gap: 14px; justify-items: start; }
.cheat__device {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 14px 20px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--ink-2);
}
.dpad {
  display: grid;
  grid-template-columns: repeat(3, 30px);
  grid-template-rows: repeat(3, 30px);
}
.dpad button,
.ab button {
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--rule-2);
  background: var(--ink-3);
  color: var(--bone-2);
  cursor: pointer;
  transition: background-color .12s, color .12s, border-color .12s;
}
.dpad button:hover,
.ab button:hover { color: var(--bone); border-color: var(--ash); }
.dpad button.is-pressed,
.ab button.is-pressed,
.dpad button:active,
.ab button:active { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.dpad .i { width: 12px; height: 12px; }
.dpad [data-key="up"] { grid-area: 1 / 2; border-radius: 4px 4px 0 0; border-bottom: 0; }
.dpad [data-key="left"] { grid-area: 2 / 1; border-radius: 4px 0 0 4px; border-right: 0; }
.dpad [data-key="left"] .i { transform: rotate(-90deg); }
.dpad [data-key="right"] { grid-area: 2 / 3; border-radius: 0 4px 4px 0; border-left: 0; }
.dpad [data-key="right"] .i { transform: rotate(90deg); }
.dpad [data-key="down"] { grid-area: 3 / 2; border-radius: 0 0 4px 4px; border-top: 0; }
.dpad [data-key="down"] .i { transform: rotate(180deg); }
.dpad__hub { grid-area: 2 / 2; background: var(--ink-3); border-block: 1px solid var(--rule-2); }

.ab { display: flex; gap: 10px; transform: rotate(-18deg); }
.ab button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font: 700 .75rem/1 var(--f-mono);
}

.cheat__slots { list-style: none; display: flex; gap: 5px; }
.cheat__slots li {
  display: grid;
  place-items: center;
  width: 20px;
  height: 24px;
  border: 1px solid var(--rule-2);
  border-radius: 2px;
  font: 600 .625rem/1 var(--f-mono);
  color: var(--smoke);
  transition: background-color .15s, color .15s, border-color .15s;
}
.cheat__slots .i { width: 10px; height: 10px; }
.cheat__slots [data-dir="left"] .i { transform: rotate(-90deg); }
.cheat__slots [data-dir="right"] .i { transform: rotate(90deg); }
.cheat__slots [data-dir="down"] .i { transform: rotate(180deg); }
.cheat__slots li.is-on { background: var(--bone); border-color: var(--bone); color: var(--ink); }
.cheat.is-wrong .cheat__slots { animation: shake .4s; }
@keyframes shake {
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

/* ---------- Secret level ---------- */
.secret {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px));
}
.secret[hidden] { display: none; }
.secret__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 7, .86);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.secret__panel {
  position: relative;
  display: grid;
  gap: 12px;
  width: min(440px, 100%);
  max-height: 100%;
  overflow: auto;
  padding: 20px;
  border: 1px solid var(--rule-2);
  border-radius: 6px;
  background: var(--ink-2);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .7);
  animation: secret-in .45s var(--ease);
}
@keyframes secret-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.secret__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.secret__x {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: -8px -8px -8px 0;
  border: 0;
  background: none;
  color: var(--bone-2);
  cursor: pointer;
}
.secret__x:hover { color: var(--bone); }
.secret__title { font: 800 1.75rem/1.1 var(--f-sans); letter-spacing: -.02em; }
.secret__sub { color: var(--bone-2); }
.secret__screen {
  justify-self: center;
  width: min(100%, calc((100vh - 290px) * 9 / 16));
  min-width: 200px;
  aspect-ratio: 9 / 16;
  margin-top: 6px;
  border: 1px solid var(--rule-2);
  background: #000;
}
.secret__screen video { width: 100%; height: 100%; object-fit: contain; }
.secret__back { justify-self: stretch; }
body.has-modal { overflow: hidden; }

/* Unlock glitch */
body.is-glitching main,
body.is-glitching .site-header { animation: glitch .5s steps(2, end) 1; }
@keyframes glitch {
  0% { transform: translate(0); }
  20% { transform: translate(-7px, 2px); filter: contrast(1.6); }
  40% { transform: translate(6px, -3px); filter: invert(1); }
  60% { transform: translate(-3px, 1px); filter: none; }
  80% { transform: translate(2px, -1px); }
  100% { transform: none; }
}

/* ---------- Responsive ---------- */
@media (min-width: 1081px) and (max-width: 1280px) {
  .phone { width: 256px; }
  .float--macros { width: 184px; }
  .lucy__sticker { width: min(280px, 66%); }
}

@media (max-width: 1080px) {
  .ares { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "stage" "spec"; }
  .lucy { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "stage" "spec"; }
  .ares__stage { min-height: 640px; }
  .float--set { left: max(0px, calc(50% - 330px)); }
  .float--macros { right: max(0px, calc(50% - 320px)); }
  .float--coach { left: max(3%, calc(50% - 300px)); }
  .lucy__stage { min-height: 0; padding-top: 40px; }
  .lfloat--kiosk { right: max(0px, calc(50% - 340px)); }
  .lfloat--home { left: max(0px, calc(50% - 340px)); }
  .lfloat--chat { right: max(0px, calc(50% - 350px)); }
  .ares__spec, .lucy__spec { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .hero__text, .hero__spec { grid-column: 1 / -1; }
  .hero__spec { max-width: 34rem; }
  .caps__layout { grid-template-columns: minmax(0, 1fr); }
  .caps__head { position: static; }
  .blank { grid-template-columns: minmax(0, 1fr); }
  .blank__cta { justify-self: start; }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cheat { grid-column: 1 / -1; }
}

/* The full nav needs about 930px in Hungarian (the longer language); below 980px it folds into the menu. */
@media (max-width: 980px) {
  .site-header__inner { gap: 12px; }
  .lang { margin-left: auto; padding-left: 0; border-left: 0; }
  .site-nav { order: 1; margin-left: 0; }
  .site-nav__toggle { display: grid; }
  .site-nav__list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px var(--gutter) 20px;
    background: var(--ink);
    border-bottom: 1px solid var(--rule);
  }
  .site-header.is-open .site-nav__list { display: flex; }
  .site-nav__list a:not(.btn) {
    display: block;
    padding: 16px 0;
    font-size: .75rem;
    border-bottom: 1px solid var(--rule);
  }
  .site-nav__cta { margin: 16px 0 0; }
  .site-nav__cta .btn { width: 100%; min-height: 48px; }
}

@media (max-width: 760px) {
  :root { --header-h: 60px; }
  .caps__list { grid-template-columns: minmax(0, 1fr); }
  .ares__features, .lucy__features { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .ares__stage {
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }
  .ares__stage::before { inset: 0 -10% 30%; }
  .phone { width: min(250px, 78%); }
  .float { position: relative; inset: auto; width: 100%; max-width: 320px; animation: none; }
  .float--macros { display: none; }

  .lucy__stage { min-height: 0; gap: 16px; }
  .lucy__scene { flex-direction: column; align-items: center; gap: 16px; }
  .lucy__sticker { width: min(250px, 70%); }
  .lfloat { position: relative; inset: auto; width: 100%; max-width: 320px; transform: none; }
  .lfloat--home { display: none; }

  .ares__spec, .lucy__spec { grid-template-columns: minmax(0, 1fr); }
  .stamp--ares, .stamp--lucy { top: 4px; right: 12px; font-size: .6875rem; }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); }
  .spec > div { grid-template-columns: 6.75rem minmax(0, 1fr); }
  .doc .spec > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .wordmark__cursor, .dot, .float { animation: none !important; }
}
