/* ============ Theme ============ */
:root {
  --bg: #070505;
  --bg-2: #0f0a09;
  --ink: #f3ece6;
  --muted: #a3958c;
  --red: #e0261b;
  --ember: #ff7a1a;
  --gold: #ffb347;
  --line: rgba(255, 140, 60, 0.22);
  --glass: rgba(255, 255, 255, 0.04);
  --display: "Anton", "Impact", sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 64px);
}

*, *::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; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-loading { 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; }
::selection { background: var(--red); color: #fff; }

.mono { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; }
.eyebrow { color: var(--ember); margin: 0 0 1rem; }

/* ============ Loader ============ */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: var(--bg);
  transition: opacity .9s ease, visibility .9s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__inner { width: min(320px, 80vw); text-align: center; }
.loader__inner p { color: var(--muted); margin: 0 0 .5rem; }
.loader__count { font-family: var(--display); font-size: clamp(4rem, 14vw, 8rem); line-height: 1; color: var(--red); }
.loader__bar { height: 2px; background: rgba(255,255,255,.08); margin-top: 1rem; overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red), var(--gold)); transition: width .2s; }

/* ============ Overlays ============ */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-5%, 3%); } 40% { transform: translate(3%, -6%); }
  60% { transform: translate(-7%, 2%); } 80% { transform: translate(4%, 5%); } 100% { transform: translate(0, 0); }
}
.vignette { position: fixed; inset: 0; z-index: 89; pointer-events: none; background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.55) 100%); }
.letterbox { position: fixed; left: 0; right: 0; height: 9vh; background: #000; z-index: 80; pointer-events: none; transform-origin: center; }
.letterbox--top { top: 0; }
.letterbox--bottom { bottom: 0; }

.cursor {
  position: fixed; top: 0; left: 0; z-index: 95; pointer-events: none;
  width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  border: 1px solid rgba(255,160,80,.7);
  box-shadow: 0 0 24px rgba(255,100,30,.35);
  transition: width .25s, height .25s, margin .25s, background .25s;
  opacity: 0;
}
.cursor.is-hover { width: 70px; height: 70px; margin: -35px 0 0 -35px; background: rgba(255,90,30,.12); }
@media (hover: none) { .cursor { display: none; } }

/* ============ Nav ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 85;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 18px var(--gutter);
  mix-blend-mode: normal;
}
.nav__logo { font-family: var(--display); font-size: 1.5rem; letter-spacing: .04em; }
.nav__links { display: flex; gap: clamp(12px, 2.4vw, 36px); }
.nav__links a { font-family: var(--mono); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); transition: color .2s; }
.nav__links a:hover { color: var(--ink); }
.sound { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.sound__bars { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.sound__bars i { width: 2px; height: 3px; background: var(--ember); transition: height .2s; }
.sound[aria-pressed="true"] .sound__bars i { animation: eq .9s ease-in-out infinite; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(2) { animation-delay: .2s; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(3) { animation-delay: .4s; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(4) { animation-delay: .1s; }
@keyframes eq { 0%,100% { height: 3px; } 50% { height: 14px; } }
.nav__toggle { display: none; }
@media (max-width: 760px) {
  .sound__label { display: none; }
  .nav { gap: .5rem; }
  .nav__toggle {
    display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; margin-left: auto;
    position: relative; z-index: 2;
  }
  .nav__toggle span { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform .3s; }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav__links {
    position: fixed; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center;
    gap: 1.6rem; padding: 0 var(--gutter); background: rgba(7,5,5,.97);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; }
  .nav__links a { font-family: var(--display); font-size: clamp(2.2rem, 11vw, 3.4rem); letter-spacing: .02em; color: var(--ink); }
  .nav__logo, .sound { position: relative; z-index: 2; }
}

/* ============ Hero ============ */
.hero { position: relative; height: 600vh; }
.hero__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero__canvas, .hero__fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__fallback { display: none; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, transparent 25%, transparent 55%, rgba(0,0,0,.75) 100%); pointer-events: none; }

