/* ==========================================================================
   Snare — landing page
   ========================================================================== */

@font-face {
  font-family: "Selawik";
  src: url("fonts/selawkl.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Selawik";
  src: url("fonts/selawk.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Selawik";
  src: url("fonts/selawksl.ttf") format("truetype");
  font-weight: 350;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Selawik";
  src: url("fonts/selawksb.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Selawik";
  src: url("fonts/selawkb.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --green-900: #042e28;       /* deeper, for footer */
  --green-800: #064139;       /* primary background */
  --green-700: #05664B;       /* secondary surfaces */
  --green-600: #0a7a5d;       /* hover / borders */
  --mint:      #A1E8BD;
  --mint-soft: rgba(161, 232, 189, 0.18);
  --mint-line: rgba(161, 232, 189, 0.32);
  --slate:     #384252;
  --grey-50:   #F3F4F6;
  --white-90:  rgba(255, 255, 255, 0.92);
  --white-70:  rgba(255, 255, 255, 0.70);
  --white-50:  rgba(255, 255, 255, 0.50);
  --white-12:  rgba(255, 255, 255, 0.12);
  --white-08:  rgba(255, 255, 255, 0.08);

  --max-w: 1200px;
  --gutter: clamp(20px, 4vw, 56px);

  --font: "Selawik", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--green-800);
  color: var(--white-90);
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

/* ---- Type system ----------------------------------------------------- */

.eyebrow {
  display: inline-block;
  color: var(--mint);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: lowercase;
  line-height: 1;
  margin: 0;
}

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: #fff;
  margin: 0;
  text-wrap: balance;
}

.h-display {
  font-size: clamp(44px, 7.6vw, 104px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.h-section {
  font-size: clamp(34px, 4.8vw, 60px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.02;
}

.lede {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.5;
  color: var(--white-70);
  font-weight: 400;
  max-width: 60ch;
  text-wrap: pretty;
}

/* ---- Layout ---------------------------------------------------------- */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

section {
  position: relative;
}

.section-pad {
  padding-top: clamp(64px, 8vw, 116px);
  padding-bottom: clamp(64px, 8vw, 116px);
}

.eyebrow-block {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.eyebrow-block::before {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  background: var(--mint);
}

/* ---- Nav ------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 65, 57, 0.78);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--white-08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.brand-mark {
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 16px;
  color: #fff;
}
.brand-tag {
  color: var(--white-50);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  color: var(--white-70);
  font-size: 14.5px;
  transition: color .18s ease;
}
.nav-links a:hover { color: #fff; }
.nav-links a.nav-cta {
  background: var(--mint);
  border: 1px solid var(--mint);
  color: var(--green-800);
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 14px;
  transition: all .2s ease;
}
.nav-links a.nav-cta:hover { background: #b8efcc; color: var(--green-800); }

@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ---- Buttons / form ------------------------------------------------- */

.email-form {
  display: flex;
  align-items: stretch;
  gap: 8px;
  background: var(--white-08);
  border: 1px solid var(--white-12);
  border-radius: 999px;
  padding: 6px;
  max-width: 520px;
  transition: border-color .2s ease, background .2s ease;
}
.email-form:focus-within {
  border-color: var(--mint-line);
  background: rgba(255,255,255,0.10);
}
.email-form input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  padding: 12px 18px;
  min-width: 0;
}
.email-form input::placeholder { color: var(--white-50); }
.email-form .btn-primary {
  white-space: nowrap;
}
.btn-primary {
  background: var(--mint);
  color: var(--green-800);
  border: 0;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  letter-spacing: -0.005em;
  transition: transform .15s ease, background .2s ease;
}
.btn-primary:hover { background: #b8efcc; }
.btn-primary:active { transform: translateY(1px); }

.form-note {
  color: var(--white-50);
  font-size: 13px;
  margin-top: 14px;
}
.form-note .check { color: var(--mint); }

.form-success {
  color: var(--mint);
  font-size: 14px;
  margin-top: 14px;
  display: none;
}
.form-success.show { display: block; }

/* ---- Hero ------------------------------------------------------------ */

.hero {
  padding-top: clamp(80px, 12vw, 140px);
  padding-bottom: clamp(80px, 12vw, 160px);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 64px;
}
.hero h1 {
  margin-top: 24px;
  margin-bottom: 28px;
}
.hero .lede {
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--white-70);
  max-width: 56ch;
  margin-bottom: 40px;
}
.hero-meta {
  margin-top: 56px;
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  color: var(--white-50);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.hero-meta strong {
  display: block;
  color: var(--white-90);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

/* faint hairline grid behind hero */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 96px 100%;
  mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
}

/* ---- Correspondence Map (centerpiece) ------------------------------- */

.map-section {
  background: var(--green-800);
  border-top: 1px solid var(--white-08);
  border-bottom: 1px solid var(--white-08);
}
.map-header {
  max-width: 760px;
  margin-bottom: clamp(72px, 9vw, 120px);
}
.map-header .lede {
  margin-top: 28px;
}

.map {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  position: relative;
  border-top: 1px solid var(--white-08);
}
.map-row {
  display: grid;
  grid-template-columns: 1fr 56px 1fr;
  align-items: stretch;
  border-bottom: 1px solid var(--white-08);
  position: relative;
  transition: background .25s ease;
}
.map-row:hover { background: rgba(255,255,255,0.015); }
.map-row:hover .map-arrow .map-arrow-line { background: var(--mint); }
.map-row:hover .map-arrow .map-arrow-tip { border-left-color: var(--mint); }
.map-row:hover .side-now .side-title { color: var(--mint); }

.map-side {
  padding: clamp(28px, 3.5vw, 48px) clamp(20px, 3vw, 40px);
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 168px;
}
.side-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border: 1px solid var(--white-12);
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--white-70);
  background: rgba(255,255,255,0.02);
  transition: all .25s ease;
}
.map-row:hover .side-now .side-icon {
  border-color: var(--mint-line);
  color: var(--mint);
  background: var(--mint-soft);
}
.side-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white-50);
  margin-bottom: 10px;
  font-weight: 400;
}
.side-then .side-label { color: var(--white-50); }
.side-now .side-label { color: var(--mint); }
.side-title {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: #fff;
  margin: 0 0 6px;
  transition: color .25s ease;
}
.side-sub {
  color: var(--white-50);
  font-size: 14px;
  line-height: 1.45;
  max-width: 36ch;
}

.side-then {
  border-right: 1px dashed var(--white-12);
}
.side-then .side-title { color: var(--white-90); font-weight: 400; }

.map-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.map-arrow-line {
  width: 100%;
  height: 1px;
  background: var(--white-12);
  position: relative;
  transition: background .25s ease;
}
.map-arrow-tip {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid var(--white-12);
  transition: border-left-color .25s ease;
}

@media (max-width: 760px) {
  .map-row {
    grid-template-columns: 1fr;
    padding: 12px 0;
  }
  .map-side { min-height: 0; padding: 18px 0; }
  .side-then { border-right: 0; border-bottom: 1px dashed var(--white-12); }
  .map-arrow {
    height: 56px;
    transform: rotate(90deg);
    width: 40px;
    margin: 0 auto;
  }
}

/* ---- Product showcase ----------------------------------------------- */

.showcase {
  background-color: var(--green-800);
  padding-top: clamp(64px, 8vw, 116px);
  padding-bottom: clamp(64px, 8vw, 116px);
  position: relative;
}
/* the 'why we built' block now lives inside the showcase section */
.showcase .why-inner { margin-top: clamp(56px, 7vw, 96px); }
.showcase .eyebrow-block { margin-bottom: 64px; }

.showcase-shot {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.30),
    0 30px 60px rgba(0, 0, 0, 0.40);
}
.showcase-shot img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 720px) {
  .showcase-shot { border-radius: 10px; }
}

/* ---- Capabilities --------------------------------------------------- */

.capabilities {
  background: var(--green-800);
}
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: clamp(56px, 7vw, 88px);
  border-top: 1px solid var(--white-12);
  border-left: 1px solid var(--white-12);
}
.cap {
  padding: clamp(28px, 3vw, 44px);
  border-right: 1px solid var(--white-12);
  border-bottom: 1px solid var(--white-12);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  transition: background .2s ease;
}
.cap:hover { background: rgba(255,255,255,0.025); }
.cap-icon {
  width: 36px;
  height: 36px;
  color: var(--mint);
  margin-bottom: 32px;
}
.cap-title {
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}
.cap-title .figure {
  color: var(--mint);
  font-variant-numeric: tabular-nums;
}
.cap-body {
  color: var(--white-70);
  font-size: 15.5px;
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 980px) { .cap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cap-grid { grid-template-columns: 1fr; } }

