/* ============================================================
   FILE: style.css — ServiceBud Team KFT
   Dark technical aesthetic · DM Sans · blue + warm amber
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  --bg: #0a0e1a;
  --surface: #111827;
  --surface-2: #1e293b;
  --accent: #7dd3fc;
  --accent-2: #38bdf8;
  --accent-warm: #f3b54a;
  --text-primary: #f0f0ee;
  --text-secondary: #9ca3af;
  --border: rgba(125, 211, 252, 0.12);
  --accent-ink: #0a0e1a;
  --glow: rgba(125, 211, 252, 0.3);
  --glow-warm: rgba(243, 181, 74, 0.22);
  --hero-overlay: linear-gradient(to right, var(--bg) 28%, rgba(10, 14, 26, 0.95) 45%, rgba(10, 14, 26, 0.3) 75%, transparent 100%);
  --mobile-hero-overlay: linear-gradient(to top, rgba(10, 14, 26, 0.85) 4%, rgba(10, 14, 26, 0.55) 45%, rgba(10, 14, 26, 0.82) 100%);
  --hero-bg-url: url("assets/hero.jpg");
  --btn-gradient: linear-gradient(135deg, var(--accent), var(--accent-2));

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 32px);
  --head-h: 84px;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* System Light Mode Preference */
@media (prefers-color-scheme: light) {
  :root:not(.dark-mode) {
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-2: #f1f5f9;
    --accent: #0284c7;
    --accent-2: #0369a1;
    --accent-warm: #d97706;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --border: rgba(2, 132, 199, 0.08);
    --accent-ink: #ffffff;
    --glow: rgba(2, 132, 199, 0.12);
    --glow-warm: rgba(217, 119, 6, 0.1);
    --hero-overlay: linear-gradient(to right, var(--bg) 28%, rgba(248, 250, 252, 0.95) 45%, rgba(248, 250, 252, 0.3) 75%, transparent 100%);
    --mobile-hero-overlay: linear-gradient(to top, rgba(248, 250, 252, 0.85) 4%, rgba(248, 250, 252, 0.55) 45%, rgba(248, 250, 252, 0.82) 100%);
    --hero-bg-url: url("assets/hero_light_v2.png");
  }
}

/* Explicit Light Mode Override class */
html.light-mode {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --accent: #0284c7;
  --accent-2: #0369a1;
  --accent-warm: #d97706;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --border: rgba(2, 132, 199, 0.08);
  --accent-ink: #ffffff;
  --glow: rgba(2, 132, 199, 0.12);
  --glow-warm: rgba(217, 119, 6, 0.1);
  --hero-overlay: linear-gradient(to right, var(--bg) 28%, rgba(248, 250, 252, 0.95) 45%, rgba(248, 250, 252, 0.3) 75%, transparent 100%);
  --mobile-hero-overlay: linear-gradient(to top, rgba(248, 250, 252, 0.85) 4%, rgba(248, 250, 252, 0.55) 45%, rgba(248, 250, 252, 0.82) 100%);
  --hero-bg-url: url("assets/hero_light_v2.png");
}

/* Explicit Dark Mode override class to ignore system light mode */
html.dark-mode {
  --bg: #0a0e1a;
  --surface: #111827;
  --surface-2: #1e293b;
  --accent: #7dd3fc;
  --accent-2: #38bdf8;
  --accent-warm: #f3b54a;
  --text-primary: #f0f0ee;
  --text-secondary: #9ca3af;
  --border: rgba(125, 211, 252, 0.12);
  --accent-ink: #0a0e1a;
  --glow: rgba(125, 211, 252, 0.3);
  --glow-warm: rgba(243, 181, 74, 0.22);
  --hero-overlay: linear-gradient(to right, var(--bg) 28%, rgba(10, 14, 26, 0.95) 45%, rgba(10, 14, 26, 0.3) 75%, transparent 100%);
  --mobile-hero-overlay: linear-gradient(to top, rgba(10, 14, 26, 0.85) 4%, rgba(10, 14, 26, 0.55) 45%, rgba(10, 14, 26, 0.82) 100%);
  --hero-bg-url: url("assets/hero.jpg");
}

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--head-h);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  position: relative;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at top right, rgba(125, 211, 252, 0.12), transparent 35%),
    radial-gradient(circle at 12% 22%, rgba(243, 181, 74, 0.08), transparent 28%),
    linear-gradient(180deg, #0a0e1a 0%, #070a14 25%, #05080f 50%, #020306 100%);
  color: var(--text-primary);
  font-family: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* faint engineering grid */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(159, 213, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(159, 213, 255, 0.035) 1px, transparent 1px);
  background-size: 92px 92px;
}

