/* Site Science: the whiteboard style from the videos. White page, black
   line-art, one red accent, boxed caps labels, real conductor colours. */

@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/inter-tight-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #111111;
  --grey: #8c8c8c;
  --faint: #e3e3e3;
  --panel: #f3f3f3;
  --paper: #ffffff;
  --accent: #b5413a;
  --accent-tint: rgba(181, 65, 58, 0.1);
  /* Body copy: the brand grey is too light to read at text sizes. */
  --text-2: #4d4d4d;
  --muted: #6b6b6b;

  --line: #8b5a2b;
  --neutral: #2f6fb5;
  --earth: #2e9e4f;
  --earth-stripe: #f4d03f;

  --font: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header: 64px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent-tint); }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
}
.skip:focus { top: 12px; }

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

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Type ---------- */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 5px;
  border: 2px solid currentColor;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tag--accent { color: var(--accent); }

h2 {
  font-size: clamp(2.25rem, 7.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.lead {
  font-size: clamp(1.0625rem, 2.4vw, 1.3125rem);
  line-height: 1.5;
  color: var(--text-2);
  max-width: 44ch;
}

.accent { color: var(--accent); }

.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat;
  padding-bottom: 3px;
  transition: background-size 0.3s var(--ease);
}
.link:hover { background-size: 100% 2px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--accent); }
.btn:active { transform: none; box-shadow: none; }
.btn .icon { transition: transform 0.2s var(--ease); }
.btn:hover .icon:last-child:not(:first-child) { transform: translateX(3px); }
.btn--line { background: var(--paper); color: var(--ink); }
.btn--small { min-height: 40px; padding: 0 14px; font-size: 14px; gap: 8px; }

.iconbtn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

/* ---------- Header ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.top.is-scrolled { border-color: var(--faint); }
.top__in {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}
.brand img { width: 36px; height: 36px; border-radius: 9px; }
/* The Linked wordmark (scripts/wordmark.mjs): letters and lead take the text
   colour, the terminals stay red. */
.brand .wordmark { height: 27px; width: auto; }
.brand--light { color: var(--paper); }
.brand--light .wordmark { height: 30px; }
.brand--light img { width: 40px; height: 40px; border-radius: 10px; }

.nav { display: none; gap: 28px; margin-left: auto; }
.nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s;
}
.nav a:hover { color: var(--ink); }
.top .btn { margin-left: auto; }

@media (min-width: 760px) {
  .nav { display: flex; }
  .top .btn { margin-left: 8px; }
}

/* ---------- Hero ---------- */

.hero { padding-top: clamp(28px, 6vw, 72px); overflow: hidden; }
.hero__in {
  display: grid;
  gap: 48px;
  align-items: center;
}
.hero__title {
  margin: 22px 0 22px;
  font-size: clamp(3rem, 13.5vw, 6.5rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.05em;
}
.hero__title span { display: block; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__cta .btn { flex: 1 1 auto; }

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--muted);
}
.facts b { color: var(--ink); font-weight: 800; }

.hero__media {
  position: relative;
  display: grid;
  place-items: center;
  padding: 24px 0 8px;
}
/* The faint tile grid from the video title cards. */
.hero__media::before {
  content: '';
  position: absolute;
  inset: -40px -200px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='132' height='110'%3E%3Crect x='7' y='7' width='118' height='96' rx='12' fill='none' stroke='%23E3E3E3' stroke-width='2'/%3E%3C/svg%3E") center / 132px 110px;
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 30%, transparent 100%);
  pointer-events: none;
}

