/* ═══════════════════════════════════════════════════════════
   CHRISTOPHER BARROSO — PORTFOLIO
   Renaissance meets code.
   ═══════════════════════════════════════════════════════════ */

:root {
  --ink: #0e0c09;
  --ink-soft: #171410;
  --ink-card: #1c1813;
  --parchment: #ece4d4;
  --parchment-dim: #b8ad98;
  --gold: #c9a227;
  --gold-bright: #e6c35c;
  --sienna: #a05c2c;
  --line: rgba(201, 162, 39, 0.22);

  --font-display: "Cinzel", serif;
  --font-serif: "Cormorant Garamond", serif;
  --font-sans: "Space Grotesk", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --pad-x: clamp(1.25rem, 6vw, 7rem);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--parchment);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: var(--ink); }

a { color: inherit; text-decoration: none; }

/* Subtle film grain over everything */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 9990;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-5%, -8%); }
  30% { transform: translate(3%, -12%); }
  50% { transform: translate(-9%, 4%); }
  70% { transform: translate(7%, 8%); }
  90% { transform: translate(-4%, 3%); }
}

/* ═══════════════ PRELOADER ═══════════════ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.9s var(--ease-out), visibility 0.9s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__inner { text-align: center; }
.preloader__name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 0.35em;
  color: var(--gold);
  display: block;
  margin-bottom: 1.5rem;
}
.preloader__bar {
  width: min(240px, 60vw);
  height: 1px;
  background: rgba(236, 228, 212, 0.15);
  margin: 0 auto 1.5rem;
  overflow: hidden;
}
.preloader__fill {
  height: 100%;
  width: 0;
  background: var(--gold);
  animation: load 1.6s var(--ease-out) forwards;
}
@keyframes load { to { width: 100%; } }
.preloader__quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--parchment-dim);
  max-width: 34ch;
  display: inline-block;
}

/* ═══════════════ CURSOR ═══════════════ */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--gold-bright);
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(201, 162, 39, 0.55);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out),
              border-color 0.3s, background 0.3s;
}
.cursor-ring.is-hover {
  width: 64px; height: 64px;
  border-color: var(--gold-bright);
  background: rgba(201, 162, 39, 0.08);
}
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ═══════════════ SCROLL PROGRESS ═══════════════ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--sienna), var(--gold), var(--gold-bright));
  z-index: 9998;
}

