/* ============================================
   FLiNKS — Design System
   ============================================ */

:root {
  /* Base palette — deep violet */
  --bg-0: oklch(0.13 0.025 285);
  --bg-1: oklch(0.17 0.035 285);
  --bg-2: oklch(0.22 0.045 285);
  --line: oklch(0.32 0.04 285 / 0.5);
  --line-strong: oklch(0.42 0.05 285 / 0.7);

  --fg-0: oklch(0.98 0.005 285);
  --fg-1: oklch(0.85 0.01 285);
  --fg-2: oklch(0.65 0.015 285);
  --fg-3: oklch(0.45 0.02 285);

  /* Accents */
  --violet: oklch(0.72 0.24 295);
  --violet-glow: oklch(0.72 0.24 295 / 0.45);
  --cyan: oklch(0.82 0.16 220);
  --cyan-glow: oklch(0.82 0.16 220 / 0.4);
  --signal: oklch(0.85 0.18 145); /* success/data green */

  --gradient-primary: linear-gradient(135deg, var(--violet) 0%, var(--cyan) 100%);

  /* Type */
  --font-display: "Space Grotesk", -apple-system, sans-serif;
  --font-body: "Inter", -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, monospace;

  /* Spacing */
  --gutter: 2rem;
  --section-py: clamp(5rem, 10vw, 9rem);

  /* Radii */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-0);
  color: var(--fg-0);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  cursor: none;
}

@media (max-width: 900px) {
  body { cursor: auto; }
}

/* Background grid + noise */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.25;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 800px 600px at 20% 10%, var(--violet-glow) 0%, transparent 60%),
    radial-gradient(ellipse 600px 400px at 80% 80%, var(--cyan-glow) 0%, transparent 60%);
  opacity: 0.5;
}

/* Custom cursor */
.cursor {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 16px var(--violet-glow);
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, background 0.2s ease;
  mix-blend-mode: screen;
}

.cursor-ring {
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--violet);
  transform: translate(-50%, -50%);
  transition: width 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), height 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.2s;
  opacity: 0.7;
}

.cursor.hover { width: 4px; height: 4px; }
.cursor-ring.hover { width: 64px; height: 64px; border-color: var(--cyan); }

@media (max-width: 900px) {
  .cursor, .cursor-ring { display: none; }
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
}

.display-xl {
  font-size: clamp(3.5rem, 11vw, 11rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.92;
}

.display-lg {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.display-md {
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-2);
  font-weight: 500;
}

.mono {
  font-family: var(--font-mono);
}

.muted { color: var(--fg-2); }
.dim { color: var(--fg-3); }

p { color: var(--fg-1); text-wrap: pretty; }

/* ============================================
   Layout helpers
   ============================================ */
.app {
  position: relative;
  z-index: 1;
}

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

.container-tight {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 4rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.section-head .label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.section-head .num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--violet);
  letter-spacing: 0.18em;
}

