/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg, #0a0a0a);
  color: var(--fg, #f2efe9);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

:root {
  --bg: #0a0a0a;
  --bg-2: #131312;
  --fg: #f2efe9;
  --fg-dim: #8a857c;
  --accent: #c8a96e;
  --line: rgba(242, 239, 233, 0.10);
  --line-strong: rgba(242, 239, 233, 0.22);
}

/* ---------- Type ---------- */
.display {
  font-family: 'Bebas Neue', 'Oswald', Impact, sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.9;
  text-transform: uppercase;
}
.mono {
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  letter-spacing: 0.04em;
}
.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

/* ---------- Film grain ---------- */
.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.10;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.4 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.6'/></svg>");
}
.scanlines {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 8999;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0px,
    rgba(0,0,0,0) 2px,
    rgba(0,0,0,0.12) 3px,
    rgba(0,0,0,0) 4px
  );
  opacity: 0.20;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  mix-blend-mode: difference;
  color: #fff;
}
.nav-brand {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.nav-brand .dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 10px;
  vertical-align: middle;
  transform: translateY(-1px);
}
.nav-links {
  display: flex;
  gap: 36px;
}
.nav-links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1px; width: 0;
  background: var(--accent);
  transition: width 0.4s cubic-bezier(.7,0,.2,1);
}
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.nav-cta .pulse {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #6ec386;
  margin-right: 8px;
  vertical-align: middle;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* ---------- Hero — scroll-driven horizontal shutter ---------- */
.hero {
  position: relative;
  height: 100vh;            /* scroll is intercepted by JS, not driven by height */
  width: 100%;
}
.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: #0a0a0a;
}
/* While the shutter is still closing, the page itself can't scroll. */
html.hero-lock,
body.hero-lock {
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

/* Reveal layer — Name & title behind the panels */
.hero-reveal {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 40px;
  background: linear-gradient(180deg, #08070a 0%, #0a0a0a 100%);
}
.hero-reveal-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, min(2.2vw, 2.8vh), 28px);
  opacity: var(--reveal-opacity, 0);
  transform: scale(var(--reveal-scale, 0.96));
  transition: opacity 0.1s linear, transform 0.1s linear;
  max-height: 92vh;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-eyebrow .line { height: 1px; width: 60px; background: var(--accent); }
.hero-name {
  font-family: 'Bebas Neue', 'Oswald', Impact, sans-serif;
  font-weight: 400;
  font-size: clamp(80px, 16vw, 280px);
  letter-spacing: 0.01em;
  line-height: 0.9;
  margin: 0;
  text-transform: uppercase;
  white-space: nowrap;
}
.hero-name .amp {
  display: inline-block;
  margin: 0 0.1em;
  color: var(--accent);
}
.hero-title {
  display: flex;
  align-items: baseline;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-title .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.hero-title .text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(22px, 2.4vw, 38px);
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
}
.hero-tag {
  margin-top: 12px;
  max-width: 540px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--fg-dim);
}

/* The two shutter panels (the "garage doors") */
.shutter {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.shutter-panel {
  position: relative;
  overflow: hidden;
  will-change: transform;
}
.shutter-panel.left {
  transform: translateX(calc(-1 * var(--open, 0) * 100%));
  transition: transform 0.05s linear;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.shutter-panel.right {
  transform: translateX(calc(var(--open, 0) * 100%));
  transition: transform 0.05s linear;
}
.shutter-still {
  position: absolute; inset: 0;
}
.shutter-still.left {
  background-image:
    linear-gradient(120deg, rgba(10,6,2,0.35) 0%, rgba(10,6,2,0) 35%, rgba(10,6,2,0) 65%, rgba(10,6,2,0.55) 100%),
    url("assets/Headshot1.png");
  background-size: cover, cover;
  background-position: center, 62% center;
  background-repeat: no-repeat, no-repeat;
  filter: contrast(1.05) saturate(1.08);
  transform: scale(calc(1 + var(--open, 0) * 0.06));
  transform-origin: right center;
  transition: transform 0.05s linear;
}
.shutter-still.right {
  background-image:
    linear-gradient(240deg, rgba(6,6,8,0.18) 0%, rgba(6,6,8,0) 30%, rgba(6,6,8,0) 70%, rgba(6,6,8,0.28) 100%),
    url("assets/LandingpageImage.png");
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  filter: contrast(1.05) saturate(1.08);
  transform: scale(calc(1 + var(--open, 0) * 0.06));
  transform-origin: left center;
  transition: transform 0.05s linear;
}
.shutter-still::before {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,0.025) 0px,
      rgba(255,255,255,0.025) 1px,
      transparent 1px,
      transparent 4px
    );
}
.shutter-still::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.55'/></svg>");
  opacity: 0.08;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.shutter-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,0.65) 100%);
  pointer-events: none;
}
.shutter-corner {
  position: absolute;
  width: 18px; height: 18px;
  border: 1px solid rgba(255,255,255,0.5);
}
.shutter-corner.tl { top: 32px; left: 32px; border-right: none; border-bottom: none; }
.shutter-corner.tr { top: 32px; right: 32px; border-left: none; border-bottom: none; }
.shutter-corner.bl { bottom: 32px; left: 32px; border-right: none; border-top: none; }
.shutter-corner.br { bottom: 32px; right: 32px; border-left: none; border-top: none; }

.shutter-meta {
  position: absolute;
  bottom: 40px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
}
.shutter-meta.left  { left: 40px; }
.shutter-meta.right { right: 40px; text-align: right; }
.shutter-meta .row { display: flex; gap: 14px; }
.shutter-meta .row span:first-child { color: var(--accent); width: 56px; }
.shutter-meta.right .row { justify-content: flex-end; }

