/* =====================================================================
   Self-hosted fonts
   The Google Fonts CDN was unreliable in some browsers / offline previews,
   so both families now ship with the site. Atkinson Hyperlegible Next is a
   variable font (200–800); Holtwood One SC is the single-weight display face.
   ===================================================================== */
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/atkinson-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/atkinson-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/atkinson-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/atkinson-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Holtwood One SC";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/holtwood-one-sc-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Holtwood One SC";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/holtwood-one-sc-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@property --w { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --h { syntax: "<length>"; inherits: false; initial-value: 0px; }

:root {
  /* 1 Figma px, scaled to the viewport (capped on very wide screens) */
  --u: calc(min(100vw, 3000px) / 3172);
  /* extra scale for the dropdown (bigger tap targets on mobile) */
  --k: 1;
  --d: calc(var(--u) * var(--k));

  --header-h: calc(535 * var(--u));       /* visible honeycomb banner */
  --nav-top: calc(265.5 * var(--u));        /* top of nav hexagons */
  --content-top: calc(650 * var(--u));    /* first card, below the shorter header */
  --nav-shift: 0;                          /* used on mobile to centre the nav row */

  --brown: #563b00;
  --card: rgba(59, 40, 0, 0.67);
  --cream: #ffe17e;
  --ink: #573900;
  --gold: #e6b03c;

  --pad: clamp(22px, calc(80 * var(--u)), 80px);
  --radius: clamp(24px, calc(75 * var(--u)), 75px);
  --fs: clamp(16px, calc(46 * var(--u)), 26px);

  --display: "Holtwood One SC", "Rockwell Extra Bold", "Arial Black", Georgia, serif;  /* site title only */
  --body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --label: var(--body);
}

@media (max-width: 980px) {
  :root {
    --u: calc(min(100vw, 520px) / 1100);   /* nav row = 3 hexes ≈ 85% of width */
    --content-top: calc(620 * var(--u));
    --nav-shift: 0;                          /* nav row is already centred via --x */
    --fs: 17px;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--cream);
  font-family: var(--body);
  font-size: var(--fs);
  line-height: 1.55;
  background-color: var(--brown);
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20width=%27373%27%20height=%27646%27%20viewBox=%270%200%20373%20646%27%3E%3Cg%20opacity=%27.16%27%20fill=%27%23362C27%27%20stroke=%27%23362C27%27%20stroke-width=%2717%27%3E%3Cpath%20d=%27M186.5,23.4%20L339.45,111.7%20L339.45,288.3%20L186.5,376.6%20L33.55,288.3%20L33.55,111.7Z%27/%3E%3Cpath%20d=%27M0,346.4%20L152.95,434.7%20L152.95,611.3%20L0,699.6%20L-152.95,611.3%20L-152.95,434.7Z%27/%3E%3Cpath%20d=%27M373,346.4%20L525.95,434.7%20L525.95,611.3%20L373,699.6%20L220.05,611.3%20L220.05,434.7Z%27/%3E%3Cpath%20d=%27M0,-299.6%20L152.95,-211.3%20L152.95,-34.7%20L0,53.6%20L-152.95,-34.7%20L-152.95,-211.3Z%27/%3E%3Cpath%20d=%27M373,-299.6%20L525.95,-211.3%20L525.95,-34.7%20L373,53.6%20L220.05,-34.7%20L220.05,-211.3Z%27/%3E%3C/g%3E%3C/svg%3E");
  background-size: calc(373 * var(--u)) calc(646 * var(--u));
  background-position: 50% 0;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

/* =====================================================================
   HEADER  (fixed – never moves; the page scrolls underneath it)
   ===================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  pointer-events: none;           /* only the interactive bits catch the mouse */
}
.site-header a, .site-header .nav-item { pointer-events: auto; }

/* Honeycomb banner: the new export is 8112 × 1531, with 162px of transparent
   space at the top. Displaying it at 3172u wide and lifting it by 63.3u makes
   the visible banner 535u tall (the shorter header in the new Figma frames). */
.header-art-wrap {
  position: absolute;
  inset: 0;
  filter: drop-shadow(0 calc(28 * var(--u)) calc(95 * var(--u)) rgba(0, 0, 0, 0.77));
}
.header-art {
  position: absolute;
  left: calc(50% - 1586 * var(--u));
  top: calc(-63.3 * var(--u));
  width: calc(3172 * var(--u));
  height: auto;
  max-width: none;
  user-select: none;
}
.header-art.missing { top: 0; height: var(--header-h); background: var(--gold); }   /* only if images/header.png is absent */

/* Every item is positioned from the horizontal centre of the screen */
.stage { position: relative; height: 100%; width: 100%; }

.logo {
  position: absolute;
  left: calc(50% + (370 - 1386) * var(--u));
  top: calc(-34 * var(--u));
  width: calc(560 * var(--u));
  height: calc(560 * var(--u));
  transform-origin: 50% 55%;
  filter: drop-shadow(calc(12 * var(--u)) calc(13 * var(--u)) calc(26 * var(--u)) rgba(0, 0, 0, 0.25)) contrast(1);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.35s ease;
}
.logo img { width: 100%; height: 100%; object-fit: cover; }
/* a little life: slight tilt + scale + contrast boost */
.logo:hover,
.logo:focus-visible {
  transform: rotate(-3deg) scale(1.06);
  filter: drop-shadow(calc(22 * var(--u)) calc(26 * var(--u)) calc(40 * var(--u)) rgba(0, 0, 0, 0.32)) contrast(1.15);
  outline: none;
}

.studio-title {
  position: absolute;
  left: calc(50% + (2056 - 1586) * var(--u));
  top: calc(150 * var(--u));
  width: calc(520 * var(--u));
  text-align: center;
  text-decoration: none;
  font-family: var(--display);
  font-size: calc(120 * var(--u));
  line-height: 0.92;
  color: var(--ink);
  text-shadow: 0 calc(14 * var(--u)) calc(18 * var(--u)) rgba(0, 0, 0, 0.23);
  pointer-events: none;           /* plain text: no hover, click or selection */
  user-select: none;
  -webkit-user-select: none;
}

/* ---------------------------------------------------------------- nav */
.nav-item {
  position: absolute;
  top: var(--nav-top);
  left: calc(50% + (var(--x) + var(--nav-shift) - 1586) * var(--u));
  width: calc(260 * var(--u));
  height: calc(260 * var(--u));
  z-index: 1;
}
.nav-item.is-open { z-index: 5; }

/*
  The hexagon. Outline + fill are two clipped layers so the shape can grow
  taller while the top and bottom "caps" keep their exact hexagon angles.
  Collapsed = the 311px nav button. Expanded = the 1131px dropdown.
*/
.hex {
  --w: calc(222 * var(--u));
  --h: calc(256 * var(--u));
  --co: calc(var(--w) * 0.288675);                          /* outer cap height */
  --ci: calc((var(--w) - 25 * var(--u)) * 0.288675);        /* inner cap height */
  position: absolute;
  left: 50%;
  top: calc(-8 * var(--u));
  width: var(--w);
  height: var(--h);
  transform: translateX(-50%);
  transition: --w 0.65s cubic-bezier(0.55, 0, 0.2, 1), --h 0.65s cubic-bezier(0.55, 0, 0.2, 1);
}
.hex::before,
.hex::after { content: ""; position: absolute; }
.hex::before {                         /* orange → gold outline */
  inset: 0;
  background: linear-gradient(180deg, #ce741a, #ffc23e);
  clip-path: polygon(50% 0, 100% var(--co), 100% calc(100% - var(--co)), 50% 100%, 0 calc(100% - var(--co)), 0 var(--co));
}
.hex::after {                          /* amber → dark brown fill */
  inset: calc(16 * var(--u)) calc(14 * var(--u));
  background: linear-gradient(180deg, #b06600 46.6%, #4a2b00 100%);
  clip-path: polygon(50% 0, 100% var(--ci), 100% calc(100% - var(--ci)), 50% 100%, 0 calc(100% - var(--ci)), 0 var(--ci));
}

.has-dropdown.is-open .hex {
  --w: calc(220 * var(--d));
  --h: calc(886 * var(--d));
}

.nav-icon {
  position: absolute;
  left: 50%;
  top: 45%;
  width: calc(var(--iw) * var(--u) * 0.9);
  height: auto;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease;
  pointer-events: none;
  z-index: 2;
  filter: drop-shadow(0 0 calc(10 * var(--u)) rgba(55, 34, 0, 0.55));
}
.nav-item:hover .nav-icon,
.nav-item:focus-within .nav-icon { transform: translate(-50%, -50%) scale(1.07); }

/* clickable area of the hexagon itself */
.hex-link {
  position: absolute;
  left: 50%;
  top: 0;
  width: calc(220 * var(--u));
  height: calc(193 * var(--u));
  transform: translateX(-50%);
  z-index: 4;
  border-radius: 50%;
}
.hex-link:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.nav-item:has(.hex-link[aria-current="page"]) .hex::before { filter: brightness(1.2); }

/* ---------------------------------------------------------------- dropdown */
.dd {
  position: absolute;
  left: 50%;
  top: 0;
  width: calc(207 * var(--d));
  height: calc(872 * var(--d));
  transform: translateX(-50%);
  z-index: 3;
  pointer-events: none;
}
.site-header .dd a { pointer-events: none; }
.site-header .is-open .dd a { pointer-events: auto; }

.dd-title,
.dd-line,
.dd-link {
  position: absolute;
  opacity: 0;
  transform: translateY(calc(-14 * var(--d)));
  transition: opacity 0.15s ease, transform 0.15s ease, filter 0.2s ease;
}
/* fade in as the hexagon's bottom edge reaches each item */
.is-open .dd-title,
.is-open .dd-line,
.is-open .dd-link {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.4s ease calc(0.2s + (var(--i) + 1) * 0.075s),
    transform 0.4s ease calc(0.2s + (var(--i) + 1) * 0.075s),
    filter 0.2s ease;
}

.dd-title {
  left: 0;
  right: 0;
  top: calc(207 * var(--d));
  margin-top: -0.6em;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  font-size: max(9px, calc(19 * var(--d)));
  font-family: var(--display);     /* Holtwood One SC for category titles */
  font-weight: 400;
  line-height: 1.2;
  color: var(--cream);
}
.dd-title:hover { filter: brightness(1.25); }

.dd-line {
  left: calc(20 * var(--d));
  width: calc(168 * var(--d));
  top: calc(225 * var(--d));
  height: calc(6 * var(--d));
  border-radius: 999px;
  background: var(--cream);
  box-shadow: inset 0 calc(4 * var(--d)) calc(4 * var(--d)) rgba(0, 0, 0, 0.37);
}

.dd-link {
  left: calc(20 * var(--d));
  width: calc(168 * var(--d));
  height: calc(79 * var(--d));
  top: calc((252 + var(--i) * 95) * var(--d));
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: calc(14 * var(--d));
  background: var(--cream);
  box-shadow: inset 0 0 calc(16 * var(--d)) calc(4 * var(--d)) rgba(0, 0, 0, 0.44);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--label);
  font-weight: 700;
  font-size: max(11px, calc(23 * var(--d)));
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.dd-link:hover,
.dd-link:focus-visible { filter: brightness(1.1) saturate(1.1); outline: none; box-shadow: inset 0 0 calc(17.6 * var(--d)) calc(4 * var(--d)) rgba(0, 0, 0, 0.3), 0 0 0 calc(5 * var(--d)) #fff3b8; }

/* ---------------------------------------------------------------- header variants
   The portfolio keeps the original logo + ARI'S STUDIO + nav composition.
   Streams and Credits use the same shorter banner with a logo on the left and
   the page title on the right; only the portfolio shows the navigation. */
.header-streams .logo,
.header-credits .logo {
  left: calc(50% + (526 - 1586) * var(--u));
  top: calc(-82 * var(--u));
  width: calc(600 * var(--u));
  height: calc(600 * var(--u));
}

.page-heading {
  position: absolute;
  left: calc(50% + (1116 - 1586) * var(--u));
  top: calc(130 * var(--u));
  width: calc(1458 * var(--u));
  text-align: center;
  pointer-events: none;
}
.header-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: calc(118 * var(--u));
  line-height: 1;
  color: var(--ink);
  text-shadow: 0 calc(16 * var(--u)) calc(20 * var(--u)) rgba(0, 0, 0, 0.23);
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
}
.header-subtitle {
  margin: calc(14 * var(--u)) 0 0;
  font-family: var(--body);
  font-weight: 700;
  font-size: calc(40 * var(--u));
  line-height: 1.1;
  letter-spacing: 0.04em;
  color: var(--ink);
  white-space: nowrap;
}
.header-subtitle .link-button {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.site-header button { pointer-events: auto; }

/* ---------------------------------------------------------------- mobile header */
@media (max-width: 980px) {
  .logo {
    display: block;
    left: calc(50% + (1080 - 1586) * var(--u));
    top: calc(10 * var(--u));
    width: calc(300 * var(--u));
    height: calc(300 * var(--u));
  }
  .studio-title {
    left: 50%;
    top: calc(130 * var(--u));
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    font-size: calc(80 * var(--u));
    line-height: 1;
  }
  .studio-title br { display: none; }

  /* Streams / Credits: stack the logo above the page title. */
  .header-streams .logo,
  .header-credits .logo {
    left: 50%;
    margin-left: calc(-125 * var(--u));
    top: calc(20 * var(--u));
    width: calc(250 * var(--u));
    height: calc(250 * var(--u));
  }
  .page-heading {
    left: 50%;
    top: calc(280 * var(--u));
    width: min(92vw, 520px);
    transform: translateX(-50%);
  }
  .header-title { font-size: calc(78 * var(--u)); }
  .header-subtitle {
    margin-top: calc(8 * var(--u));
    font-size: calc(34 * var(--u));
    letter-spacing: 0.04em;
  }

  /* the dropdown stays exactly as wide as the nav hexagon (it only grows
     downward), so the labels are sized to fit that narrower space */
  .dd-title { font-size: max(8px, calc(21 * var(--d))); letter-spacing: -0.01em; }
  .dd-link {
    font-size: max(11px, calc(31 * var(--d)));
    letter-spacing: 0;
    text-transform: none;
    font-weight: 800;
  }
  .studio-title::after { content: none; }
}

/* =====================================================================
   PAGE CONTENT
   ===================================================================== */
.page { padding-top: var(--content-top); padding-bottom: calc(222 * var(--u)); }

.container { width: calc(2728 * var(--u)); margin-inline: auto; }
@media (max-width: 980px) { .container { width: min(90vw, 720px); } }

.card {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow:
    inset calc(-31 * var(--u)) calc(-60 * var(--u)) calc(129.4 * var(--u)) rgba(255, 198, 105, 0.17),
    inset calc(65 * var(--u)) calc(31 * var(--u)) calc(115.7 * var(--u)) rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.card-title,
.page-title {
  margin: 0 0 0.6em;
  font-family: var(--body);
  font-weight: 800;
  line-height: 1.1;
  color: var(--cream);
  text-shadow: 0 0.08em 0.25em rgba(0, 0, 0, 0.35);
}
.card-title { font-size: clamp(20px, calc(70 * var(--u)), 40px); }
.page-title {
  font-family: var(--display);     /* Holtwood One SC for category titles */
  font-weight: 400;
  font-size: clamp(26px, calc(104 * var(--u)), 60px);
  line-height: 1.15;
}
p { margin: 0 0 1em; }

/* ---- placeholders (swap for <img> / <video> poster when ready) ---- */
.ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 198, 105, 0.22), transparent 60%),
    linear-gradient(160deg, rgba(120, 80, 0, 0.5), rgba(30, 18, 0, 0.55));
  color: rgba(255, 225, 126, 0.55);
  font-family: var(--body);
  font-size: clamp(12px, calc(34 * var(--u)), 20px);
  font-weight: 700;
  text-align: center;
}

/* photos placed inside a .ph fill the card (cropped, never squished) */
.ph img { width: 100%; height: 100%; object-fit: cover; }

/* title bar laid over the bottom of a home-page image (doesn't resize the image) */
.card-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: clamp(8px, calc(30 * var(--u)), 16px) clamp(14px, calc(48 * var(--u)), 28px);
  background: rgba(40, 26, 0, 0.72);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  color: var(--cream);
  font-family: var(--body);
  font-weight: 800;
  font-size: clamp(14px, calc(40 * var(--u)), 22px);
  line-height: 1.2;
  letter-spacing: 0.01em;
  pointer-events: none;
}

/* ---- Home layout ---- */
.home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: calc(169 * var(--u)); margin-bottom: calc(108 * var(--u)); }
.col { display: flex; flex-direction: column; min-width: 0; }
.col-left { gap: calc(47 * var(--u)); }
.col-right { gap: calc(43 * var(--u)); }
.statement { flex: 1; padding: var(--pad); font-size: 0.975em;}
.portrait { margin: 0; aspect-ratio: 1; }
.thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: calc(72 * var(--u)) calc(81.5 * var(--u)); }
.thumb { display: block; aspect-ratio: 1; transition: filter 0.25s ease; }
.thumb:hover { filter: brightness(1.1); }
.biography { padding: var(--pad); min-height: calc(700 * var(--u)); }