.chapter { position: absolute; z-index: 2; opacity: 0; padding: 0 var(--gutter); }
.chapter__line { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(2.2rem, 6vw, 5.5rem); line-height: .95; margin: 0; max-width: 12ch; text-shadow: 0 4px 40px rgba(0,0,0,.6); }
.chapter--1, .chapter--3, .chapter--4 { top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; }
.chapter--1 { right: 0; text-align: right; }
.chapter--1 .chapter__line { margin-left: auto; }
.chapter--2 { left: 0; right: 0; bottom: 14vh; text-align: center; }
.chapter--2 .chapter__line { margin: 0 auto; }
.chapter--3 { left: 0; }
.chapter--4 { right: 0; text-align: right; }
.chapter--4 .chapter__line { margin-left: auto; }

.chapter--title { left: 0; right: 0; bottom: 11vh; filter: drop-shadow(0 10px 40px rgba(224, 38, 27, .4)); }
.welcome { color: var(--gold); }
.title {
  font-family: var(--display); font-weight: 400; text-transform: uppercase; margin: 0;
  font-size: clamp(4rem, 17vw, 17rem); line-height: .82; letter-spacing: -.01em;
  background: linear-gradient(180deg, #ff4a2a 0%, var(--red) 55%, #8d0e08 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  word-break: break-word;
}
.title__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; margin-top: 1rem; max-width: 1200px; }
.title__role { margin: 0; font-family: var(--mono); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; }
.title__tag { margin: 0; color: var(--muted); max-width: 40ch; }

.scroll-hint { position: absolute; z-index: 3; left: 50%; bottom: calc(9vh + 18px); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--muted); }
.scroll-hint i { width: 1px; height: 36px; background: linear-gradient(var(--ember), transparent); animation: drip 1.6s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.timecode { position: absolute; z-index: 3; right: var(--gutter); bottom: calc(9vh + 18px); color: rgba(255,255,255,.55); }
.timecode::before { content: "● REC  "; color: var(--red); }

/* ============ Scenes common ============ */
.scene { position: relative; padding: clamp(90px, 14vh, 160px) var(--gutter); }
.scene__head { position: relative; z-index: 2; max-width: 1400px; margin: 0 auto clamp(40px, 7vh, 80px); }
.scene__title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(3rem, 9vw, 8rem); line-height: .9; margin: 0; }
.scene__sub { color: var(--muted); margin: 1rem 0 0; max-width: 46ch; }
.link-underline { position: relative; }
.link-underline::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(.3); transform-origin: left; transition: transform .3s; }
.link-underline:hover::after { transform: scaleX(1); }