.shutter-timecode {
  position: absolute;
  top: 100px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.shutter-timecode.left { left: 40px; }
.shutter-timecode.right { right: 40px; }

/* Center seam indicator (visible only when closed) */
.shutter-seam {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(200,169,110,0.6) 30%, rgba(200,169,110,0.6) 70%, transparent);
  z-index: 3;
  opacity: calc(1 - var(--open, 0) * 2);
  pointer-events: none;
}
.shutter-seam::before, .shutter-seam::after {
  content: "";
  position: absolute;
  left: 50%; transform: translateX(-50%);
  width: 10px; height: 10px;
  border: 1px solid var(--accent);
  background: #0a0a0a;
}
.shutter-seam::before { top: 50%; transform: translate(-50%, -50%) rotate(45deg); }

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  pointer-events: none;
  opacity: calc(1 - var(--open, 0));
}
.scroll-hint .arrow {
  width: 1px; height: 36px;
  background: var(--accent);
  position: relative;
  overflow: hidden;
}
.scroll-hint .arrow::after {
  content: "";
  position: absolute;
  top: -50%; left: -3px;
  width: 7px; height: 50%;
  background: var(--accent);
  animation: scrollDot 1.8s cubic-bezier(.7,0,.2,1) infinite;
}
@keyframes scrollDot {
  0% { top: -50%; }
  100% { top: 100%; }
}

/* ---------- Section common ---------- */
section {
  position: relative;
  padding: 140px 40px;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 80px;
  gap: 40px;
  flex-wrap: wrap;
}
.section-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-num .line {
  width: 40px; height: 1px;
  background: var(--accent);
}
.section-title {
  font-size: clamp(72px, 11vw, 180px);
  margin: 16px 0 0;
}
.section-tag {
  max-width: 360px;
  color: var(--fg-dim);
  font-size: 14px;
  line-height: 1.7;
}

/* Brands heading inherits sitewide title scale via .section-title-class on the element */

/* ---------- Works — uniform polaroid grid ---------- */
.works {
  background: var(--bg);
}
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}
.work-card {
  position: relative;
  overflow: visible;
  cursor: pointer;
  isolation: isolate;
  display: block;
  color: inherit;
  text-decoration: none;

  /* Polaroid frame */
  background: #f4f1ea;
  padding: 18px 18px 18px;
  box-shadow:
    0 24px 60px -24px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: transform 0.5s cubic-bezier(.7,0,.2,1), box-shadow 0.5s ease;
}
.work-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 36px 80px -20px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(200, 169, 110, 0.4);
}

/* Inner image area — uniform aspect, same for every card */
.work-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #111;
}
.work-thumb {
  position: absolute; inset: 0;
  transition: transform 0.9s cubic-bezier(.7,0,.2,1), filter 0.6s ease;
  filter: saturate(0.85) brightness(0.85);
}
.work-card:hover .work-thumb {
  transform: scale(1.05);
  filter: saturate(1.1) brightness(1);
}
.work-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.85) 100%);
  pointer-events: none;
}

.work-corner {
  position: absolute;
  top: 16px; left: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.7);
  z-index: 2;
  background: rgba(0,0,0,0.3);
  padding: 3px 6px;
  backdrop-filter: blur(4px);
}
.work-play {
  position: absolute;
  top: 14px; right: 14px;
  width: 48px; height: 48px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.7);
  transition: all 0.5s cubic-bezier(.7,0,.2,1);
  backdrop-filter: blur(6px);
  background: rgba(0,0,0,0.35);
  z-index: 3;
}
.work-card:hover .work-play {
  opacity: 1;
  transform: scale(1);
}
.work-play svg { width: 12px; height: 12px; fill: #fff; margin-left: 2px; }

.work-desc {
  position: absolute;
  left: 24px; right: 24px;
  bottom: 88px;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255,255,255,0.85);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
  z-index: 2;
}
.work-card:hover .work-desc { opacity: 1; transform: translateY(0); }

.work-meta {
  position: absolute;
  left: 24px; right: 24px;
  bottom: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  z-index: 2;
}
.work-meta .cat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.work-meta h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  letter-spacing: 0.02em;
  line-height: 1;
  margin: 0;
  color: #fff;
}
.work-meta .yr {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.7);
}

/* Polaroid caption strip — under the photo */
.work-caption {
  margin-top: 14px;
  padding: 4px 4px 2px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  color: #2a2622;
}
.work-caption .num {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #6e6a63;
}
.work-caption .handwritten {
  font-family: 'Caveat', 'Bradley Hand', cursive;
  font-size: 18px;
  color: #2a2622;
  line-height: 1;
}

