/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  /* Palette — deep dark, cinematic, warm amber */
  --bg:        #0A0A0F;
  --bg-2:      #0F0F13;
  --bg-3:      #16161C;
  --bg-card:   #12121A;
  --cream:     #EDE8E0;
  --cream-2:   #C4BDAA;
  --cream-3:   #7A7468;
  --accent:    #F59B2B;
  --accent-2:  #C47D15;
  --gold:      #C49A5B;
  --gold-2:    #A07E3A;
  --line:      rgba(237,232,224,.09);
  --line-2:    rgba(237,232,224,.05);

  /* Typography */
  --serif:   "Cormorant Garamond", Georgia, serif;
  --sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono:    "JetBrains Mono", "Courier New", monospace;

  /* Spacing */
  --section-gap: clamp(4rem, 8vw, 6.5rem);
  --container:   1280px;
  --gutter:      clamp(1.25rem, 4vw, 3rem);

  /* Easings */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* UI */
  --radius:    12px;
  --radius-lg: 20px;
  --nav-h:     72px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  background: var(--bg);
  color: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1,h2,h3,h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.02em; font-family: var(--serif); }
ul { list-style: none; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--cream); color: var(--bg);
  z-index: 9999; border-radius: 8px; font-weight: 500; font-size: .875rem;
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-gap);
  position: relative;
}
/* Scroll-to-section: compensates the fixed nav so anchors land cleanly */
section[id] { scroll-margin-top: var(--nav-h); }
.hero { scroll-margin-top: 0; }

.kicker {
  display: block;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.mono { font-family: var(--mono); font-size: .85em; }

.section-head {
  margin-bottom: clamp(2.5rem, 4.5vw, 3.5rem);
}
.section-head h2 {
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.05;
  max-width: 20ch;
}
.section-head h2 em { font-style: italic; color: var(--accent); }

/* =============================================================
   4. Reveal animations
   ============================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .9s var(--ease-soft), transform .9s var(--ease-soft);
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}
/* ⚠️ DEFENSIVE: data-split elements must not inherit opacity:0 from .reveal */
.reveal[data-split], [data-reveal][data-split] {
  opacity: 1;
  transform: none;
}

/* =============================================================
   5. Scroll progress
   ============================================================= */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  z-index: 200; background: rgba(245,155,43,.12); pointer-events: none;
}
.scroll-progress span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transform-origin: 0 0; transform: scaleX(0); transition: transform .08s linear;
}

/* =============================================================
   6. Cursor
   ============================================================= */
.cursor {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  display: none;
  opacity: 0;
  transition: opacity .25s var(--ease-out);
}
.cursor.is-ready { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }

.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; will-change: transform;
}
.cursor-dot {
  width: 5px; height: 5px; margin: -2.5px;
  background: var(--cream); border-radius: 50%;
}
.cursor-ring {
  width: 30px; height: 30px; margin: -15px;
  border: 1.5px solid rgba(245,155,43,.9); border-radius: 50%;
  transition: width .35s var(--ease-out), height .35s var(--ease-out),
              margin .35s var(--ease-out), border-color .35s;
}
.cursor.is-interactive .cursor-ring {
  width: 50px; height: 50px; margin: -25px;
  border-color: var(--accent);
}
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }

/* =============================================================
   7. Splash
   ============================================================= */
.splash {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg);
  display: grid; place-items: center;
  pointer-events: auto;
  transition: opacity .9s var(--ease-out), clip-path 1.1s var(--ease-out);
  animation: splashSafety .01s 4.5s forwards;
}
.splash.is-out {
  opacity: 0; pointer-events: none;
  clip-path: inset(0 0 100% 0);
}
@keyframes splashSafety {
  to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); }
}
.splash-inner { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.splash-logo {
  font-family: var(--mono); font-size: clamp(2.4rem, 7vw, 4rem);
  font-weight: 400; letter-spacing: -.02em; color: var(--cream);
  display: inline-flex; align-items: baseline; line-height: 1;
  animation: splashFadeIn .8s var(--ease-out) .2s both;
}
.splash-bracket { color: var(--accent); font-weight: 300; }
.splash-letters {
  font-family: var(--serif); font-style: italic; font-weight: 600;
  margin: 0 .15em; letter-spacing: -.03em;
}
@keyframes splashFadeIn { from { opacity: 0; transform: translateY(16px); } }
.splash-bar {
  width: 120px; height: 2px; background: var(--line-2); border-radius: 1px; overflow: hidden;
  animation: splashFadeIn .8s var(--ease-out) .4s both;
}
.splash-bar::after {
  content: "";
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  animation: splashBarFill 1.8s var(--ease-soft) .6s both;
  transform-origin: 0 0;
}
@keyframes splashBarFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* =============================================================
   8. Navigation
   ============================================================= */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  height: var(--nav-h);
  transition: background .4s var(--ease-out), backdrop-filter .4s, box-shadow .4s;
}
.nav.is-scrolled {
  background: rgba(10,10,15,.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter);
}
.nav-brand {
  display: inline-flex; align-items: center;
  text-decoration: none;
  transition: opacity .3s;
}
.nav-brand-mark {
  display: inline-flex; align-items: baseline;
  font-family: var(--mono);
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 1;
  color: var(--cream);
  padding: .35rem 0;
}
.nav-brand-bracket {
  color: var(--accent);
  font-weight: 300;
  font-size: 1.05em;
  display: inline-block;
  transition: transform .4s var(--ease-out);
  text-shadow: 0 0 12px rgba(245,155,43,.35);
}
.nav-brand-letters {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1em;
  letter-spacing: -.03em;
  margin: 0 .18em;
  color: var(--cream);
  transition: color .35s ease;
}
.nav-brand:hover .nav-brand-bracket--l { transform: translateX(-3px); }
.nav-brand:hover .nav-brand-bracket--r { transform: translateX(3px); }
.nav-brand:hover .nav-brand-letters { color: var(--accent); }

.nav-links {
  display: none; align-items: center; gap: clamp(.8rem, 2vw, 1.8rem);
}
@media (min-width: 960px) { .nav-links { display: flex; } }

