/*
 * KATLA - shared stylesheet (css/style.css) | Turkish (tr) | LTR
 * Art direction: techy-precise paper-fold look, angled section bands, 0px corners,
 * hard offset shadows, monospace accents, bottom-anchored hero, sticky mobile CTA.
 *
 * ---------------------------------------------------------------------------
 * MARKUP CONTRACT (all pages must follow it; JS hooks use data-* and state classes)
 * ---------------------------------------------------------------------------
 * <html lang="tr" dir="ltr"> <body class="page page-home">
 *
 * a.skip-link[href="#main"]
 * header.site-header[data-header]            (fixed; state: .is-scrolled)
 *   .container.site-header__inner
 *     a.brand[href="index.php"] > span.brand__mark[aria-hidden="true"] + span.brand__name
 *     button.nav-toggle[type=button][aria-expanded="false"][aria-controls="site-nav"][data-nav-toggle]
 *         > span.nav-toggle__bar[aria-hidden="true"] + span.visually-hidden
 *     nav.site-nav#site-nav[data-nav][aria-label]   (state: .is-open)
 *         > ul.site-nav__list > li > a.site-nav__link   (state: .is-active or aria-current="true")
 *         + a.cta.cta--sm[data-cta="primary"][href="game.php"]
 * main#main
 *   section.hero#hero[data-parallax]
 *       > div.hero__bg[aria-hidden="true"]        (backgrounds via CSS: ../img/bg-mobile.jpg / ../img/bg-desktop.jpg)
 *       + div.container.hero__inner
 *           > div.hero__copy > p.eyebrow + h1.hero__title (span.hl) + p.hero__lead
 *                 + div.hero__actions > a.cta.cta--hero[data-cta="primary"][href="game.php"]
 *                       > span.cta__text + span.cta__icon[aria-hidden="true"] (EMPTY; arrow drawn by CSS)
 *                 + ul.tag-list > li.tag (.tag--pink|--yellow|--teal|--purple)
 *           + figure.hero__figure > img.hero__graphic + figcaption.hero__figcap
 *     Parallax: pure CSS scroll-driven fallback; if JS drives it, set data-parallax-active on .hero
 *     and write --parallax-y (e.g. "24px") on .hero.
 *   section.section#nasil-calisir            (tone: paper; add .section--tint / .section--ink for other tones)
 *       > div.container > header.section__head > p.eyebrow + h2.section__title + p.section__intro
 *         + ol.steps > li.step > span.step__num ("01") + h3.step__title + p.step__text
 *   section.section.section--tint#ozellikler
 *       > div.container > header.section__head ... + div.features__grid
 *           > article.feature-card > span.feature-card__icon + h3.feature-card__title
 *                                    + p.feature-card__text (+ p.feature-card__meta)
 *         (1st and 4th card are wide; 1st card is the ink surface)
 *   section.section#galeri
 *       > div.container > header.section__head ... + ul.gallery[data-gallery]
 *           > li.gallery__item > button.gallery__thumb[type=button][data-lightbox-open]
 *                 [data-full="img/gallery-N.jpg"][data-alt][data-caption][aria-haspopup="dialog"]
 *                 > img.gallery__img + span.gallery__label > span.gallery__idx + text
 *   section.section.section--cta#oyna
 *       > div.container > div.cta-block > p.eyebrow + h2.cta-block__title + p.cta-block__text
 *           + a.cta.cta--xl[data-cta="primary"][href="game.php"] > span.cta__text + span.cta__icon
 *   (body-level) div.sticky-cta[data-sticky-cta] > a.cta.cta--block[data-cta="primary"][href="game.php"]
 *   (mobile only; state: .is-hidden)
 * footer.site-footer
 *   .container > div.footer__grid
 *       > div.footer__brand > a.brand + p.footer__about
 *       + nav.footer__col > h2.footer__heading + ul.footer__list > li > a.footer__link
 *       + nav.footer__col (same structure; game.php link here is a normal link, NOT data-cta)
 *     + div.footer__bottom > p.footer__copy (+ ul.footer__legal > li > a.footer__link)
 * Lightbox (end of body):
 *   div.lightbox#lightbox[data-lightbox][role="dialog"][aria-modal="true"][hidden]
 *       > div.lightbox__backdrop[data-lightbox-close]
 *       + figure.lightbox__figure > img.lightbox__img + figcaption.lightbox__caption
 *       + button.lightbox__close[data-lightbox-close][aria-label]
 *       + button.lightbox__nav.lightbox__nav--prev[data-lightbox-prev][aria-label]
 *       + button.lightbox__nav.lightbox__nav--next[data-lightbox-next][aria-label]
 *   Open = remove [hidden] + add .is-open on .lightbox + .has-lightbox on body (scroll lock).
 *
 * Interactive state names: .is-open (nav, lightbox), body.nav-open, .is-scrolled (header),
 *   .is-active (nav link), .is-hidden (sticky CTA), .is-invalid / .is-valid (.field),
 *   .is-success / .is-error (.form-status), [aria-expanded="true"] on .nav-toggle.
 *
 * Generic components also available: .btn (--ink, --ghost), .form/.field/.field__label/
 * .field__input/.field__hint/.field__error, .page-head, .prose, .mono, .visually-hidden.
 * Never put the text "//" in .eyebrow: CSS adds it.
 */