.phone {
  position: relative;
  width: min(64vw, 300px);
  aspect-ratio: 9 / 16;
  padding: 9px;
  border: 3px solid var(--ink);
  border-radius: 38px;
  background: var(--paper);
  box-shadow: 0 40px 80px -40px rgba(17, 17, 17, 0.35);
  cursor: pointer;
  transition: transform 0.4s var(--ease);
}
.phone:hover { transform: translateY(-6px) rotate(-1deg); }
.phone__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
  background: var(--paper);
}
.phone::before {
  content: '';
  position: absolute;
  z-index: 1;
  top: 18px;
  left: 50%;
  width: 72px;
  height: 20px;
  border-radius: 20px;
  background: var(--ink);
  transform: translateX(-50%);
}
.phone__label {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--paper);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
}
.phone__label small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }

.play {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  color: var(--paper);
}
.play .icon { width: 18px; height: 18px; margin-left: 2px; }

/* Line, neutral and earth, with current running on the line. */
.wires {
  width: 100%;
  height: 60px;
  margin-top: clamp(40px, 7vw, 80px);
}
.wire { fill: none; stroke-width: 6px; stroke-linecap: butt; }
.wire--line { stroke: var(--line); }
.wire--neutral { stroke: var(--neutral); }
.wire--earth { stroke: var(--earth); }
.wire--stripe { stroke: var(--earth-stripe); stroke-dasharray: 16 16; }
.wire--flow {
  stroke: var(--accent);
  stroke-width: 9px;
  stroke-linecap: round;
  stroke-dasharray: 0.1 34;
  animation: flow 1.1s linear infinite;
}
@keyframes flow { to { stroke-dashoffset: -34.1; } }

@media (min-width: 960px) {
  .hero__in { grid-template-columns: 1.2fr 0.8fr; gap: 64px; }
  .hero__cta .btn { flex: 0 0 auto; }
  .phone { width: 320px; }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(72px, 11vw, 136px); }
.section--rule { border-top: 1px solid var(--faint); }
.section--panel { background: var(--panel); }

.head { margin-bottom: clamp(32px, 5vw, 56px); }
.head .tag { margin-bottom: 18px; }
.head .lead { margin-top: 16px; }
.head--split { display: grid; gap: 28px; }
@media (min-width: 960px) {
  .head--split { grid-template-columns: 1fr auto; align-items: end; }
}

/* ---------- Explainers ---------- */

.trade + .trade { margin-top: clamp(72px, 10vw, 120px); }

.chips {
  display: flex;
  gap: 8px;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  overflow-x: auto;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  min-height: 40px;
  padding: 0 16px;
  border: 2px solid var(--faint);
  border-radius: 999px;
  background: var(--paper);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed='true'] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
@media (min-width: 960px) {
  .chips { margin: 0; padding: 0; overflow: visible; }
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 20px; } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 24px; } }

.card[hidden] { display: none; }
.card__btn {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}
.card__btn:focus-visible { outline: none; }
.card__btn:focus-visible .card__media { outline: 3px solid var(--accent); outline-offset: 3px; }

.card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 2px solid var(--faint);
  border-radius: 14px;
  background: var(--paper);
  transition: border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.card__ep {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 6px 2px;
  border: 2px solid var(--ink);
  background: var(--paper);
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.card__time {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 3px 7px;
  border-radius: 5px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.card__media .play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.25s, transform 0.3s var(--ease);
  box-shadow: 0 10px 30px -8px rgba(181, 65, 58, 0.6);
}
.card__media .play .icon { width: 22px; height: 22px; }

.card__btn:hover .card__media {
  border-color: var(--ink);
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--accent);
}
.card__btn:hover .card__media img { transform: scale(1.04); }
.card__btn:hover .play { opacity: 1; transform: none; }

/* Touch screens have no hover: keep a small play button showing. */
@media (hover: none) {
  .card__media .play {
    left: 10px;
    top: auto;
    bottom: 10px;
    width: 30px;
    height: 30px;
    margin: 0;
    opacity: 1;
    transform: none;
    box-shadow: none;
  }
  .card__media .play .icon { width: 13px; height: 13px; }
}

