/* ========================================
   ACTING GYM — Editorial Premium Stylesheet
   ======================================== */

:root {
  /* Palette */
  --bg-dark: #0A0A0A;
  --bg-cream: #F5F0E8;
  --accent-red: #2E5BFF;
  --accent-coral: #5B8DEF;
  --accent-deep: #0033CC;
  --text-light: #FAF8F3;
  --text-dark: #0A0A0A;
  --line-light: rgba(255,255,255,0.15);
  --line-dark: rgba(10,10,10,0.15);
  --muted-light: rgba(250,248,243,0.55);
  --muted-dark: rgba(10,10,10,0.55);

  /* Radii */
  --r-sm: 14px;
  --r-md: 24px;
  --r-lg: 32px;
  --r-pill: 999px;

  /* Spacing */
  --pad-x-desktop: clamp(24px, 4vw, 80px);
  --pad-x-mobile: 20px;

  /* Type scale (fluid) */
  --t-mono: clamp(10px, 0.72vw, 13px);
  --t-body: clamp(15px, 1.05vw, 18px);
  --t-lede: clamp(18px, 1.6vw, 24px);
  --t-h-card: clamp(28px, 2.4vw, 40px);
  --t-display-xl: clamp(56px, 9.5vw, 168px);
  --t-display-hero: clamp(96px, 22vw, 340px);

  /* Easing */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--text-light);
  background: var(--bg-dark);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; border: none; background: transparent; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

::selection { background: var(--accent-red); color: var(--text-light); }

/* ========================================
   PAGE LOADER
   ======================================== */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg-dark);
  display: grid; place-items: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}
.loader-inner { text-align: center; width: min(420px, 70vw); }
.loader-bar {
  height: 1px; width: 100%;
  background: rgba(255,255,255,0.1);
  overflow: hidden;
  margin-bottom: 18px;
}
.loader-bar span {
  display: block; height: 100%;
  background: var(--accent-red);
  width: 0%;
  animation: load 1.6s var(--ease-out-expo) forwards;
}
@keyframes load { to { width: 100%; } }
.loader-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--t-mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted-light);
}
body[data-loaded="true"] .loader {
  opacity: 0; visibility: hidden;
}

/* ========================================
   CUSTOM CURSOR
   ======================================== */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 14px; height: 14px;
  background: var(--text-light);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), background 0.3s var(--ease);
  display: grid; place-items: center;
}
.cursor-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dark);
  opacity: 0; transform: scale(0.7);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  white-space: nowrap;
}
.cursor.is-active {
  width: 92px; height: 92px;
  background: var(--text-light);
  mix-blend-mode: normal;
}
.cursor.is-active .cursor-label { opacity: 1; transform: scale(1); }

@media (hover: none) {
  .cursor { display: none; }
}

/* ========================================
   TOP NAV (floating)
   ======================================== */
.topnav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%) translateY(-120%);
  z-index: 200;
  display: flex; align-items: center; gap: 28px;
  padding: 10px 14px 10px 22px;
  border-radius: var(--r-pill);
  background: rgba(10,10,10,0.6);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--line-light);
  transition: transform 0.6s var(--ease-out-expo);
}
.topnav.is-visible { transform: translateX(-50%) translateY(0); }
.topnav-brand {
  font-family: 'Anton', sans-serif;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: var(--text-light);
  /* Anton has tall caps + slim baseline → nudge to optical center */
  line-height: 1;
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding-top: 2px;
}
.topnav-links { display: flex; gap: 22px; }
.topnav-links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-light);
  transition: color 0.3s var(--ease);
}
.topnav-links a:hover { color: var(--text-light); }
.topnav-cta {
  background: var(--accent-red);
  color: var(--text-light);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.topnav-cta:hover { background: var(--accent-coral); transform: translateY(-1px); }

@media (max-width: 900px) {
  .topnav-links { display: none; }
}
.topnav-cta-short { display: none; }
@media (max-width: 540px) {
  .topnav { gap: 12px; padding: 6px 6px 6px 16px; top: 12px; }
  .topnav-brand { font-size: 15px; }
  .topnav-cta { padding: 8px 12px; font-size: 10px; }
  .topnav-cta-full { display: none; }
  .topnav-cta-short { display: inline; }
}

/* ========================================
   GLOBAL SECTION SCAFFOLDING
   ======================================== */
.section {
  position: relative;
  padding: clamp(80px, 11vw, 160px) var(--pad-x-desktop);
  overflow: hidden;
  isolation: isolate;
}
.section--cream { background: var(--bg-cream); color: var(--text-dark); }
.section--dark { background: var(--bg-dark); color: var(--text-light); }

.section-head {
  margin: 0 auto clamp(48px, 6vw, 96px);
  max-width: 1400px;
}
.section-head--center { text-align: center; }
.section-head--center > * { margin-left: auto; margin-right: auto; }
.section-head--left { text-align: left; }

/* ========================================
   TYPOGRAPHY SYSTEM
   ======================================== */
.mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--t-mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-light);
  font-weight: 500;
}
.mono--dim { color: var(--muted-light); }
.mono--dark { color: var(--text-dark); }
.mono--dim-dark { color: rgba(10,10,10,0.68); }
.mono--badge {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid currentColor;
  border-radius: var(--r-pill);
  margin-bottom: 24px;
}

.display {
  font-family: 'Anton', 'Bebas Neue', 'Impact', sans-serif;
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text-light);
}
.display--dark { color: var(--text-dark); }
.display--xl {
  font-size: var(--t-display-xl);
  display: flex; flex-direction: column;
}
.display--xl span { display: block; }
.display-eq {
  color: var(--accent-red);
  font-style: italic;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 0.7em;
  line-height: 1;
}

.serif {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: inherit;
}
.serif em { font-style: italic; color: var(--accent-red); }
.serif--xxl {
  font-size: clamp(40px, 6vw, 96px);
  font-weight: 700;
  display: flex; flex-direction: column;
}
.serif--xxl span { display: block; }
.serif--lede {
  font-size: var(--t-lede);
  font-weight: 400;
  line-height: 1.4;
  max-width: 720px;
  color: var(--muted-light);
}
.serif--dark { color: var(--muted-dark); }

/* ========================================
   ORGANIC BLOBS
   ======================================== */
.blob-wrap {
  position: absolute; inset: -10%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  filter: blur(60px);
}
.blob-wrap--soft { opacity: 0.55; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(20px);
  mix-blend-mode: screen;
  will-change: transform;
}
.blob--1 {
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, var(--accent-red) 0%, transparent 65%);
  top: -10%; left: -15%;
  animation: blob 14s ease-in-out infinite alternate;
}
.blob--2 {
  width: 45vw; height: 45vw;
  background: radial-gradient(circle, var(--accent-coral) 0%, transparent 60%);
  bottom: -20%; right: -10%;
  animation: blob 12s ease-in-out infinite alternate-reverse;
}
.blob--3 {
  width: 30vw; height: 30vw;
  background: radial-gradient(circle, var(--accent-deep) 0%, transparent 60%);
  top: 40%; left: 50%;
  animation: blob 16s ease-in-out infinite;
}
.blob--4 {
  width: 50vw; height: 50vw;
  background: radial-gradient(circle, var(--accent-red) 0%, transparent 60%);
  top: 20%; right: -15%;
  animation: blob 12s ease-in-out infinite alternate;
  opacity: 0.5;
}
.blob--5 {
  width: 40vw; height: 40vw;
  background: radial-gradient(circle, var(--accent-coral) 0%, transparent 60%);
  bottom: -10%; left: -10%;
  animation: blob 14s ease-in-out infinite alternate-reverse;
  opacity: 0.4;
}
.blob--6 {
  width: 70vw; height: 70vw;
  background: radial-gradient(circle, var(--accent-red) 0%, transparent 55%);
  top: -20%; left: -15%;
  animation: blob 18s ease-in-out infinite alternate;
  opacity: 0.6;
}
.blob--7 {
  width: 55vw; height: 55vw;
  background: radial-gradient(circle, var(--accent-red) 0%, transparent 55%);
  top: -10%; right: -10%;
  animation: blob 12s ease-in-out infinite alternate;
  opacity: 0.55;
}
.blob--8 {
  width: 45vw; height: 45vw;
  background: radial-gradient(circle, var(--accent-coral) 0%, transparent 55%);
  bottom: -20%; left: -10%;
  animation: blob 15s ease-in-out infinite alternate-reverse;
  opacity: 0.5;
}

@keyframes blob {
  0%   { transform: translate(0,0) scale(1) rotate(0deg);   }
  33%  { transform: translate(8%, -4%) scale(1.12) rotate(10deg); }
  66%  { transform: translate(-6%, 6%) scale(0.94) rotate(-10deg); }
  100% { transform: translate(4%, 4%) scale(1.06) rotate(5deg); }
}

/* ========================================
   HERO — DYNAMIC GRADIENT BG (override base blobs)
   ======================================== */
