:root{
  --bg:#c9ced1;--text:#111;--muted:#6d6a64;--line:rgba(17,17,17,.18);
  --side:150px;--project-wash:#ece9e3;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:
linear-gradient(180deg,
  #89aa9a 0%,
  #6f9f80 14%,
  #3d8764 34%,
  #1f6d4e 54%,
  #10543e 72%,
  #073c2d 88%,
  #052b22 100%);
background-attachment:fixed;
color:var(--text);font-family:Inter,system-ui,sans-serif;transition:background .8s ease}
body.no-scroll{overflow:hidden}
a{color:inherit;text-decoration:none}button{font:inherit;color:inherit}
.film-texture{position:fixed;inset:0;pointer-events:none;z-index:999;overflow:hidden}
.film-grain{
  position:absolute;
  inset:-70%;
  width:240%;
  height:240%;
  opacity:.52;
  mix-blend-mode:multiply;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 260 260' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='6' seed='13' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.98'/%3E%3C/svg%3E");
  animation:grainShift .115s steps(2,end) infinite;
}
.film-scratches{
  position:absolute;
  inset:-25% 0;
  background:
    repeating-linear-gradient(90deg,
      transparent 0 6.4%,
      rgba(8,17,12,.065) 6.48%,
      transparent 6.62% 13.1%),
    linear-gradient(90deg,
      transparent 0 10%,
      rgba(255,255,255,.10) 10.06%,
      transparent 10.18% 42%,
      rgba(5,15,10,.11) 42.08%,
      transparent 42.18% 76%,
      rgba(255,255,255,.07) 76.06%,
      transparent 76.16%);
  opacity:.96;
  mix-blend-mode:overlay;
  animation:scratchDrift 5.5s linear infinite,scratchPulse 1.7s steps(2,end) infinite;
}
.film-flicker{
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg,rgba(255,245,214,.11),rgba(15,45,28,.06)),
    rgba(255,238,205,.10);
  mix-blend-mode:soft-light;
  animation:filmFlicker 2.4s steps(1,end) infinite;
}
.film-vignette{position:absolute;inset:0;box-shadow:inset 0 0 220px rgba(28,20,30,.28);background:linear-gradient(90deg,rgba(90,35,24,.035),transparent 18%,transparent 82%,rgba(90,35,24,.035));mix-blend-mode:multiply}
@keyframes grainShift{
  0%{transform:translate3d(-2%,-3%,0)}
  20%{transform:translate3d(3%,1%,0)}
  40%{transform:translate3d(-1%,4%,0)}
  60%{transform:translate3d(4%,-2%,0)}
  80%{transform:translate3d(-3%,2%,0)}
  100%{transform:translate3d(1%,-4%,0)}
}
@keyframes scratchDrift{from{transform:translateX(-2%)}to{transform:translateX(2%)}}
@keyframes filmFlicker{
  0%,100%{opacity:.15}
  7%{opacity:.32}
  8%{opacity:.1}
  31%{opacity:.22}
  32%{opacity:.08}
  68%{opacity:.24}
  69%{opacity:.13}
}
.side-nav{position:fixed;inset:0 auto 0 0;width:var(--side);border-right:1px solid var(--line);display:flex;align-items:flex-start;justify-content:space-between;flex-direction:column;padding:28px 26px 34px;z-index:20;background:rgba(238,239,229,.80);backdrop-filter:blur(14px)}
.brand-mini{font:600 18px Manrope;letter-spacing:.08em}
.side-nav nav{display:flex;flex-direction:column;gap:13px;white-space:nowrap;align-items:flex-start}
.nav-link{font-size:12px;text-transform:uppercase;letter-spacing:.1em;color:var(--muted);transition:.25s;position:relative}
.nav-link::before{content:"";position:absolute;left:-26px;top:50%;width:0;height:1px;background:var(--text);transition:.25s}
.nav-link:hover,.nav-link.active{color:var(--text);transform:translateX(7px)}
.nav-link.active::before{width:18px}
main{margin-left:var(--side)}
.section{min-height:100vh;padding:48px 5vw 42px;border-bottom:1px solid var(--line)}
.hero{display:flex;flex-direction:column;justify-content:space-between}.hero-top{display:flex;justify-content:space-between;gap:40px}
.eyebrow{margin:0 0 18px;text-transform:uppercase;letter-spacing:.14em;font-size:11px;color:var(--muted)}
h1,h2{font-family:Manrope,sans-serif;margin:0;font-weight:500;letter-spacing:-.055em}h1{font-size:clamp(74px,12vw,190px);line-height:.79}h2{font-size:clamp(56px,8vw,125px);line-height:.85}
.hero-links{display:flex;flex-direction:column;align-items:flex-end;gap:10px;font-size:12px;text-transform:uppercase;letter-spacing:.12em}.hero-links a{border-bottom:1px solid transparent;padding-bottom:3px}.hero-links a:hover{border-color:currentColor}
.hero-bottom{display:flex;justify-content:space-between;align-items:flex-end;padding-bottom:6px}.hero-role{font-family:Manrope;font-size:clamp(28px,4vw,68px);letter-spacing:-.04em;margin:0}.hero-note{margin:0;color:var(--muted);font-size:13px}
.carousel-section{min-height:auto;padding:62px 0 76px 5vw;overflow:hidden}.section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:28px;margin:0 5vw 34px 0}.carousel-controls{display:flex;align-items:center;gap:12px}.arrow{border:none;background:transparent;font-size:27px;cursor:pointer;width:42px;height:42px;border-radius:50%;transition:.25s}.arrow:hover{background:rgba(17,17,17,.07)}.carousel-count{font-size:11px;letter-spacing:.12em;color:var(--muted);min-width:54px;text-align:center}
.autoplay-status{border:1px solid var(--line);background:rgba(255,255,255,.2);border-radius:999px;padding:8px 11px;cursor:pointer;font-size:9px;text-transform:uppercase;letter-spacing:.11em;color:var(--muted);transition:.25s;white-space:nowrap}.autoplay-status:hover,.autoplay-status.paused{color:var(--text);border-color:var(--text)}
.viewport{overflow:hidden;touch-action:pan-y;cursor:grab;padding-inline:6vw}.viewport.is-dragging{cursor:grabbing}.carousel-track{display:flex;gap:22px;will-change:transform;transform:translate3d(0,0,0)}.carousel-track.is-snapping{transition:transform .7s cubic-bezier(.2,.78,.2,1)}
.slide{flex:0 0 clamp(560px,62vw,940px);border:1px solid var(--line);background:rgba(255,255,255,.1);transition:opacity .25s,filter .25s;user-select:none}.carousel.is-paused .slide{opacity:.74}.carousel.is-paused .slide:hover,.carousel.is-paused .slide:focus{opacity:1}.slide:focus{outline:1px solid var(--text);outline-offset:-1px}
.project-card{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(330px,.65fr);min-height:66vh}.project-image-wrap{position:relative;overflow:hidden;background:#222}.project-image{width:100%;height:100%;object-fit:cover;display:block;transition:transform .9s ease}.project-card:hover .project-image,.media-card:hover .project-image{transform:scale(1.018)}
.pause-hint{position:absolute;right:18px;bottom:16px;padding:7px 9px;background:rgba(0,0,0,.48);color:#fff;font-size:9px;text-transform:uppercase;letter-spacing:.12em;opacity:0;transition:.25s;pointer-events:none}.slide:hover .pause-hint{opacity:1}.carousel.is-paused .pause-hint{opacity:1}.carousel.is-paused .pause-hint::after{content:" · paused"}
.badge{position:absolute;top:24px;left:24px;background:rgba(238,239,229,.90);backdrop-filter:blur(10px);padding:9px 12px;font-size:10px;text-transform:uppercase;letter-spacing:.12em}.project-info{padding:32px;display:flex;flex-direction:column;justify-content:space-between;gap:24px;background:rgba(238,239,229,.88)}.project-title{font:500 clamp(38px,4.2vw,70px) Manrope;letter-spacing:-.045em;line-height:.94;margin:0}.meta{display:grid;grid-template-columns:1fr 1fr;gap:16px 22px;margin-top:26px}.small-label{font-size:10px;text-transform:uppercase;letter-spacing:.14em;color:var(--muted);margin:0 0 8px}.meta p,.description{margin:0;font-size:13px;line-height:1.55}.description{max-width:45ch}.responsibilities{display:grid;gap:6px;margin:0;padding:0;list-style:none;font-size:12px}.responsibilities li::before{content:"— ";color:var(--muted)}.tags{display:flex;flex-wrap:wrap;gap:8px}.tag,.chip{border:1px solid var(--line);padding:8px 10px;border-radius:999px;font-size:10px;text-transform:uppercase;letter-spacing:.1em}.card-links{display:flex;flex-wrap:wrap;gap:9px}.link-button{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 14px;border:1px solid var(--text);background:transparent;cursor:pointer;font-size:10px;text-transform:uppercase;letter-spacing:.11em;transition:.25s}.link-button:hover{background:var(--text);color:var(--bg)}
.media-card{display:grid;grid-template-columns:1.35fr .65fr;min-height:52vh;flex-basis:clamp(470px,48vw,760px)}.media-card .project-image-wrap{min-height:52vh}.media-info{display:flex;flex-direction:column;justify-content:space-between;padding:30px;background:rgba(238,239,229,.88)}.media-title{font:500 clamp(32px,3.4vw,58px) Manrope;letter-spacing:-.05em;line-height:1;margin:0}.play-circle{width:70px;height:70px;border-radius:50%;border:1px solid var(--text);display:grid;place-items:center;background:transparent;cursor:pointer;font-size:18px;transition:.25s}.play-circle:hover{background:var(--text);color:var(--bg);transform:scale(1.05)}
.about-section{min-height:80vh}.about-grid{display:grid;grid-template-columns:1.3fr .7fr;gap:8vw;margin-top:8vh}.about-copy{font:400 clamp(30px,4vw,62px) Manrope;line-height:1.08;letter-spacing:-.04em;margin:0;max-width:26ch}.chips{display:flex;flex-wrap:wrap;gap:10px}.contact-section{min-height:86vh;display:flex;flex-direction:column;justify-content:space-between}.contact-links{display:grid;border-top:1px solid var(--line);margin-top:60px}.contact-row{display:grid;grid-template-columns:1fr 1fr;align-items:center;min-height:70px;border-bottom:1px solid var(--line);font-size:13px}.contact-row span:last-child{text-align:right;color:var(--muted)}footer{display:flex;justify-content:space-between;color:var(--muted);font-size:11px}
.lightbox{position:fixed;inset:0;background:rgba(10,10,10,.92);z-index:1000;display:none;align-items:center;justify-content:center;padding:5vw}.lightbox.open{display:flex}.lightbox-inner{width:min(1200px,92vw);aspect-ratio:16/9;background:#000}.lightbox iframe{width:100%;height:100%;border:0}.lightbox-close{position:absolute;top:24px;right:28px;border:0;background:transparent;color:white;font-size:42px;cursor:pointer}
@media(max-width:900px){:root{--side:0px}.side-nav{width:100%;height:58px;inset:0 0 auto 0;flex-direction:row;padding:0 18px;border-right:0;border-bottom:1px solid var(--line);align-items:center}.side-nav nav{flex-direction:row;gap:14px;overflow-x:auto}.nav-link{font-size:9px}.nav-link::before{display:none}.nav-link:hover,.nav-link.active{transform:none}main{margin-left:0;padding-top:58px}.section{padding:34px 18px}.carousel-section{padding:42px 0 55px 18px}.section-heading{margin-right:18px}.hero-top{display:block}.hero-links{align-items:flex-start;flex-direction:row;flex-wrap:wrap;margin-top:36px}.hero-bottom{display:block}.hero-note{margin-top:12px}.project-card,.media-card{grid-template-columns:1fr}.project-image-wrap,.media-card .project-image-wrap{min-height:43vh}.project-info,.media-info{min-height:auto;padding:24px}.slide{flex-basis:78vw}.media-card{flex-basis:72vw}.about-grid{grid-template-columns:1fr;gap:50px}}
@media(max-width:560px){h1{font-size:18vw}h2{font-size:17vw}.hero{min-height:calc(100vh - 58px)}.section-heading{display:block}.carousel-controls{margin-top:18px;justify-content:flex-start;flex-wrap:wrap}.autoplay-status{order:4}.project-image-wrap,.media-card .project-image-wrap{min-height:34vh}.meta{grid-template-columns:1fr}.about-copy{font-size:9vw}.slide,.media-card{flex-basis:82vw}}
@media(prefers-reduced-motion:reduce){.film-grain,.film-scratches,.film-flicker,.film-texture::before,body::before,body::after{animation:none}.film-grain{opacity:.30}.film-texture::before{opacity:.16}.carousel .slide{transition:none}}.project-image,.link-button,.arrow,.nav-link{transition:none}}

@media(prefers-reduced-motion:reduce){.film-grain,.film-scratches,.film-flicker,.film-texture::before,body::before,body::after{animation:none}.film-grain{opacity:.30}.film-texture::before{opacity:.16}.carousel .slide{transition:none}}.film-grain{
  position:absolute;
  inset:-70%;
  width:240%;
  height:240%;
  opacity:.52;
  mix-blend-mode:multiply;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 260 260' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='6' seed='13' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.98'/%3E%3C/svg%3E");
  animation:grainShift .115s steps(2,end) infinite;
}.carousel .slide{transition:none}}


.carousel .slide{
  transition:filter .48s ease, opacity .48s ease, transform .55s cubic-bezier(.2,.8,.2,1), box-shadow .55s ease;
  transform-origin:center center;
}
.carousel.is-hovering .slide{
  filter:blur(2.2px) saturate(.72);
  opacity:.58;
  transform:scale(.965);
}
.carousel.is-hovering .slide.is-hovered{
  filter:none;
  opacity:1;
  transform:scale(1.028);
  box-shadow:0 28px 70px rgba(29,22,17,.18);
  z-index:4;
}
.carousel.is-hovering .slide.is-hovered .project-image{
  transform:scale(1.035);
}
@media (hover:none){
  .carousel.is-hovering .slide,
  .carousel.is-hovering .slide.is-hovered{
    filter:none;
    opacity:1;
    transform:none;
    box-shadow:none;
  }
}

.film-texture::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg,rgba(103,32,42,.05),transparent 21%,transparent 78%,rgba(28,64,74,.055)),
    radial-gradient(circle at 50% 40%,rgba(255,255,255,.035),transparent 62%);
  mix-blend-mode:color-burn;
  opacity:.72;
}



