/* ------------------------------------------------------------
   NEUE HAAS GROTESK (licencia comercial: Monotype / Adobe Fonts)
   Copia tus archivos con licencia en /fonts con estos nombres
   (o cambia las rutas). Si no existen, se usa Inter Tight.
   Si la usas vía Adobe Fonts, añade su <link> en index.html y
   pon aquí el nombre de familia que te indique Adobe.
   ------------------------------------------------------------ */
@font-face { font-family: "Neue Haas Grotesk"; src: url("fonts/NeueHaasGrotesk-Roman.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Neue Haas Grotesk"; src: url("fonts/NeueHaasGrotesk-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Neue Haas Grotesk"; src: url("fonts/NeueHaasGrotesk-Bold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --black: #050506;
  --ink: #0c0c0e;
  --stone: #2b2b2e;
  --smoke: #8c8c92;
  --mist: #c4c3bf;
  --bone: #ecebe7;
  --neon: #ffffff;
  --neon-glow: 0 0 10px rgba(255, 255, 255, 0.55), 0 0 2px #fff;
  --sans: "Neue Haas Grotesk", "Neue Haas Grotesk Display Pro", "neue-haas-grotesk-display", "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gut: clamp(20px, 3.2vw, 48px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--black);
  color: var(--bone);
  font-family: var(--sans);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }
::selection { background: #fff; color: #000; }
:focus-visible { outline: 1px solid #fff; outline-offset: 5px; }

#gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; outline: none; }

.vignette {
  position: fixed; inset: 0; pointer-events: none;
  background: radial-gradient(120% 95% at 50% 45%, transparent 50%, rgba(0, 0, 0, 0.7));
}
.grain {
  position: fixed; inset: -50%; pointer-events: none; opacity: 0.055;
  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 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 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 33% { transform: translate(-3%, 2%); }
  66% { transform: translate(2%, -3%); } 100% { transform: translate(0, 0); }
}

/* ---------- header ---------- */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: var(--gut); pointer-events: none;
}
.top > * { pointer-events: auto; }
.brand { display: flex; flex-direction: column; gap: 7px; text-decoration: none; }
.brand-name { font-weight: 600; font-size: 15px; letter-spacing: 0.01em; }
.brand-role { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; color: var(--smoke); text-transform: uppercase; }
.menu { display: flex; gap: 30px; }
.menu button {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--smoke); position: relative; padding: 4px 0; transition: color 0.4s;
}
.menu button::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px;
  background: #fff; box-shadow: var(--neon-glow);
  transform: scaleX(0); transform-origin: left; transition: transform 0.7s var(--ease);
}
.menu button:hover, .menu button.is-active { color: var(--bone); }
.menu button:hover::after, .menu button.is-active::after { transform: scaleX(1); }

/* ---------- intro choreography ---------- */
.brand-role, .menu, .hint, .index { opacity: 0; transition: opacity 1.4s var(--ease), transform 1.4s var(--ease); }
.menu { transform: translateY(-6px); }
body.ui-in .brand-role { opacity: 1; transition-delay: 0.2s; }
body.ui-in .menu { opacity: 1; transform: none; transition-delay: 0.4s; }
body.ui-in .hint { opacity: 1; transition-delay: 0.9s; }
body.ui-in .index { opacity: 1; transition-delay: 1.1s; }
body.played .hint { opacity: 0.35; transition-delay: 0s; }
.brand-name { opacity: 0; transition: opacity 0.35s linear; }
body.name-landed .brand-name { opacity: 1; }

/* loader: 000 → 100 */
.loader {
  position: fixed; inset: 0; z-index: 60; background: var(--black);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  transition: opacity 0.9s var(--ease) 0.55s, visibility 0s linear 1.5s;
}
.loader-count { font-family: var(--mono); font-size: 13px; letter-spacing: 0.32em; color: #fff; font-variant-numeric: tabular-nums; padding-left: 0.32em; }
.loader-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.3em; color: var(--smoke); text-transform: uppercase; padding-left: 0.3em; }
.loader-track { width: 240px; height: 1px; position: relative; display: flex; justify-content: center; }
.loader-line {
  flex-shrink: 0; width: 100%; height: 1px; background: #fff; box-shadow: var(--neon-glow);
  transform: scaleX(0); transition: width 0.75s cubic-bezier(0.7, 0, 0.2, 1);
}
.loader.done { opacity: 0; visibility: hidden; }
.loader.done .loader-line { width: 100vw; }
.loader.done .loader-count, .loader.done .loader-label { opacity: 0; transition: opacity 0.3s; }

/* full name reveal → lands in the header */
.intro-name {
  position: fixed; left: 0; top: 0; z-index: 25; pointer-events: none; white-space: nowrap;
  font-weight: 600; font-size: min(6.2vw, 110px); line-height: 1; letter-spacing: -0.04em;
  transform-origin: 0 0; will-change: transform;
}
.intro-name .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; }
.intro-name .c { display: inline-block; transform: translateY(110%); transition: transform 0.95s var(--ease); }
.intro-name.in .c { transform: none; }
.intro-name.fly { transition: transform 1.05s cubic-bezier(0.7, 0, 0.15, 1), opacity 0.35s linear 0.9s; }
.intro-name.gone { opacity: 0; }

.skip {
  position: fixed; right: var(--gut); bottom: var(--gut); z-index: 70;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--smoke);
  padding: 8px 0; transition: color 0.4s, opacity 0.6s;
}
.skip:hover { color: #fff; text-shadow: var(--neon-glow); }
body.intro-done .skip { opacity: 0; pointer-events: none; }

/* ---------- project reveal ---------- */
.info {
  position: fixed; left: var(--gut); top: 50%; transform: translateY(-50%);
  width: min(48vw, 760px); z-index: 10; pointer-events: none;
}
.info > * {
  opacity: 0; transform: translateY(-10px);
  transition: opacity 1.3s var(--ease), transform 1.5s var(--ease);
}
body.has-info .info > * { opacity: 1; transform: none; transition-duration: 1.2s, 1.4s; }
body.has-info .info > :nth-child(1) { transition-delay: 0.1s; }
body.has-info .info > :nth-child(2) { transition-delay: 0.2s; }
body.has-info .info > :nth-child(3) { transition-delay: 0.36s; }
body.has-info .info > :nth-child(5) { transition-delay: 0.62s; }
body.has-info .info > :nth-child(6) { transition-delay: 0.78s; }
.info .info-line { transform: scaleX(0); transform-origin: left; }
body.has-info .info .info-line { transform: scaleX(1); transition: transform 1.6s var(--ease) 0.48s, opacity 0.6s 0.48s; }

.info-code {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.24em; color: #fff;
  text-shadow: var(--neon-glow);
}
.info-title {
  font-weight: 600; font-size: clamp(56px, 8.6vw, 156px); line-height: 0.84;
  letter-spacing: -0.05em; text-transform: uppercase; margin: 22px 0 26px; white-space: nowrap;
}
.info-meta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--smoke); margin-bottom: 30px; }
.info-line { height: 1px; width: 120px; background: #fff; box-shadow: var(--neon-glow); }
.info-desc { margin-top: 26px; color: var(--mist); font-size: 17px; line-height: 1.5; max-width: 40ch; }
.enter {
  margin-top: 36px; display: inline-flex; align-items: center; gap: 18px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 16px 24px; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 999px;
  transition: border-color 0.5s, box-shadow 0.5s, background 0.5s;
}
body.has-info .enter { pointer-events: auto; }
.enter:hover { border-color: #fff; box-shadow: 0 0 22px rgba(255, 255, 255, 0.22), inset 0 0 14px rgba(255, 255, 255, 0.07); }
.enter span { transition: transform 0.6s var(--ease); }
.enter:hover span { transform: translateX(6px); }

/* ---------- hint + index ---------- */
.hint {
  position: fixed; left: 50%; bottom: var(--gut); transform: translateX(-50%); z-index: 5;
  text-align: center; pointer-events: none;
}
.hint-row {
  display: flex; align-items: center; gap: 14px; justify-content: center;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mist);
}
.hint-row i { width: 18px; height: 1px; background: rgba(255, 255, 255, 0.3); }
.hint em { display: block; margin-top: 10px; font-style: normal; font-size: 12px; color: var(--smoke); letter-spacing: 0.02em; }

.index { position: fixed; right: var(--gut); bottom: var(--gut); z-index: 10; display: flex; gap: 4px; }
.index button {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; color: var(--smoke);
  padding: 8px 7px; position: relative; transition: color 0.4s;
}
.index button::after {
  content: ""; position: absolute; left: 7px; right: 7px; bottom: 2px; height: 1px;
  background: #fff; box-shadow: var(--neon-glow); transform: scaleX(0); transition: transform 0.6s var(--ease);
}
.index button:hover { color: var(--bone); }
.index button.is-active { color: #fff; }
.index button.is-active::after { transform: scaleX(1); }

/* ---------- flash ---------- */
.flash {
  position: fixed; inset: 0; z-index: 30; pointer-events: none; opacity: 0;
  background: radial-gradient(60% 60% at 50% 50%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.15) 55%, transparent 80%);
}

/* ---------- pages ---------- */
.page {
  position: fixed; inset: 0; z-index: 40; overflow-y: auto; overflow-x: hidden;
  background: var(--black); opacity: 0; visibility: hidden;
  transition: opacity 0.7s var(--ease), visibility 0s linear 0.7s;
  overscroll-behavior: contain;
}
.page.open { opacity: 1; visibility: visible; transition: opacity 1s var(--ease), visibility 0s; }
.page-bar {
  position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center;
  padding: 22px var(--gut);
  background: linear-gradient(var(--black) 40%, rgba(5, 5, 6, 0));
}
.back, .page-tag {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mist);
}
.back { padding: 8px 0; transition: color 0.4s, text-shadow 0.4s; }
.back:hover, .back:focus-visible { color: #fff; text-shadow: var(--neon-glow); }
.back:focus-visible { outline: none; }
.page-tag { color: var(--smoke); }
.page-inner { max-width: 1320px; margin: 0 auto; padding: 0 var(--gut) 18vh; }

.ph { min-height: 88vh; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 6vh; }
.ph-code { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--smoke); display: flex; gap: 14px; }
.ph-code b { color: #fff; font-weight: 500; text-shadow: var(--neon-glow); }
.ph-title {
  font-size: clamp(60px, 14.5vw, 236px); font-weight: 600; letter-spacing: -0.055em;
  line-height: 0.84; text-transform: uppercase; margin-top: 3vh;
}
.ph-title a { text-decoration: none; }
.neon-line { height: 1px; background: #fff; box-shadow: var(--neon-glow); margin: 5vh 0 4vh; transform-origin: left; }
.neon-line.r { transform: scaleX(0); }
.neon-line.r.in { transform: scaleX(1); transition: transform 1.8s var(--ease), opacity 0.4s; }
.ph-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gut); }
.ph-meta dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--smoke); margin-bottom: 10px; }
.ph-meta dd { font-size: 15px; color: var(--bone); }