/* Thumb backgrounds — abstract film stills */
.thumb-1 {
  background:
    radial-gradient(ellipse at 30% 30%, rgba(255,120,40,0.45), transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(20,40,90,0.6), transparent 60%),
    linear-gradient(135deg, #2a1408 0%, #06080c 100%);
}
.thumb-2 {
  background:
    radial-gradient(ellipse at 50% 40%, rgba(120,140,180,0.35), transparent 55%),
    radial-gradient(ellipse at 80% 90%, rgba(60,30,40,0.5), transparent 50%),
    linear-gradient(180deg, #1a1d24 0%, #0a0c10 100%);
}
.thumb-3 {
  background:
    radial-gradient(ellipse at 40% 60%, rgba(200,80,40,0.5), transparent 50%),
    radial-gradient(ellipse at 70% 30%, rgba(50,30,80,0.5), transparent 55%),
    linear-gradient(135deg, #14060a 0%, #0a050d 100%);
}
.thumb-4 {
  background:
    radial-gradient(ellipse at 60% 50%, rgba(80,180,160,0.3), transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(40,30,60,0.5), transparent 50%),
    linear-gradient(180deg, #08121a 0%, #050908 100%);
}
.thumb-5 {
  background:
    radial-gradient(ellipse at 30% 70%, rgba(220,170,90,0.4), transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(80,50,30,0.6), transparent 55%),
    linear-gradient(135deg, #1a1208 0%, #08060a 100%);
}
.thumb-6 {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(180,40,40,0.4), transparent 50%),
    linear-gradient(180deg, #1a0808 0%, #060305 100%);
}

/* Thumb grain overlay */
.work-thumb::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.5'/></svg>");
  opacity: 0.12;
  mix-blend-mode: overlay;
}

/* ---------- Experience — inline card slideshow ---------- */
.experience {
  background: #08070a;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.exp-stage {
  max-width: 1650px;
  margin: 0 auto;
}
.exp-row {
  display: grid;
  gap: 24px;
  align-items: stretch;
  justify-content: center;
  transition: grid-template-columns 0.7s cubic-bezier(.7,0,.2,1);
}
.exp-card2 {
  position: relative;
  background: #121110;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px 36px 30px;
  min-height: 285px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.4s ease, background 0.4s ease;
}
.exp-card2:hover { border-color: var(--line-strong); }
.exp-card2.active {
  border-color: rgba(200,169,110,0.35);
  background: linear-gradient(180deg, #14130f 0%, #0c0b09 100%);
}
.exp-card2-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.exp-card2-dates {
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  letter-spacing: 0.18em;
  color: var(--fg-dim);
  text-transform: uppercase;
}
.exp-card2.active .exp-card2-dates { color: rgba(242,239,233,0.7); }
.exp-sun {
  width: 33px; height: 33px;
  flex: 0 0 auto;
  opacity: 0;
  transform: rotate(0deg);
  transition: opacity 0.4s ease;
}
.exp-card2.active .exp-sun {
  opacity: 1;
  animation: spinSun 14s linear infinite;
}
@keyframes spinSun {
  to { transform: rotate(360deg); }
}
.exp-sun svg { width: 100%; height: 100%; }
.exp-card2-body {
  margin-top: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.exp-card2-role-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 9px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.exp-card2.active .exp-card2-role-eyebrow {
  opacity: 1;
  transform: translateY(0);
}
.exp-card2-title {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: 24px;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin: 0;
  color: var(--fg);
  /* Inactive: up to 2 lines, full text visible */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  transition: font-size 0.6s cubic-bezier(.7,0,.2,1);
}
.exp-card2.active .exp-card2-title {
  /* Active: single line, no clipping. Font sized so longest title fits. */
  font-size: clamp(28px, 2.4vw, 34px);
  -webkit-line-clamp: unset;
  display: block;
  white-space: nowrap;
  overflow: visible;
  line-height: 1.05;
}
.exp-card2-bottom {
  margin-top: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  min-height: 28px;
}
.exp-card2-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  /* Keep tags rendered always; we drive visibility with CSS so the transition is smooth */
}
.exp-card2-tags span {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  letter-spacing: 0.04em;
  padding: 9px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--fg);
  white-space: nowrap;
  /* Inactive state */
  opacity: 0;
  transform: translateY(8px) scale(0.85);
  max-width: 0;
  padding-left: 0;
  padding-right: 0;
  border-color: transparent;
  overflow: hidden;
  transition:
    opacity 0.5s cubic-bezier(.6,0,.2,1),
    transform 0.55s cubic-bezier(.6,-0.2,.25,1.4),
    max-width 0.55s cubic-bezier(.7,0,.2,1),
    padding 0.45s cubic-bezier(.7,0,.2,1),
    border-color 0.45s ease,
    background-color 0.3s ease;
}
.exp-card2.active .exp-card2-tags span {
  opacity: 1;
  transform: translateY(0) scale(1);
  max-width: 280px;
  padding-left: 18px;
  padding-right: 18px;
  border-color: var(--line-strong);
}
.exp-card2.active .exp-card2-tags span:hover {
  background: rgba(200,169,110,0.1);
  border-color: rgba(200,169,110,0.4);
}
.exp-card2-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  letter-spacing: 0.18em;
  color: var(--fg-dim);
  flex: 0 0 auto;
  align-self: flex-end;
}
.exp-card2.active .exp-card2-num {
  color: var(--accent);
}

/* Progress track sits under the row, segmented like the cards */
.exp-track {
  display: grid;
  gap: 24px;
  margin-top: 21px;
  transition: grid-template-columns 0.7s cubic-bezier(.7,0,.2,1);
}
.exp-track-seg {
  height: 3px;
  background: rgba(242,239,233,0.06);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}
.exp-track-seg .fill {
  position: absolute;
  inset: 0;
  width: 0;
  background: var(--accent);
  border-radius: 3px;
}
.exp-track-seg.active .fill {
  animation: trackFill 3s linear forwards;
}
.exp-track-seg.active.paused .fill {
  animation-play-state: paused;
}
.exp-track-seg.done .fill { width: 100%; }
@keyframes trackFill {
  from { width: 0; }
  to { width: 100%; }
}

/* Top-right meta still useful — pause control */
.exp-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.exp-toolbar .rec {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 1.6s ease-in-out infinite;
}
.exp-pause {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--fg);
  padding: 8px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 999px;
  transition: all 0.3s ease;
}
.exp-pause:hover { border-color: var(--accent); color: var(--accent); }
.exp-slide {
  position: absolute;
  inset: 0;
  padding: 56px 72px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.7s cubic-bezier(.7,0,.2,1), transform 0.7s cubic-bezier(.7,0,.2,1);
  pointer-events: none;
}
.exp-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.exp-slide-left {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.exp-slide-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 12px;
}
.exp-slide .exp-logo {
  width: 64px; height: 64px;
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  color: var(--accent);
}
.exp-slide-idx {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--fg-dim);
}
.exp-slide h4 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(56px, 6.5vw, 96px);
  letter-spacing: 0.01em;
  margin: 0;
  line-height: 0.9;
}
.exp-slide-role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.exp-slide-dates {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--fg-dim);
}
.exp-slide-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-left: 1px solid var(--line);
  padding-left: 60px;
}
.exp-slide-desc {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(242,239,233,0.78);
}
.exp-slide-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.exp-slide-tags span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 6px 10px;
  border: 1px solid var(--line);
  color: var(--fg-dim);
}

