/* =========================================================
   Gabriel Lugo Barrera · Portfolio
   Palette sampled from the harmony2observe photo series
   ========================================================= */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Water palette, darkest to brightest (pulled from the photos) */
  --abyss:   #000721;
  --deep:    #001141;
  --navy:    #001f61;
  --marine:  #00297b;
  --cobalt:  #0048ae;
  --azure:   #006ddf;
  --aqua:    #008bf2;
  --glint:   #00a1fb;

  /* Text */
  --foam:    #f2f7ff;   /* headings */
  --mist:    #d3e2fa;   /* body */
  --haze:    #93acd6;   /* secondary */

  /* Surfaces */
  --card:        rgba(0, 31, 97, 0.38);
  --card-strong: rgba(0, 17, 65, 0.72);
  --line:        rgba(0, 161, 251, 0.18);
  --line-strong: rgba(0, 161, 251, 0.45);

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
  --nav-h: 72px;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--mist);
  background: var(--abyss); /* fallback under the animated layers */
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--glint); text-decoration: none; }
a:hover { color: var(--foam); }
h1, h2, h3, h4 { color: var(--foam); margin: 0; line-height: 1.15; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--glint); color: var(--abyss);
  padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 16px; }

.container {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}

/* ---------- 3. Animated water background ---------- */
/* Registered so the gradient angle can animate smoothly */
@property --angle {
  syntax: "<angle>";
  initial-value: 160deg;
  inherits: false;
}

.bg-gradient {
  position: fixed; inset: 0; z-index: -2;
  background: linear-gradient(
    var(--angle),
    var(--abyss) 0%,
    var(--deep) 28%,
    var(--marine) 52%,
    var(--deep) 74%,
    var(--abyss) 100%
  );
  background-size: 220% 220%;
  animation:
    tide 38s ease-in-out infinite alternate,
    turn 60s ease-in-out infinite alternate;
}

@keyframes tide {
  0%   { background-position: 0% 30%; }
  50%  { background-position: 60% 70%; }
  100% { background-position: 100% 40%; }
}
@keyframes turn {
  0%   { --angle: 150deg; }
  100% { --angle: 215deg; }
}

/* Faint photo texture from the series, drifting slowly */
.bg-texture {
  position: fixed; inset: -10%; z-index: -1;
  background: url("assets/img/texture.webp") center / cover no-repeat;
  opacity: 0.14;
  mix-blend-mode: screen;
  animation: drift 50s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1.02); }
  to   { transform: translate3d(2%, 1.5%, 0) scale(1.08); }
}

/* ---------- 4. Shared pieces ---------- */
.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--glint);
  margin-bottom: 0.9rem;
}

.section { padding: clamp(72px, 10vw, 120px) 0; scroll-margin-top: var(--nav-h); }
.section__head { margin-bottom: clamp(32px, 5vw, 56px); }
.section__head--row {
  display: flex; flex-wrap: wrap; gap: 20px;
  align-items: flex-end; justify-content: space-between;
}
.section__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.01em;
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s, color .25s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn svg.fill { fill: currentColor; stroke: none; }
.btn--primary {
  background: linear-gradient(135deg, var(--azure), var(--glint));
  color: var(--abyss);
  box-shadow: 0 10px 30px -10px rgba(0, 161, 251, 0.6);
}
.btn--primary:hover {
  color: var(--abyss);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -10px rgba(0, 161, 251, 0.8);
}
.btn--ghost {
  border-color: var(--line-strong);
  color: var(--foam);
  background: rgba(0, 17, 65, 0.35);
}
.btn--ghost:hover {
  border-color: var(--glint);
  background: rgba(0, 72, 174, 0.35);
  color: var(--foam);
  transform: translateY(-2px);
}

