/* ============================================================
   PORTFOLIO — HERNÁN AGUIRRE
   Paleta light  : #F5F5F2 · #171717 · #6B6B67 · #D8D8D3 · #72C5B0
   Paleta dark   : #171717 · #F5F5F2 · #A5A5A0 · #343434 · #72C5B0
   Tipos         : Space Grotesk (display) · DM Mono (mono)
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg: #F5F5F2;
  --text: #171717;
  --muted: #6B6B67;
  --line: #D8D8D3;
  --accent: #72C5B0;
  --accent-strong: #3E766A;

  --font-display: "Space Grotesk", sans-serif;
  --font-mono: "DM Mono", monospace;

  --header-h: 4.5rem;
  --radius: 10px;
  --ease: cubic-bezier(.2, .65, .2, 1);
}

.dark {
  --bg: #171717;
  --text: #F5F5F2;
  --muted: #A5A5A0;
  --line: #343434;
  --accent: #72C5B0;
  --accent-strong: #8FD9C5;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

html, body { overflow-x: clip; }

img, video { max-width: 100%; display: block; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }

::selection { background: var(--accent); color: #171717; }

:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
  border-radius: 2px;
}

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(1200px, 100% - clamp(2.5rem, 8vw, 6.5rem));
  margin-inline: auto;
}

section { scroll-margin-top: calc(var(--header-h) + 1rem); }

/* Cada sección pinta su fondo y texto con su paleta (light o dark) */
.hero, .about, .works, .content, .contact, .footer { background: var(--bg); color: var(--text); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1.5rem;
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--text);
  border-radius: 6px;
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}

.btn-arrow { display: inline-block; transition: transform .3s var(--ease); }

.btn:hover .btn-arrow { transform: translate(2px, -2px); }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #171717;
}
.btn-primary:hover { background: var(--text); border-color: var(--text); color: var(--bg); }

.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--text); border-color: var(--text); color: var(--bg); }

.btn-cv { background: var(--accent); border-color: var(--accent); color: #171717; padding: .65rem 1.2rem; }
.btn-cv:hover { background: var(--text); border-color: var(--text); color: var(--bg); }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .35s, border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(245, 245, 242, .82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: var(--header-h);
}

.nav-logo {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
  position: relative;
}
.nav-logo-dot { color: var(--accent); }
.nav-logo::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav-logo:hover::after { transform: scaleX(1); }

.nav-links-wrap { position: relative; margin-left: auto; }
.nav-links { display: flex; gap: clamp(1.1rem, 3vw, 2.6rem); }

.nav-link {
  display: block;
  padding: .5rem 0 .6rem;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-decoration: none;
  color: var(--text);
  transition: color .25s;
}
.nav-link:hover, .nav-link.is-active { color: var(--accent-strong); }

.nav-underline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  pointer-events: none;
  transition: left .35s var(--ease), width .35s var(--ease);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle-bar {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform .3s var(--ease), opacity .3s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Menú móvil ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  background: #171717;
  color: #F5F5F2;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}
.mobile-menu-links a {
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  color: #F5F5F2;
  transition: color .25s;
}
.mobile-menu-links a:hover { color: var(--accent); }

.btn-cv-mobile {
  background: var(--accent);
  border-color: var(--accent);
  color: #171717;
  padding: .9rem 2rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--header-h) + 2rem) 0 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(23, 23, 23, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 23, 23, .05) 1px, transparent 1px);
  background-size: clamp(3.5rem, 9vw, 7rem) clamp(3.5rem, 9vw, 7rem);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 10%, #000 40%, transparent 100%);
  mask-image: radial-gradient(120% 90% at 50% 10%, #000 40%, transparent 100%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  width: min(60vw, 640px);
  height: min(60vw, 640px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(114, 197, 176, .28), transparent 65%);
  top: -12%;
  right: -14%;
}

.hero-inner { position: relative; text-align: center; }

.hero-title {
  font-size: clamp(3.4rem, 15vw, 11.5rem);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -0.02em;
}

.hero-line {
  display: block;
  opacity: 0;
  transform: translateY(40px);
  animation: rise 1s var(--ease) forwards;
}
.hero-line:nth-child(1) { animation-delay: .05s; }
.hero-line:nth-child(2) { animation-delay: .22s; }

.hero-line--outline {
  color: transparent;
  -webkit-text-stroke: clamp(1px, .3vw, 2.5px) var(--text);
}

