/* ==========================================================
   LUKESAM · portfolio
   Base: minimal off-white / ink, with a dark mode that follows the
   visitor's system setting.
   Accents from the LUKESAM brand guidelines:
     Purple #A379F7  key words, highlights, Sector Bar
     Green  #84B79C  secondary highlights, callouts, wins
   Guideline contrast rules: accents work as text on dark grounds only.
   On light grounds they're shapes (fills, bars, underlines, markers).
   Type: Phudu Black (headlines) + Saira, standing in for Kenyan Coffee.
   ========================================================== */

@font-face {
  font-family: "Phudu";
  src: url("assets/fonts/phudu-black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Saira";
  src: url("assets/fonts/saira.woff2") format("woff2-variations"), url("assets/fonts/saira.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 50% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #FAFAF7;
  --surface: #FFFFFF;
  --surface-2: #F1F0EB;
  --ink: #1B1B1B;
  --muted: #5F5E59;
  --line: #E4E2DC;
  --on-ink: #FAFAF7;

  --purple: #A379F7;
  --green: #84B79C;
  --on-accent: #1B1B1B;          /* text on purple / green fills (5.4:1 / 7.6:1) */

  /* accent roles (the My channel section swaps these round) */
  --play: var(--purple);
  --chip: var(--purple);
  --progress: var(--purple);
  --win-bar: var(--green);

  /* light grounds: accents as shapes, text stays ink */
  --accent-text: var(--ink);
  --win-text: var(--ink);
  --em-marker: linear-gradient(transparent 56%, rgba(163, 121, 247, .55) 56% 92%, transparent 92%);

  --display: "Phudu", "Arial Black", Impact, sans-serif;
  --text: "Saira", "Arial Narrow", ui-sans-serif, system-ui, sans-serif;
  --label-stretch: 62.5%;
  --body-stretch: 75%;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --radius: 10px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E0E0E;
    --surface: #161616;
    --surface-2: #1D1D1C;
    --ink: #F3F2EE;
    --muted: #A19F99;
    --line: #2A2A28;
    --on-ink: #0E0E0E;

    /* dark grounds: accents can be text (6.1:1 / 8.5:1) */
    --accent-text: var(--purple);
    --win-text: var(--green);
    --em-marker: none;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-stretch: var(--body-stretch);
  font-size: 19px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: .9;
  letter-spacing: 0;
}
em {
  font-style: normal;
  color: var(--accent-text);
  background: var(--em-marker);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }

/* Kenyan Coffee label style: caps, +10% tracking */
.label {
  font-family: var(--text);
  font-stretch: var(--label-stretch);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.label.accent { display: inline-flex; align-items: center; gap: 10px; }
.label.accent::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--purple); flex: none; }

/* ---------- Sector Bar ---------- */
.sector { display: flex; gap: 4px; width: 100%; height: 4px; }
.sector i { display: block; height: 100%; border-radius: 2px; }
.sector i:nth-child(1) { flex: 50; background: var(--purple); }
.sector i:nth-child(2) { flex: 30; background: var(--green); }
.sector i:nth-child(3) { flex: 20; background: var(--ink); }
.sector-lg { height: 10px; gap: 8px; max-width: 760px; }
.sector-lg i { border-radius: 3px; }

/* ---------- Utility ---------- */
.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--purple); color: var(--on-accent);
  padding: 8px 12px; border-radius: 6px; font-weight: 700;
}
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; border-radius: 4px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.wordmark {
  display: inline-flex; flex-direction: column; gap: 4px;
  text-decoration: none;
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: 26px; line-height: .85;
}
.wordmark .sector { height: 3px; gap: 2px; }

nav { display: flex; gap: clamp(16px, 3vw, 32px); }
nav a {
  text-decoration: none;
  font-stretch: var(--label-stretch); font-weight: 700; font-size: 15px;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
  transition: color .15s ease;
}
nav a:hover { color: var(--ink); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 50px; padding: 0 24px;
  background: var(--purple); color: var(--on-accent);
  border-radius: 999px;
  font-stretch: var(--label-stretch); font-weight: 700; font-size: 17px;
  letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); background: #B08DF9; }

