/* ─── KIW Design System · "Refined Studio" ─── */

/* ─── Tokens ─── */
:root {
  --bg: #0D1117;
  --bg-alt: #111820;
  --bg-card: #141B25;
  --bg-elevated: #1A222E;
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.15);
  --fg: #F0F6FC;
  --fg-muted: #8B949E;
  --fg-subtle: #484F58;
  --green: #3FB950;
  --green-dim: rgba(63, 185, 80, 0.12);
  --green-glow: rgba(63, 185, 80, 0.25);
  --green-deep: #238636;
  --cyan: #22D3EE;
  --cyan-dim: rgba(34, 211, 238, 0.12);
  --cyan-glow: rgba(34, 211, 238, 0.25);
  --font-display: 'Syne', -apple-system, sans-serif;
  --font-sans: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 0.7s;
  --cursor-x: 50%;
  --cursor-y: 50%;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

/* ─── Background grid texture ─── */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 10%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 10%, transparent 65%);
}

/* ─── Cursor glow ─── */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(500px circle at var(--cursor-x) var(--cursor-y),
      rgba(63, 185, 80, 0.08),
      rgba(34, 211, 238, 0.04) 40%,
      transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cursor-glow.active {
  opacity: 1;
}

a {
  color: var(--fg);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--green);
}

::selection {
  background: var(--green);
  color: var(--bg);
}

/* ─── Layout ─── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 7rem 0;
  position: relative;
  z-index: 2;
}

/* Section backgrounds — brand palette rhythm */
#about,
#cases {
  background: var(--bg);
  position: relative;
}

#cases::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

#clients {
  background: linear-gradient(180deg, #0D1117 0%, #111820 50%, #0D1117 100%);
  border-top: 1px solid rgba(63, 185, 80, 0.08);
  border-bottom: 1px solid rgba(63, 185, 80, 0.08);
  position: relative;
}

#clients::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(63, 185, 80, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

#services {
  background: #161B22;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

#services::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 60% at 70% 50%, rgba(34, 211, 238, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

#news {
  background: var(--bg-alt);
  position: relative;
}

#news::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 40% 50% at 30% 50%, rgba(34, 211, 238, 0.03) 0%, transparent 60%);
  pointer-events: none;
}

#sectors {
  background: linear-gradient(180deg, var(--bg) 0%, #161B22 50%, var(--bg) 100%);
}

#impact {
  background: #3FB950;
}

#impact .impact-item svg {
  color: #0D1117;
}

#impact .impact-item span {
  color: #0D1117;
  font-weight: 600;
}

#impact .impact-sep {
  color: rgba(13, 17, 23, 0.3);
}

#contact {
  background: linear-gradient(135deg, #3FB950 0%, #22D3EE 100%);
  text-align: center;
}

#contact .section-label {
  color: rgba(10, 14, 20, 0.5);
}

#contact .section-title {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: #0D1117;
  background-clip: unset;
  color: #0D1117;
}

#contact .section-desc {
  color: rgba(10, 14, 20, 0.7);
  margin: 0 auto 2.5rem;
}

#contact .contact-cta {
  background: #0D1117;
  color: #3FB950;
}

#contact .contact-cta:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  color: #3FB950;
}

#contact .contact-details a {
  color: rgba(10, 14, 20, 0.6);
}

#contact .contact-details a:hover {
  color: #0D1117;
}

/* ─── Navigation ─── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  background: rgba(10, 14, 20, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s;
}

nav.scrolled {
  border-bottom-color: var(--border);
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 22px;
  height: 15px;
  color: var(--fg);
  transition: color 0.3s;
}

.nav-logo-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 28%;
  background: var(--bg-card);
  position: relative;
  transition: box-shadow 0.3s;
}

.nav-logo-frame::before {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: 28%;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  opacity: 0.25;
  z-index: 0;
}

.nav-logo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 28%;
  background: var(--bg-card);
  z-index: 0;
}

.nav-logo-frame svg {
  position: relative;
  z-index: 1;
}

.nav-logo:hover .nav-logo-frame {
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.15);
}

.nav-logo:hover .nav-logo-frame::before {
  opacity: 0.5;
}

.nav-logo:hover .nav-logo-icon {
  color: var(--green);
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 6px;
  color: var(--fg);
  transform: scaleY(0.82);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--fg-muted);
  transition: color 0.3s;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--fg);
}

/* Mobile menu */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--fg);
  font-size: 1.5rem;
  cursor: pointer;
  font-family: var(--font-mono);
}