/* Bottom button row + progress */
.exp-controls {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  padding: 20px 24px;
  border-top: 1px solid var(--line);
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  gap: 12px;
}
.exp-dot {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fg);
  text-align: left;
  transition: border-color 0.3s ease, background 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.exp-dot:hover { border-color: var(--line-strong); }
.exp-dot.active {
  border-color: var(--accent);
  background: rgba(200,169,110,0.05);
}
.exp-dot .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--fg-dim);
}
.exp-dot.active .num { color: var(--accent); }
.exp-dot .name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(242,239,233,0.7);
  line-height: 1;
}
.exp-dot.active .name { color: var(--fg); }
.exp-dot .bar {
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
}
.exp-dot.active .bar {
  animation: timerBar 3s linear forwards;
}
.exp-dot.active.paused .bar {
  animation-play-state: paused;
}
@keyframes timerBar {
  from { width: 0; }
  to { width: 100%; }
}

.exp-meta-bar {
  position: absolute;
  top: 24px; right: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-dim);
  z-index: 3;
}
.exp-meta-bar .rec {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 1.6s ease-in-out infinite;
}
.exp-pause {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--fg);
  padding: 6px 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}
.exp-pause:hover { border-color: var(--accent); color: var(--accent); }

/* keep older carousel rules unused but harmless */

/* Brands marquee — section blends with page bg */
.brands {
  background: var(--bg);
  padding: 100px 0 0;
}
.brands-head {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
  padding: 0 40px;
  flex-wrap: wrap;
}
.brands-head .lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.22em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--fg);
  margin: 0;
}
.brands-head .lbl .accent { color: var(--accent); }
.brands-head .meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-left: auto;
}
.marquee {
  overflow: hidden;
  position: relative;
}
.marquee::before, .marquee::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 160px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(to left, var(--bg), transparent); }
.marquee-track {
  display: flex;
  gap: 0;
  align-items: center;
  animation: marquee 42s linear infinite;
  width: max-content;
  padding: 32px 0;
}
.marquee-item {
  flex: 0 0 auto;
  width: 260px;
  height: 130px;
  margin: 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.75;
  transition: opacity 0.4s ease, filter 0.4s ease;
}
.marquee-item.invert img { filter: brightness(0) invert(1); }
.marquee-item:hover { opacity: 1; }
.marquee-item img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Skills mosaic ---------- */
.skills { background: var(--bg); }
.skills-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 180px;
  gap: 16px;
}
.skill-tile {
  position: relative;
  overflow: hidden;
  background: #0e0e0d;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color 0.4s ease;
}
.skill-tile:hover { border-color: var(--accent); }
.skill-tile.t1 { grid-column: span 3; grid-row: span 2; }
.skill-tile.t2 { grid-column: span 3; grid-row: span 1; }
.skill-tile.t3 { grid-column: span 2; grid-row: span 2; }
.skill-tile.t4 { grid-column: span 4; grid-row: span 2; }
.skill-tile.t5 { grid-column: span 3; grid-row: span 1; }
.skill-tile.t6 { grid-column: span 3; grid-row: span 1; }

.skill-bg {
  position: absolute; inset: 0;
  opacity: 0.7;
  transition: opacity 0.5s ease, transform 0.8s cubic-bezier(.7,0,.2,1);
}
.skill-tile:hover .skill-bg { opacity: 1; transform: scale(1.04); }

.skill-content {
  position: absolute;
  left: 28px;
  bottom: 24px;
  right: 28px;
  z-index: 2;
}
.skill-content .cat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.skill-content h4 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(28px, 3vw, 48px);
  letter-spacing: 0.02em;
  line-height: 0.95;
  margin: 0;
}
.skill-content .meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--fg-dim);
  margin-top: 8px;
}
.skill-corner {
  position: absolute;
  top: 16px; right: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--fg-dim);
  z-index: 2;
}

