/* =========================================================
   Risolat Umidovna — Liquid Gold / Private Club
   Vanilla CSS. Palette agreed with RiMafia.Web accent #E8B14C.
   ========================================================= */

:root {
  /* ---- shared tokens (theme-independent) ---- */
  --gold-4: #8a5a19;
  /* Buttons and bullet-dots keep the bright metallic gradient in both themes —
     it always sits on a gold fill, never on the page background. */
  --gold-grad: linear-gradient(135deg, #f6e27a 0%, #e8b14c 42%, #d4a437 68%, #8a5a19 100%);

  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-sans: 'Manrope', -apple-system, 'Segoe UI', sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 5vw, 40px);
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* ---- LIGHT palette (default; also what a light-OS user sees on "system") ---- */
  --black: #f6f0e4;
  --black-2: #efe6d4;
  --panel: #fffaf0;
  --panel-2: #f5ebd9;
  --panel-feature: #fbf2e1;
  --line: rgba(138, 90, 25, 0.18);
  --line-strong: rgba(138, 90, 25, 0.34);

  --ivory: #2a2013;
  --muted: #6f6350;
  --muted-2: #96876d;

  /* Golds go deep on light so text/borders stay readable on ivory. */
  --gold-1: #a6741a;
  --gold-2: #9a6a15;
  --gold-3: #8a5a19;
  --gold-soft: rgba(184, 128, 31, 0.14);

  --name-grad: linear-gradient(100deg, #c9992f, #a9741d, #7d5015, #a9741d, #c9992f);
  --accent-grad: linear-gradient(135deg, #c8992f, #a9741d, #7d5015);

  --header-bg: rgba(248, 242, 232, 0.82);
  --nav-bg: rgba(248, 242, 232, 0.97);
  --danger: #b3372b;

  color-scheme: light;
}

/* ---- DARK palette ---- */
/* System preference is dark AND the user has not forced light. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --black: #07060a;
    --black-2: #0e0c10;
    --panel: #131017;
    --panel-2: #191420;
    --panel-feature: #1a1420;
    --line: rgba(214, 173, 90, 0.16);
    --line-strong: rgba(214, 173, 90, 0.34);

    --ivory: #f5efe4;
    --muted: #b6ab98;
    --muted-2: #8c8371;

    --gold-1: #f6e27a;
    --gold-2: #e8b14c;
    --gold-3: #d4a437;
    --gold-soft: rgba(232, 177, 76, 0.12);

    --name-grad: linear-gradient(100deg, #f9edc0, #f6e27a, #e8b14c, #f6e27a, #cf9a2f);
    --accent-grad: var(--gold-grad);

    --header-bg: rgba(9, 8, 12, 0.72);
    --nav-bg: rgba(12, 10, 15, 0.96);
  --danger: #ff8a7a;

    color-scheme: dark;
  }
}
/* User explicitly forced dark. */
:root[data-theme="dark"] {
  --black: #07060a;
  --black-2: #0e0c10;
  --panel: #131017;
  --panel-2: #191420;
  --panel-feature: #1a1420;
  --line: rgba(214, 173, 90, 0.16);
  --line-strong: rgba(214, 173, 90, 0.34);

  --ivory: #f5efe4;
  --muted: #b6ab98;
  --muted-2: #8c8371;

  --gold-1: #f6e27a;
  --gold-2: #e8b14c;
  --gold-3: #d4a437;
  --gold-soft: rgba(232, 177, 76, 0.12);

  --name-grad: linear-gradient(100deg, #f9edc0, #f6e27a, #e8b14c, #f6e27a, #cf9a2f);
  --accent-grad: var(--gold-grad);

  --header-bg: rgba(9, 8, 12, 0.72);
  --nav-bg: rgba(12, 10, 15, 0.96);
  --danger: #ff8a7a;

  color-scheme: dark;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--black);
  color: var(--ivory);
  line-height: 1.6;
  overflow-x: hidden;
  font-weight: 400;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  transition: background 0.5s var(--ease), color 0.5s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; }
::selection { background: var(--gold-2); color: var(--black); }

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

/* ---------- theme change: smooth cross-fade ---------- */
/* Primary path — cross-fade the whole page snapshot (gradients included). */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.5s;
  animation-timing-function: var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
}

/* Fallback for browsers without the View Transitions API: fade solid colours.
   :where() keeps specificity at 0, so elements with their own transition (buttons,
   cards, tiles) keep their hover animations untouched. */
@supports not (view-transition-name: none) {
  @media (prefers-reduced-motion: no-preference) {
    :where(body, h1, h2, h3, p, span, li, a, div, section, header, footer, article, nav) {
      transition: background-color 0.45s var(--ease), color 0.45s var(--ease),
                  border-color 0.45s var(--ease);
    }
  }
}

/* ---------- grain overlay ---------- */
.grain-def { position: absolute; }
.grain {
  position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  filter: url(#grainFilter);
}
.grain::before { content: ''; position: absolute; inset: 0; filter: url(#grainFilter); }

/* ---------- custom cursor ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none;
  width: 34px; height: 34px; border: 1.5px solid var(--gold-2); border-radius: 50%;
  transform: translate(-50%, -50%); mix-blend-mode: difference;
  transition: width 0.25s var(--ease), height 0.25s var(--ease),
              background 0.25s var(--ease), border-color 0.25s var(--ease);
  will-change: transform;
}
.cursor.is-hover { width: 58px; height: 58px; background: rgba(232, 177, 76, 0.14); border-color: transparent; }
.cursor.is-down { width: 26px; height: 26px; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- preloader ---------- */
.preloader { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; }
.preloader__curtain {
  position: absolute; top: 0; height: 100%; width: 50.5%; background: var(--black-2);
  transition: transform 0.9s var(--ease); z-index: 1;
}
.preloader__curtain--l { left: 0; }
.preloader__curtain--r { right: 0; }
.preloader__mono { width: 96px; height: 96px; position: relative; z-index: 2; }
.preloader__stroke {
  fill: none; stroke: var(--gold-2); stroke-width: 3;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 300; stroke-dashoffset: 300;
  animation: draw 1.15s var(--ease) forwards;
}
.preloader__stroke--u { animation-delay: 0.18s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
body.loaded .preloader { pointer-events: none; }
body.loaded .preloader__curtain--l { transform: translateX(-101%); }
body.loaded .preloader__curtain--r { transform: translateX(101%); }
body.loaded .preloader__mono { opacity: 0; transition: opacity 0.4s ease; }
body.loaded .preloader { transition: visibility 0s linear 1s; visibility: hidden; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.95em 1.7em; border-radius: 100px; font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.02em; position: relative; overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), color 0.3s var(--ease);
  will-change: transform;
}
.btn--sm { padding: 0.62em 1.15em; font-size: 0.82rem; }
.btn--lg { padding: 1.1em 2.3em; font-size: 1.05rem; }
.btn--block { display: flex; width: 100%; }
.btn--gold { background: var(--gold-grad); color: #241606; box-shadow: 0 10px 30px -12px rgba(232, 177, 76, 0.6); }
.btn--gold::after {
  content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.7s var(--ease);
}
.btn--gold:hover::after { transform: translateX(120%); }
.btn--gold:hover { box-shadow: 0 16px 40px -12px rgba(232, 177, 76, 0.75); }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--ivory); background: rgba(255,255,255,0.02); }
.btn--ghost:hover { border-color: var(--gold-2); background: var(--gold-soft); }
.btn:active { transform: scale(0.97); }

/* ---------- typography helpers ---------- */
.eyebrow {
  font-size: 0.78rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold-2); font-weight: 600; margin-bottom: 1.1rem;
}
.section__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.1rem, 5.2vw, 4rem); line-height: 1.05; letter-spacing: -0.01em;
}
.section__sub { color: var(--muted); max-width: 44ch; margin-top: 1.1rem; font-size: 1.05rem; }
.section { padding: clamp(80px, 12vw, 150px) 0; position: relative; }
.section__head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 72px); }