/* ============ About ============ */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 100px); align-items: center; max-width: 1400px; margin: 0 auto; }
.about__media { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 4px; }
.about__media img { width: 100%; height: 100%; object-fit: cover; object-position: 30% center; filter: sepia(.35) contrast(1.05); transform: scale(1.15); }
.about__caption { position: absolute; left: 16px; bottom: 16px; color: rgba(255,255,255,.75); }
.about__text p { color: #d8ccc4; font-size: clamp(1rem, 1.25vw, 1.15rem); margin: 0 0 1.1rem; max-width: 52ch; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 2rem 0; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.stat__num { font-family: var(--display); font-size: clamp(2.4rem, 4.5vw, 4rem); line-height: 1; color: var(--ember); }
.stat__label { font-family: var(--mono); font-size: .65rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.about__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; color: var(--muted); }
.about__meta b { color: var(--ink); font-weight: 400; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about__media { aspect-ratio: 4 / 3; } }

/* ============ Arsenal ============ */
.arsenal { overflow: hidden; }
.arsenal__bg, .journey__bg, .credits__bg { position: absolute; inset: 0; z-index: 0; }
.arsenal__bg img, .journey__bg img, .credits__bg img { width: 100%; height: 100%; object-fit: cover; }
.arsenal__bg::after, .journey__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, rgba(7,5,5,.72) 30%, rgba(7,5,5,.72) 70%, var(--bg) 100%); }
.tools { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; max-width: 1400px; margin: 0 auto; perspective: 900px; }
.tool {
  position: relative; display: flex; align-items: center; gap: 16px; padding: 22px;
  background: linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.01));
  border: 1px solid rgba(255,255,255,.08); border-radius: 14px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transform-style: preserve-3d; transition: border-color .3s, box-shadow .3s;
}
.tool:hover { border-color: rgba(255,122,26,.6); box-shadow: 0 0 40px rgba(255,90,20,.25), inset 0 0 30px rgba(255,90,20,.08); }
.tool__icon {
  flex: none; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 12px;
  background: radial-gradient(circle at 30% 30%, #3a1d12, #120907); border: 1px solid rgba(255,122,26,.35);
  font-family: var(--display); font-size: 1.3rem; color: var(--gold);
}
.tool__icon img { width: 30px; height: 30px; object-fit: contain; }
.tool__name { font-weight: 600; margin: 0; }
.tool__note { margin: 0; color: var(--muted); font-size: .85rem; }

/* ============ Journey ============ */
.journey { position: relative; }
.journey__pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.journey__head { position: relative; z-index: 2; padding: 0 var(--gutter); margin-bottom: 4vh; }
.journey__track { position: relative; z-index: 2; display: flex; gap: clamp(24px, 4vw, 60px); padding: 40px var(--gutter) 0; width: max-content; }
.journey__line { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: rgba(255,255,255,.08); }
.journey__line span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red), var(--gold)); box-shadow: 0 0 18px var(--ember); }
.milestone { position: relative; width: clamp(260px, 26vw, 360px); flex: none; }
.milestone::before { content: ""; position: absolute; top: -46px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--ember); box-shadow: 0 0 16px var(--ember); }
.milestone__year { font-family: var(--display); font-size: clamp(3rem, 6vw, 5.5rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255,179,71,.8); }
.milestone__card { margin-top: 1rem; padding: 22px; border-radius: 12px; background: rgba(15,10,9,.75); border: 1px solid var(--line); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.milestone__card h3 { margin: 0 0 .4rem; font-size: 1.1rem; }
.milestone__card p { margin: 0; color: var(--muted); font-size: .92rem; }
/* mobile + short landscape screens: vertical timeline */
@media (max-width: 760px), (max-height: 560px) {
  .journey__pin { height: auto; padding: 90px 0; }
  .journey__track { flex-direction: column; width: auto; padding: 0 var(--gutter) 0 calc(var(--gutter) + 28px); }
  .journey__line { left: calc(var(--gutter) + 5px); right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .journey__line span { width: 100%; height: 0; }
  .milestone { width: auto; }
  .milestone::before { top: 22px; left: -28px; }
}

/* ============ Work / posters ============ */
.posters { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: clamp(16px, 2vw, 28px); max-width: 1400px; margin: 0 auto; perspective: 1200px; }
.poster {
  position: relative; display: block; aspect-ratio: 4 / 5.6; border-radius: 10px; overflow: hidden;
  background: #120a08; border: 1px solid rgba(255,255,255,.07);
  transform-style: preserve-3d; will-change: transform;
}
.poster__art { position: absolute; inset: 0; }
.poster__art img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.poster:hover .poster__art img { transform: scale(1.07); }
.poster__art--placeholder { background:
  radial-gradient(circle at var(--px, 50%) 30%, rgba(255,120,40,.55), transparent 45%),
  radial-gradient(circle at 50% 120%, rgba(224,38,27,.7), transparent 60%),
  linear-gradient(160deg, #1a0d0a, #050303); }
.poster__art--placeholder::after { content: "ADD PROJECT IMAGE"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-family: var(--mono); font-size: .62rem; letter-spacing: .2em; color: rgba(255,255,255,.35); border: 1px dashed rgba(255,255,255,.25); padding: 8px 12px; white-space: nowrap; }
.poster__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, transparent 30%, transparent 45%, rgba(0,0,0,.92) 100%); }
.poster__top { position: absolute; top: 16px; left: 16px; right: 16px; display: flex; justify-content: space-between; color: rgba(255,255,255,.8); }
.poster__body { position: absolute; left: 18px; right: 18px; bottom: 18px; }
.poster__title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.9rem, 2.8vw, 2.6rem); line-height: .95; margin: 0 0 .4rem; }
.poster__tagline { margin: 0 0 .8rem; color: #d8ccc4; font-size: .9rem; }
.poster__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.poster__tags span { font-family: var(--mono); font-size: .6rem; letter-spacing: .15em; text-transform: uppercase; padding: 4px 8px; border: 1px solid rgba(255,255,255,.25); border-radius: 99px; }
.poster__glare { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255,200,150,.18), transparent 45%); opacity: 0; transition: opacity .3s; }
.poster:hover .poster__glare { opacity: 1; }

