/* =============================================================================
   DANISH RANGAIZ · PORTFOLIO
   Aesthetic: technical / datasheet / coding
   Palette: #CFF023 (lime accent) · #0c1d35 (deep navy) · warm paper light bg
============================================================================= */

:root {
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --font-sans: 'Inter Tight', -apple-system, system-ui, sans-serif;
  --font-serif: 'Fraunces', Georgia, serif;
  --grid: 8px;
  --r-1: 2px; --r-2: 4px; --r-3: 8px; --r-full: 999px;

  /* Brand */
  --brand-navy-deep: #0c1d35;
  --brand-navy: #142a4a;
  --brand-navy-mid: #1f3a63;
  --brand-lime: #CFF023;
  --brand-lime-bright: #DEFB3A;
  --brand-lime-dim: #A8C81C;
}

/* ============ LIGHT THEME (default) ============ */
:root,
[data-theme="light"] {
  --bg-0: #F2ECDE;
  --bg-1: #EAE3CF;
  --bg-2: #FFFFFF;
  --bg-inset: #E8E0CA;

  --fg-1: #0c1d35;
  --fg-2: #354b6b;
  --fg-3: #6b788d;
  --fg-4: #B4BAC6;

  --accent: #0c1d35;
  --accent-2: #142a4a;
  --accent-ink: #F2ECDE;
  --accent-soft: rgba(12, 29, 53, 0.10);

  --lime: #CFF023;
  --lime-on-light: #788C0E;        /* darker lime for text on cream */
  --lime-soft: rgba(207, 240, 35, 0.18);

  --line-1: rgba(12, 29, 53, 0.10);
  --line-2: rgba(12, 29, 53, 0.22);
  --line-strong: #0c1d35;
  --grid-line: rgba(12, 29, 53, 0.07);

  --shadow-1: 0 1px 0 rgba(12, 29, 53, 0.08);
  --shadow-2: 0 2px 0 rgba(12, 29, 53, 0.10), 0 1px 2px rgba(12, 29, 53, 0.06);
  --shadow-3: 0 3px 0 rgba(12, 29, 53, 0.14), 0 4px 16px rgba(12, 29, 53, 0.10);

  --brand-gradient: linear-gradient(135deg, #0c1d35 0%, #1f3a63 100%);
}

/* ============ DARK THEME ============ */
[data-theme="dark"] {
  --bg-0: #07142a;
  --bg-1: #0c1d35;
  --bg-2: #142a4a;
  --bg-inset: #0a1830;

  --fg-1: #E6F0F8;
  --fg-2: #A4B5CC;
  --fg-3: #6A7A95;
  --fg-4: #3E4E68;

  --accent: #CFF023;
  --accent-2: #DEFB3A;
  --accent-ink: #0c1d35;
  --accent-soft: rgba(207, 240, 35, 0.14);

  --lime: #CFF023;
  --lime-on-light: #CFF023;
  --lime-soft: rgba(207, 240, 35, 0.14);

  --line-1: rgba(207, 240, 35, 0.12);
  --line-2: rgba(207, 240, 35, 0.24);
  --line-strong: #CFF023;
  --grid-line: rgba(207, 240, 35, 0.07);

  --shadow-1: 0 0 0 1px rgba(207, 240, 35, 0.12);
  --shadow-2: 0 0 14px rgba(207, 240, 35, 0.10), 0 0 0 1px rgba(207, 240, 35, 0.18);
  --shadow-3: 0 0 36px rgba(207, 240, 35, 0.22), 0 0 0 1px rgba(207, 240, 35, 0.30);

  --brand-gradient: linear-gradient(135deg, #CFF023 0%, #DEFB3A 100%);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg-0);
  color: var(--fg-1);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

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

::selection { background: var(--lime); color: var(--brand-navy-deep); }

/* graph paper bg */
.graph-paper {
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: var(--grid) var(--grid);
}

.app { display: flex; flex-direction: column; min-height: 100vh; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 32px; width: 100%; }

/* =============================================================================
   NAV
============================================================================= */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg-0) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-1);
  padding: 14px 32px;
  display: flex; align-items: center; gap: 24px;
}
.nav-brand {
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0;
}
.nav-logo {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  position: relative; flex-shrink: 0;
  background: var(--brand-navy-deep);
  color: var(--lime);
  border-radius: var(--r-2);
  font-family: var(--font-mono);
  font-size: 16px; font-weight: 700;
  letter-spacing: -0.04em;
  box-shadow: 0 0 0 1px var(--line-2), 0 4px 12px rgba(12,29,53,0.18);
}
[data-theme="dark"] .nav-logo {
  background: var(--lime);
  color: var(--brand-navy-deep);
  box-shadow: 0 0 0 1px var(--lime), 0 0 16px var(--accent-soft);
}
.nav-brand-text { display: flex; flex-direction: column; line-height: 1.1; gap: 2px; }
.nav-brand-name {
  font-family: var(--font-sans);
  font-size: 15px; font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--fg-1);
}
.nav-brand-meta {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-3); font-weight: 500;
}
.nav-links { display: flex; gap: 22px; margin-left: 12px; }
.nav-link {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--fg-2);
  padding: 4px 0; cursor: pointer; transition: color 120ms;
  letter-spacing: 0.04em;
  position: relative;
}
.nav-link::before { content: "// "; color: var(--fg-4); }
.nav-link:hover { color: var(--fg-1); }
[data-theme="dark"] .nav-link:hover { color: var(--lime); }
.nav-spacer { flex: 1; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  font-family: var(--font-mono); font-size: 10px;
  padding: 7px 12px;
  background: transparent; border: 1px solid var(--line-2);
  border-radius: 999px; color: var(--fg-2); cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all 120ms;
  letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500;
}
.theme-toggle:hover { border-color: var(--fg-1); color: var(--fg-1); }
[data-theme="dark"] .theme-toggle:hover { border-color: var(--lime); color: var(--lime); }
.theme-dot {
  width: 10px; height: 10px; border-radius: 999px;
  background: var(--lime);
  box-shadow: 0 0 0 1px var(--line-2), 0 0 8px var(--lime-soft);
}
.btn-hire {
  position: relative;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  padding: 9px 18px;
  background: var(--brand-navy-deep);
  color: var(--lime);
  border: 1px solid var(--brand-navy-deep);
  border-radius: var(--r-2);
  transition: transform 160ms, box-shadow 160ms, background 160ms;
  display: inline-flex; align-items: center; gap: 8px;
  letter-spacing: 0.06em; text-transform: uppercase;
  box-shadow: 0 2px 12px rgba(12,29,53,0.25);
  cursor: pointer;
}
.btn-hire:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(12,29,53,0.35); background: var(--brand-navy); }
[data-theme="dark"] .btn-hire {
  background: var(--lime);
  color: var(--brand-navy-deep);
  border-color: var(--lime);
  box-shadow: 0 0 16px var(--lime-soft);
}
[data-theme="dark"] .btn-hire:hover {
  background: var(--brand-lime-bright); border-color: var(--brand-lime-bright);
  box-shadow: 0 0 24px var(--lime-soft);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: var(--r-2);
  padding: 8px 10px;
  cursor: pointer;
  color: var(--fg-1);
}
.hamburger-line {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--fg-1);
  border-radius: 1px;
  transition: transform 240ms ease, opacity 200ms ease;
}
.mobile-toggle.is-open .hamburger-line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mobile-toggle.is-open .hamburger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-toggle.is-open .hamburger-line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--bg-0) 96%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 98;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  padding: 100px 32px 48px;
  transform: translateY(-100%);
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  border-bottom: 1px solid var(--line-1);
}
.mobile-nav.is-open { transform: translateY(0); pointer-events: auto; }
.mobile-nav-link {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 600;
  color: var(--fg-1);
  letter-spacing: 0.04em;
  transition: color 120ms;
  position: relative;
}
.mobile-nav-link::before { content: "// "; color: var(--fg-4); font-size: 18px; }
.mobile-nav-link:hover { color: var(--lime); }
[data-theme="dark"] .mobile-nav-link:hover { color: var(--lime); }

