/* ==========================================================================
   BHOMS by Fusion Fintech — landing page
   ========================================================================== */

:root {
  --paper: #F3F5EF;
  --white: #FFFFFF;
  --ink: #0D1F17;
  --text: #3E5248;
  --muted: #7C8F84;
  --subtle: #5B6F64;
  --line: #DDE5DC;
  --line-soft: #E7ECE5;
  --mint: #E4F1E8;
  --mint-2: #EEF6E4;
  --bottle: #0E3B2C;
  --bottle-2: #082C1F;
  --bottle-line: #2B6A50;
  --green: #1E7F55;
  --on-dark: #E9F5EE;
  --on-dark-2: #BFD9CA;
  --on-dark-3: #8FB8A2;
  --accent: #C8F169;
  --down: #B4470F;

  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Instrument Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --font-hand: 'Caveat', cursive;

  --radius: 22px;
  --gutter: 40px;
  --max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
h1, h2, h3, p, ol, ul, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: var(--green); }
a:hover { color: var(--bottle); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }

.mono { font-family: var(--font-mono); }
.display { font-family: var(--font-display); }
.hand { font-family: var(--font-hand); color: var(--green); }
.hand-lg { font-size: 26px; display: inline-block; transform: rotate(-3deg); }
.small { font-size: 14px; }
.muted-text { color: var(--subtle); }
.accent-text { color: var(--accent); font-weight: 600; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--bottle); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 12px; }

.container { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: 120px; padding-bottom: 120px; }
.section-tight { padding-top: 80px; padding-bottom: 120px; }

/* ---------- type ---------- */
.h1, .h2, .h3 { font-family: var(--font-display); font-weight: 700; }
.h1 { font-size: clamp(44px, 6vw, 76px); line-height: 0.98; letter-spacing: -0.04em; }
.h2 { font-size: clamp(34px, 4vw, 50px); line-height: 1.04; letter-spacing: -0.03em; }
.h2-xl { font-size: clamp(40px, 4.6vw, 56px); line-height: 1; letter-spacing: -0.035em; font-weight: 800; }
.h3 { font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -0.02em; }
.muted { color: var(--muted); }
.muted-dark { color: var(--on-dark-3); }
.lead { font-size: 19px; line-height: 1.6; color: var(--text); max-width: 540px; }
.body-lg { font-size: 18px; line-height: 1.65; color: var(--text); }
.body { font-size: 17px; line-height: 1.6; color: var(--text); }
.fine { font-size: 15px; color: var(--subtle); border-top: 1px solid var(--line-soft); padding-top: 16px; }
.label { font-size: 14px; font-weight: 600; color: var(--green); }
.kicker { font-size: 13px; font-weight: 600; color: var(--subtle); text-transform: uppercase; letter-spacing: 0.08em; }

.section-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
  gap: 16px 40px;
}
.section-head .h2 { max-width: 780px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 12px 22px; border-radius: 999px; border: 0;
  font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--bottle); color: #fff; }
