/* =========================================================
   Gabriel Lugo Barrera · Portfolio
   The blue is the frame, the work sits on paper.
   Palette sampled from the harmony2observe photo series.
   ========================================================= */

/* ---------- 0. Self hosted fonts (from Fontsource, SIL Open Font License) ---------- */
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/cormorant-garamond-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: italic; font-display: swap; src: url("/assets/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/manrope-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/manrope-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/manrope-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/manrope-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 800; font-style: normal; font-display: swap; src: url("/assets/fonts/manrope-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Courier Prime"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/courier-prime-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Courier Prime"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/courier-prime-latin-700-normal.woff2") format("woff2"); }

@font-face { font-family: "Yellowtail"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/yellowtail-latin-400-normal.woff2") format("woff2"); }

/* ---------- 1. Tokens ---------- */
:root {
  /* Water */
  --abyss: #000721;
  --deep: #001141;
  --navy: #001f61;
  --marine: #00297b;
  --cobalt: #0048ae;
  --azure: #006ddf;
  --glint: #00a1fb;
  --foam: #f2f7ff;
  --mist: #d3e2fa;
  --haze: #9cb3db;

  /* Paper (for reading surfaces) */
  --paper: #f7f3ea;
  --paper-2: #efe8d9;
  --ink: #0c1733;
  --ink-soft: #4a5672;
  --rule: #e0d6c2;

  /* Brand placeholder tag */
  --tag-bg: #fff0c9;
  --tag-line: #c88a00;
  --tag-ink: #5c3c00;

  /* Glass surfaces on the photo */
  --glass: rgba(0, 17, 65, 0.55);
  --glass-strong: rgba(0, 10, 40, 0.78);
  --line: rgba(0, 161, 251, 0.2);
  --line-strong: rgba(0, 161, 251, 0.5);

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.75);
  --shadow-paper: 0 18px 40px -18px rgba(0, 0, 0, 0.6);
  --nav-h: 72px;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Courier Prime", "Courier New", Courier, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 2. Language switching ---------- */
html[lang="en"] [data-l="es"],
html[lang="es"] [data-l="en"] { display: none !important; }
html[lang="es"] .tr { display: none !important; }   /* hide English translations in Spanish mode */

/* ---------- 3. 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);
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
img { 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: 300;
  background: var(--glint); color: var(--abyss); padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 16px; }
.container { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* ---------- 4. Fixed photo background ---------- */
/* A fixed element (not background-attachment) so it also works on iPhone */
.bg {
  position: fixed; inset: 0; z-index: -1;
  background: var(--abyss) url("/assets/img/bg/water-lg.webp") center / cover no-repeat;
}
.bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(0, 41, 123, 0.25), transparent 60%),
    linear-gradient(180deg, rgba(0, 7, 33, 0.25) 0%, rgba(0, 7, 33, 0.5) 40%, rgba(0, 7, 33, 0.62) 100%);
}
@media (max-width: 800px) { .bg { background-image: url("/assets/img/bg/water-sm.webp"); } }
/* Second background: the waves clip, faded in from the Photography section on */
.bg-video { position: fixed; inset: 0; z-index: -1; opacity: 0; transition: opacity 1.2s var(--ease); background: var(--abyss) url("/assets/video/waves.webp") center / cover no-repeat; }
.bg-video video { width: 100%; height: 100%; object-fit: cover; }
.bg-video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 7, 33, 0.55), rgba(0, 7, 33, 0.72)); }
.bg-alt .bg-video { opacity: 1; }

/* ---------- 5. Shared ---------- */
.eyebrow {
  font-size: 0.78rem; font-weight: 800; 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.3rem, 5vw, 3.5rem); letter-spacing: -0.01em;
}
.chip {
  display: inline-block; vertical-align: middle;
  font-family: var(--sans); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--glint); border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 10px; line-height: 1.4;
}
.chip--dark { color: var(--cobalt); border-color: rgba(0, 72, 174, 0.35); margin-left: 6px; }

.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.85); }
.btn--ghost { border-color: var(--line-strong); color: var(--foam); background: rgba(0, 17, 65, 0.45); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--glint); background: rgba(0, 72, 174, 0.45); color: var(--foam); transform: translateY(-2px); }

