:root {
  --bg: #f6f3ec;
  --bg-soft: #efeae0;
  --ink: #14161a;
  --ink-soft: #55524a;
  --line: #dcd6c8;
  --accent: #1d3fd8;
  --accent-ink: #16309f;
  --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: "Space Grotesk", sans-serif; letter-spacing: -0.03em; line-height: 1.05; }
.mono { font-family: "IBM Plex Mono", monospace; }
a { color: inherit; text-decoration: none; }
section { padding: 96px 6vw; max-width: 1200px; margin: 0 auto; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 6vw;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.25rem; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; gap: 28px; font-size: 0.95rem; color: var(--ink-soft); }
.nav-links a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.lang-toggle {
  font-family: "IBM Plex Mono", monospace; font-size: 0.8rem;
  background: none; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px; cursor: pointer; color: var(--ink-soft);
}
.lang-toggle .on { color: var(--accent); font-weight: 600; }
.lang-toggle .sep { opacity: 0.4; padding: 0 3px; }
.cta-nav {
  background: var(--ink); color: var(--bg);
  padding: 9px 18px; border-radius: 999px; font-size: 0.9rem; font-weight: 500;
  transition: transform 0.15s ease, background 0.2s;
}
.cta-nav:hover { background: var(--accent); }
.cta-nav:active { transform: scale(0.97); }

/* HERO */
.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px;
  align-items: center; padding-top: 88px; padding-bottom: 72px;
}
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); font-weight: 700; }
.hero-copy p { margin: 22px 0 34px; font-size: 1.15rem; color: var(--ink-soft); max-width: 46ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  display: inline-block; background: var(--accent); color: #fff;
  padding: 14px 28px; border-radius: 12px; font-weight: 600; font-size: 1rem;
  border: none; cursor: pointer;
  box-shadow: 0 6px 18px rgba(29, 63, 216, 0.25);
  transition: transform 0.15s ease, background 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { background: var(--accent-ink); box-shadow: 0 8px 24px rgba(29, 63, 216, 0.3); }
.btn-primary:active { transform: translateY(1px) scale(0.98); }
.btn-ghost {
  display: inline-block; padding: 14px 24px; border-radius: 12px;
  border: 1.5px solid var(--ink); font-weight: 600; font-size: 1rem;
  transition: background 0.2s, color 0.2s;
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

.arc-card {
  background: #fffdf8; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 22px 20px; box-shadow: 0 20px 50px rgba(20, 22, 26, 0.07);
}
.arc { width: 100%; height: auto; }
.arc-draw { stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 1.8s ease-out forwards 0.3s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.pulse { animation: pulse 2.4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.35); opacity: 0.6; } }
.arc-legend { display: flex; justify-content: space-between; margin-top: 14px; font-size: 0.82rem; color: var(--ink-soft); }
.arc-legend div { display: flex; align-items: center; gap: 7px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.d1 { background: var(--ink); } .d2 { background: var(--accent); } .d3 { background: var(--accent); outline: 3px solid rgba(29,63,216,0.2); }

/* REALITY */
.reality { border-top: 1px solid var(--line); }
.reality h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); max-width: 22ch; margin-bottom: 48px; }
.reality-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-left: 1px solid var(--line); }
.stat { padding: 8px 24px 8px 24px; border-right: 1px solid var(--line); }
.stat strong { font-family: "Space Grotesk", sans-serif; font-size: 3rem; font-weight: 700; color: var(--accent); display: block; margin-bottom: 8px; }
.stat p { font-size: 0.9rem; color: var(--ink-soft); }

/* METHOD */
.method { border-top: 1px solid var(--line); }
.method h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.method-intro { margin: 18px 0 52px; color: var(--ink-soft); max-width: 60ch; }
.phases { display: flex; flex-direction: column; gap: 0; }
.phase {
  display: grid; grid-template-columns: 220px 180px 1fr; gap: 24px;
  padding: 34px 0; border-top: 1px solid var(--line); align-items: start;
}
.phase-tag { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; color: var(--ink-soft); }
.phase-tag .mono:first-child { font-size: 1.6rem; color: var(--accent); font-weight: 500; }
.phase h3 { font-size: 2rem; }
.phase p { color: var(--ink-soft); max-width: 62ch; }

