/* ============================================================
   Jacob Gonzales — portfolio
   ============================================================ */

:root {
  --bg: #08080a;
  --bg-soft: #0e0e11;
  --panel: #131317;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --fg: #f4f3f1;
  --fg-dim: #9b9aa3;
  --fg-faint: #6a6973;
  --accent: #22d3ee;
  --accent-soft: rgba(34, 211, 238, 0.14);
  --r: 14px;
  --maxw: 1320px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display",
               "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

::selection { background: var(--accent); color: #fff; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 4vw, 56px); }

/* ---------- film grain ---------- */
.grain {
  position: fixed;
  inset: -150%;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 0.6s steps(2) infinite;
}
@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(-2%, 1.5%); }
  100% { transform: translate(1.5%, -1%); }
}

/* ---------- preloader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: grid;
  place-items: center;
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-inner { text-align: center; }
.loader-mark {
  font-size: clamp(48px, 9vw, 108px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  overflow: hidden;
}
.loader-mark span {
  display: inline-block;
  animation: markUp 0.9s var(--ease) both;
}
@keyframes markUp { from { transform: translateY(110%); } to { transform: translateY(0); } }
.loader-bar {
  margin: 22px auto 0;
  width: min(240px, 50vw);
  height: 2px;
  background: var(--line);
  overflow: hidden;
}
.loader-bar i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.3s linear;
}
.loader-pct {
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--fg-faint);
  font-variant-numeric: tabular-nums;
}

/* ---------- header ---------- */
.hdr {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  transition: transform 0.5s var(--ease), background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.hdr.solid {
  background: rgba(8, 8, 10, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.hdr.hide { transform: translateY(-100%); }
.hdr-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.14em;
  white-space: nowrap;
}
.brand i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
  animation: pulseDot 2.4s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.82); }
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative;
  padding: 9px 15px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--fg-dim);
  border-radius: 999px;
  transition: color 0.25s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 15px; right: 15px; bottom: 3px;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav a:hover { color: var(--fg); }
.nav a:hover::after, .nav a.on::after { transform: scaleX(1); }
.nav a.on { color: var(--fg); }
.nav-cta {
  padding: 10px 20px !important;
  background: var(--fg);
  color: var(--bg) !important;
  font-weight: 700;
  transition: transform 0.3s var(--ease), background 0.3s !important;
}
.nav-cta::after { display: none; }
.nav-cta:hover { transform: translateY(-2px); background: var(--accent); color: #fff !important; }

.burger { display: none; width: 38px; height: 38px; position: relative; }
.burger span {
  position: absolute; left: 8px; right: 8px; height: 1.8px;
  background: var(--fg); transition: transform 0.4s var(--ease), opacity 0.3s;
}
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { bottom: 14px; }
.burger.x span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.burger.x span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-bottom: clamp(48px, 8vh, 92px);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media video, .hero-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
  transform: scale(1.06);
  animation: heroDrift 22s ease-in-out infinite alternate;
}
.hero-media video.on, .hero-media img.on { opacity: 1; }
@keyframes heroDrift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to   { transform: scale(1.14) translate3d(-1.5%, -1.5%, 0); }
}
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top, var(--bg) 2%, rgba(8,8,10,0.55) 38%, rgba(8,8,10,0.18) 62%, rgba(8,8,10,0.72) 100%),
    linear-gradient(to right, rgba(8,8,10,0.78), rgba(8,8,10,0.1) 58%);
}
.hero-in { position: relative; z-index: 2; width: 100%; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 26px;
}
.eyebrow::before {
  content: "";
  width: 34px; height: 1px;
  background: var(--accent);
}

.hero h1 {
  font-size: clamp(42px, 8.4vw, 132px);
  font-weight: 900;
  line-height: 0.93;
  letter-spacing: -0.045em;
  margin-bottom: 30px;
}
.hero h1 .ln { display: block; overflow: hidden; }
.hero h1 .ln > span {
  display: block;
  transform: translateY(105%);
  animation: lineUp 1.05s var(--ease) both;
}
.hero h1 .ln:nth-child(2) > span { animation-delay: 0.09s; }
.hero h1 .ln:nth-child(3) > span { animation-delay: 0.18s; }
@keyframes lineUp { to { transform: translateY(0); } }
.hero h1 em { font-style: normal; color: var(--accent); }

