/* ========================================
   VANTA — v2
   Cinematic dark tech, high-tension layout
   ======================================== */

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

:root {
  --void: #03030a;
  --deep: #07070d;
  --base: #0c0c14;
  --surface: #12121c;
  --surface-hi: #1a1a26;

  --text: #eeecea;
  --text-dim: #7d7b74;
  --text-faint: #3e3c38;

  --accent: #c49a6c;
  --accent-glow: rgba(196, 154, 108, 0.06);

  --rule: rgba(255, 255, 255, 0.06);
  --rule-strong: rgba(255, 255, 255, 0.10);

  --font-d: 'Inter Tight', 'Inter', sans-serif;
  --font-b: 'Inter', 'Inter Tight', sans-serif;

  --anim-speed: 1;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  --pad-x: clamp(24px, 4vw, 64px);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-padding-top: 80px;
}
body {
  font-family: var(--font-b);
  background: var(--void);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
p { text-wrap: pretty; widows: 2; orphans: 2; }
h1, h2, h3, blockquote { text-wrap: balance; }

::selection { background: rgba(196, 154, 108, 0.25); color: var(--text); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb { background: var(--surface-hi); border-radius: 3px; }

/* --- Grain --- */
.grain::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* --- GSAP initial states --- */
.gsap-ready .hero-tag,
.gsap-ready .hero-h,
.gsap-ready .hero-sub,
.gsap-ready .hero-cta,
.gsap-ready .section-label,
.gsap-ready .cap-intro,
.gsap-ready .cap-visual,
.gsap-ready .cap-item,
.gsap-ready .manifesto-text,
.gsap-ready .manifesto-attr,
.gsap-ready .manifesto-inner,
.gsap-ready .stat,
.gsap-ready .client,
.gsap-ready .contact-h,
.gsap-ready .contact-right,
.gsap-ready .work-row {
  opacity: 0;
}

/* GPU-promote breathing targets */
.work-row,
.stat-value,
.cap-item,
.manifesto-text,
.client {
  will-change: transform;
  backface-visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .gsap-ready .hero-tag, .gsap-ready .hero-h, .gsap-ready .hero-sub, .gsap-ready .hero-cta,
  .gsap-ready .section-label, .gsap-ready .cap-intro, .gsap-ready .cap-visual, .gsap-ready .cap-item,
  .gsap-ready .manifesto-text, .gsap-ready .manifesto-attr, .gsap-ready .manifesto-inner,
  .gsap-ready .stat, .gsap-ready .client, .gsap-ready .contact-h, .gsap-ready .contact-right,
  .gsap-ready .work-row { opacity: 1 !important; }
  .hero-glow, .hero-glow-b, .hero-glow-c { animation: none; }
  .hero-scroll-line { animation: none; opacity: 0.5; }
  .hero-bg-vid { display: none; }
}

/* --- Section label --- */
.section-label {
  font-family: var(--font-d);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.section-label::before {
  content: '';
  width: 1.5rem;
  height: 1px;
  background: var(--text-faint);
}


/* =========================================
   NAV
   ========================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-x);
  height: 72px;
  transition: background 0.4s, border-color 0.4s, transform 0.4s var(--ease-smooth);
  border-bottom: 1px solid transparent;
}
.nav--scrolled {
  background: rgba(3, 3, 10, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: var(--rule);
}
.nav--hidden { transform: translateY(-100%); }

.nav-logo {
  font-family: var(--font-d);
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--text);
}

.nav-toggle { display: none; }
.nav-hamburger {
  display: none;
  width: 26px;
  height: 18px;
  position: relative;
  cursor: pointer;
  z-index: 101;
}
.nav-hamburger span,
.nav-hamburger span::before,
.nav-hamburger span::after {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text);
  position: absolute;
  transition: all 0.3s var(--ease-smooth);
}
.nav-hamburger span { top: 50%; transform: translateY(-50%); }
.nav-hamburger span::before { content: ''; top: -7px; }
.nav-hamburger span::after  { content: ''; top: 7px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-links a {
  font-family: var(--font-d);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta { color: var(--accent) !important; }


/* =========================================
   HERO — cinematic, split vertical
   ========================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(3rem, 6vh, 5rem);
  background: var(--void);
  overflow: hidden;
}

/* hero background video */
.hero-bg-vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, black 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, black 0%, transparent 75%);
}

/* grid lines — perspective convergence */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  transform: perspective(600px) rotateX(2deg);
  transform-origin: 50% 100%;
  -webkit-mask-image:
    radial-gradient(ellipse 70% 60% at 50% 55%, rgba(0,0,0,0.35) 0%, transparent 100%);
  mask-image:
    radial-gradient(ellipse 70% 60% at 50% 55%, rgba(0,0,0,0.35) 0%, transparent 100%);
  pointer-events: none;
}