/* warm/cool atmospheric blend layer */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 75% 12%, rgba(67, 148, 255, 0.16), transparent 24%),
    radial-gradient(circle at 18% 64%, rgba(243, 181, 74, 0.08), transparent 22%);
  mix-blend-mode: screen;
}

h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

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

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

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* elevation z-index so cable tip doesn't obscure content */
.site-head,
main,
.site-foot,
.page-sub .subpage {
  position: relative;
  z-index: 2;
}

/* ---------- 3. Shared text styles ---------- */
.overline {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.section-head { max-width: 640px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head__sub { margin-top: 16px; color: var(--text-secondary); }

.section-head--row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.text-link {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-warm);
  white-space: nowrap;
  padding-bottom: 6px;
}
.text-link span { display: inline-block; transition: transform 0.3s var(--ease); }
.text-link:hover span { transform: translateX(5px); }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease),
    color 0.3s var(--ease),
    background-color 0.3s var(--ease);
}

.btn:active { transform: translateY(0); }

.btn--solid {
  background: var(--btn-gradient);
  color: var(--accent-ink);
  border-color: rgba(255, 255, 255, 0.12);
}
.btn--solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 42px var(--glow);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}
.btn--ghost:hover {
  background: rgba(63, 183, 255, 0.12);
  border-color: rgba(95, 197, 255, 0.38);
  color: var(--text-primary);
  box-shadow: 0 8px 28px rgba(63, 183, 255, 0.12);
}

.btn--warm {
  background: linear-gradient(135deg, rgba(243, 181, 74, 0.92), rgba(230, 160, 40, 0.92));
  color: #1a1200;
  border-color: rgba(255, 255, 255, 0.18);
}
.btn--warm:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 42px rgba(243, 181, 74, 0.28);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn--lg { padding: 18px 40px; font-size: 0.85rem; }

/* ---------- 5. The cable ---------- */
.cable {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  clip-path: inset(var(--head-h) 0 0 0); /* Prevents the glowing cable from shining through the glass header */
}
.cable svg { display: block; width: 100%; height: 100%; }
.cable__glow { filter: blur(8px) brightness(1.8); opacity: 0.7; }
.cable__tip-halo { filter: blur(4px); }

@media (prefers-reduced-motion: no-preference) {
  .js .cable__glow, .js .cable__core { opacity: 0; }
}

@media (max-width: 767px) {
  .cable { display: none; }
}

/* ---------- 6. Sticky header ---------- */
.site-head {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(8, 21, 45, 0.76);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 48px rgba(3, 10, 24, 0.22);
}

.site-head__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: var(--head-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { color: var(--accent); flex: none; }
.brand__name { font-weight: 600; letter-spacing: 0.02em; white-space: nowrap; }
.brand__name span { font-weight: 300; color: var(--text-secondary); }

.site-nav { display: flex; gap: clamp(20px, 3vw, 44px); padding: 6px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 999px; background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); }
.site-nav a {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 10px 14px;
  border-radius: 999px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}
.site-nav a[aria-current="page"] {
  background: linear-gradient(135deg, rgba(63, 183, 255, 0.24), rgba(243, 181, 74, 0.18));
  color: var(--text-primary);
}

.site-head__contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
  padding: 9px 20px;
  border-radius: 6px;
  background: transparent;
  border: 1.5px solid var(--accent);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.site-head__contact:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 8px 24px var(--glow);
  color: var(--accent-ink);
  background: var(--btn-gradient);
  border-color: transparent;
}

