/* Modern base */
* { box-sizing: border-box; }
:root {
  /* Core theme colors */
  /* Core theme colors */
  --bg: #0a0a0a;
  --fg: #f5f5f5;
  --muted: #b8b8b8;
  --line: rgba(255,255,255,.08);

  /* Layout */
  --gutter: clamp(12px, 3vw, 32px);
  --maxw: 1440px;
  --radius: 999px;
  --header-h: clamp(56px, 7.5vh, 76px);
n  /* Fonts */
  /* Work section background mask stops */
  --work-mask-stop: 18%;
  --work-mask-fade: 14%;
  --work-mask-end: 100%;
}
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }

.container { width: min(var(--maxw), 100% - var(--gutter) * 2); margin-inline: auto; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(10,10,10,.55);
  backdrop-filter: blur(10px) saturate(140%);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.logo {
  font-weight: 700; letter-spacing: .02em; font-size: clamp(1rem, 1.2vw, 1.125rem);
  padding: .4rem .7rem; border: 1px solid var(--line); border-radius: .6rem; background: rgba(255,255,255,.02);
}
.sound-toggle {
  display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .75rem;
  border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255,255,255,.03);
  color: var(--fg); cursor: pointer;
}
.sound-toggle .dot { width: 8px; height: 8px; border-radius: 999px; background: rgba(255,255,255,.35); box-shadow: 0 0 0 0 rgba(255,255,255,0); transition: background .2s ease, box-shadow .2s ease; }
.sound-toggle.is-on .dot { background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,.15); }
.sound-toggle .label { font-size: .9rem; opacity: .85; }

/* Hero */
.hero { position: relative; min-height: 100svh; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center;
  filter: brightness(.6) contrast(1.05) saturate(0);
}
/* Soft vintage black overlay */
.hero__film { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply; background:
  radial-gradient(65% 70% at 50% 35%, rgba(0,0,0,0) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.75) 100%),
  linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,.35) 35%, rgba(0,0,0,.7) 100%); }
