:root {
  --ink: #0a1628;
  --ink-2: #132338;
  --paper: #f3f6f9;
  --band: #e8eef4;
  --line: rgba(10, 22, 40, 0.12);
  --muted: #5a6b7d;
  --teal: #0f766e;
  --teal-bright: #14b8a6;
  --on-dark: #e8eef4;
  --on-dark-muted: rgba(232, 238, 244, 0.72);
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --pad: clamp(20px, 4vw, 48px);
  --wrap: 1120px;
  --radius: 14px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: #fff;
  padding: 8px 12px;
  z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

.wrap {
  width: min(100% - 2 * var(--pad), var(--wrap));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header .wrap {
  position: relative;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 1;
}

.nav-brand:hover { color: #fff; }

.brand-mark-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal-bright);
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  margin-left: auto;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: #fff;
  border-radius: 1px;
}

.nav-toggle-bars {
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.site-nav a {
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--on-dark-muted);
  text-decoration: none;
  padding: 8px 14px;
  line-height: 1.2;
  white-space: nowrap;
  transition: color 0.15s;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #fff;
}

.nav-cta {
  margin-left: 8px;
  padding: 8px 16px !important;
  border: 1px solid var(--teal-bright) !important;
  color: #fff !important;
  border-radius: 8px !important;
}

.nav-cta:hover {
  background: rgba(20, 184, 166, 0.18) !important;
  color: #fff !important;
}

body.nav-open { overflow: hidden; }

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: flex-end;
  padding: clamp(48px, 10vh, 96px) 0 clamp(56px, 12vh, 110px);
  color: var(--on-dark);
  overflow: hidden;
  background: var(--ink);
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 70% 20%, rgba(20, 184, 166, 0.28), transparent 55%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(15, 118, 110, 0.35), transparent 50%),
    linear-gradient(165deg, #0a1628 0%, #0f2744 45%, #0a1628 100%);
}

.hero-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 2 * var(--pad), 720px);
  margin-left: max(var(--pad), calc((100% - var(--wrap)) / 2));
  margin-right: var(--pad);
  animation: rise 0.8s ease-out;
}

.brand-mark {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin: 0 0 28px;
  color: #fff;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.45rem, 3.2vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  max-width: 24ch;
  color: var(--on-dark);
}

.hero-lead {
  margin: 0 0 28px;
  max-width: 40ch;
  font-size: 1.05rem;
  color: var(--on-dark-muted);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-hero {
  min-height: auto;
  align-items: flex-end;
  padding: 72px 0 56px;
}

.page-hero .hero-inner {
  max-width: var(--wrap);
  margin-inline: auto;
  width: min(100% - 2 * var(--pad), var(--wrap));
}

.page-hero .brand-mark {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 16px;
}

.page-hero h1 {
  max-width: 22ch;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--teal-bright);
  color: var(--ink);
  border-color: var(--teal-bright);
}

.btn-primary:hover {
  background: #2dd4bf;
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.btn-dark {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.btn-dark:hover {
  background: var(--ink-2);
  color: #fff;
}

.btn-block { width: 100%; }

/* Sections */
.section {
  padding: clamp(64px, 10vw, 112px) 0;
}

.section-band { background: var(--band); }

.eyebrow {
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 12px;
}

.section h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.75rem, 3.5vw, 2.55rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin: 0 0 14px;
  max-width: 20ch;
}

.section-lead {
  margin: 0 0 40px;
  max-width: 46ch;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Work list */
.work-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.work-list li {
  padding: 28px 28px 28px 0;
  border-bottom: 1px solid var(--line);
}

.work-list li:nth-child(odd) {
  padding-right: 36px;
  border-right: 1px solid var(--line);
}

.work-list li:nth-child(even) { padding-left: 36px; }

.work-list h3 {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.work-list p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

/* Outcomes */
.outcome-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 32px;
}

.outcome-grid h3 {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.outcome-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.step-num {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--teal);
  margin-bottom: 12px;
}

.steps h3 {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

/* Fit */
.fit-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
}

.fit-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fit-list li {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 1.05rem;
}

.fit-list li:last-child { border-bottom: 1px solid var(--line); }
.fit-list strong { color: var(--ink); font-weight: 600; }

/* Markets */
.markets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.markets li {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  background: #fff;
}

/* CTA band */
.cta-band {
  background: var(--ink);
  color: var(--on-dark);
  padding: clamp(56px, 8vw, 88px) 0;
}

.cta-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.cta-band h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
  margin: 0 0 10px;
  max-width: 16ch;
  color: #fff;
}

.cta-band p {
  margin: 0;
  max-width: 36ch;
  color: var(--on-dark-muted);
}

/* Contact */
.section-contact {
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(20, 184, 166, 0.12), transparent 50%),
    var(--paper);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: start;
}

.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-points {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-points li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.98rem;
}

.contact-points li:last-child { border-bottom: 1px solid var(--line); }
.contact-points strong { color: var(--ink); font-weight: 600; }

.contact-email {
  margin: 0;
  color: var(--muted);
}

.contact-email a {
  display: inline-block;
  margin-top: 4px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
}

.contact-email a:hover { color: var(--teal); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: var(--serif);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.form-note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.form-toast {
  display: none;
  padding: 12px 14px;
  border-radius: 10px;
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 600;
}

.form-toast.is-visible { display: block; }
.form-toast--ok { background: #ecfdf5; color: #065f46; }
.form-toast--err { background: #fef2f2; color: #991b1b; }

/* Legal / prose pages */
.prose {
  max-width: 720px;
}

.prose h2 {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 36px 0 12px;
  max-width: none;
}

.prose h3 {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 28px 0 10px;
}

.prose p,
.prose li {
  color: var(--muted);
  font-size: 1.02rem;
}

.prose p { margin: 0 0 14px; }

.prose ul {
  margin: 0 0 16px;
  padding-left: 1.2em;
}

.prose li { margin-bottom: 8px; }

.prose a { font-weight: 600; }

.legal-meta {
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 28px;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--on-dark-muted);
  padding: 56px 0 0;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px 64px;
  padding-bottom: 40px;
}

.footer-brand-block {
  max-width: 320px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 12px;
  text-decoration: none;
  line-height: 1;
}

.footer-brand:hover { color: #fff; }

.footer-blurb {
  margin: 0 0 16px;
  font-size: 0.95rem;
  line-height: 1.55;
}

.footer-email {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--teal-bright);
  text-decoration: none;
}

.footer-email:hover { color: #fff; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 56px;
}

.footer-col h3 {
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232, 238, 244, 0.45);
  margin: 0 0 14px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li { margin-bottom: 10px; }

.footer-col a {
  color: var(--on-dark-muted);
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.3;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}

.footer-bottom p { margin: 0; opacity: 0.65; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-legal a {
  color: var(--on-dark-muted);
  text-decoration: none;
}

.footer-legal a:hover { color: #fff; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px var(--pad) 16px;
    background: var(--ink);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 12px 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-cta {
    margin: 12px 0 0 !important;
    text-align: center;
    border-radius: 8px !important;
  }

  .footer-top {
    flex-direction: column;
    gap: 36px;
  }

  .footer-nav {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 24px;
  }

  .work-list { grid-template-columns: 1fr; }
  .work-list li:nth-child(odd),
  .work-list li:nth-child(even) {
    padding: 24px 0;
    border-right: 0;
  }
  .steps,
  .outcome-grid { grid-template-columns: 1fr; gap: 28px; }
  .fit-split,
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-form { padding: 20px; }
}

@media (max-width: 520px) {
  .footer-nav { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-inner {
    animation: none !important;
  }
}
