/* =========================================================
   MUTHU PANDI — PORTFOLIO
   Dark crimson · 3D glass · motion-first
   ========================================================= */

:root {
  /* Colour */
  --bg: #050505;
  --bg-2: #0b0b0d;
  --ink: #f4f1ee;
  --ink-dim: rgba(244, 241, 238, .64);
  --ink-faint: rgba(244, 241, 238, .4);
  --red: #ff2b2b;
  --red-2: #e3141c;
  --red-deep: #5a0608;
  --red-glow: rgba(255, 40, 30, .55);
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);

  /* Type */
  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Layout */
  --pad: clamp(16px, 3.2vw, 44px);
  --max: 1320px;
  --radius: clamp(20px, 2.2vw, 30px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

main, .footer { position: relative; z-index: 1; }
main { overflow-x: clip; }

/* ---------- Small shared pieces ---------- */
.wide { font-stretch: 125%; }

.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11px; font-weight: 800; font-stretch: 125%;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
}
.kicker::before {
  content: ""; width: 26px; height: 1.5px; background: var(--red);
  box-shadow: 0 0 10px var(--red);
}

.label {
  font-size: 10.5px; font-weight: 700; font-stretch: 125%;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 12px;
}

.pulse {
  position: relative; display: inline-block; flex: none;
  width: 8px; height: 8px; border-radius: 50%;
  background: #35e07a; box-shadow: 0 0 10px #35e07a;
  vertical-align: middle;
}
.pulse::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid #35e07a; opacity: 0;
  animation: pulse 2.2s var(--ease) infinite;
}
@keyframes pulse { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(2.2); opacity: 0; } }