/* DELIVERABLES */
.deliverables { border-top: 1px solid var(--line); }
.deliverables h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 44px; max-width: 24ch; }
.del-list { list-style: none; columns: 2; column-gap: 56px; }
.del-list li {
  padding: 14px 0 14px 34px; border-bottom: 1px solid var(--line);
  break-inside: avoid; position: relative; color: var(--ink-soft); font-size: 0.98rem;
}
.del-list li::before {
  content: ""; position: absolute; left: 4px; top: 21px;
  width: 14px; height: 14px; border-radius: 4px;
  background: var(--accent); opacity: 0.9;
  clip-path: polygon(14% 44%, 0 65%, 40% 100%, 100% 16%, 80% 0%, 38% 62%);
}

/* WHY */
.why { border-top: 1px solid var(--line); }
.why-inner { background: var(--ink); color: #efece4; border-radius: 20px; padding: clamp(36px, 6vw, 72px); }
.why h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-bottom: 24px; max-width: 24ch; }
.why p { color: #b8b4a8; max-width: 68ch; margin-bottom: 16px; }
.why-quote { margin-top: 36px; border-left: 3px solid var(--accent); padding-left: 24px; }
.why-quote p { font-family: "Space Grotesk", sans-serif; font-size: 1.25rem; color: #efece4; line-height: 1.4; }

/* CONTACT */
.contact { border-top: 1px solid var(--line); display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; }
.contact-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-bottom: 18px; }
.contact-head p { color: var(--ink-soft); max-width: 42ch; }
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; margin-bottom: 18px; }
.field label { font-size: 0.85rem; font-weight: 600; margin-bottom: 7px; }
.field input, .field textarea {
  font: inherit; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 10px; background: #fffdf8; color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(29, 63, 216, 0.15);
}
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }
.btn-submit { width: 100%; }
.form-note { margin-top: 12px; font-size: 0.9rem; min-height: 1.4em; color: var(--ink-soft); }
.form-note.ok { color: #15803d; }
.form-note.err { color: #b91c1c; }

/* FOOTER */
.footer {
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  padding: 28px 6vw; color: var(--ink-soft); font-size: 0.9rem; flex-wrap: wrap; gap: 10px;
}
.foot-brand { font-family: "Space Grotesk", sans-serif; font-weight: 700; color: var(--ink); margin-right: 12px; }
.foot-project { display: block; margin-top: 6px; font-size: 0.8rem; opacity: 0.75; }
.foot-links { display: flex; gap: 22px; font-weight: 500; }
.foot-links a:hover { color: var(--accent); }
.project-note {
  margin-top: 18px; font-size: 0.82rem; color: var(--ink-soft);
  border-left: 3px solid var(--accent); padding-left: 12px; opacity: 0.85;
}

/* Reveal */
.reveal { transform: translateY(18px); opacity: 0.001; transition: transform 0.7s ease, opacity 0.7s ease; }
.reveal.in { transform: none; opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .arc-draw { animation: none; stroke-dashoffset: 0; }
  .pulse { animation: none; }
  .reveal { transform: none; opacity: 1; transition: none; }
}

/* MOBILE */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 48px; }
  .reality-grid { grid-template-columns: 1fr 1fr; border-left: none; }
  .stat { border-right: none; border-top: 1px solid var(--line); padding: 18px 4px; }
  .phase { grid-template-columns: 1fr; gap: 10px; }
  .del-list { columns: 1; }
  .contact { grid-template-columns: 1fr; gap: 28px; }
  form .row { grid-template-columns: 1fr; }
  section { padding: 64px 6vw; }
}