.hero-tags {
  margin-top: 1.8rem;
  font-size: clamp(.7rem, 2vw, .88rem);
  letter-spacing: .22em;
  color: var(--muted);
  opacity: 0;
  animation: rise 1s var(--ease) .4s forwards;
}

.hero-actions {
  margin-top: 2.6rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  opacity: 0;
  animation: rise 1s var(--ease) .55s forwards;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: none; }
}

.hero-cue {
  position: fixed;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transition: opacity .6s ease;
}
.hero-cue.is-visible { opacity: 1; }

.hero-cue-arrow {
  color: var(--accent);
  font-size: 1.1rem;
  animation: bounce 1.6s infinite;
}
.hero-cue-text {
  font-size: .66rem;
  letter-spacing: .38em;
  color: var(--muted);
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ---------- Labels de sección ---------- */
.section-label {
  font-size: .78rem;
  letter-spacing: .22em;
  color: var(--muted);
  text-transform: uppercase;
}
.section-idx { color: var(--accent-strong); margin-right: .8em; font-weight: 500; }

/* ---------- About ---------- */
.about {
  padding: clamp(5rem, 13vw, 9rem) 0;
  border-top: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
}

.about-statement {
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.st { display: block; }
.st .dot { color: var(--accent); }

.about-bio {
  margin-top: clamp(2rem, 4vw, 3rem);
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.12rem);
}
.about-intro { color: var(--text); margin-bottom: 1rem; }

.about-photo {
  position: relative;
  margin: 0;
}
.about-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--accent);
  transform: translate(14px, 14px);
  z-index: -1;
}
.about-photo img {
  width: 100%;
  height: auto;
  filter: grayscale(.15) contrast(1.02);
  transition: filter .5s, transform .5s var(--ease);
}
.about-photo:hover img { filter: none; transform: translate(-4px, -4px); }

.about-exploring {
  margin-top: clamp(4.5rem, 10vw, 8rem);
}
.about-exploring .section-label { margin-bottom: 1.6rem; }

.exploring-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.exploring-item {
  background: var(--bg);
  padding: clamp(1.2rem, 3vw, 2.2rem) 1.4rem;
  font-size: clamp(.8rem, 1.6vw, 1rem);
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--text);
  transition: color .3s, background .3s;
}
.exploring-item:hover {
  color: #171717;
  background: var(--accent);
}

/* ---------- Terminal ---------- */
.terminal {
  background: #0C0C0D;
  color: #EDEDEA;
  padding: clamp(5rem, 13vw, 9rem) 0;
  border-top: 1px solid #222;
}

.terminal-window {
  max-width: 780px;
  margin-inline: auto;
  border: 1px solid #2A2A2B;
  border-radius: var(--radius);
  overflow: hidden;
  background: #121213;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.1rem;
  background: #1A1A1B;
  border-bottom: 1px solid #2A2A2B;
}
.t-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #3A3A3B;
}
.terminal-title {
  margin-left: auto;
  font-size: .72rem;
  letter-spacing: .12em;
  color: #7A7A7C;
}

.terminal-body {
  padding: clamp(1.5rem, 3.5vw, 2.6rem);
  font-size: clamp(.85rem, 1.7vw, 1.05rem);
  line-height: 2;
  min-height: 300px;
}

.t-cmd { color: #EDEDEA; white-space: pre-wrap; }
.t-prompt { font-weight: 500; color: #BDBDBF; }
.t-out {
  color: #8B8B8E;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .4s ease, transform .4s ease;
}
.t-out.is-shown { opacity: 1; transform: none; }
.t-dir { color: #CFCFD1; }

.t-cursor {
  display: inline-block;
  width: .55ch;
  height: 1.1em;
  margin-left: .15em;
  vertical-align: text-bottom;
  background: #EDEDEA;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.t-group + .t-group { margin-top: .4rem; }

/* ---------- Works ---------- */
.works {
  padding: clamp(5rem, 13vw, 9rem) 0;
  border-top: 1px solid var(--line);
}

.works-head { margin-bottom: clamp(3rem, 7vw, 5rem); }

.works-title {
  margin-top: 1.2rem;
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.works-list { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.works-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); }

.work-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  transition: border-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.work-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -28px rgba(23, 23, 23, .35);
}

.work--featured { display: grid; grid-template-columns: 1.1fr 1fr; }

.work-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #3E766A, #0F1F1B);
  cursor: pointer;
}
.work-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .5s ease;
}
.work-media.has-video video { opacity: 1; }

.work-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(23, 23, 23, .45), transparent 40%);
  pointer-events: none;
  transition: opacity .3s;
}
.work-media.is-playing::after { opacity: 0; }

