/* Luis Cardona Portfolio — scrolljacked cinematic */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
}

/* ===== Layout shell ===== */
.app {
  min-height: 100vh;
}

/* ===== Custom cursor ===== */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  background: var(--neon);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: width 0.2s, height 0.2s;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.cursor-dot.is-link {
  width: 44px;
  height: 44px;
  background: var(--neon);
}

@media (hover: none) {
  .cursor-dot {
    display: none;
  }
}

@media (hover: hover) {
  html,
  body,
  body * {
    cursor: none !important;
  }
}

/* ===== Film grain overlay ===== */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  animation: grain 0.8s steps(3) infinite;
}

@keyframes grain {
  0% {
    transform: translate(0, 0);
  }

  33% {
    transform: translate(-3%, 2%);
  }

  66% {
    transform: translate(2%, -1%);
  }

  100% {
    transform: translate(0, 0);
  }
}

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.88);
  color: var(--paper);
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 28px;
  border-bottom: 1px solid #222;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-wm {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--paper);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-wm .dot {
  color: var(--neon);
}

.nav-wm .mono {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 10px;
  color: #888;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-left: 4px;
}

.nav-links {
  display: flex;
  gap: 24px;
  margin-left: auto;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper);
  cursor: pointer;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color .14s, border-color .14s;
  position: relative;
}

.nav-link:hover {
  border-bottom-color: var(--paper);
}

.nav-link.active {
  color: var(--neon);
  border-bottom-color: var(--neon);
}

.nav-link .num {
  color: #666;
  margin-right: 6px;
}

.nav-cta {
  margin-left: 28px;
  background: var(--neon);
  color: var(--ink);
  border: 0;
  padding: 10px 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s, box-shadow .12s;
}

.nav-cta:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--paper);
}

/* ===== Progress bar ===== */
.progress {
  position: fixed;
  top: 64px;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--neon);
  z-index: 49;
  transition: width 0.1s linear;
}

/* ===== Section counter ===== */
.section-counter {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  z-index: 45;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--paper);
  mix-blend-mode: difference;
}

.section-counter .dot {
  width: 8px;
  height: 8px;
  border: 1px solid currentColor;
  background: transparent;
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.section-counter .dot.active {
  background: var(--neon);
  border-color: var(--neon);
  transform: scale(1.4);
}

/* ===== Scrolljack stage ===== */
.stage {
  position: relative;
}

.panel {
  min-height: 100vh;
  padding: 104px 56px 56px;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* ===== HERO ===== */
.hero {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding: 104px 56px 40px;
}

.hero-topline {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 40px;
}

.hero-topline .mid {
  text-align: center;
}

.hero-topline .right {
  text-align: right;
  color: var(--neon);
}

.hero-topline .right::before {
  content: "●";
  display: inline-block;
  margin-right: 6px;
  color: var(--neon);
  animation: blink 1.6s infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(72px, 15vw, 260px);
  line-height: 0.84;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-title .row {
  display: block;
  overflow: hidden;
}

.hero-title .row>span {
  display: inline-block;
  transform: translateY(105%);
  animation: rise 1s var(--ease-out) forwards;
}

.hero-title .row:nth-child(1)>span {
  animation-delay: 0.1s;
}

.hero-title .row:nth-child(2)>span {
  animation-delay: 0.2s;
}

.hero-title .row:nth-child(3)>span {
  animation-delay: 0.3s;
}

.hero-title .hi {
  color: var(--neon);
  font-style: normal;
}

@keyframes rise {
  to {
    transform: translateY(0);
  }
}

.hero-footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 48px;
  padding-top: 40px;
  padding-bottom: 8px;
  border-top: 1px solid #222;
  font-size: 1rem;
  letter-spacing: normal;
  line-height: 1.4;
  opacity: 0;
  animation: fade 0.8s ease 0.8s forwards;
}

.hero-footer>div {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.hero-footer b {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  color: var(--paper);
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.hero-footer .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #888;
  line-height: 1;
}

.hero-footer .scrollhint {
  text-align: right;
  color: var(--neon);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 8px;
}

.hero-footer .scrollhint .arrow {
  display: inline-block;
  animation: bob 1.5s ease-in-out infinite;
}

@keyframes bob {
  50% {
    transform: translateY(4px);
  }
}

@keyframes fade {
  to {
    opacity: 1;
  }
}

/* Hero marquee ticker */
.hero-marquee {
  overflow: hidden;
  white-space: nowrap;
  padding: 14px 0;
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
  margin-top: 24px;
  background: var(--ink);
}

.hero-marquee .track {
  display: inline-flex;
  gap: 56px;
  animation: marquee 30s linear infinite;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--paper);
}

.hero-marquee .track .sep {
  color: var(--neon);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ===== Hero: kinetic variant ===== */
.hero-kinetic {
  justify-content: center;
}

.hero-kinetic .hero-title {
  text-align: center;
  font-size: clamp(80px, 18vw, 320px);
}

.hero-kinetic .hero-sub {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--neon);
  margin-top: 20px;
  opacity: 0;
  animation: fade 0.8s ease 1s forwards;
}

/* ===== Hero: split variant ===== */
.hero-split .hero-title {
  font-size: clamp(56px, 9vw, 150px);
}

.hero-split-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  flex: 1;
  align-items: stretch;
  margin-top: 20px;
}

.hero-split-still {
  background: #111;
  border: 1px solid #222;
  overflow: hidden;
  position: relative;
  min-height: 400px;
}

.hero-split-still img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.85);
}