/* Animated noise/grain overlay */
.hero__noise { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light; opacity: .18; z-index: -1; }
.hero__noise rect { fill: #000; }

.hero__inner {
  position: relative; display: grid; gap: clamp(18px, 2.6vw, 28px); align-content: center;
  min-height: 100svh; padding-block: clamp(40px, 12vh, 160px);
  justify-items: start;
}
.kicker { letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.65); font-size: .8rem; }
.hero__inner h1 {
  margin: 0; font-size: clamp(2.8rem, 8.5vw, 6.8rem); line-height: .98; letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff, #dcdcdc); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { max-width: 70ch; color: var(--muted); margin: 0; }

.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .cta { justify-content: flex-start; }
.btn {
  display: inline-flex; align-items: center; gap: .6rem; padding: .75rem 1.05rem; border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: transform .18s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: #ffffff; color: #0a0a0a; border-color: transparent; font-weight: 600; }
.btn--primary:hover { background: #eaeaea; }
.btn--quiet { background: rgba(255,255,255,.04); color: #fff; }
.btn--quiet:hover { background: rgba(255,255,255,.10); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(4px); }

.meta { display: flex; gap: 10px; flex-wrap: wrap; color: rgba(255,255,255,.65); font-size: .9rem; }
.meta span { display: inline-flex; align-items: center; gap: .6rem; padding: .35rem .6rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.03); }

.scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: .6rem; color: rgba(255,255,255,.7); }
.scroll .mouse { width: 18px; height: 28px; border: 1px solid rgba(255,255,255,.5); border-radius: 10px; position: relative; }
.scroll .mouse::after { content: ""; position: absolute; top: 6px; left: 50%; width: 2px; height: 6px; transform: translateX(-50%); background: #fff; border-radius: 1px; animation: wheel 1.6s ease-in-out infinite; }
.scroll .text { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
@keyframes wheel { 0% { opacity: 0; transform: translate(-50%, -4px);} 20% { opacity: 1;} 60% { transform: translate(-50%, 6px);} 100% { opacity: 0; transform: translate(-50%, 14px);} }

/* Animated noise motion */
@keyframes work-noise-shift {
  0% { background-position: 0 0; opacity: .22; }
  25% { background-position: 50px -40px; opacity: .26; }
  50% { background-position: -30px 60px; opacity: .24; }
  75% { background-position: 40px 30px; opacity: .28; }
  100% { background-position: 0 0; opacity: .22; }
}
/* Enable noise animation only while any card is hovered/focused */
.cards:has(.cardx.is-hover) > .work-bg::after,
.cards:has(.cardx:hover) > .work-bg::after,
#work.has-card-hover > .work-bg::after {
  opacity: .28;
  animation: work-noise-shift 8s linear infinite;
}

/* Showreel section (cinematic fade transition) */
.reel { position: relative; height: 400svh; }
.reel__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; isolation: isolate; will-change: opacity; scroll-margin-top: calc(var(--header-h, 0px) + env(safe-area-inset-top, 0px)); }
.reel__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; will-change: transform, filter; transform: scale(calc(1.08 - 0.08 * var(--p, 0))) translateY(calc((1 - var(--p, 0)) * 4vh)); filter: brightness(calc(.4 + .6 * var(--p, 0))) contrast(1.05); z-index: 0; }
.reel__veil { position: absolute; inset: 0; background: #000; opacity: calc(1 - var(--p, 0)); pointer-events: none; z-index: 1; }


/* Reel YouTube CTA */
.reel__cta { 
  position: absolute; 
  right: 20px; 
  bottom: 20px; 
  z-index: 10;
  pointer-events: auto;
}
.youtube-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: rgba(0,0,0,.8);
  backdrop-filter: blur(12px) saturate(150%);
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}
.youtube-cta-btn:hover {
  background: rgba(255,0,0,.8);
  border-color: rgba(255,0,0,.6);
  transform: translateY(-1px);
}
.youtube-cta-btn:active {
  transform: translateY(0);
}
.youtube-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Cards (immersive minimalist grid) */
.cards { position: relative; background: var(--bg); padding-block: clamp(48px, 8vh, 120px) clamp(64px, 10vh, 140px); overflow: hidden; }
.cards__header { display: none; }
/***** New section head *****/
.section-head { display: grid; justify-items: center; text-align: center; gap: clamp(8px, 1.8vw, 16px); margin-bottom: clamp(28px, 7vh, 72px); }
.section-head__eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: .78rem; color: rgba(255,255,255,.58); }
.section-head__title { margin: 0; font-size: clamp(2.2rem, 7vw, 3.6rem); line-height: 1.04; letter-spacing: -0.015em; }
.section-head__rule { width: clamp(64px, 10vw, 120px); height: 1px; background: linear-gradient(90deg, rgba(255,255,255,.55), rgba(255,255,255,.1)); transform-origin: center; transform: scaleX(0); }
.section-head__desc { margin: 0; color: var(--muted); max-width: 68ch; }
.section-head__credits { margin: .6rem 0 0; padding: 0; list-style: none; display: grid; gap: 4px; color: var(--muted); font-size: .95rem; }
.section-head__credits li { opacity: .95; }
/* Left section alternate typography (simple, robust) */
.section-head__title {
  margin: 0;
  font-size: clamp(2.4rem, 6.2vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 800;
  background: linear-gradient(180deg, #ffffff, #d8d8d8 55%, #bfbfbf);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 1px 30px rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}
/* Support gradient within child spans too */
.section-head__title .title-text,
.section-head__title .title-ghost {
  display: inline-block;
  background: linear-gradient(180deg, #ffffff, #d8d8d8 55%, #bfbfbf);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  will-change: transform, opacity, clip-path, filter;
}
.section-head__title .title-ghost { position: absolute; inset: 0 auto auto 0; }
/* Wipe reveal animations (smoother) */
@keyframes title-wipe-in {
  0% { opacity: 0; clip-path: inset(0 100% 0 0); transform: translateY(12%); filter: blur(4px); }
  40% { opacity: .85; clip-path: inset(0 38% 0 0); filter: blur(1.2px); }
  100% { opacity: 1; clip-path: inset(0 0 0 0); transform: translateY(0); filter: blur(0); }
}
@keyframes title-wipe-out {
  0% { opacity: 1; clip-path: inset(0 0 0 0); transform: translateY(0); filter: blur(0); }
  60% { opacity: .4; clip-path: inset(0 0 0 58%); filter: blur(1px); }
  100% { opacity: 0; clip-path: inset(0 0 0 100%); transform: translateY(-6%); filter: blur(2px); }
}
.section-head__title .title-text.is-entering { animation: title-wipe-in 520ms cubic-bezier(.16,1,.3,1) both; }
.section-head__title .title-ghost.is-leaving { animation: title-wipe-out 480ms cubic-bezier(.16,1,.3,1) both; }
@media (prefers-reduced-motion: reduce){
  .section-head__title .title-text.is-entering,
  .section-head__title .title-ghost.is-leaving { animation: none !important; }
}
/* Make the center rule slightly bolder */
.section-head__rule { width: clamp(72px, 12vw, 160px); height: 2px; background: linear-gradient(90deg, rgba(255,255,255,.75), rgba(255,255,255,.08)); transform: none; }
/* Appear animation for section-head */
.section-head [data-anim] { opacity: 0; transform: translateY(8px); }
.section-head.is-inview .section-head__eyebrow { animation: head-up .45s cubic-bezier(.22,.61,.36,1) .04s both; }
.section-head.is-inview .section-head__title { animation: head-up .55s cubic-bezier(.22,.61,.36,1) .1s both; }
.section-head.is-inview .section-head__rule { animation: head-rule-center .6s cubic-bezier(.22,.61,.36,1) .18s both; }
.section-head.is-inview .section-head__desc { animation: head-up .55s cubic-bezier(.22,.61,.36,1) .24s both; }
@keyframes head-up { from { opacity: 0; transform: translateY(12px);} to { opacity: 1; transform: translateY(0); } }
@keyframes head-rule-center { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.cards__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(22px, 3.5vw, 40px); }
@media (max-width: 980px){ .cards__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); } }
@media (max-width: 600px){ .cards__grid { grid-template-columns: 1fr; gap: clamp(18px, 4vw, 28px); } }

/* Minimal layout (clean uniform grid) */
.cards[data-card-style="minimal"] .cards__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(22px, 3.2vw, 38px); }
@media (max-width: 980px){ .cards[data-card-style="minimal"] .cards__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px){ .cards[data-card-style="minimal"] .cards__grid { grid-template-columns: 1fr; } }
.cardx { position: relative; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: rgba(255,255,255,.04); transform: translateY(8px); transition: transform .3s cubic-bezier(.22,.61,.36,1), box-shadow .3s ease, border-color .3s ease, background .3s ease; will-change: transform; opacity: 0; 
  /* spotlight vars for color reveal */
  --mx: 50%;
  --my: 50%;
  --spot-r: 0%;
  /* 3D tilt defaults */
  --tiltX: 0deg;
  --tiltY: 0deg;
  --lift: 0px;
  perspective: 900px;
}
/* Tilted inner wrapper */
.cardx__link { transform-style: preserve-3d; transform: translateZ(var(--lift)) rotateX(var(--tiltX)) rotateY(var(--tiltY)); transition: transform 260ms cubic-bezier(.16,1,.3,1); will-change: transform; }
/* Glass overlay (no blur on image) */
.cardx::before { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; z-index: 3;
  background:
    radial-gradient(600px circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,.08), rgba(255,255,255,.02) 38%, rgba(255,255,255,0) 68%),
    linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.035) 44%, rgba(255,255,255,0) 68%);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 6px 24px rgba(0,0,0,.28);
  backdrop-filter: saturate(135%);
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease; }
.cardx:hover::before { background:
    radial-gradient(600px circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,.14), rgba(255,255,255,.06) 42%, rgba(255,255,255,0) 72%),
    linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.055) 48%, rgba(255,255,255,0) 72%);
  border-color: rgba(255,255,255,.24);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 12px 34px rgba(0,0,0,.38); }