/* Brand placeholder tag: never reads as regular copy */
.brand {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 0 7px 0 5px; border-radius: 6px;
  background: var(--tag-bg); color: var(--tag-ink);
  outline: 1.5px dashed var(--tag-line); outline-offset: -1.5px;
  font-weight: 700; font-style: normal; font-family: var(--sans);
  font-size: 0.86em; line-height: 1.5; white-space: nowrap; vertical-align: baseline;
}
.brand::before {
  content: ""; width: 0.8em; height: 0.8em; flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 12V3h9l9 9-9 9zM7.5 6a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 12V3h9l9 9-9 9zM7.5 6a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.brand--light { background: rgba(255, 240, 201, 0.95); }
.brand--tag { font-size: 0.8em; }

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

/* ---------- 6. Navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 100; height: var(--nav-h); transition: background .3s, box-shadow .3s; }
.site-header.is-scrolled, .site-header.menu-open {
  background: rgba(0, 7, 33, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav { width: min(1160px, 100% - 32px); height: 100%; margin-inline: auto; display: flex; align-items: center; gap: 18px; }
.nav__logo { color: var(--foam); display: block; width: 74px; flex: none; transition: color .2s; }
.nav__logo svg { width: 100%; height: auto; display: block; }
.nav__logo .logo-line { stroke: var(--glint); }
.nav__logo:hover { color: #bfe4ff; }

.nav__menu { list-style: none; display: flex; gap: 2px; align-items: center; margin-left: auto; }
.nav__menu a { position: relative; display: block; padding: 8px 13px; font-size: 0.9rem; font-weight: 600; color: var(--mist); border-radius: 999px; transition: color .2s, background .2s; }
.nav__menu a::after { content: ""; position: absolute; left: 13px; right: 13px; 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: 4px; }
.nav__menu .nav__cta::after { display: none; }
.nav__menu .nav__cta:hover { background: var(--glint); color: var(--abyss); border-color: var(--glint); }

.nav__right { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(0, 10, 40, 0.5); }
.lang__btn { border: 0; background: none; cursor: pointer; padding: 6px 11px; border-radius: 999px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; color: var(--haze); transition: background .2s, color .2s; }
.lang__btn:hover { color: var(--foam); }
.lang__btn[aria-pressed="true"] { background: var(--glint); color: var(--abyss); }

.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); }

/* ---------- 7. Hero ---------- */
.hero { position: relative; min-height: calc(100svh - var(--nav-h)); display: flex; align-items: center; padding: 40px 0 120px; }
.hero__name {
  font-family: "Yellowtail", "Cormorant Garamond", cursive; font-weight: 400;
  font-size: clamp(3.8rem, 11vw, 8.2rem); line-height: 1.05; letter-spacing: 0; margin: 0 0 0.3em -0.03em;
  color: var(--foam);
  text-shadow: 0 2px 30px rgba(0, 7, 33, 0.85);
}
.hero__role { font-size: clamp(1rem, 2.2vw, 1.25rem); font-weight: 700; color: var(--foam); letter-spacing: 0.04em; margin-bottom: 1.4em; }
.hero__role b { font-weight: inherit; white-space: nowrap; }
.hero__role i { font-style: normal; color: var(--glint); margin: 0 0.3em; }
.hero__intro { max-width: 620px; font-size: 1.14rem; 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); } }

