/* ==========================================================================
   PALETTE — swap these to re-theme the whole site.
   Luca's palette: "orange rose on deep navy"
   ========================================================================== */
:root {
  --c-night:      #02010D; /* page background (near-black) */
  --c-navy:       #0C2D59; /* deep navy: bands, cards, cool side of gradient */
  --c-blue:       #1F4D86; /* blue: card borders, cool highlights */
  --c-orange-soft:#F08735; /* soft orange: warm gradient */
  --c-accent:     #F78404; /* bright orange: PRIMARY ACCENT */
  --c-terracotta: #D06940; /* warm gradient / hover glow */
  --c-burnt:      #DD621A; /* warm gradient */
  --c-rust:       #BC3401; /* deep rust: warm gradient core */

  --bg:        var(--c-night);
  --text:      #F4EFE8;               /* off-white */
  --muted:     #B9B4C6;               /* secondary text (AA on --bg) */
  --line:      rgba(244, 239, 232, .14);
  --accent:    var(--c-accent);
  --on-accent: #120700;               /* text on accent buttons */
  --surface:   rgba(12, 45, 89, .32); /* navy glass for cards */

  --font-sans:  "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;

  --pad: clamp(20px, 5vw, 72px);
  --max: 1240px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

/* ---------- Fonts (self-hosted, SIL Open Font License) ---------- */
@font-face {
  font-family: "Inter Tight";
  src: url("assets/fonts/inter-tight-latin.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/fonts/barlow-condensed-800-italic-latin.woff2") format("woff2");
  font-weight: 800; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-italic-latin.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-sans); font-size: clamp(16px, 1.05vw + 10px, 19px);
  line-height: 1.6; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.02; letter-spacing: -.03em; font-weight: 800; }
h2 { font-size: clamp(2.2rem, 5.4vw, 4.6rem); }
h3 { font-size: clamp(1.25rem, 1.6vw, 1.5rem); letter-spacing: -.015em; font-weight: 700; }
p { margin: 0; }
em { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }

.eyebrow {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .18em;
  color: var(--accent); font-weight: 600; margin-bottom: 1.4rem;
}

/* Clearly marked placeholders for Luca to fill */
.ph {
  color: var(--c-orange-soft);
  background: rgba(247, 132, 4, .08);
  border: 1px dashed rgba(247, 132, 4, .55);
  border-radius: 4px; padding: 0 .3em;
  font-style: normal; font-size: .95em;
}
.ph--block { display: block; padding: .9em 1em; line-height: 1.55; }