.hero-sub {
  max-width: 56ch;
  font-size: clamp(15px, 1.35vw, 18.5px);
  color: var(--fg-dim);
  margin-bottom: 36px;
}
.hero-act { display: flex; gap: 13px; flex-wrap: wrap; align-items: center; }

.btn {
  --bx: 50%; --by: 50%;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 15px 30px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease), color 0.3s, border-color 0.3s;
}
.btn::before {
  content: "";
  position: absolute; z-index: -1;
  left: var(--bx); top: var(--by);
  width: 0; height: 0;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
  transition: width 0.55s var(--ease), height 0.55s var(--ease);
}
.btn:hover::before { width: 320px; height: 320px; }
.btn:hover { transform: translateY(-3px); color: #fff; }
.btn-fill { background: var(--fg); color: var(--bg); }
.btn-line { border: 1.5px solid var(--line-strong); color: var(--fg); }
.btn-line:hover { border-color: var(--accent); }
.btn svg { transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.hero-meta {
  position: absolute;
  right: clamp(20px, 4vw, 56px);
  bottom: clamp(48px, 8vh, 92px);
  z-index: 2;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hero-meta div { display: flex; flex-direction: column; align-items: flex-end; }
.hero-meta b {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.hero-meta span { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-faint); }

.scroll-hint {
  position: absolute;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  z-index: 2;
  width: 1px; height: 46px;
  background: linear-gradient(to bottom, transparent, var(--line-strong));
  overflow: hidden;
}
.scroll-hint::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--accent);
  animation: scrollRun 2.1s var(--ease-io) infinite;
}
@keyframes scrollRun {
  0%   { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

/* ---------- marquee ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  overflow: hidden;
  background: var(--bg-soft);
}
.marquee-track { display: flex; width: max-content; animation: slide 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 34px;
  padding-right: 34px;
  font-size: clamp(15px, 1.7vw, 21px);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--fg-faint);
  white-space: nowrap;
  transition: color 0.3s;
}
.marquee-track span:hover { color: var(--fg); }
.marquee-track span::after {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.55;
}

/* ---------- section chrome ---------- */
.sec { padding: clamp(78px, 11vw, 150px) 0; }
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 46px;
}
.sec-num {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.26em;
  color: var(--accent);
  margin-bottom: 14px;
}
.sec h2 {
  font-size: clamp(30px, 5.2vw, 66px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
}
.sec-note { font-size: 14.5px; color: var(--fg-dim); margin-top: 14px; max-width: 46ch; }
.sec-note a { color: var(--accent); font-weight: 600; border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.sec-note a:hover { border-bottom-color: var(--accent); }

/* ---------- filters ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.f-btn {
  position: relative;
  padding: 10px 19px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-dim);
  transition: color 0.3s, border-color 0.3s, background 0.3s, transform 0.3s var(--ease);
}
.f-btn:hover { color: var(--fg); border-color: var(--line-strong); transform: translateY(-2px); }
.f-btn.on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.f-btn b { font-variant-numeric: tabular-nums; opacity: 0.5; margin-left: 6px; font-weight: 600; }

/* ---------- work grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(266px, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}
.card {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform 0.5s var(--ease), border-color 0.4s, box-shadow 0.5s var(--ease);
}
.card:hover {
  transform: translateY(-7px);
  border-color: var(--line-strong);
  box-shadow: 0 22px 50px -18px rgba(0, 0, 0, 0.85);
}
.card-media {
  position: relative;
  aspect-ratio: 9 / 16;
  background: #000;
  overflow: hidden;
}
.card.wide .card-media { aspect-ratio: 16 / 9; }
.card-media img, .card-media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.card-media img { transition: transform 0.85s var(--ease), opacity 0.45s; }
.card:hover .card-media img { transform: scale(1.07); }
.card-media video { opacity: 0; transition: opacity 0.45s; z-index: 1; }
.card.playing .card-media video { opacity: 1; }
.card.playing .card-media img { opacity: 0; }

.card-tag {
  position: absolute;
  z-index: 3;
  top: 11px; left: 11px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  background: rgba(8, 8, 10, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  color: var(--fg);
}
.card-play {
  position: absolute;
  z-index: 3;
  right: 11px; bottom: 11px;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(8, 8, 10, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), background 0.3s;
}
.card:hover .card-play { opacity: 1; transform: scale(1); }
.card-play:hover { background: var(--accent); }
.card-play svg { width: 13px; height: 13px; margin-left: 2px; }

.card-body { padding: 15px 16px 17px; }
.card-client {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.card-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.28;
  margin-bottom: 5px;
}
.card-blurb {
  font-size: 12.8px;
  color: var(--fg-faint);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.more-wrap { display: flex; justify-content: center; margin-top: 46px; }
.more-btn {
  padding: 15px 34px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 13.5px;
  font-weight: 700;
  transition: background 0.35s, color 0.35s, transform 0.35s var(--ease), border-color 0.35s;
}
.more-btn:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); transform: translateY(-3px); }

/* ---------- about ---------- */
.about { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-in {
  display: grid;
  grid-template-columns: minmax(190px, 260px) 1fr;
  gap: clamp(30px, 5vw, 76px);
  align-items: start;
}
.about-photo {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 5;
}
.about-photo::after {
  content: "";
  position: absolute; inset: 0;
  /* Neutral, not accent-tinted — a coloured wash over a face reads as a colour
     cast on skin. This just grounds the portrait into the page. */
  background: linear-gradient(to top, rgba(8, 8, 10, 0.42), transparent 55%);
  pointer-events: none;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.about-photo:hover img { transform: scale(1.05); }
.about-copy p { font-size: clamp(15px, 1.25vw, 17.5px); color: var(--fg-dim); max-width: 62ch; margin-bottom: 18px; }
.about-copy p strong { color: var(--fg); font-weight: 600; }
.about-copy h2 { margin-bottom: 24px; }

.skills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.skills span {
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fg-dim);
  transition: border-color 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.skills span:hover { border-color: var(--accent); color: var(--fg); transform: translateY(-2px); }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  margin-top: 44px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}
.stat b {
  display: block;
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat span { display: block; font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-faint); margin-top: 9px; }

/* ---------- beyond / personal ---------- */
.beyond-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.bcard {
  position: relative;
  display: block;
  padding: 34px 30px 30px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.4s;
}
.bcard::before {
  content: "";
  position: absolute;
  top: -60%; left: -20%;
  width: 140%; height: 160%;
  background: radial-gradient(circle at 30% 30%, var(--accent-soft), transparent 62%);
  opacity: 0;
  transition: opacity 0.55s var(--ease);
}
a.bcard:hover { transform: translateY(-7px); border-color: var(--line-strong); }
a.bcard:hover::before { opacity: 1; }
.bcard-ico { position: relative; font-size: 26px; margin-bottom: 16px; }
.bcard h3 { position: relative; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 9px; }
.bcard p { position: relative; font-size: 14px; color: var(--fg-dim); margin-bottom: 20px; }
.bcard-go { position: relative; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--accent); }
.bcard-go svg { transition: transform 0.35s var(--ease); }
a.bcard:hover .bcard-go svg { transform: translateX(5px); }
.bcard.soon { opacity: 0.58; }
.bcard.soon .bcard-go { color: var(--fg-faint); }

/* ---------- contact ---------- */
.contact {
  text-align: center;
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
/* Y2K plate behind the contact section. Low opacity + a fade to --bg at the
   edges so it reads as texture, not as a competing image. Content sits above
   it via z-index on .contact > .wrap. */
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("assets/y2k/bg-contact.jpg") center / cover no-repeat;
  opacity: 0.22;
  -webkit-mask-image: radial-gradient(120% 92% at 50% 55%, #000 28%, transparent 78%);
          mask-image: radial-gradient(120% 92% at 50% 55%, #000 28%, transparent 78%);
}
.contact > .wrap { position: relative; z-index: 1; }
.contact h2 {
  font-size: clamp(34px, 7.5vw, 104px);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin-bottom: 24px;
}
.contact p { color: var(--fg-dim); font-size: clamp(15px, 1.3vw, 18px); max-width: 52ch; margin: 0 auto 38px; }
.mail {
  display: inline-block;
  font-size: clamp(18px, 2.9vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  padding-bottom: 6px;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: background-size 0.55s var(--ease), color 0.35s;
}
.mail:hover { background-size: 100% 2px; color: var(--accent); }

/* ---------- footer ---------- */
.ftr {
  border-top: 1px solid var(--line);
  padding: 30px 0;
  font-size: 12.5px;
  color: var(--fg-faint);
}
.ftr-in { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.ftr a { transition: color 0.3s; }
.ftr a:hover { color: var(--fg); }
.ftr-links { display: flex; gap: 20px; }

/* ---------- lightbox ---------- */
.lb {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(4, 4, 6, 0.9);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0.45s;
}
.lb.open { opacity: 1; visibility: visible; }
.lb-in {
  position: relative;
  width: 100%;
  max-width: 460px;
  transform: scale(0.93) translateY(16px);
  transition: transform 0.55s var(--ease);
}
.lb.wide .lb-in { max-width: 1080px; }
.lb.open .lb-in { transform: scale(1) translateY(0); }
.lb-in video, .lb-in img {
  width: 100%;
  max-height: 76vh;
  border-radius: var(--r);
  background: #000;
  object-fit: contain;
}
.lb-x {
  position: absolute;
  top: -50px; right: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  transition: background 0.3s, transform 0.3s var(--ease), border-color 0.3s;
}
.lb-x:hover { background: var(--accent); border-color: var(--accent); transform: rotate(90deg); }
.lb-meta { padding-top: 16px; }
.lb-meta .c { font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.lb-meta .t { font-size: 15.5px; font-weight: 600; color: var(--fg-dim); }

/* ---------- scroll reveal ---------- */
.rv { opacity: 0; transform: translateY(30px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: 0.08s; }
.rv-d2 { transition-delay: 0.16s; }
.rv-d3 { transition-delay: 0.24s; }

/* ---------- progress bar ---------- */
.prog {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  z-index: 950;
  transition: width 0.12s linear;
}

/* ---------- sub-page hero ---------- */
.sub-hero {
  padding: calc(78px + clamp(56px, 10vh, 108px)) 0 clamp(44px, 7vh, 78px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(1100px 460px at 12% -10%, rgba(34, 211, 238, 0.11), transparent 62%),
    var(--bg-soft);
}
.sub-hero h1 {
  font-size: clamp(34px, 6.6vw, 84px);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: -0.045em;
  margin-bottom: 20px;
}
.sub-hero p { color: var(--fg-dim); font-size: clamp(15px, 1.3vw, 18px); max-width: 54ch; margin-bottom: 28px; }
.back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--fg-dim);
  transition: color 0.3s, gap 0.3s var(--ease);
}
.back:hover { color: var(--accent); gap: 14px; }

/* ---------- grouped sections (podcasts / photography) ---------- */
.group { margin-bottom: clamp(46px, 6vw, 76px); }
.group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.group-head h2 { font-size: clamp(20px, 2.5vw, 30px); font-weight: 900; letter-spacing: -0.03em; }
.group-head span { font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-faint); }
.photo-card .card-media { aspect-ratio: 4 / 5; }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .about-in { grid-template-columns: 1fr; }
  .about-photo { max-width: 230px; }
  .hero-meta { display: none; }
}
@media (max-width: 780px) {
  .burger { display: block; }
  .nav {
    position: fixed;
    inset: 78px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px clamp(20px, 4vw, 56px) 26px;
    background: rgba(8, 8, 10, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 14px 0; font-size: 16px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a::after { display: none; }
  .nav-cta { margin-top: 16px; text-align: center; border-radius: 999px !important; padding: 14px 20px !important; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .card-blurb { display: none; }
  .sec-head { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .rv { opacity: 1; transform: none; }
  .hero h1 .ln > span { transform: none; }
}

/* ============================================================
   Y2K layer — custom cursor, scanlines, RGB-split glitch.
   Purely additive: every rule here is gated behind a fine
   pointer and prefers-reduced-motion, so the base design is
   untouched on touch devices and for reduced-motion users.
   ============================================================ */

/* ---- scanlines ---- */
.scan {
  position: fixed; inset: 0;
  z-index: 8; pointer-events: none;
  opacity: 0.055;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.9) 0px,
    rgba(255,255,255,0.9) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
}

/* ---- RGB-split glitch on the hero headline ---- */
.hero h1 .ln > span { position: relative; }
.glitchable::before, .glitchable::after {
  content: attr(data-txt);
  position: absolute; left: 0; top: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s var(--ease);
}
.hero h1:hover .glitchable::before {
  opacity: 0.85; color: #ff2f6d;
  animation: rgbL 0.42s steps(2) infinite;
}
.hero h1:hover .glitchable::after {
  opacity: 0.85; color: var(--accent);
  animation: rgbR 0.42s steps(2) infinite;
}
@keyframes rgbL {
  0%   { transform: translate(0, 0); }
  33%  { transform: translate(-3px, 1px); }
  66%  { transform: translate(2px, -1px); }
  100% { transform: translate(-1px, 0); }
}
@keyframes rgbR {
  0%   { transform: translate(0, 0); }
  33%  { transform: translate(3px, -1px); }
  66%  { transform: translate(-2px, 1px); }
  100% { transform: translate(1px, 0); }
}

/* ---- chrome sheen on the accent word ---- */
.hero h1 em {
  background: linear-gradient(100deg, var(--accent) 0%, #ffffff 45%, var(--accent) 60%, #b5f6ff 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: sheen 6s linear infinite;
}
@keyframes sheen {
  0%   { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .scan { display: none !important; }
  .hero h1 em { animation: none; }
  .glitchable::before, .glitchable::after { display: none; }
}

/* ============================================================
   Floating Y2K objects — parallax on scroll + idle drift.
   Structure: .flo gets the JS parallax transform, the inner
   <img> runs the CSS idle animation, so the two never fight
   over the same transform property.
   ============================================================ */
.sec, .contact { position: relative; }
.floaters {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.sec > .wrap, .contact > .wrap { position: relative; z-index: 1; }

.flo {
  position: absolute;
  width: clamp(64px, 8.5vw, 148px);
  will-change: transform;
}
.flo img {
  width: 100%; height: auto; display: block;
  filter: drop-shadow(0 18px 38px rgba(0, 0, 0, 0.6));
  animation: floDrift 9s ease-in-out infinite alternate;
}
.flo:nth-of-type(2) img { animation-duration: 11s; animation-delay: -3s; }
.flo:nth-of-type(3) img { animation-duration: 13s; animation-delay: -6s; }
@keyframes floDrift {
  from { transform: translateY(-10px) rotate(-5deg); }
  to   { transform: translateY(12px)  rotate(6deg); }
}

/* keep them out of the way of text on narrower screens */
@media (max-width: 1180px) { .flo { width: clamp(52px, 7vw, 92px); opacity: 0.55; } }
@media (max-width: 820px)  { .floaters { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .floaters { display: none; }
}

/* ============================================================
   Y2K-professional refinements.
   The rule applied here: Y2K in the *texture and detail*,
   restraint in the *structure*. A client scanning the work grid
   should never fight the decoration to read a card.
   ============================================================ */

/* faint technical grid — reads as broadcast/engineering, not neon toy */
.sec::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right,  rgba(34, 211, 238, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(34, 211, 238, 0.035) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(110% 80% at 50% 40%, #000 20%, transparent 72%);
          mask-image: radial-gradient(110% 80% at 50% 40%, #000 20%, transparent 72%);
}

/* chrome sheen on section headings */
.sec-head h2, .contact h2 {
  background: linear-gradient(96deg,
    var(--fg) 0%, var(--fg) 38%,
    #cfefff 47%, #ffffff 52%, #a9e9f5 57%,
    var(--fg) 66%, var(--fg) 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: headSheen 9s linear infinite;
}
@keyframes headSheen {
  0%   { background-position: 120% 50%; }
  100% { background-position: -60% 50%; }
}

/* card meta in mono — technical slate feel, easier to scan than sentence case */
.card-client {
  font-family: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 10.5px !important;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent) !important;
  opacity: 0.85;
}
.card-tag {
  font-family: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* chrome sweep across a card on hover */
.card-media::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(104deg,
    transparent 38%, rgba(255,255,255,0.16) 47%,
    rgba(180,240,255,0.26) 51%, rgba(255,255,255,0.14) 55%, transparent 64%);
  background-size: 260% 100%;
  background-position: 120% 0;
  transition: opacity 0.25s var(--ease);
}
.card:hover .card-media::after {
  opacity: 1;
  animation: cardSweep 0.9s var(--ease) forwards;
}
@keyframes cardSweep {
  from { background-position: 120% 0; }
  to   { background-position: -60% 0; }
}

/* filter chips: subtle glow on the active one */
.f-btn.on { box-shadow: 0 0 0 1px var(--accent-soft), 0 0 22px -6px var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .sec-head h2, .contact h2 { animation: none; }
  .card-media::after { display: none; }
  .sec::before { display: none; }
}

/* ---- looping video backdrop (contact section) ---- */
.secbg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.26;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(125% 95% at 50% 55%, #000 26%, transparent 76%);
          mask-image: radial-gradient(125% 95% at 50% 55%, #000 26%, transparent 76%);
}
/* the static plate stays as the poster/fallback underneath */
@media (prefers-reduced-motion: reduce) { .secbg { display: none; } }
