/* ============================================================
   Alena & AI — design system
   Display: Unbounded · Body: Golos Text
   Palette: near-black base, champagne gold + electric violet glow
============================================================ */

:root {
  --bg: #07080c;
  --bg-soft: #0c0e14;
  --surface: #12141c;
  --surface-2: #181b25;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --ink: #f4f1ec;
  --ink-dim: #9aa0b1;
  --ink-faint: #5e6373;

  --gold: #d9b97c;
  --gold-soft: #f1e0bd;
  --violet: #8d7bff;
  --violet-soft: #c2b8ff;
  --teal: #6fe7d2;

  --grad-accent: linear-gradient(120deg, var(--gold) 0%, var(--violet) 100%);
  --grad-text: linear-gradient(120deg, var(--gold-soft) 0%, var(--violet-soft) 100%);

  --container: 1240px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.7s;
}

/* ---------------------------------- reset ---------------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Golos Text', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

::selection {
  background: var(--violet);
  color: #08090d;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--surface-2);
  border-radius: 10px;
  border: 2px solid var(--bg);
}

/* Prevent grid items that hold full-width images from using the
   image's intrinsic size as their automatic minimum size — without
   this, large source photos can force grid tracks (and the page)
   wider than the viewport on narrow screens. */
.hero__inner > *,
.about__layout > *,
.books__layout > *,
.contact__layout > *,
.cards-grid > *,
.cases-grid > *,
.courses__grid > *,
.gallery > * {
  min-width: 0;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------------------------------- type ---------------------------------- */
.h2 {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.text-accent {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Unbounded', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 18px;
}

.section-label span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--gold);
  font-size: 0.7rem;
}

.section-intro {
  max-width: 620px;
  color: var(--ink-dim);
  font-size: 1.05rem;
}

/* ---------------------------------- layout helpers ---------------------------------- */
.section {
  position: relative;
  padding: 120px 0;
}

.section--alt {
  background: linear-gradient(180deg, transparent 0%, var(--bg-soft) 8%, var(--bg-soft) 92%, transparent 100%);
}

@media (max-width: 720px) {
  .section { padding: 80px 0; }
  .container { padding: 0 20px; }
}

