/* ============================================
   3i·LYUDI — Performance Marketing Studio
   Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200;300;400;500;600;700;800&family=IBM+Plex+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  /* Palette — cool graphite + warm orange + electric blue accent */
  --c-bg: #f5f5f4;
  --c-bg-alt: #ebebe9;
  --c-paper: #ffffff;
  --c-ink: #181818;
  --c-graphite: #2a2a2a;
  --c-ink-soft: #3a3a3a;
  --c-mute: #6b6b6b;
  --c-line: #d8d8d6;
  --c-accent: #ff5a1f;
  --c-accent-deep: #cc4717;
  --c-electric: #2c5cff;
  --c-electric-soft: #4a73ff;
  --c-mono-bg: #1a1a1a;

  --f-display: 'Manrope', system-ui, sans-serif;
  --f-body: 'IBM Plex Sans', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;

  --max-w: 1280px;
  --max-w-wide: 1440px;
  --max-w-narrow: 800px;

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px -8px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 24px 48px -16px rgba(0, 0, 0, 0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4, h5 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--c-ink);
}

h1 {
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}
h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 600; letter-spacing: -0.03em; }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* Monospace tag */
.tag-mono {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--c-accent);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.tag-mono::before {
  content: '◆';
  font-size: 0.6em;
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}
.container-wide { max-width: var(--max-w-wide); margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: var(--max-w-narrow); margin: 0 auto; padding: 0 2rem; }

section { padding: 7rem 0; position: relative; }
@media (max-width: 768px) { section { padding: 4.5rem 0; } }
@media (max-width: 600px) { .container, .container-wide, .container-narrow { padding: 0 1.25rem; } }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 245, 244, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--c-line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 38px; height: 38px;
  background: var(--c-ink);
  color: var(--c-accent);
  display: grid; place-items: center;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: 6px;
  letter-spacing: -0.05em;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.05; gap: 2px; }
.logo-text strong { font-weight: 700; color: var(--c-ink); }
.logo-text small {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-mute);
}

.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--c-ink-soft);
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--c-accent); }
.nav-links a.active { color: var(--c-ink); font-weight: 600; }
.nav-links a.active::before {
  content: '';
  position: absolute;
  top: 0; left: -8px;
  width: 4px; height: 4px;
  background: var(--c-accent);
  border-radius: 50%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  background: var(--c-electric);
  color: white;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: var(--c-ink); transform: translateY(-1px); }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 6px;
  border: 1px solid var(--c-line);
  background: transparent;
  align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  content: '';
  display: block;
  width: 18px; height: 2px;
  background: var(--c-ink);
  position: relative;
  transition: transform 0.25s, top 0.25s, bottom 0.25s;
}
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after { position: absolute; bottom: -6px; }
.menu-toggle.is-open span { background: transparent; }
.menu-toggle.is-open span::before { top: 0; transform: rotate(45deg); }
.menu-toggle.is-open span::after { bottom: 0; transform: rotate(-45deg); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.65rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--f-body);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--c-electric);
  color: white;
}
.btn-primary:hover { background: var(--c-ink); transform: translateY(-2px); }
.btn-secondary {
  background: transparent;
  color: var(--c-ink);
  border: 1.5px solid var(--c-ink);
}
.btn-secondary:hover { background: var(--c-ink); color: var(--c-paper); }
.btn-ghost {
  background: transparent;
  color: var(--c-ink);
}
.btn-ghost:hover { color: var(--c-accent); }
.btn-arrow svg { transition: transform 0.25s; }
.btn-arrow:hover svg { transform: translateX(4px); }