/* ============ Tokens ============ */
:root {
  --pink: #FF5D8F;
  --yellow: #FFB703;
  --teal: #2EC4B6;
  --purple: #6C5CE7;
  --paper: #FFF8F0;
  --paper-2: #FFEEDA;
  --ink: #15122B;
  --ink-2: #26224A;
  --muted: #4B4768;
  --purple-deep: #3D2FB0;
  --teal-deep: #0B7A70;
  --pink-deep: #B8104F;
  --white: #fff;

  --font-body: var(--mrc-font-en), system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --fs-sm: 0.875rem;
  --fs-body: 1rem;
  --fs-lead: clamp(1rem, 0.94rem + 0.3vw, 1.2rem);
  --fs-h3: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  --fs-h2: clamp(1.75rem, 1.2rem + 2.6vw, 3rem);
  --fs-h1: clamp(2.35rem, 1.5rem + 5vw, 4.9rem);

  --gutter: 1rem;
  --maxw: 1200px;
  --header-h: 64px;
  --slant: clamp(24px, 5vw, 72px);
  --sp-section: clamp(2.5rem, 6vw, 5rem);
  --sticky-h: 5.5rem;
  --bw: 2px;
  --focus: var(--purple-deep);
  --arrow: polygon(0 38%, 54% 38%, 54% 14%, 100% 50%, 54% 86%, 54% 62%, 0 62%);
}
@media (min-width: 360px) { :root { --gutter: 1.25rem; } }
@media (min-width: 768px) { :root { --gutter: 2rem; --header-h: 72px; } }
@media (min-width: 1200px) { :root { --gutter: 2.5rem; } }

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 8px);
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
[dir="rtl"] body { font-family: var(--mrc-font-fa), system-ui, sans-serif; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { font-family: var(--mrc-font-fa-display), var(--mrc-font-fa), sans-serif; }
body.nav-open, body.has-lightbox { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; border-radius: 0; }
button { cursor: pointer; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.site-header, .hero, .section--cta, .site-footer, .lightbox, .sticky-cta, .section--ink { --focus: #fff; }

.container { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.mono { font-family: var(--font-mono); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 1rem; top: 0.5rem; z-index: 200;
  padding: 0.75rem 1rem; background: var(--yellow); color: var(--ink);
  font-weight: 700; border: 2px solid var(--ink); transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* Mono accents */
.eyebrow {
  display: inline-block; margin-bottom: 0.75rem;
  font: 600 0.8125rem/1.3 var(--font-mono); color: var(--teal-deep); letter-spacing: 0.02em;
}
.eyebrow::before { content: "//"; margin-right: 0.5em; color: var(--pink-deep); }
.hero .eyebrow, .section--ink .eyebrow, .section--cta .eyebrow, .feature-card--ink .eyebrow { color: var(--teal); }
.hero .eyebrow::before, .section--cta .eyebrow::before { color: var(--yellow); }
.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  display: inline-block; padding: 0.3rem 0.6rem; border: 1.5px solid currentColor;
  font: 600 0.75rem/1.3 var(--font-mono);
}
.tag--pink { background: var(--pink); border-color: var(--pink); color: var(--ink); }
.tag--yellow { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.tag--teal { background: var(--teal); border-color: var(--teal); color: var(--ink); }
.tag--purple { background: var(--purple); border-color: var(--purple); color: #fff; }
.hl { color: var(--yellow); }

/* ============ Primary CTA: statement text segment + attached icon chip ============ */
.cta {
  --cta-bg: var(--yellow); --cta-bg-hover: #FFC83D; --cta-fg: var(--ink);
  --cta-chip: var(--pink); --cta-chip-fg: var(--ink);
  --cta-edge: var(--ink); --cta-shadow: var(--ink); --cta-size: 1.125rem;
  display: inline-flex; align-items: stretch; max-width: 100%; min-height: 56px;
  font: 800 var(--cta-size)/1.15 var(--font-body); letter-spacing: -0.01em;
  color: var(--cta-fg); text-decoration: none;
  border: 3px solid var(--cta-edge); background: var(--cta-bg);
  box-shadow: 6px 6px 0 var(--cta-shadow);
  -webkit-tap-highlight-color: transparent;
}
.cta__text { display: flex; align-items: center; padding: 0.85em 1.15em; flex: 1 1 auto; }
.cta__icon {
  flex: none; display: grid; place-items: center; width: 3.25em;
  background: var(--cta-chip); border-left: 3px solid var(--cta-edge); font-size: 0; color: transparent;
}
.cta__icon::before { content: ""; width: 1.4rem; height: 1.4rem; background: var(--cta-chip-fg); clip-path: var(--arrow); }
@media (hover: hover) {
  .cta:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--cta-shadow); background: var(--cta-bg-hover); }
  .cta:hover .cta__icon { background: var(--ink); }
  .cta:hover .cta__icon::before { background: var(--yellow); }
}
.cta:focus-visible { outline-width: 4px; outline-offset: 5px; }
.cta:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--cta-shadow); }
.cta--sm { --cta-size: 0.9375rem; min-height: 48px; box-shadow: 4px 4px 0 var(--cta-shadow); }
.cta--sm .cta__text { padding: 0.6em 1em; }
.cta--hero { --cta-size: clamp(1.25rem, 0.9rem + 1.8vw, 2rem); --cta-edge: var(--paper); --cta-shadow: var(--pink); min-height: 64px; }
.cta--hero .cta__text { padding: 0.9em 1.2em; }
.cta--xl { --cta-size: clamp(1.35rem, 0.8rem + 2.8vw, 2.75rem); min-height: 72px; box-shadow: 8px 8px 0 var(--cta-shadow); }
.cta--xl .cta__text { padding: 1em 1.2em; }
.cta--xl .cta__icon { width: clamp(3.5rem, 12vw, 5.5rem); }
.cta--block { display: flex; width: 100%; }
.cta--block .cta__text { justify-content: space-between; }
.section--cta .cta { --cta-edge: var(--ink); --cta-shadow: var(--ink); }

/* Secondary buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 0.7rem 1.25rem; border: 2px solid var(--ink); background: transparent; color: var(--ink);
  font: 700 1rem/1.2 var(--font-body); text-decoration: none; box-shadow: 4px 4px 0 var(--ink);
}
.btn--ink { background: var(--ink); color: var(--paper); box-shadow: 4px 4px 0 var(--teal); }
.btn--ghost { box-shadow: none; }
@media (hover: hover) { .btn:hover { background: var(--yellow); color: var(--ink); transform: translate(-2px, -2px); } }
.btn:active { transform: translate(3px, 3px); box-shadow: none; }

/* Sticky bottom CTA (mobile only) */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  padding: 0.75rem calc(var(--gutter) + 4px) calc(0.75rem + env(safe-area-inset-bottom)) var(--gutter);
  background: rgba(21, 18, 43, 0.95); border-top: 3px solid var(--yellow);
}
.sticky-cta .cta { --cta-edge: var(--paper); --cta-shadow: var(--pink); --cta-size: 1.25rem; box-shadow: 4px 4px 0 var(--cta-shadow); }
.sticky-cta.is-hidden { transform: translateY(110%); visibility: hidden; }
@media (min-width: 768px) { .sticky-cta { display: none; } }

/* ============ Header / navigation ============ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  background: rgba(21, 18, 43, 0.88); color: var(--paper);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px;
  background: linear-gradient(90deg, var(--pink) 0 25%, var(--yellow) 25% 50%, var(--teal) 50% 75%, var(--purple) 75%);
}
.site-header.is-scrolled { background: var(--ink); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 48px; color: inherit; text-decoration: none; }
.brand__mark {
  width: 28px; height: 28px; flex: none;
  background: linear-gradient(135deg, var(--pink) 0 50%, var(--yellow) 50% 100%);
  clip-path: polygon(0 0, 70% 0, 100% 30%, 100% 100%, 0 100%);
}
.brand__name { font: 800 1.3rem/1 var(--font-body); letter-spacing: -0.03em; }

.nav-toggle {
  position: relative; width: 48px; height: 48px; padding: 0; background: transparent;
  border: 2px solid var(--paper); color: var(--paper);
}
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
  position: absolute; left: 50%; width: 20px; height: 2.5px; background: var(--paper); content: "";
}
.nav-toggle__bar { top: 50%; margin: -1px 0 0 -10px; }
.nav-toggle__bar::before { left: 0; top: -7px; }
.nav-toggle__bar::after { left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar, .nav-toggle.is-open .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before, .nav-toggle.is-open .nav-toggle__bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after, .nav-toggle.is-open .nav-toggle__bar::after { top: 0; transform: rotate(-45deg); }

.site-nav {
  position: absolute; top: calc(100% + 3px); left: 0; right: 0; display: none;
  flex-direction: column; gap: 1rem; padding: 0.5rem var(--gutter) 1.5rem;
  background: var(--ink); max-height: calc(100svh - var(--header-h)); overflow-y: auto;
}
.site-nav.is-open { display: flex; }
.site-nav__link {
  display: flex; align-items: center; min-height: 52px; padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 248, 240, 0.16);
  font: 600 1rem/1.2 var(--font-mono); color: var(--paper); text-decoration: none;
}
.site-nav__link:hover { color: var(--yellow); }
.site-nav__link.is-active, .site-nav__link[aria-current="true"], .site-nav__link[aria-current="page"] { color: var(--yellow); box-shadow: inset 4px 0 0 var(--yellow); padding-left: 0.75rem; }
.site-nav .cta { width: 100%; --cta-edge: var(--paper); --cta-shadow: var(--pink); }

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static; display: flex; flex-direction: row; align-items: center; gap: 1.5rem;
    padding: 0; background: none; max-height: none; overflow: visible;
  }
  .site-nav__list { display: flex; gap: 0.25rem; }
  .site-nav__link { min-height: 48px; padding: 0.5rem 0.75rem; border-bottom: 3px solid transparent; font-size: 0.875rem; }
  .site-nav__link.is-active, .site-nav__link[aria-current="true"], .site-nav__link[aria-current="page"] { box-shadow: none; border-bottom-color: var(--yellow); padding-left: 0.75rem; }
  .site-nav .cta { width: auto; }
}

/* ============ Hero: bottom-anchored over full-bleed visual ============ */
.hero {
  position: relative; isolation: isolate; display: flex; align-items: flex-end;
  min-height: 100vh; min-height: max(640px, 100svh);
  padding: calc(var(--header-h) + 1.5rem) 0 calc(var(--slant) + 2.25rem);
  background: var(--ink); color: var(--paper);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slant)), 0 100%);
}
.hero__bg {
  position: absolute; inset: -10% 0; z-index: -2;
  background: var(--ink) url("../img/bg-mobile.jpg") center / cover no-repeat;
  transform: translate3d(0, 0, 0); will-change: transform;
}
@media (min-width: 768px) { .hero__bg { background-image: url("../img/bg-desktop.jpg"); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(21, 18, 43, 0.55) 0%, rgba(21, 18, 43, 0.05) 38%, rgba(21, 18, 43, 0.72) 100%);
}
.hero[data-parallax-active] .hero__bg { transform: translate3d(0, var(--parallax-y, 0px), 0); }
@keyframes hero-parallax { to { transform: translate3d(0, 9%, 0); } }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero:not([data-parallax-active]) .hero__bg {
      animation: hero-parallax linear both; animation-timeline: scroll(root); animation-range: 0 100vh;
    }
  }
}