.lead {
  font-size: clamp(24px, 2.8vw, 42px); line-height: 1.2; letter-spacing: -0.02em; font-weight: 500;
  max-width: 22ch; margin: 14vh 0;
}
.shot {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 3px;
  background: radial-gradient(120% 130% at 25% 15%, #1e1e21, #0a0a0b 70%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex; align-items: flex-end; padding: 18px;
}
.shot span { position: relative; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--smoke); }

.shots-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gut); margin-top: var(--gut); }
.shots-2 .shot { aspect-ratio: 4 / 5; }

.block {
  display: grid; grid-template-columns: 1fr 2fr; gap: var(--gut);
  padding: 11vh 0; border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.block:first-of-type { margin-top: 12vh; }
.block h2 { font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--smoke); }
.block p { font-size: clamp(17px, 1.5vw, 22px); line-height: 1.55; color: var(--mist); max-width: 52ch; }

.rows { border-top: 1px solid rgba(255, 255, 255, 0.08); margin-top: 8vh; }
.row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
  padding: 3.4vh 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); text-decoration: none;
  transition: padding 0.6s var(--ease);
}
.row span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--smoke); }
.row strong { font-weight: 500; font-size: clamp(22px, 3vw, 44px); letter-spacing: -0.02em; }
a.row:hover { padding-left: 14px; }
a.row:hover strong { text-shadow: var(--neon-glow); }