/* Hero — full width, centered */
.hero {
  padding: 7rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero-inner { text-align: left; max-width: 1100px; }
.hero h1 {
  font-size: clamp(2.8rem, 8.5vw, 6.5rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin: 1.5rem 0 1.5rem;
}
.hero h1 .accent { color: var(--c-accent); }
.hero h1 .strike {
  text-decoration: line-through;
  text-decoration-color: var(--c-electric);
  text-decoration-thickness: 0.08em;
  color: var(--c-mute);
}
.hero-lead {
  font-size: 1.2rem;
  color: var(--c-ink-soft);
  max-width: 56ch;
  margin: 0 0 2.5rem;
  font-weight: 400;
}
.hero-actions { display: flex; gap: 0.85rem; flex-wrap: wrap; }

.hero-bg-orb {
  position: absolute;
  right: -200px; top: -100px;
  width: 540px; height: 540px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 90, 31, 0.14), transparent 65%);
  pointer-events: none;
}
.hero-bg-grid {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(24, 24, 24, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 24, 24, 0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: -1;
}

/* Stats strip — under hero, full width, mono numbers */
.stats-strip {
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  background: var(--c-paper);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-cell {
  padding: 2rem;
  border-right: 1px solid var(--c-line);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.stat-cell:last-child { border-right: none; }
.stat-cell .num {
  font-family: var(--f-mono);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--c-ink);
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat-cell .num .unit { color: var(--c-accent); }
.stat-cell .label {
  font-size: 0.82rem;
  color: var(--c-mute);
  margin-top: 0.4rem;
  line-height: 1.35;
}

/* Manifest section */
.manifest {
  background: var(--c-graphite);
  color: var(--c-paper);
  position: relative;
  overflow: hidden;
}
.manifest::before {
  content: '';
  position: absolute;
  left: -200px; bottom: -200px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(44, 92, 255, 0.18), transparent 60%);
}
.manifest-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
  position: relative;
  z-index: 1;
}
.manifest-grid h2 { color: var(--c-paper); }
.manifest-grid .tag-mono { color: var(--c-accent); }
.manifest-grid p { color: rgba(255, 255, 255, 0.78); font-size: 1.05rem; }
.manifest-quote {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--c-paper);
  margin-bottom: 2rem;
}
.manifest-quote .highlight {
  background: linear-gradient(180deg, transparent 60%, rgba(255, 90, 31, 0.5) 60%);
  padding: 0 0.1em;
}

/* Section header */
.section-head { max-width: 760px; margin-bottom: 4rem; }
.section-head h2 { margin-top: 0.85rem; }
.section-head p {
  margin-top: 1.5rem;
  color: var(--c-ink-soft);
  font-size: 1.08rem;
  max-width: 64ch;
}
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.centered p { margin-left: auto; margin-right: auto; }
.section-head.between {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  max-width: none;
  gap: 3rem;
  flex-wrap: wrap;
}
.section-head.between > div:first-child { max-width: 720px; }

/* Services — three-column with mono numbers */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
}
.service-card {
  background: var(--c-paper);
  padding: 2.5rem 2rem;
  transition: background 0.3s;
  display: flex; flex-direction: column;
  min-height: 340px;
  position: relative;
}
.service-card:hover { background: var(--c-bg-alt); }
.service-card .num-mono {
  font-family: var(--f-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--c-accent);
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
}
.service-card h3 {
  font-family: var(--f-display);
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}
.service-card p { color: var(--c-ink-soft); flex-grow: 1; font-size: 0.95rem; }
.service-card .arrow {
  display: inline-flex;
  width: 36px; height: 36px;
  border: 1px solid var(--c-line);
  border-radius: 50%;
  align-items: center; justify-content: center;
  margin-top: 1.5rem;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.service-card:hover .arrow {
  background: var(--c-ink);
  border-color: var(--c-ink);
  color: var(--c-accent);
}

/* Service detail rows (services page) */
.service-detail {
  padding: 4rem 0;
  border-bottom: 1px solid var(--c-line);
  display: grid;
  grid-template-columns: 0.25fr 1fr 1fr;
  gap: 3rem;
}
.service-detail:last-child { border-bottom: none; }
.service-detail .index {
  font-family: var(--f-mono);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--c-accent);
  letter-spacing: 0.02em;
}
.service-detail h3 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}
.service-detail .lead {
  color: var(--c-ink-soft);
  font-size: 1.05rem;
  margin-bottom: 0;
}
.service-detail .body { font-size: 0.96rem; line-height: 1.7; }
.service-detail .body p { color: var(--c-ink-soft); }
.service-detail .body ul { margin: 1.25rem 0 0 0; list-style: none; padding: 0; }
.service-detail .body li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--c-ink-soft);
  border-bottom: 1px dashed var(--c-line);
}
.service-detail .body li:last-child { border-bottom: none; }
.service-detail .body li::before {
  content: '+';
  position: absolute; left: 0;
  color: var(--c-accent);
  font-family: var(--f-mono);
  font-weight: 700;
}