@media (max-width: 980px) {
  .home-grid { display: flex; flex-direction: column; gap: 22px; margin-bottom: 22px; }
  .col { display: contents; }
  .portrait { order: 1; }
  .statement { order: 2; }
  .order-thumbs-right { order: 3; }
  .order-thumbs-left { order: 4; }
  .thumbs { gap: 18px; }
  .biography { min-height: 0; }
}

.statement .lead {
  font-size: 1.1em;
  font-weight: 700;
  line-height: 0.85;
}

/* ---- Category landing + gallery pages ---- */
.page-intro { padding: var(--pad); margin-bottom: calc(72 * var(--u)); }
.page-intro p:last-child { margin-bottom: 0; max-width: 60ch; }
.crumbs { font-family: var(--label); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.75; font-size: 0.85em; margin-bottom: 0.4em !important; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(81.5 * var(--u)); }
.cat-card { display: block; aspect-ratio: 4 / 4.4; text-decoration: none; transition: filter 0.25s ease; }
.cat-card:hover { filter: brightness(1.1); }
/* Keep the "Cover image" hint away from the title gradient at the bottom. */
.cat-card .ph span { position: absolute; top: 14%; left: 0; right: 0; padding-inline: 12%; }
.cat-label {
  position: absolute; inset: auto 0 0 0;
  padding: clamp(14px, calc(50 * var(--u)), 40px);
  background: linear-gradient(0deg, rgba(30, 18, 0, 0.9), rgba(30, 18, 0, 0));
  display: flex; flex-direction: column; gap: 0.2em;
}
.cat-label strong { font-family: var(--body); font-weight: 800; font-size: clamp(16px, calc(60 * var(--u)), 34px); }
.cat-label span { font-size: 0.85em; line-height: 1.3; opacity: 0.85; }