/* ---------------------------------- grain + cursor glow ---------------------------------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(141, 123, 255, 0.10) 0%, rgba(217, 185, 124, 0.06) 40%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease;
  opacity: 0;
}

@media (hover: hover) {
  .cursor-glow.active { opacity: 1; }
}

/* ---------------------------------- header ---------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  padding: 14px 0;
  background: rgba(7, 8, 12, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo__amp {
  color: var(--gold);
  margin: 0 2px;
  font-weight: 400;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.nav__link {
  font-size: 0.92rem;
  color: var(--ink-dim);
  transition: color 0.25s ease;
  position: relative;
}

.nav__link:hover { color: var(--ink); }

.header__cta { flex-shrink: 0; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  align-items: center;
  z-index: 200;
  position: relative;
}

.burger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------------------------------- buttons ---------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 100px;
  font-family: 'Golos Text', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: var(--grad-accent);
  color: #15131c;
  box-shadow: 0 8px 30px -8px rgba(141, 123, 255, 0.55);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -10px rgba(141, 123, 255, 0.7);
}

.btn--secondary {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--ink);
}

.btn--secondary:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  border-color: var(--border-strong);
  padding: 11px 24px;
  font-size: 0.88rem;
}

.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
}

.btn--full { width: 100%; }

/* ============================================================
   HERO
============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 80px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.55;
  will-change: transform;
}

.aurora--1 {
  width: 620px;
  height: 620px;
  top: -180px;
  left: -160px;
  background: radial-gradient(circle, var(--violet) 0%, transparent 70%);
  animation: drift1 26s ease-in-out infinite alternate;
}

.aurora--2 {
  width: 520px;
  height: 520px;
  bottom: -160px;
  right: -140px;
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
  opacity: 0.35;
  animation: drift2 32s ease-in-out infinite alternate;
}

.aurora--3 {
  width: 420px;
  height: 420px;
  top: 30%;
  right: 18%;
  background: radial-gradient(circle, var(--teal) 0%, transparent 70%);
  opacity: 0.18;
  animation: drift3 22s ease-in-out infinite alternate;
}

.aurora--4 {
  width: 700px;
  height: 700px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--violet) 0%, transparent 70%);
  opacity: 0.22;
  animation: pulse 14s ease-in-out infinite;
}

@keyframes drift1 {
  to { transform: translate(80px, 60px) scale(1.1); }
}
@keyframes drift2 {
  to { transform: translate(-60px, -40px) scale(1.15); }
}
@keyframes drift3 {
  to { transform: translate(-40px, 50px) scale(0.9); }
}
@keyframes pulse {
  0%, 100% { opacity: 0.16; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.3; transform: translate(-50%, -50%) scale(1.08); }
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 40%, transparent 100%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.eyebrow {
  font-family: 'Unbounded', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 28px;
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.02);
}

.hero__title {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 5.4vw, 4.2rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}

.hero__subtitle {
  max-width: 520px;
  font-size: 1.08rem;
  color: var(--ink-dim);
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__visual { position: relative; }

.hero__frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  isolation: isolate;
}

.hero__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  filter: saturate(0.92) contrast(1.05) brightness(0.97);
}

.hero__frame::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(217,185,124,0.6), rgba(141,123,255,0.4) 50%, transparent 80%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero__frame::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(120% 90% at 50% 100%, rgba(7,8,12,0.85) 0%, transparent 55%),
              radial-gradient(120% 70% at 50% 0%, rgba(7,8,12,0.55) 0%, transparent 50%),
              linear-gradient(180deg, rgba(7,8,12,0.05), rgba(7,8,12,0.35));
  pointer-events: none;
}

.hero__frame-glow {
  position: absolute;
  inset: -40px;
  z-index: -1;
  background: radial-gradient(circle at 50% 50%, rgba(141,123,255,0.35), transparent 65%);
  filter: blur(60px);
}

.hero__badge {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 100px;
  max-width: calc(100% - 48px);
  background: rgba(18, 20, 28, 0.65);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 12px 30px -12px rgba(0,0,0,0.6);
}

.hero__badge--top {
  top: 24px;
  left: 24px;
}

.hero__badge--bottom {
  bottom: 24px;
  right: 24px;
  font-family: 'Unbounded', sans-serif;
  font-size: 0.78rem;
}

.hero__badge--bottom strong {
  font-size: 1.3rem;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-right: 4px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(111, 231, 210, 0.18);
  flex-shrink: 0;
  animation: blink 2.4s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.scroll-cue__line {
  width: 1px;
  height: 46px;
  background: linear-gradient(180deg, var(--ink-faint), transparent);
  position: relative;
  overflow: hidden;
}

.scroll-cue__line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--gold));
  animation: scrollline 2.4s ease-in-out infinite;
}

@keyframes scrollline {
  to { top: 100%; }
}

@media (max-width: 980px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero__visual { order: -1; max-width: 380px; margin: 0 auto; width: 100%; }
  .hero { padding-top: 110px; }
}

/* ============================================================
   REVEAL ANIMATIONS
============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.in-view { opacity: 1; transform: translateY(0); }

.reveal--delay-1.in-view { transition-delay: 0.12s; }
.reveal--delay-2.in-view { transition-delay: 0.24s; }
.reveal--delay-3.in-view { transition-delay: 0.36s; }

/* hero reveals immediately */
.hero .reveal {
  transition-delay: 0.2s;
}
.hero .reveal--delay-1.in-view { transition-delay: 0.4s; }

/* ============================================================
   ABOUT
============================================================ */
.about__layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 80px;
}

.about__photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--border-strong);
}

.about__photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: saturate(0.92) contrast(1.04);
}

.about__photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 50% 100%, rgba(7,8,12,0.7) 0%, transparent 55%);
}

.about__roles {
  font-family: 'Unbounded', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.8;
  color: var(--gold-soft);
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}

.about__text {
  color: var(--ink-dim);
  margin-bottom: 16px;
  max-width: 560px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.stat-card {
  padding: 28px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--surface) 0%, var(--bg-soft) 100%);
  text-align: center;
  transition: border-color 0.35s ease, transform 0.35s ease;
}

.stat-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
}

.stat-card__num {
  display: block;
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 2.4rem;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}

.stat-card__label {
  font-size: 0.85rem;
  color: var(--ink-dim);
  line-height: 1.4;
  display: block;
}

@media (max-width: 980px) {
  .about__layout { grid-template-columns: 1fr; gap: 40px; }
  .about__photo-frame { max-width: 380px; margin: 0 auto; aspect-ratio: 4/5; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat-card:nth-child(5) { grid-column: span 2; }
}

/* ============================================================
   TIMELINE
============================================================ */
.timeline {
  position: relative;
  margin-top: 64px;
  padding-left: 140px;
}

.timeline__line {
  position: absolute;
  left: 60px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--violet) 50%, var(--border) 100%);
}

.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  margin-bottom: 48px;
}

.timeline__item:last-child { margin-bottom: 0; }

.timeline__year {
  position: absolute;
  left: -140px;
  top: 0;
  width: 80px;
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--ink);
  text-align: right;
}