/* Process — horizontal timeline */
.process-section { background: var(--c-bg-alt); }
.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 1rem;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 24px; left: 8%; right: 8%;
  height: 2px;
  background: linear-gradient(90deg, var(--c-accent), var(--c-electric));
  z-index: 0;
}
.timeline-step {
  position: relative;
  padding-top: 4rem;
  padding-right: 1.5rem;
}
.timeline-step .dot {
  position: absolute;
  top: 16px; left: 0;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--c-paper);
  border: 3px solid var(--c-ink);
  z-index: 1;
}
.timeline-step.active .dot { background: var(--c-accent); border-color: var(--c-accent); }
.timeline-step .step-label {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--c-mute);
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}
.timeline-step h4 {
  font-family: var(--f-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.timeline-step p { font-size: 0.88rem; color: var(--c-ink-soft); line-height: 1.5; }

/* Cases */
.cases-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.case-block {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: 0;
  padding: 2.5rem;
  transition: border-color 0.3s, transform 0.3s;
  position: relative;
}
.case-block:hover { border-color: var(--c-ink); transform: translateY(-2px); }
.case-block .tag {
  display: inline-flex;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  background: transparent;
  color: var(--c-electric);
  border: 1px solid var(--c-electric);
  border-radius: 4px;
  width: max-content;
  margin-bottom: 1.5rem;
}
.case-block h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
}
.case-block .metric-row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin: 1.5rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.case-block .metric {
  font-family: var(--f-mono);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--c-accent);
  letter-spacing: -0.03em;
  line-height: 1;
}
.case-block .metric-label {
  font-size: 0.85rem;
  color: var(--c-mute);
  max-width: 22ch;
}
.case-block p { color: var(--c-ink-soft); font-size: 0.94rem; }

/* Team page roles */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
}
.role-card {
  background: var(--c-paper);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.role-card .role-num {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  color: var(--c-mute);
  letter-spacing: 0.06em;
}
.role-card h3 { font-size: 1.5rem; font-weight: 600; }
.role-card p { color: var(--c-ink-soft); font-size: 0.94rem; }
.role-card .meta {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  color: var(--c-accent);
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px dashed var(--c-line);
}

/* Method / Approach */
.method-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.method-item {
  padding: 2rem;
  border: 1px solid var(--c-line);
  background: var(--c-paper);
  border-radius: 0;
  position: relative;
}
.method-item .index {
  font-family: var(--f-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--c-accent);
  display: block;
  margin-bottom: 0.85rem;
  letter-spacing: -0.04em;
}
.method-item h4 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.method-item p { color: var(--c-ink-soft); font-size: 0.94rem; }

/* CTA block */
.cta-block {
  background: var(--c-ink);
  color: var(--c-paper);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
.cta-block::after {
  content: '';
  position: absolute;
  right: -150px; top: -150px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 90, 31, 0.22), transparent 65%);
}
.cta-block-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.cta-block h2 {
  color: var(--c-paper);
  font-size: clamp(1.8rem, 4.2vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.cta-block .btn-primary { background: var(--c-accent); color: var(--c-paper); }
.cta-block .btn-primary:hover { background: var(--c-paper); color: var(--c-ink); }

/* Footer */
.site-footer {
  background: var(--c-mono-bg);
  color: rgba(255, 255, 255, 0.72);
  padding: 5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 3rem;
  margin-bottom: 4rem;
}
.footer-brand .logo { color: var(--c-paper); margin-bottom: 1rem; }
.footer-brand .logo-mark { background: var(--c-paper); color: var(--c-ink); }
.footer-brand .logo-text strong { color: var(--c-paper); }
.footer-brand .logo-text small { color: rgba(255, 255, 255, 0.5); }
.footer-brand p { color: rgba(255, 255, 255, 0.62); font-size: 0.92rem; }

.footer-col h5 {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; display: grid; gap: 0.6rem; }
.footer-col a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.93rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--c-accent); }

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}
.footer-legal p { margin: 0; max-width: 65ch; line-height: 1.6; }
.footer-disclaimer {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  margin-top: 0.75rem !important;
  color: rgba(255, 255, 255, 0.4);
}