/* Skill backgrounds — abstract */
.bg-premiere {
  background:
    radial-gradient(circle at 30% 40%, rgba(140,90,220,0.55), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(50,30,80,0.6), transparent 50%),
    linear-gradient(135deg, #1a0d2a, #0a0612);
}
.bg-aftereffects {
  background:
    radial-gradient(circle at 50% 30%, rgba(120,80,200,0.5), transparent 50%),
    radial-gradient(circle at 30% 80%, rgba(40,20,80,0.6), transparent 55%),
    linear-gradient(180deg, #150924, #08040f);
}
.bg-resolve {
  background:
    radial-gradient(ellipse at 40% 60%, rgba(220,140,60,0.45), transparent 50%),
    radial-gradient(ellipse at 80% 30%, rgba(60,30,90,0.5), transparent 50%),
    linear-gradient(135deg, #1a1108, #08060f);
}
.bg-ai {
  background:
    radial-gradient(circle at 30% 30%, rgba(60,200,180,0.4), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(40,80,160,0.5), transparent 55%),
    linear-gradient(180deg, #06121a, #04080c);
}
.bg-camera {
  background:
    radial-gradient(ellipse at 60% 50%, rgba(200,170,90,0.4), transparent 55%),
    radial-gradient(ellipse at 30% 30%, rgba(80,40,20,0.6), transparent 55%),
    linear-gradient(135deg, #1a1308, #06040a);
}

/* Color grade slider tile */
.grade-tile {
  position: relative;
  overflow: hidden;
  user-select: none;
  cursor: ew-resize;
}
.grade-side {
  position: absolute;
  inset: 0;
}
.grade-side.before {
  background:
    radial-gradient(ellipse at 50% 40%, rgba(180,180,170,0.35), transparent 60%),
    linear-gradient(180deg, #2a2826 0%, #161513 100%);
  filter: saturate(0.4) contrast(0.9);
}
.grade-side.before::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 70%, rgba(120,100,80,0.4), transparent 50%),
    radial-gradient(ellipse at 70% 30%, rgba(180,160,140,0.3), transparent 55%);
}
.grade-side.after {
  background:
    radial-gradient(ellipse at 30% 70%, rgba(255,140,40,0.6), transparent 50%),
    radial-gradient(ellipse at 70% 30%, rgba(20,40,100,0.7), transparent 55%),
    linear-gradient(135deg, #1a0a05 0%, #050a18 100%);
  filter: saturate(1.3) contrast(1.15);
  clip-path: inset(0 0 0 var(--split, 50%));
}
.grade-side.after::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.5) 100%);
}
.grade-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--split, 50%);
  width: 2px;
  background: var(--accent);
  transform: translateX(-50%);
  z-index: 3;
  pointer-events: none;
}
.grade-handle::before, .grade-handle::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 1px;
  background: var(--accent);
  opacity: 0.4;
}
.grade-handle::before { top: 0; bottom: 50%; transform: translateX(-50%); }
.grade-handle::after { top: 50%; bottom: 0; transform: translateX(-50%); }
.grade-knob {
  position: absolute;
  top: 50%; left: var(--split, 50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.4), 0 8px 24px rgba(0,0,0,0.5);
  pointer-events: none;
}
.grade-knob svg { width: 18px; height: 18px; fill: #0a0a0a; }
.grade-label {
  position: absolute;
  top: 22px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  z-index: 3;
  pointer-events: none;
}
.grade-label.before { left: 22px; }
.grade-label.after { right: 22px; color: var(--accent); }
.grade-content {
  position: absolute;
  left: 28px;
  bottom: 24px;
  z-index: 3;
  pointer-events: none;
}

/* ---------- Skills accordion (numbered collapsible list) ---------- */
.skills-list-section {
  background: var(--bg);
}
.skills-accordion {
  margin-top: 60px;
  border-top: 1px solid var(--line-strong);
}
.skill-row-item {
  border-bottom: 1px solid var(--line-strong);
  transition: background-color 0.5s ease;
}
.skill-row-item.open {
  background: rgba(242, 239, 233, 0.015);
}
.skill-row-head {
  display: grid;
  grid-template-columns: 140px 1fr 60px;
  align-items: center;
  gap: 48px;
  width: 100%;
  padding: 38px 8px;
  background: none;
  border: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.skill-row-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  font-weight: 400;
  color: var(--fg-dim);
  letter-spacing: 0.04em;
  transition: color 0.4s ease;
}
.skill-row-item.open .skill-row-num {
  color: var(--accent);
}
.skill-row-title {
  font-family: 'Bebas Neue', 'Oswald', Impact, sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--fg);
  transition: transform 0.5s cubic-bezier(.7, 0, .2, 1);
  transform-origin: left center;
}
.skill-row-item:hover .skill-row-title {
  color: var(--fg);
}
.skill-row-arrow {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: transform 0.55s cubic-bezier(.7, 0, .2, 1);
}
.skill-row-arrow svg {
  width: 28px;
  height: 28px;
  display: block;
}
.skill-row-item.open .skill-row-arrow {
  transform: rotate(-45deg);
}

/* Smooth grid-template-rows expand */
.skill-row-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s cubic-bezier(.7, 0, .2, 1);
}
.skill-row-item.open .skill-row-body {
  grid-template-rows: 1fr;
}
.skill-row-body-inner {
  overflow: hidden;
  min-height: 0;
}
.skill-row-body-content {
  display: grid;
  grid-template-columns: 140px 1fr 60px;
  gap: 48px;
  padding: 0 8px 44px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.5s ease 0.05s, transform 0.55s cubic-bezier(.7, 0, .2, 1) 0.05s;
}
.skill-row-item.open .skill-row-body-content {
  opacity: 1;
  transform: translateY(0);
}
.skill-row-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 4px;
  line-height: 1.6;
}
.skill-row-text {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg);
  max-width: 760px;
  white-space: pre-line;
  font-weight: 300;
  text-wrap: pretty;
}

/* ---------- Featured Skills — block grid (2/2/1/1) ---------- */
.featured-skills {
  background: var(--bg);
  padding-left: clamp(40px, 12vw, 260px);
  padding-right: clamp(40px, 12vw, 260px);
}
.fs-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px 40px;
}
.fs-block {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.fs-block-wide {
  grid-column: 1 / -1;
  max-width: 1280px;
  justify-self: center;
  width: 100%;
}
.fs-block-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-strong);
}
.fs-block-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--accent);
}
.fs-block-title {
  margin: 0;
  font-family: 'Bebas Neue', 'Oswald', Impact, sans-serif;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--fg);
}
.fs-block-kind {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.fs-block-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #050505;
  border: 1px solid var(--line-strong);
  user-select: none;
}
.fs-block-wide .fs-block-frame {
  width: 100%;
  max-width: 1280px;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
}

