/* ==========================================================================
   VIKAS BALA — PORTFOLIO
   Design language: a video editor's own timeline. Warm/cool grading duo-tone,
   timecode typography, and a scroll-scrubber that treats the page itself as
   a piece of footage. Built for clarity first, spectacle second.
   ========================================================================== */

:root {
  --ink: #0A0B0E;
  --panel: #14161B;
  --panel-2: #1A1D24;
  --panel-soft: rgba(245,246,248,0.035);

  --paper: #F5F6F8;
  --muted: #9BA3B0;
  --muted-2: #7E8898;

  /* --blue / --blue-light / --blue-deep / --on-blue / --on-image are FIXED —
     the brand blue and its paired button text stay the same in both themes. */
  --blue: #2F6FED;
  --blue-light: #8FC1FF;
  --blue-deep: #16337A;
  --on-blue: #000000;   /* text sitting ON a blue fill (buttons, badges) */
  --on-image: #F5F6F8;  /* text/icons sitting on the dark glass chips over photos */

  /* --blue-text / --blue-dim / --blue-deep-dim / --glass are THEME-ADAPTIVE —
     redefined below under [data-theme="light"] so blue text and glass panels
     stay readable against either background. */
  --blue-text: #6FC3FF;
  --blue-dim: rgba(47,111,237,0.15);
  --blue-deep-dim: rgba(22,51,122,0.35);
  --glass: rgba(10,11,14,0.72);
  --error-text: #FF6B61;

  --line: rgba(245,246,248,0.10);
  --line-soft: rgba(245,246,248,0.06);
  --line-strong: rgba(245,246,248,0.18);

  --font-display: 'Bricolage Grotesque', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  --max-width: 1180px;
  --section-pad: clamp(88px, 12vw, 150px);
  --edge: clamp(24px, 6vw, 64px);

  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --radius-pill: 980px;

  --shadow-sm: 0 2px 10px rgba(0,0,0,0.25);
  --shadow-md: 0 16px 40px rgba(0,0,0,0.35);
  --shadow-lg: 0 30px 80px rgba(0,0,0,0.45);
  --shadow-accent: 0 12px 30px rgba(47,111,237,0.35);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: dark;
}

/* ==========================================================================
   LIGHT THEME — same structure, inverted surface/text tokens. Toggled by
   script.js setting data-theme="light" on <html> (persisted in localStorage).
   ========================================================================== */
:root[data-theme="light"] {
  --ink: #FFFFFF;
  --panel: #F3F5F9;
  --panel-2: #E7EBF2;
  --panel-soft: rgba(9,13,20,0.04);

  --paper: #0B0E14;
  --muted: #495364;
  --muted-2: #616C7A;

  --blue-text: #0B2A5E;
  --blue-dim: rgba(47,111,237,0.10);
  --blue-deep-dim: rgba(15,42,110,0.12);
  --glass: rgba(255,255,255,0.72);
  --error-text: #B3261E;

  --line: rgba(9,13,20,0.10);
  --line-soft: rgba(9,13,20,0.06);
  --line-strong: rgba(9,13,20,0.16);

  --shadow-sm: 0 2px 10px rgba(20,24,32,0.08);
  --shadow-md: 0 16px 40px rgba(20,24,32,0.10);
  --shadow-lg: 0 30px 80px rgba(20,24,32,0.14);

  color-scheme: light;
}

@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;
  }
}

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

::selection { background: var(--blue); color: var(--on-blue); }

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

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: clip;
}

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

/* smooth cross-fade when the theme toggles, instead of a hard snap */
html, body, .navbar, .player-frame, .glass-card, .service-card, .tool-card,
.process-card, .experience-box, .lightbox-panel, .workflow-card, .exp-card,
.exp-body, .project-media, .featured-media, .number-card, .about-timeline,
.hire-btn, .primary-btn, .secondary-btn, .about-btn, .theme-toggle {
  transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}

.skip-link {
  position: fixed;
  top: -60px; left: 12px;
  background: var(--blue);
  color: var(--on-blue);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  z-index: 1000;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ==========================================================================
   PAGE LOADER — a brief, honest "render" beat. Skips itself if JS is slow.
   ========================================================================== */
.loader {
  position: fixed; inset: 0; z-index: 999;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-tc {
  font-family: var(--font-mono);
  font-size: clamp(20px, 4vw, 32px);
  letter-spacing: 0.08em;
  color: var(--muted);
}
.loader-tc::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue);
  margin-right: 12px;
  vertical-align: middle;
  animation: recBlink 1s steps(1) infinite;
}

