/* =========================================================
   Sebastian Beltran — Portfolio
   Direction: "XR level-select". Night ink + clifford red,
   HUD corners, mono labels, every world has its own accent.
   ========================================================= */

/* ---------- Fonts (self-hosted) ---------- */
@font-face{font-family:"Orbitron";src:url("assets/fonts/orbitron-latin-400-normal.woff2") format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Orbitron";src:url("assets/fonts/orbitron-latin-700-normal.woff2") format("woff2");font-weight:700;font-display:swap}
@font-face{font-family:"Orbitron";src:url("assets/fonts/orbitron-latin-900-normal.woff2") format("woff2");font-weight:900;font-display:swap}
@font-face{font-family:"Poppins";src:url("assets/fonts/poppins-latin-300-normal.woff2") format("woff2");font-weight:300;font-display:swap}
@font-face{font-family:"Poppins";src:url("assets/fonts/poppins-latin-400-normal.woff2") format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Poppins";src:url("assets/fonts/poppins-latin-500-normal.woff2") format("woff2");font-weight:500;font-display:swap}
@font-face{font-family:"Poppins";src:url("assets/fonts/poppins-latin-600-normal.woff2") format("woff2");font-weight:600;font-display:swap}
@font-face{font-family:"Poppins";src:url("assets/fonts/poppins-latin-700-normal.woff2") format("woff2");font-weight:700;font-display:swap}
@font-face{font-family:"Caveat";src:url("assets/fonts/caveat-latin-600-normal.woff2") format("woff2");font-weight:600;font-display:swap}

/* ---------- Tokens ---------- */
:root {
  --ink: #0f0e13;
  --night: #1c1b22; /* original brand dark */
  --steel: #2a2a35; /* original brand surface */
  --mist: #8e8e93; /* original brand muted */
  --bone: #ece7df;
  --red: #da373d; /* clifford */
  --flame: #fc341c; /* logo red */
  --line: rgba(236, 231, 223, 0.1);
  --line-strong: rgba(236, 231, 223, 0.22);

  --f-display: "Orbitron", "Poppins", system-ui, sans-serif;
  --f-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Orbitron", "Poppins", system-ui, sans-serif;
  --f-hand: "Caveat", "Segoe Script", cursive;

  --wrap: 1240px;
  --gut: clamp(1.25rem, 4vw, 3rem);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --nav-h: 72px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--ink);
  color: #c9c5be;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* film grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
h1,
h2,
h3,
p,
dl,
dd,
figure,
blockquote {
  margin: 0;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
strong {
  color: var(--bone);
  font-weight: 600;
}
em {
  font-style: normal;
  color: var(--bone);
  background: linear-gradient(transparent 62%, rgba(218, 55, 61, 0.35) 62%);
}
:focus-visible {
  outline: 2px solid var(--flame);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection {
  background: var(--red);
  color: #fff;
}
.ico {
  width: 1.1em;
  height: 1.1em;
  flex: none;
}
.wrap {
  width: min(100% - var(--gut) * 2, var(--wrap));
  margin-inline: auto;
}
.skip {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--red);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  transition: top 0.2s;
}
.skip:focus {
  top: 1rem;
}

/* ---------- Scroll progress + pointer spotlight ---------- */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 120;
  pointer-events: none;
}
.progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--flame));
  transform-origin: 0 50%;
  transform: scaleX(0);
}
.spot {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(252, 52, 28, 0.08), transparent 65%);
}
.spot.on {
  opacity: 1;
}
@media (pointer: coarse) {
  .spot {
    display: none;
  }
}

/* ---------- Type helpers ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 1.1rem;
}
.eyebrow span:first-child {
  color: var(--flame);
}
.eyebrow span:first-child::after {
  content: "";
  display: inline-block;
  width: 2.6rem;
  height: 1px;
  background: var(--line-strong);
  vertical-align: middle;
  margin-left: 0.9rem;
}
.h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.9vw, 3rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
  color: var(--bone);
  text-wrap: balance;
}
.lead {
  text-wrap: pretty;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.6;
  color: #d8d3cb;
  max-width: 38em;
}
.section {
  position: relative;
  padding-block: clamp(5rem, 11vw, 9rem);
}

/* HUD corner brackets (reusable) */
.corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 0 solid var(--flame);
  pointer-events: none;
  z-index: 3;
}
.corner--tl {
  top: 0;
  left: 0;
  border-width: 2px 0 0 2px;
}
.corner--tr {
  top: 0;
  right: 0;
  border-width: 2px 2px 0 0;
}
.corner--bl {
  bottom: 0;
  left: 0;
  border-width: 0 0 2px 2px;
}
.corner--br {
  bottom: 0;
  right: 0;
  border-width: 0 2px 2px 0;
}

/* ---------- Buttons ---------- */
.btn {
  --h: 3.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  height: var(--h);
  padding-inline: 1.5rem;
  border-radius: 999px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.3s;
  will-change: transform;
}
.btn--sm {
  --h: 2.5rem;
  padding-inline: 1.1rem;
  font-size: 0.92rem;
}
.btn--solid {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 28px -10px rgba(252, 52, 28, 0.7);
}
.btn--solid:hover {
  background: var(--flame);
  box-shadow: 0 10px 34px -8px rgba(252, 52, 28, 0.85);
}
.btn--ghost {
  border: 1px solid var(--line-strong);
  color: var(--bone);
  background: rgba(15, 14, 19, 0.35);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  border-color: var(--bone);
  background: rgba(236, 231, 223, 0.08);
}
.btn .ico {
  transition: transform 0.3s var(--ease);
}
.btn:hover .ico {
  transform: translate(2px, -2px);
}
.btn:hover .ico use[href="#i-down"] {
  transform: none;
}