.lang-toggle {
  background: var(--cyan-dim);
  border: 1px solid rgba(34, 211, 238, 0.25);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.lang-toggle:hover {
  background: rgba(34, 211, 238, 0.2);
  border-color: var(--cyan);
}

/* ─── Hero ─── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 5rem;
  overflow: hidden;
}

/* Hero mesh gradient */
#hero::before {
  content: '';
  position: absolute;
  inset: -20%;
  z-index: -1;
  background:
    radial-gradient(ellipse 45% 35% at 15% 50%, rgba(63, 185, 80, 0.16) 0%, transparent 65%),
    radial-gradient(ellipse 40% 45% at 85% 25%, rgba(35, 134, 54, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 35% at 50% 85%, rgba(63, 185, 80, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 30% 30% at 60% 40%, rgba(35, 134, 54, 0.06) 0%, transparent 50%);
  animation: meshFloat 10s ease-in-out infinite alternate;
}

/* Hero bottom glow line */
#hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green-glow), var(--cyan-glow), transparent);
  z-index: 2;
}

@keyframes meshFloat {
  0% {
    transform: scale(1) translate(0, 0);
  }

  33% {
    transform: scale(1.08) translate(3%, -2%);
  }

  66% {
    transform: scale(0.95) translate(-2%, 3%);
  }

  100% {
    transform: scale(1.05) translate(2%, -1%);
  }
}

.hero-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.hero-logo-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 280px;
  height: 280px;
  border-radius: 28%;
  background: var(--bg-card);
  position: relative;
  transition: box-shadow 0.6s var(--ease), transform 0.6s var(--ease);
}

.hero-logo-frame::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 28%;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  opacity: 0.2;
  z-index: 0;
  transition: opacity 0.6s;
}

.hero-logo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 28%;
  background: var(--bg-card);
  z-index: 0;
}

.hero-logo-frame:hover {
  transform: scale(1.04);
  box-shadow: 0 0 60px rgba(34, 211, 238, 0.15), 0 0 120px rgba(74, 222, 128, 0.08);
}

.hero-logo-frame:hover::before {
  opacity: 0.4;
}

.hero-logo {
  width: 180px;
  height: 120px;
  color: var(--fg);
  filter: drop-shadow(0 0 40px rgba(63, 185, 80, 0.15)) drop-shadow(0 0 80px rgba(35, 134, 54, 0.08));
  animation: none;
  position: relative;
  transition: filter 0.6s var(--ease);
  overflow: visible;
  z-index: 1;
}

.hero-logo.settled {
  animation: logoBreathing 4s ease-in-out 0.5s infinite;
}

/* Frame border pulses with breathing */
.hero-logo.settled~.hero-logo-frame-sentinel,
.hero-logo-frame:has(.hero-logo.settled) {
  animation: frameBreathing 4s ease-in-out 0.5s infinite;
}

@keyframes frameBreathing {

  0%,
  100% {
    box-shadow: none;
  }

  50% {
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.1), 0 0 60px rgba(74, 222, 128, 0.06);
  }
}

.hero-logo-frame:has(.hero-logo.settled)::before {
  animation: frameBorderPulse 4s ease-in-out 0.5s infinite;
}

@keyframes frameBorderPulse {

  0%,
  100% {
    opacity: 0.2;
  }

  50% {
    opacity: 0.35;
  }
}

.hero-logo:hover {
  filter: drop-shadow(0 0 50px rgba(63, 185, 80, 0.35)) drop-shadow(0 0 90px rgba(34, 211, 238, 0.25));
}

/* ─── Crossing-point flash when waves settle ─── */
.hero-logo::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 38%;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%) scale(0);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.7) 0%, rgba(34, 211, 238, 0.3) 40%, transparent 70%);
  animation: crossFlash 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-play-state: paused;
  pointer-events: none;
}

.hero-logo.settled::after {
  animation-play-state: running;
}

@keyframes crossFlash {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
  }

  50% {
    transform: translate(-50%, -50%) scale(3.5);
    opacity: 0.8;
  }

  100% {
    transform: translate(-50%, -50%) scale(6);
    opacity: 0;
  }
}

/* ─── Continuous breathing glow ─── */
@keyframes logoBreathing {

  0%,
  100% {
    filter: drop-shadow(0 0 40px rgba(63, 185, 80, 0.15)) drop-shadow(0 0 80px rgba(35, 134, 54, 0.08));
  }

  50% {
    filter: drop-shadow(0 0 50px rgba(63, 185, 80, 0.25)) drop-shadow(0 0 80px rgba(34, 211, 238, 0.12));
  }
}

.hero-wordmark {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 400;
  letter-spacing: 18px;
  color: var(--fg);
  transform: scaleY(0.82);
  opacity: 0;
  animation: heroFadeIn 1s var(--ease) 0.6s forwards;
}

