/* ============================================================
   Ilya Hack — Instructional Design Portfolio
   Shared stylesheet · light (beige) default + warm dark theme
   ============================================================ */

/* ---------- LIGHT / BEIGE (default) ---------- */
:root {
  --bg:        #f3ecdf;   /* warm sand */
  --bg-soft:   #eae0cf;
  --panel:     #fbf7ef;   /* cream card */
  --ink:       #2c2620;   /* espresso */
  --ink-soft:  #6a6053;
  --ink-dim:   #9a9082;
  --line:      #ddd1bd;

  --accent:        #b5673f;   /* terracotta · left course / primary */
  --accent-rgb:    181,103,63;
  --accent-2:      #6f7d5a;   /* sage olive · right course */
  --accent-2-rgb:  111,125,90;
  --accent-warm:   #c79a4e;   /* antique gold · inline CTAs */

  --btn-ink:   #fbf7ef;       /* text on accent buttons */

  --maxw: 1040px;
  --radius: 16px;
  --shadow: 0 18px 50px rgba(60,40,20,.18);
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Montserrat", system-ui, sans-serif;
}

/* ---------- WARM DARK ---------- */
[data-theme="dark"] {
  --bg:        #1b1813;
  --bg-soft:   #221e18;
  --panel:     #2a241d;
  --ink:       #f1eadd;
  --ink-soft:  #c1b6a4;
  --ink-dim:   #877d6e;
  --line:      #392f25;

  --accent:        #d4b06a;   /* champagne gold */
  --accent-rgb:    212,176,106;
  --accent-2:      #9fae7b;
  --accent-2-rgb:  159,174,123;
  --accent-warm:   #ecdcab;   /* pale champagne (gradient highlight) */

  --btn-ink:   #211a10;
  --shadow: 0 18px 50px rgba(0,0,0,.5);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background .4s ease, color .4s ease;
}
a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; display: block; }
h1,h2,h3 { line-height: 1.15; margin: 0 0 .4em; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .18em; font-size: .72rem;
  font-weight: 600; color: var(--accent); margin-bottom: 1rem;
}

/* ---------- Top nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.nav .brand img { height: 30px; width: auto; }
.nav .links { display: flex; align-items: center; gap: 22px; }
.nav .links a { color: var(--ink-soft); font-size: .92rem; font-weight: 500; }
.nav .links a:hover { color: var(--ink); }

/* theme toggle button */
.theme-toggle {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--panel); border: 1px solid var(--line);
  color: var(--ink-soft); cursor: pointer; font-size: 1rem;
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.theme-toggle .moon { display: none; }
.theme-toggle .sun  { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: block; }
[data-theme="dark"] .theme-toggle .sun  { display: none; }

/* ============================================================
   HERO  (typewriter)
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  min-height: min(calc(100vh - 64px), 860px);
  display: flex; align-items: center;
  background:
    radial-gradient(1200px 720px at 80% -8%, rgba(var(--accent-rgb),.24), transparent 60%),
    radial-gradient(900px 600px at 6% 118%, rgba(var(--accent-2-rgb),.14), transparent 55%);
}
/* large faint rotating ring behind the whole hero */
.hero-ring {
  position: absolute; z-index: 0; pointer-events: none;
  width: 78vmax; height: 78vmax; top: 46%; left: 64%;
  transform: translate(-50%,-50%) rotate(var(--spin, 0deg));
  background: url("../assets/circles.svg") center/contain no-repeat;
  opacity: .05;
}
.hero .wrap { width: 100%; position: relative; z-index: 2; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 40px; align-items: center;
}
.hero-text { min-width: 0; }

/* kicker line */
.hero-kicker {
  display: inline-flex; align-items: center; gap: 14px;
  text-transform: uppercase; letter-spacing: .3em; font-size: .72rem; font-weight: 600;
  color: var(--accent); margin-bottom: 24px;
  opacity: 0; transform: translateY(14px); animation: heroIn .8s ease .15s forwards;
}
.hero-kicker::before { content: ""; width: 40px; height: 1px; background: var(--accent); }