/* ---------- Background colour field ---------- */
#field {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: -2; pointer-events: none;
  background:
    radial-gradient(60% 50% at 70% 30%, rgba(188, 52, 1, .35), transparent 70%),
    radial-gradient(60% 60% at 20% 80%, rgba(12, 45, 89, .55), transparent 70%),
    var(--bg);
}
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--pad);
  transition: background .4s var(--ease), backdrop-filter .4s;
}
.nav.is-scrolled { background: rgba(2, 1, 13, .72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nav__mark {
  font-weight: 800; letter-spacing: -.04em; text-decoration: none; font-size: 1.15rem;
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1.5px solid var(--text); border-radius: 50%;
}
.nav__links { list-style: none; display: flex; gap: clamp(14px, 2.4vw, 34px); margin: 0; padding: 0; font-size: .92rem; }
.nav__links a { text-decoration: none; opacity: .82; transition: opacity .2s, color .2s; }
.nav__links a:hover { opacity: 1; color: var(--accent); }
.nav__cta { border-bottom: 1.5px solid var(--accent); padding-bottom: 2px; opacity: 1 !important; }
@media (max-width: 720px) { .nav__links li:not(:last-child) { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; max-width: var(--max); margin: 0 auto;
  padding: 120px var(--pad) 80px;
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(24px, 4vw, 64px);
}
.hero__name {
  font-size: clamp(4rem, 12.5vw, 11.5rem); line-height: .86; letter-spacing: -.055em;
  margin: 0 0 2rem; font-weight: 800;
}
.build { display: block; white-space: nowrap; }
.build--accent { color: var(--accent); }
.build .ch { display: inline-block; will-change: transform, opacity; }
.hero__line { font-size: clamp(1.35rem, 2.3vw, 2.1rem); line-height: 1.22; max-width: 22ch; letter-spacing: -.02em; font-weight: 500; }
.hero__line em { color: var(--c-orange-soft); display: block; margin-top: .35em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; margin-top: 2.4rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 700; font-size: .95rem;
  padding: 14px 26px; border-radius: 999px; border: 0; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 34px -8px rgba(247, 132, 4, .6); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.link-arrow { text-decoration: none; font-weight: 600; font-size: .95rem; border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: border-color .2s, color .2s; }
.link-arrow:hover { color: var(--accent); border-color: var(--accent); }

.hero__portrait { margin: 0; position: relative; justify-self: end; width: 100%; max-width: 470px; }
.hero__portrait img {
  width: 100%;
  /* fade the black curtain + edges into the page (two masks intersected) */
  -webkit-mask-image: linear-gradient(90deg, transparent 4%, #000 30%, #000 74%, transparent 98%), linear-gradient(180deg, transparent 0%, #000 16%, #000 62%, transparent 97%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(90deg, transparent 4%, #000 30%, #000 74%, transparent 98%), linear-gradient(180deg, transparent 0%, #000 16%, #000 62%, transparent 97%);
          mask-composite: intersect;
  filter: saturate(.95) contrast(1.04);
}
.hero__portrait::after { /* dark pool behind portrait so the curtain melts into the page */
  content: ""; position: absolute; inset: 0 -14% -4%; z-index: -1;
  background: radial-gradient(closest-side, rgba(2, 1, 13, .85), rgba(2, 1, 13, .4) 60%, transparent);
  filter: blur(20px);
}
.scroll-cue {
  position: absolute; left: var(--pad); bottom: 28px; display: flex; align-items: center; gap: 12px;
  font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--muted);
}
.scroll-cue i { width: 48px; height: 1px; background: var(--muted); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: translateX(-100%); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 60%, 100% { transform: translateX(100%); } }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 104px; min-height: auto; gap: 8px; }
  .hero__portrait { order: -1; justify-self: center; max-width: 320px; margin-bottom: 0; }
  .hero__name { font-size: clamp(3.6rem, 20vw, 7rem); margin-bottom: 1.4rem; }
  .hero .eyebrow { font-size: .7rem; letter-spacing: .14em; }
  .scroll-cue { display: none; }
}

/* ---------- Sections ---------- */
.section { position: relative; max-width: var(--max); margin: 0 auto; padding: clamp(64px, 8vw, 120px) var(--pad); }
.section__head { margin-bottom: clamp(36px, 5vw, 72px); }
.section__head h2 { max-width: 16ch; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0 0 0 0; position: relative; }
.timeline__line { position: absolute; left: 178px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.timeline__line span { position: absolute; inset: 0 0 auto 0; height: var(--progress, 0%); background: linear-gradient(var(--c-rust), var(--accent)); box-shadow: 0 0 14px rgba(247, 132, 4, .7); }
.tl {
  position: relative; display: grid; grid-template-columns: 150px 1fr; gap: 0 60px;
  padding: 34px 0; border-top: 1px solid var(--line);
}
.tl:last-child { border-bottom: 1px solid var(--line); }
.tl__dot {
  position: absolute; left: 172px; top: 44px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--muted); transition: border-color .4s, background .4s, box-shadow .4s;
}
.tl.is-in .tl__dot { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 6px rgba(247, 132, 4, .15); }
.tl__dot--now { animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 12px rgba(247, 132, 4, 0); } }
.tl__year { font-weight: 700; color: var(--muted); padding-top: 4px; font-variant-numeric: tabular-nums; }
.tl__body { padding-left: 0; }
.tl__body h3 { font-size: clamp(1.6rem, 3vw, 2.6rem); margin-bottom: .5rem; }
.tl__body p { color: var(--muted); max-width: 52ch; }
@media (max-width: 720px) {
  .timeline__line { left: 6px; }
  .tl { grid-template-columns: 1fr; padding: 28px 0 28px 36px; border-top: 0; }
  .tl:last-child { border-bottom: 0; }
  .tl__dot { left: 0; top: 34px; }
  .tl__year { margin-bottom: .4rem; font-size: .9rem; }
}

/* ---------- Personal ---------- */
.personal { background: linear-gradient(180deg, transparent, rgba(12, 45, 89, .28) 30%, rgba(12, 45, 89, .28) 70%, transparent); max-width: none; }
.personal__grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.personal__photo { margin: 0; position: sticky; top: 110px; border-radius: 18px; overflow: hidden; aspect-ratio: 1; box-shadow: 0 30px 80px -30px rgba(188, 52, 1, .45); }
.personal__photo img { width: 100%; height: 100%; object-fit: cover; }
.personal__text h2 { font-size: clamp(2rem, 4.2vw, 3.6rem); margin-bottom: 2.6rem; max-width: 18ch; }
.prompt { margin-bottom: 2rem; }
.prompt h3 { margin-bottom: .8rem; }
@media (max-width: 860px) {
  .personal__grid { grid-template-columns: 1fr; }
  .personal__photo { position: relative; top: 0; max-width: 320px; }
}

/* ---------- Views / cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; perspective: 1000px; }
.card {
  --mx: 50%; --my: 50%; --rx: 0deg; --ry: 0deg;
  position: relative; padding: 34px 30px 30px; border-radius: 20px; min-height: 340px;
  display: flex; flex-direction: column; gap: 14px; overflow: hidden; isolation: isolate;
  background: linear-gradient(160deg, rgba(31, 77, 134, .35), rgba(12, 45, 89, .22) 60%, rgba(2, 1, 13, .6));
  border: 1px solid rgba(31, 77, 134, .7);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s var(--ease), border-color .3s, box-shadow .3s;
  outline: none;
}
.card::before { /* light that follows the pointer */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(247, 132, 4, .28), rgba(208, 105, 64, .12) 40%, transparent 65%);
}
.card:hover, .card:focus-visible { border-color: rgba(247, 132, 4, .7); box-shadow: 0 24px 60px -24px rgba(221, 98, 26, .55); }
.card:hover::before, .card:focus-visible::before { opacity: 1; }
.card.is-tilting { transition: transform .08s linear, border-color .3s, box-shadow .3s; }
.card__num { font-family: var(--font-serif); font-style: italic; font-size: 2.6rem; color: var(--accent); line-height: 1; margin-bottom: auto; padding-bottom: 40px; }
.card h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); }
.card p { color: var(--muted); }
.card__soon { margin-top: 10px; font-size: .78rem !important; letter-spacing: .16em; text-transform: uppercase; color: var(--c-orange-soft) !important; display: flex; align-items: center; gap: 10px; }
.card__soon::before { content: ""; width: 22px; height: 1px; background: currentColor; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } .card { min-height: 0; } .card__num { padding-bottom: 18px; } }