.timeline__year::after {
  content: '';
  position: absolute;
  right: -86px;
  top: 10px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 6px var(--bg-soft);
}

.timeline__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  transition: border-color 0.35s ease, transform 0.35s ease;
}

.timeline__card:hover {
  border-color: var(--border-strong);
  transform: translateX(6px);
}

.timeline__card h3 {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.timeline__card p { color: var(--ink-dim); }

.timeline__card--accent {
  background: linear-gradient(135deg, rgba(217,185,124,0.10), rgba(141,123,255,0.10));
  border-color: rgba(217,185,124,0.3);
}

@media (max-width: 720px) {
  .timeline { padding-left: 56px; }
  .timeline__line { left: 18px; }
  .timeline__year {
    position: static;
    width: auto;
    text-align: left;
    margin-bottom: 12px;
  }
  .timeline__year::after {
    left: -44px;
    right: auto;
    top: 6px;
  }
  .timeline__card { padding: 22px; }
}

/* ============================================================
   SERVICES
============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.service-card {
  padding: 36px 30px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--surface) 0%, var(--bg-soft) 120%);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(217,185,124,0.35);
  background: linear-gradient(160deg, var(--surface-2) 0%, var(--bg-soft) 120%);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  color: var(--gold-soft);
  margin-bottom: 24px;
  transition: color 0.4s ease, border-color 0.4s ease;
}

.service-card__icon svg { width: 28px; height: 28px; }

.service-card:hover .service-card__icon {
  color: var(--violet-soft);
  border-color: rgba(141,123,255,0.35);
}

.service-card h3 {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.service-card p { color: var(--ink-dim); font-size: 0.95rem; }

@media (max-width: 980px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .cards-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   CASES
============================================================ */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.case-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}

.case-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
}

.case-card--lg {
  grid-column: span 3;
  flex-direction: row;
}

.case-card__media {
  overflow: hidden;
  aspect-ratio: 16/10;
}

.case-card--lg .case-card__media {
  flex: 1.1;
  aspect-ratio: auto;
}

.case-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.case-card:hover .case-card__media img { transform: scale(1.05); }

.case-card__body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.case-card--lg .case-card__body { flex: 1; padding: 40px; }

.case-card__tag {
  display: inline-block;
  font-family: 'Unbounded', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.case-card__body h3 {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.3;
}

.case-card--lg .case-card__body h3 { font-size: 1.6rem; }

.case-card__body p { color: var(--ink-dim); font-size: 0.95rem; }

@media (max-width: 980px) {
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .case-card--lg { grid-column: span 2; }
}
@media (max-width: 720px) {
  .cases-grid { grid-template-columns: 1fr; }
  .case-card--lg { grid-column: span 1; flex-direction: column; }
  .case-card--lg .case-card__media { aspect-ratio: 16/10; }
}

/* ============================================================
   AI STACK / MARQUEE
============================================================ */
.stack { padding-bottom: 100px; }
.stack .container { margin-bottom: 56px; }

.marquee {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  margin-bottom: 18px;
}

.marquee__track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee 42s linear infinite;
}

.marquee--reverse .marquee__track {
  animation-name: marquee-reverse;
  animation-duration: 36s;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes marquee-reverse {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.chip {
  flex-shrink: 0;
  padding: 16px 32px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: 'Unbounded', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

.chip--alt {
  background: transparent;
  border-style: dashed;
  color: var(--ink-dim);
  font-family: 'Golos Text', sans-serif;
  font-weight: 500;
}

/* ============================================================
   BOOKS
============================================================ */
.books__layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: center;
  margin-top: 56px;
}

.books__frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  position: relative;
}

.books__frame img { width: 100%; display: block; }

.books__frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(141,123,255,0.12), transparent 50%);
  pointer-events: none;
}

.books__list { display: flex; flex-direction: column; gap: 32px; }

.book-item {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 20px;
}

.book-item__index {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink-faint);
}

.book-item h3 {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.book-item__subtitle {
  color: var(--gold-soft);
  font-size: 0.9rem;
  margin-bottom: 10px;
  font-weight: 500;
}

.book-item p { color: var(--ink-dim); }

.book-item__badge {
  margin-left: 70px;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-strong);
  color: var(--ink-dim);
  font-size: 0.95rem;
}

.book-item__badge strong {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.4rem;
  color: var(--gold-soft);
  margin-right: 8px;
}

@media (max-width: 980px) {
  .books__layout { grid-template-columns: 1fr; gap: 40px; }
  .books__frame { max-width: 360px; margin: 0 auto; }
  .book-item__badge { margin-left: 0; }
}