.hero .blob-wrap {
  filter: blur(90px);
  inset: -20%;
  opacity: 1;
}
.hero .blob {
  filter: blur(0); /* parent already blurs */
  mix-blend-mode: screen;
}
.hero .blob--1 {
  width: 85vw; height: 85vw;
  background: radial-gradient(circle, #3a6dff 0%, #1e40d4 30%, transparent 68%);
  top: -25%; left: -28%;
  animation: heroBlob1 14s cubic-bezier(0.65, 0, 0.35, 1) infinite alternate;
  opacity: 0.85;
}
.hero .blob--2 {
  width: 70vw; height: 70vw;
  background: radial-gradient(circle, #5b8dff 0%, #2e5bff 35%, transparent 65%);
  bottom: -32%; right: -22%;
  animation: heroBlob2 16s cubic-bezier(0.65, 0, 0.35, 1) infinite alternate-reverse;
  opacity: 0.7;
}
.hero .blob--3 {
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, #7aa0ff 0%, #1130a0 40%, transparent 60%);
  top: 25%; left: 55%;
  animation: heroBlob3 20s cubic-bezier(0.65, 0, 0.35, 1) infinite;
  opacity: 0.55;
}

/* Extra rotating conic layer for "shimmer" */
.hero .blob-wrap::before {
  content: '';
  position: absolute;
  inset: -40%;
  width: 180%; height: 180%;
  background: conic-gradient(
    from 0deg at 50% 50%,
    transparent 0%,
    rgba(46, 91, 255, 0.22) 15%,
    transparent 30%,
    rgba(91, 141, 239, 0.18) 50%,
    transparent 65%,
    rgba(30, 64, 212, 0.20) 85%,
    transparent 100%);
  animation: heroConicRotate 30s linear infinite;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.7;
}

/* Subtle radial vignette to focus on type */
.hero .blob-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 55%, transparent 0%, transparent 35%, rgba(10,10,10,0.4) 90%);
  pointer-events: none;
}

@keyframes heroBlob1 {
  0%   { transform: translate(0%, 0%)    scale(1)    rotate(0deg);   }
  50%  { transform: translate(18%, -10%) scale(1.22) rotate(22deg);  }
  100% { transform: translate(-12%, 14%) scale(0.92) rotate(-18deg); }
}
@keyframes heroBlob2 {
  0%   { transform: translate(0%, 0%)    scale(1)    rotate(0deg);   }
  50%  { transform: translate(-14%, 12%) scale(1.18) rotate(-18deg); }
  100% { transform: translate(10%, -12%) scale(0.88) rotate(24deg);  }
}
@keyframes heroBlob3 {
  0%   { transform: translate(0%, 0%)    scale(1)    rotate(0deg);   }
  33%  { transform: translate(18%, 12%)  scale(1.32) rotate(32deg);  }
  66%  { transform: translate(-14%, -10%) scale(0.82) rotate(-28deg); }
  100% { transform: translate(10%, 14%)  scale(1.12) rotate(18deg);  }
}
@keyframes heroConicRotate {
  to { transform: rotate(360deg); }
}

/* ========================================
   DYNAMIC BG — for craft / pricing / contact
   ======================================== */
.block-craft .blob-wrap,
.block-pricing .blob-wrap,
.block-contact .blob-wrap {
  filter: blur(90px);
  inset: -15%;
  opacity: 1;
}

/* Craft section */
.block-craft .blob--4 {
  width: 70vw; height: 70vw;
  background: radial-gradient(circle, #3a6dff 0%, #1e40d4 30%, transparent 65%);
  top: 10%; right: -25%;
  animation: heroBlob1 16s cubic-bezier(0.65, 0, 0.35, 1) infinite alternate;
  opacity: 0.7;
}
.block-craft .blob--5 {
  width: 55vw; height: 55vw;
  background: radial-gradient(circle, #5b8dff 0%, #2e5bff 35%, transparent 60%);
  bottom: -15%; left: -15%;
  animation: heroBlob2 18s cubic-bezier(0.65, 0, 0.35, 1) infinite alternate-reverse;
  opacity: 0.55;
}
.block-craft .blob-wrap::before {
  content: '';
  position: absolute; inset: -40%;
  width: 180%; height: 180%;
  background: conic-gradient(from 45deg at 50% 50%,
    transparent 0%,
    rgba(46,91,255,0.18) 20%,
    transparent 40%,
    rgba(91,141,239,0.14) 60%,
    transparent 80%,
    rgba(30,64,212,0.18) 100%);
  animation: heroConicRotate 38s linear infinite reverse;
  mix-blend-mode: screen;
  opacity: 0.65;
  pointer-events: none;
}

/* Pricing section */
.block-pricing .blob--6 {
  width: 85vw; height: 85vw;
  background: radial-gradient(circle, #3a6dff 0%, #1e40d4 30%, transparent 65%);
  top: -25%; left: -25%;
  animation: heroBlob1 14s cubic-bezier(0.65, 0, 0.35, 1) infinite alternate;
  opacity: 0.75;
}
.block-pricing .blob-wrap::before {
  content: '';
  position: absolute; inset: -40%;
  width: 180%; height: 180%;
  background: conic-gradient(from 180deg at 50% 50%,
    transparent 0%,
    rgba(91,141,239,0.18) 25%,
    transparent 50%,
    rgba(46,91,255,0.20) 75%,
    transparent 100%);
  animation: heroConicRotate 34s linear infinite;
  mix-blend-mode: screen;
  opacity: 0.7;
  pointer-events: none;
}
.block-pricing .blob-wrap::after {
  content: '';
  position: absolute;
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, #7aa0ff 0%, transparent 60%);
  bottom: -20%; right: -15%;
  animation: heroBlob2 17s cubic-bezier(0.65, 0, 0.35, 1) infinite alternate-reverse;
  opacity: 0.45;
  mix-blend-mode: screen;
  border-radius: 50%;
  pointer-events: none;
}

/* Contact section */
.block-contact .blob--7 {
  width: 75vw; height: 75vw;
  background: radial-gradient(circle, #3a6dff 0%, #1e40d4 30%, transparent 65%);
  top: -20%; right: -20%;
  animation: heroBlob1 15s cubic-bezier(0.65, 0, 0.35, 1) infinite alternate;
  opacity: 0.8;
}
.block-contact .blob--8 {
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, #5b8dff 0%, #2e5bff 35%, transparent 60%);
  bottom: -25%; left: -20%;
  animation: heroBlob2 17s cubic-bezier(0.65, 0, 0.35, 1) infinite alternate-reverse;
  opacity: 0.65;
}
.block-contact .blob-wrap::before {
  content: '';
  position: absolute; inset: -40%;
  width: 180%; height: 180%;
  background: conic-gradient(from 90deg at 50% 50%,
    transparent 0%,
    rgba(46,91,255,0.20) 18%,
    transparent 36%,
    rgba(91,141,239,0.16) 54%,
    transparent 72%,
    rgba(30,64,212,0.20) 90%,
    transparent 100%);
  animation: heroConicRotate 32s linear infinite;
  mix-blend-mode: screen;
  opacity: 0.7;
  pointer-events: none;
}

/* Vignette helper to focus on type */
.block-craft .blob-wrap::after,
.block-contact::after {
  pointer-events: none;
}
.block-craft::after,
.block-contact::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, transparent 0%, transparent 40%, rgba(10,10,10,0.45) 100%);
  z-index: 0;
  pointer-events: none;
}

.noise {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

/* ========================================
   CORNER LABELS (editorial)
   ======================================== */
.corner {
  position: absolute;
  display: flex; flex-direction: column; gap: 4px;
  z-index: 4;
  pointer-events: none;
}
.corner--tl { top: 32px; left: var(--pad-x-desktop); }
.corner--tc { top: 32px; left: 50%; transform: translateX(-50%); align-items: center; }
.corner--tr { top: 32px; right: var(--pad-x-desktop); align-items: flex-end; text-align: right; }
/* in non-hero sections, give corners breathing room from topnav */
.section .corner--tc { display: none; }
.section .corner--tl,
.section .corner--tr { top: clamp(32px, 5vw, 64px); }

@media (max-width: 720px) {
  .corner--tc { display: none; }
  .corner--tl { left: var(--pad-x-mobile); }
  .corner--tr { right: var(--pad-x-mobile); }
}

/* ========================================
   1. HERO
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 90px var(--pad-x-desktop) 56px;
  background: var(--bg-dark);
  isolation: isolate;
  overflow: hidden;
}

.hero-type {
  position: relative;
  display: grid;
  place-items: center;
  margin-top: clamp(40px, 6vw, 100px);
}

.display--hero {
  font-size: var(--t-display-hero);
  font-family: 'Anton', 'Bebas Neue', 'Impact', sans-serif;
  font-weight: 400;
  line-height: 0.84;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--text-light);
  text-align: center;
  position: relative;
  width: 100%;
}
.display--hero .line {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0;
  padding: 0 clamp(8px, 2vw, 32px);
}
.display--hero .line--bot {
  justify-content: center;
  gap: clamp(8px, 1.5vw, 36px);
}
.display--hero .line--bot {
  color: var(--accent-red);
  margin-top: -0.05em;
}
.display--hero .ch {
  position: relative;
  display: inline-block;
  padding: 0 0.04em;
  opacity: 0;
  filter: blur(20px);
  transform: translateY(40px);
}
.display--hero .ch::after { display: none; }

/* Hero floating red card */
.hero-card {
  position: absolute;
  right: clamp(20px, 4vw, 80px);
  top: 36%;
  background: var(--accent-red);
  color: var(--text-light);
  padding: 32px 36px 36px;
  border-radius: var(--r-md);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(26px, 2.4vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  width: clamp(260px, 26vw, 360px);
  z-index: 5;
  box-shadow: 0 30px 80px -20px rgba(46,91,255,0.5);
  transform: rotate(3deg);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  isolation: isolate;
  /* button reset */
  border: 0;
  text-align: left;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}
.hero-card:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}
.hero-card:hover {
  transform: rotate(0deg) scale(1.03);
  box-shadow: 0 40px 100px -10px rgba(46,91,255,0.7);
}
.hero-card-arrow {
  position: absolute;
  bottom: 16px; right: 18px;
  width: 22px; height: 22px;
  color: var(--text-light);
  display: grid;
  place-items: center;
  opacity: 0.9;
  transform: rotate(-3deg); /* compensate parent's 3deg tilt on desktop */
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
  pointer-events: none;
}
.hero-card-arrow svg { width: 100%; height: 100%; display: block; }
.hero-card:hover .hero-card-arrow {
  opacity: 1;
  transform: rotate(0deg) translate(4px, -4px);
}

@media (max-width: 900px) {
  .hero-card {
    position: relative;
    right: auto; top: auto;
    margin: 24px auto 0;
    transform: none;
  }
  .hero-card-arrow {
    /* No parent tilt to compensate */
    bottom: 18px; right: 18px;
    width: 26px; height: 26px;
    transform: none;
    opacity: 1;
  }
}

/* Hero meta */
.hero-meta {
  position: absolute;
  bottom: clamp(80px, 10vw, 140px);
  left: var(--pad-x-desktop);
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--t-mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  line-height: 1.6;
  color: var(--text-light);
  z-index: 5;
}
.hero-meta .meta-date { font-size: 14px; font-weight: 500; }
.hero-meta .meta-place { color: var(--muted-light); }
.hero-meta .meta-slots {
  /* Brighter blue tint for WCAG AA on dark bg (was #2e5bff = 3.82:1) */
  color: #7da3ff;
  font-weight: 600;
  margin-top: 4px;
}

/* CTA */
.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 28px;
  border-radius: var(--r-pill);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  overflow: hidden;
  transition: transform 0.4s var(--ease), color 0.4s var(--ease);
  isolation: isolate;
}
.cta::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--accent-red);
  border-radius: var(--r-pill);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s var(--ease-out-expo);
  z-index: -1;
}
.cta:hover::before { transform: scaleX(1); }
.cta:hover { color: var(--text-light); transform: translateY(-2px); }
.cta-arrow {
  display: inline-block;
  transition: transform 0.4s var(--ease);
}
.cta:hover .cta-arrow { transform: translateX(6px); }

