/* ═══════════════════════════════════════════════════════════════
   MyloSites — mylosites.com
   Hand-set, like everything we ship. Ink, ivory, brass.
   ═══════════════════════════════════════════════════════════════ */

/* ---------- fonts (self-hosted, variable) ---------- */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/fonts/fraunces-latin-var.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/fonts/fraunces-italic-latin-var.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-var.woff2") format("woff2");
}

/* ---------- tokens ---------- */
:root {
  --ink: #0a0a12;
  --ink-2: #101019;
  --ink-3: #171725;
  --paper: #f4efe6;
  --paper-dim: #c6c0b1;
  --gold: #c9a45c;
  --gold-bright: #e7cc8f;
  --gold-dim: rgba(201, 164, 92, 0.38);
  --iris: #8b7cff;
  --line: rgba(244, 239, 230, 0.13);
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
  --sect: clamp(5rem, 13vh, 9.5rem);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 380;
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: var(--gold); color: var(--ink); }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 480; font-optical-sizing: auto; text-wrap: balance; }
em { font-style: italic; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.skip {
  position: fixed; top: -60px; left: 16px; z-index: 300;
  background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: 6px;
  transition: top 0.2s;
}
.skip:focus { top: 12px; }

/* ---------- shared type ---------- */
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 560;
  margin-bottom: 1.1rem;
}
h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin-bottom: 1.4rem;
}
h2 em {
  background: linear-gradient(100deg, var(--gold) 20%, var(--gold-bright) 60%, var(--gold) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-lede {
  max-width: 44em;
  font-size: 1.08rem;
  color: var(--paper-dim);
  margin-bottom: 2.8rem;
}
.paper .section-lede { color: rgba(35, 28, 15, 0.72); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 560;
  letter-spacing: 0.01em;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.25s, border-color 0.25s, background 0.25s;
  cursor: pointer;
}
.btn-gold {
  background: linear-gradient(120deg, var(--gold) 0%, var(--gold-bright) 55%, var(--gold) 100%);
  background-size: 200% 100%;
  color: #14100a;
  box-shadow: 0 6px 24px rgba(201, 164, 92, 0.22);
}
.btn-gold:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 10px 34px rgba(201, 164, 92, 0.35); }
.btn-ghost { border-color: var(--line); color: var(--paper); }
.btn-ghost:hover { border-color: var(--gold); transform: translateY(-2px); }
.btn-small { padding: 0.55em 1.15em; font-size: 0.85rem; }
.btn-big { padding: 1.05em 2.1em; font-size: 1.05rem; }

/* ---------- reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s cubic-bezier(0.2, 0.65, 0.25, 1) var(--d, 0s), transform 0.9s cubic-bezier(0.2, 0.65, 0.25, 1) var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 10, 18, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: var(--wrap); margin: 0 auto;
  padding: 0.9rem clamp(1.25rem, 4vw, 2.5rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand-word { font-family: var(--serif); font-size: 1.32rem; font-weight: 540; letter-spacing: 0.005em; }
.brand-chip {
  font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--gold-dim);
  padding: 0.28em 0.7em; border-radius: 999px; white-space: nowrap;
  transform: translateY(1px);
}
.glyph { width: 30px; height: 30px; }
.glyph-bg { fill: var(--ink-3); stroke: var(--gold-dim); }
.glyph-col path { stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; fill: none; }
.links { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); }
.links > a:not(.btn) {
  font-size: 0.9rem; color: var(--paper-dim);
  transition: color 0.2s;
}
.links > a:not(.btn):hover { color: var(--paper); }
.burger { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: clamp(7rem, 16vh, 10rem) 0 var(--sect);
  overflow: hidden;
}
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(720px 560px at 74% 30%, rgba(201, 164, 92, 0.13), transparent 65%),
    radial-gradient(640px 520px at 8% 88%, rgba(139, 124, 255, 0.07), transparent 65%);
}
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(2.5rem, 5vw, 5rem); align-items: center;
  position: relative;
}
.hero h1 {
  font-size: clamp(2.9rem, 6.6vw, 5.5rem);
  line-height: 1.01;
  letter-spacing: -0.015em;
  margin-bottom: 1.5rem;
}
.hero h1 em {
  background: linear-gradient(100deg, var(--gold) 10%, var(--gold-bright) 55%, var(--gold) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--paper-dim); max-width: 36em; margin-bottom: 2.2rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.4rem; }
.cta-row.center { justify-content: center; }
.proof { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem; }
.proof li {
  font-size: 0.82rem; letter-spacing: 0.06em; color: var(--paper-dim);
  display: inline-flex; align-items: center; gap: 0.55em;
}
.proof li::before { content: "✦"; color: var(--gold); font-size: 0.7em; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 2.2rem; transform: translateX(-50%);
  width: 1px; height: 52px; background: var(--line); overflow: hidden;
}
.scroll-cue span {
  position: absolute; left: -1px; top: -12px; width: 3px; height: 12px;
  background: var(--gold); border-radius: 2px;
  animation: cue 2.2s cubic-bezier(0.4, 0, 0.4, 1) infinite;
}
@keyframes cue { 70% { transform: translateY(64px); opacity: 1; } 100% { transform: translateY(64px); opacity: 0; } }

/* hero morph art */
.hero-art { perspective: 1200px; }
.morph {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 4 / 3.1;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(201, 164, 92, 0.08);
  transform: rotateY(-5deg) rotateX(1.5deg);
}
.mini { position: absolute; inset: 0; font-size: clamp(6px, 2.1cqw, 12px); display: flex; flex-direction: column; }
.mini i { display: block; border-radius: 2px; }
.mb-body { flex: 1; }
.ma-hero { flex: 1; }
.ma-cols { padding-bottom: 1.4em; }

.mini-before { background: #d6d2c8; font-family: "Times New Roman", Times, serif; color: #222; }
.mb-top {
  background: linear-gradient(#3a5a8c, #1f3a63); color: #fff;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7em 1em; font-weight: 700; font-size: 1.05em;
}
.mb-nav { display: flex; gap: 0.5em; }
.mb-nav i { width: 4.2em; height: 1.7em; background: #d4d0c8; border: 2px outset #f2f0ec; border-radius: 0; }
.mb-banner {
  background: #ffff99; color: #cc0000; text-align: center; font-weight: 700;
  padding: 0.45em; font-size: 1em; animation: blink 1.1s steps(2, start) infinite;
}
@keyframes blink { 50% { opacity: 0.25; } }
.mb-body { display: flex; gap: 1em; padding: 1em; }
.mb-side { width: 26%; background: #fff; border: 1px solid #999; padding: 0.8em 0.6em; display: flex; flex-direction: column; gap: 0.7em; }
.mb-side i { height: 0.6em; background: #3333cc; opacity: 0.55; width: 85%; }
.mb-main { flex: 1; background: #fff; border: 1px solid #999; padding: 1em; display: flex; flex-direction: column; gap: 0.65em; align-items: center; }
.mb-h { font-size: 1.35em; font-weight: 700; text-align: center; }
.mb-main i { height: 0.55em; background: #666; opacity: 0.4; align-self: stretch; }
.mb-main .w90 { width: 90%; } .mb-main .w100 { width: 100%; } .mb-main .w95 { width: 95%; } .mb-main .w60 { width: 60%; }
.mb-counter { font-size: 0.8em; border: 1px inset #999; background: #000; color: #33ff33; font-family: monospace; padding: 0.2em 0.6em; margin-top: 0.4em; }

.mini-after { background: #0e0e17; color: var(--paper); clip-path: inset(0 100% 0 0); animation: morphClip 9s cubic-bezier(0.6, 0, 0.35, 1) infinite; }
.ma-top { display: flex; align-items: center; gap: 1.2em; padding: 1em 1.4em; border-bottom: 1px solid rgba(244, 239, 230, 0.12); }
.ma-brand { font-family: var(--serif); font-size: 1.25em; color: var(--paper); }
.ma-nav { display: flex; gap: 0.9em; margin-left: auto; }
.ma-nav i { width: 2.6em; height: 0.5em; background: rgba(244, 239, 230, 0.3); border-radius: 99px; }
.ma-pill { width: 5.4em; height: 1.7em; border: 1px solid var(--gold); border-radius: 99px; }
.ma-hero { padding: 1.6em 1.4em 1.2em; display: flex; flex-direction: column; gap: 0.8em; }
.ma-display { font-family: var(--serif); font-size: 2.15em; line-height: 1.05; }
.ma-display em { color: var(--gold); }
.ma-rule { width: 3.4em; height: 2px; background: var(--gold); }
.ma-hero i { height: 0.55em; background: rgba(244, 239, 230, 0.22); border-radius: 99px; }
.ma-hero .w70 { width: 70%; } .ma-hero .w50 { width: 50%; }
.ma-cta { width: 8em; height: 2em; border-radius: 99px; background: linear-gradient(120deg, var(--gold), var(--gold-bright)); margin-top: 0.4em; }
.ma-cols { display: flex; gap: 1em; padding: 0 1.4em; }
.ma-cols i { flex: 1; height: 2.6em; border: 1px solid rgba(244, 239, 230, 0.14); border-radius: 4px; }

@keyframes morphClip {
  0%, 36% { clip-path: inset(0 100% 0 0); }
  48%, 86% { clip-path: inset(0 0 0 0); }
  98%, 100% { clip-path: inset(0 100% 0 0); }
}
.scanline {
  position: absolute; top: 0; bottom: 0; left: 0; width: 2px;
  background: linear-gradient(var(--gold-bright), var(--gold));
  box-shadow: 0 0 18px 2px rgba(231, 204, 143, 0.75);
  opacity: 0;
  animation: scan 9s cubic-bezier(0.6, 0, 0.35, 1) infinite;
}
@keyframes scan {
  0%, 36% { left: 0%; opacity: 0; }
  38% { opacity: 1; }
  46% { opacity: 1; }
  48%, 86% { left: 100%; opacity: 0; }
  88% { opacity: 1; }
  96% { opacity: 1; }
  98%, 100% { left: 0%; opacity: 0; }
}
.morph-caption { text-align: center; margin-top: 1.1rem; font-size: 0.88rem; color: var(--paper-dim); }
.morph-caption em { color: var(--gold); }

/* ---------- problem / template mill ---------- */
.problem { padding: var(--sect) 0; position: relative; }
.mill { display: flex; gap: clamp(0.8rem, 2vw, 1.6rem); align-items: flex-end; justify-content: center; margin-top: 1rem; }
.mill-card { width: clamp(96px, 13vw, 150px); flex-shrink: 0; }
.mill-card svg { width: 100%; height: auto; display: block; }
.mill-card figcaption { text-align: center; font-size: 0.75rem; color: rgba(198, 192, 177, 0.55); margin-top: 0.6rem; letter-spacing: 0.04em; }
.t-frame { fill: var(--ink-2); stroke: rgba(244, 239, 230, 0.18); }
.t-dim { fill: rgba(244, 239, 230, 0.1); }
.t-line { stroke: rgba(244, 239, 230, 0.18); stroke-width: 2; stroke-linecap: round; }
.mill-yours { width: clamp(118px, 16vw, 186px); transform: translateY(-14px); }
.mill-yours figcaption { color: var(--gold); }
.t-frame-gold { fill: var(--ink-3); stroke: var(--gold); stroke-width: 1.5; }
.t-serif { font-family: var(--serif); font-style: italic; font-size: 30px; fill: var(--gold-bright); }
.t-gold-dim { fill: rgba(201, 164, 92, 0.22); }
.t-gold-line { stroke: var(--gold); stroke-width: 2.5; stroke-linecap: round; }
.t-gold { fill: var(--gold); }
.mill-note { text-align: center; font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--paper-dim); margin-top: 2rem; }

/* ---------- craft (paper) ---------- */
.paper { background: var(--paper); color: #231c0f; }
.paper .eyebrow { color: #8f6e2f; }
.craft { padding: var(--sect) 0; }
.craft .quote { max-width: 15em; }
.cite { font-size: 0.95rem; color: rgba(35, 28, 15, 0.55); margin: -0.6rem 0 1.6rem; letter-spacing: 0.04em; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.5vw, 2.4rem); margin: 3rem 0 4rem; }
.step { border-top: 1px solid rgba(35, 28, 15, 0.25); padding-top: 1.4rem; position: relative; }
.step-no { font-family: var(--serif); font-size: 2.2rem; color: #8f6e2f; display: block; margin-bottom: 0.6rem; }
.step h3 { font-size: 1.35rem; margin-bottom: 0.6rem; }
.step p { font-size: 0.95rem; color: rgba(35, 28, 15, 0.72); }

.col-art { margin-top: 1rem; }
.col-art svg { width: 100%; height: auto; display: block; }
.col-art .ground { stroke: rgba(35, 28, 15, 0.22); stroke-width: 1; fill: none; }
.col-art path, .col-art circle { fill: none; stroke: #a5813d; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.col-art [pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; }
.col-art.in [pathLength] { animation: draw 1.3s cubic-bezier(0.55, 0, 0.3, 1) forwards; animation-delay: calc(var(--i, 0) * 0.14s); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.col-art .rough path { stroke: rgba(133, 103, 48, 0.75); }
.col-art .hatch { stroke-width: 1; opacity: 0.6; }
.col-art .embedded path, .col-art .embedded rect, .col-art .embedded circle { stroke: rgba(133, 103, 48, 0.5); stroke-width: 1.1; fill: none; }
.col-art .constr { opacity: 0; transition: opacity 1.4s ease 1s; }
.col-art.in .constr { opacity: 0.4; }
.col-art .constr [pathLength] { stroke-dasharray: 0.014 0.009; stroke-dashoffset: 0; stroke-width: 1; animation: none !important; }
.col-art .column path { stroke: #a5813d; }
.col-art .soft { opacity: 0.55; stroke-width: 1.1; }
.col-labels { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 1.2rem; }
.col-labels span { text-align: center; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(35, 28, 15, 0.55); }

/* ---------- exhibit A / comparator ---------- */
.exhibit { padding: var(--sect) 0; position: relative; }
.cmp {
  --cut: 50%;
  position: relative;
  container-type: inline-size;
  aspect-ratio: 16 / 10.5;
  min-height: 340px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(201, 164, 92, 0.3);
  box-shadow: 0 50px 110px rgba(0, 0, 0, 0.6);
}
.pane { position: absolute; inset: 0; overflow: hidden; display: flex; flex-direction: column; }
.pane { font-size: clamp(6.5px, 1.7cqw, 17px); }

/* — before — */
.pane-before { background: #cfcbc0; font-family: "Times New Roman", Times, serif; color: #1c1c1c; }
.bf-body { flex: 1; }
.bf-footer {
  text-align: center; font-size: 0.78em; font-family: Verdana, sans-serif;
  color: #55554e; padding: 0.9em; border-top: 1px solid #a9a69c;
}
.bf-footer u { color: #0000ee; }
.bf-top {
  background: linear-gradient(#41639a, #1f3a63); color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 1em;
  padding: 0.8em 1.2em;
}
.bf-logo { font-weight: 700; font-size: 1.25em; letter-spacing: 0.02em; white-space: nowrap; }
.bf-btns { display: flex; gap: 0.4em; }
.bf-btns i {
  font-style: normal; font-size: 0.72em; font-family: Verdana, sans-serif;
  background: #d4d0c8; color: #111; border: 2px outset #f0eee9;
  padding: 0.35em 0.8em; white-space: nowrap;
}
.bf-banner {
  background: #ffff99; color: #c00; font-weight: 700; text-align: center;
  padding: 0.5em; font-size: 1em; border-bottom: 2px solid #c00;
  animation: blink 1.2s steps(2, start) infinite;
}
.bf-body { display: flex; gap: 1.2em; padding: 1.2em; }
.bf-side {
  width: 24%; background: #fff; border: 1px solid #8a8a8a; padding: 1em;
  display: flex; flex-direction: column; gap: 0.75em; font-size: 0.95em;
}
.bf-side b { font-family: Verdana, sans-serif; font-size: 0.8em; }
.bf-side u { color: #0000ee; cursor: pointer; }
.bf-main { flex: 1; background: #fff; border: 1px solid #8a8a8a; padding: 1.4em 1.6em; display: flex; flex-direction: column; gap: 0.9em; align-items: center; text-align: center; }
.bf-h { font-size: 1.7em; font-weight: 700; }
.bf-main p { font-size: 1em; text-align: justify; }
.bf-scales { font-size: 2.6em; line-height: 1; }
.bf-counter { font-size: 0.78em; font-family: Verdana, sans-serif; color: #444; border-top: 1px dashed #999; padding-top: 0.8em; }

/* — after — */
.pane-after { background: #0d0d16; color: var(--paper); clip-path: inset(0 0 0 var(--cut)); }
.af-top { display: flex; align-items: center; gap: 2em; padding: 1.3em 2em; border-bottom: 1px solid rgba(244, 239, 230, 0.12); }
.af-brand { font-family: var(--serif); font-size: 1.5em; white-space: nowrap; }
.af-brand em { color: var(--gold); }
.af-links { display: flex; gap: 1.6em; margin-left: auto; }
.af-links i { font-style: normal; font-size: 0.82em; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(244, 239, 230, 0.66); }
.af-pill { font-size: 0.8em; border: 1px solid var(--gold); color: var(--gold-bright); border-radius: 99px; padding: 0.5em 1.1em; white-space: nowrap; }
.af-hero { display: flex; gap: 2.5em; padding: 2.6em 2em 1.6em; flex: 1; }
.af-left { flex: 1.25; display: flex; flex-direction: column; gap: 0.9em; }
.af-eyebrow { font-size: 0.72em; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
.af-display { font-family: var(--serif); font-size: 2.9em; line-height: 1.02; letter-spacing: -0.01em; }
.af-display em { color: var(--gold); }
.af-lede { font-size: 0.95em; color: rgba(244, 239, 230, 0.66); max-width: 30em; }
.af-cta {
  align-self: flex-start; font-size: 0.85em; font-weight: 560;
  background: linear-gradient(120deg, var(--gold), var(--gold-bright)); color: #14100a;
  border-radius: 99px; padding: 0.75em 1.5em; margin-top: 0.3em;
}
.af-right { flex: 0.75; border-left: 1px solid rgba(244, 239, 230, 0.12); padding-left: 2em; display: flex; flex-direction: column; gap: 0.7em; justify-content: center; }
.af-stars { color: var(--gold); letter-spacing: 0.18em; font-size: 0.95em; }
.af-quote { font-family: var(--serif); font-style: italic; font-size: 1.15em; line-height: 1.35; }
.af-attr { font-size: 0.78em; color: rgba(244, 239, 230, 0.5); }
.af-row { display: flex; gap: 1em; padding: 0 2em; }
.af-row i {
  font-style: normal; flex: 1; text-align: center; font-size: 0.8em;
  letter-spacing: 0.16em; text-transform: uppercase; color: rgba(244, 239, 230, 0.75);
  border: 1px solid rgba(244, 239, 230, 0.16); border-radius: 6px; padding: 1em 0.4em;
}
.af-strip {
  display: flex; align-items: center; justify-content: center; gap: 1.4em;
  margin-top: 1.6em; padding: 1.1em; border-top: 1px solid rgba(244, 239, 230, 0.1);
  font-size: 0.74em; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(244, 239, 230, 0.5);
}
.af-strip b { color: var(--gold); font-weight: 400; }

/* — divider — */
.cmp-line {
  position: absolute; top: 0; bottom: 0; left: var(--cut);
  width: 2px; background: var(--gold);
  box-shadow: 0 0 22px rgba(201, 164, 92, 0.65);
  pointer-events: none;
  transform: translateX(-1px);
}
.cmp-grip {
  position: absolute; top: 50%; left: 1px; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); border: 1.5px solid var(--gold);
  color: var(--gold-bright); font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: 0.05em;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.5);
}
.cmp-range {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none;
  background: transparent; margin: 0; touch-action: none;
}
.cmp-range::-webkit-slider-thumb { -webkit-appearance: none; width: 60px; height: 100%; }
.cmp-range::-moz-range-thumb { width: 60px; height: 100%; border: 0; background: transparent; }
.cmp-tag {
  position: absolute; bottom: 14px; z-index: 3;
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.45em 0.9em; border-radius: 999px; pointer-events: none;
  transition: opacity 0.3s;
}
.cmp-tag-l { left: 14px; background: rgba(255, 255, 255, 0.85); color: #333; }
.cmp-tag-r { right: 14px; background: rgba(10, 10, 18, 0.75); color: var(--gold-bright); border: 1px solid var(--gold-dim); }
.cmp.hide-l .cmp-tag-l { opacity: 0; }
.cmp.hide-r .cmp-tag-r { opacity: 0; }
.cmp-note { text-align: center; margin-top: 1.3rem; font-size: 0.9rem; color: var(--paper); }
.cmp-note .dim { color: rgba(198, 192, 177, 0.55); }

/* ---------- showcase (exhibit B) ---------- */
.showcase { padding: var(--sect) 0; background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.showcase-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.show-list { list-style: none; margin: 0 0 2rem; display: flex; flex-direction: column; gap: 0.7rem; }
.show-list li { display: flex; gap: 0.7em; font-size: 0.97rem; color: var(--paper-dim); }
.show-list li::before { content: "—"; color: var(--gold); flex-shrink: 0; }
.browser { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55); background: #0d0d15; }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #14141f; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2c2c3c; }
.browser-url {
  margin: 0 auto; font-size: 0.72rem; color: var(--paper-dim);
  background: rgba(244, 239, 230, 0.06); padding: 0.3em 1.4em; border-radius: 99px;
  letter-spacing: 0.03em;
}
.jpm { display: block; width: 100%; height: auto; }
.j-brand { font-family: var(--serif); font-size: 19px; fill: #c6a15b; }
.j-nav { stroke: rgba(198, 161, 91, 0.75); stroke-width: 2; stroke-linecap: round; }
.j-pill { fill: none; stroke: #c6a15b; }
.j-display { font-family: var(--serif); font-size: 23px; fill: #ede7da; }
.j-display-em { font-family: var(--serif); font-style: italic; font-size: 23px; fill: #c6a15b; }
.j-rule { stroke: #c6a15b; stroke-width: 1.5; }
.j-bar { fill: rgba(237, 231, 218, 0.22); }
.j-cta { fill: #c6a15b; }
.j-portrait rect { fill: #1a211d; stroke: rgba(198, 161, 91, 0.45); }
.j-portrait circle, .j-portrait path { fill: #2c3630; }
.j-stars { fill: #c6a15b; font-size: 13px; letter-spacing: 2px; }
.j-rev { fill: rgba(237, 231, 218, 0.55); font-size: 10px; font-family: var(--sans); }
.showcase-cap { text-align: center; margin-top: 1.1rem; font-size: 0.85rem; color: var(--paper-dim); }

/* ---------- integration ---------- */
.integration { padding: var(--sect) 0; }
.diagram { position: relative; margin: 1rem 0 3.5rem; }
.diagram svg { width: 100%; height: auto; display: block; }
.d-site rect { fill: var(--ink-2); stroke: var(--line); }
.d-site > rect:first-child { stroke: rgba(244, 239, 230, 0.22); }
.d-site circle { fill: rgba(244, 239, 230, 0.18); }
.d-url { fill: rgba(244, 239, 230, 0.07) !important; stroke: none !important; }
.d-urltext { font-family: var(--sans); font-size: 11px; fill: var(--paper-dim); }
.d-bar-strong { fill: rgba(244, 239, 230, 0.3) !important; stroke: none !important; }
.d-bar { fill: rgba(244, 239, 230, 0.14) !important; stroke: none !important; }
.d-cta { fill: var(--gold) !important; stroke: none !important; }
.d-chat { fill: var(--iris) !important; stroke: none !important; }
.d-chatdot { fill: #fff !important; }
.flow { fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-dasharray: 7 11; opacity: 0.75; animation: flowmove 5.5s linear infinite; }
.flow-rev { fill: none; stroke: var(--iris); stroke-width: 1.5; stroke-dasharray: 7 11; opacity: 0.65; animation: flowback 6.5s linear infinite; }
@keyframes flowmove { to { stroke-dashoffset: -180; } }
@keyframes flowback { to { stroke-dashoffset: 180; } }
.d-mylo rect { fill: rgba(139, 124, 255, 0.09); stroke: rgba(139, 124, 255, 0.65); }
.d-mylo { filter: drop-shadow(0 0 26px rgba(139, 124, 255, 0.35)); }
.d-mylotext { font-family: var(--serif); font-size: 24px; fill: var(--paper); text-anchor: middle; }
.d-mylosub { font-family: var(--sans); font-size: 11px; fill: rgba(244, 239, 230, 0.55); text-anchor: middle; letter-spacing: 1px; }
.chip {
  position: absolute; transform: translate(-50%, -50%);
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--ink); border: 1px solid var(--gold-dim); color: var(--gold-bright);
  padding: 0.4em 0.95em; border-radius: 999px; white-space: nowrap;
}
.chip-iris { border-color: rgba(139, 124, 255, 0.5); color: #c9c1ff; }
.int-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.int-card {
  border: 1px solid var(--line); border-radius: 14px; padding: 1.6rem 1.5rem;
  background: linear-gradient(160deg, rgba(244, 239, 230, 0.03), transparent 60%);
  transition: border-color 0.3s, transform 0.3s;
}
.int-card:hover { border-color: var(--gold-dim); transform: translateY(-3px); }
.int-card h3 { font-size: 1.22rem; margin-bottom: 0.55rem; }
.int-card p { font-size: 0.92rem; color: var(--paper-dim); }
.int-card:nth-child(4), .int-card:nth-child(5) { grid-column: span 1; }

/* ---------- pricing ---------- */
.pricing { padding: var(--sect) 0; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; align-items: stretch; }
.tier {
  background: #fbf8f1; border: 1px solid rgba(35, 28, 15, 0.14); border-radius: 18px;
  padding: 2.1rem 1.9rem; position: relative; display: flex; flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}
.tier:hover { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(35, 28, 15, 0.12); }
.tier h3 { font-size: 1.5rem; }
.tier-for { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: #8f6e2f; margin: 0.3rem 0 1.6rem; }
.tier-price { display: flex; align-items: baseline; gap: 0.5rem; }
.tier-price .amt { font-family: var(--serif); font-size: 2.9rem; letter-spacing: -0.01em; }
.tier-price .per { font-size: 0.85rem; color: rgba(35, 28, 15, 0.55); letter-spacing: 0.08em; text-transform: uppercase; }
.tier-monthly { font-size: 0.95rem; color: rgba(35, 28, 15, 0.65); margin: 0.2rem 0 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(35, 28, 15, 0.14); }
.tier ul { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.tier li { display: flex; gap: 0.7em; font-size: 0.92rem; color: rgba(35, 28, 15, 0.8); }
.tier li::before { content: "—"; color: #8f6e2f; flex-shrink: 0; }
.tier-featured { background: var(--ink); color: var(--paper); border-color: var(--gold); box-shadow: 0 30px 80px rgba(35, 28, 15, 0.25); }
.tier-featured .tier-for { color: var(--gold); }
.tier-featured .tier-price .per { color: var(--paper-dim); }
.tier-featured .tier-monthly { color: var(--paper-dim); border-bottom-color: var(--line); }
.tier-featured li { color: var(--paper-dim); }
.tier-featured li::before { color: var(--gold); }
.tier-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(120deg, var(--gold), var(--gold-bright)); color: #14100a;
  font-size: 0.72rem; font-weight: 620; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.45em 1.2em; border-radius: 999px; white-space: nowrap;
}
.tier-note { text-align: center; margin-top: 2.4rem; font-size: 0.95rem; color: rgba(35, 28, 15, 0.65); }
.tier-note strong { color: #231c0f; }

/* ---------- ecosystem ---------- */
.eco { padding: var(--sect) 0; position: relative; overflow: hidden; }
.stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.star-line { fill: none; stroke: rgba(201, 164, 92, 0.12); stroke-width: 1; }
.tw { fill: var(--gold); opacity: 0.3; animation: twinkle 3.4s ease-in-out infinite; animation-delay: var(--td, 0s); }
@keyframes twinkle { 50% { opacity: 1; } }
.eco .wrap { position: relative; }
.eco-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.eco-card {
  display: flex; flex-direction: column; gap: 0.55rem;
  border: 1px solid var(--line); border-radius: 14px; padding: 1.7rem 1.6rem;
  background: rgba(16, 16, 25, 0.72); backdrop-filter: blur(4px);
  transition: border-color 0.3s, transform 0.3s, background 0.3s;
  position: relative;
}
.eco-card:hover { border-color: var(--gold); transform: translateY(-4px); background: rgba(23, 23, 37, 0.9); }
.eco-card h3 { font-size: 1.3rem; }
.eco-card p { font-size: 0.9rem; color: var(--paper-dim); flex: 1; }
.eco-domain { font-size: 0.78rem; letter-spacing: 0.08em; color: var(--gold); text-transform: lowercase; }
.eco-flag {
  position: absolute; top: 1.3rem; right: 1.3rem;
  font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--gold-dim); border-radius: 999px; padding: 0.25em 0.7em;
}
.eco-soon { border-style: dashed; opacity: 0.75; }
.eco-soon .eco-domain { letter-spacing: 0.4em; }

/* ---------- final cta ---------- */
.final { padding: calc(var(--sect) * 1.15) 0; text-align: center; position: relative; overflow: hidden; }
.final::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(760px 480px at 50% 110%, rgba(201, 164, 92, 0.14), transparent 70%);
}
.final h2 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.final .section-lede { margin-left: auto; margin-right: auto; }
.member-line { margin-top: 2.2rem; font-size: 0.92rem; color: var(--paper-dim); }

/* ---------- footer ---------- */
.footer { background: var(--ink-2); border-top: 1px solid var(--line); padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer-brand p { font-size: 0.9rem; color: var(--paper-dim); margin-top: 1rem; max-width: 26em; }
.footer-wink { font-family: var(--serif); font-style: italic; }
.footer-wink em { color: var(--gold); }
.footer-col { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col h4 {
  font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); font-weight: 560; margin-bottom: 0.5rem; font-family: var(--sans);
}
.footer-col a { font-size: 0.92rem; color: var(--paper-dim); transition: color 0.2s; }
.footer-col a:hover { color: var(--paper); }
.footer-legal {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 1.6rem;
  font-size: 0.8rem; color: rgba(198, 192, 177, 0.5);
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { max-width: 560px; }
  .int-grid { grid-template-columns: repeat(2, 1fr); }
  .eco-grid { grid-template-columns: repeat(2, 1fr); }
  .tiers { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .tier-featured { order: -1; }
  .showcase-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .diagram { display: none; }
}
@media (max-width: 860px) {
  .links {
    position: fixed; inset: 0; top: 0; padding-top: 6rem;
    background: rgba(10, 10, 18, 0.97); backdrop-filter: blur(10px);
    flex-direction: column; justify-content: flex-start; gap: 2rem;
    display: none; z-index: 150;
  }
  body.menu-open .links { display: flex; }
  body.menu-open { overflow: hidden; }
  .links > a:not(.btn) { font-size: 1.3rem; font-family: var(--serif); color: var(--paper); }
  .burger {
    display: flex; flex-direction: column; gap: 6px; z-index: 160;
    background: none; border: 0; cursor: pointer; padding: 8px;
  }
  .burger span { width: 26px; height: 1.5px; background: var(--paper); transition: transform 0.3s, opacity 0.3s; }
  body.menu-open .burger span:first-child { transform: translateY(3.75px) rotate(45deg); }
  body.menu-open .burger span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .mill { flex-wrap: wrap; align-items: center; }
  .mill-yours { transform: none; }
}
@media (max-width: 620px) {
  body { font-size: 15.5px; }
  .brand-chip { display: none; }
  .cmp { aspect-ratio: auto; height: 430px; }
  .cmp-grip { width: 38px; height: 38px; }
  .proof { flex-direction: column; gap: 0.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-legal { justify-content: center; }
  .af-hero { padding: 1.8em 1.4em 1.2em; }
  .bf-btns i:nth-child(n+4) { display: none; }
}
/* hide dense sub-content when comparator gets narrow */
@container (max-width: 600px) {
  .bf-side { display: none; }
  .af-right { display: none; }
  .af-hero { gap: 0; }
  .bf-scales, .bf-footer, .af-strip { display: none; }
  .bf-main { padding: 1em; }
  .bf-btns i:nth-child(n + 3) { display: none; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .mini-after { animation: none; clip-path: inset(0 0 0 50%); }
  .scanline { animation: none; opacity: 0; }
  .mb-banner, .bf-banner { animation: none; }
  .scroll-cue span, .tw, .flow, .flow-rev { animation: none; }
  .col-art [pathLength] { stroke-dasharray: none; stroke-dashoffset: 0; }
  .col-art.in [pathLength] { animation: none; }
  .col-art .constr { opacity: 0.4; transition: none; }
}
