/* ============================================================
   JEAN LAVERIANO — Video Editor & Designer
   Concept: "The Color Grading Suite"
   Dark room, cool highlight (#38B6FF), teal shadow (#45C4B0),
   editorial display type + running timecodes.
   ============================================================ */

:root {
  --bg: #0A0D10;
  --surface: #11171C;
  --surface-2: #161E24;
  --line: #222D35;
  --text: #EDE8DD;
  --muted: #93A1AB;
  --accent: #38B6FF;
  --accent-soft: rgba(56, 182, 255, 0.14);
  --teal: #45C4B0;
  --ink: #06121B;
  --display: "Archivo", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  /* "mono" kept as a token name, but now points to the editorial sans
     (JetBrains Mono removed — the mono-uppercase look read as AI-generated).
     Digit alignment is preserved via tabular-nums on .tc / labels. */
  --mono: "Archivo", system-ui, -apple-system, sans-serif;
  --label-spacing: 0.1em;
  --wrap: 1240px;
  --radius: 14px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--display);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(var(--wrap), 100% - 2.5rem);
  margin-inline: auto;
}

/* ---------- Film grain ---------- */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 2000;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 3%); }
}

/* ---------- Scroll progress (timeline scrubber) ---------- */
.scrubber {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  z-index: 1500;
  background: rgba(255, 255, 255, 0.06);
}
.scrubber-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--teal), var(--accent));
  box-shadow: 0 0 12px rgba(56, 182, 255, 0.55);
}

/* ---------- Header ---------- */
header.site {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
header.site.scrolled {
  background: rgba(10, 13, 16, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 44px;
}
.brand-logo {
  height: 34px;
  width: auto;
  display: block;
}
.rec {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links > a:not(.btn) {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.75rem 0;
  position: relative;
  transition: color 0.25s;
}
.nav-links > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0.4rem;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.nav-links > a:not(.btn):hover { color: var(--text); }
.nav-links > a:not(.btn):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ---------- Language toggle ---------- */
.lang-toggle {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  min-width: 40px;
  min-height: 34px;
  padding: 0 0.7rem;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.lang-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.mobile-lang {
  align-self: flex-start;
  margin-top: 1.6rem;
  min-height: 44px;
  padding: 0 1.2rem;
  font-size: 0.85rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.75rem 1.7rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, background 0.25s, color 0.25s;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(56, 182, 255, 0.35);
}
.btn:active { transform: translateY(0) scale(0.98); }
.btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: none;
}

/* ---------- Mobile menu ---------- */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.7rem 1.2rem;
  min-height: 44px;
  cursor: pointer;
}
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1400;
  background: rgba(10, 13, 16, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a {
  font-family: var(--display);
  font-size: clamp(2.2rem, 9vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  padding: 0.5rem 0;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 1rem;
  transition: color 0.25s;
}
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu a .tc { font-size: 0.75rem; }
.mobile-menu .close-menu {
  position: absolute;
  top: 1.4rem; right: 1.4rem;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 999px;
  width: 48px; height: 48px;
  font-size: 1.2rem;
  cursor: pointer;
}

/* ---------- Timecode chips ---------- */
.tc {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--accent);
  flex: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 8rem 0 5rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--bg);
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* dim the footage so white text is always legible over the busy timeline */
  filter: brightness(0.5) saturate(1.05) contrast(1.02);
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    /* pooled darkness behind the headline — width-independent (centered wrap) */
    radial-gradient(85% 85% at 32% 46%, rgba(10, 13, 16, 0.7), transparent 72%),
    /* overall veil + smooth fade into the page below */
    linear-gradient(180deg, rgba(10, 13, 16, 0.5) 0%, rgba(10, 13, 16, 0.3) 34%, rgba(10, 13, 16, 0.5) 72%, var(--bg) 100%),
    /* subtle brand-blue glow, top-right */
    radial-gradient(55% 45% at 85% 15%, rgba(56, 182, 255, 0.13), transparent 68%);
}
.hero h1 {
  font-size: clamp(3.2rem, 10.5vw, 8.6rem);
  font-weight: 740;
  font-stretch: 118%;
  line-height: 0.96;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 1.6rem 0 1.8rem;
  text-shadow: 0 2px 30px rgba(6, 8, 10, 0.6);
}
.hero .eyebrow,
.hero .lede { text-shadow: 0 1px 16px rgba(6, 8, 10, 0.7); }
.hero h1 .accent-line {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  text-transform: none;
  font-stretch: 100%;
  letter-spacing: -0.01em;
  color: var(--accent);
}
.hero .lede {
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.4rem;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 4.4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.stat b {
  display: block;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 700;
  font-stretch: 112%;
  letter-spacing: -0.02em;
}
.stat b { color: var(--text); }
.stat-star {
  font-size: 0.5em;
  vertical-align: 0.35em;
  margin-left: 0.06em;
}
.stat span {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  padding: 1.1rem 0;
  overflow: hidden;
  display: flex;
  user-select: none;
}
.marquee-track {
  display: flex;
  flex: none;
  gap: 3rem;
  padding-right: 3rem;
  align-items: center;
  animation: marquee 28s linear infinite;
  white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(-100%); } }
.marquee-item {
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 3rem;
}
.marquee-item::after {
  content: "✦";
  color: var(--accent);
  font-size: 0.7rem;
}

/* ---------- Sections ---------- */
section { padding: 7rem 0; }
.section-head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3.2rem;
}
.section-head h2 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 730;
  font-stretch: 116%;
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}
.section-head h2 em {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  text-transform: none;
  color: var(--accent);
}

