/* Zythera.ai — shared stylesheet */
:root {
  --ink: #0E1116;
  --ink-soft: #2a2d34;
  --paper: #F4F1EA;
  --paper-soft: #EDE8DC;
  --paper-deep: #E4DFCF;
  --violet: oklch(0.55 0.22 295);
  --violet-soft: oklch(0.72 0.18 295);
  --violet-deep: oklch(0.38 0.20 295);
  --line: rgba(14,17,22,0.12);
  --line-strong: rgba(14,17,22,0.25);
  --muted: rgba(14,17,22,0.58);
  --muted-soft: rgba(14,17,22,0.42);

  --serif: 'Fraunces', 'Times New Roman', serif;
  --sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
.serif { font-family: var(--serif); font-variation-settings: 'opsz' 144; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.container-sm {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Nav */
.nav {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(244,241,234,0.88);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  max-width: 1400px; margin: 0 auto;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo .wordmark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.6px;
  font-variation-settings: 'opsz' 144;
}
.nav-logo .dot { color: var(--violet); }
.nav-links {
  display: flex; gap: 28px; align-items: center;
}
.nav-links a {
  font-size: 13.5px;
  color: var(--ink);
  opacity: 0.7;
  transition: opacity 0.15s, color 0.15s;
  position: relative;
}
.nav-links a:hover { opacity: 1; color: var(--violet); }
.nav-links a.active { opacity: 1; }
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -22px;
  height: 1.5px; background: var(--ink);
}
.nav-links a.nav-cta,
a.nav-cta {
  padding: 8px 16px !important;
  background: var(--ink) !important;
  color: var(--paper) !important;
  opacity: 1 !important;
  font-size: 13px;
  border-radius: 2px;
  transition: background 0.15s;
}
.nav-links a.nav-cta:hover,
a.nav-cta:hover { background: var(--violet-deep) !important; color: var(--paper) !important; opacity: 1 !important; }

/* Hero type */
.display {
  font-family: var(--serif);
  font-weight: 500;
  font-variation-settings: 'opsz' 144;
  letter-spacing: -0.03em;
  line-height: 0.98;
}
.display-xl { font-size: clamp(56px, 9vw, 128px); }
.display-l  { font-size: clamp(44px, 6.5vw, 88px); }
.display-m  { font-size: clamp(32px, 4.5vw, 56px); }
.display-s  { font-size: clamp(24px, 3vw, 36px); }

h1,h2,h3,h4 { font-family: var(--serif); font-weight: 500; font-variation-settings: 'opsz' 144; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }

.lede {
  font-size: 20px; line-height: 1.5; color: var(--muted);
  max-width: 640px;
}

/* Section */
section.band {
  padding: 120px 0;
  border-top: 1px solid var(--line);
}
section.band.tight { padding: 80px 0; }
section.band.alt { background: var(--paper-soft); }
section.band.ink { background: var(--ink); color: var(--paper); border-color: rgba(244,241,234,0.1); }
section.band.ink .muted { color: rgba(244,241,234,0.6); }
section.band.ink .eyebrow { color: rgba(244,241,234,0.55); }

/* Grid */
.grid { display: grid; gap: 32px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
}

/* Service card */
.svc {
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: border-color 0.18s, background 0.18s;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 240px;
}
.svc:hover { border-color: var(--ink); }
.svc .num {
  font-family: var(--mono); font-size: 11px;
  color: var(--muted); letter-spacing: 2px;
}
.svc h3 {
  font-family: var(--serif); font-size: 26px; font-weight: 500;
  letter-spacing: -0.5px; line-height: 1.05;
}
.svc p { font-size: 14px; color: var(--muted); line-height: 1.55; }
.svc .arrow {
  margin-top: auto; font-size: 13px; display: flex; align-items: center; gap: 6px;
  color: var(--ink);
}
.svc:hover .arrow { color: var(--violet); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-size: 14px; font-weight: 500;
  border-radius: 2px;
  transition: transform 0.12s, background 0.15s, color 0.15s;
}
.btn-primary { background: var(--ink); color: var(--paper) !important; }
.btn-primary:hover { background: var(--violet-deep); color: var(--paper) !important; }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn .arrow { font-size: 16px; }

/* Footer */
footer.foot {
  background: var(--ink); color: var(--paper);
  padding: 80px 0 36px;
}
footer.foot .foot-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 800px) { footer.foot .foot-grid { grid-template-columns: 1fr 1fr; } }
footer.foot h5 {
  font-family: var(--mono); font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(244,241,234,0.5);
  margin-bottom: 16px; font-weight: 400;
}
footer.foot a { display: block; padding: 5px 0; font-size: 14px; color: rgba(244,241,234,0.78); transition: color 0.15s; }
footer.foot a:hover { color: var(--violet-soft); }
footer.foot .foot-bottom {
  margin-top: 60px; padding-top: 24px;
  border-top: 1px solid rgba(244,241,234,0.14);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11px;
  color: rgba(244,241,234,0.5); letter-spacing: 1.5px;
}
footer.foot .foot-logo {
  font-family: var(--serif); font-size: 28px; font-weight: 500;
  font-variation-settings: 'opsz' 144; color: var(--paper);
  letter-spacing: -0.8px;
  margin-bottom: 16px;
}
footer.foot .foot-logo .dot { color: var(--violet-soft); }

/* Case card */
.case {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 32px;
  display: flex; flex-direction: column; gap: 18px;
  min-height: 320px;
  transition: border-color 0.18s;
}
.case:hover { border-color: var(--ink); }
.case .tag { font-family: var(--mono); font-size: 10px; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; }
.case h3 { font-size: 28px; line-height: 1.05; }
.case .metric {
  display: flex; align-items: baseline; gap: 10px; margin-top: auto;
}
.case .metric-n { font-family: var(--serif); font-size: 48px; font-weight: 500; letter-spacing: -2px; color: var(--violet); line-height: 1; font-variation-settings: 'opsz' 144; }
.case .metric-l { font-size: 12px; color: var(--muted); }

/* Quote */
.quote {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.3; letter-spacing: -0.5px;
  color: var(--ink);
  font-variation-settings: 'opsz' 144;
}
.quote-attr { margin-top: 18px; display: flex; align-items: center; gap: 12px; }
.quote-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--paper-deep); }
.quote-name { font-size: 13px; font-weight: 500; }
.quote-role { font-size: 12px; color: var(--muted); }

