/* Warm washed paper, warm ink text, one muted ink-blue accent. Project scenes use three muted tones of equal weight. */
:root {
  --bg: #f2eee5;
  --text: #1f1d19;
  --muted: #6a6457;
  --line: #ddd6c7;
  --accent: #2f4f7f;     /* ink blue */
  --red: #2f4f7f;        /* small labels use the same ink */
  --dark: #1f1d19;       /* warm near-black for overlays and video frames */
  --accent-ink: #ffffff;
  --on-image: #ffffff;
  --on-image-muted: rgba(255, 255, 255, .86);
  --on-image-red: #e8dcc3;   /* warm cream for labels on photos */
  --pill: #e7e1d3;
  --pill-hover: #ddd5c4;
  --paper-grain: .14;
  --paper-wash: .11;
  --nav-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: .7s;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #16150f;
    --text: #efece4;
    --muted: #a7a396;
    --line: #2c2a22;
    --accent: #8fa9d4;
    --red: #8fa9d4;
    --pill: #22201a;
    --pill-hover: #2c2a22;
    --paper-grain: .05;
    --paper-wash: .04;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #16150f;
  --text: #efece4;
  --muted: #a7a396;
  --line: #2c2a22;
  --accent: #8fa9d4;
  --red: #8fa9d4;
  --pill: #22201a;
  --pill-hover: #2c2a22;
  --paper-grain: .05;
  --paper-wash: .04;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-padding-top: var(--nav-h); }

/* Paper texture: fine grain plus soft uneven wash, fixed behind the page. */
body::before, body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
}
body::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35  0 0 0 0 0.3  0 0 0 0 0.22  0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); background-size: 220px; opacity: var(--paper-grain); }
body::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='1000'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.0035' numOctaves='4' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.45  0 0 0 0 0.38  0 0 0 0 0.25  0 0 0 1.6 -0.35'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23w)'/%3E%3C/svg%3E"); background-size: cover; background-position: center; opacity: var(--paper-wash); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Shantell Sans", "Comic Neue", "Segoe Print", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-variation-settings: "INFM" 25;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 760px) { .wrap { padding: 0 32px; } }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 20;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: flex-end; height: 100%; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; }
.logo {
  display: grid; place-items: center; width: 30px; height: 30px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 800; font-size: 18px; border-radius: 4px;
}
.nav-links { display: flex; align-items: center; gap: 20px; font-size: 15px; font-weight: 500; }
.nav-links a:not(.btn) { text-decoration: none; color: var(--muted); }
.nav-links a:not(.btn):hover { color: var(--text); }
@media (max-width: 560px) {
  .brand-name { display: none; }
  .nav-links { gap: 14px; }
}

.btn {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  padding: 12px 22px; border-radius: 8px; font-weight: 600; text-decoration: none;
}
.btn:hover { filter: brightness(1.06); }
.btn-small { padding: 7px 14px; font-size: 14px; }
.btn-light { background: var(--on-image); color: var(--accent); }