.hero__inner { position: relative; display: flex; flex-direction: column; gap: 1.5rem; }
.hero__figure {
  order: -1; align-self: flex-end; position: relative; width: min(56%, 250px); margin: 0 0.5rem 0 0;
  transform: rotate(2.5deg); box-shadow: 6px 6px 0 var(--teal); background: var(--paper);
}
.hero__figure::before {
  content: ""; position: absolute; inset: -12px 12px 12px -12px; z-index: -1;
  border: 2px dashed var(--yellow);
}
.hero__graphic { width: 100%; aspect-ratio: 1; object-fit: cover; border: 3px solid var(--paper); }
.hero__figcap {
  padding: 0.35rem 0.6rem; background: var(--ink); color: var(--paper);
  border: 3px solid var(--paper); border-top: 0; font: 600 0.6875rem/1.3 var(--font-mono);
}
.hero__copy {
  max-width: 42rem; padding: 1.25rem 1.25rem 1.5rem;
  background: rgba(21, 18, 43, 0.9); border-left: 6px solid var(--pink);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hero__title { font-size: var(--fs-h1); line-height: 1; letter-spacing: -0.035em; margin-bottom: 1rem; }
.hero__lead { font-size: var(--fs-lead); color: #EFE9DE; max-width: 36rem; }
.hero__actions { margin: 1.5rem 0 1.25rem; padding-right: 6px; }
.hero__copy .tag-list { margin-top: 0.25rem; }

@media (min-width: 768px) {
  .hero__inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); align-items: end; gap: 2.5rem; }
  .hero__figure { order: 0; justify-self: end; width: 100%; max-width: 380px; margin: 0 1rem 0 0; box-shadow: 10px 10px 0 var(--teal); }
  .hero__copy { padding: 2rem 2rem 2.25rem; }
}
@media (min-width: 1200px) {
  .hero__inner { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); }
  .hero__figure { max-width: 440px; }
  .hero__copy { padding: 2.5rem 2.75rem 2.75rem; }
}

