/* Freefall: Shreshth Chaurasiya portfolio
   Palette is sampled from the two films: the golden shaft, the fire ring,
   the bone-white glow of the risen figure, and one cool iris for contrast. */
:root {
  --void: #000;
  --bone: #efe7da;
  --ash: #8a847b;
  --molten: #ffb23f;
  --ember: #ff5a1e;
  --iris: #8c8cff;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --gutter: clamp(16px, 2.2vw, 36px);
  --ui: 11px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--void); color: var(--bone); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  background: var(--void);
  color: var(--bone);
  font-family: var(--display);
  font-variation-settings: "wdth" 100;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: inherit; }
::selection { background: var(--molten); color: #000; }
:focus-visible { outline: 2px solid var(--molten); outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  html.has-cursor, html.has-cursor * { cursor: none !important; }
}

/* ---------- shared UI type ---------- */
.nav, .hud, .screen-bar, .btn, .tile-cap, .loader-status, .menu-foot, .hero-foot, .contact-legal {
  font-family: var(--display);
  font-size: var(--ui);
  font-weight: 600;
  font-variation-settings: "wdth" 88;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: 1.25em 2.1em;
  border: 1px solid currentColor; border-radius: 999px;
  transition: background .35s, color .35s, border-color .35s;
  white-space: nowrap;
}
.btn:hover { background: var(--bone); color: #000; border-color: var(--bone); }
.btn--solid { background: var(--bone); color: #000; border-color: var(--bone); }
.btn--solid:hover { background: var(--molten); border-color: var(--molten); }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; align-content: center; gap: 28px;
  background: var(--void);
  transition: opacity 1.1s cubic-bezier(.7,0,.2,1), visibility 0s 1.1s;
}
.loader-shaft { position: relative; width: 2px; height: 34vh; background: rgba(239,231,218,.12); overflow: hidden; transition: width 1s cubic-bezier(.7,0,.2,1), opacity .8s; }
.loader-shaft i { position: absolute; inset: auto 0 0 0; height: 0%; background: linear-gradient(to top, var(--molten), #fff3d6); box-shadow: 0 0 24px var(--molten); transition: height .25s linear; }
.loader-status { color: var(--ash); font-variant-numeric: tabular-nums; }
.loader-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .6s, transform .6s; }
.loader.is-ready .loader-actions { opacity: 1; transform: none; pointer-events: auto; }
.loader.is-out { opacity: 0; visibility: hidden; }
.loader.is-out .loader-shaft { width: 60vw; opacity: 0; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 18px var(--gutter);
  mix-blend-mode: difference; color: var(--bone);
}
.nav-menu { justify-self: start; padding: 6px 0; }
.nav-mark { justify-self: center; text-align: center; }
.nav-mark em { font-style: normal; color: var(--ash); margin-left: .6em; }
.nav-right { justify-self: end; display: flex; gap: 28px; align-items: center; }
.nav-sound { display: inline-flex; gap: 10px; align-items: center; padding: 6px 0; }
.bars { display: inline-flex; gap: 2px; align-items: flex-end; height: 10px; }
.bars b { width: 2px; height: 2px; background: currentColor; transition: height .3s; }
.sound-on .bars b { animation: bar 0.9s ease-in-out infinite; }
.sound-on .bars b:nth-child(2) { animation-delay: -.3s; }
.sound-on .bars b:nth-child(3) { animation-delay: -.6s; }
.sound-on .bars b:nth-child(4) { animation-delay: -.15s; }
@keyframes bar { 0%,100% { height: 2px; } 50% { height: 10px; } }
.nav a, .nav button { position: relative; }
.nav a::after, .nav-menu::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s cubic-bezier(.7,0,.2,1); }
.nav a:hover::after, .nav-menu:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-mark::after { display: none; }

/* ---------- menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 55;
  background: rgba(0,0,0,.94);
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  padding: 90px var(--gutter) 40px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .8s cubic-bezier(.7,0,.2,1);
  visibility: hidden;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu-list { list-style: none; counter-reset: ch; }
.menu-list li { overflow: hidden; counter-increment: ch; }
.menu-list a {
  display: inline-flex; align-items: baseline; gap: .4em;
  font-size: clamp(36px, 7.2vh, 92px); line-height: .98;
  font-weight: 850; font-variation-settings: "wdth" 118; letter-spacing: -.035em; text-transform: uppercase;
  transform: translateY(105%); transition: transform .8s cubic-bezier(.7,0,.2,1), color .3s;
}
.menu-list a::before { content: counter(ch, decimal-leading-zero); font-size: 12px; letter-spacing: .06em; font-weight: 600; color: var(--ash); transform: translateY(-1.6em); }
.menu-open .menu-list a { transform: none; }
.menu-list li:nth-child(2) a { transition-delay: .03s; } .menu-list li:nth-child(3) a { transition-delay: .06s; }
.menu-list li:nth-child(4) a { transition-delay: .09s; } .menu-list li:nth-child(5) a { transition-delay: .12s; }
.menu-list li:nth-child(6) a { transition-delay: .15s; } .menu-list li:nth-child(7) a { transition-delay: .18s; }
.menu-list li:nth-child(8) a { transition-delay: .21s; }
.menu-list a:hover { color: var(--molten); }
.menu-list:hover a:not(:hover) { color: rgba(239,231,218,.25); }
.menu-preview { width: min(30vw, 46vh); aspect-ratio: 3/4; overflow: hidden; border-radius: 4px; opacity: 0; transform: scale(.92) rotate(-3deg); transition: opacity .5s, transform .8s cubic-bezier(.2,.8,.2,1); }
.menu-preview img { width: 100%; height: 100%; object-fit: cover; }
.menu-open .menu-preview { opacity: 1; transform: none; transition-delay: .3s; }
.menu-foot { position: absolute; left: var(--gutter); bottom: 24px; color: var(--ash); }

/* ---------- HUD ---------- */
.hud {
  position: fixed; inset: auto 0 0 0; z-index: 60;
  display: grid; grid-template-columns: 1fr minmax(80px, 22vw) 1fr; gap: 24px; align-items: center;
  padding: 18px var(--gutter);
  mix-blend-mode: difference; color: var(--bone);
  font-variant-numeric: tabular-nums;
  opacity: 0; transition: opacity 1s .4s;
}
.is-entered .hud { opacity: 1; }
.hud-chapter { display: flex; gap: 14px; }
.hud-num { color: var(--ash); }
.hud-bar { height: 1px; background: rgba(239,231,218,.25); position: relative; overflow: hidden; }
.hud-bar i { position: absolute; inset: 0; background: var(--bone); transform-origin: left; transform: scaleX(0); }
.hud-read { justify-self: end; }
.hud.is-pulse .hud-read { animation: hudPulse .6s steps(2) 3; }
@keyframes hudPulse { 50% { opacity: 0; } }

/* ---------- cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; mix-blend-mode: difference; display: none; }
html.has-cursor .cursor { display: block; }
.cursor-dot, .cursor-ring { position: absolute; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--bone); }
.cursor-ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid var(--bone);
  display: grid; place-items: center;
  transition: width .35s cubic-bezier(.2,.8,.2,1), height .35s cubic-bezier(.2,.8,.2,1), margin .35s cubic-bezier(.2,.8,.2,1), background .35s;
}
.cursor-ring span { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-variation-settings: "wdth" 88; color: #000; opacity: 0; transition: opacity .2s; }
.cursor.is-label .cursor-ring { width: 86px; height: 86px; margin: -43px 0 0 -43px; background: var(--bone); }
.cursor.is-label .cursor-ring span { opacity: 1; }
.cursor.is-down .cursor-ring { width: 26px; height: 26px; margin: -13px 0 0 -13px; }

/* ---------- grain ---------- */
.grain {
  position: fixed; inset: -50%; width: 200%; height: 200%; z-index: 150; pointer-events: none;
  opacity: .085;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.4 -.2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0,0); } 20% { transform: translate(-6%,4%); } 40% { transform: translate(5%,-7%); }
  60% { transform: translate(-3%,8%); } 80% { transform: translate(7%,2%); } 100% { transform: translate(0,0); }
}