.hero-split-still .meta {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
}

/* ===== Role banner (CD-first / Producer-first) ===== */
.role-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--neon);
  margin-bottom: 16px;
}

/* ===== Section headers ===== */
.panel-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-2);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.panel-eyebrow .num {
  background: var(--ink);
  color: var(--neon);
  padding: 4px 8px;
  font-weight: 700;
}

.panel-eyebrow.light {
  color: #888;
}

.panel-eyebrow.light .num {
  background: var(--neon);
  color: var(--ink);
}

.panel-h {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(48px, 8vw, 128px);
  line-height: 0.9;
  letter-spacing: -0.035em;
  margin: 0 0 32px;
  text-transform: uppercase;
}

.panel-h .hi {
  color: var(--neon);
  font-style: normal;
}

/* ===== Work index ===== */
.work {
  background: var(--paper);
  color: var(--ink);
  min-height: auto;
}

.work-list {
  border-top: 1px solid var(--ink);
}

.work-row {
  display: grid;
  grid-template-columns: 60px 1fr 220px 140px 50px;
  align-items: center;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--ink);
  cursor: pointer;
  position: relative;
  transition: padding-left .3s var(--ease-io);
}

.work-row:hover {
  padding-left: 20px;
}

.work-row::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--neon);
  z-index: -1;
  transition: width .3s var(--ease-io);
}

.work-row:hover::before {
  width: 100%;
}

.work-row .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-3);
  letter-spacing: 0.12em;
}

.work-row .title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(24px, 3.5vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1;
}

.work-row .client,
.work-row .type,
.work-row .year {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-2);
}

.work-row .type {
  justify-self: start;
}

.work-row .year {
  justify-self: end;
  font-variant-numeric: tabular-nums;
}

.work-row .arrow {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  justify-self: end;
  transition: transform .3s var(--ease-io);
}

.work-row:hover .arrow {
  transform: translateX(6px);
}

/* Preview image on hover */
.work-row .preview {
  position: absolute;
  right: 120px;
  top: 50%;
  transform: translateY(-50%) scale(0.9);
  width: 240px;
  aspect-ratio: 16/10;
  background: var(--ink);
  border: 1px solid var(--ink);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 5;
}

.work-row .preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-row:hover .preview {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

/* ===== Case Studies ===== */
.case {
  background: var(--ink);
  color: var(--paper);
  padding: 104px 56px 80px;
}

.case .panel-eyebrow {
  color: #888;
}

.case .panel-eyebrow .num {
  background: var(--neon);
  color: var(--ink);
}

.case .panel-h {
  color: var(--paper);
}

.case-meta {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
  margin-bottom: 40px;
}

.case-meta>div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.case-meta .lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #888;
}

.case-meta b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--paper);
  letter-spacing: -0.01em;
}

.case-hero {
  position: relative;
  aspect-ratio: 2.39/1;
  background: #000;
  border: 1px solid #333;
  overflow: hidden;
  cursor: pointer;
  margin-bottom: 40px;
}

.case-hero img,
.case-hero iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
}

.case-hero .overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.6));
  transition: background .3s;
}

.case-hero:hover .overlay {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.8));
}

.case-hero .play {
  width: 100px;
  height: 100px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--paper);
  transition: transform .3s var(--ease-io), background .3s, color .3s, border-color .3s;
}

.case-hero:hover .play {
  transform: scale(1.1);
  background: var(--neon);
  color: var(--ink);
  border-color: var(--neon);
}

.case-hero .play svg {
  width: 36px;
  height: 36px;
  margin-left: 6px;
}

.case-hero .bars {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
}

/* Stat strip */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #333;
  margin-bottom: 48px;
}

.stat-cell {
  background: var(--ink);
  padding: 32px 24px;
}

.stat-cell .n {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(48px, 5.5vw, 88px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--paper);
}

.stat-cell:nth-child(1) .n {
  color: var(--neon);
}

.stat-cell .l {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #888;
  margin-top: 10px;
}

/* Case body */
.case-body {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 56px;
  margin-bottom: 48px;
}

.case-body .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 12px;
  display: block;
}