/* ---------- Reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  inset: 14px 0 auto 0;
  z-index: 100;
  padding-inline: var(--gut);
  pointer-events: none;
}
.nav__bar {
  pointer-events: auto;
  max-width: 1120px;
  margin-inline: auto;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0.7rem 0 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(15, 14, 19, 0.45);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  transition: background 0.3s, border-color 0.3s, transform 0.5s var(--ease);
}
.nav.is-solid .nav__bar {
  background: rgba(15, 14, 19, 0.82);
  border-color: var(--line-strong);
}
.nav.is-hidden .nav__bar {
  transform: translateY(-90px);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 1rem;
  color: var(--mist);
  letter-spacing: 0.01em;
}
.nav__brand b {
  color: var(--bone);
  font-weight: 700;
  margin-left: 0.28em;
}
.nav__brand img {
  width: 40px;
  height: 40px;
  transition: transform 0.6s var(--ease);
}
.nav__brand:hover img {
  transform: rotate(-12deg) scale(1.08);
}
.nav__links {
  display: flex;
  gap: 0.2rem;
}
.nav__links a {
  position: relative;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  font-size: 0.95rem;
  color: #b9b5ae;
  transition: color 0.2s, background 0.2s;
}
.nav__links a:hover {
  color: var(--bone);
}
.nav__links a.is-on {
  color: var(--bone);
  background: rgba(236, 231, 223, 0.08);
}
.nav__links a.is-on::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--flame);
}
.nav__tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.lang {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 2.5rem;
  padding-inline: 0.8rem;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--mist);
  border: 1px solid var(--line);
  transition: border-color 0.2s;
}
.lang:hover {
  border-color: var(--line-strong);
}
.lang i {
  width: 1px;
  height: 0.9em;
  background: var(--line-strong);
}
.lang span {
  transition: color 0.2s;
}
html[lang="en"] .lang [data-l="en"],
html[lang="es"] .lang [data-l="es"] {
  color: var(--bone);
  font-weight: 700;
}
.burger {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  position: relative;
}
.burger i {
  position: absolute;
  left: 50%;
  width: 16px;
  height: 2px;
  margin-left: -8px;
  background: var(--bone);
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.burger i:first-child {
  top: 15px;
}
.burger i:last-child {
  top: 22px;
}
.burger[aria-expanded="true"] i:first-child {
  top: 18px;
  transform: rotate(45deg);
}
.burger[aria-expanded="true"] i:last-child {
  top: 18px;
  transform: rotate(-45deg);
}
.sheet {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  padding: 6rem var(--gut) 3rem;
  background: rgba(15, 14, 19, 0.96);
  backdrop-filter: blur(24px);
  transition: opacity 0.35s;
}
.sheet a {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 8vw, 3rem);
  letter-spacing: 0.01em;
  color: var(--bone);
  padding-block: 0.1em;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.6s var(--ease), opacity 0.6s var(--ease), color 0.2s;
}
.sheet a:hover {
  color: var(--flame);
}
.nav.is-open .sheet {
  opacity: 1;
  pointer-events: auto;
}
.nav.is-open .sheet a {
  transform: none;
  opacity: 1;
}
.nav.is-open .sheet a:nth-child(2) {
  transition-delay: 0.05s;
}
.nav.is-open .sheet a:nth-child(3) {
  transition-delay: 0.1s;
}
.nav.is-open .sheet a:nth-child(4) {
  transition-delay: 0.15s;
}
.nav.is-open .nav__bar {
  background: transparent;
  border-color: transparent;
  backdrop-filter: none;
}

@media (max-width: 1080px) {
  .nav__links {
    display: none;
  }
  .burger {
    display: block;
  }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink) url("assets/optimized/360/CasaDelAlmirante.webp") center 55% / cover no-repeat;
  cursor: grab;
  touch-action: pan-y;
}
.hero.is-drag {
  cursor: grabbing;
}
.hero__pano {
  position: absolute;
  inset: 0;
  z-index: -3;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero__pano.ready {
  opacity: 1;
}
.hero__pano canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: linear-gradient(to top, var(--ink) 1%, rgba(15, 14, 19, 0.82) 22%, rgba(15, 14, 19, 0.2) 52%, rgba(15, 14, 19, 0.5) 100%),
    radial-gradient(120% 90% at 0% 100%, rgba(15, 14, 19, 0.75), transparent 60%);
}

/* HUD */
.hud {
  position: absolute;
  z-index: 2;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(236, 231, 223, 0.7);
  pointer-events: none;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}
.hud b {
  color: var(--bone);
  font-weight: 600;
}
.hud--tl {
  top: 104px;
  left: var(--gut);
  display: flex;
  gap: 1.4rem;
}
.hud--tr {
  top: 104px;
  right: var(--gut);
  text-align: right;
  display: grid;
  gap: 0.35rem;
}
.hud--tr small {
  font-size: 0.66rem;
  opacity: 0.7;
}
.hud__scene em {
  font-style: normal;
  background: none;
  color: var(--flame);
}
.hud__scene em + em {
  color: inherit;
}
.hud__scene b {
  margin-left: 0.8rem;
  display: inline-block;
  transition: opacity 0.5s, transform 0.5s var(--ease);
}
.hud__scene.swap b {
  opacity: 0;
  transform: translateY(6px);
}
.hero > .corner {
  width: 26px;
  height: 26px;
  border-color: rgba(236, 231, 223, 0.55);
  z-index: 2;
}
.hero > .corner--tl {
  top: 92px;
  left: calc(var(--gut) - 14px);
}
.hero > .corner--tr {
  top: 92px;
  right: calc(var(--gut) - 14px);
}
.hero > .corner--bl {
  bottom: 18px;
  left: calc(var(--gut) - 14px);
}
.hero > .corner--br {
  bottom: 18px;
  right: calc(var(--gut) - 14px);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(5.5rem, 12vh, 7.5rem);
  pointer-events: none;
}
.hero__content a,
.hero__content button {
  pointer-events: auto;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d9d4cb;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(15, 14, 19, 0.45);
  backdrop-filter: blur(8px);
  margin-bottom: 1.4rem;
}
.status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  animation: ping 2.2s infinite;
}
@keyframes ping {
  70% {
    box-shadow: 0 0 0 9px rgba(74, 222, 128, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
  }
}
.name {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 7.4vw, 6.6rem);
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: var(--bone);
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.45);
}
.name .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.04em;
}
.name .line > span {
  display: inline-block;
  transform: translateY(112%);
  animation: rise 1.1s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
.name .line--accent > span {
  padding-right: 0.06em;
  background: linear-gradient(95deg, var(--red) 15%, var(--flame) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 6px 30px rgba(0, 0, 0, 0.45));
}
@keyframes rise {
  to {
    transform: none;
  }
}
.role {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: clamp(1.4rem, 3vw, 2.2rem);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.2vw, 1.7rem);
  letter-spacing: 0.01em;
  color: var(--bone);
}
.role i {
  width: 3.2rem;
  height: 1px;
  background: var(--flame);
}
.role__tag {
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist);
}
.tagline {
  margin-top: 0.7rem;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: #cfcac2;
  max-width: 34em;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}
.hero__foot {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 1.6rem;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  pointer-events: none;
}
.hint {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(236, 231, 223, 0.6);
}
.hint .ico {
  width: 1.5em;
  height: 1.5em;
  animation: nudge 2.4s ease-in-out infinite;
}
@keyframes nudge {
  50% {
    transform: translateX(5px);
  }
}
.dots {
  display: flex;
  gap: 0.55rem;
  pointer-events: auto;
}
.dots button {
  position: relative;
  width: 2.1rem;
  height: 1.4rem;
}
.dots button::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  background: rgba(236, 231, 223, 0.28);
  transition: background 0.3s;
}
.dots button::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  width: 0;
  background: var(--flame);
}
.dots button.is-on::after {
  width: 100%;
  transition: width var(--dur, 8s) linear;
}
.dots button:hover::before {
  background: rgba(236, 231, 223, 0.6);
}