@media (max-width: 800px) {
  .section-head { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ============================================
   Logo
   ============================================ */
.logo {
  font-family: "Montserrat", var(--font-display);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.05em;
  font-size: 1.5rem;
  display: inline-flex;
  align-items: baseline;
  user-select: none;
  text-transform: uppercase;
}

.logo .l-i {
  display: inline-block;
  font-style: italic;
  text-transform: lowercase;
}

.logo-xl { font-size: clamp(6rem, 18vw, 16rem); }

/* ============================================
   Nav
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  background: oklch(0.13 0.025 285 / 0.6);
  border-bottom: 1px solid var(--line);
}

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

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-1);
  text-decoration: none;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.2s;
  cursor: none;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--violet);
  transition: width 0.3s ease;
}

.nav-link:hover, .nav-link.active { color: var(--fg-0); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-link .num {
  color: var(--fg-3);
  margin-right: 0.4rem;
  font-size: 0.65rem;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  color: var(--fg-1);
  cursor: none;
  transition: border-color 0.2s, color 0.2s;
}
.lang-toggle:hover { border-color: var(--violet); color: var(--fg-0); }
.lang-toggle .lang-active { color: var(--violet); }
.lang-toggle .lang-sep { color: var(--fg-3); }

@media (max-width: 800px) {
  .nav-links { display: none; }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 1rem 1.6rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--fg-0);
  cursor: none;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  position: relative;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--violet);
  transform: translateY(101%);
  transition: transform 0.4s cubic-bezier(0.7, 0, 0.3, 1);
  z-index: 0;
}

.btn > * { position: relative; z-index: 1; }

.btn:hover::before { transform: translateY(0); }
.btn:hover { border-color: var(--violet); color: white; }

.btn-primary {
  background: var(--violet);
  border-color: var(--violet);
  color: white;
}
.btn-primary::before { background: white; }
.btn-primary:hover { color: var(--bg-0); }

.btn .arrow {
  display: inline-block;
  transition: transform 0.3s;
}
.btn:hover .arrow { transform: translateX(4px); }

/* ============================================
   Hero
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 9rem 0 4rem;
  position: relative;
  border-bottom: 1px solid var(--line);
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-bottom: 3rem;
}

.hero-meta-block {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-width: 280px;
}

.hero-meta-block .k {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--fg-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-meta-block .v {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--fg-1);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 9rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.92;
  margin-bottom: 2rem;
}

.hero-headline .accent { color: var(--violet); font-style: italic; }
.hero-headline .accent-2 { color: var(--cyan); }

.hero-sub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

@media (max-width: 800px) {
  .hero-sub { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-meta { flex-wrap: wrap; }
}

.hero-sub p {
  font-size: 1rem;
  color: var(--fg-1);
  max-width: 42ch;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

/* Particle canvas */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.7;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* Char-by-char typing reveal */
.type-reveal .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.3em);
  transition: opacity 0.5s, transform 0.5s;
}
.type-reveal.in .char {
  opacity: 1;
  transform: none;
}

/* ============================================
   Marquee
   ============================================ */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.5rem 0;
  background: var(--bg-1);
}

.marquee-track {
  display: flex;
  gap: 4rem;
  animation: scroll 45s linear infinite;
  white-space: nowrap;
  width: max-content;
}

.marquee-item {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  letter-spacing: -0.03em;
  color: var(--fg-2);
  display: inline-flex;
  align-items: center;
  gap: 4rem;
}

.marquee-item .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 10px var(--violet-glow);
  flex-shrink: 0;
}

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================
   Pillars (services)
   ============================================ */
.pillars {
  display: grid;
  grid-template-columns: 1fr;
}

.pillar {
  display: grid;
  grid-template-columns: 80px 1fr 1.4fr auto;
  gap: 3rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
  align-items: start;
  cursor: none;
  transition: padding 0.4s ease, background 0.4s;
  position: relative;
}
.pillar:last-child { border-bottom: 1px solid var(--line); }

.pillar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--violet-glow) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.pillar:hover::before { opacity: 0.15; }
.pillar:hover { padding-left: 1rem; padding-right: 1rem; }

.pillar-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--violet);
  letter-spacing: 0.1em;
  padding-top: 0.6rem;
}

.pillar-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  transition: color 0.3s, transform 0.3s;
}

.pillar:hover .pillar-title { color: var(--violet); }

.pillar-desc {
  font-size: 0.95rem;
  color: var(--fg-2);
  max-width: 48ch;
}

.pillar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg-2);
  background: var(--bg-1);
}

.pillar-arrow {
  font-family: var(--font-mono);
  color: var(--fg-3);
  font-size: 1.2rem;
  padding-top: 0.4rem;
  transition: transform 0.3s, color 0.3s;
}
.pillar:hover .pillar-arrow { color: var(--violet); transform: rotate(-45deg); }

@media (max-width: 1000px) {
  .pillar { grid-template-columns: 60px 1fr; gap: 1rem 1.5rem; }
  .pillar-desc { grid-column: 1 / -1; padding-left: 76px; }
  .pillar-arrow { display: none; }
}

/* ============================================
   Cases
   ============================================ */
.cases {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (max-width: 800px) { .cases { grid-template-columns: 1fr; } }

.case {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-1);
  transition: border-color 0.3s, transform 0.4s;
  cursor: none;
}
.case:hover { border-color: var(--violet); transform: translateY(-4px); }

.case-image {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg,
      var(--bg-2) 0px,
      var(--bg-2) 2px,
      var(--bg-1) 2px,
      var(--bg-1) 14px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-image .placeholder-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--fg-3);
  letter-spacing: 0.06em;
  background: var(--bg-0);
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.case-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, var(--violet-glow), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}
.case:hover .case-image::after { opacity: 0.6; }

