/* ═══════════════════════════════════════════════════
   Sandesh Pandey — Liquid Glass portfolio
   Glassmorphism · dark aurora · interactive
   ═══════════════════════════════════════════════════ */

/* ─── Tokens ─────────────────────────────────────── */
:root {
  --bg:            #0d0a08;
  --bg-deep:       #070504;

  --text:          #f7efe6;
  --text-dim:      rgba(247, 239, 230, 0.66);
  --text-faint:    rgba(247, 239, 230, 0.42);

  /* glass surfaces */
  --glass:         rgba(255, 255, 255, 0.05);
  --glass-2:       rgba(255, 255, 255, 0.09);
  --glass-brd:     rgba(255, 230, 200, 0.14);
  --glass-brd-2:   rgba(255, 215, 170, 0.30);
  --glass-shadow:  0 18px 50px -12px rgba(0, 0, 0, 0.72);

  /* warm cinematic accents (gold · amber · ember) */
  --violet:        #f4c479;   /* gold (primary accent) */
  --sky:           #ffb059;   /* amber (eyebrows / links) */
  --teal:          #4ade80;   /* available dot / success only */
  --coral:         #ff6a3d;   /* ember */
  --accent:        var(--violet);

  --grad-accent:   linear-gradient(120deg, #ffd784 0%, #ff9d4d 55%, #ff6a3d 100%);
  --grad-warm:     linear-gradient(120deg, #ff6a3d 0%, #ffb347 100%);

  --radius:        24px;
  --radius-sm:     16px;
  --maxw:          1200px;
  --blur:          14px;

  --ease:          cubic-bezier(0.22, 1, 0.36, 1);
}

/* ─── Reset ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* Lenis drives smooth scroll; native smooth-scroll fights it → disable when active */
html.lenis-smooth { scroll-behavior: auto; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: 'Manrope', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }

::selection { background: rgba(255, 157, 77, 0.45); color: #fff; }

/* ─── Focus & skip link ──────────────────────────── */
:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 200;
  background: var(--accent); color: #fff;
  padding: 10px 18px; border-radius: 10px; font-weight: 600;
  transition: top .25s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ─── Atmosphere: aurora orbs + grain ────────────── */
.bg {
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(120% 95% at 78% 8%, #3a1d0c 0%, transparent 45%),
    radial-gradient(120% 90% at 50% -10%, #1c1209 0%, var(--bg) 55%, var(--bg-deep) 100%);
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  opacity: 0.55;
  will-change: transform;
}
.orb--1 { width: 46vw; height: 46vw; left: -10vw;  top: -8vw;
  background: radial-gradient(circle, rgba(255,157,77,0.65), transparent 70%);
  animation: drift1 22s var(--ease) infinite alternate; }
.orb--2 { width: 42vw; height: 42vw; right: -10vw;  top: 4vw;
  background: radial-gradient(circle, rgba(255,106,61,0.7), transparent 70%);
  animation: drift2 26s var(--ease) infinite alternate; }
.orb--3 { width: 38vw; height: 38vw; left: 8vw;    bottom: -12vw;
  background: radial-gradient(circle, rgba(244,196,121,0.5), transparent 70%);
  animation: drift3 30s var(--ease) infinite alternate; }
.orb--4 { width: 30vw; height: 30vw; right: 10vw;   bottom: 6vw;
  background: radial-gradient(circle, rgba(150,90,220,0.32), transparent 70%);
  animation: drift1 28s var(--ease) infinite alternate-reverse; }

@keyframes drift1 { to { transform: translate3d(8vw, 6vw, 0) scale(1.15); } }
@keyframes drift2 { to { transform: translate3d(-7vw, 9vw, 0) scale(1.1); } }
@keyframes drift3 { to { transform: translate3d(6vw, -7vw, 0) scale(1.2); } }

.bg__grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  opacity: 0.05; mix-blend-mode: overlay; pointer-events: none;
}

/* cursor glow */
.cursor-glow {
  position: fixed; top: 0; left: 0; z-index: -1;
  width: 480px; height: 480px; border-radius: 50%;
  margin: -240px 0 0 -240px; pointer-events: none;
  background: radial-gradient(circle, rgba(244,196,121,0.16), transparent 65%);
  opacity: 0; transition: opacity .4s var(--ease);
  will-change: transform;
}

/* ─── Glass primitive ────────────────────────────── */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
  backdrop-filter: blur(var(--blur)) saturate(160%);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255,255,255,0.10);
  border-radius: var(--radius);
}
/* fallback if no backdrop-filter */
@supports not (backdrop-filter: blur(2px)) {
  .glass { background: rgba(20, 14, 10, 0.85); }
}

/* ─── Buttons ────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 0.95rem;
  padding: 13px 22px; border-radius: 999px;
  min-height: 46px; cursor: pointer; border: 1px solid transparent;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
  white-space: nowrap;
}
.btn .icon { width: 18px; height: 18px; }
.btn--accent {
  background: var(--grad-accent); color: #2a1402;
  box-shadow: 0 8px 24px -6px rgba(255, 140, 70, 0.55);
}
.btn--accent:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -6px rgba(255,140,70,0.75); }
.btn--ghost {
  background: var(--glass); color: var(--text);
  border-color: var(--glass-brd);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--glass-brd-2); background: var(--glass-2); }

.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }

/* ─── Nav ────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px clamp(16px, 4vw, 40px) 0;
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; gap: 20px;
  padding: 10px 12px 10px 18px;
  border-radius: 999px;
}
.nav__brand { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.nav__avatar {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: 50% 45%;
  border: 1.5px solid var(--glass-brd-2);
  box-shadow: 0 4px 14px -4px rgba(255,140,70,0.55);
}
.nav__name { font-size: 0.98rem; letter-spacing: -0.01em; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a {
  padding: 8px 14px; border-radius: 999px; font-size: 0.92rem;
  color: var(--text-dim); transition: color .25s var(--ease), background .25s var(--ease);
}
.nav__links a:hover { color: var(--text); background: var(--glass-2); }
.nav__cta { margin-left: 4px; padding: 10px 18px; min-height: 40px; }
.nav__toggle { display: none; }

.nav__drawer { display: none; }

/* ─── Layout ─────────────────────────────────────── */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(60px, 9vw, 120px) clamp(16px, 4vw, 40px);
}
.section__head { margin-bottom: clamp(28px, 4vw, 48px); }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--sky);
  margin-bottom: 14px;
}
.section__title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 600; line-height: 1.02; letter-spacing: -0.025em;
  font-size: clamp(2rem, 5.5vw, 3.4rem);
}
.section__title em { color: var(--text); font-style: italic; }
.grad {
  background: var(--grad-accent);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ─── Hero ───────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  max-width: var(--maxw); margin: 0 auto;
  min-height: 100svh; display: flex; align-items: center;
  padding: clamp(120px, 15vh, 190px) clamp(16px, 4vw, 40px) clamp(50px, 7vw, 80px);
}
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-brd);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: 0.84rem; font-weight: 500; color: var(--text-dim);
}
.badge__dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--teal);
  box-shadow: 0 0 0 0 rgba(74,222,128,0.7); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74,222,128,0.6); }
  70% { box-shadow: 0 0 0 9px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}