@media (max-width: 700px) {
  .hud--tl {
    display: none;
  }
  .hud--tr {
    left: var(--gut);
    right: auto;
    text-align: left;
    top: 88px;
  }
  .hint span {
    display: none;
  }
  .hero__content {
    padding-bottom: 5.5rem;
  }
  .role i {
    display: none;
  }
}

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--night);
  padding-block: 1.05rem;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: slide 46s linear infinite;
}
.marquee:hover .marquee__track {
  animation-play-state: paused;
}
.marquee ul {
  display: flex;
  flex: none;
}
.marquee li {
  display: flex;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
  white-space: nowrap;
}
.marquee li::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-inline: 1.7rem;
  background: var(--red);
  transform: rotate(45deg);
}
@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}

/* =========================================================
   REEL
   ========================================================= */
.reel {
  background: linear-gradient(to bottom, var(--night), var(--ink) 70%);
  overflow: clip;
}
.reel__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.reel__copy .lead {
  margin-top: 1.4rem;
  font-size: 1.1rem;
}
.reel__frame {
  position: relative;
  padding: 10px;
}
.reel__frame .corner {
  width: 26px;
  height: 26px;
}
.reel__frame::before {
  content: "";
  position: absolute;
  inset: -40px;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(218, 55, 61, 0.22), transparent);
  filter: blur(20px);
}
.reel__screen {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  border-radius: 4px;
}
.reel__screen iframe,
.reel__thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}
.reel__thumb {
  transition: transform 1.2s var(--ease), filter 0.6s;
  filter: saturate(1.05) brightness(0.8);
}
.reel__screen:hover .reel__thumb {
  transform: scale(1.04);
  filter: saturate(1.1) brightness(0.95);
}
.reel__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1rem;
  background: linear-gradient(to top, rgba(15, 14, 19, 0.6), transparent 50%);
}
.reel__play span {
  display: grid;
  place-items: center;
  width: 5.2rem;
  height: 5.2rem;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  box-shadow: 0 0 0 0 rgba(252, 52, 28, 0.6), 0 14px 40px -8px rgba(252, 52, 28, 0.8);
  animation: pulse 2.6s infinite;
  transition: transform 0.4s var(--ease), background 0.3s;
}
.reel__play span .ico {
  width: 2rem;
  height: 2rem;
  margin-left: 4px;
}
.reel__play:hover span {
  transform: scale(1.1);
  background: var(--flame);
}
@keyframes pulse {
  70% {
    box-shadow: 0 0 0 22px rgba(252, 52, 28, 0), 0 14px 40px -8px rgba(252, 52, 28, 0.8);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(252, 52, 28, 0), 0 14px 40px -8px rgba(252, 52, 28, 0.8);
  }
}
.reel__play em {
  background: none;
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone);
}
.reel__bar {
  display: flex;
  justify-content: space-between;
  padding: 0.7rem 0.2rem 0;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--mist);
}
.reel__bar i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--flame);
  margin-right: 0.4rem;
  animation: blink 1.6s steps(2) infinite;
}
@keyframes blink {
  50% {
    opacity: 0.2;
  }
}
@media (max-width: 900px) {
  .reel__grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   ABOUT
   ========================================================= */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
}
.about__photos {
  position: relative;
  padding: 0 0 3rem 0;
}
.about__main {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 460px;
}
.about__main::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--red);
  z-index: -1;
}
.about__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  filter: contrast(1.03) saturate(0.95);
}
.about__main .corner {
  width: 24px;
  height: 24px;
}
.about__main .corner--tl {
  top: -8px;
  left: -8px;
}
.about__main .corner--br {
  bottom: -8px;
  right: -8px;
}
.about__sub {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(44%, 210px);
  transform: rotate(3deg);
  background: var(--bone);
  padding: 8px 8px 0;
  box-shadow: 0 24px 50px -16px rgba(0, 0, 0, 0.8);
  transition: transform 0.5s var(--ease);
}
.about__sub:hover {
  transform: rotate(-1deg) scale(1.04);
}
.about__sub img {
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
}
.about__sub figcaption {
  padding: 0.5rem 0 0.6rem;
  font-family: var(--f-mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: #38353f;
}
.about__copy .h2 {
  margin-bottom: 1.6rem;
}
.about__copy p + p {
  margin-top: 1.1rem;
}
.about__copy .lead + p {
  max-width: 36em;
}
.quote {
  margin-top: 1.8rem;
  padding-left: 1.2rem;
  border-left: 2px solid var(--red);
  font-family: var(--f-display);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--bone);
}
.facts {
  margin-top: 2.4rem;
  border-top: 1px solid var(--line);
}
.facts > div {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1rem;
  padding-block: 0.95rem;
  border-bottom: 1px solid var(--line);
}
.facts dt {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
  padding-top: 0.25rem;
}
.facts dd {
  color: var(--bone);
  font-weight: 500;
}
.facts dd small {
  display: block;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--mist);
}
@media (max-width: 900px) {
  .about__grid {
    grid-template-columns: 1fr;
  }
  .about__photos {
    max-width: 440px;
    margin-inline: auto;
    width: 100%;
  }
  .about__main::before {
    inset: 12px -12px -12px 12px;
  }
}