/* ---------- Glass ---------- */
.glass {
  position: relative;
  border-radius: var(--radius);
  background:
    linear-gradient(155deg, rgba(255,255,255,.075) 0%, rgba(255,255,255,.018) 38%, rgba(255,255,255,.01) 60%, rgba(255,255,255,.04) 100%),
    rgba(14, 14, 16, .55);
  border: 1px solid rgba(255, 255, 255, .06);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.16),
    inset 0 -24px 48px rgba(0,0,0,.35),
    0 40px 80px -40px rgba(0,0,0,.9);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  --mx: 50%; --my: 50%;
}
/* bevelled glass edge */
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.2px;
  background: linear-gradient(140deg, rgba(255,255,255,.55), rgba(255,255,255,.06) 26%, rgba(255,255,255,0) 55%, rgba(255,70,50,.28) 85%, rgba(255,255,255,.2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}
/* cursor glare */
.glass[data-tilt]::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255,255,255,.1), rgba(255,60,40,.06) 30%, transparent 60%);
  opacity: 0; transition: opacity .5s var(--ease);
}
.glass[data-tilt]:hover::after { opacity: 1; }
[data-tilt] { transform-style: preserve-3d; will-change: transform; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 28px; border-radius: 999px;
  font-size: 11.5px; font-weight: 800; font-stretch: 125%;
  letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  color: #fff;
  background: linear-gradient(180deg, #3b3b42 0%, #1a1a1f 46%, #0c0c0f 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.42),
    inset 0 -3px 6px rgba(0,0,0,.65),
    inset 0 0 0 1px rgba(255,255,255,.1),
    0 12px 30px -12px rgba(0,0,0,.95);
  transition: box-shadow .5s var(--ease), filter .4s var(--ease);
}
.btn::before { /* gloss */
  content: ""; position: absolute; z-index: -1; left: 9%; right: 9%; top: 3px; height: 46%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.26), rgba(255,255,255,0));
  pointer-events: none;
}
.btn:hover { filter: brightness(1.18); }
.btn--glow {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.42),
    inset 0 -3px 6px rgba(0,0,0,.65),
    inset 0 0 0 1px rgba(255,255,255,.1),
    0 0 0 1.5px rgba(255, 80, 70, .6),
    0 0 22px rgba(255, 40, 40, .55),
    0 0 60px -6px rgba(255, 30, 20, .55);
}
.btn--glow:hover {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.5),
    inset 0 -3px 6px rgba(0,0,0,.6),
    inset 0 0 0 1px rgba(255,255,255,.14),
    0 0 0 1.5px rgba(255, 90, 80, .85),
    0 0 30px rgba(255, 40, 40, .8),
    0 0 90px -4px rgba(255, 30, 20, .7);
}
.btn--red {
  background: linear-gradient(180deg, #ff6157 0%, #ef1d26 50%, #b30c14 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.5),
    inset 0 -2px 5px rgba(80,0,0,.45),
    0 0 0 1px rgba(255,90,80,.6),
    0 8px 26px -6px rgba(255,30,30,.75);
}
.btn--sm { height: 36px; padding: 0 18px; font-size: 10px; }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 7px 13px; border-radius: 999px;
  font-size: 11px; font-weight: 600; font-stretch: 112%; letter-spacing: .02em;
  color: var(--ink-dim);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  transition: color .3s, border-color .3s, background .3s, box-shadow .3s;
}
.chips li:hover { color: #fff; border-color: rgba(255,70,60,.55); background: rgba(255,40,30,.12); box-shadow: 0 0 18px -4px var(--red-glow); }
.chips--lg li { padding: 10px 16px; font-size: 12.5px; }

/* Brand icons: SVG sprite injected by js/icons.js */
.ico { width: 1.3em; height: 1.3em; flex: none; }
.chips--ico li { display: flex; align-items: center; gap: .6em; padding-left: 12px; }
.chips--ico .ico { filter: drop-shadow(0 0 6px rgba(255,255,255,.08)); transition: transform .3s var(--ease, ease); }
.chips--ico li:hover .ico { transform: scale(1.15); }
.tape .ico { display: inline-block; width: .82em; height: .82em; margin-right: .32em; vertical-align: -.06em; }

/* =========================================================
   LOADER
   ========================================================= */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background:
    radial-gradient(60% 50% at 50% 110%, rgba(255,30,20,.28), transparent 70%),
    #050505;
  clip-path: inset(0 0 0 0);
}
.loader__inner { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.loader__photo {
  position: relative; width: clamp(120px, 15vw, 168px); aspect-ratio: 1; margin-bottom: 6px;
  animation: loaderIn 1.1s var(--ease) backwards; /* backwards: lets GSAP fade it out afterwards */
}
.loader__ring { /* spinning red arc around the photo */
  position: absolute; inset: -9px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 55%, rgba(255,60,40,.18) 66%, #ff3b2b 93%, #fff 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
  animation: loaderSpin 1.4s linear infinite;
}
.loader__face {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 50% 78%, rgba(255,50,30,.65), rgba(120,8,10,.35) 46%, #0b0b0d 78%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 0 60px rgba(255,40,30,.35);
}
.loader__face img {
  position: absolute; left: 50%; bottom: -2%; width: 94%; max-width: none; height: auto;
  transform: translateX(-50%);
  filter: drop-shadow(0 0 6px rgba(255,40,20,.8));
}
@keyframes loaderIn { from { opacity: 0; transform: scale(.82); } to { opacity: 1; transform: none; } }
@keyframes loaderSpin { to { transform: rotate(360deg); } }
.loader__logo { font-size: clamp(18px, 2vw, 24px); font-weight: 900; font-stretch: 125%; letter-spacing: .04em; white-space: nowrap; }
.loader__logo span { color: var(--red); text-shadow: 0 0 14px var(--red-glow); }
.loader__num {
  font-size: clamp(72px, 14vw, 180px); font-weight: 900; font-stretch: 125%; line-height: .9;
  letter-spacing: -.04em; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff 30%, #ff3b2b 140%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 30px rgba(255,40,30,.35));
}
.loader__bar { width: min(260px, 60vw); height: 2px; background: rgba(255,255,255,.08); border-radius: 2px; overflow: hidden; }
.loader__bar span { display: block; height: 100%; background: var(--red); box-shadow: 0 0 12px var(--red); transform: scaleX(0); transform-origin: 0 50%; }
.loader__txt { font-size: 10.5px; font-weight: 700; font-stretch: 125%; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-faint); }
.loader__txt b { color: var(--red); }

/* =========================================================
   AMBIENT: embers + cursor
   ========================================================= */