body::before,
body::after{
  content:"";
  position:fixed;
  inset:-18%;
  pointer-events:none;
  z-index:-1;
  will-change:transform,opacity,filter;
}

body::before{
  background:
    radial-gradient(ellipse 42% 26% at 14% 20%,rgba(255,249,220,.92) 0%,rgba(255,249,220,.54) 26%,rgba(255,249,220,.12) 52%,transparent 72%),
    radial-gradient(ellipse 28% 20% at 74% 18%,rgba(189,224,154,.72) 0%,rgba(189,224,154,.34) 34%,transparent 70%),
    radial-gradient(ellipse 34% 22% at 52% 48%,rgba(236,239,199,.48) 0%,rgba(236,239,199,.18) 42%,transparent 76%);
  filter:blur(44px);
  mix-blend-mode:screen;
  animation:lightDriftA 18s ease-in-out infinite alternate;
}

body::after{
  background:
    radial-gradient(ellipse 36% 24% at 78% 42%,rgba(101,196,116,.34) 0%,rgba(101,196,116,.12) 42%,transparent 74%),
    radial-gradient(ellipse 30% 24% at 30% 70%,rgba(240,228,190,.30) 0%,rgba(240,228,190,.10) 38%,transparent 72%),
    radial-gradient(ellipse 44% 30% at 58% 88%,rgba(5,42,29,.58) 0%,rgba(5,42,29,.18) 44%,transparent 76%);
  filter:blur(58px);
  mix-blend-mode:soft-light;
  animation:lightDriftB 24s ease-in-out infinite alternate;
}

@keyframes lightDriftA{
  0%{transform:translate3d(-3%,-2%,0) scale(1.02) rotate(-1deg);opacity:.88}
  35%{transform:translate3d(4%,1%,0) scale(1.08) rotate(1deg);opacity:1}
  70%{transform:translate3d(-1%,5%,0) scale(1.04) rotate(-.6deg);opacity:.92}
  100%{transform:translate3d(5%,-1%,0) scale(1.10) rotate(1.4deg);opacity:.96}
}

@keyframes lightDriftB{
  0%{transform:translate3d(4%,-2%,0) scale(1.05) rotate(.8deg);opacity:.78}
  45%{transform:translate3d(-3%,3%,0) scale(1.12) rotate(-1.2deg);opacity:.96}
  100%{transform:translate3d(2%,6%,0) scale(1.07) rotate(.4deg);opacity:.84}
}



.film-texture::before{
  content:"";
  position:absolute;
  inset:-35%;
  opacity:.34;
  mix-blend-mode:screen;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='turbulence' baseFrequency='1.15' numOctaves='4' seed='22' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='.72'/%3E%3C/svg%3E");
  animation:grainShiftFine .085s steps(2,end) infinite;
}

@keyframes grainShiftFine{
  0%{transform:translate3d(-4%,2%,0) scale(1.01)}
  20%{transform:translate3d(3%,-3%,0) scale(1.02)}
  40%{transform:translate3d(-2%,-1%,0) scale(1)}
  60%{transform:translate3d(5%,3%,0) scale(1.03)}
  80%{transform:translate3d(-3%,4%,0) scale(1.01)}
  100%{transform:translate3d(2%,-4%,0) scale(1.02)}
}

@keyframes scratchPulse{
  0%,100%{opacity:.68}
  25%{opacity:.94}
  50%{opacity:.78}
  75%{opacity:1}
}



.hero-top{
  position:relative;
  align-items:flex-start;
}
.hero-title-block{
  position:relative;
  z-index:2;
}
.hero-portrait{
  position:absolute;
  right:11vw;
  top:4vh;
  width:clamp(230px,27vw,470px);
  height:clamp(320px,62vh,720px);
  margin:0;
  overflow:hidden;
  border-radius:2px;
  box-shadow:0 32px 90px rgba(0,24,17,.26);
  transform:rotate(1.25deg);
  z-index:1;
}
.hero-portrait::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,transparent 58%,rgba(4,32,24,.28));
  mix-blend-mode:multiply;
}
.hero-portrait img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center 38%;
  filter:grayscale(1) contrast(1.06);
}
.hero-links{
  position:relative;
  z-index:3;
}
.spotify-embed-wrap{
  margin:24px 0;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 18px 44px rgba(0,35,24,.15);
}
.spotify-embed-wrap iframe{
  display:block;
  border:0;
}
.music-card .media-info{
  overflow:auto;
}
@media(max-width:900px){
  .hero-portrait{
    position:relative;
    right:auto;
    top:auto;
    width:min(72vw,430px);
    height:52vh;
    margin:34px 0 0 auto;
  }
}
@media(max-width:560px){
  .hero-portrait{
    width:78vw;
    height:46vh;
    margin-top:26px;
  }
  .spotify-embed-wrap iframe{
    height:300px;
  }
}


/* Version 11 — image-first portfolio cards */
body{
  isolation:isolate;
}
main{
  position:relative;
  z-index:2;
}
.film-texture{
  z-index:1;
  opacity:.42;
}
.film-grain{
  opacity:.16;
  mix-blend-mode:soft-light;
  filter:contrast(.72);
  animation-duration:.16s;
}
.film-texture::before{
  opacity:.09;
  mix-blend-mode:soft-light;
}
.film-scratches{
  opacity:.20;
  mix-blend-mode:soft-light;
}
.film-flicker{
  opacity:.22;
}
.film-vignette{
  opacity:.34;
}