/* Skills */
.skills {
  margin-top: clamp(4.5rem, 9vw, 8rem);
}
.skills__head {
  margin-bottom: 2.5rem;
}
.skills__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.skill {
  position: relative;
  padding: 1.7rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(160deg, rgba(42, 42, 53, 0.55), rgba(28, 27, 34, 0.3));
  overflow: hidden;
  transition: border-color 0.3s, transform 0.5s var(--ease);
}
.skill::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--a);
  transform: scaleX(0.18);
  transform-origin: 0 50%;
  transition: transform 0.7s var(--ease);
}
.skill::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -100px;
  top: -120px;
  border-radius: 50%;
  background: var(--a);
  opacity: 0.1;
  filter: blur(40px);
  transition: opacity 0.4s;
}
.skill:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
}
.skill:hover::before {
  transform: scaleX(1);
}
.skill:hover::after {
  opacity: 0.22;
}
.skill header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}
.skill__n {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  font-family: var(--f-mono);
  font-size: 0.8rem;
  color: var(--a);
  border: 1px solid var(--a);
  border-radius: 50%;
}
.skill h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--bone);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chips li {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  color: #d8d3cb;
  background: rgba(236, 231, 223, 0.05);
  border: 1px solid var(--line);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.skill:hover .chips li {
  border-color: color-mix(in srgb, var(--a) 45%, transparent);
}
.chips li:hover {
  color: #fff;
  background: color-mix(in srgb, var(--a) 22%, transparent);
}
@media (max-width: 900px) {
  .skills__grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   WORLDS (projects)
   ========================================================= */
.worlds-sec {
  background: var(--night);
  overflow: clip;
}
.worlds-sec::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity: 0.6;
}
.worlds__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.worlds__hint {
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist);
  max-width: 26rem;
  text-align: right;
}
.worlds {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.worlds::before {
  content: "";
  position: absolute;
  z-index: 0;
  right: -10%;
  top: 10%;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.12;
  filter: blur(110px);
  pointer-events: none;
  transition: background 0.8s;
}

/* list */
.wlist {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
}
.world {
  border-bottom: 1px solid var(--line);
  --c: #8e8e93;
}
.world__head {
  width: 100%;
  display: grid;
  grid-template-columns: 3rem 1fr auto 1.4rem;
  align-items: baseline;
  gap: 0.6rem;
  padding: 1.35rem 0.2rem;
  text-align: left;
  color: #8a8680;
  transition: color 0.3s, padding 0.4s var(--ease);
}
.world__n {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--mist);
  transition: color 0.3s;
}
.world__t {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
}
.world__y {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
}
.world__ar {
  align-self: center;
  opacity: 0;
  transform: translate(-6px, 6px);
  transition: opacity 0.3s, transform 0.4s var(--ease);
  color: var(--accent);
}
.world__head:hover,
.world.is-active .world__head {
  color: var(--bone);
}
.world:hover .world__n,
.world.is-active .world__n {
  color: var(--accent);
}
.world__head:hover .world__ar,
.world.is-active .world__ar {
  opacity: 1;
  transform: none;
}
.world.is-active .world__head {
  padding-left: 0.9rem;
}
.world__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.6s var(--ease);
}
.world.is-active .world__body {
  grid-template-rows: 1fr;
}
.world__in {
  overflow: hidden;
  padding-left: 3.6rem;
  opacity: 0;
  transition: opacity 0.4s;
}
.world.is-active .world__in {
  opacity: 1;
  transition-delay: 0.15s;
}
.world__in > :last-child {
  margin-bottom: 1.8rem;
}
.world__shot {
  display: none;
}
.world__type {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.7rem;
}
.world__in p {
  font-size: 1rem;
  line-height: 1.65;
  max-width: 34em;
}
.world__role {
  margin-top: 0.9rem;
  font-size: 0.92rem !important;
  color: var(--mist);
}
.world__role b {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone);
  margin-right: 0.5rem;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.1rem;
}
.tags li {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  color: color-mix(in srgb, var(--accent) 70%, #fff);
}
.world__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.4rem;
}
.world__links .btn--solid {
  background: var(--accent);
  color: #15130f;
  box-shadow: 0 8px 28px -12px var(--accent);
}
.world__links .btn--solid:hover {
  background: color-mix(in srgb, var(--accent) 80%, #fff);
}

/* desktop detail panel (keeps the list static so hover never shifts rows) */
.wcol {
  position: relative;
  z-index: 1;
  min-width: 0;
}
.wdetail {
  display: none;
}
@media (min-width: 961px) {
  .world__body {
    display: none;
  }
  .wdetail {
    display: block;
    margin-top: 2.2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line-strong);
    min-height: 24rem;
    transition: opacity 0.25s, transform 0.4s var(--ease);
  }
  .wdetail.swap {
    opacity: 0;
    transform: translateY(8px);
  }
  .wdetail .world__in {
    padding: 0;
    opacity: 1;
    overflow: visible;
  }
  .wdetail .world__in > :last-child {
    margin-bottom: 0;
  }
  .wdetail .world__shot {
    display: none;
  }
  .world.is-active .world__head {
    padding-left: 0.9rem;
  }
}

/* stage */
.stage {
  position: sticky;
  top: 96px;
  z-index: 1;
  aspect-ratio: 5 / 4;
  background: var(--ink);
  border-radius: 4px;
  overflow: visible;
}
.stage .corner {
  width: 28px;
  height: 28px;
  border-color: var(--accent);
  transition: border-color 0.6s;
}
.stage .corner--tl {
  top: -8px;
  left: -8px;
}
.stage .corner--tr {
  top: -8px;
  right: -8px;
}
.stage .corner--bl {
  bottom: -8px;
  left: -8px;
}
.stage .corner--br {
  bottom: -8px;
  right: -8px;
}
.stage__slides {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.7s ease, transform 1.4s var(--ease);
}
.slide.is-on {
  opacity: 1;
  transform: scale(1);
}
.slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide--fit .slide__bg {
  filter: blur(26px) brightness(0.5) saturate(1.3);
  transform: scale(1.2);
}
.slide--fit .slide__fg {
  object-fit: contain;
  padding: 7%;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
}
.stage__tint {
  position: absolute;
  inset: 0;
  border-radius: 4px;
  pointer-events: none;
  background: linear-gradient(to top, rgba(15, 14, 19, 0.85), transparent 38%),
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 26%, transparent), transparent 55%);
  mix-blend-mode: normal;
  transition: background 0.6s;
}
.stage__cap {
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(236, 231, 223, 0.8);
}
.stage__cap b {
  color: var(--accent);
  font-weight: 600;
}

@media (max-width: 960px) {
  .worlds {
    grid-template-columns: 1fr;
  }
  .stage {
    display: none;
  }
  .worlds__head {
    flex-direction: column;
    align-items: start;
    gap: 1rem;
  }
  .worlds__hint {
    text-align: left;
    max-width: none;
  }
  .world__in {
    padding-left: 0;
  }
  .world.is-active .world__head {
    padding-left: 0.2rem;
  }
  .world__shot {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1.2rem;
    border: 1px solid var(--line);
  }
  .world__shot--fit {
    object-fit: contain;
    background: var(--ink);
    padding: 1rem;
  }
}

/* =========================================================
   GALLERY
   ========================================================= */