.text-link {
  font-stretch: var(--label-stretch); font-weight: 700; font-size: 17px;
  letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  background-image: linear-gradient(var(--green), var(--green));
  background-size: 100% 3px; background-position: 0 100%; background-repeat: no-repeat;
  padding-bottom: 4px;
}
.text-link:hover { color: var(--win-text); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(48px, 9vw, 112px); padding-bottom: clamp(40px, 5vw, 64px); }
.hero h1 {
  margin-top: 20px;
  font-size: clamp(3.1rem, 9.4vw, 8.4rem);
  line-height: .86;
  max-width: 14ch;
}
.hero h1 em, .contact h2 em { white-space: nowrap; }
.hero .sector-lg { margin-top: clamp(20px, 3vw, 32px); }
.lede {
  margin-top: 26px;
  font-size: clamp(19px, 2.1vw, 23px);
  color: var(--muted);
  max-width: 40ch;
  text-wrap: pretty;
}
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 34px; flex-wrap: wrap; }

.showreel { margin: clamp(48px, 7vw, 80px) 0 0; }

.tag {
  display: inline-block;
  font-stretch: var(--label-stretch); font-weight: 700; font-size: 13px;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 4px;
  background: var(--purple); color: var(--on-accent);
}

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin: clamp(44px, 6vw, 72px) 0 0;
  border-top: 1px solid var(--line);
  padding-top: 30px;
}
.stats dt {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.6rem, 5.4vw, 4.2rem); line-height: .9;
  color: var(--win-text);
  white-space: nowrap;
}
.stats dt::before {
  content: ""; display: block; width: 32px; height: 4px; border-radius: 2px;
  background: var(--green); margin-bottom: 16px;
}
.stats dd { margin: 12px 0 0; color: var(--muted); font-size: 17px; line-height: 1.4; max-width: 26ch; }

/* ---------- My channel (own content) ----------
   Same layout as the client cases, but on a dark band in both modes,
   with green leading (play buttons, chip, progress) and purple on the result. */