/* ============ Angled section bands ============ */
.section {
  --section-bg: var(--paper);
  position: relative; isolation: isolate;
  margin-top: calc(var(--slant) * -1 - 1px);
  padding: calc(var(--slant) * 0.6 + var(--sp-section)) 0;
  color: var(--ink);
}
.section::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-color: var(--section-bg);
  background-image: linear-gradient(115deg, transparent 0 62%, rgba(108, 92, 231, 0.05) 62% 100%);
  clip-path: polygon(0 var(--slant), 100% 0, 100% calc(100% - var(--slant)), 0 100%);
}
.section--tint { --section-bg: var(--paper-2); }
.section--tint::before {
  background-image:
    linear-gradient(rgba(21, 18, 43, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 18, 43, 0.055) 1px, transparent 1px);
  background-size: 32px 32px;
}
.section--ink { --section-bg: var(--ink); color: var(--paper); }
.section--ink::before { background-image: none; }

.section__head { max-width: 44rem; margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.section__title { font-size: var(--fs-h2); }
.section__intro { margin-top: 0.9rem; font-size: var(--fs-lead); color: var(--muted); max-width: 38rem; }
.section--ink .section__intro { color: #D9D4E8; }

/* ============ How it works ============ */
.steps { display: grid; gap: 1.5rem; }
.step {
  --accent: var(--yellow); --on-accent: var(--ink);
  position: relative; padding: 1.25rem 1.25rem 1.5rem;
  background: var(--white); border: var(--bw) solid var(--ink); box-shadow: 6px 6px 0 var(--accent);
}
.step:nth-child(2) { --accent: var(--pink); }
.step:nth-child(3) { --accent: var(--teal); }
.step:nth-child(4) { --accent: var(--purple); --on-accent: #fff; }
.step__num {
  display: inline-grid; place-items: center; min-width: 3.25rem; height: 3.25rem; padding: 0 0.6rem;
  background: var(--accent); color: var(--on-accent); border: var(--bw) solid var(--ink);
  font: 700 1.5rem/1 var(--font-mono);
}
.step__title { margin: 1rem 0 0.4rem; font-size: var(--fs-h3); }
.step__text { color: var(--muted); }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem; } }
@media (min-width: 1200px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; }
  .step:nth-child(2) { margin-top: 1.5rem; }
  .step:nth-child(3) { margin-top: 3rem; }
  .step:nth-child(4) { margin-top: 4.5rem; }
}

