:root{
  --background: #FFFFFF;
  --foreground: #111827;
  --muted: #464A53;
  --primary: #FF0000;
  --accent: #FF0000;
  --border: #DBDEE5;
  --surface: #FAFAFB;
  --header-bg: rgba(255,255,255,0.92);
  --font-heading: 'Gloock', serif;
  --font-body: 'Inter', sans-serif;
}
:root[data-theme="dark"]{
  --background: #0D0F14;
  --foreground: #ECEDF0;
  --muted: #9AA0AC;
  --border: #262A33;
  --surface: #14161C;
  --header-bg: rgba(13,15,20,0.85);
}
*{ box-sizing: border-box; margin:0; padding:0; }
html{ scroll-behavior: smooth; overflow-x: hidden; }
body{
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  transition: background .2s, color .2s;
}
h1, h2, h3, h4{
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.12;
}
a{ color: var(--primary); text-decoration: none; }
a:hover{ color: var(--accent); }
.wrap{ max-width: 1180px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 600px){ .wrap{ padding: 0 20px; } }
.caption{ font-size: 13px; color: var(--muted); }

/* ---------- NAV ---------- */
header{
  position: sticky; top:0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
nav{
  display:flex; align-items:center; justify-content:space-between;
  padding: 18px 32px;
  max-width: 1180px; margin: 0 auto;
}
.logo{
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--foreground);
  display:flex; align-items:center; gap:10px;
}
.logo .mark{
  width:10px; height:10px; border-radius:50%;
  background: var(--primary);
}
.navlinks{ display:flex; gap:30px; font-size: 14px; font-weight: 500; }
.navlinks a{ color: var(--muted); transition: color .15s; }
.navlinks a:hover{ color: var(--primary); }
@media (max-width: 700px){ .navlinks{ display:none; } }

.theme-switch{
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 0;
  margin-left: 24px;
  cursor: pointer;
  color: var(--muted);
}
.theme-switch svg{ flex-shrink: 0; }
.theme-switch-track{
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: var(--border);
  position: relative;
  flex-shrink: 0;
  transition: background .2s;
}
.theme-switch-thumb{
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 1px 3px rgba(17,24,39,0.3);
  transition: transform .2s;
}
.theme-switch[aria-checked="true"] .theme-switch-track{ background: var(--primary); }
.theme-switch[aria-checked="true"] .theme-switch-thumb{ transform: translateX(18px); }