/* Scroll reveal (activated by script.js; content stays visible without JS) */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 5. Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header.is-scrolled {
  background: rgba(0, 7, 33, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav {
  width: min(1120px, 100% - 32px);
  height: 100%;
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
}
.nav__logo {
  font-family: var(--serif);
  font-size: 1.7rem; font-weight: 600;
  color: var(--foam);
  letter-spacing: 0.04em;
}
.nav__logo span { color: var(--glint); }

.nav__menu { list-style: none; display: flex; gap: 6px; align-items: center; }
.nav__menu a {
  position: relative;
  display: block;
  padding: 8px 14px;
  font-size: 0.92rem; font-weight: 600;
  color: var(--mist);
  border-radius: 999px;
  transition: color .2s, background .2s;
}
.nav__menu a::after {
  content: "";
  position: absolute; left: 14px; right: 14px; bottom: 3px;
  height: 2px; border-radius: 2px;
  background: var(--glint);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__menu a:hover, .nav__menu a.is-active { color: var(--foam); }
.nav__menu a:hover::after, .nav__menu a.is-active::after { transform: scaleX(1); }
.nav__menu .nav__cta { border: 1px solid var(--line-strong); margin-left: 6px; }
.nav__menu .nav__cta::after { display: none; }
.nav__menu .nav__cta:hover { background: var(--glint); color: var(--abyss); border-color: var(--glint); }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong); border-radius: 12px;
  background: rgba(0, 17, 65, 0.5);
  cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav__toggle span {
  width: 20px; height: 2px; background: var(--foam); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  display: flex; align-items: center;
  padding: 40px 0 120px;
}
.hero__name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(3.4rem, 11vw, 7.6rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 0.3em;
  background: linear-gradient(120deg, var(--foam) 30%, #9fd6ff 60%, var(--glint) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero__role {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 600;
  color: var(--foam);
  letter-spacing: 0.04em;
  margin-bottom: 1.4em;
}
.hero__role b { font-weight: inherit; white-space: nowrap; }
.hero__role span { color: var(--glint); margin: 0 0.5em; }
.hero__intro { max-width: 600px; font-size: 1.12rem; color: var(--mist); margin-bottom: 2.2em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 36px;
  width: 26px; height: 42px; margin-left: -13px;
  border: 2px solid var(--line-strong); border-radius: 20px;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px;
  width: 4px; height: 8px; margin-left: -2px;
  background: var(--glint); border-radius: 2px;
  animation: drip 2s ease-in-out infinite;
}
@keyframes drip {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/* ---------- 7. About ---------- */
.about {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.about__text .section__title { margin-bottom: 0.7em; }
.facts { list-style: none; display: grid; gap: 14px; }
.fact {
  padding: 22px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  transition: transform .3s var(--ease), border-color .3s;
}
.fact:hover { transform: translateX(6px); border-color: var(--line-strong); }
.fact__big {
  display: block;
  font-family: var(--serif);
  font-size: 2.1rem; font-weight: 600; line-height: 1.1;
  color: var(--glint);
}
.fact__label { display: block; font-size: 0.92rem; color: var(--haze); }

/* ---------- 8. Films ---------- */
.film {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding: clamp(18px, 3vw, 28px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  transition: border-color .3s, transform .3s var(--ease);
}
.film + .film { margin-top: 28px; }
.film:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.film--featured { grid-template-columns: 1.5fr 1fr; }

/* 16:9 responsive video wrapper */
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--abyss);
  box-shadow: 0 0 0 1px var(--line);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.film__badge {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--abyss); background: var(--glint);
  padding: 5px 12px; border-radius: 999px;
  margin-bottom: 1em;
}
.film__title { font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 600; margin-bottom: 0.2em; }
.film__title em { font-weight: 500; color: var(--haze); font-size: 0.75em; }
.film__meta { font-size: 0.85rem; font-weight: 600; color: var(--haze); letter-spacing: 0.06em; text-transform: uppercase; }
.credits { margin: 1.2em 0 0; display: grid; gap: 10px; }
.credits div { display: grid; grid-template-columns: 84px 1fr; gap: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.credits dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--glint); padding-top: 3px; }
.credits dd { margin: 0; font-size: 0.95rem; color: var(--foam); }

/* ---------- 9. Writing ---------- */
.category + .category { margin-top: clamp(56px, 8vw, 88px); }
.category__head { margin-bottom: 22px; max-width: 720px; }
.category__title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 600;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  margin-bottom: 0.4em;
}
.lang-tag {
  font-family: var(--sans);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--glint);
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 4px 10px;
}
.category__note { color: var(--haze); font-size: 0.97rem; margin: 0; }

/* Accordion */
.accordion { display: grid; gap: 14px; }
.acc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  transition: border-color .3s, background .3s, transform .3s var(--ease);
}
.acc:hover { border-color: var(--line-strong); }
.acc.is-open { background: var(--card-strong); border-color: var(--line-strong); }
.acc__heading { margin: 0; }
.acc__btn {
  position: relative;
  width: 100%;
  display: grid; gap: 6px;
  text-align: left;
  padding: 24px 72px 24px 28px;
  background: none; border: 0; cursor: pointer;
  border-radius: var(--radius);
}
.acc__kicker { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--glint); }
.acc__title { font-family: var(--serif); font-size: clamp(1.35rem, 2.6vw, 1.75rem); font-weight: 600; color: var(--foam); line-height: 1.2; }
.acc__teaser {
  font-size: 0.98rem; color: var(--haze); font-style: italic;
  transition: opacity .3s, max-height .4s var(--ease);
  max-height: 6em; overflow: hidden;
}
.acc.is-open .acc__teaser { opacity: 0; max-height: 0; }