.hero h1 {
  font-size: clamp(2.3rem, 5.6vw, 4.4rem);
  margin: 0; line-height: 1.08; font-weight: 800; letter-spacing: -.02em;
  min-height: 2.2em;          /* reserve space for two lines so layout doesn't jump */
}
.type-line { color: var(--ink); }
.type-accent {
  background: linear-gradient(100deg, var(--accent), var(--accent-warm));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--accent);
}
.cursor {
  display: inline-block; width: 3px; margin-left: 4px;
  background: var(--accent); animation: blink 1s steps(1) infinite;
  vertical-align: -0.1em; -webkit-text-fill-color: initial;
}
@keyframes blink { 50% { opacity: 0; } }

.hero .sub {
  font-size: clamp(1rem, 2.1vw, 1.28rem);
  color: var(--ink-soft); max-width: 600px; margin-top: 1.4rem;
  opacity: 0; transform: translateY(12px);
  transition: opacity .7s ease, transform .7s ease;
}
.hero .sub.show { opacity: 1; transform: none; }

.hero-cta {
  display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px;
  opacity: 0; transform: translateY(14px); animation: heroIn .8s ease .5s forwards;
}

/* floating portrait with rotating circle ring behind */
.hero-photo { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-photo .ring {
  position: absolute; z-index: 0; width: 118%; height: 118%; pointer-events: none;
  background: url("../assets/circles.svg") center/contain no-repeat;
  opacity: .16; transform: rotate(var(--spin, 0deg));
}
.hero-photo::before {
  content: ""; position: absolute; z-index: 0; inset: 4% 6% -2% 6%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--accent-rgb),.32), transparent 72%);
  filter: blur(12px);
}
/* foundation: a soft pedestal the portrait rests on so it never floats */
.hero-photo .base {
  position: absolute; z-index: 0; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 90%; height: 58%;
  border-radius: 28px 28px 22px 22px;
  background:
    linear-gradient(180deg, rgba(var(--accent-rgb),.16), transparent 55%),
    color-mix(in srgb, var(--accent) 6%, var(--panel));
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  box-shadow: 0 34px 70px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.05);
}
.hero-photo .base::after {
  content: ""; position: absolute; left: 50%; bottom: -13px; transform: translateX(-50%);
  width: 60%; height: 24px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.45), transparent 72%);
  filter: blur(9px);
}
.hero-photo img {
  position: relative; z-index: 1; width: 100%; max-width: 470px; height: auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.4));
}
@keyframes heroIn { to { opacity: 1; transform: none; } }

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  color: var(--ink-dim); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  opacity: 0; transition: opacity .8s ease .3s; z-index: 2;
}
.scroll-hint.show { opacity: 1; }
.scroll-hint::after { content: ""; display:block; width:1px; height:34px; margin:10px auto 0;
  background: linear-gradient(var(--ink-dim), transparent); animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 0%,100%{ transform: translateY(0); opacity:.4 } 50%{ transform: translateY(6px); opacity:1 } }

/* reusable scattered circle decoration (rotates on scroll) */
.deco-circle {
  position: absolute; pointer-events: none; z-index: 0;
  background: url("../assets/circles.svg") center/contain no-repeat;
  opacity: .06; transform: rotate(var(--spin, 0deg));
}
.deco-circle.reverse { transform: rotate(calc(var(--spin, 0deg) * -1)); }
/* soft blurred glow blob for manual placement */
.glow {
  position: absolute; z-index: 0; border-radius: 50%; pointer-events: none;
  filter: blur(80px); opacity: .8;
}
@media (prefers-reduced-motion: reduce) {
  .hero-photo img { animation: none; }
}