/* INTRO */
.intro {
  padding-block: clamp(40px, 7vh, 72px) clamp(24px, 4vh, 40px);
  display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center;
}
.intro-name { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 2vw, 24px); }
.avatar {
  width: clamp(64px, 8vw, 104px); height: clamp(64px, 8vw, 104px); flex: none;
  border-radius: 18%; object-fit: cover; background: var(--line);
  box-shadow: 0 6px 20px rgba(31, 29, 25, .12);
}
.eyebrow { margin: 0 0 16px; font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--red); }
h1 { margin: 0; font-size: clamp(40px, 7vw, 84px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 800; }
.accent { color: var(--accent); }
.lede { max-width: 620px; margin: 0; font-size: clamp(18px, 2.2vw, 22px); color: var(--muted); }
.scroll-hint { margin-top: 48px; font-size: 14px; font-weight: 600; color: var(--muted); }

/* ───────── PINNED YEAR SCROLLER ─────────
   The section is n screens tall; the inner box sticks to the viewport while you scroll
   through it, and JS sets which .slide is active. */
.stage { position: relative; height: calc(var(--n) * 100svh); }
.stage-sticky {
  position: sticky; top: var(--nav-h);
  height: calc(100svh - var(--nav-h));
  overflow: hidden;
}
.slides { position: absolute; inset: 0; }

.slide {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: 1fr minmax(320px, 1.05fr) 1fr;
  align-items: center;
  gap: clamp(16px, 3vw, 48px);
  padding: 4vh clamp(16px, 3vw, 48px) 9vh;
  pointer-events: none;
}
.slide.is-active { pointer-events: auto; }

/* images */
.shot {
  margin: 0; height: min(68vh, 640px); border-radius: 14px; overflow: hidden;
  background: var(--line);
  opacity: 0; transform: scale(1.04);
  transition: opacity var(--dur) var(--ease), transform calc(var(--dur) * 1.4) var(--ease);
}
.shot picture { display: block; width: 100%; height: 100%; }
.shot img, .shot video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Screenshots that must not be cropped: show whole, on white. */
.shot.fit-white { background: #ffffff; }
.shot.fit-white img { object-fit: contain; }
/* Composed graphics on white: show the whole image instead of cropping. */
.shot.fit { background: transparent; border-radius: 0; overflow: visible; }
.shot.fit img { object-fit: contain; }
@media (max-width: 759px) {
  .shot.fit-m { background: transparent; border-radius: 0; overflow: visible; }
  .shot.fit-m img { object-fit: contain; object-position: center top; height: auto; max-height: 62%; filter: drop-shadow(0 6px 18px rgba(31,29,25,.12)); }
  .shot.fit img { object-position: center top; height: auto; max-height: 62%; }
  /* Transparent graphic on paper: text sits below it in normal page colours, no dark overlay. */
  .slide-fit .copy { background: none; color: var(--text); padding: 0 6px 8px; }
  .slide-fit .age { color: var(--red); }
  .slide-fit .what { color: var(--muted); }
  .slide-fit .what strong { color: var(--text); }
  .slide-fit .what li::before { background: var(--accent); }
}
.shot img.pos-l0 { object-position: left center; }
/* Per-image crop: keep the bottom of the photo, trim the top (desktop only). */
@media (min-width: 760px) { .shot img.pos-bottom { object-position: center bottom; } .shot img.pos-top { object-position: center top; } }
@media (min-width: 760px) { .shot img.pos-left { object-position: 15% center; } }
@media (max-width: 759px) { .shot img.pos-left { object-position: 68% center; } }
.shot-b { transition-delay: .08s; }
.slide.is-active .shot { opacity: 1; transform: none; }

/* center copy: next year rises from below, previous exits upward */
.copy {
  text-align: center;
  opacity: 0; transform: translateY(70px);
  transition: opacity calc(var(--dur) * .8) var(--ease), transform var(--dur) var(--ease);
}
.slide.is-active .copy { opacity: 1; transform: none; }
.slide.is-past .copy { transform: translateY(-70px); }
.year {
  margin: 4px 0 14px;
  font-size: clamp(72px, 9vw, 136px);
  font-weight: 800; letter-spacing: -0.05em; line-height: .95;
}
.age { font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--red); }
.what {
  list-style: none; margin: 0 auto; padding: 0;
  max-width: 420px; text-align: left;
  display: flex; flex-direction: column; gap: 8px;
  font-size: clamp(15px, 1.25vw, 17px); line-height: 1.45; color: var(--muted);
}
.what li { position: relative; padding-left: 18px; }
.what li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 7px; height: 7px; border-radius: 2px; background: var(--accent);
}
.what strong { color: var(--text); }

/* year rail */
.rail {
  position: absolute; left: 0; right: 0; bottom: 2.5vh;
  display: flex; justify-content: center; gap: 4px;
  list-style: none; margin: 0; padding: 0 16px;
}
.rail button {
  font: inherit; font-size: 13px; font-weight: 600;
  padding: 6px 10px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--muted);
  transition: background .2s, color .2s;
}
.rail button:hover { color: var(--text); }
.rail button[aria-current="true"] { background: var(--accent); color: var(--accent-ink); }