/* ---------- header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: var(--header-bg); backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: 0.65rem; }
.brand__mono {
  display: grid; place-items: center; width: 38px; height: 38px; flex: none;
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem;
  border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--gold-soft);
  color: var(--gold-1);
}
.brand__name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; letter-spacing: 0.02em; }
.nav { display: flex; gap: 2rem; }
.nav a {
  font-size: 0.9rem; color: var(--muted); position: relative; padding: 0.3em 0;
  transition: color 0.3s var(--ease);
}
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--gold-grad); transition: width 0.35s var(--ease);
}
.nav a:hover { color: var(--ivory); }
.nav a:hover::after { width: 100%; }
.header__actions { display: flex; align-items: center; gap: 1rem; }
.lang { display: flex; align-items: center; gap: 0.35rem; font-size: 0.85rem; font-weight: 600; }
.lang__btn { color: var(--muted-2); transition: color 0.25s; letter-spacing: 0.05em; }
.lang__btn:hover { color: var(--ivory); }
.lang__btn.is-active { color: var(--gold-2); }
.lang__sep { color: var(--line-strong); }

.theme {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px;
  border: 1px solid var(--line); border-radius: 100px; background: var(--gold-soft);
}
.theme__btn {
  display: grid; place-items: center; width: 30px; height: 26px; border-radius: 100px;
  color: var(--muted-2); transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.theme__btn svg { width: 15px; height: 15px; }
.theme__btn:hover { color: var(--ivory); }
.theme__btn.is-active { color: #241606; background: var(--gold-grad); box-shadow: 0 4px 12px -6px rgba(232, 177, 76, 0.6); }

.burger { display: none; width: 40px; height: 40px; position: relative; }
.burger span {
  position: absolute; left: 9px; right: 9px; height: 1.5px; background: var(--ivory);
  transition: transform 0.35s var(--ease), opacity 0.25s;
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { bottom: 15px; }
.burger.is-open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { bottom: 19px; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding-top: 90px; overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; z-index: 0; }
.hero__glow {
  position: absolute; z-index: 0; width: 60vw; height: 60vw; max-width: 720px; max-height: 720px;
  top: -12%; right: -8%; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,177,76,0.18), transparent 62%);
  filter: blur(20px); pointer-events: none;
}
.hero__inner {
  position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(30px, 5vw, 70px); align-items: center; width: 100%;
}
.hero__name {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.015em;
  font-size: clamp(3rem, 9vw, 7rem); line-height: 0.98; margin: 0.6rem 0 1.4rem;
  background: var(--name-grad);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 220% center; } }
.hero__tagline { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted); max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  font-size: 0.72rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted-2);
}
.hero__scroll-line { width: 1px; height: 46px; background: linear-gradient(var(--gold-2), transparent); position: relative; overflow: hidden; }
.hero__scroll-line::after { content: ''; position: absolute; top: -50%; left: 0; width: 100%; height: 50%; background: var(--gold-1); animation: scrolldot 1.8s var(--ease) infinite; }
@keyframes scrolldot { to { top: 100%; } }

/* portrait */
.hero__portrait { display: flex; justify-content: center; }
.portrait { position: relative; width: min(360px, 78vw); aspect-ratio: 1; }
.portrait__ring { position: absolute; inset: -6%; width: 112%; height: 112%; animation: spin 26s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.portrait__ringtext { fill: var(--gold-3); font-family: var(--font-sans); font-size: 11.5px; letter-spacing: 3px; font-weight: 600; text-transform: uppercase; }
.portrait__frame {
  position: absolute; inset: 8%; border-radius: 50% 50% 48% 48% / 55% 55% 45% 45%;
  overflow: hidden; border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, var(--panel-2), var(--black-2));
  box-shadow: inset 0 0 60px rgba(0,0,0,0.6), 0 30px 70px -30px rgba(232,177,76,0.35);
}
.portrait__img { width: 100%; height: 100%; object-fit: cover; }
.portrait__img.is-missing { display: none; }
.portrait__placeholder {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 5rem; color: var(--gold-3);
  background:
    radial-gradient(circle at 50% 35%, rgba(232,177,76,0.14), transparent 60%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 10px, transparent 10px 20px);
  letter-spacing: 0.05em;
}
.portrait__img:not(.is-missing) + .portrait__placeholder { display: none; }