/* Floating mobile CTAs */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%) translateY(calc(100% + 24px));
  z-index: 150;
  gap: 8px;
  opacity: 0;
  transition: transform 420ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 300ms ease;
}
.mobile-cta-bar.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.mobile-cta-btn {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--r-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 160ms;
}
.mobile-cta-btn:active { transform: scale(0.96); }
.mobile-cta-hire {
  background: var(--brand-navy-deep);
  color: var(--lime);
  border: 1.5px solid var(--brand-navy-deep);
  box-shadow: 0 4px 20px rgba(12,29,53,0.45);
}
[data-theme="dark"] .mobile-cta-hire {
  background: var(--lime);
  color: var(--brand-navy-deep);
  border-color: var(--lime);
  box-shadow: 0 4px 20px var(--lime-soft), 0 0 0 1px var(--lime);
}
.mobile-cta-book {
  background: var(--bg-2);
  color: var(--fg-1);
  border: 1.5px solid var(--line-2);
  box-shadow: 0 4px 16px rgba(12,29,53,0.15);
}
[data-theme="dark"] .mobile-cta-book {
  background: var(--bg-1);
  border-color: var(--line-2);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

/* =============================================================================
   HERO
============================================================================= */
.hero {
  position: relative;
  padding: 80px 0 100px;
  border-bottom: 1px solid var(--line-1);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 90% 70% at 30% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 30% 40%, #000 30%, transparent 75%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px;
  position: relative; z-index: 2;
  align-items: start;
}
.hero-kicker {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-3); font-weight: 500;
  margin-bottom: 18px;
  display: inline-flex; align-items: center; gap: 10px;
}
.hero-kicker::before {
  content: ""; width: 6px; height: 6px; border-radius: 999px;
  background: var(--lime); box-shadow: 0 0 8px var(--lime);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1);} 50%{opacity:0.5;transform:scale(0.7);} }

.hero-title {
  font-family: var(--font-sans);
  font-size: clamp(38px, 5.6vw, 68px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  color: var(--fg-1);
}
.hero-title em {
  font-family: var(--font-serif); font-style: italic; font-weight: 600;
  color: var(--lime-on-light);
}
[data-theme="dark"] .hero-title em { color: var(--lime); }
.hero-title .brand-k {
  position: relative; display: inline-block;
  background: var(--lime); color: var(--brand-navy-deep);
  padding: 0 12px; border-radius: var(--r-2);
  transform: rotate(-1deg);
  box-shadow: 0 6px 20px rgba(207,240,35,0.35), inset 0 -3px 0 rgba(0,0,0,0.06);
}

.hero-sub {
  font-size: 17px; line-height: 1.55;
  color: var(--fg-2);
  max-width: 540px;
  margin: 0 0 28px;
}
.hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }

.btn {
  position: relative;
  font-family: var(--font-sans); font-size: 14px; font-weight: 600;
  padding: 13px 22px;
  border-radius: var(--r-2);
  display: inline-flex; align-items: center; gap: 8px;
  transition: all 180ms;
  cursor: pointer; border: 1px solid transparent;
  letter-spacing: -0.005em;
}
.btn-primary {
  background: var(--brand-navy-deep);
  color: var(--lime);
  border-color: var(--brand-navy-deep);
  box-shadow: 0 4px 16px rgba(12,29,53,0.25);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(12,29,53,0.35); }
[data-theme="dark"] .btn-primary {
  background: var(--lime); color: var(--brand-navy-deep); border-color: var(--lime);
  box-shadow: 0 0 20px var(--lime-soft);
}
[data-theme="dark"] .btn-primary:hover {
  background: var(--brand-lime-bright); border-color: var(--brand-lime-bright);
}
.btn-ghost {
  background: transparent;
  color: var(--fg-1);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { border-color: var(--fg-1); transform: translateY(-1px); }
[data-theme="dark"] .btn-ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn-arrow { width: 16px; height: 16px; transition: transform 220ms; }
.btn:hover .btn-arrow { transform: translateX(3px); }

.hero-typed-row {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 13px;
  color: var(--fg-2); margin-bottom: 30px;
}
.hero-typed-prompt { color: var(--lime-on-light); font-weight: 600; }
[data-theme="dark"] .hero-typed-prompt { color: var(--lime); }
.hero-typed { color: var(--fg-1); font-weight: 600; min-height: 18px; }
.hero-typed::after {
  content: "▌"; color: var(--lime-on-light); margin-left: 2px;
  animation: blink 1.05s steps(1) infinite;
}
[data-theme="dark"] .hero-typed::after { color: var(--lime); }
@keyframes blink { 50% { opacity: 0; } }

.hero-tags {
  display: flex; gap: 6px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--fg-3); letter-spacing: 0.04em;
}
.hero-tags span {
  padding: 4px 9px;
  border: 1px solid var(--line-1);
  border-radius: var(--r-full);
  background: var(--bg-2);
}

/* Hero credential card — orbit stage */
.cred-stage {
  position: relative;
  isolation: isolate;
}
.cred-orbit {
  position: absolute;
  inset: -70px -55px -70px -55px;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}
.cred-orbit .ring {
  fill: none;
  stroke: var(--lime-on-light);
  stroke-width: 1;
  opacity: 0.22;
  transform-origin: 50% 50%;
}
[data-theme="dark"] .cred-orbit .ring { stroke: var(--lime); }
.cred-orbit .ring-pulse   { animation: cred-orbit-pulse 4s ease-in-out infinite; }
.cred-orbit .ring-pulse-2 { animation: cred-orbit-pulse 4s ease-in-out -1.4s infinite; }
.cred-orbit .ring-pulse-3 { animation: cred-orbit-pulse 4s ease-in-out -2.8s infinite; }
@keyframes cred-orbit-pulse {
  0%   { transform: scale(0.85); opacity: 0; }
  20%  { opacity: 0.5; }
  100% { transform: scale(1.18); opacity: 0; }
}
.cred-orbit .ring-dashed {
  stroke-dasharray: 4 8;
  opacity: 0.25;
  animation: cred-orbit-rotate 24s linear infinite;
  transform-origin: 50% 50%;
}
.cred-orbit .ring-dashed-rev {
  stroke-dasharray: 2 6;
  opacity: 0.2;
  animation: cred-orbit-rotate-rev 38s linear infinite;
  transform-origin: 50% 50%;
}
@keyframes cred-orbit-rotate     { to { transform: rotate(360deg); } }
@keyframes cred-orbit-rotate-rev { to { transform: rotate(-360deg); } }
.cred-orbit .orbit-arm     { transform-origin: 50% 50%; animation: cred-orbit-arm 9s linear infinite; }
.cred-orbit .orbit-arm-rev { transform-origin: 50% 50%; animation: cred-orbit-arm 14s linear infinite reverse; }
@keyframes cred-orbit-arm { to { transform: rotate(360deg); } }
.cred-orbit .orbit-dot {
  fill: var(--lime-on-light);
  filter: drop-shadow(0 0 6px var(--lime-on-light));
}
[data-theme="dark"] .cred-orbit .orbit-dot {
  fill: var(--lime);
  filter: drop-shadow(0 0 6px var(--lime));
}
.cred-orbit .orbit-dot-soft {
  fill: var(--lime-on-light);
  opacity: 0.5;
  animation: cred-orbit-blink 2.4s ease-in-out infinite;
}
[data-theme="dark"] .cred-orbit .orbit-dot-soft { fill: var(--lime); }
@keyframes cred-orbit-blink { 0%,100% { opacity: 0.2; } 50% { opacity: 0.85; } }
.cred-orbit .orbit-sweep   { transform-origin: 50% 50%; animation: cred-orbit-sweep 7s linear infinite; }
@keyframes cred-orbit-sweep { to { transform: rotate(360deg); } }