/* primary warm glow — top right */
.hero-glow {
  position: absolute;
  top: -25%;
  right: -10%;
  width: 70%;
  height: 90%;
  background: radial-gradient(ellipse at center,
    rgba(196, 154, 108, 0.10) 0%,
    rgba(196, 154, 108, 0.04) 35%,
    rgba(196, 154, 108, 0.01) 55%,
    transparent 70%);
  pointer-events: none;
  animation: glowDrift 10s ease-in-out infinite alternate;
}

/* secondary cool glow — bottom left */
.hero-glow-b {
  position: absolute;
  bottom: -35%;
  left: -15%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse at center,
    rgba(80, 70, 160, 0.07) 0%,
    rgba(60, 50, 120, 0.03) 40%,
    transparent 65%);
  pointer-events: none;
  animation: glowDrift 13s ease-in-out 4s infinite alternate;
}

/* tertiary accent glow — center, very faint */
.hero-glow-c {
  position: absolute;
  top: 30%;
  left: 40%;
  width: 40%;
  height: 50%;
  background: radial-gradient(circle at center,
    rgba(196, 154, 108, 0.03) 0%,
    transparent 50%);
  pointer-events: none;
  animation: glowPulse 8s ease-in-out infinite;
}

@keyframes glowDrift {
  0%   { opacity: 0.6; transform: scale(1) translate(0, 0); }
  100% { opacity: 1;   transform: scale(1.15) translate(12px, -10px); }
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%      { opacity: 0.8; transform: scale(1.2); }
}

.hero-top {
  position: relative;
  z-index: 1;
  padding-top: 0;
}

.hero-tag {
  font-family: var(--font-d);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: clamp(1.5rem, 3vh, 2.5rem);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.hero-tag::before {
  content: '';
  width: 2rem;
  height: 1px;
  background: var(--accent);
}

.hero-h {
  font-family: var(--font-d);
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--text);
  max-width: 14ch;
}

/* Styled text tokens — used by siteContent.renderStyled() */
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-dim); }
.text-highlight { color: var(--text); background: rgba(196, 154, 108, 0.15); padding: 0 0.15em; border-radius: 2px; }

/* Splitting character overrides */
.hero-h .word { line-height: inherit; }
.hero-h .char {
  display: inline-block;
  will-change: transform, opacity;
}

.hero-bottom {
  position: relative;
  z-index: 1;
  padding-bottom: 0;
}
.hero-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
}
.hero-sub {
  font-size: clamp(0.9375rem, 1.2vw, 1.0625rem);
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 380px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-d);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
  transition: gap 0.4s var(--ease-out);
}
.hero-cta:hover { gap: 0.875rem; }

/* cursor-reactive glow */
.hero-glow-cursor {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 154, 108, 0.06) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.6s;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2.4s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50%      { opacity: 0.8; }
}


/* =========================================
   WORK — typographic rows
   ========================================= */
.work-section {
  position: relative;
  padding: clamp(80px, 10vh, 140px) 0;
  border-top: 1px solid var(--rule);
}
.work-section .section-label {
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
}

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

.work-row {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto auto;
  align-items: baseline;
  gap: clamp(1rem, 2vw, 2.5rem);
  padding: clamp(1.5rem, 2.5vw, 2.25rem) 0;
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.4s, background 0.4s, padding-left 0.5s var(--ease-out);
}
.work-row:hover {
  border-bottom-color: var(--accent);
  background: rgba(196, 154, 108, 0.02);
  padding-left: 0.75rem;
}

.work-num {
  font-family: var(--font-d);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  transition: color 0.4s;
}
.work-row:hover .work-num { color: var(--accent); }