@keyframes recBlink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0.15; } }

/* ==========================================================================
   TIMELINE SCRUBBER — signature element. Doubles as scroll progress and as
   a literal reference to the subject: the page reads like a video timeline.
   ========================================================================== */
.scrub-rail {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--line-soft);
  z-index: 210;
}
.scrub-fill {
  position: absolute; top: 0; left: 0; height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  box-shadow: 0 0 12px rgba(47,111,237,0.55);
}
.scrub-tc {
  position: absolute;
  top: 8px; right: clamp(16px, 4vw, 40px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--muted-2);
  background: var(--glass);
  backdrop-filter: blur(6px);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
body.is-scrolling .scrub-tc { opacity: 1; }

.playhead {
  position: fixed;
  width: 18px; height: 18px;
  border: 1.5px solid var(--blue-light);
  border-radius: 50%;
  pointer-events: none;
  z-index: 400;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: opacity 0.3s ease, transform 0.15s var(--ease-soft), width 0.2s ease, height 0.2s ease;
  opacity: 0;
}
.playhead.is-active { opacity: 1; }
.playhead.is-hover { width: 46px; height: 46px; background: var(--blue-light); border-color: transparent; opacity: 0.9; }
@media (hover: none), (pointer: coarse) { .playhead { display: none; } }

.back-to-top {
  position: fixed;
  right: clamp(16px, 4vw, 32px);
  bottom: clamp(16px, 4vw, 32px);
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong);
  color: var(--paper);
  z-index: 150;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s var(--ease), background 0.25s ease, border-color 0.25s ease;
}
.back-to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { border-color: var(--blue); color: var(--blue-text); transform: translateY(-3px); }
@media (max-width: 620px) {
  .back-to-top { width: 40px; height: 40px; }
}

.mail-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 12px);
  width: max-content;
  max-width: min(92vw, 560px);
  box-sizing: border-box;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  background: var(--glass);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  z-index: 160;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s var(--ease);
}
.mail-toast[hidden] { display: flex; } /* keep transition-able; visibility handled by is-visible */
.mail-toast.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.mail-toast p { font-family: var(--font-mono); font-size: 13px; color: var(--paper); white-space: nowrap; }
.mail-toast a, #mail-toast-copy {
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  color: var(--blue-text); white-space: nowrap; flex-shrink: 0;
}
.mail-toast a:hover, #mail-toast-copy:hover { color: var(--blue); }
#mail-toast-copy { background: none; border: none; padding: 0; cursor: pointer; }
#mail-toast-close {
  width: 22px; height: 22px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; color: var(--muted-2);
  transition: color 0.2s ease, background 0.2s ease;
}
#mail-toast-close:hover { color: var(--paper); background: var(--panel-2); }
@media (max-width: 620px) {
  .mail-toast { flex-wrap: wrap; padding: 12px 16px; }
  .mail-toast p { white-space: normal; }
}

/* ==========================================================================
   404 / ERROR PAGE
   ========================================================================== */
.error-page {
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: var(--edge);
  position: relative;
  overflow: hidden;
}
.error-page .hero-grain { position: absolute; inset: -10%; }
.error-code {
  font-family: var(--font-mono);
  font-size: clamp(15px, 2vw, 17px);
  letter-spacing: 0.14em;
  color: var(--blue-text);
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 28px;
}
.error-page h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  max-width: 16ch;
}
.error-page p {
  font-size: 17px;
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 40px;
}
.error-logo {
  position: absolute;
  top: clamp(24px, 6vw, 48px);
  left: clamp(24px, 6vw, 64px);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
}
.error-logo span { color: var(--blue); }

/* ==========================================================================
   SHARED — section header pattern
   ========================================================================== */
.section-header {
  max-width: 660px;
  margin: 0 auto 68px;
  text-align: center;
  padding: 0 var(--edge);
}
.section-header p {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-text);
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.section-header h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.01em;
  line-height: 1.14;
  white-space: pre-line;
}
.section-header .section-subtitle {
  margin-top: 20px;
  font-size: 17px;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
}

section { position: relative; padding: var(--section-pad) 0; }

.rec-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue);
  animation: recBlink 1.6s steps(1) infinite;
  flex-shrink: 0;
}