.cta--pill {
  position: absolute;
  bottom: clamp(40px, 6vw, 80px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-cream);
  color: var(--text-dark);
  border: 1px solid rgba(245,240,232,0.4);
  z-index: 5;
}
.cta--pill:hover { transform: translateX(-50%) translateY(-2px); }
.cta--dark { background: var(--text-dark); color: var(--text-light); }
.cta--dark::before { background: var(--accent-red); }
.cta--white { background: var(--text-light); color: var(--accent-red); }
.cta--white::before { background: var(--text-dark); }
.cta--white:hover { color: var(--text-light); }
.cta--accent { background: var(--accent-red); color: var(--text-light); }
.cta--accent::before { background: var(--text-light); }
.cta--accent:hover { color: var(--accent-red); }
.cta--full { width: 100%; justify-content: space-between; margin-top: 32px; }

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: clamp(32px, 5vw, 56px);
  right: var(--pad-x-desktop);
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
  z-index: 5;
}
.scroll-line { display: none; }
.scroll-arrow {
  font-size: 18px;
  color: var(--accent-red);
  line-height: 1;
  animation: scrollBounce 1.6s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(6px); opacity: 1; }
}

.cta--pill span { white-space: nowrap; }

@media (max-width: 880px) {
  /* Bottom area: stop overlapping by going static-stack */
  .hero {
    display: flex;
    flex-direction: column;
    padding: 88px 24px 32px;
  }
  .hero-type { flex: 1; min-height: 55vh; }
  .hero-meta {
    position: static;
    margin: 24px 0 0;
    font-size: 11px;
  }
  .cta--pill {
    position: static;
    transform: none;
    align-self: stretch;
    justify-content: space-between;
    margin-top: 18px;
  }
  .cta--pill:hover { transform: translateY(-2px); }
  .scroll-hint { display: none; }
}

@media (max-width: 720px) {
  .corner { font-size: 10px; }
  .corner--tl, .corner--tr { top: 18px; }
  .corner--tl { left: 24px; }
  .corner--tr { right: 24px; }
  .hero-meta { font-size: 11px; }
  .display--hero .ch::after { display: none; }
  .display--hero .line { letter-spacing: -0.02em; }
}

/* ========================================
   TICKER MARQUEE
   ======================================== */
.ticker {
  position: relative;
  background: var(--accent-red);
  color: var(--text-light);
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding: 18px 0;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-track {
  display: inline-block;
  white-space: nowrap;
  animation: ticker 40s linear infinite;
  font-family: 'Anton', sans-serif;
  font-size: clamp(20px, 2.2vw, 32px);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ticker-track span { display: inline-block; padding: 0 24px; }
.ticker--reverse {
  background: var(--bg-cream); color: var(--text-dark);
}
.ticker--reverse .ticker-track { animation-direction: reverse; }

@keyframes ticker {
  from { transform: translate3d(0,0,0); }
  to   { transform: translate3d(-50%,0,0); }
}

/* ========================================
   2. INTRO VIDEO
   ======================================== */
.block-intro { padding-top: clamp(96px, 11vw, 160px); }
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: stretch; /* same height — video matches text block top→bottom */
  margin-top: 32px;
}
.intro-text {
  display: flex;
  flex-direction: column;
}
.intro-lede {
  margin-top: 32px;
  font-family: 'Inter', sans-serif;
  font-size: var(--t-lede);
  color: var(--muted-dark);
  max-width: 480px;
  line-height: 1.5;
}
.intro-video {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
}

@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr; align-items: start; }
  .intro-video { justify-content: stretch; }
}

/* Video card — square 1:1, fills the text-column height */
.video-card {
  position: relative;
  aspect-ratio: 1 / 1;
  height: 100%;
  width: auto;
  max-width: 100%;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--text-dark);
  cursor: pointer;
  isolation: isolate;
}
@media (max-width: 900px) {
  .video-card { width: 100%; height: auto; }
}
.video-thumb {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 1.4s var(--ease);
}
.video-card:hover .video-thumb { transform: scale(1.06); }
.play-btn {
  position: absolute;
  top: 50%; left: 50%;
  width: 88px; height: 88px;
  margin: -44px 0 0 -44px;
  background: var(--accent-red);
  color: var(--text-light);
  border-radius: 50%;
  display: grid; place-items: center;
  transition: transform 0.4s var(--ease), background 0.3s var(--ease);
  box-shadow: 0 20px 60px -10px rgba(46,91,255,0.6);
  z-index: 2;
}
.play-btn svg { width: 30px; height: 30px; fill: currentColor; margin-left: 4px; }
.video-card:hover .play-btn { transform: scale(1.1); background: var(--accent-coral); }
.play-btn--sm { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
.play-btn--sm svg { width: 20px; height: 20px; }
/* .video-meta removed from intro card (DURATION/CHAPTER labels dropped) */

/* Plyr (intro HLS player) — fill the square frame + brand colors */
.video-card .intro-player {
  width: 100%; height: 100%;
  display: block;
}
.video-card .plyr {
  position: absolute; inset: 0;
  height: 100%; width: 100%;
  border-radius: var(--r-md);
  --plyr-color-main: var(--accent-red);
  --plyr-video-controls-background: linear-gradient(rgba(10,10,10,0) 0%, rgba(10,10,10,0.7) 100%);
  --plyr-video-control-color: #fff;
  --plyr-menu-background: rgba(10,10,10,0.95);
  --plyr-menu-color: #f4f1eb;
  --plyr-menu-radius: 12px;
  --plyr-control-radius: 10px;
  --plyr-tab-focus-color: var(--accent-red);
  --plyr-badge-background: var(--accent-red);
}
.video-card .plyr video,
.video-card .plyr__poster { object-fit: cover; }
.video-card .plyr--full-ui input[type=range] { color: var(--accent-red); }
.video-card .plyr__menu__container { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.06em; }

/* Big circular play overlay — branded blue, prominent, animates on hover */
.video-card .plyr__control--overlaid {
  background: var(--accent-red) !important;
  border: 0;
  border-radius: 50%;
  width: 92px; height: 92px;
  padding: 0;
  display: grid; place-items: center;
  box-shadow:
    0 24px 60px -16px rgba(46,91,255,0.65),
    0 0 0 8px rgba(46,91,255,0.15);
  transition: transform 0.4s var(--ease), background 0.3s var(--ease), box-shadow 0.4s var(--ease);
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.video-card .plyr__control--overlaid svg {
  width: 32px; height: 32px;
  fill: #fff;
  margin-left: 4px; /* optical centering for the play triangle */
}
.video-card:hover .plyr__control--overlaid,
.video-card .plyr__control--overlaid:hover,
.video-card .plyr__control--overlaid:focus-visible {
  background: var(--accent-coral) !important;
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow:
    0 30px 80px -16px rgba(46,91,255,0.85),
    0 0 0 12px rgba(46,91,255,0.18);
}
@media (max-width: 720px) {
  .video-card .plyr__control--overlaid { width: 72px; height: 72px; }
  .video-card .plyr__control--overlaid svg { width: 26px; height: 26px; }
}

/* ========================================
   3. CRAFT GRID (4 cards)
   ======================================== */
.block-craft {
  padding-top: clamp(120px, 14vw, 200px);
}
.block-craft .section-head { text-align: center; max-width: 1300px; }
.block-craft .display--xl { align-items: center; }
.block-craft .serif--lede { margin: 32px auto 0; text-align: center; }

.craft-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 20px;
  margin: 80px auto 0;
  max-width: 1500px;
}
.craft-card {
  position: relative;
  padding: 32px 28px;
  border-radius: 28px;
  min-height: 360px;
  display: flex; flex-direction: column;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  overflow: hidden;
  isolation: isolate;
}
.craft-card--red { background: var(--accent-red); color: var(--text-light); margin-top: 0; }
.craft-card--cream { background: var(--bg-cream); color: var(--text-dark); margin-top: 40px; }
.craft-card--outline {
  background: transparent;
  border: 1px solid var(--line-light);
  color: var(--text-light);
  margin-top: 20px;
}
.craft-card--sm { min-height: 300px; margin-top: 60px; }

.craft-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 80px -20px rgba(46,91,255,0.4);
}