/* ---------- Giving back ---------- */
.giving__inner {
  position: relative; border-radius: 28px; padding: clamp(40px, 7vw, 96px); overflow: hidden;
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(188, 52, 1, .55), transparent 60%),
    radial-gradient(70% 90% at 0% 100%, rgba(31, 77, 134, .55), transparent 60%),
    var(--c-navy);
}
.giving h2 { font-size: clamp(1.8rem, 4vw, 3.4rem); }
.tag { color: var(--text); }
.giving__stat {
  font-size: clamp(4.2rem, 15vw, 13rem); font-weight: 800; letter-spacing: -.06em; line-height: .9;
  margin: 1.4rem 0 2rem; color: var(--accent); font-variant-numeric: tabular-nums;
  text-shadow: 0 0 60px rgba(247, 132, 4, .35);
}
.giving__over { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: .28em; letter-spacing: -.01em; color: var(--text); vertical-align: .9em; margin-right: .2em; }
.giving__copy { max-width: 56ch; font-size: 1.1em; }

/* ---------- Photo wall ---------- */
.wall__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; grid-auto-flow: dense; gap: 14px; }
.wall__item { margin: 0; border-radius: 14px; overflow: hidden; background: rgba(12, 45, 89, .35); position: relative; }
.wall__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s; filter: grayscale(.25); }
.wall__item:hover img { transform: scale(1.04); filter: grayscale(0); }
.wall__item--tall { grid-row: span 2; }
.wall__item--wide { grid-column: span 2; }
.wall__item--ph { display: grid; place-items: center; border: 1px dashed rgba(247, 132, 4, .4);
  background: repeating-linear-gradient(135deg, rgba(31, 77, 134, .18) 0 12px, rgba(12, 45, 89, .1) 12px 24px); }