/* reveal-on-scroll baseline (animated to visible by script.js/GSAP) */
.reveal { opacity: 0; transform: translateY(28px); will-change: transform, opacity; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
body.no-motion .reveal { opacity: 1 !important; transform: none !important; }

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 3px; left: 0; right: 0;
  z-index: 200;
  transition: background 0.35s ease, border-color 0.35s ease, padding 0.35s ease;
  border-bottom: 1px solid transparent;
}
.navbar.is-scrolled {
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}
.nav-container {
  position: relative;
  z-index: 201; /* must beat .mobile-menu's z-index so the burger/close button stays clickable while the menu is open — see comment on .mobile-menu below */
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px var(--edge);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: padding 0.35s ease;
}
.navbar.is-scrolled .nav-container { padding-top: 14px; padding-bottom: 14px; }

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.02em;
  display: inline-flex;
}
.logo span { color: var(--blue-text); }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.25s ease;
  padding: 4px 0;
}
.nav-links a span { position: relative; }
.nav-links a::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--blue);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--paper); }
.nav-links a:hover::after, .nav-links a.is-active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-resume {
  font-size: 14px; font-weight: 500; color: var(--muted);
  transition: color 0.25s ease;
}
.nav-resume:hover { color: var(--paper); }

.theme-toggle {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--paper);
  flex-shrink: 0;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.3s var(--ease);
}
.theme-toggle:hover { border-color: var(--blue); color: var(--blue-text); transform: rotate(14deg); }
.theme-toggle svg { grid-area: 1 / 1; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }

.hire-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue);
  color: var(--on-blue);
  font-size: 14px; font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 16px rgba(47,111,237,0.28);
  transition: background 0.25s ease, transform 0.25s var(--ease), box-shadow 0.25s ease;
}
.hire-btn:hover { background: var(--blue-light); box-shadow: var(--shadow-accent); transform: translateY(-1px); }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px; height: 32px;
}
.nav-burger span {
  display: block; width: 100%; height: 1.5px;
  background: var(--paper);
  transition: transform 0.3s var(--ease), opacity 0.3s ease;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0;
  background: var(--ink);
  z-index: 190; /* stays below .nav-container's 201 so the burger stays clickable to close it */
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 0 var(--edge);
  transform: translateY(-100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.5s var(--ease), visibility 0.5s;
}
.mobile-menu.is-open { transform: translateY(0); visibility: visible; pointer-events: auto; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu nav a {
  font-family: var(--font-display);
  font-size: clamp(30px, 9vw, 44px);
  font-weight: 700;
  color: var(--muted);
  padding: 10px 0;
  opacity: 0;
  transform: translateY(20px);
  transition: color 0.25s ease;
}
.mobile-menu.is-open nav a { animation: menuIn 0.6s var(--ease-soft) forwards; animation-delay: calc(var(--i) * 0.05s); }
@keyframes menuIn { to { opacity: 1; transform: translateY(0); } }
.mobile-menu nav a:hover, .mobile-menu nav a:active { color: var(--paper); }
.mobile-cta {
  margin-top: 40px;
  display: inline-flex;
  align-self: flex-start;
  background: var(--blue);
  color: var(--on-blue);
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 60px;
  overflow: clip;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-grain {
  position: absolute; inset: -10%;
  background:
    radial-gradient(circle at 18% 20%, rgba(47,111,237,0.20), transparent 42%),
    radial-gradient(circle at 82% 70%, rgba(22,51,122,0.40), transparent 45%);
}
.hero-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, var(--ink) 100%);
}
.frame-mark {
  position: absolute;
  width: 26px; height: 26px;
  border-color: var(--line-strong);
  border-style: solid;
  opacity: 0.7;
}
.frame-mark.tl { top: 100px; left: var(--edge); border-width: 1.5px 0 0 1.5px; }
.frame-mark.tr { top: 100px; right: var(--edge); border-width: 1.5px 1.5px 0 0; }
.frame-mark.bl { bottom: 30px; left: var(--edge); border-width: 0 0 1.5px 1.5px; }
.frame-mark.br { bottom: 30px; right: var(--edge); border-width: 0 1.5px 1.5px 0; }

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--edge);
  display: grid;
  grid-template-columns: 1.2fr 0.85fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
  width: 100%;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
}

.hero-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 6.4vw, 84px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.hero-heading .hl { color: var(--blue-text); font-style: normal; }
.split-line { overflow: hidden; display: block; }
.split-word { display: inline-block; }

.hero-desc {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 38px;
}

.hero-buttons { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 56px; }