/* ============================================================
   COURSES
============================================================ */
.courses__group { margin-bottom: 64px; }
.courses__group:last-child { margin-bottom: 0; }

.courses__group-head { max-width: 640px; margin-bottom: 32px; }

.courses__group-head h3 {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.courses__group-head p { color: var(--ink-dim); }

.courses__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.courses__grid--two { grid-template-columns: repeat(2, 1fr); }

.course-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}

.course-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
}

.course-card__media { aspect-ratio: 16/9; overflow: hidden; }

.course-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.course-card:hover .course-card__media img { transform: scale(1.06); }

.course-card h4 {
  font-family: 'Unbounded', sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 18px 20px;
  line-height: 1.4;
}

@media (max-width: 980px) {
  .courses__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .courses__grid, .courses__grid--two { grid-template-columns: 1fr; }
}

/* ============================================================
   GALLERY / TALKS
============================================================ */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
  margin-top: 56px;
}

.gallery__item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
}

.gallery__item--tall { grid-row: span 2; }

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.5s ease;
  filter: saturate(0.95);
}

.gallery__item:hover img { transform: scale(1.07); filter: saturate(1.05); }

.gallery__item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 20px;
  font-size: 0.85rem;
  font-weight: 500;
  background: linear-gradient(0deg, rgba(7,8,12,0.92) 0%, transparent 100%);
  transform: translateY(8px);
  opacity: 0.85;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.gallery__item:hover figcaption { transform: translateY(0); opacity: 1; }

@media (max-width: 980px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
}
@media (max-width: 620px) {
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 280px; }
  .gallery__item--tall { grid-row: span 1; }
}

/* ============================================================
   RESULTS
============================================================ */
.results__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.result-card {
  padding: 44px 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--surface) 0%, var(--bg-soft) 130%);
  text-align: left;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}

.result-card:hover {
  transform: translateY(-6px);
  border-color: rgba(217,185,124,0.3);
}

.result-card__num {
  display: block;
  font-family: 'Unbounded', sans-serif;
  font-weight: 800;
  font-size: 3.2rem;
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}

.result-card__label {
  color: var(--ink-dim);
  font-size: 1rem;
}

@media (max-width: 980px) {
  .results__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .results__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   CONTACT
============================================================ */
.contact { overflow: hidden; }

.contact__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.contact__layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  margin-top: 56px;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact__link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 24px 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.35s ease, transform 0.35s ease;
}

.contact__link:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.contact__link-label {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.contact__link-value {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
}

.contact__socials {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.social-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.35s ease, color 0.35s ease, transform 0.35s ease;
  color: var(--ink-dim);
}

.social-icon svg { width: 20px; height: 20px; }

.social-icon:hover {
  border-color: var(--violet);
  color: var(--violet-soft);
  transform: translateY(-3px);
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(18, 20, 28, 0.6);
  backdrop-filter: blur(10px);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row label {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.form-row input,
.form-row textarea {
  font-family: 'Golos Text', sans-serif;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--ink);
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.3s ease;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--violet);
}

.form-note {
  font-size: 0.88rem;
  color: var(--teal);
  min-height: 1.2em;
}

@media (max-width: 980px) {
  .contact__layout { grid-template-columns: 1fr; }
}

/* ============================================================
   FOOTER
============================================================ */
.footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.footer__text {
  color: var(--ink-dim);
  font-family: 'Unbounded', sans-serif;
  font-size: 0.95rem;
}

.footer__copy {
  color: var(--ink-faint);
  font-size: 0.82rem;
}

/* ============================================================
   LIGHTBOX
============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(5, 6, 10, 0.92);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  padding: 40px;
}

.lightbox.active { opacity: 1; visibility: visible; }

.lightbox img {
  max-width: min(90vw, 900px);
  max-height: 78vh;
  border-radius: var(--radius-md);
  object-fit: contain;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7);
}

.lightbox__caption {
  color: var(--ink-dim);
  font-size: 0.95rem;
}

.lightbox__close {
  position: absolute;
  top: 28px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.lightbox__close:hover {
  border-color: var(--gold);
  transform: rotate(90deg);
}

/* ============================================================
   MOBILE NAV
============================================================ */
@media (max-width: 980px) {
  .burger { display: flex; }

  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    background: rgba(7, 8, 12, 0.97);
    backdrop-filter: blur(20px);
    transform: translateY(-100%);
    transition: transform 0.5s var(--ease);
    z-index: 150;
  }

  .nav.open { transform: translateY(0); }

  .nav__link { font-size: 1.3rem; font-family: 'Unbounded', sans-serif; }

  .header__cta { display: none; }
}

/* ============================================================
   REDUCED MOTION
============================================================ */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