.cardx__link { display: block; position: relative; aspect-ratio: 4 / 5; outline: none; z-index: 1; }
.cardx__media { position: absolute; inset: 0; transform: translateZ(var(--z-media, 18px)) scale(1); transition: transform .6s cubic-bezier(.22,.61,.36,1); z-index: 0; transform-style: preserve-3d; }
/* Grayscale base image on ::before so ::after can stay in color */
.cardx__media::before { content: ""; position: absolute; inset: 0; background-image: var(--img); background-size: cover; background-position: center; filter: grayscale(1) saturate(0) contrast(.95) brightness(.98); z-index: 0; }
/* Color reveal layer following cursor */
.cardx__media::after { content: ""; position: absolute; inset: 0; background-image: var(--img); background-size: cover; background-position: center; z-index: 1; clip-path: circle(var(--spot-r, 0%) at var(--mx, 50%) var(--my, 50%)); transition: clip-path var(--spot-dur, .85s) cubic-bezier(.16,1,.3,1); will-change: clip-path; }
.cardx__scrim { position: absolute; inset: 0; background:
  linear-gradient(to top, rgba(0,0,0,.62) 0%, rgba(0,0,0,.38) 36%, rgba(0,0,0,.16) 58%, rgba(0,0,0,0) 78%),
  linear-gradient(to bottom, rgba(0,0,0,.08), rgba(0,0,0,0) 28%);
  z-index: 2; transform: translateZ(32px); }
/* New compact badge and arrow CTA */
.cardx__badge { position: static; z-index: 4; padding: 6px 10px; border-radius: 999px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; background: rgba(10,10,10,.55); border: 1px solid var(--line); color: #fff; backdrop-filter: blur(8px) saturate(150%); opacity: .95; }



/* Always show CTA on touch devices (no hover) */
.cardx__arrow { justify-self: center; width: 40px; height: 40px; border-radius: 999px; background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.38); display: inline-flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(6px) scale(.96); transition: opacity .28s cubic-bezier(.22,.61,.36,1), transform .28s cubic-bezier(.22,.61,.36,1), background .2s ease, border-color .2s ease; pointer-events: none; margin-top: 2px; }
.cardx__arrow::before { content: "→"; font-weight: 700; font-size: 18px; transition: transform .2s ease; }
.cardx:hover .cardx__arrow,
.cardx__link:hover .cardx__arrow,
.cardx__link:focus-visible .cardx__arrow,
.cardx.is-hover .cardx__arrow { opacity: 1; transform: translateY(0) scale(1); }
.cardx:hover .cardx__arrow::before,
.cardx__link:hover .cardx__arrow::before,
.cardx__link:focus-visible .cardx__arrow::before,
.cardx.is-hover .cardx__arrow::before { transform: translateX(2px); }
/* Tags default style (legacy top-right) */
.cardx__tags { position: absolute; top: 10px; right: 10px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 4; transform: translateZ(50px); opacity: .95; pointer-events: none; transition: opacity .28s cubic-bezier(.22,.61,.36,1), transform .28s cubic-bezier(.22,.61,.36,1); }
/* Footer tags inside meta as text line */
.cardx__tagsline { color: var(--muted); font-size: .9rem; line-height: 1.2; font-weight: 600; letter-spacing: .01em; text-shadow: 0 1px 6px rgba(0,0,0,.42); }
.cardx:hover .cardx__tags, .cardx__link:hover .cardx__tags, .cardx__link:focus-visible .cardx__tags, .cardx.is-hover .cardx__tags { opacity: 0; transform: translateZ(50px) translateY(-6px); }
/* Meta content aligned bottom-center; large horizontal title + CTA crossover */
.cardx__meta { position: absolute; left: 20px; right: 20px; bottom: 20px; top: auto; display: grid; justify-items: start; align-content: end; z-index: 4; transform: translateZ(60px); text-align: left; pointer-events: none; gap: 6px; opacity: 1; transition: opacity .28s cubic-bezier(.22,.61,.36,1), transform .28s cubic-bezier(.22,.61,.36,1); }
/* Fallback */
@supports not (place-items: center) {
  .cardx__meta { display: grid; justify-items: start; align-items: end; text-align: left; }
}
/* Hide any legacy subtitles that may remain (no desktop changes) */
.cards .cardx__meta .cardx__description { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.35; font-weight: 400; display: none; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; text-shadow: 0 1px 6px rgba(0,0,0,.42); }
.cardx__meta h3 { margin: 0; font-weight: 800; letter-spacing: -0.015em; text-transform: none; line-height: 1.06; font-size: clamp(1.1rem, 2.8vw, 1.7rem); max-width: 92%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 1; transform: translateY(0); transition: color .2s ease, transform .28s cubic-bezier(.22,.61,.36,1); text-shadow: 0 1px 6px rgba(0,0,0,.42); }
.cardx:hover .cardx__meta h3,
.cardx__link:hover .cardx__meta h3,
.cardx__link:focus-visible .cardx__meta h3,
.cardx.is-hover .cardx__meta h3 { opacity: 1; transform: translateY(0); }
.cardx:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.16); box-shadow: 0 10px 26px rgba(0,0,0,.35); }
.cardx:hover .cardx__media { transform: translateZ(var(--z-media, 18px)) scale(1.03); }
.cardx__link:focus-visible { outline: 2px solid rgba(255,255,255,.6); outline-offset: -2px; }
@media (prefers-reduced-motion: reduce){
  .cardx { transition: none !important; transform: none !important; opacity: 1 !important; }
  .cardx__media { transition: none !important; }
}
/* Remove old audio control styles - replaced with YouTube CTA */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 1px, 1px); white-space: nowrap; border: 0; }

