/* ==========================================================================
   Fusion — stratadigital.com/fusion
   Design system per "Fusion Presentation Theme".
   Register: Stripe-Press-meets-trading-terminal. Operator-grade.
   No italics. No emoji. No gradient borders. No shadows.
   ========================================================================== */

:root {
  --purple:      #47307E;
  --purple-dark: #2e1f5a;
  --wash:        rgba(71, 48, 126, 0.06);
  --wash-strong: rgba(71, 48, 126, 0.10);

  --bg:          #ffffff;
  --surface:     #f6f5f1;
  --surface-2:   #ecebe5;

  --text:        #0a0a0a;
  --text-2:      #2a2a2a;
  --text-3:      #6a6a66;

  --hair:        #e5e3db;
  --hair-2:      #c8c5b9;

  --danger:      #a02a1a;

  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --gut:   clamp(20px, 5vw, 100px);
  --maxw:  1320px;
  --rule:  1px solid var(--hair);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.62;
  letter-spacing: -0.011em;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------------- layout -- */

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

section { padding: clamp(64px, 9vw, 132px) 0; }
section + section { border-top: var(--rule); }

.band { background: var(--surface); }

/* ------------------------------------------------------------ typography -- */

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.032em;
  line-height: 1.04;
  text-wrap: balance;
}

h1 { font-size: clamp(40px, 7.2vw, 84px); letter-spacing: -0.038em; }
h2 { font-size: clamp(30px, 4.4vw, 52px); }
h3 { font-size: clamp(21px, 2.2vw, 27px); letter-spacing: -0.024em; }
h4 { font-size: 18px; letter-spacing: -0.018em; font-weight: 500; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(18px, 1.9vw, 22px);
  line-height: 1.5;
  color: var(--text-2);
  font-weight: 300;
  letter-spacing: -0.017em;
  max-width: 62ch;
}

.muted { color: var(--text-3); }
.accent { color: var(--purple); }

.kicker {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--purple);
  margin: 0 0 20px;
}

.section-head { max-width: 74ch; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head p { margin-top: 20px; }

.note {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-3);
  letter-spacing: -0.004em;
}

.src {
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.7;
  color: var(--text-3);
  letter-spacing: 0.02em;
  margin-top: 28px;
}

/* --------------------------------------------------------------- header -- */

.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: var(--rule);
}
.top-in {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut);
  height: 62px; display: flex; align-items: center; gap: 34px;
}
.mark {
  font-weight: 600; font-size: 19px; letter-spacing: -0.035em;
  color: var(--purple); text-decoration: none;
}
.mark:hover { text-decoration: none; }
.top nav { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.top nav a {
  font-family: var(--mono); font-size: 11px; font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.075em;
  color: var(--text-2); text-decoration: none;
}
.top nav a:hover { color: var(--purple); text-decoration: none; }

.top nav a.nav-cta {
  font-weight: 500;
  color: #fff;
  background: var(--purple);
  border: 1px solid var(--purple);
  padding: 9px 18px;
  margin-left: 4px;
}
.top nav a.nav-cta:hover {
  color: #fff;
  background: var(--purple-dark);
  border-color: var(--purple-dark);
}

/* --------------------------------------------------------------- button -- */

.btn {
  display: inline-block;
  font-family: var(--mono); font-size: 12.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.085em;
  padding: 16px 32px; border: 1px solid var(--purple);
  color: #fff; background: var(--purple); text-decoration: none;
}
.btn:hover { background: var(--purple-dark); border-color: var(--purple-dark); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--purple); }
.btn.ghost:hover { background: var(--wash); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 36px; }
.btn-row .note { width: 100%; margin-top: 4px; }

/* ----------------------------------------------------------------- hero -- */

.hero { padding-top: clamp(56px, 8vw, 104px); padding-bottom: 0; }
.hero h1 { max-width: 17ch; }
.hero .tagline {
  font-family: var(--mono); font-size: 13px; font-weight: 400;
  letter-spacing: 0.05em; color: var(--text-3); margin: 26px 0 0;
}
.hero .lede { margin-top: 30px; }

.hero-shot { margin-top: clamp(48px, 6vw, 76px); }

/* ------------------------------------------------------------- figures -- */

figure { margin: 0; }

.shot {
  border: 1px solid var(--hair-2);
  background: var(--bg);
  overflow: hidden;
}
.shot img { width: 100%; }

.shot-wrap { background: var(--surface); padding: clamp(14px, 2.4vw, 34px); }

figcaption {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 8px 30px;
}
figcaption .cap {
  font-family: var(--mono); font-size: 10.5px; font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.055em;
  color: var(--purple); line-height: 1.65;
  padding-left: 14px; border-left: 1px solid var(--hair-2);
}

/* ----------------------------------------------------------------- grid -- */

.grid { display: grid; gap: clamp(24px, 3vw, 44px); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg);
  border: var(--rule);
  padding: clamp(22px, 2.6vw, 34px);
}
.band .card { background: var(--bg); }
.card h3 { margin-bottom: 12px; }
.card h4 { margin-bottom: 10px; }
.card p { font-size: 15.5px; line-height: 1.6; color: var(--text-2); }

.card .idx {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.08em; color: var(--purple); display: block; margin-bottom: 16px;
}

