/* ============================================================
   MASHUP ACADEMY — "Two-Color Press"
   A riso / club-flyer identity built on two spot colors that
   collide and screen-blend into a third. Dark ink, analog grain,
   halftone fields, mono technical labels.
   ============================================================ */

:root {
  /* Ink + paper */
  --ink:    oklch(0.155 0.014 268);
  --ink-2:  oklch(0.195 0.016 268);   /* raised panel */
  --ink-3:  oklch(0.235 0.016 268);   /* hover panel */
  --paper:  oklch(0.965 0.006 95);
  --muted:  oklch(0.66 0.012 268);
  --muted-2:oklch(0.50 0.012 268);
  --line:   oklch(0.32 0.012 268);
  --line-2: oklch(0.27 0.012 268);

  /* The two tracks that mash up */
  --a: oklch(0.72 0.17 248);          /* Track A — electric blue */
  --b: oklch(0.71 0.23 4);            /* Track B — hot magenta-red */
  --a-soft: oklch(0.72 0.17 248 / 0.16);
  --b-soft: oklch(0.71 0.23 4 / 0.16);

  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;

  --maxw: 1240px;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
}

/* Film grain overlay — analog texture across everything */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: overlay;
}

::selection { background: var(--b); color: var(--ink); }

a { color: inherit; text-decoration: none; }

/* ---------- shared type ---------- */
.kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.kicker .idx { color: var(--a); }
.kicker .idx.b { color: var(--b); }

.display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

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

/* ============================================================
   NAV
   ============================================================ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem var(--pad);
  background: color-mix(in oklab, var(--ink) 78%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line-2);
}
.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  display: inline-flex; align-items: baseline; gap: 0.05em;
}
.brand .x { color: var(--muted-2); font-family: var(--font-mono); font-weight:400; margin: 0 0.15em; }
.brand .a { color: var(--a); }
.brand .b { color: var(--b); }

.nav-links { display: flex; gap: 1.8rem; align-items: center; }
.nav-links a:not(.btn) {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:not(.btn):hover { color: var(--paper); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.7rem 1.25rem;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--bg);
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.5rem;
  position: relative;
  transition: transform 0.12s ease, background 0.2s, color 0.2s;
}
.btn:hover { transform: translate(-2px, -2px); }
.btn:active { transform: translate(0,0); }
.btn.solid-b { --bg: var(--b); color: var(--ink); }
.btn.ghost {
  background: transparent; color: var(--paper);
  border-color: var(--line);
}
.btn.ghost:hover { border-color: var(--paper); background: transparent; }

/* shadow that reveals the "second color" plate behind on hover */
.btn.plate::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--a);
  transform: translate(0,0);
  transition: transform 0.12s ease;
}
.btn.plate:hover::before { transform: translate(4px, 4px); }
.btn.solid-b.plate::before { background: var(--a); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 9rem var(--pad) 3rem;
  position: relative;
  overflow: hidden;
}
/* halftone dot field, two colors, drifting */
.hero::before {
  content: ''; position: absolute; inset: -10%;
  background-image:
    radial-gradient(var(--a) 1.1px, transparent 1.2px),
    radial-gradient(var(--b) 1.1px, transparent 1.2px);
  background-size: 26px 26px, 26px 26px;
  background-position: 0 0, 13px 13px;
  opacity: 0.10;
  mask-image: radial-gradient(ellipse 80% 75% at 60% 35%, #000 0%, transparent 75%);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin: 0 auto; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.65rem;
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--paper);
  border: 1px solid var(--line); padding: 0.45rem 0.9rem;
  margin-bottom: 2.2rem;
  opacity: 0; animation: rise 0.7s cubic-bezier(.2,.7,.2,1) 0.05s forwards;
}
.hero-badge .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--b);
  box-shadow: 0 0 0 0 var(--b);
  animation: ping 2.2s infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--b) 70%, transparent); }
  70%,100% { box-shadow: 0 0 0 9px transparent; }
}

