/* =========================================================
   Alicia Tomassacci — Portfolio
   Design system: OKLCH tokens · fluid type · Swiss/construction
   ========================================================= */

:root {
  /* ---- Color (OKLCH, hex fallbacks in comments) ---- */
  --paper:      oklch(0.972 0.006 85);   /* #F7F5EF */
  --paper-2:    oklch(0.945 0.009 85);   /* #ECE7DC card */
  --paper-3:    oklch(0.915 0.010 85);   /* #E2DCCF */
  --ink:        oklch(0.205 0.012 65);   /* #1C1813 */
  --ink-soft:   oklch(0.435 0.010 65);   /* muted */
  --line:       oklch(0.855 0.008 85);   /* hairline */
  --red:        oklch(0.515 0.196 26);   /* #C11F1D — rouge du logo */
  --red-deep:   oklch(0.44 0.175 26);
  --dark:       oklch(0.178 0.013 65);   /* #16130F */
  --dark-2:     oklch(0.235 0.013 65);
  --on-dark:    oklch(0.945 0.010 85);
  --on-dark-soft: oklch(0.77 0.012 85);
  --line-dark:  oklch(1 0 0 / 0.14);

  /* ---- Type ---- */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;

  --text-xs:   clamp(0.72rem, 0.69rem + 0.13vw, 0.78rem);
  --text-sm:   clamp(0.82rem, 0.78rem + 0.18vw, 0.92rem);
  --text-base: clamp(1.00rem, 0.95rem + 0.24vw, 1.13rem);
  --text-lg:   clamp(1.18rem, 1.07rem + 0.5vw, 1.45rem);
  --text-xl:   clamp(1.5rem, 1.27rem + 1.1vw, 2.1rem);
  --text-2xl:  clamp(2rem, 1.5rem + 2.4vw, 3.4rem);
  --text-3xl:  clamp(2.7rem, 1.7rem + 4.6vw, 5.5rem);
  --text-mega: clamp(2.7rem, 0.6rem + 9vw, 9rem);

  /* ---- Space ---- */
  --s1: 0.25rem; --s2: 0.5rem; --s3: 0.75rem; --s4: 1rem; --s5: 1.5rem;
  --s6: 2rem; --s7: 3rem; --s8: 4rem; --s9: 6rem; --s10: 8rem;
  --gutter: clamp(1.15rem, 4vw, 4rem);
  --section-y: clamp(4.5rem, 9vw, 9rem);
  --maxw: 1440px;

  --shadow-md: 0 2px 6px oklch(0 0 0/0.05), 0 8px 22px oklch(0 0 0/0.07);
  --shadow-lg: 0 4px 12px oklch(0 0 0/0.06), 0 22px 48px oklch(0 0 0/0.14);
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-spring: cubic-bezier(0.34, 1.3, 0.64, 1);
}

/* ---------------- reset ---------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body[data-intro="pending"] { overflow: hidden; height: 100svh; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; padding: 0; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }

/* ---------------- shared type ---------------- */
.kicker {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex; align-items: center; gap: var(--s3);
}
.kicker__idx { color: var(--red); font-weight: 700; }
.kicker--invert { color: var(--on-dark-soft); }
.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-3xl);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin-top: var(--s3);
}
.section__lead {
  max-width: 46ch; color: var(--ink-soft); margin-top: var(--s4);
  font-size: var(--text-lg);
}

/* ---------------- layout ---------------- */
.section {
  padding: var(--section-y) var(--gutter);
  max-width: var(--maxw);
  margin-inline: auto;
}
.section--dark {
  background: var(--dark); color: var(--on-dark);
  max-width: none; margin: 0;
  padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
}
.section--dark .section__lead { color: var(--on-dark-soft); }
.section__head { margin-bottom: var(--s7); }
:where(section[id], main[id]) { scroll-margin-top: 5.5rem; }

/* ================= INTRO ================= */
.intro {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--paper);
  display: grid; place-items: center;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}