/* ---------- FULL-BLEED HERO (homepage) ---------- */
.hero-bleed{
  position: relative;
  width: 100%;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #111827;
}
.hero-preview{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-scrim{
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(17,24,39,0.55) 0%, rgba(17,24,39,0.35) 45%, rgba(17,24,39,0.65) 100%);
}
.hero-content{
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 120px 32px;
  max-width: 900px;
}
.hero-content .eyebrow{
  font-size: 13px;
  font-weight: 500;
  color: #FFFFFF;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 24px;
  opacity: 0.85;
}
h1.headline{
  font-size: clamp(42px, 6.5vw, 68px);
  color: #FFFFFF;
  margin-bottom: 22px;
}
h1.headline em{
  font-style: italic;
  color: var(--primary);
}
.hero-content p.sub{
  color: rgba(255,255,255,0.82);
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto 44px;
}
.hero-play{
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 8px 32px rgba(17,24,39,0.35);
}
.hero-play:hover{ transform: scale(1.07); }
.hero-play-label{
  display: block;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-scroll-cta{
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.hero-scroll-cta:hover{ color: #FFFFFF; }

/* ---------- TICKER ---------- */
.ticker-band{
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  white-space: nowrap;
  padding: 16px 0;
  background: var(--background);
}
.ticker-track{
  display:inline-flex;
  animation: scrollTicker 36s linear infinite;
}
.ticker-track:hover{ animation-play-state: paused; }
@keyframes scrollTicker{
  0%{ transform: translateX(0); }
  100%{ transform: translateX(-50%); }
}
.tick{
  font-size: 14px;
  color: var(--muted);
  display:inline-flex; align-items:center; gap:10px;
  padding: 0 30px;
  border-right: 1px solid var(--border);
}
.tick .val{
  color: var(--foreground);
  font-family: var(--font-heading);
  font-size: 17px;
}
.tick .indicator{
  width:6px; height:6px; border-radius:50%;
  background: var(--primary);
}

/* ---------- SECTION SHELL ---------- */
section{ padding: 100px 0; }
.eyebrow{
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
}
.eyebrow::before{
  content:"";
  display:inline-block;
  width: 28px; height: 1px;
  background: var(--primary);
}
.hero-content .eyebrow{ justify-content: center; }
.hero-content .eyebrow::before{ background: #FFFFFF; }
.section-head{ margin-bottom: 56px; max-width: 660px; }
.section-head .eyebrow{ margin-bottom: 16px; }
.section-head h2{ font-size: clamp(30px, 4vw, 40px); margin-bottom: 16px; }
.section-head p{ color: var(--muted); font-size: 17px; }
.btn{
  padding: 13px 26px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  display:inline-flex; align-items:center; gap:8px;
  transition: opacity .15s, border-color .15s, color .15s;
  cursor: pointer;
}
.btn.primary{
  background: var(--primary);
  color: #FFFFFF;
  border: 1px solid var(--primary);
}
.btn.primary:hover{ opacity: 0.88; color:#FFFFFF; }
.btn.ghost{
  border: 1px solid var(--border);
  color: var(--foreground);
  background: var(--background);
}
.btn.ghost:hover{ border-color: var(--primary); color: var(--primary); }

/* ---------- IMPACT ---------- */
.impact{ border-bottom: 1px solid var(--border); }
.impact-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
@media (max-width: 900px){ .impact-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px){
  .impact-grid{ grid-template-columns: minmax(0, 1fr); }
  .impact-cell{ padding: 24px 22px; }
}
.impact-cell{
  background: var(--background);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.impact-cell .metric-label{
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 14px;
  min-height: 40px;
  display: flex;
  align-items: flex-end;
}
.impact-cell .metric-value{
  font-family: var(--font-heading);
  font-size: 40px;
  color: var(--foreground);
  line-height: 1;
}
.impact-cell .metric-value .unit{ font-size: 22px; color: var(--primary); }
.impact-cell .metric-value .plus{ font-size: 30px; color: var(--primary); font-weight: 600; margin-left: 1px; }
.impact-cell .metric-note{ margin-top: 12px; font-size: 13px; color: var(--muted); }
.impact-footnote{
  margin-top: 24px;
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
}

/* ---------- CASE STUDY GRID (homepage) ---------- */
.filter-row{ display:flex; gap: 10px; flex-wrap: wrap; margin-bottom: 44px; }
.filter-chip{
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  transition: all .15s;
}
.filter-chip:hover, .filter-chip.active{
  border-color: var(--primary);
  color: var(--primary);
}
.case-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}
@media (max-width: 800px){ .case-grid{ grid-template-columns: minmax(0, 1fr); } }
.case-card{
  display: block;
  color: inherit;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--background);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
  cursor: pointer;
}
.case-card:hover{
  border-color: var(--primary);
  box-shadow: 0 4px 24px rgba(17,24,39,0.06);
}
.case-thumb{
  aspect-ratio: 16/9;
  background: var(--surface);
  position: relative;
  display:flex; align-items:center; justify-content:center;
  border-bottom: 1px solid var(--border);
}
.case-thumb img.thumb-img{
  position:absolute; inset:0; width:100%; height:100%;
  object-fit: cover;
}
.play-btn{
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--primary);
  border: none;
  display:flex; align-items:center; justify-content:center;
  cursor: pointer;
  transition: transform .15s;
  position: relative;
  z-index: 2;
}
.play-btn:hover{ transform: scale(1.06); }
.play-btn svg{ width:16px; height:16px; }
.embed-note{
  position:absolute; top:12px; right:12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--muted);
  border: 1px dashed var(--border);
  padding: 4px 9px;
  border-radius: 4px;
  background: var(--background);
  z-index: 2;
}
.case-link-hint{
  position:absolute; bottom:12px; right:12px;
  font-size: 11px; font-weight:500;
  color: var(--muted);
  display:flex; align-items:center; gap:4px;
  z-index: 2;
  opacity: 0;
  transition: opacity .15s;
}
.case-card:hover .case-link-hint{ opacity: 1; color: var(--primary); }
.case-body{ padding: 24px 26px 28px; }
.case-tags{ display:flex; gap:14px; margin-bottom: 12px; flex-wrap: wrap; }
.case-tag{
  font-size: 12px;
  font-weight: 500;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.case-card h3{ font-size: 22px; margin-bottom: 10px; }
.case-card .yr{ color: var(--muted); font-size: 16px; font-family: var(--font-body); }
.case-card p{ color: var(--muted); font-size: 15px; }

/* ---------- CUSTOM VIDEO PLAYER (shared: lightbox + inline) ---------- */
.player-lightbox{
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.player-lightbox[hidden]{ display: none; }
.player-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(17,24,39,0.88);
}
.player-shell{
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  background: #111827;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(17,24,39,0.5);
}
.player-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #111827;
}
.player-title{
  font-family: var(--font-heading);
  font-size: 17px;
  color: #FFFFFF;
}
.player-close{
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  padding: 6px;
  display: flex;
  transition: color .15s;
}
.player-close:hover{ color: var(--primary); }
.player-stage{
  position: relative;
  background: #111827;
  display: flex;
  flex-direction: column;
}
.player-video-wrap{
  position: relative;
}
.player-video-wrap video{
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  background: #111827;
}
.player-missing{
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  padding: 24px;
}
.player-stage.is-missing .player-missing{ display: flex; }
.player-stage.is-missing video{ visibility: hidden; }
.player-center-toggle{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  transition: opacity .2s;
}
.player-center-toggle .ring{
  width: 74px; height: 74px;
  border-radius: 50%;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s;
}
.player-center-toggle:hover .ring{ transform: scale(1.07); }
.player-stage.is-playing .player-center-toggle{ opacity: 0; pointer-events: none; }
.player-controls{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px 16px;
  background: #111827;
}
.pc-btn{
  background: none;
  border: none;
  color: #FFFFFF;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color .15s;
}
.pc-btn:hover{ color: var(--primary); }
.pc-time{
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  font-variant-numeric: tabular-nums;
  min-width: 40px;
}
.pc-time.total{ text-align: right; }
.pc-scrub{
  flex: 1;
  height: 20px;
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
}
.pc-scrub .track{
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.22);
  overflow: hidden;
  position: relative;
}
.pc-scrub .fill{
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0%;
  background: var(--primary);
  border-radius: 2px;
}
.pc-scrub .knob{
  position: absolute;
  top: 50%;
  left: 0%;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #FFFFFF;
  transform: translate(-50%, -50%) scale(0);
  transition: transform .12s;
  pointer-events: none;
}
.pc-scrub:hover .knob{ transform: translate(-50%, -50%) scale(1); }

/* volume slider — sized to match the .pc-scrub track/knob exactly */
.pc-volume{
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 70px;
  height: 20px;
  background: transparent;
  cursor: pointer;
  outline: none;
  --vol: 100%;
}
.pc-volume::-webkit-slider-runnable-track{
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--primary) var(--vol), rgba(255,255,255,0.22) var(--vol));
}
.pc-volume::-webkit-slider-thumb{
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #FFFFFF;
  margin-top: -4px;
  cursor: pointer;
}
.pc-volume::-moz-range-track{
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.22);
}
.pc-volume::-moz-range-progress{
  height: 4px;
  border-radius: 2px;
  background: var(--primary);
}
.pc-volume::-moz-range-thumb{
  width: 12px;
  height: 12px;
  border: none;
  border-radius: 50%;
  background: #FFFFFF;
  cursor: pointer;
}