/* ============ Features: varied card sizes, layered surfaces ============ */
.features__grid { display: grid; gap: 1.5rem; }
.feature-card {
  --accent: var(--teal); --on-accent: var(--ink);
  position: relative; display: flex; flex-direction: column; gap: 0.75rem; padding: 1.5rem;
  background: var(--white); border: var(--bw) solid var(--ink); box-shadow: 8px 8px 0 var(--accent);
}
.feature-card:nth-child(2) { --accent: var(--pink); }
.feature-card:nth-child(3) { --accent: var(--yellow); }
.feature-card:nth-child(4) { --accent: var(--purple); }
.feature-card::after { /* folded paper corner */
  content: ""; position: absolute; top: -2px; right: -2px; width: 34px; height: 34px;
  background: linear-gradient(225deg, var(--section-bg) 0 calc(50% - 1px), var(--ink) calc(50% - 1px) calc(50% + 1px), var(--accent) calc(50% + 1px));
}
.feature-card__icon {
  display: inline-grid; place-items: center; align-self: flex-start; min-width: 2.75rem; height: 2.75rem; padding: 0 0.5rem;
  background: var(--accent); color: var(--on-accent); border: var(--bw) solid var(--ink);
  font: 700 1rem/1 var(--font-mono);
}
.feature-card:nth-child(4) .feature-card__icon { color: #fff; }
.feature-card__title { font-size: var(--fs-h3); }
.feature-card__text { color: var(--muted); }
.feature-card__meta { margin-top: auto; padding-top: 0.75rem; border-top: 1px dashed currentColor; font: 600 0.75rem/1.4 var(--font-mono); color: var(--teal-deep); }
.feature-card--ink, .feature-card:nth-child(1) { background: var(--ink); color: var(--paper); box-shadow: 8px 8px 0 var(--teal); }
.feature-card:nth-child(1) .feature-card__text { color: #D9D4E8; }
.feature-card:nth-child(1) .feature-card__meta { color: var(--teal); }
@media (min-width: 768px) {
  .features__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.75rem; }
  .feature-card { grid-column: span 3; padding: 1.75rem; }
  .feature-card:nth-child(1) { grid-column: span 4; padding: 2.25rem; }
  .feature-card:nth-child(2), .feature-card:nth-child(3) { grid-column: span 2; }
  .feature-card:nth-child(4) { grid-column: span 4; }
  .feature-card:nth-child(1) .feature-card__title { font-size: clamp(1.5rem, 2.4vw, 2rem); }
}
@media (min-width: 1200px) { .features__grid { gap: 2rem; } }

/* ============ Gallery: thumbnail grid ============ */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.gallery__item { --accent: var(--pink); }
.gallery__item:nth-child(2) { --accent: var(--purple); }
.gallery__item:nth-child(3) { --accent: var(--yellow); }
.gallery__item:nth-child(4) { --accent: var(--teal); }
.gallery__thumb {
  position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; overflow: hidden;
  background: var(--white); border: var(--bw) solid var(--ink); box-shadow: 5px 5px 0 var(--accent); text-align: left;
}
.gallery__img { width: 100%; height: 100%; object-fit: cover; }
.gallery__label {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 0.7rem; background: var(--ink); color: var(--paper); font: 600 0.75rem/1.3 var(--font-mono);
}
.gallery__idx { color: var(--yellow); }
.gallery__thumb::after { /* zoom affordance: plus chip */
  content: ""; position: absolute; top: 0; right: 0; width: 34px; height: 34px; background:
    linear-gradient(var(--ink), var(--ink)) center / 14px 2.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2.5px 14px no-repeat,
    var(--yellow);
  border-left: var(--bw) solid var(--ink); border-bottom: var(--bw) solid var(--ink);
}
@media (hover: hover) {
  .gallery__thumb:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--accent); }
  .gallery__thumb:hover .gallery__label { background: var(--yellow); color: var(--ink); }
}
.gallery__thumb:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--accent); }
@media (min-width: 768px) { .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; } .gallery__label { font-size: 0.8125rem; } }
@media (min-width: 1200px) { .gallery { gap: 2rem; } }