@media (max-width: 860px) {
  .site-nav { display: none; }
}
@media (max-width: 480px) {
  .brand__name span { display: none; }
}

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--head-h);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  z-index: 0;
  background-color: var(--bg);
  background-image: var(--hero-overlay), var(--hero-bg-url);
  background-size: cover;
  background-position: center;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, transparent 40%);
}
.hero__media-glow {
  position: absolute;
  left: 30%;
  bottom: -60px;
  width: 320px;
  height: 160px;
  background: radial-gradient(circle, rgba(67, 171, 255, 0.62) 0%, rgba(67, 171, 255, 0.18) 38%, rgba(243, 181, 74, 0.12) 60%, transparent 78%);
  filter: blur(18px);
}

.hero__inner { position: relative; z-index: 2; width: 100%; }
.hero__copy { max-width: 720px; padding-block: 96px; }

.hero__eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin-bottom: 28px;
}

.hero-tagline {
  font-size: clamp(3rem, 8.6vw, 6.9rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.hero-tagline span { display: block; }
.hero-tagline__outline { color: var(--text-primary); }
@supports (-webkit-text-stroke: 1px black) {
  .hero-tagline__outline {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--text-primary);
  }
}

.hero__title {
  font-size: clamp(1.2rem, 1.9vw, 1.6rem);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
  color: var(--text-primary);
  max-width: 34ch;
  margin-bottom: 14px;
}
.hero__sub {
  color: var(--text-secondary);
  font-size: 1.02rem;
  max-width: 56ch;
  margin-bottom: 40px;
}

.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__cue {
  position: absolute;
  bottom: 0;
  left: var(--gutter);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.hero__cue span {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-secondary);
  writing-mode: vertical-rl;
}
.hero__cue::after {
  content: "";
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, var(--border), var(--accent));
}

@media (max-width: 860px) {
  .hero__media { width: 100%; }
  .hero__media::after {
    background: var(--mobile-hero-overlay);
  }
  .hero__copy { padding-block: 72px; }
  .hero__cue { display: none; }
}

/* ---------- 8. Stats ---------- */
.stats {
  padding-block: clamp(32px, 5vw, 56px) clamp(72px, 9vw, 108px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border-block: 1px solid rgba(255, 255, 255, 0.08);
}

.stats__shell { display: grid; gap: 32px; }
.stats__intro { max-width: 58rem; }
.stats__intro h2 { max-width: 18ch; }
.stats__intro p:last-child {
  margin-top: 16px;
  color: var(--text-secondary);
  max-width: 52ch;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  max-width: 100%;
  margin-inline: auto;
}

.stat {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: rgba(17, 24, 39, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 52px rgba(5, 13, 28, 0.25);
}

.stat__num {
  font-size: clamp(1.35rem, 3vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.stat__label {
  margin-top: 12px;
  color: var(--text-secondary);
  max-width: 22ch;
}

@media (max-width: 640px) {
  .stats__grid { grid-template-columns: 1fr; }
}

/* ---------- 9. Services ---------- */
.services { padding-block: clamp(80px, 11vw, 140px); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2.4vw, 24px);
}
@media (min-width: 1024px) {
  .services__grid { grid-template-columns: repeat(4, 1fr); }
}

.card {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(22px, 2.6vw, 32px);
  background: rgba(17, 24, 39, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease),
              box-shadow 0.4s var(--ease);
  box-shadow: 0 24px 56px rgba(4, 12, 28, 0.14);
}

/* live-wire hover */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--accent) 30%, var(--accent-warm) 70%, transparent);
  box-shadow: 0 0 14px var(--glow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(95, 197, 255, 0.38);
  box-shadow: 0 24px 64px rgba(63, 183, 255, 0.14);
}
.card:hover::before { transform: scaleX(1); }

.card__icon { color: var(--text-primary); transition: color 0.4s var(--ease), filter 0.4s var(--ease); }
.card:hover .card__icon {
  color: var(--accent);
  filter: drop-shadow(0 0 10px var(--glow));
}

.card__title { font-size: 1.12rem; font-weight: 600; letter-spacing: -0.01em; }
.card__desc { font-size: 0.92rem; color: var(--text-secondary); flex-grow: 1; }

.card__link {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-warm);
}
.card__link span { display: inline-block; transition: transform 0.3s var(--ease); }
.card__link:hover span { transform: translateX(5px); }