.primary-btn, .secondary-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 600;
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.primary-btn { background: var(--blue); color: var(--on-blue); }
.primary-btn:hover { box-shadow: var(--shadow-accent); transform: translateY(-2px); }
.secondary-btn {
  background: transparent; color: var(--paper);
  border: 1px solid var(--line-strong);
}
.secondary-btn:hover { border-color: var(--blue); color: var(--blue-text); transform: translateY(-2px); }

.hero-stats { display: flex; gap: clamp(28px, 4vw, 48px); }
.hero-stats h2 {
  font-family: var(--font-mono);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 500;
  color: var(--paper);
}
.hero-stats p { font-size: 13px; color: var(--muted-2); margin-top: 4px; }

/* hero "player" card — HUD-styled status card, right column */
.hero-right { position: relative; }
.player-frame {
  position: relative;
  background: linear-gradient(165deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px 26px;
  box-shadow: var(--shadow-lg);
}
.player-frame .corner { position: absolute; width: 16px; height: 16px; border-color: var(--blue); border-style: solid; opacity: 0.8; }
.player-frame .corner.tl { top: 10px; left: 10px; border-width: 2px 0 0 2px; }
.player-frame .corner.tr { top: 10px; right: 10px; border-width: 2px 2px 0 0; }
.player-frame .corner.bl { bottom: 10px; left: 10px; border-width: 0 0 2px 2px; }
.player-frame .corner.br { bottom: 10px; right: 10px; border-width: 0 2px 2px 0; }

.player-top { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue-deep);
  box-shadow: 0 0 8px rgba(22,51,122,0.7);
  flex-shrink: 0;
}
.player-status { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--blue-text); }
.player-tc { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--muted-2); }
.player-title { font-family: var(--font-mono); font-size: 17px; color: var(--paper); margin-bottom: 6px; }
.player-sub { font-size: 14px; color: var(--muted); margin-bottom: 22px; min-height: 20px; }
.player-progress {
  height: 4px; background: var(--line-soft); border-radius: 2px; overflow: hidden; margin-bottom: 22px;
}
.player-progress span {
  display: block; height: 100%; width: 12%;
  background: linear-gradient(90deg, var(--blue), var(--blue-deep));
  border-radius: 2px;
}
.player-avail {
  font-size: 13px; color: var(--muted);
  padding-top: 16px; border-top: 1px dashed var(--line);
}

.floating-card {
  position: absolute;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 500;
  box-shadow: var(--shadow-md);
}
.floating-card .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.floating-card.f0 { top: -16px; left: -22px; }
.floating-card.f1 { top: -16px; right: -22px; }
.floating-card.f2 { bottom: -16px; left: 50%; transform: translateX(-50%); }

.scroll-cue {
  position: absolute;
  bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  color: var(--muted-2);
}
.scroll-cue-line {
  width: 1px; height: 40px;
  background: linear-gradient(var(--blue), transparent);
  position: relative;
  overflow: hidden;
}

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--edge);
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(40px, 6vw, 90px);
}
.about-number {
  font-family: var(--font-mono);
  font-size: 14px; color: var(--blue-text);
  display: block; margin-bottom: 16px;
}
.about-main h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  margin-bottom: 22px;
  line-height: 1.3;
}
.about-main p { color: var(--muted); font-size: 16px; margin-bottom: 18px; }
.about-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.about-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue); color: var(--on-blue);
  font-size: 14px; font-weight: 600;
  padding: 13px 22px; border-radius: var(--radius-pill);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}
.about-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-accent); }
.about-btn.secondary { background: transparent; color: var(--paper); border: 1px solid var(--line-strong); }
.about-btn.secondary:hover { border-color: var(--blue); box-shadow: none; color: var(--blue-text); }

.about-side { display: flex; flex-direction: column; gap: 16px; }
.about-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  line-height: 0;
}
.about-photo img {
  width: 100%; height: auto; aspect-ratio: 666 / 375;
  object-fit: cover;
  filter: grayscale(0.15);
  transition: filter 0.4s ease;
}
.about-photo:hover img { filter: grayscale(0); }
.about-photo .corner { position: absolute; width: 18px; height: 18px; border-color: var(--blue); border-style: solid; opacity: 0.85; }
.about-photo .corner.tl { top: 10px; left: 10px; border-width: 2px 0 0 2px; }
.about-photo .corner.br { bottom: 10px; right: 10px; border-width: 0 2px 2px 0; }
.glass-card {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 24px;
}
.glass-card .label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--blue-text); margin-bottom: 10px;
}
.glass-card h4 { font-size: 15px; font-weight: 500; color: var(--paper); line-height: 1.5; }