.craft-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  opacity: 0.7;
}
.craft-title {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(32px, 2.6vw, 48px);
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin: 16px 0 22px;
  word-break: break-word;
  hyphens: auto;
}
.craft-text {
  font-size: 15px;
  line-height: 1.5;
  font-weight: 400;
  margin-top: auto;
  opacity: 0.9;
}
.craft-corner {
  position: absolute;
  bottom: 22px; right: 24px;
  width: 22px; height: 22px;
  opacity: 0.7;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
  display: grid;
  place-items: center;
  color: currentColor;
}
.craft-corner svg { width: 100%; height: 100%; }
.craft-card:hover .craft-corner { transform: translate(4px, -4px); opacity: 1; }

@media (max-width: 1100px) {
  .craft-grid { grid-template-columns: 1fr 1fr; }
  .craft-card, .craft-card--cream, .craft-card--outline, .craft-card--sm { margin-top: 0; }
}
@media (max-width: 600px) {
  .craft-grid { grid-template-columns: 1fr; }
}

/* ========================================
   4. FOR WHOM (pills)
   ======================================== */
.for-whom-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
  max-width: 1400px; margin: 0 auto;
}
.for-whom-head { position: sticky; top: 100px; }
.for-whom-list { display: flex; flex-direction: column; gap: 14px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 16px 26px;
  border-radius: var(--r-pill);
  background: rgba(10,10,10,0.04);
  border: 1px solid var(--line-dark);
  color: var(--text-dark);
  font-family: 'Inter', sans-serif;
  font-size: clamp(15px, 1.2vw, 19px);
  font-weight: 500;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.pill--lg { width: fit-content; max-width: 100%; }
.pill:hover {
  background: var(--text-dark);
  color: var(--text-light);
  border-color: var(--text-dark);
  transform: translateX(6px);
}
.pill-bullet {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  background: var(--accent-red);
  color: var(--text-light);
  padding: 4px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}
.pill:hover .pill-bullet { background: var(--text-light); color: var(--accent-red); }

.pill--sm {
  padding: 8px 16px;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  background: rgba(10,10,10,0.06);
  border: 1px solid var(--line-dark);
}
.pill--accent {
  background: var(--accent-red);
  color: var(--text-light);
  border-color: var(--accent-red);
}
.pill--social {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line-light);
  color: var(--text-light);
  padding: 14px 22px;
  gap: 10px;
}
.pill--social svg { width: 18px; height: 18px; fill: currentColor; }
.pill--social:hover { background: var(--accent-red); border-color: var(--accent-red); }

/* For-Whom — age policy note */
.for-whom-note {
  margin-top: 32px;
  padding: 18px 22px;
  border: 1px dashed var(--line-dark);
  border-radius: var(--r-md);
  background: rgba(10,10,10,0.03);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted-dark);
}
.for-whom-note-badge {
  flex-shrink: 0;
  background: var(--accent-red);
  color: var(--text-light);
  border-color: var(--accent-red);
  padding: 4px 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

@media (max-width: 900px) {
  .for-whom-grid { grid-template-columns: 1fr; }
  .for-whom-head { position: relative; top: auto; margin-bottom: 32px; }
}
@media (max-width: 540px) {
  .for-whom-note { flex-direction: column; gap: 10px; font-size: 14px; }
}

/* ========================================
   5. PROGRAM — EDITORIAL CHAPTERS
   ======================================== */
.program-stack {
  display: flex; flex-direction: column;
  gap: clamp(16px, 1.8vw, 28px);
  max-width: 1400px;
  margin: 0 auto;
}
.chapter-row {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(16px, 1.8vw, 28px);
}
.chapter-row--reverse { grid-template-columns: 0.95fr 1.05fr; }

.chapter {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  min-height: 320px;
  display: flex; flex-direction: column;
}
.chapter:hover { transform: translateY(-4px); }

/* Massive decorative number */
.chapter-num {
  position: absolute;
  top: -0.05em; right: 0.06em;
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(180px, 22vw, 360px);
  line-height: 0.78;
  letter-spacing: -0.06em;
  opacity: 0.16;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
/* Chapter 01 — tuck deeper inside the card (lower and to the left) */
.chapter--blue .chapter-num {
  top: 0.14em;
  right: 0.14em;
}
/* Chapter 06 — same top inset as 01, slightly less right */
.chapter--finale .chapter-num {
  top: 0.14em;
  right: 0.12em;
}
.chapter-num--inline {
  position: absolute;
  top: clamp(12px, 1.8vw, 24px);
  right: clamp(20px, 2vw, 32px);
  font-size: clamp(80px, 9vw, 140px);
  opacity: 0.22;
}

/* Colour variants */
.chapter--blue {
  background: var(--accent-red); /* var name kept; resolves to blue */
  color: var(--text-light);
}
.chapter--outline {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line-light);
  color: var(--text-light);
}
.chapter--cream {
  background: var(--bg-cream);
  color: var(--text-dark);
}
.chapter--finale {
  background: linear-gradient(135deg, rgba(46,91,255,0.95), rgba(91,141,239,0.85) 60%, rgba(10,10,10,0.95));
  color: var(--text-light);
  position: relative;
}
.chapter--finale::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.07; mix-blend-mode: overlay;
  pointer-events: none; z-index: 0;
}

/* Feature chapters (01 + 06) – span full row */
.chapter--feature {
  padding: clamp(36px, 5vw, 64px) clamp(28px, 4vw, 56px);
  min-height: clamp(360px, 36vw, 480px);
}
.chapter--feature .chapter-meta {
  display: flex; gap: 24px;
  margin-bottom: clamp(24px, 3vw, 40px);
  flex-wrap: wrap;
  position: relative; z-index: 2;
}
.chapter--feature .chapter-body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: end;
  position: relative; z-index: 2;
}

/* Medium chapters (02–05) */
.chapter:not(.chapter--feature) {
  padding: clamp(28px, 3.5vw, 48px) clamp(24px, 3vw, 40px);
}
.chapter-meta--inline {
  display: flex; flex-direction: column;
  gap: 4px;
  margin-bottom: clamp(20px, 3vw, 32px);
  position: relative; z-index: 2;
}

/* Titles */
.chapter-title {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(48px, 6vw, 96px);
  line-height: 0.86;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0 0 clamp(16px, 2vw, 28px);
  color: inherit;
  position: relative; z-index: 2;
}
.chapter-title em {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: -0.02em;
  font-size: 0.94em;
  color: var(--text-light);
}
.chapter--cream .chapter-title em { color: var(--accent-red); }
.chapter--outline .chapter-title em { color: var(--accent-red); }
.chapter-title--md {
  font-size: clamp(36px, 4vw, 64px);
  line-height: 0.9;
}
.chapter-title--dark { color: var(--text-dark); }

/* Body text */
.chapter-text {
  font-family: 'Inter', sans-serif;
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.5;
  margin-bottom: clamp(16px, 2vw, 24px);
  max-width: 560px;
  color: rgba(250,248,243,0.85);
  position: relative; z-index: 2;
}
.chapter--cream .chapter-text,
.chapter-text--dark { color: rgba(10,10,10,0.78); }
.chapter-text em {
  font-style: italic;
  font-family: 'Playfair Display', serif;
  color: inherit;
  opacity: 1;
}
.chapter--blue .chapter-text em { color: var(--text-light); font-weight: 600; }

