/* Kaskel Foundation: the skill catalyst. Warm paper, ink, catalyst green. */
:root {
  --paper: #f5f3ec;
  --paper-2: #ece8dc;
  --card: #fffdf8;
  --ink: #14171a;
  --ink-2: #23282d;
  --muted: #5a6067;
  --line: #ddd8ca;
  --accent: #12a150;
  --accent-2: #2ec472;
  --accent-soft: #d6f2e1;
  --spark: #ffc93c;
  --on-dark: #f5f3ec;
  --on-dark-muted: #b9bcbf;
  --radius: 20px;
  --head: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; }
p { margin: 0 0 1rem; }
h1, h2, h3 { margin: 0; font-family: var(--head); letter-spacing: -0.02em; }
strong { font-weight: 600; }
::selection { background: var(--accent); color: #fff; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
@media (min-width: 640px) { .wrap { width: min(1180px, 100% - 64px); } }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 16px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Type */
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; font: 600 .78rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.2rem; }
.eyebrow--light { color: var(--on-dark-muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.eyebrow--light .dot { box-shadow: 0 0 0 4px rgba(18,161,80,.25); }
h1 { font-size: clamp(3.2rem, 9vw, 6.6rem); line-height: .95; font-weight: 700; letter-spacing: -0.045em; }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.05; font-weight: 600; letter-spacing: -0.035em; max-width: 22ch; }
h2 .muted { color: var(--muted); }
.hl { color: var(--accent); }
h1 .hl { position: relative; white-space: nowrap; isolation: isolate; }
h1 .hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .12em; background: var(--spark); border-radius: 4px; z-index: -1; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 38rem; margin-top: 1.4rem; }
.note { color: var(--muted); font-size: .93rem; }
.head { margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; padding: .8rem 1.35rem; border-radius: 999px; border: 1.5px solid transparent; font: 600 .95rem/1 var(--body); text-decoration: none; cursor: pointer; transition: transform .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease; }
.btn .i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.btn:hover .i { transform: translateX(3px); }
.btn--primary { background: var(--accent); color: var(--ink); box-shadow: 0 6px 20px -8px rgba(18,161,80,.7); }
.btn--primary:hover { background: var(--accent-2); transform: translateY(-1px); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--light { border-color: rgba(245,243,236,.35); color: var(--on-dark); }
.btn--light:hover { border-color: var(--on-dark); }
.btn--sm { min-height: 40px; padding: .55rem 1.05rem; font-size: .9rem; }
.btn--lg { min-height: 56px; padding: 1rem 1.7rem; font-size: 1rem; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 85%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s ease; }
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand__mark { width: 36px; height: 38px; flex: none; }
.brand__text { font: 700 1.2rem/1 var(--head); letter-spacing: -0.02em; }
.brand__text span { font-weight: 400; color: var(--muted); }
.nav__links { display: none; gap: 1.5rem; margin-left: auto; }
.nav__links a { text-decoration: none; color: var(--muted); font-size: .92rem; font-weight: 500; transition: color .2s; }
.nav__links a:hover { color: var(--ink); }
.nav__cta { display: none; }
.nav__toggle { margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); display: grid; place-content: center; gap: 6px; cursor: pointer; }
.nav__toggle span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu { display: flex; flex-direction: column; padding: .5rem 16px 1.25rem; border-top: 1px solid var(--line); background: var(--paper); }
.menu[hidden] { display: none; }
.menu a:not(.btn) { padding: .85rem .25rem; text-decoration: none; border-bottom: 1px solid var(--line); font-weight: 500; }
.menu .btn { margin-top: 1rem; }
@media (min-width: 980px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__toggle, .menu { display: none !important; }
}
@media (max-width: 400px) { .brand__text span { display: none; } }