.side-nav{
  background:rgba(4,48,35,.94);
  border-color:rgba(255,255,255,.16);
  color:#fff;
  backdrop-filter:blur(18px);
}
.brand-mini,
.side-nav .nav-link{
  color:rgba(255,255,255,.72);
}
.side-nav .nav-link:hover,
.side-nav .nav-link.active{
  color:#fff;
}
.side-nav .nav-link::before{
  background:#fff;
}

.visual-card{
  position:relative;
  display:block;
  min-height:clamp(520px,69vh,780px);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.24);
  background:#082d22;
  color:#fff;
  isolation:isolate;
}
.media-card.visual-card{
  min-height:clamp(470px,62vh,700px);
}
.visual-card .card-background{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center;
  transform:scale(1.015);
  transition:transform .8s cubic-bezier(.2,.75,.2,1),filter .5s ease;
  z-index:-3;
}
.project-card:nth-child(3n) .card-background{
  object-fit:cover;
}
.visual-card .card-shade{
  position:absolute;
  inset:0;
  z-index:-2;
  background:
    linear-gradient(180deg,rgba(0,18,14,.06) 0%,rgba(0,18,14,.04) 35%,rgba(0,18,14,.70) 100%),
    linear-gradient(90deg,rgba(0,18,14,.42),transparent 48%);
  transition:background .45s ease,opacity .45s ease;
}
.visual-card:hover .card-background,
.visual-card:focus-within .card-background{
  transform:scale(1.045);
  filter:saturate(.92) brightness(.78);
}
.visual-card:hover .card-shade,
.visual-card:focus-within .card-shade{
  background:
    linear-gradient(180deg,rgba(0,18,14,.20) 0%,rgba(0,18,14,.18) 28%,rgba(0,18,14,.86) 100%),
    linear-gradient(90deg,rgba(0,18,14,.72),rgba(0,18,14,.12) 70%);
}

.card-overlay{
  position:absolute;
  inset:0;
  z-index:3;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  padding:clamp(26px,3.2vw,48px);
  opacity:0;
  transform:translateY(14px);
  pointer-events:none;
  transition:opacity .38s ease,transform .45s cubic-bezier(.2,.75,.2,1);
}
.visual-card:hover .card-overlay,
.visual-card:focus-within .card-overlay,
.visual-card.is-hovered .card-overlay{
  opacity:1;
  transform:translateY(0);
  pointer-events:auto;
}
.overlay-heading{
  max-width:72%;
}
.overlay-details{
  max-width:min(620px,72%);
}
.overlay-role{
  margin:12px 0 0;
  font-size:13px;
  letter-spacing:.04em;
  color:rgba(255,255,255,.76);
}
.visual-card .small-label{
  color:rgba(255,255,255,.70);
}
.visual-card .description{
  color:rgba(255,255,255,.86);
}
.visual-card .responsibilities{
  margin-top:18px;
  color:rgba(255,255,255,.78);
}
.visual-card .responsibilities li::before{
  color:rgba(255,255,255,.46);
}
.visual-card .tag{
  border-color:rgba(255,255,255,.30);
  background:rgba(4,32,24,.28);
  color:#fff;
}
.visual-card .link-button{
  border-color:rgba(255,255,255,.62);
  color:#fff;
  background:rgba(0,20,14,.22);
  backdrop-filter:blur(8px);
}
.visual-card .link-button:hover{
  background:#fff;
  color:#07382a;
}

.hero-play{
  position:absolute;
  left:50%;
  top:50%;
  z-index:6;
  display:flex;
  align-items:center;
  gap:14px;
  min-height:74px;
  padding:10px 22px 10px 10px;
  border:1px solid rgba(255,255,255,.72);
  border-radius:999px;
  background:rgba(4,35,25,.66);
  color:#fff;
  cursor:pointer;
  transform:translate(-50%,-50%);
  box-shadow:0 18px 60px rgba(0,0,0,.28);
  backdrop-filter:blur(13px);
  transition:transform .3s ease,background .3s ease,box-shadow .3s ease;
}
.hero-play:hover{
  transform:translate(-50%,-50%) scale(1.07);
  background:rgba(4,45,31,.90);
  box-shadow:0 22px 70px rgba(0,0,0,.38);
}
.hero-play-icon{
  width:52px;
  height:52px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  border-radius:50%;
  background:#fff;
  color:#07382a;
  font-size:17px;
  padding-left:3px;
}
.hero-play-label{
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.13em;
  white-space:nowrap;
}
.visual-card:hover .hero-play,
.visual-card:focus-within .hero-play{
  background:rgba(4,45,31,.82);
}
.spotify-mark{
  position:absolute;
  left:50%;
  top:50%;
  z-index:5;
  transform:translate(-50%,-50%);
  padding:18px 24px;
  border:1px solid rgba(255,255,255,.62);
  border-radius:999px;
  background:rgba(4,35,25,.65);
  color:#fff;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.16em;
  backdrop-filter:blur(12px);
}
.visual-card .badge{
  z-index:7;
  color:#07382a;
  background:rgba(255,255,255,.88);
}
.compact-overlay{
  justify-content:flex-end;
}
.spotify-embed-wrap{
  max-width:520px;
  margin:18px 0 0;
}
.spotify-embed-wrap iframe{
  height:152px;
}

.carousel.is-hovering .slide{
  filter:blur(1.7px) saturate(.72);
  opacity:.54;
}
.carousel.is-hovering .slide.is-hovered{
  filter:none;
  opacity:1;
}

@media(max-width:900px){
  .side-nav{
    background:rgba(4,48,35,.97);
  }
  .visual-card,
  .media-card.visual-card{
    min-height:62vh;
  }
  .overlay-heading,
  .overlay-details{
    max-width:90%;
  }
  .card-overlay{
    opacity:1;
    transform:none;
    justify-content:flex-end;
    gap:24px;
    background:linear-gradient(180deg,transparent 22%,rgba(0,22,15,.82) 100%);
  }
  .hero-play{
    top:42%;
  }
}
@media(max-width:560px){
  .hero-play{
    min-height:62px;
    padding-right:16px;
  }
  .hero-play-icon{
    width:44px;
    height:44px;
  }
  .hero-play-label{
    font-size:8px;
  }
  .visual-card,
  .media-card.visual-card{
    min-height:58vh;
  }
}


/* Version 12 — project media chooser */
.project-card-layout{
  position:absolute;
  inset:0;
  z-index:4;
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr);
  align-items:end;
  gap:clamp(32px,5vw,88px);
  padding:clamp(36px,5vw,76px);
  pointer-events:none;
}
.project-copy{
  max-width:660px;
  align-self:start;
  color:#fff;
  opacity:0;
  transform:translateY(12px);
  transition:opacity .34s ease,transform .42s ease;
}
.project-copy-extra{
  margin-top:clamp(26px,5vh,58px);
}
.project-media-menu{
  align-self:end;
  justify-self:end;
  width:min(100%,520px);
  padding:22px;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(3,31,23,.72);
  backdrop-filter:blur(18px);
  box-shadow:0 24px 70px rgba(0,0,0,.24);
  pointer-events:auto;
  opacity:0;
  transform:translateY(16px);
  transition:opacity .34s ease,transform .42s ease;
}
.project-card:hover .project-copy,
.project-card:hover .project-media-menu,
.project-card:focus-within .project-copy,
.project-card:focus-within .project-media-menu,
.project-card.is-hovered .project-copy,
.project-card.is-hovered .project-media-menu{
  opacity:1;
  transform:translateY(0);
}
.media-menu-label{
  margin:0 0 14px;
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.16em;
  color:rgba(255,255,255,.62);
}
.media-choice-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.media-choice{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:10px;
  min-width:0;
  padding:0;
  border:0;
  background:transparent;
  color:#fff;
  text-align:left;
  cursor:pointer;
}
.media-choice-thumb{
  position:relative;
  display:block;
  aspect-ratio:16/10;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.28);
  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;
  isolation:isolate;
}
.media-choice-thumb::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(0,18,13,.05),rgba(0,18,13,.58));
}
.media-choice-play{
  position:absolute;
  left:50%;
  top:50%;
  z-index:2;
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  border-radius:50%;
  background:#fff;
  color:#07382a;
  transform:translate(-50%,-50%);
  padding-left:3px;
  box-shadow:0 10px 30px rgba(0,0,0,.28);
  transition:transform .25s ease,background .25s ease;
}
.media-choice-text{
  font-size:10px;
  line-height:1.25;
  text-transform:uppercase;
  letter-spacing:.11em;
  color:rgba(255,255,255,.86);
}
.media-choice:hover .media-choice-play{
  transform:translate(-50%,-50%) scale(1.12);
  background:#dff3e7;
}
.media-choice:hover .media-choice-thumb{
  border-color:rgba(255,255,255,.78);
}
.media-choice.is-primary .media-choice-thumb{
  border-color:rgba(255,255,255,.68);
}
.project-card .hero-play{
  display:none !important;
}
.project-card .card-overlay{
  display:none !important;
}
.project-card .card-shade{
  background:
    linear-gradient(180deg,rgba(0,18,14,.12) 0%,rgba(0,18,14,.10) 30%,rgba(0,18,14,.78) 100%),
    linear-gradient(90deg,rgba(0,18,14,.72),rgba(0,18,14,.18) 58%,rgba(0,18,14,.46));
}
.project-card:hover .card-shade,
.project-card:focus-within .card-shade{
  background:
    linear-gradient(180deg,rgba(0,18,14,.22) 0%,rgba(0,18,14,.20) 30%,rgba(0,18,14,.88) 100%),
    linear-gradient(90deg,rgba(0,18,14,.82),rgba(0,18,14,.24) 58%,rgba(0,18,14,.58));
}