/* inline player wrapper (project pages) */
.inline-player{
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(17,24,39,0.14);
}

/* fullscreen: .player-controls now lives INSIDE .player-stage (see markup),
   so fullscreening the stage (same element used before) keeps controls
   visible automatically — laid out as a column so they stay pinned below
   the video instead of the video stretching over them. */
.player-stage:fullscreen,
.player-stage:-webkit-full-screen{
  width: 100vw;
  height: 100vh;
  background: #111827;
}
.player-stage:fullscreen .player-video-wrap,
.player-stage:-webkit-full-screen .player-video-wrap{
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.player-stage:fullscreen .player-video-wrap video,
.player-stage:-webkit-full-screen .player-video-wrap video{
  width: 100%;
  height: 100%;
  aspect-ratio: unset;
  object-fit: cover;
}
.player-stage:fullscreen .player-controls,
.player-stage:-webkit-full-screen .player-controls{
  flex-shrink: 0;
}

/* mobile: the controls row (play, times, scrub, mute, volume, fullscreen)
   has too many fixed-width elements to fit one line on a phone — the scrub
   bar was getting squeezed to ~0 width. Wrap it onto its own full-width
   row instead of letting everything fight for space. */
@media (max-width: 640px){
  .player-lightbox{ padding: 0; }
  .player-shell{ border-radius: 0; }
  .player-controls{ flex-wrap: wrap; gap: 10px; }
  .pc-scrub{ flex-basis: 100%; }
  .pc-volume{ width: 56px; }
}

/* ---------- PLATFORM PERFORMANCE ---------- */
.platform{ border-top: 1px solid var(--border); background: var(--surface); }
.platform-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 900px){ .platform-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.platform-card{
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--background);
}
.platform-card .plat-name{
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--foreground);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.plat-name svg{ color: var(--muted); }
.stat-row{ display:flex; justify-content: space-between; font-size: 14px; padding: 7px 0; color: var(--muted); }
.stat-row .stat-val{ color: var(--foreground); font-weight: 500; }
.stat-row.highlight .stat-val{ color: var(--primary); }