.wall__item--ph span { color: var(--c-orange-soft); font-size: .85rem; letter-spacing: .04em; text-align: center; padding: 0 10px; }
@media (max-width: 860px) {
  .wall__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .wall__item--wide { grid-column: span 2; }
}

/* ---------- Contact ---------- */
.contact { padding-bottom: 80px; }
.contact__title { font-size: clamp(3.6rem, 13vw, 11rem); letter-spacing: -.055em; line-height: .88; margin-bottom: 3rem; }
.contact__list { list-style: none; margin: 0 0 3.5rem; padding: 0; border-top: 1px solid var(--line); }
.contact__list li { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); font-size: clamp(1.2rem, 2.4vw, 2rem); font-weight: 600; letter-spacing: -.02em; }
.contact__list li > span:first-child { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.contact__list a { text-decoration: none; transition: color .2s; }
.contact__list a:hover { color: var(--accent); }
.newsletter { max-width: 560px; }
.newsletter label { display: block; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
.newsletter__row { display: flex; gap: 10px; }
.newsletter input {
  flex: 1; min-width: 0; font: inherit; color: var(--text); background: rgba(12, 45, 89, .35);
  border: 1px solid var(--line); border-radius: 999px; padding: 13px 20px;
}
.newsletter input:disabled { opacity: .6; cursor: not-allowed; }
.newsletter__note { margin-top: 10px; font-size: .85rem; color: var(--muted); }

.footer { max-width: var(--max); margin: 0 auto; padding: 30px var(--pad) 40px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); }
.footer__motto { font-family: var(--font-serif); font-style: italic; color: var(--c-orange-soft); }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .tl.reveal { transform: translateX(-40px); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .cards .reveal:nth-child(2) { transition-delay: .1s; }
.js .cards .reveal:nth-child(3) { transition-delay: .2s; }
.js .card.reveal.is-in { transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: opacity .9s var(--ease), transform .5s var(--ease), border-color .3s, box-shadow .3s; }
.js .card.reveal.is-in.is-tilting { transition: opacity .9s var(--ease), transform .08s linear, border-color .3s, box-shadow .3s; }

/* ---------- Signature cursor: ball + pitch-line trail ---------- */
.cursor, #trail { display: none; }
@media (hover: hover) and (pointer: fine) {
  .has-cursor .cursor {
    display: block; position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none;
    width: 0; height: 0; will-change: transform;
  }
  .has-cursor #trail { display: block; position: fixed; inset: 0; width: 100%; height: 100%; z-index: 89; pointer-events: none; }
  .cursor__ball {
    position: absolute; width: 18px; height: 18px; left: -9px; top: -9px; border-radius: 50%;
    border: 1.5px solid var(--accent);
    background:
      radial-gradient(circle at 50% 50%, var(--accent) 0 2.5px, transparent 3px);
    transition: width .25s var(--ease), height .25s var(--ease), left .25s var(--ease), top .25s var(--ease), background-color .25s;
  }
  .cursor.is-hover .cursor__ball { width: 46px; height: 46px; left: -23px; top: -23px; background-color: rgba(247, 132, 4, .12); }
}

/* ---------- Reduced motion: calm static version ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal, .js .tl.reveal { opacity: 1; transform: none; }
  .timeline__line span { height: 100% !important; }
  .card { transform: none !important; }
  .cursor, #trail { display: none !important; }
}

/* ==========================================================================
   ROUND 2 — active display type, pointing arrows, photos, energy band
   ========================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Display face: condensed, italic, forward-leaning */
h2, .hero__name, .tl__body h3, .card h3, .giving__stat, .contact__title, .band__text {
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  text-transform: uppercase; letter-spacing: -.01em;
}
h2 { font-size: clamp(3rem, 7.6vw, 7rem); line-height: .9; }
.hero__name { font-size: clamp(5rem, 15vw, 13.5rem); line-height: .82; letter-spacing: -.015em; }
.build--accent { padding-left: .35em; }          /* staggered, reads left → right */
.tl__body h3 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: .95; letter-spacing: 0; }
.card h3 { font-size: clamp(2rem, 2.8vw, 2.6rem); line-height: .95; letter-spacing: 0; }
.personal__text h2 { font-size: clamp(2.6rem, 5.6vw, 5rem); }
.giving h2 { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 4.4rem); }
.giving__stat { letter-spacing: -.02em; font-size: clamp(5rem, 18vw, 15rem); }
.giving__over { text-transform: none; }
.contact__title { font-size: clamp(4.4rem, 16vw, 13rem); letter-spacing: -.01em; line-height: .85; }
.section__head h2 { max-width: 12ch; }