/* numbered failure rows */
.rows { border-top: var(--rule); }
.row {
  display: grid; grid-template-columns: 62px minmax(0, 300px) 1fr;
  gap: 8px 32px; padding: 26px 0; border-bottom: var(--rule);
  align-items: start;
}
.row .n {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.08em; color: var(--purple); padding-top: 5px;
}
.row h4 { padding-top: 1px; }
.row p { font-size: 15.5px; color: var(--text-2); line-height: 1.6; margin: 0; }

/* ---------------------------------------------------------------- table -- */

.table-scroll { overflow-x: auto; border: var(--rule); background: var(--bg); }
table { border-collapse: collapse; width: 100%; min-width: 780px; }
th, td {
  text-align: left; padding: 15px 20px; border-bottom: var(--rule);
  font-size: 14.5px; color: var(--text-2); vertical-align: middle;
}
thead th {
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.075em; color: var(--text-3);
  border-bottom: 1px solid var(--hair-2); white-space: nowrap;
}
tbody tr:last-child td { border-bottom: none; }
td.cap-col { color: var(--text); font-weight: 400; }
th.us, td.us { background: var(--wash); color: var(--purple); }
thead th.us { color: var(--purple); font-weight: 500; }
.yes { color: var(--purple); font-weight: 500; }
.no  { color: var(--hair-2); }
.part { font-family: var(--mono); font-size: 11.5px; color: var(--text-3); letter-spacing: 0.02em; }

/* --------------------------------------------------------------- footer -- */

footer { border-top: var(--rule); padding: 54px 0 66px; background: var(--surface); }
.foot { display: flex; flex-wrap: wrap; gap: 30px 60px; justify-content: space-between; align-items: flex-start; }
.foot .mark { font-size: 17px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.foot-links a, .foot-meta {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.075em; color: var(--text-3); text-decoration: none;
}
.foot-links a:hover { color: var(--purple); text-decoration: none; }
.foot-meta { text-transform: none; letter-spacing: 0.01em; line-height: 1.8; }

/* -------------------------------------------------------------- utility -- */

.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(32px, 4.5vw, 72px); align-items: center;
}
.split.rev > .txt { order: 2; }
.split .txt { max-width: 54ch; }
.split .txt p { font-size: 16px; color: var(--text-2); }

.feature-list { list-style: none; margin: 26px 0 0; padding: 0; border-top: var(--rule); }
.feature-list li {
  padding: 14px 0; border-bottom: var(--rule);
  font-size: 15px; color: var(--text-2); line-height: 1.55;
}
.feature-list strong { color: var(--text); font-weight: 500; }

.cta-final { text-align: center; }
.contact {
  margin-top: clamp(30px, 3.5vw, 46px);
  padding-top: clamp(24px, 3vw, 34px);
  border-top: var(--rule);
  font-size: 16px; color: var(--text-2); letter-spacing: -0.012em;
}
.contact a { font-weight: 500; }
.cta-final h2 { margin-bottom: 22px; }
.cta-final .lede { margin: 0 auto; }
.cta-final .btn-row { justify-content: center; }

/* ------------------------------------------------------------- lightbox -- */

.shot img { cursor: zoom-in; }

.lb[hidden] { display: none; }
.lb {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 10, 10, 0.92);
  padding: 58px clamp(12px, 3vw, 48px) clamp(12px, 3vw, 48px);
}

.lb-stage {
  width: 100%; height: 100%;
  overflow: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  display: flex; align-items: center; justify-content: center;
}

.lb-img {
  display: block; background: var(--bg);
  border: 1px solid var(--hair-2);
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  cursor: zoom-in;
  -webkit-user-select: none; user-select: none;
}

/* zoomed: native pixels, pan by dragging.
   flex: none is required — as a flex item the image would otherwise shrink
   back to the container width and the zoom would do nothing. */
.lb.zoomed .lb-stage { align-items: flex-start; justify-content: flex-start; }
.lb.zoomed .lb-img {
  max-width: none; max-height: none;
  flex: none; cursor: grab;
}
.lb.zoomed .lb-img.dragging { cursor: grabbing; }

.lb-bar {
  position: absolute; top: 0; left: 0; right: 0; height: 58px;
  display: flex; align-items: center; gap: 18px;
  padding: 0 clamp(12px, 3vw, 48px);
  font-family: var(--mono); font-size: 10.5px; font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.075em;
  color: rgba(255, 255, 255, 0.62);
}
.lb-cap {
  flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lb-count { color: rgba(255, 255, 255, 0.4); flex: none; }

.lb-btn {
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.075em;
  color: rgba(255, 255, 255, 0.62);
  background: transparent; border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 7px 13px; cursor: pointer; flex: none;
}
.lb-btn:hover { color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.lb-btn:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }

.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 62px; display: flex;
  align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 20px; line-height: 1;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(10, 10, 10, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer; z-index: 2;
}
.lb-nav:hover { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.lb-nav:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.lb-prev { left: clamp(6px, 1.5vw, 18px); }
.lb-next { right: clamp(6px, 1.5vw, 18px); }

body.lb-open { overflow: hidden; }

@media (max-width: 760px) {
  .lb { padding: 52px 8px 8px; }
  .lb-nav { width: 38px; height: 52px; font-size: 17px; }
  .lb-cap { display: none; }
}

/* ---------------------------------------------------------- responsive -- */

@media (max-width: 1000px) {
  .split, .split.rev { grid-template-columns: 1fr; }
  .split.rev > .txt { order: 0; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; gap: 6px; }
  .row .n { padding-top: 0; }
  .top nav { display: none; }
  figcaption { grid-template-columns: 1fr; }
}

@media print {
  .top { position: static; }
  section { break-inside: avoid; }
}