/* =========================================================
   STORY STAGE
   ========================================================= */
.story { position: relative; height: 1700vh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; background: var(--void); }
.stage-inner { position: absolute; inset: 0; }
.stage-inner.is-shake { animation: shake .7s cubic-bezier(.2,.8,.2,1); }
@keyframes shake {
  0% { transform: translate(0,0); } 10% { transform: translate(-14px, 9px) rotate(-.6deg); } 22% { transform: translate(12px,-11px) rotate(.5deg); }
  36% { transform: translate(-8px, 6px); } 52% { transform: translate(5px,-4px); } 70% { transform: translate(-2px, 2px); } 100% { transform: none; }
}

.ambient { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .3; z-index: 1; }

.world { position: absolute; inset: 0; perspective: 900px; perspective-origin: 50% 50%; pointer-events: none; overflow: hidden; }
.world--back { z-index: 2; }
.world--front { z-index: 7; mix-blend-mode: difference; }
.world--ui { z-index: 8; }
.cam { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; }
.wi { position: absolute; left: 0; top: 0; white-space: nowrap; transform-style: preserve-3d; will-change: transform, opacity; opacity: 0; backface-visibility: hidden; }
.wi > span { display: block; transform: translate(-50%, -50%); }

/* world type scale */
.wi.xxl { font-size: clamp(120px, 26vw, 520px); font-weight: 900; font-variation-settings: "wdth" 125; letter-spacing: -.05em; line-height: .8; text-transform: uppercase; }
.wi.xl  { font-size: clamp(72px, 11vw, 230px); font-weight: 900; font-variation-settings: "wdth" 125; letter-spacing: -.045em; line-height: .82; text-transform: uppercase; }
.wi.l   { font-size: clamp(44px, 7vw, 140px); font-weight: 800; font-variation-settings: "wdth" 112; letter-spacing: -.035em; line-height: .86; text-transform: uppercase; }
.wi.m   { font-size: clamp(26px, 3.4vw, 64px); font-weight: 700; font-variation-settings: "wdth" 70; letter-spacing: -.01em; }
.wi.serif { font-family: var(--serif); font-style: italic; font-size: clamp(24px, 3vw, 56px); letter-spacing: -.01em; }
.wi.tag > span { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-variation-settings: "wdth" 88; padding: .9em 1.5em; border: 1px solid currentColor; border-radius: 999px; }
.wi.line > span { font-family: var(--serif); font-style: italic; font-size: clamp(28px, 3.6vw, 68px); line-height: 1.02; letter-spacing: -.015em; white-space: normal; width: min(88vw, 13em); text-align: center; }
.wi.ghost { color: transparent; -webkit-text-stroke: 1.5px var(--bone); }
.wi.molten { color: var(--molten); } .wi.ghost.molten { color: transparent; -webkit-text-stroke-color: var(--molten); }
.wi.ember { color: var(--ember); }  .wi.ghost.ember { color: transparent; -webkit-text-stroke-color: var(--ember); }
.wi.ash { color: var(--ash); }      .wi.ghost.ash { color: transparent; -webkit-text-stroke-color: var(--ash); }
.wi.iris { color: var(--iris); }