/* Plus / minus icon */
.acc__icon {
  position: absolute; right: 24px; top: 50%;
  width: 34px; height: 34px; margin-top: -17px;
  border: 1px solid var(--line-strong); border-radius: 50%;
  transition: transform .4s var(--ease), background .3s, border-color .3s;
}
.acc__icon::before, .acc__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 12px; height: 2px; margin: -1px 0 0 -6px;
  background: var(--foam); border-radius: 2px;
  transition: transform .4s var(--ease);
}
.acc__icon::after { transform: rotate(90deg); }
.acc__btn:hover .acc__icon { background: var(--glint); border-color: var(--glint); }
.acc__btn:hover .acc__icon::before, .acc__btn:hover .acc__icon::after { background: var(--abyss); }
.acc.is-open .acc__icon { transform: rotate(180deg); }
.acc.is-open .acc__icon::after { transform: rotate(0deg); }

/* Smooth height animation with the grid 0fr to 1fr technique */
.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .5s var(--ease);
}
.acc.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__body {
  overflow: hidden;
  min-height: 0;
  padding: 0 28px;
  transition: padding .5s var(--ease);
}
.acc.is-open .acc__body { padding: 0 28px 28px; }
.acc__panel[hidden] { display: grid; } /* kept in flow so the animation can run */

/* Translations */
.en {
  display: none;
  font-size: 0.92rem; font-style: italic; color: var(--haze);
  border-left: 2px solid var(--azure);
  padding-left: 12px; margin: 12px 0 0;
}
.show-en .en { display: block; animation: fade .4s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.translate-btn {
  margin-top: 20px;
  padding: 8px 16px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: none; color: var(--glint); cursor: pointer;
  transition: background .2s, color .2s;
}
.translate-btn:hover, .translate-btn[aria-pressed="true"] { background: var(--glint); color: var(--abyss); }

/* Placeholder brand names */
.ph {
  font-style: normal;
  color: var(--glint);
  border-bottom: 1px dashed var(--glint);
  white-space: nowrap;
}

/* Social posts */
.copy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.copy-card {
  padding: 20px;
  border-radius: var(--radius-sm);
  background: linear-gradient(160deg, rgba(0, 72, 174, 0.35), rgba(0, 17, 65, 0.6));
  border: 1px solid var(--line);
  transition: transform .3s var(--ease), border-color .3s;
}
.copy-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.copy-card__visual { font-size: 0.78rem; color: var(--haze); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.copy-card__line { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; color: var(--foam); line-height: 1.25; }
.copy-card__tag { font-weight: 700; color: var(--glint); margin: 0; font-size: 0.9rem; }

/* Ads */
.ad-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ad {
  padding: 26px;
  border-radius: var(--radius-sm);
  background: linear-gradient(200deg, rgba(0, 109, 223, 0.28), rgba(0, 7, 33, 0.6));
  border: 1px solid var(--line);
}
.ad__label, .script__label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--glint);
}
.ad__headline { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 600; line-height: 1.1; color: var(--foam); margin-bottom: 0.5em; }
.ad__body { margin: 0; }

/* Scripts */
.script {
  padding: 22px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(0, 7, 33, 0.45);
  font-family: "Courier Prime", "Courier New", monospace;
}
.script + .script { margin-top: 14px; }
.script__label { font-family: var(--sans); }
.script__vo { font-size: 1rem; color: var(--foam); }
.script__tag { font-weight: 700; color: var(--glint); margin: 0; }
.script .en { font-family: var(--sans); }