/* ============================================================
   SPLIT — two interactive course panels
   ============================================================ */
.split-intro { text-align: center; padding: 46px 0 22px; }
.split-intro h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.split-intro p { color: var(--ink-soft); max-width: 620px; margin: 0 auto; }

.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  max-width: var(--maxw); margin: 22px auto 0; padding: 0 24px;
}
.panel {
  position: relative; overflow: hidden;
  padding: 40px 40px; min-height: 380px;
  display: flex; flex-direction: column; justify-content: center;
  background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: background .5s ease, border-color .5s ease, transform .3s ease;
}
.panel:hover { transform: translateY(-4px); border-color: var(--accent); }
.panel::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(var(--accent-rgb), 1); opacity: 0;
  transition: opacity .5s ease; mix-blend-mode: soft-light; pointer-events: none;
}
.panel.right::before { background: rgba(var(--accent-2-rgb), 1); }
.panel:hover::before { opacity: .22; }
.panel:hover { background: var(--panel); }
.panel.right:hover { border-color: var(--accent-2); }

.panel .tag {
  align-self: flex-start;
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 22px;
  border: 1px solid var(--accent); color: var(--accent);
}
.panel.right .tag { border-color: var(--accent-2); color: var(--accent-2); }

.panel h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  max-width: 14ch;
  transform: translateY(8px); transition: transform .5s ease;
}
.panel:hover h3 { transform: translateY(0); }
.panel .blurb {
  color: var(--ink-soft); max-width: 46ch;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .55s ease, opacity .45s ease, margin .45s ease;
}
.panel:hover .blurb { max-height: 240px; opacity: 1; margin-top: .4rem; }

.tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 26px; }
.tools span {
  font-size: .76rem; color: var(--ink-soft);
  padding: 5px 11px; border-radius: 8px;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  border: 1px solid var(--line);
}

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  align-self: flex-start;
  padding: 13px 24px; border-radius: 10px; font-weight: 600; font-size: .95rem;
  background: var(--accent); color: var(--btn-ink); border: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(var(--accent-rgb),.38); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.panel.right .btn { background: var(--accent-2); }
.panel.right .btn:hover { box-shadow: 0 10px 24px rgba(var(--accent-2-rgb),.38); }

.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--accent); box-shadow: none; }
.btn.warm { background: var(--accent-warm); color: #3a2a08; }
.btn.warm:hover { box-shadow: 0 10px 24px rgba(199,154,78,.4); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative; overflow: hidden;
  border-top: 1px solid var(--line); margin-top: 0;
  padding: 50px 0; color: var(--ink-dim); font-size: .9rem;
  background: radial-gradient(700px 300px at 50% 140%, rgba(var(--accent-rgb),.10), transparent 70%);
}
.footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; position: relative; z-index: 1; }
.footer a { color: var(--ink-soft); }
.footer::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: 220px; height: 220px; right: -60px; top: -70px;
  background: url("../assets/circles.svg") center/contain no-repeat; opacity: .05;
  transform: rotate(var(--spin, 0deg));
}

/* ============================================================
   PROJECT (case-study) PAGES
   ============================================================ */
.proj-hero {
  position: relative; overflow: hidden;
  padding: 52px 0 42px;
  background:
    radial-gradient(900px 460px at 85% -20%, rgba(var(--accent-rgb),.20), transparent 60%),
    radial-gradient(700px 400px at 5% 120%, rgba(var(--accent-rgb),.10), transparent 60%);
  border-bottom: 1px solid var(--line);
}
.proj-hero.green {
  background:
    radial-gradient(900px 460px at 85% -20%, rgba(var(--accent-2-rgb),.22), transparent 60%),
    radial-gradient(700px 400px at 5% 120%, rgba(var(--accent-2-rgb),.12), transparent 60%);
}
.proj-hero .wrap { position: relative; z-index: 1; }
.proj-hero::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: 300px; height: 300px; right: -80px; bottom: -110px;
  background: url("../assets/circles.svg") center/contain no-repeat; opacity: .06;
  transform: rotate(var(--spin, 0deg));
}
.back-link { color: var(--ink-soft); font-size: .9rem; display: inline-block; margin-bottom: 26px; }
.back-link:hover { color: var(--ink); }
.proj-hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); max-width: 16ch; }
.proj-hero .lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }

.meta-row { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 34px; }
.meta-row .meta h4 { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-dim); margin: 0 0 6px; }
.meta-row .meta p { margin: 0; color: var(--ink); font-weight: 500; }

.cta-bar { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.section { padding: 46px 0; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.section .wrap, .split-intro .wrap { position: relative; z-index: 1; }
/* automatic soft glow on every section */
.section::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: 560px; height: 560px; top: -180px; right: -140px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--accent-rgb),.11), transparent 70%);
  filter: blur(30px);
}
/* automatic rotating circle deco on every section */
.section::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: 230px; height: 230px; left: -66px; bottom: -66px;
  background: url("../assets/circles.svg") center/contain no-repeat; opacity: .05;
  transform: rotate(var(--spin, 0deg));
}
.section:nth-of-type(even)::before {
  left: -140px; right: auto;
  background: radial-gradient(closest-side, rgba(var(--accent-2-rgb),.11), transparent 70%);
}
.section:nth-of-type(even)::after { right: -66px; left: auto; }
.section .wrap { max-width: var(--maxw); }
.section h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.section h3 { font-size: 1.2rem; margin-top: 1.6em; color: var(--ink); }
.section ul { padding-left: 1.2em; color: var(--ink-soft); max-width: 68ch; }
.section li { margin-bottom: .5em; }
.section p { color: var(--ink-soft); max-width: 68ch; }
/* keep case-study prose readable while the container stays uniform width */
.section .lede { max-width: 68ch; }

/* pull quote */
.pullquote {
  font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 600;
  line-height: 1.35; color: var(--ink); border-left: 3px solid var(--accent);
  padding: 4px 0 4px 24px; margin: 30px 0; font-style: italic;
}
.green .pullquote { border-left-color: var(--accent-2); }

/* process steps */
.steps { display: grid; gap: 18px; margin-top: 26px; }
.step {
  display: grid; grid-template-columns: 46px 1fr; gap: 18px; align-items: start;
  padding: 22px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel);
}
.step .num {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 700; font-size: .9rem; letter-spacing: .01em;
  background: rgba(var(--accent-rgb),.16); color: var(--accent);
}
.green .step .num, .step.green .num { background: rgba(var(--accent-2-rgb),.18); color: var(--accent-2); }
.step h3 { margin: 0 0 .3em; font-size: 1.05rem; }
.step p { margin: 0 0 .6em; font-size: .95rem; }
.step p:last-child { margin-bottom: 0; }

/* results stat cards */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 18px; margin-top: 26px; }
.stat { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.stat .big { font-size: 2.2rem; font-weight: 800; color: var(--accent); }
.green .stat .big { color: var(--accent-2); }
.stat .label { color: var(--ink-soft); font-size: .9rem; }

/* design-process snapshot gallery */
.gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px; margin-top: 28px;
}
.gallery figure {
  margin: 0; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--panel);
  transition: transform .3s ease, border-color .3s ease;
}
.gallery figure:hover { transform: translateY(-4px); border-color: var(--accent-2); }
.gallery img { width: 100%; display: block; border-bottom: 1px solid var(--line); }
.gallery figcaption { padding: 12px 16px; font-size: .85rem; color: var(--ink-soft); line-height: 1.5; }
.gallery figcaption strong { color: var(--ink); }