.hero__title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 600; letter-spacing: -0.035em; line-height: 1.0;
  font-size: clamp(2.6rem, 7vw, 4.7rem);
  margin: 22px 0 24px;
}
.hero__title .line { display: block; }
.hero__title em { font-weight: 500; }
.hero__sub {
  font-size: clamp(1rem, 1.4vw, 1.18rem); color: var(--text-dim);
  max-width: 30em; margin-bottom: 30px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero__stats {
  display: flex; gap: clamp(20px, 4vw, 44px); list-style: none; flex-wrap: wrap;
}
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.9rem; font-weight: 700; line-height: 1;
  background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__stats span { font-size: 0.82rem; color: var(--text-faint); margin-top: 5px; }

/* hero glassy social buttons */
.hero__social { list-style: none; display: flex; gap: 12px; margin-top: 32px; }
.hero__social a {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
  background: var(--glass); border: 1px solid var(--glass-brd); color: var(--text-dim);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: transform .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.hero__social a:hover { color: #fff; transform: translateY(-3px); border-color: var(--glass-brd-2); background: rgba(255,140,70,0.18); }
.hero__social .icon { width: 20px; height: 20px; }

/* hero merged photo — bleeds into the canvas, no frame */
.hero__media {
  position: absolute; z-index: 1; top: 0; bottom: 0; right: 0;
  width: clamp(360px, 56%, 880px); pointer-events: none;
}
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 44%),
    linear-gradient(to bottom, transparent 0%, #000 16%, #000 80%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, #000 44%),
    linear-gradient(to bottom, transparent 0%, #000 16%, #000 80%, transparent 100%);
  mask-composite: intersect;
}
/* warm backlight bleeding behind the figure */
.hero::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  top: 8%; right: -4%; width: 52%; height: 76%;
  background: radial-gradient(circle, rgba(255,110,45,0.42), transparent 64%);
  filter: blur(50px);
}
.hero__text { position: relative; z-index: 2; max-width: 600px; }

/* ─── Cinematic full-bleed bands ─────────────────── */
.cinematic {
  position: relative; width: 100%; min-height: 72svh;
  display: flex; align-items: center; overflow: hidden;
  margin: clamp(24px, 5vw, 60px) 0;
}
.cinematic img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
}
.cinematic--closer img { object-position: 50% 40%; }
/* silhouette band: push the figure to the right, leave the left clear for text */
.cinematic:not(.cinematic--closer) img {
  left: auto; right: 0; width: min(72%, 820px);
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 40%),
    linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, #000 40%),
    linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-composite: intersect;
}
.cinematic::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, var(--bg) 2%, rgba(13,10,8,0.55) 40%, transparent 74%),
    linear-gradient(to bottom, var(--bg) 0%, transparent 16%, transparent 84%, var(--bg) 100%);
}
.cinematic__inner { max-width: var(--maxw); margin: 0 auto; width: 100%; padding: 0 clamp(16px, 4vw, 40px); }
.cinematic__quote {
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600;
  font-size: clamp(1.9rem, 4.6vw, 3.3rem); line-height: 1.08; letter-spacing: -0.025em;
  max-width: 15ch;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}