/* ═══════════════ NAV ═══════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--pad-x);
  transition: transform 0.5s var(--ease-out), background 0.5s, backdrop-filter 0.5s,
              border-color 0.5s, padding 0.5s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(14, 12, 9, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.12em;
  color: var(--parchment);
}
.nav__logo-dot { color: var(--gold); }
.nav__links {
  display: flex;
  gap: clamp(1.2rem, 3vw, 2.6rem);
  list-style: none;
}
.nav__links a {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--parchment-dim);
  transition: color 0.3s;
  position: relative;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.nav__links a:hover { color: var(--parchment); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__num {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold);
  margin-right: 0.25em;
}
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 34px; height: 24px;
  position: relative;
  z-index: 9001;
}
.nav__toggle span {
  position: absolute;
  left: 0;
  width: 100%; height: 1.5px;
  background: var(--parchment);
  transition: transform 0.4s var(--ease-out), top 0.4s;
}
.nav__toggle span:first-child { top: 6px; }
.nav__toggle span:last-child { top: 16px; }
.nav__toggle.is-open span:first-child { top: 11px; transform: rotate(45deg); }
.nav__toggle.is-open span:last-child { top: 11px; transform: rotate(-45deg); }

@media (max-width: 780px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed;
    inset: 0;
    background: rgba(14, 12, 9, 0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s var(--ease-out), visibility 0.5s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; }
  .nav__links a { font-size: 1.05rem; }
}

/* ═══════════════ HERO ═══════════════ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}
.hero__bg {
  position: absolute;
  inset: -6%;
  background: url("../assets/creation-of-adam.jpg") center 32% / cover no-repeat;
  animation: kenburns 34s ease-in-out infinite alternate;
  will-change: transform;
  filter: saturate(0.92) contrast(1.04);
}
@keyframes kenburns {
  from { transform: scale(1) translateY(0); }
  to   { transform: scale(1.09) translateY(-1.5%); }
}
.hero__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center 38%, rgba(14,12,9,0.18) 0%, rgba(14,12,9,0.62) 68%, rgba(14,12,9,0.92) 100%),
    linear-gradient(to bottom, rgba(14,12,9,0.55) 0%, rgba(14,12,9,0.12) 30%, rgba(14,12,9,0.15) 62%, var(--ink) 100%);
}
.hero__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 var(--pad-x);
}
.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 2.2rem;
  text-shadow: 0 2px 14px rgba(0,0,0,0.8);
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.9rem, 10.5vw, 8.2rem);
  line-height: 1.02;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--parchment);
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.85);
}
.hero__title-line { display: block; overflow: hidden; }
.hero__title-line--offset { color: transparent; -webkit-text-stroke: 1.5px rgba(236, 228, 212, 0.85); }
.hero__divider {
  width: 120px;
  height: 1px;
  margin: 2.4rem auto;
  overflow: hidden;
}
.hero__divider span {
  display: block;
  height: 100%;
  background: var(--gold);
}
.hero__subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  font-style: italic;
  color: var(--parchment);
  text-shadow: 0 2px 18px rgba(0,0,0,0.9);
  display: flex;
  gap: 0.45em;
  justify-content: center;
  align-items: baseline;
}
.hero__rotator {
  position: relative;
  display: inline-block;
  min-width: 13ch;
  text-align: left;
  height: 1.5em;
}
.hero__rotator span {
  position: absolute;
  left: 0; top: 0;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(0.6em);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  color: var(--gold-bright);
}
.hero__rotator span.is-active { opacity: 1; transform: translateY(0); }
.hero__scroll {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}
.hero__scroll-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--parchment-dim);
}
.hero__scroll-line {
  width: 1px;
  height: 52px;
  background: rgba(236, 228, 212, 0.25);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  top: -100%;
  width: 100%; height: 100%;
  background: var(--gold);
  animation: scrollhint 2.2s var(--ease-out) infinite;
}
@keyframes scrollhint {
  0% { top: -100%; }
  55%, 100% { top: 100%; }
}
.hero__credit {
  position: absolute;
  bottom: 1.4rem;
  right: 1.6rem;
  z-index: 2;
  font-family: var(--font-serif);
  font-size: 0.72rem;
  color: rgba(236, 228, 212, 0.4);
  writing-mode: vertical-rl;
}
@media (max-width: 780px) {
  .hero__credit { display: none; }
}

/* Hero entrance animations */
.reveal-word {
  display: inline-block;
  transform: translateY(115%);
  animation: wordUp 1.1s var(--ease-out) forwards;
  animation-delay: var(--d, 1.7s);
}
.hero__title-line:nth-child(2) .reveal-word { --d: 1.9s; }
@keyframes wordUp { to { transform: translateY(0); } }
.reveal-line { opacity: 0; animation: fadeUp 1.1s var(--ease-out) forwards; }
.hero__eyebrow.reveal-line { animation-delay: 2.3s; }
.hero__divider.reveal-line { animation-delay: 2.5s; }
.hero__subtitle.reveal-line { animation-delay: 2.65s; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero__scroll { opacity: 0; animation: fadeUp 1.1s var(--ease-out) 3.1s forwards; }

/* ═══════════════ SECTIONS ═══════════════ */
.section {
  padding: clamp(5rem, 12vh, 9rem) var(--pad-x);
  max-width: 1280px;
  margin: 0 auto;
}
.section__head {
  display: flex;
  align-items: baseline;
  gap: 1.4rem;
  margin-bottom: clamp(3rem, 7vh, 5rem);
}
.section__num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--gold);
}
.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.section__rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
  transform: translateY(-0.4em);
}

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(42px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ═══════════════ ABOUT ═══════════════ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.about__lede { grid-column: 1 / -1; }
.about__big {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.35;
  max-width: 26ch;
}
.about__big em {
  font-style: italic;
  color: var(--gold-bright);
}
.about__body p { margin-bottom: 1.2rem; color: var(--parchment-dim); }
.about__body strong { color: var(--parchment); font-weight: 500; }
.about__body a { color: var(--gold-bright); border-bottom: 1px solid var(--line); }
.about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.stat {
  background: var(--ink);
  padding: 1.6rem 1.4rem;
  transition: background 0.4s;
}
.stat:hover { background: var(--ink-soft); }
.stat__value, .stat__plus {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.9rem);
  color: var(--gold);
  font-weight: 600;
}
.stat__label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--parchment-dim);
  line-height: 1.5;
}
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .about__stats { grid-template-columns: 1fr; }
}

/* ═══════════════ FRESCO DIVIDER ═══════════════ */
.fresco-divider {
  position: relative;
  height: clamp(220px, 38vh, 380px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.fresco-divider__img {
  position: absolute;
  inset: 0;
  background: url("../assets/creation-of-adam.jpg") center 42% / cover no-repeat fixed;
  filter: saturate(0.8) brightness(0.55);
}
@supports (-webkit-touch-callout: none) {
  /* iOS ignores fixed backgrounds gracefully */
  .fresco-divider__img { background-attachment: scroll; }
}
.fresco-divider__caption {
  position: relative;
  z-index: 1;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.15rem, 3vw, 1.8rem);
  color: var(--parchment);
  text-shadow: 0 2px 24px rgba(0,0,0,0.9);
  padding: 0 var(--pad-x);
  text-align: center;
  max-width: 32ch;
}

/* ═══════════════ TIMELINE ═══════════════ */
.timeline {
  position: relative;
  padding-left: clamp(1.6rem, 4vw, 3rem);
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold), var(--line) 30%, var(--line) 70%, transparent);
}
.timeline__item {
  position: relative;
  padding-bottom: clamp(2.6rem, 6vh, 4rem);
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__marker {
  position: absolute;
  left: calc(-1 * clamp(1.6rem, 4vw, 3rem) - 5px);
  top: 8px;
  width: 11px; height: 11px;
  transform: rotate(45deg);
  background: var(--ink);
  border: 1px solid var(--gold);
  transition: background 0.4s;
}
.timeline__item:hover .timeline__marker { background: var(--gold); }
.timeline__date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 0.9rem;
}
.timeline__card {
  background: var(--ink-soft);
  border: 1px solid var(--line);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  transition: border-color 0.4s, transform 0.4s var(--ease-out), box-shadow 0.4s;
}
.timeline__card:hover {
  border-color: rgba(201, 162, 39, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.7);
}
.timeline__role {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.timeline__org {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold-bright);
  margin: 0.3rem 0 1.1rem;
  font-size: 1.05rem;
}
.timeline__points {
  list-style: none;
  color: var(--parchment-dim);
  font-size: 0.92rem;
}
.timeline__points li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.65rem;
}
.timeline__points li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.7rem;
  top: 0.28em;
}
.timeline__points strong { color: var(--parchment); font-weight: 500; }
.timeline__points a { color: var(--gold-bright); border-bottom: 1px solid var(--line); }
.timeline__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.3rem;
}
.timeline__tags span {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.32rem 0.75rem;
  border: 1px solid var(--line);
  color: var(--parchment-dim);
}