@media (max-width: 560px) {
  .services__grid { grid-template-columns: 1fr 1fr; }
  .card__desc { display: none; }
}

/* ---------- 10. Projects preview (horizontal scroll) ---------- */
.projects-preview { padding-block: 0 clamp(80px, 11vw, 140px); }

.proj-scroller {
  position: relative;
  z-index: 2;
  min-height: calc(clamp(280px, 26vw, 360px) * 4 / 3 + 110px);
}

.proj-row {
  display: flex;
  gap: clamp(16px, 2vw, 26px);
  overflow-x: auto;
  overflow-y: hidden;
  touch-action: pan-x;
  scroll-snap-type: x mandatory;
  padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  padding-bottom: 22px;
  scrollbar-color: var(--border) transparent;
}
.proj-row::-webkit-scrollbar { height: 6px; }
.proj-row::-webkit-scrollbar-track { background: transparent; }
.proj-row::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.proj-row:hover::-webkit-scrollbar-thumb { background: rgba(125, 211, 252, 0.4); }

.proj-card {
  flex: 0 0 clamp(280px, 26vw, 360px);
  scroll-snap-align: start;
}
.proj-card a {
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(18, 42, 77, 0.9), rgba(10, 24, 47, 0.9));
  transition: border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.proj-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.02);
  transition: filter 0.45s var(--ease), transform 0.45s var(--ease), border-color 0.45s var(--ease);
}
.proj-card a:hover img {
  filter: saturate(1) contrast(1.02);
  transform: translateY(-4px);
  border-color: rgba(95, 197, 255, 0.38);
}
.proj-card a:hover {
  border-color: rgba(95, 197, 255, 0.38);
  box-shadow: 0 24px 60px rgba(5, 12, 28, 0.28);
}
.proj-card figure { margin: 0; }
.proj-card figcaption { padding: 20px 24px 24px; }
.proj-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.proj-card figcaption p {
  margin-top: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent); /* Electric blue brand accent */
}

/* ---------- 11. Projects page ---------- */
.proj-hero {
  padding-top: calc(var(--head-h) + clamp(56px, 9vw, 110px));
  padding-bottom: clamp(36px, 5vw, 56px);
}
.proj-hero__title {
  font-size: clamp(3.6rem, 13vw, 9.5rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-primary);
}
@supports (-webkit-text-stroke: 1px black) {
  .proj-hero__title {
    color: transparent;
    -webkit-text-stroke: 1px var(--text-primary);
  }
}
.proj-hero__sub {
  margin-top: 20px;
  max-width: 56ch;
  color: var(--text-secondary);
}

.proj-filters {
  position: relative;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: clamp(32px, 5vw, 48px);
  padding-block: 18px;
}
.proj-filters__wire {
  position: absolute;
  top: 0;
  left: -100vw;
  right: -100vw;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(125, 211, 252, 0.55) 35%, rgba(125, 211, 252, 0.55) 65%, transparent);
  box-shadow: 0 0 12px var(--glow);
}

.filter-tab {
  padding: 10px 22px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease),
              background-color 0.25s var(--ease);
}
.filter-tab:hover { color: var(--text-primary); border-color: var(--accent-2); }
.filter-tab.is-active {
  background: var(--btn-gradient);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--accent-ink);
}
.filter-tab.is-active:hover {
  color: var(--accent-ink);
}

.proj-grid-wrap { padding-bottom: clamp(80px, 10vw, 120px); }

.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.4vw, 28px);
}
@media (max-width: 1060px) { .proj-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px)  { .proj-grid { grid-template-columns: 1fr; } }