/* ---------- 8. About ---------- */
.about { display: grid; grid-template-columns: minmax(260px, 0.85fr) 1.4fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.portrait { margin: 0; position: sticky; top: calc(var(--nav-h) + 24px); }
.portrait__frame {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: default; -webkit-tap-highlight-color: transparent;
  border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--deep);
  box-shadow: var(--shadow), 0 0 0 1px var(--line);
}
.portrait__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .7s var(--ease), transform 1.2s var(--ease); }
.portrait__main { object-position: 50% 40%; }
.portrait__alt { opacity: 0; object-position: 50% 35%; transform: scale(1.04); }
/* Tap toggles on every device; hover only on real mice, since phones keep :hover stuck after a tap */
.portrait__frame[aria-pressed="true"] .portrait__alt { opacity: 1; transform: none; }
.portrait__frame[aria-pressed="true"] .portrait__main { transform: scale(1.04); }
@media (hover: hover) and (pointer: fine) {
  .portrait__frame:hover .portrait__alt { opacity: 1; transform: none; }
  .portrait__frame:hover .portrait__main { transform: scale(1.04); }
  /* On desktop, a click after hovering would flip it back; keep hover in charge there */
  .portrait__frame[aria-pressed="true"]:not(:hover) .portrait__alt { opacity: 1; }
}
.about__text .section__title { margin-bottom: 0.7em; }
.about__text p:not(.eyebrow) { font-size: 1.08rem; color: var(--mist); }
.about__text em { color: var(--foam); font-style: italic; font-family: var(--serif); font-size: 1.15em; }

.facts { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: clamp(40px, 6vw, 64px); }
.fact { padding: 22px 22px 20px; background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(10px); transition: transform .3s var(--ease), border-color .3s; }
.fact:hover { transform: translateY(-4px); 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); margin-bottom: 4px; }
.fact__label { display: block; font-size: 0.9rem; color: var(--haze); line-height: 1.5; }

/* ---------- 9. Films ---------- */
.film {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: center;
  padding: clamp(18px, 3vw, 28px);
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); backdrop-filter: blur(10px);
  transition: border-color .3s, transform .3s var(--ease);
}
.film + .film { margin-top: 28px; }
.film:hover { border-color: var(--line-strong); }
.film--featured { grid-template-columns: 1.5fr 1fr; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--line); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: #000; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: opacity .3s, transform .6s var(--ease); }
.yt:hover img { opacity: 1; transform: scale(1.03); }
.yt__play {
  position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px;
  border-radius: 50%; background: rgba(0, 161, 251, 0.92); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  transition: transform .3s var(--ease), background .3s;
}
.yt__play::after { content: ""; position: absolute; left: 31px; top: 24px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent var(--abyss); }
.yt:hover .yt__play { transform: scale(1.08); background: var(--glint); }
.badge { display: inline-block; font-size: 0.7rem; font-weight: 800; 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.8rem, 3vw, 2.4rem); font-weight: 600; margin-bottom: 0.2em; }
.film__meta { font-size: 0.82rem; font-weight: 700; color: var(--haze); letter-spacing: 0.08em; text-transform: uppercase; }
.yt-link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 700; color: var(--glint); border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; }
.yt-link:hover { color: var(--foam); border-color: var(--foam); }
.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.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--glint); padding-top: 3px; }
.credits dd { margin: 0; font-size: 0.95rem; color: var(--foam); }

/* ---------- 10. Writing ---------- */
.category + .category { margin-top: clamp(64px, 9vw, 104px); }
.category__head { margin-bottom: 24px; max-width: 760px; }
.category__title { font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 0.4em; }
.category__note { color: var(--haze); font-size: 0.98rem; margin: 0; }
.credit { margin: 14px 4px 0; font-size: 0.78rem; color: var(--haze); }

