/* ============================================================
   CREWFAIR — marketing site design system
   Dark harbour ground · one cyan accent · amber counts · mono eyebrows
   ============================================================ */

:root {
  --bg: #050d1a;
  --bg-2: #071224;
  --card: #0b1728;
  --card-2: #10203a;
  --line: rgba(148,184,222,.14);
  --line-2: rgba(148,184,222,.26);
  --text: #dbe7f3;
  --text-2: #8fa6bd;
  --text-3: #5f7791;
  --accent: #4ccee1;
  --accent-2: #7fe3f0;
  --accent-dim: rgba(76,206,225,.14);
  --amber: #f5b840;
  --amber-dim: rgba(245,184,64,.16);
  --green: #3ddc97;
  --green-dim: rgba(61,220,151,.16);
  --red: #ff6b6b;
  --red-dim: rgba(255,107,107,.16);
  --blue: #5aa9ff;

  --maxw: 1180px;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-win: 16px;

  --font-display: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-sans); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; margin: 0 0 .5em; color: #fff; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
strong, b { color: #fff; font-weight: 600; }
.accent, h1 .accent, h2 .accent { color: var(--accent); }
.mono { font-family: var(--font-mono); font-weight: 500; }
.muted { color: var(--text-2); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  font-family: var(--font-mono); font-weight: 500; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent); opacity: .8; }
.center .eyebrow { justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 12px; font-weight: 600; font-size: 15.5px; line-height: 1;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #04101c; box-shadow: 0 8px 30px rgba(76,206,225,.22); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(76,206,225,.32); color: #04101c; }
.btn-ghost { background: rgba(255,255,255,.02); border: 1px solid var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: #fff; transform: translateY(-2px); }
.btn-sm { padding: 10px 16px; font-size: 14px; border-radius: 10px; }
.btn-lg { padding: 17px 30px; font-size: 16.5px; }

/* ---------- Announcement bar ---------- */
.announce {
  background: linear-gradient(90deg, rgba(245,184,64,.10), rgba(245,184,64,.04));
  border-bottom: 1px solid rgba(245,184,64,.22); color: var(--amber);
  font-size: 13.5px; text-align: center; padding: 9px 44px 9px 16px; position: relative;
}
.announce b { color: var(--amber); font-weight: 700; }
.announce[hidden] { display: none; }
.announce-x { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--amber); opacity: .7; font-size: 18px; padding: 4px 8px; }
.announce-x:hover { opacity: 1; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5,13,26,.72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header .container { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.brand:hover { color: #fff; }
.brand svg { width: 28px; height: 28px; }
.brand .tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 500; margin-left: 4px; display: none; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { color: var(--text-2); font-size: 14.5px; font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.04); }
.header-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.header-cta .signin { color: var(--text-2); font-weight: 500; font-size: 14.5px; padding: 8px 12px; }
.header-cta .signin:hover { color: #fff; }
.burger { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); margin-left: auto; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.burger span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.mobile-sheet { display: none; }
@media (max-width: 960px) {
  .nav, .header-cta { display: none; }
  .burger { display: inline-flex; }
  .mobile-sheet { display: none; position: fixed; inset: 66px 0 0 0; background: var(--bg); z-index: 49; padding: 24px; flex-direction: column; gap: 6px; overflow: auto; }
  .mobile-sheet.open { display: flex; }
  .mobile-sheet a { font-size: 20px; font-weight: 600; color: var(--text); padding: 12px 8px; border-bottom: 1px solid var(--line); }
  .mobile-sheet .btn { margin-top: 18px; justify-content: center; }
  body.sheet-open { overflow: hidden; }
  body.sheet-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.sheet-open .burger span:nth-child(2) { opacity: 0; }
  body.sheet-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Sections ---------- */
section { padding: 104px 0; position: relative; }
section.tight { padding: 64px 0; }
section.alt { background: var(--bg-2); }
.section-head { max-width: 760px; margin: 0 auto 56px; }
.section-head p.lead { font-size: 1.15rem; color: var(--text-2); margin: 0; }
@media (max-width: 720px) { section { padding: 72px 0; } .section-head { margin-bottom: 36px; } }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 150px; overflow: hidden; }
.hero h1 { max-width: 14ch; }
.hero .container { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { font-size: 1.2rem; color: var(--text-2); max-width: 560px; margin-bottom: 30px; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .micro { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); margin-top: 18px; letter-spacing: .02em; }
.hero .micro b { color: var(--text-2); font-weight: 500; }
.hero-glow { position: absolute; left: 10%; top: -10%; width: 720px; height: 720px; border-radius: 50%; background: radial-gradient(closest-side, rgba(76,206,225,.14), transparent 70%); pointer-events: none; }
.tide { position: absolute; left: 0; right: 0; bottom: -20px; height: 170px; pointer-events: none; opacity: .9; z-index: 0; }
.tide svg { width: 100%; height: 100%; }
.tide .swell { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 3000; stroke-dashoffset: 3000; opacity: .55; }
.tide .swell-2 { stroke: var(--accent); opacity: .18; stroke-width: 1; stroke-dasharray: 3000; stroke-dashoffset: 3000; }
.tide .tick { stroke: var(--text-3); stroke-width: 1; opacity: 0; }
.tide.go .swell { animation: draw 2.4s var(--ease) forwards; }
.tide.go .swell-2 { animation: draw 2.8s .2s var(--ease) forwards; }
.tide.go .tick { animation: tick-in .5s ease forwards; animation-delay: calc(.6s + var(--i) * .07s); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes tick-in { to { opacity: .55; } }
@media (max-width: 960px) {
  .hero { padding: 64px 0 120px; }
  .hero h1 { max-width: none; }
  .hero .container { grid-template-columns: 1fr; gap: 36px; }
  .hero .lead { font-size: 1.08rem; }
  .tide { height: 110px; }
}

/* ---------- Window (product recreation frame) ---------- */
.win {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-win);
  box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.2);
  overflow: hidden; font-size: 13.5px; position: relative;
}
.win-bar { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.015); }
.win-bar .dots { display: flex; gap: 6px; }
.win-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: #23324a; display: block; }
.win-bar .title { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-3); letter-spacing: .02em; }
.win-body { padding: 16px; }
.win .row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.win .row:last-child { border-bottom: 0; }
.win .row .grow { flex: 1; min-width: 0; }
.win .name { color: #fff; font-weight: 600; }
.win .sub { color: var(--text-3); font-size: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .02em; font-weight: 500; white-space: nowrap;
  background: rgba(255,255,255,.05); color: var(--text-2); border: 1px solid transparent;
}
.chip.ok { background: var(--green-dim); color: var(--green); }
.chip.warn { background: var(--amber-dim); color: var(--amber); }
.chip.bad { background: var(--red-dim); color: var(--red); }
.chip.info { background: var(--accent-dim); color: var(--accent); }
.chip.blue { background: rgba(90,169,255,.16); color: var(--blue); }
.chip.port { border: 1px solid var(--line-2); color: var(--text-2); }
.amber { color: var(--amber); }
.win .toast {
  position: absolute; left: 16px; right: 16px; bottom: 14px; background: var(--card-2); border: 1px solid var(--line-2);
  border-radius: 12px; padding: 10px 12px; font-size: 12.5px; color: var(--text); box-shadow: 0 20px 40px rgba(0,0,0,.4);
  display: flex; gap: 10px; align-items: center; opacity: 0; transform: translateY(12px);
}
.win .toast b { color: #fff; }
.win .toast .ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-dim); color: var(--accent); font-size: 13px; flex: none; }

/* ---------- Stat strip ---------- */
.stats { padding: 0 0 64px; }
.stats .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.stat .n { font-family: var(--font-display); font-weight: 800; font-size: 2.3rem; color: #fff; letter-spacing: -.03em; line-height: 1; }
.stat .n .u { color: var(--accent); }
.stat .l { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-top: 8px; }
@media (max-width: 860px) { .stats .grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Cards / grids ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .25s var(--ease), border-color .25s; }
.card:hover { transform: translateY(-2px); border-color: var(--line-2); }
.card h3 { margin: 10px 0 8px; }
.card p { color: var(--text-2); font-size: 15px; margin: 0; }
.card .num { font-family: var(--font-mono); font-size: 11.5px; color: var(--accent); letter-spacing: .1em; }
.card .ico { font-size: 22px; float: right; opacity: .9; }
.card .fact { display: inline-block; margin-top: 14px; font-family: var(--font-mono); font-size: 11px; color: var(--text-3); letter-spacing: .04em; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.bento .card { grid-column: span 2; }
.bento .card.w3 { grid-column: span 3; }
@media (max-width: 960px) { .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); } .bento .card, .bento .card.w3 { grid-column: span 3; } }
@media (max-width: 600px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } .bento .card, .bento .card.w3 { grid-column: span 6; } }

/* ---------- Showcase rows ---------- */
.show { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 72px 0; }
.show:nth-child(odd) .show-copy { order: 2; }
.show h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.show p { color: var(--text-2); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pill { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; font-size: 13px; color: var(--text-2); }
.pill b { color: var(--accent); font-weight: 600; }
@media (max-width: 900px) { .show { grid-template-columns: 1fr; gap: 32px; padding: 48px 0; } .show:nth-child(odd) .show-copy { order: 0; } }

/* ---------- Timeline (the whole voyage) ---------- */
.voyage { position: relative; margin-top: 40px; }
.voyage svg { width: 100%; height: auto; overflow: visible; }
.voyage .line { fill: none; stroke: var(--line-2); stroke-width: 2; }
.voyage .line-lit { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 1200; stroke-dashoffset: 1200; }
.voyage.in .line-lit { animation: draw 2.6s var(--ease) forwards; }
.voyage .node circle { fill: var(--card); stroke: var(--line-2); stroke-width: 2; }
.voyage .node text { fill: var(--text-2); font-family: var(--font-sans); font-size: 12px; text-anchor: middle; }
.voyage.in .node circle { animation: node-lit .4s ease forwards; animation-delay: calc(var(--i) * .32s); }
.voyage.in .node text { animation: node-txt .4s ease forwards; animation-delay: calc(var(--i) * .32s); }
@keyframes node-lit { to { stroke: var(--accent); fill: var(--accent); } }
@keyframes node-txt { to { fill: #fff; } }

/* ---------- Fee comparison ---------- */
.fee { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }
.fee .card { padding: 30px; }
.fee .label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.fee .big { font-family: var(--font-display); font-weight: 800; font-size: 3.4rem; letter-spacing: -.03em; line-height: 1; margin: 12px 0 6px; color: #fff; }
.fee .big.zero { color: var(--accent); }
.fee ul { list-style: none; padding: 0; margin: 18px 0 0; color: var(--text-2); font-size: 15px; }
.fee li { padding: 6px 0; border-top: 1px solid var(--line); }
.fee .card.win-card { border-color: rgba(76,206,225,.4); box-shadow: 0 0 0 1px rgba(76,206,225,.15), 0 30px 80px rgba(76,206,225,.06); }
.disclaimer { font-size: 12.5px; color: var(--text-3); margin-top: 16px; }
@media (max-width: 720px) { .fee { grid-template-columns: 1fr; } }

/* ---------- House rules ---------- */
.rules .card h3 { color: var(--accent); font-size: 1.05rem; margin-top: 0; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 920px; margin: 0 auto; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 32px; position: relative; display: flex; flex-direction: column; }
.plan.featured { border-color: rgba(76,206,225,.55); box-shadow: 0 0 0 1px rgba(76,206,225,.2), 0 40px 100px rgba(76,206,225,.08); }
.plan .badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #04101c; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; font-weight: 600; }
.plan .who { font-weight: 700; color: #fff; font-size: 1.05rem; }
.plan .price { font-family: var(--font-display); font-weight: 800; font-size: 3.2rem; color: var(--accent); letter-spacing: -.03em; line-height: 1; margin: 14px 0 6px; }
.plan .price small { font-family: var(--font-sans); font-weight: 500; font-size: .95rem; color: var(--text-3); letter-spacing: 0; margin-left: 6px; }
.plan .intro { color: var(--text-2); font-size: 14.5px; margin: 6px 0 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; }
.plan li { display: flex; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--text-2); }
.plan li::before { content: "✓"; color: var(--green); font-weight: 700; }
.plan li b { color: #fff; }
.plan .btn { margin-top: auto; width: 100%; }
.plan .fine { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); margin-top: 12px; text-align: center; }
@media (max-width: 760px) { .pricing-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 600; color: #fff; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 20px; font-weight: 400; transition: transform .25s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 22px 20px; color: var(--text-2); font-size: 15.5px; }

/* ---------- Final CTA ---------- */
.cta-band { text-align: center; padding: 120px 0; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; left: 50%; top: 50%; width: 900px; height: 500px; transform: translate(-50%,-50%); background: radial-gradient(closest-side, rgba(76,206,225,.12), transparent 70%); pointer-events: none; }
.cta-band .container { position: relative; }
.cta-band p { color: var(--text-2); max-width: 600px; margin: 0 auto 32px; font-size: 1.1rem; }
.cta-band .ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 32px; font-size: 14px; color: var(--text-2); }
.footer .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin: 0 0 14px; font-weight: 500; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin: 7px 0; }
.footer a { color: var(--text-2); }
.footer a:hover { color: #fff; }
.footer .bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-3); }
.footer .bottom .mono { letter-spacing: .04em; }
@media (max-width: 800px) { .footer .top { grid-template-columns: 1fr 1fr; } }

/* ---------- Role-page moments ---------- */
.moment { border-left: 2px solid var(--line-2); padding: 4px 0 4px 22px; position: relative; }
.moment::before { content: ""; position: absolute; left: -6px; top: 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-dim); }
.moment .when { font-family: var(--font-mono); font-size: 11.5px; color: var(--accent); letter-spacing: .08em; text-transform: uppercase; }
.moment h3 { margin: 6px 0 6px; }
.moment p { color: var(--text-2); font-size: 15px; margin: 0; }

/* ---------- Prose (why page) ---------- */
.prose { max-width: 720px; margin: 0 auto; font-size: 1.1rem; }
.prose h2 { font-size: 1.7rem; margin-top: 2.2em; }
.prose p { color: var(--text-2); }
.prose p strong, .prose p b { color: #fff; }
.prose blockquote { margin: 2em 0; padding: 20px 26px; border-left: 3px solid var(--accent); background: var(--card); border-radius: 0 14px 14px 0; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -.01em; }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
[data-reveal].in { opacity: 1; transform: none; }

/* ============================================================
   RECREATIONS — CSS-timeline driven. Every element animates over the same
   loop length so they stay in sync. `.running` (set by IntersectionObserver)
   plays; otherwise paused. Reduced motion jumps to the final keyframe.
   ============================================================ */
.rec [data-a] { animation-timing-function: var(--ease); animation-iteration-count: infinite; animation-play-state: paused; animation-fill-mode: both; }
.rec.running [data-a] { animation-play-state: running; }
@media (prefers-reduced-motion: reduce) {
  .rec [data-a], .rec [data-a]::before, .rec [data-a]::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; animation-fill-mode: forwards !important; animation-play-state: running !important; }
  .tide .swell, .tide .swell-2 { stroke-dashoffset: 0 !important; animation: none !important; }
  .tide .tick { opacity: .55 !important; animation: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .voyage .line-lit { stroke-dashoffset: 0 !important; animation: none !important; }
  .voyage .node circle { stroke: var(--accent) !important; fill: var(--accent) !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* --- Hero "one booking" window (loop 9s) --- */
.rec-hero .row .chip { animation-duration: 9s; }
.rec-hero .k1 { animation-name: hero-tick-1; } .rec-hero .k2 { animation-name: hero-tick-2; } .rec-hero .k3 { animation-name: hero-tick-3; } .rec-hero .k4 { animation-name: hero-tick-4; }
@keyframes hero-tick-1 { 0%,10% { background: rgba(255,255,255,.05); color: var(--text-2); } 16%,90% { background: var(--green-dim); color: var(--green); } 96%,100% { background: rgba(255,255,255,.05); color: var(--text-2); } }
@keyframes hero-tick-2 { 0%,26% { background: rgba(255,255,255,.05); color: var(--text-2); } 32%,90% { background: var(--green-dim); color: var(--green); } 96%,100% { background: rgba(255,255,255,.05); color: var(--text-2); } }
@keyframes hero-tick-3 { 0%,42% { background: rgba(255,255,255,.05); color: var(--text-2); } 48%,90% { background: var(--accent-dim); color: var(--accent); } 96%,100% { background: rgba(255,255,255,.05); color: var(--text-2); } }
@keyframes hero-tick-4 { 0%,58% { background: rgba(255,255,255,.05); color: var(--text-2); } 64%,90% { background: var(--green-dim); color: var(--green); } 96%,100% { background: rgba(255,255,255,.05); color: var(--text-2); } }
.rec-hero .status { animation-duration: 9s; animation-name: hero-status; }
@keyframes hero-status { 0%,64% { background: var(--accent-dim); color: var(--accent); } 70%,100% { background: var(--green-dim); color: var(--green); } }
.rec-hero .status .t1, .rec-hero .status .t2 { animation-duration: 9s; }
.rec-hero .status .t1 { animation-name: hs-1; } .rec-hero .status .t2 { animation-name: hs-2; position: absolute; left: 9px; }
@keyframes hs-1 { 0%,66% { opacity: 1; } 70%,100% { opacity: 0; } }
@keyframes hs-2 { 0%,66% { opacity: 0; } 70%,100% { opacity: 1; } }

/* --- R1 wallet (loop 10s) --- */
.rec-wallet .days { font-family: var(--font-mono); color: var(--text-2); min-width: 54px; text-align: right; }
.rec-wallet .eng1 .chip { animation-duration: 10s; animation-name: w-chip; }
@keyframes w-chip { 0%,34% { background: var(--green-dim); color: var(--green); } 40%,100% { background: var(--amber-dim); color: var(--amber); } }
.rec-wallet .eng1 .chip .a { animation-duration: 10s; animation-name: w-a; } .rec-wallet .eng1 .chip .b { animation-duration: 10s; animation-name: w-b; position: absolute; left: 9px; }
@keyframes w-a { 0%,36% { opacity: 1; } 40%,100% { opacity: 0; } }
@keyframes w-b { 0%,36% { opacity: 0; } 40%,100% { opacity: 1; } }
.rec-wallet .eng1 { animation-duration: 10s; animation-name: w-row; }
@keyframes w-row { 0%,36% { background: transparent; } 40%,52% { background: var(--amber-dim); } 64%,100% { background: transparent; } }
.rec-wallet .toast { animation-duration: 10s; animation-name: w-toast; }
@keyframes w-toast { 0%,48% { opacity: 0; transform: translateY(12px); } 54%,90% { opacity: 1; transform: none; } 96%,100% { opacity: 0; transform: translateY(12px); } }
.rec-wallet .eng1 .days .d { display: inline-block; animation-duration: 10s; }
.rec-wallet .d1 { animation-name: wd-1; } .rec-wallet .d2 { animation-name: wd-2; position: absolute; right: 0; }
@keyframes wd-1 { 0%,36% { opacity: 1; } 40%,100% { opacity: 0; } }
@keyframes wd-2 { 0%,36% { opacity: 0; } 40%,100% { opacity: 1; } }

/* --- R2 match (loop 10s) --- */
.jobcard { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card-2); }
.jobcard .cover { height: 54px; background: linear-gradient(120deg, #0d2a4a, #103a5e 60%, #0b2540); position: relative; }
.jobcard .cover::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 22px, rgba(255,255,255,.03) 22px 23px); }
.jobcard .body { padding: 14px; }
.jobcard .title { color: #fff; font-weight: 700; font-size: 15px; }
.jobcard .money { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--amber); letter-spacing: -.02em; margin: 6px 0 2px; }
.jobcard .money small { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); font-weight: 500; letter-spacing: .02em; margin-left: 6px; }
.jobcard .facts { font-size: 12px; color: var(--text-3); }
.jobcard .tl { display: flex; gap: 4px; margin: 12px 0; }
.jobcard .tl i { flex: 1; height: 4px; border-radius: 2px; background: rgba(255,255,255,.08); }
.jobcard .tl i.on { background: var(--accent); }
.fitwrap { display: flex; align-items: center; gap: 14px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.fitring { width: 64px; height: 64px; position: relative; flex: none; }
.fitring svg { transform: rotate(-90deg); }
.fitring .track { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 6; }
.fitring .arc { fill: none; stroke: var(--accent); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 163; stroke-dashoffset: 163; animation-duration: 10s; animation-name: fit-arc; }
@keyframes fit-arc { 0%,8% { stroke-dashoffset: 163; } 30%,64% { stroke-dashoffset: 29.3; } 76%,100% { stroke-dashoffset: 9.8; } }
.fitring .num { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 17px; color: #fff; }
.fitring .num .n1, .fitring .num .n2 { position: absolute; animation-duration: 10s; }
.fitring .num .n1 { animation-name: fn-1; } .fitring .num .n2 { animation-name: fn-2; }
@keyframes fn-1 { 0%,72% { opacity: 1; } 78%,100% { opacity: 0; } }
@keyframes fn-2 { 0%,72% { opacity: 0; } 78%,100% { opacity: 1; } }
.fitcap { flex: 1; }
.fitcap .c1, .fitcap .c2 { animation-duration: 10s; }
.fitcap .c1 { animation-name: fc-1; color: var(--amber); font-weight: 600; } .fitcap .c2 { animation-name: fc-2; color: var(--green); font-weight: 600; position: absolute; }
.fitcap .cwrap { position: relative; height: 22px; }
@keyframes fc-1 { 0%,72% { opacity: 1; } 78%,100% { opacity: 0; } }
@keyframes fc-2 { 0%,72% { opacity: 0; } 78%,100% { opacity: 1; } }
.certchips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.certchips .chip { animation-duration: 10s; }
.certchips .cc1 { animation-name: cc-ok-1; } .certchips .cc2 { animation-name: cc-ok-2; } .certchips .cc3 { animation-name: cc-3; }
@keyframes cc-ok-1 { 0%,12% { background: rgba(255,255,255,.05); color: var(--text-2); } 18%,100% { background: var(--green-dim); color: var(--green); } }
@keyframes cc-ok-2 { 0%,20% { background: rgba(255,255,255,.05); color: var(--text-2); } 26%,100% { background: var(--green-dim); color: var(--green); } }
@keyframes cc-3 { 0%,28% { background: rgba(255,255,255,.05); color: var(--text-2); } 34%,72% { background: var(--red-dim); color: var(--red); } 78%,100% { background: var(--green-dim); color: var(--green); } }
.jobcard .apply { margin-top: 12px; background: var(--blue); color: #fff; text-align: center; border-radius: 10px; padding: 9px; font-weight: 700; font-size: 13px; }

/* --- R3 pipeline (loop 11s) --- */
.kanban { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; min-height: 250px; }
.kcol { background: rgba(255,255,255,.02); border: 1px solid var(--line); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.kcol .kh { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); display: flex; justify-content: space-between; gap: 4px; white-space: nowrap; overflow: hidden; }
.kcol .kh .fill { position: relative; }
.kcol .kh .f1 { position: absolute; left: 0; }
.rec-pipe .f0 { animation-duration: 11s; animation-name: kf0; } .rec-pipe .f1 { animation-duration: 11s; animation-name: kf1; }
@keyframes kf0 { 0%,82% { opacity: 1; } 85%,100% { opacity: 0; } }
@keyframes kf1 { 0%,82% { opacity: 0; } 85%,100% { opacity: 1; } }
.kcard { background: var(--card-2); border: 1px solid var(--line); border-radius: 9px; padding: 8px; font-size: 11.5px; }
.kcard .kn { color: #fff; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 4px; white-space: nowrap; }
.kcard .ks { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kcard .ring { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-mono); font-size: 9px; color: var(--accent); border: 2px solid var(--accent); }
.kcard .ring.lo { color: var(--amber); border-color: var(--amber); }
.kcard .ks { color: var(--text-3); font-size: 10.5px; }
.kmove { position: absolute; width: calc(25% - 30px); top: 38px; left: 24px; animation-duration: 11s; animation-name: k-move; z-index: 2; }
.kanwrap { position: relative; }
@keyframes k-move {
  0%,10% { transform: translateX(0); opacity: 1; }
  22%,36% { transform: translateX(calc(100% + 24px)); opacity: 1; }
  48%,66% { transform: translateX(calc(200% + 48px)); opacity: 1; }
  78%,96% { transform: translateX(calc(300% + 72px)); opacity: 1; }
  98%,100% { transform: translateX(calc(300% + 72px)); opacity: 0; }
}
.kmove .offer { display: block; margin-top: 6px; animation-duration: 11s; animation-name: k-offer; }
@keyframes k-offer { 0%,48% { opacity: 0; height: 0; margin-top: 0; } 52%,68% { opacity: 1; height: 18px; margin-top: 6px; } 72%,100% { opacity: 0; height: 0; margin-top: 0; } }
.rec-pipe .toast { animation-duration: 11s; animation-name: k-toast; }
@keyframes k-toast { 0%,80% { opacity: 0; transform: translateY(12px); } 85%,96% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.rec-pipe .fill { animation-duration: 11s; animation-name: k-fill; }
@keyframes k-fill { 0%,80% { color: var(--text-3); } 85%,100% { color: var(--accent); } }
@media (max-width: 480px) { .kanban { grid-template-columns: repeat(4, minmax(72px, 1fr)); font-size: 10px; } }

/* --- R4 booking record (loop 12s) --- */
.stepper { display: flex; gap: 4px; margin-bottom: 12px; }
.stepper .s { flex: 1; text-align: center; font-family: var(--font-mono); font-size: 9px; letter-spacing: .04em; color: var(--text-3); text-transform: uppercase; }
.stepper .s i { display: block; height: 4px; border-radius: 2px; background: rgba(255,255,255,.08); margin-bottom: 6px; animation-duration: 12s; }
.stepper .s:nth-child(1) i { animation-name: st1; } .stepper .s:nth-child(2) i { animation-name: st2; } .stepper .s:nth-child(3) i { animation-name: st3; } .stepper .s:nth-child(4) i { animation-name: st4; }
.stepper .s:nth-child(5) i { animation-name: st5; } .stepper .s:nth-child(6) i { animation-name: st6; } .stepper .s:nth-child(7) i { animation-name: st7; } .stepper .s:nth-child(8) i { animation-name: st8; }
@keyframes st1 { 0%,2% { background: rgba(255,255,255,.08); } 4%,100% { background: var(--accent); } }
@keyframes st2 { 0%,12% { background: rgba(255,255,255,.08); } 14%,100% { background: var(--accent); } }
@keyframes st3 { 0%,24% { background: rgba(255,255,255,.08); } 26%,100% { background: var(--accent); } }
@keyframes st4 { 0%,36% { background: rgba(255,255,255,.08); } 38%,100% { background: var(--accent); } }
@keyframes st5 { 0%,48% { background: rgba(255,255,255,.08); } 50%,100% { background: var(--accent); } }
@keyframes st6 { 0%,60% { background: rgba(255,255,255,.08); } 62%,100% { background: var(--accent); } }
@keyframes st7 { 0%,72% { background: rgba(255,255,255,.08); } 74%,100% { background: var(--amber); } }
@keyframes st8 { 0%,84% { background: rgba(255,255,255,.08); } 86%,100% { background: var(--accent); } }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 12px; overflow: hidden; }
.tabs span { font-size: 11px; color: var(--text-3); padding: 6px 8px; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs span.on { color: #fff; border-color: var(--accent); }
.panes { position: relative; min-height: 132px; }
.pane { position: absolute; inset: 0; opacity: 0; animation-duration: 12s; }
.pane.p1 { animation-name: pn1; } .pane.p2 { animation-name: pn2; } .pane.p3 { animation-name: pn3; } .pane.p4 { animation-name: pn4; } .pane.p5 { animation-name: pn5; }
@keyframes pn1 { 0%,22% { opacity: 1; } 26%,100% { opacity: 0; } }
@keyframes pn2 { 0%,24% { opacity: 0; } 28%,46% { opacity: 1; } 50%,100% { opacity: 0; } }
@keyframes pn3 { 0%,48% { opacity: 0; } 52%,60% { opacity: 1; } 64%,100% { opacity: 0; } }
@keyframes pn4 { 0%,62% { opacity: 0; } 66%,72% { opacity: 1; } 76%,100% { opacity: 0; } }
@keyframes pn5 { 0%,74% { opacity: 0; } 78%,100% { opacity: 1; } }
.leg { display: flex; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.leg .ico { width: 24px; text-align: center; }
.leg .t { font-family: var(--font-mono); color: var(--text-3); font-size: 11px; margin-left: auto; }
.bubble { background: var(--card-2); border: 1px solid var(--line); border-radius: 12px 12px 12px 3px; padding: 8px 11px; font-size: 12.5px; max-width: 82%; margin-bottom: 8px; }
.bubble.me { margin-left: auto; border-radius: 12px 12px 3px 12px; background: var(--accent-dim); color: #fff; }
.bubble .who { font-family: var(--font-mono); font-size: 10px; color: var(--text-3); display: block; margin-bottom: 2px; }
.ts-row { display: flex; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.ts-row .h { font-family: var(--font-mono); color: var(--text-2); margin-left: auto; }
.ts-row .chip { animation-duration: 12s; animation-name: ts-ok; }
@keyframes ts-ok { 0%,54% { background: var(--amber-dim); color: var(--amber); } 58%,100% { background: var(--green-dim); color: var(--green); } }
.paid { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 0; }
.paid .amt { font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; color: var(--amber); letter-spacing: -.02em; }
.pane .tab-hint { font-family: var(--font-mono); font-size: 10px; color: var(--accent); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }

/* --- R5 bridge (loop 12s) --- */
.bridge-hero { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.bridge-hero .v { color: #fff; font-weight: 700; font-size: 15px; }
.bridge-hero .ob { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }
.bridge-hero .ob b { color: var(--accent); font-weight: 600; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 14px; }
.tile { background: var(--card-2); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; }
.tile .n { font-family: var(--font-display); font-weight: 800; font-size: 18px; color: #fff; line-height: 1; }
.tile .l { font-family: var(--font-mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-top: 4px; }
.depts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 12px; }
.dept { text-align: center; }
.dept .ring { width: 44px; height: 44px; margin: 0 auto 4px; position: relative; }
.dept .ring svg { transform: rotate(-90deg); }
.dept .ring .tr { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 5; }
.dept .ring .ar { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 113; stroke-dashoffset: 113; animation-duration: 12s; }
.dept .ring .pc { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-mono); font-size: 9.5px; color: #fff; }
.dept .dl { font-size: 10px; color: var(--text-2); }
.dept:nth-child(1) .ar { animation-name: dr1; } .dept:nth-child(2) .ar { animation-name: dr2; } .dept:nth-child(3) .ar { animation-name: dr3; } .dept:nth-child(4) .ar { animation-name: dr4; } .dept:nth-child(5) .ar { animation-name: dr5; }
@keyframes dr1 { 0%,6% { stroke-dashoffset: 113; stroke: var(--accent); } 22%,100% { stroke-dashoffset: 0; stroke: var(--green); } }
@keyframes dr2 { 0%,10% { stroke-dashoffset: 113; } 26%,100% { stroke-dashoffset: 34; } }
@keyframes dr3 { 0%,14% { stroke-dashoffset: 113; } 30%,100% { stroke-dashoffset: 22; } }
@keyframes dr4 { 0%,18% { stroke-dashoffset: 113; } 34%,100% { stroke-dashoffset: 45; } }
@keyframes dr5 { 0%,22% { stroke-dashoffset: 113; } 38%,100% { stroke-dashoffset: 57; } }
.attn { border: 1px solid rgba(245,184,64,.3); background: var(--amber-dim); color: var(--amber); border-radius: 9px; padding: 8px 10px; font-size: 12px; margin-bottom: 10px; animation-duration: 12s; animation-name: attn-in; }
@keyframes attn-in { 0%,44% { opacity: 0; transform: translateY(-6px); } 50%,100% { opacity: 1; transform: none; } }
.watch .row { padding: 7px 0; font-size: 12px; }
.watch .row.flash { animation-duration: 12s; animation-name: flash; }
@keyframes flash { 0%,58% { background: transparent; } 62%,70% { background: var(--amber-dim); } 76%,100% { background: transparent; } }
.watch .wh { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin: 6px 0 2px; }

/* --- R6 money (loop 11s) --- */
.inv { display: grid; grid-template-columns: 1.2fr .8fr; gap: 14px; }
.inv .lines .row { font-size: 12.5px; padding: 8px 0; }
.inv .lines .amt { font-family: var(--font-mono); color: var(--text-2); margin-left: auto; }
.inv .total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; }
.inv .total .amt { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--amber); letter-spacing: -.02em; }
.inv .total .lbl { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.vstep { display: flex; flex-direction: column; gap: 0; border-left: 2px solid var(--line); margin-left: 8px; padding-left: 14px; }
.vstep .vs { position: relative; padding: 6px 0; font-size: 12px; color: var(--text-3); animation-duration: 11s; }
.vstep .vs::before { content: ""; position: absolute; left: -21px; top: 11px; width: 10px; height: 10px; border-radius: 50%; background: var(--card); border: 2px solid var(--line-2); animation-duration: 11s; animation-timing-function: var(--ease); animation-iteration-count: infinite; animation-play-state: inherit; animation-fill-mode: both; }
.vstep .vs:nth-child(1) { animation-name: vs1; } .vstep .vs:nth-child(2) { animation-name: vs2; } .vstep .vs:nth-child(3) { animation-name: vs3; } .vstep .vs:nth-child(4) { animation-name: vs4; } .vstep .vs:nth-child(5) { animation-name: vs5; }
.vstep .vs:nth-child(1)::before { animation-name: vd1; } .vstep .vs:nth-child(2)::before { animation-name: vd2; } .vstep .vs:nth-child(3)::before { animation-name: vd3; } .vstep .vs:nth-child(4)::before { animation-name: vd4; } .vstep .vs:nth-child(5)::before { animation-name: vd5; }
@keyframes vs1 { 0%,4% { color: var(--text-3); } 8%,100% { color: #fff; } }
@keyframes vs2 { 0%,22% { color: var(--text-3); } 26%,100% { color: #fff; } }
@keyframes vs3 { 0%,42% { color: var(--text-3); } 46%,100% { color: #fff; } }
@keyframes vs4 { 0%,60% { color: var(--text-3); } 64%,100% { color: #fff; } }
@keyframes vs5 { 0%,78% { color: var(--text-3); } 82%,100% { color: var(--green); } }
@keyframes vd1 { 0%,4% { background: var(--card); border-color: var(--line-2); } 8%,100% { background: var(--accent); border-color: var(--accent); } }
@keyframes vd2 { 0%,22% { background: var(--card); border-color: var(--line-2); } 26%,100% { background: var(--accent); border-color: var(--accent); } }
@keyframes vd3 { 0%,42% { background: var(--card); border-color: var(--line-2); } 46%,100% { background: var(--accent); border-color: var(--accent); } }
@keyframes vd4 { 0%,60% { background: var(--card); border-color: var(--line-2); } 64%,100% { background: var(--accent); border-color: var(--accent); } }
@keyframes vd5 { 0%,78% { background: var(--card); border-color: var(--line-2); } 82%,100% { background: var(--green); border-color: var(--green); } }
.rec-money .toast { animation-duration: 11s; animation-name: m-toast; }
@keyframes m-toast { 0%,24% { opacity: 0; transform: translateY(12px); } 30%,52% { opacity: 1; transform: none; } 58%,100% { opacity: 0; transform: translateY(12px); } }
@media (max-width: 480px) { .inv { grid-template-columns: 1fr; } }

/* --- R7 reviews (loop 10s) --- */
.profile { display: grid; grid-template-columns: 96px 1fr; gap: 16px; }
.avatar { width: 96px; height: 96px; border-radius: 16px; background: linear-gradient(135deg, #123a5a, #0d2a44); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 28px; color: var(--accent); }
.qr { width: 96px; height: 96px; margin-top: 10px; border-radius: 10px; background: #fff; padding: 8px; }
.qr svg { width: 100%; height: 100%; }
.profile .pn { color: #fff; font-weight: 700; font-size: 15px; }
.profile .pr { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }
.rating { font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; color: var(--amber); letter-spacing: -.02em; line-height: 1; margin: 8px 0 2px; display: flex; align-items: baseline; gap: 8px; }
.rating small { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); font-weight: 500; letter-spacing: .02em; }
.rating .r1, .rating .r2 { animation-duration: 10s; }
.rating .r1 { animation-name: rt1; } .rating .r2 { animation-name: rt2; position: absolute; }
.rating .rwrap { position: relative; display: inline-block; min-width: 56px; }
@keyframes rt1 { 0%,70% { opacity: 1; } 76%,100% { opacity: 0; } }
@keyframes rt2 { 0%,70% { opacity: 0; } 76%,100% { opacity: 1; } }
.bars { margin-top: 8px; }
.bar { display: grid; grid-template-columns: 118px 1fr 28px; gap: 8px; align-items: center; font-size: 11.5px; color: var(--text-2); padding: 3px 0; }
.bar i { height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; display: block; position: relative; }
.bar i::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); background: var(--accent); border-radius: 3px; transform: scaleX(0); transform-origin: left; animation-duration: 10s; animation-name: bar-fill; animation-timing-function: var(--ease); animation-iteration-count: infinite; animation-play-state: inherit; animation-fill-mode: both; animation-delay: calc(var(--i) * .25s); }
.bar.x2 i::after { background: var(--amber); }
.bar .v { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-3); text-align: right; }
@keyframes bar-fill { 0%,6% { transform: scaleX(0); } 30%,100% { transform: scaleX(1); } }
.bar .x2tag { font-family: var(--font-mono); font-size: 9px; color: var(--amber); margin-left: 4px; }
@media (max-width: 480px) { .profile { grid-template-columns: 72px 1fr; } .avatar, .qr { width: 72px; height: 72px; } .bar { grid-template-columns: 96px 1fr 26px; } }

/* --- R8 charters (loop 12s) --- */
.charter { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.charter .form, .charter .brief { background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-size: 12px; }
.charter .fh { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; display: flex; justify-content: space-between; }
.charter .fl { color: var(--text-3); font-size: 10.5px; margin-top: 8px; }
.charter .fv { color: #fff; }
.charter .toys { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 6px; }
.charter .toys .chip { animation-duration: 12s; }
.charter .toys .t1 { animation-name: toy1; } .charter .toys .t2 { animation-name: toy2; } .charter .toys .t3 { animation-name: toy3; }
@keyframes toy1 { 0%,10% { background: rgba(255,255,255,.05); color: var(--text-2); } 14%,100% { background: var(--accent-dim); color: var(--accent); } }
@keyframes toy2 { 0%,18% { background: rgba(255,255,255,.05); color: var(--text-2); } 22%,100% { background: var(--accent-dim); color: var(--accent); } }
@keyframes toy3 { 0%,26% { background: rgba(255,255,255,.05); color: var(--text-2); } 30%,100% { background: var(--accent-dim); color: var(--accent); } }
.charter .typed { animation-duration: 12s; animation-name: typed; overflow: hidden; white-space: nowrap; display: inline-block; max-width: 100%; }
@keyframes typed { 0%,32% { width: 0; } 46%,100% { width: 100%; } }
.charter .brief { position: relative; }
.charter .brief .cover { position: absolute; inset: 0; background: var(--card-2); border-radius: 10px; display: grid; place-items: center; color: var(--text-3); font-family: var(--font-mono); font-size: 10.5px; animation-duration: 12s; animation-name: cover-out; z-index: 1; }
@keyframes cover-out { 0%,56% { opacity: 1; } 62%,100% { opacity: 0; visibility: hidden; } }
.charter .day { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
.charter .day .dh { color: #fff; font-weight: 600; font-size: 11.5px; display: flex; justify-content: space-between; }
.charter .day .m { color: var(--text-2); font-size: 11px; }
.charter .review { animation-duration: 12s; animation-name: rv; }
@keyframes rv { 0%,46% { opacity: 0; } 50%,72% { opacity: 1; background: var(--amber-dim); color: var(--amber); } 76%,100% { opacity: 1; background: var(--green-dim); color: var(--green); } }
.charter .review .ra, .charter .review .rb { animation-duration: 12s; }
.charter .review .ra { animation-name: ra; } .charter .review .rb { animation-name: rb; position: absolute; left: 9px; }
@keyframes ra { 0%,72% { opacity: 1; } 76%,100% { opacity: 0; } }
@keyframes rb { 0%,72% { opacity: 0; } 76%,100% { opacity: 1; } }
@media (max-width: 480px) { .charter { grid-template-columns: 1fr; } }

.chip { position: relative; }

/* ---------- University ---------- */
.uni-tools { display: flex; flex-direction: column; gap: 14px; margin: 0 auto 32px; }
.uni-search { width: 100%; background: var(--card); border: 1px solid var(--line); color: #fff; padding: 14px 16px; border-radius: 12px; font: inherit; font-size: 16px; }
.uni-search::placeholder { color: var(--text-3); }
.uni-filter-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.uni-filter-group { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.uni-filter-group .lbl { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-right: 4px; }
.uni-filter-group .chip { cursor: pointer; padding: 6px 12px; font-family: var(--font-sans); font-size: 13px; letter-spacing: 0; }
.uni-filter-group .chip.active { background: var(--accent-dim); color: var(--accent); border-color: rgba(76,206,225,.4); }
.uni-count { font-size: 13.5px; color: var(--text-3); }
.uni-count b { color: #fff; }
.uni-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.uni-card { text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s var(--ease), border-color .25s; }
.uni-card:hover { transform: translateY(-2px); border-color: var(--line-2); }
.uni-thumb { height: 120px; background: linear-gradient(135deg, #0d2a4a, #0b2035); position: relative; display: grid; place-items: center; }
.uni-thumb.alt { background: linear-gradient(135deg, #10203a, #0b1728); }
.uni-thumb .emoji { font-size: 34px; }
.uni-play { position: absolute; width: 40px; height: 40px; border-radius: 50%; background: rgba(76,206,225,.92); left: 50%; top: 50%; transform: translate(-50%,-50%); }
.uni-play::after { content: ""; position: absolute; left: 16px; top: 12px; border-left: 12px solid #04101c; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.uni-dur { position: absolute; right: 10px; bottom: 10px; font-family: var(--font-mono); font-size: 10.5px; background: rgba(5,13,26,.8); color: var(--text); padding: 3px 8px; border-radius: 999px; }
.uni-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.uni-meta { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.uni-badge { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.uni-badge.video { background: var(--accent-dim); color: var(--accent); }
.uni-badge.guide { background: var(--amber-dim); color: var(--amber); }
.uni-aud { font-size: 11.5px; color: var(--text-3); }
.uni-card h3 { font-size: 1rem; margin: 0 0 6px; }
.uni-desc { color: var(--text-2); font-size: 13.5px; margin: 0 0 12px; }
.uni-foot { margin-top: auto; display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); }
.uni-open { color: var(--accent); font-weight: 600; }
.uni-empty { display: none; text-align: center; padding: 48px; color: var(--text-2); }
.uni-empty.show { display: block; }
.uni-modal-bg { position: fixed; inset: 0; background: rgba(2,6,14,.78); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.uni-modal-bg.show { display: flex; }
.uni-modal { background: var(--card); border: 1px solid var(--line-2); border-radius: 20px; max-width: 760px; width: 100%; max-height: 88vh; overflow: auto; }
.uni-modal-hd { padding: 26px 28px 18px; border-bottom: 1px solid var(--line); position: relative; }
.uni-modal-hd h2 { font-size: 1.5rem; margin: 10px 0 0; }
.uni-modal-close { position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); font-size: 20px; color: var(--text-2); }
.uni-modal-bd { padding: 24px 28px 28px; }
.videoframe { height: 260px; border-radius: 12px; background: linear-gradient(135deg, #0d2a4a, #0b2035); position: relative; margin-bottom: 20px; }
.uni-chapters { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 18px; }
.uni-chapter { display: flex; justify-content: space-between; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 14px; }
.uni-chapter:first-child { border-top: 0; }
.uni-chapter .ts { font-family: var(--font-mono); color: var(--accent); font-size: 12px; }
.uni-steps { padding-left: 0; list-style: none; counter-reset: step; margin: 0 0 18px; }
.uni-steps li { counter-increment: step; display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.uni-steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-mono); color: var(--accent); font-size: 12px; padding-top: 3px; flex: none; }
.uni-steps li b { display: block; color: #fff; margin-bottom: 2px; }
.uni-steps li p { color: var(--text-2); font-size: 14.5px; margin: 0; }
.uni-tip { background: var(--accent-dim); border: 1px solid rgba(76,206,225,.3); border-radius: 12px; padding: 12px 14px; font-size: 14px; color: var(--text); }
.uni-related { font-size: 13px; color: var(--text-3); margin-top: 14px; }
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.paths ol { padding-left: 18px; color: var(--text-2); font-size: 14.5px; margin: 10px 0 0; }
.paths li { margin: 6px 0; }
@media (max-width: 900px) { .uni-grid, .paths { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .uni-grid, .paths { grid-template-columns: 1fr; } }

/* ---------- Overflow guards (grid children default to min-width:auto) ---------- */
.show > div, .hero .container > div, .grid-2 > *, .grid-3 > *, .grid-4 > *, .bento > *, .win, .win-body, .panes, .pane { min-width: 0; }
.stepper .s { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 480px) { .stepper .s { font-size: 7.5px; } .tabs span { font-size: 10px; padding: 6px 5px; } .win { font-size: 12.5px; } .win-body { padding: 12px; } }
