/* =====================================================================
   THE STORY OF LOKESH D N — styles
   ===================================================================== */
:root {
  --navy: #101820;
  --deep: #172B40;
  --blue: #258BDA;
  --sky: #80C8FF;
  --white: #F4F7FA;
  --gold: #F5B65B;

  --ink-soft: rgba(244, 247, 250, .92);
  --ink-dim: rgba(244, 247, 250, .72);
  --sky-bright: #A8DBFF;
  --glass: rgba(16, 24, 32, .46);
  --glass-line: rgba(128, 200, 255, .22);

  --f-head: "Space Grotesk", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
  --f-accent: "Sora", "Inter", system-ui, sans-serif;

  --nav-h: 72px;
  --gutter: clamp(20px, 6vw, 96px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -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 {
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font: 400 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 16px; }

/* ---------- Scroll progress ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; background: rgba(244,247,250,.08); }
.progress__bar {
  display: block; height: 100%; width: 100%;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--blue), var(--sky) 70%, var(--gold));
  box-shadow: 0 0 12px rgba(37,139,218,.7);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter);
  transition: background .5s var(--ease), backdrop-filter .5s;
}
.nav.is-scrolled.is-clear { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.nav.is-scrolled {
  background: linear-gradient(180deg, rgba(16,24,32,.72), rgba(16,24,32,.28));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.nav__brand {
  font: 600 15px/1 var(--f-head); letter-spacing: .28em; white-space: nowrap;
  text-shadow: 0 1px 12px rgba(0,0,0,.4);
}
.nav__links { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav__links a {
  position: relative; font: 500 13px/1 var(--f-body); letter-spacing: .04em;
  color: var(--ink-soft); padding: 8px 0; transition: color .3s;
  text-shadow: 0 1px 10px rgba(0,0,0,.5);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--sky); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--white); }
.nav__links a.is-active::after { transform: scaleX(1); }
.nav__links .nav__cta {
  padding: 10px 18px; border-radius: 999px; color: var(--white);
  border: 1px solid rgba(128,200,255,.45); background: rgba(37,139,218,.16);
  transition: background .3s, border-color .3s;
}
.nav__links .nav__cta::after { display: none; }
.nav__links .nav__cta:hover, .nav__links .nav__cta.is-active { background: rgba(37,139,218,.4); border-color: var(--sky); }

.nav__tools { display: flex; align-items: center; gap: 10px; }
.nav__count { display: none; font: 500 12px/1 var(--f-head); letter-spacing: .12em; color: var(--ink-dim); }
.nav__count b { color: var(--white); font-weight: 600; }

.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(244,247,250,.2); background: rgba(16,24,32,.35);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: border-color .3s, background .3s;
}
.icon-btn:hover { border-color: var(--sky); background: rgba(37,139,218,.25); }
.icon-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn .i-play { fill: currentColor; display: none; }
.icon-btn[aria-pressed="false"] .i-pause { display: none; }
.icon-btn[aria-pressed="false"] .i-play { display: block; }

.nav__menu { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav__menu span { display: block; width: 16px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease); }
.nav__menu[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav__menu[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 45;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 12px) 28px 40px;
  background: rgba(16,24,32,.9);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  opacity: 0; transition: opacity .4s var(--ease);
}
.menu[hidden] { display: none; }
.menu.is-open { opacity: 1; }
.menu__list { width: 100%; }
.menu__list a {
  display: flex; align-items: baseline; gap: 16px;
  padding: 13px 0; border-bottom: 1px solid rgba(244,247,250,.08);
  font: 500 clamp(22px, 6.4vw, 30px)/1.1 var(--f-head); letter-spacing: -.01em;
}
.menu__list i { font: 500 12px/1 var(--f-head); font-style: normal; color: var(--sky); letter-spacing: .1em; width: 22px; }
.menu__list a.is-active { color: var(--sky); }

/* ---------- Chapter rail ---------- */
.rail { position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 40; }
.rail__list { display: flex; flex-direction: column; gap: 14px; }
.rail__item a { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 2px 0; }
.rail__label {
  font: 500 11px/1 var(--f-head); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap;
  color: var(--white); opacity: 0; transform: translateX(6px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
  text-shadow: 0 1px 8px rgba(0,0,0,.6);
}
.rail__tick { width: 14px; height: 2px; border-radius: 2px; background: rgba(244,247,250,.35); transition: width .45s var(--ease), background .45s; }
.rail__item a:hover .rail__label, .rail__item a:focus-visible .rail__label { opacity: 1; transform: none; }
.rail__label { background: rgba(16,24,32,.7); padding: 6px 10px; border-radius: 6px; }
.rail__item.is-active .rail__tick { width: 34px; background: var(--sky); box-shadow: 0 0 10px rgba(128,200,255,.8); }
.rail__item.is-done .rail__tick { background: rgba(128,200,255,.55); }

/* ---------- Video stage ---------- */
.stage { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: var(--navy); }
.stage__layers { position: absolute; inset: 0; }
.layer {
  position: absolute; inset: 0; opacity: 0;
  background: var(--navy) center / cover no-repeat;
  will-change: opacity, transform;
}
.layer:first-child { opacity: 1; }
.layer video { width: 100%; height: 100%; object-fit: cover; }
.stage__grade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(16,24,32,.55) 100%),
    linear-gradient(180deg, rgba(16,24,32,.45) 0, transparent 18%, transparent 78%, rgba(16,24,32,.55) 100%);
}
.stage__grain {
  position: absolute; inset: -50%; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.stage__blackout { position: absolute; inset: 0; background: #070b10; opacity: 0; pointer-events: none; }

.loader {
  position: fixed; left: var(--gutter); bottom: 26px; z-index: 40;
  display: flex; align-items: center; gap: 10px;
  font: 500 11px/1 var(--f-head); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-dim);
  opacity: 0; transition: opacity .4s; pointer-events: none;
}
.loader.is-on { opacity: 1; }
.loader__ring {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(128,200,255,.25); border-top-color: var(--sky);
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Scenes ---------- */
main { position: relative; z-index: 2; }
.scene { position: relative; padding-bottom: 70vh; }
.scene--hero { padding-bottom: 35vh; }
.scene--long { padding-bottom: 110vh; }
.scene--final { padding-bottom: 60vh; }

.scene__pin {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  display: flex; align-items: center; justify-content: flex-end;
  padding: calc(var(--nav-h) + 24px) calc(var(--gutter) + 40px) 64px var(--gutter);
}
.scene__pin::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(270deg, rgba(16,24,32,.55) 0%, rgba(16,24,32,.4) 30%, rgba(16,24,32,0) 60%);
  opacity: var(--shade, 1);
}
[data-align="bottom-right"] .scene__pin { align-items: flex-end; }
[data-align="bottom-right"] .scene__pin::before {
  background:
    linear-gradient(0deg, rgba(16,24,32,.92) 0%, rgba(16,24,32,.7) 34%, rgba(16,24,32,0) 60%),
    linear-gradient(270deg, rgba(16,24,32,.55) 0%, rgba(16,24,32,0) 55%);
}

.scene__content { width: min(580px, 100%); position: relative; isolation: isolate; padding: 40px 44px 44px; }
.scene__content--wide { width: min(660px, 100%); }

/* Shaded reading panel behind each chapter's text */
.scene__content::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(16,24,32,.42) 0%, rgba(23,43,64,.30) 100%);
  border: 1px solid rgba(128,200,255,.16);
  box-shadow: 0 30px 80px rgba(5,10,16,.2), inset 0 1px 0 rgba(255,255,255,.06);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; transform: scale(.97);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.scene.is-revealed .scene__content::before,
.scene--hero .scene__content::before { opacity: 1; transform: none; }

/* Typography */
.eyebrow, .chapter-num {
  display: inline-flex; align-items: center; gap: 14px;
  font: 600 13px/1 var(--f-head); letter-spacing: .3em; text-transform: uppercase; color: var(--sky-bright);
  text-shadow: 0 1px 10px rgba(0,0,0,.6);
}
.eyebrow::before, .chapter-num::before {
  content: ""; width: 36px; height: 1px; background: currentColor; opacity: .8;
}
.chapter-num--gold { color: var(--gold); }

.chapter-title {
  margin: 18px 0 20px;
  font: 700 clamp(42px, 5.2vw, 84px)/.95 var(--f-head);
  letter-spacing: -.025em; text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,.35), 0 8px 40px rgba(0,0,0,.45);
}
.narration {
  font: 400 clamp(18px, 1.55vw, 23px)/1.65 var(--f-accent);
  color: #EEF4FA;
  text-shadow: 0 1px 3px rgba(0,0,0,.5), 0 2px 18px rgba(0,0,0,.6);
  max-width: 36ch;
}
.narration em { font-style: normal; font-weight: 600; color: var(--gold); }