.nav-link {
  font-size: .875rem; font-weight: 500; color: var(--cream-2);
  transition: color .3s; position: relative; padding: .25rem 0;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease-soft);
}
.nav-link:hover { color: var(--cream); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  padding: .45rem 1.1rem; border: 1px solid var(--line-2); border-radius: 8px;
  color: var(--cream); transition: background .3s, border-color .3s, color .3s;
}
.nav-cta:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.nav-cta::after { display: none; }

.nav-hamburger {
  display: flex; flex-direction: column; gap: 5px; padding: 8px;
  color: var(--cream);
}
@media (min-width: 960px) { .nav-hamburger { display: none; } }
.nav-hamburger span {
  display: block; width: 22px; height: 1.5px; background: var(--cream-2);
  transition: transform .35s var(--ease-soft), opacity .25s, width .3s;
  border-radius: 2px;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav */
.nav-mobile {
  position: fixed; inset: 0; z-index: 90;
  background: var(--bg); color: var(--cream);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3rem;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .65s var(--ease-soft);
}
.nav-mobile[aria-hidden="false"] { clip-path: inset(0); }
.nav-mobile-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  font-size: 1.25rem; color: var(--cream-3);
  transition: color .3s;
}
.nav-mobile-close:hover { color: var(--cream); }
.nav-mobile-links {
  display: flex; flex-direction: column; align-items: center; gap: 1.5rem;
}
.nav-mobile-links a {
  font-family: var(--serif); font-size: clamp(2rem, 7vw, 3.5rem);
  font-weight: 600; color: var(--cream);
  transition: color .3s, transform .3s;
}
.nav-mobile-links a:hover { color: var(--accent); transform: translateX(4px); }
.nav-mobile-social {
  display: flex; gap: 2rem; font-size: .875rem; color: var(--cream-3);
}
.nav-mobile-social a { transition: color .3s; }
.nav-mobile-social a:hover { color: var(--accent); }

/* Side dots */
.side-dots {
  position: fixed; top: 50%; right: 1.25rem; z-index: 80;
  display: none; flex-direction: column; gap: .6rem;
  transform: translateY(-50%);
}
@media (min-width: 1280px) { .side-dots { display: flex; } }
.side-dots a {
  width: 20px; height: 20px; display: flex; align-items: center; justify-content: flex-end;
  position: relative;
}
.side-dots a::before {
  content: attr(data-label);
  position: absolute; right: 100%; top: 50%; transform: translateY(-50%);
  margin-right: .5rem;
  font-family: var(--mono); font-size: .6rem; letter-spacing: .1em;
  color: var(--cream-2); white-space: nowrap;
  opacity: 0; transition: opacity .3s;
}
.side-dots a:hover::before { opacity: 1; }
.side-dots a::after {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: rgba(237,232,245,.25);
  transition: width .35s var(--ease-out), height .35s var(--ease-out), background .35s;
}
.side-dots a.is-active::after { width: 10px; height: 10px; background: var(--accent); }

/* =============================================================
   9. Hero — split face concept (creative / logic.all)
   ============================================================= */
.hero {
  position: relative;
  /* Cap at 980px so tall/portrait monitors don't leave huge empty space —
     the next section "Sobre mí" peeks through, inviting scroll. */
  min-height: min(100vh, 980px);
  min-height: min(100svh, 980px);
  overflow: hidden;
  background: #050507;
  display: flex; flex-direction: column;
  padding-top: var(--nav-h);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: url('assets/img/hero/hero-fondo-pintura.jpg?v=20260516');
  background-size: cover;
  background-position: 35% center;
  opacity: .55;
  animation: heroBgZoom 32s ease-in-out infinite;
}
@keyframes heroBgZoom {
  0%,100% { transform: scale(1.02); }
  50%     { transform: scale(1.10); }
}
@media (prefers-reduced-motion: reduce) { .hero-bg { animation: none; } }

.hero-vignette {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 75% at 50% 48%, transparent 18%, rgba(10,10,15,.65) 72%, rgba(5,5,7,.96) 100%),
    linear-gradient(180deg, rgba(5,5,7,.55) 0%, transparent 22%, transparent 70%, rgba(5,5,7,.95) 100%);
}
.hero-grain {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
}

.hero-meta {
  position: absolute; top: calc(var(--nav-h) + 1.4rem); left: var(--gutter);
  z-index: 5;
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--mono); font-size: .7rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--cream-2);
}
.hero-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(245,155,43,.6);
}
@keyframes pulse { 0%,100%{ opacity:1; transform:scale(1); } 50%{ opacity:.4; transform:scale(.7); } }

/* Stage with split face + side texts */
.hero-stage {
  position: relative; z-index: 3;
  flex: 1;
  width: 100%; max-width: var(--container); margin-inline: auto;
  padding-inline: var(--gutter);
  padding-bottom: clamp(1rem, 2vw, 2rem);
  display: flex; align-items: end; justify-content: center;
  margin-top: clamp(.5rem, 2vw, 1.5rem);
}
.image-slider {
  position: relative;
  display: grid; grid-template-columns: 1fr; justify-items: center; align-items: end;
  width: 100%; height: 100%;
  pointer-events: auto;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.7));
}
.image-slider img {
  width: auto;
  max-width: min(620px, 80vw);
  max-height: 78vh;
  height: auto;
  object-fit: contain;
  object-position: center bottom;
  transition: clip-path .9s var(--ease-soft), transform 1.4s var(--ease-soft), opacity .9s ease;
  grid-column: 1; grid-row: 1;
  will-change: clip-path, transform;
  /* Vertical fade-out at the bottom so the photo blends into the dark base */
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 70%, rgba(0,0,0,.6) 86%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 70%, rgba(0,0,0,.6) 86%, transparent 100%);
}
/* Asymmetric split at ~44.8% (FX narrower to match the face perspective).
   Very small 0.1% gap (~0.5px) — practically nothing, just enough to avoid
   the subpixel rendering line. */
