/* Synapse Strategy — styles */

@font-face {
  font-family: "Quicksand";
  src: url("/assets/fonts/quicksand-latin-wght-normal.woff2") format("woff2-variations"),
       url("/assets/fonts/quicksand-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2-variations"),
       url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --talpa: #A8968A;        /* brand, decorative */
  --talpa-deep: #84705F;   /* accessible on white (4.7:1) */
  --talpa-soft: #E6DDD6;
  --ink: #2B2724;
  --ink-soft: #5E5650;
  --shell: #F5F1EE;
  --white: #FFFFFF;
  --line: #E8E1DB;

  --font-display: "Quicksand", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 20px;
  --radius-sm: 12px;
  --container: 1120px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--talpa-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

::selection { background: var(--talpa-soft); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--talpa-deep);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}

p { margin: 0; }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 100;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--white); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--talpa-deep); color: var(--white); }
.btn-primary:hover { background: var(--ink); color: var(--white); }

.btn-ghost { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--talpa); color: var(--ink); }

.btn-sm { min-height: 42px; padding: 9px 20px; font-size: 14px; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  z-index: 50;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(43, 39, 36, .05); }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; }
.brand img { height: 30px; width: auto; }

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 32px;
}
.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.main-nav a:hover { color: var(--talpa-deep); }

.header-cta { display: inline-flex; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  transition: transform .2s ease, background-color .2s ease;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Sections ---------- */

main { padding-top: var(--header-h); }

.section { padding: 112px 0; }
.section-shell { background: var(--shell); }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(32px, 4vw, 44px); }
.section-head p { margin-top: 16px; color: var(--ink-soft); font-size: 18px; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--talpa-deep);
  margin-bottom: 20px;
}

/* Hero */

.hero { position: relative; overflow: hidden; padding: 120px 0 128px; }
.hero-inner { position: relative; z-index: 1; max-width: 720px; }
.hero h1 { font-size: clamp(42px, 6.4vw, 72px); font-weight: 600; }
.hero-lead { margin-top: 28px; font-size: clamp(18px, 2vw, 20px); color: var(--ink-soft); max-width: 600px; }
.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }

.hero-mark {
  position: absolute;
  right: -40px;
  top: 50%;
  width: min(440px, 42vw);
  transform: translateY(-50%);
  opacity: .16;
  pointer-events: none;
  user-select: none;
}

/* Cards */

.grid { display: grid; gap: 20px; }
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.card:hover { border-color: var(--talpa-soft); transform: translateY(-2px); box-shadow: 0 14px 40px rgba(43, 39, 36, .06); }
.card h3 { font-size: 20px; font-weight: 600; }
.card p { margin-top: 10px; color: var(--ink-soft); font-size: 16px; }

.dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--talpa);
  margin-bottom: 18px;
}

.card-icon {
  width: 30px;
  height: auto;
  margin-bottom: 22px;
  opacity: .9;
}

/* Method */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 22px;
  right: 22px;
  height: 1px;
  background: var(--talpa-soft);
}
.step { position: relative; }
.step-num {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--talpa-soft);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--talpa-deep);
}
.step h3 { margin-top: 22px; font-size: 21px; }
.step p { margin-top: 10px; color: var(--ink-soft); font-size: 15.5px; }

/* Numbers */

.stats { text-align: center; }
.stat { padding: 36px 20px; }
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(34px, 3.6vw, 44px);
  font-weight: 600;
  color: var(--talpa-deep);
  line-height: 1.1;
}
.stat span { display: block; margin-top: 10px; color: var(--ink-soft); font-size: 15px; }

/* About */

.about {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 72px;
  align-items: center;
}
.portrait {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  padding: 8px;
  border: 1px solid var(--talpa);
  justify-self: center;
}
.portrait img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 30%;
}
.about h2 { font-size: clamp(32px, 4vw, 44px); }
.about-role { margin-top: 10px; color: var(--talpa-deep); font-weight: 600; font-size: 15px; letter-spacing: .02em; }
.about-text p { margin-top: 18px; color: var(--ink-soft); font-size: 18px; }

/* Contact */

.contact {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 72px;
  align-items: start;
}
.contact h2 { font-size: clamp(32px, 4vw, 44px); }
.contact-intro { margin-top: 18px; color: var(--ink-soft); font-size: 18px; max-width: 440px; }

.contact-links { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; }
.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.contact-links a:hover { color: var(--talpa-deep); }
.contact-links svg { width: 20px; height: 20px; color: var(--talpa-deep); flex: none; }

.form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field .optional { font-weight: 400; color: var(--ink-soft); }

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #9B918A; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--talpa);
  box-shadow: 0 0 0 4px rgba(168, 150, 138, .18);
}

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 6px 0 24px;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--talpa-deep);
  flex: none;
}

.form-footer { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.form-note { font-size: 14px; color: var(--ink-soft); }

.hidden-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */

.site-footer { border-top: 1px solid var(--line); padding: 48px 0; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  align-items: center;
  justify-content: space-between;
}
.footer-brand img { height: 24px; width: auto; }
.footer-meta { font-size: 14px; color: var(--ink-soft); }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { font-size: 14px; color: var(--ink-soft); text-decoration: none; }
.footer-links a:hover { color: var(--talpa-deep); }

/* Legal pages & simple pages */

.page { padding: 96px 0 112px; }
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(34px, 4.5vw, 48px); }
.legal .updated { margin-top: 14px; color: var(--ink-soft); font-size: 15px; }
.legal .subtitle { margin-top: 8px; color: var(--ink-soft); }
.legal h2 { font-size: 23px; margin-top: 44px; }
.legal p, .legal li { color: var(--ink-soft); font-size: 17px; }
.legal p { margin-top: 14px; }
.legal ul { margin: 14px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.legal .back { margin-top: 56px; }

.message-page { text-align: center; max-width: 620px; margin: 0 auto; }
.message-page img { width: 64px; margin: 0 auto 32px; }
.message-page h1 { font-size: clamp(34px, 5vw, 52px); }
.message-page p { margin-top: 18px; color: var(--ink-soft); font-size: 18px; }
.message-page .btn { margin-top: 36px; }

/* Reveal on scroll */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn { transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { top: 22px; bottom: 22px; left: 22px; right: auto; width: 1px; height: auto; }
  .step { display: grid; grid-template-columns: 44px 1fr; column-gap: 24px; padding-bottom: 32px; }
  .step:last-child { padding-bottom: 0; }
  .step h3 { margin-top: 8px; grid-column: 2; }
  .step p { grid-column: 2; }
  .step-num { grid-row: 1 / span 2; }
  .about { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .about-text p { max-width: 640px; margin-left: auto; margin-right: auto; }
  .contact { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .brand img { height: 26px; }
  .menu-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(43, 39, 36, .06);
    padding: 12px 24px 24px;
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li a { display: block; padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .main-nav .nav-cta { display: block; margin-top: 20px; }
  .main-nav .nav-cta a { border-bottom: 0; color: var(--white); padding: 12px 26px; display: flex; }
  .section { padding: 80px 0; }
  .hero { padding: 72px 0 88px; }
  .hero-mark { width: 260px; right: -70px; top: 70px; transform: none; opacity: .1; }
}

@media (min-width: 861px) {
  .main-nav .nav-cta { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 24px 10px; }
  .stat strong { font-size: 28px; }
  .stat span { font-size: 14px; overflow-wrap: anywhere; }
  .card { padding: 26px 22px; }
  .form { padding: 24px 20px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .portrait { width: 240px; height: 240px; }
  .hero-actions .btn { width: 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