/* ═══════════════ PROJECTS ═══════════════ */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
}
.project {
  position: relative;
  background: var(--ink-soft);
  border: 1px solid var(--line);
  padding: clamp(1.6rem, 3.5vw, 2.6rem);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color 0.4s;
  display: flex;
  flex-direction: column;
}
.project--wide { grid-column: 1 / -1; }
.project:hover { border-color: rgba(201, 162, 39, 0.55); }
.project__glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), rgba(201, 162, 39, 0.1), transparent 60%);
  pointer-events: none;
}
.project:hover .project__glow { opacity: 1; }
.project__index {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold);
  font-size: 1rem;
  display: block;
  margin-bottom: 1.1rem;
}
.project__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.8rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 0.9rem;
  line-height: 1.25;
}
.project__desc {
  color: var(--parchment-dim);
  font-size: 0.95rem;
  max-width: 62ch;
  flex: 1;
}
.project__desc em { color: var(--gold-bright); font-style: italic; }
.project__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.project__meta span {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.32rem 0.75rem;
  border: 1px solid var(--line);
  color: var(--parchment-dim);
}
.project__link {
  margin-top: 1.4rem;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-bright);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 0.2rem;
  transition: color 0.3s, border-color 0.3s;
}
.project__link:hover { color: var(--parchment); border-color: var(--parchment); }
@media (max-width: 820px) {
  .projects__grid { grid-template-columns: 1fr; }
}

/* ═══════════════ SKILLS ═══════════════ */
.skills__marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
  margin-bottom: clamp(3rem, 6vh, 4.5rem);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.skills__track {
  display: flex;
  gap: 2.4rem;
  width: max-content;
  animation: marquee 36s linear infinite;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--parchment-dim);
  white-space: nowrap;
}
.skills__track span:nth-child(even) { color: var(--gold); font-size: 0.8em; }
@keyframes marquee { to { transform: translateX(-50%); } }
.skills__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(1.8rem, 4vw, 3rem);
}
.skills__heading {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--gold-bright);
  margin-bottom: 1.1rem;
}
.skills__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.skills__chips span {
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--parchment-dim);
  transition: color 0.35s, border-color 0.35s, background 0.35s, transform 0.35s var(--ease-out);
}
.skills__chips span:hover {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-3px);
}

/* ═══════════════ CONTACT ═══════════════ */
.contact { text-align: left; }
.contact__inner { text-align: center; padding: clamp(1rem, 4vh, 3rem) 0; }
.contact__lede {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  color: var(--parchment-dim);
  margin-bottom: 1.8rem;
}
.contact__email {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 4.6vw, 3.4rem);
  letter-spacing: 0.04em;
  color: var(--parchment);
  position: relative;
  display: inline-block;
  transition: color 0.4s;
  overflow-wrap: anywhere;
}
.contact__email::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.12em;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out);
}
.contact__email:hover { color: var(--gold-bright); }
.contact__email:hover::after { transform: scaleX(1); transform-origin: left; }
.contact__details {
  margin-top: 2.2rem;
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--parchment-dim);
}
.contact__sep { color: var(--gold); }

/* ═══════════════ FOOTER ═══════════════ */
.footer {
  border-top: 1px solid var(--line);
  padding: 3.4rem var(--pad-x) 2.6rem;
  text-align: center;
  position: relative;
}
.footer__hands {
  width: min(280px, 70vw);
  height: 110px;
  margin: 0 auto 2rem;
  background: url("../assets/creation-of-adam.jpg") 62% 38% / 340% no-repeat;
  filter: saturate(0.85);
  opacity: 0.85;
  border: 1px solid var(--line);
  border-radius: 200px / 90px;
}
.footer__line {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.98rem;
  color: var(--parchment-dim);
}
.footer__sub {
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: rgba(184, 173, 152, 0.5);
}

/* ═══════════════ REDUCED MOTION ═══════════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .reveal-word { transform: none; }
  .reveal-line, .hero__scroll { opacity: 1; }
}