.work-title {
  font-family: var(--font-d);
  font-size: clamp(1.75rem, 4vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
  transition: color 0.4s, transform 0.5s var(--ease-out);
  transform: translateX(0);
}
.work-row:hover .work-title {
  color: var(--accent);
  transform: translateX(8px);
}

.work-cat {
  font-family: var(--font-d);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
}

.work-year {
  font-family: var(--font-d);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}


/* =========================================
   CAPABILITIES — split layout
   ========================================= */
.cap-section {
  position: relative;
  padding: clamp(80px, 12vh, 180px) 0;
  background: var(--base);
  border-top: 1px solid var(--rule);
}

.cap-split {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.cap-left {
  position: sticky;
  top: 120px;
}
.cap-left .section-label {
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.cap-accent-line {
  height: 1px;
  margin-top: 1.5rem;
  background: linear-gradient(to right, var(--accent), transparent);
  transform-origin: left;
}
.cap-intro {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  color: var(--text-dim);
}
.cap-visual {
  margin-top: clamp(2rem, 4vw, 3.5rem);
  position: relative;
}
.cap-visual img {
  width: 100%;
  max-width: 360px;
  height: auto;
  border-radius: 6px;
  filter: brightness(0.85) saturate(0.8);
  transition: filter 0.6s ease;
}
.cap-visual:hover img {
  filter: brightness(1) saturate(1);
}
.cap-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: linear-gradient(180deg, transparent 40%, var(--base) 100%);
  pointer-events: none;
}

.cap-right {
  border-top: 1px solid var(--rule-strong);
}
.cap-item {
  padding: clamp(1.5rem, 2.5vw, 2rem) 0;
  padding-left: 0;
  border-bottom: 1px solid var(--rule);
  border-left: 2px solid transparent;
  transition: border-color 0.4s, padding-left 0.5s var(--ease-out), border-left-color 0.4s;
}
.cap-item:hover {
  border-bottom-color: var(--rule-strong);
  border-left-color: var(--accent);
  padding-left: 1.25rem;
}

.cap-name {
  font-family: var(--font-d);
  font-size: clamp(1rem, 1.4vw, 1.1875rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}
.cap-item:hover .cap-name { color: var(--accent); }

.cap-desc {
  font-size: 0.9375rem;
  color: var(--text-dim);
  line-height: 1.55;
  max-width: 480px;
}


/* =========================================
   MANIFESTO — oversized, left-aligned
   ========================================= */
.manifesto-section {
  position: relative;
  padding: clamp(120px, 18vh, 280px) 0;
  background: var(--void);
  overflow: hidden;
  border-top: 1px solid var(--rule);
}
.manifesto-bg-img {
  position: absolute;
  inset: 0;
  background: url('../assets/Background.webp') center / cover no-repeat;
  opacity: 0.2;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.6) 30%, rgba(0,0,0,0.6) 70%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.6) 30%, rgba(0,0,0,0.6) 70%, transparent 100%);
}

.manifesto-glow {
  position: absolute;
  top: 50%;
  left: 30%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 160%;
  background: radial-gradient(ellipse at center, rgba(196, 154, 108, 0.07) 0%, transparent 60%);
  pointer-events: none;
}
.manifesto-inner {
  position: relative;
  z-index: 1;
  padding-left: clamp(2rem, 4vw, 3.5rem);
  border-left: 2px solid var(--accent);
}
.manifesto-text {
  font-family: var(--font-d);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text);
  max-width: 18ch;
  margin-bottom: 2rem;
  border: none;
}
.manifesto-attr {
  font-family: var(--font-d);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}


/* =========================================
   STATS — dense, oversized numbers
   ========================================= */
.stats-section {
  position: relative;
  padding: clamp(32px, 4vh, 56px) 0;
  background: var(--deep);
  border-top: 1px solid var(--rule);
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule-strong);
}
.stat {
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2vw, 2rem);
  background: var(--deep);
  transition: background 0.4s;
}
.stat:hover {
  background: rgba(12, 12, 20, 1);
}

.stat-value {
  display: block;
  font-family: var(--font-d);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 0.9;
  margin-bottom: 0.625rem;
  transition: color 0.4s, transform 0.5s var(--ease-out);
}
.stat:hover .stat-value {
  color: var(--accent);
  transform: translateY(-2px);
}
.stat-label {
  font-family: var(--font-d);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}


/* =========================================
   CLIENTS — inline strip
   ========================================= */