.btn-dark:hover { background: var(--bottle-2); color: #fff; }
.btn-sm { font-size: 15px; padding: 10px 20px; }
.btn-lg { font-size: 17px; padding: 16px 28px; }
.btn-block { width: 100%; }
.link-underline {
  color: var(--ink); font-weight: 600; font-size: 17px; min-height: 44px;
  display: inline-flex; align-items: center;
  text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; text-decoration-color: var(--green);
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243, 245, 239, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand span { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.nav-menu { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.nav-menu a:not(.btn) { color: var(--ink); text-decoration: none; }
.nav-menu a:not(.btn):hover { color: var(--green); }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--white); cursor: pointer; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 48px; padding-bottom: 96px; }
.hero-copy { flex: 1 1 500px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.eyebrow { font-size: 13px; color: var(--subtle); display: flex; align-items: center; gap: 10px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.dot-lg { width: 12px; height: 12px; margin-top: 10px; }
.hl { position: relative; display: inline-block; z-index: 0; }
.hl-bar {
  position: absolute; left: -4px; right: -4px; bottom: 0.08em; height: 0.38em;
  background: var(--accent); border-radius: 4px; z-index: -1;
  transform-origin: left center; animation: swipe .9s cubic-bezier(.6,0,.2,1) .4s both;
}
.hero-ctas { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.hand-note { display: flex; align-items: flex-start; gap: 6px; margin-top: -4px; color: var(--green); }
.hand-note svg { flex: none; }
.hand-note .hand { font-size: 25px; line-height: 1.1; margin-top: 10px; transform: rotate(-2deg); display: inline-block; }

.hero-visual { flex: 1 1 520px; min-width: 0; position: relative; padding: 28px 0 48px; }
.mock {
  background: var(--white); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(14, 59, 44, .35);
}
.mock-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); }
.mock-tabs { display: flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 600; color: var(--muted); }
.mock-tabs strong { color: var(--ink); font-weight: 800; }
.mock-tabs .active { color: var(--ink); border-bottom: 2px solid var(--green); padding-bottom: 2px; }
.tag { font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 3px 7px; }
.mock-body { display: flex; flex-wrap: wrap; }
.watchlist { flex: 1 1 260px; min-width: 0; padding: 8px 10px 14px; }
.wl-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; font-size: 13px; padding: 9px 8px; border-radius: 6px; }
.wl-row > :not(:first-child) { text-align: right; }
.wl-head { font-size: 11px; color: var(--muted); padding-top: 8px; padding-bottom: 8px; }
.up { color: var(--green); } .down { color: var(--down); } .flat { color: var(--subtle); }
.chart { flex: 1 1 220px; min-width: 0; border-left: 1px solid var(--line-soft); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.chart svg { width: 100%; height: 120px; }
.chart-head, .chart-foot { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.chart-head b { font-size: 13px; color: var(--ink); }
.chart-foot { color: var(--subtle); }

.ticket {
  position: absolute; left: -18px; bottom: 0; width: 340px; max-width: 92%;
  background: var(--bottle); color: var(--on-dark); border-radius: 16px; padding: 18px 18px 16px;
  box-shadow: 0 24px 40px -20px rgba(14, 59, 44, .6);
  display: flex; flex-direction: column; gap: 10px;
}
.ticket-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; }
.filled { font-size: 11px; background: var(--accent); color: var(--ink); border-radius: 999px; padding: 3px 9px; font-weight: 600; white-space: nowrap; }
.stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); font-size: 11px; color: #A9C7B6; }
.stage-track { position: relative; height: 3px; background: #23624A; border-radius: 2px; }
.stage { position: absolute; top: 0; left: 0; width: 25%; height: 3px; background: var(--accent); border-radius: 2px; }

.bubble {
  position: absolute; right: -10px; top: 0; max-width: 250px;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px;
  box-shadow: 0 16px 30px -18px rgba(14, 59, 44, .45);
  display: flex; gap: 10px; align-items: center; font-size: 13px; line-height: 1.35;
}
.bubble-icon { width: 30px; height: 30px; border-radius: 8px; background: var(--mint); display: flex; align-items: center; justify-content: center; flex: none; }

/* ---------- marquee ---------- */
.marquee-wrap { background: var(--bottle); color: var(--on-dark); overflow: hidden; padding: 18px 0; }
.marquee { display: flex; width: max-content; font-size: 15px; white-space: nowrap; }
.marquee-set { display: flex; gap: 40px; padding-right: 40px; }
.marquee-set i { font-style: normal; color: var(--accent); }

/* ---------- problem ---------- */
.problem { display: flex; flex-wrap: wrap; gap: 48px 80px; padding-bottom: 40px; }
.problem-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.compare { flex: 1.2 1 520px; min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 20px; overflow-x: auto; }
.compare table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { text-align: left; padding: 18px 24px; border-bottom: 1px solid var(--line-soft); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead th { padding-top: 22px; padding-bottom: 22px; font-weight: 600; color: var(--subtle); }
.compare thead th.ours { font-weight: 700; color: var(--bottle); }
.compare tbody th { font-weight: 600; }
.compare tbody td { color: var(--subtle); }
.compare .ours { background: var(--mint-2); color: var(--ink); }

/* ---------- seven rows ---------- */
.seven { display: flex; flex-direction: column; gap: 40px; }
.rows { border-top: 2px solid var(--ink); }
.row {
  display: grid; grid-template-columns: 80px minmax(160px, 260px) minmax(0, 1fr);
  gap: 8px 32px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: baseline;
}
.row-hl { background: linear-gradient(90deg, var(--mint-2), rgba(238, 246, 228, 0)); }
.num { font-size: 15px; color: var(--green); font-weight: 600; }
.row h3 { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.row p { font-size: 17px; line-height: 1.6; color: var(--text); }

/* ---------- dark / wires ---------- */
.dark { background: var(--bottle); color: var(--on-dark); }
.dark .h2 { color: #fff; }
.dark .body-lg { color: var(--on-dark-2); flex: 0 1 460px; }
.wires { display: flex; flex-direction: column; gap: 64px; }
.wire-diagram { display: flex; flex-wrap: wrap; align-items: stretch; gap: 20px; }
.node { flex: 0 1 220px; min-width: 200px; border-radius: 18px; padding: 24px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.node strong { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.node-light { background: var(--paper); color: var(--ink); }
.node-light .small { color: var(--subtle); }
.node-dark { background: var(--bottle-2); border: 1px solid var(--bottle-line); }
.node-dark strong { color: #fff; }
.node-dark .small { color: var(--on-dark-2); }
.node-dark .mono.small { color: var(--on-dark-3); }
.lanes { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.lane { border: 1px solid var(--bottle-line); border-radius: 14px; padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.lane-dashed { border-style: dashed; }
.lane-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--on-dark-2); }
.track { position: relative; height: 12px; }
.track::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 2px; background: var(--bottle-line); }
.track-dashed::before { height: 0; border-top: 2px dashed var(--bottle-line); background: none; }
.pkt { position: absolute; top: 1px; width: 10px; height: 10px; margin-left: -5px; }
.pkt-order { border-radius: 50%; background: var(--accent); }
.pkt-exec { border-radius: 2px; background: #fff; }
.pkt-data { top: 3px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--on-dark-3); }
.pkt-copy { width: 14px; margin-left: -7px; border-radius: 2px; border: 2px solid #fff; }

/* ---------- models ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.models { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px; margin-top: 48px; }
.model { padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.model .h3 { margin-bottom: 4px; }
.model-visual { height: 240px; border-radius: 14px; background: var(--paper); display: flex; align-items: center; justify-content: center; padding: 0 24px; overflow: hidden; margin-bottom: 8px; }
.solo-node, .solo-dse { width: 92px; height: 92px; flex: none; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 13px; font-weight: 600; color: #fff; }
.solo-node { border-radius: 50%; background: var(--green); }
.solo-dse { border-radius: 22px; background: var(--bottle); }
.solo-link { position: relative; flex: 1 1 auto; max-width: 160px; height: 10px; }
.solo-link::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 2px; background: #B9CEC1; }
.pkt-sm { position: absolute; top: 1px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--green); }
.pkt-sm-dark { background: var(--bottle); }
.orbit-wrap { position: relative; width: 210px; height: 210px; }
.orbit-ring { position: absolute; inset: 0; border: 1.5px dashed #B9CEC1; border-radius: 50%; }
.orbit-core {
  position: absolute; left: 50%; top: 50%; width: 86px; height: 86px; margin: -43px 0 0 -43px;
  border-radius: 50%; background: var(--bottle); color: #fff;
  display: flex; align-items: center; justify-content: center; text-align: center; font-size: 12px; font-weight: 600; line-height: 1.2;
}
.orbit { position: absolute; inset: 0; }
.sat {
  position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
  background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600;
}
.sat-top { left: 50%; top: 0; } .sat-right { left: 100%; top: 50%; } .sat-bottom { left: 50%; top: 100%; } .sat-left { left: 0; top: 50%; }
.sat-you { background: var(--accent); color: var(--ink); font-weight: 700; }

/* ---------- going live ---------- */
.band { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band .section-head { margin-bottom: 56px; }
.progress { position: relative; height: 4px; background: var(--line-soft); border-radius: 4px; overflow: hidden; margin-bottom: 32px; }
.grow { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: var(--green); border-radius: 4px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 36px 32px; }
.steps li { display: flex; flex-direction: column; gap: 10px; }
.step-top { display: flex; justify-content: space-between; align-items: center; }
.step-n { font-family: var(--font-display); font-size: 44px; font-weight: 800; color: var(--line); line-height: 1; }
.step-n-final { color: var(--green); }
.who { font-size: 11px; font-weight: 600; border-radius: 999px; padding: 4px 10px; }
.who-both { background: var(--mint-2); color: var(--bottle); }
.who-us { background: var(--bottle); color: #fff; }
.who-you { background: var(--accent); color: var(--ink); }
.steps h3 { font-family: var(--font-display); font-size: 21px; font-weight: 700; }
.steps p { font-size: 15px; line-height: 1.6; color: var(--text); }

/* ---------- team ---------- */
.section-team { padding-top: 120px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 48px; }
.leaders { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.leader { padding: 28px; display: flex; align-items: center; gap: 20px; }
.leader h3 { font-family: var(--font-display); font-size: 23px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.role { font-size: 12px; font-weight: 600; color: var(--green); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.leader-dark { background: var(--bottle); border-color: var(--bottle); }
.leader-dark h3 { color: #fff; }
.leader-dark .role { color: var(--accent); }
.avatar {
  width: 48px; height: 48px; border-radius: 50%; flex: none;
  background: var(--mint); color: var(--bottle);
  display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700;
}
.avatar-lg { width: 84px; height: 84px; font-family: var(--font-display); font-size: 28px; background: var(--bottle); color: var(--accent); }
.avatar-accent { background: var(--accent); color: var(--ink); }
.board { display: flex; flex-direction: column; gap: 18px; }
.directors { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 0 32px; border-top: 1px solid var(--line); }
.directors li { display: flex; align-items: center; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.name { font-size: 17px; font-weight: 600; }
.sub { font-size: 14px; color: var(--subtle); }
.early {
  background: var(--white); border: 1.5px dashed var(--green); border-radius: var(--radius); padding: 32px 36px;
  display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between;
}
.early-copy { flex: 1 1 520px; min-width: 0; display: flex; gap: 18px; align-items: flex-start; }
.early-copy .h3 { font-size: 26px; margin-bottom: 8px; }

/* ---------- compliance ---------- */
.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 40px 48px; margin-top: 48px; }
.rule { display: flex; gap: 16px; }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--mint); color: var(--green); display: flex; align-items: center; justify-content: center; flex: none; }
.rule h3 { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.rule p { font-size: 15px; line-height: 1.6; color: var(--text); }

/* ---------- contact ---------- */
.contact-wrap { padding-top: 100px; padding-bottom: 120px; }
.contact {
  background: var(--accent); border-radius: 32px; padding: 64px;
  display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: flex-start;
}
.contact-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.contact-copy .body-lg { color: #1F3A2D; }
.contact-copy .hand { color: var(--bottle); margin-top: 10px; align-self: flex-start; }
.contact-details { display: flex; flex-direction: column; gap: 8px; font-size: 17px; font-weight: 600; margin-top: 8px; }
.contact-details a { color: var(--ink); }
.contact-details address { font-style: normal; font-weight: 400; line-height: 1.5; }
.contact-form {
  flex: 1 1 460px; min-width: 0; background: var(--white); border-radius: var(--radius); padding: 32px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px;
  box-shadow: 0 30px 50px -30px rgba(14, 59, 44, .4);
}
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.contact-form input, .contact-form select {
  font: inherit; font-weight: 400; font-size: 16px; color: var(--ink);
  padding: 12px 14px; min-height: 44px; border: 1px solid #B9CEC1; border-radius: 12px; background: #F8FAF6;
}
.contact-form input:focus, .contact-form select:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.contact-form input[aria-invalid="true"] { border-color: var(--down); }
.contact-form .btn { grid-column: 1 / -1; min-height: 52px; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form { position: relative; }
.contact-form .btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.form-status { grid-column: 1 / -1; font-size: 15px; color: var(--bottle); min-height: 1.5em; }
.form-status.error { color: var(--down); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.footer { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: center; padding-top: 36px; padding-bottom: 48px; font-size: 14px; color: var(--subtle); }
.footer-brand { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.footer-brand strong { color: var(--ink); font-weight: 600; }
.footer p { max-width: 620px; line-height: 1.55; }

/* ==========================================================================
   Motion
   ========================================================================== */
@keyframes swipe { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes flash { 0%, 100% { background: transparent; } 6% { background: rgba(200, 241, 105, .55); } 30% { background: transparent; } }
@keyframes draw { 0% { stroke-dashoffset: 520; } 55%, 100% { stroke-dashoffset: 0; } }
@keyframes stage { 0%, 20% { left: 0%; } 25%, 45% { left: 25%; } 50%, 70% { left: 50%; } 75%, 100% { left: 75%; } }
@keyframes filled { 0%, 74% { opacity: 0; transform: translateY(6px); } 78%, 96% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes toRight { 0% { left: 0%; opacity: 0; } 8%, 92% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@keyframes toLeft { 0% { left: 100%; opacity: 0; } 8%, 92% { opacity: 1; } 100% { left: 0%; opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes unspin { to { transform: rotate(-360deg); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(30, 127, 85, .45); } 70% { box-shadow: 0 0 0 14px rgba(30, 127, 85, 0); } 100% { box-shadow: 0 0 0 0 rgba(30, 127, 85, 0); } }
@keyframes grow { 0% { width: 0%; } 80%, 100% { width: 100%; } }

.bob { animation: bob 4.5s ease-in-out infinite; }
.bob2 { animation: bob 5.5s ease-in-out 1s infinite; }
.flash1 { animation: flash 5s ease-out 1s infinite; }
.flash2 { animation: flash 5s ease-out 2.6s infinite; }
.flash3 { animation: flash 5s ease-out 3.8s infinite; }
.draw { stroke-dasharray: 520; animation: draw 7s ease-out infinite; }
.stage { animation: stage 6s steps(1, end) infinite; }
.filled { animation: filled 6s ease-out infinite; }
.marquee { animation: marquee 38s linear infinite; }
.pr { animation: toRight 3.2s linear infinite; }
.pl { animation: toLeft 3.2s linear infinite; }
.d1 { animation-delay: .8s; } .d2 { animation-delay: 1.6s; } .d3 { animation-delay: 2.4s; }
.pkt, .pkt-sm { opacity: 0; }
.orbit { animation: spin 40s linear infinite; }
.upright { animation: unspin 40s linear infinite; }
.pulse { animation: pulse 2.4s ease-out infinite; }
.grow { animation: grow 9s cubic-bezier(.5, 0, .3, 1) infinite; }

/* Pause looping animations while their section is off screen (set by main.js) */
.offscreen, .offscreen * { animation-play-state: paused !important; }

/* Scroll reveal (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .pkt, .pkt-sm { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: 17px; }
  .nav-menu .btn { margin-top: 16px; }
  .row { grid-template-columns: 56px minmax(0, 1fr); }
  .row p { grid-column: 2; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .section { padding-top: 80px; padding-bottom: 80px; }
  .section-tight { padding-top: 56px; padding-bottom: 80px; }
  .section-team { padding-top: 80px; }
  .contact-wrap { padding-top: 64px; padding-bottom: 80px; }
  .hero { padding-top: 24px; padding-bottom: 64px; gap: 40px; }
  .hero-visual { padding-top: 56px; }
  .chart { display: none; }
  .ticket { left: 8px; }
  .bubble { right: 4px; }
  .row h3 { font-size: 22px; }
  .model, .leader { padding: 24px; }
  .early { padding: 24px; }
  .contact { padding: 28px 20px; border-radius: 24px; }
  .contact-form { padding: 20px; }
  .node { flex-basis: 100%; }
}