/* Hero credential card */
.cred-panel {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-3);
  padding: 0;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-2);
  z-index: 1;
}
.cred-panel::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--brand-navy-deep) 0%, var(--brand-navy-deep) 70%, var(--lime) 70%, var(--lime) 100%);
}
.cred-head {
  padding: 20px 22px 14px;
  border-bottom: 1px dashed var(--line-1);
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--fg-2);
  letter-spacing: 0.04em;
}
.cred-head .star { color: var(--lime-on-light); letter-spacing: 0.1em; }
[data-theme="dark"] .cred-head .star { color: var(--lime); }
.cred-hero {
  padding: 20px 22px 18px;
  text-align: left;
  border-bottom: 1px dashed var(--line-1);
  position: relative;
}
.cred-hero-v {
  font-family: var(--font-sans); font-size: 44px; font-weight: 800;
  letter-spacing: -0.04em; line-height: 1;
  color: var(--fg-1);
}
.cred-hero-v .unit { font-size: 18px; font-weight: 600; color: var(--fg-3); margin-left: 4px; }
.cred-hero-k {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-3); margin-top: 6px;
}
.cred-bars {
  display: flex; gap: 4px; margin-top: 14px; height: 28px; align-items: end;
}
.cred-bars span {
  flex: 1; background: var(--lime);
  border-radius: 2px 2px 0 0;
  transform-origin: bottom;
  animation: cred-bar-pulse 1.4s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(207,240,35,0.45);
}
.cred-bars span:nth-child(1) { height: 30%;  animation-delay: 0s;    }
.cred-bars span:nth-child(2) { height: 55%;  animation-delay: 0.12s; }
.cred-bars span:nth-child(3) { height: 40%;  animation-delay: 0.24s; }
.cred-bars span:nth-child(4) { height: 75%;  animation-delay: 0.36s; }
.cred-bars span:nth-child(5) { height: 60%;  animation-delay: 0.48s; }
.cred-bars span:nth-child(6) { height: 90%;  animation-delay: 0.60s; }
.cred-bars span:nth-child(7) { height: 100%; animation-delay: 0.72s; }
@keyframes cred-bar-pulse {
  0%,100% { transform: scaleY(0.35); opacity: 0.7; }
  50%     { transform: scaleY(1);    opacity: 1;   }
}

.cred-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
}
.cred-item {
  padding: 14px 22px;
  border-right: 1px dashed var(--line-1);
  border-bottom: 1px dashed var(--line-1);
}
.cred-item:nth-child(2n) { border-right: none; }
.cred-item:nth-last-child(-n+2) { border-bottom: none; }
.cred-item-k {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-3); margin-bottom: 4px;
}
.cred-item-v {
  font-family: var(--font-sans); font-size: 22px; font-weight: 800;
  color: var(--fg-1); letter-spacing: -0.02em; line-height: 1;
}
.cred-item-v .unit { font-size: 11px; font-weight: 600; color: var(--fg-3); margin-left: 2px; }
.cred-item-note { font-family: var(--font-mono); font-size: 10px; color: var(--fg-3); margin-top: 4px; }

.cred-foot {
  padding: 12px 22px;
  background: var(--bg-inset);
  border-top: 1px solid var(--line-1);
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.06em; color: var(--fg-3);
  display: flex; justify-content: space-between; align-items: center;
}
.cred-foot .status-dot-wrap {
  display: inline-block; width: 7px; height: 7px; border-radius: 999px;
  background: var(--lime); margin-right: 6px;
  box-shadow: 0 0 0 3px var(--lime-soft);
  animation: pulse 1.6s ease-in-out infinite;
}

/* =============================================================================
   STATS STRIP
============================================================================= */
.section-tight { padding: 32px 0; border-bottom: 1px solid var(--line-1); }
.stats-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line-2);
  border-radius: var(--r-3);
  background: var(--bg-2);
  overflow: hidden;
}
.stat-cell {
  padding: 22px 26px;
  border-right: 1px dashed var(--line-1);
  position: relative;
}
.stat-cell:last-child { border-right: none; }
.stat-cell-k {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-3); margin-bottom: 8px;
}
.stat-cell-v {
  font-family: var(--font-sans); font-size: 36px; font-weight: 800;
  color: var(--fg-1); letter-spacing: -0.03em; line-height: 1;
}
.stat-cell-v .unit { font-size: 18px; font-weight: 600; color: var(--lime-on-light); margin-left: 2px; }
[data-theme="dark"] .stat-cell-v .unit { color: var(--lime); }
.stat-cell-note { font-family: var(--font-mono); font-size: 10px; color: var(--fg-3); margin-top: 6px; }

/* =============================================================================
   SECTION HEAD
============================================================================= */
.section { padding: 80px 0; border-bottom: 1px solid var(--line-1); }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 48px;
}
.section-head-left { max-width: 720px; }
.section-eyebrow {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--lime-on-light); font-weight: 600; margin-bottom: 14px;
}
[data-theme="dark"] .section-eyebrow { color: var(--lime); }
.section-title {
  font-family: var(--font-sans);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
  color: var(--fg-1);
}
.section-title em {
  font-family: var(--font-serif); font-style: italic; font-weight: 600;
  color: var(--lime-on-light);
}
[data-theme="dark"] .section-title em { color: var(--lime); }
.section-title .lime { color: var(--lime-on-light); }
[data-theme="dark"] .section-title .lime { color: var(--lime); }
.section-sub {
  font-size: 16px; line-height: 1.55; color: var(--fg-2); margin: 0;
  max-width: 620px;
}
.section-aside {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-3); white-space: nowrap;
  padding-bottom: 8px;
}

/* =============================================================================
   ABOUT
============================================================================= */
.about-grid {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px;
  align-items: start;
}
.about-card {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-3);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-2);
}
.about-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--lime) 0%, var(--lime) 30%, var(--brand-navy-deep) 30%);
}
.about-card-img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-bottom: 1px dashed var(--line-1);
  background: var(--bg-inset);
  filter: grayscale(0.15) contrast(1.05);
}
.about-card-meta {
  padding: 16px 18px;
  font-family: var(--font-mono); font-size: 11px;
  display: grid; grid-template-columns: auto 1fr; gap: 6px 14px;
  color: var(--fg-2);
}
.about-card-meta b { color: var(--fg-3); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; font-size: 9px; }

.about-text h3 {
  font-family: var(--font-sans);
  font-size: clamp(20px, 2.4vw, 28px); font-weight: 700;
  letter-spacing: -0.02em; margin: 0 0 16px;
  color: var(--fg-1);
}
.about-text p {
  font-size: 15.5px; line-height: 1.65; color: var(--fg-2); margin: 0 0 14px;
}
.about-text strong { color: var(--fg-1); font-weight: 700; }

.about-keys {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  margin-top: 28px;
  border-top: 1px dashed var(--line-1);
  border-left: 1px dashed var(--line-1);
}
.about-key {
  padding: 14px 18px;
  border-right: 1px dashed var(--line-1);
  border-bottom: 1px dashed var(--line-1);
}
.about-key-k {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-3); margin-bottom: 4px;
}
.about-key-v {
  font-family: var(--font-sans); font-size: 14px; font-weight: 600;
  color: var(--fg-1);
}

/* =============================================================================
   SERVICES
============================================================================= */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--r-3);
  overflow: hidden;
  background: var(--bg-2);
}
.service-cell {
  padding: 28px 26px 26px;
  border-right: 1px dashed var(--line-1);
  border-bottom: 1px dashed var(--line-1);
  position: relative;
  transition: background 200ms;
}
.service-cell:nth-child(3n) { border-right: none; }
.service-cell:nth-last-child(-n+3) { border-bottom: none; }
.service-cell:hover { background: var(--bg-inset); }
[data-theme="dark"] .service-cell:hover { background: rgba(207,240,35,0.04); }

.service-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.service-pin-num {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--fg-3); letter-spacing: 0.08em;
}
.service-pin-icon {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: var(--r-2);
  color: var(--lime-on-light);
  background: var(--bg-0);
  transition: all 200ms;
}
[data-theme="dark"] .service-pin-icon { color: var(--lime); }
.service-pin-icon svg { width: 20px; height: 20px; }
.service-cell:hover .service-pin-icon {
  background: var(--brand-navy-deep); color: var(--lime);
  border-color: var(--brand-navy-deep);
  transform: rotate(-4deg);
}
[data-theme="dark"] .service-cell:hover .service-pin-icon {
  background: var(--lime); color: var(--brand-navy-deep);
  border-color: var(--lime);
}
.service-cell h3 {
  font-family: var(--font-sans);
  font-size: 18px; font-weight: 700; letter-spacing: -0.015em;
  margin: 0 0 8px; color: var(--fg-1);
}
.service-cell p {
  font-size: 14px; line-height: 1.55; color: var(--fg-2);
  margin: 0 0 14px;
}
.service-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.chip {
  font-family: var(--font-mono); font-size: 10px;
  padding: 3px 8px;
  border: 1px solid var(--line-1);
  border-radius: var(--r-full);
  color: var(--fg-2);
  background: var(--bg-0);
  letter-spacing: 0.02em;
}