/* ---------- PROCESS / TOOLS ---------- */
.tools-strip{ display:flex; flex-wrap: wrap; gap: 12px; }
.tool-pill{
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
}
.process-flow{
  display:flex; align-items:center; margin-top: 44px; flex-wrap: wrap;
}
.flow-step{
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--foreground);
  padding: 8px 0;
}
.flow-arrow{ color: var(--primary); padding: 0 18px; display: flex; align-items: center; }

/* ---------- FOOTER ---------- */
footer{
  border-top: 1px solid var(--border);
  padding: 90px 0 50px;
}
footer h2{ font-size: clamp(30px, 4.5vw, 46px); margin-bottom: 20px; max-width: 640px; }
footer p{ color: var(--muted); max-width: 480px; margin-bottom: 34px; font-size: 17px; }
.footer-cta-row{ display:flex; gap:14px; flex-wrap:wrap; }
.footer-social{ display:flex; gap:18px; margin-top: 28px; }
.footer-social a{ color: var(--muted); display:flex; transition: color .15s; }
.footer-social a:hover{ color: var(--primary); }
.footer-bottom{
  margin-top: 80px; padding-top: 26px; border-top: 1px solid var(--border);
  display:flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: var(--muted);
}
footer.mini{ padding: 40px 0; }
footer.mini .footer-bottom{ margin-top: 0; padding-top: 0; border-top: none; }
footer.mini .footer-social{ margin-top: 0; }

