:root {
  --ink: #0E1633;
  --ink-soft: #47506B;
  --deep: #0B2A6B;
  --blue: #0A4BF7;
  --blue-hover: #0838BB;
  --yellow: #FFCE00;
  --sky: #EEF3FF;
  --line: #DDE3F0;
  --bg: #FFFFFF;
  --max: 1200px;
  --font-head: "Cabin", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}

a { color: var(--blue); }
a:hover { color: var(--blue-hover); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
header.site {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 84px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 24px;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand svg { width: 44px; height: 44px; flex-shrink: 0; overflow: visible; }
nav.main { display: flex; gap: 28px; flex-wrap: wrap; }
nav.main a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
}
nav.main a:hover { color: var(--blue); }

/* Hero */
.hero { padding: 104px 0 88px; background: linear-gradient(180deg, var(--sky), var(--bg)); }
.eyebrow {
  margin: 0 0 16px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--blue);
}
.hero h1 {
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  max-width: 900px;
}
.hero p.lead-hero { font-size: 21px; color: var(--ink-soft); max-width: 720px; margin: 0 0 30px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  padding: 13px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
}
.btn:hover { background: var(--blue-hover); color: #fff; }
.btn.secondary {
  background: #fff;
  color: var(--deep);
  border: 1px solid #C9D3EA;
  padding: 12px 23px;
}
.btn.secondary:hover { border-color: var(--blue); color: var(--blue); }

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--sky); }
h2 { font-size: 30px; margin: 0 0 12px; line-height: 1.2; }
.lead { color: var(--ink-soft); max-width: 700px; margin: 0 0 36px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
}
.card h3 { margin: 0 0 8px; font-size: 20px; }
.card p { margin: 0 0 12px; color: var(--ink-soft); }
.card ul { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: 15px; }
.icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--sky);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}

/* Values */
.values .card { display: flex; flex-direction: column; gap: 6px; }
.dot { width: 18px; height: 18px; border-radius: 50%; background: var(--deep); margin-bottom: 8px; }
.dot.trust { background: var(--yellow); box-shadow: 0 0 0 3px var(--blue); }
.dot.transparency { background: var(--blue); }
.dot.security { background: var(--deep); }