.wi.cta { pointer-events: auto; }
.wi.cta > span {
  display: inline-flex; align-items: center; gap: .7em;
  font-size: 12px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; font-variation-settings: "wdth" 88;
  padding: 1.15em 1.8em; border-radius: 999px;
  background: rgba(0,0,0,.55); color: var(--bone); border: 1px solid rgba(239,231,218,.5);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background .3s, color .3s;
}
.wi.cta > span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--molten); box-shadow: 0 0 10px var(--molten); }
.wi.cta:hover > span { background: var(--bone); color: #000; }

.index-name {
  position: absolute; left: 50%; top: 50%; z-index: 3;
  font-size: 11vw; line-height: .8; font-weight: 900; font-variation-settings: "wdth" 120; letter-spacing: -.04em; text-transform: uppercase;
  white-space: nowrap; color: rgba(239,231,218,.55); filter: blur(16px);
  transform: translate(-50%, -50%); opacity: 0; pointer-events: none; will-change: transform, opacity;
}

.film {
  position: absolute; top: 0; left: 50%; z-index: 4;
  width: min(100%, 72vh); height: 100%;
  transform: translateX(-50%);
  --f: 22%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--f), #000 calc(100% - var(--f)), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 var(--f), #000 calc(100% - var(--f)), transparent 100%);
  will-change: transform;
}
.film canvas { display: block; width: 100%; height: 100%; }
.vignette { position: absolute; inset: 0; z-index: 5; pointer-events: none; background: radial-gradient(120% 80% at 50% 50%, transparent 55%, rgba(0,0,0,.7) 100%); }