.photo-grid { columns: 2; column-gap: calc(81.5 * var(--u)); }
.photo {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 calc(81.5 * var(--u));
  padding: 0;
  border: 0;
  cursor: zoom-in;
  aspect-ratio: var(--ar, 1);
  break-inside: avoid;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  box-shadow: inset calc(-31 * var(--u)) calc(-60 * var(--u)) calc(129.4 * var(--u)) rgba(255, 198, 105, 0.17), inset calc(65 * var(--u)) calc(31 * var(--u)) calc(115.7 * var(--u)) rgba(0, 0, 0, 0.25);
  transition: filter 0.25s ease;
}
.photo:hover { filter: brightness(1.1); }
.photo img { width: 100%; height: 100%; object-fit: cover; }

.film-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: calc(81.5 * var(--u)); }
.film-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  color: inherit;
  text-align: left;
  font: inherit;
  transition: filter 0.25s ease;
  box-shadow: inset calc(-31 * var(--u)) calc(-60 * var(--u)) calc(129.4 * var(--u)) rgba(255, 198, 105, 0.17), inset calc(65 * var(--u)) calc(31 * var(--u)) calc(115.7 * var(--u)) rgba(0, 0, 0, 0.25);
}
.film-card:hover { filter: brightness(1.1); }
.film-card img { width: 100%; height: 100%; object-fit: cover; }
.play {
  position: absolute; left: 50%; top: 46%;
  width: clamp(64px, calc(240 * var(--u)), 120px);
  aspect-ratio: 0.866;
  transform: translate(-50%, -50%);
  background: linear-gradient(180deg, #ce741a, #ffc23e);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  display: grid; place-items: center;
  transition: transform 0.25s ease;
}
.play::before {
  content: ""; position: absolute; inset: 6%;
  background: linear-gradient(180deg, #b06600 46.6%, #4a2b00);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.play i { position: relative; width: 28%; aspect-ratio: 1; margin-left: 6%; background: var(--cream); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.film-card:hover .play { transform: translate(-50%, -50%) scale(1.1); }
.film-meta {
  position: absolute; inset: auto 0 0 0;
  padding: clamp(12px, calc(44 * var(--u)), 32px);
  background: linear-gradient(0deg, rgba(30, 18, 0, 0.9), rgba(30, 18, 0, 0));
  display: flex; justify-content: space-between; gap: 1em; align-items: baseline;
}
.film-meta strong { font-family: var(--body); font-weight: 800; font-size: clamp(14px, calc(48 * var(--u)), 24px); }
.film-meta span { opacity: 0.8; font-size: 0.85em; }

.pager { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: calc(40 * var(--u)); }
.chip {
  padding: 0.45em 1.1em;
  border-radius: 999px;
  background: var(--card);
  text-decoration: none;
  font-family: var(--label);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.9em;
  box-shadow: inset 0 0 14px 2px rgba(0, 0, 0, 0.35);
  transition: background 0.2s ease, color 0.2s ease;
}
.chip:hover, .chip.is-here { background: var(--cream); color: var(--ink); }

@media (max-width: 600px) {
  .page-title { font-size: clamp(22px, 7.2vw, 34px); overflow-wrap: anywhere; }
}

@media (max-width: 980px) {
  .page-intro { margin-bottom: 22px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .photo-grid { columns: 2; column-gap: 16px; }
  .photo { margin-bottom: 16px; }
  .film-grid { grid-template-columns: 1fr; gap: 18px; }
  .pager { margin-top: 28px; }
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35em 1.1em;
  padding: 0 16px calc(60 * var(--u));
  text-align: center;
  font-size: 0.85em;
  opacity: 0.7;
}
.site-footer a {
  color: inherit;
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.site-footer a:hover { opacity: 1; }
.site-footer .footer-sep { opacity: 0.55; }

/* ---- Tilt + glare on image cards (desktop with a mouse; class added by main.js) ----
   --rx / --ry : tilt angles, --gx / --gy : position of the light reflection */
.tilt {
  --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 50%; --lift: 1;
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)) scale(var(--lift));
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.25s ease;
  will-change: transform;
}
.tilt.is-tilting {
  --lift: 1.03;
  transition: transform 0.1s linear, filter 0.25s ease;
}
.tilt::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  background:
    radial-gradient(circle at var(--gx) var(--gy), rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.05) 32%, rgba(255, 255, 255, 0) 62%);
}
.tilt.is-tilting::after { opacity: 1; }

/* ---- Printed-photo finish ----
   Two layers are injected into every image card by main.js:
   .print-grain  a faint satin texture (baked from the roughness / normal / AO maps)
   .print-scuffs fine scuffs that catch the light as the card tilts (desktop)       */
.print-grain,
.print-scuffs {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  background-size: 640px 640px;
  background-position: var(--tx, 0) var(--ty, 0);
}
.print-grain {
  background-image: url("../images/textures/print-grain.jpg");
  mix-blend-mode: soft-light;
  opacity: 0.15;                   /* raise for a stronger texture, lower for subtler */
}
.print-scuffs {
  background-image: url("../images/textures/print-scuffs.png");
  -webkit-mask-image: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), #000 0%, rgba(0, 0, 0, 0.35) 38%, transparent 70%);
          mask-image: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), #000 0%, rgba(0, 0, 0, 0.35) 38%, transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.is-tilting > .print-scuffs { opacity: 0.5; }