/* Hero */
.hero__eyebrow { color: var(--gold); }
.hero__title {
  margin: 22px 0 22px;
  font: 700 clamp(40px, 4.8vw, 80px)/.92 var(--f-head);
  letter-spacing: -.03em; text-transform: uppercase;
  text-shadow: 0 6px 50px rgba(0,0,0,.35);
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; white-space: nowrap; }
@media (min-width: 761px) and (orientation: landscape), (min-width: 1101px) {
  .scene--hero .scene__content { width: min(500px, 100%); padding: 34px 36px 38px; }
  .scene--hero .scene__pin { padding-right: calc(var(--gutter) - 20px); }
  .scene--hero .hero__sub { font-size: clamp(13px, 1vw, 15px); }
}
.hero__title .line:first-child { font-size: .5em; letter-spacing: .02em; font-weight: 500; color: var(--ink-soft); }
.line--name > span {
  background: linear-gradient(100deg, #fff 30%, var(--sky) 75%, #fff 110%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub {
  font: 500 clamp(14px, 1.15vw, 17px)/1.8 var(--f-head);
  letter-spacing: .18em; text-transform: uppercase; color: #F4F7FA;
  text-shadow: 0 1px 12px rgba(0,0,0,.6);
  margin-bottom: 36px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  font: 600 14px/1 var(--f-head); letter-spacing: .14em; text-transform: uppercase;
  transition: transform .35s var(--ease), box-shadow .35s, background .35s;
}
.btn svg { width: 14px; height: 14px; fill: currentColor; }
.btn--glow {
  position: relative; color: #fff;
  background: linear-gradient(135deg, var(--blue), #1a6fb5);
  box-shadow: 0 0 0 1px rgba(128,200,255,.5) inset, 0 10px 30px rgba(37,139,218,.35);
}
.btn--glow::before {
  content: ""; position: absolute; inset: -2px; border-radius: inherit; z-index: -1;
  background: conic-gradient(from var(--a, 0deg), transparent 0 70%, var(--sky) 85%, transparent 100%);
  filter: blur(6px); opacity: .9;
  animation: orbit 4s linear infinite;
}
@property --a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes orbit { to { --a: 360deg; } }
.btn--glow:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--sky) inset, 0 14px 44px rgba(37,139,218,.6); }
.btn--lg { min-height: 58px; padding: 0 34px; margin-top: 32px; }