.hero-tagline {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--fg-muted);
  letter-spacing: 0.15em;
  opacity: 0;
  animation: heroFadeIn 1.2s var(--ease) forwards;
  animation-play-state: paused;
}

.hero-logo-frame:has(.hero-logo.settled)~.hero-tagline {
  animation-play-state: running;
}

.hero-tagline em {
  font-style: normal;
  color: var(--green);
}

.hero-tagline .cyan {
  color: var(--cyan);
}

.hero-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--fg-subtle);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0;
  animation: heroFadeIn 1.2s var(--ease) 0.4s forwards;
  animation-play-state: paused;
  margin-top: 1rem;
}

.hero-logo-frame:has(.hero-logo.settled)~.hero-meta {
  animation-play-state: running;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── Section headings ─── */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--green);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--fg) 30%, var(--green) 70%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 560px;
  line-height: 1.8;
}

/* ─── About ─── */
#about .about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-top: 3rem;
}

.about-text {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.9;
}

.about-text strong {
  color: var(--fg);
  font-weight: 600;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: border-color 0.4s, box-shadow 0.4s;
}

.stat-card:hover {
  border-color: rgba(63, 185, 80, 0.15);
  box-shadow: 0 0 40px var(--green-dim), 0 0 60px rgba(35, 134, 54, 0.06);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--fg-muted);
  margin-top: 0.5rem;
  letter-spacing: 0.05em;
}

/* ─── Impact Ticker ─── */
#impact {
  padding: 0;
  border-top: none;
  border-bottom: none;
  overflow: hidden;
}

.impact-ticker {
  overflow: hidden;
  padding: 1.5rem 0;
  mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}

.impact-track {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: max-content;
  animation: tickerScroll 20s linear infinite;
}

.impact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.impact-item svg {
  color: var(--green);
  flex-shrink: 0;
}

.impact-item span {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: 0.02em;
}

.impact-sep {
  color: var(--fg-subtle);
  font-size: 1.2rem;
  flex-shrink: 0;
  user-select: none;
}

@keyframes tickerScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ─── Clients Carousel ─── */
.clients-carousel {
  margin-top: 3rem;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
}

.clients-track {
  display: flex;
  gap: 3rem;
  animation: clientScroll 30s linear infinite;
  width: max-content;
}

.client-logo {
  flex-shrink: 0;
  height: 90px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  opacity: 0.7;
  filter: brightness(1.6);
  transition: all 0.4s ease;
}

.client-logo:hover {
  filter: brightness(2);
  opacity: 1;
}

@keyframes clientScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ─── Case Studies ─── */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: border-color 0.4s, box-shadow 0.4s, transform 0.4s var(--ease);
}

.case-card:hover {
  border-color: rgba(63, 185, 80, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 40px var(--green-dim);
}

.case-logo {
  height: 80px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  margin: 0 auto 1.25rem;
  display: block;
  filter: brightness(2);
  opacity: 1;
  transition: opacity 0.4s ease;
}

.case-card:hover .case-logo {
  opacity: 1;
}

.case-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--green);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.case-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.75rem;
}

.case-card p {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

.case-result {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.case-metric {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fg);
  display: block;
}

.case-metric-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
}

/* ─── News ─── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

/* ─── Press (blockquote editorial) ─── */
.press-quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.press-quote {
  display: block;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  position: relative;
  text-decoration: none;
  transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}