/* keep captions and the play button crisp, above the texture */
.cat-label, .film-meta, .play { z-index: 2; }

/* ---- Lightbox ---- */
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; padding: 5vw; background: rgba(20, 12, 0, 0.88); }
.lightbox.is-open { display: grid; }
.lightbox-inner { position: relative; width: min(1100px, 100%); max-height: 86vh; aspect-ratio: 16 / 10; border-radius: 28px; overflow: hidden; background: var(--card); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.lightbox-inner img, .lightbox-inner video { width: 100%; height: 100%; object-fit: contain; }
.lightbox-inner .ph { font-size: clamp(14px, 3vw, 24px); }
.lightbox-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border: 0; border-radius: 50%; cursor: pointer; background: var(--cream); color: var(--ink); font-size: 26px; line-height: 1; z-index: 2; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
}

/* =====================================================================
   DYNAMIC GALLERIES  (js/gallery.js)
   Photos sit in a grid of 3:2 cells so landscape shots fit with no cropping:
     landscape  -> 1 cell        portrait -> 1 column x 2 rows
     very wide panorama -> 2 columns
   Column count + how many photos show before "View all" are set at the top
   of js/gallery.js (or try ?cols=4&max=8 on the page URL).
   ===================================================================== */
.gallery,
.va-modal-body {
  container-type: inline-size;
  --cols: 3;
  --ratio: 1.5;                                         /* shape of one cell (3:2) */
  --gap: clamp(12px, calc(60 * var(--u)), 40px);
  --rowh: calc((100cqw - (var(--cols) - 1) * var(--gap)) / var(--cols) / var(--ratio));
}