.proj-tile {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, rgba(18, 42, 77, 0.9), rgba(10, 24, 47, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease),
              box-shadow 0.4s var(--ease);
  box-shadow: 0 24px 56px rgba(4, 12, 28, 0.14);
}
.proj-tile:hover {
  transform: translateY(-5px);
  border-color: rgba(95, 197, 255, 0.55);
  box-shadow: 0 24px 60px rgba(5, 12, 28, 0.28);
}

.proj-tile__link {
  display: block;
  height: 100%;
}

.proj-tile img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: saturate(0.85);
  transition: filter 0.45s var(--ease), scale 0.45s var(--ease);
}
.proj-tile:hover img { filter: saturate(1); scale: 1.03; }

.proj-tile__body {
  padding: 22px 24px 26px;
  display: grid;
  gap: 12px;
}
.proj-tile__body h2 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }

.proj-tile__meta {
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.proj-tile__scope { margin-top: 12px; font-size: 0.9rem; color: var(--text-secondary); }

.proj-tile__linkline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-warm);
  transition: color 0.3s var(--ease);
}
.proj-tile__linkline span { display: inline-block; transition: transform 0.3s var(--ease); }
.proj-tile:hover .proj-tile__linkline { color: var(--text-primary); }
.proj-tile:hover .proj-tile__linkline span { transform: translateX(5px); }

.proj-more { display: flex; justify-content: center; margin-top: clamp(36px, 5vw, 56px); }

.proj-more .btn--ghost {
  background: linear-gradient(180deg, rgba(18, 42, 77, 0.92), rgba(12, 24, 46, 0.92));
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 52px rgba(4, 12, 28, 0.18);
}
.proj-more .btn--ghost:hover {
  background: linear-gradient(135deg, rgba(63, 183, 255, 0.22), rgba(243, 181, 74, 0.16));
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text-primary);
  box-shadow: 0 24px 64px rgba(63, 183, 255, 0.14);
}

[hidden] { display: none !important; }

.proj-empty {
  padding: 48px 0;
  text-align: center;
  color: var(--text-secondary);
}

/* ---------- 12. FAQ ---------- */
.faq { padding-block: 0 clamp(80px, 11vw, 130px); }
.faq__inner { max-width: 860px; }

.faq__item {
  border-bottom: 1px solid var(--border);
}
.faq__item:first-of-type { border-top: 1px solid var(--border); }

.faq__item summary {
  position: relative;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 4px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.25s var(--ease);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--accent); }

.faq__marker { position: relative; flex: none; width: 16px; height: 16px; }
.faq__marker::before,
.faq__marker::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 1.5px;
  background: var(--accent);
  translate: -50% -50%;
  transition: rotate 0.35s var(--ease);
}
.faq__marker::after { rotate: 90deg; }
.faq__item[open] .faq__marker::after { rotate: 0deg; }
.faq__item[open] .faq__marker::before { rotate: 180deg; }

.faq__item p {
  padding: 0 4px 24px;
  color: var(--text-secondary);
  max-width: 70ch;
}
.faq__item p a { color: var(--accent-warm); }

/* ---------- 13. CTA ---------- */
.cta {
  position: relative;
  padding-block: clamp(96px, 13vw, 170px);
  border-top: 1px solid var(--border);
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 60%, rgba(125, 211, 252, 0.09), transparent 70%);
  pointer-events: none;
}
.cta__inner { position: relative; text-align: center; max-width: 720px; }
.cta__title { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.cta__sub { margin-top: 18px; color: var(--text-secondary); }
.cta__actions {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}
.cta__phone {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  transition: color 0.25s var(--ease);
}
.cta__phone:hover { color: var(--accent-warm); }

/* ---------- 14. Footer ---------- */
.site-foot {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(7, 18, 37, 0.48), rgba(7, 18, 37, 0.86));
}

.cable-end {
  display: flex;
  justify-content: center;
  padding-top: 36px;
  color: var(--accent);
  filter: drop-shadow(0 0 10px var(--glow));
}