.index-tiles { position: absolute; inset: 0; z-index: 6; perspective: 1200px; pointer-events: none; }
.index-tiles.is-live { pointer-events: auto; }
.index-tiles.is-live .tile { pointer-events: auto; }
.tile {
  position: absolute; left: 50%; top: 50%;
  overflow: hidden; border-radius: 2px; opacity: 0; pointer-events: none;
  will-change: transform, opacity; background: #111;
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2,.8,.2,1), filter .5s; }
.tile.is-mono img { filter: grayscale(1) contrast(1.25); }
.tile.is-iris img { filter: grayscale(1) sepia(1) hue-rotate(195deg) saturate(2.2) brightness(.95); }
.tile:hover img { transform: scale(1.08); filter: none; }
.tile-cap { position: absolute; left: 8px; bottom: 7px; font-size: 10px; color: var(--bone); mix-blend-mode: difference; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.tile:hover .tile-cap, .tile:focus-visible .tile-cap { opacity: 1; transform: none; }
.tile--gen { display: grid; place-items: center; }
.gen-sun { background:
  repeating-radial-gradient(circle at 50% 62%, var(--ember) 0 6px, transparent 6px 13px),
  radial-gradient(circle at 50% 62%, var(--molten), #2a0a00 70%); }
.gen-type { background: var(--iris); color: #000; }
.gen-type b { font-size: 4.6vh; font-weight: 900; font-variation-settings: "wdth" 62; letter-spacing: -.04em; line-height: 1; }

.rise { position: absolute; inset: 0; z-index: 9; perspective: 1000px; display: flex; justify-content: center; align-items: center; gap: 1vw; mix-blend-mode: difference; pointer-events: none; }
.rise span { display: block; font-size: min(34vw, 62vh); line-height: .8; font-weight: 900; font-variation-settings: "wdth" 125; letter-spacing: -.04em; color: var(--bone); opacity: 0; will-change: transform, opacity; }

.shock {
  position: absolute; left: 50%; top: 44%; z-index: 10;
  width: 30vh; height: 30vh; margin: -15vh 0 0 -15vh; border-radius: 50%;
  border: 2px solid #ffd6a0;
  box-shadow: 0 0 40px 6px var(--ember), inset 0 0 50px 6px var(--ember);
  mix-blend-mode: screen; opacity: 0; pointer-events: none; will-change: transform, opacity;
}

.hero { position: absolute; inset: 0; z-index: 11; perspective: 900px; pointer-events: none; }
.hero > * { pointer-events: auto; }
.hero-intro {
  position: absolute; left: var(--gutter); top: 15vh; max-width: 22em;
  font-family: var(--serif); font-size: clamp(18px, 1.6vw, 26px); line-height: 1.25; color: var(--bone);
  opacity: 0; transform: translateY(16px); transition: opacity 1.2s .9s, transform 1.2s .9s cubic-bezier(.2,.8,.2,1);
}
.hero-name {
  position: absolute; left: 0; right: 0; top: 64vh;
  display: flex; justify-content: center;
  font-size: clamp(28px, 6.4vw, 92px); line-height: .8; font-weight: 900; font-variation-settings: "wdth" 120; letter-spacing: -.03em; text-transform: uppercase;
  color: var(--bone); white-space: nowrap;
  transform-origin: 50% 0;
}
.hn-word { display: inline-flex; white-space: nowrap; flex-shrink: 0; }
.hn { display: inline-block; flex-shrink: 0; transform: translateY(110%) rotateX(-80deg); opacity: 0; transform-origin: 50% 100%; transition: transform 1.3s cubic-bezier(.2,.9,.1,1), opacity .9s; }
.hn.sp { width: .3em; }
.is-entered .hn { transform: none; opacity: 1; }
.is-entered .hero-intro { opacity: 1; transform: none; }
.hero-foot { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 64px; display: flex; justify-content: space-between; align-items: flex-end; opacity: 0; transition: opacity 1s 1.4s; }
.is-entered .hero-foot { opacity: 1; }
.hero-cue { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.hero-cue i { width: 1px; height: 54px; background: linear-gradient(var(--bone), transparent); position: relative; overflow: hidden; }
.hero-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--molten); animation: cue 1.8s cubic-bezier(.7,0,.3,1) infinite; }
@keyframes cue { to { top: 110%; } }
.hero-skip { color: var(--ash); transition: color .3s; }
.hero-skip:hover { color: var(--bone); }

.flash {
  position: absolute; inset: 0; z-index: 12; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 50% 45%, #fff 0%, #fff8ea 45%, #ffd391 100%);
  display: grid; place-items: center; overflow: hidden;
}
.flash b {
  font-size: 23vw; font-weight: 900; font-variation-settings: "wdth" 125; letter-spacing: -.05em; text-transform: uppercase;
  color: #000; line-height: .8; will-change: transform;
}
.flash--ember { background: radial-gradient(circle at 50% 44%, #ffe2b8 0%, var(--ember) 40%, rgba(80,10,0,0) 85%); mix-blend-mode: screen; }

/* =========================================================
   WORK
   ========================================================= */
.work { position: relative; height: 520vh; }
.work-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; perspective: 1500px; perspective-origin: 50% 30%; }
.screen {
  position: absolute; inset: 7vh 4.5vw;
  background: #000; border: 1px solid rgba(239,231,218,.14); border-radius: 8px;
  overflow: hidden; transform-origin: 50% 100%;
  will-change: transform, filter;
  box-shadow: 0 40px 120px rgba(0,0,0,.8);
}
.screen::after { content: ""; position: absolute; inset: 0; z-index: 6; background: #000; opacity: var(--dim, 0); pointer-events: none; }
.screen-bar { position: absolute; inset: 0 0 auto 0; display: grid; grid-template-columns: 1fr auto 1fr; padding: 16px 20px; color: var(--ash); z-index: 3; }
.screen-bar span:nth-child(2) { color: var(--bone); }
.screen-bar span:last-child { justify-self: end; }
.screen-title {
  position: absolute; left: 0; top: 50%; z-index: 1;
  white-space: nowrap; transform: translateY(-50%);
  font-size: clamp(110px, 19vw, 380px); font-weight: 900; font-variation-settings: "wdth" 112; letter-spacing: -.05em; line-height: .8; text-transform: uppercase;
  color: var(--c);
}
.screen-title span { display: block; will-change: transform; }
.disc { position: absolute; left: 50%; top: 52%; z-index: 2; width: min(54vh, 64vw); aspect-ratio: 1; transform: translate(-50%, -50%); }
.disc-face { position: absolute; inset: 9%; border-radius: 50%; overflow: hidden; will-change: transform; box-shadow: 0 30px 90px rgba(0,0,0,.6), 0 0 0 1px rgba(239,231,218,.08); }
.disc-face img { width: 100%; height: 100%; object-fit: cover; }
.disc.is-mono .disc-face img { filter: grayscale(1) contrast(1.3) brightness(1.1); }
.disc-face::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 50%; background: repeating-radial-gradient(circle, rgba(0,0,0,0) 0 2px, rgba(0,0,0,.16) 2px 3px); mix-blend-mode: multiply; }
.disc-face::after { content: ""; position: absolute; left: 50%; top: 50%; z-index: 2; width: 9%; height: 9%; margin: -4.5% 0 0 -4.5%; border-radius: 50%; background: #000; box-shadow: 0 0 0 6px rgba(239,231,218,.12); }
.disc-ring { position: absolute; inset: -6%; width: 112%; height: 112%; overflow: visible; will-change: transform; }
.disc-ring text { font-family: var(--display); font-size: 9.6px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; fill: var(--bone); font-variation-settings: "wdth" 80; }
.screen-meta { position: absolute; left: 20px; bottom: 20px; z-index: 3; width: min(340px, 40vw); }
.screen-meta h3 { font-size: 13px; font-weight: 700; font-variation-settings: "wdth" 88; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 10px; color: var(--c); }
.screen-meta p { font-family: var(--serif); font-size: clamp(16px, 1.25vw, 20px); line-height: 1.3; color: var(--bone); margin-bottom: 14px; }
.screen-meta dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; font-size: 11px; font-variation-settings: "wdth" 88; letter-spacing: .04em; color: var(--ash); }
.screen-meta dd { color: var(--bone); }
.screen-cta { position: absolute; right: 20px; bottom: 20px; z-index: 3; font-size: 11px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; font-variation-settings: "wdth" 88; padding: 1.2em 1.9em; border: 1px solid rgba(239,231,218,.4); border-radius: 999px; transition: background .3s, color .3s, border-color .3s; }
.screen-cta:hover { background: var(--c); border-color: var(--c); color: #000; }
.screen-mark { position: absolute; right: 22%; top: 24%; z-index: 3; font-size: clamp(16px, 1.6vw, 28px); font-weight: 800; font-variation-settings: "wdth" 100; color: var(--bone); }

/* =========================================================
   ABOUT + MARQUEE
   ========================================================= */
.about { position: relative; padding: 26vh var(--gutter) 16vh; }
.manifesto {
  font-family: var(--serif); font-size: clamp(34px, 5.2vw, 96px); line-height: 1.02; letter-spacing: -.02em;
  max-width: 15.5em;
}
.manifesto .w { opacity: .13; transition: opacity .25s linear; }
.manifesto .w.is-hot { color: var(--molten); }
.about-cols { margin-top: 12vh; margin-left: auto; width: min(100%, 760px); display: grid; grid-template-columns: 1fr 1fr; gap: 40px; font-family: var(--serif); font-size: clamp(17px, 1.3vw, 21px); line-height: 1.4; color: var(--ash); }
.about-cols p:first-child { color: var(--bone); }

.marquee { padding: 6vh 0 14vh; overflow: hidden; border-top: 1px solid rgba(239,231,218,.12); border-bottom: 1px solid rgba(239,231,218,.12); }
.marquee-row { overflow: hidden; white-space: nowrap; }
.marquee-track { display: inline-flex; will-change: transform; }
.marquee-track span {
  padding: 0 .35em; font-size: clamp(54px, 9vw, 170px); line-height: 1; font-weight: 900; font-variation-settings: "wdth" 120; letter-spacing: -.045em; text-transform: uppercase;
}
.marquee-track span.o { color: transparent; -webkit-text-stroke: 1.5px var(--bone); }

/* =========================================================
   SERVICES
   ========================================================= */
.services { position: relative; padding: 18vh var(--gutter) 22vh; }
.services-head { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: clamp(24px, 2.4vw, 40px); margin-bottom: 6vh; color: var(--ash); }
.svc-list { list-style: none; border-top: 1px solid rgba(239,231,218,.16); }
.svc { border-bottom: 1px solid rgba(239,231,218,.16); position: relative; overflow: hidden; }
.svc a { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center; padding: 3.2vh 0; position: relative; z-index: 1; }
.svc::before { content: ""; position: absolute; inset: 0; background: var(--bone); transform: scaleY(0); transform-origin: bottom; transition: transform .55s cubic-bezier(.7,0,.2,1); }
.svc:hover::before { transform: scaleY(1); }
.svc-name { font-size: clamp(36px, 4.9vw, 104px); line-height: .9; font-weight: 850; font-variation-settings: "wdth" 115; letter-spacing: -.045em; text-transform: uppercase; transition: transform .55s cubic-bezier(.2,.8,.2,1), color .4s; }
.svc-desc { font-family: var(--serif); font-size: clamp(17px, 1.35vw, 22px); line-height: 1.3; color: var(--ash); max-width: 26em; transition: color .4s; }
.svc:hover .svc-name { transform: translateX(2vw); color: #000; }
.svc:hover .svc-desc { color: #000; }
.svc-preview {
  position: fixed; left: 0; top: 0; z-index: 40; width: min(22vw, 300px); aspect-ratio: 3/4; pointer-events: none;
  overflow: hidden; border-radius: 4px; opacity: 0; transform: scale(.6); transition: opacity .35s;
  will-change: transform, opacity;
}
.svc-preview.is-on { opacity: 1; }
.svc-preview img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   PORTAL
   ========================================================= */
.portal { position: relative; height: 640vh; }
.portal-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
#portalCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; will-change: transform; transform-origin: 50% 42%; }
.tunnel { position: absolute; inset: 0; perspective: 700px; pointer-events: none; mix-blend-mode: screen; }
.tunnel-cam { position: absolute; left: 50%; top: 44%; width: 0; height: 0; transform-style: preserve-3d; }
.arch {
  position: absolute; left: 0; top: 0; width: 46vh; height: 74vh; margin: -37vh 0 0 -23vh;
  border: 1.5px solid rgba(255,140,90,.9); border-radius: 23vh 23vh 0 0;
  box-shadow: 0 0 28px rgba(255,90,30,.5), inset 0 0 28px rgba(255,90,30,.35);
  will-change: transform, opacity; opacity: 0;
}
.arch span { position: absolute; left: 50%; bottom: -1.6em; transform: translateX(-50%); white-space: nowrap; font-size: 12px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: #ffc9a8; font-variation-settings: "wdth" 88; }
.portal-shade { position: absolute; inset: 0; background: radial-gradient(90% 70% at 50% 50%, rgba(0,0,0,0) 30%, rgba(0,0,0,.65) 100%), linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,0) 45%); pointer-events: none; }
.portal-line {
  position: absolute; left: 50%; bottom: 13vh; width: min(92vw, 14em);
  font-family: var(--serif); font-style: italic; font-size: clamp(30px, 4.4vw, 84px); line-height: 1; text-align: center; letter-spacing: -.015em;
  transform: translateX(-50%); opacity: 0; will-change: transform, opacity, filter;
}
.portal-cta { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 40px; padding: 0 var(--gutter); text-align: center; opacity: 0; pointer-events: none; }
.portal-cta.is-live { pointer-events: auto; }
.portal-cta h2 { font-size: clamp(44px, 7.4vw, 150px); line-height: .86; font-weight: 900; font-variation-settings: "wdth" 118; letter-spacing: -.045em; text-transform: uppercase; max-width: 11em; }
.portal-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { position: relative; min-height: 100vh; padding: 20vh var(--gutter) 90px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6vh; background: var(--void); }
.contact-kicker { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2vw, 34px); color: var(--ash); }
.contact-mail { display: inline-block; align-self: flex-start; font-size: clamp(22px, 3.8vw, 56px); line-height: 1; font-weight: 850; font-variation-settings: "wdth" 105; letter-spacing: -.03em; transition: color .3s; overflow-wrap: anywhere; }
.contact-mail:hover { color: var(--molten); }
.contact-wa {
  display: inline-flex; align-items: center; gap: 10px;
  align-self: flex-start;
  padding: 1.05em 2em; border-radius: 999px;
  background: #25D366; color: #000; font-weight: 700; font-size: 13px;
  letter-spacing: .05em; text-transform: uppercase;
  transition: transform .3s, box-shadow .3s, filter .3s;
}
.contact-wa:hover { filter: brightness(1.1); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,.35); color: #000; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr auto; gap: 30px; align-items: end; padding-top: 30px; border-top: 1px solid rgba(239,231,218,.16); }
.contact-social { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; font-weight: 600; font-variation-settings: "wdth" 95; }
.contact-social a { position: relative; }
.contact-social a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s cubic-bezier(.7,0,.2,1); }
.contact-social a:hover::after { transform: scaleX(1); transform-origin: left; }
.contact-time { font-family: var(--serif); font-size: 18px; line-height: 1.35; color: var(--ash); font-variant-numeric: tabular-nums; }
.contact-time span { color: var(--bone); }
.contact-again { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-variation-settings: "wdth" 88; padding: 1.3em 2em; border: 1px solid var(--bone); border-radius: 999px; transition: background .3s, color .3s; }
.contact-again:hover { background: var(--molten); color: #000; border-color: var(--molten); }
.contact-legal { color: var(--ash); }

.magnet { will-change: transform; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.magnet.is-pull { transition: transform .15s linear; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
/* Portrait screens: the film fills the frame, so the back type sits on top of it */
@media (max-aspect-ratio: 4/5) {
  .film { --f: 0%; }
  .world--back { z-index: 5; mix-blend-mode: overlay; }
  .hero-intro { top: 12vh; max-width: 16em; font-size: clamp(17px, 1.5vw, 22px); }

  /* Hero Name: Big, bold cinematic styling like PC, perfectly aligned on 2 lines with CHAURASIYA unbroken */
  .hero-name {
    top: auto;
    bottom: 19vh;
    left: var(--gutter);
    right: var(--gutter);
    transform: none;
    display: flex;
    flex-wrap: wrap;
    font-size: clamp(38px, 10.4vw, 76px);
    line-height: .84;
    font-weight: 900;
    font-variation-settings: "wdth" 115;
    letter-spacing: -.035em;
    text-transform: uppercase;
  }
  .hn-word {
    display: inline-flex;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .hn.sp {
    width: 100%;
    height: 0;
    display: block;
  }

  /* Film Flash / IMPACT sizing: dramatic and big like PC, but fits inside phone viewport */
  .flash b {
    font-size: min(22vw, 32vh);
    letter-spacing: -.045em;
    max-width: 96vw;
    text-align: center;
  }

  /* 3D background typography kept big and cinematic */
  .wi.xxl { font-size: clamp(90px, 22vw, 420px); }
  .wi.xl  { font-size: clamp(56px, 11vw, 200px); }
  .wi.l   { font-size: clamp(38px, 7vw, 120px); }
  .wi.m   { font-size: clamp(22px, 3.4vw, 54px); }
  .wi.serif { font-size: clamp(22px, 3vw, 48px); }
  .wi.line > span { font-size: clamp(24px, 3.8vw, 54px); width: min(88vw, 14em); line-height: 1.05; }
  .index-name { font-size: 11vw; filter: blur(12px); }
}

@media (max-width: 760px) {
  :root { --ui: 10px; }
  .nav { grid-template-columns: 1fr auto; padding: 14px var(--gutter); }
  .nav-mark { display: none; }
  .nav-right { gap: 12px; font-size: 12px; }
  .nav-sound span { display: none; }
  .hud { grid-template-columns: 1fr 1fr; padding: 14px var(--gutter); font-size: 11px; }
  .hud-bar { display: none; }

  /* Menu: fully visible items, responsive typography, scrollable */
  .menu {
    grid-template-columns: 1fr;
    padding: 72px var(--gutter) 28px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    align-content: center;
  }
  .menu-preview { display: none; }
  .menu-list {
    display: flex;
    flex-direction: column;
    gap: 1.4vh;
    margin: auto 0;
  }
  .menu-list li { overflow: visible; }
  .menu-list a {
    font-size: clamp(20px, 6vw, 36px);
    line-height: 1.08;
    letter-spacing: -.02em;
    white-space: normal;
  }
  .menu-list a::before {
    font-size: 10px;
    transform: translateY(-0.8em);
  }
  .menu-foot { position: static; margin-top: 18px; font-size: 11px; }

  /* Hero Name fallback for narrow screens: Big, bold 2 lines with CHAURASIYA unbroken */
  .hero-name {
    top: auto;
    bottom: 19vh;
    left: var(--gutter);
    right: var(--gutter);
    transform: none;
    display: flex;
    flex-wrap: wrap;
    font-size: clamp(38px, 10.4vw, 76px);
    line-height: .84;
    font-weight: 900;
    font-variation-settings: "wdth" 115;
    letter-spacing: -.035em;
    text-transform: uppercase;
  }
  .hn-word {
    display: inline-flex;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .hn.sp {
    width: 100%;
    height: 0;
    display: block;
  }

  /* Flash b fallback */
  .flash b {
    font-size: min(22vw, 32vh);
    letter-spacing: -.045em;
    max-width: 96vw;
    text-align: center;
  }

  /* 3D background typography fallback */
  .wi.xxl { font-size: clamp(90px, 22vw, 420px); }
  .wi.xl  { font-size: clamp(56px, 11vw, 200px); }
  .wi.l   { font-size: clamp(38px, 7vw, 120px); }
  .wi.m   { font-size: clamp(22px, 3.4vw, 54px); }
  .wi.serif { font-size: clamp(22px, 3vw, 48px); }
  .wi.line > span { font-size: clamp(24px, 3.8vw, 54px); width: min(88vw, 14em); line-height: 1.05; }
  .index-name { font-size: 11vw; filter: blur(12px); }

  .screen { inset: 9vh 3vw 7vh; }
  .screen-title { top: 40%; font-size: clamp(70px, 16vw, 220px); }
  .disc { top: 44%; width: 74vw; }
  .screen-meta { left: 14px; right: 14px; bottom: 76px; width: auto; }
  .screen-meta p { display: none; }
  .screen-cta { left: 14px; right: auto; bottom: 16px; font-size: 10px; padding: 1.1em 1.6em; }
  .screen-mark { right: 8%; top: 18%; }
  .screen-bar { grid-template-columns: 1fr auto; font-size: 11px; }
  .screen-bar span:first-child { display: none; }
  .about-cols { grid-template-columns: 1fr; gap: 20px; }
  .svc a { grid-template-columns: 1fr; gap: 10px; }
  .svc-preview { display: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 20px; }
  .contact-again { justify-self: start; }
  .hero-foot { bottom: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .hero-cue i::after { animation: none; }
  .stage-inner.is-shake { animation: none; }
}

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