/* ==========================================================
   Bruno Morim — Short-Form Video Editor Portfolio
   Dark, technical, interactive. Mobile-first.
   ========================================================== */

:root {
  --bg: #07070A;
  --bg-elevated: #101015;
  --bg-card: #131319;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.16);
  --text: #F5F5F7;
  --text-dim: #9C9CA8;
  --text-faint: #5C5C68;

  --accent: #6366F1;
  --accent-2: #8B5CF6;
  --accent-strong: #818CF8;
  --accent-soft: rgba(99,102,241,0.14);
  --accent-border: rgba(99,102,241,0.4);

  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --max-w: 1180px;
  --radius: 14px;
  --radius-sm: 8px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.02em;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
button { font-family: inherit; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 12px 18px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal][data-reveal-delay="1"] { transition-delay: 0.12s; }
[data-reveal][data-reveal-delay="2"] { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Section rhythm ---------- */
section { padding: 96px 0; }
@media (max-width: 720px) {
  section { padding: 64px 0; }
}

.section-head { margin-bottom: 48px; max-width: 640px; }
.section-kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--accent-strong);
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 38px);
}
.section-lede {
  margin-top: 16px;
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 56ch;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px) saturate(140%);
  background: rgba(7,7,10,0.78);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-dim);
}
.site-nav a { transition: color 0.2s var(--ease); }
.site-nav a:hover { color: var(--text); }
.nav-cta {
  color: #fff !important;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  padding: 8px 16px;
  border-radius: 100px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(99,102,241,0.35); }

@media (max-width: 640px) {
  .site-nav a:not(.nav-cta) { display: none; }
}

/* ---------- Timeline scrubber ---------- */
.timeline-scrubber {
  border-top: 1px solid var(--border);
  padding: 10px 0;
}
.timeline-scrubber-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}
.timeline-time {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-faint);
  flex-shrink: 0;
  min-width: 34px;
}
.timeline-time:last-of-type { text-align: right; }
.timeline-track {
  position: relative;
  flex: 1;
  height: 3px;
  background: var(--border);
  border-radius: 4px;
}
.timeline-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 4px;
}
.timeline-playhead {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent-strong);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.25), 0 0 12px rgba(129,140,248,0.6);
  transform: translate(-50%, -50%);
  transition: left 0.08s linear;
}
.timeline-markers {
  position: absolute;
  inset: 0;
}
.timeline-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.timeline-marker .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-faint);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.timeline-marker .label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
  position: absolute;
  top: 14px;
  transition: color 0.2s var(--ease);
}
.timeline-marker:hover .dot,
.timeline-marker.is-active .dot {
  background: var(--accent-strong);
  transform: scale(1.4);
}
.timeline-marker:hover .label,
.timeline-marker.is-active .label { color: var(--text); }

@media (max-width: 640px) {
  .timeline-marker .label { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(99,102,241,0.4);
}
.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--accent-strong);
  color: var(--accent-strong);
  transform: translateY(-2px);
}
.btn-lg { padding: 16px 30px; font-size: 16px; }

/* ---------- Hero ---------- */
.hero {
  padding-top: 56px;
  padding-bottom: 64px;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px circle at 15% 20%, rgba(99,102,241,0.14), transparent 60%),
    radial-gradient(500px circle at 85% 10%, rgba(139,92,246,0.10), transparent 55%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  position: relative;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-media { order: -1; max-width: 340px; margin: 0 auto; }
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-faint);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-strong);
  box-shadow: 0 0 8px var(--accent-strong);
}

.hero-copy h1 {
  font-size: clamp(32px, 5vw, 52px);
  max-width: 15ch;
}
.hero-sub {
  margin-top: 22px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-dim);
  max-width: 46ch;
}
.hero-ctas {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Phone-frame featured media */
.phone-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-width: 320px;
  margin-left: auto;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--accent-border);
  background: var(--bg-card);
  box-shadow:
    0 30px 60px -20px rgba(0,0,0,0.6),
    0 0 0 1px rgba(99,102,241,0.08) inset,
    0 0 60px -10px rgba(99,102,241,0.25);
}
@media (max-width: 900px) { .phone-frame { margin: 0 auto; } }

.phone-frame video,
.phone-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero-media-link {
  position: relative;
  display: block;
  width: 100%; height: 100%;
  background: #0d0d0f;
  cursor: pointer;
}
.hero-media-link img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-media-link .play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.55) 100%);
  transition: background 0.25s var(--ease);
}
.hero-media-link .play-badge .circle {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.25s var(--ease);
}
.hero-media-link:hover .play-badge .circle { transform: scale(1.06); }
.hero-media-link .play-badge svg { margin-left: 3px; width: 22px; height: 22px; }