.intro__video-wrap { position: absolute; inset: 0; }
.intro__video { width: 100%; height: 100%; object-fit: cover; }
.intro__video--mobile { display: none; }
.intro__skip {
  position: absolute; z-index: 2;
  bottom: clamp(1.5rem, 5vh, 3rem); left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: var(--text-xs);
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink);
  padding: var(--s3) var(--s5); display: inline-flex; align-items: center; gap: var(--s3);
  border: 1px solid var(--ink); border-radius: 100px;
  background: oklch(0.97 0.006 85 / 0.6); backdrop-filter: blur(6px);
  transition: background 0.25s, color 0.25s, transform 0.25s var(--ease-spring);
  opacity: 0; animation: introFade 0.6s var(--ease) 1.2s forwards;
}
.intro__skip:hover { background: var(--ink); color: var(--paper); transform: translateX(-50%) translateY(-2px); }
@keyframes introFade { to { opacity: 1; } }
.intro__progress {
  position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
  transform-origin: left; transform: scaleX(var(--p, 0));
  background: var(--red); z-index: 2; transition: transform 0.15s linear;
}
.intro--done { opacity: 0; visibility: hidden; pointer-events: none; }
.intro__play {
  position: absolute; left: 50%; top: 50%; z-index: 4;
  transform: translate(-50%, -50%) scale(0.85);
  width: 76px; height: 76px; border-radius: 50%; border: none; cursor: pointer;
  display: grid; place-items: center; color: #fff; background: var(--red);
  box-shadow: 0 12px 34px oklch(0 0 0 / 0.28);
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease-spring), visibility 0.35s;
}
.intro__play svg { width: 30px; height: 30px; margin-left: 4px; }
.intro--needtap .intro__play {
  opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1);
  animation: introPulse 1.8s ease-in-out 0.35s infinite;
}
@keyframes introPulse {
  0%, 100% { box-shadow: 0 12px 34px oklch(0 0 0/0.28), 0 0 0 0 oklch(from var(--red) l c h / 0.5); }
  50%      { box-shadow: 0 12px 34px oklch(0 0 0/0.28), 0 0 0 18px oklch(from var(--red) l c h / 0); }
}

/* ================= NAV ================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s4);
  padding: clamp(0.8rem, 2vw, 1.4rem) var(--gutter);
  transition: background 0.35s var(--ease), box-shadow 0.35s, padding 0.35s;
}
.nav.is-stuck {
  background: oklch(0.972 0.006 85 / 0.82);
  backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line);
  padding-block: clamp(0.6rem, 1.4vw, 0.9rem);
}
.nav__brand { display: flex; align-items: center; gap: var(--s3); color: var(--ink); position: relative; z-index: 3; }
.nav__mark { width: 32px; height: 32px; color: var(--ink); flex: none; }
.nav__mark svg, .nav__mark img { width: 100%; height: 100%; display: block; }
.nav__name {
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm);
  letter-spacing: 0.01em;
}
.nav__menu { display: flex; align-items: center; gap: clamp(0.9rem, 2vw, 2rem); }
.nav__menu a {
  font-family: var(--font-mono); font-size: var(--text-xs);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft);
  position: relative; transition: color 0.2s; padding-block: 0.5em;
}
.nav__menu a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: -5px; height: 1px; width: 0;
  background: var(--red); transition: width 0.28s var(--ease);
}
.nav__menu a:hover { color: var(--ink); }
.nav__menu a:hover:not(.nav__cta)::after { width: 100%; }
.nav__cta {
  border: 1px solid var(--ink); border-radius: 100px; padding: 0.5em 1.1em;
  color: var(--ink) !important;
}
.nav__cta:hover { background: var(--ink); color: var(--paper) !important; }
.nav__burger { display: none; width: 40px; height: 40px; position: relative; z-index: 3; }
.nav__burger span {
  position: absolute; left: 9px; right: 9px; height: 2px; background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav__burger span:nth-child(1) { top: 15px; } .nav__burger span:nth-child(2) { bottom: 15px; }
body.menu-open .nav__burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
body.menu-open .nav__burger span:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }

/* ================= HERO ================= */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(6rem, 14vh, 9rem) var(--gutter) clamp(3rem, 8vh, 5rem);
  max-width: var(--maxw); margin-inline: auto;
  overflow: hidden;
}
.hero__grid { position: absolute; inset: 0; color: var(--line); z-index: 0; pointer-events: none; }
.hero__lines { width: 100%; height: 100%; opacity: 0.9; }
.hero__lines circle, .hero__lines line { opacity: 0; animation: drawIn 1.4s var(--ease) forwards; }
.hero__lines line:nth-child(2) { animation-delay: 0.05s; }
.hero__lines line:nth-child(3) { animation-delay: 0.1s; }
.hero__lines line:nth-child(4) { animation-delay: 0.15s; }
.hero__lines circle { animation-delay: 0.3s; }
@keyframes drawIn { from { opacity: 0; } to { opacity: 1; } }
.hero__inner { position: relative; z-index: 1; }
.hero__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--text-mega); line-height: 0.9; letter-spacing: -0.04em;
  margin: var(--s4) 0 var(--s5);
}
.hero__line { display: block; }
.hero__line { opacity: 0; transform: translateY(0.4em); animation: heroUp 0.9s var(--ease) forwards; }
.hero__line:nth-child(1) { animation-delay: 0.15s; }
.hero__line:nth-child(2) { animation-delay: 0.3s; }
@keyframes heroUp { to { opacity: 1; transform: none; } }
.hero__line--accent { color: var(--ink); position: relative; width: max-content; }
.hero__dot {
  display: inline-block; width: 0.34em; height: 0.34em; border-radius: 50%;
  background: var(--red); margin-left: 0.1em; vertical-align: 0.05em;
}
.hero__role {
  max-width: 34ch; font-size: var(--text-lg); color: var(--ink-soft);
  opacity: 0; animation: heroUp 0.9s var(--ease) 0.45s forwards;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s4); margin-top: var(--s6);
  opacity: 0; animation: heroUp 0.9s var(--ease) 0.6s forwards; }