/* Corner badges (mono, like the rest of the page) */
.fs-corner {
  position: absolute;
  left: 16px; bottom: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  background: rgba(0,0,0,0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,0.1);
  z-index: 5;
  pointer-events: none;
}
.fs-corner-tr {
  left: auto; right: 16px;
  bottom: auto; top: 14px;
}

/* Static image */
.fs-static {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.9s cubic-bezier(.7,0,.2,1);
}
.fs-block:hover .fs-static { transform: scale(1.03); }

/* Carousel */
.fs-carousel-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 0.9s ease;
}
.fs-carousel-dots {
  position: absolute;
  right: 16px; bottom: 16px;
  display: flex;
  gap: 6px;
  z-index: 5;
}
.fs-carousel-dots span {
  width: 22px; height: 2px;
  background: rgba(255,255,255,0.3);
  transition: background 0.4s ease, width 0.4s ease;
}
.fs-carousel-dots span.on {
  background: var(--accent);
  width: 34px;
}

/* Before/After slider */
.fs-ba {
  position: absolute; inset: 0;
  cursor: ew-resize;
  touch-action: none;
}
.fs-ba-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.fs-ba-after {
  clip-path: inset(0 0 0 var(--split));
}
.fs-ba-tag {
  position: absolute;
  top: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,0.1);
  z-index: 4;
  pointer-events: none;
}
.fs-ba-tag-before { left: 16px; }
.fs-ba-tag-after { right: 16px; color: #0a0a0a; background: var(--accent); border-color: var(--accent); }
.fs-ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--split);
  width: 2px;
  background: var(--accent);
  transform: translateX(-1px);
  z-index: 3;
  box-shadow: 0 0 22px rgba(200,169,110,0.4);
  pointer-events: none;
}
.fs-ba-knob {
  position: absolute;
  top: 50%; left: var(--split);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.4), 0 10px 28px rgba(0,0,0,0.55);
  z-index: 4;
  pointer-events: none;
}
.fs-ba-knob svg { width: 18px; height: 18px; }

/* Three-stage slider */
.fs-three {
  position: absolute; inset: 0;
  cursor: ew-resize;
  touch-action: none;
}
.fs-three-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.fs-three-seam {
  position: absolute;
  top: 0; bottom: 56px;
  width: 2px;
  background: var(--accent);
  transform: translateX(-1px);
  z-index: 2;
  box-shadow: 0 0 22px rgba(200,169,110,0.4);
  pointer-events: none;
}
.fs-three-knob {
  position: absolute;
  top: calc(50% - 28px);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.4), 0 10px 28px rgba(0,0,0,0.55);
  z-index: 4;
  pointer-events: none;
}
.fs-three-knob svg { width: 18px; height: 18px; }

.fs-three-track {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 56px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255,255,255,0.08);
  z-index: 5;
}
.fs-three-tick {
  position: absolute;
  top: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 14px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}
.fs-three-tick[style*="left: 0%"] { transform: translateX(0); align-items: flex-start; padding-left: 16px; }
.fs-three-tick[style*="left: 50%"] { transform: translateX(-50%); }
.fs-three-tick[style*="left: 100%"] { transform: translateX(-100%); align-items: flex-end; padding-right: 16px; }
.fs-three-tick .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transition: background 0.3s ease, transform 0.3s ease;
}
.fs-three-tick.on { color: var(--accent); }
.fs-three-tick.on .dot {
  background: var(--accent);
  transform: scale(1.4);
  box-shadow: 0 0 14px rgba(200,169,110,0.7);
}
.fs-three-tick .lbl {
  white-space: nowrap;
}

/* ---------- Hero award medallions (separate L/R olive branches) ---------- */
/* ── Hero award badges ─────────────────────────────────────────────
   Always 4-in-a-row. Every dimension uses min(vw, vh) so the badges
   shrink in BOTH axes — the critical fix for short/narrow viewports.
   Hidden below 761px (phones) via later media query.
──────────────────────────────────────────────────────────────────── */
.hero-awards {
  /* margin also compresses on short screens */
  margin-top: clamp(8px, min(2.5vw, 2vh), 44px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  /* inter-badge gap tracks the smaller viewport dimension */
  gap: clamp(10px, min(2.8vw, 2.2vh), 56px);
  width: 100%;
}
.hero-award {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, min(0.7vw, 0.8vh), 12px);
  flex: 0 0 auto;
  transition: transform 0.4s cubic-bezier(.7,0,.2,1);
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}
.hero-award:hover { transform: translateY(-3px); }

.hero-award-branch {
  /* Both dimensions track the smaller of vw/vh — key fix */
  width:  clamp(16px, min(2.5vw, 2.8vh), 38px);
  height: clamp(56px, min(8.5vw, 9.5vh), 130px);
  object-fit: contain;
  flex: 0 0 auto;
  pointer-events: none;
}
.hero-award-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(1px, min(0.25vw, 0.3vh), 4px);
  width: clamp(72px, min(10vw, 11vh), 160px);
  flex: 0 0 auto;
  padding: 2px 1px;
}
.hero-award-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(6px, min(0.6vw, 0.75vh), 9px);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: clamp(2px, min(0.35vw, 0.45vh), 6px);
  border-bottom: 1px solid rgba(200,169,110,0.4);
  margin-bottom: clamp(1px, min(0.25vw, 0.3vh), 4px);
}
.hero-award-title {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-weight: 500;
  font-style: normal;
  font-size: clamp(9px, min(1.05vw, 1.3vh), 15px);
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--fg);
  text-wrap: balance;
}
.hero-award-festival {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(6px, min(0.58vw, 0.7vh), 8px);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-top: clamp(2px, min(0.4vw, 0.5vh), 6px);
  line-height: 1.4;
}
.hero-award-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(6px, min(0.6vw, 0.72vh), 9px);
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-top: 1px;
}

