/* 6th Wave Labs: the portal */
:root {
  --ink: #04060c; --deep: #080e1f; --navy: #0f1a37; --panel: rgba(255,255,255,.035); --panel2: rgba(255,255,255,.06);
  --line: rgba(255,255,255,.09); --line2: rgba(255,255,255,.16);
  --txt: #eef2ff; --mut: #b3bcd6; --mut2: #7f8aa8;
  --cyan: #22d3ee; --amber: #ffd27a; --coral: #ff8a65; --violet: #a78bfa; --leaf: #6fdc8c; --rose: #f28da8;
  --paper: #f5f1e8; --paper-ink: #14161c;
  --display: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --wrap: 1180px; --r: 18px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--txt); font-family: var(--display); font-size: 16px; line-height: 1.55; overflow-x: hidden; }
a { color: inherit; }
img, svg { max-width: 100%; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.mono { font-family: var(--mono); }
.eyebrow { font-family: var(--mono); font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 30; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: linear-gradient(to bottom, rgba(4,6,12,.82), rgba(4,6,12,.55)); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: .01em; font-size: 16px; white-space: nowrap; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand b { font-weight: 900; } .brand span { color: var(--mut); font-weight: 600; }
.nav nav { display: flex; gap: 4px; align-items: center; }
.nav nav a { text-decoration: none; color: var(--mut); font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.nav nav a:hover, .nav nav a[aria-current] { color: var(--txt); background: var(--panel2); }
.nav nav a.cta { color: var(--ink); background: var(--amber); }
.nav nav a.cta:hover { background: #ffe0a3; color: var(--ink); }
@media (max-width: 760px) { .nav nav a:not(.cta) { display: none; } .nav nav a.keep { display: inline-block; } }

/* hero */
.hero { position: relative; min-height: min(92vh, 860px); display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(1200px 600px at 75% 15%, rgba(34,211,238,.10), transparent 60%), linear-gradient(to bottom, transparent 55%, var(--ink)); pointer-events: none; }
.hero .wrap { padding: 120px 0 84px; }
.hero h1 { font-size: clamp(46px, 8.6vw, 116px); line-height: .92; letter-spacing: -.035em; font-weight: 900; font-stretch: 112%; margin: 16px 0 22px; max-width: 12ch; }
.hero h1 em { font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: -.02em; font-stretch: normal; color: var(--amber); }
.hero p.lede { font-family: var(--serif); font-size: clamp(19px, 2.2vw, 25px); line-height: 1.45; color: #d9def0; max-width: 40ch; margin: 0 0 30px; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 700; font-size: 15px; padding: 13px 20px; border-radius: 999px; border: 1px solid var(--line2); background: var(--panel); color: var(--txt); cursor: pointer; font-family: var(--display); }
.btn:hover { background: var(--panel2); border-color: rgba(255,255,255,.28); }
.btn.primary { background: var(--txt); color: var(--ink); border-color: var(--txt); }
.btn.primary:hover { background: #fff; }
.btn.amber { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.now { margin-top: 38px; display: inline-flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 999px; background: rgba(8,14,31,.7); border: 1px solid var(--line); text-decoration: none; max-width: 100%; }
.now i { font-style: normal; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; color: var(--ink); background: var(--cyan); border-radius: 999px; padding: 4px 9px; flex: none; }
.now span { font-size: 14px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now span b { color: var(--txt); }

/* sections */
section.band { padding: 96px 0; position: relative; }
section.band + section.band { border-top: 1px solid var(--line); }
.head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.head h2 { font-size: clamp(32px, 4.6vw, 58px); line-height: 1; letter-spacing: -.03em; font-weight: 900; font-stretch: 108%; margin: 10px 0 0; }
.head h2 em { font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: -.015em; font-stretch: normal; }
.head p { color: var(--mut); max-width: 52ch; margin: 12px 0 0; font-size: 17px; }
.more { font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); text-decoration: none; white-space: nowrap; }
.more:hover { text-decoration: underline; }

/* the waves timeline */
.waves { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.wave { position: relative; padding: 18px 16px 20px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); min-height: 170px; overflow: hidden; }
.wave b { display: block; font-family: var(--mono); font-size: 12px; color: var(--mut2); letter-spacing: .08em; }
.wave h3 { margin: 8px 0 6px; font-size: 17px; line-height: 1.2; }
.wave p { margin: 0; color: var(--mut); font-size: 13.5px; line-height: 1.45; }
.wave svg { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 46px; opacity: .55; }
.wave.six { background: linear-gradient(160deg, rgba(34,211,238,.16), rgba(167,139,250,.10) 55%, rgba(255,210,122,.08)); border-color: rgba(34,211,238,.45); }
.wave.six b { color: var(--cyan); } .wave.six svg { opacity: 1; }
.wave-note { color: var(--mut2); font-size: 13px; margin-top: 16px; max-width: 80ch; }
@media (max-width: 980px) { .waves { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .waves { grid-template-columns: repeat(2, 1fr); } .wave { min-height: 150px; } }

/* report cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; text-decoration: none; border-radius: var(--r); overflow: hidden; background: var(--deep); border: 1px solid var(--line); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-3px); border-color: var(--line2); box-shadow: 0 20px 50px -25px rgba(34,211,238,.35); }
.card .art { aspect-ratio: 16 / 9; background: #0b0f1d; position: relative; overflow: hidden; }
.card .art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .art .gen { position: absolute; inset: 0; }
.card .art .play { position: absolute; right: 12px; bottom: 12px; font-family: var(--mono); font-size: 11.5px; padding: 5px 10px; border-radius: 999px; background: rgba(4,6,12,.78); border: 1px solid var(--line2); color: var(--txt); }
.card .body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card .k { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.card h3 { margin: 0; font-size: 22px; line-height: 1.15; letter-spacing: -.015em; }
.card p { margin: 0; color: var(--mut); font-family: var(--serif); font-size: 16.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { margin-top: auto; padding-top: 10px; font-family: var(--mono); font-size: 11.5px; color: var(--mut2); display: flex; gap: 14px; flex-wrap: wrap; }
.card.lead { grid-column: span 2; }
.card.lead h3 { font-size: clamp(26px, 3vw, 36px); }
@media (max-width: 620px) { .card.lead { grid-column: auto; } }
.empty { padding: 48px 28px; border-radius: var(--r); border: 1px dashed var(--line2); color: var(--mut); text-align: center; font-family: var(--serif); font-size: 19px; }

/* themes */
.themes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
@media (max-width: 1080px) { .themes { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .themes { grid-template-columns: repeat(2, 1fr); } }
.theme { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px; min-height: 168px; border-radius: 16px; text-decoration: none; background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.theme::before { content: ""; position: absolute; inset: auto -30% -60% -30%; height: 120%; background: radial-gradient(closest-side, var(--glow, rgba(34,211,238,.18)), transparent); opacity: .7; transition: opacity .2s; pointer-events: none; }
.theme:hover::before { opacity: 1; } .theme:hover { border-color: var(--line2); }
.theme .ic { font-size: 26px; }
.theme h3 { margin: 0; font-size: 16.5px; }
.theme p { margin: 0; color: var(--mut); font-size: 13px; line-height: 1.45; }
.theme .n { margin-top: auto; font-family: var(--mono); font-size: 11px; color: var(--mut2); }
.t-planet { --glow: rgba(111,220,140,.22); } .t-space { --glow: rgba(255,210,122,.2); } .t-tech { --glow: rgba(34,211,238,.22); } .t-pharma { --glow: rgba(242,141,168,.22); }
.t-human { --glow: rgba(255,138,101,.22); } .t-money { --glow: rgba(79,209,165,.2); } .t-power { --glow: rgba(167,139,250,.22); } .t-shocks { --glow: rgba(255,138,101,.18); }
.t-deals { --glow: rgba(122,167,255,.22); } .t-rewind { --glow: rgba(199,155,255,.22); }

/* listen */
.listen { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: stretch; }
@media (max-width: 900px) { .listen { grid-template-columns: 1fr; } }
.player { border-radius: var(--r); padding: 26px; background: linear-gradient(150deg, #0d1a3a, #0a0f22 60%); border: 1px solid var(--line2); display: flex; flex-direction: column; gap: 16px; }
.player .k { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--cyan); text-transform: uppercase; }
.player h3 { margin: 0; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.15; letter-spacing: -.015em; }
.player .sub { color: var(--mut); font-family: var(--serif); font-size: 17px; margin: 0; }
.ap { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; }
.ap button.pp { width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--txt); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.ap button.pp:hover { background: #fff; }
.ap button.pp svg { width: 22px; height: 22px; }
.ap .bar { position: relative; height: 38px; cursor: pointer; display: flex; align-items: center; }
.ap .bar canvas { width: 100%; height: 38px; display: block; }
.ap .t { font-family: var(--mono); font-size: 12px; color: var(--mut); min-width: 92px; text-align: right; }
.plats { display: flex; flex-wrap: wrap; gap: 8px; }
.plat { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line2); text-decoration: none; font-size: 13.5px; font-weight: 600; background: var(--panel); }
.plat:hover { background: var(--panel2); }
.plat .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--cyan)); }
.p-apple { --c: #b65cf0; } .p-spotify { --c: #1ed760; } .p-youtube { --c: #ff3b30; } .p-amazon { --c: #25d1da; } .p-pocketcasts { --c: #f43e37; } .p-iheart { --c: #c6002b; } .p-overcast { --c: #fc7e0f; } .p-rss { --c: var(--amber); }
.eps { display: flex; flex-direction: column; gap: 10px; }
.ep { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); text-decoration: none; }
.ep:hover { border-color: var(--line2); }
.ep b { font-size: 15.5px; line-height: 1.25; display: block; }
.ep span { color: var(--mut2); font-family: var(--mono); font-size: 11.5px; }

/* subscribe */
.sub-band { border-radius: 26px; padding: clamp(28px, 5vw, 56px); background: radial-gradient(800px 300px at 15% 0%, rgba(34,211,238,.16), transparent 60%), radial-gradient(700px 300px at 90% 100%, rgba(255,210,122,.12), transparent 60%), var(--deep); border: 1px solid var(--line2); display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
@media (max-width: 860px) { .sub-band { grid-template-columns: 1fr; } }
.sub-band h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.02; letter-spacing: -.03em; margin: 8px 0 10px; font-weight: 900; }
.sub-band h2 em { font-family: var(--serif); font-style: italic; font-weight: 500; }
.sub-band p { color: var(--mut); margin: 0; font-size: 16.5px; }
form.subscribe { display: flex; gap: 10px; flex-wrap: wrap; }
form.subscribe input[type=email] { flex: 1 1 240px; min-width: 0; padding: 15px 18px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(4,6,12,.6); color: var(--txt); font-size: 16px; font-family: var(--display); }
form.subscribe input[type=email]::placeholder { color: var(--mut2); }
form.subscribe .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
form.subscribe .msg { flex-basis: 100%; font-size: 14px; color: var(--mut); min-height: 1.4em; margin: 0; }
form.subscribe .msg.ok { color: var(--leaf); } form.subscribe .msg.bad { color: var(--coral); }
.fine { flex-basis: 100%; font-size: 12.5px; color: var(--mut2); margin: 0; }

/* links from the lab */
.links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 700px) { .links { grid-template-columns: 1fr; } }
.lnk { padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); text-decoration: none; display: flex; flex-direction: column; gap: 6px; }
.lnk:hover { border-color: var(--line2); }
.lnk b { font-size: 17px; } .lnk span { color: var(--mut); font-size: 14px; } .lnk i { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--cyan); }

/* the series hub */
.series-hero { padding: 110px 0 60px; position: relative; overflow: hidden; }
.series-hero h1 { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(60px, 11vw, 150px); line-height: .9; letter-spacing: -.03em; margin: 14px 0 18px; }
.series-hero h1 span { color: var(--amber); }
.series-hero p { font-family: var(--serif); font-size: clamp(19px, 2.2vw, 24px); color: #d9def0; max-width: 46ch; margin: 0 0 26px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip { font-size: 13.5px; font-weight: 600; text-decoration: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line2); color: var(--mut); background: var(--panel); white-space: nowrap; }
.chip:hover { color: var(--txt); }
.chip[aria-current] { color: var(--ink); background: var(--txt); border-color: var(--txt); }

/* simple pages (confirm, privacy, 404) */
.page { padding: 120px 0 100px; }
.page h1 { font-size: clamp(36px, 6vw, 68px); letter-spacing: -.03em; line-height: 1; margin: 12px 0 18px; font-weight: 900; }
.page .prose { font-family: var(--serif); font-size: 19px; line-height: 1.6; color: #dfe4f3; max-width: 62ch; }
.page .prose h2 { font-family: var(--display); font-size: 22px; margin-top: 32px; }

/* footer */
footer.foot { border-top: 1px solid var(--line); padding: 42px 0 54px; color: var(--mut2); font-size: 13.5px; }
footer.foot .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
footer.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer.foot a { color: var(--mut); text-decoration: none; } footer.foot a:hover { color: var(--txt); }

/* the reveal */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } .card, .card:hover { transform: none; } html { scroll-behavior: auto; } }
@media print { .nav, .hero canvas, .sub-band, footer.foot { display: none; } }
.ap .bar .trk { width: 100%; height: 6px; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; }
.ap .bar .trk i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), var(--amber)); border-radius: 999px; }
.ap .bar:hover .trk { height: 8px; }
.showart { display: block; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line2); aspect-ratio: 1; max-height: 420px; }
.showart img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.showart:hover img { transform: scale(1.02); }
@media (max-width: 900px) { .showart { max-width: 360px; } }