/* Hero */
.hero { padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; right: -18vw; top: -22vw; border-radius: 50%; background: radial-gradient(closest-side, rgba(18,161,80,.16), rgba(255,201,60,.08) 55%, transparent 72%); pointer-events: none; }
.hero__grid { position: relative; display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1000px) { .hero__grid { grid-template-columns: 1.05fr 1fr; gap: 4rem; } }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* The energy diagram */
.energy { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 1.25rem 1.25rem 1rem; box-shadow: 0 30px 60px -40px rgba(20,23,26,.35); }
.energy__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; align-items: center; margin-bottom: .5rem; }
.energy__title { font: 600 1rem/1.2 var(--head); }
.energy__legend { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; color: var(--muted); }
.energy__legend i { display: inline-block; width: 18px; height: 0; border-top: 3px solid; border-radius: 2px; margin-left: .4rem; }
.k-alone { border-color: #a7a194 !important; border-top-style: dashed !important; }
.k-kaskel { border-color: var(--accent) !important; }
.energy svg { width: 100%; height: auto; overflow: visible; }
.axis { stroke: var(--line); stroke-width: 2; }
.axis-label { font: 500 12px var(--body); fill: var(--muted); }
.curve { fill: none; stroke-width: 4; stroke-linecap: round; }
.curve--alone { stroke: #a7a194; stroke-dasharray: 8 9; }
.curve--kaskel { stroke: var(--accent); stroke-width: 5; stroke-dasharray: 900; stroke-dashoffset: 0; }
.js .energy:not(.is-in) .curve--kaskel { stroke-dashoffset: 900; }
.energy.is-in .curve--kaskel { transition: stroke-dashoffset 1.8s cubic-bezier(.3,.7,.2,1) .3s; }
.gap { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 3 4; }
.gap-head { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.gap-label { font: 600 13px var(--body); fill: var(--ink); }
.gap-label--sub { font-weight: 400; fill: var(--muted); }
.pt { stroke: var(--card); stroke-width: 3; }
.pt--start { fill: var(--ink); }
.pt--end { fill: var(--accent); }
.pt-label { font: 500 12px var(--body); fill: var(--muted); }
.spark { fill: var(--spark); stroke: var(--accent); stroke-width: 2; }
.energy figcaption { font-size: .88rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: .8rem; margin-top: .4rem; }

/* Formula strip */
.formula { margin-top: clamp(3rem, 6vw, 4.5rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem 1rem; font: 600 clamp(1.4rem, 3.2vw, 2.3rem)/1 var(--head); letter-spacing: -0.03em; padding: 1.4rem 1rem; border-block: 1.5px solid var(--ink); }
.formula b { color: var(--muted); font-weight: 400; }
.formula__arrow { position: relative; display: inline-flex; flex-direction: column; align-items: center; color: var(--accent) !important; }
.formula__arrow em { font: 600 .72rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; font-style: normal; color: var(--accent); margin-bottom: .35rem; }
.formula__arrow::after { content: ""; width: clamp(56px, 9vw, 96px); height: 3px; background: var(--accent); border-radius: 3px; mask: none; }
.formula__arrow::before { content: ""; position: absolute; right: -2px; bottom: -5px; width: 12px; height: 12px; border-top: 3px solid var(--accent); border-right: 3px solid var(--accent); transform: rotate(45deg); }
.formula__out { background: var(--ink); color: var(--paper); padding: .35em .6em .4em; border-radius: 12px; }

/* Sections */
.section { padding: clamp(4.5rem, 10vw, 7.5rem) 0; }
.section--ink { background: var(--ink); color: var(--on-dark); }
.section--ink h2 { color: var(--on-dark); }
.section--tint { background: var(--paper-2); }

.props { display: grid; gap: 1rem; }
@media (min-width: 900px) { .props { grid-template-columns: repeat(3, 1fr); } }
.prop { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.2rem); position: relative; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.prop:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -30px rgba(20,23,26,.4); }
.prop::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(closest-side, var(--accent-soft), transparent); }
.prop__n { font: 700 .85rem/1 var(--head); color: var(--accent); letter-spacing: .08em; display: block; margin-bottom: 2.2rem; }
.prop h3 { font-size: 1.45rem; font-weight: 600; margin-bottom: .6rem; }
.prop p { color: var(--muted); margin: 0; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; counter-reset: step; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { border: 1px solid rgba(245,243,236,.14); border-radius: var(--radius); padding: 1.6rem; background: var(--ink-2); position: relative; transition: border-color .25s ease, transform .25s ease; }
.step:hover { border-color: var(--accent); transform: translateY(-4px); }
.step::before { counter-increment: step; content: "0" counter(step); position: absolute; right: 1.4rem; top: 1.5rem; font: 600 .8rem/1 var(--head); color: var(--on-dark-muted); }
.step__icon { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--accent); fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1.4rem; }
.step__k { display: block; font: 600 .75rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--spark); margin-bottom: .5rem; }
.step h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: .55rem; color: var(--on-dark); }
.step p { color: var(--on-dark-muted); font-size: .95rem; margin: 0; }