/* ---------- Old laurel SVG (deprecated, kept for safety) ---------- */
.hero-laurel { display: none; }

/* ---------- Old laurel SVG (deprecated, kept for safety) ---------- */
.hero-laurel { display: none; }

/* ---------- Awards (legacy, no longer used) ---------- */
.awards {
  background: var(--bg);
}
.awards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(8px, min(2.2vw, 2.8vh), 28px);
  max-width: 1400px;
  margin: 0 auto;
}
.award {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, min(2.2vw, 2.8vh), 28px);
  padding: 40px 32px;
  background: linear-gradient(180deg, rgba(200,169,110,0.04) 0%, rgba(200,169,110,0.01) 100%);
  border: 1px solid var(--line);
  color: var(--accent);
  transition: border-color 0.4s ease, background 0.4s ease, transform 0.4s ease;
}
.award:hover {
  border-color: rgba(200,169,110,0.5);
  background: linear-gradient(180deg, rgba(200,169,110,0.07) 0%, rgba(200,169,110,0.02) 100%);
  transform: translateY(-3px);
}
.laurel {
  width: 56px;
  height: 150px;
  flex: 0 0 auto;
  color: var(--accent);
}
.award-body {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--fg);
}
.award-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}
.award-title {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: clamp(28px, 2.6vw, 40px);
  letter-spacing: 0.04em;
  margin: 4px 0 6px;
  line-height: 1.05;
  color: var(--fg);
  text-transform: uppercase;
}
.award-festival {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.award-film {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 14px;
  color: rgba(242,239,233,0.7);
  margin-top: 4px;
}

@media (max-width: 800px) {
  .awards-grid { grid-template-columns: 1fr; }
  .laurel { width: 40px; height: 120px; }
  .award { padding: 28px 16px; gap: 14px; }
}
.about {
  background: var(--bg);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-quote {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(60px, 8vw, 140px);
  letter-spacing: 0.01em;
  line-height: 0.92;
  margin: 0;
}
.about-quote em {
  font-style: normal;
  color: var(--accent);
}
.about-text { display: flex; flex-direction: column; gap: 28px; }
.about-text p {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(242,239,233,0.78);
  margin: 0;
  max-width: 480px;
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 12px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.about-stat .num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 56px;
  color: var(--accent);
  line-height: 1;
}
.about-stat .lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-top: 6px;
}

/* ---------- Contact ---------- */
.contact {
  background: linear-gradient(180deg, #08070a 0%, #050405 100%);
  border-top: 1px solid var(--line);
  padding: 140px 40px 60px;
}
.contact-cta {
  text-align: center;
  margin-bottom: 100px;
}
.contact-cta .eyebrow { margin-bottom: 28px; }
.contact-cta h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(80px, 14vw, 240px);
  letter-spacing: 0.01em;
  line-height: 0.9;
  margin: 0;
}
.contact-cta h2 em {
  font-style: normal;
  color: var(--accent);
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  max-width: 1400px;
  margin: 0 auto;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.contact-info .block .lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.contact-info .block .lbl .dot {
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
}
.contact-info .block .val {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 0.04em;
}
.contact-info .socials {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}
.contact-info .socials a {
  padding: 14px 22px;
  border: 1px solid var(--line-strong);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}
.contact-info .socials a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.form-row label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-dim);
  display: flex;
  align-items: center;
  gap: 10px;
}
.form-row label .idx {
  color: var(--accent);
}
.form-row input,
.form-row textarea {
  background: transparent;
  border: none;
  color: var(--fg);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  letter-spacing: 0.04em;
  outline: none;
  resize: none;
  padding: 0;
}
.form-row input::placeholder,
.form-row textarea::placeholder {
  color: rgba(242,239,233,0.25);
}
.form-row textarea { font-size: 18px; line-height: 1.5; min-height: 80px; }