@media(max-width:1100px){
  .project-card-layout{
    grid-template-columns:1fr;
    align-content:end;
  }
  .project-copy{
    align-self:end;
    max-width:78%;
  }
  .project-media-menu{
    justify-self:start;
    width:min(100%,680px);
  }
}
@media(max-width:760px){
  .project-card-layout{
    padding:26px;
    gap:22px;
  }
  .project-copy{
    max-width:100%;
    opacity:1;
    transform:none;
  }
  .project-copy-extra{
    display:none;
  }
  .project-media-menu{
    width:100%;
    opacity:1;
    transform:none;
  }
  .media-choice-grid{
    grid-template-columns:1fr;
  }
  .media-choice{
    display:grid;
    grid-template-columns:96px 1fr;
    align-items:center;
  }
  .media-choice-thumb{
    aspect-ratio:16/9;
  }
}


/* Version 13 — layout cleanup */

/* Project cards */
.project-card-layout{
  grid-template-columns:minmax(0,1fr) minmax(340px,430px);
  align-items:center;
  gap:clamp(44px,6vw,96px);
}
.project-copy{
  align-self:center;
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-height:72%;
}
.project-copy-extra{
  margin-top:clamp(34px,5vh,70px);
}
.project-copy .tags{
  margin-top:30px;
}
.project-media-menu{
  align-self:center;
  justify-self:end;
  width:100%;
  max-width:430px;
  padding:24px;
}
.media-choice-grid{
  display:flex;
  flex-direction:column;
  gap:14px;
}
.media-choice{
  display:grid;
  grid-template-columns:124px minmax(0,1fr);
  align-items:center;
  gap:16px;
}
.media-choice-thumb{
  aspect-ratio:16/9;
}
.media-choice-text{
  font-size:11px;
  line-height:1.3;
  letter-spacing:.12em;
}
.media-menu-label{
  margin-bottom:16px;
}

/* Trailer and music cards: text + native embeds only */
.embed-card{
  flex:0 0 clamp(640px,68vw,1080px);
  display:grid;
  grid-template-columns:minmax(210px,.34fr) minmax(0,.66fr);
  gap:clamp(28px,4vw,64px);
  align-items:center;
  min-height:clamp(420px,56vh,650px);
  padding:clamp(28px,4vw,60px);
  border:1px solid rgba(255,255,255,.20);
  background:rgba(4,42,31,.56);
  backdrop-filter:blur(18px);
  color:#fff;
}
.embed-card-copy{
  align-self:center;
}
.embed-card .small-label{
  color:rgba(255,255,255,.62);
}
.embed-card .media-title{
  margin-top:12px;
}
.youtube-embed-wrap{
  position:relative;
  width:100%;
  aspect-ratio:16/9;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.24);
  background:#000;
  box-shadow:0 24px 70px rgba(0,0,0,.28);
}
.youtube-embed-wrap iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
}
.music-embed-card{
  grid-template-columns:minmax(210px,.3fr) minmax(0,.7fr);
}
.standalone-spotify{
  margin:0;
  border-radius:14px;
  overflow:hidden;
}
.embed-card-links{
  grid-column:2;
  margin-top:-18px;
}

/* Hero profile image: moved right, softened, separated from title */
.hero-top{
  min-height:82vh;
}
.hero-title-block{
  width:min(54%,760px);
}
.hero-portrait{
  right:4vw;
  top:7vh;
  width:clamp(260px,28vw,500px);
  height:clamp(380px,66vh,760px);
  opacity:.84;
  transform:rotate(.4deg);
  box-shadow:0 38px 100px rgba(0,22,16,.22);
  filter:blur(.2px);
}
.hero-portrait::before{
  content:"";
  position:absolute;
  inset:-1px;
  z-index:2;
  background:
    linear-gradient(90deg,rgba(17,73,52,.42),transparent 20%,transparent 80%,rgba(8,45,33,.26)),
    linear-gradient(180deg,rgba(232,239,226,.08),transparent 30%,rgba(7,41,30,.30));
  pointer-events:none;
}
.hero-portrait::after{
  background:linear-gradient(180deg,transparent 52%,rgba(4,32,24,.42));
}
.hero-portrait img{
  filter:grayscale(1) contrast(1.02) brightness(.88);
  object-position:center 42%;
  transform:scale(1.035);
}
.hero-links{
  align-self:flex-start;
  margin-left:auto;
  max-width:160px;
}
.hero-sub{
  position:relative;
  z-index:3;
  max-width:48%;
}

/* Reduce overlap and improve content hierarchy */
@media(max-width:1100px){
  .project-card-layout{
    grid-template-columns:minmax(0,1fr) minmax(300px,390px);
    gap:34px;
  }
  .hero-title-block{
    width:56%;
  }
  .hero-portrait{
    right:2vw;
    width:36vw;
  }
}
@media(max-width:900px){
  .project-card-layout{
    grid-template-columns:1fr;
    align-content:end;
  }
  .project-copy{
    min-height:auto;
  }
  .project-media-menu{
    justify-self:start;
    max-width:100%;
  }
  .media-choice-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .media-choice{
    display:flex;
    flex-direction:column;
    align-items:stretch;
  }
  .embed-card,
  .music-embed-card{
    grid-template-columns:1fr;
    gap:24px;
  }
  .embed-card-links{
    grid-column:1;
    margin-top:0;
  }
  .hero-title-block,
  .hero-sub{
    max-width:100%;
    width:100%;
  }
  .hero-portrait{
    position:relative;
    right:auto;
    top:auto;
    width:min(70vw,430px);
    height:52vh;
    margin:44px 0 0 auto;
    opacity:.88;
  }
}
@media(max-width:640px){
  .media-choice-grid{
    grid-template-columns:1fr;
  }
  .media-choice{
    display:grid;
    grid-template-columns:96px minmax(0,1fr);
    align-items:center;
  }
  .embed-card{
    flex-basis:84vw;
    padding:24px;
    min-height:auto;
  }
  .hero-portrait{
    width:78vw;
    height:48vh;
  }
}


/* Version 14 — tighter project content and stable alignment */
.project-card-layout{
  grid-template-columns:minmax(0,1fr) minmax(330px,420px);
  align-items:center;
  min-height:100%;
  padding-top:clamp(52px,6vh,86px);
  padding-bottom:clamp(52px,6vh,86px);
}
.project-copy{
  align-self:center;
  min-height:auto;
  max-width:610px;
}
.project-copy-extra{
  margin-top:clamp(42px,6vh,76px);
}
.project-copy .description:empty{
  display:none;
}
.project-copy .responsibilities{
  margin-top:0;
  max-width:560px;
}
.project-copy .tags{
  margin-top:34px;
  row-gap:12px;
}
.project-media-menu{
  align-self:center;
  width:100%;
  max-width:420px;
  padding:20px;
}
.media-menu-label{
  display:none !important;
}
.media-choice-grid{
  display:flex;
  flex-direction:column;
  gap:14px;
}
.media-choice{
  grid-template-columns:132px minmax(0,1fr);
  min-height:78px;
}
.media-choice-thumb{
  width:132px;
  aspect-ratio:16/9;
}
.media-choice-placeholder{
  cursor:default;
}
.placeholder-thumb{
  display:grid;
  place-items:center;
  background:
    linear-gradient(135deg,rgba(255,255,255,.06),rgba(255,255,255,.015)),
    rgba(1,24,18,.52);
  border-style:dashed;
}
.placeholder-thumb::before{
  display:none;
}
.placeholder-icon{
  position:relative;
  z-index:2;
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  border:1px solid rgba(255,255,255,.42);
  border-radius:50%;
  color:rgba(255,255,255,.74);
  font-size:22px;
  font-weight:300;
}
.media-choice-placeholder .media-choice-text{
  color:rgba(255,255,255,.62);
}
.project-card .badge{
  top:28px;
  left:clamp(36px,5vw,76px);
}
.project-card .small-label{
  max-width:620px;
}
.project-card .overlay-role{
  max-width:620px;
  line-height:1.35;
}
.project-card .project-title{
  line-height:.93;
}

/* Dreadmoor and single-video cards stay visually balanced */
.project-card:has(.media-choice-grid > :only-child) .project-media-menu{
  max-width:420px;
}
.project-card:has(.media-choice-grid > :only-child) .media-choice{
  min-height:96px;
}
.project-card:has(.media-choice-grid > :only-child) .media-choice-thumb{
  width:156px;
}

/* Remove legacy showreel button if one remains from cached markup */
.project-card .card-links .link-button[href="#"]{
  display:none;
}

@media(max-width:1100px){
  .project-card-layout{
    grid-template-columns:minmax(0,1fr) minmax(300px,380px);
    padding-left:42px;
    padding-right:42px;
  }
}
@media(max-width:900px){
  .project-card-layout{
    grid-template-columns:1fr;
    align-content:end;
    padding:30px;
  }
  .project-copy-extra{
    margin-top:24px;
  }
  .project-media-menu{
    max-width:100%;
  }
  .media-choice-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .media-choice{
    display:flex;
    flex-direction:column;
    min-height:auto;
  }
  .media-choice-thumb,
  .project-card:has(.media-choice-grid > :only-child) .media-choice-thumb{
    width:100%;
  }
}
@media(max-width:620px){
  .media-choice-grid{
    grid-template-columns:1fr;
  }
  .media-choice{
    display:grid;
    grid-template-columns:96px minmax(0,1fr);
    align-items:center;
  }
  .media-choice-thumb,
  .project-card:has(.media-choice-grid > :only-child) .media-choice-thumb{
    width:96px;
  }
}

/* Version 15 — readability, mobile swipe and contact polish */
.film-scratches,
.film-flicker{
  display:none !important;
}
.film-texture{
  opacity:.30;
}
.film-grain{
  opacity:.085 !important;
  mix-blend-mode:soft-light;
  filter:contrast(.58);
  animation-duration:.22s;
}
.film-texture::before{
  opacity:.035 !important;
}
.film-texture::after{
  opacity:.18;
}