.about-timeline {
  max-width: var(--max-width);
  margin: 90px auto 0;
  padding: 0 var(--edge);
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.timeline-rail {
  position: absolute; top: 5px; left: var(--edge); right: var(--edge);
  height: 1px; background: var(--line);
}
.timeline-tick { position: relative; padding-top: 26px; }
.timeline-node {
  position: absolute; top: 0; left: 0;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--ink); border: 2px solid var(--blue);
}
.timeline-year { font-family: var(--font-mono); font-size: 13px; color: var(--blue-text); display: block; margin-bottom: 8px; }
.timeline-text { font-size: 14px; color: var(--muted); line-height: 1.55; }

/* ==========================================================================
   EXPERIENCE
   ========================================================================== */
.experience-wrapper {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--edge);
  position: relative;
}
.filmstrip-rail {
  position: absolute;
  top: 10px; bottom: 10px; left: calc(var(--edge) + 5px);
  width: 1px;
  background: repeating-linear-gradient(var(--line-strong), var(--line-strong) 6px, transparent 6px, transparent 14px);
}
.exp-card {
  position: relative;
  border-bottom: 1px solid var(--line);
  padding: 30px 0;
}
.exp-card:first-child { padding-top: 4px; }
.exp-head {
  width: 100%;
  display: grid;
  grid-template-columns: 12px 110px 1fr 24px;
  align-items: center;
  gap: 22px;
  text-align: left;
}
.exp-node {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px var(--ink), 0 0 0 5px var(--line);
}
.exp-period {
  font-family: var(--font-mono);
  font-size: 14px; color: var(--paper);
  display: flex; flex-direction: column; gap: 2px;
}
.exp-period em { font-style: normal; font-size: 11px; color: var(--muted-2); }
.exp-role { font-family: var(--font-display); font-size: 18px; font-weight: 700; display: block; }
.exp-company { font-size: 13px; color: var(--muted); }
.exp-company i { font-style: normal; color: var(--muted-2); }
.exp-toggle {
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  transition: transform 0.35s var(--ease), background 0.25s ease, color 0.25s ease;
  flex-shrink: 0;
}
.exp-head[aria-expanded="true"] .exp-toggle { transform: rotate(135deg); background: var(--blue); color: var(--on-blue); border-color: var(--blue); }
.exp-body {
  height: 0;
  overflow: hidden;
  max-width: 640px;
  margin-left: calc(12px + 110px + 22px);
}
.exp-body-inner { padding-top: 22px; }
.exp-body p { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.exp-highlights { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.exp-highlights li {
  position: relative; padding-left: 18px;
  font-size: 14px; color: var(--muted);
}
.exp-highlights li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 6px; height: 1.5px; background: var(--blue);
}
.tech-stack { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-stack span {
  font-family: var(--font-mono);
  font-size: 11px; padding: 5px 11px;
  border-radius: var(--radius-sm);
  background: var(--panel-soft);
  border: 1px solid var(--line);
  color: var(--muted);
}

.experience-bottom {
  max-width: var(--max-width);
  margin: 70px auto 0;
  padding: 0 var(--edge);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.experience-box {
  text-align: center; padding: 28px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel-soft);
}
.experience-box h3 { font-family: var(--font-display); font-size: 26px; color: var(--blue-text); margin-bottom: 6px; }
.experience-box p { font-size: 13px; color: var(--muted); }

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--edge);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card {
  position: relative;
  padding: 32px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel-soft);
  transition: border-color 0.3s ease, transform 0.35s var(--ease);
}
.service-card:hover { border-color: var(--line-strong); transform: translateY(-6px); }
.service-number {
  font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); margin-bottom: 22px;
}
.service-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--blue-dim);
  color: var(--blue-text);
  margin-bottom: 22px;
}
.service-card h3 { font-family: var(--font-display); font-size: 19px; font-weight: 700; margin-bottom: 12px; }
.service-card p { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.service-card ul { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.service-card ul li {
  font-size: 11px; padding: 4px 10px; border-radius: var(--radius-sm);
  background: var(--panel-2); color: var(--muted); border: 1px solid var(--line);
}
.service-footer { display: flex; gap: 8px; padding-top: 18px; border-top: 1px dashed var(--line); }
.service-footer span { font-family: var(--font-mono); font-size: 11px; color: var(--blue-text); }

/* ==========================================================================
   PROJECTS
   ========================================================================== */
.featured-project {
  max-width: var(--max-width);
  margin: 0 auto 60px;
  padding: 0 var(--edge);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}
.featured-media, .project-media {
  position: relative;
  display: block;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
}
.featured-image, .project-media picture { display: block; }
.featured-image img, .project-media img {
  width: 100%; height: 100%; object-fit: cover;
  aspect-ratio: 4 / 5;
  transition: transform 0.8s var(--ease-soft);
}
.featured-media:hover img, .project-card:hover .project-media img { transform: scale(1.06); }
.media-hover-video { position: relative; display: block; }
.preview-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
}
.preview-video.is-playing { opacity: 1; }
.media-overlay {
  position: absolute; top: 16px; left: 16px;
  display: flex; gap: 8px; flex-wrap: wrap;
}
.media-overlay .badge {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em;
  background: var(--blue); color: var(--on-blue);
  padding: 6px 12px; border-radius: var(--radius-pill); font-weight: 600;
}
.media-overlay.small-tags span {
  font-size: 11px; padding: 5px 10px; border-radius: var(--radius-pill);
  background: rgba(14,15,17,0.75); backdrop-filter: blur(6px);
  color: var(--on-image); border: 1px solid var(--line);
}
.media-play {
  position: absolute; bottom: 16px; right: 16px;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(14,15,17,0.75);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-strong);
  color: var(--on-image);
  transition: background 0.3s ease, transform 0.3s var(--ease), color 0.3s ease;
}
.featured-media:hover .media-play, .project-card:hover .media-play {
  background: var(--blue); color: var(--on-blue); transform: scale(1.08);
}
.media-play.small { width: 36px; height: 36px; }