.submit-btn {
  margin-top: 32px;
  background: var(--accent);
  color: #0a0a0a;
  border: none;
  padding: 22px 32px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.submit-btn:hover:not(:disabled) {
  background: #d8b97a;
  letter-spacing: 0.3em;
}
.submit-btn:disabled { opacity: 0.75; cursor: not-allowed; letter-spacing: 0.24em; }
.submit-btn.sent    { background: #2e7d4f; color: #e8f5e9; }
.submit-btn.error   { background: #7d2e2e; color: #fce8e8; }
.submit-btn svg { width: 16px; height: 16px; }
@keyframes spin { to { transform: rotate(360deg); } }

.contact-foot {
  margin-top: 100px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-dim);
  flex-wrap: wrap;
  gap: 24px;
}

/* ---------- Section dividers / labels ---------- */
.scene-tag {
  position: absolute;
  top: 40px; left: 40px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-dim);
  display: flex;
  align-items: center;
  gap: 12px;
}
.scene-tag .rec {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink {
  0%, 70% { opacity: 1; }
  85%, 100% { opacity: 0.2; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero-name { font-size: clamp(60px, 14vw, 160px); }
  .shutter-meta, .shutter-timecode { font-size: 9px; }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 60px; }
  .skills-grid { grid-template-columns: repeat(4, 1fr); }
  .skill-tile.t1, .skill-tile.t2, .skill-tile.t3, .skill-tile.t4, .skill-tile.t5, .skill-tile.t6 {
    grid-column: span 2;
  }
  .work-card.size-lg, .work-card.size-md, .work-card.size-half { grid-column: span 12; aspect-ratio: 16 / 9; }
  .nav { padding: 18px 24px; }
  .nav-links { display: none; }
  section { padding: 80px 24px; }
  .skill-row-head { grid-template-columns: 70px 1fr 40px; gap: 20px; padding: 26px 4px; }
  .skill-row-body-content { grid-template-columns: 1fr; gap: 16px; padding: 0 4px 32px; }
  .skill-row-num { font-size: 16px; }
  .skill-row-arrow { width: 32px; height: 32px; }
  .skill-row-arrow svg { width: 22px; height: 22px; }
  .skill-row-text { font-size: 15px; }
  .fs-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .fs-block-frame { aspect-ratio: 16 / 9; }
  .fs-block-wide .fs-block-frame { aspect-ratio: 16 / 9; }
  .fs-three-tick .lbl { display: none; }
}

/* =====================================================================
   RESPONSIVE SYSTEM v2  — ultrawide cap · MacBook/16:9 · tablet · phone
   Appended last so these rules win over the older blocks above.
   ===================================================================== */

/* ---- Ultrawide / curved displays: cap the content column, let
        section backgrounds + the hero barn-doors still bleed full width ---- */
@media (min-width: 1400px) {
  .section-head,
  .works-grid,
  .skills-accordion,
  .fs-grid,
  .exp-stage,
  .brands-head,
  .about,
  .contact-grid,
  .contact-cta {
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
  }
}
/* On very wide screens, ease the featured-skills side padding so its
   inner grid (already capped at 1600) sits centered rather than pinned. */
@media (min-width: 1700px) {
  .featured-skills {
    padding-left: 40px;
    padding-right: 40px;
  }
}

/* ---- Tablet & small laptop (≤1100): extend the existing block ---- */
@media (max-width: 1100px) {
  /* Works grid: never leave it at 3 cramped columns */
  .works-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }

  /* Experience: stack the horizontal card row (React sets inline cols → !important) */
  .exp-row,
  .exp-track { grid-template-columns: 1fr !important; }
  .exp-card2 { min-height: 0; padding: 26px 28px 24px; }
  .exp-card2.active .exp-card2-title {
    white-space: normal;
    font-size: clamp(26px, 4vw, 32px);
  }
  .exp-track { display: none; } /* avoid a column of stray progress bars */

  /* Featured skills: drop the oversized fluid side padding */
  .featured-skills { padding-left: 24px; padding-right: 24px; }
}

/* ---- Phone & large mobile (≤760) ---- */
@media (max-width: 760px) {
  section { padding: 76px 20px; }
  .section-head { margin-bottom: 46px; gap: 18px; }
  .section-title { font-size: clamp(46px, 14vw, 84px); }

  /* Works → single column */
  .works-grid { grid-template-columns: 1fr; gap: 30px; }
  .work-card { padding: 14px 14px 14px; }
  .work-meta h3 { font-size: 22px; }

  /* Hero: scale the name, trim the cinematic chrome that crowds a phone */
  .hero-name { font-size: clamp(36px, 11vw, 66px); }
  .hero-reveal { padding: 0 24px; }
  .hero-tag { font-size: 13px; max-width: 92%; margin-top: 6px; }
  .hero-awards { display: none; }            /* too tall for a phone viewport */
  .hero-eyebrow .line { width: 36px; }
  .shutter-meta { display: none; }
  .shutter-timecode { font-size: 8px; top: 64px; }
  .shutter-timecode.left { left: 16px; }
  .shutter-timecode.right { right: 16px; }
  .shutter-corner { width: 14px; height: 14px; }
  .shutter-corner.tl { top: 16px; left: 16px; }
  .shutter-corner.tr { top: 16px; right: 16px; }
  .shutter-corner.bl { bottom: 16px; left: 16px; }
  .shutter-corner.br { bottom: 16px; right: 16px; }
  .scene-tag { top: 20px; left: 20px; }

  /* Skills accordion: tighter head, smaller title */
  .skill-row-head { grid-template-columns: 42px 1fr 30px; gap: 14px; padding: 22px 2px; }
  .skill-row-title { font-size: clamp(26px, 8.5vw, 42px); }
  .skill-row-body-content { gap: 12px; padding: 0 2px 28px; }

  /* About / Contact headline scale */
  .about-quote { font-size: clamp(46px, 15vw, 92px); }
  .contact { padding: 90px 20px 50px; }
  .contact-cta { margin-bottom: 64px; }
  .contact-cta h2 { font-size: clamp(54px, 17vw, 110px); }
  .contact-info .socials { flex-wrap: wrap; }
  .contact-foot { margin-top: 64px; }

  /* Experience headline + card tags breathe */
  .exp-card2-tags span { font-size: 14px; padding: 7px 14px; }
  .exp-card2.active .exp-card2-tags span { max-width: 240px; }

  /* Featured blocks */
  .fs-grid { gap: 30px; }
  .fs-block-head { gap: 14px; }
}

/* ---- Small phones (≤460) ---- */
@media (max-width: 460px) {
  section { padding: 58px 16px; }
  .hero-name { font-size: clamp(28px, 10.5vw, 48px); }
  .hero-reveal { padding: 0 18px; }
  .nav { padding: 14px 18px; }
  .nav-cta { font-size: 9px; padding: 8px 12px; }
  .work-meta h3 { font-size: 20px; }
  .contact-foot { flex-direction: column; align-items: flex-start; gap: 10px; }
  .contact-info .block .val { font-size: 24px; }
  .form-row input { font-size: 21px; }
}

/* ---- Short landscape phones: keep the hero reveal from clipping ---- */
@media (max-height: 520px) and (orientation: landscape) {
  .hero-awards { display: none; }
  .hero-name { font-size: clamp(32px, 9vh, 64px); }
  .hero-tag { display: none; }
}