.image-slider img:first-child {
  /* FX — left, clip ends at 44.75% */
  position: relative; z-index: 2;
  opacity: 0;
  clip-path: polygon(0 0, 44.75% 0, 44.75% 100%, 0% 100%);
  animation: faceSlideLeft 1.4s var(--ease-out) 1.4s forwards;
}
.image-slider img:last-child {
  /* Normal — right, clip starts at 44.85% */
  position: relative; z-index: 1;
  opacity: 0;
  clip-path: polygon(44.85% 0, 100% 0, 100% 100%, 44.85% 100%);
  animation: faceSlideRight 1.4s var(--ease-out) 1.4s forwards;
}
@keyframes faceSlideLeft {
  from { transform: translateX(-90px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
@keyframes faceSlideRight {
  from { transform: translateX(90px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .image-slider img:first-child,
  .image-slider img:last-child { animation: fadeIn 1s ease-out 1s forwards; transform: none; }
}
@keyframes fadeIn { to { opacity: 1; } }

/* Side texts overlapping the face */
.hero-text {
  position: absolute;
  top: 36%;
  z-index: 4;
  opacity: 0;
  transition: opacity .8s ease, transform .6s var(--ease-soft);
  animation: heroTextIn 1.2s var(--ease-out) 2.2s forwards;
  pointer-events: none;
  max-width: 38%;
}
.hero-text--left  { left: clamp(1rem, 5vw, 4rem); text-align: left; }
.hero-text--right { right: clamp(1rem, 5vw, 4rem); text-align: right; }
@keyframes heroTextIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-word {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2.6rem, 7.8vw, 6.2rem);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: .95;
  color: var(--cream);
  margin: 0;
}
.hero-word--accent { color: var(--accent); }
.hero-tagline {
  font-family: var(--mono);
  font-size: clamp(.65rem, 1vw, .8rem);
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--cream-2);
  margin-top: .8rem;
  max-width: 22ch;
  line-height: 1.6;
}
.hero-text--right .hero-tagline { margin-left: auto; }

/* Foot: name, role, CTAs */
.hero-foot {
  position: relative; z-index: 4;
  width: 100%; max-width: var(--container); margin-inline: auto;
  /* Extra right padding reserves space for the scroll-hint, so CTAs never collide */
  padding: 0 calc(var(--gutter) + 2.8rem) clamp(2rem, 4vw, 3.5rem) var(--gutter);
  display: flex; align-items: end; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
}
.hero-name h1 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  font-weight: 600; letter-spacing: -.02em; line-height: 1;
  color: var(--cream);
  margin-bottom: .55rem;
}
.hero-role {
  font-family: var(--mono);
  font-size: clamp(.62rem, .95vw, .72rem);
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--cream-3);
}
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }

.hero-scroll-hint {
  position: absolute; bottom: 1.5rem; right: var(--gutter); z-index: 5;
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
}
.hero-scroll-line {
  width: 1px; height: 60px; background: linear-gradient(to bottom, transparent, var(--accent));
  animation: scrollHint 1.8s ease-in-out infinite;
}
@keyframes scrollHint { 0%,100%{ transform:scaleY(1); opacity:.5; } 50%{ transform:scaleY(.6); opacity:1; } }
.hero-scroll-label {
  font-family: var(--mono); font-size: .6rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--cream-3);
  writing-mode: vertical-rl; transform: rotate(180deg);
}

/* Mobile adjustments */
@media (max-width: 719px) {
  .hero-text {
    top: 4%;
    max-width: 48%;
  }
  .hero-text--left { left: 1.1rem; }
  .hero-text--right { right: 1.1rem; }
  .hero-word { font-size: clamp(2.1rem, 9vw, 3rem); line-height: 1; }
  .hero-tagline {
    display: block;
    font-size: .58rem;
    letter-spacing: .14em;
    margin-top: .5rem;
    max-width: 18ch;
    line-height: 1.5;
    opacity: .85;
  }
  .image-slider img { max-width: 96vw; max-height: 60vh; }
  .hero-stage { margin-top: 0; padding-bottom: 1rem; align-items: end; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
}
@media (max-width: 480px) {
  .hero-text { top: 3.5%; max-width: 50%; }
  .hero-word { font-size: clamp(1.85rem, 9.5vw, 2.6rem); }
  .hero-tagline { font-size: .54rem; max-width: 16ch; margin-top: .4rem; }
  .image-slider img { max-height: 56vh; }
}

/* =============================================================
   10. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.75rem; border-radius: 10px;
  font-size: .875rem; font-weight: 500; letter-spacing: .02em;
  transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft), background .3s, color .3s, border-color .3s;
  position: relative; overflow: hidden;
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(245,155,43,.22), 0 8px 16px rgba(0,0,0,.35);
}
.btn:active { transform: translateY(-1px); transition-duration: .12s; }

.btn-primary {
  background: var(--accent); color: var(--bg);
}
.btn-primary:hover { background: var(--accent-2); }

.btn-ghost {
  background: transparent; color: var(--cream);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* =============================================================
   11. About
   ============================================================= */
.about-grid {
  display: grid; gap: clamp(3rem, 6vw, 5rem);
  align-items: center;
}
@media (min-width: 960px) {
  .about-grid { grid-template-columns: 1.25fr .75fr; }
}

.about-title {
  font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 400;
  margin-bottom: 1.75rem;
}
.about-title em { font-style: italic; color: var(--accent); }

.about-text p {
  color: var(--cream-2); margin-bottom: 1.2rem; font-size: 1.05rem; line-height: 1.8;
}
.about-quote {
  font-family: var(--serif); font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-style: italic; font-weight: 400; color: var(--cream);
  border-left: 2px solid var(--accent); padding-left: 1.5rem;
  margin: 2rem 0;
}
.about-quote-mark {
  font-size: 3rem; line-height: .8; vertical-align: top;
  color: var(--accent); margin-right: .2rem;
}
.about-traits { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.trait {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .35rem .85rem; border-radius: 20px;
  border: 1px solid var(--line); color: var(--cream-3);
  transition: border-color .3s, color .3s;
}
.trait:hover { border-color: var(--accent); color: var(--accent); }

.about-img-wrap {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  max-width: 380px; margin-inline: auto;
}
.about-img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center top;
  transition: transform .8s var(--ease-soft);
}
.about-img-wrap:hover .about-img { transform: scale(1.04); }

/* =============================================================
   12. Stack
   ============================================================= */
.stack { background: var(--bg-2); }
.marquee {
  overflow: hidden; position: relative;
  display: flex; flex-wrap: nowrap;
  margin-bottom: clamp(2.5rem, 4vw, 3.5rem);
  margin-inline: calc(var(--gutter) * -1);
}
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none;
}
.marquee::before { left:0; background: linear-gradient(90deg, var(--bg-2), transparent); }
.marquee::after  { right:0; background: linear-gradient(270deg, var(--bg-2), transparent); }
.marquee-track {
  display: inline-flex; gap: 2rem; white-space: nowrap; will-change: transform;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--cream-3); padding-block: .75rem;
}
.dot-sep { color: var(--accent); }