/* Page head */
.page-head {
  padding: 5rem 0 3rem;
  border-bottom: 1px solid var(--c-line);
  background: var(--c-paper);
}
.page-head h1 {
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  font-weight: 700;
  margin: 1rem 0;
  letter-spacing: -0.035em;
}
.page-head .lead {
  color: var(--c-ink-soft);
  font-size: 1.15rem;
  max-width: 55ch;
}

/* Prose (legal) */
.prose { max-width: 740px; margin: 0 auto; font-size: 1rem; line-height: 1.75; color: var(--c-ink-soft); }
.prose h2 { font-size: 1.7rem; margin: 3rem 0 1rem; color: var(--c-ink); font-weight: 600; }
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 1.18rem;
  margin: 2rem 0 0.75rem;
  color: var(--c-ink);
  font-family: var(--f-body);
  font-weight: 700;
}
.prose p { margin-bottom: 1.15em; }
.prose ul, .prose ol { margin: 0 0 1.5em 1.5em; }
.prose li { margin-bottom: 0.45em; }
.prose a {
  color: var(--c-electric);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.prose a:hover { color: var(--c-accent); }
.prose strong { color: var(--c-ink); font-weight: 600; }
.prose code {
  font-family: var(--f-mono);
  font-size: 0.88em;
  background: var(--c-bg-alt);
  padding: 0.15em 0.4em;
  border-radius: 3px;
}
.prose-meta {
  font-family: var(--f-mono);
  font-size: 0.82rem;
  color: var(--c-mute);
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--c-accent);
  background: var(--c-bg-alt);
  margin-bottom: 3rem;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.92rem;
}
.prose th, .prose td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--c-line);
  vertical-align: top;
}
.prose th { background: var(--c-bg-alt); font-weight: 600; color: var(--c-ink); font-family: var(--f-mono); font-size: 0.85rem; }

/* FAQ */
.faq-list { display: grid; gap: 0; max-width: 820px; margin: 0 auto; }
.faq-item { border-top: 1px solid var(--c-line); padding: 0.5rem 0; }
.faq-item:last-child { border-bottom: 1px solid var(--c-line); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
  font-family: var(--f-display);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--c-ink);
  padding: 1.25rem 0;
  letter-spacing: -0.015em;
}
.faq-q .icon {
  width: 32px; height: 32px;
  border-radius: 4px;
  border: 1px solid var(--c-line);
  display: grid; place-items: center;
  font-size: 1rem;
  font-family: var(--f-mono);
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform 0.25s, background 0.2s, color 0.2s, border-color 0.2s;
}
.faq-item.open .faq-q .icon {
  background: var(--c-accent);
  color: var(--c-paper);
  transform: rotate(45deg);
  border-color: var(--c-accent);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  color: var(--c-ink-soft);
}
.faq-a-inner { padding: 0.5rem 0 1.5rem; max-width: 64ch; }
.faq-item.open .faq-a { max-height: 500px; }

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
}
.contact-info-block { margin-bottom: 2.5rem; }
.contact-info-block h5 {
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 0.5rem;
}
.contact-info-block p { color: var(--c-ink); font-size: 1.02rem; line-height: 1.6; }
.contact-info-block a:hover { color: var(--c-accent); }