.case-body p {
  font-size: 17px;
  line-height: 1.55;
  color: #d4d4d0;
  max-width: 60ch;
  margin: 0 0 16px;
}

.case-body h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--paper);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.case-pull {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(28px, 3.6vw, 52px);
  line-height: 1.12;
  font-weight: 400;
  color: var(--paper);
  max-width: 22ch;
  padding-left: 24px;
  border-left: 3px solid var(--neon);
  margin: 40px 0;
}

/* Case gallery */
.case-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 48px;
}

.case-gallery .tile {
  aspect-ratio: 4/5;
  background: #111;
  border: 1px solid #333;
  overflow: hidden;
}

.case-gallery .tile.wide {
  grid-column: span 2;
  aspect-ratio: auto;
}

.case-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Oasis variant */
.case-oasis {
  background: #002d36;
  color: var(--paper);
}

.case-oasis .panel-eyebrow .num {
  background: #00c0e0;
  color: var(--ink);
}

.case-oasis .case-pull {
  border-left-color: #00c0e0;
}

.case-oasis .stat-cell {
  background: #002d36;
}

.case-oasis .stat-strip {
  background: rgba(255, 255, 255, 0.08);
}

.case-oasis .stat-cell:nth-child(1) .n {
  color: #00c0e0;
}

.case-oasis .case-hero {
  border-color: rgba(255, 255, 255, 0.12);
}

/* Logo showcase tile for oasis */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.logo-grid .logo-tile {
  aspect-ratio: 1/1;
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  overflow: hidden;
}

.logo-grid .logo-tile.dark {
  background: #002d36;
  border-color: rgba(255, 255, 255, 0.3);
}

.logo-grid .logo-tile.teal {
  background: #00c0e0;
}

.logo-grid .logo-tile.light {
  background: #d3f4fa;
}

.logo-grid .logo-tile img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.color-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.color-chip {
  aspect-ratio: 5/4;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  color: var(--paper);
}

.color-chip .swatch-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
}

.color-chip .swatch-hex {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  opacity: 0.7;
  margin-top: 4px;
}

/* ===== Photography ===== */
.photography {
  background: var(--ink);
  color: var(--paper);
  padding: 104px 0 80px;
}

.photography .panel-head {
  padding: 0 56px;
  margin-bottom: 48px;
}

.photography .panel-eyebrow {
  color: #888;
}

.photography .panel-eyebrow .num {
  background: var(--neon);
  color: var(--ink);
}

.photography .panel-h {
  color: var(--paper);
}

.photo-marquee-wrap {
  overflow: hidden;
  margin-bottom: 24px;
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
}

.photo-marquee {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  width: max-content;
  animation: scrollx 45s linear infinite;
}

.photo-marquee.reverse {
  animation-direction: reverse;
  animation-duration: 55s;
}

.photo-marquee .shot {
  height: 320px;
  flex-shrink: 0;
  background: #111;
  border: 1px solid #222;
  overflow: hidden;
  position: relative;
}

.photo-marquee .shot img {
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .5s var(--ease-out);
}

.photo-marquee .shot:hover img {
  transform: scale(1.05);
}

.photo-marquee .shot .tc {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--paper);
  background: rgba(0, 0, 0, 0.6);
  padding: 3px 6px;
}

@keyframes scrollx {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.photo-count {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 56px;
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #888;
}

.photo-count .big {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 64px;
  color: var(--neon);
  line-height: 1;
  letter-spacing: -0.03em;
}

/* ===== About ===== */
.about {
  background: var(--paper);
  color: var(--ink);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: start;
  margin-bottom: 64px;
}

.about-lead {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  max-width: 22ch;
  margin: 0 0 24px;
}

.about-lead .hi {
  color: var(--neon);
  font-style: normal;
  background: var(--ink);
  padding: 0 6px;
}

.about-copy p {
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 16px;
  max-width: 52ch;
  color: var(--fg-2);
}

.about-side {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.about-card {
  border: 1px solid var(--ink);
  padding: 24px;
  background: var(--paper);
}

.about-card.dark {
  background: var(--ink);
  color: var(--paper);
}

.about-card.dark .lbl {
  color: #888;
}

.about-card .lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 10px;
  display: block;
}

.about-card h4 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

.about-card small {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--fg-3);
  text-transform: uppercase;
}

.timeline {
  border-top: 1px solid var(--ink);
}

.timeline-row {
  display: grid;
  grid-template-columns: 150px 1fr 260px;
  gap: 32px;
  padding: 24px 0;
  border-bottom: 1px solid var(--ink);
  align-items: baseline;
}

.timeline-row .year {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--fg-3);
  font-variant-numeric: tabular-nums;
}

.timeline-row .role {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: -0.015em;
  line-height: 1.05;
}