.own {
  --bg: #1B1B1B;
  --surface-2: #262625;
  --ink: #FAFAF7;
  --muted: #B3B1AB;
  --line: #353531;
  --on-ink: #1B1B1B;
  --accent-text: var(--green);
  --win-text: var(--purple);
  --em-marker: none;
  --play: var(--green);
  --chip: var(--green);
  --progress: var(--green);
  --win-bar: var(--purple);
  background: var(--bg);
  color: var(--ink);
  padding: clamp(64px, 9vw, 112px) 0 clamp(56px, 8vw, 96px);
}
@media (prefers-color-scheme: dark) {
  .own { --bg: #161616; --surface-2: #20201F; --line: #2C2C2A; --muted: #A9A7A1; border-top: 1px solid var(--line); }
}
.own .case { border-top: 0; padding-top: 0; padding-bottom: 0; }
.own .case-num { text-transform: none; letter-spacing: .04em; }
.own-mark { display: flex; width: fit-content; flex-direction: column; gap: 10px; font-size: clamp(2.6rem, 5vw, 4rem) !important; line-height: .85 !important; }
.own-mark .sector { height: 6px; gap: 5px; }
.own .sector i:nth-child(3) { background: var(--ink); }
.own .case-notes dd.result { color: var(--win-text); }

/* ---------- Clients ---------- */
.clients { padding: clamp(36px, 5vw, 52px) 0 clamp(48px, 6vw, 72px); border-top: 1px solid var(--line); }
.client-list {
  list-style: none; margin: 18px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px 36px;
}
.client-list li {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(24px, 3vw, 34px); line-height: 1;
}
.creators { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.creator-names { font-stretch: var(--label-stretch); font-weight: 700; font-size: 20px; line-height: 1.35; }

/* ---------- Section heads: "01 TITLE ———" ---------- */
.section-head {
  display: flex; align-items: center; gap: 18px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.sec-num {
  font-stretch: var(--label-stretch); font-weight: 700; font-size: 18px;
  letter-spacing: .1em; color: var(--muted);
}
.section-head h2, .sec-title {
  font-family: var(--display); font-weight: 900; text-transform: uppercase; line-height: .9;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  flex: none;
}
.rule { flex: 1; height: 1px; background: var(--line); }

/* ---------- Work ---------- */
.work { padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(40px, 5vw, 72px); }

.case {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(36px, 5vw, 56px) 0;
  border-top: 1px solid var(--line);
}
.case:first-of-type { border-top: 0; padding-top: 0; }
.case-meta { align-self: start; position: sticky; top: 92px; }
.case-num {
  display: inline-block;
  font-stretch: var(--label-stretch); font-weight: 700; font-size: 14px;
  letter-spacing: .1em;
  padding: 2px 8px; border-radius: 4px;
  background: var(--chip); color: var(--on-accent);
}
.case h3 { margin-top: 12px; font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: .9; }
.tags {
  margin-top: 12px;
  font-stretch: var(--label-stretch); font-weight: 700; font-size: 15px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}

.case-notes { margin: 26px 0 0; display: grid; gap: 6px; }
.case-notes dt {
  margin-top: 16px;
  font-stretch: var(--label-stretch); font-weight: 700; font-size: 14px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
}
.case-notes dt:first-child { margin-top: 0; }
.case-notes dd { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.45; max-width: 44ch; }
.case-notes dd.result {
  color: var(--win-text); font-weight: 600;
  border-left: 3px solid var(--win-bar); padding-left: 12px;
}

.case-media { display: grid; gap: 30px; min-width: 0; }
figure { margin: 0; min-width: 0; }
figcaption {
  margin-top: 12px;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
  font-stretch: 70%; font-weight: 600; font-size: 17px; line-height: 1.3;
}
figcaption .muted {
  font-stretch: var(--label-stretch); font-weight: 700; font-size: 13px;
  letter-spacing: .1em; text-transform: uppercase;
}

.shorts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 220px)); gap: 20px; }

/* ---------- Video (lite embed) ---------- */
.video {
  position: relative; display: block; width: 100%;
  padding: 0; border: 0; margin: 0;
  border-radius: var(--radius);
  overflow: hidden; cursor: pointer;
  background:
    repeating-linear-gradient(-12deg, transparent 0 22px, color-mix(in srgb, var(--ink) 4%, transparent) 22px 24px),
    var(--surface-2);
  color: var(--ink);
  font: inherit;
  isolation: isolate;
}
.video.wide { aspect-ratio: 16 / 9; }
.video.tall { aspect-ratio: 9 / 16; }