.hero-title-block{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
}
.hero-links{
  position:relative;
  z-index:4;
  display:flex;
  flex-direction:row;
  flex-wrap:wrap;
  align-items:center;
  gap:10px 18px;
  align-self:flex-start;
  max-width:none;
  margin:28px 0 0;
  font-size:11px;
}
.hero-links a{
  padding:6px 0;
  color:rgba(8,35,26,.78);
  border-bottom:1px solid rgba(8,35,26,.28);
  transition:color .25s ease,border-color .25s ease,transform .25s ease;
}
.hero-links a:hover{
  color:#071e17;
  border-color:#071e17;
  transform:translateY(-2px);
}
.hero-social-icons{
  position:relative;
  z-index:5;
  display:flex;
  align-items:center;
  gap:10px;
  margin-left:auto;
}
.hero-social-icons a{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border:1px solid rgba(8,35,26,.28);
  border-radius:50%;
  background:rgba(235,242,232,.16);
  backdrop-filter:blur(8px);
  transition:transform .25s ease,background .25s ease,border-color .25s ease;
}
.hero-social-icons a:hover{
  transform:translateY(-3px);
  background:rgba(235,242,232,.50);
  border-color:rgba(8,35,26,.62);
}
.hero-social-icons svg{
  width:19px;
  height:19px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.65;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.hero-portrait img{
  filter:grayscale(1) contrast(1.04) brightness(.86) !important;
  transform:none !important;
}
.hero-portrait::before{
  background:linear-gradient(90deg,rgba(9,46,34,.22),transparent 34%,transparent 100%);
}
.hero-portrait::after{
  background:linear-gradient(180deg,rgba(3,24,18,.02) 30%,rgba(3,24,18,.24) 100%);
}

.viewport{
  touch-action:pan-y pinch-zoom;
  overscroll-behavior-x:contain;
  -webkit-user-select:none;
  user-select:none;
}
.carousel-track{
  backface-visibility:hidden;
}
.carousel-track.is-snapping{
  transition:transform .5s cubic-bezier(.18,.82,.24,1);
}
.viewport.is-dragging{
  cursor:grabbing;
}
.viewport.is-dragging .carousel-track{
  transition:none !important;
}

.project-card .card-shade{
  background:
    linear-gradient(90deg,rgba(0,16,12,.88) 0%,rgba(0,16,12,.66) 45%,rgba(0,16,12,.36) 72%,rgba(0,16,12,.58) 100%),
    linear-gradient(180deg,rgba(0,15,11,.16) 0%,rgba(0,15,11,.30) 44%,rgba(0,15,11,.84) 100%) !important;
}
.project-card:hover .card-shade,
.project-card:focus-within .card-shade,
.project-card.is-hovered .card-shade{
  background:
    linear-gradient(90deg,rgba(0,15,11,.92) 0%,rgba(0,15,11,.72) 48%,rgba(0,15,11,.42) 74%,rgba(0,15,11,.66) 100%),
    linear-gradient(180deg,rgba(0,15,11,.22) 0%,rgba(0,15,11,.38) 44%,rgba(0,15,11,.90) 100%) !important;
}
.project-copy,
.project-media-menu{
  opacity:1 !important;
  transform:none !important;
}
.project-copy{
  position:relative;
  padding:clamp(22px,2.4vw,34px);
  border:1px solid rgba(255,255,255,.17);
  background:linear-gradient(145deg,rgba(2,26,19,.76),rgba(2,25,18,.48));
  box-shadow:0 20px 60px rgba(0,0,0,.22);
  backdrop-filter:blur(10px);
  text-shadow:0 2px 18px rgba(0,0,0,.42);
}
.project-copy-extra{
  margin-top:clamp(26px,4vh,48px);
}
.project-card .small-label{
  color:rgba(255,255,255,.82);
}
.project-card .overlay-role{
  color:#fff;
  font-weight:500;
  font-size:14px;
  letter-spacing:.025em;
}
.project-card .responsibilities{
  color:rgba(255,255,255,.90);
  font-size:13px;
  line-height:1.5;
}
.project-card .responsibilities li::before{
  color:rgba(255,255,255,.72);
}
.project-card .tag{
  background:rgba(255,255,255,.09);
  border-color:rgba(255,255,255,.38);
  color:#fff;
}
.project-media-menu{
  background:rgba(1,24,18,.82);
  border-color:rgba(255,255,255,.28);
  box-shadow:0 24px 70px rgba(0,0,0,.34);
  backdrop-filter:blur(14px);
}
.media-choice-text{
  color:#fff;
  font-weight:600;
}
.media-choice-thumb{
  border-color:rgba(255,255,255,.40);
}

.embed-card{
  background:rgba(3,35,26,.72);
  border-color:rgba(255,255,255,.25);
}
.embed-card .small-label{
  color:rgba(255,255,255,.76);
}

@media(max-width:900px){
  .hero-top{
    display:grid;
    grid-template-columns:1fr auto;
    gap:18px;
  }
  .hero-title-block{
    grid-column:1 / -1;
  }
  .hero-social-icons{
    position:absolute;
    top:0;
    right:0;
  }
  .hero-portrait{
    grid-column:1 / -1;
    filter:none !important;
    opacity:1 !important;
  }
  .project-card-layout{
    padding:26px;
    gap:18px;
  }
  .project-copy{
    padding:22px;
  }
  .project-copy-extra{
    margin-top:22px;
  }
  .project-media-menu{
    padding:16px;
  }
  .slide{
    flex-basis:min(86vw,760px);
  }
}

@media(max-width:620px){
  .section{
    padding-left:22px;
    padding-right:22px;
  }
  .carousel-section{
    padding-left:0;
  }
  .section-heading{
    margin-left:22px;
    margin-right:22px;
  }
  .viewport{
    padding-inline:7vw;
  }
  .slide{
    flex-basis:86vw;
  }
  .visual-card,
  .media-card.visual-card{
    min-height:720px;
  }
  .project-card-layout{
    padding:20px;
  }
  .project-copy{
    padding:18px;
  }
  .project-title{
    font-size:clamp(38px,12vw,58px);
  }
  .project-card .overlay-role{
    font-size:12px;
  }
  .project-copy-extra{
    margin-top:18px;
  }
  .project-copy .tags{
    margin-top:20px;
  }
  .project-card .responsibilities{
    font-size:11px;
  }
  .media-choice{
    grid-template-columns:84px minmax(0,1fr);
    gap:13px;
  }
  .media-choice-thumb,
  .project-card:has(.media-choice-grid > :only-child) .media-choice-thumb{
    width:84px;
  }
  .hero-links{
    gap:6px 14px;
    margin-top:22px;
    max-width:78%;
    font-size:9px;
  }
  .hero-social-icons{
    gap:7px;
  }
  .hero-social-icons a{
    width:36px;
    height:36px;
  }
  .hero-social-icons svg{
    width:16px;
    height:16px;
  }
  .hero-portrait{
    width:82vw;
    height:47vh;
    margin-top:32px;
  }
  .autoplay-status{
    display:none;
  }
  .carousel-controls{
    gap:5px;
  }
  .arrow{
    width:36px;
    height:36px;
  }
}

@media(prefers-reduced-motion:reduce){
  .film-grain,
  .film-texture::before{
    animation:none !important;
  }
}

/* Version 16 — deliberate click focus and transient hover reveal */
@media (hover:hover) and (pointer:fine){
  .project-card .project-copy,
  .project-card .project-media-menu{
    opacity:0 !important;
    transform:translateY(12px) !important;
    transition:opacity .3s ease,transform .36s ease !important;
  }
  .project-card:hover .project-copy,
  .project-card:hover .project-media-menu,
  .project-card.is-hovered .project-copy,
  .project-card.is-hovered .project-media-menu,
  .project-card.is-selected .project-copy,
  .project-card.is-selected .project-media-menu,
  .project-card:focus-within .project-copy,
  .project-card:focus-within .project-media-menu{
    opacity:1 !important;
    transform:translateY(0) !important;
  }
}

@media (hover:none), (pointer:coarse){
  .project-card .project-copy,
  .project-card .project-media-menu{
    opacity:0 !important;
    transform:translateY(10px) !important;
  }
  .project-card.is-selected .project-copy,
  .project-card.is-selected .project-media-menu,
  .project-card:focus-within .project-copy,
  .project-card:focus-within .project-media-menu{
    opacity:1 !important;
    transform:translateY(0) !important;
  }
}

/* Version 17 — repaired project layout and composer reel tracklist */
#projects-carousel .project-card{
  flex:0 0 min(82vw,1320px);
  min-height:clamp(650px,76vh,860px);
}
#projects-carousel .project-card-layout{
  grid-template-columns:minmax(0,1fr) minmax(360px,460px);
  gap:clamp(28px,4vw,72px);
  padding:clamp(38px,4vw,66px);
  align-items:center;
}
#projects-carousel .project-copy{
  width:100%;
  max-width:620px;
  min-width:0;
  padding:clamp(22px,2.2vw,32px);
}
#projects-carousel .project-title{
  max-width:100%;
  overflow-wrap:anywhere;
  font-size:clamp(48px,5.6vw,92px);
  line-height:.9;
}
#projects-carousel .project-copy-extra{
  margin-top:clamp(24px,3.5vh,42px);
}
#projects-carousel .description{
  max-width:58ch;
  margin-bottom:20px;
  color:rgba(255,255,255,.88);
  font-size:13px;
  line-height:1.55;
}
#projects-carousel .project-media-menu{
  justify-self:stretch;
  width:100%;
  max-width:460px;
  min-width:0;
}
#projects-carousel .media-choice{
  grid-template-columns:minmax(112px,142px) minmax(0,1fr);
}
#projects-carousel .media-choice-thumb{
  width:100%;
}
#projects-carousel .media-choice-text{
  overflow-wrap:anywhere;
}
#projects-carousel .project-card:nth-of-type(3n) .project-title{
  font-size:clamp(44px,4.8vw,78px);
}

