:root {
  --bg: #000000;
  --bg-alt: #0a0a0a;
  --surface: #111111;
  --line: rgba(255, 255, 255, 0.09);
  --text: #ffffff;
  --muted: #9a9a9f;
  --accent: #3b6dff;
  --accent-hi: #6b93ff;
  --accent-soft: rgba(59, 109, 255, 0.16);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --wide: "Jost", "Inter", system-ui, sans-serif;
  --max: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
em { font-style: italic; color: var(--accent-hi); }
::selection { background: var(--accent); color: var(--bg); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--wide);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent-hi);
  margin-bottom: 20px;
}
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  max-width: 900px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 34px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-family: var(--wide);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn:hover { background: var(--accent-hi); border-color: var(--accent-hi); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text); border-color: rgba(255, 255, 255, 0.5); }
.btn-ghost:hover { background: #fff; border-color: #fff; color: #000; }
.btn-small { padding: 11px 20px; font-size: 11px; }
.btn-full { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 40px;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 14px 40px;
  border-bottom-color: var(--line);
}
.logo { display: flex; align-items: center; }
.echo-logo {
  position: relative;
  display: inline-block;
  font-family: "Archivo", var(--sans);
  font-stretch: 125%;
  font-weight: 900;
  font-size: 22px;
  line-height: 0.86;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.echo-logo-front { position: relative; display: block; color: var(--text); }
.echo-logo-ghost {
  position: absolute; left: 0; top: 0;
  color: transparent;
  -webkit-text-stroke: 1px var(--accent);
  transform: translate(0, 0.16em);
  transition: transform 0.4s var(--ease);
}
.logo:hover .echo-logo-ghost { transform: translate(0.08em, 0.24em); }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a:not(.btn) {
  font-family: var(--wide);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
  position: relative;
}
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-links a:not(.btn):hover::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 0; width: 32px; height: 32px; cursor: pointer; position: relative; }
.nav-toggle span {
  position: absolute; left: 4px; right: 4px; height: 1px; background: var(--text);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.nav-toggle span:first-child { top: 12px; }
.nav-toggle span:last-child { top: 20px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 16px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 16px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 140px 0 100px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -20%; right: -10%;
  width: 70vw; height: 70vw;
  max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(59, 109, 255, 0.22) 0%, transparent 60%);
  filter: blur(40px);
  animation: drift 14s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes drift { to { transform: translate(-8%, 10%) scale(1.1); } }
.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 9vw, 128px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}
.hero-sub { max-width: 560px; font-size: 18px; color: var(--muted); margin-bottom: 44px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.scroll-cue {
  position: absolute; bottom: 36px; left: 50%;
  width: 1px; height: 56px;
  background: var(--line);
  overflow: hidden;
}
.scroll-cue span {
  position: absolute; top: -50%; left: 0; width: 100%; height: 50%;
  background: var(--accent);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue { to { top: 100%; } }

/* ---------- Sections ---------- */
.section { padding: 140px 0; }
.section-light { background: #fff; color: #000; }
.section-light .eyebrow { color: var(--accent); }
.section-light em { color: var(--accent); }
.section-head-split { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; flex-wrap: wrap; }
.section-lede { max-width: 380px; font-size: 16px; color: #555; }
.section-head { margin-bottom: 72px; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  max-width: 900px;
}
.about-grid p { color: var(--muted); font-size: 17px; }

.services { list-style: none; border-top: 2px solid #000; }
.service {
  display: grid;
  grid-template-columns: 90px minmax(0, 1.1fr) minmax(0, 1fr) 48px;
  align-items: center;
  gap: 32px;
  padding: 36px 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.14);
  position: relative;
  isolation: isolate;
  cursor: default;
}
.service::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.5s var(--ease);
  z-index: -1;
}
.service:hover::before { transform: scaleY(1); }
.service-num { font-family: var(--wide); font-size: 13px; letter-spacing: 0.2em; color: var(--accent); transition: color 0.3s; }
.service h3 {
  font-family: "Archivo", var(--sans);
  font-stretch: 125%;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(22px, 2.7vw, 38px);
  line-height: 1;
  letter-spacing: -0.01em;
  transition: transform 0.5s var(--ease);
}
.service p { color: #555; font-size: 15px; transition: color 0.3s; }
.service-arrow { font-size: 26px; justify-self: end; transition: transform 0.5s var(--ease); }
.service:hover, .service:hover .service-num, .service:hover p { color: #fff; }
.service:hover h3 { transform: translateX(10px); }
.service:hover .service-arrow { transform: translateX(-6px) rotate(-45deg); }

.process {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  counter-reset: step;
}
.process li { padding-top: 28px; border-top: 1px solid var(--line); counter-increment: step; position: relative; }
.process li::before {
  content: "0" counter(step);
  position: absolute; top: -12px; left: 0;
  background: var(--bg);
  padding-right: 12px;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.step { display: block; font-family: var(--serif); font-size: 34px; margin-bottom: 12px; }
.process p { color: var(--muted); font-size: 15px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.split-card {
  border-radius: 4px;
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.split-card:hover { transform: translateY(-6px); }
.split-card-blue { background: var(--accent); color: #fff; }
.split-card-blue:hover { box-shadow: 0 30px 80px -20px rgba(59, 109, 255, 0.55); }
.split-card-white { background: #fff; color: #000; }
.split-card-white:hover { box-shadow: 0 30px 80px -20px rgba(255, 255, 255, 0.25); }
.split-card .eyebrow { color: inherit; opacity: 0.75; }
.split-card h3 {
  font-family: "Archivo", var(--sans);
  font-stretch: 125%;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}
.split-card > p:not(.eyebrow) { opacity: 0.8; margin-bottom: 32px; }
.checklist { list-style: none; margin-bottom: 44px; flex: 1; }
.checklist li { padding: 15px 0; border-top: 1px solid currentColor; border-color: rgba(127, 127, 127, 0.35); font-size: 15px; font-weight: 400; display: flex; gap: 14px; }
.checklist li::before { content: "✦"; font-size: 11px; line-height: 2.1; }
.split-card-white .checklist li::before { color: var(--accent); }
.split-card .btn { align-self: flex-start; }
.btn-white { background: #fff; border-color: #fff; color: #000; }
.btn-white:hover { background: #000; border-color: #000; color: #fff; }
.btn-black { background: #000; border-color: #000; color: #fff; }
.btn-black:hover { background: var(--accent); border-color: var(--accent); }

.statement { padding: 160px 0; text-align: center; position: relative; overflow: hidden; }
.statement::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, var(--accent-soft), transparent 65%);
}
.statement-text {
  position: relative;
  font-family: var(--serif);
  font-size: clamp(34px, 5.5vw, 76px);
  line-height: 1.1;
  max-width: 1000px;
  margin: 0 auto;
}

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-copy > p:not(.eyebrow) { color: var(--muted); margin: 28px 0 32px; max-width: 420px; }
.contact-email {
  font-family: var(--serif);
  font-size: 26px;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
  transition: color 0.3s;
}
.contact-email:hover { color: var(--accent); }
.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.toggle { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border-radius: 2px; padding: 4px; border: 1px solid var(--line); }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle span {
  display: block; text-align: center; padding: 11px; border-radius: 1px;
  font-size: 14px; color: var(--muted); cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s;
}
.toggle input:checked + span { background: var(--accent); color: #fff; font-weight: 500; }
.toggle input:focus-visible + span { outline: 1px solid var(--accent); outline-offset: 2px; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 26px 0 10px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  resize: vertical;
  transition: border-color 0.3s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field label {
  position: absolute; left: 0; top: 24px;
  font-size: 15px; color: var(--muted);
  pointer-events: none;
  transition: top 0.25s var(--ease), font-size 0.25s var(--ease), color 0.25s;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  top: 2px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}
.form-note { font-size: 14px; color: var(--accent-hi); min-height: 1em; text-align: center; }
.form-note.is-error { color: #ff8a8a; }
.form-note a { color: #fff; text-decoration: underline; }
.contact-form .btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 48px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 28px; }
.footer-links a { font-size: 14px; color: var(--muted); transition: color 0.3s; }
.footer-links a:hover { color: var(--accent); }
.copyright { font-size: 13px; color: var(--muted); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-glow { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .service { grid-template-columns: 60px 1fr 40px; row-gap: 12px; }
  .service p { grid-column: 2 / 3; grid-row: 2; }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 56px; }
  .contact { grid-template-columns: 1fr; gap: 56px; }
}
@media (max-width: 760px) {
  .nav, .nav.scrolled { padding: 16px 20px; }
  .nav-toggle { display: block; z-index: 2; }
  .nav-links {
    /* explicit size: the scrolled nav's backdrop-filter makes it the containing block */
    position: fixed; top: 0; left: 0;
    width: 100vw; height: 100vh; height: 100dvh;
    flex-direction: column; justify-content: center; gap: 30px;
    background: var(--bg);
    opacity: 0; pointer-events: none;
    transition: opacity 0.4s var(--ease);
  }
  .nav-links.open { opacity: 1; pointer-events: auto; }
  .nav-links a:not(.btn) { font-size: 16px; color: var(--text); }
  .container { padding: 0 16px; }
  .section { padding: 96px 0; }
  .section-head { margin-bottom: 48px; }
  .hero-sub { font-size: 16px; }
  .hero-cta .btn { width: 100%; }
  .about-grid, .process, .split { grid-template-columns: 1fr; }
  .about-grid { gap: 20px; }
  .service { grid-template-columns: 44px 1fr 28px; gap: 12px 14px; padding: 28px 8px; }
  .service-arrow { font-size: 20px; }
  .split-card { padding: 40px 24px; }
  .contact-form { padding: 28px 20px; }
  .statement { padding: 110px 0; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ---------- Hero stats ---------- */
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 48px 72px;
  margin-top: 72px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.stat { display: flex; align-items: center; gap: 24px; }
.stat-num {
  font-family: var(--serif);
  font-size: clamp(64px, 8vw, 112px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.stat-num::first-letter { color: var(--accent-hi); }
.stat-label {
  font-family: var(--wide);
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.9;
  padding-left: 24px;
  border-left: 1px solid var(--accent);
}
@media (max-width: 760px) {
  .stats { margin-top: 56px; }
  .stat { gap: 18px; }
  .stat-label { font-size: 11px; padding-left: 18px; }
}

/* ---------- Hero echo pattern (from the brand banner) ---------- */
.hero-echo {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.04em;
  font-family: "Archivo", var(--sans);
  font-stretch: 125%;
  font-weight: 900;
  font-size: clamp(64px, 11vw, 168px);
  line-height: 0.9;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.07);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 45%, #000 100%);
}
.hero-echo div { transform: translateX(-18%); }
.hero-echo div:nth-child(even) { transform: translateX(-34%); }
.hero-echo div:nth-child(4) { -webkit-text-stroke-color: rgba(59, 109, 255, 0.28); }
.hero .container { position: relative; z-index: 1; }

/* ---------- Contact form: white card (matches the brand card) ---------- */
.contact-form { background: #fff; border-color: #fff; color: #000; }
.contact-form .toggle { background: #f1f1f1; border-color: transparent; }
.contact-form .toggle span { color: #666; }
.contact-form .toggle input:checked + span { background: var(--accent); color: #fff; }
.contact-form .field input, .contact-form .field textarea { color: #000; border-bottom-color: rgba(0, 0, 0, 0.16); }
.contact-form .field input:focus, .contact-form .field textarea:focus { border-bottom-color: var(--accent); }
.contact-form .field label { color: #666; }
.contact-form .field input:focus + label, .contact-form .field input:not(:placeholder-shown) + label,
.contact-form .field textarea:focus + label, .contact-form .field textarea:not(:placeholder-shown) + label { color: var(--accent); }
.contact-form .btn { background: #000; border-color: #000; color: #fff; }
.contact-form .btn:hover { background: var(--accent); border-color: var(--accent); }
.contact-form .form-note { color: var(--accent); }
.contact-form .form-note.is-error { color: #d12c2c; }
.contact-form .form-note a { color: #000; }