/* ============ Lightbox ============ */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none; place-items: center;
  padding: 4.5rem 1rem 5.5rem; color: var(--paper);
}
.lightbox.is-open { display: grid; }
.lightbox[hidden] { display: none; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(21, 18, 43, 0.94); }
.lightbox__figure { position: relative; z-index: 1; width: min(100%, 720px); margin: 0; }
.lightbox__img { width: 100%; max-height: 68svh; object-fit: contain; background: var(--ink); border: 3px solid var(--paper); }
.lightbox__caption { padding: 0.6rem 0.8rem; background: var(--paper); color: var(--ink); font: 600 0.8125rem/1.4 var(--font-mono); }
.lightbox__close, .lightbox__nav {
  position: absolute; z-index: 2; width: 52px; height: 52px; padding: 0; font-size: 0; color: transparent;
  background: var(--yellow); border: 3px solid var(--paper);
}
.lightbox__close { top: 0.75rem; right: 0.75rem; }
.lightbox__close::before, .lightbox__close::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 3px; background: var(--ink);
  transform: translate(-50%, -50%) rotate(45deg);
}
.lightbox__close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.lightbox__nav { bottom: 1rem; }
.lightbox__nav--prev { left: var(--gutter); }
.lightbox__nav--next { right: var(--gutter); }
.lightbox__nav::before { content: ""; position: absolute; inset: 14px; background: var(--ink); clip-path: var(--arrow); }
.lightbox__nav--prev::before { transform: scaleX(-1); }
@media (hover: hover) { .lightbox__close:hover, .lightbox__nav:hover { background: var(--pink); } }
.lightbox__close:active, .lightbox__nav:active { transform: translate(2px, 2px); }
@media (min-width: 768px) {
  .lightbox { padding: 4.5rem 6rem; }
  .lightbox__nav { top: 50%; bottom: auto; margin-top: -26px; }
  .lightbox__nav--prev { left: 1.5rem; }
  .lightbox__nav--next { right: 1.5rem; }
}