/* Card style: minimal only */
.cards[data-card-style="minimal"] .cardx { background: rgba(255,255,255,.02); border-color: var(--line); }
.cards[data-card-style="minimal"] .cardx.is-visible { animation: card-fade-up .6s cubic-bezier(.22,.61,.36,1) forwards; animation-delay: calc(var(--i, 0) * 0.08s); }
.cards[data-card-style="minimal"] .cardx__meta { transition: opacity .3s ease, transform .3s ease; }
/* Footer meta visible idle, hide on hover */
.cards[data-card-style="minimal"] .cardx:hover .cardx__meta,
.cards[data-card-style="minimal"] .cardx__link:hover .cardx__meta,
.cards[data-card-style="minimal"] .cardx__link:focus-visible .cardx__meta,
.cards[data-card-style="minimal"] .cardx.is-hover .cardx__meta { opacity: 0; transform: translateY(8px); }
@keyframes card-fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* Corner dots radial menu */
.corner-menu { position: fixed; top: 16px; right: 16px; z-index: 60; }
.menu-btn { width: 46px; height: 46px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--fg); backdrop-filter: blur(8px) saturate(150%); cursor: pointer; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.menu-btn:hover { background: rgba(255,255,255,.10); transform: translateY(-1px); }
.menu-btn .dot { width: 4px; height: 4px; border-radius: 999px; background: currentColor; opacity: .9; }
.corner-menu.is-open .menu-btn { background: rgba(255,255,255,.14); }

.corner-menu .radial { position: absolute; inset: 0; pointer-events: none; }
.corner-menu .radial a { position: absolute; top: 23px; right: 23px; transform: rotate(var(--angle)) translate(var(--radius, 92px)) rotate(calc(var(--angle) * -1)) scale(.8); transform-origin: top right; opacity: 0; transition: transform .28s cubic-bezier(.22,.61,.36,1), opacity .2s ease, background .2s ease, border-color .2s ease; background: rgba(255,255,255,.06); color: #fff; border-radius: 999px; padding: 8px 12px; border: 1px solid var(--line); white-space: nowrap; }
.corner-menu .radial a:hover { background: rgba(255,255,255,.12); }
.corner-menu.is-open .radial { pointer-events: auto; }
.corner-menu.is-open .radial a { opacity: 1; transform: rotate(var(--angle)) translate(var(--radius, 92px)) rotate(calc(var(--angle) * -1)) scale(1); }

/* Responsive */
@media (max-width: 860px) {
  .site-header .container { padding-block: 10px; }
  .logo { font-size: 1rem; }
  .hero__inner { padding-block: clamp(24px, 10vh, 120px); }
}
@media (max-width: 480px) {
  .btn { width: 100%; justify-content: center; }
}

/* Reduced motion/accessibility */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__video { display: none; }
  .scroll .mouse::after { animation: none; }
  .reel { height: auto; }
  .reel__sticky { position: relative; height: auto; }
  .reel__video { transform: none !important; filter: brightness(1) contrast(1) saturate(1); }
  .reel__veil { display: none; }
  /* Removed audio control styles */
}

/* Work section split layout: left 1/3 (title + text), right 2/3 (cards) */
.cards .work-split { display: grid; grid-template-columns: minmax(260px, 1fr) 3fr; gap: clamp(18px, 3.2vw, 36px); align-items: start; }
.cards .work-split__left { position: relative; overflow: hidden; }
.cards .work-split__left .section-head { position: relative; z-index: 5; justify-items: start; text-align: left; margin-bottom: 0; }
.cards > .work-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .18; transition: opacity .35s ease; }
/* Add subtle grain over the background image (idle: hidden; animate only on hover) */
.cards > .work-bg::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: 0; mix-blend-mode: overlay; background-repeat: repeat; background-size: 512px 512px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none' viewBox='0 0 100 100'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' seed='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); animation: none; }
/* Mask so only left side under text is visible across section */
.cards > .work-bg { mask-image: linear-gradient(to right, rgba(0,0,0,1) var(--work-mask-stop), rgba(0,0,0,0) calc(var(--work-mask-stop) + var(--work-mask-fade)), rgba(0,0,0,0) var(--work-mask-end)); -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) var(--work-mask-stop), rgba(0,0,0,0) calc(var(--work-mask-stop) + var(--work-mask-fade)), rgba(0,0,0,0) var(--work-mask-end)); }
.cards > .container { position: relative; z-index: 2; }

/* Line grid overlay blended over the work background, clipped by the same mask */
.cards > .work-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2; /* above bg layers and grain */
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.28) 1px, rgba(255,255,255,0) 1px),
    linear-gradient(to bottom, rgba(255,255,255,.28) 1px, rgba(255,255,255,0) 1px);
  background-size: 28px 28px; /* slightly denser grid for visibility */
  opacity: .2; /* higher so it reads even on dark content */
  mix-blend-mode: screen; /* ensures visibility over dark bg */
  /* Soft radial falloff toward the middle of the section */
  -webkit-mask-image: radial-gradient(60% 70% at 40% 50%, rgba(0,0,0,0) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,1) 75%);
  mask-image: radial-gradient(60% 70% at 40% 50%, rgba(0,0,0,0) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,1) 75%);
}

/* Crossfade layers inside work background */
.cards > .work-bg .work-bg__layer { position: absolute; inset: 0; background-size: cover; background-position: center; background-repeat: no-repeat; filter: grayscale(100%) blur(6px) brightness(.85); opacity: 0; transform: scale(1.03); transition: opacity .9s cubic-bezier(.22,.61,.36,1), transform 1.1s cubic-bezier(.22,.61,.36,1); will-change: opacity, transform; }


/* Override grid columns for the right side when using minimal card style */
.cards[data-card-style="minimal"] .work-split__right .cards__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 3.2vw, 38px); }

@media (max-width: 980px){
  .cards .work-split { grid-template-columns: 1fr; }
  .cards[data-card-style="minimal"] .work-split__right .cards__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px){
  .cards[data-card-style="minimal"] .work-split__right .cards__grid { grid-template-columns: 1fr; }
}

/* CTA Gallery (ribbons) */
/* Wrapper that takes full viewport height without changing inner gallery size */
.cta-gallery-viewport { height: 100svh; display: grid; align-items: center; }
/* Variant: sticky so the section does not move vertically while transitioning */
.cta-gallery-viewport--sticky { position: sticky; top: 0; z-index: 2; }
/* Stage wrapper for crossfade/zoom */
.xf-stage { position: relative; height: 200svh; isolation: isolate; }
 .xf-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
 .xf-layer { position: absolute; inset: 0; }