/* ============ Credits ============ */
.credits { position: relative; min-height: 100vh; padding: 18vh var(--gutter) 0; overflow: hidden; text-align: center; }
.credits__bg img { object-position: center 60%; }
.credits__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, rgba(7,5,5,.85) 35%, rgba(7,5,5,.55) 70%, rgba(7,5,5,.9) 100%); }
.credits__roll, .credits__cta, .footer { position: relative; z-index: 2; }
.credit { margin: 0 0 1.8rem; }
.credit__role { display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); }
.credit__who { display: block; font-family: var(--display); text-transform: uppercase; font-size: clamp(1.5rem, 3vw, 2.4rem); letter-spacing: .02em; }
.credits__cta { margin: 14vh auto 0; }
.credits__title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(3.2rem, 11vw, 10rem); line-height: .88; margin: 0 0 2.2rem; }
.btn {
  display: inline-flex; align-items: center; gap: .6rem; padding: 18px 30px; border-radius: 99px;
  background: var(--red); color: #fff; font-weight: 600; box-shadow: 0 10px 50px rgba(224,38,27,.45);
  transition: transform .25s, box-shadow .25s; word-break: break-all;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 60px rgba(224,38,27,.6); }
.socials { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; }
.socials a { font-family: var(--mono); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.socials a:hover { color: var(--ink); }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 16vh; padding: 28px 0 calc(9vh + 20px); border-top: 1px solid rgba(255,255,255,.08); color: var(--muted); font-size: .62rem; }

/* ============ Reduced motion / no-JS fallback ============ */
@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .hero { height: 100vh; }
  .hero__canvas { display: none; }
  .hero__fallback { display: block; }
  .chapter--1, .chapter--2, .chapter--3, .chapter--4, .scroll-hint { display: none; }
  .chapter--title { opacity: 1; }
  .letterbox { display: none; }
}

/* ============ Personal digital capabilities refinements ============ */
[hidden] { display: none !important; }
.title {
  max-width: none;
  white-space: pre-line;
  font-size: clamp(3.1rem, 9vw, 8.8rem);
  line-height: .82;
}
.title__role { color: #f3ece6; }
.title__tag { max-width: 42ch; }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 2rem 0 1.8rem;
}
.pillar {
  min-height: 132px;
  padding: 16px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.01));
}
.pillar__label { color: var(--gold); margin: 0 0 .7rem; font-size: .62rem; }
.pillar__text { color: #d8ccc4; font-size: .88rem; line-height: 1.5; margin: 0; }
.about__meta { justify-content: flex-start; gap: 1rem 2.4rem; font-size: .62rem; }
.about__meta b { margin-left: .5rem; }

.tool__copy { min-width: 0; }
.tool__group { color: var(--gold); font-size: .55rem; letter-spacing: .18em; margin: 0 0 .3rem; }
.tool__name { line-height: 1.25; }
.tool__note { line-height: 1.5; margin-top: .35rem; }
.tool--compact { min-height: 116px; padding: 18px; }
.tool--compact .tool__icon { width: 46px; height: 46px; font-size: 1rem; }
.tool--compact .tool__note { font-size: .8rem; }

.journey__head { max-width: 1400px; width: 100%; margin-left: auto; margin-right: auto; }
.journey__head .scene__sub { max-width: 54ch; }
.milestone__year { font-size: clamp(2.8rem, 5.5vw, 4.8rem); }
.milestone__card { min-height: 150px; }
.milestone__card h3 { color: var(--ink); }

.toolkit { isolation: isolate; overflow: hidden; }
.toolkit__bg { position: absolute; inset: 0; z-index: -1; opacity: .36; }
.toolkit__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.toolkit__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,5,5,.94), rgba(7,5,5,.78) 45%, rgba(7,5,5,.96)); }
.toolkit-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.toolkit__note { max-width: 1400px; margin: 2.2rem auto 0; color: var(--muted); text-align: right; font-size: .6rem; }