.gallery {
  background: var(--ink);
}
.gallery__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.4rem;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  max-width: 34rem;
}
.filters button {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--mist);
  transition: all 0.25s;
}
.filters button:hover {
  color: var(--bone);
  border-color: var(--line-strong);
}
.filters button.is-on {
  background: var(--bone);
  color: var(--ink);
  border-color: var(--bone);
}
.masonry {
  columns: 3 340px;
  column-gap: 1rem;
}
.masonry figure {
  break-inside: avoid;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: var(--night);
  animation: pop 0.6s var(--ease) both;
}
.masonry figure[hidden] {
  display: none;
}
@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
}
.masonry button {
  display: block;
  width: 100%;
  position: relative;
  cursor: zoom-in;
}
.masonry img {
  width: 100%;
  height: auto;
  transition: transform 0.9s var(--ease), filter 0.5s;
}
.masonry figure:hover img {
  transform: scale(1.06);
  filter: brightness(0.75);
}
.masonry figcaption {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  padding: 2.4rem 1rem 0.9rem;
  text-align: left;
  background: linear-gradient(to top, rgba(15, 14, 19, 0.92), transparent);
  transform: translateY(100%);
  transition: transform 0.5s var(--ease);
}
.masonry figure:hover figcaption,
.masonry button:focus-visible figcaption {
  transform: none;
}
.masonry figcaption b {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--bone);
  letter-spacing: 0.01em;
}
.masonry figcaption span {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--flame);
}
@media (hover: none) {
  .masonry figcaption {
    transform: none;
  }
}