.btn {
  display: inline-flex; align-items: center; gap: var(--s3);
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.12em;
  text-transform: uppercase; padding: 0.95em 1.6em; border-radius: 100px;
  border: 1px solid var(--ink); transition: transform 0.25s var(--ease-spring), background 0.25s, color 0.25s;
}
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--red); border-color: var(--red); transform: translateY(-2px); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.hero__scroll {
  position: absolute; bottom: clamp(1.5rem,4vh,2.5rem); right: var(--gutter); z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: var(--s3);
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-soft); writing-mode: vertical-rl;
}
.hero__scroll-bar { width: 1px; height: 48px; background: var(--line); position: relative; overflow: hidden; }
.hero__scroll-bar::after { content:""; position:absolute; inset:0; background: var(--red);
  animation: scrollCue 1.8s var(--ease) infinite; }
@keyframes scrollCue { 0%{transform:translateY(-100%)} 60%,100%{transform:translateY(100%)} }

/* ================= WORK ================= */
.work { position: relative; }
.work__deco { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; color: var(--line); }
.work__deco svg { position: absolute; top: 0; right: 0; width: min(50vw, 640px); height: auto; opacity: 0.8; }
.work > .section__head, .work > .filters, .work > .work__grid { position: relative; z-index: 1; }
.filters { display: flex; flex-wrap: wrap; gap: var(--s3); margin-bottom: var(--s6); }
.filter {
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.1em;
  text-transform: uppercase; padding: 0.6em 1.1em; border-radius: 100px;
  border: 1px solid var(--line); color: var(--ink-soft);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.work__grid {
  column-count: 1;
  column-gap: clamp(1rem, 1.6vw, 1.6rem);
}
@media (min-width: 620px) { .work__grid { column-count: 2; } }
@media (min-width: 1040px) { .work__grid { column-count: 3; } }
.card {
  position: relative; display: block; width: 100%; overflow: hidden;
  border-radius: 8px; background: var(--paper-2);
  cursor: pointer; isolation: isolate;
  break-inside: avoid; margin-bottom: clamp(1rem, 1.6vw, 1.6rem);
}
.card__media { display: block; position: relative; line-height: 0; }
.card__media picture { display: block; line-height: 0; }
.card__img {
  width: 100%; height: auto; display: block;
  background-size: cover; background-position: center;
  transition: transform 0.7s var(--ease), filter 0.5s;
}
.card.is-loaded .card__img { animation: imgIn 0.7s var(--ease); }
@keyframes imgIn { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; } }
.card:hover .card__img { transform: scale(1.05); }
.card__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, oklch(0.16 0.01 65 / 0.78) 0%, oklch(0.16 0.01 65/0.12) 42%, transparent 70%);
  opacity: 0.85; transition: opacity 0.4s;
}
.card:hover .card__scrim { opacity: 1; }
.card__body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: clamp(1rem, 2vw, 1.6rem); color: var(--on-dark);
  transform: translateY(0); transition: transform 0.4s var(--ease);
}
.card__cat {
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.12em;
  text-transform: uppercase; color: oklch(0.92 0.01 85 / 0.8);
  display: flex; gap: var(--s3); align-items: center;
}
.card__cat::before { content: ""; width: 16px; height: 1px; background: var(--red); }
.card__title {
  font-family: var(--font-display); font-weight: 500; font-size: var(--text-xl);
  line-height: 1.05; letter-spacing: -0.02em; margin-top: var(--s2);
}
.card__title em { font-style: normal; color: oklch(0.9 0.01 85 / 0.7); }
.card__plus {
  position: absolute; top: clamp(0.8rem,1.6vw,1.4rem); right: clamp(0.8rem,1.6vw,1.4rem);
  z-index: 2; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid oklch(1 0 0/0.5); color: #fff;
  display: grid; place-items: center; font-size: 1.1rem;
  opacity: 0; transform: scale(0.8) rotate(-30deg); transition: all 0.35s var(--ease-spring);
  background: oklch(0.16 0.01 65/0.35); backdrop-filter: blur(4px);
}
.card:hover .card__plus { opacity: 1; transform: none; background: var(--red); border-color: var(--red); }
.card__cat::before { transition: width 0.4s var(--ease); }
.card:hover .card__cat::before { width: 30px; }
.card.is-hidden { display: none; }