.contact-form {
  background: var(--c-paper);
  padding: 3rem;
  border: 1px solid var(--c-line);
  border-radius: 0;
}
.form-row { display: grid; gap: 1.25rem; margin-bottom: 1.25rem; }
.form-row.two { grid-template-columns: 1fr 1fr; }
.form-field label {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--c-ink);
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--c-ink);
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: 4px;
  transition: border 0.2s, background 0.2s;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--c-electric);
  background: var(--c-paper);
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--c-ink-soft);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}
.form-consent input { margin-top: 0.25rem; flex-shrink: 0; }
.form-consent a { color: var(--c-electric); text-decoration: underline; }
.form-success {
  display: none;
  padding: 1.25rem;
  background: #e6f0e6;
  border-left: 3px solid #4a9358;
  color: #1f5230;
  margin-bottom: 1.25rem;
  font-size: 0.92rem;
}
.form-success.show { display: block; }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 1.25rem; left: 1.25rem; right: 1.25rem;
  max-width: 480px;
  margin-left: auto;
  background: var(--c-ink);
  color: var(--c-paper);
  padding: 1.25rem 1.5rem;
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  display: none;
  border-top: 3px solid var(--c-accent);
}
.cookie-banner.show { display: block; }
.cookie-banner h5 {
  font-family: var(--f-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.cookie-banner p { font-size: 0.85rem; color: rgba(255, 255, 255, 0.72); margin-bottom: 1rem; }
.cookie-banner a { color: var(--c-accent); text-decoration: underline; }
.cookie-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.cookie-actions .btn { padding: 0.5rem 1rem; font-size: 0.82rem; }
.cookie-actions .btn-primary { background: var(--c-accent); color: white; }
.cookie-actions .btn-primary:hover { background: var(--c-paper); color: var(--c-ink); }
.cookie-actions .btn-secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--c-paper);
}

/* Mobile */
@media (max-width: 980px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(2) { border-right: none; }
  .stat-cell:nth-child(1), .stat-cell:nth-child(2) { border-bottom: 1px solid var(--c-line); }
  .manifest-grid, .cta-block-inner, .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .services-grid { grid-template-columns: 1fr; }
  .roles-grid, .method-list { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
  .timeline::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .service-detail { grid-template-columns: 1fr; gap: 1.5rem; padding: 3rem 0; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: 72px; left: 0; right: 0; bottom: 0;
    background: var(--c-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    transform: translateY(-110%);
    transition: transform 0.3s ease;
    z-index: 40;
    border-top: 1px solid var(--c-line);
    overflow-y: auto;
  }
  .nav-links.is-open { transform: translateY(0); }
  .nav-links a { font-size: 1.4rem; font-family: var(--f-display); }
  .nav-links .nav-cta { font-size: 0.95rem; margin-top: 1rem; }
  .menu-toggle { display: inline-flex; }

  .hero { padding: 3rem 0 4rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-cell { border-right: none; border-bottom: 1px solid var(--c-line); }
  .stat-cell:last-child { border-bottom: none; }
  .timeline { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-legal { flex-direction: column; }
  .case-block, .service-card, .role-card, .method-item, .contact-form { padding: 1.75rem; }
  .cookie-banner { left: 1rem; right: 1rem; }
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-stagger.in > * { opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
}
.no-js .reveal, .no-js .reveal-stagger > * { opacity: 1; transform: none; }