/* Lightbox */
.lb {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(10, 9, 13, 0.94);
  backdrop-filter: blur(16px);
  color: var(--bone);
}
.lb[open] {
  display: grid;
  place-items: center;
  animation: fade 0.35s ease;
}
.lb::backdrop {
  background: transparent;
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
.lb__fig {
  width: min(94vw, 1500px);
  display: grid;
  gap: 1rem;
}
.lb__fig img {
  width: 100%;
  max-height: calc(100dvh - 9.5rem);
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 40px 100px -30px #000;
  background: var(--night);
}
.lb__fig figcaption {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding-inline: 0.2rem;
}
.lb__fig b {
  font-family: var(--f-display);
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}
.lb__fig p {
  font-size: 0.95rem;
  color: #b9b5ae;
  max-width: 54em;
  margin-top: 0.2rem;
}
.lb__fig span {
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--mist);
  white-space: nowrap;
  padding-top: 0.3rem;
}
.lb__x,
.lb__nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(15, 14, 19, 0.6);
  font-size: 1.4rem;
  line-height: 1;
  transition: background 0.2s, border-color 0.2s;
}
.lb__x:hover,
.lb__nav:hover {
  background: var(--red);
  border-color: var(--red);
}
.lb__x {
  top: 1.2rem;
  right: 1.2rem;
  font-size: 1.8rem;
}
.lb__nav {
  top: 50%;
  margin-top: -1.5rem;
}
.lb__nav--prev {
  left: 1.2rem;
}
.lb__nav--next {
  right: 1.2rem;
}
@media (max-width: 700px) {
  .lb__nav {
    top: auto;
    bottom: 1rem;
    margin: 0;
  }
  .lb__nav--prev {
    left: calc(50% - 3.6rem);
  }
  .lb__nav--next {
    right: calc(50% - 3.6rem);
  }
  .lb__fig figcaption {
    flex-direction: column;
    gap: 0.5rem;
  }
  .lb__fig img {
    max-height: calc(100dvh - 15rem);
  }
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  overflow: hidden;
  text-align: center;
  background: var(--night);
}
.contact__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--ink), rgba(15, 14, 19, 0.74) 38%, rgba(15, 14, 19, 0.7) 62%, var(--ink)),
    url("assets/optimized/360/Nexo.webp") center / cover;
  opacity: 0.9;
  filter: saturate(0.8);
}
.contact__in {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact .eyebrow {
  justify-content: center;
}
.contact__title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 5.4vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: 0.01em;
  color: var(--bone);
  max-width: 13em;
  text-wrap: balance;
  margin-bottom: 1.6rem;
}
.contact .lead {
  margin-inline: auto;
}
.mail {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem 1.2rem;
  margin-top: 2.6rem;
}
.mail__link {
  position: relative;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 3.6vw, 2.5rem);
  letter-spacing: 0.01em;
  color: var(--bone);
  padding-bottom: 0.15em;
  background: linear-gradient(90deg, var(--red), var(--flame)) 0 100% / 100% 3px no-repeat;
  transition: background-size 0.5s var(--ease), color 0.3s;
}
.mail__link:hover {
  color: #fff;
  background-size: 100% 100%;
}
.mail__copy {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 2.5rem;
  padding-inline: 1rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bone);
  background: rgba(15, 14, 19, 0.5);
  transition: border-color 0.2s, background 0.2s;
}
.mail__copy:hover {
  border-color: var(--bone);
}
.mail__copy.done {
  background: var(--red);
  border-color: var(--red);
}
.socials {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  width: 100%;
  margin-top: clamp(3rem, 6vw, 5rem);
}
.socials a {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem 1rem;
  align-items: center;
  text-align: left;
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(15, 14, 19, 0.55);
  backdrop-filter: blur(8px);
  transition: border-color 0.3s, transform 0.4s var(--ease), background 0.3s;
}
.socials a:hover {
  border-color: var(--red);
  background: rgba(218, 55, 61, 0.1);
  transform: translateY(-4px);
}
.socials span {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--bone);
  letter-spacing: 0.01em;
}
.socials em {
  grid-column: 1;
  background: none;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--mist);
}
.socials .ico {
  grid-row: 1 / 3;
  grid-column: 2;
  width: 1.4rem;
  height: 1.4rem;
  color: var(--flame);
  transition: transform 0.3s var(--ease);
}
.socials a:hover .ico {
  transform: translate(3px, -3px);
}
.socials a:hover .ico use[href="#i-down"] {
  transform: none;
}
@media (max-width: 900px) {
  .socials {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .socials {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.foot {
  background: var(--ink);
  border-top: 1px solid var(--line);
  padding-block: 1.6rem;
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--mist);
}
.foot__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.foot__brand img {
  width: 36px;
  height: 36px;
  transition: transform 0.6s var(--ease);
}
.foot__brand:hover img {
  transform: rotate(360deg);
}
.foot__top {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--bone);
}
.foot__top:hover {
  color: var(--flame);
}
@media (max-width: 700px) {
  .foot__in {
    justify-content: center;
    text-align: center;
  }
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .marquee__track {
    animation: none;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
   v2 — human layer: handwritten notes, stickers, tape
   ========================================================= */
.note {
  position: relative;
  font-family: var(--f-hand);
  font-weight: 600;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.1;
  color: var(--bone);
  transform: rotate(-3deg);
  max-width: 14em;
}
.note__arrow {
  position: absolute;
  width: 64px;
  height: auto;
  fill: none;
  stroke: var(--flame);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.note--hero {
  display: inline-block;
  margin: 1.1rem 0 -0.4rem 3.4rem;
  color: #ffd6d0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}
.note--hero .note__arrow {
  left: -3.4rem;
  top: -0.4rem;
  width: 52px;
  transform: scaleY(-1) rotate(0deg);
}
.note--ai {
  align-self: end;
  padding-right: 4.5rem;
  margin-bottom: 0.4rem;
}
.note--ai .note__arrow {
  right: 0;
  top: 0.4rem;
  width: 70px;
  transform: rotate(22deg);
}
.note--lab {
  align-self: end;
  padding-right: 3.4rem;
  color: #f2c928;
}
.note--lab .note__arrow {
  right: 0;
  top: 0;
  width: 44px;
  stroke: #f2c928;
}
.sticker {
  position: absolute;
  z-index: 4;
  top: 8%;
  left: -14px;
  padding: 0.5rem 0.9rem;
  background: #f2c928;
  color: #1c1b22;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  transform: rotate(-8deg);
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.6);
}
.about__main {
  transform: rotate(-1.4deg);
}
.about__sub::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 76px;
  height: 24px;
  transform: translateX(-50%) rotate(-4deg);
  background: rgba(242, 201, 40, 0.75);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
/* marker highlight on key words */
.about__copy .lead strong {
  font-weight: 600;
  color: var(--bone);
  background: linear-gradient(transparent 62%, rgba(218, 55, 61, 0.55) 62%, rgba(218, 55, 61, 0.55) 92%, transparent 92%);
  padding: 0 0.12em;
}
@media (max-width: 700px) {
  .note--hero {
    margin-left: 2.6rem;
  }
  .sticker {
    left: 6px;
  }
}

/* =========================================================
   v2 — Toolbelt / character sheet
   ========================================================= */
.tb {
  background: linear-gradient(180deg, var(--ink), #131219 40%, var(--ink));
  overflow: clip;
}
.tb::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(236, 231, 223, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236, 231, 223, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
  pointer-events: none;
}
.tb .wrap {
  position: relative;
}
.tb__head .lead,
.lab__head .lead {
  margin-top: 1rem;
}
.tb__head,
.lab__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  margin-bottom: 2.6rem;
}
.tb__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}
.tab {
  --a: var(--flame);
  appearance: none;
  cursor: pointer;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--mist);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.25s var(--ease);
}
.tab:hover {
  color: var(--bone);
  border-color: var(--a);
}
.tab.is-on {
  background: var(--a);
  border-color: var(--a);
  color: #14131a;
  box-shadow: 0 8px 24px -8px var(--a);
}
.tb__main {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 1.2rem;
  align-items: start;
}
.tb__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0.8rem;
}
.tool {
  --a: var(--flame);
  appearance: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem;
  text-align: left;
  color: var(--bone);
  background: linear-gradient(160deg, rgba(42, 42, 53, 0.7), rgba(28, 27, 34, 0.7));
  border: 1px solid var(--line);
  border-radius: 14px;
  animation: toolIn 0.5s var(--ease) both;
  animation-delay: calc(var(--i) * 45ms);
  transition: transform 0.3s var(--ease), border-color 0.25s, box-shadow 0.3s;
}
@keyframes toolIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }
}
.tool:hover {
  transform: translateY(-4px) rotate(-0.8deg);
  border-color: var(--a);
}
.tool.is-on {
  border-color: var(--a);
  box-shadow: 0 0 0 1px var(--a), 0 14px 34px -14px var(--a);
}
.tool__ic {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--a) 22%, #14131a);
  color: var(--a);
  border: 1px solid color-mix(in srgb, var(--a) 55%, transparent);
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 0.85rem;
}
.tool__ic--big {
  width: 64px;
  height: 64px;
  font-size: 1.15rem;
  border-radius: 15px;
}
.tool__t {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}
.tool__t b {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.15;
}
.pips {
  display: inline-flex;
  gap: 3px;
}
.pips i {
  width: 14px;
  height: 5px;
  border-radius: 2px;
  background: rgba(236, 231, 223, 0.14);
}
.pips i.on {
  background: var(--a, var(--flame));
}
.tb__detail {
  --a: var(--flame);
  position: sticky;
  top: 96px;
  min-height: 300px;
  padding: 1.6rem;
  border-radius: 18px;
  background: linear-gradient(170deg, color-mix(in srgb, var(--a) 14%, #1c1b22), #17161c 70%);
  border: 1px solid color-mix(in srgb, var(--a) 45%, transparent);
  box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--a) 40%, #000);
}
.tb__cls {
  margin: 0 0 1rem;
  font-family: var(--f-display);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--a);
}
.tb__big {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.tb__big h3 {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  color: var(--bone);
  line-height: 1.1;
}
.tb__lv {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
  font-family: var(--f-display);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist);
}
.tb__lv .pips i {
  width: 22px;
  height: 7px;
}
.tb__lv .pips i.on {
  background: var(--a);
  box-shadow: 0 0 10px var(--a);
}
.tb__detail p {
  margin: 0 0 1rem;
  font-size: 0.98rem;
}
.tb__lbl {
  margin: 1.2rem 0 0.6rem !important;
  font-family: var(--f-display);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
}
.tb__empty {
  color: var(--mist);
}
.tb__stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 3rem 0 0;
  padding: 1.6rem 0 0;
  border-top: 1px solid var(--line);
}
.tb__stats b {
  display: block;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  color: var(--bone);
  line-height: 1;
}
.tb__stats span {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: var(--mist);
}
@media (max-width: 960px) {
  .tb__main {
    grid-template-columns: 1fr;
  }
  .tb__detail {
    position: static;
    min-height: 0;
    order: -1;
  }
  .tb__head,
  .lab__head {
    grid-template-columns: 1fr;
  }
  .note--ai,
  .note--lab {
    justify-self: start;
    padding-right: 0;
  }
  .note--ai .note__arrow,
  .note--lab .note__arrow {
    display: none;
  }
  .tb__stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================================================
   v2 — Prototype lab / arcade cabinets
   ========================================================= */
.lab {
  background: radial-gradient(ellipse at 80% 0%, rgba(218, 55, 61, 0.1), transparent 55%), var(--ink);
  overflow: clip;
}
.lab__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
}
.cab {
  --a: var(--flame);
  padding: 1rem 1rem 0.8rem;
  border-radius: 20px;
  background: linear-gradient(180deg, #24232c, #17161c);
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 60px -34px #000, inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.cab:hover {
  transform: translateY(-5px);
  border-color: var(--a);
  box-shadow: 0 34px 70px -34px var(--a);
}
.cab__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.2rem 0.4rem 0.9rem;
}
.cab__top h3 {
  margin: 0;
  font-family: var(--f-display);
  font-size: 1.05rem;
  color: var(--bone);
  order: -1;
}
.cab__tag {
  font-family: var(--f-display);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  color: #14131a;
  background: var(--a);
}
.cab__screen {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: #14131a;
  border: 2px solid #0a0a0e;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 0 40px rgba(0, 0, 0, 0.6);
}
.cab__screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.16) 0 1px, transparent 1px 3px);
}
.cab canvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: auto;
}
.cab__ov {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 1rem;
  text-align: center;
  background: rgba(15, 14, 19, 0.42);
}
.cab__ov[hidden] {
  display: none;
}
.cab__ttl {
  font-family: var(--f-display);
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  color: var(--a);
  animation: blink 1.4s steps(2) infinite;
}
@keyframes blink {
  50% {
    opacity: 0.55;
  }
}
.cab__d {
  max-width: 28ch;
  font-size: 0.85rem;
  color: #d8d3cb;
}
.cab__go {
  --h: 2.6rem;
}
.cab__go:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.cab__foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0.4rem 0;
  font-size: 0.78rem;
  color: var(--mist);
}
.cab__foot p {
  margin: 0;
}
.cab__best {
  font-family: var(--f-display);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  color: var(--a);
}
@media (max-width: 800px) {
  .lab__grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   v2 — game layer: XP HUD, toasts, hidden coins, arcade mode
   ========================================================= */
.xp {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 70;
  font-family: var(--f-display);
}
.xp__btn {
  appearance: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  color: var(--bone);
  font: inherit;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  background: rgba(20, 19, 26, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong);
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.xp__btn:hover {
  border-color: var(--flame);
  transform: translateY(-2px);
}
.xp__lv b {
  color: var(--flame);
}
.xp__bar {
  width: 54px;
  height: 6px;
  border-radius: 3px;
  background: rgba(236, 231, 223, 0.14);
  overflow: hidden;
}
.xp__bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--red), var(--flame));
  transition: width 0.5s var(--ease);
}
.xp__n b {
  color: var(--bone);
}
.xp__panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  width: min(320px, calc(100vw - 28px));
  padding: 1rem;
  border-radius: 16px;
  background: rgba(20, 19, 26, 0.96);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 60px -20px #000;
  font-family: var(--f-body);
}
.xp__panel[hidden] {
  display: none;
}
.xp__panel h4 {
  margin: 0 0 0.7rem;
  font-family: var(--f-display);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone);
}
.xp__panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  max-height: 46vh;
  overflow: auto;
}
.xp__panel li {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 0.6rem;
  align-items: center;
  padding: 0.45rem 0.5rem;
  border-radius: 10px;
  font-size: 0.78rem;
  opacity: 0.45;
}
.xp__panel li.is-done {
  opacity: 1;
  background: rgba(218, 55, 61, 0.12);
}
.xp__panel li b {
  display: block;
  color: var(--bone);
  font-weight: 600;
}
.xp__panel li small {
  display: block;
  color: var(--mist);
  font-size: 0.7rem;
}
.xp__panel li em {
  font-style: normal;
  font-family: var(--f-display);
  font-size: 0.6rem;
  color: var(--flame);
}
.ic {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #2a2a35;
  color: #f2c928;
  font-size: 0.8rem;
}
.xp__coins {
  margin: 0.8rem 0 0;
  font-size: 0.75rem;
  color: var(--mist);
}
.xp__row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.8rem;
}
.xp__row button {
  appearance: none;
  cursor: pointer;
  flex: 1;
  padding: 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--bone);
  font-size: 0.7rem;
}
.xp__row button:hover {
  border-color: var(--flame);
}
.toasts {
  position: fixed;
  left: 14px;
  bottom: 66px;
  z-index: 75;
  display: grid;
  gap: 0.5rem;
  pointer-events: none;
}
.toast {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0.7rem;
  align-items: center;
  padding: 0.6rem 0.9rem 0.6rem 0.6rem;
  border-radius: 12px;
  background: rgba(28, 27, 34, 0.97);
  border: 1px solid var(--flame);
  color: var(--bone);
  font-size: 0.82rem;
  transform: translateX(-120%);
  opacity: 0;
  transition: transform 0.45s var(--ease), opacity 0.3s;
}
.toast.in {
  transform: none;
  opacity: 1;
}
.toast b {
  display: block;
  font-family: var(--f-display);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}