/* Oversized section numbers */
.section__head, .personal__text, .contact { position: relative; }
.sec-num {
  position: absolute; top: -.32em; right: 0; z-index: -1; pointer-events: none;
  font-family: var(--font-display); font-style: italic; font-weight: 800; line-height: 1;
  font-size: clamp(9rem, 26vw, 24rem); color: transparent;
  -webkit-text-stroke: 1.5px rgba(247, 132, 4, .28);
}
.contact .sec-num { top: 40px; right: var(--pad); }
.giving__inner .sec-num { top: -.1em; right: .1em; -webkit-text-stroke-color: rgba(244, 239, 232, .18); z-index: 0; }
.section__head { margin-bottom: clamp(36px, 5vw, 72px); }

/* Word-by-word slide-in (JS adds .w spans) */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-right: .06em; margin-right: -.06em; }
.split .w > span { display: inline-block; transform: translateX(-.6em) skewX(-12deg); opacity: 0; transition: transform .8s var(--ease), opacity .8s var(--ease); transition-delay: calc(var(--i) * 70ms); }
.split.is-in .w > span { transform: none; opacity: 1; }

/* Pointing arrows */
.arrow-r { font-style: normal; display: inline-block; margin-left: 8px; transition: transform .3s var(--ease); }
.btn:hover .arrow-r, .link-arrow:hover span { transform: translateX(6px); }
.link-arrow span { display: inline-block; transition: transform .3s var(--ease); }
.next {
  display: inline-flex; align-items: center; gap: 14px; margin-top: clamp(40px, 6vw, 72px);
  font-family: var(--font-display); font-style: italic; font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.4rem, 2.2vw, 2rem); text-decoration: none; color: var(--text);
}
.next span { font-family: var(--font-sans); font-style: normal; font-weight: 600; font-size: .75rem; letter-spacing: .18em; color: var(--muted); }
.next i { font-style: normal; color: var(--accent); display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; border: 1.5px solid var(--accent); border-radius: 50%; font-size: .8em; animation: point-down 1.8s var(--ease) infinite; }
.next:hover { color: var(--accent); }
@keyframes point-down { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
.scroll-cue b { color: var(--accent); font-size: 1.1rem; animation: point-down 1.8s var(--ease) infinite; }

/* Timeline photos */
.tl__media { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.tl__shot { margin: 0; flex: 0 1 260px; }
.tl__shot img { width: 100%; height: 200px; object-fit: cover; border-radius: 12px; filter: saturate(.9); transition: transform .6s var(--ease), filter .4s; }
.tl__shot:hover img { transform: scale(1.03) rotate(-.6deg); filter: saturate(1.05); }
.tl__shot figcaption, .wall__item figcaption { margin-top: 8px; font-size: .78rem; color: var(--muted); letter-spacing: .02em; }
.tl__shot figcaption .ph, .wall__item figcaption .ph { font-size: .95em; }
.js .tl.reveal .tl__shot { opacity: 0; transform: translateX(-24px); transition: opacity .8s var(--ease) .25s, transform .8s var(--ease) .25s; }
.js .tl.reveal.is-in .tl__shot { opacity: 1; transform: none; }
.js .tl.reveal.is-in .tl__shot + .tl__shot { transition-delay: .4s; }
@media (max-width: 720px) { .tl__shot { flex: 1 1 140px; } .tl__shot img { height: 170px; } }

/* Full-bleed energy band */
.band { position: relative; height: clamp(320px, 62vh, 620px); overflow: hidden; display: grid; align-items: end; isolation: isolate; }
.band__bg { position: absolute; inset: -12% 0; z-index: -1; }
.band__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transform: translateY(var(--par, 0px)); filter: saturate(.85) contrast(1.05); }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(2,1,13,.25) 30%, rgba(2,1,13,.35) 65%, var(--bg) 100%),
              linear-gradient(90deg, rgba(188,52,1,.35), rgba(12,45,89,.35)); mix-blend-mode: normal; }