.embers { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

.cursor { display: none; }
.has-cursor .cursor {
  display: block; position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none;
}
.cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; border-radius: 50%; }
.cursor__dot {
  width: 6px; height: 6px; margin: -3px 0 0 -3px;
  background: var(--red); box-shadow: 0 0 10px var(--red), 0 0 22px var(--red);
}
.cursor__ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1px solid rgba(255,255,255,.35);
  display: grid; place-items: center;
  transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background .45s var(--ease), border-color .45s var(--ease);
}
.cursor__label { font-size: 10px; font-weight: 800; font-stretch: 125%; letter-spacing: .12em; text-transform: uppercase; opacity: 0; transition: opacity .3s; }
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: rgba(255,70,60,.8); background: rgba(255,40,30,.08); }
.cursor.has-label .cursor__ring { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--red); border-color: var(--red); box-shadow: 0 0 40px var(--red-glow); }
.cursor.has-label .cursor__label { opacity: 1; }
.cursor.has-label .cursor__dot { opacity: 0; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; z-index: 100; top: 14px; left: 50%;
  width: min(1180px, calc(100% - 40px));
  transform: translateX(-50%);
}
.nav__pill {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  height: 60px; padding: 0 12px 0 26px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(34,34,38,.72), rgba(10,10,12,.78));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), inset 0 -10px 20px rgba(0,0,0,.35), 0 24px 60px -24px rgba(0,0,0,.95);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
}
.nav__logo { font-size: 19px; font-weight: 900; font-stretch: 125%; letter-spacing: -.02em; line-height: 1; white-space: nowrap; }
.nav__logo span { color: var(--red); text-shadow: 0 0 14px var(--red-glow); }
.nav__logo i { color: var(--red); font-style: normal; }
.nav__links { display: flex; gap: clamp(18px, 3vw, 40px); }
.nav__links a {
  position: relative; padding: 6px 0;
  font-size: 10.5px; font-weight: 800; font-stretch: 125%; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.72); transition: color .3s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; border-radius: 2px;
  background: var(--red); box-shadow: 0 0 8px var(--red);
  transform: scaleX(0); transition: transform .5s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: #fff; }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__burger { display: none; width: 40px; height: 40px; border-radius: 12px; position: relative; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.nav__burger i { position: absolute; left: 12px; right: 12px; height: 1.5px; background: #fff; transition: transform .5s var(--ease), top .5s var(--ease); }
.nav__burger i:first-child { top: 16px; }
.nav__burger i:last-child { top: 23px; }
.menu-open .nav__burger i:first-child { top: 19.5px; transform: rotate(45deg); }
.menu-open .nav__burger i:last-child { top: 19.5px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; justify-content: center; gap: 48px;
  padding: 110px 28px 40px;
  background: radial-gradient(80% 60% at 80% 100%, rgba(255,30,20,.25), transparent 70%), rgba(6,6,7,.92);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .8s var(--ease), visibility 0s linear .8s;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .8s var(--ease); }
.menu__links { display: flex; flex-direction: column; gap: 6px; }
.menu__links a { display: flex; align-items: baseline; gap: 14px; font-size: clamp(38px, 11vw, 64px); font-weight: 900; font-stretch: 125%; line-height: 1.05; text-transform: uppercase; letter-spacing: -.03em; }
.menu__links small { font-size: 11px; color: var(--red); font-weight: 700; letter-spacing: .1em; }
.menu__foot { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 12px; font-weight: 700; font-stretch: 125%; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-dim); }

/* =========================================================
   HERO — 3D glass
   ========================================================= */
