/* Freefall: Nishchal Soni 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: 22vw; line-height: .8; font-weight: 900; font-variation-settings: "wdth" 125; letter-spacing: -.05em; 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(38px, 9.4vw, 140px); line-height: .8; font-weight: 900; font-variation-settings: "wdth" 125; letter-spacing: -.045em; text-transform: uppercase;
  color: var(--bone); white-space: nowrap;
  transform-origin: 50% 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: .24em; }
.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: 10vh;
  margin-left: auto;
  width: min(100%, 860px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  font-family: var(--serif);
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 1.45;
  color: var(--ash);
}
.about-cols p { margin-bottom: 14px; }
.about-cols strong { color: var(--bone); }
.about-block { display: flex; flex-direction: column; gap: 10px; }
.about-kicker {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--molten);
  margin-bottom: 6px;
}
.about-timeline {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.02em;
  line-height: 1.4;
  color: var(--ash);
}
.about-timeline li {
  position: relative;
  padding-left: 14px;
  border-left: 2px solid rgba(255, 178, 63, 0.4);
}
.about-timeline strong { color: #ffffff; font-weight: 700; }
.about-timeline span { color: var(--ash); font-size: 11px; }
.link-inline {
  color: var(--molten);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
  display: inline-block;
}
.link-inline:hover { color: #ffffff; }

/* Creative Instagram section */
.about-creative {
  margin-top: 8vh;
  margin-left: auto;
  width: min(100%, 860px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
}
.creative-card {
  padding: 26px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.3s, transform 0.3s, background 0.3s;
}
.creative-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.05);
}
.creative-card--private {
  border-color: rgba(255, 90, 30, 0.3);
  background: radial-gradient(circle at top right, rgba(255, 90, 30, 0.09), transparent 70%), rgba(255, 255, 255, 0.02);
}
.creative-card__badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--molten);
  margin-bottom: 10px;
  font-family: var(--display);
}
.creative-card h4 {
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 800;
  margin-bottom: 8px;
  font-family: var(--display);
}
.creative-card h4 a {
  color: var(--bone);
  transition: color 0.2s;
}
.creative-card h4 a:hover {
  color: var(--molten);
}
.creative-card p {
  font-family: var(--serif);
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.45;
  color: var(--ash);
}
.creative-card p em {
  color: var(--bone);
  font-style: italic;
}

.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; }

/* =========================================================
   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(34px, 7vw, 150px); line-height: .9; font-weight: 900; font-variation-settings: "wdth" 100; letter-spacing: -.05em; transition: color .3s; overflow-wrap: anywhere; }
.contact-mail:hover { color: var(--molten); }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) auto auto;
  gap: 28px 40px;
  align-items: start;
  padding-top: 36px;
  border-top: 1px solid rgba(239, 231, 218, 0.16);
}
.contact-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-label {
  font-family: var(--display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--molten);
}
.contact-social {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  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-name { top: auto; bottom: 19vh; flex-wrap: wrap; font-size: clamp(36px, 16vw, 110px); line-height: .84; }
  .hn.sp { width: 100%; height: 0; }
  .hero-intro { top: 12vh; max-width: 16em; }
}
@media (max-width: 768px) {
  :root { --ui: 10px; }
  .nav { grid-template-columns: 1fr auto; }
  .nav-mark { display: none; }
  .nav-right { gap: 18px; }
  .hud { grid-template-columns: 1fr 1fr; }
  .hud-bar { display: none; }
  .menu { grid-template-columns: 1fr; }
  .menu-preview { display: none; }
  
  /* 3D typography world scaling for phones */
  .wi.xxl { font-size: clamp(48px, 13vw, 90px); }
  .wi.xl  { font-size: clamp(32px, 8.5vw, 60px); }
  .wi.l   { font-size: clamp(22px, 5.8vw, 36px); }
  .wi.m   { font-size: clamp(15px, 3.8vw, 22px); }
  .wi.serif { font-size: clamp(17px, 4.2vw, 26px); }
  .wi.line > span { font-size: clamp(19px, 5vw, 30px); width: min(88vw, 15em); }
  .wi.cta > span { font-size: 10px; padding: 0.85em 1.35em; }

  /* Work section phone adaptation */
  .screen { inset: 9vh 3vw 7vh; }
  .screen-title {
    top: 36%;
    left: 10px;
    font-size: clamp(28px, 8vw, 54px);
    letter-spacing: -.03em;
    max-width: 90vw;
    white-space: normal;
  }
  .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; }
  .screen-mark { right: 8%; top: 18%; }
  .screen-bar { grid-template-columns: 1fr auto; }
  .screen-bar span:first-child { display: none; }

  /* About & Manifesto */
  .about { padding: 14vh var(--gutter) 10vh; }
  .manifesto { font-size: clamp(26px, 7vw, 48px); }
  .about-cols { grid-template-columns: 1fr; gap: 20px; }
  .svc a { grid-template-columns: 1fr; gap: 10px; }
  .svc-preview { display: none; }

  /* Contact section */
  .contact-mail { font-size: clamp(22px, 6.5vw, 36px); }
  .contact-grid { grid-template-columns: 1fr; }
  .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; }