/* ============ CTA band (color enters here) ============ */
.section--cta { --section-bg: var(--purple); color: #fff; padding-block: calc(var(--slant) * 0.6 + var(--sp-section) + 1rem); }
.section--cta::before { background-image: linear-gradient(135deg, var(--purple-deep) 0%, var(--purple) 62%, #7E70EE 100%); }
.section--cta::after {
  content: ""; position: absolute; inset: 0; z-index: -1; display: none;
  background: linear-gradient(115deg, transparent 0 18%, var(--pink) 18% 38%, var(--yellow) 38% 58%, var(--teal) 58% 78%, transparent 78%) right / 34% 100% no-repeat;
  clip-path: polygon(0 var(--slant), 100% 0, 100% calc(100% - var(--slant)), 0 100%);
}
@media (min-width: 768px) { .section--cta::after { display: block; } }
.cta-block { display: grid; gap: 1.25rem; justify-items: start; max-width: 40rem; padding-right: 8px; }
.cta-block__title { font-size: clamp(2rem, 1.2rem + 3.8vw, 3.9rem); line-height: 1.02; letter-spacing: -0.035em; }
.cta-block__text { font-size: var(--fs-lead); color: #F1EEFF; max-width: 34rem; }
.cta-block .cta { margin-top: 0.5rem; }
@media (min-width: 768px) { .cta-block { max-width: 52%; } }
@media (min-width: 1200px) { .cta-block { max-width: 46rem; } }

/* ============ Footer ============ */
.site-footer {
  position: relative; isolation: isolate; margin-top: calc(var(--slant) * -1 - 1px);
  padding: calc(var(--slant) + 2.5rem) 0 calc(2rem + var(--sticky-h) + env(safe-area-inset-bottom));
  color: #D9D4E8;
}
.site-footer::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink);
  clip-path: polygon(0 var(--slant), 100% 0, 100% 100%, 0 100%);
}
.site-footer .brand { color: var(--paper); }
.footer__grid { display: grid; gap: 2rem; }
.footer__about { margin-top: 0.75rem; max-width: 28rem; }
.footer__heading { margin-bottom: 0.75rem; font: 600 0.8125rem/1.3 var(--font-mono); color: var(--yellow); letter-spacing: 0.02em; }
.footer__heading::before { content: "// "; color: var(--pink); }
.footer__list { display: grid; gap: 0.15rem; }
.footer__link { display: inline-flex; align-items: center; min-height: 44px; color: var(--paper); text-decoration: none; border-bottom: 1px solid transparent; }
.footer__link:hover { color: var(--yellow); border-bottom-color: var(--yellow); }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 1.5rem;
  margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 248, 240, 0.18);
  font: 500 0.8125rem/1.5 var(--font-mono);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
@media (min-width: 768px) {
  .site-footer { padding-bottom: 2rem; }
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr; gap: 3rem; }
}