/* the collision wordmark */
.hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.6rem, 9.5vw, 8rem);
  line-height: 0.9; letter-spacing: -0.03em;
  margin-bottom: 1.6rem;
}
.hero h1 .line { display: block; white-space: nowrap; }
.hero h1 .line > span { display: inline-block; opacity: 0; animation: rise 0.8s cubic-bezier(.2,.7,.2,1) both; }
.hero h1 .l1 > span { animation-delay: 0.12s; }
.hero h1 .l2 > span { animation-delay: 0.20s; }
.hero h1 .l3 > span { animation-delay: 0.28s; }
.hero h1 .l4 > span { animation-delay: 0.36s; }

/* MASH·UP rendered as a chromatic registration split via twin hard text-shadows
   (one per spot color) — renders reliably everywhere, no layering needed */
.smash {
  position: relative; display: inline-block;
}
.smash > .core {
  color: var(--paper);
  text-shadow: -0.085em 0.06em 0 var(--a), 0.085em -0.06em 0 var(--b);
}

.hero-sub {
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  color: var(--muted); line-height: 1.6; max-width: 38ch;
  margin-bottom: 2.4rem;
  opacity: 0; animation: rise 0.7s ease 0.4s forwards;
}
.hero-sub b { color: var(--paper); font-weight: 500; }

.hero-actions {
  display: flex; gap: 0.8rem; flex-wrap: wrap;
  opacity: 0; animation: rise 0.7s ease 0.5s forwards;
}

.hero-meta {
  display: flex; gap: 2.5rem; flex-wrap: wrap;
  margin-top: 3.5rem; padding-top: 1.6rem;
  border-top: 1px solid var(--line-2);
  opacity: 0; animation: rise 0.7s ease 0.6s forwards;
}
.meta { display: flex; flex-direction: column; gap: 0.15rem; }
.meta .n { font-family: var(--font-display); font-weight: 800; font-size: 2.1rem; line-height: 1; }
.meta .n.a { color: var(--a); } .meta .n.b { color: var(--b); }
.meta .l { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); }

@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }

/* Safety net: if the animation timeline never advances (throttled/background
   tab), force the resting visible state so content is never lost. */
body.revealed .hero-badge,
body.revealed .hero h1 .line > span,
body.revealed .hero-sub,
body.revealed .hero-actions,
body.revealed .hero-meta {
  opacity: 1 !important;
  transform: none !important;
}

/* ============================================================
   MARQUEE TICKER
   ============================================================ */
.ticker {
  border-block: 1px solid var(--line-2);
  background: var(--ink-2);
  overflow: hidden; white-space: nowrap;
  padding: 0.8rem 0;
}
.ticker.flip { background: var(--ink); }
.ticker-track {
  display: inline-flex; gap: 2.5rem; align-items: center;
  font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
  animation: scroll 34s linear infinite;
}
.ticker.rev .ticker-track { animation-direction: reverse; }
.ticker-track span { display: inline-flex; align-items: center; gap: 2.5rem; }
.ticker-track .sep { color: var(--b); }
.ticker-track .sep.a { color: var(--a); }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
section.block { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.sec-head { margin-bottom: 3rem; max-width: 60ch; }
.sec-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2rem, 5.2vw, 3.6rem);
  line-height: 0.98; letter-spacing: -0.025em; margin-top: 0.7rem;
  text-wrap: balance;
}
.sec-desc { color: var(--muted); font-size: 1.05rem; line-height: 1.65; max-width: 52ch; margin-top: 1.1rem; }

/* ============================================================
   THE WINDOW (opportunity + timeline)
   ============================================================ */