/* ---------- about ---------- */
.about__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.about__lead { font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-style: italic; color: var(--ivory); margin: 1.5rem 0 1.2rem; line-height: 1.35; }
.about__body { color: var(--muted); font-size: 1.05rem; max-width: 52ch; }
.about__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--panel); padding: clamp(20px, 3vw, 34px); transition: background 0.4s var(--ease); }
.stat:hover { background: var(--panel-2); }
.stat__value { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 600; line-height: 1; color: var(--gold-1); display: flex; align-items: baseline; }
.stat__value i { font-style: normal; font-size: 0.5em; color: var(--gold-3); margin-left: 2px; }
.stat__value .stat__pre { font-size: 0.62em; margin: 0 3px 0 0; }
.stat__label { color: var(--muted-2); font-size: 0.9rem; margin-top: 0.6rem; }

.about__courses-title { margin: 2rem 0 0.8rem; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-3); }
.about__courses { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.about__courses li {
  padding: 0.5rem 1rem; border: 1px solid var(--line); border-radius: 999px;
  background: var(--panel); color: var(--ivory);
  font-family: var(--font-display); font-size: 1.05rem; line-height: 1.2;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.about__courses li:hover { border-color: var(--gold-3); background: var(--panel-2); }
.about__facts { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: 0.9rem; max-width: 52ch; }
.about__facts li { display: flex; gap: 0.8rem; align-items: flex-start; color: var(--muted); font-size: 0.98rem; }
.about__facts svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--gold-1); }