.next {
  width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; text-align: left;
  margin-top: 14vh; padding-top: 6vh; border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.next span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--smoke); }
.next strong { font-weight: 600; font-size: clamp(48px, 10vw, 160px); letter-spacing: -0.05em; line-height: 0.86; text-transform: uppercase; transition: text-shadow 0.6s, letter-spacing 0.9s var(--ease); }
.next:hover strong { text-shadow: 0 0 24px rgba(255, 255, 255, 0.35); letter-spacing: -0.04em; }

.r { opacity: 0; transform: translateY(34px); transition: opacity 1.2s var(--ease), transform 1.4s var(--ease); }
.r.in { opacity: 1; transform: none; }

.noscript { position: fixed; inset: 0; display: grid; place-items: center; font-family: var(--mono); color: var(--mist); }

/* ---------- mobile ---------- */
@media (max-width: 860px) {
  .menu { gap: 16px; }
  .brand-role { max-width: 46vw; line-height: 1.5; }
  .info { top: auto; bottom: 92px; transform: none; width: auto; right: var(--gut); }
  .info-title { font-size: clamp(40px, 12vw, 64px); margin: 16px 0 18px; }
  .info-desc { font-size: 14px; margin-top: 18px; }
  .enter { margin-top: 22px; padding: 14px 20px; }
  .index { left: 50%; right: auto; transform: translateX(-50%); bottom: 22px; }
  body.ui-in .index { transform: translateX(-50%); }
  .hint { bottom: 70px; }
  body.has-info .hint { opacity: 0; }
  .ph-meta { grid-template-columns: 1fr; gap: 22px; }
  .block { grid-template-columns: 1fr; gap: 18px; padding: 8vh 0; }
  .shots-2 { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  * { transition-duration: 0.01s !important; }
}

/* ---------- media from project folders ---------- */
.shot img, .shot video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot.has-media span { display: none; }
.shot-video { margin-bottom: var(--gut); }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gut); margin-top: var(--gut); }
.gallery .shot { aspect-ratio: 4 / 3; }
.gallery .shot:nth-child(3n + 1) { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
@media (max-width: 860px) { .gallery { grid-template-columns: 1fr; } }

/* ---------- project hero: the die face becomes the background ---------- */
.hero-bg {
  position: absolute; top: 0; left: 0; width: 100%; height: 100vh; z-index: 0; pointer-events: none;
  background-position: center; background-repeat: no-repeat; background-size: 162vh 162vh;
  opacity: 0; transform: scale(1);
  transition: opacity 0.9s var(--ease), transform 2.6s var(--ease), filter 2.6s var(--ease);
}
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(5, 5, 6, 0.1) 25%, var(--black) 100%); }
.hero-bg.on { opacity: 1; }
.hero-bg.on.settle { opacity: 0.3; transform: scale(1.08); filter: blur(2px); }
.page-bar { z-index: 3; }
.page-inner { position: relative; z-index: 1; }