/* Scroll cue */
.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font: 500 10px/1 var(--f-head); letter-spacing: .3em; text-transform: uppercase; color: var(--ink-soft);
}
.scroll-cue__mouse { width: 22px; height: 34px; border-radius: 12px; border: 1.5px solid rgba(244,247,250,.6); display: flex; justify-content: center; padding-top: 6px; }
.scroll-cue__mouse span { width: 3px; height: 7px; border-radius: 2px; background: var(--white); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }

/* Chips (The Person) */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.chip, .glass {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 10px 30px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.06);
}
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 12px; border-radius: 999px;
  font: 500 15px/1 var(--f-head); letter-spacing: .01em;
}
.ico { width: 20px; height: 20px; flex: none; color: var(--sky); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Timeline (The Journey) */
.timeline { position: relative; margin-top: 36px; padding-left: 4px; }
.timeline__track { position: absolute; left: 11px; top: 10px; bottom: 10px; width: 2px; background: rgba(244,247,250,.14); border-radius: 2px; }
.timeline__fill { position: absolute; inset: 0; transform-origin: 50% 0; transform: scaleY(0); background: linear-gradient(180deg, var(--sky), var(--blue) 70%, var(--gold)); box-shadow: 0 0 10px rgba(128,200,255,.6); }
.timeline__list { display: grid; gap: 18px; }
.timeline__step { position: relative; display: flex; align-items: center; gap: 16px; padding-left: 34px; }
.timeline__dot {
  position: absolute; left: 1px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--navy); border: 2px solid rgba(244,247,250,.3);
  transition: border-color .4s, box-shadow .4s, background .4s;
}
.timeline__n { font: 500 11px/1 var(--f-head); letter-spacing: .16em; color: var(--ink-dim); width: 22px; }
.timeline__t { font: 600 clamp(18px, 1.7vw, 24px)/1.1 var(--f-head); letter-spacing: -.01em; color: var(--ink-dim); transition: color .4s; }
.timeline__step.is-lit .timeline__dot { border-color: var(--sky); background: var(--blue); box-shadow: 0 0 0 4px rgba(37,139,218,.2), 0 0 16px rgba(128,200,255,.7); }
.timeline__step.is-lit .timeline__t { color: var(--white); }
.timeline__step--gold.is-lit .timeline__dot { border-color: var(--gold); background: var(--gold); box-shadow: 0 0 0 4px rgba(245,182,91,.2), 0 0 18px rgba(245,182,91,.7); }
.timeline__step--gold.is-lit .timeline__t { color: var(--gold); }