.tracklist{
  display:grid;
  gap:22px;
  margin-top:28px;
  max-width:440px;
}
.tracklist-group h4{
  margin:0 0 8px;
  font:600 12px/1.3 Manrope,sans-serif;
  letter-spacing:.04em;
  color:#fff;
}
.track-row a{
  display:grid;
  grid-template-columns:48px minmax(0,1fr);
  gap:10px;
  padding:4px 0;
  color:rgba(255,255,255,.78);
  font-size:11px;
  line-height:1.35;
  transition:color .2s ease,transform .2s ease;
}
.track-row a:hover{
  color:#fff;
  transform:translateX(3px);
}
.track-row time{
  font-variant-numeric:tabular-nums;
  color:rgba(255,255,255,.48);
}
.music-embed-card:has(.tracklist){
  grid-template-columns:minmax(330px,.42fr) minmax(0,.58fr);
  min-height:clamp(590px,72vh,800px);
}

@media(max-width:1100px){
  #projects-carousel .project-card{
    flex-basis:min(88vw,1040px);
  }
  #projects-carousel .project-card-layout{
    grid-template-columns:minmax(0,1fr) minmax(300px,380px);
    padding:34px;
  }
  #projects-carousel .project-title{
    font-size:clamp(44px,6.2vw,74px);
  }
  .music-embed-card:has(.tracklist){
    grid-template-columns:minmax(280px,.44fr) minmax(0,.56fr);
  }
}
@media(max-width:820px){
  #projects-carousel .project-card{
    flex-basis:88vw;
    min-height:780px;
  }
  #projects-carousel .project-card-layout{
    grid-template-columns:1fr;
    align-content:end;
    gap:18px;
    padding:24px;
  }
  #projects-carousel .project-copy{
    max-width:none;
  }
  #projects-carousel .project-copy-extra{
    display:block;
    margin-top:20px;
  }
  #projects-carousel .project-media-menu{
    max-width:none;
  }
  #projects-carousel .media-choice-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  #projects-carousel .media-choice{
    display:grid;
    grid-template-columns:90px minmax(0,1fr);
  }
  .music-embed-card:has(.tracklist){
    grid-template-columns:1fr;
    min-height:auto;
  }
  .tracklist{
    max-width:none;
  }
}
@media(max-width:560px){
  #projects-carousel .project-card{
    flex-basis:88vw;
    min-height:760px;
  }
  #projects-carousel .project-title,
  #projects-carousel .project-card:nth-of-type(3n) .project-title{
    font-size:clamp(40px,13vw,62px);
  }
  #projects-carousel .project-copy-extra{
    display:none;
  }
  #projects-carousel .media-choice-grid{
    grid-template-columns:1fr;
  }
  .track-row a{
    grid-template-columns:44px minmax(0,1fr);
  }
}

/* Version 18 — social labels, music platforms and temporary card focus */
.hero-social-icons .social-icon-link{
  position:relative;
  overflow:visible;
}
.hero-social-icons .social-icon-cv{
  width:auto;
  min-width:58px;
  padding:0 11px;
  gap:7px;
  border-radius:999px;
}
.hero-social-icons .social-icon-cv svg{
  width:18px;
  height:18px;
}
.social-icon-caption{
  font:700 10px/1 Manrope,sans-serif;
  letter-spacing:.12em;
}
.linkedin-mark{
  display:block;
  font:700 21px/1 Arial,sans-serif;
  letter-spacing:-.08em;
  transform:translateX(-1px);
}
.music-platform-links{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:24px;
}
.music-platform-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:38px;
  padding:9px 13px;
  border:1px solid rgba(255,255,255,.25);
  border-radius:999px;
  color:rgba(255,255,255,.88);
  font:600 10px/1 Manrope,sans-serif;
  letter-spacing:.08em;
  text-transform:uppercase;
  transition:background .2s ease,border-color .2s ease,transform .2s ease;
}
.music-platform-link:hover{
  background:rgba(255,255,255,.10);
  border-color:rgba(255,255,255,.55);
  transform:translateY(-2px);
}
.platform-icon{
  display:grid;
  place-items:center;
  width:18px;
  height:18px;
  font-size:16px;
  line-height:1;
}
@media(max-width:560px){
  .hero-social-icons .social-icon-cv{min-width:54px;padding:0 9px}
  .music-platform-links{margin-top:18px}
}

/* Version 19 — standalone showreel playlist and final layout hardening */
.showreel-section{
  overflow:hidden;
}
#showreel-content{
  width:100%;
}
.showreel-card{
  display:grid;
  grid-template-columns:minmax(260px,.72fr) minmax(0,1.55fr);
  gap:clamp(28px,5vw,84px);
  align-items:center;
  min-height:clamp(520px,66vw,760px);
  padding:clamp(28px,5vw,72px);
  border:1px solid rgba(255,255,255,.18);
  background:
    radial-gradient(circle at 16% 20%,rgba(95,152,125,.24),transparent 32%),
    linear-gradient(135deg,rgba(13,48,39,.96),rgba(4,24,21,.98));
  box-shadow:0 28px 80px rgba(0,0,0,.24);
}
.showreel-copy{
  align-self:center;
  max-width:430px;
}
.showreel-copy h3{
  margin:12px 0 22px;
  font:500 clamp(62px,8vw,126px)/.86 Manrope,sans-serif;
  letter-spacing:-.065em;
}
.showreel-copy p:not(.small-label){
  max-width:36ch;
  margin:0 0 28px;
  color:rgba(255,255,255,.72);
  font-size:clamp(15px,1.3vw,19px);
  line-height:1.6;
}
.showreel-link{
  display:inline-flex;
  align-items:center;
  min-height:48px;
  padding:13px 18px;
  border:1px solid rgba(255,255,255,.3);
  border-radius:999px;
  color:#fff;
  font:600 11px/1 Manrope,sans-serif;
  letter-spacing:.08em;
  text-transform:uppercase;
  transition:background .2s ease,border-color .2s ease,transform .2s ease;
}
.showreel-link:hover{
  background:rgba(255,255,255,.1);
  border-color:rgba(255,255,255,.62);
  transform:translateY(-2px);
}
.showreel-player{
  position:relative;
  width:100%;
  aspect-ratio:16/9;
  min-width:0;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.18);
  background:#111;
  box-shadow:0 20px 55px rgba(0,0,0,.28);
}
.showreel-player iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
}
/* Prevent long labels from escaping media cards on narrower desktop widths. */
.media-choice-text,
.project-title,
.media-title,
.track-row span{
  overflow-wrap:anywhere;
}
.youtube-embed-wrap,
.spotify-embed-wrap,
.project-media-menu{
  min-width:0;
}
@media(max-width:980px){
  .showreel-card{
    grid-template-columns:1fr;
    min-height:auto;
  }
  .showreel-copy{
    max-width:680px;
  }
  .showreel-copy h3{
    font-size:clamp(58px,12vw,104px);
  }
}
@media(max-width:560px){
  .showreel-card{
    gap:28px;
    padding:24px;
  }
  .showreel-copy h3{
    margin-bottom:18px;
    font-size:clamp(50px,17vw,76px);
  }
  .showreel-copy p:not(.small-label){
    margin-bottom:22px;
  }
  .showreel-link{
    width:100%;
    justify-content:center;
    text-align:center;
  }
}

/* Version 19 — standalone showreel playlist and final layout hardening */
.showreel-section{overflow:hidden}
#showreel-content{width:100%}
.showreel-card{
  display:grid;
  grid-template-columns:minmax(260px,.72fr) minmax(0,1.55fr);
  gap:clamp(28px,5vw,84px);
  align-items:center;
  min-height:clamp(520px,66vw,760px);
  padding:clamp(28px,5vw,72px);
  border:1px solid rgba(255,255,255,.18);
  background:radial-gradient(circle at 16% 20%,rgba(95,152,125,.24),transparent 32%),linear-gradient(135deg,rgba(13,48,39,.96),rgba(4,24,21,.98));
  box-shadow:0 28px 80px rgba(0,0,0,.24)
}
.showreel-copy{align-self:center;max-width:430px}
.showreel-copy h3{
  margin:12px 0 22px;
  font:500 clamp(62px,8vw,126px)/.86 Manrope,sans-serif;
  letter-spacing:-.065em
}
.showreel-copy p:not(.small-label){
  max-width:36ch;
  margin:0 0 28px;
  color:rgba(255,255,255,.72);
  font-size:clamp(15px,1.3vw,19px);
  line-height:1.6
}
.showreel-link{
  display:inline-flex;align-items:center;min-height:48px;padding:13px 18px;
  border:1px solid rgba(255,255,255,.3);border-radius:999px;color:#fff;
  font:600 11px/1 Manrope,sans-serif;letter-spacing:.08em;text-transform:uppercase;
  transition:background .2s ease,border-color .2s ease,transform .2s ease
}
.showreel-link:hover{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.62);transform:translateY(-2px)}
.showreel-player{
  position:relative;width:100%;aspect-ratio:16/9;min-width:0;overflow:hidden;
  border:1px solid rgba(255,255,255,.18);background:#111;box-shadow:0 20px 55px rgba(0,0,0,.28)
}
.showreel-player iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.media-choice-text,.project-title,.media-title,.track-row span{overflow-wrap:anywhere}
.youtube-embed-wrap,.spotify-embed-wrap,.project-media-menu{min-width:0}
@media(max-width:980px){
  .showreel-card{grid-template-columns:1fr;min-height:auto}
  .showreel-copy{max-width:680px}
  .showreel-copy h3{font-size:clamp(58px,12vw,104px)}
}
@media(max-width:560px){
  .showreel-card{gap:28px;padding:24px}
  .showreel-copy h3{margin-bottom:18px;font-size:clamp(50px,17vw,76px)}
  .showreel-copy p:not(.small-label){margin-bottom:22px}
  .showreel-link{width:100%;justify-content:center;text-align:center}
}

/* Version 20 — centered controls, showreel alignment, education and contrast polish */
@media (min-width: 561px){
  .carousel-section .section-heading{
    position:relative;
    min-height:clamp(112px,10vw,160px);
  }
  .carousel-section .carousel-controls{
    position:absolute;
    left:50%;
    bottom:2px;
    transform:translateX(-50%);
    justify-content:center;
    z-index:4;
  }
}