.who { display: grid; gap: 1rem; }
@media (min-width: 700px) { .who { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .who { grid-template-columns: repeat(4, 1fr); } }
.who__card { border-top: 3px solid var(--ink); padding-top: 1.2rem; }
.who__card h3 { font-size: 1.35rem; font-weight: 600; margin-bottom: .5rem; }
.who__card p { color: var(--muted); margin: 0; font-size: .97rem; }

.mission { padding: clamp(4.5rem, 10vw, 7.5rem) 0; background: var(--accent); color: var(--ink); }
.mission .eyebrow { color: var(--ink); }
.mission .dot { background: var(--ink); box-shadow: 0 0 0 4px rgba(20,23,26,.15); }
.mission blockquote { margin: 0; }
.mission blockquote p { font: 600 clamp(1.6rem, 3.6vw, 2.8rem)/1.2 var(--head); letter-spacing: -0.03em; max-width: 30ch; margin: 0; }
.mission .hl { color: var(--paper); }
.mission__about { margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.6rem; border-top: 1.5px solid rgba(20,23,26,.35); max-width: 46rem; }
.mission__about h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.mission__about p { margin: 0; }

.story { display: grid; gap: 2rem; }
@media (min-width: 900px) { .story { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.story article { position: relative; padding-left: 1.4rem; border-left: 3px solid var(--accent); }
.story h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: .6rem; }
.story p { color: var(--muted); margin: 0; }

.split { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1.1fr 1fr; gap: 5rem; } }
.ticks { list-style: none; padding: 0; margin: 1.6rem 0; display: grid; gap: .75rem; }
.ticks li { position: relative; padding-left: 2rem; color: var(--muted); }
.ticks li strong { color: var(--ink); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314171a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/60% no-repeat; }

/* Phone mock of Shelf Top */
.phone { width: min(330px, 100%); margin-inline: auto; padding: 11px; border-radius: 44px; background: var(--ink); box-shadow: 0 40px 70px -35px rgba(20,23,26,.6); transform: rotate(-2deg); }
.phone__screen { border-radius: 34px; background: #fafafa; color: #111; padding: 18px 14px 22px; min-height: 540px; font-size: 13px; line-height: 1.45; }
.phone__bar { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; margin: 4px 4px 16px; }
.phone__logo { width: 22px; height: 22px; border-radius: 7px; background: #111; }
.phone__beta { margin-left: auto; font-size: 10px; font-weight: 500; border: 1px solid #bbb; border-radius: 99px; padding: 1px 7px; color: #555; }
.mock { background: #fff; border: 1px solid #e6e6e6; border-radius: 16px; padding: 14px; margin-bottom: 10px; }
.mock__code { font-size: 11px; color: #777; margin: 0 0 4px; }
.mock__title { font-weight: 600; font-size: 14px; margin: 0 0 6px; }
.mock__meta { font-size: 11.5px; color: #555; margin: 0; }
.mock__pill { display: inline-block; margin: 0; font-size: 11px; font-weight: 600; color: #127a45; background: #e6f6ed; border-radius: 99px; padding: 2px 10px; }
.mock__rows { display: grid; gap: 8px; margin-top: 8px; }
.mock__rows span { display: grid; gap: 3px; font-size: 11px; color: #444; }
.mock__rows em { font-style: normal; }
.mock__rows i { display: block; height: 6px; border-radius: 6px; background: linear-gradient(90deg, #111 var(--w), #ececec var(--w)); }

/* The Kaskel Tape (podcast) */
.section--tape { background: var(--ink); color: var(--on-dark); }
.section--tape h2 { color: var(--on-dark); }
.head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.btn .i--fill { fill: currentColor; stroke: none; width: 20px; height: 20px; }
.btn:hover .i--fill { transform: none; }
.yt { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; }
.yt img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .3s ease; }
.yt:hover img { transform: scale(1.04); opacity: .85; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt__play { position: absolute; left: 10px; top: 10px; width: 46px; height: 46px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; box-shadow: 0 10px 30px -8px rgba(0,0,0,.6); transition: transform .25s ease; }
.yt__play svg { width: 20px; height: 20px; fill: var(--ink); margin-left: 3px; }
.yt:hover .yt__play, .yt:focus-visible .yt__play { transform: scale(1.1); }
.yt--feature .yt__play { width: 60px; height: 60px; left: 14px; top: 14px; }
.yt--feature .yt__play svg { width: 26px; height: 26px; }
.ep__tag { position: absolute; left: 10px; top: 10px; font: 600 .7rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; background: rgba(20,23,26,.85); color: var(--on-dark); padding: .4rem .6rem; border-radius: 999px; }
.ep__tag--static { position: static; display: inline-block; background: var(--accent); color: var(--ink); margin-bottom: 1rem; }
.feature { display: grid; gap: 1.5rem 3rem; align-items: center; padding: clamp(1rem, 2.5vw, 1.5rem); border: 1px solid rgba(245,243,236,.14); border-radius: 24px; background: var(--ink-2); }
@media (min-width: 960px) { .feature { grid-template-columns: 1.5fr 1fr; } }
.feature h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.1; color: var(--on-dark); margin-bottom: .8rem; }
.feature p { color: var(--on-dark-muted); margin: 0 0 .6rem; }
.feature__guest strong { color: var(--spark); font-weight: 600; }
.eps { display: grid; gap: 2rem 1.25rem; margin-top: clamp(2rem, 4vw, 3rem); }
@media (min-width: 640px) { .eps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .eps { grid-template-columns: repeat(3, 1fr); } }
.ep__label { display: block; margin-top: 1rem; font: 600 .7rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.ep h3 { font-size: 1.05rem; line-height: 1.3; font-weight: 600; color: var(--on-dark); margin: .45rem 0 .35rem; }
.ep p { font-size: .88rem; color: var(--on-dark-muted); margin: 0; }
.ep p strong { color: var(--on-dark); font-weight: 600; }

/* Initiatives (home) */
.head .lede { margin-top: 1rem; }
.inits { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .inits { grid-template-columns: repeat(3, 1fr); } }
.init { display: flex; flex-direction: column; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 1.25rem 1.25rem 1.5rem; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.init:hover { transform: translateY(-5px); box-shadow: 0 30px 50px -34px rgba(20,23,26,.45); border-color: var(--ink); }
.init__art { position: relative; height: 210px; border-radius: 16px; background: var(--paper-2); overflow: hidden; margin-bottom: 1.3rem; }
.init__art img { position: absolute; top: 50%; left: 50%; border-radius: 10px; box-shadow: 0 16px 30px -16px rgba(20,23,26,.6); transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.init__art--sq img { width: 140px; height: 140px; object-fit: cover; margin: -70px 0 0 -70px; }
.init__art--wide img { width: 210px; height: 118px; object-fit: cover; margin: -59px 0 0 -105px; border: 1px solid var(--line); }
.init__art img:nth-child(1) { transform: translateX(-62%) rotate(-8deg); }
.init__art img:nth-child(2) { transform: translateX(62%) rotate(8deg); }
.init__art img:nth-child(3) { transform: translateY(-4%); z-index: 2; }
.init:hover .init__art img:nth-child(1) { transform: translateX(-78%) rotate(-11deg); }
.init:hover .init__art img:nth-child(2) { transform: translateX(78%) rotate(11deg); }
.init:hover .init__art img:nth-child(3) { transform: translateY(-8%) scale(1.04); }
.init__k { font: 600 .75rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: .6rem; }
.init h3 { font-size: 1.35rem; font-weight: 600; margin-bottom: .5rem; }
.init p:not(.init__k) { color: var(--muted); font-size: .95rem; margin: 0 0 1.2rem; }
.init__go { margin-top: auto; display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .95rem; }
.init__go .i { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.init:hover .init__go .i { transform: translateX(4px); }

/* Initiative pages */
.nav__links a[aria-current="page"] { color: var(--ink); }
.ihero { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(1rem, 3vw, 2rem); }
.back { display: table; text-decoration: none; color: var(--muted); font-size: .92rem; font-weight: 500; margin-bottom: 1.8rem; }
.back:hover { color: var(--accent); }
.ihero__title { font-size: clamp(2.6rem, 7vw, 5rem); line-height: .98; font-weight: 700; letter-spacing: -0.04em; max-width: 16ch; }
.ihero__how { max-width: 42rem; margin-top: 1rem; padding: 1rem 1.2rem; border-left: 3px solid var(--accent); background: var(--card); border-radius: 0 12px 12px 0; color: var(--muted); font-size: .97rem; }
.ihero__how strong { color: var(--ink); }
mark { background: var(--accent-soft); color: var(--ink); border-radius: 4px; padding: 0 .2em; }
.chips2 { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; }
.chips2 a { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; border: 1.5px solid var(--ink); border-radius: 999px; padding: .5rem 1rem; font-weight: 500; font-size: .92rem; transition: background-color .2s, color .2s; }
.chips2 a span { font-size: .78rem; color: var(--muted); }
.chips2 a:hover { background: var(--ink); color: var(--paper); }
.chips2 a:hover span { color: var(--on-dark-muted); }
.isec { padding: clamp(2.5rem, 6vw, 4rem) 0; scroll-margin-top: 72px; }
.isec + .isec { border-top: 1px solid var(--line); }
.isec__head { margin-bottom: 1.8rem; }
.isec__n { font: 600 .75rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: .5rem; }
.isec__head h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.posts { display: grid; gap: 2rem 1.25rem; }
@media (min-width: 560px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .posts { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .posts { grid-template-columns: repeat(4, 1fr); } }
.post__img { display: block; border-radius: 14px; overflow: hidden; background: var(--paper-2); aspect-ratio: 1; box-shadow: 0 18px 30px -24px rgba(20,23,26,.5); }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post__img:hover img { transform: scale(1.04); }
.post__k { font: 600 .72rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 1rem 0 .4rem; }
.post h3 { font-size: 1.1rem; line-height: 1.25; font-weight: 600; margin-bottom: .45rem; }
.post__d { color: var(--muted); font-size: .9rem; margin: 0 0 .55rem; }
.post__q { font-size: .9rem; margin: 0; color: var(--ink); }
.post__q span { display: inline-block; font: 600 .68rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; background: var(--spark); border-radius: 999px; padding: .3rem .55rem; margin-right: .45rem; vertical-align: .1em; }
.prompts { display: grid; gap: 1rem; }
@media (min-width: 760px) { .prompts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1150px) { .prompts { grid-template-columns: repeat(3, 1fr); } }
.prompt { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 1.4rem; }
.prompt__top { display: flex; gap: .8rem; align-items: baseline; margin-bottom: .8rem; }
.prompt__n { font: 700 1.6rem/1 var(--head); color: var(--accent); letter-spacing: -0.03em; }
.prompt h3 { font-size: 1.1rem; font-weight: 600; line-height: 1.25; }
.prompt__body { color: var(--ink-2); font-size: .94rem; line-height: 1.6; margin: 0 0 1.2rem; }
.prompt__actions { margin-top: auto; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.prompt__view { color: var(--muted); font-size: .88rem; font-weight: 500; }
.prompt__view:hover { color: var(--accent); }
.copy.is-done { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.more { padding-top: clamp(2.5rem, 6vw, 4rem); border-top: 1px solid var(--line); }
.more__grid { display: grid; gap: 1rem; }
@media (min-width: 760px) { .more__grid { grid-template-columns: repeat(3, 1fr); } }
.more__card { position: relative; display: flex; flex-direction: column; gap: .4rem; text-decoration: none; padding: 1.3rem 3rem 1.3rem 1.3rem; border: 1.5px solid var(--ink); border-radius: 18px; transition: background-color .2s, color .2s; }
.more__card:hover { background: var(--ink); color: var(--paper); }
.more__card--beta { background: var(--accent); border-color: var(--accent); }
.more__card--beta:hover { background: var(--accent-2); color: var(--ink); }
.more__k { font: 600 .72rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.more__t { font: 600 1.1rem/1.25 var(--head); }
.more__go { position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); font-size: 1.3rem; }
.footer__base--sub { margin-top: 0; border-top: 0; padding-top: 0; }
.footer__base--sub a { text-decoration: none; }

/* Lightbox */
.lb { border: 0; padding: 0; margin: auto; width: min(92vw, 1100px); max-height: 92vh; background: transparent; overflow: visible; }
.lb::backdrop { background: rgba(20,23,26,.88); backdrop-filter: blur(4px); }
.lb__fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.lb__fig img { max-width: 100%; max-height: 80vh; width: auto; height: auto; border-radius: 12px; background: #fff; }
.lb__fig figcaption { color: var(--on-dark); font: 500 .95rem/1.3 var(--body); text-align: center; }
.lb__btn { position: fixed; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--paper); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.lb__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lb__btn:hover { background: var(--accent); }
.lb__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb__close { right: 16px; top: 16px; }
@media (max-width: 640px) { .lb__prev, .lb__next { top: auto; bottom: 16px; transform: none; } }

/* A realistic phone (Shelf Top section) */
.device { position: relative; width: min(320px, 82vw); aspect-ratio: 9 / 19.5; margin-inline: auto; filter: drop-shadow(0 50px 60px rgba(20,23,26,.35)) drop-shadow(0 12px 18px rgba(20,23,26,.18)); }
.device__body { position: absolute; inset: 0; border-radius: 15% / 7%; padding: 3.2%; background: linear-gradient(145deg, #5b6066 0%, #2a2e33 18%, #1a1d21 50%, #2c3035 82%, #6a7077 100%); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.18), inset 0 0 0 3px #0b0c0e; }
.device__body::before { content: ""; position: absolute; inset: 1.4%; border-radius: 14% / 6.5%; background: #050505; }
.device__screen { position: relative; height: 100%; border-radius: 12.5% / 5.8%; overflow: hidden; background: #f7f7f5; color: #111; display: flex; flex-direction: column; }
.device__btn { position: absolute; width: 3px; border-radius: 2px; background: linear-gradient(90deg, #2a2e33, #6a7077); }
.device__btn--action { left: -2px; top: 17%; height: 5%; }
.device__btn--volup { left: -2px; top: 25%; height: 9%; }
.device__btn--voldown { left: -2px; top: 36%; height: 9%; }
.device__btn--power { right: -2px; top: 28%; height: 14%; background: linear-gradient(270deg, #2a2e33, #6a7077); }
.sbar { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 12px 22px 6px 26px; font: 600 13px/1 -apple-system, "SF Pro Text", Inter, sans-serif; letter-spacing: -.01em; }
.sbar__island { position: absolute; left: 50%; top: 9px; width: 31%; height: 24px; transform: translateX(-50%); border-radius: 14px; background: #000; }
.sbar__island::after { content: ""; position: absolute; right: 9px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #3a4a6a, #0a0d14 60%); }
.sbar__icons { display: inline-flex; align-items: center; gap: 5px; }
.sbar__icons svg { height: 10px; width: auto; fill: #111; }
.sbar__batt { position: relative; width: 22px; height: 11px; border: 1.3px solid rgba(17,17,17,.4); border-radius: 3.5px; padding: 1.3px; }
.sbar__batt::after { content: ""; position: absolute; right: -3.5px; top: 3px; width: 1.6px; height: 3.5px; border-radius: 0 1px 1px 0; background: rgba(17,17,17,.4); }
.sbar__batt i { display: block; width: 80%; height: 100%; border-radius: 1.5px; background: #111; }
.papp { flex: 1; overflow: hidden; padding: 10px 12px 0; font-size: 12.5px; line-height: 1.42; }
.papp .phone__bar { margin: 2px 4px 12px; font-size: 16px; }
.phone__logo { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: #050505; }
.phone__logo svg { width: 19px; height: 19px; }
.papp .mock { padding: 12px 13px; margin-bottom: 9px; border-radius: 15px; }
.ptabs { display: flex; justify-content: space-around; padding: 7px 6px 22px; border-top: 1px solid #e6e6e3; background: rgba(247,247,245,.94); }
.ptab { display: flex; flex-direction: column; align-items: center; gap: 3px; color: #8a8f94; }
.ptab svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ptab em { font: 500 9.5px/1 Inter, sans-serif; font-style: normal; }
.ptab--on { color: #111; }
.ptab--on svg { stroke-width: 2.3; }
.home-ind { position: absolute; left: 50%; bottom: 7px; width: 36%; height: 4.5px; transform: translateX(-50%); border-radius: 3px; background: #111; }
.glare { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.28) 0%, rgba(255,255,255,.06) 28%, transparent 42%); mix-blend-mode: screen; }

/* Episodes: a row that slides on its own */
.carousel { margin-top: clamp(2rem, 4vw, 3rem); position: relative; }
.carousel__bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.carousel__title { margin: 0; font: 600 .78rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); }
.carousel__nav { display: flex; gap: .5rem; }
.carousel__btn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(245,243,236,.3); background: transparent; color: var(--on-dark); display: grid; place-items: center; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.carousel__btn:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.carousel__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.eps--row { display: flex; gap: 1.25rem; margin-top: 0; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none; padding-bottom: .5rem; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.eps--row::-webkit-scrollbar { display: none; }
.eps--row:focus-visible { outline-offset: 6px; }
.eps--row .ep { flex: 0 0 min(360px, 82%); scroll-snap-align: start; }
.carousel.is-end .eps--row { -webkit-mask-image: none; mask-image: none; }

/* Spotify */
.tape__subs { display: flex; flex-wrap: wrap; gap: .6rem; }
.spot { margin-top: clamp(2.5rem, 5vw, 3.5rem); display: grid; gap: 1.5rem 3rem; align-items: center; padding: clamp(1.2rem, 3vw, 2rem); border-radius: 24px; background: linear-gradient(135deg, rgba(30,215,96,.16), rgba(30,215,96,.03) 60%), var(--ink-2); border: 1px solid rgba(245,243,236,.14); }
@media (min-width: 900px) { .spot { grid-template-columns: 1fr 1.25fr; } }
.spot h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--on-dark); margin-bottom: .7rem; }
.spot__copy > p:not(.eyebrow) { color: var(--on-dark-muted); margin-bottom: 1.4rem; }
.spot__copy .eyebrow .dot { background: #1ed760; box-shadow: 0 0 0 4px rgba(30,215,96,.25); }
.spot__player { position: relative; display: flex; align-items: center; gap: 1.2rem; height: 352px; border-radius: 14px; overflow: hidden; background: #121212; text-decoration: none; color: #fff; }
.spot__player img { height: 100%; width: auto; aspect-ratio: 1; object-fit: cover; flex: none; transition: transform .4s ease; }
.spot__player:hover img { transform: scale(1.03); }
.spot__cta { display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; padding-right: 1.2rem; font: 600 1.05rem/1.3 var(--head); }
.spot__play { width: 60px; height: 60px; border-radius: 50%; background: #1ed760; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(0,0,0,.6); transition: transform .2s ease; }
.spot__play svg { width: 26px; height: 26px; fill: #000; margin-left: 3px; }
.spot__player:hover .spot__play { transform: scale(1.08); }
.spot__player iframe { width: 100%; height: 352px; border: 0; }
@media (max-width: 560px) {
  .spot__player { flex-direction: column; height: auto; align-items: stretch; gap: 0; }
  .spot__player img { width: 100%; height: auto; }
  .spot__cta { flex-direction: row; align-items: center; padding: 1rem; }
  .spot__play { width: 48px; height: 48px; }
}

/* Become a Beta Tester (form in a dialog) */
.join { width: min(680px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); border: 0; border-radius: 24px; padding: 0; background: var(--card); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(20,23,26,.6); }
.join::backdrop { background: rgba(20,23,26,.6); backdrop-filter: blur(4px); }
.join[open] { animation: joinIn .25s cubic-bezier(.2,.7,.2,1); }
@keyframes joinIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.join__form, .join__done { padding: clamp(1.4rem, 4vw, 2.2rem); }
.join h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: .5rem; }
.join__lede { color: var(--muted); margin-bottom: 1.4rem; }
.join__close { position: absolute; right: 12px; top: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--paper-2); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.join__close:hover { background: var(--accent-soft); }
.join__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.join__grid { display: grid; gap: 1rem; }
@media (min-width: 600px) { .join__grid { grid-template-columns: 1fr 1fr; } .field--wide { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field > span { font-size: .88rem; font-weight: 600; }
.field small { font-weight: 400; color: var(--muted); }
.field input, .field textarea { font: inherit; font-size: 16px; padding: .75rem .9rem; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--accent-soft); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #c2410c; }
.field__err { font-style: normal; font-size: .82rem; color: #b42318; min-height: 0; }
.field__err:empty { display: none; }
.check { display: flex; gap: .7rem; align-items: flex-start; margin-top: 1.2rem; font-size: .9rem; color: var(--muted); cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--accent); flex: none; }
.check a { color: var(--ink); }
.join__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.join__error { margin: 1rem 0 0; padding: .7rem .9rem; border-radius: 10px; background: #fef3f2; color: #b42318; font-size: .9rem; }
.join__submit { width: 100%; margin-top: 1.3rem; }
.join__submit[disabled] { opacity: .6; cursor: progress; }
.join__done { text-align: center; }
.join__done p { color: var(--muted); max-width: 30rem; margin: .5rem auto 1.5rem; }
.join__tick { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--accent); margin-bottom: 1rem; }
.join__tick svg { width: 30px; height: 30px; fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* Beta CTA */
.beta { padding: clamp(4.5rem, 10vw, 7.5rem) 0; }
.beta__card { position: relative; overflow: hidden; border-radius: 32px; padding: clamp(2.5rem, 7vw, 5rem) clamp(1.4rem, 6vw, 5rem); background: var(--ink); color: var(--on-dark); }
.beta__card h2 { color: var(--on-dark); font-size: clamp(2.2rem, 6vw, 4.4rem); max-width: 14ch; }
.beta__card > p:not(.eyebrow) { color: var(--on-dark-muted); max-width: 38rem; margin: 1.4rem 0 0; }
.beta__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.2rem; }
.beta__burst { position: absolute; right: -40px; top: -40px; width: clamp(180px, 30vw, 320px); color: var(--accent); opacity: .9; animation: pulse 4s ease-in-out infinite; }
@media (max-width: 640px) { .beta__burst { opacity: .35; } }
@keyframes pulse { 50% { transform: scale(1.06) rotate(8deg); } }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 4rem 0 2rem; font-size: .93rem; }
.footer__grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer__grid nav, .footer__grid > div { display: flex; flex-direction: column; gap: .5rem; }
.footer__grid a:not(.brand) { color: var(--muted); text-decoration: none; }
.footer__grid a:not(.brand):hover { color: var(--accent); }
.footer__h { font: 600 .78rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; margin: 0 0 .4rem; }
.footer__tag { color: var(--muted); margin-top: 1rem; max-width: 22rem; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); }
.footer__base p { margin: 0; }
.footer__base a { color: var(--muted); text-decoration: none; }
.footer__base a:hover { color: var(--accent); }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .beta__burst { animation: none; }
  .spark { display: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .energy:not(.is-in) .curve--kaskel { stroke-dashoffset: 0; }
  .phone { transform: none; }
}