.cinematic__by { color: var(--text-dim); margin-top: 16px; font-size: 0.95rem; }
.cinematic__cta { margin-top: 26px; }

/* ─── Cards grid (Currently + Services) ──────────── */
.cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 20px);
}
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.card, .service { padding: clamp(22px, 2.4vw, 30px); position: relative; overflow: hidden; }

/* small brand-logo chip — uniform cream plate so mixed logos read as a set */
.card__brand {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 14px; margin-bottom: 18px;
  background: #f4ede1; border-radius: 12px; border: 1px solid rgba(0,0,0,0.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 8px 18px -12px rgba(0,0,0,0.7);
}
.card__brand img { height: 20px; width: auto; display: block; }

/* whole-card link affordance */
a.card { cursor: pointer; }
.card__go {
  position: absolute; top: 18px; right: 18px;
  color: var(--text-faint);
  transition: color .25s var(--ease), transform .25s var(--ease);
}
.card__go .icon { width: 18px; height: 18px; }
a.card:hover .card__go,
a.card:focus-visible .card__go { color: var(--accent); transform: translate(2px, -2px); }
.card__brand[data-logo="kr"] { padding: 0 8px; }
.card__brand[data-logo="kr"] img { height: 28px; border-radius: 6px; }
.card__brand[data-logo="un"] img { height: 22px; filter: brightness(0); opacity: 0.8; }
.card__tag {
  display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--sky);
  padding: 4px 10px; border-radius: 999px; background: rgba(255,176,89,0.12);
  margin-bottom: 16px;
}
.card__title { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.22rem; font-weight: 600; letter-spacing: -0.02em; }
.card__org { color: var(--text-dim); margin-top: 6px; font-size: 0.95rem; }
.card__date { color: var(--text-faint); font-size: 0.82rem; margin-top: 12px; }

.service__no {
  font-family: 'Bricolage Grotesque', sans-serif; font-size: 2.4rem; font-weight: 700;
  background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; color: transparent;
  display: block; line-height: 1; margin-bottom: 16px;
}
.service__title { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.4rem; font-weight: 600; letter-spacing: -0.02em; }
.service__desc { color: var(--text-dim); margin-top: 12px; font-size: 0.96rem; }

/* glow that follows the tilt */
.tilt { transition: transform .2s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); transform-style: preserve-3d; }
.tilt:hover { border-color: var(--glass-brd-2); box-shadow: var(--glass-shadow), 0 0 40px -10px rgba(244,196,121,0.5), inset 0 1px 0 rgba(255,255,255,0.14); }