.band__text {
  white-space: nowrap; font-size: clamp(4.5rem, 14vw, 12rem); line-height: .9; margin: 0 0 4%;
  transform: translateX(var(--slide, 0px)); will-change: transform; color: var(--text);
  text-shadow: 0 6px 40px rgba(2,1,13,.6);
}
.band__text i { font-style: normal; color: var(--accent); padding: 0 .15em; }

/* Photo wall with real photos */
.wall__grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; }
.wall__item { background: var(--c-navy); }
.wall__item picture, .wall__item img { width: 100%; height: 100%; }
.wall__item img { object-fit: cover; }
.wall__item figcaption { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 26px 14px 10px; color: var(--text);
  background: linear-gradient(transparent, rgba(2,1,13,.85)); }
.wall__item--wide2 { grid-column: span 2; }
@media (max-width: 860px) {
  .wall__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .wall__item--wide2 { grid-column: auto; }
}
@media (max-width: 720px) {
  .sec-num { font-size: 8rem; top: -.2em; }
  .hero__name { font-size: clamp(4.6rem, 25vw, 8rem); }
  h2 { font-size: clamp(2.8rem, 13vw, 4.4rem); }
}
@media (prefers-reduced-motion: reduce) {
  .split .w > span, .js .tl.reveal .tl__shot { opacity: 1 !important; transform: none !important; }
  .band__text { transform: translateX(-4%) !important; }
  .band__bg img { transform: none !important; }
}

/* ---------- Invisible-cursor reveal ---------- */
.unseen { position: relative; height: clamp(460px, 90vh, 820px); overflow: hidden; background: #000; isolation: isolate; cursor: none; touch-action: pan-y; }
.unseen__base { position: absolute; inset: 0; display: grid; place-items: center; }
.unseen__base p { font-family: var(--font-display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: clamp(3rem, 10vw, 9rem); color: transparent; -webkit-text-stroke: 1px rgba(244,239,232,.09); }
.unseen__hidden {
  --x: 50%; --y: 50%; --r: clamp(140px, 18vw, 240px);
  position: absolute; inset: 0; display: grid; align-items: center;
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 0%, rgba(0,0,0,.85) 35%, transparent 100%);
          mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 0%, rgba(0,0,0,.85) 35%, transparent 100%);
}
.unseen__photo { position: absolute; inset: 0; }
.unseen__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 35%; filter: saturate(.8) brightness(.75); }
.unseen__hidden::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2,1,13,.85) 0%, rgba(2,1,13,.35) 60%, rgba(188,52,1,.25)); }
.unseen__text { position: relative; z-index: 1; max-width: var(--max); width: 100%; margin: 0 auto; padding: 0 var(--pad); }
.unseen__text h2 { max-width: 11ch; margin-bottom: 1.4rem; }
.unseen__text p { font-size: 1.2em; max-width: 40ch; }
.unseen__hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.unseen__hint-touch { display: none; }
@media (hover: none), (pointer: coarse) { .unseen__hint-fine { display: none; } .unseen__hint-touch { display: inline; } }
.cursor.is-hidden { opacity: 0 !important; }
.no-js .unseen__hidden, html:not(.js) .unseen__hidden { -webkit-mask-image: none; mask-image: none; }
@media (prefers-reduced-motion: reduce) {
  .unseen { cursor: auto; }
  .unseen__hidden { -webkit-mask-image: none !important; mask-image: none !important; }
  .unseen__base, .unseen__hint { display: none; }
}

/* Round 2 fixes */
html, body { overflow-x: clip; }
.hero { grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); }
.hero__text { min-width: 0; }
.hero__name { font-size: clamp(4.6rem, 11.2vw, 10.5rem); }
.unseen__hint { white-space: nowrap; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .hero__name { font-size: clamp(4.4rem, 24vw, 8rem); } }

/* ---------- Ask about Luca ---------- */
.ask__panel { max-width: 820px; border: 1px solid rgba(31,77,134,.8); border-radius: 22px; overflow: hidden;
  background: linear-gradient(170deg, rgba(31,77,134,.32), rgba(12,45,89,.22) 55%, rgba(2,1,13,.75)); box-shadow: 0 30px 80px -40px rgba(221,98,26,.5); }