.about-side{min-width:0}
.education-block{
  margin-top:clamp(38px,5vh,64px);
  padding-top:24px;
  border-top:1px solid var(--line);
}
.education-list{display:grid;gap:18px}
.education-item{display:grid;gap:4px}
.education-item strong{
  font:600 14px/1.35 Manrope,sans-serif;
  letter-spacing:-.01em;
}
.education-item span{
  color:var(--muted);
  font-size:12px;
  line-height:1.45;
}

.contact-section,
.contact-section .eyebrow,
.contact-section .contact-row,
.contact-section .contact-row span,
.contact-section .contact-row span:last-child,
.contact-section footer,
.contact-section footer a{
  color:#090909 !important;
}
.contact-section .contact-row:hover span:last-child{opacity:.62}

/* Keep the title clear of the portrait on wide screens. */
@media (min-width: 1101px){
  .hero-title-block{width:min(50%,700px)}
  .hero-portrait{
    right:6vw;
    width:clamp(250px,25vw,450px);
  }
  .hero-title-block h1{font-size:clamp(72px,10.8vw,172px)}
}

.showreel-card{
  grid-template-columns:minmax(310px,.9fr) minmax(520px,1.35fr);
  gap:clamp(36px,5vw,74px);
  min-height:clamp(500px,56vw,690px);
  padding:clamp(34px,4.5vw,66px);
}
.showreel-copy{max-width:520px;min-width:0}
.showreel-copy h3{
  font-size:clamp(58px,6.5vw,108px);
  line-height:.9;
  overflow:visible;
  overflow-wrap:normal;
  word-break:normal;
}
.showreel-player{align-self:center}

@media(max-width:1100px){
  .showreel-card{grid-template-columns:1fr;min-height:auto}
  .showreel-copy{max-width:700px}
  .showreel-copy h3{font-size:clamp(58px,11vw,100px)}
}
@media(max-width:560px){
  .carousel-section .carousel-controls{
    width:100%;
    justify-content:center;
  }
  .education-block{margin-top:34px}
  .showreel-copy h3{font-size:clamp(48px,16vw,72px)}
}

/* Version 21 — media lifecycle, fuller soundtrack card and stronger touch axis locking */
.viewport{
  overscroll-behavior-inline:contain;
  -webkit-overflow-scrolling:touch;
}

/* The soundtrack release now uses the available card area instead of leaving a large empty field. */
.music-embed-card:has(.standalone-spotify){
  grid-template-columns:minmax(320px,.48fr) minmax(520px,1.12fr);
  min-height:clamp(500px,58vh,650px);
  gap:clamp(34px,5vw,78px);
}
.music-embed-card:has(.standalone-spotify) .embed-card-copy{
  max-width:430px;
}
.music-embed-card:has(.standalone-spotify) .media-title{
  font-size:clamp(48px,5.4vw,86px);
  line-height:.91;
  overflow-wrap:normal;
  word-break:normal;
  hyphens:none;
}
.music-description{
  max-width:38ch;
  margin:22px 0 0;
  color:rgba(255,255,255,.7);
  font-size:clamp(14px,1.15vw,18px);
  line-height:1.58;
}
.music-embed-card:has(.standalone-spotify) .standalone-spotify{
  min-height:420px;
  display:flex;
  align-items:stretch;
  background:#191919;
  box-shadow:0 24px 70px rgba(0,0,0,.28);
}
.music-embed-card:has(.standalone-spotify) .standalone-spotify iframe{
  height:420px;
}
.music-embed-card:has(.standalone-spotify) .embed-card-links{
  grid-column:2;
  align-self:start;
  margin-top:-26px;
}

/* Make the playlist itself the visual focus and keep the full YouTube controls available. */
.showreel-player{
  min-height:clamp(360px,36vw,570px);
  aspect-ratio:16/9;
}
.showreel-player iframe{
  color-scheme:dark;
}

@media(max-width:1100px){
  .music-embed-card:has(.standalone-spotify){
    grid-template-columns:1fr;
  }
  .music-embed-card:has(.standalone-spotify) .embed-card-copy{
    max-width:720px;
  }
  .music-embed-card:has(.standalone-spotify) .embed-card-links{
    grid-column:1;
    margin-top:0;
  }
}

@media(max-width:760px){
  .viewport{
    touch-action:pan-y pinch-zoom;
  }
  .viewport.is-dragging{
    touch-action:none;
    user-select:none;
    -webkit-user-select:none;
  }
  .music-embed-card:has(.standalone-spotify){
    min-height:auto;
  }
  .music-embed-card:has(.standalone-spotify) .media-title{
    font-size:clamp(42px,13vw,68px);
  }
  .music-embed-card:has(.standalone-spotify) .standalone-spotify,
  .music-embed-card:has(.standalone-spotify) .standalone-spotify iframe{
    min-height:352px;
    height:352px;
  }
  .showreel-player{
    min-height:0;
  }
}

/* Version 22 — repaired soundtrack layout and transient card selection */
.music-embed-card:has(.standalone-spotify){
  flex:0 0 min(88vw,1360px);
  grid-template-columns:minmax(320px,.42fr) minmax(560px,.58fr);
  gap:clamp(36px,4.5vw,72px);
  padding:clamp(34px,4.5vw,68px);
  overflow:hidden;
}
.music-embed-card:has(.standalone-spotify) .embed-card-copy{
  width:100%;
  max-width:480px;
  min-width:0;
  align-self:center;
}
.music-embed-card:has(.standalone-spotify) .media-title{
  max-width:8.6ch;
  font-size:clamp(46px,4.25vw,72px);
  line-height:.93;
  letter-spacing:-.052em;
  overflow-wrap:break-word;
  word-break:normal;
  hyphens:none;
}
.music-embed-card:has(.standalone-spotify) .standalone-spotify{
  width:100%;
  min-width:0;
  min-height:430px;
}
.music-embed-card:has(.standalone-spotify) .standalone-spotify iframe{
  width:100%;
  height:430px;
}
.music-embed-card:has(.standalone-spotify) .embed-card-links{
  grid-column:2;
  justify-self:start;
  margin-top:-22px;
}

@media(max-width:1180px){
  .music-embed-card:has(.standalone-spotify){
    grid-template-columns:minmax(270px,.4fr) minmax(460px,.6fr);
  }
  .music-embed-card:has(.standalone-spotify) .media-title{
    font-size:clamp(42px,4.8vw,64px);
  }
}
@media(max-width:980px){
  .music-embed-card:has(.standalone-spotify){
    grid-template-columns:1fr;
    flex-basis:min(88vw,900px);
  }
  .music-embed-card:has(.standalone-spotify) .embed-card-copy{
    max-width:760px;
  }
  .music-embed-card:has(.standalone-spotify) .media-title{
    max-width:13ch;
  }
  .music-embed-card:has(.standalone-spotify) .embed-card-links{
    grid-column:1;
    margin-top:0;
  }
}

/* Version 23 — launch polish, accessibility, mobile gesture hardening and social metadata */
html{scroll-behavior:smooth;overscroll-behavior-x:none}
body{overflow-x:hidden}
.skip-link{
  position:fixed;left:18px;top:18px;z-index:3000;
  padding:11px 15px;background:#0a0a0a;color:#fff;
  transform:translateY(-160%);transition:transform .2s ease;
  font:600 12px/1 Manrope,sans-serif;letter-spacing:.08em;text-transform:uppercase;
}
.skip-link:focus{transform:translateY(0)}
:focus-visible{outline:2px solid currentColor;outline-offset:4px}
button:focus-visible,a:focus-visible{border-radius:3px}

/* Delicate entrance motion, disabled automatically for reduced motion users. */
.reveal-on-scroll{
  opacity:0;transform:translate3d(0,28px,0);
  transition:opacity .8s ease var(--reveal-delay,0ms),transform .9s cubic-bezier(.2,.75,.2,1) var(--reveal-delay,0ms);
}
.reveal-on-scroll.is-visible{opacity:1;transform:none}

/* Improve the control's visual prominence without turning it into a dominant CTA. */
.autoplay-status{
  color:#111;border-color:rgba(10,10,10,.66);background:rgba(235,244,226,.58);
  box-shadow:0 5px 18px rgba(12,44,29,.08);
}
.autoplay-status:hover,.autoplay-status.paused{background:rgba(238,244,230,.9);color:#070707}

/* Stable card sizing and text wrapping at intermediate desktop widths. */
.slide{contain:layout paint;isolation:isolate}
.project-title,.media-title{overflow-wrap:normal;word-break:normal;hyphens:none}
.card-background{content-visibility:auto}

/* The Spotify release is kept dense but never lets the title collide with the player. */
.music-embed-card:has(.standalone-spotify){
  grid-template-columns:minmax(300px,420px) minmax(560px,1fr);
  align-items:center;
}
.music-embed-card:has(.standalone-spotify) .media-title{
  max-width:7.8ch;font-size:clamp(44px,4vw,68px);
}
.music-embed-card:has(.standalone-spotify) .embed-card-links{
  grid-column:2;margin-top:-18px;
}

/* Clear separation and consistent alignment for the standalone showreel. */
.showreel-card{align-items:center}
.showreel-copy{position:relative;z-index:2}
.showreel-player{width:100%;overflow:hidden;border:1px solid rgba(255,255,255,.15);box-shadow:0 28px 80px rgba(0,0,0,.25)}

/* Contacts must remain readable over the shifting project wash. */
.contact-section::before{
  content:"";position:absolute;inset:0;z-index:-1;
  background:linear-gradient(110deg,rgba(222,235,215,.35),rgba(195,222,198,.18));
  backdrop-filter:blur(1px);
}
.contact-section{position:relative}
.contact-row{transition:background-color .22s ease,padding .22s ease}
.contact-row:hover{background:rgba(255,255,255,.18);padding-inline:12px}

@media(max-width:1100px){
  .music-embed-card:has(.standalone-spotify){grid-template-columns:1fr;padding:34px}
  .music-embed-card:has(.standalone-spotify) .embed-card-copy{max-width:720px}
  .music-embed-card:has(.standalone-spotify) .media-title{max-width:12ch}
  .music-embed-card:has(.standalone-spotify) .embed-card-links{grid-column:1;margin-top:0}
}

@media(max-width:760px){
  /* pan-y lets the browser own deliberate vertical scrolling, while JS captures clear horizontal swipes. */
  .viewport{touch-action:pan-y;overscroll-behavior-x:contain;-webkit-user-select:none;user-select:none}
  .viewport iframe,.viewport a,.viewport button{touch-action:manipulation}
  .viewport.is-dragging{touch-action:none}
  .carousel-track{will-change:transform}
  .slide{contain:layout paint}
  .carousel-controls{gap:7px}
  .autoplay-status{max-width:48vw;overflow:hidden;text-overflow:ellipsis}
  .music-embed-card:has(.standalone-spotify){padding:24px;gap:24px}
  .music-embed-card:has(.standalone-spotify) .standalone-spotify,
  .music-embed-card:has(.standalone-spotify) .standalone-spotify iframe{height:380px;min-height:380px}
  .contact-row{grid-template-columns:.7fr 1.3fr;gap:12px}
  .contact-row span:last-child{overflow-wrap:anywhere}
}

@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .reveal-on-scroll{opacity:1;transform:none;transition:none}
}