.featured-content .project-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.project-tags span, .small-tags span {
  font-size: 11px; padding: 5px 12px; border-radius: var(--radius-pill);
  background: var(--blue-deep-dim); color: var(--blue-text);
  font-family: var(--font-mono);
}
.featured-content h3 { font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; margin-bottom: 16px; }
.featured-content p { color: var(--muted); font-size: 16px; margin-bottom: 28px; max-width: 52ch; }
.project-info {
  display: flex; gap: clamp(20px, 3vw, 40px);
  margin-bottom: 30px; padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.project-info h4 { font-family: var(--font-mono); font-size: 11px; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.project-info p { font-size: 14px; color: var(--paper); margin: 0; line-height: 1.5; }
.project-button {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 600;
  color: var(--paper);
  padding-bottom: 4px;
  border-bottom: 1.5px solid var(--blue);
  transition: gap 0.3s var(--ease), color 0.3s ease;
}
.project-button:hover { gap: 16px; color: var(--blue-text); }

.project-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--edge);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.project-card { display: flex; flex-direction: column; }
.project-card .project-media img { aspect-ratio: 3 / 4; }
.project-content { padding: 20px 4px 0; }
.project-content h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.project-content p { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.project-content a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--blue-text); }
.project-content a:hover { color: var(--blue-text); }