.toast small {
  color: var(--mist);
  font-size: 0.72rem;
}
.coin {
  position: absolute;
  z-index: 5;
  appearance: none;
  cursor: pointer;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  background: none;
  perspective: 200px;
  opacity: 0.55;
  transition: opacity 0.3s;
}
.coin:hover,
.coin:focus-visible {
  opacity: 1;
}
.coin i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff3a8, #f2c928 45%, #b88a00);
  border: 2px solid #8a6700;
  box-shadow: 0 0 14px rgba(242, 201, 40, 0.6);
  animation: coinSpin 2.2s linear infinite;
}
.coin.is-got i {
  animation: coinGot 0.6s var(--ease) forwards;
}
@keyframes coinSpin {
  to {
    transform: rotateY(360deg);
  }
}
@keyframes coinGot {
  to {
    transform: translateY(-60px) scale(1.6);
    opacity: 0;
  }
}
/* Konami: arcade mode */
html.arcade body {
  filter: hue-rotate(-25deg) saturate(1.25) contrast(1.05);
}
html.arcade body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 89;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 3px);
}
html.arcade .h2,
html.arcade .name {
  text-shadow: 2px 0 #22b8cf, -2px 0 #e8559a;
}
@media (max-width: 700px) {
  .xp__n {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .coin i,
  .cab__ttl {
    animation: none;
  }
}

.xp {
  transition: opacity 0.4s, transform 0.4s var(--ease);
}
.xp.is-away {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}
@media (max-width: 460px) {
  .nav__brand span b {
    display: none;
  }
}

.cab--wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  grid-template-areas: "screen top" "screen foot";
  grid-template-rows: auto 1fr;
  gap: 0 1.6rem;
  align-items: start;
}
.cab--wide .cab__top { grid-area: top; flex-direction: column; align-items: flex-start; padding-top: 1.2rem; }
.cab--wide .cab__top h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); order: 0; }
.cab--wide .cab__screen { grid-area: screen; }
.cab--wide .cab__foot { grid-area: foot; flex-direction: column; align-items: flex-start; }
@media (max-width: 800px) {
  .cab--wide { display: block; }
  .cab--wide .cab__top { flex-direction: row; align-items: center; padding-top: 0.2rem; }
  .cab--wide .cab__top h3 { font-size: 1.05rem; order: -1; }
}