/* Email */
.email {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(0, 7, 33, 0.45);
  overflow: hidden;
}
.email__row {
  margin: 0; padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--foam); font-weight: 700;
}
.email__row span {
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--glint);
  margin-right: 10px;
}
.email__body { padding: 20px 22px 6px; }
.email .en { margin: 0 22px 20px; }

/* Taglines */
.taglines { list-style: none; counter-reset: tag; display: grid; gap: 12px; }
.taglines li {
  counter-increment: tag;
  position: relative;
  padding: 18px 22px 18px 64px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(0, 7, 33, 0.45);
}
.taglines li::before {
  content: counter(tag, decimal-leading-zero);
  position: absolute; left: 22px; top: 18px;
  font-weight: 700; color: var(--glint); font-size: 0.85rem;
}
.taglines li > p:first-child { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--foam); margin: 0; line-height: 1.25; }

/* Article */
.article { max-width: 720px; }
.acc.is-open .article { padding-top: 6px; }
.article__byline { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--glint); }
.article__pull {
  font-family: var(--serif); font-size: 1.6rem; font-weight: 600; line-height: 1.3;
  color: var(--foam);
  border-left: 3px solid var(--glint); padding-left: 18px;
  margin: 1.2em 0;
}
.article__end { font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--foam); margin: 0; }

/* Screenwriting cards */
.scripts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.script-card {
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  transition: transform .3s var(--ease), border-color .3s;
}
.script-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.script-card__genre { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--glint); margin-bottom: 0.6em; }
.script-card__title { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; margin-bottom: 0.4em; }
.script-card p:last-child { margin: 0; }

/* ---------- 10. Photography ---------- */
.series-title { font-weight: 500; letter-spacing: 0.02em; }
.series-title sub { font-size: 0.5em; color: var(--glint); vertical-align: -0.15em; }

.statement {
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 56px);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  line-height: 1.55;
  color: var(--foam);
}
.statement__quote {
  font-style: italic;
  color: #a9d4ff;
  border-left: 2px solid var(--glint);
  padding-left: 20px;
}
.statement__sig { font-family: var(--sans); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--haze); margin: 0; }

.gallery {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.gallery__item--wide { grid-column: span 2; }
.gallery__item--wide img { aspect-ratio: 21 / 9; object-fit: cover; }
.gallery__item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .8s var(--ease), filter .5s; }
.gallery__item--wide img { aspect-ratio: 21 / 9; }
.gallery__btn {
  position: relative;
  display: block; width: 100%;
  padding: 0; border: 0; cursor: zoom-in;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--abyss);
  box-shadow: var(--shadow), 0 0 0 1px var(--line);
}
.gallery__btn:hover img { transform: scale(1.04); filter: brightness(1.12); }
.gallery__num {
  position: absolute; left: 18px; bottom: 14px;
  font-family: var(--serif); font-size: 1.3rem; font-weight: 600;
  color: var(--foam);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

/* Lightbox */
.lightbox {
  width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh;
  margin: 0; padding: 0; border: 0;
  background: rgba(0, 4, 18, 0.94);
  color: var(--foam);
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(0, 4, 18, 0.9); }
.lightbox picture { max-width: calc(100vw - 140px); max-height: calc(100vh - 100px); }
.lightbox__img { max-width: 100%; max-height: calc(100vh - 100px); width: auto; border-radius: var(--radius-sm); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8); }
.lightbox__close, .lightbox__nav {
  position: absolute;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(0, 17, 65, 0.7);
  font-size: 1.8rem; line-height: 1;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--glint); color: var(--abyss); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__nav--prev { left: 20px; top: 50%; margin-top: -26px; }
.lightbox__nav--next { right: 20px; top: 50%; margin-top: -26px; }
.lightbox__count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; margin: 0; font-family: var(--serif); font-size: 1.1rem; color: var(--haze); }

/* ---------- 11. Experience ---------- */
.summary { max-width: 820px; font-size: 1.12rem; color: var(--foam); margin-bottom: clamp(36px, 5vw, 56px); }

.exp-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: start; }