.stack-grid {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 540px) {
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .stack-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}
.stack-category {
  background: var(--bg-card); border-radius: var(--radius); padding: 1.5rem 1.4rem;
  border: 1px solid var(--line-2);
  transition: border-color .3s, transform .4s var(--ease-soft);
}
.stack-category:hover { transform: translateY(-3px); border-color: rgba(245,155,43,.25); }
.stack-category:hover { border-color: var(--line); }
.stack-cat-title {
  font-family: var(--mono); font-size: .65rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .9rem; font-weight: 500;
}
.stack-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--mono); font-size: .72rem; padding: .35rem .75rem; border-radius: 20px;
  background: rgba(245,155,43,.08); color: var(--cream-2);
  border: 1px solid rgba(245,155,43,.18);
  transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease-soft);
}
.pill:hover {
  background: rgba(245,155,43,.18);
  color: var(--cream);
  border-color: rgba(245,155,43,.4);
  transform: translateY(-1px);
}
.pill-icon {
  width: 14px; height: 14px;
  opacity: .8;
  flex-shrink: 0;
  /* Convert the monochrome black SVG icons to cream/white tone */
  filter: brightness(0) invert(1);
  transition: opacity .3s, transform .35s var(--ease-soft), filter .3s;
}
.pill:hover .pill-icon {
  opacity: 1;
  transform: scale(1.12);
  filter: brightness(0) invert(86%) sepia(11%) saturate(323%) hue-rotate(2deg) brightness(105%) contrast(96%);
}
.pill-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  opacity: .7;
  transition: opacity .3s, transform .35s var(--ease-soft);
}
.pill:hover .pill-dot { opacity: 1; transform: scale(1.2); }
.pill-sm { font-size: .65rem; padding: .22rem .65rem; gap: .35rem; }
.pill-sm .pill-icon { width: 12px; height: 12px; }

/* =============================================================
   13. Projects (text-only premium blocks)
   ============================================================= */
.proj-featured {
  position: relative;
  border-top: 1px solid var(--line);
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 4.5rem);
  max-width: 880px; margin-inline: auto;
  margin-bottom: clamp(2.5rem, 4vw, 3.5rem);
}
.proj-featured::before {
  content: ""; position: absolute; top: -1px; left: 0; width: 100px; height: 1px;
  background: var(--accent);
}
.proj-featured-meta {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.proj-featured-status,
.proj-block-status {
  font-family: var(--mono); font-size: .65rem;
  letter-spacing: .15em; text-transform: uppercase;
  padding: .3rem .75rem; border-radius: 20px;
  border: 1px solid var(--line);
  color: var(--cream-3);
}
.proj-block-status--live {
  color: var(--accent); border-color: rgba(245,155,43,.35);
}
.proj-block-status--wip {
  color: var(--gold); border-color: rgba(196,154,91,.35);
  position: relative; padding-left: 1.4rem;
}
.proj-block-status--wip::before {
  content: ""; position: absolute; left: .65rem; top: 50%;
  transform: translateY(-50%); width: 6px; height: 6px;
  border-radius: 50%; background: var(--gold);
  animation: pulse 2.4s ease-in-out infinite;
}
.proj-featured-title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 600; line-height: 1; letter-spacing: -.03em;
  margin-bottom: .35rem;
}
.proj-dot { color: var(--accent); }
.proj-featured-url { margin-bottom: 1.5rem; font-size: .9rem; }
.proj-featured-url a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.proj-featured-url a:hover { border-bottom-color: var(--accent); }
.proj-featured-desc {
  color: var(--cream-2); margin-bottom: 1.75rem;
  line-height: 1.75; font-size: 1.08rem; max-width: 60ch;
}
.proj-tags {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-bottom: 2rem;
}

.projects-list {
  display: grid; gap: 0;
  max-width: 880px; margin-inline: auto;
}
.proj-block {
  position: relative;
  padding: clamp(2rem, 3.5vw, 2.75rem) 0;
  border-top: 1px solid var(--line);
  transition: padding-left .45s var(--ease-soft);
}
.proj-block:last-child { border-bottom: 1px solid var(--line); }
.proj-block::before {
  content: ""; position: absolute; left: 0; top: -1px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width .55s var(--ease-soft);
}
.proj-block:hover::before { width: 100px; }
.proj-block:hover { padding-left: .5rem; }
.proj-block-head {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1rem;
}
.proj-block-num {
  font-size: .7rem; letter-spacing: .15em;
  color: var(--cream-3);
}
.proj-block-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600; line-height: 1.1; letter-spacing: -.02em;
  margin-bottom: .65rem;
}
.proj-block-desc {
  color: var(--cream-2); line-height: 1.75; font-size: 1rem;
  max-width: 60ch; margin-bottom: 1.25rem;
}
.proj-block-url {
  margin-bottom: 1rem; font-size: .85rem;
}
.proj-block-url a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.proj-block-url a:hover { border-bottom-color: var(--accent); }
.proj-block-cta {
  display: inline-flex; align-items: center; gap: .35rem;
  margin-top: .5rem;
  font-family: var(--mono); font-size: .72rem;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  padding-bottom: .15rem;
  transition: border-color .35s, transform .35s var(--ease-soft);
}
.proj-block-cta:hover {
  border-bottom-color: var(--accent);
  transform: translateX(3px);
}