.work-play {
  position: absolute;
  inset: 0;
  margin: auto;
  z-index: 2;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: rgba(23, 23, 23, .8);
  border-radius: 50%;
  pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease);
}
.work-media.is-playing .work-play { opacity: 0; transform: scale(.7); }

.work-num {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  font-size: .72rem;
  letter-spacing: .2em;
  color: #fff;
  background: rgba(23, 23, 23, .72);
  padding: .3rem .6rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, .18);
}

.work-info { padding: clamp(1.3rem, 3vw, 2.2rem); display: flex; flex-direction: column; gap: 1rem; }

.work-top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

.work-card h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.work-links {
  display: flex;
  gap: 1.2rem;
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .12em;
  color: var(--accent-strong);
}
.work-links a { text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .25s; }
.work-links a:hover { border-bottom-color: currentColor; }

.work-tag-chip {
  font-size: .68rem;
  letter-spacing: .16em;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: .28rem .6rem;
  border-radius: 999px;
}

.work-desc { color: var(--muted); font-size: clamp(.95rem, 1.6vw, 1.05rem); }

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: auto;
}
.work-tags li {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--text);
  border: 1px solid var(--line);
  padding: .3rem .7rem;
  border-radius: 6px;
  background: var(--bg);
  transition: border-color .25s, background .25s;
}
.work-card:hover .work-tags li { border-color: var(--accent); }

/* ---------- Off the code (dark) ---------- */
.content {
  padding: clamp(5rem, 13vw, 9rem) 0;
  border-top: 1px solid var(--line);
}

.content-head { margin-bottom: clamp(3rem, 7vw, 5rem); }

.content-title {
  margin-top: 1.2rem;
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.content-sub {
  margin-top: 1rem;
  color: var(--muted);
  max-width: 30rem;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}

.content-card { max-width: 340px; width: 100%; }
.content-card:nth-child(2) { margin-top: clamp(2rem, 6vw, 4.5rem); justify-self: center; }
.content-card:nth-child(3) { justify-self: end; }

.content-card a {
  position: relative;
  display: block;
  aspect-ratio: 9 / 15;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  text-decoration: none;
  color: #fff;
}

.content-media {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: transform .5s var(--ease);
}
.content-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.92);
}
.content-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(23, 23, 23, .5), transparent 45%);
  pointer-events: none;
}
.content-play, .content-tag { z-index: 2; }
.content-card--a .content-media {
  background:
    radial-gradient(120% 100% at 20% 0%, rgba(114, 197, 176, .35), transparent 60%),
    linear-gradient(160deg, #1E2E29, #0E1513);
}
.content-card--b .content-media {
  background:
    radial-gradient(120% 100% at 80% 0%, rgba(114, 197, 176, .22), transparent 55%),
    linear-gradient(200deg, #2A2A2B, #101011);
}
.content-card--c .content-media {
  background:
    radial-gradient(120% 100% at 50% 100%, rgba(114, 197, 176, .28), transparent 60%),
    linear-gradient(150deg, #23322E, #0B0F0E);
}

.content-play {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  color: #171717;
  background: var(--accent);
  border-radius: 50%;
  transition: transform .35s var(--ease);
}

.content-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: .66rem;
  letter-spacing: .18em;
  color: rgba(255, 255, 255, .8);
  background: rgba(0, 0, 0, .4);
  padding: .3rem .6rem;
  border-radius: 4px;
}

.content-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: .9rem;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(23, 23, 23, .92) 20%, rgba(23, 23, 23, 0) 65%);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .4s ease, transform .4s var(--ease);
}
.content-overlay h3 {
  font-size: clamp(3.5rem, 10vw, 5.5rem);
  font-weight: 700;
  line-height: .9;
}
.btn-link {
  font-size: .72rem;
  letter-spacing: .18em;
  color: var(--accent);
  text-transform: uppercase;
}

.content-card a:hover .content-overlay { opacity: 1; transform: none; }
.content-card a:hover .content-media { transform: scale(1.05); }
.content-card a:hover .content-play { transform: scale(1.1); }