/* module grid */
.modules { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 16px; margin-top: 26px; }
.module-card {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 22px;
  transition: border-color .3s ease, transform .3s ease;
}
.module-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.module-card .mnum { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.module-card h3 { margin: 8px 0 6px; font-size: 1.05rem; }
.module-card p { font-size: .9rem; color: var(--ink-soft); margin: 0 0 12px; }
.module-card .fmt { display: flex; flex-wrap: wrap; gap: 6px; }
.module-card .fmt span {
  font-size: .66rem; padding: 3px 8px; border-radius: 6px; color: var(--ink-soft);
  background: color-mix(in srgb, var(--ink) 6%, transparent); border: 1px solid var(--line);
}

/* before / after comparison */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
.ba .col { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 22px; }
.ba .after { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.ba .lbl { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; margin-bottom: 10px; }
.ba .before .lbl { color: var(--ink-dim); }
.ba .after .lbl { color: var(--accent); }
.ba h4 { margin: 0 0 8px; font-size: 1rem; color: var(--ink); }
.ba p { font-size: .9rem; color: var(--ink-soft); margin: 0 0 .6em; }
.ba p:last-child { margin-bottom: 0; }
@media (max-width: 720px) { .ba { grid-template-columns: 1fr; } }

/* ============================================================
   VIDEO PORTFOLIO
   ============================================================ */
.player {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--line); background: #000;
}
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-thumb { position: absolute; inset: 0; cursor: pointer; }
.yt-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease, opacity .3s ease; }
.yt-thumb:hover img { transform: scale(1.04); opacity: .85; }
.yt-thumb::after {
  content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 74px; height: 52px; border-radius: 14px;
  background: rgba(20,16,10,.72) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23d4b06a'><path d='M8 5v14l11-7z'/></svg>") center/26px no-repeat;
  border: 1px solid rgba(212,176,106,.55);
  transition: transform .25s ease, background-color .25s ease;
}
.yt-thumb:hover::after { transform: translate(-50%,-50%) scale(1.1); }

.reel { max-width: 860px; margin: 26px auto 0; }
.reel .player { box-shadow: 0 30px 70px rgba(0,0,0,.5); }

/* ---- hero reel: the showreel front and center ---- */
.hero-grid-reel { grid-template-columns: .9fr 1.1fr; gap: 48px; }
.hero-reel { position: relative; perspective: 1400px; }
.hero-reel::before {
  content: ""; position: absolute; inset: -12% -8%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(var(--accent-rgb),.26), transparent 72%);
  filter: blur(30px); z-index: 0;
}
.hero-reel .player {
  position: relative; z-index: 1;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: 0 40px 90px rgba(0,0,0,.55), 0 0 0 6px rgba(var(--accent-rgb),.07);
  transform: rotateY(-7deg) rotateX(2deg);
  transition: transform .6s cubic-bezier(.2,.8,.2,1), box-shadow .6s ease;
}
.hero-reel:hover .player,
.hero-reel .player:has(iframe) {
  transform: rotateY(0deg) rotateX(0deg);
  box-shadow: 0 30px 70px rgba(0,0,0,.5), 0 0 0 6px rgba(var(--accent-rgb),.12);
}
.reel-caption {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 9px; justify-content: center;
  margin-top: 16px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 600; color: var(--ink-soft);
}
.rec-dot {
  width: 9px; height: 9px; border-radius: 50%; background: #e5484d;
  box-shadow: 0 0 8px rgba(229,72,77,.8); animation: recblink 1.6s ease-in-out infinite;
}
@keyframes recblink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

/* ---- about section with portrait ---- */
.about-grid { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: center; }
.about-photo img { max-width: 340px; }