/* ---------- contact: a final screen ---------- */
.contact { min-height: calc(100vh - 90px); display: flex; flex-direction: column; justify-content: center; padding-bottom: 6vh; }
.contact-title {
  font-weight: 600; font-size: clamp(42px, 8.4vw, 156px); line-height: 0.86;
  letter-spacing: -0.05em; text-transform: uppercase;
}
.contact .neon-line { margin: 6vh 0 0; }
.contact .rows { margin-top: 0; border-top: 0; }

/* ---------- radiograph lightbox (intro) ---------- */
.xray {
  position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: 0;
  background:
    radial-gradient(ellipse 60% 70% at 46% 30%, rgba(200, 208, 216, 0.16), rgba(140, 148, 156, 0.05) 50%, transparent 78%);
  mix-blend-mode: screen;
}
.xray-tag {
  position: absolute; left: var(--gut); bottom: var(--gut);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.24em; color: rgba(255, 255, 255, 0.55);
}

/* intro: keep the radiograph clean */
body.xray-on .hint, body.xray-on .index { opacity: 0 !important; transition-delay: 0s !important; }

/* ---------- lightbox: examine a detail ---------- */
.shot.has-media { cursor: zoom-in; }
.shot.has-media img { transition: transform 1.2s var(--ease); }
.shot.has-media:hover img { transform: scale(1.015); }
.lb {
  position: fixed; inset: 0; z-index: 80; background: rgba(5, 5, 6, 0.97);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity 0.6s var(--ease), visibility 0s linear 0.6s;
}
.lb.open { opacity: 1; visibility: visible; transition: opacity 0.7s var(--ease), visibility 0s; }
.lb-top {
  position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center;
  padding: 22px var(--gut);
}
.lb-count, .lb-close, .lb-nav { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mist); }
.lb-count { color: #fff; text-shadow: var(--neon-glow); }
.lb-close:hover, .lb-nav:hover { color: #fff; text-shadow: var(--neon-glow); }
.lb-fig { display: flex; flex-direction: column; align-items: center; max-width: 92vw; }
.lb-fig img {
  display: block; max-width: 88vw; max-height: 78vh; object-fit: contain;
  transform: scale(0.985); opacity: 0; transition: transform 0.9s var(--ease), opacity 0.6s var(--ease);
}
.lb.open .lb-fig img.ready { transform: none; opacity: 1; }
.lb-cap { margin-top: 18px; font-size: 13.5px; line-height: 1.5; color: var(--mist); max-width: 62ch; text-align: center; min-height: 1.5em; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); padding: 20px var(--gut); font-size: 16px; }
.lb-prev { left: 0; }
.lb-next { right: 0; }

/* ---------- cursor: a small white point that grows over the object ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  html.has-cursor, html.has-cursor * { cursor: none !important; }
  .cursor {
    display: grid; place-items: center;
    position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none;
    width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%;
    background: #fff; color: #050506;
    transform: translate3d(-100px, -100px, 0) scale(0.1);
    transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), opacity 0.3s;
    will-change: transform;
  }
  .cursor span {
    font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; padding-left: 0.22em;
    opacity: 0; transition: opacity 0.3s;
  }
  .cursor.is-die span { opacity: 1; transition-delay: 0.1s; }
  .cursor.is-die { box-shadow: 0 0 24px rgba(255, 255, 255, 0.35); }
  .cursor.is-link { background: transparent; box-shadow: inset 0 0 0 1px #fff; }
  .cursor.is-hidden { opacity: 0; }
}

/* ---------- about: engraved portrait ---------- */
.about {
  min-height: 92vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: var(--gut); align-items: end; padding: 14vh 0 6vh;
}
.about-title { margin-top: 3vh; font-size: clamp(54px, 7.6vw, 136px); font-weight: 600; letter-spacing: -0.055em; line-height: 0.86; text-transform: uppercase; }
.about-lead { margin-top: 1vh; max-width: 30ch; font-size: clamp(22px, 2.3vw, 36px); line-height: 1.22; letter-spacing: -0.02em; font-weight: 500; }
.about-portrait { position: relative; justify-self: end; width: min(100%, 520px); }
.about-photo { position: relative; overflow: hidden; }
.about-photo img {
  display: block; width: 100%; height: auto;
  clip-path: inset(0 0 100% 0); transition: clip-path 1.9s cubic-bezier(0.65, 0, 0.25, 1) 0.35s;
}
.about-scan {
  position: absolute; left: 0; right: 0; top: 0; height: 1px; background: #fff;
  box-shadow: 0 0 14px #fff, 0 0 3px #fff; opacity: 0;
}
.about-portrait.is-revealed .about-photo img { clip-path: inset(0 0 0 0); }
.about-portrait.is-revealed .about-scan { animation: aboutScan 1.9s cubic-bezier(0.65, 0, 0.25, 1) 0.35s both; }
@keyframes aboutScan { 0% { top: 0; opacity: 1; } 92% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.about-portrait figcaption {
  display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--smoke);
}
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; padding-top: 12vh; }
  .about-portrait { justify-self: start; width: 100%; }
}