.xf-veil { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; z-index: 3; }
/* Event crossfade transforms (driven by --xf and eased --xf-e) */
#event-viewport { z-index: 2; pointer-events: auto; }
#event-viewport .cta-gallery { transform: scale(calc(1 + 0.08 * var(--xf-e, var(--xf, 0)))); opacity: calc(1 - var(--xf-e, var(--xf, 0))); will-change: transform, opacity; }
/* When the event section is fully faded out, ensure it doesn't block pointer events */
#event-viewport[style*="pointer-events: none"] { z-index: -1; }
/* The next panel appears underneath and scales/fades in, centered, with no vertical motion */
.next-panel { min-height: 100svh; display: grid; place-items: center; }
#post-event { position: relative; overflow: hidden; z-index: 1; transform: scale(calc(0.86 + 0.14 * var(--xf-in, var(--xf-e, var(--xf, 0))))); opacity: var(--xf-in, var(--xf-e, var(--xf, 0))); will-change: transform, opacity; }
/* Next panel content layout */
#post-event > .container { width: min(var(--maxw), 100% - var(--gutter) * 2); margin-inline: auto; display: grid; gap: clamp(18px, 3vw, 28px); position: relative; z-index: 0; pointer-events: none; }
#post-event .section-head { justify-items: center; text-align: center; }
/* Full-cover background for Next panel (fades/zooms in with section) */
#post-event .next-bg { position: relative; z-index: 0; background-size: cover; background-position: center; background-repeat: no-repeat; transform: scale(calc(1.06 - 0.06 * var(--xf-in, var(--xf-e, var(--xf, 0))))); opacity: var(--xf-in, var(--xf-e, var(--xf, 0))); will-change: transform, opacity; }
#post-event .next-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.55) 28%, rgba(0,0,0,0.22) 55%, rgba(0,0,0,0) 78%); pointer-events: none; z-index: 2; }
/* Fullscreen layout with centered text overlay */
#post-event { display: block; }
#post-event .next-layout { position: absolute; inset: 0; z-index: 2; }
#post-event .next-text { 
  position: absolute; 
  inset: 0; 
  z-index: 3; 
  display: grid; 
  align-items: end; 
  justify-items: center; 
  pointer-events: none; 
}
#post-event .next-text .container { 
  width: min(var(--maxw), 100% - var(--gutter) * 2); 
  max-width: 600px; 
  margin: 0; 
  padding: 2rem 3rem max(2.2rem, env(safe-area-inset-bottom)); 
  background: none; 
  backdrop-filter: none;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  pointer-events: auto; 
}
#post-event .next-bg { 
  position: absolute;
  inset: 0;
  display: flex; 
  gap: var(--nb-gap, 0); 
  height: 100%; 
  width: 100%;
  z-index: 1;
}
/* 5-column split background with small gaps */
#post-event .next-bg__col { flex: 1 1 0; min-width: 0; background-size: cover; background-position: center; background-repeat: no-repeat; filter: grayscale(1) contrast(1.06) saturate(0); transition: flex-basis .5s cubic-bezier(.22,.61,.36,1), flex-grow .5s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1), filter .35s ease; will-change: flex-basis, flex-grow, transform; z-index: 1; }
#post-event .next-bg__col:focus { outline: none; }
/* Hover/focus overlay content inside each column */
#post-event .next-bg__col { position: relative; }
#post-event .nbg-overlay { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .28s cubic-bezier(.22,.61,.36,1); }
#post-event .nbg-meta { position: absolute; top: 24px; left: 8px; display: grid; gap: 8px; writing-mode: vertical-rl; text-orientation: mixed; }
#post-event .nbg-title { margin: 0; font-weight: 800; letter-spacing: .02em; font-size: clamp(1.2rem, 3vw, 2rem); text-shadow: 0 1px 8px rgba(0,0,0,.45); }
#post-event .nbg-role { margin: 0; color: rgba(255,255,255,.88); font-size: .9rem; text-shadow: 0 1px 6px rgba(0,0,0,.45); }
#post-event .nbg-cta { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: clamp(64px, 10vw, 108px); height: clamp(64px, 10vw, 108px); border-radius: 999px; border: 1px solid var(--line); background: rgba(10,10,10,.55); color: #fff; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; pointer-events: auto; box-shadow: 0 12px 36px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.08); transition: background .2s ease, transform .2s ease, box-shadow .2s ease; }
#post-event .nbg-cta:hover { background: rgba(10,10,10,.72); transform: translate(-50%, -50%) scale(1.03); box-shadow: 0 16px 44px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.12); }
#post-event .nbg-cta__icon { width: clamp(24px, 3vw, 36px); height: clamp(24px, 3vw, 36px); display: block; }
#post-event .nbg-cta span { display: none; }
#post-event .next-bg__col:hover .nbg-overlay,
#post-event .next-bg__col:focus .nbg-overlay,
#post-event .next-bg:focus-within .next-bg__col:focus .nbg-overlay { opacity: 1; }