.hero {
  position: relative;
  height: 100vh; height: 100svh; min-height: 620px;
  padding: 44px 16px 16px;
}
.hero__card {
  position: relative; isolation: isolate; overflow: hidden;
  width: 100%; height: 100%;
  border-radius: 34px;
  background:
    radial-gradient(42% 60% at 72% 52%, rgba(255,32,20,.45), transparent 70%),
    radial-gradient(40% 40% at 12% 100%, rgba(255,30,20,.22), transparent 70%),
    #070707;
  border: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 60px 120px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(0,0,0,.6);
  transform-origin: 50% 0;
}
.hero__smoke, .hero__glass {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.hero__smoke { z-index: 0; }
.hero__aura {
  position: absolute; z-index: 1; pointer-events: none;
  right: 10%; bottom: 8%; width: 40%; height: 74%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255,40,20,.55), rgba(255,20,10,.18) 45%, transparent 72%);
  filter: blur(20px);
  mix-blend-mode: screen;
  animation: aura 5s ease-in-out infinite alternate;
}
@keyframes aura { from { transform: scale(.94); } to { transform: scale(1.05); } }
.hero__portrait {
  position: absolute; z-index: 2;
  right: 4%; bottom: 0; width: 48%; height: 92%;
  display: flex; align-items: flex-end; justify-content: center;
  pointer-events: none;
}
.hero__portrait img {
  width: 100%; height: 100%;
  object-fit: contain; object-position: 50% 100%;
  filter:
    drop-shadow(0 0 1.5px #ff4a36)
    drop-shadow(0 0 10px rgba(255,40,20,.95))
    drop-shadow(0 0 46px rgba(255,30,10,.6));
  /* The photo's shoulders are cropped by its frame: fade the side and bottom cuts into the card */
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%),
    linear-gradient(180deg, #000 76%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%),
    linear-gradient(180deg, #000 76%, transparent 100%);
  mask-composite: intersect;
}
.hero__glass { z-index: 3; pointer-events: none; }
.hero__svg { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; }
.hero__svg path { fill: rgba(255,255,255,.025); stroke: rgba(255,255,255,.28); stroke-width: 1.5; }

.hero__content {
  position: absolute; z-index: 4; top: 0; bottom: 0;
  left: clamp(28px, 6.5%, 110px);
  width: min(46%, 660px);
  display: flex; flex-direction: column; justify-content: center;
  pointer-events: none;
}
.hero__copy { pointer-events: auto; }
.hero__eyebrow {
  font-size: clamp(10px, .82vw, 12px); font-weight: 800; font-stretch: 125%;
  letter-spacing: .2em; text-transform: uppercase; color: var(--red);
  text-shadow: 0 0 18px rgba(255,40,30,.6);
  margin-bottom: clamp(10px, 1.2vw, 18px);
}
.hero__eyebrow b { margin: 0 .5em; }
.hero__title {
  font-size: clamp(56px, 8.4vw, 150px); font-weight: 800; font-stretch: 125%;
  line-height: .86; letter-spacing: -.035em; text-transform: uppercase;
  filter: drop-shadow(0 0 26px rgba(255,255,255,.14)) drop-shadow(0 6px 30px rgba(0,0,0,.6));
  margin-bottom: clamp(14px, 1.6vw, 24px);
}
.hero__line { display: block; overflow: hidden; padding: .02em .04em .06em 0; margin-bottom: -.04em; }
.hero__line > span {
  display: inline-block;
  background: linear-gradient(180deg, #ffffff 18%, #e6e7ee 55%, #b9bcc9 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__role {
  font-size: clamp(13px, 1.32vw, 20px); font-weight: 800; font-stretch: 125%;
  letter-spacing: .01em; text-transform: uppercase; color: #ecebf0;
  margin-bottom: 12px;
}
.hero__role i { font-style: normal; color: var(--red); margin: 0 .35em; text-shadow: 0 0 12px var(--red); }
.hero__lead { max-width: 440px; font-size: clamp(14px, 1.08vw, 16px); color: var(--ink-dim); margin-bottom: clamp(22px, 2.4vw, 34px); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__foot {
  position: absolute; z-index: 4; left: clamp(28px, 6.5%, 110px); bottom: clamp(20px, 3.4%, 34px);
  display: flex; align-items: center; gap: 12px;
  font-size: 10.5px; font-weight: 700; font-stretch: 125%; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-dim);
}

/* =========================================================
   SECTIONS
   ========================================================= */
.section {
  position: relative;
  max-width: var(--max); margin: 0 auto;
  padding: clamp(110px, 13vw, 190px) var(--pad) 0;
}
.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
  margin-bottom: clamp(40px, 5.5vw, 76px);
}
.sec-title {
  font-size: clamp(42px, 7vw, 110px); font-weight: 800; font-stretch: 125%;
  line-height: .9; letter-spacing: -.04em; text-transform: uppercase;
}
.sec-title em, .footer__title em { font-style: normal; }
.sec-title em, .sec-title em .c, .footer__title em, .footer__title em .c {
  background: linear-gradient(180deg, #ff6a55 0%, #ff2b2b 45%, #a80a12 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sec-note { max-width: 340px; color: var(--ink-dim); font-size: 15px; padding-bottom: 8px; }

/* split text */
.w { display: inline-block; white-space: nowrap; }
[data-split] .w { overflow: hidden; vertical-align: top; padding: .04em .02em .1em; margin: -.04em -.02em -.1em; }
.c { display: inline-block; will-change: transform; }

/* background glow orbs */
.orb {
  position: absolute; z-index: -1; pointer-events: none;
  width: 46vw; max-width: 720px; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,30,20,.24), rgba(255,20,10,.08) 40%, transparent 68%);
  filter: blur(10px);
}
.orb--1 { right: -12%; top: 10%; }
.orb--2 { left: -16%; top: 30%; }
.orb--3 { right: -14%; top: 20%; }
.orb--4 { left: -10%; top: 0; }
.orb--5 { left: 50%; top: 0; width: 70vw; max-width: 1000px; margin-left: calc(min(70vw, 1000px) / -2); }

/* =========================================================
   ABOUT
   ========================================================= */
.about__grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(16px, 2vw, 24px); }
.about__card { height: 100%; padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.about__text {
  font-size: clamp(22px, 2.5vw, 38px); font-weight: 500; font-stretch: 105%;
  line-height: 1.22; letter-spacing: -.015em;
}
.about__sign { display: flex; align-items: center; gap: 12px; font-size: 11px; font-weight: 700; font-stretch: 125%; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-dim); }
.stats { display: grid; grid-template-rows: 1fr 1fr; gap: clamp(16px, 2vw, 24px); }
.stat { height: 100%; padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 190px; }
.stat__num {
  font-size: clamp(56px, 6.6vw, 104px); font-weight: 900; font-stretch: 125%; line-height: .9; letter-spacing: -.05em;
  background: linear-gradient(180deg, #fff 25%, #ff4a3a 160%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat__lbl { font-size: 11px; font-weight: 700; font-stretch: 125%; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-dim); }

.journey { margin-top: clamp(56px, 7vw, 100px); }
.journey__list { padding: 8px clamp(8px, 1.4vw, 18px); }
.journey__row {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 1.1fr 1.6fr 1.4fr auto; align-items: center; gap: 20px;
  padding: clamp(22px, 2.6vw, 34px) clamp(12px, 1.6vw, 22px);
  border-bottom: 1px solid var(--line);
  transition: padding .6s var(--ease);
}
.journey__row:last-child { border-bottom: 0; }
.journey__row::before {
  content: ""; position: absolute; z-index: -1; inset: 6px 0; border-radius: 18px;
  background: linear-gradient(90deg, rgba(255,40,30,.22), rgba(255,40,30,.02));
  box-shadow: inset 0 0 0 1px rgba(255,70,60,.25);
  opacity: 0; transform: scaleX(.96); transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.journey__row:hover::before { opacity: 1; transform: none; }
.journey__year { font-family: var(--mono); font-size: 13px; color: var(--ink-faint); }
.journey__role { font-size: clamp(17px, 1.7vw, 24px); font-weight: 800; font-stretch: 118%; letter-spacing: -.01em; }
.journey__co { color: var(--ink-dim); font-size: 15px; }
.journey__arrow { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); transition: background .4s, transform .5s var(--ease); }
.journey__row:hover .journey__arrow { background: var(--red); transform: rotate(45deg); box-shadow: 0 0 20px var(--red-glow); }

/* =========================================================
   PROJECTS
   ========================================================= */
.work__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 40px); }
.work__grid .project:nth-child(even) { margin-top: clamp(0px, 9vw, 130px); }
.project__card { display: block; padding: 12px; border-radius: 32px; }
.project__media {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 3; border-radius: 22px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  transform: translateZ(30px);
}
.project__art { position: absolute; inset: -6%; transition: scale 1.4s var(--ease); }
.project__card:hover .project__art { scale: 1.07; }
.art__tag {
  position: absolute; z-index: 2; top: 16px; left: 16px;
  padding: 8px 14px; border-radius: 999px;
  font-size: 10px; font-weight: 800; font-stretch: 125%; letter-spacing: .14em; text-transform: uppercase;
  background: rgba(10,10,12,.45); border: 1px solid rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.art__word {
  position: absolute; z-index: 2; left: 22px; bottom: 6px;
  font-size: clamp(56px, 8vw, 128px); font-weight: 900; font-stretch: 125%;
  line-height: 1; letter-spacing: -.05em; text-transform: uppercase;
  color: rgba(255,255,255,.94);
  text-shadow: 0 10px 40px rgba(0,0,0,.5);
  transition: transform 1s var(--ease);
}
.project__card:hover .art__word { transform: translateY(-6px); }
.project__info { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 20px 12px 10px; }
.project__num { font-family: var(--mono); font-size: 12px; color: var(--red); }
.project__title { font-size: clamp(18px, 1.8vw, 26px); font-weight: 800; font-stretch: 125%; letter-spacing: -.02em; text-transform: uppercase; line-height: 1.1; }
.project__cat { display: block; margin-top: 4px; font-size: 13px; color: var(--ink-dim); }
.project__arrow {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 18px;
  background: linear-gradient(180deg, #34343a, #111114);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -2px 4px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.08);
  transition: transform .6s var(--ease), background .4s, box-shadow .4s;
}
.project__card:hover .project__arrow { transform: rotate(45deg); background: linear-gradient(180deg, #ff6157, #c80f18); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 0 26px var(--red-glow); }
.project__card:hover { border-color: rgba(255,70,60,.25); }

/* CSS-only project artwork (swap for screenshots) */
.art { overflow: hidden; background: #0a0a0b; }
.art::before, .art::after { content: ""; position: absolute; }
.art--lumen { background: radial-gradient(80% 90% at 70% 115%, #ff3b2a 0%, #b30d16 30%, #2a0407 62%, #0a0a0b 85%); }
.art--lumen::before {
  top: 14%; right: 18%; width: 34%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fff 0%, #ffb3a1 10%, #ff3b2a 34%, #6b0509 72%, #2a0204 100%);
  box-shadow: 0 0 90px 16px rgba(255,50,30,.45);
}
.art--lumen::after { inset: 0; background: repeating-linear-gradient(115deg, rgba(255,255,255,.035) 0 1px, transparent 1px 14px); }
.art--nova { background: linear-gradient(180deg, #050506 0%, #0c0203 40%, #3b0508 100%); }
.art--nova::before {
  left: -60%; right: -60%; top: 44%; bottom: -20%;
  background-image: linear-gradient(rgba(255,60,50,.6) 1.5px, transparent 1.5px), linear-gradient(90deg, rgba(255,60,50,.6) 1.5px, transparent 1.5px);
  background-size: 54px 54px;
  transform: perspective(380px) rotateX(64deg); transform-origin: 50% 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 40%);
  mask-image: linear-gradient(to bottom, transparent, #000 40%);
}
.art--nova::after { left: 0; right: 0; top: 44%; height: 2px; background: #ff5a48; box-shadow: 0 0 40px 10px rgba(255,60,40,.55); }
.art--terra {
  background:
    radial-gradient(circle at 50% 120%, transparent 0, transparent 18%, rgba(0,0,0,0) 18.5%),
    repeating-radial-gradient(circle at 50% 125%, #22060a 0 22px, #3a0a0e 22px 24px),
    #140405;
}
.art--terra::before {
  left: 50%; bottom: -38%; width: 70%; aspect-ratio: 1; border-radius: 50%; transform: translateX(-50%);
  background: radial-gradient(circle at 50% 30%, #ff5b3f, #c2121b 40%, #4a0508 75%);
  box-shadow: 0 0 120px 20px rgba(255,40,20,.4);
}
.art--terra::after { inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45), transparent 50%); }
.art--orbit { background: radial-gradient(circle at 50% 50%, #1c0304 0%, #070707 70%); }
.art--orbit::before {
  left: 50%; top: 50%; width: 120%; aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%) rotateX(68deg) rotateZ(20deg);
  border: 1.5px solid rgba(255,70,60,.45);
  box-shadow: 0 0 0 40px rgba(255,255,255,.015), 0 0 0 41px rgba(255,70,60,.25), 0 0 0 90px rgba(255,255,255,.01), 0 0 0 91px rgba(255,70,60,.18), inset 0 0 40px rgba(255,40,30,.3);
}
.art--orbit::after {
  left: 50%; top: 50%; width: 22%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle at 35% 30%, #fff, #ff6a55 18%, #e01620 45%, #4a0306 100%);
  box-shadow: 0 0 80px 14px rgba(255,40,30,.55);
}

/* =========================================================
   SERVICES
   ========================================================= */
.services__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2vw, 24px); }
.service {
  height: 100%; min-height: 360px;
  padding: clamp(26px, 3vw, 42px);
  display: flex; flex-direction: column;
}
.service__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: auto; padding-bottom: 48px; }
.service__num { font-family: var(--mono); font-size: 13px; color: var(--ink-faint); }
.service__icon {
  width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.02));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 0 0 1px rgba(255,255,255,.07);
  transition: background .5s var(--ease), box-shadow .5s var(--ease);
}
.service__icon svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.service:hover .service__icon { background: linear-gradient(180deg, #ff6157, #c80f18); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 0 34px var(--red-glow); }
.service__title { font-size: clamp(26px, 2.8vw, 42px); font-weight: 800; font-stretch: 125%; letter-spacing: -.035em; text-transform: uppercase; line-height: 1; margin-bottom: 16px; }
.service__desc { color: var(--ink-dim); max-width: 460px; margin-bottom: 26px; }

/* =========================================================
   SKILLS
   ========================================================= */
.skills { position: relative; padding-top: clamp(110px, 13vw, 190px); }
.tapes { position: relative; height: clamp(150px, 16vw, 230px); overflow: hidden; }
.tape {
  position: absolute; left: -5%; right: -5%; top: 50%;
  padding: clamp(14px, 1.6vw, 22px) 0; overflow: hidden;
  font-size: clamp(18px, 2.4vw, 34px); font-weight: 900; font-stretch: 125%; letter-spacing: -.01em; text-transform: uppercase; white-space: nowrap;
}
.tape--red {
  transform: translateY(-50%) rotate(-3deg); z-index: 2;
  background: linear-gradient(180deg, #ff4a40, #d3121b);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 20px 60px -10px rgba(255,30,20,.5);
}
.tape--red i { color: #2a0204; font-style: normal; }
.tape--glass {
  transform: translateY(-50%) rotate(2.4deg); z-index: 1;
  background: rgba(20,20,24,.7); color: var(--ink-dim);
  border-block: 1px solid rgba(255,255,255,.1);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.tape--glass i { color: var(--red); font-style: normal; }
.tape__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.tape--glass .tape__track { animation-direction: reverse; animation-duration: 38s; }
.tape__track > span { display: block; padding-right: .3em; }
.tape i { margin: 0 .5em; }
@keyframes marquee { to { transform: translateX(-50%); } }

.skills__inner { padding-top: clamp(70px, 8vw, 120px); }
.skills__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }
.skill { height: 100%; padding: clamp(24px, 2.6vw, 36px); }
.skill__head { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; font-size: clamp(18px, 1.6vw, 22px); font-weight: 800; font-stretch: 125%; letter-spacing: -.01em; text-transform: uppercase; }
.skill__dot { width: 10px; height: 10px; border-radius: 3px; background: var(--red); box-shadow: 0 0 12px var(--red); transform: rotate(45deg); }

/* =========================================================
   FOOTER / CONTACT
   ========================================================= */
.footer { overflow: hidden; padding-bottom: 28px; }
.footer__inner { padding-top: clamp(130px, 15vw, 220px); }
.footer__title {
  font-size: clamp(44px, 8.4vw, 136px); font-weight: 800; font-stretch: 125%;
  line-height: .9; letter-spacing: -.045em; text-transform: uppercase;
  max-width: 14ch; margin-bottom: clamp(40px, 5vw, 70px);
}
.footer__title .w { overflow: hidden; vertical-align: top; padding: .04em .02em .1em; margin: -.04em -.02em -.1em; }
.footer__panel {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: clamp(28px, 4vw, 56px);
}
.footer__email {
  display: inline-block;
  font-size: clamp(22px, 3.6vw, 54px); font-weight: 800; font-stretch: 112%;
  letter-spacing: -.03em; line-height: 1.1; word-break: break-word;
  background: linear-gradient(90deg, #fff, #fff) 0 100% / 0 2px no-repeat;
  padding-bottom: 6px;
  transition: background-size .7s var(--ease), color .3s;
}
.footer__email:hover { background-size: 100% 2px; color: #fff; }
.sphere-btn {
  flex: none; width: clamp(140px, 14vw, 200px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  font-size: clamp(12px, 1vw, 14px); font-weight: 900; font-stretch: 125%; letter-spacing: .06em; line-height: 1.25; text-transform: uppercase;
  background: radial-gradient(circle at 34% 28%, #ff9a8a 0%, #ff3a33 24%, #d0101a 58%, #6a0409 100%);
  box-shadow:
    inset -12px -16px 30px rgba(40,0,0,.5),
    inset 10px 12px 24px rgba(255,255,255,.22),
    0 0 0 1px rgba(255,90,80,.5),
    0 0 60px rgba(255,40,30,.55),
    0 30px 60px -20px rgba(255,20,10,.6);
  transition: box-shadow .5s var(--ease);
}
.sphere-btn:hover { box-shadow: inset -12px -16px 30px rgba(40,0,0,.5), inset 10px 12px 24px rgba(255,255,255,.3), 0 0 0 1px rgba(255,120,110,.7), 0 0 90px rgba(255,40,30,.8), 0 30px 60px -20px rgba(255,20,10,.7); }

.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 32px; align-items: end;
  margin-top: clamp(48px, 6vw, 80px); padding-top: 32px; border-top: 1px solid var(--line);
}
.footer__col p:not(.label) { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.footer__socials { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; font-weight: 600; }
.footer__socials a { position: relative; }
.footer__socials a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--red); transform: scaleX(0); transform-origin: 100% 50%; transition: transform .5s var(--ease); }
.footer__socials a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
.footer__col--end { justify-self: end; }
.totop {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-size: 20px;
  background: linear-gradient(180deg, #34343a, #111114);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -2px 4px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.08);
  transition: background .4s, box-shadow .4s;
}
.totop:hover { background: linear-gradient(180deg, #ff6157, #c80f18); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 0 26px var(--red-glow); }

.footer__big {
  position: relative; text-align: center; white-space: nowrap;
  margin-top: clamp(60px, 8vw, 120px);
  font-size: 10.2vw; font-weight: 900; font-stretch: 125%; line-height: .8; letter-spacing: -.06em; text-transform: uppercase;
  user-select: none;
}
.footer__big span {
  display: inline-block;
  background: linear-gradient(180deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.35) 55%, rgba(255,40,30,.05) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.footer__big::after {
  content: ""; position: absolute; left: 15%; right: 15%; bottom: -10px; height: 40px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255,40,30,.65), transparent 70%);
  filter: blur(14px);
}
.footer__legal {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  max-width: var(--max); margin: 36px auto 0; padding: 0 var(--pad);
  font-size: 12px; color: var(--ink-faint);
}

/* =========================================================
   SCROLL SCENES (driven by initScrollScenes in js/main.js)
   ========================================================= */
.rail, .progress { display: none; }

/* desktop: section rail on the right edge */
.js .rail {
  position: fixed; z-index: 95; top: 50%; right: clamp(12px, 1.4vw, 24px);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  transform: translateY(-50%);
  opacity: 0; pointer-events: none;
}
.rail__num { height: 1.25em; overflow: hidden; font-family: var(--mono); font-size: 12px; line-height: 1.25; color: #fff; }
.rail__cur { display: block; }
.rail__track { position: relative; width: 2px; height: clamp(90px, 16vh, 150px); border-radius: 2px; background: rgba(255,255,255,.1); }
.rail__fill {
  position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(180deg, #ff7a66, var(--red));
  box-shadow: 0 0 10px var(--red), 0 0 22px var(--red-glow);
  transform: scaleY(0); transform-origin: 50% 0;
}
.rail__total { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); }
.rail__label { overflow: hidden; }
.rail__name {
  display: block; writing-mode: vertical-rl;
  font-size: 10px; font-weight: 800; font-stretch: 125%; letter-spacing: .24em; text-transform: uppercase;
  color: var(--ink-faint);
}

/* phones: thin glowing bar along the top */
.js .progress {
  display: block; position: fixed; z-index: 110; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, #ff7a66, var(--red)); box-shadow: 0 0 10px var(--red);
  transform: scaleX(0); transform-origin: 0 50%; pointer-events: none;
}
@media (min-width: 901px) { .js .progress { display: none; } }
@media (max-width: 900px) { .js .rail { display: none; } }

/* tapes: JS drives the marquee so it can react to scroll speed */
.tapes.is-js .tape__track { animation: none; }

/* footer name: once split, every letter carries its own gradient */
.footer__big.is-split span { background: none; }
.footer__big.is-split .c {
  background: linear-gradient(180deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.35) 55%, rgba(255,40,30,.05) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .nav__links { gap: 20px; }
  .skills__grid { grid-template-columns: 1fr 1fr; }
  .skills__grid > :last-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .nav__pill { padding: 0 8px 0 20px; height: 56px; gap: 10px; }
  .nav__cta { margin-left: auto; }
  .nav__logo { font-size: 16px; }
  .nav__burger { flex: none; }

  .sec-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .about__grid { grid-template-columns: 1fr; }
  .stats { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .work__grid { grid-template-columns: 1fr; }
  .work__grid .project:nth-child(even) { margin-top: 0; }
  .services__grid { grid-template-columns: 1fr; }
  .service { min-height: 0; }
  .journey__row { grid-template-columns: 1fr auto; gap: 6px 16px; }
  .journey__year { grid-column: 1; }
  .journey__role { grid-column: 1; }
  .journey__co { grid-column: 1; }
  .journey__arrow { grid-column: 2; grid-row: 1 / span 3; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__col--end { justify-self: start; }
}

/* phone hero: portrait on top, copy below */
@media (max-width: 820px), (max-aspect-ratio: 4/5) {
  .hero { padding: 40px 10px 10px; }
  .hero__card { border-radius: 28px; }
  .hero__portrait { left: 0; right: 0; top: 8%; bottom: 36%; width: auto; height: auto; }
  .hero__portrait img {
    -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
  }
  .hero__aura { left: 10%; right: 10%; width: auto; top: 10%; bottom: 34%; height: auto; }
  .hero__content { top: auto; left: 0; right: 0; bottom: 0; width: auto; padding: 0 22px 26px; justify-content: flex-end; }
  .hero__title { font-size: clamp(44px, 14.5vw, 96px); }
  .hero__eyebrow { font-size: 9px; letter-spacing: .1em; }
  .hero__lead { font-size: 14px; margin-bottom: 20px; }
  .hero__ctas { gap: 8px; }
  .hero__ctas .btn { height: 46px; padding: 0 15px; font-size: 9.5px; letter-spacing: .06em; }
  .hero__foot { display: none; }
}

@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .stat { min-height: 150px; }
  .skills__grid { grid-template-columns: 1fr; }
  .footer__panel { flex-direction: column; align-items: flex-start; }
  .footer__grid { grid-template-columns: 1fr; }
  .chips--lg li { padding: 8px 13px; font-size: 12px; }
}

/* full name in the nav: shrink it on phones, drop the CTA on the narrowest ones */
@media (max-width: 420px) {
  .nav__pill { padding-left: 16px; }
  .nav__logo { font-size: 14.5px; }
}
@media (max-width: 374px) {
  .nav__cta { display: none; }
  .nav__burger { margin-left: auto; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .tape__track { animation: none; }
}