.site-foot__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  padding-block: clamp(40px, 6vw, 64px);
}
.site-foot__brand p {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.site-foot__coverage { margin-top: 6px; }
.site-foot__brand > a[href^="tel"] {
  display: inline-block;
  margin-top: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.25s var(--ease);
}
.site-foot__brand > a[href^="tel"]:hover { color: var(--accent-warm); }

.site-foot__col { display: flex; flex-direction: column; gap: 12px; }
.site-foot__col h4 {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.site-foot__col a {
  font-size: 0.92rem;
  color: var(--text-secondary);
  transition: color 0.25s var(--ease);
}
.site-foot__col a:hover { color: var(--accent-warm); }

.site-foot__legal {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.site-foot--mini { margin-top: 96px; }

@media (max-width: 760px) {
  .site-foot__grid { grid-template-columns: 1fr 1fr; }
  .site-foot__brand { grid-column: 1 / -1; }
}

/* ---------- 15. Contact panel ---------- */
.contact-panel {
  position: relative;
  padding-block: clamp(88px, 11vw, 148px);
}

.contact-panel::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 20%;
  width: min(560px, 42vw);
  height: min(560px, 42vw);
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 181, 74, 0.18), transparent 70%);
  filter: blur(12px);
  opacity: 0.8;
  pointer-events: none;
}

.contact-panel__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
  padding: clamp(28px, 4vw, 40px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(18, 42, 77, 0.92), rgba(11, 25, 49, 0.92));
  box-shadow: 0 30px 80px rgba(4, 12, 28, 0.22);
}

.contact-panel__intro { display: grid; gap: 18px; }
.contact-panel__lead { color: var(--text-secondary); max-width: 52ch; }

.contact-panel__actions {
  display: flex;
  align-items: center; /* Vertically align items perfectly */
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.contact-panel__cards {
  display: grid;
  gap: 16px;
}

.contact-card {
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.contact-card__kicker {
  margin-bottom: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-warm);
}
.contact-card h3 { font-size: 1.1rem; margin-bottom: 10px; }

.contact-card__list {
  display: grid;
  gap: 8px;
}
.contact-card__list li {
  position: relative;
  padding-left: 16px;
}
.contact-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
}

/* compact variant for projects page — tighter but still prominent */
.contact-panel--compact {
  padding-block: clamp(56px, 8vw, 100px);
}
.contact-panel--compact .contact-panel__grid {
  gap: clamp(18px, 2.4vw, 28px);
  padding: clamp(22px, 3vw, 32px);
  border-radius: 24px;
}
.contact-panel--compact::before {
  width: min(340px, 32vw);
  height: min(340px, 32vw);
  top: 10%;
  opacity: 0.6;
}

@media (max-width: 1100px) {
  .case-hero__grid,
  .case-row,
  .contact-panel__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .contact-panel__grid { grid-template-columns: 1fr; }
  .proj-tile__body,
  .contact-panel__grid {
    padding: 22px;
  }
}