.case-body {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.case-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--fg-3);
  letter-spacing: 0.06em;
}

.case-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.case-results {
  display: flex;
  gap: 2rem;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.case-result .v {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--violet);
  letter-spacing: -0.02em;
}
.case-result .l {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--fg-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ============================================
   Process
   ============================================ */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 900px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .process { grid-template-columns: 1fr; } }

.process-step {
  padding: 2.5rem 1.5rem;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  min-height: 280px;
}
.process-step:last-child { border-right: none; }
@media (max-width: 900px) {
  .process-step:nth-child(2n) { border-right: none; }
  .process-step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

.process-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--violet);
  transition: width 0.6s;
}
.process-step.in::before { width: 100%; }

.step-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--violet);
  letter-spacing: 0.12em;
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.step-desc { font-size: 0.92rem; color: var(--fg-2); }

.step-icon {
  width: 28px;
  height: 28px;
  margin-bottom: auto;
}

/* ============================================
   Stack / Tech
   ============================================ */
.stack {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 900px) { .stack { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 500px) { .stack { grid-template-columns: repeat(2, 1fr); } }

.stack-item {
  background: var(--bg-1);
  padding: 1.8rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  text-align: center;
  transition: background 0.3s, color 0.3s;
  cursor: none;
  min-height: 130px;
}
.stack-item:hover {
  background: var(--bg-2);
  color: var(--violet);
}

.stack-glyph {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--fg-1);
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.04em;
  transition: border-color 0.3s, color 0.3s;
}
.stack-item:hover .stack-glyph { border-color: var(--violet); color: var(--violet); }

.stack-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--fg-2);
  letter-spacing: 0.04em;
}

/* ============================================
   Metrics
   ============================================ */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
@media (max-width: 900px) { .metrics { grid-template-columns: repeat(2, 1fr); } }

.metric {
  padding: 2.5rem 1.5rem;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}
.metric:last-child { border-right: 1px solid var(--line); }
.metrics > .metric { border-bottom: 1px solid var(--line); }
@media (max-width: 900px) {
  .metric:nth-child(2) { border-right: 1px solid var(--line); }
  .metric:last-child { border-right: 1px solid var(--line); }
}

.metric-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--fg-0);
}
.metric-num .unit { color: var(--violet); }

.metric-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--fg-2);
  letter-spacing: 0.04em;
  margin-top: 1rem;
}

/* ============================================
   Testimonials
   ============================================ */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) { .testimonials { grid-template-columns: 1fr; } }

.testimonial {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 2rem;
  background: var(--bg-1);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: border-color 0.3s, transform 0.4s;
}
.testimonial:hover { border-color: var(--violet); }

.testimonial blockquote {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: var(--fg-0);
}

.testimonial-author {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: white;
  flex-shrink: 0;
}

.testimonial-author .info { display: flex; flex-direction: column; }
.testimonial-author .name { font-weight: 500; font-size: 0.9rem; }
.testimonial-author .role { font-family: var(--font-mono); font-size: 0.72rem; color: var(--fg-3); }

/* ============================================
   FAQ
   ============================================ */
.faq {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-q {
  width: 100%;
  background: transparent;
  border: none;
  padding: 1.6rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  text-align: left;
  cursor: none;
  color: var(--fg-0);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color 0.3s;
}
.faq-q:hover { color: var(--violet); }

.faq-q .icon {
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--fg-2);
  transition: transform 0.4s, border-color 0.3s, color 0.3s;
  flex-shrink: 0;
}
.faq-item.open .faq-q .icon { transform: rotate(45deg); border-color: var(--violet); color: var(--violet); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.4s ease;
}
.faq-item.open .faq-a {
  max-height: 400px;
  padding-bottom: 1.6rem;
}
.faq-a p { color: var(--fg-2); max-width: 70ch; }

/* ============================================
   CTA
   ============================================ */
.cta-final {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 8rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 600px 400px at center, var(--violet-glow), transparent 70%);
  opacity: 0.4;
  pointer-events: none;
}