.press-quote:hover {
  border-color: rgba(34, 211, 238, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 40px var(--cyan-dim);
}

.press-quote::before {
  content: '\201C';
  font-family: 'Syne', serif;
  font-size: 4rem;
  color: var(--cyan);
  opacity: 0.15;
  position: absolute;
  top: 0.5rem;
  left: 1.25rem;
  line-height: 1;
}

.pq-text {
  font-size: 0.88rem;
  color: var(--fg);
  line-height: 1.7;
  margin-top: 1rem;
  font-style: italic;
}

.pq-source {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pq-source-line {
  width: 20px;
  height: 1px;
  background: var(--cyan);
}

.pq-source-name {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--cyan);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pq-arrow {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.7rem;
  color: var(--fg-subtle);
  opacity: 0;
  transition: opacity 0.3s, color 0.3s;
}

.press-quote:hover .pq-arrow {
  opacity: 1;
  color: var(--cyan);
}

.news-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  text-decoration: none;
  transition: border-color 0.4s, box-shadow 0.4s, transform 0.4s var(--ease);
}

.news-card:hover {
  border-color: rgba(34, 211, 238, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 40px var(--cyan-dim);
}

.news-date {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--fg-subtle);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.news-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

.news-card:hover h3 {
  color: var(--cyan);
}

.news-card p {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ─── Services ─── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: border-color 0.4s, box-shadow 0.4s, transform 0.4s var(--ease);
  position: relative;
}

.service-card:hover {
  border-color: rgba(63, 185, 80, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 50px var(--green-dim);
}

.service-card:nth-child(2):hover {
  border-color: rgba(34, 211, 238, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 50px var(--cyan-dim);
}

.service-card:nth-child(2) .service-icon {
  color: var(--cyan);
}

.service-card:nth-child(2):hover .service-icon {
  color: #1aa3b8;
}

.service-icon {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--green);
  margin-bottom: 1.25rem;
  letter-spacing: 0.05em;
  transition: color 0.3s;
}

.service-card:hover .service-icon {
  color: var(--green-deep);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

.service-stack {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.service-stack span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--fg-subtle);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  letter-spacing: 0.02em;
}

/* ─── Innovation Challenge ─── */
#innovation {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 30%, var(--bg-card) 50%, var(--bg-alt) 70%, var(--bg) 100%);
}

.innovation-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

/* Timeline cards */
.timeline-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  text-decoration: none;
  position: relative;
  transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
  cursor: default;
}

a.timeline-card {
  cursor: pointer;
}

a.timeline-card:hover {
  border-color: rgba(63, 185, 80, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), 0 0 40px var(--green-dim);
  color: var(--fg);
}

.card-arrow {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 0.7rem;
  color: var(--fg-subtle);
  opacity: 0;
  transform: translate(-2px, 2px);
  transition: opacity 0.3s, transform 0.3s, color 0.3s;
}

a.timeline-card:hover .card-arrow {
  opacity: 1;
  transform: translate(0, 0);
  color: var(--green);
}

/* Winner cards — green top border */
.timeline-card.winner {
  border-top: 2px solid var(--green);
}

/* Finalist cards — cyan top border */
.timeline-card.finalist {
  border-top: 2px solid var(--cyan);
}

.timeline-year {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.5rem;
}

.timeline-result {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.timeline-card.winner .timeline-result {
  color: var(--green);
}

.timeline-card.finalist .timeline-result {
  color: var(--cyan);
}

.timeline-card.participant .timeline-result {
  color: var(--fg-muted);
}

.timeline-desc {
  font-size: 0.7rem;
  color: var(--fg-muted);
  line-height: 1.4;
}

.timeline-project {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--fg);
  letter-spacing: 0.03em;
  margin-bottom: 0.4rem;
  font-weight: 500;
}

a.timeline-card:hover .timeline-project {
  color: var(--green);
}

.highlight-link {
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.highlight-link:hover {
  border-bottom-color: var(--green);
}

.timeline-card.skip {
  opacity: 0.7;
}

.timeline-skip-icon {
  color: var(--fg-subtle);
  margin: 0.25rem 0 0.4rem;
}

.result-icon {
  vertical-align: middle;
  margin-right: 0.15rem;
  position: relative;
  top: -1px;
}

.result-icon.winner-icon {
  color: var(--green);
}

.result-icon.finalist-icon {
  color: var(--cyan);
}

.timeline-card.skip .timeline-result,
.timeline-card.skip .timeline-project {
  color: var(--fg-subtle);
}

.timeline-card.skip .timeline-year {
  color: var(--fg-subtle);
}

.timeline-card.coming {
  border: 1px dashed var(--green-deep);
  animation: comingPulse 3s ease-in-out infinite;
}

@keyframes comingPulse {

  0%,
  100% {
    border-color: var(--green-deep);
    box-shadow: 0 0 0px transparent;
  }

  50% {
    border-color: var(--green);
    box-shadow: 0 0 20px var(--green-dim);
  }
}

.timeline-card.coming .timeline-result {
  color: var(--green);
  opacity: 0.7;
  font-style: italic;
}

.timeline-card.coming .timeline-project {
  color: var(--fg-muted);
  letter-spacing: 2px;
}

.timeline-card.coming .timeline-year {
  color: var(--fg-muted);
}

/* Innovation highlight */
.innovation-highlight {
  margin-top: 4rem;
  background: var(--bg-card);
  border: 1px solid rgba(74, 222, 128, 0.15);
  border-radius: 12px;
  padding: 2.5rem;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  box-shadow: 0 0 60px var(--green-dim);
}

.innovation-highlight .prize-amount {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--green);
  white-space: nowrap;
  line-height: 1;
}

.innovation-highlight .prize-amount small {
  font-size: 1.2rem;
  color: var(--fg-muted);
}

.innovation-highlight .prize-desc h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--fg);
  margin-bottom: 0.5rem;
}