/* Chip tags */
.chapter-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  position: relative; z-index: 2;
  margin-top: auto;
}
.chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--text-light);
  text-transform: uppercase;
  white-space: nowrap;
}
.chip--dark {
  background: rgba(10,10,10,0.04);
  border-color: var(--line-dark);
  color: var(--text-dark);
}
.chip--accent {
  background: var(--text-light);
  border-color: var(--text-light);
  color: var(--accent-red);
  font-weight: 500;
}

/* Different sizes for chapters 04/05 */
.chapter--narrow .chapter-title { font-size: clamp(34px, 3.4vw, 52px); }

/* Mobile */
@media (max-width: 880px) {
  .chapter-row { grid-template-columns: 1fr; }
  .chapter-row--reverse { grid-template-columns: 1fr; }
  .chapter { min-height: 280px; }
  .chapter--feature { min-height: 360px; }
  .chapter--feature .chapter-body {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .chapter-num { font-size: clamp(140px, 32vw, 220px); }
  .chapter-num--inline { font-size: clamp(72px, 18vw, 110px); }
  .chapter-title { font-size: clamp(40px, 11vw, 64px); }
  .chapter-title--md { font-size: clamp(32px, 9vw, 48px); }
}

/* ========================================
   6. ABOUT ARTHUR
   ======================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: stretch;
  max-width: 1500px; margin: 0 auto;
}
.about-photo { position: relative; }
.photo-frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  height: clamp(420px, 80vh, 760px);
  background: var(--text-dark);
}
.photo-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.photo-frame:hover img { transform: scale(1.04); }
.photo-tag {
  position: absolute;
  bottom: 18px; left: 18px;
  color: var(--text-light);
  background: rgba(10,10,10,0.6);
  backdrop-filter: blur(10px);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,0.18);
}

.about-content { padding: clamp(20px, 3vw, 40px) 0; }
.about-bio {
  margin: 40px 0 48px;
  display: flex; flex-direction: column; gap: 14px;
}
.about-bio li {
  font-family: 'Playfair Display', serif;
  font-size: clamp(20px, 1.8vw, 28px);
  font-weight: 400;
  line-height: 1.3;
  display: flex; gap: 16px;
  color: var(--text-dark);
}
.bio-dot {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  color: var(--accent-red);
  padding-top: 6px;
}

.about-quote {
  position: relative;
  padding: 32px 0 0;
  border-top: 1px solid var(--line-dark);
}
.about-quote p {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(22px, 2vw, 32px);
  line-height: 1.3;
  color: var(--text-dark);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.about-quote em { color: var(--accent-red); font-style: normal; }
.quote-footer { margin-top: 24px; }

/* Result block — "главное правило" pull-quote (reuses .for-whom-grid / .pill) */
.result-rule {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(18px, 1.5vw, 24px);
  line-height: 1.35;
  color: var(--text-dark);
  max-width: 42ch;
}
.result-rule em { color: var(--accent-red); font-style: normal; }

/* About — professional profiles list */
.about-profiles {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line-dark);
}
.about-profiles > .mono { display: block; margin-bottom: 18px; letter-spacing: 0.22em; }
.profiles-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}
.profiles-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-md);
  background: rgba(10,10,10,0.02);
  color: var(--text-dark);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.profiles-list a:hover {
  background: var(--accent-red);
  color: var(--text-light);
  border-color: var(--accent-red);
  transform: translateY(-2px);
}
.prof-arr {
  display: inline-grid;
  place-items: center;
  width: 14px; height: 14px;
  opacity: 0.7;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.prof-arr svg { width: 100%; height: 100%; }
.profiles-list a:hover .prof-arr { transform: translate(2px, -2px); opacity: 1; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .photo-frame { border-radius: var(--r-lg); height: 60vh; }
}
@media (max-width: 540px) {
  .profiles-list { grid-template-columns: 1fr; }
  .profiles-list a { font-size: 11px; padding: 12px 14px; }
}

/* ========================================
   7. PORTFOLIO
   ======================================== */
.portfolio-row {
  display: flex;
  gap: 20px;
  padding: 0 var(--pad-x-desktop) 20px;
  margin: 0 calc(var(--pad-x-desktop) * -1);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.portfolio-row::-webkit-scrollbar { display: none; }
.port-card {
  position: relative;
  flex: 0 0 clamp(240px, 24vw, 360px);
  aspect-ratio: 9 / 16;
  border-radius: var(--r-md);
  overflow: hidden;
  scroll-snap-align: start;
  background: var(--text-dark);
  transition: transform 0.5s var(--ease);
  isolation: isolate;
}
.port-media {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 1.4s var(--ease), filter 0.5s var(--ease);
}
.port-media--video { overflow: hidden; background: #000; }
.port-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.4s var(--ease), filter 0.5s var(--ease);
}
.port-media-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0) 30%, rgba(10,10,10,0.78) 100%);
  pointer-events: none;
  z-index: 1;
}
.port-card:hover { transform: scale(1.03); }
.port-card:hover .port-media,
.port-card:hover .port-video { transform: scale(1.08); filter: saturate(1.2); }
.port-num {
  position: absolute;
  top: 18px; left: 18px;
  color: var(--text-light);
  z-index: 2;
}
.port-meta {
  position: absolute;
  bottom: 18px; left: 20px; right: 20px;
  color: var(--text-light);
  z-index: 2;
}
.port-title {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(22px, 1.7vw, 28px);
  line-height: 1.1;
  margin-bottom: 6px;
}

/* ========================================
   8. YACHT
   ======================================== */
.yacht-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
  max-width: 1500px; margin: 0 auto;
}
/* Section override — full-bleed cinematic video block */
.block-yacht {
  position: relative;
  background: #0a1622;
  color: var(--text-light);
  overflow: hidden;
  isolation: isolate;
  padding: clamp(120px, 14vw, 200px) var(--pad-x-desktop) clamp(100px, 12vw, 160px);
  min-height: clamp(640px, 86vh, 900px);
  display: flex; flex-direction: column;
  justify-content: center;
}

/* Video background layer */
.yacht-bg {
  position: absolute; inset: 0;
  z-index: 0;
  overflow: hidden;
}
.yacht-bg-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  /* Slow ken-burns drift for cinematic feel */
  animation: yachtDrift 24s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes yachtDrift {
  0%   { transform: scale(1.05) translateX(0);    }
  100% { transform: scale(1.12) translateX(-2%);  }
}
.yacht-bg-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.25) 25%, rgba(10,10,10,0.35) 65%, rgba(10,10,10,0.85) 100%),
    radial-gradient(ellipse at 30% 50%, rgba(46,91,255,0.18) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}
.yacht-bg-noise {
  position: absolute; inset: 0;
  z-index: 2;
  opacity: 0.06;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* All content above video sits on z-index 3+ */
.block-yacht > .corner,
.block-yacht > .yacht-content,
.block-yacht > .yacht-meta { position: relative; z-index: 3; }
.block-yacht > .corner.corner--tl,
.block-yacht > .corner.corner--tr { position: absolute; }

.yacht-content {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  display: flex; flex-direction: column;
  align-items: center;
  gap: clamp(20px, 2.5vw, 36px);
}
.yacht-title {
  align-items: center;
}
.yacht-title .display-em {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: -0.02em;
  text-transform: lowercase;
  font-size: 0.96em;
}
.yacht-lede {
  font-size: clamp(18px, 1.4vw, 22px);
  color: rgba(250,248,243,0.85);
  max-width: 640px;
  text-align: center;
}
.yacht-lede em {
  font-style: italic;
  color: var(--text-light);
  font-family: 'Playfair Display', serif;
}

/* Glass pills over video */
.yacht-pills {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center;
  max-width: 760px;
}
.pill--glass {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.22);
  color: var(--text-light);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
}
.pill--glass:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.4);
  color: var(--text-light);
  transform: translateY(-1px);
}