.projects-more {
  max-width: var(--max-width);
  margin: 36px auto 0;
  padding: 42px var(--edge);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  text-align: center;
}
.projects-more p {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.03em;
  color: var(--muted-2);
}
.render-spinner {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  border-top-color: var(--blue);
  animation: spin 0.85s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Lightbox / quick view */
.lightbox {
  position: fixed; inset: 0; z-index: 500;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; transition: opacity 0.3s ease;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox-scrim { position: absolute; inset: 0; background: rgba(6,6,7,0.82); backdrop-filter: blur(6px); }
.lightbox-panel {
  position: relative;
  max-width: 900px; width: 100%; max-height: 86vh; overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  transform: translateY(14px) scale(0.98);
  transition: transform 0.35s var(--ease-soft);
}
.lightbox.is-open .lightbox-panel { transform: translateY(0) scale(1); }
.lightbox-close {
  position: absolute; top: 18px; right: 18px;
  z-index: 5;
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--panel-2); border: 1px solid var(--line);
  color: var(--paper);
  transition: background 0.25s ease, transform 0.25s ease;
}
.lightbox-close:hover { background: var(--blue); color: var(--on-blue); transform: rotate(90deg); }
.lightbox-body { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.lightbox-body img { border-radius: var(--radius-md); width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.lightbox-body h3 { font-family: var(--font-display); font-size: 26px; margin-bottom: 14px; }
.lightbox-body p { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.lightbox-body .project-tags { margin-bottom: 20px; }
.lightbox-body .project-button { margin-top: 6px; }
.lightbox-body.is-video { display: block; }
.video-embed { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: var(--radius-md); overflow: hidden; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lightbox-body.is-image { display: flex; align-items: center; justify-content: center; text-align: center; }

/* Full image viewer: the panel drops its padding/900px cap so the image can
   render as large as the viewport allows, with click/scroll/pinch zoom and
   drag-to-pan once zoomed in. Sizes are calc()'d against the outer .lightbox
   padding (24px a side) so the panel can never overflow the viewport. */
.lightbox-panel.is-image-panel {
  padding: 0;
  width: auto;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 48px);
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: hidden;
}
.lightbox-panel.is-image-panel .lightbox-close {
  top: 12px; right: 12px;
  background: var(--panel);
  box-shadow: var(--shadow-md);
}
.lightbox-image-wrap {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: max-content; height: max-content;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 48px);
  overflow: hidden;
  touch-action: none;
  cursor: zoom-in;
  border-radius: var(--radius-md);
}
.lightbox-image-wrap.is-zoomed { cursor: grab; }
.lightbox-image-wrap.is-dragging { cursor: grabbing; }
.lightbox-image {
  display: block;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 48px);
  width: auto; height: auto;
  border-radius: var(--radius-md);
  user-select: none; -webkit-user-drag: none;
  transform: translate(0, 0) scale(1);
  transform-origin: center center;
  transition: transform 0.18s var(--ease-soft);
}
.lightbox-image-wrap.is-dragging .lightbox-image { transition: none; }
@media (max-width: 620px) {
  /* Tighter outer margin on small screens so the image gets nearly the
     whole screen, but the panel/image caps are updated to match — this
     pairing is what keeps things from spilling past the viewport edge. */
  .lightbox.is-image-mode { padding: 8px; }
  .lightbox-panel.is-image-panel { max-width: calc(100vw - 16px); max-height: calc(100vh - 16px); border-radius: 14px; }
  .lightbox-image-wrap { max-width: calc(100vw - 16px); max-height: calc(100vh - 16px); border-radius: 14px; }
  .lightbox-image { max-width: calc(100vw - 16px); max-height: calc(100vh - 16px); border-radius: 14px; }
}

/* ==========================================================================
   PROCESS
   ========================================================================== */
.process-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--edge);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}
.process-card {
  padding: 30px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  position: relative;
}
.process-card:not(:last-child)::after {
  content: '';
  position: absolute; top: 30px; right: -21px;
  width: 20px; height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 4px, transparent 4px 8px);
  display: none;
}
@media (min-width: 1081px) { .process-card:not(:last-child)::after { display: block; } }
.process-number { font-family: var(--font-mono); font-size: 13px; color: var(--blue-text); display: block; margin-bottom: 18px; }
.process-card h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.process-card p { font-size: 14px; color: var(--muted); }

/* ==========================================================================
   TOOLKIT
   ========================================================================== */
.tools { max-width: var(--max-width); margin: 0 auto; padding: var(--section-pad) var(--edge); }
.tool-category { margin-bottom: 40px; }
.tool-category h3 {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--blue-text); margin-bottom: 20px;
}
.tool-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.tool-card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel-soft);
  transition: border-color 0.25s ease, background 0.25s ease;
}
.tool-card:hover { border-color: var(--line-strong); }
.tool-card h4 { font-size: 15px; font-weight: 600; }
.tool-level {
  flex-shrink: 0;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.03em;
  color: var(--blue-text);
  background: var(--blue-dim);
  padding: 5px 11px;
  border-radius: var(--radius-pill);
}
.workflow-card {
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--blue-dim), transparent 60%), var(--panel-soft);
}
.workflow-card h4 { font-family: var(--font-display); font-size: 19px; margin-bottom: 12px; }
.workflow-card p { font-size: 15px; color: var(--muted); max-width: 70ch; }

/* ==========================================================================
   NUMBERS STRIP
   ========================================================================== */