/* Skills (The Craft) */
.skills { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 30px; }
.skill { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 16px; transition: border-color .35s, transform .35s var(--ease); }
.skill:hover { border-color: rgba(128,200,255,.6); transform: translateY(-3px); }
.skill .ico { width: 28px; height: 28px; }
.skill h3 { font: 600 17px/1.25 var(--f-head); color: #fff; }
.skill .ico > * { stroke-dasharray: 100; stroke-dashoffset: 100; }
.skill.is-in .ico > * { animation: draw 1.4s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tags li {
  padding: 7px 13px; border-radius: 999px;
  font: 500 13px/1.2 var(--f-head); letter-spacing: .03em; color: #F4F7FA;
  border: 1px solid rgba(244,247,250,.18); background: rgba(16,24,32,.3);
}
.tags--blue li { color: var(--white); border-color: rgba(128,200,255,.45); background: rgba(37,139,218,.18); box-shadow: 0 0 18px rgba(37,139,218,.18); }

/* Projects (The Creations) */
.projects { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.project {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: 16px; transition: border-color .35s, transform .45s var(--ease);
}
.project:hover { border-color: rgba(128,200,255,.65); transform: translateY(-4px); }
.project__shot { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--deep), var(--navy)); }
.project__shot img { width: 100%; height: 100%; object-fit: cover; }
.project__body { padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 6px; }
.project__cat { font: 600 10.5px/1 var(--f-head); letter-spacing: .18em; text-transform: uppercase; color: var(--sky-bright); }
.project__name { font: 600 17px/1.25 var(--f-head); color: #fff; }
.project__go { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font: 500 12px/1 var(--f-body); color: var(--ink-dim); transition: color .3s; }
.project:hover .project__go { color: var(--white); }
.project__go svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; }
.project a::after { content: ""; position: absolute; inset: 0; }

/* Vision brand mark */
.brandmark {
  margin: -4px 0 18px;
  font: 700 clamp(28px, 3vw, 44px)/1 var(--f-head); letter-spacing: .14em;
  color: var(--white);
  text-shadow: 0 0 24px rgba(37,139,218,.65), 0 0 2px rgba(128,200,255,.8);
}
.brandmark span { color: var(--sky); }

/* Contacts (Final) */
.contacts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.contact {
  display: inline-flex; align-items: center; gap: 10px; min-height: 46px;
  padding: 8px 20px 8px 14px; border-radius: 16px;
  font: 600 15px/1.2 var(--f-head); color: #fff; transition: border-color .3s, background .3s;
}
.contact small { display: block; margin-bottom: 3px; font: 500 10px/1 var(--f-head); letter-spacing: .18em; text-transform: uppercase; color: var(--sky-bright); }
.contact .ico { width: 22px; height: 22px; }
.contact:hover { border-color: var(--sky); background: rgba(37,139,218,.28); }

/* Credits / fade-out */
.credits { position: relative; min-height: 120vh; display: flex; align-items: flex-end; justify-content: center; text-align: center; padding: 0 24px 18vh; }
.credits__inner { display: grid; justify-items: center; gap: 12px; }
.credits__end { font: 300 15px/1 var(--f-accent); letter-spacing: .3em; text-transform: uppercase; color: var(--ink-dim); }
.credits__name { font: 700 clamp(36px, 6vw, 80px)/1 var(--f-head); letter-spacing: -.02em; text-transform: uppercase; margin: 8px 0; }
.credits__meta { font: 500 13px/1.6 var(--f-head); letter-spacing: .14em; text-transform: uppercase; color: var(--sky); }
.credits__top { margin-top: 26px; font: 500 13px/1 var(--f-head); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); padding: 12px 18px; border-radius: 999px; border: 1px solid rgba(244,247,250,.2); }
.credits__top:hover { border-color: var(--sky); color: #fff; }
.credits__copy { margin-top: 40px; font-size: 12px; color: var(--ink-dim); }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .nav__menu { display: flex; }
  .nav__count { display: inline; }
  .rail { display: none; }
  .scene__pin { padding-right: var(--gutter); }
}