/* filter chips */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 26px 0 6px; }
.filter-chip {
  font-family: var(--font); font-size: .8rem; font-weight: 600; letter-spacing: .06em;
  padding: 9px 18px; border-radius: 999px; cursor: pointer;
  color: var(--ink-soft); background: transparent; border: 1px solid var(--line);
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.filter-chip:hover { color: var(--ink); border-color: var(--accent); }
.filter-chip.active { color: var(--btn-ink); background: var(--accent); border-color: var(--accent); }

/* video grid */
.video-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px; margin-top: 22px;
}
.video-card {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--panel); transition: transform .3s ease, border-color .3s ease;
}
.video-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.video-card .player { border: 0; border-radius: 0; border-bottom: 1px solid var(--line); }
.video-card .vc-meta { padding: 14px 16px; }
.video-card .vc-tag {
  font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
  color: var(--accent);
}
.video-card h3 { margin: 4px 0 0; font-size: .98rem; line-height: 1.35; }

/* contact form */
.contact-form { max-width: 640px; margin-top: 24px; display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label {
  display: grid; gap: 6px; font-size: .72rem; font-weight: 600; color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: .1em;
}
.contact-form input, .contact-form textarea {
  font-family: var(--font); font-size: 1rem; color: var(--ink); background: var(--panel);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%;
  transition: border-color .2s ease; resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form input::placeholder, .contact-form textarea::placeholder {
  color: var(--ink-dim); text-transform: none; letter-spacing: 0;
}
.contact-form button { align-self: flex-start; margin-top: 4px; }
.form-status { padding: 12px 16px; border-radius: 10px; font-size: .92rem; margin-top: 20px; }
.form-status.ok  { background: rgba(var(--accent-2-rgb),.15); border: 1px solid var(--accent-2); color: var(--ink); }
.form-status.err { background: rgba(192,96,63,.18); border: 1px solid #c0603f; color: var(--ink); }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }

/* media frame */
.frame {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--panel); margin-top: 24px;
}
.frame video, .frame img { width: 100%; display: block; }
.frame .caption { padding: 12px 18px; color: var(--ink-dim); font-size: .85rem; border-top: 1px solid var(--line); }

/* ---------- EDITABLE PLACEHOLDER blocks (for Ilya to fill in) ---------- */
.editable {
  border: 1px dashed color-mix(in srgb, var(--accent-warm) 60%, var(--line));
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent-warm) 8%, transparent);
  padding: 20px 22px; margin: 16px 0; color: var(--ink-soft);
}
.editable::before {
  content: "✏️ EDIT ME"; display: block;
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: color-mix(in srgb, var(--accent-warm) 70%, var(--ink)); font-weight: 700; margin-bottom: 8px;
}
.editable p:last-child { margin-bottom: 0; }

/* inline "experience the project" buttons inside body copy */
.inline-cta {
  display: inline-flex; align-items: center; gap: 8px; vertical-align: middle;
  padding: 7px 15px; border-radius: 8px; font-size: .85rem; font-weight: 600;
  background: var(--accent-warm); color: #3a2a08; margin: 2px 0;
  transition: transform .2s ease;
}
.inline-cta:hover { transform: translateY(-1px); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 820px) {
  .hero { min-height: 0; padding: 40px 0 48px; }
  .scroll-hint { display: none; }   /* pinned to hero bottom; overlaps CTAs on small screens */
  .hero-grid { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .hero-photo { order: -1; }
  .hero-photo img { max-width: 250px; }
  .hero .sub { margin-left: auto; margin-right: auto; }
  .hero-kicker, .hero-cta { justify-content: center; }
  .hero-grid-reel { grid-template-columns: 1fr; }
  .hero-reel { order: -1; max-width: 560px; margin: 0 auto; width: 100%; }
  .hero-reel .player { transform: none; }
  .about-grid { grid-template-columns: 1fr; text-align: center; }
  .about-photo img { max-width: 240px; }
  .split { grid-template-columns: 1fr; }
  .panel { min-height: 0; }
  .panel .blurb { max-height: none; opacity: 1; margin-top: .4rem; }
  .panel h3 { transform: none; }
  .nav .links { gap: 14px; }
  .nav .links a:not(.btn):not(.theme-toggle) { display: none; }
}