/* ============ Forms (shared) ============ */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; }
.field__label { font: 600 0.875rem/1.3 var(--font-mono); }
.field__input {
  width: 100%; min-height: 48px; padding: 0.7rem 0.9rem; background: var(--white); color: var(--ink);
  border: var(--bw) solid var(--ink); -webkit-appearance: none; appearance: none;
}
textarea.field__input { min-height: 8rem; resize: vertical; }
.field__input::placeholder { color: #6B6788; }
.field__input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; box-shadow: 4px 4px 0 var(--teal); }
.field__hint { font-size: var(--fs-sm); color: var(--muted); }
.field__error { display: none; font-size: var(--fs-sm); font-weight: 600; color: var(--pink-deep); }
.field.is-invalid .field__input { border-color: var(--pink-deep); box-shadow: 4px 4px 0 var(--pink); }
.field.is-invalid .field__error { display: block; }
.field.is-valid .field__input { border-color: var(--teal-deep); box-shadow: 4px 4px 0 var(--teal); }
.form-status { display: none; padding: 0.9rem 1rem; border: var(--bw) solid var(--ink); font-weight: 600; }
.form-status.is-success { display: block; background: var(--teal); color: var(--ink); }
.form-status.is-error { display: block; background: var(--pink); color: var(--ink); }

/* ============ Content documents (legal / info pages) ============ */
.page-head { padding: calc(var(--header-h) + 2.5rem) 0 2rem; background: var(--paper-2); border-bottom: var(--bw) solid var(--ink); }
.page-head h1 { font-size: var(--fs-h2); }
.prose { max-width: 46rem; padding-block: 2.5rem 4rem; }
.prose > * + * { margin-top: 1rem; }
.prose h2 { margin-top: 2.25rem; font-size: var(--fs-h3); }
.prose a { color: var(--purple-deep); font-weight: 600; }
.prose ul { list-style: square; padding-left: 1.25rem; }
.prose ol { list-style: decimal; padding-left: 1.25rem; }

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero__bg, .hero[data-parallax-active] .hero__bg { transform: none !important; will-change: auto; }
}