/* Micro idle animation (click hint) for Play button */
@keyframes nbg-shadow-breath {
  0%, 100% { box-shadow: 0 12px 36px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.08); }
  50% { box-shadow: 0 16px 44px rgba(0,0,0,.42), inset 0 0 0 1px rgba(255,255,255,.12); }
}
@keyframes nbg-ring {
  0% { opacity: .28; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.45); }
}
/* Run subtle breathing shadow and ring pings when column is open (hover/focus) */
#post-event .next-bg__col:hover .nbg-cta,
#post-event .next-bg:focus-within .next-bg__col:focus .nbg-cta {
  animation: nbg-shadow-breath 2.8s ease-in-out infinite;
}
#post-event .next-bg__col:hover .nbg-cta::before,
#post-event .next-bg__col:hover .nbg-cta::after,
#post-event .next-bg:focus-within .next-bg__col:focus .nbg-cta::before,
#post-event .next-bg:focus-within .next-bg__col:focus .nbg-cta::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  transform: translate(-50%, -50%) scale(1);
  transform-origin: center;
  border: 2px solid rgba(255,255,255,.28);
  border-radius: 999px;
  pointer-events: none;
}
#post-event .next-bg__col:hover .nbg-cta::before,
#post-event .next-bg:focus-within .next-bg__col:focus .nbg-cta::before {
  animation: nbg-ring 2.8s ease-out infinite;
}
#post-event .next-bg__col:hover .nbg-cta::after,
#post-event .next-bg:focus-within .next-bg__col:focus .nbg-cta::after {
  animation: nbg-ring 2.8s ease-out infinite;
  animation-delay: 1.4s;
}
@media (prefers-reduced-motion: reduce){
  #post-event .next-bg__col:hover .nbg-cta,
  #post-event .next-bg:focus-within .next-bg__col:focus .nbg-cta,
  #post-event .next-bg__col:hover .nbg-cta::before,
  #post-event .next-bg__col:hover .nbg-cta::after,
  #post-event .next-bg:focus-within .next-bg__col:focus .nbg-cta::before,
  #post-event .next-bg:focus-within .next-bg__col:focus .nbg-cta::after { animation: none !important; }
}
/* Expand hovered/focused column without collapsing others (avoid hover trap) */
#post-event .next-bg { --rest: 0.5; --hover: 5; }
#post-event .next-bg:hover .next-bg__col,
#post-event .next-bg:focus-within .next-bg__col { flex-grow: var(--rest); }
#post-event .next-bg:hover .next-bg__col:hover,
#post-event .next-bg:focus-within .next-bg__col:focus { flex-grow: var(--hover); transform: scale(1.02); filter: grayscale(0) contrast(1.08) saturate(1.12); }
#post-event.is-entered .section-head { animation: head-up .5s cubic-bezier(.22,.61,.36,1) .08s both; }

/* Responsive styles for Next section */
@media (max-width: 768px) {
  #post-event .next-text .container { 
    max-width: 90%; 
    padding: 1.5rem 2rem;
  }
  #post-event .section-head__title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
  }
  #post-event .section-head__desc {
    font-size: 0.9rem;
  }
}
@media (max-width: 480px) {
  #post-event .next-text .container { 
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
  }
}
@media (prefers-reduced-motion: reduce){
  #event-viewport .cta-gallery { transform: none !important; opacity: 1 !important; }
  #post-event { transform: none !important; opacity: 1 !important; }
  #post-event .next-bg { transform: none !important; opacity: 1 !important; }
}


.cta-gallery { position: relative; isolation: isolate; overflow: hidden; --cta-mask-stop: 24%; --cta-mask-fade: 14%; padding-block: clamp(36px, 7vh, 90px); min-height: clamp(416px, 48svh, 656px); background: radial-gradient(90% 120% at 0% 0%, rgba(255,255,255,.06), rgba(255,255,255,0) 60%), linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0)); border-top: 1px solid var(--line); }

/* Contrast overlay between background lanes and text */
.cta-overlay { position: absolute; inset: 0; z-index: 5; pointer-events: none; background:
  /* Solid black slab at left, then a smooth fade to transparent */
  linear-gradient(90deg,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 26%,
    rgba(0,0,0,0.92) 36%,
    rgba(0,0,0,0.74) 50%,
    rgba(0,0,0,0.50) 64%,
    rgba(0,0,0,0.28) 78%,
    rgba(0,0,0,0.12) 90%,
    rgba(0,0,0,0) 100%
  );
}
@media (max-width: 860px){
  .cta-overlay { background:
    /* On narrow screens, make top fully black then fade down */
    linear-gradient(180deg,
      rgba(0,0,0,1) 0%,
      rgba(0,0,0,1) 22%,
      rgba(0,0,0,0.85) 36%,
      rgba(0,0,0,0.60) 54%,
      rgba(0,0,0,0.34) 72%,
      rgba(0,0,0,0.12) 86%,
      rgba(0,0,0,0) 100%
    );
  }
}

/* CTA v2 background lanes */
.cta-bg { position: absolute; inset: 0; z-index: 1; pointer-events: none; display: flex; flex-direction: column; justify-content: center; gap: var(--lane-gap, 4px); padding: 12px; transform: rotate(calc(12deg - 12deg * var(--enter, 0))) scale(calc(0.94 + 0.06 * var(--enter, 0))); transform-origin: 50% 50%; will-change: transform, opacity; opacity: calc(0.45 + 0.55 * var(--enter, 0)); }

.cta-bg .lane { position: relative; height: var(--lane-h, 240px); flex: 0 0 auto; overflow: hidden; border-radius: 12px; background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.08); }
.lane__wrap { position: absolute; inset: 0; transform: none; transform-origin: 50% 50%; }
.lane__track { position: absolute; inset: 0; display: flex; align-items: center; gap: var(--tile-gap, 4px); padding: 0; will-change: transform; }
.lane__item { position: relative; flex: 0 0 auto; width: var(--tile-w, clamp(200px, 25vw, 340px)); aspect-ratio: var(--ar, 4/3); border-radius: 12px; overflow: hidden; margin: 0; background: rgba(255,255,255,.02); box-shadow: 0 4px 12px rgba(0,0,0,.28); }
.lane__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06) saturate(0); transform: scale(1.02); transition: transform 1.2s cubic-bezier(.22,.61,.36,1), filter .35s ease; }
.lane__item video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06) saturate(0); transform: scale(1.02); transition: transform 1.2s cubic-bezier(.22,.61,.36,1), filter .35s ease; display: block; }
@media (pointer: fine){ 
  .lane__item:hover img,
  .lane__item:hover video { transform: scale(1.06); filter: grayscale(0) contrast(1.1) saturate(1.12); }
}
.lane--a { --tile-w: clamp(220px, 28vw, 360px); --ar: 3/4; }
.lane--b { --tile-w: clamp(200px, 24vw, 320px); --ar: 1/1; }
.lane--c { --tile-w: clamp(220px, 28vw, 360px); --ar: 3/4; }