.video img.thumb {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 1;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.video:hover img.thumb { transform: scale(1.03); }

/* thumbnail-title style when there's no image */
.video-fallback {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  padding: clamp(16px, 2.4vw, 26px);
  text-align: left;
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(20px, 2.6vw, 32px); line-height: .92;
}
.video.tall .video-fallback { font-size: 18px; padding: 14px; }
.video-fallback small {
  display: block; margin-top: 10px;
  font-family: var(--text); font-stretch: var(--label-stretch); font-weight: 700;
  font-size: 14px; letter-spacing: .1em; color: var(--muted);
}

/* branded poster (playlist / no thumbnail): always dark */
.poster-brand { background: #1B1B1B; color: #FAFAF7; box-shadow: inset 0 0 0 1px var(--line); }
.poster-brand .video-fallback { font-size: clamp(28px, 4.4vw, 56px); padding: clamp(18px, 3vw, 34px); }
.poster-brand .video-fallback small { color: rgba(250, 250, 247, .7); }
.poster-brand::before {
  content: ""; position: absolute; z-index: 0;
  top: clamp(18px, 3vw, 34px); left: clamp(18px, 3vw, 34px);
  width: clamp(110px, 18vw, 220px); height: 6px;
  background: linear-gradient(90deg,
    var(--purple) 0 49%, transparent 49% 51%,
    var(--green) 51% 79%, transparent 79% 81%,
    #FAFAF7 81% 100%);
  border-radius: 2px;
}

/* play button: purple with ink arrow */
.video::after {
  content: "";
  position: absolute; z-index: 2;
  top: 50%; left: 50%;
  width: 68px; height: 68px; margin: -34px 0 0 -34px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.5v13l11-6.5z' fill='%231B1B1B'/%3E%3C/svg%3E") no-repeat 56% 50% / 28px,
    var(--play);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .22);
  transition: transform .2s ease;
}
.video.tall::after { width: 54px; height: 54px; margin: -27px 0 0 -27px; background-size: 22px, auto; }
.video:hover::after, .video:focus-visible::after { transform: scale(1.08); }

.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }
.video.playing { cursor: default; background: #000; }
.video.playing::after { display: none; }

/* ---------- Carousel ---------- */
.media-label { margin-bottom: -16px; }
.media-label ~ .media-label { margin-top: 12px; }

.carousel {
  --per: 1;                                   /* slides visible at once */
  --gap: 16px;
  --slide-w: calc((100cqw - (var(--per) - 1) * var(--gap)) / var(--per));
  --arrow-top: calc(var(--slide-w) * 9 / 32); /* middle of a 16:9 video */
  position: relative; container-type: inline-size; min-width: 0; outline-offset: 6px;
}
.carousel-tall {
  --per: 3;
  --arrow-top: calc(var(--slide-w) * 8 / 9);  /* middle of a 9:16 Short */
}
.carousel-track {
  position: relative;
  display: flex; gap: var(--gap);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel .slide { flex: 0 0 var(--slide-w); scroll-snap-align: start; }
.carousel-tall figcaption span {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 15px;
}

.carousel-btn {
  position: absolute; z-index: 5;
  top: var(--arrow-top);
  transform: translateY(-50%);
  width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%;
  cursor: pointer;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B1B1B' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E") no-repeat center / 22px,
    #FFFFFF;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .12), 0 8px 24px rgba(0, 0, 0, .22);
  transition: transform .15s ease, opacity .2s ease;
}
.carousel-btn.prev { left: 14px; transform: translateY(-50%) scaleX(-1); }
.carousel-btn.next { right: 14px; }
.carousel-btn:hover:not(:disabled) { transform: translateY(-50%) scale(1.08); }
.carousel-btn.prev:hover:not(:disabled) { transform: translateY(-50%) scaleX(-1) scale(1.08); }
.carousel-btn:disabled { opacity: 0; pointer-events: none; }
@media (min-width: 861px) {
  /* arrows sit on the edge of the frame so they never cover the video */
  .carousel-btn.prev { left: -24px; }
  .carousel-btn.next { right: -24px; }
}

.carousel-foot { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.carousel-progress { position: relative; flex: 1; height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; }
.carousel-progress i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; background: var(--progress); transition: transform .3s ease; }
.carousel-count {
  font-stretch: var(--label-stretch); font-weight: 700; font-size: 14px;
  letter-spacing: .1em; color: var(--muted); white-space: nowrap;
}
.carousel-count b { color: var(--ink); }

/* ---------- About ---------- */
.about { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(64px, 9vw, 120px) 0; }
.about-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }

.portrait {
  position: relative; aspect-ratio: 1 / 1; max-width: 380px;
  border-radius: var(--radius); overflow: hidden;
  background: var(--surface-2);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.portrait .sector { position: absolute; left: 24px; right: 24px; bottom: 24px; width: auto; height: 6px; }
.portrait:not(.no-photo) .sector { display: none; }
.portrait-fallback { display: none; }
.portrait.no-photo .portrait-fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--display); font-weight: 900;
  font-size: clamp(88px, 12vw, 150px); line-height: 1;
  color: color-mix(in srgb, var(--ink) 14%, transparent);
}

.about-lede {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(28px, 3.2vw, 40px); line-height: .95;
  max-width: 24ch;
}
.about-copy > p:not(.about-lede) { margin-top: 18px; max-width: 56ch; color: var(--muted); }
.about-copy h3 {
  margin-top: 36px;
  font-family: var(--text); font-stretch: var(--label-stretch); font-weight: 700;
  font-size: 24px; line-height: 1.1; text-transform: none; letter-spacing: 0;
}
.about-copy h3 + p { margin-top: 8px !important; }

.skills { display: grid; grid-template-columns: 1fr 1.6fr; gap: 24px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.skills ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.skills li { font-stretch: 70%; font-weight: 600; font-size: 19px; display: flex; align-items: center; gap: 10px; }
.skills li::before { content: ""; width: 10px; height: 4px; border-radius: 2px; background: var(--purple); flex: none; }
.skills div:last-child li::before { background: var(--green); }

/* ---------- Contact ---------- */
.contact { padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(72px, 10vw, 140px); }
.contact h2 { font-size: clamp(3.1rem, 9.4vw, 8.4rem); line-height: .86; }

.email-row { display: flex; align-items: center; gap: 16px; margin-top: 40px; flex-wrap: wrap; }
.email {
  font-stretch: 70%; font-weight: 700;
  font-size: clamp(26px, 4.4vw, 52px); line-height: 1.1;
  text-decoration: none; overflow-wrap: anywhere;
  background-image: linear-gradient(var(--purple), var(--purple));
  background-size: 100% 4px; background-position: 0 100%; background-repeat: no-repeat;
  padding-bottom: 6px;
  transition: background-size .2s ease;
}
.email:hover { background-size: 100% 8px; }

.copy {
  height: 38px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--ink);
  font: inherit; font-stretch: var(--label-stretch); font-weight: 700; font-size: 14px;
  letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.copy:hover { border-color: var(--ink); }
.copy.done { background: var(--green); color: var(--on-accent); border-color: var(--green); }

.socials { list-style: none; padding: 0; margin: 34px 0 0; display: flex; gap: 30px; flex-wrap: wrap; }
.socials a {
  font-stretch: var(--label-stretch); font-weight: 700; font-size: 17px;
  letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  color: var(--muted);
}
.socials a:hover { color: var(--ink); }
.socials a::after { content: " ↗"; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; min-height: 76px; padding-top: 18px; padding-bottom: 18px; }
.footer-inner .label { font-size: 14px; }

/* case without a video yet */
.case.no-media { grid-template-columns: minmax(0, 1fr); }
.case.no-media .case-meta { position: static; display: block; }
.case.no-media .case-notes { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.case.no-media .case-notes dd { max-width: 64ch; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  /* stacked: header, then the video, then the notes, so the work comes first */
  .case { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .case-meta { display: contents; }
  .case-num { justify-self: start; }
  .case-media { order: 1; margin-top: 22px; }
  .case-notes { order: 2; margin-top: 26px; }
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .portrait { max-width: 340px; }
}

@media (max-width: 640px) {
  body { font-size: 18px; }
  .wordmark { font-size: 22px; }
  nav a { font-size: 14px; }
  .sector-lg { height: 7px; gap: 5px; }
  .stats { grid-template-columns: 1fr; gap: 22px; }
  .stats div { display: grid; grid-template-columns: 128px 1fr; align-items: end; gap: 14px; }
  .stats dd { margin: 0; font-size: 16px; }
  .shorts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .skills { grid-template-columns: 1fr; }
  .video::after { width: 56px; height: 56px; margin: -28px 0 0 -28px; background-size: 23px, auto; }
  .carousel-btn { width: 40px; height: 40px; background-size: 18px, auto; }
  .carousel-tall { --per: 2; --gap: 12px; --arrow-top: calc(var(--slide-w) * 16 / 9 * .74); } /* keep arrows clear of the play buttons */
  .carousel-btn.prev { left: 8px; }
  .carousel-btn.next { right: 8px; }
  .section-head { gap: 12px; }
  .sec-num { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