.timeline-row .role small {
  display: block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-top: 6px;
}

.timeline-row .desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-2);
}

/* Skills band */
.skills {
  border-top: 1px solid var(--ink);
  padding-top: 40px;
  margin-top: 48px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.skills-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink);
}

.skills-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skills-col li {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  padding: 7px 0;
  letter-spacing: -0.005em;
}

/* ===== Contact ===== */
.contact {
  background: var(--ink);
  color: var(--paper);
  padding: 104px 56px 40px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.contact-huge {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(64px, 12vw, 200px);
  line-height: 0.88;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin: auto 0;
  padding-bottom: 48px;
  display: block;
}

.contact-huge .hi {
  color: var(--neon);
  font-style: normal;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
}

.contact-grid>div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-grid .lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #888;
}

.contact-grid a,
.contact-grid b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--paper);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.contact-grid a:hover {
  color: var(--neon);
}

.contact-ctas {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 24px;
  cursor: pointer;
  border: 1px solid var(--paper);
  background: transparent;
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background .14s, color .14s, transform .14s, box-shadow .14s;
}

.btn:hover {
  background: var(--neon);
  color: var(--ink);
  border-color: var(--neon);
}

.btn.neon {
  background: var(--neon);
  color: var(--ink);
  border-color: var(--neon);
  box-shadow: 4px 4px 0 var(--paper);
}

.btn.neon:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--paper);
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.contact-foot {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #555;
  margin-top: 40px;
}

/* ===== Modal (video lightbox) ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s;
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-inner {
  position: relative;
  width: 100%;
  max-width: 1280px;
  aspect-ratio: 16/9;
  background: #000;
  border: 1px solid #333;
  transform: scale(0.96);
  transition: transform .24s var(--ease-out);
}

.modal.open .modal-inner {
  transform: scale(1);
}

.modal-inner iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.modal-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: transparent;
  border: 0;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close:hover {
  color: var(--neon);
}

/* ===== Tweaks Panel ===== */
.tweaks {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 80;
  background: var(--ink);
  color: var(--paper);
  padding: 18px;
  border: 1px solid #333;
  width: 260px;
  font-family: var(--font-mono);
  font-size: 11px;
  display: none;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.tweaks.open {
  display: block;
}

.tweaks h6 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neon);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tweaks h6 .close {
  cursor: pointer;
  color: #888;
  font-family: var(--font-mono);
  font-size: 14px;
}

.tweaks .row {
  margin-bottom: 14px;
}

.tweaks .lbl {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #888;
  display: block;
  margin-bottom: 6px;
}

.tweaks .opts {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.tweaks .opt {
  background: transparent;
  color: var(--paper);
  border: 1px solid #444;
  padding: 7px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .1s, color .1s, border-color .1s;
  flex: 1;
  min-width: 0;
  text-align: center;
}

.tweaks .opt:hover {
  border-color: var(--paper);
}

.tweaks .opt.active {
  background: var(--neon);
  color: var(--ink);
  border-color: var(--neon);
}

/* ===== Reveal on scroll ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  will-change: transform, opacity;
}

[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}

.work-row[data-reveal] {
  transition-delay: calc(var(--i, 0) * 60ms);
}

.reveal-line {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: 0.9;
}

.reveal-line>span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 0.9s var(--ease-out);
}

[data-reveal].is-in .reveal-line>span {
  transform: translateY(0);
}

[data-reveal].is-in .reveal-line:nth-child(3)>span {
  transition-delay: 0.1s;
}

/* ===== Responsive ===== */
@media (max-width: 1000px) {
  .panel {
    padding: 96px 24px 40px;
  }

  .hero {
    padding: 96px 24px 24px;
  }

  .case {
    padding: 96px 24px 60px;
  }

  .contact {
    padding: 96px 24px 24px;
  }

  .photography .panel-head,
  .photo-count {
    padding: 0 24px;
  }

  .case-meta {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-body {
    grid-template-columns: 1fr;
  }

  .stat-strip,
  .contact-grid,
  .skills-grid,
  .logo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .color-chips {
    grid-template-columns: 1fr;
  }

  .work-row {
    grid-template-columns: 40px 1fr 50px;
    gap: 12px;
  }

  .work-row .client,
  .work-row .type,
  .work-row .year,
  .work-row .preview {
    display: none;
  }

  .about-grid,
  .hero-split-grid {
    grid-template-columns: 1fr;
  }

  .timeline-row {
    grid-template-columns: 80px 1fr;
  }

  .timeline-row .desc {
    grid-column: 1 / -1;
  }

  .nav-links {
    display: none;
  }

  .section-counter {
    display: none;
  }

  .hero-footer {
    grid-template-columns: 1fr 1fr;
  }

  .hero-topline {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .hero-topline .mid,
  .hero-topline .right {
    text-align: left;
  }
}