/* The Freeze Files — avvio.xyz/wise. Matches the Avvio blog theme. */
:root {
  --primary: #AAFF00;
  --body: #000000;
  --surface: #121316;
  --border: #262A35;
  --text: #B9BDC7;
  --text-dark: #FFFFFF;
  --text-light: #8A8F9A;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--body);
  color: var(--text);
  font-family: "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }
.wrap-wide { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Nav */
nav {
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: rgba(0,0,0,.92); backdrop-filter: blur(8px); z-index: 50;
}
.nav-inner { display: flex; align-items: center; gap: 22px; padding: 14px 20px; max-width: 1080px; margin: 0 auto; }
.nav-inner .brand { color: var(--text-dark); font-weight: 700; text-decoration: none; font-size: 17px; margin-right: auto; }
.nav-inner .brand span { color: var(--primary); }
.nav-inner a { color: var(--text); text-decoration: none; font-size: 15px; font-weight: 600; }
.nav-inner a:hover { color: var(--primary); }
.nav-inner a.btn { color: var(--body); }
@media (max-width: 720px) { .nav-inner { flex-wrap: wrap; gap: 12px; } .nav-inner .navlink { display: none; } }

/* Type */
h1, h2, h3 { color: var(--text-dark); line-height: 1.15; font-weight: 800; }
h1 { font-size: clamp(34px, 6vw, 58px); letter-spacing: -0.02em; }
h2 { font-size: clamp(24px, 3.6vw, 34px); margin-bottom: 14px; letter-spacing: -0.01em; }
h3 { font-size: 20px; margin-bottom: 8px; }
p + p { margin-top: 14px; }
a { color: var(--primary); }
a:hover { color: var(--text-dark); }
.muted { color: var(--text-light); font-size: 14px; }
.kicker { color: var(--primary); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: 13px; margin-bottom: 14px; }

/* Sections */
section { padding: 64px 0; }
.hero { padding: 92px 0 72px; text-align: center; }
.hero p.lead { font-size: clamp(18px, 2.4vw, 22px); max-width: 640px; margin: 22px auto 0; }

/* Buttons */
.btn {
  display: inline-block; background: var(--primary); color: var(--body);
  font-weight: 800; text-decoration: none; padding: 14px 28px; border-radius: 10px;
  font-size: 16px; border: 1px solid var(--primary); transition: opacity .15s;
}
.btn:hover { opacity: .85; color: var(--body); }
.btn-outline { background: transparent; color: var(--text-dark); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); opacity: 1; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

/* Cards */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 26px;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 760px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* Story cards */
.story-card { display: flex; flex-direction: column; gap: 12px; }
.story-quote { color: var(--text-dark); font-size: 18px; font-weight: 700; line-height: 1.4; }
.story-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--text-light); }
.badge {
  display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px;
  border-radius: 999px; border: 1px solid var(--border); color: var(--text);
}
.badge.tier3 { border-color: var(--primary); color: var(--primary); }
.stat-row { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; text-align: center; }
.stat-row .num { color: var(--primary); font-size: 44px; font-weight: 800; display: block; }

/* Tables */
table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }
th, td { text-align: left; padding: 12px 14px; border: 1px solid var(--border); vertical-align: top; }
th { color: var(--text-dark); background: var(--surface); }
td strong { color: var(--text-dark); }
.table-scroll { overflow-x: auto; }

/* Forms */
form label { display: block; color: var(--text-dark); font-weight: 700; margin: 18px 0 6px; font-size: 15px; }
form input[type=text], form input[type=email], form select, form textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  color: var(--text-dark); padding: 12px 14px; font-family: inherit; font-size: 15px;
}
form input:focus, form select:focus, form textarea:focus { outline: none; border-color: var(--primary); }
form .check { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 14px; }
form .check input { margin-top: 4px; }
form button { margin-top: 24px; cursor: pointer; font-family: inherit; }

/* Callouts + fine print */
.callout { border-left: 3px solid var(--primary); background: var(--surface); padding: 18px 22px; border-radius: 0 12px 12px 0; margin: 20px 0; }
.fineprint { font-size: 13px; color: var(--text-light); line-height: 1.6; }
footer { padding: 40px 0 60px; margin-top: 40px; }
ul.clean { list-style: none; }
ul.clean li { padding-left: 26px; position: relative; margin: 10px 0; }
ul.clean li::before { content: "→"; position: absolute; left: 0; color: var(--primary); font-weight: 800; }
ol.steps { counter-reset: step; list-style: none; }
ol.steps li { counter-increment: step; position: relative; padding-left: 44px; margin: 18px 0; }
ol.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: var(--body);
  font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center;
}
.src { font-size: 12px; color: var(--text-light); }

/* ===== Hub v2: the dossier ===== */