/* =============================================================================
   PROJECTS  (filter + search + paginate)
============================================================================= */
.projects-controls {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  margin-bottom: 24px;
  align-items: center;
}
.search-wrap {
  position: relative;
  display: flex; align-items: center;
}
.search-input {
  width: 100%;
  font-family: var(--font-mono); font-size: 13px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-2);
  padding: 12px 14px 12px 40px;
  color: var(--fg-1);
  outline: none;
  transition: border-color 160ms, box-shadow 160ms;
}
.search-input::placeholder { color: var(--fg-3); }
.search-input:focus { border-color: var(--brand-navy-deep); box-shadow: 0 0 0 3px var(--accent-soft); }
[data-theme="dark"] .search-input:focus { border-color: var(--lime); box-shadow: 0 0 0 3px var(--lime-soft); }
.search-icon {
  position: absolute; left: 13px;
  width: 16px; height: 16px;
  color: var(--fg-3); pointer-events: none;
}
.search-meta {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--fg-3); letter-spacing: 0.06em;
  white-space: nowrap;
}
.search-meta strong { color: var(--fg-1); font-weight: 700; }

.filter-tabs {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 10px;
  padding: 8px;
  border: 1px solid var(--line-1);
  border-radius: var(--r-3);
  background: var(--bg-2);
}
.filter-tab {
  font-family: var(--font-mono); font-size: 11px;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: var(--r-2);
  color: var(--fg-2);
  background: transparent;
  cursor: pointer;
  transition: all 140ms;
  letter-spacing: 0.04em;
  display: inline-flex; align-items: center; gap: 6px;
}
.filter-tab .count {
  font-size: 9px; opacity: 0.6;
  background: var(--bg-inset);
  padding: 1px 6px; border-radius: var(--r-full);
}
.filter-tab:hover { color: var(--fg-1); background: var(--bg-inset); }
.filter-tab.active {
  background: var(--brand-navy-deep);
  color: var(--lime);
  border-color: var(--brand-navy-deep);
}
.filter-tab.active .count { background: rgba(255,255,255,0.12); color: var(--lime); }
[data-theme="dark"] .filter-tab.active {
  background: var(--lime);
  color: var(--brand-navy-deep);
  border-color: var(--lime);
}
[data-theme="dark"] .filter-tab.active .count { background: rgba(0,0,0,0.15); color: var(--brand-navy-deep); }

.filter-row-secondary {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 24px;
  font-family: var(--font-mono); font-size: 11px;
  align-items: center;
}
.filter-row-secondary .label { color: var(--fg-3); letter-spacing: 0.08em; text-transform: uppercase; margin-right: 4px; }
.tech-tab {
  font-family: var(--font-mono); font-size: 11px;
  padding: 5px 11px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-full);
  color: var(--fg-2); cursor: pointer;
  background: transparent;
  transition: all 140ms;
}
.tech-tab:hover { border-color: var(--fg-1); color: var(--fg-1); }
.tech-tab.active {
  background: var(--lime); color: var(--brand-navy-deep);
  border-color: var(--lime); font-weight: 700;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  min-height: 200px;
}
.project-card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-3);
  overflow: hidden;
  transition: transform 220ms cubic-bezier(.2,.8,.3,1), box-shadow 220ms;
  cursor: pointer;
  animation: cardIn 380ms cubic-bezier(.2,.7,.3,1) backwards;
}
.project-card:nth-child(1) { animation-delay: 0ms; }
.project-card:nth-child(2) { animation-delay: 40ms; }
.project-card:nth-child(3) { animation-delay: 80ms; }
.project-card:nth-child(4) { animation-delay: 120ms; }
.project-card:nth-child(5) { animation-delay: 160ms; }
.project-card:nth-child(6) { animation-delay: 200ms; }
.project-card:nth-child(7) { animation-delay: 240ms; }
.project-card:nth-child(8) { animation-delay: 280ms; }
.project-card:nth-child(9) { animation-delay: 320ms; }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(12,29,53,0.18), 0 0 0 1px var(--line-strong);
}
[data-theme="dark"] .project-card:hover {
  box-shadow: 0 0 28px rgba(207,240,35,0.18), 0 0 0 1px var(--lime);
}
.project-media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--bg-inset);
  border-bottom: 1px dashed var(--line-1);
}
@keyframes scrollShot {
  0%, 5%   { object-position: 50% 0%; }
  45%, 55% { object-position: 50% 100%; }
  95%, 100% { object-position: 50% 0%; }
}
.project-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%;
}
.project-card:hover .project-media img {
  animation: scrollShot 6s ease-in-out infinite;
}
.project-media.img-missing {
  background: linear-gradient(135deg, var(--bg-inset) 0%, var(--bg-card, #0e1628) 100%);
}
.project-media.img-missing::after {
  content: 'Screenshot uploading soon';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.2);
  font-family: var(--font-mono, monospace);
}
.project-tech-badge {
  position: absolute; top: 10px; left: 10px;
  font-family: var(--font-mono); font-size: 9px;
  padding: 3px 8px;
  background: rgba(255,255,255,0.92);
  color: var(--brand-navy-deep);
  border-radius: var(--r-full);
  letter-spacing: 0.06em; font-weight: 600;
  backdrop-filter: blur(4px);
}

.project-meta {
  padding: 14px 16px;
}
.project-meta-row {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--fg-3); letter-spacing: 0.06em; text-transform: uppercase;
  display: flex; justify-content: space-between; gap: 8px;
  margin-bottom: 8px;
}
.project-meta h3 {
  font-family: var(--font-sans); font-size: 16px; font-weight: 700;
  margin: 0 0 4px; letter-spacing: -0.012em;
  color: var(--fg-1);
}
.project-meta p {
  font-size: 12.5px; line-height: 1.45; color: var(--fg-2);
  margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.project-actions {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  opacity: 0; transition: opacity 220ms;
  background: linear-gradient(180deg, rgba(12,29,53,0.0) 0%, rgba(12,29,53,0.55) 60%, rgba(12,29,53,0.85) 100%);
  pointer-events: none;
}
.project-card:hover .project-actions { opacity: 1; pointer-events: auto; }
.project-actions a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: var(--r-full);
  background: var(--lime); color: var(--brand-navy-deep);
  font-size: 16px;
  transition: transform 200ms;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}
.project-actions a svg { width: 16px; height: 16px; }
.project-actions a:hover { transform: translateY(-3px) scale(1.06); }

/* pagination */
.pagination {
  margin-top: 36px;
  display: flex; align-items: center; justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}
.page-btn {
  font-family: var(--font-mono); font-size: 12px;
  min-width: 36px; height: 36px;
  padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-2);
  border-radius: var(--r-2);
  background: var(--bg-2);
  color: var(--fg-2);
  cursor: pointer;
  transition: all 140ms;
}
.page-btn:hover:not(:disabled) { border-color: var(--fg-1); color: var(--fg-1); }
.page-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.page-btn.active {
  background: var(--brand-navy-deep);
  color: var(--lime);
  border-color: var(--brand-navy-deep);
  font-weight: 700;
}
[data-theme="dark"] .page-btn.active {
  background: var(--lime); color: var(--brand-navy-deep); border-color: var(--lime);
}
.pagination-meta {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--fg-3); letter-spacing: 0.06em;
  margin-top: 12px; text-align: center; width: 100%;
}

.no-results {
  padding: 60px 30px; text-align: center;
  font-family: var(--font-mono); color: var(--fg-3);
  border: 1px dashed var(--line-2); border-radius: var(--r-3);
  background: var(--bg-2);
  grid-column: 1 / -1;
}
.no-results h4 { font-family: var(--font-sans); font-size: 18px; color: var(--fg-1); margin: 0 0 6px; }

/* =============================================================================
   SKILLS
============================================================================= */
.skills-wrap {
  border: 1px solid var(--line-2);
  border-radius: var(--r-3);
  overflow: hidden;
  background: var(--bg-2);
}
.skills-wrap-head {
  display: grid; grid-template-columns: 200px 1fr;
  padding: 12px 22px;
  background: var(--bg-inset);
  border-bottom: 1px solid var(--line-1);
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-3);
}
.skills-row {
  display: grid; grid-template-columns: 200px 1fr;
  padding: 14px 22px;
  border-bottom: 1px dashed var(--line-1);
  align-items: center;
}
.skills-row:last-child { border-bottom: none; }
.skills-row-label {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--fg-1); font-weight: 600;
  display: flex; align-items: center; gap: 10px;
}
.skills-row-label .dot {
  width: 7px; height: 7px; border-radius: 999px;
  background: var(--lime);
  box-shadow: 0 0 0 3px var(--lime-soft);
}
.skills-items { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  font-family: var(--font-mono); font-size: 11px;
  padding: 5px 11px;
  background: var(--bg-0);
  border: 1px solid var(--line-1);
  border-radius: var(--r-full);
  color: var(--fg-2);
  letter-spacing: 0.02em;
  transition: all 140ms;
}
.pill:hover { border-color: var(--lime-on-light); color: var(--fg-1); transform: translateY(-1px); }
[data-theme="dark"] .pill:hover { border-color: var(--lime); color: var(--lime); }