/* SIDE A page: the app's background, edge to edge */
.page.has-layout { background: #111111; }
.page.has-layout .page-bar { background: linear-gradient(#111111 40%, rgba(17, 17, 17, 0)); }

/* ---------- scroll cue: a falling point of light ---------- */
.scroll-cue {
  position: fixed; left: 50%; bottom: 34px; z-index: 6; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px; pointer-events: none;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--mist);
  opacity: 0; transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.scroll-cue span { padding-left: 0.32em; animation: cueBreath 2.6s ease-in-out infinite; }
.scroll-cue i { position: relative; display: block; width: 1px; height: 64px; background: rgba(255, 255, 255, 0.16); overflow: hidden; }
.scroll-cue b {
  position: absolute; left: -2px; top: -10px; width: 5px; height: 10px; border-radius: 3px;
  background: #fff; box-shadow: 0 0 10px #fff, 0 0 2px #fff;
  animation: cueFall 2.2s cubic-bezier(0.6, 0, 0.3, 1) infinite;
}
@keyframes cueFall { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(78px); opacity: 0; } }
@keyframes cueBreath { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
.page.open .scroll-cue { opacity: 1; transition-delay: 1.4s; }
.page.open.scrolled .scroll-cue { opacity: 0; transform: translate(-50%, 12px); transition-delay: 0s; }
.page.has-layout .scroll-cue { bottom: 96px; }
@media (prefers-reduced-motion: reduce) { .scroll-cue b, .scroll-cue span { animation: none; } }

/* ---------- apparition: an incomplete line of light ---------- */
.ghost-line {
  position: fixed; left: 50%; top: 50%; z-index: 1; pointer-events: none;
  width: min(72vw, 1100px); height: 1px; transform: translate(-50%, -50%) scaleX(0.2);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15) 22%, #fff 46%, #fff 54%, rgba(255, 255, 255, 0.15) 78%, transparent);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.35);
  opacity: 0; transition: opacity 1.6s var(--ease), transform 2.6s var(--ease);
}
.ghost-line.on { opacity: 0.9; transform: translate(-50%, -50%) scaleX(1); }