/* CTA content body */
.cta-body { position: relative; z-index: 10; pointer-events: auto; display: grid; justify-items: start; align-content: center; min-height: clamp(416px, 48svh, 656px); }
.cta-gallery__left { max-width: clamp(280px, 26vw, 560px); display: grid; gap: clamp(10px, 1.6vw, 16px); }
.cta-body .cta { margin-top: clamp(8px, 1.8vw, 16px); }
@media (max-width: 860px){
  .cta-body { align-content: start; padding-top: clamp(16px, 4vh, 32px); padding-bottom: clamp(24px, 6vh, 40px); }
  .cta-gallery__left { max-width: none; }
}

/* Left copy */
.cta-gallery .section-head { justify-items: start; text-align: left; margin: 0; }

/* About (legacy) */
.about { position: relative; background: var(--bg); border-top: 1px solid var(--line); padding-block: clamp(48px, 10vh, 140px); }
.about__grid { display: grid; grid-template-columns: minmax(280px, 1.2fr) 1fr; gap: clamp(18px, 3vw, 36px); align-items: center; }
@media (max-width: 980px){ .about__grid { grid-template-columns: 1fr; } }
.about__left .section-head { justify-items: start; text-align: left; }
.about__photo { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 10px 26px rgba(0,0,0,.35); }
.about__photo img { display: block; width: 100%; height: auto; filter: grayscale(1) contrast(1.05) saturate(0.1); transition: filter .35s ease, transform .6s cubic-bezier(.22,.61,.36,1); }
@media (pointer: fine){ .about__photo:hover img { filter: grayscale(0) contrast(1.06) saturate(1.08); transform: scale(1.02); } }
.about .cta { margin-top: clamp(10px, 2vw, 18px); }