/* =========================================================
   SECTION 1: AWAKENING MEADOW HERO SECTION
   ========================================================= */
.hero-track {
  height: 320vh;
  position: relative;
  width: 100%;
  z-index: 20;
}

.hero-awakening {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #000;
}

.hero__ripple-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero__layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.4s ease-out;
  pointer-events: auto;
}

.hero__layer--closed {
  z-index: 2;
  background: url('../images/hero/eyeclosed.png') center center / cover no-repeat;
}

.hero__layer--open {
  z-index: 3;
  background: url('../images/hero/eyeopen.png') center center / cover no-repeat;
}

.ripple-mount {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.ripple-mount canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.meadow-wind-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
}

.hero__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 40%, rgba(0, 0, 0, 0.45) 80%, rgba(0, 0, 0, 0.8) 100%),
              linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, transparent 30%, transparent 70%, #0a0a0a 100%);
  pointer-events: none;
  z-index: 5;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 50px 6vw;
}

.hero__status-group {
  display: flex;
  align-items: center;
  gap: 16px;
  pointer-events: auto;
  flex-wrap: wrap;
}

.hero__badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 18px;
  border-radius: 40px;
  font-family: var(--display, monospace);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: #f5f5f5;
  width: fit-content;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
}

.hero__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff3c3c;
  box-shadow: 0 0 10px #ff3c3c;
  animation: pulseHero 2s infinite ease-in-out;
}

.hero__status-dot--awakening {
  background: #f59e0b;
  box-shadow: 0 0 12px #f59e0b;
  animation: pulseHero 0.8s infinite ease-in-out;
}

.hero__status-dot--awake {
  background: #10b981;
  box-shadow: 0 0 12px #10b981;
  animation: pulseHero 3s infinite ease-in-out;
}

.hero__awaken-bar {
  width: 140px;
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
  position: relative;
}

.hero__awaken-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff3c3c, #f59e0b 60%, #10b981 100%);
  border-radius: 999px;
  transition: width 0.15s ease-out;
  box-shadow: 0 0 8px rgba(255, 60, 60, 0.6);
}

@keyframes pulseHero {
  0%, 100% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; }
}

.hero__title-box {
  pointer-events: auto;
  max-width: 650px;
  margin-top: auto;
  margin-bottom: 30px;
}

.hero__title {
  font-family: var(--display, sans-serif);
  font-size: clamp(52px, 8.5vw, 115px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
}

.hero__title-line {
  color: #ffffff;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}

.hero__title-line--gradient {
  background: linear-gradient(135deg, #ff3c3c 0%, #ff6b6b 50%, #990000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-family: var(--serif, serif);
  font-size: clamp(15px, 1.6vw, 20px);
  color: #e0e0e0;
  font-style: italic;
  line-height: 1.5;
  max-width: 480px;
  margin-bottom: 24px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.hero__socials {
  display: flex;
  gap: 14px;
}

.hero__social-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.hero__social-icon:hover {
  background: #ff3c3c;
  border-color: #ff3c3c;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 25px rgba(255, 60, 60, 0.5);
}

.hero__scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  align-self: center;
}

.hero__scroll-mouse {
  width: 24px;
  height: 40px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  position: relative;
  display: flex;
  justify-content: center;
}

.hero__scroll-wheel {
  width: 4px;
  height: 8px;
  background: #ff3c3c;
  border-radius: 2px;
  margin-top: 6px;
  animation: scrollWheel 2s infinite ease-in-out;
}

@keyframes scrollWheel {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

.hero__scroll-text {
  font-family: var(--display, monospace);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
  .hero__layer--closed {
    background-image: url('../images/hero/eyeclosed-mobile.png');
  }
  .hero__layer--open {
    background-image: url('../images/hero/eyeopen-mobile.png');
  }
  .hero__overlay {
    padding: max(22px, env(safe-area-inset-top, 22px)) 5vw max(16px, env(safe-area-inset-bottom, 16px));
  }
  .hero__status-group {
    gap: 8px;
    width: 100%;
    justify-content: space-between;
  }
  .hero__badge-pill {
    padding: 6px 12px;
    font-size: 9.5px;
    letter-spacing: 0.12em;
  }
  .hero__awaken-bar {
    width: 80px;
    height: 5px;
  }
  .hero__title-box {
    margin-bottom: 12px;
    max-width: 100%;
  }
  .hero__title {
    font-size: clamp(34px, 11vw, 68px);
    line-height: 0.92;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
  }
  .hero__subtitle {
    font-size: 13.5px;
    line-height: 1.4;
    margin-bottom: 16px;
    max-width: 100%;
  }
  .hero__socials {
    gap: 10px;
  }
  .hero__social-icon {
    width: 38px;
    height: 38px;
  }
  .hero__social-icon svg {
    width: 17px;
    height: 17px;
  }
  .hero__scroll-indicator {
    gap: 6px;
  }
  .hero__scroll-mouse {
    width: 18px;
    height: 28px;
    border-radius: 9px;
  }
  .hero__scroll-wheel {
    width: 3px;
    height: 6px;
    margin-top: 4px;
  }
  .hero__scroll-text {
    font-size: 9px;
    letter-spacing: 0.18em;
  }
}