/* Legacy classes kept for safety, scoped to old templates if any remain */
.project-featured {
  display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center;
  margin-bottom: clamp(4rem, 8vw, 6rem);
}
@media (min-width: 960px) {
  .project-featured { grid-template-columns: 1.1fr 1fr; }
}

.project-featured-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.project-featured-img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  transition: transform .8s var(--ease-soft);
}
.project-featured-media:hover .project-featured-img { transform: scale(1.04); }
.project-featured-overlay {
  position: absolute; inset: 0; background: rgba(10,10,15,.45);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .4s;
}
.project-featured-media:hover .project-featured-overlay { opacity: 1; }
.project-featured-cta {
  font-family: var(--mono); font-size: 1rem; letter-spacing: .12em;
  color: var(--cream); border: 1px solid var(--cream); padding: .75rem 1.5rem; border-radius: 8px;
}
.project-tag {
  display: inline-block; font-family: var(--mono); font-size: .65rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--gold); border: 1px solid rgba(196,154,91,.3);
  padding: .25rem .8rem; border-radius: 20px; margin-bottom: 1.25rem;
}
.project-featured-title {
  font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 600; margin-bottom: .5rem;
}
.project-featured-url { color: var(--accent); margin-bottom: 1.25rem; }
.project-featured-desc { color: var(--cream-2); margin-bottom: 1.75rem; line-height: 1.75; font-size: 1.05rem; }
.project-featured-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }

.projects-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
  max-width: 980px; margin-inline: auto;
}
/* Bot Minecraft — double image card */
.project-card--double { display: block; }
.project-card-imgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  aspect-ratio: 16/7;
  overflow: hidden;
}
.project-card-img-cell {
  overflow: hidden;
  background: var(--bg-card);
  position: relative;
}
.project-card-img-cell img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  transition: transform .7s var(--ease-soft), filter .5s;
}
.project-card--double:hover .project-card-img-cell img {
  transform: scale(1.04);
  filter: saturate(1.1) brightness(1.05);
}
.project-card--double .project-card-body { padding: 1.75rem 2rem 2rem; }
.project-card--double .project-tag {
  display: inline-block;
  font-family: var(--mono); font-size: .65rem;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .9rem;
}
.project-card--double .project-card-title {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  margin-bottom: .85rem;
}
.project-card--double .project-card-body p {
  font-size: 1rem; max-width: 60ch; margin-bottom: 1.25rem;
}
@media (max-width: 600px) {
  .project-card-imgs { aspect-ratio: 4/3; grid-template-columns: 1fr; grid-auto-rows: 1fr; }
}
.card {
  background: var(--bg-card); border-radius: var(--radius-lg);
  border: 1px solid var(--line-2); overflow: hidden;
  transition: border-color .4s, transform .55s var(--ease-soft), box-shadow .55s var(--ease-soft);
  --rx: 0deg; --ry: 0deg;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
}
.card:hover {
  border-color: rgba(245,155,43,.3);
  box-shadow: 0 30px 60px rgba(0,0,0,.45), 0 0 0 1px rgba(245,155,43,.15);
}
.project-card-img-wrap { overflow: hidden; aspect-ratio: 16/9; }
.card-img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-soft), filter .5s; }
.card:hover .card-img { transform: scale(1.06); filter: saturate(1.12) brightness(1.04); }
.project-card-body { padding: 1.5rem; }
.project-card-title { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; margin-bottom: .75rem; }
.project-card-body p { color: var(--cream-2); font-size: .95rem; margin-bottom: 1rem; line-height: 1.7; }
.project-card-tags { display: flex; flex-wrap: wrap; gap: .5rem; }

/* =============================================================
   14. Setup
   ============================================================= */
.setup { background: var(--bg-2); }
.setup-grid {
  display: grid; gap: 1.5rem; margin-bottom: clamp(3rem, 5vw, 4rem);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  /* Equal columns so both panels are the same size — no more cropped Lab retro-tech */
  .setup-grid { grid-template-columns: 1fr 1fr; align-items: stretch; }
}
.setup-panel { position: relative; border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.setup-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: center;
  transition: transform .8s var(--ease-soft);
  display: block;
}
.setup-panel:hover .setup-img { transform: scale(1.04); }
.setup-panel-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(0deg, rgba(10,10,15,.9), transparent);
}
.setup-panel-info span { display: block; color: var(--accent); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .3rem; }
.setup-panel-info p { font-size: .875rem; color: var(--cream-2); margin: 0; }

.setup-philosophy { text-align: center; }
.setup-philosophy-text {
  font-family: var(--serif); font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-style: italic; color: var(--cream-2); max-width: 55ch; margin-inline: auto; margin-bottom: 2.5rem;
}
.setup-items {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center;
}
.setup-item {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--mono); font-size: .75rem; letter-spacing: .06em;
  color: var(--cream-3); padding: .5rem 1rem; border-radius: 8px;
  border: 1px solid var(--line-2);
}
.setup-item-icon {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  font-size: 0;
  flex-shrink: 0;
}

/* =============================================================
   15. Music
   ============================================================= */
.music-intro {
  max-width: 65ch; margin-bottom: clamp(3rem, 5vw, 4rem);
}
.music-intro p { color: var(--cream-2); font-size: 1.05rem; line-height: 1.8; margin-bottom: 1rem; }

.music-grid {
  display: grid; gap: clamp(3rem, 5vw, 4rem); align-items: start;
}
@media (min-width: 960px) {
  .music-grid { grid-template-columns: 1fr 1fr; }
}

.music-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: stretch; }
.music-img-main, .music-img-secondary {
  border-radius: var(--radius-lg); overflow: hidden;
  margin-top: 0;
}
.music-img-main img, .music-img-secondary img {
  aspect-ratio: 3/4; object-fit: cover; width: 100%; height: 100%;
  transition: transform .8s var(--ease-soft);
}
.music-img-main:hover img,
.music-img-secondary:hover img { transform: scale(1.05); }