/* ================= BEFORE / AFTER ================= */
.ba__list {
  display: grid; gap: clamp(1.4rem, 3vw, 2.6rem);
  grid-template-columns: 1fr; align-items: start;
}
@media (min-width: 820px) { .ba__list { grid-template-columns: repeat(2, 1fr); grid-auto-flow: dense; }
  .ba-item--wide { grid-column: 1 / -1; } }
.ba-item { }
.ba-item__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s4); }
.ba-item__title { font-family: var(--font-display); font-weight: 500; font-size: var(--text-lg); letter-spacing: -0.01em; }
.ba-item__title span { color: var(--on-dark-soft); font-family: var(--font-mono); font-size: 0.7em; letter-spacing: 0.1em; }
.ba-item__note { color: var(--on-dark-soft); font-size: var(--text-sm); max-width: 34ch; }
.ba {
  position: relative; aspect-ratio: var(--ar, 3/2); width: 100%;
  border-radius: 8px; overflow: hidden; user-select: none; touch-action: pan-y;
  background: var(--dark-2); box-shadow: var(--shadow-lg); cursor: ew-resize;
  --pos: 50;
}
.ba:focus-within { outline: 2px solid var(--red); outline-offset: 3px; }
.ba__layer { position: absolute; inset: 0; }
.ba__layer picture { display: block; width: 100%; height: 100%; }
.ba__layer img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__after { z-index: 1; }
.ba__before { z-index: 2; clip-path: inset(0 calc(100% - var(--pos) * 1%) 0 0); }
.ba__tag {
  position: absolute; bottom: var(--s4); z-index: 3;
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.14em;
  text-transform: uppercase; padding: 0.45em 0.85em; border-radius: 100px;
  background: oklch(0.16 0.01 65/0.82); color: #fff; backdrop-filter: blur(4px);
}
.ba__tag--before { left: var(--s4); }
.ba__tag--after { right: var(--s4); }
.ba__handle {
  position: absolute; top: 0; bottom: 0; z-index: 4;
  left: calc(var(--pos) * 1%); width: 2px; background: var(--paper);
  transform: translateX(-1px); box-shadow: 0 0 12px oklch(0 0 0/0.4);
}
.ba__grip {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 48px; height: 48px; border-radius: 50%; background: var(--red); color: #fff;
  display: grid; place-items: center; box-shadow: 0 6px 18px oklch(from var(--red) l c h / 0.5), var(--shadow-md);
  font-size: 0.85rem; letter-spacing: -0.12em; transition: transform 0.25s var(--ease-spring);
}
.ba:hover .ba__grip { transform: translate(-50%, -50%) scale(1.08); }
.ba__range { position: absolute; inset: 0; z-index: 5; opacity: 0; cursor: ew-resize; width: 100%; pointer-events: none; }