.card__body { display: block; padding: 14px 2px 0; }
.card__title {
  display: block;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.card__blurb {
  display: none;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}
@media (min-width: 560px) {
  .card__title { font-size: 17px; }
  .card__blurb { display: block; }
}

/* ---------- Approach ---------- */

.show { display: grid; gap: clamp(56px, 9vw, 112px); }
.show__item { display: grid; gap: 28px; margin: 0; align-items: center; }
.sheet {
  padding: clamp(18px, 4vw, 44px);
  border-radius: 20px;
  background: var(--panel);
}
.sheet img {
  width: 100%;
  border: 1px solid var(--faint);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 0 24px 48px -32px rgba(17, 17, 17, 0.35);
  transition: transform 0.5s var(--ease);
}
.show__item:hover .sheet img { transform: translateY(-4px); }
.show__n {
  display: block;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.show__item h3 {
  font-size: clamp(1.625rem, 4.4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.show__item p {
  margin-top: 14px;
  max-width: 36ch;
  font-size: 18px;
  color: var(--text-2);
}
@media (min-width: 900px) {
  .show__item { grid-template-columns: 1.15fr 0.85fr; gap: 72px; }
  .show__item:nth-child(even) .sheet { order: 2; }
}

/* ---------- Guides ---------- */

.guides { display: grid; gap: 24px; }
.guide {
  display: grid;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 20px;
  background: var(--paper);
}
.guide__cover {
  display: grid;
  place-items: center;
  padding: 48px 24px;
  border-bottom: 2px solid var(--ink);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='132' height='110'%3E%3Crect x='7' y='7' width='118' height='96' rx='12' fill='none' stroke='%23E3E3E3' stroke-width='2'/%3E%3C/svg%3E") center / 132px 110px,
    var(--paper);
}
.cover {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(62vw, 250px);
  aspect-ratio: 1 / 1.414;
  padding: 18px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--paper);
  box-shadow: 10px 10px 0 var(--faint);
  transform: rotate(-3deg);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.guide:hover .cover { transform: rotate(0) translateY(-4px); box-shadow: 10px 14px 0 var(--accent-tint); }
.cover__top {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cover__top img { width: 18px; height: 18px; border-radius: 4px; }
.cover__title {
  align-self: flex-start;
  padding: 5px 7px 4px;
  border: 2px solid var(--ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.cover__art { flex: 1; min-height: 0; width: 100%; object-fit: contain; }
.cover__foot {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
}

.guide__body { padding: clamp(28px, 5vw, 56px); }
.guide__body h3 {
  margin-top: 18px;
  font-size: clamp(1.75rem, 4.6vw, 2.625rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.guide__format { margin-top: 10px; font-size: 15px; font-weight: 600; color: var(--muted); }
.guide__format b { color: var(--ink); }
.ticks { display: grid; gap: 12px; margin: 28px 0 32px; padding: 0; list-style: none; }
.ticks li { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 600; }
.ticks .icon {
  width: 24px;
  height: 24px;
  padding: 2px;
  border: 2px solid var(--ink);
  border-radius: 5px;
  color: var(--accent);
  stroke-width: 3;
}
@media (min-width: 820px) {
  .guide { grid-template-columns: 0.9fr 1.1fr; align-items: stretch; }
  .guide__cover { border-bottom: 0; border-right: 2px solid var(--ink); }
  .guide__body { align-self: center; }
}

/* Free guide: three real pages of the PDF, fanned out. */
.guide__pages { position: relative; min-height: 340px; text-decoration: none; }
.guide__pages .pg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(46vw, 210px);
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--faint);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.guide__pages .pg:nth-child(1) { z-index: 3; transform: translate(-62%, -50%) rotate(-4deg); }
.guide__pages .pg:nth-child(2) { z-index: 2; transform: translate(-42%, -49%) rotate(2deg); }
.guide__pages .pg:nth-child(3) { z-index: 1; transform: translate(-22%, -48%) rotate(7deg); }
.guide--free:hover .pg:nth-child(1) { transform: translate(-72%, -52%) rotate(-6deg); box-shadow: 8px 10px 0 var(--accent-tint); }
.guide--free:hover .pg:nth-child(3) { transform: translate(-12%, -47%) rotate(9deg); }
.guide__note { margin-top: 14px; font-size: 14px; color: var(--muted); }
.guide__note .link { color: var(--ink); background-size: 100% 2px; padding-bottom: 1px; }
.draftnote { display: inline-block; margin-top: 4px; color: var(--accent); font-weight: 800; }
@media (min-width: 820px) {
  .guide__pages { min-height: 460px; }
  .guide__pages .pg { width: 230px; }
}

/* Free guide request form */
.getguide { margin-top: 28px; }
.getguide__label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 800; }
.getguide__row { display: grid; gap: 10px; }
.getguide input[type='email'] {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 17px; /* 16px+ stops iOS zooming in on focus */
}
.getguide input[type='email']:focus { outline: 3px solid var(--accent-tint); outline-offset: 0; border-color: var(--accent); }
.getguide .btn[disabled] { opacity: 0.6; cursor: progress; transform: none; box-shadow: none; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; font-size: 15px; line-height: 1.45; color: var(--text-2); cursor: pointer; }
.consent input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--accent); }
.getguide__msg { min-height: 1.4em; margin-top: 12px; font-size: 15px; font-weight: 700; color: var(--accent); }
.getguide .guide__note { margin-top: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (min-width: 560px) {
  .getguide__row { grid-template-columns: 1fr auto; }
}

/* Privacy policy */
.prose { max-width: 760px; }
.prose h1 { margin-top: 18px; font-size: clamp(2.25rem, 7vw, 3.5rem); line-height: 1; letter-spacing: -0.04em; }
.prose .lead { margin-top: 16px; }
.prose h2 { margin-top: 40px; font-size: 22px; letter-spacing: -0.02em; }
.prose p, .prose li { margin-top: 12px; color: var(--text-2); line-height: 1.6; }
.prose ul { padding-left: 20px; }
.prose a { color: var(--ink); }
.foot__legal a { color: inherit; }

/* Hero link to the free guide */
.freebie {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 22px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}
.freebie .icon { width: 18px; height: 18px; color: var(--accent); transition: transform 0.3s var(--ease); }
.freebie:hover .icon { transform: translateX(4px); }

/* ---------- Download and interest pages ---------- */

.top__in .brand + .btn { margin-left: auto; }
.sub { padding: clamp(40px, 8vw, 96px) 0 clamp(56px, 9vw, 112px); }
.sub__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.sub h1 {
  margin-top: 18px;
  font-size: clamp(2.25rem, 7vw, 4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  max-width: 14ch;
}
.sub .lead { margin-top: 18px; max-width: 46ch; }
.sub__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.sub__pages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sub__pages .pg { border: 1.5px solid var(--ink); border-radius: 4px; box-shadow: 6px 6px 0 var(--faint); }
.ask {
  display: grid;
  gap: 24px;
  margin-top: clamp(48px, 8vw, 88px);
  padding: clamp(24px, 4vw, 44px);
  border: 2px solid var(--ink);
  border-radius: 20px;
  background: var(--panel);
}
.ask h2 { margin-top: 14px; font-size: clamp(1.625rem, 4vw, 2.25rem); line-height: 1.05; letter-spacing: -0.03em; }
.ask p:not(.tag) { margin-top: 12px; color: var(--text-2); max-width: 56ch; }
.ask__actions { display: grid; gap: 18px; justify-items: start; align-content: center; }
@media (min-width: 900px) {
  .sub__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
  .sub__in--single { grid-template-columns: minmax(0, 1fr); }
  .sub__pages { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sub__in:not(.sub__in--single) .sub__pages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ask { grid-template-columns: 1.4fr 1fr; gap: 48px; }
}
.foot--slim { padding-top: 8px; }
.foot--slim .foot__legal { border-top: 0; }

/* ---------- About ---------- */

.about { display: grid; gap: 28px; }
.about .tag { margin-bottom: 18px; }
.about h2 { max-width: 14ch; }
.about__text p { font-size: 18px; line-height: 1.6; color: var(--text-2); max-width: 54ch; }
.about__text p + p { margin-top: 18px; }
.about__text p:first-child { font-size: clamp(1.1875rem, 2.4vw, 1.4375rem); line-height: 1.5; color: var(--ink); font-weight: 500; }
.about__links { display: flex; gap: 28px; margin-top: 28px !important; }
.about__links .link { color: var(--ink); }
@media (min-width: 900px) {
  .about { grid-template-columns: 0.85fr 1.15fr; gap: 72px; }
}

/* ---------- Footer ---------- */

.foot {
  padding: 64px 0 calc(40px + env(safe-area-inset-bottom));
  background: var(--ink);
  color: var(--paper);
}
.foot__in { display: grid; gap: 36px; }
.foot__brand p { margin-top: 14px; color: #a9a9a9; font-weight: 600; }
.foot__col h3 {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
}
.foot__col a {
  display: block;
  width: fit-content;
  padding: 4px 0;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}
.foot__col a:hover { color: #ff9a92; }
.foot__legal {
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
  line-height: 1.6;
  color: #a9a9a9;
}
.foot__legal p { max-width: 82ch; }
.foot__legal p + p { margin-top: 10px; }
.foot__legal b { color: var(--paper); }
@media (min-width: 760px) {
  .foot__in { grid-template-columns: 1.6fr 1fr 1fr; }
  .foot__legal { grid-column: 1 / -1; }
}

/* ---------- Player ---------- */

.player {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--paper);
  overscroll-behavior: contain;
}
.player::backdrop {
  background: rgba(17, 17, 17, 0.88);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.player__in {
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  gap: 16px;
  height: 100%;
  padding: 64px 16px calc(20px + env(safe-area-inset-bottom));
}
.player[open] .player__in { animation: pop 0.35s var(--ease); }
.player__frame {
  height: 100%;
  max-height: 100%;
  aspect-ratio: 9 / 16;
  max-width: 100%;
  min-height: 0;
}
.player__video {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  background: #000;
  object-fit: contain;
}
.player__meta { width: min(100%, 420px); }
.player__ep { display: none; }
.player__title { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.player__blurb { display: none; margin-top: 10px; color: #cfcfcf; }
.player__nav { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.player__nav .link { margin-left: auto; font-size: 15px; }
.player .iconbtn { color: var(--paper); border-color: rgba(255, 255, 255, 0.35); }
.player .iconbtn:hover { border-color: var(--paper); background: rgba(255, 255, 255, 0.08); }
.player__close {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top));
  right: 12px;
}
@media (min-width: 900px) {
  .player__in {
    grid-template-columns: auto 340px;
    grid-template-rows: 1fr;
    align-items: center;
    justify-content: center;
    gap: 48px;
    padding: 40px;
  }
  .player__frame { height: min(86vh, 900px); }
  .player__ep { display: inline-flex; margin-bottom: 18px; color: var(--paper); }
  .player__title { font-size: 34px; letter-spacing: -0.035em; line-height: 1.05; }
  .player__blurb { display: block; font-size: 17px; }
  .player__nav { margin-top: 28px; }
}

/* ---------- Motion ---------- */

.rise { animation: rise 0.9s var(--ease) both; animation-delay: calc(var(--d, 0) * 90ms + 80ms); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes pop { from { opacity: 0; transform: scale(0.97); } }

.wires { clip-path: inset(0 0 0 0); animation: draw 1.6s 0.5s var(--ease) both; }
@keyframes draw { from { clip-path: inset(0 100% 0 0); } }

.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