.cab--wide .cab__top .cab__d { max-width: 40ch; margin: 1rem 0 1.4rem; font-size: 1rem; color: #d8d3cb; text-align: left; }
.cab--wide .cab__top .cab__go { --h: 3.2rem; }
@media (max-width: 800px) { .cab--wide .cab__top { flex-wrap: wrap; } .cab--wide .cab__top .cab__d, .cab--wide .cab__top .cab__go { order: 5; } }

/* =========================================================
   v3 — compact scale + height-aware layout
   ========================================================= */
html {
  font-size: 15px;
}
@media (min-width: 1800px) {
  html {
    font-size: 16px;
  }
}
:root {
  --wrap: 1120px;
}
body {
  font-size: 1rem;
  line-height: 1.6;
}
.section {
  padding-block: clamp(3.2rem, 7vw, 6rem);
}
.h2 {
  font-size: clamp(1.45rem, 2.7vw, 2.2rem);
  line-height: 1.08;
}
.lead {
  font-size: clamp(0.98rem, 1.2vw, 1.1rem);
}
.btn {
  --h: 2.75rem;
  padding-inline: 1.25rem;
  font-size: 0.9rem;
}
.btn--sm {
  --h: 2.25rem;
  padding-inline: 1rem;
  font-size: 0.8rem;
}
.nav {
  inset: 10px 0 auto 0;
}
.nav__bar {
  height: 52px;
  max-width: 1040px;
}
/* hero adapts to viewport height (no collision with the nav) */
.hero__content {
  padding-top: 6.5rem;
  padding-bottom: clamp(4.2rem, 10vh, 6rem);
}
.name {
  font-size: clamp(1.9rem, min(6vw, 10.5vh), 4.9rem);
  line-height: 1.08;
}
.role {
  font-size: clamp(0.98rem, min(1.8vw, 3.4vh), 1.35rem);
  margin-top: clamp(0.8rem, 2.2vh, 1.5rem);
}
.tagline {
  font-size: clamp(0.9rem, 1.2vw, 1.02rem);
}
.status {
  font-size: 0.64rem;
  margin-bottom: clamp(0.7rem, 2vh, 1.2rem);
  padding: 0.38rem 0.8rem;
}
.hero__cta {
  margin-top: clamp(1rem, 3vh, 1.6rem);
}
.note--hero {
  font-size: 1.2rem;
  margin-top: 0.8rem;
}
@media (max-height: 700px) and (min-width: 700px) {
  .hero__content {
    padding-top: 5.5rem;
    padding-bottom: 3.6rem;
  }
  .note--hero {
    display: none;
  }
  .hero__foot {
    bottom: 0.9rem;
  }
}
.contact__title {
  font-size: clamp(1.7rem, 4.2vw, 3.6rem);
}
.mail__link {
  font-size: clamp(1.2rem, 2.8vw, 2rem);
}
.world__t {
  font-size: clamp(1.25rem, 2.4vw, 1.9rem);
}
.tb__stats b {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
}
.tb__big h3 {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
}
.cab--wide .cab__top h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
}
.note {
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
}
/* sticky stage never taller than the viewport */
.stage {
  top: 84px;
  width: min(100%, calc((100svh - 120px) * 1.25));
}
.tb__detail {
  top: 84px;
}
@media (min-width: 961px) and (max-height: 700px) {
  .tb__detail {
    position: static;
  }
}
/* tablets / small laptops */
@media (max-width: 1100px) {
  .tb__main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .tb__grid {
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  }
}

/* =========================================================
   v3 — CV menu
   ========================================================= */
.cvmenu {
  position: relative;
  display: inline-block;
}
.cvmenu__btn .caret {
  width: 6px;
  height: 6px;
  margin-left: 0.15rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.25s var(--ease);
}
.cvmenu.is-open .cvmenu__btn .caret {
  transform: rotate(-135deg) translateY(-2px);
}
.cvmenu__pop {
  position: absolute;
  z-index: 120;
  right: 0;
  top: calc(100% + 10px);
  width: 272px;
  padding: 0.4rem;
  border-radius: 16px;
  background: rgba(20, 19, 26, 0.97);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line-strong);
  box-shadow: 0 26px 60px -20px #000;
  transform-origin: top right;
  animation: popIn 0.25s var(--ease);
}
.cvmenu__pop[hidden] {
  display: none;
}
.cvmenu--up .cvmenu__pop {
  top: auto;
  bottom: calc(100% + 10px);
  right: auto;
  left: 0;
  transform-origin: bottom left;
}
@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.97);
  }
}
.cvmenu__pop a {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.65rem 0.7rem;
  border-radius: 11px;
  color: var(--bone);
  transition: background 0.2s;
}
.cvmenu__pop a:hover,
.cvmenu__pop a:focus-visible {
  background: rgba(218, 55, 61, 0.16);
}
.cvmenu__pop .tag {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #2a2a35;
  color: var(--flame);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.6rem;
  letter-spacing: 0.04em;
}
.cvmenu__pop b {
  display: block;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 0.86rem;
  line-height: 1.2;
}
.cvmenu__pop small {
  display: block;
  margin-top: 2px;
  font-size: 0.72rem;
  color: var(--mist);
}
.cvmenu__pop .ico {
  width: 1rem;
  height: 1rem;
  color: var(--mist);
}
/* contact: documents row */
.docs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1.4rem;
}
.docs a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 0.84rem;
  color: var(--bone);
  transition: border-color 0.25s, background 0.25s, transform 0.3s var(--ease);
}
.docs a:hover {
  border-color: var(--flame);
  background: rgba(218, 55, 61, 0.1);
  transform: translateY(-2px);
}
.docs em {
  font-family: var(--f-display);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  padding: 0.18rem 0.45rem;
  border-radius: 5px;
  background: var(--steel);
  color: var(--flame);
  background-image: none;
}
.sheet .sheet__cv {
  margin-top: 1rem;
  display: grid;
  gap: 0.4rem;
}
.sheet .sheet__cv a {
  font-family: var(--f-body);
  font-size: 0.95rem;
  opacity: 0.85;
}
@media (max-width: 700px) {
  .cvmenu--nav {
    display: none;
  }
  .cvmenu--up .cvmenu__pop {
    width: min(272px, calc(100vw - 2.5rem));
  }
}
.badge {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(178, 107, 255, 0.5);
  color: #cfa8ff;
  font-family: var(--f-display);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
@media (max-width: 960px) {
  .tb__main {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* nav: never wrap */
.nav__links a,
.nav__brand {
  white-space: nowrap;
}
.nav__links a {
  padding: 0.45rem 0.75rem;
  font-size: 0.86rem;
}
@media (max-width: 1240px) {
  .nav__brand span b {
    display: none;
  }
}