/* =============================================================================
   EDUCATION + EXPERIENCE
============================================================================= */
.timeline {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
}
.timeline-col h3 {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-3); font-weight: 500;
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line-1);
  display: flex; align-items: center; gap: 8px;
}
.timeline-col h3::before {
  content: ""; width: 8px; height: 8px; background: var(--lime); border-radius: 1px;
}
.timeline-item {
  position: relative;
  padding: 18px 18px 18px 22px;
  background: var(--bg-2);
  border: 1px solid var(--line-1);
  border-left: 3px solid var(--brand-navy-deep);
  border-radius: var(--r-2);
  margin-bottom: 12px;
  transition: all 200ms;
}
.timeline-item:hover {
  border-left-color: var(--lime-on-light);
  transform: translateX(3px);
}
[data-theme="dark"] .timeline-item { border-left-color: var(--lime); }
.timeline-item-when {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--lime-on-light); letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 600; margin-bottom: 6px;
}
[data-theme="dark"] .timeline-item-when { color: var(--lime); }
.timeline-item h4 {
  font-family: var(--font-sans); font-size: 15px; font-weight: 700;
  letter-spacing: -0.01em; margin: 0 0 4px; color: var(--fg-1);
}
.timeline-item-where {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--fg-3); margin-bottom: 6px;
}
.timeline-item p {
  font-size: 13px; line-height: 1.5; color: var(--fg-2); margin: 0;
}