/* Hero */
.hero2 { position: relative; overflow: hidden; padding: 100px 0 70px; text-align: center; }
.stamp {
  position: absolute; top: 34px; left: 50%; transform: translateX(-50%) rotate(-8deg);
  font-size: clamp(90px, 16vw, 180px); font-weight: 900; letter-spacing: .06em;
  color: transparent; -webkit-text-stroke: 1px #262A35; text-stroke: 1px #262A35;
  border: 3px double #262A35; border-radius: 10px; padding: 0 30px;
  opacity: .5; pointer-events: none; user-select: none; white-space: nowrap;
}
.hero2 > * { position: relative; }
.srcline { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--text-light); letter-spacing: .04em; }

/* SVG card art */
.cardart { width: 340px; max-width: 88vw; margin: 44px auto 0; transform: rotate(-3deg); filter: drop-shadow(0 18px 40px rgba(0,0,0,.55)); animation: cardfloat 6s ease-in-out infinite; }
.cardart svg { width: 100%; height: auto; display: block; }
.close2 .cardart { margin: 34px auto 0; transform: rotate(2deg); }
@keyframes cardfloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@media (prefers-reduced-motion: reduce) { .cardart { animation: none; } }

/* Receipt ticker */
.marq { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; padding: 14px 0; }
.marq + .marq { border-top: none; }
.marq-track { display: inline-flex; gap: 56px; white-space: nowrap; animation: marq 46s linear infinite; will-change: transform; }
.marq.rev .marq-track { animation: marqrev 58s linear infinite; }
.marq:hover .marq-track { animation-play-state: paused; }
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marqrev { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.marq .q { color: var(--text-dark); font-size: 15px; font-weight: 600; }
.marq .q:nth-child(odd) { opacity: .55; }
.marq .s { color: var(--primary); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; margin-left: 10px; }

/* Hero number */
.bignum { font-size: clamp(150px, 28vw, 300px); font-weight: 900; line-height: .9; color: var(--text-dark); position: relative; display: inline-block; }
.bignum::after { content: ""; position: absolute; left: 0; bottom: -8px; height: 10px; width: 100%; background: var(--primary); transform-origin: left; transform: scaleX(0); transition: transform 1.1s cubic-bezier(.2,.7,.2,1) .2s; }
.bignum.in::after { transform: scaleX(1); }
.numrow { display: flex; gap: 40px; align-items: center; flex-wrap: wrap; }
.numunit { color: var(--primary); font-weight: 800; letter-spacing: .2em; text-transform: uppercase; font-size: 15px; }
.months { display: flex; gap: 6px; margin-top: 30px; max-width: 460px; }
.months div { flex: 1; }
.months .seg { height: 8px; border-radius: 4px; background: var(--primary); }
.months .seg.half { background: linear-gradient(90deg, var(--primary) 50%, var(--border) 50%); }
.months .lab { font-size: 10px; color: var(--text-light); margin-top: 6px; text-transform: uppercase; letter-spacing: .08em; text-align: center; }

/* Timeline */
.tl { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 26px 4px 18px; position: relative; }
.tl::-webkit-scrollbar { height: 6px; }
.tl::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.tl-card { min-width: 250px; max-width: 280px; scroll-snap-align: start; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px; position: relative; }
.tl-card::before { content: ""; position: absolute; top: -26px; left: 22px; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 24px rgba(170,255,0,.35); }
.tl-day { color: var(--primary); font-size: 40px; font-weight: 900; line-height: 1; margin-bottom: 10px; }
.tl-wrap { position: relative; }
.tl-wrap::before { content: ""; position: absolute; top: 26px; left: 0; right: 0; height: 2px; background: var(--border); }
.tl-wrap .fill { position: absolute; top: 26px; left: 0; height: 2px; background: var(--primary); width: var(--progress, 0%); z-index: 1; }
.tlfade { position: relative; }
.tlfade::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 60px; background: linear-gradient(90deg, transparent, var(--body)); pointer-events: none; }