/* mobile: one image, text overlaid at the bottom */
@media (max-width: 759px) {
  .slide { grid-template-columns: 1fr; padding: 12px 12px 56px; }
  .shot-b { display: none; }
  .shot-a { grid-area: 1 / 1; height: 100%; align-self: stretch; }
  .copy {
    grid-area: 1 / 1; align-self: end; z-index: 1;
    text-align: left; color: var(--on-image);
    padding: 90px 20px 20px;
    background: linear-gradient(to top, rgba(28,25,21,.88) 55%, rgba(28,25,21,0));
    border-radius: 0 0 14px 14px;
  }
  .year { font-size: clamp(56px, 17vw, 84px); margin: 2px 0 10px; }
  .age { color: var(--on-image-red); }
  .what { margin: 0; gap: 6px; color: var(--on-image-muted); font-size: 14.5px; }
  .what li::before { background: var(--on-image-red); }
  .what strong { color: var(--on-image); }
  .rail { bottom: 12px; gap: 0; }
  .rail button { padding: 5px 8px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .shot, .copy { transition: opacity .2s linear; transform: none !important; }
}

/* Placeholder marker: remove the class once real copy is in. */
.ph, .ph-light {
  border-radius: 4px; padding: 0 4px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.ph {
  background: color-mix(in srgb, var(--red) 9%, transparent);
  outline: 1px dashed color-mix(in srgb, var(--red) 45%, transparent);
}
.ph-light { outline: 1px dashed var(--on-image-muted); }
/* Draft marker: Julian's own words from voice notes, still to be rewritten. Remove the class when final. */
.draft { text-decoration: underline dotted color-mix(in srgb, var(--accent) 55%, transparent); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* INTRO overview */
.overview {
  list-style: none; margin: 28px 0 0; padding: 0;
  display: grid; gap: 10px; max-width: 640px;
  font-size: 17px; color: var(--muted);
}
.overview li { position: relative; padding-left: 20px; }
.overview li::before {
  content: ""; position: absolute; left: 0; top: .6em;
  width: 8px; height: 8px; border-radius: 2px; background: var(--accent);
}
.stats { display: flex; flex-wrap: wrap; gap: 16px 48px; margin: 36px 0 0; }
.stats div { display: flex; flex-direction: column; gap: 4px; }
.stats dt { font-size: clamp(30px, 3.6vw, 40px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; align-self: start; }
.stats dd { margin: 0; font-size: 14px; color: var(--muted); align-self: start; }

/* WHAT I BUILT */
.built { padding: 120px 0 112px; border-top: 1px solid var(--line); }
.section-head { max-width: 680px; }
.section-title { margin: 0; font-size: clamp(34px, 5vw, 60px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 800; text-wrap: balance; }
.section-sub { margin: 14px 0 0; font-size: 18px; color: var(--muted); }

/* Projects: Mistral-style rows. Text left, tiled scene right (alternating), hairline between rows. */
.projects { margin-top: 64px; border-top: 1px solid var(--line); }
.project {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr);
  gap: clamp(28px, 4vw, 56px); align-items: start;
  padding-block: clamp(40px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
}
.project-flip { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); }
.project-flip .project-text { order: 2; }
.project-text { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding-top: 4px; }
.project-text h3 { margin: 0; font-size: clamp(28px, 3vw, 40px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.12; text-wrap: balance; }
.project-text p { margin: 0; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.6; color: var(--muted); max-width: 480px; }
.project-links { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 18px; }
.pill {
  display: inline-flex; align-items: center; gap: 22px;
  padding: 15px 22px; border-radius: 6px;
  background: var(--pill); color: var(--text);
  font-size: 18px; font-weight: 500; text-decoration: none;
  transition: background .15s;
}
.pill:hover { background: var(--pill-hover); }
.pill:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.chev { font-size: 26px; line-height: 0; font-weight: 700; transition: transform .15s; }
.pill:hover .chev { transform: translateX(3px); }

/* Scene: coloured tile grid with a white card holding the screenshots. */
.scene {
  position: relative; min-width: 0; max-width: 100%;
  aspect-ratio: 3 / 2;
  background: var(--s-base); overflow: hidden;
}
.scene-blue { --s-base: #2f4f7f; --s-tile: #3b5d8f; --s-tile2: #284670; --s-ink: #d6e0ef; }
.scene-grey { --s-base: #6f6c67; --s-tile: #7c7973; --s-tile2: #63605b; --s-ink: #ecebe7; }
.scene-purple { --s-base: #7e5dde; --s-tile: #8a6ce3; --s-tile2: #7050cf; --s-ink: #efe9ff; }
.scene-navy { --s-base: #5b6a4f; --s-tile: #677759; --s-tile2: #505e45; --s-ink: #e6eadc; }
.scene::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, rgba(255,255,255,.14), rgba(255,255,255,0) 60%);
}
.scene-grid {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: repeat(8, 1fr);
  background-image:
    linear-gradient(to right, rgba(255,255,255,.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: calc(100% / 12) calc(100% / 8);
}
.tile { background: var(--s-tile); }
.tile:nth-child(3n) { background: var(--s-tile2); }
.tag {
  align-self: center; justify-self: start; padding-left: 10px; z-index: 1;
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace; font-size: clamp(9px, .85vw, 12px);
  letter-spacing: .06em; text-transform: uppercase; color: var(--s-ink); white-space: nowrap;
}
@media (max-width: 600px) { .tag { display: none; } }
.scene-card {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 64%; aspect-ratio: 16 / 10; z-index: 2;
  background: var(--on-image); border-radius: 10px;
  box-shadow: 0 18px 50px rgba(31, 29, 25, .28);
}

/* Image carousel: native horizontal scroll with snap, so swipe works on phones. */
.carousel { position: relative; }
.car-track {
  display: flex; height: 100%; border-radius: inherit;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none;
}
.car-track::-webkit-scrollbar { display: none; }
.car-track:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.car-item { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; display: block; }
.car-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--on-image); color: var(--dark); font-size: 16px; font-weight: 700;
  box-shadow: 0 2px 10px rgba(31, 29, 25, .25);
  opacity: 0; transition: opacity .2s;
}
.car-prev { left: 10px; }
.car-next { right: 10px; }
.carousel:hover .car-btn, .car-btn:focus-visible { opacity: .95; }
.car-btn:disabled { opacity: 0 !important; pointer-events: none; }
.car-btn:focus-visible { outline: 3px solid var(--accent); }
.car-dots {
  position: absolute; left: 0; right: 0; bottom: 10px;
  display: flex; justify-content: center; gap: 6px; pointer-events: none;
}
.car-dots span { width: 6px; height: 6px; border-radius: 999px; background: var(--dark); opacity: .25; transition: opacity .2s, width .2s; }
.car-dots span.on { opacity: .8; width: 18px; }
@media (hover: none) { .car-btn { display: none; } }
@media (prefers-reduced-motion: reduce) { .car-track { scroll-behavior: auto; } }

.side-head { margin-top: 120px; }
.side-title { margin: 0; font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.03em; }
.sides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 32px; }
.side { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
.side-media { margin: 0 0 6px; width: 100%; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--line); }
.side-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.side h4 { margin: 0; font-size: 19px; letter-spacing: -0.01em; }
.side p { margin: 0; font-size: 15px; color: var(--muted); }
/* Project breakdown: the points a16z asks for, under each project row. */
.project-meta { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--red); }
.project-detail {
  grid-column: 1 / -1; order: 3;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px clamp(28px, 4vw, 56px);
  padding-top: clamp(28px, 3vw, 40px);
  border-top: 1px dashed var(--line);
}
.detail { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.detail-wide { grid-column: 1 / -1; }
.detail-label { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text); }
.detail p { margin: 0; color: var(--muted); line-height: 1.65; max-width: 62ch; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 16px 20px; margin: 0; }
.metrics div { display: flex; flex-direction: column; gap: 4px; }
.metrics dt { font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; letter-spacing: -0.02em; align-self: start; font-variant-numeric: tabular-nums; }
.metrics dd { margin: 0; font-size: 13px; color: var(--muted); align-self: start; }

/* Side project facts */
.side-facts { margin: 4px 0 0; display: grid; gap: 8px; width: 100%; }
.side-facts div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; font-size: 14.5px; }
.side-facts dt { font-weight: 700; color: var(--text); }
.side-facts dd { margin: 0; color: var(--muted); justify-self: start; }

@media (max-width: 859px) {
  .project-detail { grid-template-columns: 1fr; gap: 28px; }
}

.side-link { font-size: 15px; font-weight: 600; color: var(--accent); text-decoration: none; }
.side-link:hover { text-decoration: underline; }

@media (max-width: 859px) {
  .project, .project-flip { grid-template-columns: 1fr; }
  .project-flip .project-text { order: 0; }
  .scene { aspect-ratio: 4 / 3; margin-inline: -16px; max-width: none; }
  .scene-card { width: 78%; }
  .pill { font-size: 16px; padding: 13px 18px; }
  .sides { grid-template-columns: 1fr; gap: 40px; }
}

/* CONTACT */
.contact { background: var(--accent); color: var(--accent-ink); padding: 96px 0; }
.contact h2 { margin: 0; font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.03em; font-weight: 800; line-height: 1.05; }
.contact p { margin: 12px 0 28px; font-size: 19px; opacity: .9; }
.contact-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.contact-link { color: var(--on-image); font-weight: 600; text-decoration: none; }
.contact-link:hover { text-decoration: underline; }

.footer { font-size: 14px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--text); }

/* Hand-drawn feel: headings lean further into Shantell Sans' informal axis. */
h1, .year, .section-title, .project-text h3, .side-title, .contact h2 {
  font-variation-settings: "INFM" 70;
  letter-spacing: -0.02em;
}

/* Mobile: anchor a screenshot to its top. */
@media (max-width: 759px) { .shot img.pos-top-m { object-position: center top; } }

/* 2025 mobile: small email card sits just above the text, not stuck to the top. */
@media (max-width: 759px) {
  .slide[data-year="2025"] .shot.fit-m img { width: 90%; margin: 0 auto; height: 46%; max-height: none; object-position: center 55%; }
}

/* Carousel items that hold a video or a labelled image. */
.car-media { position: relative; margin: 0; background: var(--dark); }
.car-media video, .car-media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.car-label {
  position: absolute; top: 10px; left: 10px; z-index: 1; pointer-events: none;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); color: var(--dark);
  font-size: 12px; font-weight: 700; letter-spacing: .02em;
}
/* Knowunity card is see-through: dots sit centred under it, like the bare slides. */
.scene-card:has(.car-overview) .car-dots { bottom: -22px; }

/* Video inside a year slide: keep the label on top, show the whole frame. */
.shot-video { position: relative; background: var(--dark); }
.shot-video video { object-fit: contain; }

/* 2026 desktop: two videos side by side, carousel strip below, all on the paper. */
.shot-collage { background: transparent; display: flex; flex-direction: column; justify-content: center; gap: 12px; overflow: visible; }
.collage-row { display: flex; gap: 12px; }
.collage-item { position: relative; border-radius: 10px; overflow: hidden; background: var(--dark); box-shadow: 0 8px 24px rgba(31, 29, 25, .16); }
.collage-item video, .collage-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.c-tall { flex: 0.5625; aspect-ratio: 9 / 16; }      /* flex ratio = aspect ratio, so both share one height */
.c-wide { flex: 1.3333; aspect-ratio: 4 / 3; }
.c-strip { aspect-ratio: 1880 / 480; background: #f2ece0; }
.collage-item .car-label { top: 6px; left: 6px; font-size: 10px; padding: 3px 8px; }
@media (max-width: 759px) { .shot-b.shot-collage { display: none; } }
.collage-item video { cursor: pointer; }
.sound-hint { position: absolute; right: 6px; bottom: 6px; padding: 3px 8px; border-radius: 999px; background: rgba(31,29,25,.7); color: #fff; font-size: 10px; font-weight: 700; pointer-events: none; }

/* Knowunity carousel overview slide: all three formats at once. */
.car-overview { margin: 0; background: transparent; display: flex; align-items: center; justify-content: center; padding: 4%; }
.ov-grid { display: flex; gap: 8px; height: 100%; max-width: 100%; }
.ov-tall { height: 100%; aspect-ratio: 9 / 16; flex: none; }
.ov-col { display: flex; flex-direction: column; gap: 8px; justify-content: center; min-width: 0; }
.ov-wide { aspect-ratio: 4 / 3; height: auto; }
.ov-strip { aspect-ratio: 1880 / 480; height: auto; background: #f2ece0; }
.ov-col .collage-item { width: calc((100cqh - 8px) / 1.0053); }
.car-overview { container-type: size; }
.ov-grid .car-label { font-size: 9px; padding: 2px 6px; }
.ov-grid .sound-hint { font-size: 9px; padding: 2px 6px; }
@media (max-width: 600px) { .ov-grid .car-label, .ov-grid .sound-hint { display: none; } }
/* Overview slide sits straight on the scene colour: no white card behind the carousel. */
.scene-card:has(.car-overview) { background: transparent; box-shadow: none; }
.scene-card:has(.car-overview) .car-dots span { background: #fff; }
.scene-card.carousel { transition: background-color .25s, box-shadow .25s; }
.scene-card.is-bare { background: transparent; box-shadow: none; }
.scene-card.is-bare .car-dots span { background: #fff; }
/* On bare slides the dots sit under the image, clear of the phones. */
.scene-card.is-bare .car-dots { bottom: -22px; }
.car-bare { object-fit: contain; }

/* Knowunity pipeline diagram slide: inputs flow down into each step, steps flow left to right, loop below. */
.car-diagram { margin: 0; background: #f6f2e9; border-radius: 10px; container-type: size; display: flex; }
.pl { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 2.4cqh; padding: 4cqh 3cqw; color: var(--dark); font-size: 1.55cqw; line-height: 1.3; }
.pl-title { margin: 0; font-size: 2.3cqw; font-weight: 800; letter-spacing: -0.01em; }
.pl-key { margin: -1cqh 0 0; font-size: 1.25cqw; color: #6a6457; }
.pl-key-in { background: #ece6d8; border-radius: 4px; padding: 0.2cqh 0.5cqw; color: #3c3a33; }
.pl-grid { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr; grid-template-rows: auto auto 1fr; column-gap: 0.6cqw; row-gap: 0.8cqh; }
.pl-in { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 0.7cqh; min-width: 0; }
.pl-in li { background: #ece6d8; border-radius: 4px; padding: 0.6cqh 0.6cqw; font-size: 1.2cqw; color: #3c3a33; }
.pl-down { text-align: center; color: #a35a40; font-weight: 800; font-size: 1.9cqw; line-height: 1; }
.pl-box { background: #fff; border: 1.5px solid #2f4f7f; border-radius: 6px; padding: 1.6cqh 0.9cqw; display: flex; flex-direction: column; gap: 0.6cqh; min-width: 0; }
.pl-num { font-size: 1.3cqw; font-weight: 800; color: #2f4f7f; }
.pl-box strong { font-size: 1.8cqw; line-height: 1.15; }
.pl-sub { color: #3c3a33; font-size: 1.35cqw; }
.pl-arrow { align-self: center; color: #2f4f7f; font-weight: 800; font-size: 2.3cqw; }
.pl-loop { margin: 0; padding: 1.4cqh 1cqw; border: 1.5px dashed #a35a40; border-radius: 6px; color: #7c4530; font-size: 1.35cqw; }
.car-diagram { cursor: zoom-in; }
.pl-hint { float: right; font-size: 1.2cqw; font-weight: 600; color: #6a6457; }
.pl-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(28, 25, 21, .75); display: grid; place-items: center; padding: 16px; cursor: zoom-out; }
.car-diagram.is-zoomed { width: min(100%, 150vh); aspect-ratio: 16 / 10; height: auto; cursor: zoom-out; }
@media (max-width: 759px) {
  /* Phones: the enlarged diagram stacks the stages top to bottom and scrolls. */
  .pl-overlay { align-items: start; overflow-y: auto; }
  .car-diagram.is-zoomed { width: 100%; aspect-ratio: auto; container-type: normal; }
  .car-diagram.is-zoomed .pl { font-size: 13px; gap: 14px; padding: 18px 16px; }
  .car-diagram.is-zoomed .pl-title { font-size: 18px; }
  .car-diagram.is-zoomed .pl-grid { display: flex; flex-direction: column; gap: 6px; }
  .car-diagram.is-zoomed .pl-key { font-size: 12px; }
  .car-diagram.is-zoomed .pl-down { font-size: 16px; }
  .car-diagram.is-zoomed .pl-box { min-height: 0; padding: 10px 12px; gap: 3px; }
  .car-diagram.is-zoomed .pl-num { font-size: 12px; }
  .car-diagram.is-zoomed .pl-box strong { font-size: 16px; }
  .car-diagram.is-zoomed .pl-sub { font-size: 13px; }
  .car-diagram.is-zoomed .pl-in { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; gap: 5px; margin-top: 8px; }
  .car-diagram.is-zoomed .pl-in li { font-size: 12px; padding: 4px 8px; }
  .car-diagram.is-zoomed .pl-arrow { transform: rotate(90deg); margin: 0 auto; font-size: 18px; }
  .car-diagram.is-zoomed .pl-loop { font-size: 13px; padding: 10px 12px; }
}
.car-diagram.is-zoomed .pl-hint { display: none; }
.car-perf { background: #fdfaf2; }
.project-logo { width: 40px; height: 40px; border-radius: 10px; object-fit: contain; background: #fff; box-shadow: 0 1px 6px rgba(31, 29, 25, .12); flex: none; }
.project-id { display: flex; align-items: center; gap: 12px; }
.project-name { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.project-id + .project-meta { margin-top: -8px; color: var(--muted); }
/* Knowunity carousel sits on the scene colour: a small gap keeps a rounding sliver of the neighbouring slide from showing as a light line. */
/* Gap between slides so no sliver of a neighbour shows beside a transparent slide. */
.car-track { gap: 8px; }