.clients-section {
  position: relative;
  padding: clamp(28px, 3.5vh, 48px) 0;
  border-top: 1px solid var(--rule);
}
.clients-header {
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.clients-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}
.client {
  font-family: var(--font-d);
  font-size: clamp(0.8125rem, 1vw, 0.9375rem);
  font-weight: 500;
  color: var(--text-dim);
  padding: 0.75rem clamp(1rem, 2vw, 2rem);
  position: relative;
  transition: color 0.3s;
}
.client:hover { color: var(--text); }
.client + .client::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--rule);
}
.client:first-child { padding-left: 0; }


/* =========================================
   CONTACT — split, dramatic headline
   ========================================= */
.contact-section {
  position: relative;
  padding: clamp(100px, 14vh, 200px) 0 clamp(80px, 10vh, 140px);
  background:
    radial-gradient(ellipse 50% 70% at 30% 40%, rgba(196, 154, 108, 0.04) 0%, transparent 100%),
    linear-gradient(180deg, var(--deep) 0%, var(--void) 100%);
  overflow: hidden;
  border-top: 1px solid var(--rule);
}
.contact-bg-img {
  position: absolute;
  inset: 0;
  background: url('../assets/section-visual.webp') center / cover no-repeat;
  opacity: 0.12;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 50%, rgba(0,0,0,0.7) 0%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 90% at 50% 50%, rgba(0,0,0,0.7) 0%, transparent 80%);
}

.contact-glow {
  position: absolute;
  top: -20%;
  left: 20%;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(196, 154, 108, 0.06) 0%, transparent 55%);
  pointer-events: none;
}

.contact-split {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}
.contact-h {
  font-family: var(--font-d);
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
}

.contact-right {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding-top: 0.75rem;
}
.contact-desc {
  font-size: clamp(0.9375rem, 1.2vw, 1rem);
  line-height: 1.6;
  color: var(--text-dim);
}
.contact-email {
  font-family: var(--font-d);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 600;
  color: var(--accent);
  position: relative;
  display: inline-block;
  align-self: flex-start;
}
.contact-email::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.4s var(--ease-out);
}
.contact-email:hover::after { width: 100%; }

.contact-btn {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.5rem;
  font-family: var(--font-d);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--void);
  background: var(--text);
  padding: 0.875rem 2rem;
  border-radius: 2px;
  transition: background 0.3s, transform 0.2s, gap 0.3s;
}
.contact-btn:hover {
  background: var(--accent);
  transform: translateY(-1px);
  gap: 0.75rem;
}


/* =========================================
   FOOTER
   ========================================= */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--rule);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-logo {
  font-family: var(--font-d);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--text-faint);
}
.footer-copy {
  font-size: 0.6875rem;
  color: var(--text-faint);
}


/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
  .cap-split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .cap-left {
    position: static;
  }
  .cap-visual { display: none; }
  .contact-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-hamburger {
    display: flex;
    align-items: center;
  }
  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--void);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 100;
  }
  .nav-links a { font-size: 1.5rem; }
  .nav-toggle:checked ~ .nav-links {
    opacity: 1;
    pointer-events: auto;
  }
  .nav-toggle:checked ~ .nav-hamburger span { background: transparent; }
  .nav-toggle:checked ~ .nav-hamburger span::before { top: 0; transform: rotate(45deg); }
  .nav-toggle:checked ~ .nav-hamburger span::after  { top: 0; transform: rotate(-45deg); }

  .hero-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .work-row {
    grid-template-columns: 2.5rem 1fr;
    gap: 0.75rem;
  }
  .work-cat, .work-year { display: none; }

  .stats-row { grid-template-columns: 1fr 1fr; }

  .clients-strip {
    flex-direction: column;
    align-items: flex-start;
  }
  .client + .client::before { display: none; }
  .client { padding: 0.5rem 0; }
  .client:first-child { padding-left: 0; }
}

@media (max-width: 480px) {
  .hero-h { font-size: clamp(2.5rem, 11vw, 3.5rem); }
}

/* --- Focus states --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
.nav-hamburger:has(~ .nav-toggle:focus-visible) {
  outline: 1.5px solid var(--accent);
  outline-offset: 3px;
}
.contact-btn:focus-visible {
  outline-color: var(--void);
}