/* Stats row */
.yacht-stats {
  display: flex; gap: clamp(28px, 5vw, 80px);
  justify-content: center;
  align-items: baseline;
  margin-top: clamp(20px, 3vw, 40px);
  padding: clamp(20px, 2.4vw, 32px) clamp(28px, 4vw, 56px);
  background: rgba(10,16,28,0.45);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-md);
}
.yacht-stat { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.yacht-stat-num {
  font-family: 'Anton', sans-serif;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.yacht-stat-label {
  color: var(--muted-light);
  letter-spacing: 0.16em;
}

/* Bottom-corner caption */
.yacht-meta {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-top: auto;
  padding-top: clamp(40px, 5vw, 64px);
  gap: 16px;
  flex-wrap: wrap;
}
.yacht-meta .mono { color: var(--text-light); }

/* Reuse the old .yacht-photo styles for any leftover refs (no-op safety) */
.yacht-photo { display: none; }

@media (max-width: 720px) {
  .yacht-stats {
    gap: 18px;
    padding: 18px 20px;
    width: 100%;
    justify-content: space-between;
  }
  .yacht-stat-num { font-size: clamp(28px, 9vw, 40px); }
  .yacht-meta { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* Legacy .yacht-grid no longer used (kept empty to avoid breakage) */

/* ========================================
   9. REVIEWS
   ======================================== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1300px; margin: 0 auto;
}
.review-card {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--text-dark);
  cursor: pointer;
  transition: transform 0.5s var(--ease);
  isolation: isolate;
}
.review-card:hover { transform: translateY(-6px); }
.review-media {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.review-media--placeholder {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a1a1a 100%);
}
.review-meta {
  position: absolute;
  bottom: 18px; left: 18px; right: 18px;
  color: var(--text-light);
  display: flex; flex-direction: column; gap: 4px;
  z-index: 2;
}
.review-name {
  font-family: 'Anton', sans-serif;
  font-size: clamp(20px, 1.6vw, 26px);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.coming-soon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Anton', sans-serif;
  font-size: clamp(28px, 2.2vw, 36px);
  text-transform: uppercase;
  text-align: center;
  line-height: 1;
  color: var(--accent-red);
  letter-spacing: 0.02em;
}
.review-card--soon { border: 1px dashed var(--line-light); }

/* Text testimonial card — no face, for students who prefer text */
.review-card--text {
  background: linear-gradient(160deg, #141414 0%, #1d1d24 100%);
  border: 1px solid var(--line-light);
  padding: clamp(22px, 2vw, 32px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* text cards size to content instead of the video cards' tall 9:16 */
  aspect-ratio: auto;
  align-self: start;
  min-height: clamp(240px, 30vw, 340px);
  cursor: default;
}
.review-quote-mark {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: clamp(48px, 5vw, 72px);
  line-height: 0.6;
  color: var(--accent-red);
}
.review-quote {
  margin-top: 14px;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(17px, 1.4vw, 23px);
  line-height: 1.35;
  color: var(--text-light);
}
.review-meta--text {
  position: static;
  inset: auto;
  margin-top: 24px;
}

@media (max-width: 900px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .reviews-grid { grid-template-columns: 1fr; } }

/* ========================================
   10. PRICING
   ======================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1100px; margin: 0 auto;
  align-items: stretch;
}
.price-card {
  position: relative;
  padding: 40px 36px;
  border-radius: var(--r-lg);
  display: flex; flex-direction: column;
  transition: transform 0.5s var(--ease);
  overflow: hidden;
  isolation: isolate;
}
.price-card--cream {
  background: var(--bg-cream); color: var(--text-dark);
  margin-top: 32px;
}
.price-card--red {
  background: var(--accent-red); color: var(--text-light);
  box-shadow: 0 40px 100px -20px rgba(46,91,255,0.5);
}
.price-card--featured { transform: scale(1.02); }
.price-card:hover { transform: translateY(-8px); }
.price-card--featured:hover { transform: translateY(-8px) scale(1.02); }

.price-head {
  display: flex; justify-content: space-between;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid currentColor;
  opacity: 0.95;
}
.price-card--cream .price-head { border-bottom-color: var(--line-dark); }
.price-card--red .price-head { border-bottom-color: rgba(255,255,255,0.3); }
.price-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.18em;
  font-weight: 500;
}
.price-amount {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 28px 0 8px;
}
.amount {
  font-family: 'Anton', sans-serif;
  font-size: clamp(64px, 7vw, 110px);
  line-height: 0.85;
  letter-spacing: -0.02em;
}
.currency {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  letter-spacing: 0.04em;
}
.price-sub {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(18px, 1.4vw, 22px);
  margin-bottom: 32px;
  opacity: 0.85;
}

.price-list {
  display: flex; flex-direction: column;
  gap: 12px;
  margin-top: auto;
}
.price-list li {
  display: flex; gap: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.4;
}
.tick {
  color: var(--accent-red);
  font-weight: 700;
  flex-shrink: 0;
}
.price-list--light .tick { color: var(--text-light); }

.price-badge {
  position: absolute;
  top: -14px; right: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  background: var(--text-light);
  color: var(--accent-red);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-weight: 500;
  z-index: 3;
  box-shadow: 0 8px 20px -6px rgba(0,0,0,0.4);
}

@media (max-width: 800px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card--cream { margin-top: 0; }
  .price-card--featured { transform: none; }
  .price-card--featured:hover { transform: translateY(-8px); }
}

/* ========================================
   11. FAQ
   ======================================== */
.faq-list { max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: rgba(10,10,10,0.04);
  border: 1px solid var(--line-dark);
  border-radius: 16px;
  overflow: hidden;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.faq-item:hover { background: rgba(10,10,10,0.06); border-color: var(--text-dark); }
.faq-item[open] { background: var(--text-dark); color: var(--text-light); border-color: var(--text-dark); }
.faq-item summary {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-num { width: 36px; flex-shrink: 0; opacity: 0.7; }
.faq-item[open] .faq-num { color: var(--accent-red); opacity: 1; }
.faq-q {
  flex: 1;
  font-family: 'Playfair Display', serif;
  font-size: clamp(18px, 1.5vw, 24px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.faq-icon {
  width: 24px; height: 24px;
  position: relative;
  flex-shrink: 0;
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  background: currentColor;
  transition: transform 0.4s var(--ease);
}
.faq-icon::before { width: 18px; height: 1.5px; margin: -1px 0 0 -9px; }
.faq-icon::after { width: 1.5px; height: 18px; margin: -9px 0 0 -1px; }
.faq-item[open] .faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon::before { transform: rotate(180deg); }

.faq-a {
  padding: 0 28px 28px 84px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(250,248,243,0.85);
  animation: faqOpen 0.5s var(--ease);
}
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .faq-item summary { padding: 20px 22px; gap: 14px; }
  .faq-num { width: auto; font-size: 10px; }
  .faq-a { padding: 0 22px 22px 22px; }
}

/* ========================================
   12. CONTACT FORM
   ======================================== */
.block-contact .section-head { max-width: 900px; }

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 12px;
  max-width: 1200px;
  margin: 48px auto 32px;
  align-items: stretch;
}
.field {
  position: relative;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-light);
  border-radius: var(--r-md);
  padding: 14px 20px 10px;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.field:focus-within {
  border-color: var(--accent-red);
  background: rgba(46,91,255,0.06);
}
.field label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 4px;
}
.field input {
  width: 100%;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text-light);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  padding: 6px 0;
}
.field input::placeholder { color: rgba(250,248,243,0.4); }

.contact-form .cta { white-space: nowrap; padding: 18px 28px; }

.contact-socials {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center;
  margin-top: 32px;
  max-width: 800px; margin-left: auto; margin-right: auto;
}

@media (max-width: 900px) {
  .contact-form { grid-template-columns: 1fr; }
}

/* ========================================
   13. FOOTER
   ======================================== */
.footer {
  position: relative;
  padding: clamp(60px, 8vw, 100px) var(--pad-x-desktop) 0;
  background: var(--bg-dark);
  border-top: 1px solid var(--line-light);
  overflow: hidden;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  gap: 40px;
  padding-bottom: clamp(40px, 6vw, 80px);
}
.footer-brand {
  font-family: 'Anton', sans-serif;
  font-size: clamp(24px, 2.2vw, 36px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-light);
}
.footer-nav {
  display: flex; gap: 16px; justify-content: center;
  flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.footer-nav a {
  color: var(--muted-light);
  transition: color 0.3s var(--ease);
}
.footer-nav a:hover { color: var(--accent-red); }
.footer-dot { color: var(--muted-light); opacity: 0.5; }
.footer-meta {
  text-align: right;
}
.footer-meta p { line-height: 1.4; }
.footer-insta {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.1em;
}
.footer-insta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
  border-bottom: 1px solid rgba(244,241,235,0.25);
  padding-bottom: 1px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.footer-insta a:hover {
  color: var(--accent-red);
  border-color: var(--accent-red);
}
.footer-insta svg { vertical-align: middle; }

.footer-credit {
  margin-top: 8px;
  font-size: 10px;
  letter-spacing: 0.14em;
  opacity: 0.55;
  transition: opacity 0.3s var(--ease);
}
.footer-credit:hover { opacity: 1; }
.footer-credit a {
  color: var(--text-light);
  border-bottom: 1px solid rgba(244,241,235,0.3);
  padding-bottom: 1px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.footer-credit a:hover {
  color: var(--accent-red);
  border-color: var(--accent-red);
}
.footer-credit-author {
  display: inline-block;
  opacity: 0.7;
}
@media (max-width: 720px) {
  .footer-credit { font-size: 9px; letter-spacing: 0.1em; }
  .footer-credit-author { display: block; margin-top: 2px; }
}

.footer-mega {
  font-family: 'Anton', sans-serif;
  font-size: 20.5vw;
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  overflow: visible;
  margin-top: 40px;
  margin-left: calc(var(--pad-x-desktop) * -1);
  margin-right: calc(var(--pad-x-desktop) * -1);
  padding: 0.12em 8px 0;
  position: relative;
  color: rgba(250, 248, 243, 0.22);
}
.footer-mega span {
  display: inline-block;
}

@media (max-width: 800px) {
  .footer-top { grid-template-columns: 1fr; text-align: center; }
  .footer-meta { text-align: center; }
  .footer-mega {
    font-size: 19vw;
    margin-left: -24px;
    margin-right: -24px;
    padding: 0.14em 0 0;
    overflow: hidden;
  }
}
@media (max-width: 480px) {
  .footer-mega { font-size: 19.5vw; }
}

/* ========================================
   BOOKING MODAL
   ======================================== */
/* ========================================
   BOOKING MODAL — editorial dark panel
   ======================================== */
.modal {
  position: fixed; inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 48px);
}
.modal[data-open] { display: flex; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(10,10,10,0.82);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}
.modal[data-open] .modal-backdrop { opacity: 1; }

.modal-dialog {
  position: relative;
  background: var(--bg-dark);
  color: var(--text-light);
  width: min(820px, 100%);
  max-height: calc(100dvh - 60px);
  border-radius: var(--r-lg);
  border: 1px solid var(--line-light);
  box-shadow: 0 40px 120px -10px rgba(0,0,0,0.7);
  overflow: hidden;
  isolation: isolate;
  transform: translateY(40px) scale(0.96);
  opacity: 0;
  transition: transform 0.55s var(--ease-out-expo), opacity 0.4s var(--ease);
}
.modal[data-open] .modal-dialog { transform: translateY(0) scale(1); opacity: 1; }

/* Background blobs — share the noise+blob look of dark sections */
.modal-dialog > .blob-wrap { filter: blur(50px); opacity: 0.7; }
.blob--m1 {
  width: 60%; height: 60%;
  background: radial-gradient(circle, var(--accent-red) 0%, transparent 65%);
  top: -10%; left: -10%;
  animation: blob 14s ease-in-out infinite alternate;
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
}
.blob--m2 {
  width: 50%; height: 50%;
  background: radial-gradient(circle, var(--accent-coral) 0%, transparent 65%);
  bottom: -20%; right: -10%;
  animation: blob 12s ease-in-out infinite alternate-reverse;
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
}

/* Modal close — round X button */
.modal-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  color: var(--text-light);
  cursor: pointer;
  z-index: 5;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.modal-close:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
  transform: rotate(90deg);
}
.modal-close svg { width: 18px; height: 18px; }

/* Inner scroll container */
.modal-inner {
  position: relative;
  z-index: 2;
  padding: clamp(56px, 6vw, 80px) clamp(28px, 4vw, 60px) clamp(28px, 4vw, 48px);
  overflow-y: auto;
  max-height: calc(100dvh - 60px);
  scrollbar-width: thin;
}
.modal-inner::-webkit-scrollbar { width: 6px; }
.modal-inner::-webkit-scrollbar-thumb { background: var(--line-light); border-radius: 3px; }

/* Head */
.modal-head { margin-bottom: clamp(28px, 4vw, 44px); }
.modal-display {
  font-size: clamp(48px, 6.5vw, 96px);
  margin: 20px 0 18px;
  letter-spacing: -0.03em;
}
.display-em {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 700;
  color: var(--accent-red);
  letter-spacing: -0.02em;
  text-transform: lowercase;
}
.modal-lede {
  font-size: clamp(15px, 1.2vw, 18px);
  max-width: 560px;
  color: var(--muted-light);
}
.modal-lede em { color: var(--text-light); font-style: italic; }

/* Fieldset / legend look */
.modal-fieldset {
  border: none;
  margin: 0 0 24px;
  padding: 0;
}
.modal-fieldset legend {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--t-mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted-light);
  margin-bottom: 14px;
  padding: 0;
}

/* Tariff switch — mini craft-cards */
.modal-tariff-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.tariff-opt { display: block; cursor: pointer; position: relative; }
.tariff-opt input {
  position: absolute; opacity: 0; pointer-events: none;
  width: 1px; height: 1px;
}
.tariff-card {
  position: relative;
  display: flex; flex-direction: column;
  gap: 10px;
  padding: 22px 22px 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-light);
  border-radius: var(--r-md);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease);
  min-height: 156px;
}
.tariff-opt:hover .tariff-card { transform: translateY(-2px); border-color: rgba(255,255,255,0.3); }
.tariff-opt input:checked + .tariff-card {
  border-color: var(--accent-red);
  background: rgba(46,91,255,0.12);
  box-shadow: 0 0 0 1px var(--accent-red) inset, 0 20px 50px -10px rgba(46,91,255,0.3);
}
.tariff-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 6px;
}
.tariff-num { color: var(--accent-red); font-weight: 500; }
.tariff-check {
  width: 26px; height: 26px;
  border: 1.5px solid var(--line-light);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.tariff-opt input:checked + .tariff-card .tariff-check {
  background: var(--accent-red);
  border-color: var(--accent-red);
}
/* Bigger, optically-centered checkmark (translate(-50%, -55%) compensates the
   visual weight imbalance of a rotated L-shape) */
.tariff-opt input:checked + .tariff-card .tariff-check::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 7px; height: 12px;
  border: solid var(--text-light);
  border-width: 0 2.5px 2.5px 0;
  transform: translate(-55%, -65%) rotate(45deg);
}
.tariff-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-light);
  font-weight: 500;
}
.tariff-price {
  font-family: 'Anton', sans-serif;
  font-size: clamp(36px, 3.5vw, 48px);
  line-height: 0.9;
  color: var(--text-light);
  letter-spacing: -0.02em;
}
.tariff-cur {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--muted-light);
  vertical-align: top;
  margin-left: 4px;
}
.tariff-sub {
  font-size: 10px;
  color: var(--muted-light);
  letter-spacing: 0.14em;
  margin-top: auto;
}
.tariff-card--featured .tariff-badge {
  position: absolute;
  top: -10px; right: 16px;
  font-size: 10px;
  letter-spacing: 0.14em;
  background: var(--accent-red);
  color: var(--text-light);
  padding: 4px 10px;
  border-radius: var(--r-pill);
}