.cta-final-headline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2.5rem, 7vw, 6rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 2.5rem;
  text-wrap: balance;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  border-top: 1px solid var(--line);
  padding: 5rem 0 2rem;
  background: var(--bg-0);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 3rem;
  margin-bottom: 4rem;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
  font-weight: 500;
  margin-bottom: 1.2rem;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a {
  color: var(--fg-1);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
  cursor: none;
}
.footer-col a:hover { color: var(--violet); }

.footer-newsletter input {
  width: 100%;
  padding: 0.9rem 1rem;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg-0);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  cursor: none;
}
.footer-newsletter input:focus { border-color: var(--violet); }
.footer-newsletter input::placeholder { color: var(--fg-3); }

.footer-newsletter form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}
.footer-newsletter button {
  flex-shrink: 0;
  padding: 0.7rem 1.2rem;
  background: var(--violet);
  color: white;
  border: none;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: none;
  transition: background 0.2s;
}
.footer-newsletter button:hover { background: var(--cyan); color: var(--bg-0); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--fg-3);
  letter-spacing: 0.04em;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 8px var(--signal);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ============================================
   Forms (contact)
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 3rem; } }

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.field label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.field input,
.field textarea,
.field select {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0;
  color: var(--fg-0);
  font-family: var(--font-body);
  font-size: 1.1rem;
  outline: none;
  transition: border-color 0.2s;
  cursor: none;
  resize: vertical;
}
.field input:focus,
.field textarea:focus,
.field select:focus { border-color: var(--violet); }

.field textarea { min-height: 100px; }

.budget-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--fg-1);
  cursor: none;
  transition: all 0.2s;
}
.chip:hover { border-color: var(--fg-2); }
.chip.active { background: var(--violet); border-color: var(--violet); color: white; }

.contact-info-block {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}
.contact-info-block:last-child { border-bottom: none; }
.contact-info-block .k {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--fg-3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}
.contact-info-block .v {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg-0);
}

/* ============================================
   Page transitions
   ============================================ */
.page-enter {
  opacity: 0;
  transform: translateY(20px);
}
.page-enter-active {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s, transform 0.5s;
}

.page-wipe {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  background: var(--violet);
  z-index: 200;
  transform: translateY(100%);
  visibility: hidden;
  pointer-events: none;
}
.page-wipe.active {
  visibility: visible;
  animation: wipe 0.9s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}
@keyframes wipe {
  0% { transform: translateY(100%); }
  50% { transform: translateY(0); }
  100% { transform: translateY(-100%); }
}

/* ============================================
   Utilities
   ============================================ */
a { color: inherit; cursor: none; }
button { cursor: none; }
@media (max-width: 900px) {
  a, button, .btn, .nav-link, .pillar, .case, .stack-item, .chip { cursor: pointer; }
}

::selection { background: var(--violet); color: white; }

/* About page hero */
.about-hero {
  padding-top: 12rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--line);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 800px) { .values-grid { grid-template-columns: 1fr; } }

.value-card {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--bg-1);
  transition: border-color 0.3s, transform 0.4s;
}
.value-card:hover { border-color: var(--violet); transform: translateY(-3px); }

.value-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--violet);
  letter-spacing: 0.12em;
}

.value-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .team-grid { grid-template-columns: 1fr; } }

.team-member {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.team-photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-md);
  background:
    repeating-linear-gradient(135deg,
      var(--bg-2) 0px,
      var(--bg-2) 2px,
      var(--bg-1) 2px,
      var(--bg-1) 14px);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.team-photo .placeholder-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--fg-3);
  letter-spacing: 0.06em;
  background: var(--bg-0);
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.team-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.team-role {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--fg-3);
  letter-spacing: 0.04em;
}

/* Services page detail */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  padding: 5rem 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
@media (max-width: 900px) { .service-detail { grid-template-columns: 1fr; gap: 2rem; } }

.service-detail-num {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px var(--violet);
  line-height: 1;
}

.service-detail h3 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.service-detail p {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  max-width: 65ch;
  color: var(--fg-1);
}

.deliverables-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem 2rem;
  margin-top: 2rem;
}
@media (max-width: 600px) { .deliverables-list { grid-template-columns: 1fr; } }

.deliverables-list li {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--fg-1);
  padding-left: 1.4rem;
  position: relative;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
}

.deliverables-list li::before {
  content: '+';
  position: absolute;
  left: 0;
  color: var(--violet);
}