/* =============================================================================
   TESTIMONIALS
============================================================================= */
.review-featured {
  position: relative;
  padding: 32px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-3);
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
.review-featured::before {
  content: """;
  position: absolute; top: 14px; right: 22px;
  font-family: var(--font-serif);
  font-size: 120px; line-height: 1; color: var(--lime);
  opacity: 0.3; pointer-events: none;
}
.review-stars { color: var(--lime-on-light); letter-spacing: 0.1em; font-size: 14px; margin-bottom: 12px; }
[data-theme="dark"] .review-stars { color: var(--lime); }
.review-quote-big {
  font-family: var(--font-serif); font-style: italic; font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.4; font-weight: 500;
  color: var(--fg-1);
  margin: 0 0 22px;
  position: relative;
  z-index: 1;
}
.review-by-big { display: flex; align-items: center; gap: 14px; }
.review-avatar-big {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--brand-navy-deep);
  color: var(--lime);
  font-family: var(--font-mono); font-size: 14px; font-weight: 700;
  border-radius: var(--r-full);
}
[data-theme="dark"] .review-avatar-big { background: var(--lime); color: var(--brand-navy-deep); }
.review-name-big {
  font-family: var(--font-sans); font-weight: 700; font-size: 15px;
  color: var(--fg-1);
}
.review-role-big {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--fg-3); letter-spacing: 0.06em;
}
.review-meta-big { display: flex; gap: 24px; margin-left: auto; }
.review-meta-big .key {
  font-family: var(--font-mono); font-size: 9px;
  color: var(--fg-3); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 2px;
}
.review-meta-big .val {
  font-family: var(--font-mono); font-size: 12px; color: var(--fg-1); font-weight: 600;
}

.review-side {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px;
}
.review-card {
  padding: 18px;
  background: var(--bg-2);
  border: 1px solid var(--line-1);
  border-radius: var(--r-3);
  transition: all 220ms;
  cursor: pointer;
}
.review-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}
.review-card.active { border-color: var(--lime-on-light); background: var(--lime-soft); }
[data-theme="dark"] .review-card.active { border-color: var(--lime); }
.review-card-stars { color: var(--lime-on-light); font-size: 11px; letter-spacing: 0.1em; margin-bottom: 8px; }
[data-theme="dark"] .review-card-stars { color: var(--lime); }
.review-card p {
  font-size: 13px; line-height: 1.5; color: var(--fg-2); margin: 0 0 10px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.review-card-by { display: flex; align-items: center; gap: 8px; }
.review-card-avatar {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  background: var(--brand-navy-deep); color: var(--lime);
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  border-radius: var(--r-full);
}
[data-theme="dark"] .review-card-avatar { background: var(--lime); color: var(--brand-navy-deep); }
.review-card-name { font-family: var(--font-sans); font-weight: 600; font-size: 12px; color: var(--fg-1); }
.review-card-role { font-family: var(--font-mono); font-size: 9px; color: var(--fg-3); letter-spacing: 0.06em; }

/* =============================================================================
   CONTACT
============================================================================= */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px;
}
.contact-left h3 {
  font-family: var(--font-sans);
  font-size: 22px; font-weight: 700;
  letter-spacing: -0.02em; margin: 6px 0 10px;
  color: var(--fg-1);
}
.contact-left > p {
  font-size: 14px; color: var(--fg-2); margin: 0 0 22px; line-height: 1.55;
}

.contact-channels { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.contact-channel {
  display: grid;
  grid-template-columns: 36px 80px 1fr auto;
  align-items: center; gap: 12px;
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--line-1);
  border-radius: var(--r-2);
  transition: all 180ms;
}
.contact-channel:hover {
  border-color: var(--line-strong);
  background: var(--bg-inset);
  transform: translateX(2px);
}
[data-theme="dark"] .contact-channel:hover {
  border-color: var(--lime);
  background: rgba(207,240,35,0.04);
}
.contact-channel-ico {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--bg-0);
  border: 1px solid var(--line-1);
  border-radius: var(--r-2);
  color: var(--fg-1);
}
.contact-channel-ico svg { width: 18px; height: 18px; fill: currentColor; }
.contact-channel-k {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-3); font-weight: 500;
}
.contact-channel-v {
  font-family: var(--font-mono); font-size: 13px;
  color: var(--fg-1); font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.contact-channel-arrow {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--lime-on-light); letter-spacing: 0.06em; font-weight: 600;
}
[data-theme="dark"] .contact-channel-arrow { color: var(--lime); }

.contact-clock {
  margin-top: 22px;
  display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center;
  padding: 14px 16px;
  background: var(--bg-2);
  border: 1px solid var(--line-1);
  border-radius: var(--r-2);
}
.contact-clock-face {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bg-0);
  border: 1px solid var(--line-2);
  position: relative;
}
.contact-clock-face::before, .contact-clock-face::after {
  content: ""; position: absolute; left: 50%; top: 50%; transform-origin: center;
  background: var(--fg-1); border-radius: 999px;
}
.contact-clock-face::before {
  width: 1.5px; height: 16px;
  transform: translate(-50%, -100%) rotate(0deg);
}
.contact-clock-face::after {
  width: 1.5px; height: 22px;
  transform: translate(-50%, -100%) rotate(0deg);
}
.contact-clock-dot {
  position: absolute; left: 50%; top: 50%;
  width: 5px; height: 5px; background: var(--lime); border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  box-shadow: 0 0 0 2px var(--bg-0);
}
.contact-clock-time {
  font-family: var(--font-mono); font-size: 18px; font-weight: 700;
  color: var(--fg-1); letter-spacing: 0.04em;
}
.contact-clock-loc {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--fg-3); letter-spacing: 0.08em;
}
.contact-clock-eta {
  font-family: var(--font-mono); font-size: 10px;
  text-align: right; color: var(--fg-3); letter-spacing: 0.06em;
}
.contact-clock-eta strong {
  display: block; font-size: 12px; color: var(--fg-1); font-weight: 700; margin-top: 2px;
}

.contact-right {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-3);
  padding: 24px;
  box-shadow: var(--shadow-2);
}

/* =============================================================================
   BOOKING BLOCK + CUSTOM CALENDAR WIDGET
============================================================================= */
.booking-block { margin-top: 48px; }

.booking-sep {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 32px;
}
.booking-sep-line { flex: 1; height: 1px; background: var(--line-1); }
.booking-sep-label {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg-3); white-space: nowrap;
}
.booking-sep-label svg { width: 13px; height: 13px; fill: currentColor; flex-shrink: 0; }

/* Widget shell */
.cal-widget {
  background: var(--bg-2);
  border: 1px solid var(--line-1);
  border-radius: var(--r-3);
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(12,29,53,0.08);
}
[data-theme="dark"] .cal-widget { box-shadow: 0 6px 40px rgba(0,0,0,0.4); }

/* Widget header */
.cal-wgt-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 22px 28px 18px;
  background: var(--bg-1);
  border-bottom: 1px solid var(--line-1);
}
.cal-wgt-eyebrow {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-3); margin-bottom: 6px;
}
.cal-wgt-title {
  font-family: var(--font-sans); font-size: 20px; font-weight: 700;
  color: var(--fg-1); letter-spacing: -0.02em; margin: 0;
}
.cal-wgt-badge {
  font-family: var(--font-mono); font-size: 9px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-2); border: 1px solid var(--line-2);
  border-radius: var(--r-full); padding: 5px 12px;
  white-space: nowrap; flex-shrink: 0;
}

/* Widget body: two-panel grid */
.cal-wgt-body {
  display: grid; grid-template-columns: 1.15fr 1px 1fr;
}
.cal-date-panel { padding: 24px 28px; }
.cal-panel-divider { background: var(--line-1); }
.cal-slots-panel { padding: 24px 28px; }

/* Panel labels */
.cal-panel-lbl {
  font-family: var(--font-mono); font-size: 9px; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--fg-3); margin-bottom: 18px;
}

/* Month navigation */
.cal-month-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.cal-month-txt {
  font-family: var(--font-sans); font-size: 16px; font-weight: 700;
  color: var(--fg-1); letter-spacing: -0.01em;
}
.cal-nav-btns { display: flex; gap: 4px; }
.cal-nav-btn {
  width: 30px; height: 30px;
  border: 1px solid var(--line-2); border-radius: var(--r-2);
  background: var(--bg-2); color: var(--fg-2);
  cursor: pointer; display: grid; place-items: center;
  transition: all 140ms;
}
.cal-nav-btn:hover:not(:disabled) {
  border-color: var(--fg-1); color: var(--fg-1); background: var(--bg-1);
}
[data-theme="dark"] .cal-nav-btn:hover:not(:disabled) { border-color: var(--lime); color: var(--lime); }
.cal-nav-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* Day headers */
.cal-grid-hdr {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 2px; margin-bottom: 4px;
}
.cal-grid-hdr span {
  font-family: var(--font-mono); font-size: 9px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg-4); text-align: center; padding: 4px 0;
}
.cal-wknd { opacity: 0.55; }

/* Day cells */
.cal-grid-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-day-cell {
  aspect-ratio: 1; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  color: var(--fg-1);
  background: transparent; border: 1px solid var(--line-1);
  border-radius: var(--r-2); cursor: pointer;
  transition: all 130ms;
}
button.cal-day-cell:hover:not(:disabled) {
  border-color: var(--line-strong); background: var(--bg-1);
}
[data-theme="dark"] button.cal-day-cell:hover:not(:disabled) {
  border-color: var(--lime); color: var(--lime);
}
.cal-day-cell.cal-blank { border: none; background: transparent; cursor: default; }
.cal-day-cell.cal-day-off { color: var(--fg-4); border-color: transparent; cursor: not-allowed; opacity: 0.45; }
.cal-day-cell.cal-day-today {
  border-color: var(--accent); color: var(--accent); font-weight: 700;
}
[data-theme="dark"] .cal-day-cell.cal-day-today { border-color: var(--lime); color: var(--lime); }
.cal-day-cell.cal-day-sel {
  background: var(--brand-navy-deep); color: var(--lime);
  border-color: var(--brand-navy-deep); font-weight: 700;
}
[data-theme="dark"] .cal-day-cell.cal-day-sel {
  background: var(--lime); color: var(--brand-navy-deep); border-color: var(--lime);
}

/* Timezone note */
.cal-tz-note {
  font-family: var(--font-mono); font-size: 10px; color: var(--fg-3);
  margin: 14px 0 0; line-height: 1.5;
}
.cal-tz-note strong { color: var(--accent); font-weight: 600; }
[data-theme="dark"] .cal-tz-note strong { color: var(--lime); }

/* Slots */
.cal-slots-ph {
  font-family: var(--font-mono); font-size: 12px; color: var(--fg-3);
  text-align: center; padding: 40px 16px;
  border: 1px dashed var(--line-2); border-radius: var(--r-3);
  line-height: 1.6;
}
.cal-slots-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  max-height: 310px; overflow-y: auto;
}
.cal-slot-btn {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  padding: 9px 10px; text-align: center;
  border: 1px solid var(--line-2); border-radius: var(--r-2);
  background: var(--bg-2); color: var(--fg-1);
  cursor: pointer; transition: all 130ms;
}
.cal-slot-btn:hover {
  border-color: var(--accent); color: var(--accent); background: var(--accent-soft);
}
[data-theme="dark"] .cal-slot-btn:hover {
  border-color: var(--lime); color: var(--lime); background: var(--lime-soft);
}
.cal-slot-btn.cal-slot-sel {
  background: var(--brand-navy-deep); color: var(--lime);
  border-color: var(--brand-navy-deep); font-weight: 700;
}
[data-theme="dark"] .cal-slot-btn.cal-slot-sel {
  background: var(--lime); color: var(--brand-navy-deep); border-color: var(--lime);
}

/* Widget footer */
.cal-wgt-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 28px;
  background: var(--bg-1); border-top: 1px solid var(--line-1);
}
.cal-foot-hint {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--fg-3); font-style: italic;
}
.cal-book-btn {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  padding: 10px 20px; letter-spacing: 0.06em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: var(--r-2); border: 1px solid transparent;
  background: var(--fg-4); color: var(--bg-2);
  opacity: 0.4; pointer-events: none;
  transition: all 200ms;
}
.cal-book-btn.cal-book-ready {
  opacity: 1; pointer-events: auto;
  background: var(--brand-navy-deep); color: var(--lime);
  border-color: var(--brand-navy-deep);
  box-shadow: 0 2px 14px rgba(12,29,53,0.28);
}
.cal-book-btn.cal-book-ready:hover {
  transform: translateY(-1px); box-shadow: 0 6px 22px rgba(12,29,53,0.38);
}
[data-theme="dark"] .cal-book-btn.cal-book-ready {
  background: var(--lime); color: var(--brand-navy-deep); border-color: var(--lime);
  box-shadow: 0 0 20px var(--lime-soft);
}
[data-theme="dark"] .cal-book-btn.cal-book-ready:hover { box-shadow: 0 0 32px var(--lime-soft); }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lbl {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-3);
}
.input {
  width: 100%;
  font-family: var(--font-mono); font-size: 13px;
  padding: 11px 12px;
  background: var(--bg-0);
  border: 1px solid var(--line-1);
  border-radius: var(--r-2);
  color: var(--fg-1);
  outline: none;
  transition: border-color 160ms, box-shadow 160ms;
  resize: vertical;
}
textarea.input { min-height: 110px; font-family: var(--font-sans); font-size: 14px; line-height: 1.5; }
.input::placeholder { color: var(--fg-3); font-family: var(--font-mono); font-size: 12px; }
.input:focus { border-color: var(--brand-navy-deep); box-shadow: 0 0 0 3px var(--accent-soft); }
[data-theme="dark"] .input:focus { border-color: var(--lime); box-shadow: 0 0 0 3px var(--lime-soft); }

/* Budget range chips */
.budget-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.budget-chip { display: inline-flex; cursor: pointer; }
.budget-chip input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.budget-chip span {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  padding: 8px 14px;
  border: 1px solid var(--line-2); border-radius: var(--r-2);
  background: var(--bg-2); color: var(--fg-2);
  cursor: pointer; transition: all 130ms; white-space: nowrap; user-select: none;
}
.budget-chip:hover span { border-color: var(--line-strong); color: var(--fg-1); background: var(--bg-1); }
[data-theme="dark"] .budget-chip:hover span { border-color: var(--lime); color: var(--lime); }
.budget-chip input:checked + span {
  background: var(--brand-navy-deep); color: var(--lime);
  border-color: var(--brand-navy-deep); font-weight: 700;
}
[data-theme="dark"] .budget-chip input:checked + span {
  background: var(--lime); color: var(--brand-navy-deep); border-color: var(--lime);
}

.submit-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--line-1);
}
.submit-status {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--fg-3); letter-spacing: 0.06em;
}

/* --- input error highlight --- */
.input-err {
  border-color: #e53e3e !important;
  box-shadow: 0 0 0 3px rgba(229,62,62,0.15) !important;
}

/* --- submit button states --- */
.btn-sending {
  opacity: 0.75; cursor: not-allowed;
}
.btn-ok {
  background: var(--lime-on-light) !important;
  border-color: var(--lime-on-light) !important;
  color: #fff !important;
}
[data-theme="dark"] .btn-ok {
  background: var(--lime) !important;
  border-color: var(--lime) !important;
  color: var(--brand-navy-deep) !important;
}

/* --- inline result message --- */
.cf-result {
  font-family: var(--font-mono); font-size: 12px;
  line-height: 1.5; margin-top: 10px;
  display: flex; align-items: center; gap: 7px;
  min-height: 0; overflow: hidden;
  transition: min-height 200ms;
}
.cf-result:empty { display: none; }
.cf-result--sending { color: var(--fg-3); }
.cf-result--ok {
  color: var(--lime-on-light);
  background: rgba(120,140,14,0.08);
  border-radius: var(--r-2);
  padding: 8px 12px;
}
[data-theme="dark"] .cf-result--ok {
  color: var(--lime);
  background: var(--lime-soft);
}
.cf-result--warn {
  color: #92600a;
  background: rgba(214,158,46,0.12);
  border-radius: var(--r-2);
  padding: 8px 12px;
  line-height: 1.6;
}
[data-theme="dark"] .cf-result--warn { color: #f6c90e; background: rgba(246,201,14,0.10); }
.cf-result--err {
  color: #c53030;
  background: rgba(229,62,62,0.08);
  border-radius: var(--r-2);
  padding: 8px 12px;
}
.cf-result--err a { color: inherit; font-weight: 600; }

/* =============================================================================
   FOOTER
============================================================================= */
.footer {
  border-top: 1px solid var(--line-1);
  padding: 32px 0;
  background: var(--bg-1);
}
.footer-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.footer-brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--fg-2);
}
.footer-brand .logo {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--brand-navy-deep);
  color: var(--lime);
  border-radius: var(--r-2);
  font-family: var(--font-mono); font-size: 14px; font-weight: 700;
}
[data-theme="dark"] .footer-brand .logo { background: var(--lime); color: var(--brand-navy-deep); }
.footer-brand-text small {
  display: block; font-size: 9px; color: var(--fg-3); letter-spacing: 0.14em;
  text-transform: uppercase; margin-top: 2px;
}
.footer-brand-text { line-height: 1.2; font-weight: 700; color: var(--fg-1); font-size: 13px; }
.footer-mid {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--fg-3); letter-spacing: 0.06em;
}
.footer-socials { display: flex; gap: 8px; }
.footer-social {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--line-1);
  border-radius: var(--r-full);
  color: var(--fg-2);
  transition: all 160ms;
}
.footer-social svg { width: 16px; height: 16px; fill: currentColor; }
.footer-social:hover {
  border-color: var(--lime-on-light); color: var(--lime-on-light);
  transform: translateY(-2px);
}
[data-theme="dark"] .footer-social:hover { border-color: var(--lime); color: var(--lime); }

/* =============================================================================
   SCROLL REVEAL
============================================================================= */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 700ms cubic-bezier(.2,.7,.3,1), transform 700ms cubic-bezier(.2,.7,.3,1); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(14px); transition: opacity 600ms cubic-bezier(.2,.7,.3,1), transform 600ms cubic-bezier(.2,.7,.3,1); }
.reveal-stagger.visible > * { opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 50ms; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 100ms; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 150ms; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 200ms; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 250ms; }

/* =============================================================================
   MARQUEE STRIP (subtle ticker between sections)
============================================================================= */
.marquee {
  border-top: 1px solid var(--line-1);
  border-bottom: 1px solid var(--line-1);
  background: var(--brand-navy-deep);
  color: var(--lime);
  overflow: hidden;
  padding: 14px 0;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.marquee-track {
  display: flex; gap: 36px; white-space: nowrap;
  animation: marquee 38s linear infinite;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 10px; }
.marquee-track i { color: var(--brand-lime-bright); font-style: normal; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =============================================================================
   BACK TO TOP
============================================================================= */
.back-to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 80;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: var(--brand-navy-deep);
  color: var(--lime);
  border-radius: var(--r-full);
  box-shadow: 0 8px 24px rgba(12,29,53,0.30);
  cursor: pointer;
  border: none;
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: all 220ms;
}
.back-to-top.visible { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-2px); }
[data-theme="dark"] .back-to-top { background: var(--lime); color: var(--brand-navy-deep); }
.back-to-top svg { width: 18px; height: 18px; }

/* =============================================================================
   PROJECT DETAILS PAGE
============================================================================= */
.detail-banner {
  padding: 40px 0 28px;
  border-bottom: 1px solid var(--line-1);
  position: relative;
  background: var(--bg-1);
}
.detail-banner-inner {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--fg-2);
}
.detail-banner-inner a { color: var(--lime-on-light); font-weight: 600; }
[data-theme="dark"] .detail-banner-inner a { color: var(--lime); }
.detail-banner h1 {
  font-family: var(--font-sans);
  font-size: clamp(28px, 4vw, 40px); font-weight: 800;
  letter-spacing: -0.025em; line-height: 1.05;
  margin: 16px 0 8px; color: var(--fg-1);
}
.detail-banner-sub {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--fg-3); letter-spacing: 0.06em;
}

.project-detail {
  padding: 60px 0;
  border-bottom: 1px dashed var(--line-2);
  scroll-margin-top: 90px;
}
.project-detail:last-of-type { border-bottom: none; }
.project-detail-grid {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 36px;
  align-items: start;
}
.project-detail-eyebrow {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--lime-on-light); font-weight: 600; margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
[data-theme="dark"] .project-detail-eyebrow { color: var(--lime); }
.project-detail-eyebrow .num {
  font-family: var(--font-mono); font-size: 10px;
  background: var(--brand-navy-deep); color: var(--lime);
  padding: 2px 8px; border-radius: var(--r-2);
}
[data-theme="dark"] .project-detail-eyebrow .num { background: var(--lime); color: var(--brand-navy-deep); }

.project-detail h2 {
  font-family: var(--font-sans);
  font-size: clamp(22px, 2.6vw, 30px); font-weight: 700;
  line-height: 1.15; letter-spacing: -0.02em;
  margin: 0 0 18px; color: var(--fg-1);
}
.project-detail p { font-size: 15px; line-height: 1.65; color: var(--fg-2); margin: 0 0 16px; }
.project-detail .project-info-card {
  background: var(--bg-2); border: 1px solid var(--line-2);
  border-radius: var(--r-3); padding: 20px 22px;
  margin-top: 18px; position: relative; box-shadow: var(--shadow-1);
}
.project-info-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--lime) 0%, var(--lime) 30%, var(--brand-navy-deep) 30%);
}
.project-info-card h4 {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-3); margin: 6px 0 12px; font-weight: 500;
}
.project-info-list { display: grid; grid-template-columns: 100px 1fr; gap: 8px 14px; font-family: var(--font-mono); font-size: 12px; }
.project-info-list dt { color: var(--fg-3); letter-spacing: 0.06em; }
.project-info-list dd { color: var(--fg-1); margin: 0; word-break: break-word; }
.project-info-list dd a { color: var(--lime-on-light); font-weight: 600; }
[data-theme="dark"] .project-info-list dd a { color: var(--lime); }

.project-detail-cta {
  margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap;
}

.project-gallery {
  display: grid; gap: 10px;
}
.project-gallery img {
  width: 100%; border-radius: var(--r-3);
  border: 1px solid var(--line-1);
  background: var(--bg-inset);
  transition: transform 400ms cubic-bezier(.2,.7,.3,1);
}
.project-gallery img:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.project-gallery-single img {
  width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: top;
}

/* =============================================================================
   RESPONSIVE
============================================================================= */
@media (max-width: 980px) {
  .container { padding: 0 24px; }
  .nav { padding: 12px 24px; }
  .nav-links { display: none; }
  .mobile-toggle { display: inline-flex; }
  /* Hide subtitle and theme label text — keep dot only for toggle */
  .nav-brand-meta { display: none; }
  #themeLabel { display: none; }
  .theme-toggle { padding: 7px 9px; gap: 0; }
  .nav-actions .btn-hire { display: none; }
  .mobile-nav { display: flex; }
  .mobile-cta-bar { display: flex; }

  .hero { padding: 60px 0 70px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }

  .stats-strip { grid-template-columns: 1fr 1fr; }
  .stat-cell:nth-child(2n) { border-right: none; }
  .stat-cell:nth-child(-n+2) { border-bottom: 1px dashed var(--line-1); }

  .section { padding: 60px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }

  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service-cell:nth-child(3n) { border-right: 1px dashed var(--line-1); }
  .service-cell:nth-child(2n) { border-right: none; }

  .projects-grid { grid-template-columns: 1fr 1fr; }

  .skills-wrap-head, .skills-row { grid-template-columns: 1fr; }
  .skills-row-label { margin-bottom: 8px; }

  .timeline { grid-template-columns: 1fr; }

  .review-side { grid-template-columns: 1fr; }
  .review-meta-big { display: none; }

  .contact-grid { grid-template-columns: 1fr; }
  .cal-wgt-head { flex-direction: column; gap: 10px; }
  .cal-wgt-body { grid-template-columns: 1fr; }
  .cal-panel-divider { width: auto; height: 1px; }
  .cal-date-panel, .cal-slots-panel { padding: 20px 20px; }
  .cal-wgt-foot { padding: 14px 20px; }

  .project-detail-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-inner { flex-direction: column; text-align: center; }

  .projects-controls { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .container { padding: 0 18px; }
  .hero { padding: 48px 0 56px; }
  .stats-strip { grid-template-columns: 1fr; }
  .stat-cell { border-right: none !important; border-bottom: 1px dashed var(--line-1); }
  .stat-cell:last-child { border-bottom: none; }
  .services-grid { grid-template-columns: 1fr; }
  .service-cell { border-right: none !important; }
  .projects-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .submit-bar { flex-direction: column; gap: 12px; align-items: stretch; }
  .submit-bar .btn { justify-content: center; }
  .cal-wgt-head { padding: 16px 16px 14px; }
  .cal-date-panel, .cal-slots-panel { padding: 16px 16px; }
  .cal-wgt-foot { flex-direction: column; gap: 12px; align-items: stretch; padding: 14px 16px; }
  .cal-book-btn { justify-content: center; }
  .cal-wgt-title { font-size: 17px; }
}

/* =============================================================================
   HERO ANIMATED RIBBON (khayal-style)
============================================================================= */
.hero { position: relative; }
.hero-ribbon {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  opacity: 0.85;
}
.hero-ribbon svg {
  width: 100%; height: 100%;
  display: block;
}
.hero-ribbon .rib {
  stroke-dasharray: 24 14;
  filter: drop-shadow(0 0 8px rgba(207,240,35,0.18));
  animation: ribDash 12s linear infinite, ribFloat 8s ease-in-out infinite;
  transform-origin: center;
}
.hero-ribbon .rib-1 { animation-duration: 14s, 9s; }
.hero-ribbon .rib-2 { animation-duration: 18s, 11s; animation-delay: -3s, -2s; }
.hero-ribbon .rib-3 { animation-duration: 22s, 13s; animation-delay: -6s, -4s; opacity: 0.7; }
@keyframes ribDash { to { stroke-dashoffset: -240; } }
@keyframes ribFloat {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-10px); }
}
[data-theme="dark"] .hero-ribbon { opacity: 1; }
[data-theme="dark"] .hero-ribbon .rib { filter: drop-shadow(0 0 12px rgba(207,240,35,0.34)); }
.hero .container { position: relative; z-index: 1; }

/* =============================================================================
   TESTIMONIALS — UPWORK / FIVERR CARD STYLE
============================================================================= */
.review-platform-badge {
  position: absolute;
  top: 18px;
  left: 28px;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: var(--r-full);
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  color: var(--fg-1);
  z-index: 2;
}
.review-platform-badge[data-platform="upwork"] {
  background: #14a800;
  color: #fff;
  border-color: #14a800;
}
.review-platform-badge[data-platform="fiverr"] {
  background: #1dbf73;
  color: #fff;
  border-color: #1dbf73;
}
.review-platform-badge .rpb-dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
.review-featured { padding-top: 56px !important; }

/* filter chips */
.review-filter-row {
  display: flex; align-items: center; gap: 8px;
  margin: 24px 0 14px;
  flex-wrap: wrap;
}
.review-filter-row .label {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-3); margin-right: 6px;
}
.review-tab {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.04em;
  padding: 7px 12px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  color: var(--fg-2);
  border-radius: var(--r-full);
  cursor: pointer;
  transition: all 160ms;
  display: inline-flex; align-items: center; gap: 6px;
}
.review-tab:hover { border-color: var(--line-strong); color: var(--fg-1); }
.review-tab.active {
  background: var(--brand-navy-deep);
  color: var(--lime);
  border-color: var(--brand-navy-deep);
}
[data-theme="dark"] .review-tab.active {
  background: var(--lime); color: var(--brand-navy-deep); border-color: var(--lime);
}
.review-tab .count {
  font-size: 10px;
  background: rgba(255,255,255,0.18);
  border-radius: var(--r-full);
  padding: 1px 6px;
  min-width: 18px; text-align: center;
  font-weight: 700;
}
.review-tab:not(.active) .count {
  background: var(--bg-1);
  color: var(--fg-3);
}

/* card grid */
.review-side { gap: 14px; }

/* upwork-style card */
.review-card-uw {
  position: relative;
  display: flex; flex-direction: column;
  padding: 16px 16px 14px;
  border: 1px solid var(--line-1);
  border-radius: var(--r-3);
  background: var(--bg-2);
  transition: all 220ms;
}
.review-card-uw::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand-navy-deep) 0%, var(--brand-navy-deep) 65%, var(--lime) 65%, var(--lime) 100%);
  border-top-left-radius: var(--r-3);
  border-top-right-radius: var(--r-3);
}
.review-card-uw:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-3);
}
.review-card-uw.active {
  border-color: var(--lime-on-light);
  background: var(--lime-soft);
}
[data-theme="dark"] .review-card-uw.active { border-color: var(--lime); }
.rc-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 6px;
  margin-bottom: 8px;
}
.rc-platform {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--r-full);
  color: #fff;
}
.rc-platform[data-platform="upwork"] { background: #14a800; }
.rc-platform[data-platform="fiverr"] { background: #1dbf73; }
.rc-platform .rpb-dot {
  width: 5px; height: 5px; border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 6px rgba(255,255,255,0.65);
}
.rc-rating {
  font-family: var(--font-mono); font-size: 11px;
  font-weight: 700; color: var(--fg-1);
  letter-spacing: 0.04em;
}
.rc-project {
  font-family: var(--font-sans); font-weight: 700;
  font-size: 13px; color: var(--fg-1);
  margin-bottom: 6px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rc-quote {
  font-family: var(--font-serif); font-style: italic;
  font-size: 13px; line-height: 1.5;
  color: var(--fg-2);
  margin: 0 0 10px;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.rc-tags {
  display: flex; gap: 4px; flex-wrap: wrap;
  margin-bottom: 12px;
  min-height: 0;
}
.rt-chip {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border: 1px solid var(--line-1);
  border-radius: var(--r-full);
  color: var(--fg-3);
  background: var(--bg-1);
}
.rc-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--line-1);
}
.rc-by { display: flex; align-items: center; gap: 8px; }
.rc-avatar {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  background: var(--brand-navy-deep);
  color: var(--lime);
  border-radius: var(--r-full);
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  flex-shrink: 0;
}
[data-theme="dark"] .rc-avatar { background: var(--lime); color: var(--brand-navy-deep); }
.rc-name {
  font-family: var(--font-sans); font-weight: 700; font-size: 12px;
  color: var(--fg-1); line-height: 1.1;
}
.rc-meta {
  font-family: var(--font-mono); font-size: 9px;
  color: var(--fg-3); letter-spacing: 0.04em;
  margin-top: 2px;
}
.rc-pin {
  font-family: var(--font-mono); font-size: 9px;
  color: var(--fg-4); letter-spacing: 0.06em;
}

/* responsive review side already handled in media-query */

/* =============================================================================
   PRINT — keep clean
============================================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