.media-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 28px;
  background:
    repeating-linear-gradient(135deg, rgba(99,102,241,0.04) 0px, rgba(99,102,241,0.04) 1px, transparent 1px, transparent 12px),
    linear-gradient(160deg, #15151b, #0d0d10 70%);
}
.media-placeholder .ph-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px dashed var(--text-faint);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-faint);
  font-size: 18px;
}
.media-placeholder .ph-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
}
.media-placeholder .ph-note {
  font-size: 12px;
  color: var(--text-faint);
  max-width: 22ch;
}

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
  overflow: hidden;
  padding: 16px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
}
.marquee-item {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  white-space: nowrap;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.marquee-item::after {
  content: "•";
  color: var(--accent-strong);
  margin-left: 22px;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------- Filter bar ---------- */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-btn {
  font-family: var(--font-mono);
  padding: 9px 18px;
  border-radius: 100px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.filter-btn:hover { color: var(--text); border-color: var(--accent-border); }
.filter-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border-color: transparent;
}

/* ---------- Work grid ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px 32px;
}
@media (min-width: 720px) {
  .work-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 520px) {
  .work-grid { grid-template-columns: 1fr; max-width: 340px; margin: 0 auto; }
}

.work-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  cursor: pointer;
}
.work-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-border);
  box-shadow: 0 16px 40px -16px rgba(99,102,241,0.35);
}

.work-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #0d0d0f;
  overflow: hidden;
}
.work-card-media img,
.work-card-media video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.work-card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--text);
  background: rgba(7,7,10,0.6);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(6px);
  padding: 4px 9px;
  border-radius: 100px;
}
.work-card-media .play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.55) 100%);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.work-card:hover .play-badge { opacity: 1; }
.play-badge .circle {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.94);
  display: flex; align-items: center; justify-content: center;
  transform: scale(0.85);
  transition: transform 0.25s var(--ease);
}
.work-card:hover .play-badge .circle { transform: scale(1); }
.play-badge svg { margin-left: 3px; }

.work-card-body { padding: 20px 22px 24px; }
.work-card-category {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--accent-strong);
  margin-bottom: 8px;
}
.work-card-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}
.work-card-focus {
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ---------- Process ---------- */
.process-timeline {
  position: relative;
  max-width: 640px;
  padding-left: 28px;
  margin-bottom: 72px;
}
.process-timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2), transparent);
}
.process-step {
  position: relative;
  padding-bottom: 40px;
}
.process-step:last-child { padding-bottom: 0; }
.process-step::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 4px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent-strong);
  box-shadow: 0 0 10px rgba(129,140,248,0.5);
}
.process-step-time {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--accent-strong);
  margin-bottom: 8px;
  display: block;
}
.process-step h3 {
  font-size: 18px;
  margin-bottom: 6px;
}
.process-step p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.55;
  max-width: 46ch;
}

/* ---------- Before / After split visual ---------- */
.before-after {
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 800px) {
  .before-after { grid-template-columns: 1fr; padding: 24px; }
}

.before-after-copy .section-kicker { margin-bottom: 12px; }
.before-after-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 600;
  margin-bottom: 12px;
}
.before-after-copy p {
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 44ch;
  margin-bottom: 20px;
}

.split-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 10px 0 26px;
}
.split-panel {
  position: relative;
  width: 128px;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid var(--accent-border);
  background: #0d0d0f;
  box-shadow: 0 20px 50px -20px rgba(99,102,241,0.4);
}
.split-panel img { width: 100%; height: 100%; object-fit: cover; }
.split-panel.raw {
  transform: translateX(18px) rotate(-4deg);
  filter: grayscale(0.55) brightness(0.75) contrast(0.9);
  z-index: 1;
}
.split-panel.edited {
  transform: translateX(-18px) rotate(4deg);
  z-index: 2;
  border-color: var(--accent-strong);
}
.split-label {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(7,7,10,0.75);
  border: 1px solid rgba(255,255,255,0.16);
  color: var(--text);
  backdrop-filter: blur(6px);
}
.split-panel.edited .split-label {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  color: #fff;
}
.split-visual-play {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}
.split-visual-play .circle {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px -6px rgba(99,102,241,0.6);
  cursor: pointer;
  transition: transform 0.2s var(--ease);
}
.split-visual-play:hover .circle { transform: scale(1.08); }
.before-after-media { cursor: pointer; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
}
.about-copy h2 { font-size: clamp(26px, 3.6vw, 36px); margin-bottom: 18px; }
.about-bio {
  font-size: 16.5px;
  color: var(--text-dim);
  line-height: 1.65;
  max-width: 46ch;
}
.about-strengths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 560px) { .about-strengths { grid-template-columns: 1fr; } }

.strength-card {
  padding: 22px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.25s var(--ease);
}
.strength-card:hover { border-color: var(--accent-border); }
.strength-num {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--accent-strong);
  margin-bottom: 14px;
}
.strength-card h3 {
  font-size: 15.5px;
  margin-bottom: 8px;
}
.strength-card p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.55;
}

/* ---------- Services ---------- */
.services { background: var(--bg-elevated); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--bg-card);
  padding: 32px;
  transition: background 0.25s var(--ease);
}
.service-card:hover { background: var(--bg-elevated); }
.service-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}
.service-card p {
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ---------- Final CTA ---------- */
.final-cta {
  text-align: center;
  padding: 120px 0;
  position: relative;
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(700px circle at 50% 0%, rgba(99,102,241,0.16), transparent 60%);
  pointer-events: none;
}
.final-time {
  display: inline-block;
  margin: 0 auto 20px;
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid var(--border-strong);
  min-width: auto;
}
.final-cta h2 {
  font-size: clamp(30px, 5vw, 46px);
  max-width: 18ch;
  margin: 0 auto;
}
.final-cta p {
  margin-top: 14px;
  font-size: 19px;
  color: var(--text-dim);
}
.final-cta-actions {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--text-faint);
}
.footer-inner a { color: var(--text-dim); transition: color 0.2s var(--ease); }
.footer-inner a:hover { color: var(--accent-strong); }
.footer-dot { opacity: 0.5; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5,5,7,0.92);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  animation: fadeIn 0.2s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox-inner {
  max-width: 420px;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6), 0 0 0 1px rgba(99,102,241,0.2);
}
.lightbox-inner iframe {
  width: 100%; height: 100%;
  border: 0;
  display: block;
  background: #000;
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s var(--ease);
}
.lightbox-close:hover { opacity: 1; }

.lightbox-yt-fallback {
  position: absolute;
  bottom: max(20px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-strong);
  padding: 8px 16px;
  border-radius: 100px;
  white-space: nowrap;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.lightbox-yt-fallback:hover { color: var(--accent-strong); border-color: var(--accent-border); }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .work-card, .nav-cta { transition: none; }
}