/* ---------- Featured project ---------- */
.featured-card,
.card {
  /* button reset (cards are <button> for a11y) */
  font: inherit;
  color: inherit;
  text-align: left;
  padding: 0;
  width: 100%;
}
.featured-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  cursor: pointer;
  aspect-ratio: 16 / 9;
  background: var(--surface);
}
.featured-card img,
.featured-card .preview-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out), opacity 0.4s;
}
.featured-card:hover img { transform: scale(1.04); }
.featured-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(1.2rem, 4vw, 2.6rem);
  background: linear-gradient(180deg, transparent, rgba(6, 8, 10, 0.9) 72%);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 2;
}
.featured-overlay h3 {
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 720;
  font-stretch: 114%;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.featured-overlay p {
  color: var(--muted);
  max-width: 40rem;
  font-size: 0.98rem;
}

/* ---------- Filters ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.4rem;
}
.filter {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.65rem 1.25rem;
  min-height: 44px;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.filter:hover { color: var(--text); border-color: var(--muted); }
.filter[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}

/* ---------- Work grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.2rem;
}
.card {
  position: relative;
  display: block;
  grid-column: span 4;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  transition: transform 0.45s var(--ease-out), border-color 0.3s, box-shadow 0.45s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 182, 255, 0.5);
  box-shadow: var(--shadow);
}
.card.hidden { display: none; }
.card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-2);
}
.card-media img,
.card-media .preview-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}
.card:hover .card-media img { transform: scale(1.06); }
.card-ratio {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  z-index: 2;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  background: rgba(6, 8, 10, 0.72);
  backdrop-filter: blur(6px);
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.card-scrub {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.12);
  opacity: 0;
  transition: opacity 0.3s;
}
.card-scrub::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}
.card:hover .card-scrub { opacity: 1; }
.card:hover .card-scrub::after { animation: scrub 3s linear infinite; }
@keyframes scrub { to { transform: scaleX(1); } }
.card-body { padding: 1.1rem 1.2rem 1.3rem; }
.card-body h3 {
  font-size: 1.12rem;
  font-weight: 650;
  font-stretch: 108%;
  letter-spacing: -0.01em;
  margin-bottom: 0.3rem;
}
.card-body p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.85rem;
}
.chip {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.chip-wide { color: var(--accent); border-color: rgba(56, 182, 255, 0.45); }
.chip-vertical { color: var(--teal); border-color: rgba(69, 196, 176, 0.45); }
.chip-vsl { color: #FFC24B; border-color: rgba(255, 194, 75, 0.45); }
.chip-design { color: #B79CFF; border-color: rgba(183, 156, 255, 0.45); }
.card-platform {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 2.6rem;
}
.load-more-wrap .btn[hidden] { display: none; }

/* ---------- Play cursor pill ---------- */
.play-pill {
  position: fixed;
  z-index: 1600;
  top: 0; left: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6);
  transition: opacity 0.25s, transform 0.25s var(--ease-out);
  will-change: transform;
}
.play-pill.on {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ---------- Services ---------- */
#services { border-top: 1px solid var(--line); }
.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}
.svc {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.8rem 1.6rem;
  transition: transform 0.4s var(--ease-out), border-color 0.3s, background 0.3s;
}
.svc:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 182, 255, 0.4);
  background: var(--surface-2);
}
.svc .tc {
  display: inline-block;
  border: 1px solid rgba(56, 182, 255, 0.4);
  background: var(--accent-soft);
  border-radius: 6px;
  padding: 0.35rem 0.7rem;
  margin-bottom: 1.2rem;
}
.svc h3 {
  font-size: 1.25rem;
  font-weight: 680;
  font-stretch: 110%;
  margin-bottom: 0.55rem;
  letter-spacing: -0.01em;
}
.svc p { color: var(--muted); font-size: 0.93rem; }