/* Form fields — editorial like contact section */
.modal-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.modal-form .field {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-light);
  border-radius: var(--r-md);
  padding: 14px 20px 12px;
}
.modal-form .field--full { grid-column: 1 / -1; }
.modal-form .field:focus-within {
  border-color: var(--accent-red);
  background: rgba(46,91,255,0.08);
}
.modal-form .field label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 4px;
}
.field-opt { text-transform: none; letter-spacing: 0; font-size: 11px; opacity: 0.6; }
.modal-form .field input {
  width: 100%;
  background: transparent;
  border: 0; outline: 0;
  color: var(--text-light);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  padding: 4px 0;
}
.modal-form .field input::placeholder { color: rgba(250,248,243,0.35); }
.modal-form .field.is-error { border-color: #ff5e5e; background: rgba(255,94,94,0.06); }

/* Checkbox */
.m-check {
  display: flex; gap: 12px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--muted-light);
  line-height: 1.45;
  margin: 24px 0 28px;
  cursor: pointer;
}
.m-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px; height: 1px;
}
.m-check-box {
  width: 20px; height: 20px;
  border: 1.5px solid var(--line-light);
  border-radius: 5px;
  flex-shrink: 0;
  margin-top: 1px;
  position: relative;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.m-check input:checked ~ .m-check-box {
  background: var(--accent-red);
  border-color: var(--accent-red);
}
.m-check input:checked ~ .m-check-box::after {
  content: '';
  position: absolute;
  top: 3px; left: 6px;
  width: 5px; height: 10px;
  border: solid var(--text-light);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.m-check input:focus-visible ~ .m-check-box {
  outline: 2px solid var(--accent-red);
  outline-offset: 3px;
}
.m-check-text { flex: 1; }

/* Submit */
.modal-submit { justify-content: space-between; padding: 20px 28px; }
.modal-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line-light);
  gap: 16px;
  flex-wrap: wrap;
}

/* Success */
.modal-success[hidden] { display: none !important; }
.modal-form[hidden] { display: none !important; }
.modal-success {
  text-align: center;
  padding: 32px 0 12px;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.modal-success .modal-display { margin: 14px 0 10px; }
.modal-success .serif--lede { color: var(--muted-light); max-width: 480px; }
.modal-success .cta { margin-top: 12px; }

/* Lock body scroll when modal open */
body.modal-open { overflow: hidden; }

/* Responsive */
@media (max-width: 720px) {
  .modal { padding: 0; align-items: stretch; }
  .modal-dialog {
    width: 100%; max-height: 100dvh;
    border-radius: 0;
    border-left: 0; border-right: 0;
  }
  .modal-inner {
    padding: 72px 22px 32px;
    max-height: 100dvh;
  }
  .modal-close { top: 14px; right: 14px; width: 40px; height: 40px; }
  .modal-tariff-switch { grid-template-columns: 1fr; gap: 10px; }
  .tariff-card { min-height: auto; padding: 18px 20px; }
  .modal-fields { grid-template-columns: 1fr; }
  .modal-display { font-size: clamp(38px, 11vw, 64px); }
  .modal-foot { font-size: 9px; }
}

/* ========================================
   REVEAL ANIMATIONS (handled by GSAP, fallback CSS)
   ======================================== */
.js-reveal { opacity: 0; transform: translateY(36px); }
.js-reveal.is-in,
body[data-no-anim] .js-reveal { opacity: 1; transform: none; }

.js-reveal-text > span {
  display: block;
  overflow: hidden;
  /* Leave room for italic Cyrillic descenders ("р", "у", "д", "ц", "щ"…) */
  padding-bottom: 0.18em;
  margin-bottom: -0.18em;
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
@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;
  }
  .blob { display: none; }
  .ticker-track { animation: none; }
  .js-reveal { opacity: 1; transform: none; }
  .display--hero .ch { opacity: 1; transform: none; filter: none; }
}