/* v25: mobile carousels use arrow-only navigation */
@media (max-width: 760px) {
  .autoplay-status { display: none !important; }
  .carousel {
    touch-action: pan-y pinch-zoom !important;
    overscroll-behavior-x: contain;
  }
  .carousel-track {
    transition: transform .62s cubic-bezier(.22,.75,.18,1);
  }
  .carousel.is-dragging .carousel-track {
    transition: transform .62s cubic-bezier(.22,.75,.18,1);
  }
  .carousel-controls {
    justify-content: center;
  }
}


/* v26: stable mobile project cards and centre-driven reveal */
@media (max-width: 760px) {
  /* Mobile is manual-only: do not visually dim every card just because autoplay is paused. */
  .carousel.is-paused .slide,
  .carousel.is-paused .slide:hover,
  .carousel.is-paused .slide:focus,
  .carousel .slide,
  .carousel .slide.is-mobile-active {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    box-shadow: none !important;
  }

  .carousel.is-hovering .slide,
  .carousel.is-hovering .slide.is-hovered {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }

  /* Avoid the sticky :focus-within darkening that touch browsers keep after a tap. */
  .visual-card:focus-within .card-background,
  .visual-card:hover .card-background {
    transform: scale(1.015) !important;
    filter: none !important;
  }
  .project-card:hover .card-shade,
  .project-card:focus-within .card-shade,
  .project-card.is-hovered .card-shade,
  .project-card.is-selected .card-shade {
    background:
      linear-gradient(180deg,rgba(0,18,14,.04) 0%,rgba(0,18,14,.12) 32%,rgba(0,18,14,.82) 100%),
      linear-gradient(90deg,rgba(0,18,14,.52),rgba(0,18,14,.12) 74%) !important;
  }

  .viewport {
    padding-inline: 6vw !important;
  }
  .slide,
  .media-card,
  #projects-carousel .project-card {
    flex: 0 0 88vw !important;
    width: 88vw !important;
    max-width: 88vw !important;
  }

  /* Let project cards grow with their content instead of forcing panels outside a fixed-height cover. */
  #projects-carousel .project-card {
    min-height: 0 !important;
    height: auto !important;
    overflow: hidden;
  }
  #projects-carousel .project-card-layout {
    position: relative !important;
    inset: auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    align-items: stretch !important;
    gap: 14px !important;
    min-height: 760px;
    padding: clamp(300px, 76vw, 390px) 14px 16px !important;
    pointer-events: none;
  }
  #projects-carousel .project-copy,
  #projects-carousel .project-media-menu {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
  }
  #projects-carousel .project-copy {
    align-self: stretch !important;
    padding: 18px !important;
  }
  #projects-carousel .project-title,
  #projects-carousel .project-card:nth-of-type(3n) .project-title {
    max-width: 100% !important;
    font-size: clamp(34px, 10.5vw, 48px) !important;
    line-height: .92 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
  }
  #projects-carousel .project-copy-extra {
    display: block !important;
    margin-top: 18px !important;
  }
  #projects-carousel .description {
    font-size: 12px !important;
    line-height: 1.5 !important;
    margin-bottom: 14px !important;
  }
  #projects-carousel .responsibilities {
    font-size: 11px !important;
    line-height: 1.45 !important;
    gap: 5px !important;
  }
  #projects-carousel .project-copy .tags {
    margin-top: 16px !important;
  }
  #projects-carousel .tag {
    padding: 7px 9px !important;
    font-size: 8px !important;
  }
  #projects-carousel .project-media-menu {
    align-self: stretch !important;
    padding: 14px !important;
    pointer-events: auto;
  }
  #projects-carousel .media-choice-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  #projects-carousel .media-choice {
    display: grid !important;
    grid-template-columns: 82px minmax(0,1fr) !important;
    align-items: center !important;
    gap: 12px !important;
  }
  #projects-carousel .media-choice-thumb,
  #projects-carousel .project-card:has(.media-choice-grid > :only-child) .media-choice-thumb {
    width: 82px !important;
  }

  /* The centred card is the open card on touch devices. No tap is required. */
  .project-card .project-copy,
  .project-card .project-media-menu {
    opacity: 0 !important;
    transform: translateY(8px) !important;
    pointer-events: none !important;
    transition: opacity .26s ease, transform .34s ease !important;
  }
  .project-card.is-mobile-active .project-copy,
  .project-card.is-mobile-active .project-media-menu {
    opacity: 1 !important;
    transform: none !important;
  }
  .project-card.is-mobile-active .project-media-menu {
    pointer-events: auto !important;
  }

  /* Same centre-open rule for any overlay-based cards used in other carousels. */
  .slide .card-overlay {
    opacity: 0 !important;
    transform: translateY(8px) !important;
    pointer-events: none !important;
  }
  .slide.is-mobile-active .card-overlay {
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }
}

@media (max-width: 430px) {
  #projects-carousel .project-card-layout {
    min-height: 720px;
    padding-top: clamp(270px, 73vw, 330px) !important;
  }
  #projects-carousel .project-title,
  #projects-carousel .project-card:nth-of-type(3n) .project-title {
    font-size: clamp(32px, 10vw, 43px) !important;
  }
}

/* v27: mobile cards are permanently expanded; swipe is card-scoped and axis-locked */
@media (max-width: 760px) {
  /* No entrance/reveal animation on mobile. Content is immediately available. */
  .reveal-on-scroll,
  .section,
  .slide,
  .project-card .project-copy,
  .project-card .project-media-menu,
  .slide .card-overlay {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }

  /* All cards stay open regardless of centre, focus or previous taps. */
  .project-card .project-copy,
  .project-card .project-media-menu,
  .slide .card-overlay {
    pointer-events: auto !important;
  }

  /* The page owns vertical gestures. Only a gesture begun on a card may become horizontal. */
  .carousel,
  .viewport {
    touch-action: pan-y pinch-zoom !important;
    overscroll-behavior-x: contain;
  }
  .carousel .slide {
    touch-action: pan-y !important;
    -webkit-user-select: none;
    user-select: none;
  }
  .carousel .slide iframe,
  .carousel .slide a,
  .carousel .slide button {
    touch-action: manipulation !important;
  }
  .viewport.is-dragging,
  .viewport.is-dragging .slide {
    touch-action: none !important;
  }

  /* Avoid accidental visual state changes after tapping on iOS. */
  .carousel .slide:focus,
  .carousel .slide:focus-within,
  .carousel .slide:active,
  .carousel .slide.is-mobile-active,
  .carousel .slide.is-selected,
  .carousel .slide.is-hovered {
    opacity: 1 !important;
    filter: none !important;
    box-shadow: none !important;
  }

  .project-card .card-shade,
  .project-card:hover .card-shade,
  .project-card:focus-within .card-shade,
  .project-card.is-hovered .card-shade,
  .project-card.is-selected .card-shade,
  .project-card.is-mobile-active .card-shade {
    background:
      linear-gradient(180deg,rgba(0,18,14,.03) 0%,rgba(0,18,14,.10) 28%,rgba(0,18,14,.84) 100%),
      linear-gradient(90deg,rgba(0,18,14,.50),rgba(0,18,14,.10) 78%) !important;
  }
}

/* v29: interaction mode — immediate crisp cards, temporary pause, delayed auto-resume */
@media (hover:hover) and (pointer:fine) {
  .carousel.is-engaged .slide,
  .carousel.is-engaged .slide:hover,
  .carousel.is-engaged .slide:focus,
  .carousel.is-engaged .slide.is-hovered,
  .carousel.is-engaged .slide.is-selected {
    filter: none !important;
    opacity: 1 !important;
    transform: none !important;
    box-shadow: none !important;
  }

  .carousel.is-engaged .project-card .project-copy,
  .carousel.is-engaged .project-card .project-media-menu,
  .carousel.is-engaged .slide .card-overlay {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  .carousel.is-engaged .project-card .project-media-menu,
  .carousel.is-engaged .slide .card-overlay {
    pointer-events: auto !important;
  }

  .carousel.is-engaged .project-card .card-shade,
  .carousel.is-engaged .project-card:hover .card-shade,
  .carousel.is-engaged .project-card:focus-within .card-shade {
    background:
      linear-gradient(180deg,rgba(0,18,14,.05) 0%,rgba(0,18,14,.13) 28%,rgba(0,18,14,.84) 100%),
      linear-gradient(90deg,rgba(0,18,14,.58),rgba(0,18,14,.12) 76%) !important;
  }
}

/* Never blur cards while the track is snapping after a swipe or arrow click. */
.carousel-track.is-snapping .slide,
.carousel.is-dragging .slide {
  filter: none !important;
  opacity: 1 !important;
}

/* v30: autoplay status controls removed; autoplay resumes shortly after leaving a carousel section. */
.autoplay-status{display:none !important}