.g-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  grid-auto-rows: var(--rowh);
  grid-auto-flow: row dense;
  gap: var(--gap);
}

.g-item {
  width: 100%;
  height: 100%;
  margin: 0;
  aspect-ratio: auto;
  border-radius: clamp(14px, calc(48 * var(--u)), 30px);
  cursor: zoom-in;
}
.film-card.g-item { cursor: pointer; }
.g-item.is-portrait { grid-row: span 2; }
.g-item.is-pano { grid-column: span 2; }
.gallery[data-cols="1"] .g-item.is-pano { grid-column: span 1; }

.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.5s ease, transform 0.7s ease;
}
.g-item img.is-loaded { opacity: 1; transform: none; }
.g-item .play { width: clamp(48px, calc(170 * var(--u)), 84px); z-index: 2; }

.g-item:focus-visible,
.viewall:focus-visible { outline: 3px solid #fff3b8; outline-offset: 4px; }

.g-empty {
  display: grid;
  place-items: center;
  min-height: calc(var(--rowh) * 1.2);
  padding: var(--pad);
  text-align: center;
  font-weight: 700;
  opacity: 0.85;
}
.g-empty p { margin: 0; }

/* ---- "View all": a fanned stack of photos across the bottom ---- */
.viewall {
  --pw: min(calc(var(--rowh) * 1.3), var(--cap, 58cqw));
  --step: min(calc(var(--pw) * 0.6), calc((100cqw - var(--pw) - 2 * var(--gap)) / (var(--n, 5) - 1)));
  position: relative;
  display: block;
  width: 100%;
  height: calc(var(--rowh) * 1.15);
  margin-top: var(--gap);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  color: inherit;
  font: inherit;
  background: var(--card);
  box-shadow:
    inset calc(-31 * var(--u)) calc(-60 * var(--u)) calc(129.4 * var(--u)) rgba(255, 198, 105, 0.17),
    inset calc(65 * var(--u)) calc(31 * var(--u)) calc(115.7 * var(--u)) rgba(0, 0, 0, 0.25);
}
.gallery[data-cols="1"] .viewall { --cap: 80cqw; height: calc(var(--rowh) * 0.85); }
.va-stack { position: absolute; inset: 0; }
.va-photo {
  --o: calc(var(--i) - (var(--n) - 1) / 2);              /* distance from the middle photo */
  --spread: 1;
  --rot: 4.5deg;
  position: absolute;
  left: 50%;
  bottom: calc(var(--rowh) * -0.2);
  width: var(--pw);
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border: clamp(3px, calc(10 * var(--u)), 8px) solid #f7efd6;   /* white print border */
  border-radius: 6px;
  background: #2a1b00;
  transform-origin: 50% 130%;
  transform: translateX(calc(-50% + var(--o) * var(--step) * var(--spread))) rotate(calc(var(--o) * var(--rot) * var(--spread)));
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
}
.va-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.viewall:hover .va-photo,
.viewall:focus-visible .va-photo { --spread: 1.08; }

.va-label {
  position: absolute;
  z-index: 200;
  left: 50%;
  bottom: clamp(14px, calc(46 * var(--u)), 34px);
  transform: translateX(-50%);
  display: flex;
  align-items: baseline;
  gap: 0.7em;
  white-space: nowrap;
  padding: 0.65em 1.4em;
  border-radius: 999px;
  background: rgba(40, 26, 0, 0.84);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
  color: var(--cream);
  transition: background 0.25s ease, color 0.25s ease;
}
.va-label strong { font-weight: 800; font-size: clamp(15px, calc(44 * var(--u)), 22px); }
.va-label small { font-size: 0.85em; opacity: 0.8; }
.viewall:hover .va-label,
.viewall:focus-visible .va-label { background: var(--cream); color: var(--ink); }

/* ---- "View all" full-screen grid ---- */
.gl-lock { overflow: hidden; }
.va-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(30, 19, 0, 0.97);
}
.va-modal-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(30, 19, 0, 0.9);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}
.va-modal-bar h2 { margin: 0; font-size: clamp(18px, 2.2vw, 26px); font-weight: 800; }
.va-modal-body { width: min(94vw, 2200px); margin: 8px auto 0; padding-bottom: 60px; --gap: clamp(10px, 1.4vw, 24px); }