.music-corner h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 1rem; }
.music-list { color: var(--cream-2); margin-bottom: 1.75rem; display: flex; flex-direction: column; gap: .5rem; }
.music-list li { padding-left: 1.2rem; position: relative; }
.music-list li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }
.music-influences .kicker { margin-bottom: .75rem; }
.music-influences-list {
  display: flex; flex-wrap: wrap; gap: .5rem;
}
.music-influences-list span {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .08em;
  padding: .25rem .7rem; border-radius: 20px;
  border: 1px solid rgba(196,154,91,.3); color: var(--gold);
}

.music-trilogy { margin-top: 2.5rem; }
.music-trilogy h3 { font-size: 1.35rem; font-weight: 600; margin-bottom: .6rem; }
.music-trilogy-desc { color: var(--cream-2); margin-bottom: 1.5rem; font-size: .95rem; line-height: 1.7; }
.music-trilogy-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.trilogy-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  display: block; text-decoration: none;
  transition: transform .4s var(--ease-soft), box-shadow .45s var(--ease-soft);
}
.trilogy-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,.55), 0 0 0 1px rgba(245,155,43,.25);
}
.trilogy-card img {
  aspect-ratio: 1; object-fit: cover; width: 100%;
  transition: transform .7s var(--ease-soft), filter .4s ease;
}
.trilogy-card:hover img { transform: scale(1.08); filter: brightness(.65); }
.trilogy-card-play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(.85);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: #0A0A0F;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; padding-left: 4px;
  opacity: 0;
  transition: opacity .35s ease, transform .4s var(--ease-bounce), background .3s;
  z-index: 1;
  pointer-events: none;
}
.trilogy-card:hover .trilogy-card-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  background: var(--accent);
}
.trilogy-card-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: .6rem; text-align: center;
  font-family: var(--mono); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase;
  background: linear-gradient(0deg, rgba(10,10,15,.92), rgba(10,10,15,.55));
  color: var(--cream-2);
  z-index: 1;
}

/* =============================================================
   16. Reels
   ============================================================= */
.reels { background: var(--bg-2); }
.reels-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
  max-width: 920px; margin-inline: auto;
  margin-bottom: 2.5rem;
}
@media (min-width: 720px) { .reels-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }

.reel-card {
  position: relative;
  display: block;
  text-decoration: none;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-2);
  aspect-ratio: 9/16;
  background: #000;
  isolation: isolate;
  transition: border-color .4s, box-shadow .45s var(--ease-soft), transform .45s var(--ease-soft);
}
.reel-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245,155,43,.45);
  box-shadow: 0 26px 50px rgba(0,0,0,.55), 0 0 0 1px rgba(245,155,43,.2);
}
.reel-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  transition: transform .9s var(--ease-soft), filter .5s ease;
}
.reel-card:hover .reel-img { transform: scale(1.06); filter: saturate(1.08) brightness(1.05); }
.reel-overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1rem;
  background: linear-gradient(180deg, transparent 0%, transparent 55%, rgba(5,5,8,.55) 90%, rgba(5,5,8,.85) 100%);
  opacity: 1;
  transition: background .4s ease;
}
.reel-card:hover .reel-overlay {
  background: linear-gradient(180deg, rgba(5,5,8,.3) 0%, rgba(5,5,8,.4) 55%, rgba(5,5,8,.75) 100%);
}
.reel-play {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: #0A0A0F;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  padding-left: 5px;
  box-shadow: 0 12px 30px rgba(0,0,0,.5);
  transition: transform .45s var(--ease-bounce), background .35s;
}
.reel-card:hover .reel-play {
  transform: scale(1.1);
  background: var(--accent);
}
.reel-cta {
  position: absolute;
  bottom: 1rem; left: 0; right: 0;
  text-align: center;
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s, transform .4s var(--ease-soft);
}
.reel-card:hover .reel-cta {
  opacity: 1; transform: translateY(0);
}

.reel-card {
  position: relative;
  text-decoration: none; display: block;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  overflow: hidden;
  transition: transform .45s var(--ease-soft), border-color .45s, box-shadow .45s var(--ease-soft);
}
.reel-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245,155,43,.4);
  box-shadow: 0 24px 50px rgba(0,0,0,.5), 0 0 0 1px rgba(245,155,43,.18);
}
.reel-card-thumb {
  position: relative;
  aspect-ratio: 9/16;
  background:
    radial-gradient(circle at 85% 18%, rgba(245,155,43,.16) 0%, transparent 55%),
    linear-gradient(160deg, var(--bg-3) 0%, var(--bg-card) 55%, #08080C 100%);
  display: flex; flex-direction: column;
  justify-content: space-between;
  padding: 1.4rem 1.3rem 1.5rem;
  overflow: hidden;
}
.reel-card-thumb::before {
  content: "";
  position: absolute; inset: auto 0 0 0;
  height: 60%;
  background: linear-gradient(180deg, transparent 0%, rgba(245,155,43,.06) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .45s ease;
}
.reel-card:hover .reel-card-thumb::before { opacity: 1; }
.reel-card-thumb::after {
  content: "";
  position: absolute; left: 1.3rem; right: 1.3rem; bottom: 1.5rem;
  height: 1px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 50%);
  transform: scaleX(.4); transform-origin: left;
  transition: transform .55s var(--ease-soft);
}
.reel-card:hover .reel-card-thumb::after { transform: scaleX(1); }
.reel-card-num {
  position: relative; z-index: 1;
  align-self: flex-start;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2.8rem, 4.5vw, 4rem);
  font-weight: 600;
  color: var(--cream);
  line-height: 1;
  letter-spacing: -.04em;
  margin-top: auto;
  transition: color .35s ease, transform .55s var(--ease-soft);
}
.reel-card:hover .reel-card-num { color: var(--accent); transform: translateY(-3px); }
.reel-card-platform {
  position: relative; z-index: 1;
  align-self: flex-start;
  font-size: .65rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--cream-3);
  order: -1;
}
.reel-card-arrow {
  position: absolute;
  top: 1.1rem; right: 1.2rem; z-index: 1;
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--accent);
  opacity: .55;
  transition: opacity .3s ease, transform .35s var(--ease-out);
}
.reel-card:hover .reel-card-arrow {
  opacity: 1;
  transform: translate(3px, -3px);
}
.reels-cta { text-align: center; margin-top: 1rem; }