/* ---------- 16. Service stub pages ---------- */
.subpage { padding-top: calc(var(--head-h) + clamp(64px, 10vw, 120px)); }
.subpage .container { max-width: 820px; }
.subpage__title {
  font-size: clamp(2.6rem, 6.5vw, 4.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.subpage__lede {
  margin-top: 22px;
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 58ch;
}
.scope-list {
  margin-block: 40px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 32px;
}
.scope-list li {
  position: relative;
  padding: 14px 0 14px 26px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.scope-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 14px;
  height: 1.5px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--glow);
}
@media (max-width: 620px) { .scope-list { grid-template-columns: 1fr; } }

.page-sub .subpage {
  padding-top: calc(var(--head-h) + clamp(72px, 11vw, 130px));
}
.page-sub .subpage .container {
  max-width: 920px;
}

/* ---------- 17. Scroll reveals (JS + motion only) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  }
  .js .reveal.is-revealed { opacity: 1; transform: none; }

  .js .services__grid .reveal:nth-child(2),
  .js .proj-row .reveal:nth-child(2),
  .js .stats__grid .reveal:nth-child(2),
  .js .proj-grid .reveal:nth-child(3n - 1) { transition-delay: 0.08s; }
  .js .services__grid .reveal:nth-child(3),
  .js .proj-row .reveal:nth-child(3),
  .js .stats__grid .reveal:nth-child(3),
  .js .proj-grid .reveal:nth-child(3n) { transition-delay: 0.16s; }
  .js .services__grid .reveal:nth-child(4),
  .js .proj-row .reveal:nth-child(4) { transition-delay: 0.24s; }
  .js .proj-row .reveal:nth-child(5) { transition-delay: 0.32s; }
}

/* ---------- 18. Theme Switch & Language Picker ---------- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
  flex: none;
}
.theme-toggle:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(95, 197, 255, 0.38);
}
.theme-icon {
  flex: none;
}
.theme-icon--moon { display: none; }
.theme-icon--sun { display: block; }

html.light-mode .theme-icon--moon { display: block; }
html.light-mode .theme-icon--sun { display: none; }

.lang-picker {
  position: relative;
  flex: none;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.25s var(--ease);
}
.lang-picker:hover .lang-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(95, 197, 255, 0.38);
}
.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 90px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(11, 20, 38, 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 100;
}
.lang-picker.is-open .lang-dropdown {
  display: flex;
}
.lang-dropdown li {
  padding: 8px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  text-align: center;
}
.lang-dropdown li:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}
.lang-dropdown li.is-active {
  color: var(--accent);
  background: rgba(125, 211, 252, 0.12);
}

/* ---------- 19. FAQ Accordion ---------- */
.faq {
  padding-block: clamp(64px, 8vw, 110px) 0;
}
.faq__list {
  max-width: 860px;
  margin: 40px auto 0;
  display: grid;
  gap: 16px;
}
.faq__item {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(17, 24, 39, 0.4);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.faq__item:hover {
  border-color: rgba(125, 211, 252, 0.25);
  background: rgba(17, 24, 39, 0.6);
}
.faq__item summary {
  padding: 22px 24px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
.faq__marker {
  position: relative;
  width: 14px;
  height: 14px;
  flex: none;
}
.faq__marker::before,
.faq__marker::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--accent);
  translate: -50% -50%;
  transition: transform 0.3s var(--ease), rotate 0.3s var(--ease);
}
.faq__marker::before {
  width: 14px;
  height: 2px;
}
.faq__marker::after {
  width: 2px;
  height: 14px;
}
.faq__item[open] .faq__marker::after {
  transform: scaleY(0);
}
.faq__item p {
  padding: 0 24px 24px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---------- 20. Light Mode Overrides ---------- */
html.light-mode body {
  background-image:
    radial-gradient(circle at top right, rgba(2, 132, 199, 0.06), transparent 35%),
    radial-gradient(circle at 12% 22%, rgba(217, 119, 6, 0.04), transparent 28%),
    linear-gradient(180deg, #f8fafc 0%, #f1f5f9 25%, #e2e8f0 50%, #cbd5e1 100%);
}
html.light-mode body::before {
  background-image:
    linear-gradient(to right, rgba(2, 132, 199, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(2, 132, 199, 0.03) 1px, transparent 1px);
}
html.light-mode body::after {
  background:
    radial-gradient(circle at 75% 12%, rgba(2, 132, 199, 0.05), transparent 24%),
    radial-gradient(circle at 18% 64%, rgba(217, 119, 6, 0.03), transparent 22%);
}
html.light-mode .site-head {
  background: rgba(248, 250, 252, 0.85);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}
html.light-mode .site-nav {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.06);
}
html.light-mode .site-nav a:hover {
  background: rgba(0, 0, 0, 0.04);
}
html.light-mode .site-nav a[aria-current="page"] {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.12), rgba(217, 119, 6, 0.08));
}

html.light-mode .btn--ghost {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
  color: var(--text-primary);
}
html.light-mode .btn--ghost:hover {
  background: rgba(2, 132, 199, 0.08);
  border-color: rgba(2, 132, 199, 0.2);
}
html.light-mode .card {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}
html.light-mode .proj-card a {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.06);
}
html.light-mode .proj-card a:hover {
  border-color: rgba(2, 132, 199, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}
html.light-mode .proj-tile {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}
html.light-mode .proj-tile:hover {
  border-color: rgba(2, 132, 199, 0.3);
}
html.light-mode .contact-panel__grid {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.95));
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}
html.light-mode .contact-card {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.05);
}
html.light-mode .theme-toggle {
  background: rgba(0, 0, 0, 0.02);
}
html.light-mode .theme-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(2, 132, 199, 0.2);
}
html.light-mode .lang-btn {
  background: rgba(0, 0, 0, 0.02);
}
html.light-mode .lang-picker:hover .lang-btn {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(2, 132, 199, 0.2);
}
html.light-mode .lang-dropdown {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
html.light-mode .lang-dropdown li:hover {
  background: rgba(0, 0, 0, 0.04);
}
html.light-mode .lang-dropdown li.is-active {
  background: rgba(2, 132, 199, 0.08);
}
html.light-mode .faq__item {
  background: rgba(255, 255, 255, 0.5);
}
html.light-mode .faq__item:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(2, 132, 199, 0.2);
}
html.light-mode .cable__base {
  stroke: var(--accent);
  opacity: 0.35;
}
html.light-mode .cable__glow {
  stroke: var(--accent);
  filter: blur(8px) brightness(1.2);
  opacity: 0.8;
}
html.light-mode .cable__core {
  stroke: var(--accent-2);
}
html.light-mode .stats {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.01), rgba(0, 0, 0, 0.003));
  border-block-color: var(--border);
}
html.light-mode .stat {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}
html.light-mode .filter-tab {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}
html.light-mode .filter-tab:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: var(--accent);
}
html.light-mode .site-foot {
  background: var(--surface-2);
  border-top-color: var(--border);
}
html.light-mode .site-foot__legal {
  border-top-color: var(--border);
}