/* ---------- About ---------- */
#about { border-top: 1px solid var(--line); }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 3.2rem;
  align-items: start;
}
.about-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% 32%;
  filter: saturate(0.92) contrast(1.04);
}
.about-photo::after {
  content: "TC 03:12:07:18 · BRASÍLIA — BR";
  position: absolute;
  left: 1rem; bottom: 0.9rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: rgba(237, 232, 221, 0.85);
  background: rgba(6, 8, 10, 0.6);
  backdrop-filter: blur(6px);
  padding: 0.35rem 0.7rem;
  border-radius: 5px;
}
.about-copy p {
  color: var(--muted);
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}
.about-copy p strong { color: var(--text); font-weight: 600; }
.tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.6rem 0 2rem;
}
.tool {
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.25s, color 0.25s, background 0.25s, transform 0.25s var(--ease-out);
}
.tool:hover {
  border-color: rgba(56, 182, 255, 0.45);
  background: var(--surface-2);
}
/* program icons (Premiere, After Effects, Photoshop, CapCut) — the PNG is
   already a rounded badge, so no extra pill frame */
.tool-icon {
  padding: 0;
  width: 52px;
  height: 52px;
  border: none;
  background: transparent;
  display: inline-flex;
}
.tool-icon:hover { transform: translateY(-3px); }
.tool-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
/* Experience — vertical editing-timeline with keyframe nodes */
.xp {
  list-style: none;
  position: relative;
  margin-top: 0.4rem;
  padding-left: 1.9rem;
}
.xp::before {
  /* the track */
  content: "";
  position: absolute;
  left: 6px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--line) 55%);
}
.xp li {
  position: relative;
  padding: 0 0 1.1rem;
}
.xp li:last-child { padding-bottom: 0; }
.xp-node {
  /* keyframe diamond on the track */
  position: absolute;
  left: -1.9rem;
  top: 1.3rem;
  width: 11px;
  height: 11px;
  transform: rotate(45deg);
  background: var(--surface-2);
  border: 2px solid var(--muted);
  border-radius: 2px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.xp li.now .xp-node {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 14px rgba(56, 182, 255, 0.75);
}
.xp-body {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 0.95rem 1.2rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  transition: transform 0.35s var(--ease-out), border-color 0.3s, background 0.3s;
}
.xp li:hover .xp-body {
  transform: translateX(6px);
  border-color: rgba(56, 182, 255, 0.45);
  background: var(--surface-2);
}
.xp li:hover .xp-node { border-color: var(--accent); }
.xp-kf {
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.25rem;
}
.xp li.now .xp-kf {
  color: var(--accent);
}
.xp li.now .xp-kf::before {
  content: "●";
  font-size: 0.55rem;
  margin-right: 0.45rem;
  animation: blink 1.6s ease-in-out infinite;
}
.xp b {
  font-weight: 660;
  font-stretch: 108%;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.xp li.now b { color: var(--accent); }
.xp-role {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Testimonials ---------- */
#testimonials { border-top: 1px solid var(--line); }
.quotes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}
.quote {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.9rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  position: relative;
}
.quote::before {
  content: "“";
  font-family: var(--serif);
  font-size: 3.4rem;
  line-height: 0.6;
  color: var(--accent);
  display: block;
}
.quote blockquote {
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.65;
  flex: 1;
}
.quote figcaption {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.quote figcaption img {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}
.quote figcaption strong { display: block; font-weight: 640; }
.quote figcaption span {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.clients {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  margin-top: 3.4rem;
  padding-top: 2.4rem;
  border-top: 1px solid var(--line);
}
.client-tile {
  width: clamp(130px, 16vw, 176px);
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  opacity: 0.85;
  filter: saturate(0.85);
  transition: opacity 0.3s, filter 0.3s, transform 0.3s var(--ease-out), border-color 0.3s;
}
.client-tile:hover {
  opacity: 1;
  filter: none;
  transform: translateY(-3px);
  border-color: var(--muted);
}
.client-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Contact ---------- */
#contact {
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 9rem 0 8rem;
  position: relative;
  overflow: hidden;
}
#contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(46% 56% at 50% 100%, rgba(56, 182, 255, 0.1), transparent 70%);
  pointer-events: none;
}
#contact .eyebrow { justify-content: center; }
#contact .eyebrow::before { display: none; }
#contact h2 {
  font-size: clamp(3rem, 9.5vw, 7.6rem);
  font-weight: 740;
  font-stretch: 118%;
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 1.4rem 0 1.6rem;
}
#contact h2 em {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  text-transform: none;
  color: var(--accent);
}
#contact .lede {
  color: var(--muted);
  max-width: 34rem;
  margin: 0 auto 2.6rem;
}
.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 2.2rem;
}
.social {
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.25s, border-color 0.25s, background 0.25s, transform 0.25s var(--ease-out);
}
.social:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--surface);
  transform: translateY(-3px);
}
.social-icon {
  width: 52px;
  height: 52px;
}
.social-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}
/* fallback if an icon is missing for a platform */
.social:not(.social-icon) {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.7rem 1.3rem;
  min-height: 44px;
}