.timeline { list-style: none; position: relative; padding-left: 28px; }
.timeline::before {
  content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(var(--glint), rgba(0, 161, 251, 0.1));
}
.job { position: relative; padding-bottom: 36px; }
.job:last-child { padding-bottom: 0; }
.job::before {
  content: ""; position: absolute; left: -28px; top: 7px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--abyss); border: 2px solid var(--glint);
  box-shadow: 0 0 0 5px rgba(0, 161, 251, 0.15);
  transition: background .3s, box-shadow .3s;
}
.job:hover::before { background: var(--glint); box-shadow: 0 0 0 8px rgba(0, 161, 251, 0.2); }
.job__when { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--glint); margin-bottom: 0.3em; }
.job__role { font-family: var(--serif); font-size: 1.65rem; font-weight: 600; }
.job__org { color: var(--haze); font-weight: 600; font-size: 0.95rem; margin: 0.2em 0 0.8em; }
.job ul { list-style: none; display: grid; gap: 8px; }
.job li { position: relative; padding-left: 18px; font-size: 0.98rem; }
.job li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 7px; height: 2px; background: var(--glint); }

.exp-side { display: grid; gap: 16px; }
.side-block {
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
}
.side-block__title { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--glint); margin-bottom: 14px; }
.side-list { list-style: none; display: grid; gap: 14px; }
.side-list strong { display: block; color: var(--foam); font-weight: 700; font-size: 0.97rem; line-height: 1.4; }
.side-list span { display: block; color: var(--haze); font-size: 0.88rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  font-size: 0.84rem; font-weight: 600;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--mist);
  background: rgba(0, 72, 174, 0.18);
  transition: background .2s, color .2s;
}
.chips li:hover { background: var(--glint); color: var(--abyss); }

/* ---------- 12. Contact & footer ---------- */
.contact { text-align: center; max-width: 760px; }
.contact__title { font-family: var(--serif); font-weight: 600; font-size: clamp(2.2rem, 6vw, 3.8rem); line-height: 1.05; margin-bottom: 0.5em; }
.contact__text { color: var(--mist); font-size: 1.1rem; }
.contact__email {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 4.2vw, 2.1rem);
  font-weight: 600;
  color: var(--foam);
  margin: 0.6em 0 1em;
  border-bottom: 2px solid var(--glint);
  word-break: break-all;
  transition: color .2s;
}
.contact__email:hover { color: var(--glint); }
.contact__links { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.contact__loc { margin-top: 2em; color: var(--haze); font-size: 0.9rem; }

.footer { border-top: 1px solid var(--line); padding: 28px 0; background: rgba(0, 4, 18, 0.55); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 0.88rem; color: var(--haze); }
.footer__inner p { margin: 0; }
.footer a { color: var(--haze); }
.footer a:hover { color: var(--glint); }

/* ---------- 13. Responsive ---------- */

/* Tablet */
@media (max-width: 960px) {
  .about, .exp-layout { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .film, .film--featured { grid-template-columns: 1fr; }
  .copy-grid { grid-template-columns: 1fr 1fr; }
}

/* Mobile navigation kicks in */
@media (max-width: 820px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px;
    background: rgba(0, 7, 33, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0; visibility: hidden;
    transition: transform .3s var(--ease), opacity .3s, visibility .3s;
  }
  .nav__menu.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__menu a { padding: 14px 16px; font-size: 1.05rem; border-radius: 12px; }
  .nav__menu a::after { display: none; }
  .nav__menu a.is-active { background: rgba(0, 72, 174, 0.3); }
  .nav__menu .nav__cta { margin: 8px 0 0; text-align: center; }
  .site-header.menu-open { background: rgba(0, 7, 33, 0.96); }
}

/* Phone */
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .facts { grid-template-columns: 1fr; }
  .copy-grid, .ad-stack, .scripts { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery__item--wide { grid-column: auto; }
  .gallery__item img, .gallery__item--wide img { aspect-ratio: 3 / 2; }
  .acc__btn { padding: 20px 60px 20px 20px; }
  .acc__icon { right: 16px; }
  .acc__body, .acc.is-open .acc__body { padding-left: 20px; padding-right: 20px; }
  .credits div { grid-template-columns: 1fr; gap: 2px; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
  .section__head--row .btn { width: 100%; justify-content: center; }
  .lightbox picture { max-width: 100vw; }
  .lightbox__nav { top: auto; bottom: 14px; margin-top: 0; width: 46px; height: 46px; }
  .footer__inner { flex-direction: column; text-align: center; }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