/* =============================================================
   17. Homelab
   ============================================================= */
.homelab-intro { max-width: 70ch; margin-bottom: clamp(3rem, 5vw, 4rem); }
.homelab-intro p { color: var(--cream-2); font-size: 1.05rem; line-height: 1.8; }

/* Homelab dashboards — vertical stack, BIG images, each with its own reveal */
.homelab-dashboards {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: clamp(3rem, 5vw, 4rem);
  max-width: 1100px;
  margin-inline: auto;
}
.hl-dash {
  position: relative;
  margin: 0;
  display: flex; flex-direction: column;
  gap: .9rem;
}
.hl-dash-meta {
  display: flex; align-items: baseline; gap: 1rem;
  padding-inline: .25rem;
}
.hl-dash-num {
  font-family: var(--mono);
  font-size: .7rem; letter-spacing: .2em;
  color: var(--cream-3);
}
.hl-dash-title {
  font-family: var(--mono);
  font-size: .75rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}
.hl-dash img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-2);
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
  transition: transform .9s var(--ease-soft), box-shadow .6s ease;
}
.hl-dash:hover img {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px rgba(0,0,0,.5);
}

.homelab-services h3 { font-family: var(--serif); font-size: 1.5rem; margin-bottom: 1.5rem; font-weight: 600; }
.homelab-services-grid {
  display: grid; gap: .75rem;
  grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
}
.hl-service {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 1rem; border-radius: 8px;
  background: var(--bg-card); border: 1px solid var(--line-2);
  font-size: .875rem; color: var(--cream-2);
  transition: border-color .3s;
}
.hl-service:hover { border-color: var(--line); }
.hl-service-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0;
}

/* =============================================================
   18. Retro
   ============================================================= */
.retro { background: var(--bg-2); }
.retro-grid {
  display: grid; gap: clamp(3rem, 5vw, 4rem); align-items: center;
}
@media (min-width: 960px) {
  .retro-grid { grid-template-columns: 1fr 1.1fr; }
}
.retro-text h2 {
  font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 400; margin-bottom: 1.5rem;
}
.retro-text h2 em { font-style: italic; color: var(--accent); }
.retro-text p { color: var(--cream-2); margin-bottom: 1.75rem; font-size: 1.05rem; line-height: 1.8; }
.retro-tags { display: flex; flex-wrap: wrap; gap: .6rem; }
.retro-visual { border-radius: var(--radius-lg); overflow: hidden; }
.retro-img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: center;
  transition: transform .8s var(--ease-soft);
}
.retro-visual:hover .retro-img { transform: scale(1.04); }

/* =============================================================
   19. CV Section
   ============================================================= */
.cv-grid {
  display: grid; gap: clamp(3rem, 5vw, 4rem); align-items: start;
}
@media (min-width: 960px) {
  .cv-grid { grid-template-columns: 1.5fr 1fr; }
}

.cv-timeline { display: flex; flex-direction: column; gap: 0; }
.cv-entry {
  display: grid; gap: 1.25rem; padding-block: 2rem;
  border-top: 1px solid var(--line-2);
  position: relative;
}
@media (min-width: 720px) {
  .cv-entry { grid-template-columns: 200px 1fr; gap: 2rem; }
}
.cv-entry:first-child { border-top: none; padding-top: 0; }
.cv-entry-meta { display: flex; flex-direction: column; gap: .4rem; }
.cv-entry-period { font-size: .72rem; letter-spacing: .08em; color: var(--cream-3); }
.cv-entry-company { font-family: var(--serif); font-size: 1rem; color: var(--accent); font-weight: 600; }
.cv-entry-role { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; margin-bottom: .75rem; }
.cv-entry-body p { color: var(--cream-2); margin-bottom: 1rem; line-height: 1.75; font-size: .95rem; }
.cv-entry-tags { display: flex; flex-wrap: wrap; gap: .5rem; }

.cv-aside { display: flex; flex-direction: column; gap: 1.5rem; position: sticky; top: calc(var(--nav-h) + 2rem); }
.cv-download-card {
  background: var(--bg-card); border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  padding: 2rem; text-align: center;
  transition: border-color .4s;
}
.cv-download-card:hover { border-color: rgba(245,155,43,.3); }
.cv-download-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.cv-download-card h3 { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; margin-bottom: .75rem; }
.cv-download-card p { color: var(--cream-2); font-size: .9rem; line-height: 1.65; margin-bottom: 1.5rem; }
.cv-download-btn { width: 100%; justify-content: center; }

.cv-highlights {
  background: var(--bg-card); border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.cv-highlights h3 { font-family: var(--serif); font-size: 1.1rem; margin-bottom: 1.25rem; }
.cv-highlight-stat {
  display: flex; align-items: baseline; gap: .75rem;
  padding-block: .75rem; border-bottom: 1px solid var(--line-2);
}
.cv-highlight-stat:last-child { border-bottom: none; }
.cv-highlight-num {
  font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--accent); min-width: 2.5rem;
}
.cv-highlight-stat span:last-child { color: var(--cream-2); font-size: .875rem; }

/* =============================================================
   20. Contact
   ============================================================= */