.numbers { padding: 70px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.numbers-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 var(--edge);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center;
}
.number-card h2 { font-family: var(--font-mono); font-size: clamp(26px, 3vw, 38px); color: var(--blue-text); font-weight: 500; }
.number-card p { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact { text-align: center; overflow: clip; }
.contact-glow {
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(circle at 50% 30%, rgba(47,111,237,0.18), transparent 55%);
}
.contact-content { max-width: 720px; margin: 0 auto; padding: 0 var(--edge); }
.contact-content > span:first-child {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em;
  color: var(--blue-text); display: inline-flex; align-items: center; gap: 8px; margin-bottom: 24px;
}
.contact-content h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(32px, 5vw, 56px); line-height: 1.12; white-space: pre-line;
  margin-bottom: 22px;
}
.contact-content > p { color: var(--muted); font-size: 17px; margin-bottom: 40px; }
.contact-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-bottom: 46px; }
.contact-details { padding-top: 32px; border-top: 1px solid var(--line); }
.contact-email { font-family: var(--font-display); font-size: clamp(20px, 2.6vw, 28px); font-weight: 700; color: var(--paper); }
.contact-email:hover { color: var(--blue-text); }
.contact-meta { font-size: 14px; color: var(--muted); margin-top: 12px; }
.contact-response {
  margin-top: 16px; font-size: 13px; color: var(--blue-text);
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
}

.contact-form {
  margin-top: 44px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  text-align: left;
  display: flex; flex-direction: column; gap: 18px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted-2);
}
.form-field input, .form-field textarea {
  font-family: var(--font-body); font-size: 15px; color: var(--paper);
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  transition: border-color 0.25s ease, background 0.25s ease;
  resize: vertical;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--blue); background: var(--panel);
}
.form-submit { align-self: flex-start; }

@media (max-width: 620px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   WHY ME
   ========================================================================== */
.why-grid {
  max-width: var(--max-width); margin: 0 auto; padding: 0 var(--edge);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px;
}
.why-grid > div { border-top: 2px solid var(--blue); padding-top: 20px; }
.why-grid h3 { font-family: var(--font-display); font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.why-grid p { font-size: 14px; color: var(--muted); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { border-top: 1px solid var(--line); padding: 90px 0 40px; }
.footer-top {
  max-width: var(--max-width); margin: 0 auto 70px; padding: 0 var(--edge);
  display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap;
}
.footer-top h2 { font-family: var(--font-display); font-size: clamp(24px, 3.4vw, 38px); font-weight: 700; max-width: 560px; }
.footer-top a {
  font-size: 16px; font-weight: 600; color: var(--blue-text);
  display: inline-flex; align-items: center; gap: 8px;
  border-bottom: 1.5px solid var(--blue); padding-bottom: 4px;
}
.footer-bottom {
  max-width: var(--max-width); margin: 0 auto; padding: 30px var(--edge) 0;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap;
}
.footer-bottom h3 { font-size: 15px; font-weight: 700; }
.footer-bottom p { font-size: 13px; color: var(--muted-2); margin-top: 4px; }
.footer-bottom > div:nth-child(2) { display: flex; gap: 18px; }
.footer-bottom > div:nth-child(2) a { font-size: 13px; color: var(--muted); }
.footer-bottom > div:nth-child(2) a:hover { color: var(--blue-text); }
.footer-bottom > div:last-child p { font-size: 12px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px) {
  .services-grid, .process-grid, .why-grid, .experience-bottom, .numbers-inner { grid-template-columns: repeat(2, 1fr); }
  .about-timeline { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .timeline-rail { display: none; }
}

@media (max-width: 940px) {
  .nav-links, .nav-resume { display: none; }
  .nav-burger { display: flex; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-right { max-width: 460px; }
  .about-grid, .featured-project { grid-template-columns: 1fr; }
  .featured-image img, .featured-media img { aspect-ratio: 16/10; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .exp-head { grid-template-columns: 12px 90px 1fr 24px; gap: 14px; }
  .exp-body { margin-left: calc(12px + 90px + 14px); }
  .lightbox-body { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  :root { --section-pad: 76px; }
  .hero { padding-top: 130px; }
  .hero-stats { gap: 24px; }
  .services-grid, .process-grid, .why-grid, .experience-bottom, .numbers-inner, .project-grid, .about-timeline { grid-template-columns: 1fr; }
  .exp-head { grid-template-columns: 10px 1fr 22px; }
  .exp-period { grid-column: 2; grid-row: 1; }
  .exp-role-wrap { grid-column: 2; grid-row: 2; }
  .exp-node { grid-row: 1 / 3; }
  .exp-body { margin-left: 24px; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .scrub-tc { display: none; }
  .floating-card.f0 { left: -10px; }
  .floating-card.f1 { right: -10px; }
  .floating-card { padding: 8px 12px; font-size: 12px; }
}