/* ---- Engineer / credibility ---------------------------------------- */

.builder {
  background: var(--green-800);
}
.builder-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(48px, 6vw, 96px);
  align-items: start;
}
.builder-card {
  border: 1px solid var(--white-12);
  border-radius: 16px;
  padding: 32px;
  background: rgba(255,255,255,0.02);
}
.builder-portrait {
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--white-08);
  margin-bottom: 20px;
}
.builder-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  display: block;
}
.builder-name {
  font-size: 19px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}
.builder-creds {
  font-size: 13px;
  color: var(--mint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 400;
}
.builder h2 { margin-bottom: 32px; }
.builder p {
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--white-70);
  max-width: 60ch;
  line-height: 1.55;
}
.builder p + p { margin-top: 22px; }
.builder blockquote {
  margin: 40px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--white-12);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 400;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.4;
  max-width: 56ch;
  text-wrap: pretty;
}

@media (max-width: 820px) {
  .builder-grid { grid-template-columns: 1fr; }
}

/* ---- Final CTA ------------------------------------------------------ */

.final {
  background: var(--green-800);
  border-top: 1px solid var(--white-08);
  text-align: left;
}
.final-inner {
  max-width: 720px;
}
.final h2 { margin-bottom: 32px; }
.final .lede { margin-bottom: 40px; }