/* About v2 */
.about-v2 { position: relative; background: radial-gradient(80% 80% at 0% 0%, rgba(255,255,255,.04), rgba(255,255,255,0) 60%), linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0)); border-top: 1px solid var(--line); padding-block: clamp(56px, 12vh, 160px); }
.aboutv2__wrap { display: grid; grid-template-columns: minmax(280px, 1.1fr) 1.6fr; gap: clamp(22px, 3.2vw, 44px); align-items: center; }
@media (max-width: 980px){ .aboutv2__wrap { grid-template-columns: 1fr; } }
.aboutv2__photo { position: relative; aspect-ratio: 4/5; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.aboutv2__photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient( to bottom, rgba(0,0,0,0) 60%, rgba(0,0,0,.45) 100% ); }
.aboutv2__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.04) saturate(0.1); transform: scale(1.01); transition: transform .8s cubic-bezier(.22,.61,.36,1), filter .5s ease; }
@media (pointer: fine){ .aboutv2__photo:hover img { filter: grayscale(0) contrast(1.06) saturate(1.1); transform: scale(1.03); } }
.aboutv2__title { margin: 0; font-weight: 900; letter-spacing: -0.02em; font-size: clamp(2.1rem, 6.5vw, 3.4rem); background: linear-gradient(180deg, #ffffff, #dedede); -webkit-background-clip: text; background-clip: text; color: transparent; }
.aboutv2__tag { margin: .35rem 0 1rem; color: rgba(255,255,255,.72); letter-spacing: .14em; text-transform: uppercase; font-size: .85rem; }
.aboutv2__bio { margin: 0; color: var(--muted); max-width: 70ch; }
.aboutv2__chips { margin: 1rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.aboutv2__chips li { padding: .35rem .6rem; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: #fff; font-size: .9rem; }
.aboutv2__cta { margin-top: 1rem; }

/* About brands strip */
.aboutv2__brands { position: relative; z-index: 1; margin-top: clamp(40px, 9vh, 100px); }
.brand-logos__title { margin: 0 0 clamp(12px, 2vw, 20px); text-align: center; color: rgba(255,255,255,.78); font-weight: 600; font-size: clamp(.95rem, 2vw, 1.1rem); letter-spacing: .02em; }
.brand-logos { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; --brand-gap: clamp(20px, 5vw, 48px); gap: 0; opacity: .95; }
.brand-logos li { flex: 0 0 auto; display: flex; align-items: center; }
/* use symmetrical spacing around divider for consistent gaps */
.brand-logos li + li { border-left: 1px solid var(--line); margin-left: calc(var(--brand-gap) / 2); padding-left: calc(var(--brand-gap) / 2); }
.brand-logos img { display: block; height: clamp(36px, 4.5vw, 64px); width: auto; filter: none; opacity: .98; transition: opacity .2s ease, transform .2s ease; }
@media (pointer: fine){ .brand-logos img:hover { opacity: 1; transform: translateY(-1px); } }
/* On narrow screens, hide dividers and use simple gap */
@media (max-width: 600px){
  .brand-logos li + li { border-left: 0; margin-left: 0; padding-left: 0; }
  .brand-logos { gap: clamp(16px, 4vw, 24px); }
}

/* Bridge transition between Work (recent projects) and Gallery */
#work { --bridge: 0; }
#work > .container { transform: translateY(calc(-36px * var(--bridge))); opacity: calc(1 - 0.5 * var(--bridge)); will-change: transform, opacity; }
#work > .work-bg { opacity: calc(0.18 * (1 - var(--bridge))); }

/* Gallery enters: lanes/text ease in as user approaches */
.cta-gallery { --enter: 0; }
.cta-gallery .cta-body { transform: translateY(calc(40px * (1 - var(--enter, 0)))) scale(calc(0.98 + 0.02 * var(--enter, 0))); opacity: calc(0.15 + 0.85 * var(--enter, 0)); will-change: transform, opacity; }

@media (prefers-reduced-motion: reduce){
  #work > .container,
  .cta-gallery .cta-body,
  .cta-bg { transform: none !important; opacity: 1 !important; }
}



/* Lane-specific sizing/aspect hints */

/* Reduced motion */

/* Legacy mosaic rules kept for reference (not used now) */
/* Mosaic */

/* Mosaic items */

/* Shape map via size modifiers */

/* Slight hover lift when pointer is fine */

/* Floating micro-motion for items (staggered) */

/* Crossfade when replacing items */

/* Edge vignette to focus center */

/* Reduce motion */

/* About variants base */
#about.about-v1, #about.about-v3 { position: relative; background: radial-gradient(80% 80% at 0% 0%, rgba(255,255,255,.04), rgba(255,255,255,0) 60%), linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0)); border-top: 1px solid var(--line); padding-block: clamp(56px, 12vh, 160px); }

/* About v1: Minimal, circular portrait, left-aligned copy */
#about.about-v1 .aboutv2__wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(22px, 3.2vw, 44px); align-items: center; }
@media (max-width: 980px){ #about.about-v1 .aboutv2__wrap { grid-template-columns: 1fr; } #about.about-v1 .aboutv2__photo { margin-inline: auto; } }
#about.about-v1 .aboutv2__photo { width: min(100%, 300px); aspect-ratio: 1/1; border-radius: 999px; overflow: hidden; margin-left: auto; border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(0,0,0,.35); }
#about.about-v1 .aboutv2__photo::after { display: none; }
#about.about-v1 .aboutv2__photo img { object-fit: cover; transform: none; filter: grayscale(.1) contrast(1.02) saturate(.9); }
#about.about-v1 .aboutv2__title { background: linear-gradient(180deg, #ffffff, #e7e7e7); -webkit-background-clip: text; background-clip: text; color: transparent; }
#about.about-v1 .aboutv2__chips li { background: transparent; }


/* About v3: Overlapped card over full-bleed photo */
#about.about-v3 .aboutv2__wrap { display: grid; grid-template-columns: 1fr; gap: clamp(18px, 2.4vw, 24px); }
#about.about-v3 .aboutv2__photo { height: clamp(300px, 60svh, 560px); aspect-ratio: auto; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0,0,0,.35); }
#about.about-v3 .aboutv2__right { position: relative; margin-top: -80px; margin-inline: auto clamp(16px, 2vw, 24px); width: min(720px, 92%); padding: clamp(14px, 2vw, 22px); border-radius: 16px; border: 1px solid var(--line); background: rgba(10,10,10,.55); backdrop-filter: blur(10px) saturate(150%); box-shadow: 0 10px 28px rgba(0,0,0,.45); }
#about.about-v3 .aboutv2__chips li { background: rgba(255,255,255,.05); }

/* About interactive background (Rays) */
#about .aboutv2__wrap { position: relative; z-index: 1; }
#about::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: .85; transition: opacity .25s ease; background: radial-gradient(380px circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,.06), rgba(255,255,255,0) 55%), conic-gradient(from calc(var(--deg, 0deg) - 30deg) at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.16), rgba(255,255,255,0) 50%); mix-blend-mode: soft-light; }

/* R&D v3 — articles */
.rnd-articles { position: relative; background: radial-gradient(80% 80% at 100% 0%, rgba(255,255,255,.04), rgba(255,255,255,0) 60%), linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0)); border-top: 1px solid var(--line); padding-block: clamp(56px, 12vh, 160px); isolation: isolate; }
.rnd-articles .section-head { justify-items: center; text-align: center; margin-bottom: clamp(22px, 7vh, 60px); }

.rnda-list { list-style: none; padding: 0; margin: 0; display: grid; gap: clamp(12px, 2vw, 18px); }

.rnda-article { border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.02); box-shadow: 0 10px 28px rgba(0,0,0,.38); opacity: 0; transform: translateY(10px); transition: opacity .5s cubic-bezier(.22,.61,.36,1), transform .5s cubic-bezier(.22,.61,.36,1), box-shadow .3s ease, border-color .3s ease; --rnda-ph: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 80"><defs><linearGradient id="g" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="%23222"/><stop offset="1" stop-color="%23333"/></linearGradient></defs><rect width="120" height="80" fill="url(%23g)"/><text x="50%" y="50%" dominant-baseline="middle" text-anchor="middle" fill="%23888" font-size="10" font-family="sans-serif">R&amp;D</text></svg>'); }
.rnda-article.is-in { opacity: 1; transform: translateY(0); transition-delay: calc(var(--i, 0) * 0.08s); }

.rnda-link { position: relative; display: grid; grid-template-columns: minmax(220px, 0.95fr) 2.05fr; gap: clamp(10px, 2vw, 16px); align-items: center; padding: clamp(10px, 1.8vw, 14px); border-radius: inherit; }
@media (max-width: 720px){ .rnda-link { grid-template-columns: 1fr; } }

.rnda-media { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 16/9; }
.rnda-media::before { content: ""; position: absolute; inset: 0; background-image: var(--img, var(--rnda-ph)); background-size: cover; background-position: center; filter: grayscale(1) contrast(1.04) saturate(0) brightness(.98); transform: scale(1.02); transition: transform .6s cubic-bezier(.22,.61,.36,1), filter .35s ease; }
.rnda-link:hover .rnda-media::before, .rnda-link:focus .rnda-media::before { transform: scale(1.04); filter: grayscale(0) contrast(1.08) saturate(1.12); }

.rnda-body { display: grid; gap: 6px; align-content: start; min-width: 0; }
.rnda-eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; color: rgba(255,255,255,.66); }
.rnda-title { margin: 0; font-weight: 800; letter-spacing: -0.01em; font-size: clamp(1.1rem, 3vw, 1.8rem); background: linear-gradient(180deg, #ffffff, #dcdcdc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rnda-excerpt { margin: 0; color: var(--muted); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rnda-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: rgba(255,255,255,.68); font-size: .88rem; }
.rnda-tags { display: inline-flex; gap: 6px; margin: 0 0 0 2px; padding: 0; list-style: none; }
.rnda-tags li { padding: .25rem .5rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.03); color: #fff; font-size: .82rem; }

.rnda-arrow { position: absolute; right: clamp(12px, 2vw, 16px); bottom: clamp(10px, 1.4vw, 12px); width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.94); color: #0a0a0a; border-radius: 999px; border: 1px solid transparent; box-shadow: 0 10px 24px rgba(0,0,0,.35); transition: transform .2s ease, background .2s ease; }
.rnda-link:hover .rnda-arrow, .rnda-link:focus .rnda-arrow { transform: translateY(-1px); }

@media (prefers-reduced-motion: reduce){
  .rnda-article, .rnda-link, .rnda-media::before { transition: none !important; }
}