/* Tabs (shared by copy samples and photography) */
.tabs__list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.tabs__list [role="tab"] {
  border: 1px solid var(--line-strong); background: rgba(0, 10, 40, 0.55); color: var(--mist);
  padding: 10px 18px; border-radius: 999px; font-size: 0.9rem; font-weight: 700; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.tabs__list [role="tab"]:hover { border-color: var(--glint); color: var(--foam); }
.tabs__list [role="tab"][aria-selected="true"] { background: var(--foam); color: var(--ink); border-color: var(--foam); }

/* The stage: a paper surface the mockups sit on */
.stage {
  background: linear-gradient(180deg, var(--paper), var(--paper-2));
  color: var(--ink); border-radius: 28px;
  padding: clamp(20px, 4vw, 44px);
  box-shadow: var(--shadow-paper);
  animation: fade .45s var(--ease);
}
.stage[hidden] { display: none; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.kicker { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cobalt); margin-bottom: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.kicker .brand { letter-spacing: 0.02em; text-transform: none; }

/* English translation lines */
.tr { font-size: 0.9rem; font-style: italic; color: var(--ink-soft); border-left: 2px solid var(--azure); padding-left: 12px; margin: 14px 0 0; line-height: 1.55; }
.tr b { font-style: normal; color: var(--ink); }
.tr--block { margin-top: 22px; max-width: 760px; }
.tr--list { list-style: decimal; padding-left: 32px; margin-top: 22px; }
.tr--list li { margin-bottom: 4px; }

/* A. Instagram posts */
.ig-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ig { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px -14px rgba(12, 23, 51, 0.35); border: 1px solid #e7e2d6; padding-bottom: 16px; transition: transform .3s var(--ease); }
.ig:hover { transform: translateY(-4px); }
.ig__head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.ig__avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 0.7rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, #6b3b1f, #c8873f); box-shadow: 0 0 0 2px #fff, 0 0 0 4px #e1306c; }
.ig__handle { font-weight: 700; font-size: 0.88rem; color: var(--ink); }
.ig__dots { margin-left: auto; color: var(--ink-soft); font-size: 0.7rem; letter-spacing: 1px; }
.ig__img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #d9cdb8; }
.ig__actions { display: flex; gap: 14px; padding: 12px 14px 6px; }
.ig__actions svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.ig__actions .ig__save { margin-left: auto; }
.ig__caption { padding: 0 14px; margin: 0; font-size: 0.95rem; color: var(--ink); line-height: 1.5; }
.ig__caption b { margin-right: 4px; }
.ig .tr { margin: 12px 14px 0; }

/* B. Print ads */
.ads { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ad { margin: 0; }
.ad__poster {
  position: relative; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden;
  background: #2a2a2a var(--img) center / cover no-repeat;
  box-shadow: 0 22px 50px -20px rgba(12, 23, 51, 0.55);
  display: flex; flex-direction: column; justify-content: space-between;
}
.ad__poster::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.75) 100%); }
.ad__label { position: absolute; top: 14px; right: 14px; z-index: 2; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; background: rgba(0, 0, 0, 0.45); padding: 4px 9px; border-radius: 999px; }
.ad__headline {
  position: relative; z-index: 1; margin: 0; padding: 30px 26px 0;
  font-family: var(--serif); font-weight: 700; font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 0.98;
  color: #fff; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4); max-width: 13ch;
}
.ad__band { position: relative; z-index: 1; display: flex; align-items: flex-end; gap: 16px; padding: 0 22px 22px; }
.ad__body { margin: 0; color: #fff; font-size: 0.98rem; line-height: 1.5; font-weight: 500; }
.ad__mark { flex: none; width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; text-align: center; font-size: 0.58rem; font-weight: 800; letter-spacing: 0.1em; line-height: 1.2; color: var(--tag-ink); background: var(--tag-bg); outline: 1.5px dashed var(--tag-line); outline-offset: -5px; }

/* C. Radio scripts */
.radio-banner { position: relative; height: clamp(150px, 22vw, 230px); border-radius: 14px; overflow: hidden; margin-bottom: 22px; background: #2a4a5a; box-shadow: 0 18px 40px -20px rgba(12, 23, 51, 0.5); }
.radio-banner video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.radio-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 7, 33, 0.55), transparent 60%); }
.radio-banner__tag { position: absolute; left: 18px; top: 16px; z-index: 1; display: inline-flex; align-items: center; gap: 8px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em; color: #fff; background: rgba(0, 0, 0, 0.5); padding: 6px 12px; border-radius: 999px; }
.radio-banner__dot { width: 8px; height: 8px; border-radius: 50%; background: #ff3b30; animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.radio-banner__brand { position: absolute !important; left: 18px; bottom: 16px; z-index: 1; letter-spacing: 0.2em; }
.scripts-pages { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: start; }
.page {
  background: #fff; border: 1px solid #e7e2d6; border-radius: 4px;
  padding: 40px clamp(20px, 4vw, 48px) 32px;
  font-family: var(--mono); font-size: 0.98rem; line-height: 1.6; color: #111;
  box-shadow: 0 1px 0 #ddd, 0 16px 34px -18px rgba(12, 23, 51, 0.45);
}
.page p { margin: 0 0 0.9em; }
.page__slug { font-weight: 700; text-transform: uppercase; margin-bottom: 1.6em !important; }
.page__sfx { text-transform: uppercase; color: #333; }
.page__char { text-align: center; text-transform: uppercase; margin: 1.3em 0 0 !important; }
.page__line { margin: 0 auto 0.9em !important; max-width: 34ch; }
.page .brand { font-family: var(--mono); font-size: 0.92em; }
.page .tr { font-family: var(--sans); margin-top: 24px; }

/* D. Email client */
.mail { max-width: 760px; margin: 0 auto; background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid #ddd6c6; box-shadow: 0 24px 50px -24px rgba(12, 23, 51, 0.5); }
.mail__bar { display: flex; align-items: center; gap: 7px; padding: 11px 16px; background: #eef1f6; border-bottom: 1px solid #e1e5ec; }
.mail__bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.mail__bar i:nth-child(2) { background: #febc2e; }
.mail__bar i:nth-child(3) { background: #28c840; }
.mail__bar span { margin-left: 10px; font-size: 0.8rem; font-weight: 700; color: #5b6472; }
.mail__subject { padding: 18px 24px 6px; font-size: 1.25rem; font-weight: 600; color: #1f1f1f; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.mail__label { font-size: 0.72rem; font-weight: 600; color: #444; background: #e8eaed; padding: 2px 8px; border-radius: 4px; }
.mail__from { display: flex; align-items: center; gap: 12px; padding: 10px 24px 16px; border-bottom: 1px solid #edf0f4; }
.mail__avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 0.8rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, #0b7a8a, #3fb6c4); }
.mail__who { min-width: 0; }
.mail__who p { margin: 0; font-size: 0.9rem; color: #1f1f1f; line-height: 1.4; }
.mail__who .brand { font-size: 0.85em; }
.mail__addr { color: #5f6368; font-size: 0.82rem; }
.mail__to { color: #5f6368 !important; font-size: 0.8rem !important; }
.mail__time { margin-left: auto; font-size: 0.78rem; color: #5f6368; white-space: nowrap; }
.mail__reply { display: flex; gap: 10px; padding: 14px 24px 18px; }
.mail__reply span { font-size: 0.85rem; font-weight: 600; color: #3c4043; border: 1px solid #dadce0; border-radius: 999px; padding: 7px 16px; }
.mail__body { background: #f4f6f9; padding: 22px; }
.mail__hero { position: relative; height: 190px; border-radius: 10px 10px 0 0; overflow: hidden; background: #8fb8c4; display: grid; place-items: center; }
.mail__hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mail__logo { position: relative; z-index: 1; }
.mail__logo { font-size: 1rem !important; letter-spacing: 0.24em; padding: 6px 14px !important; }
.mail__copy { background: #fff; border-radius: 0 0 10px 10px; padding: 26px clamp(18px, 4vw, 34px) 30px; color: #2b3445; font-size: 0.98rem; line-height: 1.65; }
.mail__copy h4 { color: var(--ink); font-family: var(--serif); font-size: 1.7rem; font-weight: 700; margin-bottom: 0.6em; }
.mail__offer { font-weight: 800; color: var(--ink); background: #e8f4ff; border-left: 3px solid var(--azure); padding: 8px 12px; border-radius: 4px; }
.mail__btn { display: inline-block; margin-top: 6px; background: var(--ink); color: #fff; font-weight: 700; padding: 12px 24px; border-radius: 999px; font-size: 0.92rem; }

/* E. Gym taglines */
.gym {
  position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden;
  background: #111 var(--img) center / cover no-repeat;
  box-shadow: 0 24px 50px -24px rgba(12, 23, 51, 0.6);
}
.gym::before { content: ""; position: absolute; inset: 0; background: linear-gradient(140deg, rgba(0, 17, 65, 0.78), rgba(0, 7, 33, 0.55) 55%, rgba(0, 72, 174, 0.45)); }
.gym__line {
  position: absolute; z-index: 1; margin: 0; color: #fff; text-transform: uppercase;
  font-family: var(--sans); font-weight: 800; line-height: 1.05; letter-spacing: -0.01em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5); transition: transform .4s var(--ease), color .3s;
}
.gym__line:hover { color: var(--glint); }
.gym__line--1 { top: 9%; left: 6%; font-size: clamp(1.6rem, 4.4vw, 3.4rem); transform: rotate(-5deg); }
.gym__line--2 { top: 42%; right: 6%; max-width: 46%; text-align: right; font-size: clamp(1rem, 2.4vw, 1.75rem); transform: rotate(3deg); }
.gym__line--3 { bottom: 10%; left: 6%; max-width: 55%; font-size: clamp(0.95rem, 2vw, 1.45rem); transform: rotate(-2deg); color: #cfe9ff; }
.gym__line--1:hover { transform: rotate(-5deg) scale(1.03); }
.gym__line--2:hover { transform: rotate(3deg) scale(1.03); }
.gym__line--3:hover { transform: rotate(-2deg) scale(1.03); }
.gym__mark { position: absolute !important; right: 18px; bottom: 16px; z-index: 1; letter-spacing: 0.18em; }

/* Articles: publication cards */
.pubs { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.pub {
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--paper), var(--paper-2)); color: var(--ink);
  border-radius: 22px; padding: clamp(24px, 3.5vw, 36px);
  box-shadow: var(--shadow-paper); transition: transform .3s var(--ease);
}
.pub:hover { transform: translateY(-4px); }
.pub__kicker { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cobalt); }
.pub__title { color: var(--ink); font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.05rem); font-weight: 700; line-height: 1.12; margin-bottom: 0.5em; }
.pub__dek { color: var(--ink-soft); font-size: 1rem; font-style: italic; }
.pub__by { font-size: 0.82rem; font-weight: 700; color: var(--ink-soft); margin-top: auto; }
.pub__btn { align-self: flex-start; margin-top: 8px; border: 0; cursor: pointer; background: var(--ink); color: var(--paper); font-weight: 700; padding: 11px 20px; border-radius: 999px; font-size: 0.9rem; transition: background .2s, transform .2s; }
.pub__btn:hover { background: var(--cobalt); transform: translateX(3px); }

/* Reader */
.reader {
  width: min(760px, 100vw - 24px); max-height: calc(100vh - 32px);
  padding: 0; border: 0; border-radius: 22px; overflow: hidden;
  background: var(--paper); color: var(--ink); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}
.reader[open] { display: flex; flex-direction: column; }
.reader::backdrop { background: rgba(0, 7, 33, 0.82); backdrop-filter: blur(6px); }
.reader__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 22px; border-bottom: 1px solid var(--rule); background: var(--paper-2); }
.reader__kicker { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cobalt); }
.reader__close { border: 0; background: var(--ink); color: var(--paper); font-weight: 700; padding: 8px 16px; border-radius: 999px; cursor: pointer; font-size: 0.85rem; }
.reader__close:hover { background: var(--cobalt); }
.reader__body { overflow-y: auto; padding: clamp(24px, 5vw, 52px) clamp(20px, 6vw, 64px) 56px; font-family: var(--serif); font-size: 1.28rem; line-height: 1.6; color: #1b2440; }
.reader__body h2 { color: var(--ink); font-size: clamp(2rem, 4.5vw, 2.8rem); font-weight: 700; line-height: 1.08; margin-bottom: 0.4em; }
.reader__dek { font-style: italic; color: var(--ink-soft); font-size: 1.35rem; }
.reader__by { font-family: var(--sans); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cobalt); margin-bottom: 1.8em; }
.reader__body p { margin-bottom: 1.05em; }
.reader__body .pull { font-size: 1.7rem; font-weight: 600; font-style: italic; color: var(--ink); border-left: 3px solid var(--azure); padding-left: 20px; margin: 1.2em 0; line-height: 1.3; }
.reader__end { font-style: italic; font-size: 1.5rem; color: var(--ink); }

/* Screenwriting loglines */
.loglines { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.logline { padding: 28px; background: var(--glass-strong); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(10px); transition: transform .3s var(--ease), border-color .3s; }
.logline:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.logline__genre { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--glint); margin-bottom: 0.6em; }
.logline__title { font-family: var(--serif); font-size: 2rem; font-weight: 600; margin-bottom: 0.4em; }
.logline p:last-child { margin: 0; color: var(--mist); }

/* ---------- 11. Photography ---------- */
.tabs--photo .tabs__list { margin-bottom: 26px; }
.photo-panel { animation: fade .45s var(--ease); }
.photo-panel[hidden] { display: none; }

.statement { max-width: 780px; margin-bottom: clamp(30px, 4vw, 44px); padding: clamp(22px, 3.5vw, 36px); background: var(--glass-strong); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(10px); }
.series-title { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 0.4em; }
.series-title sub { font-size: 0.5em; color: var(--glint); vertical-align: -0.15em; }
.statement p { font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.4rem); line-height: 1.55; color: var(--foam); }
.statement__quote { font-style: italic; color: #b7dcff !important; border-left: 2px solid var(--glint); padding-left: 20px; margin: 0; }
.photo-intro { max-width: 680px; font-family: var(--serif); font-size: clamp(1.25rem, 2.2vw, 1.5rem); color: var(--foam); line-height: 1.5; }

.ph { position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; border-radius: 16px; overflow: hidden; background: var(--deep); box-shadow: 0 16px 40px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--line); }
.ph img { width: 100%; transition: transform .8s var(--ease), filter .5s; }
.ph:hover img { transform: scale(1.04); filter: brightness(1.08); }

.water-grid { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.water-grid .wide { grid-column: span 2; }
.water-grid img { aspect-ratio: 3 / 2; object-fit: cover; }
.water-grid .wide img { aspect-ratio: 21 / 9; }

.masonry { list-style: none; columns: 3 280px; column-gap: 16px; }
.masonry li { position: relative; break-inside: avoid; margin-bottom: 16px; }
.place {
  position: absolute; left: 12px; bottom: 12px; z-index: 1; pointer-events: none;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--foam); background: rgba(0, 7, 33, 0.62); backdrop-filter: blur(6px);
  padding: 5px 10px; border-radius: 999px;
}

.aerial { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.aerial__item { position: relative; margin: 0; border-radius: 16px; overflow: hidden; background: var(--deep); box-shadow: 0 16px 40px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--line); }
.aerial__item--wide { grid-column: span 2; }
.aerial__item video { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.aerial__item .ph { height: 100%; border-radius: 0; box-shadow: none; }
.aerial__item .ph img { height: 100%; object-fit: cover; }
.aerial__item--photo .ph img { aspect-ratio: 21 / 9; object-position: 50% 55%; }

/* Lightbox */
.lightbox { width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; padding: 0; border: 0; background: rgba(0, 4, 18, 0.96); color: var(--foam); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(0, 4, 18, 0.9); }
.lightbox__img { max-width: calc(100vw - 140px); max-height: calc(100vh - 100px); width: auto; height: 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); }

/* ---------- 12. Experience ---------- */
.summary { max-width: 840px; font-size: 1.12rem; color: var(--foam); margin-bottom: clamp(36px, 5vw, 56px); }
.exp-layout { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.exp-group { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--glint); margin: 0 0 22px; display: flex; align-items: center; gap: 14px; }
.exp-group::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.timeline + .exp-group { margin-top: 48px; }
.timeline { list-style: none; position: relative; padding: 26px 26px 26px 52px; background: var(--glass-strong); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(10px); }
.timeline::before { content: ""; position: absolute; left: 29px; top: 36px; bottom: 36px; width: 2px; background: linear-gradient(var(--glint), rgba(0, 161, 251, 0.1)); }
.job { position: relative; padding-bottom: 32px; }
.job:last-child { padding-bottom: 0; }
.job::before { content: ""; position: absolute; left: -29px; 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.75rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--glint); margin-bottom: 0.3em; }
.job__role { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; }
.job__org { color: var(--haze); font-weight: 600; font-size: 0.94rem; 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.97rem; }
.job li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 7px; height: 2px; background: var(--glint); }
.timeline--compact .job__role { font-size: 1.35rem; }
.timeline--compact .job li { font-size: 0.92rem; color: var(--mist); }

.exp-side { display: grid; gap: 16px; position: sticky; top: calc(var(--nav-h) + 20px); }
.side-block { padding: 24px; background: var(--glass-strong); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(10px); }
.side-block__title { font-size: 0.76rem; font-weight: 800; 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.96rem; line-height: 1.4; }
.side-list span { display: block; color: var(--haze); font-size: 0.87rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 0.82rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--mist); background: rgba(0, 72, 174, 0.2); transition: background .2s, color .2s; }
.chips li:hover { background: var(--glint); color: var(--abyss); }

/* ---------- 13. Contact & footer ---------- */
.contact { text-align: center; max-width: 780px; padding: clamp(32px, 6vw, 64px) clamp(20px, 4vw, 48px); background: var(--glass-strong); border: 1px solid var(--line); border-radius: 32px; backdrop-filter: blur(12px); }
.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.08rem; }
.contact__email { display: inline-block; font-family: var(--serif); font-size: clamp(1.2rem, 4.2vw, 2.1rem); font-weight: 600; color: var(--foam); margin: 0.5em 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: 2em 0 0; color: var(--haze); font-size: 0.9rem; }

.footer { border-top: 1px solid var(--line); padding: 26px 0; background: rgba(0, 4, 18, 0.78); }
.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); }

/* ---------- 14. Responsive ---------- */
@media (max-width: 1080px) {
  .nav__menu a { padding: 8px 10px; font-size: 0.86rem; }
}

@media (max-width: 960px) {
  .about { grid-template-columns: 1fr; }
  .portrait { position: static; max-width: 420px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .film, .film--featured { grid-template-columns: 1fr; }
  .exp-layout { grid-template-columns: 1fr; }
  .exp-side { position: static; }
  .ig-row { grid-template-columns: repeat(3, minmax(240px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
  .ig { scroll-snap-align: start; }
  .scripts-pages { grid-template-columns: 1fr; }
}

/* Mobile navigation */
@media (max-width: 900px) {
  .nav__toggle { display: flex; }
  .nav__right { margin-left: auto; }
  .nav__menu {
    position: fixed; top: var(--nav-h); left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 16px;
    background: rgba(0, 7, 33, 0.97); 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; }
}

@media (max-width: 680px) {
  body { font-size: 1rem; }
  .facts { grid-template-columns: 1fr; }
  .ads, .pubs, .loglines, .water-grid { grid-template-columns: 1fr; }
  .water-grid .wide { grid-column: auto; }
  .water-grid img, .water-grid .wide img { aspect-ratio: 3 / 2; }
  .aerial { grid-template-columns: 1fr; }
  .masonry { columns: 2; column-gap: 10px; }
  .masonry li { margin-bottom: 10px; }
  .place { left: 8px; bottom: 8px; font-size: 0.6rem; padding: 4px 8px; }
  .aerial__item--wide { grid-column: auto; }
  .aerial__item--photo .ph img { aspect-ratio: 4 / 3; }
  .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; }
  .stage { border-radius: 20px; }
  .tabs__list { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .tabs__list::-webkit-scrollbar { display: none; }
  .tabs__list [role="tab"] { flex: none; }
  .mail__body { padding: 12px; }
  .mail__addr { display: none; }
  .mail__subject { font-size: 1.1rem; padding: 14px 16px 4px; }
  .mail__from { padding: 8px 16px 14px; }
  /* Gym: stack the taglines instead of floating them */
  .gym { aspect-ratio: auto; min-height: 420px; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 34px 22px 70px; }
  .gym__line { position: relative; inset: auto !important; max-width: none !important; text-align: left !important; }
  .gym__line--2 { align-self: flex-end; text-align: right !important; }
  .timeline { padding: 22px 18px 22px 44px; }
  .timeline::before { left: 23px; }
  .job::before { left: -27px; }
  .lightbox__img { max-width: 100vw; border-radius: 0; }
  .lightbox__nav { top: auto; bottom: 14px; margin-top: 0; width: 46px; height: 46px; }
  .footer__inner { flex-direction: column; text-align: center; }
  .portrait { max-width: none; }
}

@media (max-width: 400px) {
  .lang__btn { padding: 6px 9px; }
  .nav__logo { width: 62px; }
}

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