/* ---------- Mobile / portrait: dedicated composition ---------- */
@media (max-width: 760px), (orientation: portrait) and (max-width: 1100px) {
  :root { --nav-h: 60px; }
  .nav__brand { font-size: 13px; letter-spacing: .22em; }

  /* Text sits in the lower part of the screen, character stays in the upper/middle */
  .scene__pin {
    align-items: flex-end; justify-content: center;
    padding: calc(var(--nav-h) + 12px) 20px max(28px, env(safe-area-inset-bottom));
  }
  .scene__pin::before,
  [data-align="bottom-right"] .scene__pin::before {
    background: linear-gradient(0deg, rgba(16,24,32,.95) 0%, rgba(16,24,32,.82) 30%, rgba(16,24,32,.35) 52%, rgba(16,24,32,0) 66%);
  }
  .scene__content, .scene__content--wide { width: 100%; max-width: 560px; padding: 22px 20px 22px; }
  .scene__content::before { border-radius: 22px; background: linear-gradient(160deg, rgba(16,24,32,.5), rgba(23,43,64,.4)); }

  .chapter-title { font-size: clamp(34px, 10.5vw, 52px); margin: 12px 0 12px; }
  .narration { font-size: 16.5px; line-height: 1.6; max-width: none; }
  .scene__content .narration { text-shadow: 0 1px 12px rgba(0,0,0,.7); }
  .eyebrow, .chapter-num { font-size: 12px; letter-spacing: .24em; }
  .eyebrow::before, .chapter-num::before { width: 24px; }

  .scene--hero .scene__pin { padding-bottom: 84px; }
  .scene__pin { padding-left: 14px; padding-right: 14px; }
  .hero { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .hero__title { font-size: clamp(40px, 12.5vw, 64px); margin: 14px 0 14px; }
  .hero__sub { font-size: 13px; letter-spacing: .14em; margin-bottom: 24px; }
  .scroll-cue { bottom: 18px; }
  .scroll-cue__txt { display: none; }

  .chips { gap: 8px; margin-top: 18px; }
  .chip { padding: 8px 12px 8px 10px; font-size: 14px; }
  .chip .ico { width: 17px; height: 17px; }

  .timeline { margin-top: 20px; }
  .timeline__list { gap: 11px; }
  .timeline__t { font-size: 17px; }

  .skills { gap: 8px; margin-top: 18px; }
  .skill { flex-direction: row; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; }
  .skill .ico { width: 22px; height: 22px; }
  .skill h3 { font-size: 13.5px; }

  .tags { margin-top: 14px; gap: 6px; }
  .tags li { font-size: 12px; padding: 6px 10px; }
  .projects { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
  .project { flex-direction: row; border-radius: 12px; }
  .project__shot { display: none; }
  .project__body { padding: 10px 12px; gap: 5px; width: 100%; }
  .project__cat { font-size: 8.5px; letter-spacing: .14em; }
  .project__name { font-size: 13.5px; padding-right: 14px; }
  .project__go { position: absolute; right: 10px; top: 10px; margin: 0; }
  .project__go span { display: none; }

  .brandmark { font-size: 30px; margin: 0 0 12px; }
  .btn { min-height: 50px; padding: 0 22px; font-size: 13px; }
  .btn--lg { margin-top: 20px; width: 100%; justify-content: center; }
  .contacts { gap: 8px; margin-top: 14px; }
  .contacts li.wide { width: 100%; }
  .contacts li.social { flex: 1; }
  .contacts li.social .contact { justify-content: center; padding: 0 8px; gap: 7px; font-size: 13px; }
  .contacts li.social .ico { width: 18px; height: 18px; }
  .contact { min-height: 50px; font-size: 15px; width: 100%; }
  .loader { left: 20px; bottom: 14px; }
}

/* Short landscape screens (e.g. phone held sideways, small laptops) */
@media (max-height: 640px) and (orientation: landscape) {
  .scene__content { padding: 22px 28px 26px; }
  .chapter-title { font-size: clamp(30px, 4.4vw, 56px); margin: 10px 0 10px; }
  .hero__title { font-size: clamp(36px, 5.4vw, 76px); }
  .narration { font-size: 15px; }
  .chips, .skills, .timeline, .contacts, .tags { margin-top: 12px; }
  .timeline__list { gap: 8px; }
  .project__shot { display: none; }
  .btn--lg { margin-top: 16px; }
  .scroll-cue { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .skill .ico > * { stroke-dashoffset: 0; }
}