/* ============================================================
   PROJECT DETAIL PAGES
============================================================ */
.page-hero{
  padding: 80px 0 56px;
  border-bottom: 1px solid var(--border);
}
.breadcrumb{
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb a{ color: var(--muted); }
.breadcrumb a:hover{ color: var(--primary); }
.breadcrumb .sep{ color: var(--border); }
.page-hero .case-tags{ margin-bottom: 18px; }
.page-hero h1{
  font-size: clamp(36px, 5vw, 56px);
  max-width: 820px;
  margin-bottom: 18px;
}
.page-hero .lede{
  font-size: 19px;
  color: var(--muted);
  max-width: 640px;
}
.meta-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
@media (max-width: 800px){ .meta-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.meta-item .meta-label{
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 6px;
}
.meta-item .meta-value{ font-size: 15px; color: var(--foreground); }

.page-video{ padding: 64px 0; }

.prose-section{ padding: 0 0 72px; }
.prose-section .eyebrow{ margin-bottom: 18px; }
.prose-section h2{ font-size: clamp(26px, 3.5vw, 34px); margin-bottom: 18px; max-width: 640px; }
.prose-section p{
  color: var(--muted);
  font-size: 17px;
  max-width: 700px;
  margin-bottom: 16px;
}
.prose-cols{
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
}
@media (max-width: 800px){ .prose-cols{ grid-template-columns: 1fr; gap: 20px; } }

.approach-steps{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 8px;
}
@media (max-width: 800px){ .approach-steps{ grid-template-columns: minmax(0, 1fr); } }
.approach-step{
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 26px 28px;
}
.approach-step h3{ font-size: 20px; margin-bottom: 10px; }
.approach-step p{ font-size: 15px; margin-bottom: 0; }

.deliverables-strip{ display:flex; flex-wrap:wrap; gap: 12px; }

/* ---------- CARD CAROUSEL (Cards Against AT) ---------- */
.card-carousel-section{
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 0;
  margin-bottom: 72px;
  overflow: hidden;
}
.card-carousel{
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 48px;
}
.card-row{
  overflow: hidden;
  /* fade edges */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.card-track{
  display: inline-flex;
  gap: 28px;
  animation: scrollCards 40s linear infinite;
  white-space: nowrap;
}
.card-track:hover{ animation-play-state: paused; }
.card-track.reverse{ animation-direction: reverse; }
@keyframes scrollCards{
  0%{ transform: translateX(0); }
  100%{ transform: translateX(-50%); }
}
.game-card{
  width: 230px;
  aspect-ratio: 5/7;
  border-radius: 14px;
  padding: 26px 24px;
  flex-shrink: 0;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.4;
  white-space: normal;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: transform .2s;
}
.game-card:hover{ transform: translateY(-6px) rotate(-1deg); }
.game-card.prompt{
  background: #111827;
  color: #FFFFFF;
  box-shadow: 0 10px 30px rgba(17,24,39,0.25);
}
.game-card.response{
  background: #FFFFFF;
  color: #111827;
  border: 1px solid #DBDEE5;
  box-shadow: 0 10px 30px rgba(17,24,39,0.08);
}
.game-card img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.game-card .card-brand{
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.55;
}

/* ---------- PREV / NEXT PROJECT NAV ---------- */
.projnav{
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.projnav a{
  padding: 44px 32px;
  color: var(--foreground);
  transition: background .15s;
}
.projnav a:hover{ background: var(--surface); color: var(--foreground); }
.projnav a:hover .projnav-title{ color: var(--primary); }
.projnav .next{ text-align: right; border-left: 1px solid var(--border); }
.projnav-label{
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 8px;
}
.projnav-title{
  font-family: var(--font-heading);
  font-size: 22px;
  transition: color .15s;
}
@media (max-width: 600px){
  .projnav{ grid-template-columns: minmax(0, 1fr); }
  .projnav .next{ border-left: none; border-top: 1px solid var(--border); text-align: left; }
}

/* ---------- reveal ---------- */
.reveal{ opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible{ opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce){
  .ticker-track{ animation: none; }
  .card-track{ animation: none; }
  .reveal{ transition: none; opacity:1; transform:none; }
}