/* ---------- Footer ---------- */
footer.site {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
}
footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.footer-brand img {
  height: 30px;
  width: auto;
  display: block;
}

/* ---------- Gallery modal (Behance-style) ---------- */
.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 1700;
  background: rgba(6, 8, 10, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
  display: flex;
  flex-direction: column;
}
.gallery-modal.open { opacity: 1; visibility: visible; }
.gallery-topbar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem clamp(1rem, 4vw, 2.4rem);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 13, 16, 0.6);
}
.gallery-title {
  font-family: var(--display);
  font-weight: 640;
  font-stretch: 108%;
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  letter-spacing: -0.01em;
}
.gallery-close {
  flex: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 999px;
  min-height: 44px;
  padding: 0 1.3rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s;
}
.gallery-close:hover { border-color: var(--accent); color: var(--accent); }
.gallery-scroll {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(1rem, 4vw, 2.6rem) 1rem clamp(3rem, 8vw, 5rem);
  scroll-behavior: smooth;
}
.gallery-item {
  width: min(960px, 100%);
  margin: 0 auto clamp(1rem, 3vw, 1.8rem);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.gallery-item:last-child { margin-bottom: 0; }
.gallery-item img,
.gallery-item video {
  width: 100%;
  height: auto;
  display: block;
}
.gallery-item.is-embed {
  position: relative;
  aspect-ratio: 16 / 9;
}
.gallery-item.is-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(4, 6, 8, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-inner {
  width: min(1100px, 100%);
  transform: scale(0.94);
  transition: transform 0.35s var(--ease-out);
}
.lightbox.open .lightbox-inner { transform: scale(1); }
.lightbox-inner.is-vertical { width: min(420px, 100%); }
.lightbox-player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.lightbox-inner.is-vertical .lightbox-player { aspect-ratio: 9 / 16; }
.lightbox-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.9rem;
}
.lightbox-title {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.lightbox-close {
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 999px;
  min-width: 44px;
  min-height: 44px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0 1.2rem;
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s;
}
.lightbox-close:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .card { grid-column: span 6; }
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .about-photo { max-width: 460px; }
}
@media (max-width: 767px) {
  section { padding: 4.6rem 0; }
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; }
  .grid { gap: 1rem; }
  .card { grid-column: span 12; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
  .svc-grid { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .hero { padding-top: 6.5rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain, .rec { animation: none; }
  .marquee-track { animation: none; }
  .marquee { flex-wrap: wrap; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover .card-scrub::after { animation: none; transform: scaleX(1); }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