/* ---- Pop-up viewer ---- */
.glb {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  background: rgba(20, 12, 0, 0.93);
}
.glb-stage { margin: 0; display: grid; place-items: center; width: 100%; height: 100%; box-sizing: border-box; padding: clamp(56px, 8vh, 90px) clamp(12px, 7vw, 110px); }
.glb-media {
  max-width: min(100%, calc(100vw - 2 * clamp(12px, 7vw, 110px)));
  max-height: calc(100vh - 2 * clamp(56px, 8vh, 90px));
  max-height: calc(100dvh - 2 * clamp(56px, 8vh, 90px));
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  transition: filter 0.4s ease;
}
.glb-media.is-low { filter: blur(2px); }
video.glb-media { background: #000; }
.glb-close,
.glb-nav {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: var(--cream);
  color: var(--ink);
  font: inherit;
  font-size: 28px;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, filter 0.2s ease;
}
.glb-close { top: 14px; right: 14px; }
.va-modal-bar .glb-close { position: static; flex: none; }
.glb-nav { top: 50%; margin-top: -23px; font-size: 34px; padding-bottom: 4px; }
.glb-prev { left: clamp(8px, 2vw, 28px); }
.glb-next { right: clamp(8px, 2vw, 28px); }
.glb-close:hover, .glb-nav:hover { transform: scale(1.08); filter: brightness(1.08); }
.glb-close:focus-visible, .glb-nav:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.glb-count {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.3em 0.9em;
  border-radius: 999px;
  background: rgba(40, 26, 0, 0.75);
  font-weight: 700;
  font-size: 0.9em;
}
@media (max-width: 700px) {
  .glb-nav { top: auto; bottom: 12px; margin-top: 0; }
  .glb-prev { left: 12px; }
  .glb-next { right: 12px; }
}

/* =====================================================================
   PAGE-TO-PAGE VIEW TRANSITIONS
   Two axes:

   1. CROSS-DOCUMENT (Home ↔ sub-pages like Portfolio, Streams, Credits,
      Mailbox).  Both old and new page move together like a push:
        Home → Sub-page  ('to-subpage'):
          Old (home) slides UP out · new (sub-page) pushes UP from below.
        Sub-page → Home  ('to-home'):
          Old (sub-page) slides DOWN out · new (home) drops DOWN from above.
      Transition types are set by the inline <script> in every <head>.

   2. SAME-DOCUMENT portfolio swaps (index ↔ category ↔ sub-category).
      Managed by portfolio.js with document.startViewTransition().
      The new view slides in from the RIGHT when drilling deeper,
      and from the LEFT when going back up.
      Types: 'slide-right' and 'slide-left'.

   Progressive enhancement – browsers without view-transition support
   simply navigate normally.  Reduced-motion users get an instant swap.
   ===================================================================== */
@view-transition { navigation: auto; }

/* The page's main content gets its own snapshot so it can animate
   independently of the header / background (root). */
.page,
.hub-stage {
  view-transition-name: page-content;
}

/* The portfolio view-root gets its own snapshot for in-page slides.
   The name is only applied via JS (portfolio.js adds the class) right
   before a same-document transition so it doesn't interfere with
   cross-document transitions. */
#view-root.vt-active {
  view-transition-name: portfolio-view;
}