.credits__intro { position: relative; z-index: 2; max-width: 960px; margin: 0 auto; }
.credits__roll { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem 3rem; max-width: 850px; margin: 0 auto; }
.credit { text-align: left; border-bottom: 1px solid rgba(255,255,255,.12); padding: 0 0 1rem; margin: 0; }
.credit__role { color: var(--gold); margin-bottom: .3rem; }
.credit__who { font-family: var(--body); font-size: clamp(1rem, 1.6vw, 1.3rem); font-weight: 500; text-transform: none; line-height: 1.35; }
.credits__cta { max-width: 900px; margin-top: 12vh; }
.credits__title { font-size: clamp(3rem, 9vw, 8rem); }
.credits__note { max-width: 52ch; margin: -1rem auto 2rem; color: #d8ccc4; font-size: 1rem; }
.footer { text-transform: uppercase; }

@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { min-height: 0; }
}
@media (max-width: 760px) {
  .title { max-width: none; font-size: clamp(2.5rem, 10vw, 4.7rem); }
  .title__meta { display: block; }
  .title__role { font-size: .66rem; line-height: 1.5; }
  .title__tag { margin-top: .45rem; font-size: .84rem; }
  .about__meta { display: grid; }
  .credits__roll { grid-template-columns: 1fr; gap: .9rem; }
  .credits__cta { margin-top: 9vh; }
  .toolkit__note { text-align: left; line-height: 1.6; }
}


/* ============ Scene 02 and hero chapter refinements ============ */
/* Keep the second cinematic statement clear of the centered figure and ripple rings. */
.chapter--2 {
  left: clamp(24px, 5vw, 80px);
  right: auto;
  top: 0;
  bottom: 0;
  width: min(42vw, 540px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  padding: 0;
}
.chapter--2 .eyebrow {
  text-align: left;
  max-width: 100%;
}
.chapter--2 .chapter__line {
  max-width: 12ch;
  margin: 0;
  text-align: left;
  text-wrap: balance;
}

/* Scene 02 capabilities: give cards a consistent reading edge and text start. */
#skillsGrid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
}
#skillsGrid .tool {
  min-height: 166px;
  height: 100%;
  align-items: flex-start;
  text-align: left;
  padding: 24px;
}
#skillsGrid .tool__icon {
  margin-top: 2px;
}
#skillsGrid .tool__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
#skillsGrid .tool__group,
#skillsGrid .tool__name,
#skillsGrid .tool__note {
  width: 100%;
  text-align: left;
}

@media (max-width: 900px) {
  #skillsGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  /* Chapter captions are intentionally hidden on mobile; the name reveal remains. */
  .chapter--1, .chapter--2, .chapter--3, .chapter--4, .scroll-hint { display: none; }
  #skillsGrid { grid-template-columns: 1fr; }
  #skillsGrid .tool { min-height: 0; padding: 20px; }
  .chapter--title .title {
    white-space: nowrap;
    font-size: clamp(2.8rem, 13vw, 4.7rem);
    letter-spacing: -.025em;
  }
}

/* ============ Responsive fixes (mobile / tablet / short screens) ============ */
/* Soft dark band behind the fixed nav so it stays readable over content. */
.nav::before {
  content: ""; position: absolute; inset: 0 0 -24px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(7,5,5,.85), rgba(7,5,5,0));
}
/* Pinned timeline: keep the heading clear of the nav and scale it to the screen height. */
.journey__pin { padding-top: 64px; }
.journey .scene__title { font-size: clamp(2.4rem, min(9vw, 13vh), 8rem); }
@media (max-width: 760px), (max-height: 560px) {
  .journey__pin { padding-top: 90px; }
}
/* Touch screens: no sticky hover glow after tapping a card. */
@media (hover: none) {
  .tool:hover { border-color: rgba(255,255,255,.08); box-shadow: none; }
}