/* ---------- 16. CEO Contact Label ---------- */
.contact-phone-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.contact-phone-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-warm);
}

/* ---------- 17. Case Study / Project Pages ---------- */
.page-case-study main.case-study {
  padding-top: calc(var(--head-h) + clamp(40px, 6vw, 80px));
}
.case-hero {
  padding-block: clamp(32px, 5vw, 64px);
  border-bottom: 1px solid var(--border);
}
.case-hero__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.case-hero__copy .back-link {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 24px;
  text-decoration: none;
}
.case-hero__copy .back-link:hover {
  color: var(--accent-warm);
}
.case-hero__copy .overline {
  color: var(--accent-warm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: 12px;
}
.case-hero__title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.case-hero__desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 48ch;
}
.case-chips {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.case-chip {
  padding: 6px 14px;
  border-radius: 99px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.case-hero__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

.case-grid {
  padding-block: clamp(56px, 8vw, 96px);
  display: grid;
  gap: clamp(48px, 7vw, 80px);
}
.case-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.case-row:nth-child(even) {
  grid-template-columns: 1fr 1.5fr;
}
.case-block h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.case-block p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 16px;
}
.case-block p:last-child { margin-bottom: 0; }

.case-snapshot {
  padding: 32px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
html.light-mode .case-snapshot {
  background: rgba(0, 0, 0, 0.02);
}
.case-snapshot dl {
  display: grid;
  gap: 20px;
}
.case-snapshot dt {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.case-snapshot dd {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-top: 4px;
}

.case-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 16px;
}
.case-list li {
  position: relative;
  padding-left: 28px;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.5;
}
.case-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

.case-process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 24px;
}
.case-step {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.case-step:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.case-step__num {
  display: block;
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--accent-warm);
  line-height: 1;
  margin-bottom: 12px;
}
.case-step h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.case-step p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.case-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 24px;
}
.case-gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.case-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.case-gallery figcaption {
  display: none;
}

.case-related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}
.case-related a {
  display: block;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.case-related a:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(63, 183, 255, 0.15);
}
.case-related strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.case-related span {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

@media (max-width: 960px) {
  .case-hero__grid { grid-template-columns: 1fr; }
  .case-row, .case-row:nth-child(even) { grid-template-columns: 1fr; }
  .case-related { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .case-gallery { grid-template-columns: 1fr; }
}