/* ---- shared timing ------------------------------------------------ */
::view-transition-old(root),
::view-transition-new(root),
::view-transition-old(page-content),
::view-transition-new(page-content) {
  animation-duration: 720ms;
  animation-timing-function: cubic-bezier(0.32, 0.72, 0, 1);
  animation-fill-mode: both;
  mix-blend-mode: normal;
}

/* =====================================================================
   DEFAULT / to-subpage  (Home → sub-page)
   Both pages move: old slides UP out, new pushes UP from below.
   ===================================================================== */

/* Old page slides UP and exits. */
::view-transition-old(root) {
  z-index: 2;
  animation-name: push-up-exit;
}
::view-transition-old(page-content) {
  z-index: 2;
  animation-name: push-up-exit;
}

/* New page pushes UP from below the fold. */
::view-transition-new(root) {
  z-index: 1;
  animation-name: push-up-enter;
}

/* New content fades in after the slide finishes. */
::view-transition-new(page-content) {
  z-index: 1;
  animation-name: page-content-in;
  animation-duration: 420ms;
  animation-delay: 640ms;
  animation-timing-function: ease;
}

/* =====================================================================
   to-home  (Sub-page → Home)
   Reverse push: old slides DOWN out, new drops DOWN from above.
   ===================================================================== */
:active-view-transition-type(to-home)::view-transition-old(root) {
  z-index: 1;
  animation-name: push-down-exit;
}
:active-view-transition-type(to-home)::view-transition-old(page-content) {
  z-index: 1;
  animation-name: push-down-exit;
}
:active-view-transition-type(to-home)::view-transition-new(root) {
  z-index: 2;
  animation-name: push-down-enter;
}
:active-view-transition-type(to-home)::view-transition-new(page-content) {
  z-index: 2;
  animation-name: page-content-in;
  animation-duration: 420ms;
  animation-delay: 640ms;
  animation-timing-function: ease;
}