.innovation-highlight .prize-desc p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* ─── Sectors ─── */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.sector-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: border-color 0.4s, transform 0.4s var(--ease), box-shadow 0.4s;
}

.sector-card:hover {
  border-color: rgba(63, 185, 80, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 40px var(--green-dim);
}

.sector-card:nth-child(2):hover,
.sector-card:nth-child(4):hover {
  border-color: rgba(34, 211, 238, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 40px var(--cyan-dim);
}

.sector-icon {
  display: block;
  margin-bottom: 1rem;
  color: var(--green);
  transition: color 0.3s;
}

.sector-card:nth-child(2) .sector-icon,
.sector-card:nth-child(4) .sector-icon {
  color: var(--cyan);
}

.sector-card:hover .sector-icon {
  color: var(--green-deep);
}

.sector-card:nth-child(2):hover .sector-icon,
.sector-card:nth-child(4):hover .sector-icon {
  color: #1aa3b8;
}

.sector-card h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.5rem;
}

.sector-card p {
  font-size: 0.8rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ─── Pill Cloud ─── */
.pill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.pill-tag {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg-muted);
  border: 1px solid var(--border);
  transition: border-color 0.3s, color 0.3s;
  letter-spacing: 0.02em;
}

.pill-tag:hover {
  border-color: var(--border-hover);
  color: var(--fg);
}

.pill-tag.green {
  background: var(--green-dim);
  color: var(--green);
  border-color: var(--green-glow);
}

.pill-tag.cyan {
  background: var(--cyan-dim);
  color: var(--cyan);
  border-color: var(--cyan-glow);
}

/* ─── Contact Form ─── */
.contact-form {
  max-width: 720px;
  margin: 0 auto 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--fg-subtle);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.form-group input {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--fg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input::placeholder {
  color: var(--fg-subtle);
}

.form-group input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-dim);
}

.contact-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--bg);
  background: var(--green);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.4s;
  text-decoration: none;
  letter-spacing: 0.05em;
}

.contact-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--green-glow);
  color: var(--bg);
}

.contact-details {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 3rem;
}

.contact-details a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--fg-muted);
}

.contact-details a:hover {
  color: var(--green);
}

/* ─── Footer ─── */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  text-align: center;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}

.footer-logo svg {
  width: 24px;
  height: 24px;
}

.footer-logo span {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 5px;
  color: var(--fg-muted);
  transform: scaleY(0.82);
}

footer p {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--fg-subtle);
  letter-spacing: 0.05em;
}

footer .footer-cisco {
  margin-top: 0.5rem;
  font-size: 0.65rem;
  color: var(--fg-subtle);
}

/* ─── Scroll animations ─── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger>* {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal-stagger.visible>*:nth-child(1) {
  transition-delay: 0s;
}

.reveal-stagger.visible>*:nth-child(2) {
  transition-delay: 0.08s;
}

.reveal-stagger.visible>*:nth-child(3) {
  transition-delay: 0.16s;
}

.reveal-stagger.visible>*:nth-child(4) {
  transition-delay: 0.24s;
}

.reveal-stagger.visible>*:nth-child(5) {
  transition-delay: 0.32s;
}

.reveal-stagger.visible>*:nth-child(6) {
  transition-delay: 0.4s;
}

.reveal-stagger.visible>*:nth-child(7) {
  transition-delay: 0.48s;
}

.reveal-stagger.visible>*:nth-child(8) {
  transition-delay: 0.56s;
}

.reveal-stagger.visible>* {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .innovation-timeline {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .innovation-timeline::before {
    display: none;
  }

  .timeline-item {
    padding-top: 0;
  }

  .timeline-dot {
    display: none;
  }

  .sectors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  section {
    padding: 5rem 0;
  }

  .container {
    padding: 0 1.25rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .hero-wordmark {
    font-size: 2.5rem;
    letter-spacing: 10px;
  }

  .hero-logo-frame {
    width: 180px;
    height: 180px;
  }

  .hero-logo {
    width: 120px;
    height: 80px;
  }

  .cases-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .press-quotes {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 14, 20, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1rem 2rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  #about .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .innovation-timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .innovation-highlight {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

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

  .impact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .pill-cloud {
    gap: 8px;
  }

  .pill-tag {
    font-size: 0.75rem;
    padding: 6px 14px;
  }

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

  .contact-details {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .innovation-timeline {
    grid-template-columns: 1fr 1fr;
  }

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

  .hero-wordmark {
    font-size: 2rem;
    letter-spacing: 8px;
  }
}