/* Each value card in its own brand color */
.values .card.value { border: none; padding: 30px 28px 34px; }
.values .card.value h3 { font-size: 22px; }
.values .card.trust { background: var(--yellow); color: var(--ink); }
.values .card.trust p { color: var(--ink); }
.values .card.transparency { background: var(--blue); color: #FFFFFF; }
.values .card.security { background: var(--deep); color: #FFFFFF; }
.values .card.transparency p, .values .card.security p { color: #E4EAFB; }
.values .card.value .dot { width: 20px; height: 20px; box-shadow: none; }
.values .card.trust .dot { background: var(--ink); }
.values .card.transparency .dot, .values .card.security .dot { background: #FFFFFF; }
.values .card.security .dot { background: var(--yellow); }

.points { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.points li { padding-left: 28px; position: relative; color: var(--ink-soft); }
.points li::before {
  content: "";
  position: absolute; left: 0; top: 8px;
  width: 12px; height: 12px;
  border-radius: 3px;
  background: var(--blue);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.contact-grid .card p { color: var(--ink); margin: 0; }
.label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  font-weight: 600;
  margin-bottom: 6px;
}

/* Footer */
footer.site {
  background: var(--deep);
  color: #C8D3F0;
  padding: 30px 0;
  font-size: 14px;
}
footer.site .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer.site a { color: #FFFFFF; }
footer.site a:hover { color: var(--yellow); }

/* Legal pages */
.legal { padding: 56px 0 72px; }
.legal .wrap { max-width: 800px; }
.legal h1 { font-size: 36px; margin: 0 0 8px; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; }
.legal h3 { font-size: 18px; margin: 24px 0 6px; }
.legal p, .legal li { color: var(--ink-soft); }
.updated { color: var(--ink-soft); font-size: 15px; margin-bottom: 28px; }

/* Menu button: only shown on phones */
.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fff; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.menu-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
header.site.open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
header.site.open .menu-toggle span:nth-child(2) { opacity: 0; }
header.site.open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 720px) {
  header.site .wrap { min-height: 62px; flex-wrap: nowrap; position: relative; }
  .brand { font-size: 19px; gap: 10px; }
  .brand svg { width: 32px; height: 32px; }
  .menu-toggle { display: flex; }
  nav.main {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(11, 42, 107, 0.08);
    padding: 6px 20px 14px;
  }
  header.site.open nav.main { display: flex; }
  nav.main a { font-size: 17px; padding: 12px 0; border-bottom: 1px solid #EEF1F7; }
  nav.main a:last-child { border-bottom: none; }
  nav.main a::after { display: none; }
  section[id] { scroll-margin-top: 66px; }

  .hero { padding: 44px 0 48px; }
  .hero h1 { font-size: 34px; }
  .hero p.lead-hero { font-size: 18px; margin-bottom: 24px; }
  section { padding: 52px 0; }
  h2 { font-size: 26px; }
}

/* ---------- Motion ---------- */

/* Smooth interactions */
.btn, .btn.secondary { transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(10, 75, 247, 0.22); }
.btn.secondary:hover { box-shadow: 0 8px 20px rgba(11, 42, 107, 0.10); }
.card { transition: transform .35s ease, box-shadow .35s ease, opacity .7s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(11, 42, 107, 0.10); }
.values .card.value:hover { box-shadow: 0 16px 36px rgba(11, 42, 107, 0.22); }
nav.main a { position: relative; transition: color .2s ease; }
nav.main a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
nav.main a:hover::after { transform: scaleX(1); }
header.site { transition: box-shadow .3s ease; }

/* Logo intro: the dots fall like rubber balls, the yellow one bounces up to the peak
   with a line following it on each side, the base joins them, then the name sweeps in */
.logo-mark .seg { stroke-dasharray: 1; stroke-dashoffset: 1; }
.logo-mark .node { transform-box: fill-box; transform-origin: 50% 100%; }
.logo-mark .n2, .logo-mark .n3 { opacity: 0; transform: translateY(-58px); animation: ball-blue .8s forwards .1s; }
.logo-mark .n1 { opacity: 0; transform: translateY(-20px); animation: ball-yellow 1.9s forwards .1s; }
.logo-mark .seg-l, .logo-mark .seg-r { animation: draw .32s cubic-bezier(.2,.8,.3,1) forwards .72s; }
.logo-mark .seg-b { animation: draw .4s ease-in-out forwards 1.6s; }
.brand-name { display: inline-block; clip-path: inset(0 100% 0 0); transform: translateX(-14px); animation: sweep .7s cubic-bezier(.22,1,.36,1) forwards 2s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes sweep { to { clip-path: inset(0 0 0 0); transform: none; } }
@keyframes ball-blue {
  0%   { opacity: 0; transform: translateY(-58px) scale(.92, 1.1); animation-timing-function: cubic-bezier(.5, 0, 1, 1); }
  57%  { opacity: 1; transform: translateY(0) scale(.92, 1.1); }
  63%  { transform: translateY(0) scale(1.3, .72); }
  69%  { transform: translateY(-1px) scale(.94, 1.08); animation-timing-function: cubic-bezier(0, 0, .5, 1); }
  78%  { transform: translateY(-5px) scale(1); animation-timing-function: cubic-bezier(.5, 0, 1, 1); }
  87%  { transform: translateY(0) scale(1.08, .93); }
  100% { opacity: 1; transform: none; }
}
@keyframes ball-yellow {
  0%   { opacity: 0; transform: translateY(-20px) scale(.92, 1.1); animation-timing-function: cubic-bezier(.5, 0, 1, 1); }
  24%  { opacity: 1; transform: translateY(38px) scale(.9, 1.12); }
  28%  { transform: translateY(38px) scale(1.38, .64); }
  32%  { transform: translateY(32px) scale(.82, 1.25); animation-timing-function: cubic-bezier(0, 0, .45, 1); }
  58%  { transform: translateY(-24px) scale(1); animation-timing-function: cubic-bezier(.55, 0, 1, 1); }
  72%  { transform: translateY(0) scale(.92, 1.1); }
  75%  { transform: translateY(0) scale(1.22, .8); }
  78%  { transform: translateY(-1px) scale(.95, 1.06); animation-timing-function: cubic-bezier(0, 0, .5, 1); }
  85%  { transform: translateY(-9px) scale(1); animation-timing-function: cubic-bezier(.5, 0, 1, 1); }
  91%  { transform: translateY(0) scale(1.1, .9); }
  95%  { transform: translateY(-2px) scale(1); }
  100% { opacity: 1; transform: none; }
}

/* Hero text fades up on load */
.intro { opacity: 0; transform: translateY(16px); animation: rise .8s ease forwards; }
.i1 { animation-delay: .2s; }
.i2 { animation-delay: .35s; }
.i3 { animation-delay: .5s; }
.i4 { animation-delay: .65s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Sections slide into view on scroll (only when JavaScript is running) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .card.reveal.in:hover { transform: translateY(-4px); }

/* Respect visitors who ask for less motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .logo-mark .seg { stroke-dashoffset: 0; }
  .logo-mark .node { opacity: 1; transform: none; }
  .brand-name { clip-path: none; transform: none; }
  .intro, .js .reveal { opacity: 1; transform: none; }
}

/* Keep headings visible below the sticky header when using menu links */
section[id] { scroll-margin-top: 84px; }

/* Headings and the logo name in Cabin (body text stays in the system font) */
h1, h2, h3, .brand { font-family: var(--font-head); }
h1, h2 { font-weight: 700; letter-spacing: -0.005em; }
h3 { font-weight: 600; }
.brand { font-weight: 700; letter-spacing: 0.07em; }

/* Story section: paragraphs sit closer together than a single lead */
.story .lead { margin-bottom: 16px; }
.story .lead + .points { margin-top: 28px; }
.story .points strong { color: var(--ink); }

/* Contact form */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.contact-side { display: grid; gap: 16px; }
.contact-side .card p { color: var(--ink); margin: 0; }
.contact-form { display: flex; flex-direction: column; gap: 18px; padding: 28px; }
.contact-form:hover { transform: none; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field .req { color: var(--blue); }
.field .opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid #C9D3EA; border-radius: 10px;
  padding: 11px 13px; width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(10, 75, 247, 0.15);
}
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile { min-height: 65px; }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-foot .btn { border: none; cursor: pointer; font: inherit; font-weight: 600; }
.form-foot .btn:disabled { opacity: .7; cursor: default; transform: none; box-shadow: none; }
.form-note { margin: 0; font-size: 14px; color: var(--ink-soft); }
.form-status { margin: 0; font-size: 15px; min-height: 1px; }
.form-status.success { color: #0B6E4F; font-weight: 600; }
.form-status.error { color: #B42318; font-weight: 600; }
.contact-form.sent .field, .contact-form.sent .form-row, .contact-form.sent .turnstile { opacity: .5; pointer-events: none; }
@media (max-width: 820px) {
  .contact-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 22px; }
}
.js .contact-form.reveal.in:hover, .contact-form:hover { transform: none; box-shadow: none; }