/* ─── About ──────────────────────────────────────── */
.about { padding: clamp(28px, 4vw, 52px); }
.about__lead { font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.5; letter-spacing: -0.01em; }
.about__lead em, .about__body em { color: var(--sky); font-style: normal; font-weight: 600; }
.about__body { color: var(--text-dim); margin-top: 22px; max-width: 62ch; }
.dropcap {
  float: left; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700;
  font-size: 3.4rem; line-height: 0.8; padding: 6px 14px 0 0;
  background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ─── Selected work ──────────────────────────────── */
.work { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.work__item {
  display: grid; grid-template-columns: 130px 1fr; gap: clamp(16px, 3vw, 40px);
  padding: clamp(22px, 2.6vw, 32px);
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.work__item:hover {
  transform: translateX(6px);
  border-color: var(--glass-brd-2);
  box-shadow: var(--glass-shadow), 0 0 40px -14px rgba(255,176,89,0.5);
}
.work__year {
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600;
  font-size: 1.05rem; color: var(--sky); padding-top: 3px;
}
.work__head { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.28rem; font-weight: 600; letter-spacing: -0.02em; }
.work__head em { font-style: normal; }
.work__desc { color: var(--text-dim); margin-top: 10px; max-width: 58ch; font-size: 0.97rem; }

/* ─── Academics — education + honours card ────────── */
.honours { padding: clamp(24px, 3.4vw, 42px); max-width: 760px; }
.honours__eyebrow {
  display: block; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--sky); margin-bottom: 8px;
}

/* education feature */
.edu { display: flex; gap: 20px; align-items: center; }
.edu__crest {
  flex: none; width: 64px; height: 64px; border-radius: 16px;
  display: grid; place-items: center;
  background: #f4ede1; border: 1px solid rgba(0,0,0,0.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 8px 18px -12px rgba(0,0,0,0.7);
}
.edu__crest img { height: 42px; width: auto; display: block; }
.edu__name {
  font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.22rem;
  font-weight: 600; letter-spacing: -0.02em;
}
.edu__meta {
  color: var(--text-dim); font-size: 0.92rem; margin-top: 6px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
}
.edu__grade {
  font-weight: 600; color: var(--accent); font-size: 0.82rem;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(255,176,89,0.14); border: 1px solid var(--glass-brd);
}

/* divider with label between education and honours */
.honours__rule {
  display: flex; align-items: center; gap: 16px;
  margin: 26px 0 6px; color: var(--sky);
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
}
.honours__rule::after {
  content: ""; flex: 1; height: 1px; background: var(--glass-brd);
}

.honours__list { list-style: none; }
.honours__list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
  padding: 18px 0; border-bottom: 1px solid var(--glass-brd); flex-wrap: wrap;
}
.honours__list li:last-child { border-bottom: none; padding-bottom: 0; }
.honours__name { font-weight: 600; font-size: 1.05rem; }
.honours__note { color: var(--text-faint); font-size: 0.86rem; }

/* ─── Craft ──────────────────────────────────────── */
.craft { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 30px; }
.craft__group { display: flex; flex-direction: column; gap: 14px; }
.craft__label {
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--text-faint); font-weight: 600;
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 9px 16px; border-radius: 999px; font-size: 0.9rem; font-weight: 500;
  background: var(--glass-2); border: 1px solid var(--glass-brd); color: var(--text-dim);
  transition: transform .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.chip:hover { color: #fff; transform: translateY(-3px); border-color: var(--glass-brd-2);
  background: rgba(244,196,121,0.22); }

/* ─── Contact ────────────────────────────────────── */
.contact { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: clamp(16px, 2.5vw, 28px); align-items: start; }
.form { padding: clamp(26px, 3.5vw, 40px); display: flex; flex-direction: column; gap: 18px; }
.form__row { display: flex; flex-direction: column; gap: 8px; }
.form__label { font-size: 0.86rem; font-weight: 600; color: var(--text-dim); }
.form input, .form textarea {
  font: inherit; color: var(--text);
  background: rgba(255,255,255,0.04); border: 1px solid var(--glass-brd);
  border-radius: 12px; padding: 13px 16px; min-height: 48px; width: 100%;
  transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
  resize: vertical;
}
.form input::placeholder, .form textarea::placeholder { color: var(--text-faint); }
.form input:focus, .form textarea:focus {
  outline: none; border-color: var(--sky); background: rgba(255,255,255,0.07);
  box-shadow: 0 0 0 4px rgba(255,176,89,0.14);
}
.form__submit { align-self: flex-start; margin-top: 4px; }
.form__success, .form__error {
  display: none; font-size: 0.92rem; padding: 12px 16px; border-radius: 12px;
}
.form__success { background: rgba(74,222,128,0.12); border: 1px solid rgba(74,222,128,0.3); color: #8ff0e0; }
.form__success em { color: #fff; font-style: normal; font-weight: 600; }
.form__error { background: rgba(255,99,99,0.12); border: 1px solid rgba(255,99,99,0.32); color: #ffb3b3; }
.form__error a { color: #fff; text-decoration: underline; }
.form.is-sent .form__success { display: block; }
.form.is-sent .form__row, .form.is-sent .form__submit { display: none; }
.form.is-error .form__error { display: block; }

.contact__direct { padding: clamp(24px, 3vw, 34px); }
.contact__links { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.contact__links a {
  display: grid; grid-template-columns: 22px 1fr; grid-template-rows: auto auto;
  column-gap: 14px; align-items: center;
  padding: 14px 16px; border-radius: 14px;
  background: var(--glass-2); border: 1px solid var(--glass-brd);
  transition: transform .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.contact__links a:hover { transform: translateY(-2px); border-color: var(--glass-brd-2); background: rgba(244,196,121,0.16); }
.contact__links .icon { grid-row: span 2; width: 20px; height: 20px; color: var(--sky); }
.contact__type { font-weight: 600; font-size: 0.95rem; }
.contact__handle { font-size: 0.82rem; color: var(--text-faint); }

/* ─── Footer ─────────────────────────────────────── */
.footer { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px) 40px; }
.footer__inner {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 22px clamp(20px, 3vw, 34px); border-radius: var(--radius);
  font-size: 0.86rem; color: var(--text-faint);
}
.footer__top { color: var(--text-dim); font-weight: 600; transition: color .25s var(--ease); }
.footer__top:hover { color: #fff; }

/* ─── Reveal animation base ──────────────────────── */
[data-reveal] { opacity: 0; transform: translateY(28px); }

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 900px) {
  .hero {
    flex-direction: column; align-items: flex-start; justify-content: flex-end;
    min-height: auto; padding-top: clamp(92px, 13vh, 120px); gap: 6px;
  }
  .hero__media {
    position: relative; right: auto; width: 100%; height: clamp(280px, 46svh, 440px);
    order: -1; margin: 0 calc(-1 * clamp(16px, 4vw, 40px));
    width: calc(100% + 2 * clamp(16px, 4vw, 40px));
  }
  .hero__media img {
    object-position: 50% 12%;
    -webkit-mask-image: linear-gradient(to bottom, #000 52%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 52%, transparent 100%);
    -webkit-mask-composite: source-over; mask-composite: add;
  }
  .hero::after { top: 0; right: 0; width: 100%; height: 46%; }
  .hero__text { max-width: 100%; }
  .cinematic { min-height: 58svh; }
  .cinematic:not(.cinematic--closer) img {
    left: 0; right: 0; width: 100%;
    -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 58%, transparent 100%);
    -webkit-mask-composite: source-over; mask-composite: add;
  }
  .contact { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle {
    display: flex; flex-direction: column; gap: 5px; margin-left: auto;
    width: 44px; height: 44px; align-items: center; justify-content: center;
    background: var(--glass-2); border: 1px solid var(--glass-brd); border-radius: 12px; cursor: pointer;
  }
  .nav__toggle span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease); }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .nav__drawer {
    display: flex; flex-direction: column; gap: 6px;
    max-width: var(--maxw); margin: 10px auto 0; padding: 0 14px;
    max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height .4s var(--ease), opacity .3s var(--ease), padding .3s var(--ease);
  }
  .nav__drawer.open { max-height: 360px; opacity: 1; padding: 14px; }
  .nav__drawer a { padding: 13px 16px; border-radius: 12px; color: var(--text-dim); }
  .nav__drawer a:hover { background: var(--glass-2); color: #fff; }
  .nav__drawer .btn { justify-content: center; }

  .cards { grid-template-columns: 1fr; }
  .work__item { grid-template-columns: 1fr; gap: 8px; }
  .work__year { padding-top: 0; }
  .hero__stats { gap: 24px; }
  body { font-size: 16px; }

  /* Performance: cheaper glass + still aurora, but no constant GPU churn */
  :root { --blur: 9px; }
  .orb { animation: none; filter: blur(48px); opacity: 0.42; will-change: auto; }
  .bg__grain { display: none; }
}

@media (max-width: 420px) {
  .nav__name { display: none; }
}

/* ─── Reduced motion ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .orb { animation: none; }
  .badge__dot { animation: none; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .cursor-glow { display: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