:focus-visible {
  outline: 2px solid var(--accent-red);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Hide cursor on touch devices for performance */
@media (hover: none) and (pointer: coarse) {
  body { cursor: auto; }
}

/* ========================================
   MOBILE PERFORMANCE OVERRIDES
   Kill expensive paint/composite work on phones.
   Layout time on the audited Slow-4G + 4x CPU was 711ms;
   most of it came from blur(60-90px) + mix-blend-mode + conic gradients.
   ======================================== */
@media (max-width: 720px) {
  /* Drop every animated blob layer and its rotating conic backdrop */
  .blob, .noise, .yacht-bg-noise { display: none !important; }
  .blob-wrap, .blob-wrap--soft {
    filter: none !important;
    opacity: 0 !important;
    animation: none !important;
  }
  .hero .blob-wrap,
  .hero .blob-wrap::before,
  .hero .blob-wrap::after,
  .block-craft .blob-wrap::before,
  .block-craft .blob-wrap::after,
  .block-pricing .blob-wrap::before,
  .block-pricing .blob-wrap::after,
  .block-contact .blob-wrap::before,
  .block-contact .blob-wrap::after {
    display: none !important;
    animation: none !important;
  }
  .hero {
    background: radial-gradient(ellipse at 30% 20%, #1e2a6a 0%, #0A0A0A 60%);
  }

  /* Cheap nav: drop the expensive backdrop blur */
  .topnav {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(10,10,10,0.88);
  }

  /* Make hero typography readable instantly — no JS gating */
  .display--hero .ch { opacity: 1 !important; filter: none !important; transform: none !important; }
  .js-reveal { opacity: 1 !important; transform: none !important; }
  .js-reveal-text > span,
  .js-reveal-text .line-inner { transform: none !important; }

  /* Slow continuous ticker eats battery + main thread on mobile */
  .ticker-track { animation-duration: 60s; }

  /* Lighter shadows for less GPU overdraw */
  .hero-card { box-shadow: 0 16px 40px -16px rgba(46,91,255,0.45); }
}

/* Lazy backgrounds get a placeholder colour so layout doesn't shift */
.js-lazy-bg { background-color: #181818; }
.js-lazy-bg.is-loaded {
  background-size: cover;
  background-position: center;
}

/* ========================================
   PORTFOLIO LIGHTBOX
   ======================================== */
.port-card { cursor: pointer; }
.port-card:focus-visible { outline: 3px solid var(--accent-red); outline-offset: 4px; }

.pf-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.pf-lightbox[data-open] { display: flex; }
.pf-backdrop { position: absolute; inset: 0; cursor: zoom-out; }

.pf-head {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 28px;
  background: linear-gradient(180deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0) 100%);
  pointer-events: none;
}
.pf-head > * { pointer-events: auto; }
.pf-head-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pf-title {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.15;
  color: var(--text-light);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pf-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244,241,235,0.55);
}
.pf-counter {
  flex: 0 0 auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: rgba(244,241,235,0.7);
}
.pf-close {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(244,241,235,0.2);
  background: rgba(244,241,235,0.05);
  color: var(--text-light);
  cursor: pointer;
  display: grid; place-items: center;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.pf-close svg { width: 20px; height: 20px; }
.pf-close:hover { background: var(--accent-red); border-color: var(--accent-red); transform: scale(1.05); }
.pf-close:focus-visible { outline: 2px solid var(--accent-red); outline-offset: 4px; }

.pf-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(244,241,235,0.2);
  background: rgba(0,0,0,0.4);
  color: var(--text-light);
  cursor: pointer;
  display: grid; place-items: center;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.pf-nav svg { width: 26px; height: 26px; }
.pf-nav:hover { background: var(--accent-red); border-color: var(--accent-red); }
.pf-nav:focus-visible { outline: 2px solid var(--accent-red); outline-offset: 4px; }
.pf-nav--prev { left: 24px; }
.pf-nav--next { right: 24px; }

.pf-stage {
  position: relative;
  z-index: 1;
  width: 100vw;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Top: ~76px header. Sides: 120px = arrow zone (24 + 56) + 40px breathing.
     Bottom: 40px so player uses more of the free space. */
  padding: 80px 120px 40px;
  box-sizing: border-box;
}
.pf-stage video,
.pf-stage img {
  /* Fill the available box (capped at 1200×stageHeight).
     object-fit: contain preserves aspect-ratio for 16:9, 9:16, 1:1. */
  width: 100%;
  height: 100%;
  max-width: 1200px;
  max-height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
  border-radius: var(--r-md);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6);
}

/* Lock body scroll when lightbox open */
body.pf-open { overflow: hidden; }

/* Mobile */
@media (max-width: 720px) {
  .pf-head { padding: 16px 16px; gap: 10px; }
  .pf-title { font-size: 16px; white-space: normal; max-height: 2.4em; overflow: hidden; }
  .pf-counter { font-size: 11px; letter-spacing: 0.14em; }
  .pf-close { width: 38px; height: 38px; }
  .pf-close svg { width: 16px; height: 16px; }
  .pf-nav {
    width: 42px; height: 42px;
    background: rgba(0,0,0,0.5);
  }
  .pf-nav svg { width: 20px; height: 20px; }
  .pf-nav--prev { left: 10px; }
  .pf-nav--next { right: 10px; }
  .pf-stage { padding: 72px 64px 24px; } /* leave room for arrows (10+42=52) + 12px gap */
  .pf-stage video, .pf-stage img { border-radius: 8px; max-width: 100%; }
}

/* ========================================
   INTRO LIGHTBOX (separate from portfolio)
   ======================================== */

/* Intro thumbnail card — static poster + big play overlay */
.video-card--cta {
  /* override <button> defaults */
  border: 0;
  padding: 0;
  cursor: pointer;
  background: var(--text-dark);
  font: inherit;
  -webkit-appearance: none;
}
.video-card--cta:focus-visible { outline: 3px solid var(--accent-red); outline-offset: 4px; }
.video-thumb-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.4s var(--ease), filter 0.4s var(--ease);
}
.video-card--cta:hover .video-thumb-img { transform: scale(1.04); filter: brightness(1.05); }
.video-card--cta .play-btn {
  /* re-style the static play SVG button to match what we had on Plyr */
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  width: 92px; height: 92px;
  border-radius: 50%;
  background: var(--accent-red);
  color: #fff;
  display: grid; place-items: center;
  box-shadow:
    0 24px 60px -16px rgba(46,91,255,0.65),
    0 0 0 8px rgba(46,91,255,0.15);
  transition: transform 0.4s var(--ease), background 0.3s var(--ease), box-shadow 0.4s var(--ease);
  z-index: 2;
  pointer-events: none;
}
.video-card--cta .play-btn svg { width: 32px; height: 32px; fill: currentColor; margin-left: 4px; }
.video-card--cta:hover .play-btn,
.video-card--cta:focus-visible .play-btn {
  background: var(--accent-coral);
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow:
    0 30px 80px -16px rgba(46,91,255,0.85),
    0 0 0 12px rgba(46,91,255,0.18);
}
@media (max-width: 720px) {
  .video-card--cta .play-btn { width: 72px; height: 72px; }
  .video-card--cta .play-btn svg { width: 26px; height: 26px; }
}

/* Modal */
.intro-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.intro-lightbox[data-open] { display: flex; }
.intro-backdrop { position: absolute; inset: 0; cursor: zoom-out; }

.intro-lb-head {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 28px;
  background: linear-gradient(180deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0) 100%);
  pointer-events: none;
}
.intro-lb-head > * { pointer-events: auto; }
.intro-lb-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.intro-lb-title {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.15;
  color: var(--text-light);
  margin: 0;
}
.intro-lb-title em {
  font-style: italic;
  color: var(--accent-red);
  font-weight: 700;
}
.intro-lb-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244,241,235,0.55);
}
.intro-lb-close {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(244,241,235,0.2);
  background: rgba(244,241,235,0.05);
  color: var(--text-light);
  cursor: pointer;
  display: grid; place-items: center;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.intro-lb-close svg { width: 20px; height: 20px; }
.intro-lb-close:hover { background: var(--accent-red); border-color: var(--accent-red); transform: scale(1.05); }
.intro-lb-close:focus-visible { outline: 2px solid var(--accent-red); outline-offset: 4px; }

.intro-lb-stage {
  position: relative;
  z-index: 1;
  width: 100vw;
  height: 100dvh;
  padding: 80px 80px 40px;
  box-sizing: border-box;
  display: flex; align-items: center; justify-content: center;
}
.intro-lb-stage .plyr,
.intro-lb-stage video {
  width: 100%; height: 100%;
  max-width: 1200px;
  max-height: 100%;
  border-radius: var(--r-md);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6);
  background: #000;
  display: block;
}
.intro-lb-stage video { object-fit: contain; }

body.intro-open { overflow: hidden; }

@media (max-width: 720px) {
  .intro-lb-head { padding: 16px 16px; gap: 10px; }
  .intro-lb-title { font-size: 16px; }
  .intro-lb-meta { font-size: 10px; letter-spacing: 0.14em; }
  .intro-lb-close { width: 38px; height: 38px; }
  .intro-lb-close svg { width: 16px; height: 16px; }
  .intro-lb-stage { padding: 72px 12px 24px; }
}