/* File index */
.file-row { display: grid; grid-template-columns: 74px 112px 1fr auto; gap: 14px; align-items: center; padding: 14px 10px; border-bottom: 1px solid var(--border); text-decoration: none; opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .5s ease, background .15s; transition-delay: calc(var(--i, 0) * 30ms); }
.file-row.in { opacity: 1; transform: none; }
.file-row:hover { background: var(--surface); }
.file-row .fno { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--primary); font-weight: 700; font-size: 13px; letter-spacing: .06em; }
.file-row:hover .fno { text-shadow: 0 0 18px rgba(170,255,0,.55); }
.file-row .ftag { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text); border: 1px solid var(--border); border-radius: 999px; padding: 3px 8px; text-align: center; }
.file-row .fex { color: var(--text-dark); font-size: 15px; }
.file-row .fsrc { color: var(--text-light); font-size: 12px; white-space: nowrap; }
.file-row .fsrc::after { content: " ↗"; color: var(--primary); }
.file-row.fos { border-left: 3px solid var(--primary); padding-left: 12px; }
.file-hidden { display: none; }
.ftabs { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0 6px; }
.ftab { background: transparent; border: 1px solid var(--border); color: var(--text); border-radius: 999px; padding: 7px 16px; font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.ftab.on { border-color: var(--primary); color: var(--primary); }
@media (max-width: 700px) { .file-row { grid-template-columns: 58px 1fr; } .file-row .ftag { display: none; } .file-row .fsrc { grid-column: 2; justify-self: start; } }

/* Exhibit quotes */
.quote-xl { font-size: clamp(26px, 4.4vw, 52px); font-weight: 800; color: var(--text-dark); line-height: 1.2; margin: 34px 0; position: relative; padding-left: 34px; }
.quote-xl::before { content: "\201C"; position: absolute; left: 0; top: -6px; color: var(--primary); font-size: 1.4em; }
.quote-xl.para::before { content: "§"; font-size: .9em; top: 2px; }
.quote-xl.dim { opacity: .55; }
.cite { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-light); }
.cite a { color: var(--text-light); }
.cite a:hover { color: var(--primary); }

/* Flow diagram */
.flows { display: grid; gap: 26px; }
@media (min-width: 1024px) { .flows { grid-template-columns: 1fr 1fr; } }
.flow { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 26px; }
.flow .flabel { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--text-light); margin-bottom: 20px; }
.flow.avvio .flabel { color: var(--primary); }
.frow { display: flex; align-items: center; flex-wrap: wrap; gap: 0; margin-bottom: 18px; }
.node { border: 1px solid var(--border); background: var(--body); border-radius: 999px; padding: 9px 16px; color: var(--text-dark); font-size: 14px; font-weight: 700; white-space: nowrap; }
.node.key { border-color: var(--primary); color: var(--primary); box-shadow: 0 0 22px rgba(170,255,0,.25); }
.node.ghostn { border-style: dashed; color: var(--text-light); font-weight: 600; background: transparent; }
.conn { width: 26px; height: 2px; background: var(--border); flex: 0 0 auto; }
.flow.avvio .conn { background: var(--primary); }
.switch { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 999px; padding: 6px 10px; background: var(--body); }
.switch .track { width: 44px; height: 22px; border-radius: 999px; background: var(--border); position: relative; }
.switch .track::after { content: ""; position: absolute; top: 3px; right: 3px; width: 16px; height: 16px; border-radius: 50%; background: #DDE1E6; }
.switch .slab { font-size: 12px; font-weight: 800; color: var(--text-dark); }

/* Reserved slots */
.slots { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.slot { border: 1px dashed var(--border); border-radius: 14px; min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: rgba(170,255,0,.5); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; font-size: 14px; }
.slot .res { color: var(--text-light); font-size: 11px; letter-spacing: .3em; }
.slot.hot { border-color: var(--primary); color: var(--primary); box-shadow: 0 0 34px rgba(170,255,0,.12) inset; }

/* Filed note */
.filednote { max-width: 620px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 30px; position: relative; }
.filednote::before { content: ""; position: absolute; top: -12px; left: 26px; width: 16px; height: 34px; border: 3px solid var(--text-light); border-radius: 8px; border-bottom: none; }
.filednote::after { content: ""; position: absolute; top: -4px; left: 31px; width: 6px; height: 22px; border: 2px solid var(--text-light); border-radius: 4px; border-bottom: none; }
.filednote p { font-weight: 400; }

/* Close */
.close2 { position: relative; text-align: center; padding: 110px 0 80px; }
.close2::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 30%, rgba(170,255,0,.08), transparent 60%); pointer-events: none; }
.close2 > * { position: relative; }
.chips { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

/* Sticky mobile CTA */
.stickycta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: rgba(0,0,0,.94); border-top: 1px solid var(--border); padding: 10px 16px; display: none; align-items: center; justify-content: space-between; gap: 12px; transform: translateY(110%); transition: transform .3s ease; }
.stickycta.show { transform: none; }
.stickycta .muted { font-size: 12px; }
@media (max-width: 820px) { .stickycta { display: flex; } }

/* FAQ */
.faq h3 { font-size: 17px; margin-top: 24px; }
.faq p { margin-top: 6px; }

@media (prefers-reduced-motion: reduce) {
  .marq-track { animation: none !important; white-space: normal; flex-wrap: wrap; }
  .file-row { opacity: 1; transform: none; transition: none; }
  .bignum::after { transform: scaleX(1); transition: none; }
}