/* ================= ABOUT ================= */
.about__body { display: grid; grid-template-columns: 1fr; gap: var(--s8); }
@media (min-width: 880px) { .about__body { grid-template-columns: 1.5fr 1fr; gap: var(--s9); } }
.about__text p { font-size: var(--text-xl); line-height: 1.4; max-width: 30ch; letter-spacing: -0.01em; }
.about__text p + p { margin-top: var(--s5); font-size: var(--text-lg); color: var(--ink-soft); max-width: 44ch; line-height: 1.55; }
.about__side { display: grid; gap: var(--s6); align-content: start; }
.about__h {
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: var(--s3);
  padding-bottom: var(--s3); border-bottom: 1px solid var(--line);
}
.about__skills li { padding: 0.35em 0; display: flex; gap: var(--s3); align-items: baseline; font-size: var(--text-base); }
.about__skills li::before { content: ""; width: 6px; height: 6px; background: var(--red); flex: none; transform: translateY(0.5em); }
.about__tools, .about__langs { display: flex; flex-wrap: wrap; gap: var(--s2); }
.about__tools li {
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.06em;
  border: 1px solid var(--line); border-radius: 100px; padding: 0.4em 0.9em; color: var(--ink-soft);
}
.about__langs { flex-direction: column; gap: var(--s2); }
.about__langs li { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 0.5em 0; }
.about__langs b { font-weight: 500; }
.about__langs span { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink-soft); }

/* ================= CONTACT ================= */
.contact { text-align: left; position: relative; overflow: hidden; }
.contact__deco {
  position: absolute; top: 50%; right: clamp(-4rem, -2vw, 2rem); transform: translateY(-50%);
  z-index: 0; pointer-events: none; width: clamp(260px, 40vw, 620px); height: auto;
}
.contact__deco svg, .contact__deco img { width: 100%; height: auto; display: block; opacity: 0.9; }
.contact__inner { max-width: var(--maxw); margin-inline: auto; position: relative; z-index: 1; }
.contact__title {
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-3xl);
  line-height: 0.95; letter-spacing: -0.03em; margin: var(--s4) 0 var(--s7);
}
.contact__mail {
  display: inline-block; font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.3rem, 4vw, 2.6rem); letter-spacing: -0.02em; color: var(--on-dark);
  border-bottom: 2px solid var(--line-dark); padding-bottom: 0.1em; transition: border-color 0.3s, color 0.3s;
}
.contact__mail:hover { color: var(--red); border-color: var(--red); }
.contact__meta { display: flex; flex-wrap: wrap; gap: var(--s5) var(--s8); margin-top: var(--s7); }
.contact__meta div { display: grid; gap: var(--s1); }
.contact__meta dt, .contact__meta .k {
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--on-dark-soft);
}
.contact__meta .v { font-size: var(--text-base); }
.contact__meta a:hover { color: var(--red); }

/* ================= FOOTER ================= */
.footer {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  padding: var(--s6) var(--gutter); max-width: var(--maxw); margin-inline: auto;
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.08em;
  color: var(--ink-soft); text-transform: uppercase;
}
.footer__mark { width: 28px; height: 28px; color: var(--ink); }
.footer__mark svg, .footer__mark img { width: 100%; height: 100%; display: block; }