/* ---------- programs ---------- */
.programs__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.pcard {
  position: relative; padding: clamp(26px, 3vw, 38px); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--black-2));
  border: 1px solid var(--line); overflow: hidden;
  display: flex; flex-direction: column; gap: 0.9rem;
  transform-style: preserve-3d; transition: border-color 0.4s var(--ease), transform 0.2s var(--ease);
}
.pcard--feature { border-color: var(--line-strong); background: linear-gradient(180deg, var(--panel-feature), var(--black-2)); }
.pcard__glow {
  position: absolute; width: 260px; height: 260px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(232,177,76,0.16), transparent 65%);
  left: var(--mx, 50%); top: var(--my, 0%); transform: translate(-50%, -50%);
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.pcard:hover { border-color: var(--gold-2); }
.pcard:hover .pcard__glow { opacity: 1; }
.pcard__tag { align-self: flex-start; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-2); border: 1px solid var(--line-strong); border-radius: 100px; padding: 0.35em 0.9em; }
.pcard__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 1.95rem); line-height: 1.1; }
.pcard__desc { color: var(--muted); font-size: 0.98rem; }
.pcard__list { display: flex; flex-direction: column; gap: 0.6rem; margin: 0.4rem 0 1.2rem; }
.pcard__list li { position: relative; padding-left: 1.6rem; color: var(--ivory); font-size: 0.94rem; opacity: 0.9; }
.pcard__list li::before {
  content: ''; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold-grad); box-shadow: 0 0 10px rgba(232,177,76,0.6);
}
.pcard .btn { margin-top: auto; }

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line); padding: clamp(22px, 3vw, 34px) 0; overflow: hidden; position: relative; }
.marquee::before, .marquee::after { content: ''; position: absolute; top: 0; bottom: 0; width: 12%; z-index: 2; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--black), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--black), transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee__item { font-family: var(--font-display); font-style: italic; font-size: clamp(1.6rem, 4vw, 3rem); color: transparent; -webkit-text-stroke: 1px var(--line-strong); white-space: nowrap; padding-right: 0.3em; }
@keyframes marquee { to { transform: translateX(-33.33%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ---------- apply form ---------- */
[hidden] { display: none !important; }
.apply__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.apply__copy { position: sticky; top: 110px; }
.apply__card {
  position: relative; padding: clamp(22px, 3.4vw, 44px); border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(140deg, var(--panel), var(--black-2)); border: 1px solid var(--line-strong);
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.5);
}
.form { display: grid; gap: 1.25rem; }
.field { display: grid; gap: 0.5rem; min-width: 0; border: 0; padding: 0; margin: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field__label { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.02em; color: var(--ivory); padding: 0; }
.field__input {
  width: 100%; padding: 0.95em 1.1em; border-radius: 14px; font: inherit; color: var(--ivory);
  background: var(--black); border: 1px solid var(--line-strong);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field__input::placeholder { color: var(--muted-2); }
.field__input:focus { outline: none; border-color: var(--gold-2); box-shadow: 0 0 0 4px var(--gold-soft); }
.field__input--area { resize: vertical; min-height: 120px; }
.field__phone { display: flex; align-items: stretch; }
.field__prefix {
  display: grid; place-items: center; padding: 0 1em; border-radius: 14px 0 0 14px; font-weight: 600;
  color: var(--gold-1); background: var(--gold-soft); border: 1px solid var(--line-strong); border-right: 0;
}
.field__phone .field__input { border-radius: 0 14px 14px 0; }
.field.is-invalid .field__input, .field.is-invalid .chip span { border-color: var(--danger); }
.field__error, .form__error { color: var(--danger); font-size: 0.82rem; min-height: 0; }
.field__error:empty, .form__error:empty { display: none; }
.form__note { color: var(--muted-2); font-size: 0.8rem; text-align: center; }

.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span {
  display: block; padding: 0.6em 1.1em; border-radius: 100px; font-size: 0.9rem; font-weight: 600;
  color: var(--ivory); background: var(--black); border: 1px solid var(--line-strong);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.chip:hover span { border-color: var(--gold-2); }
.chip input:checked + span { background: var(--gold-grad); color: #241606; border-color: transparent; transform: translateY(-1px); }
.chip input:focus-visible + span { box-shadow: 0 0 0 4px var(--gold-soft); border-color: var(--gold-2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

#applySubmit[disabled] { opacity: 0.7; cursor: progress; }

.apply__success { display: grid; justify-items: center; gap: 1rem; text-align: center; padding: clamp(20px, 5vw, 48px) 0; }
.apply__check {
  display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%;
  color: #241606; background: var(--gold-grad); box-shadow: 0 16px 40px -14px rgba(232, 177, 76, 0.7);
  animation: applyPop 0.6s var(--ease) both;
}
.apply__check svg { width: 40px; height: 40px; }
.apply__success-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.8rem, 4vw, 2.5rem); }
.apply__success-text { color: var(--muted); max-width: 36ch; }
@keyframes applyPop { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- links ---------- */
.links__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.ltile {
  position: relative; display: flex; align-items: center; gap: 1.1rem;
  padding: clamp(20px, 2.6vw, 28px); border-radius: var(--radius);
  background: linear-gradient(120deg, var(--panel), var(--black-2));
  border: 1px solid var(--line); overflow: hidden;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), background 0.4s var(--ease);
}
.ltile--lg { grid-column: span 1; }
.ltile::before { content: ''; position: absolute; inset: 0; background: var(--gold-grad); opacity: 0; transition: opacity 0.4s var(--ease); z-index: 0; }
.ltile:hover { border-color: transparent; transform: translateY(-3px); }
.ltile:hover::before { opacity: 1; }
.ltile > * { position: relative; z-index: 1; }
.ltile__icon {
  display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 14px;
  background: var(--gold-soft); border: 1px solid var(--line-strong); color: var(--gold-1);
  transition: background 0.4s, color 0.4s, border-color 0.4s;
}
.ltile__icon svg { width: 24px; height: 24px; }
.ltile:hover .ltile__icon { background: rgba(36,22,6,0.22); color: #2a1a06; border-color: rgba(36,22,6,0.3); }
.ltile__body { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.ltile__title { font-weight: 600; font-size: 1.05rem; transition: color 0.4s; }
.ltile__desc { font-size: 0.88rem; color: var(--muted-2); transition: color 0.4s; }
.ltile:hover .ltile__title { color: #241606; }
.ltile:hover .ltile__desc { color: rgba(36,22,6,0.72); }
.ltile__arrow { margin-left: auto; font-size: 1.2rem; color: var(--muted-2); transition: color 0.4s, transform 0.4s var(--ease); }
.ltile:hover .ltile__arrow { color: #241606; transform: translate(3px, -3px); }

/* ---------- final ---------- */
.final { position: relative; padding: clamp(90px, 14vw, 170px) 0; text-align: center; overflow: hidden; border-top: 1px solid var(--line); }
.final__glow { position: absolute; inset: 0; background: radial-gradient(ellipse 60% 60% at 50% 40%, rgba(232,177,76,0.12), transparent 70%); pointer-events: none; }
.final__inner { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; }
.final__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.2rem, 6vw, 4.5rem); line-height: 1.05; }
.final__accent { display: block; font-style: italic; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.final__sub { color: var(--muted); font-size: 1.1rem; max-width: 48ch; margin: 1.4rem auto 2.4rem; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: clamp(40px, 6vw, 64px) 0 40px; }
.footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 2rem; align-items: center; }
.footer__brand { display: flex; align-items: center; gap: 0.8rem; }
.footer__name { font-family: var(--font-display); font-size: 1.15rem; }
.footer__role { color: var(--muted-2); font-size: 0.85rem; }
.footer__links { display: flex; gap: 1.5rem; }
.footer__links a { color: var(--muted); font-size: 0.9rem; transition: color 0.3s; }
.footer__links a:hover { color: var(--gold-2); }
.footer__meta { grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem; padding-top: 1.4rem; margin-top: 0.6rem; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 0.82rem; }
.footer__madeby { color: var(--gold-3); }

/* ---------- reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.split-line { display: inline-block; overflow: hidden; vertical-align: top; }
.split-line > span { display: inline-block; transform: translateY(110%); transition: transform 0.8s var(--ease); }
.is-in .split-line > span { transform: none; }

/* ---------- mobile nav ---------- */
@media (max-width: 900px) {
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 82vw); flex-direction: column;
    justify-content: center; gap: 1.6rem; padding: 2rem 2.4rem;
    background: var(--nav-bg); backdrop-filter: blur(16px);
    border-left: 1px solid var(--line); transform: translateX(101%);
    transition: transform 0.5s var(--ease); z-index: 190;
  }
  .nav.is-open { transform: none; }
  .nav a { font-family: var(--font-display); font-size: 1.6rem; color: var(--ivory); }
  .burger { display: block; }
  .nav-cta-hide .btn--sm { display: none; }
}
@media (max-width: 900px) {
  .header__actions .btn--sm { display: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__text { order: 2; }
  .hero__portrait { order: 1; margin-bottom: 1rem; }
  .hero__cta { justify-content: center; }
  .hero__tagline { margin-inline: auto; }
  .about__grid { grid-template-columns: 1fr; }
  .programs__grid { grid-template-columns: 1fr; }
  .links__grid { grid-template-columns: 1fr; }
  .apply__grid { grid-template-columns: 1fr; }
  .apply__copy { position: static; }
  .brand__name { display: none; }
  .footer__inner { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .field-row { grid-template-columns: 1fr; }
  .about__stats { grid-template-columns: 1fr 1fr; }
  .hero { min-height: auto; padding-block: 130px 60px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .split-line > span { transform: none; }
  .cursor { display: none; }
  .hero__name { animation: none; }
  .portrait__ring { animation: none; }
  .preloader__curtain { transition: none; }
}