.ask__bar { display: flex; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.ask__bar b { display: block; font-size: .95rem; }
.ask__bar small { color: var(--muted); font-size: .78rem; }
.ask__avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: .85rem; }
.ask__log { padding: 22px; display: flex; flex-direction: column; gap: 12px; min-height: 260px; max-height: 440px; overflow-y: auto; scroll-behavior: smooth; }
.msg { max-width: 82%; padding: 12px 16px; border-radius: 18px; line-height: 1.5; font-size: .98rem; }
.msg--luca { align-self: flex-start; background: rgba(12,45,89,.9); border: 1px solid rgba(31,77,134,.9); border-bottom-left-radius: 6px; }
.msg--you { align-self: flex-end; background: var(--accent); color: var(--on-accent); font-weight: 600; border-bottom-right-radius: 6px; }
.msg a { color: var(--accent); }
.msg.is-typing::after { content: "▍"; color: var(--accent); margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ask__chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 18px 22px; border-top: 1px solid var(--line); }
.chip { font: inherit; font-size: .9rem; font-weight: 600; color: var(--text); background: transparent; border: 1.5px solid rgba(247,132,4,.6);
  border-radius: 999px; padding: 9px 16px; cursor: pointer; transition: background .2s, color .2s, transform .2s var(--ease); }
.chip:hover { background: rgba(247,132,4,.14); transform: translateY(-2px); }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.chip:disabled { opacity: .5; cursor: wait; transform: none; }
.ask__note { padding: 0 22px 18px; font-size: .78rem; color: var(--muted); font-style: italic; }
@media (max-width: 720px) { .msg { max-width: 92%; } .ask__log { padding: 16px; } .ask__chips { padding: 14px 16px; } }

/* ---------- Round 4 markups ---------- */
/* Mobile overflow fix: the portrait's glow pseudo-element extended past the viewport */
main, .hero, .band, .unseen, .section { overflow-x: clip; }
@media (max-width: 860px) { .hero__portrait::after { inset: 0; } }

/* Barely-there warm light on the hero's right edge */
.hero::before {
  content: ""; position: absolute; top: 0; bottom: 0; z-index: -1; pointer-events: none;
  right: min(0px, calc((100% - 100vw) / 2)); width: 22vw;
  background: linear-gradient(to left, rgba(240, 135, 53, .07), rgba(240, 135, 53, .025) 45%, transparent);
}
.hero { overflow: visible; }

/* Views pull-quote */
.pullquote { margin: 0; max-width: 18ch; position: relative; padding-left: .5em; border-left: 4px solid var(--accent); }
.pullquote p { font-family: var(--font-display); font-style: italic; font-weight: 800; text-transform: uppercase; line-height: .95; font-size: clamp(2.6rem, 6.4vw, 6rem); }
.pullquote p::before { content: "“"; color: var(--accent); margin-right: .05em; }
.pullquote p::after { content: "”"; color: var(--accent); margin-left: .05em; }
.pullquote .ph { font-size: .8em; }
.pullquote cite { display: block; margin-top: 1rem; font-style: normal; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

/* Photo wall: 6 photos */
.wall__item--full { grid-column: 1 / -1; }
.wall__item--full img { object-position: 50% 30%; }
@media (max-width: 860px) {
  .wall__item--stage { grid-row: auto; }
  .wall__item--wide { grid-column: auto; }
  .wall__item--full { grid-column: 1 / -1; }
}

/* ---------- Sound toggle ---------- */
.sound {
  position: fixed; left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60;
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 14px; border-radius: 999px;
  font: inherit; font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--text);
  background: rgba(2, 1, 13, .72); border: 1.5px solid rgba(247, 132, 4, .55); cursor: pointer;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: border-color .2s, background .2s, transform .2s var(--ease);
}
.sound:hover { border-color: var(--accent); transform: translateY(-2px); }
.sound__state { color: var(--muted); min-width: 2.2em; text-align: left; }
.sound[aria-pressed="true"] .sound__state { color: var(--accent); }
.sound__bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.sound__bars i { display: block; width: 3px; height: 3px; border-radius: 1px; background: var(--accent); transition: height .3s; }
.sound[aria-pressed="true"] .sound__bars i { animation: eq 1s ease-in-out infinite; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(2) { animation-delay: -.35s; animation-duration: .8s; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(3) { animation-delay: -.6s; animation-duration: 1.15s; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(4) { animation-delay: -.15s; animation-duration: .9s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 14px; } }
@media (prefers-reduced-motion: reduce) { .sound[aria-pressed="true"] .sound__bars i { animation: none !important; height: 10px; } }