.contact {
  background: var(--bg);
  overflow: hidden;
}
.contact-mesh {
  position: absolute; inset: -20%;
  background:
    radial-gradient(60% 50% at 30% 50%, rgba(245,155,43,.15), transparent 60%),
    radial-gradient(40% 40% at 70% 40%, rgba(196,154,91,.1), transparent 55%);
  filter: blur(80px); pointer-events: none;
}
.contact-inner { position: relative; z-index: 1; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  position: relative; z-index: 1;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1.2fr .8fr; }
}
.contact-portrait {
  position: relative;
  max-width: 340px;
  margin-inline: auto;
  width: 100%;
  isolation: isolate;
}
/* Diffused warm halo extending into the section — feels integrated, not pasted on */
.contact-portrait::before {
  content: "";
  position: absolute;
  inset: -25% -20% -10% -20%;
  background:
    radial-gradient(ellipse 55% 60% at 50% 40%, rgba(245,155,43,.32) 0%, rgba(245,155,43,.1) 40%, transparent 75%),
    radial-gradient(ellipse 80% 50% at 50% 80%, rgba(124,106,250,.12) 0%, transparent 70%);
  filter: blur(45px);
  z-index: -1;
  pointer-events: none;
}
/* Editorial location marker — connects the portrait to the section */
.contact-portrait::after {
  content: "Dos Hermanas · Sevilla · Disponible";
  position: absolute;
  left: 50%;
  bottom: -2.4rem;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--cream-3);
  white-space: nowrap;
  padding-top: 1.4rem;
  pointer-events: none;
  /* Thin amber vertical line above the label */
  background:
    linear-gradient(to bottom, transparent 0, var(--accent) 25%, var(--accent) 100%) center top / 1px 18px no-repeat;
}
.contact-portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center top;
  border-radius: clamp(28px, 5vw, 48px);
  /* Soft bottom fade — the image melts into the dark section bg */
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 72%, rgba(0,0,0,.85) 86%, rgba(0,0,0,.5) 95%, rgba(0,0,0,.2) 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 72%, rgba(0,0,0,.85) 86%, rgba(0,0,0,.5) 95%, rgba(0,0,0,.2) 100%);
  transition: transform .9s var(--ease-soft), filter .5s ease;
  filter: contrast(1.04) saturate(1.05) drop-shadow(0 30px 50px rgba(0,0,0,.5));
}
.contact-portrait:hover img {
  transform: scale(1.02);
  filter: contrast(1.07) saturate(1.1) brightness(1.04) drop-shadow(0 36px 60px rgba(0,0,0,.55));
}
/* Mobile: smaller portrait above the text */
@media (max-width: 899px) {
  .contact-grid { gap: 2.5rem; }
  .contact-portrait {
    max-width: 230px;
    order: -1;
    margin-bottom: 1.5rem;
  }
  .contact-portrait img { border-radius: clamp(22px, 8vw, 36px); }
  .contact-portrait::after { font-size: .52rem; bottom: -2.2rem; padding-top: 1.2rem; background-size: 1px 15px; }
}
.contact-title {
  font-size: clamp(2.5rem, 7vw, 6rem); font-weight: 400; line-height: 1.0;
  margin-bottom: 1.5rem; max-width: 15ch;
}
.contact-title em { font-style: italic; color: var(--accent); }
.contact-sub {
  color: var(--cream-2); max-width: 52ch;
  margin-bottom: 1.25rem; font-size: 1.05rem; line-height: 1.75;
}
.contact-sub strong { color: var(--cream); font-weight: 500; }
.contact-sub + .contact-sub { margin-bottom: 2rem; }
.contact-services {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  max-width: 520px;
}

.contact-social {
  display: flex; flex-direction: column;
  gap: .55rem;
  max-width: 540px;
  margin-top: 1rem;
}
/* Label inside social-link absorbs the scramble effect — its font is mono so
   character width stays constant, no horizontal layout shift on hover. */
.social-link-label {
  flex: 1;
  font-family: var(--mono);
  font-size: .95rem;
  letter-spacing: .01em;
}
.social-link--primary {
  background: rgba(245,155,43,.08);
  border-color: rgba(245,155,43,.35) !important;
}
.social-link--primary .social-link-icon {
  background: var(--accent);
  color: var(--bg) !important;
  font-style: normal !important;
  font-weight: 600;
}
.social-link--primary:hover {
  background: rgba(245,155,43,.15);
  border-color: var(--accent) !important;
}
.social-link {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.5rem; border-radius: var(--radius); border: 1px solid var(--line-2);
  color: var(--cream); font-size: 1rem;
  transition: background .4s, border-color .4s, transform .4s var(--ease-soft);
}
.social-link:hover {
  background: rgba(245,155,43,.08); border-color: rgba(245,155,43,.3);
  transform: translateX(8px);
}
.social-link-icon {
  font-family: var(--serif); font-style: italic; font-size: 1.1rem;
  width: 36px; height: 36px; border-radius: 8px; background: var(--bg-3);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-weight: 600;
  transition: background .3s;
}
.social-link:hover .social-link-icon { background: rgba(245,155,43,.15); }
.social-link span:nth-child(2) { flex: 1; }
.social-link-arrow { color: var(--cream-3); transition: transform .3s; }
.social-link:hover .social-link-arrow { transform: translate(3px, -3px); }

/* =============================================================
   21. Footer
   ============================================================= */
.footer {
  padding-block: clamp(1.75rem, 4vw, 2.5rem);
  border-top: 1px solid var(--line-2);
  background: var(--bg);
}
.footer-inner {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: .5rem 1.25rem;
  font-family: var(--mono); font-size: .72rem;
  letter-spacing: .08em; color: var(--cream-3);
}
.footer-sep { color: var(--line); }

/* Mobile: stacked, centered, clean — no awkward wrapping with separators */
@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: .55rem;
    font-size: .65rem;
    letter-spacing: .12em;
  }
  .footer-sep { display: none; }
  .footer-name { color: var(--cream-2); font-weight: 500; }
  .footer-location, .footer-year { opacity: .75; }
}

/* =============================================================
   22. Split text
   ============================================================= */
.split-word, .split-char { display: inline-block; }

/* =============================================================
   23. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .music-trilogy-cards { gap: 1rem; }
}

@media (max-width: 720px) {
  .hero-stats { gap: 1rem; }
  .hero-stat-sep { display: none; }
  .music-visual { grid-template-columns: 1fr; }
  .music-img-secondary { margin-top: 0; }
  .setup-grid { grid-template-columns: 1fr; }
  .retro-grid { grid-template-columns: 1fr; }
  .cv-grid { grid-template-columns: 1fr; }
  .cv-aside { position: static; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 539px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .reels-grid { grid-template-columns: repeat(3, 1fr); }
}

/* =============================================================
   24. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-dot { animation: none; }
  .hero-scroll-line { animation: none; }
  .splash-bar::after { animation: none; transform: scaleX(1); }
}