.window-grid {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.timeline { border-top: 1px solid var(--line); }
.t-item {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.2rem;
  align-items: baseline; padding: 1.3rem 0; border-bottom: 1px solid var(--line-2);
  position: relative;
}
.t-item .t-when { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; color: var(--muted-2); text-transform: uppercase; padding-top: 0.15rem; }
.t-item .t-what strong { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; display: block; }
.t-item .t-what p { color: var(--muted); font-size: 0.92rem; line-height: 1.5; margin-top: 0.2rem; }
.t-item .t-tag {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink); background: var(--muted-2); padding: 0.2rem 0.55rem; white-space: nowrap;
}
.t-item.hot .t-tag { background: var(--b); }
.t-item.edge .t-tag { background: var(--a); }
.t-item.edge .t-what strong { color: var(--a); }

/* ============================================================
   CURRICULUM — registration-shift cards
   ============================================================ */
.modules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--line-2); }
.module {
  padding: 2.2rem clamp(1.5rem, 3vw, 2.4rem);
  border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
  position: relative; background: var(--ink); transition: background 0.25s;
}
.module:nth-child(2n) { border-right: none; }
.module:nth-last-child(-n+2) { border-bottom: none; }
.module:hover { background: var(--ink-2); }
.module .m-num {
  font-family: var(--font-display); font-weight: 800; font-size: 3.4rem; line-height: 0.8;
  color: transparent; -webkit-text-stroke: 1.4px var(--line);
  position: relative; display: inline-block; transition: -webkit-text-stroke-color 0.25s;
}
.module:nth-child(odd):hover .m-num { -webkit-text-stroke-color: var(--a); }
.module:nth-child(even):hover .m-num { -webkit-text-stroke-color: var(--b); }
.module .m-name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em;
  margin: 1rem 0 0.5rem;
}
.module .m-desc { color: var(--muted); font-size: 0.9rem; line-height: 1.55; }
.module .m-tag {
  position: absolute; top: 2.2rem; right: clamp(1.5rem,3vw,2.4rem);
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted-2);
}
.module .m-tag.free { color: var(--b); border: 1px solid var(--b); padding: 0.15rem 0.45rem; }

/* ============================================================
   PRICING — Track A / B / C
   ============================================================ */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.tier {
  border: 1px solid var(--line-2); background: var(--ink-2);
  padding: 2rem 1.8rem; display: flex; flex-direction: column;
  position: relative; transition: transform 0.18s ease, border-color 0.2s;
}
.tier:hover { transform: translateY(-5px); border-color: var(--line); }
.tier.feat { border-color: var(--b); background: color-mix(in oklab, var(--b-soft) 60%, var(--ink-2)); }
.tier-rail {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted-2); display: flex; justify-content: space-between; margin-bottom: 1.4rem;
}
.tier.feat .tier-rail .side { color: var(--b); }
.tier .t-side-a { color: var(--a); }
.tier-name { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.01em; }
.tier-price { font-family: var(--font-display); font-weight: 800; font-size: 3.2rem; line-height: 1; margin: 0.4rem 0 0.2rem; }
.tier-price .per { font-family: var(--font-mono); font-size: 0.9rem; font-weight: 400; color: var(--muted); }
.tier-desc { color: var(--muted); font-size: 0.88rem; line-height: 1.55; margin: 0.6rem 0 1.4rem; min-height: 3.4em; }
.tier ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; margin-bottom: 1.8rem; flex: 1 1 auto; }
.tier li { font-size: 0.9rem; line-height: 1.4; display: flex; align-items: flex-start; gap: 0.6rem; color: var(--paper); }
.tier li::before { content: '/'; font-family: var(--font-mono); color: var(--a); font-weight: 700; flex: none; }
.tier.feat li::before { color: var(--b); }
.tier .btn { width: 100%; justify-content: center; }

/* ============================================================
   INSTRUCTOR
   ============================================================ */
