/* ============================================================
   WII PORTFOLIO — console-accurate UI
   Every measurement below is a percentage of a locked 16:9
   screen, taken off the reference screenshots:
     grid    8.8% top · 82.8% wide · 60.6% tall · tiles 19.5×19.0
     shelf   bottom 30.6% · line 72.6% at the edges, 81.4% centre
     orbs    7.8% wide · clock digits 8.4% tall
   ============================================================ */

:root {
  --line: #5cc4e8;          /* the shelf line / selection cyan */
  --line-dk: #2fa6d4;
  --ink: #6c7378;           /* Wii's gray UI text */
  --ink-dk: #4d5459;
  --lcd: #a8adb1;           /* clock segments */
  --font: "M PLUS Rounded 1c", "Nunito", "Segoe UI Rounded", system-ui, sans-serif;
  --cursor-normal: url("../assets/wii-cursors/normal-select.cur"), none;
  --cursor-link: url("../assets/wii-cursors/link-select.cur"), none;
  --cursor-busy: url("../assets/wii-cursors/busy.ani"), none;
  --cursor-text: url("../assets/wii-cursors/text-select.cur"), none;
  --cursor-unavailable: url("../assets/wii-cursors/unavailable.cur"), none;
  --cursor-background: url("../assets/wii-cursors/working-in-background.ani"), none;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
*, *::before, *::after { cursor: inherit; }

html, body { height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(ellipse 120% 90% at 50% 38%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 72%),
    repeating-linear-gradient(180deg, #e9eaec 0 2px, #d9dadd 2px 4px);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  cursor: var(--cursor-normal);
  overflow: hidden;
}
body.v-case { overflow: auto; }

a { color: inherit; text-decoration: none; }
::selection { background: var(--line); color: #fff; }
:focus-visible { outline: 3px solid var(--line-dk); outline-offset: 3px; }

/* =============== THE SCREEN =============== */
.tv {
  position: fixed; inset: 0; z-index: 1;
  display: grid; place-items: center;
}
.v-case .tv { display: none; }

.screen {
  position: relative;
  width: 100vw;
  height: 100vh;
  container-type: size;
}
.scr { position: absolute; inset: 0; }

/* =============== CHANNEL GRID =============== */
.grid {
  position: absolute;
  top: 8.8cqh; height: 60.6cqh;
  left: 8.6cqw; right: 8.6cqw;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 1.85cqh 1.56cqw;
}
/* sub-menus carry a title strip, so they start a touch lower */
.grid--sub { top: 13.5cqh; height: 55.9cqh; }
.channel-project-grid { grid-column: 1 / span 2; grid-row: 1 / span 3; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 1.85cqh 1.56cqw; }
.channel-intro { grid-column: 3 / span 2; grid-row: 1 / span 3; display: flex; flex-direction: column; justify-content: flex-start; min-width: 0; overflow: hidden; padding: clamp(1.1rem, 1.55vw, 1.85rem); border: 2px solid rgba(117, 166, 184, .48); border-radius: 1.56cqw; color: #56646b; background: linear-gradient(145deg, rgba(255,255,255,.82), rgba(223,233,236,.86)); box-shadow: inset 0 .3cqh .5cqh rgba(255,255,255,.92), 0 .45cqh .85cqh rgba(49,78,89,.12); }
.v-grid--gameface .channel-project-grid { grid-column: 3 / span 2; }
.v-grid--gameface .channel-intro { grid-column: 1 / span 2; }
.channel-intro h1 { max-width: 18ch; margin: 0 0 clamp(.5rem, .8cqh, .7rem); color: #46535a; font-size: clamp(1.6rem, 2.1vw, 2.55rem); line-height: 1; letter-spacing: -.055em; }.channel-intro p { max-width: none; margin: 0; font-size: clamp(.94rem, .94vw, 1.08rem); font-weight: 700; line-height: 1.36; }.channel-intro p + p { margin-top: clamp(.45rem, .7cqh, .65rem); }

.chan {
  position: relative;
  border-radius: 1.56cqw;
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 0 0 .16cqw rgba(146, 152, 158, .5),
    0 .55cqh 1.1cqh rgba(0, 0, 0, .12);
  cursor: var(--cursor-link);
  transition: transform .16s ease, box-shadow .16s ease;
  -webkit-tap-highlight-color: transparent;
}
.chan:hover, .chan:focus-visible {
  outline: none;
  transform: scale(1.028);
  z-index: 3;
  box-shadow:
    0 0 0 .34cqw var(--line),
  0 0 2.4cqh rgba(92, 196, 232, .75),
    0 .8cqh 1.6cqh rgba(0, 0, 0, .16);
}
/* Wii pointer map: no native OS cursors are used anywhere in the interface. */
a,
button,
[role="button"],
.chan,
.orb,
.sd,
.theme-toggle,
.btn,
.arw,
a.tag,
[data-close] {
  cursor: var(--cursor-link);
}

input,
textarea,
select,
[contenteditable="true"] {
  cursor: var(--cursor-text);
}
[aria-disabled="true"],
:disabled { cursor: var(--cursor-unavailable); }

/* Busy is reserved for view transitions; Working in Background is only used while media loads. */
body.is-transitioning,
body.is-transitioning * { cursor: var(--cursor-busy); }
.case-embed.is-loading,
.case-embed.is-loading *,
.player-frame-wrap.is-loading,
.player-frame-wrap.is-loading * { cursor: var(--cursor-background); }

/* Empty channel slots deliberately remain non-interactive, but still use the Wii pointer. */
.chan--void {
  cursor: var(--cursor-normal);
}
/* the empty slots on the console's shelf */
.chan--void {
  background: linear-gradient(180deg, #e7e8ea, #d7d9dc);
  box-shadow: inset 0 .3cqh 0 rgba(255, 255, 255, .7), 0 0 0 .16cqw rgba(150, 156, 162, .42);
}
.chan--void::after {
  content: "ct";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 3.4cqw; font-weight: 800;
  color: rgba(105, 112, 120, .1);
  text-shadow: 0 .18cqh 0 rgba(255, 255, 255, .7);
}
.chan--featured { overflow: hidden; box-shadow: 0 0 0 .24cqw #d9ad3c, 0 0 1.35cqw rgba(221, 174, 54, .58), 0 .55cqh 1.1cqh rgba(0, 0, 0, .16); }
.chan--featured::after { content: ""; position: absolute; inset: 0; z-index: 1; border: .22cqw solid rgba(255, 231, 153, .9); border-radius: inherit; pointer-events: none; }
.featured-badge { position: absolute; z-index: 3; top: .65rem; right: .65rem; padding: .27rem .55rem; border: 1px solid rgba(255, 235, 169, .86); border-radius: 99px; color: #fff8dd; background: linear-gradient(135deg, #b57a14, #e1ba4f); box-shadow: 0 .16rem .35rem rgba(0,0,0,.28); font-size: clamp(.57rem, .72vw, .75rem); font-weight: 900; letter-spacing: .07em; text-transform: uppercase; text-shadow: 0 1px 1px rgba(77,48,0,.45); }

/* --- channel faces (shared with the zoom clone) --- */
.face { position: absolute; inset: 0; }
.face--art { background: linear-gradient(168deg, var(--g1), var(--g2)); }
.face--art::after {              /* the console's channels are subtly striped too */
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .07) 0 2px, transparent 2px 4px);
}
.face--photo img {
  position: absolute; inset: 0;
  display: block;
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  -webkit-user-drag: none; user-select: none;
}
/* This animation has generous empty framing; a small tile-only crop lets the
   matchup interface fill its project pill without altering the hero asset. */
.face--photo[data-project="how2win-analyser"] img { transform: scale(1.16); }
.face--photo[data-project="cover-art"] img { transform: scale(1.12); }
.face--photo::before {           /* keeps the top label legible over art */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 46%;
  background: linear-gradient(rgba(0, 0, 0, .48), transparent);
  z-index: 1;
}
.chan:has(.face--hover-preview) { overflow: visible; }
.face--hover-preview {
  overflow: visible;
  border-radius: inherit;
}
.face--hover-preview::before { display: none; }
.face--hover-preview img { border-radius: inherit; }
.tile-hover-title {
  position: absolute;
  left: 50%; bottom: -2.5cqh;
  z-index: 5;
  width: max-content; max-width: 88%;
  padding: .48em 1em .55em;
  border: .13cqw solid rgba(138, 144, 149, .6);
  border-radius: 99em;
  background: linear-gradient(180deg, #fff, #eef0f1);
  box-shadow: 0 .38cqh .75cqh rgba(0, 0, 0, .2), inset 0 .12cqh .22cqh rgba(255, 255, 255, .9);
  color: #565c61;
  font-size: 1.5cqw; font-weight: 500; letter-spacing: .03em;
  line-height: 1; text-align: center; white-space: nowrap;
  transform: translate(-50%, -.55cqh) scale(.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease, transform .17s cubic-bezier(.2, .8, .25, 1);
}
.chan:hover .tile-hover-title,
.chan:focus-visible .tile-hover-title {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.face-label {
  position: absolute; top: 8%; left: 5%; right: 5%;
  z-index: 2;
  text-align: center;
  font-size: 2.05cqw;
  font-weight: 700;
  line-height: 1.12;
  color: #fff;
  text-shadow: 0 .18cqh .5cqh rgba(0, 0, 0, .45);
}
.face-icon {
  position: absolute; left: 50%; top: 60%;
  transform: translate(-50%, -50%);
  width: 5.2cqw; height: 5.2cqw;
  color: #fff;
  opacity: .95;
  filter: drop-shadow(0 .2cqh .45cqh rgba(0, 0, 0, .3));
}
.face-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.face-year {
  position: absolute; left: 0; right: 0; top: 58%;
  transform: translateY(-50%);
  text-align: center;
  font-size: 3cqw; font-weight: 800;
  color: rgba(255, 255, 255, .34);
}

/* =============== SUB-MENU TITLE STRIP =============== */
.strip {
  position: absolute; top: 4.6cqh; left: 8.6cqw; right: 8.6cqw; height: 6.4cqh;
  display: flex; align-items: center; justify-content: space-between; gap: 2cqw;
}
.strip-name {
  font-size: 3.1cqw; font-weight: 800; letter-spacing: .01em;
  color: var(--ink-dk);
}
.strip-name em { font-style: normal; color: var(--dot); }
.channel-home svg { display: none; }
.v-grid .channel-home { display: none; }

/* =============== PAGE ARROWS =============== */
.arw {
  position: absolute; top: 39cqh; transform: translateY(-50%);
  width: 3.1cqw; height: 7.9cqh;
  z-index: 4;
  transition: transform .14s ease, filter .14s ease;
  filter: drop-shadow(0 .3cqh .5cqh rgba(0, 0, 0, .22));
}
.arw svg { width: 100%; height: 100%; }
.arw path { fill: #a5dff5; stroke: #3fa9d6; stroke-width: 4; stroke-linejoin: round; }
.arw:hover path { fill: #c4ebfa; }
.arw--l { left: 2.6cqw; }
.arw--l:hover { transform: translateY(-50%) translateX(-.5cqw); }
.arw--r { right: 2.6cqw; }
.arw--r:hover { transform: translateY(-50%) translateX(.5cqw); }

/* =============== THE SHELF =============== */
.dock { position: absolute; left: 0; right: 0; bottom: 0; height: 30.6cqh; z-index: 5; }
.v-splash .dock { display: none; }
.dock-wave { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Wave to Mii -------------------------------------------------- */
.v-mii-creator #scr { display: none; }
.case--peg-mii { max-width: min(1120px, 92vw); }
.case--peg-mii .feature-nav { margin-bottom: clamp(1rem, 2.2vw, 1.55rem); }
.peg-mii-workspace { min-height: min(69vh, 720px); overflow: visible; }
.peg-mii-native-root { display: block; width: 100%; height: min(69vh, 720px); min-height: 580px; }

.orb {
  position: absolute; bottom: 9.26cqh;
  width: 7.8cqw; height: 7.8cqw;
  border-radius: 50%;
  padding: 0; border: 0; cursor: var(--cursor-link);
  background: linear-gradient(180deg, #fdfdfe, #cfd2d6);
  box-shadow:
    0 0 0 .21cqw #8ed3ec,
    0 .5cqh 1.1cqh rgba(0, 0, 0, .18),
    inset 0 .35cqh .7cqh rgba(255, 255, 255, .95);
  transition: box-shadow .15s ease, transform .15s ease;
}
.orb:hover {
  transform: scale(1.045);
  box-shadow:
    0 0 0 .26cqw var(--line),
    0 0 2.2cqh rgba(92, 196, 232, .7),
    0 .5cqh 1.1cqh rgba(0, 0, 0, .2),
    inset 0 .35cqh .7cqh rgba(255, 255, 255, .95);
}
.orb--l { left: 5.2cqw; }
.orb--r { right: 5.2cqw; }
.orb-face {
  position: absolute; inset: 8%;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(180deg, #f4f5f7, #dfe2e5);
  box-shadow: inset 0 0 0 .1cqw rgba(255, 255, 255, .9), inset 0 -.3cqh .6cqh rgba(0, 0, 0, .07);
}
.orb-person { width: 52%; height: 52%; fill: #9aa0a5; stroke: #9aa0a5; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.orb-env { width: 46%; fill: none; stroke: #9aa0a5; stroke-width: 3; stroke-linejoin: round; }
/* SD-card slot — doubles as the sound switch */
.sd {
  position: absolute; left: 18.5cqw; bottom: 8.8cqh;
  width: 4.2cqw; height: 8.3cqh;
  padding: 0; border: 0; background: none; cursor: var(--cursor-link);
  filter: drop-shadow(0 .25cqh .4cqh rgba(0, 0, 0, .18));
  transition: transform .15s ease;
}
.sd:hover { transform: translateY(-.5cqh); }
.sd svg { width: 100%; height: 100%; }
.sd-speaker { fill: #dff1fb; stroke: #4fb4dd; stroke-width: 3.2; stroke-linejoin: round; }
.sd-wave { fill: none; stroke: #4fb4dd; stroke-width: 3.2; stroke-linecap: round; }
.sd-off { stroke: #d2544a; stroke-width: 4.5; stroke-linecap: round; display: none; }
.sd.is-muted .sd-off { display: block; }
.sd.is-muted .sd-speaker { fill: #eceef0; stroke: #a9b0b6; }
.sd.is-muted .sd-wave { display: none; }

/* The matching shelf control on the opposite side of sound. */
.theme-toggle {
  position: absolute; right: 18.5cqw; bottom: 8.8cqh;
  width: 4.2cqw; height: 8.3cqh;
  padding: 0; border: 0; background: none; cursor: var(--cursor-link);
  filter: drop-shadow(0 .25cqh .4cqh rgba(0, 0, 0, .18));
  transition: transform .15s ease;
}
.theme-toggle:hover { transform: translateY(-.5cqh); }
.theme-toggle svg { width: 100%; height: 100%; }
.theme-sun { display: none; fill: none; stroke: #4fb4dd; stroke-width: 3.2; stroke-linecap: round; }
.theme-moon { fill: #dff1fb; stroke: #4fb4dd; stroke-width: 3.2; stroke-linejoin: round; }
html[data-theme="dark"] .theme-toggle .theme-moon,
html[data-theme="dark"] .feature-theme-btn .theme-moon { display: none; }
html[data-theme="dark"] .theme-toggle .theme-sun,
html[data-theme="dark"] .feature-theme-btn .theme-sun { display: block; }

/* --- the clock --- */
.clock {
  position: absolute; left: 50%; top: 2.2cqh;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none; user-select: none;
}
.clock-time { display: flex; align-items: flex-end; justify-content: center; gap: .55cqw; height: 8.4cqh; }
.clock-time .dg { height: 100%; width: auto; }
.clock-time .dg rect { fill: var(--lcd); }
.clock-time .cln { width: 1.1cqw; height: 100%; }
.clock-time .cln rect { fill: var(--lcd); }
.clock-time .cln.off { visibility: hidden; }
.clock-ap { font-size: 3.4cqh; font-weight: 500; color: var(--lcd); margin-left: .5cqw; padding-bottom: .4cqh; }
.clock-date {
  margin-top: 2.6cqh;
  font-size: 5.4cqh; font-weight: 500;
  color: #9ba1a6;
  letter-spacing: .01em;
}
.dock-menu {
  display: none;
  position: absolute;
  left: 50%; top: 8.4cqh;
  width: 17.5cqw; height: 6.6cqh;
  transform: translateX(-50%);
  font-size: 2.05cqw;
}
.dock-menu svg { width: 42%; height: 42%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.v-grid .clock { display: none; }
.v-grid .dock-menu { display: inline-flex; }

/* =============== CHANNEL SPLASH =============== */
.splash { position: absolute; inset: 0; }
.splash-title {
  position: absolute; top: 14cqh; left: 0; right: 0;
  text-align: center;
  font-size: 7.8cqw;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .005em;
  white-space: nowrap;
  color: color-mix(in srgb, var(--acc) 22%, #ffffff);
  -webkit-text-stroke: .55cqw color-mix(in srgb, var(--acc) 72%, #33454c);
  paint-order: stroke fill;
  text-shadow: 0 .9cqh 1.1cqh rgba(0, 0, 0, .22);
}
.splash-banner {
  position: absolute; top: 42cqh; height: 31cqh; left: 0; right: 0;
  display: flex;
  overflow: hidden;
  border-top: .2cqh solid rgba(120, 128, 134, .35);
  border-bottom: .5cqh solid rgba(90, 98, 104, .55);
  background: #eef0f1;
}
.splash-banner .bn { position: relative; flex: 1 1 0; min-width: 0; }
.splash-banner .bn.is-swapping { opacity: 0; }
.splash-banner .bn { transition: opacity .5s ease; }
.splash-banner .bn img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.splash-banner .bn--txt {
  display: grid; place-items: center;
  background: linear-gradient(168deg, var(--g1), var(--g2));
  color: #fff;
  font-size: 1.7cqw; font-weight: 700; text-align: center;
  padding: 0 1cqw;
  text-shadow: 0 .2cqh .4cqh rgba(0, 0, 0, .35);
}
.splash-banner::after {          /* the reference fades its crowd out at the top */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(rgba(255, 255, 255, .88), rgba(255, 255, 255, .12) 52%, transparent 78%);
  pointer-events: none;
}
.splash-btns {
  position: absolute; top: 77cqh; left: 0; right: 0;
  display: flex; justify-content: center; gap: 5cqw;
}
.splash-btns .btn { width: 29.6cqw; height: 13.5cqh; font-size: 3cqw; }
.splash-btns [data-home] { height: 11.5cqh; align-self: center; }

/* =============== BUTTONS =============== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28.4cqw; height: 7.4cqh;
  border: 0; border-radius: 99em;
  background: linear-gradient(180deg, #ffffff 0%, #f2f3f5 46%, #d9dcdf 100%);
  box-shadow:
    0 0 0 .21cqw #8ed3ec,
    0 .5cqh .9cqh rgba(0, 0, 0, .16),
    inset 0 .5cqh .6cqh rgba(255, 255, 255, .95);
  font-family: var(--font);
  font-size: 2.5cqw; font-weight: 700;
  color: #5d656b;
  cursor: var(--cursor-link);
  transition: box-shadow .15s ease, transform .12s ease;
}
.btn:hover {
  transform: translateY(-.4cqh);
  box-shadow:
    0 0 0 .26cqw var(--line),
    0 0 2cqh rgba(92, 196, 232, .6),
    0 .7cqh 1.2cqh rgba(0, 0, 0, .18),
    inset 0 .5cqh .6cqh rgba(255, 255, 255, .95);
}
.btn:active { transform: translateY(0); }
.dock-menu.btn { display: none; }
.v-grid .dock-menu.btn { display: inline-flex; width: 4.9cqw; height: 4.9cqw; min-width: 0; padding: 0; border-radius: 50%; font-size: 0; }
.v-menu .dock-menu.btn { display: none !important; }
.dock-menu.btn:hover { transform: translate(-50%, -.4cqh); }
.dock-menu.btn:active { transform: translate(-50%, 0); }
.v-menu .dock-menu.btn:hover { transform: translateY(-.25cqh); }
.v-menu .dock-menu.btn:active { transform: none; }

/* fixed-size variants for the document pages + overlays */
.btn--sm {
  width: auto; height: auto;
  padding: .5em 1.5em .58em;
  font-size: .95rem;
  box-shadow: 0 0 0 2px #8ed3ec, 0 3px 7px rgba(0, 0, 0, .14), inset 0 3px 5px rgba(255, 255, 255, .95);
}
.btn--sm:hover { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--line), 0 0 14px rgba(92, 196, 232, .5), 0 5px 10px rgba(0, 0, 0, .16), inset 0 3px 5px rgba(255, 255, 255, .95); }

/* =============== ZOOM TRANSITION =============== */
.zoomer {
  position: fixed; z-index: 300;
  border-radius: 1.56vw;
  overflow: hidden;
  box-shadow: 0 0 0 3px var(--line), 0 20px 60px rgba(0, 0, 0, .3);
}
.zoomer--media > img {
  position: absolute; inset: 0;
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
}
.zoomer--media { box-shadow: none; }
.zoomer--media::after {
  content: ""; position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(10, 16, 20, .76), rgba(10, 16, 20, .28) 62%, rgba(10, 16, 20, .08));
  animation: morph-overlay-in .58s ease-out both;
}
.zoomer--reverse::after { animation: morph-overlay-out .58s ease-out both; }
@keyframes morph-overlay-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes morph-overlay-out { from { opacity: 1; } to { opacity: 0; } }
.zoomer.fly {
  transition:
    left .58s cubic-bezier(.32, .72, .26, 1), top .58s cubic-bezier(.32, .72, .26, 1),
    width .58s cubic-bezier(.32, .72, .26, 1), height .58s cubic-bezier(.32, .72, .26, 1),
    border-radius .58s cubic-bezier(.32, .72, .26, 1),
    opacity .36s ease .1s, box-shadow .45s ease;
}
.zoomer.gone { opacity: 0; box-shadow: none; }

/* =============== CASE STUDY DOCUMENT =============== */
.doc { display: none; }
.v-case .doc {
  display: block;
  position: relative; z-index: 2;
  padding: clamp(1rem, 3vw, 2.4rem) clamp(1rem, 4vw, 3rem) 5rem;
}
.case { max-width: 900px; margin: 0 auto; }
.case-bar { display: flex; gap: .6rem; margin-bottom: 1.6rem; flex-wrap: wrap; }

.case-band {
  display: inline-block;
  padding: .3em 1.2em .38em;
  border-radius: 99em;
  background: linear-gradient(168deg, var(--g1), var(--g2));
  color: #fff;
  font-weight: 700; font-size: .82rem;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .16);
}
.case h1 {
  font-size: clamp(2.2rem, 6.5vw, 4rem);
  font-weight: 900; line-height: 1.03;
  color: #4a5257;
  margin: .4rem 0 .9rem;
}
.case-meta { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.3rem; }
.case-meta li {
  padding: .35em 1.1em .42em;
  border-radius: 99em;
  background: linear-gradient(180deg, #fff, #eef0f1);
  box-shadow: 0 0 0 2px rgba(146, 152, 158, .35), inset 0 2px 3px rgba(255, 255, 255, .9);
  font-size: .82rem; font-weight: 700; color: #5d656b;
}
.case-meta li span { color: #9aa0a5; margin-right: .5em; font-size: .84em; text-transform: uppercase; }
.case-context {
  font-size: clamp(1.08rem, 2.5vw, 1.4rem);
  font-weight: 700; color: #5a6268;
  max-width: 36em; margin-bottom: 1.9rem;
}
.case figure, .case-embed iframe {
  border-radius: 1.2rem; overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 4px #fff, 0 10px 30px rgba(0, 0, 0, .16);
}
.case figure img { display: block; width: 100%; height: auto; }
.case-cover { margin-bottom: 1.8rem; }
.case-cover img { max-height: 70vh; object-fit: cover; }
.case-body { max-width: 44em; }
.case-body p { margin-bottom: 1em; color: #61686e; }
.case-embed { margin: 1.5rem 0; }
.case-embed iframe { width: 100%; height: 152px; border: 0; display: block; }
.case-gallery {
  margin: 1.8rem 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46vw, 250px), 1fr));
  gap: 1rem;
}
.cover-gallery {
  display: flex;
  width: 100%; max-width: none;
  align-items: center; justify-content: center;
  gap: clamp(.35rem, 1.15vw, 1.15rem);
  padding: clamp(1.6rem, 3vw, 2.8rem) 0;
  overflow: visible;
}
.cover-gallery-card {
  --pull-x: 0px; --pull-y: 0px; --pull-scale: 1; --hover-scale: 1;
  position: relative; flex: 1 1 0; min-width: 0; aspect-ratio: 1; overflow: hidden;
  margin: 0 clamp(-.55rem, -.7vw, -.12rem);
  border: 0; border-radius: clamp(.75rem, 1.5vw, 1.15rem);
  padding: 0; background: #1d2125;
  box-shadow: 0 0 0 2px rgba(255,255,255,.88), 0 .7rem 1.3rem rgba(0,0,0,.2);
  cursor: var(--cursor-link);
  transform: translate(var(--pull-x), var(--pull-y)) scale(calc(var(--pull-scale) * var(--hover-scale))) rotate(var(--tilt));
  transition: transform .28s cubic-bezier(.2,.8,.25,1), box-shadow .22s ease, z-index 0s;
}
.cover-gallery-card:nth-child(3n + 1) { --tilt: -2.1deg; }
.cover-gallery-card:nth-child(3n + 2) { --tilt: 1.6deg; }
.cover-gallery-card:nth-child(3n) { --tilt: -.7deg; }
.cover-gallery-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cover-gallery-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(145deg, rgba(255,255,255,.18), transparent 38%, rgba(0,0,0,.13)); pointer-events: none; }
.cover-gallery-card:hover, .cover-gallery-card:focus-visible { --hover-scale: 1.12; z-index: 4; outline: none; box-shadow: 0 0 0 3px var(--line), 0 1.25rem 2.4rem rgba(0,0,0,.32); }
.case-credits { margin-top: 2.4rem; max-width: 44em; }
.case-credits h3, .ov h3 {
  font-size: .78rem; font-weight: 800; letter-spacing: .09em;
  text-transform: uppercase; color: #9aa0a5; margin-bottom: .8rem;
}
.credit {
  display: flex; justify-content: space-between; gap: 1.4rem;
  padding: .65rem .2rem;
  border-top: 2px solid rgba(146, 152, 158, .3);
  font-size: .93rem;
}
.credit span { color: #9aa0a5; font-weight: 500; }
.credit b { font-weight: 800; text-align: right; color: #5d656b; }
.case-links, .case-pn { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.7rem; }
.case-pn { justify-content: space-between; margin-top: 2.8rem; padding-top: 1.7rem; border-top: 2px solid rgba(146, 152, 158, .3); }
.project-quick-nav { position: fixed; z-index: 220; right: clamp(1rem, 3vw, 2.2rem); bottom: clamp(1rem, 3vw, 2.2rem); left: clamp(1rem, 3vw, 2.2rem); display: flex; justify-content: space-between; pointer-events: none; opacity: 0; transform: translateY(1rem); transition: opacity .2s ease, transform .2s ease; }
.project-quick-nav.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.project-quick-btn { display: grid; place-items: center; width: 4rem; height: 4rem; padding: 0; border: 2px solid rgba(134, 201, 225, .9); border-radius: 50%; color: #44545c; background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(221,231,235,.94)); box-shadow: 0 .45rem 1rem rgba(23,44,54,.22), inset 0 .18rem .34rem rgba(255,255,255,.98); transition: transform .15s ease, box-shadow .15s ease; cursor: var(--cursor-link); }
.project-quick-btn:hover { transform: translateY(-.16rem); color: #248cb6; box-shadow: 0 0 0 2px var(--line), 0 .55rem 1.1rem rgba(23,44,54,.24), inset 0 .18rem .34rem #fff; }
.project-quick-btn svg { width: 46%; height: 46%; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }

/* =============== FEATURE PROJECT PAGE =============== */
.case--feature { max-width: min(1120px, 92vw); padding-bottom: 1rem; }
.feature-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: clamp(1.4rem, 4vw, 2.5rem); }
.feature-nav-actions { display: flex; justify-content: flex-end; align-items: center; gap: .8rem; }
.feature-icon-btn {
  display: inline-grid; place-items: center;
  width: 3.35rem; height: 3.35rem;
  border: 0; border-radius: 50%;
  background: linear-gradient(180deg, #fff, #e1e4e7);
  box-shadow: 0 0 0 2px #8ed3ec, 0 .35rem .7rem rgba(0, 0, 0, .15), inset 0 .25rem .42rem rgba(255, 255, 255, .95);
  color: #667076;
  transition: transform .15s ease, box-shadow .15s ease;
}
.feature-icon-btn svg { width: 47%; height: 47%; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.feature-icon-btn:hover { transform: translateY(-.18rem); color: #328eba; box-shadow: 0 0 0 2px var(--line), 0 .5rem 1rem rgba(0, 0, 0, .17), inset 0 .25rem .42rem rgba(255, 255, 255, .95); }
.feature-banner {
  position: relative;
  aspect-ratio: 2.35 / 1;
  margin: 0;
  overflow: hidden;
  border-radius: clamp(1rem, 2.1vw, 1.7rem);
  background: #24292d;
  box-shadow: 0 0 0 4px #fff, 0 16px 38px rgba(0, 0, 0, .24);
}
.feature-banner--art { background: linear-gradient(148deg, var(--g1), var(--g2)); }
.feature-banner--art::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, rgba(255,255,255,.10) 0 2px, transparent 2px 4px); }
.feature-banner::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(10, 16, 20, .76), rgba(10, 16, 20, .28) 62%, rgba(10, 16, 20, .08));
}
/* A hero is always cropped into its frame, never stretched into it. */
.case .feature-banner > img {
  position: absolute; inset: 0;
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Cover Art's square source is intentionally pushed in rather than fitted. */
.case .feature-banner--cover-art > img { transform: scale(1.16); object-position: 52% 50%; }
.is-feature-morphing .feature-banner { visibility: hidden; }
.is-feature-reversing .chan.is-morph-target .face { visibility: hidden; }
.is-feature-morph-complete .feature-banner { animation: feature-frame-in .34s ease-out both; }
.is-feature-morph-complete .feature-banner h1 { animation: feature-copy-in .28s ease-out .1s both; }
.is-feature-morph-complete .feature-banner p { animation: feature-copy-in .24s ease-out .31s both; }
.is-music-posters-glitch .feature-details,
.is-music-posters-glitch .feature-extras,
.is-music-posters-glitch .feature-pn,
.is-music-posters-glitch .project-quick-nav { visibility: hidden; }
.is-music-posters-pop .feature-banner { animation: music-posters-pop .34s steps(2, end) both; }
@keyframes music-posters-pop {
  0% { transform: translate(0) scale(1); filter: hue-rotate(0deg) contrast(1); }
  23% { transform: translate(-.45rem, .18rem) scale(1.018); filter: hue-rotate(36deg) contrast(1.45); }
  47% { transform: translate(.35rem, -.14rem) scale(1.045); filter: hue-rotate(-28deg) contrast(1.25); }
  72% { transform: translate(-.16rem, .08rem) scale(.995); filter: hue-rotate(15deg) contrast(1.35); }
  100% { transform: translate(0) scale(1); filter: hue-rotate(0deg) contrast(1); }
}
@keyframes feature-frame-in {
  from { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0), 0 0 0 rgba(0, 0, 0, 0); }
  to { box-shadow: 0 0 0 4px #fff, 0 16px 38px rgba(0, 0, 0, .24); }
}
@keyframes feature-copy-in { from { opacity: 0; transform: translateY(.45rem); } to { opacity: 1; transform: translateY(0); } }
.feature-banner figcaption {
  position: absolute; z-index: 1;
  left: clamp(1.3rem, 4vw, 3.6rem); right: 1.3rem; bottom: clamp(1.3rem, 4vw, 3.3rem);
  color: #fff;
}
.feature-banner h1 { margin: 0; color: #fff; font-size: clamp(3rem, 8vw, 6.6rem); letter-spacing: -.055em; text-shadow: 0 .2rem .8rem rgba(0, 0, 0, .42); }
.feature-banner p { margin-top: .35rem; font-size: clamp(.85rem, 1.6vw, 1.05rem); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; text-shadow: 0 .1rem .4rem rgba(0, 0, 0, .45); }
.feature-play {
  position: absolute; right: clamp(1.1rem, 3vw, 2.5rem); bottom: clamp(1.1rem, 3vw, 2.5rem); z-index: 2;
  display: grid; place-items: center;
  width: clamp(3.6rem, 6.4vw, 4.8rem); height: clamp(3.2rem, 5.8vw, 4.2rem);
  border: 1px solid rgba(255, 255, 255, .92); border-radius: 1.25rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, .84), rgba(222, 232, 236, .6));
  color: #3b9ec7;
  box-shadow: 0 .3rem .9rem rgba(0, 0, 0, .25), inset 0 .18rem .32rem rgba(255, 255, 255, .92), inset 0 -.12rem .22rem rgba(56, 108, 128, .12);
  -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}
.feature-play svg { width: 40%; height: 40%; fill: currentColor; filter: drop-shadow(0 .08rem .08rem rgba(34, 97, 121, .2)); }
.feature-play:hover { transform: translateY(-.14rem); background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(211, 238, 248, .76)); box-shadow: 0 .48rem 1rem rgba(0, 0, 0, .28), inset 0 .18rem .32rem rgba(255, 255, 255, .96), inset 0 -.12rem .22rem rgba(56, 108, 128, .12); }
.feature-details { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(230px, .85fr); gap: clamp(1.8rem, 6vw, 5.5rem); align-items: start; margin-top: clamp(2rem, 4vw, 3.5rem); }
.feature-extras { margin-top: clamp(1.8rem, 4vw, 3.2rem); }
.feature-extras > .feature-details { margin-top: clamp(2.4rem, 5vw, 4.2rem); }
.feature-extras > .feature-details:first-child { margin-top: 0; }
.project-media { margin-top: clamp(2.4rem, 5vw, 4.2rem); }
.project-media:first-child { margin-top: 0; }
.project-media--player {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(220px, .75fr); gap: 1.2rem;
  align-items: center;
}
.project-media--player.project-media--flipped { grid-template-columns: minmax(220px, .75fr) minmax(0, 1.55fr); }
.media-frame {
  overflow: hidden; border-radius: 1.25rem; background: linear-gradient(145deg, #fff, #e6edef);
  box-shadow: 0 0 0 2px rgba(133, 149, 158, .34), inset 0 .18rem .35rem rgba(255,255,255,.95), 0 .55rem 1.25rem rgba(52,73,82,.12);
}
.media-frame { position: relative; min-height: 152px; }
.media-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.media-frame--spotify { min-height: 352px; }
.media-frame--spotify iframe { min-height: 352px; }
.media-frame--soundcloud { min-height: 450px; background: #121719; }
.media-frame--soundcloud iframe { min-height: 450px; }
.media-frame--youtube { aspect-ratio: 16 / 9; min-height: 0; background: #121719; }
.media-frame--image { aspect-ratio: 16 / 9; min-height: 0; padding: clamp(.65rem, 1.35vw, 1.15rem); background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(222,232,235,.84)); }
.media-frame--image img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: .38rem; }
.project-media--image-cover-art .media-frame--image,
.project-media--image-map-posters .media-frame--image { display: grid; place-items: center; }
.square-artwork {
  display: block; height: 100%; max-width: 100%; aspect-ratio: 1;
  padding: .28rem; overflow: hidden; border-radius: .38rem; background: #fff;
  box-sizing: border-box;
}
.square-artwork img {
  display: block; width: 100%; height: 100%; object-fit: contain;
  border-radius: .14rem;
}
/* Sorrento Sunset is a portrait print, so its border follows the print itself. */
.project-media--image-map-posters .square-artwork { aspect-ratio: 4 / 5; padding: 2px; }
.project-media--image-skills-capabilities .media-frame--image img,
.project-media--image-achievements .media-frame--image img,
.project-media--image-career-ambitions .media-frame--image img,
.project-media--image-experience .media-frame--image img { object-fit: cover; }
.project-media--image-local-footy-hub .media-frame--image { padding: clamp(.65rem, 1.35vw, 1.15rem); border: 1px solid rgba(99, 123, 132, .3); border-radius: .9rem; background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(222,232,235,.84)); box-shadow: inset 0 0 0 .2rem rgba(255,255,255,.48); }
.project-media--image-local-footy-hub .media-frame--image img { object-fit: contain; border-radius: .38rem; }
.project-media--image-match-analysis .media-frame--image { padding: clamp(.65rem, 1.35vw, 1.15rem); border: 1px solid rgba(99, 123, 132, .3); border-radius: .9rem; background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(222,232,235,.84)); box-shadow: inset 0 0 0 .2rem rgba(255,255,255,.48); }
.project-media--image-match-analysis .media-frame--image img { object-fit: contain; border-radius: .38rem; }
.project-media--image-genre-composition .media-frame--image { padding: clamp(.65rem, 1.35vw, 1.15rem); border: 1px solid rgba(99, 123, 132, .3); border-radius: .9rem; background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(222,232,235,.84)); box-shadow: inset 0 0 0 .2rem rgba(255,255,255,.48); }
.project-media--image-genre-composition .media-frame--image img { object-fit: contain; border-radius: .38rem; }
.project-media--image-tri6production .media-frame--image { padding: clamp(.65rem, 1.35vw, 1.15rem); border: 1px solid rgba(99, 123, 132, .3); border-radius: .9rem; background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(222,232,235,.84)); box-shadow: inset 0 0 0 .2rem rgba(255,255,255,.48); }
.project-media--image-tri6production .media-frame--image img { object-fit: contain; border-radius: .38rem; }
.project-media--image-buisness-assignments .media-frame--image { padding: clamp(.65rem, 1.35vw, 1.15rem); border: 1px solid rgba(99, 123, 132, .3); border-radius: .9rem; background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(222,232,235,.84)); box-shadow: inset 0 0 0 .2rem rgba(255,255,255,.48); }
.project-media--image-buisness-assignments .media-frame--image img { object-fit: contain; border-radius: .38rem; }
.project-media--experience { display: block; margin-top: clamp(2.4rem, 5vw, 5rem); }
.experience-card { overflow: hidden; border: 2px solid rgba(111, 181, 207, .64); border-radius: 1.25rem; background: linear-gradient(145deg, rgba(243,251,253,.96), rgba(220,236,241,.88)); box-shadow: inset 0 .16rem .45rem rgba(255,255,255,.95), 0 .45rem 1rem rgba(49,78,89,.12); }
.experience-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 1.05rem 1.25rem .9rem; border-bottom: 2px solid rgba(95,145,165,.38); }
.experience-heading h2 { margin: 0; color: #43555e; font-size: clamp(1.35rem, 2.1vw, 2rem); letter-spacing: -.045em; }
.experience-heading span { color: #5594ac; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.experience-timeline { padding: 0 1.25rem; }
.experience-item { position: relative; padding: 1rem 0 1.05rem 1.25rem; border-bottom: 2px solid rgba(95,145,165,.3); }
.experience-item:last-child { border-bottom: 0; }
.experience-item::before { content: ""; position: absolute; top: 1.5rem; left: 0; width: .58rem; height: .58rem; border-radius: 50%; background: #52b5dd; box-shadow: 0 0 0 3px rgba(255,255,255,.86), 0 0 0 5px rgba(82,181,221,.22); }
.experience-period { display: block; margin-bottom: .22rem; color: #5797af; font-size: .78rem; font-weight: 800; letter-spacing: .06em; }
.experience-item h3 { margin: 0 0 .45rem; color: #44545d; font-size: clamp(1rem, 1.45vw, 1.17rem); line-height: 1.2; }
.experience-item h3 i { color: #5fb7dc; font-style: normal; }
.experience-item ul { display: grid; gap: .2rem; margin: 0; padding: 0; list-style: none; }
.experience-item li { position: relative; padding-left: 1rem; color: #596970; font-size: .91rem; line-height: 1.38; }
.experience-item li::before { content: "•"; position: absolute; left: 0; color: #35addb; }
html[data-theme="dark"] .experience-card { border-color: rgba(76,161,191,.7); background: linear-gradient(145deg, #21323a, #17252b); box-shadow: inset 0 .12rem .35rem rgba(255,255,255,.06), 0 .45rem 1rem rgba(0,0,0,.28); }
html[data-theme="dark"] .experience-heading, html[data-theme="dark"] .experience-item { border-color: rgba(109,175,199,.25); }
html[data-theme="dark"] .experience-heading h2, html[data-theme="dark"] .experience-item h3 { color: #e4f0f4; }
html[data-theme="dark"] .experience-item li { color: #c2d4da; }
.media-placeholder { display: grid; width: 100%; height: 100%; place-items: center; color: rgba(255,255,255,.78); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; background: radial-gradient(circle at 50% 0%, rgba(91, 167, 193, .23), transparent 46%), repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 4px); }
.media-copy { position: relative; padding: clamp(.85rem, 2vw, 1.4rem) 0 clamp(.85rem, 2vw, 1.4rem) clamp(1.15rem, 2.6vw, 2rem); }
.media-copy::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: .27rem; border-radius: 99px; background: var(--acc); }
.project-media--spotify .media-copy::before { background: #4b5052; }
.project-media--player.project-media--flipped .media-frame { order: 2; }
.media-copy > p:last-child { max-width: 18ch; margin: 0; color: #59666d; font-size: clamp(1.12rem, 1.65vw, 1.42rem); font-weight: 700; line-height: 1.34; letter-spacing: -.015em; }
.story-card { padding: clamp(.2rem, 1vw, .8rem) 0; }
.story-card h2 { margin: 0 0 .8rem; color: #515b61; font-size: clamp(1.35rem, 2.5vw, 2rem); line-height: 1.1; }
.story-card p { max-width: 72rem; margin: 0; color: #626d73; font-size: 1rem; line-height: 1.7; }
.story-card p + p { margin-top: .9rem; }
.project-media--gallery .case-gallery:not(.cover-gallery) {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(5.6rem, 13vw, 10.5rem);
  gap: clamp(.55rem, 1.1vw, 1rem); padding: .35rem 0 .7rem;
}
.project-media--gallery .case-gallery:not(.cover-gallery) .project-gallery-card { aspect-ratio: auto; min-height: 0; }
.project-media--gallery .case-gallery:not(.cover-gallery) .project-gallery-card:nth-child(6n + 1) { grid-column: span 7; grid-row: span 2; transform: rotate(-.55deg); }
.project-media--gallery .case-gallery:not(.cover-gallery) .project-gallery-card:nth-child(6n + 2) { grid-column: span 5; transform: translateY(.35rem) rotate(.45deg); }
.project-media--gallery .case-gallery:not(.cover-gallery) .project-gallery-card:nth-child(6n + 3) { grid-column: span 5; transform: translateY(-.35rem) rotate(-.35deg); }
.project-media--gallery .case-gallery:not(.cover-gallery) .project-gallery-card:nth-child(6n + 4) { grid-column: span 4; transform: rotate(.42deg); }
.project-media--gallery .case-gallery:not(.cover-gallery) .project-gallery-card:nth-child(6n + 5) { grid-column: span 4; transform: translateY(.35rem) rotate(-.45deg); }
.project-media--gallery .case-gallery:not(.cover-gallery) .project-gallery-card:nth-child(6n) { grid-column: span 4; transform: rotate(.28deg); }
.project-media--gallery .case-gallery:not(.cover-gallery) .project-gallery-card:hover, .project-media--gallery .case-gallery:not(.cover-gallery) .project-gallery-card:focus-visible { transform: translateY(-.24rem) scale(1.025) rotate(0); }
.project-media .case-gallery { margin: 0; }
.project-gallery-card {
  position: relative; aspect-ratio: 1 / .78; overflow: hidden; padding: 0; border: 0; border-radius: 1rem;
  background: #1b2024; box-shadow: 0 0 0 2px rgba(255,255,255,.92), 0 .55rem 1.15rem rgba(0,0,0,.18);
  cursor: var(--cursor-link); transition: transform .2s ease, box-shadow .2s ease;
}
.project-gallery-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.project-gallery-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(145deg, rgba(255,255,255,.18), transparent 40%, rgba(0,0,0,.14)); pointer-events: none; }
.project-gallery-card:hover, .project-gallery-card:focus-visible { outline: none; z-index: 2; transform: translateY(-.24rem) scale(1.025); box-shadow: 0 0 0 3px var(--line), 0 1rem 1.7rem rgba(0,0,0,.27); }
.project-gallery-card--more::after { background: rgba(12, 18, 22, .57); }
.gallery-more-count { position: absolute; z-index: 2; right: .85rem; bottom: .65rem; color: #fff; font-size: clamp(1.4rem, 3.5vw, 2.35rem); font-weight: 900; line-height: 1; text-shadow: 0 .14rem .4rem rgba(0,0,0,.45); }
.feature-story h2 {
  margin-bottom: .8rem;
  color: #6b7378;
  font-size: .8rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase;
}
.feature-lead { margin-bottom: 1.2rem; color: #4e575d; font-size: clamp(1.25rem, 2.4vw, 1.75rem); font-weight: 800; line-height: 1.27; }
.feature-story > p:not(.feature-lead) { margin-bottom: 1rem; color: #626a70; font-size: 1.02rem; line-height: 1.65; }
.feature-info { border-radius: 1.35rem; overflow: hidden; background: linear-gradient(180deg, #fff, #e9edef); box-shadow: 0 0 0 2px rgba(140, 151, 158, .38), inset 0 3px 5px rgba(255, 255, 255, .9); }
.feature-fact { padding: 1rem 1.15rem; border-bottom: 1px solid rgba(136, 145, 151, .28); }
.feature-fact:last-child { border: 0; }
.feature-fact span { display: block; margin-bottom: .18rem; color: #99a1a7; font-size: .73rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.feature-fact b { color: #596167; font-size: .95rem; line-height: 1.35; }
.feature-pn { margin-top: 2.5rem; }

/* =============== OVERLAYS =============== */
.ov {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(60, 68, 74, .4);
  -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
  display: grid; place-items: center; padding: 1rem;
  opacity: 0; visibility: hidden;
  transition: opacity .26s ease, visibility 0s .26s;
}
.ov.open { opacity: 1; visibility: visible; transition: opacity .26s ease; }
.ov-panel {
  width: min(94vw, 640px); max-height: 86vh; overflow-y: auto;
  background: linear-gradient(180deg, #fff, #eff1f2);
  border-radius: 1.8rem;
  box-shadow: 0 0 0 4px #a9dff2, 0 26px 70px rgba(0, 0, 0, .32);
  padding: clamp(1.2rem, 4vw, 2.2rem);
  transform: translateY(24px) scale(.98);
  transition: transform .3s cubic-bezier(.3, .7, .25, 1);
}
.ov.open .ov-panel { transform: none; }
.ov:has(#about-body) .ov-panel {
  width: min(92vw, 720px);
  max-height: none;
  overflow: hidden;
}
.ov--player { z-index: 600; }
.ov--player { background: rgba(10, 14, 17, .84); -webkit-backdrop-filter: blur(13px); backdrop-filter: blur(13px); }
.ov--image { z-index: 600; background: rgba(10, 14, 17, .88); -webkit-backdrop-filter: blur(13px); backdrop-filter: blur(13px); }
.player-panel { width: min(92vw, calc(82vh * 16 / 9), 1080px); max-height: none; padding: 0; overflow: visible; background: #101315; }
.player-frame-wrap { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 1rem; background: #101315; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .12); }
.player-frame-wrap iframe { display: block; width: 100%; height: 100%; border: 0; }
body.v-case:has(#ov-player.open), body.v-case:has(#ov-image.open) { overflow: hidden; }
.image-panel { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) clamp(15rem, 22vw, 23rem); width: min(96vw, 1500px); max-height: 91vh; padding: .45rem; overflow: visible; background: #171c20; box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 1.5rem 4rem rgba(0,0,0,.45); }
.image-stage { position: relative; display: grid; place-items: center; min-width: 0; min-height: min(80vh, 820px); overflow: hidden; border-radius: 1.1rem; background: #0e1215; }
.image-panel img { display: block; width: 100%; height: min(80vh, 820px); object-fit: contain; border-radius: 1.1rem; }
.image-context { display: flex; flex-direction: column; justify-content: center; gap: .7rem; min-width: 0; padding: clamp(1.1rem, 2.4vw, 2.15rem); color: #eaf2f5; background: linear-gradient(145deg, #303a40, #20272b); border-left: 3px solid var(--line); }
.image-context span { color: #9fc9d8; font-size: .68rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.image-context p { margin: 0; font-size: clamp(1rem, 1.45vw, 1.26rem); font-weight: 700; line-height: 1.42; letter-spacing: -.01em; }
.image-close { position: absolute; z-index: 2; top: -.85rem; right: -.85rem; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border: 2px solid #fff; border-radius: 50%; color: #fff; background: #59636a; box-shadow: 0 .25rem .7rem rgba(0,0,0,.3); font-size: 1.55rem; line-height: 1; cursor: var(--cursor-link); }
.image-nav { position: absolute; z-index: 2; top: 50%; display: grid; place-items: center; width: 3rem; height: 3rem; padding: 0; border: 2px solid rgba(255,255,255,.92); border-radius: 50%; color: #445259; background: rgba(255,255,255,.9); box-shadow: 0 .3rem .8rem rgba(0,0,0,.28), inset 0 .15rem .3rem rgba(255,255,255,.95); font-size: 1.55rem; font-weight: 900; line-height: 1; cursor: var(--cursor-link); transform: translateY(-50%); }
.image-nav:hover { color: #258eb9; box-shadow: 0 0 0 3px var(--line), 0 .35rem .9rem rgba(0,0,0,.3), inset 0 .15rem .3rem rgba(255,255,255,.95); }
.image-nav--prev { left: 1rem; }.image-nav--next { right: 1rem; }
.image-count { position: absolute; z-index: 2; bottom: -.95rem; left: 50%; padding: .28rem .65rem; border-radius: 99px; color: #fff; background: rgba(19,26,30,.78); font-size: .76rem; font-weight: 900; transform: translateX(-50%); }
.ov-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.ov-title { font-size: 1.35rem; font-weight: 800; color: #4a5257; }
.ov h3 { margin-top: 1.7rem; }
.ab-portrait {
  width: min(46%, 220px); float: right; margin: 0 0 .9rem 1.1rem;
  border-radius: 1.2rem; overflow: hidden;
  box-shadow: 0 0 0 4px #fff, 0 8px 22px rgba(0, 0, 0, .18);
}
.ab-portrait img { display: block; width: 100%; height: auto; }
.ab-lead { font-weight: 800; font-size: 1.14rem; color: #4f575c; margin-bottom: .7rem; }
.ab-p { color: #61686e; margin-bottom: .7rem; font-size: .96rem; }
.ab-mini { display: grid; grid-template-columns: minmax(13rem, 220px) minmax(0, 1fr); gap: 0 1.5rem; align-items: center; }
.ab-mini .ab-portrait { width: 100%; float: none; margin: 0; }
.ab-copy { min-width: 0; }
.ab-mini .ab-p:last-child { margin-bottom: 0; }
.ab-more-wrap { grid-column: 1 / -1; display: flex; justify-content: center; margin-top: 1.35rem; padding-top: 1.15rem; border-top: 2px solid rgba(146, 152, 158, .22); }
.ab-more { min-width: 9.5rem; }
.ab-xp { padding: .75rem 0; border-top: 2px solid rgba(146, 152, 158, .28); clear: both; }
.ab-xp span { font-size: .78rem; font-weight: 700; color: #9aa0a5; }
.ab-xp b { display: block; font-weight: 800; color: #5d656b; margin: .1rem 0 .3rem; }
.ab-xp ul { list-style: none; }
.ab-xp li { font-size: .87rem; color: #61686e; padding-left: 1.05em; position: relative; }
.ab-xp li::before { content: "•"; position: absolute; left: 0; color: var(--line); }
.ab-tools { display: flex; flex-wrap: wrap; gap: .45rem; }
.tag {
  padding: .38em 1.05em .45em; border-radius: 99em;
  background: linear-gradient(180deg, #fff, #eef0f1);
  box-shadow: 0 0 0 2px rgba(146, 152, 158, .34), inset 0 2px 3px rgba(255, 255, 255, .9);
  font-size: .82rem; font-weight: 700; color: #5d656b;
}
a.tag:hover { box-shadow: 0 0 0 2px var(--line), inset 0 2px 3px rgba(255, 255, 255, .9); }
.contact-intro { margin: .1rem 0 1.1rem; color: #5a676e; font-size: 1rem; font-weight: 700; line-height: 1.45; }
.contact-email { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .55rem; align-items: stretch; margin-bottom: 1.35rem; }
.contact-email-link, .contact-copy, .contact-social { border: 0; color: #536068; background: linear-gradient(180deg, #fff, #e9eef1); box-shadow: 0 0 0 2px rgba(111, 198, 230, .7), inset 0 2px 3px rgba(255,255,255,.95), 0 .25rem .45rem rgba(53,75,86,.12); }
.contact-email-link { display: flex; align-items: center; justify-content: center; gap: .6rem; min-width: 0; padding: .85rem .8rem; border-radius: 1rem; font-size: clamp(.78rem, 1.3vw, 1rem); font-weight: 800; text-align: center; }
.contact-email-link svg { flex: 0 0 auto; width: 1.3rem; height: 1.3rem; fill: none; stroke: #469fca; stroke-width: 1.8; stroke-linejoin: round; }
.contact-email-link span { overflow-wrap: anywhere; }
.contact-copy { min-width: 4.55rem; padding: 0 .9rem; border-radius: 1rem; font: inherit; font-size: .82rem; font-weight: 800; cursor: pointer; }
.contact-email-link:hover, .contact-copy:hover, .contact-social:hover { color: #237fa9; box-shadow: 0 0 0 2px #41b4e4, inset 0 2px 3px #fff, 0 .3rem .7rem rgba(42,151,193,.2); transform: translateY(-1px); }
.contact-social-label { margin: 0 0 .75rem; color: #7b8a91; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.contact-socials { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .65rem; }
.contact-social { position: relative; display: grid; place-items: center; min-width: 0; aspect-ratio: 1; border-radius: 50%; transition: .18s ease; }
.contact-social svg { width: 1.55rem; height: 1.55rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-social-music-note { position: absolute; right: -.22rem; bottom: -.22rem; display: grid; place-items: center; width: 1.15rem; height: 1.15rem; border-radius: 50%; color: #fff; background: #3aaeda; box-shadow: 0 0 0 2px #f3f8fa; font-family: var(--font); font-size: .86rem; font-style: normal; font-weight: 900; line-height: 1; }
.contact-social > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html[data-theme="dark"] .contact-intro { color: #d2e1e6; }
html[data-theme="dark"] .contact-social-label { color: #99b4bf; }
html[data-theme="dark"] .contact-email-link, html[data-theme="dark"] .contact-copy, html[data-theme="dark"] .contact-social { color: #dceef4; background: linear-gradient(180deg, #2b3b43, #18252b); box-shadow: 0 0 0 2px rgba(82,167,199,.72), inset 0 1px 2px rgba(255,255,255,.12), 0 .25rem .45rem rgba(0,0,0,.28); }

/* =============== NIGHT CHANNEL =============== */
.feature-theme-btn .theme-moon { fill: #dff1fb; stroke: #4fb4dd; stroke-width: 3.2; stroke-linejoin: round; }
.feature-theme-btn .theme-sun { fill: none; stroke: #4fb4dd; stroke-width: 3.2; stroke-linecap: round; }
html[data-theme="dark"] {
  color-scheme: dark;
  --line: #72d8f3;
  --line-dk: #52bddb;
  --ink: #c4d2d7;
  --ink-dk: #edf7fa;
  --lcd: #a9c5cf;
}
html[data-theme="dark"] body {
  color: var(--ink);
  background:
    radial-gradient(ellipse 120% 90% at 50% 36%, rgba(72, 100, 111, .30), rgba(16, 23, 27, 0) 70%),
    repeating-linear-gradient(180deg, #1e272c 0 2px, #141c20 2px 4px);
}
html[data-theme="dark"] .dock-wave { filter: brightness(.42) saturate(.88); }
html[data-theme="dark"] .chan {
  background: #243036;
  box-shadow: 0 0 0 .16cqw rgba(155, 185, 196, .42), 0 .55cqh 1.1cqh rgba(0, 0, 0, .42);
}
html[data-theme="dark"] .chan--void {
  background: linear-gradient(180deg, #2c373d, #202a2f);
  box-shadow: inset 0 .3cqh 0 rgba(255, 255, 255, .07), 0 0 0 .16cqw rgba(155, 185, 196, .26);
}
html[data-theme="dark"] .chan--void::after { color: rgba(227, 243, 248, .1); text-shadow: none; }
html[data-theme="dark"] .strip-name { color: #ebf5f8; }
html[data-theme="dark"] .channel-intro {
  color: #cbdadf;
  border-color: rgba(126, 200, 225, .45);
  background: linear-gradient(145deg, rgba(47, 63, 70, .96), rgba(29, 40, 46, .96));
  box-shadow: inset 0 .3cqh .5cqh rgba(255, 255, 255, .06), 0 .45cqh .85cqh rgba(0, 0, 0, .32);
}
html[data-theme="dark"] .channel-intro h1 { color: #f0f9fb; }
html[data-theme="dark"] .channel-intro p { color: #c7d7dc; }
html[data-theme="dark"] .tile-hover-title,
html[data-theme="dark"] .btn,
html[data-theme="dark"] .case-meta li,
html[data-theme="dark"] .tag {
  color: #e5f1f4;
  background: linear-gradient(180deg, #3b4b52, #222d32);
  box-shadow: 0 0 0 2px rgba(144, 207, 228, .48), 0 .3rem .7rem rgba(0, 0, 0, .27), inset 0 .16rem .3rem rgba(255, 255, 255, .10);
}
html[data-theme="dark"] .case-meta li span { color: #9fb8c1; }
html[data-theme="dark"] .orb {
  background: linear-gradient(180deg, #3d4c53, #222b30);
  box-shadow: 0 0 0 .21cqw #69cbe9, 0 .5cqh 1.1cqh rgba(0, 0, 0, .34), inset 0 .35cqh .7cqh rgba(255, 255, 255, .10);
}
html[data-theme="dark"] .orb-face { background: linear-gradient(180deg, #35434a, #252f34); box-shadow: inset 0 0 0 .1cqw rgba(255,255,255,.10), inset 0 -.3cqh .6cqh rgba(0,0,0,.18); }
html[data-theme="dark"] .orb-person { fill: #bbcbd0; stroke: #bbcbd0; }
html[data-theme="dark"] .orb-env { stroke: #bbcbd0; }
html[data-theme="dark"] .sd-speaker,
html[data-theme="dark"] .theme-moon { fill: #bbdeea; }
html[data-theme="dark"] .clock-date { color: #bbcad0; }
html[data-theme="dark"] .feature-icon-btn {
  color: #dcebef;
  background: linear-gradient(180deg, #3a4a51, #222b30);
  box-shadow: 0 0 0 2px #6ecfeb, 0 .35rem .7rem rgba(0,0,0,.32), inset 0 .25rem .42rem rgba(255,255,255,.10);
}
html[data-theme="dark"] .feature-theme-btn .theme-moon { fill: #bbdeea; stroke: #5cc9eb; }
html[data-theme="dark"] .feature-theme-btn .theme-sun { fill: none; stroke: #8fe2f8; }
html[data-theme="dark"] .feature-icon-btn:hover { color: #9ee9fb; }
html[data-theme="dark"] .splash-title { color: color-mix(in srgb, var(--acc) 46%, #f2fbfd); }
html[data-theme="dark"] .splash-banner { border-color: rgba(152, 199, 214, .36); background: #202a2f; }
html[data-theme="dark"] .splash-banner::after { background: linear-gradient(rgba(19, 27, 31, .82), rgba(19, 27, 31, .14) 52%, transparent 78%); }

html[data-theme="dark"] .case h1,
html[data-theme="dark"] .feature-lead,
html[data-theme="dark"] .story-card h2,
html[data-theme="dark"] .ov-title,
html[data-theme="dark"] .ab-lead { color: #edf7fa; }
html[data-theme="dark"] .case-context,
html[data-theme="dark"] .case-body p,
html[data-theme="dark"] .feature-story > p:not(.feature-lead),
html[data-theme="dark"] .story-card p,
html[data-theme="dark"] .media-copy > p:last-child,
html[data-theme="dark"] .ab-p,
html[data-theme="dark"] .ab-xp li { color: #c3d3d8; }
html[data-theme="dark"] .case figure,
html[data-theme="dark"] .media-frame,
html[data-theme="dark"] .feature-info {
  background: linear-gradient(145deg, #2b393f, #1c262b);
  box-shadow: 0 0 0 2px rgba(167, 213, 228, .34), inset 0 .18rem .35rem rgba(255,255,255,.07), 0 .55rem 1.25rem rgba(0,0,0,.26);
}
html[data-theme="dark"] .feature-fact { border-color: rgba(166, 208, 220, .18); }
html[data-theme="dark"] .feature-fact span,
html[data-theme="dark"] .ab-xp span { color: #9dbbc5; }
html[data-theme="dark"] .feature-fact b,
html[data-theme="dark"] .ab-xp b { color: #e1eef2; }
html[data-theme="dark"] .project-media--image .media-frame { background: #202a2f; }
html[data-theme="dark"] .project-media--image-local-footy-hub .media-frame--image,
html[data-theme="dark"] .project-media--image-match-analysis .media-frame--image,
html[data-theme="dark"] .project-media--image-genre-composition .media-frame--image,
html[data-theme="dark"] .project-media--image-tri6production .media-frame--image,
html[data-theme="dark"] .project-media--image-buisness-assignments .media-frame--image { background: linear-gradient(145deg, #33434a, #202a2f); border-color: rgba(135, 201, 223, .36); }
html[data-theme="dark"] .project-gallery-card { box-shadow: 0 0 0 2px rgba(190, 225, 235, .42), 0 .55rem 1.15rem rgba(0,0,0,.36); }
html[data-theme="dark"] .case-pn { border-color: rgba(157, 204, 218, .28); }
html[data-theme="dark"] .project-quick-btn { color: #dcebef; background: linear-gradient(180deg, #3a4a51, #222b30); border-color: rgba(119, 203, 232, .7); box-shadow: 0 .45rem 1rem rgba(0,0,0,.3), inset 0 .15rem .3rem rgba(255,255,255,.08); }

html[data-theme="dark"] .ov { background: rgba(3, 8, 10, .68); }
html[data-theme="dark"] .ov-panel { color: #d4e3e7; background: linear-gradient(180deg, #2d3a40, #1b2429); box-shadow: 0 0 0 4px #70d6f1, 0 26px 70px rgba(0,0,0,.56); }
html[data-theme="dark"] .ab-xp { border-color: rgba(165, 207, 219, .2); }
html[data-theme="dark"] .ab-more-wrap { border-color: rgba(165, 207, 219, .2); }
html[data-theme="dark"] .ab-portrait { box-shadow: 0 0 0 4px #35464d, 0 8px 22px rgba(0,0,0,.34); }
html[data-theme="dark"] .image-nav { color: #dbeef3; background: rgba(44, 57, 64, .96); border-color: rgba(188,228,239,.85); }
html[data-theme="dark"] .image-close { background: #35454c; }

html[data-theme="dark"] .dock::before { background: linear-gradient(180deg, #28343a, #1b2429); }


/* =============== PHONE =============== */
@media (max-width: 720px) {
  /* A phone is a purpose-built single-column console view, never a squeezed desktop grid. */
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  html, body, .screen, .scr { overflow-x: clip; }
  .screen { width: 100vw; height: 100svh; min-height: 100dvh; }
  button, a, [role="button"] { touch-action: manipulation; }

  .grid {
    top: 3cqh; height: auto; bottom: 20cqh;
    left: 4cqw; right: 4cqw;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: none;
    grid-auto-rows: min-content;
    gap: 3cqw;
    padding: .5rem;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-x: none;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .grid::-webkit-scrollbar { display: none; }
  /* Home tiles never need the desktop hover-label overflow on a touch screen. */
  .v-menu .chan:has(.face--hover-preview), .v-menu .face--hover-preview { overflow: hidden; }
  .grid--sub { top: 9cqh; }
  /* Channel projects form a compact two-column grid: no carousel, arrows or sideways scroll. */
  .v-grid .grid--sub {
    top: clamp(4.9rem, 15vw, 5.8rem);
    /* The scroll canvas continues below the shelf; the dock simply floats above it. */
    bottom: 0;
    height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: clamp(7.25rem, 31vw, 9rem);
    gap: clamp(.75rem, 3.2vw, 1rem);
    padding: .25rem .2rem calc(14cqh + 1.5rem);
    scroll-padding-block: .35rem calc(14cqh + 1rem);
    overflow-x: hidden;
    overscroll-behavior-x: none;
    scrollbar-width: none;
  }
  .v-grid .grid--sub::-webkit-scrollbar { display: none; }
  .v-grid .grid--channel-intro { display: block; }
  .channel-project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: clamp(7.25rem, 31vw, 9rem); gap: clamp(.75rem, 3.2vw, 1rem); }
  .channel-intro { display: block; min-width: 0; margin-top: clamp(.75rem, 3.2vw, 1rem); padding: 1.2rem; border-radius: 1.05rem; }
  .v-grid--gameface .channel-project-grid, .v-grid--gameface .channel-intro { grid-column: auto; }
  .channel-intro h1 { font-size: clamp(1.55rem, 6.8vw, 2.3rem); line-height: 1.02; }.channel-intro p { max-width: none; font-size: .94rem; line-height: 1.5; }
  .chan { aspect-ratio: 1.83; border-radius: 3.4cqw; }
  .v-grid .grid--sub .chan { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 1.05rem; }
  .chan--void { display: none; }
  .chan--featured::after { border-width: 2px; }
  .featured-badge { top: .45rem; right: .45rem; padding: .2rem .42rem; font-size: .58rem; }
  .v-grid .face-label { top: 8%; left: .45rem; right: .45rem; font-size: clamp(1.02rem, 4.8vw, 1.42rem); text-align: center; line-height: 1.08; text-wrap: balance; }
  .v-grid .face--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 15, 20, .08), rgba(5, 15, 20, .5)); pointer-events: none; }
  .v-grid .face-label { z-index: 1; }
  .face-label { font-size: clamp(1rem, 4.4cqw, 1.28rem); top: 8%; }
  /* Touch screens have no hover state; titles remain directly on tiles. */
  .tile-hover-title { display: none; }
  .face-icon { width: 12cqw; height: 12cqw; }
  .face-year { font-size: 7cqw; }

  .v-grid .strip { top: max(.7rem, env(safe-area-inset-top)); left: 1rem; right: 1rem; height: clamp(3.4rem, 13vw, 4.35rem); gap: .65rem; }
  .v-grid .strip-name { min-width: 0; max-width: calc(100% - 4.1rem); overflow: hidden; font-size: clamp(1.48rem, 7vw, 2.05rem); line-height: 1; white-space: nowrap; text-overflow: ellipsis; letter-spacing: -.045em; }
  .strip { top: 2.5cqh; left: 4cqw; right: 4cqw; height: 5.5cqh; }
  .strip-name { font-size: 6.4cqw; }

  .dock { height: 20cqh; padding-bottom: env(safe-area-inset-bottom); }
  .dock-wave { display: none; }
  .dock::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, #eceef0, #dcdee1);
    border-top: 2px solid var(--line);
  }
  .orb { width: max(3.1rem, 16cqw); height: max(3.1rem, 16cqw); bottom: max(1.4cqh, env(safe-area-inset-bottom)); }
  .orb--l { left: 5cqw; }
  .orb--r { right: 5cqw; }
  .sd, .theme-toggle { display: none; }
  .clock { top: 3.2cqh; }
  .clock-time { height: 6cqh; gap: 1.2cqw; }
  .clock-time .cln { width: 2.4cqw; }
  .clock-ap { font-size: 2.6cqh; margin-left: 1.2cqw; }
  .clock-date { margin-top: 1.4cqh; font-size: 3.4cqh; }
  .dock-menu { top: 7cqh; width: 38cqw; height: 6.5cqh; font-size: 4cqw; }
  /* The home screen keeps its clock, but uses the same compact curved shelf controls. */
  .v-menu .dock { height: 18.5cqh; padding-bottom: env(safe-area-inset-bottom); }
  /* The home tiles keep scrolling underneath the shelf instead of ending at a hard line. */
  .v-menu .grid { bottom: 0; padding-bottom: calc(18.5cqh + 1rem); scroll-padding-bottom: calc(18.5cqh + 1rem); }
  .v-menu .dock::before { display: none; }
  .v-menu .dock-wave { display: block; }
  .v-menu .dock .orb { bottom: max(2.05cqh, calc(env(safe-area-inset-bottom) + .3rem)); width: max(3.55rem, 16cqw); height: max(3.55rem, 16cqw); box-shadow: 0 0 0 2px #8ed3ec, 0 .3rem .7rem rgba(40, 57, 65, .2), inset 0 .25rem .55rem rgba(255, 255, 255, .95); }
  .v-menu .dock .orb--l { left: 4cqw; }
  .v-menu .dock .orb--r { right: 4cqw; }
  .v-menu .dock .sd, .v-menu .dock .theme-toggle { display: block; bottom: max(3.6cqh, calc(env(safe-area-inset-bottom) + .85rem)); width: 2.45rem; height: 2.45rem; }
  .v-menu .dock .sd { left: 23.5%; }
  .v-menu .dock .theme-toggle { right: 23.5%; }
  .v-menu .dock .sd:hover, .v-menu .dock .theme-toggle:hover { transform: translateY(-.15rem); }
  .v-menu .dock .clock { top: 8.6cqh; }
  .v-menu .dock .clock-time { height: 4.5cqh; gap: .7cqw; }
  .v-menu .dock .clock-time .cln { width: 1.7cqw; }
  .v-menu .dock .clock-ap { font-size: 2.1cqh; margin-left: .5cqw; padding-bottom: .2cqh; }
  .v-menu .dock .clock-date { margin-top: .55cqh; font-size: 2.65cqh; }
  /* Mobile channels use a compact, app-like Wii dock. */
  .v-grid .dock { position: absolute; inset: auto 0 0; height: 14cqh; padding-bottom: env(safe-area-inset-bottom); pointer-events: auto; z-index: 5; }
  .v-grid .dock::before { display: none; }
  .v-grid .dock-wave { display: block; }
  .v-grid .dock .orb { position: absolute; bottom: max(.85cqh, env(safe-area-inset-bottom)); width: max(2.8rem, 12.5cqw); height: max(2.8rem, 12.5cqw); box-shadow: 0 0 0 2px #8ed3ec, 0 .3rem .7rem rgba(40, 57, 65, .2), inset 0 .25rem .55rem rgba(255, 255, 255, .95); }
  .v-grid .dock .orb--l { left: 4cqw; }
  .v-grid .dock .orb--r { right: 4cqw; }
  .v-grid .dock .sd, .v-grid .dock .theme-toggle { display: block; bottom: max(1.8cqh, calc(env(safe-area-inset-bottom) + .4rem)); width: 2.3rem; height: 2.3rem; }
  .v-grid .dock .sd { left: 25%; }
  .v-grid .dock .theme-toggle { right: 25%; }
  .v-grid .dock .dock-menu.btn { display: inline-flex !important; top: auto; bottom: max(.75cqh, env(safe-area-inset-bottom)); width: max(2.9rem, 13cqw); height: max(2.9rem, 13cqw); }
  .v-grid .dock .sd:hover, .v-grid .dock .theme-toggle:hover { transform: translateY(-.15rem); }

  .arw { top: auto; bottom: 21.5cqh; transform: none; width: 7cqw; height: 5cqh; }
  .v-grid .arw { display: none; }
  .arw--l { left: 4cqw; }
  .arw--r { right: 4cqw; }
  .arw--l:hover, .arw--r:hover { transform: none; }

  .splash-title { font-size: 13.2cqw; top: 8cqh; white-space: normal; -webkit-text-stroke-width: 1.18cqw; }
  .splash-banner { top: 34cqh; height: 26cqh; }
  .splash-banner .bn--txt { font-size: 3.2cqw; }
  /* Start is the primary action, so it sits above Home on every channel splash. */
  .splash-btns { top: 64cqh; flex-direction: column-reverse; align-items: center; gap: 1.6cqh; }
  .btn { width: min(62cqw, 17rem); height: max(3.25rem, 7.4cqh); font-size: clamp(1rem, 4.3cqw, 1.2rem); }
  .splash-btns .btn { width: min(65cqw, 18rem); min-width: min(65cqw, 18rem); height: max(4.5rem, 10.5cqh); font-size: clamp(1.3rem, 5.8cqw, 1.62rem); }
  .splash-btns [data-home] { height: max(3.85rem, 9cqh); }
  .ab-portrait { float: none; width: 62%; margin: 0 auto .9rem; }
  .ov:has(#about-body) { align-items: center; padding: max(.8rem, env(safe-area-inset-top)) 1rem max(.8rem, env(safe-area-inset-bottom)); }
  .ov:has(#about-body) .ov-panel { width: min(100%, 31rem); padding: 1.1rem; border-radius: 1.45rem; }
  .ab-mini { grid-template-columns: 1fr; gap: 0; }
  .ab-mini .ab-portrait { width: min(42vw, 10rem); margin: 0 auto .85rem; }
  .ab-mini .ab-lead { font-size: 1.03rem; line-height: 1.35; }
  .ab-mini .ab-p { font-size: .9rem; line-height: 1.45; }
  .ab-more-wrap { margin-top: 1rem; padding-top: .9rem; }
  .case-pn { flex-direction: column; align-items: flex-start; gap: .55rem; margin-top: 2.15rem; padding-top: 1.15rem; }
  .case-pn .btn { width: auto; min-width: 0; max-width: 100%; height: 2.9rem; padding: 0 1.05rem; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .project-quick-nav { right: 1rem; bottom: max(1rem, env(safe-area-inset-bottom)); left: 1rem; }
  .project-quick-btn { width: 3.65rem; height: 3.65rem; }
  .v-case .doc { padding: max(1rem, env(safe-area-inset-top)) clamp(1rem, 4.8vw, 1.35rem) calc(3rem + env(safe-area-inset-bottom)); }
  .case--feature { max-width: 100%; }
  .feature-nav { gap: .7rem; margin: .2rem 0 1.25rem; }
  .feature-nav-actions { gap: .55rem; }
  .feature-icon-btn { width: 3.1rem; height: 3.1rem; }
  .feature-banner { aspect-ratio: 15 / 10; border-radius: 1.15rem; }
  .feature-banner figcaption { left: 1.15rem; right: 1.15rem; bottom: 1.15rem; }
  .feature-banner h1 { font-size: clamp(2.3rem, 10.5vw, 3.35rem); }
  .feature-banner p { font-size: .74rem; letter-spacing: .065em; }
  .feature-details { grid-template-columns: 1fr; gap: 1.6rem; }
  .feature-lead { font-size: clamp(1.22rem, 5.6vw, 1.55rem); line-height: 1.32; }
  .feature-story > p:not(.feature-lead), .story-card p { font-size: 1rem; line-height: 1.72; }
  .project-media { margin-top: 3.1rem; }
  .project-media--player { grid-template-columns: 1fr; gap: 1.15rem; }
  .project-media--player.project-media--flipped { grid-template-columns: 1fr; }
  .project-media--player .media-frame { order: 0 !important; }
  .media-copy { min-height: 0; padding: .15rem 0 .15rem 1.15rem; }
  .media-copy > p:last-child { max-width: 31ch; font-size: clamp(1.05rem, 4.9vw, 1.25rem); }
  .feature-info { display: block; }
  .feature-fact { padding: .9rem 1rem; border-bottom: 1px solid rgba(136, 145, 151, .28); border-right: 0; }
  .feature-fact:last-child { border-bottom: 0; }
  .feature-fact b { font-size: .92rem; }
  .media-frame--spotify, .media-frame--spotify iframe { min-height: 352px; }
  .media-frame--soundcloud, .media-frame--soundcloud iframe { min-height: 450px; }
  .cover-gallery { justify-content: flex-start; gap: .8rem; padding: 1.2rem .5rem; overflow-x: auto; scroll-snap-type: x proximity; }
  .cover-gallery-card { flex: 0 0 min(72vw, 300px); scroll-snap-align: center; }
  .project-media--gallery .case-gallery:not(.cover-gallery) { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(8.25rem, 39vw); gap: .72rem; }
  .project-media--gallery .case-gallery:not(.cover-gallery) .project-gallery-card:nth-child(n) { grid-column: span 1; grid-row: span 1; transform: none; }
  .project-media--gallery .case-gallery:not(.cover-gallery) .project-gallery-card:nth-child(3n + 1) { grid-row: span 2; }
  .image-panel { display: block; width: min(94vw, 640px); max-height: 91vh; }
  .image-stage { min-height: 0; }
  .image-panel img { height: auto; max-height: 70vh; }
  .image-context { min-height: 0; padding: 1rem 1.15rem; border-top: 3px solid var(--line); border-left: 0; }
  .image-context p { font-size: 1rem; }
  .image-nav { width: 3rem; height: 3rem; }
  .image-nav--prev { left: .65rem; }.image-nav--next { right: .65rem; }
  .case--peg-mii { max-width: 100%; }
  .peg-mii-workspace { min-height: calc(100svh - 7.25rem); }
  .peg-mii-native-root { height: calc(100svh - 7.25rem); min-height: 540px; }
  .case-bar > [data-home], .feature-nav [data-home] { display: none; }
  .contact-email { grid-template-columns: 1fr; gap: .6rem; }
  .ov:has(#contact-body) { align-items: end; padding: max(.75rem, env(safe-area-inset-top)) 1rem max(.9rem, env(safe-area-inset-bottom)); }
  .ov:has(#contact-body) .ov-panel { width: min(100%, 31rem); max-height: min(76svh, 39rem); padding: 1.15rem 1.1rem max(1.25rem, env(safe-area-inset-bottom)); border-radius: 1.45rem; overscroll-behavior: contain; }
  .ov:has(#contact-body) .ov-top { margin-bottom: .7rem; }
  .ov:has(#contact-body) .ov-title { font-size: 1.5rem; letter-spacing: -.035em; }
  .contact-intro { margin-bottom: 1rem; font-size: .98rem; line-height: 1.42; }
  .contact-email-link { min-height: 3.4rem; padding-inline: 1rem; font-size: .92rem; }
  .contact-copy { min-height: 2.85rem; }
  .contact-social-label { margin-top: .15rem; }
  .contact-socials { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .72rem; max-width: none; }
  .contact-social { min-height: 3.55rem; aspect-ratio: 1.42; border-radius: 1rem; }
  .contact-social svg { width: 1.65rem; height: 1.65rem; }
  .experience-heading { padding: .95rem 1rem .8rem; }
  .experience-heading span { font-size: .62rem; }
  .experience-timeline { padding: 0 1rem; }
  .experience-item { padding-left: 1.1rem; }
  .experience-item li { font-size: .88rem; }
}

@media (max-width: 390px) {
  /* Keep smaller phones compact without shrinking the interactive areas. */
  .v-grid .grid--sub { grid-auto-rows: clamp(6.95rem, 30vw, 7.9rem); gap: .7rem; }
  .channel-project-grid { grid-auto-rows: clamp(6.95rem, 30vw, 7.9rem); gap: .7rem; }
  .v-grid .face-label { font-size: clamp(.95rem, 4.55vw, 1.1rem); }
  .v-grid .strip-name { font-size: clamp(1.24rem, 6.25vw, 1.6rem); }
  .feature-banner { aspect-ratio: 14 / 10; }
}

/* =============== REDUCED MOTION =============== */
@media (prefers-reduced-motion: reduce) {
  .chan, .orb, .btn, .arw, .sd, .theme-toggle, .ov, .ov-panel { transition: none; }
  .chan:hover, .chan:focus-visible, .orb:hover, .btn:hover, .arw:hover, .sd:hover, .theme-toggle:hover { transform: none; }
  .zoomer.fly { transition: opacity .18s ease; }
  .is-feature-morph-complete .feature-banner,
  .is-feature-morph-complete .feature-banner h1,
  .is-feature-morph-complete .feature-banner p,
  .zoomer--media::after { animation: none; }
}