/* Centered final CTA with screenshot */
.final-centered { max-width: 1060px; margin: 0 auto; text-align: center; }
.final-centered .eyebrow-block { justify-content: center; }
.final-centered .h-section { margin-left: auto; margin-right: auto; }
.final-centered .lede { margin-left: auto; margin-right: auto; max-width: 60ch; margin-bottom: 48px; }
.final-centered .hero-actions { justify-content: center; }
.final-shot { max-width: 1000px; margin: 0 auto 48px; }
.final-shot .pwindow { width: 100%; }
.final-free-note { margin: 0; font-size: clamp(15px, 1.3vw, 17px); color: var(--white-70); }

/* ---- Footer --------------------------------------------------------- */

.footer {
  background: var(--green-900);
  padding: 56px 0 40px;
  font-size: 13px;
  color: var(--white-50);
  border-top: 1px solid var(--white-08);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-end;
}
.footer-brand .brand-mark { font-size: 14px; }
.footer-brand .brand-tag { display: block; margin-top: 6px; }
.footer-meta { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-meta a:hover { color: var(--white-90); }

/* ---- Reveal --------------------------------------------------------- */

/* JS adds .reveal-ready once the observer is wired so nothing stays hidden
   if the script never runs (no-JS, blocked, etc). */
.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
}
.reveal-ready .reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal-ready .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- Page entrance fade --------------------------------------------- */
/* The inline head script adds .js-anim before paint (so no flash), then
   .is-ready on load — the whole page fades up as it opens. */
.js-anim body { opacity: 0; }
.js-anim.is-ready body { opacity: 1; transition: opacity .6s ease; }
@media (prefers-reduced-motion: reduce) {
  .js-anim body { opacity: 1 !important; transition: none !important; }
}

/* ---- Hero / CTA action buttons (replaces the old email form) -------- */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}
.hero-actions .btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.btn-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid var(--white-12);
  border-radius: var(--r-pill, 999px);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  letter-spacing: -0.005em;
  transition: border-color .2s ease, background .2s ease;
}
.btn-secondary:hover { border-color: var(--mint-line); background: var(--mint-soft); }

/* ---- "Why we built" mission block ----------------------------------- */
.why {
  background: var(--green-800);
  border-top: 1px solid var(--white-08);
}
.why-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.why-title {
  margin: 0;
  font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.04;
  color: #fff;
  text-wrap: balance;
}
.why-copy {
  max-width: 54ch;
  margin: 24px auto 0;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.5;
  color: var(--white-70);
  text-wrap: pretty;
}

/* ---- Three pillars -------------------------------------------------- */
.pillars { background: var(--green-800); }
.pillars .map-header { max-width: 820px; text-align: center; margin-inline: auto; }
.pillars .map-header h2 { text-align: center; }
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.4vw, 32px);
  margin-top: clamp(30px, 4vw, 48px);
}
.pillars-intro { margin-top: 24px; }
.pillars-intro p { margin: 0 auto; max-width: 64ch; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.55; color: var(--white-70); }
.pillars-intro p + p { margin-top: 16px; }
.pillar {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--white-12);
  border-radius: 16px;
  padding: clamp(28px, 3vw, 40px);
}
.pillar-check { width: 26px; height: 26px; color: var(--mint); margin-bottom: 22px; }
.pillar-num {
  font-weight: 700;
  color: var(--mint);
  line-height: 1;
  font-size: clamp(19px, 1.8vw, 24px);
  margin-bottom: 18px;
  font-variant-numeric: tabular-nums;
}
.pillar h3 {
  margin: 0 0 14px;
  font-size: clamp(22px, 2.1vw, 28px);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #fff;
}
.pillar p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--white-70);
}
.pillars-foot {
  margin: clamp(48px, 6vw, 76px) 0 0;
  text-align: center;
  font-style: italic;
  font-size: 15px;
  color: var(--white-50);
}

/* ---- Pillars closing quote ----------------------------------------- */
.pillars-quote {
  margin: clamp(56px, 7vw, 96px) auto 0;
  max-width: 640px;
  text-align: center;
}
.pillars-quote-rule {
  display: block; width: 40px; height: 2px; margin: 0 auto clamp(28px, 4vw, 40px);
  background: var(--mint); border-radius: 2px; opacity: 0.8;
}
.pillars-quote-lead {
  margin: 0 0 22px;
  font-size: clamp(15px, 1.3vw, 17px);
  letter-spacing: 0.01em;
  color: var(--white-50);
}
.pillars-quote-q {
  margin: 0; border: 0; padding: 0;
  font-size: clamp(26px, 3.4vw, 42px);
  font-weight: 600; letter-spacing: -0.02em; line-height: 1.18;
  color: #fff; text-wrap: balance;
}
.pillars-quote-q::before { content: "\201C"; }
.pillars-quote-q::after  { content: "\201D"; }
.pillars-quote-cite {
  display: block; margin-top: clamp(20px, 2.6vw, 30px);
  font-style: normal; font-size: 12px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--mint);
}
@media (max-width: 820px) {
  .pillars-grid { grid-template-columns: 1fr; gap: 36px; }
}