.instructor {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center; border: 1px solid var(--line-2); padding: clamp(2rem, 4vw, 3.5rem);
  background: var(--ink-2); position: relative; overflow: hidden;
}
.instructor::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(var(--a) 1px, transparent 1.1px);
  background-size: 18px 18px; opacity: 0.06; pointer-events: none;
}
.portrait {
  aspect-ratio: 1; position: relative; border: 1px solid var(--line);
  background: var(--ink); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.portrait .ph-label {
  position: absolute; bottom: 0.7rem; left: 0.7rem;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em;
  color: var(--muted-2); text-transform: uppercase;
}
.portrait .mono-init {
  font-family: var(--font-display); font-weight: 800; font-size: 6rem;
  color: var(--paper); position: relative;
  text-shadow: -0.07em 0.05em 0 var(--a), 0.07em -0.05em 0 var(--b);
}
.portrait::after {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(0deg, transparent 0 3px, color-mix(in oklab, var(--ink) 40%, transparent) 3px 4px);
  pointer-events: none;
}
.instructor h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; letter-spacing: -0.01em; margin-bottom: 0.8rem; position: relative; }
.instructor p { color: var(--muted); line-height: 1.65; position: relative; }
.creds { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1.4rem; position: relative; }
.cred {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em;
  border: 1px solid var(--line); padding: 0.35rem 0.7rem; color: var(--paper);
}
.cred:nth-child(odd) { border-color: color-mix(in oklab, var(--a) 50%, var(--line)); }
.cred:nth-child(even) { border-color: color-mix(in oklab, var(--b) 50%, var(--line)); }

/* ============================================================
   FINAL CTA
   ============================================================ */
.final {
  text-align: center; padding: clamp(5rem, 11vw, 9rem) var(--pad);
  position: relative; overflow: hidden; border-top: 1px solid var(--line-2);
}
.final::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 35% 50%, var(--a-soft), transparent 60%),
    radial-gradient(ellipse 50% 60% at 65% 50%, var(--b-soft), transparent 60%);
  pointer-events: none;
}
.final-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
.final h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 5.5rem); line-height: 0.9; letter-spacing: -0.03em;
}
.final h2 .now { position: relative; display: inline-block; }
.final h2 .now .core { color: var(--paper); text-shadow: -0.06em 0.045em 0 var(--a), 0.06em -0.045em 0 var(--b); }
.final p { color: var(--muted); line-height: 1.65; max-width: 46ch; margin: 1.4rem auto 2.4rem; }

.email-form { display: flex; gap: 0.6rem; max-width: 480px; margin: 0 auto; }
.email-form input {
  flex: 1; background: var(--ink); border: 1px solid var(--line);
  color: var(--paper); padding: 0.85rem 1.1rem; font-family: var(--font-mono);
  font-size: 0.9rem; outline: none; transition: border-color 0.2s;
}
.email-form input::placeholder { color: var(--muted-2); }
.email-form input:focus { border-color: var(--a); }
.note { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted-2); margin-top: 1.1rem; letter-spacing: 0.04em; }

/* ---------- form feedback ---------- */
.msg {
  display: none;
  max-width: 480px; margin: 1rem auto 0;
  padding: 0.75rem 1rem;
  font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.03em;
  line-height: 1.5;
  border: 1px solid var(--line);
}
.msg.success {
  display: block;
  color: var(--a);
  border-color: var(--a);
  background: var(--a-soft);
}
.msg.error {
  display: block;
  color: var(--b);
  border-color: var(--b);
  background: var(--b-soft);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  padding: 2.5rem var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid var(--line-2);
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.06em; color: var(--muted-2);
}
footer .brand { font-size: 0.95rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .window-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .tiers { grid-template-columns: 1fr; }
  .instructor { grid-template-columns: 1fr; }
  .portrait { max-width: 260px; }
}
@media (max-width: 640px) {
  .nav-links a:not(.btn) { display: none; }
  .modules { grid-template-columns: 1fr; }
  .module { border-right: none; }
  .module:nth-last-child(2) { border-bottom: 1px solid var(--line-2); }
  .hero-meta { gap: 1.6rem; }
  .email-form { flex-direction: column; }
  .t-item { grid-template-columns: 1fr; gap: 0.4rem; }
  .t-item .t-tag { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; }
  .ticker-track { animation: none; }
}