/* List row */
.list-row {
  display: grid;
  grid-template-columns: 60px 1fr 1fr auto;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.list-row:hover h3 { color: var(--violet); }
.list-row h3 { font-size: 32px; letter-spacing: -0.8px; transition: color 0.15s; }
.list-row .ln { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.list-row p { font-size: 14px; color: var(--muted); line-height: 1.5; }
@media (max-width: 800px) { .list-row { grid-template-columns: 40px 1fr; } .list-row > *:nth-child(3), .list-row > *:nth-child(4) { display: none; } }

/* Marquee of clients */
.marquee {
  overflow: hidden; position: relative;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.marquee-track {
  display: flex; gap: 60px; align-items: center;
  animation: marq 30s linear infinite;
  width: max-content;
}
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-item {
  font-family: var(--serif); font-weight: 500; font-size: 22px;
  color: var(--muted); letter-spacing: -0.5px; white-space: nowrap;
  font-variation-settings: 'opsz' 144;
}

/* Hero interlock — subtle breathing */
@keyframes breatheL { 0%,100% { transform: translateX(0); } 50% { transform: translateX(-2px); } }
@keyframes breatheR { 0%,100% { transform: translateX(0); } 50% { transform: translateX(2px); } }
@keyframes pulseVes { 0%,100% { fill-opacity: 0.22; } 50% { fill-opacity: 0.40; } }
.il-l { animation: breatheL 4s ease-in-out infinite; transform-origin: center; }
.il-r { animation: breatheR 4s ease-in-out infinite; transform-origin: center; }
.il-v { animation: pulseVes 4s ease-in-out infinite; }

/* Utilities */
.hr { border: 0; height: 1px; background: var(--line); margin: 48px 0; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 100px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--muted);
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--violet); }