/* ================= LIGHTBOX ================= */
.lb {
  position: fixed; inset: 0; z-index: 500; background: oklch(0.15 0.01 65 / 0.97);
  backdrop-filter: blur(8px); opacity: 0; visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.lb.is-open { opacity: 1; visibility: visible; }
.lb__panel {
  position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain;
  display: grid; grid-template-columns: 1fr; align-content: start;
  padding: clamp(3.5rem, 8vh, 6rem) var(--gutter) var(--s8);
  color: var(--on-dark);
}
@media (min-width: 980px) {
  .lb__panel { grid-template-columns: 1.7fr 1fr; gap: var(--s8); padding-inline: clamp(2rem,6vw,6rem); }
}
.lb__images { display: grid; gap: var(--s5); }
.lb__images figure { margin: 0; }
.lb__images picture { display: block; line-height: 0; }
.lb__images img { width: 100%; height: auto; border-radius: 6px; background: var(--dark-2); }
.lb__cap { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-soft); margin-top: var(--s3); }
.lb__info { align-self: start; }
@media (min-width: 980px) { .lb__info { position: sticky; top: clamp(3.5rem,8vh,6rem); } }
.lb__cat { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); }
.lb__title { font-family: var(--font-display); font-weight: 600; font-size: var(--text-2xl); line-height: 1; letter-spacing: -0.025em; margin: var(--s3) 0 var(--s4); }
.lb__title em { font-style: normal; color: var(--on-dark-soft); display: block; font-size: 0.55em; margin-top: 0.2em; }
.lb__desc { color: var(--on-dark-soft); font-size: var(--text-base); line-height: 1.6; }
.lb__facts { display: grid; gap: var(--s3); margin-top: var(--s6); }
.lb__fact { display: grid; grid-template-columns: 90px 1fr; gap: var(--s4); padding-bottom: var(--s3); border-bottom: 1px solid var(--line-dark); }
.lb__fact .k { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-soft); }
.lb__fact .v { font-size: var(--text-sm); }
.lb__tools { display: flex; flex-wrap: wrap; gap: var(--s2); }
.lb__tools span { font-family: var(--font-mono); font-size: var(--text-xs); border: 1px solid var(--line-dark); border-radius: 100px; padding: 0.3em 0.8em; }
.lb__close, .lb__nav {
  position: fixed; z-index: 3; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line-dark); color: var(--on-dark); display: grid; place-items: center;
  font-size: 1.2rem; background: oklch(0.18 0.01 65/0.6); backdrop-filter: blur(6px);
  transition: background 0.25s, transform 0.25s;
}
.lb__close:hover, .lb__nav:hover { background: var(--red); border-color: var(--red); }
.lb__close { top: clamp(1rem,3vh,1.6rem); right: var(--gutter); }
.lb__nav { top: 50%; transform: translateY(-50%); }
.lb__nav--prev { left: clamp(0.6rem,2vw,1.4rem); }
.lb__nav--next { right: clamp(0.6rem,2vw,1.4rem); }
.lb__nav:hover { transform: translateY(-50%) scale(1.08); }
@media (max-width: 700px) { .lb__nav { display: none; } }

/* ================= reveal / motion ================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.noscript { color: var(--ink-soft); max-width: 60ch; line-height: 1.7; }
.noscript ul { margin: var(--s4) 0; display: grid; gap: var(--s2); }
.noscript li { padding-left: var(--s4); border-left: 2px solid var(--red); }
.noscript a { color: var(--red); }

/* ================= responsive ================= */
@media (max-width: 760px) {
  .intro__video--desktop { display: none; }
  .intro__video--mobile { display: block; }
  .nav__burger { display: block; }
  .nav__menu {
    display: flex; flex-direction: column; align-items: flex-start; gap: var(--s5);
    position: fixed; inset: 0; padding: 30vh var(--gutter) 0;
    background: var(--paper); z-index: 2;
    opacity: 0; visibility: hidden; transform: translateY(-10px); pointer-events: none;
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
  }
  body.menu-open .nav__menu { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
  .nav__menu a {
    font-size: var(--text-xl); color: var(--ink);
    opacity: 0; transform: translateY(8px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  }
  body.menu-open .nav__menu a { opacity: 1; transform: none; }
  .nav__menu a:nth-child(1) { transition-delay: 0.06s; }
  .nav__menu a:nth-child(2) { transition-delay: 0.12s; }
  .nav__menu a:nth-child(3) { transition-delay: 0.18s; }
  .nav__menu a:nth-child(4) { transition-delay: 0.24s; }
  .nav__menu a::after { display: none; }
  .hero__scroll { display: none; }
}

/* ================= 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;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__line, .hero__role, .hero__actions, .intro__skip { opacity: 1 !important; }
}