/* =====================================================================
   back  (browser back / forward)
   The inline script adds 'back' + either 'to-home' or 'to-subpage',
   so the type-specific rules above already handle direction.
   This block is a fallback when only 'back' is present — defaults to
   the "returning to home" (push-down) direction.
   ===================================================================== */
:active-view-transition-type(back)::view-transition-old(root) {
  z-index: 1;
  animation-name: push-down-exit;
}
:active-view-transition-type(back)::view-transition-old(page-content) {
  z-index: 1;
  animation-name: push-down-exit;
}
:active-view-transition-type(back)::view-transition-new(root) {
  z-index: 2;
  animation-name: push-down-enter;
}
:active-view-transition-type(back)::view-transition-new(page-content) {
  z-index: 2;
  animation-name: page-content-in;
  animation-duration: 420ms;
  animation-delay: 640ms;
  animation-timing-function: ease;
}

/* When back + to-subpage are both present (re-visiting a sub-page via
   forward navigation), the sub-page should still push UP. */
:active-view-transition-type(to-subpage)::view-transition-old(root) {
  z-index: 2;
  animation-name: push-up-exit;
}
:active-view-transition-type(to-subpage)::view-transition-old(page-content) {
  z-index: 2;
  animation-name: push-up-exit;
}
:active-view-transition-type(to-subpage)::view-transition-new(root) {
  z-index: 1;
  animation-name: push-up-enter;
}
:active-view-transition-type(to-subpage)::view-transition-new(page-content) {
  z-index: 1;
  animation-name: page-content-in;
  animation-duration: 420ms;
  animation-delay: 640ms;
  animation-timing-function: ease;
}

/* =====================================================================
   SAME-DOCUMENT portfolio slides  (slide-right / slide-left)
   Only the portfolio-view snapshot animates; root stays put.
   ===================================================================== */

::view-transition-old(portfolio-view),
::view-transition-new(portfolio-view) {
  animation-duration: 480ms;
  animation-timing-function: cubic-bezier(0.32, 0.72, 0, 1);
  animation-fill-mode: both;
  mix-blend-mode: normal;
}

/* slide-right: new view enters from the right, old exits to the left */
:active-view-transition-type(slide-right)::view-transition-old(portfolio-view) {
  z-index: 1;
  animation-name: slide-left-out;
}
:active-view-transition-type(slide-right)::view-transition-new(portfolio-view) {
  z-index: 2;
  animation-name: slide-right-in;
}

/* slide-left: new view enters from the left, old exits to the right */
:active-view-transition-type(slide-left)::view-transition-old(portfolio-view) {
  z-index: 1;
  animation-name: slide-right-out;
}
:active-view-transition-type(slide-left)::view-transition-new(portfolio-view) {
  z-index: 2;
  animation-name: slide-left-in;
}

/* When a portfolio slide is active, suppress the page-content and root
   animations so only the portfolio-view snapshot moves. */
:active-view-transition-type(slide-right)::view-transition-old(root),
:active-view-transition-type(slide-right)::view-transition-new(root),
:active-view-transition-type(slide-right)::view-transition-old(page-content),
:active-view-transition-type(slide-right)::view-transition-new(page-content),
:active-view-transition-type(slide-left)::view-transition-old(root),
:active-view-transition-type(slide-left)::view-transition-new(root),
:active-view-transition-type(slide-left)::view-transition-old(page-content),
:active-view-transition-type(slide-left)::view-transition-new(page-content) {
  animation: none;
}

/* ---- Keyframes ---------------------------------------------------- */

/* Push-up: both pages move upward together.
   Old page exits upward off screen, new page enters from below. */
@keyframes push-up-exit {
  from { transform: translateY(0); }
  to   { transform: translateY(-100%); }
}
@keyframes push-up-enter {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

/* Push-down: both pages move downward together (the reverse).
   Old page exits downward off screen, new page enters from above. */
@keyframes push-down-exit {
  from { transform: translateY(0); }
  to   { transform: translateY(100%); }
}
@keyframes push-down-enter {
  from { transform: translateY(-100%); }
  to   { transform: translateY(0); }
}

@keyframes page-content-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Horizontal: new content enters from right */
@keyframes slide-right-in {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}

/* Horizontal: old content exits to right */
@keyframes slide-right-out {
  from { transform: translateX(0); }
  to   { transform: translateX(100%); }
}

/* Horizontal: old content exits to left */
@keyframes slide-left-out {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* Horizontal: new content enters from left */
@keyframes slide-left-in {
  from { transform: translateX(-100%); }
  to   { transform: translateX(0); }
}

/* ---- reduced motion ----------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root),
  ::view-transition-old(page-content),
  ::view-transition-new(page-content),
  ::view-transition-old(portfolio-view),
  ::view-transition-new(portfolio-view) { animation: none; }
}