/* ---------- Still ---------- */
.still { height: 400vh; }

.still-viewport {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.still-track {
  display: flex;
  flex-direction: column;
  height: 400vh;
  will-change: transform;
}

.still-slide {
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide--light { background: #F5F5F2; color: #171717; }
.slide--dark { background: #171717; color: #F5F5F2; }

.still-text {
  font-size: clamp(3.2rem, 12.5vw, 9.5rem);
  font-weight: 700;
  line-height: .92;
  letter-spacing: -0.02em;
  text-align: center;
}
.still-text .dot { color: var(--accent); }

.still-line { display: block; }
.still-slide .still-line {
  opacity: 0;
  transform: translateY(44px);
  transition: opacity .65s ease, transform .65s var(--ease);
}
.still-slide.is-current .still-line { opacity: 1; transform: none; }
.still-slide.is-current .still-line:nth-child(2) { transition-delay: .14s; }
.still-slide.is-current .still-line:nth-child(3) { transition-delay: .28s; }

/* ---------- Contact ---------- */
.contact {
  padding: clamp(6rem, 14vw, 10rem) 0;
  border-top: 1px solid var(--line);
}

.contact-title {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  font-size: clamp(2rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.contact-q { display: block; }

.contact-links {
  margin-top: clamp(3rem, 7vw, 5rem);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(.6rem, 1.5vw, 1rem);
  row-gap: 1rem;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--font-mono);
  font-size: .82rem;
  letter-spacing: .16em;
  text-decoration: none;
  color: var(--text);
  padding: .7rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color .3s, background .3s, color .3s, transform .3s var(--ease);
}
.contact-links a:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #171717;
  transform: translateY(-3px);
}
.contact-links svg { flex-shrink: 0; }

/* ---------- Footer ---------- */
.footer {
  padding: clamp(3rem, 8vw, 5rem) 0 2.5rem;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-name {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1;
}
.footer-meta {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  text-align: right;
  font-size: .7rem;
  letter-spacing: .22em;
  color: var(--muted);
}

/* ---------- Reveal (scroll) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s ease, transform .8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

.about-statement .reveal:nth-child(2) { transition-delay: .1s; }
.about-statement .reveal:nth-child(3) { transition-delay: .2s; }

.exploring-grid .reveal:nth-child(2) { transition-delay: .06s; }
.exploring-grid .reveal:nth-child(3) { transition-delay: .12s; }
.exploring-grid .reveal:nth-child(4) { transition-delay: .18s; }
.exploring-grid .reveal:nth-child(5) { transition-delay: .24s; }
.exploring-grid .reveal:nth-child(6) { transition-delay: .3s; }

.works-grid .reveal:nth-child(2) { transition-delay: .12s; }

.contact-title .reveal:nth-child(2) { transition-delay: .08s; }
.contact-title .reveal:nth-child(3) { transition-delay: .16s; }

.contact-links .reveal:nth-child(2) { transition-delay: .07s; }
.contact-links .reveal:nth-child(3) { transition-delay: .14s; }
.contact-links .reveal:nth-child(4) { transition-delay: .21s; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 460px; }
  .about-photo::before { transform: translate(10px, 10px); }

  .work--featured { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: 1fr; }
  .work--featured .work-media { aspect-ratio: 16 / 10; }
}

@media (max-width: 860px) {
  .nav-links-wrap, .btn-cv { display: none; }
  .nav-toggle { display: flex; }

  .content-grid { grid-template-columns: 1fr; justify-items: center; gap: 2.5rem; }
  .content-card:nth-child(2) { margin-top: 0; justify-self: center; }
  .content-card:nth-child(3) { justify-self: center; }
}

@media (max-width: 640px) {
  .exploring-grid { grid-template-columns: 1fr 1fr; }
  .hero-cue { bottom: 1.1rem; }
  .hero-cue-text { letter-spacing: .28em; }
  .contact-links { flex-direction: column; align-items: stretch; }
  .contact-links a { justify-content: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-line, .hero-tags, .hero-actions { opacity: 1; transform: none; }

  .still { height: auto; }
  .still-viewport { position: static; height: auto; overflow: visible; }
  .still-track { height: auto; transform: none !important; }
  .still-slide { height: auto; padding: 18vh 1.25rem; }
  .still-slide .still-line { opacity: 1; transform: none; }
}
