:root {
  --header-h: 4.5rem;
  color-scheme: light;
  --ink: #172630;
  --sea: #2d91bd;
  --mint: #d8ead8;
  --paper: #e7eef2;
  --sun: #67ad3f;
  --coral: #3191b7;
  --sky: #c8dce6;
  --line: #253b46;
  --muted: #5d707b;
  --white: #f7faf9;
  --shadow: 7px 8px 0 #253b46;
  --hero-frame: #1d2a33;
  --soft: #eef6f8;
  --button-text: #09151b;
  --chip: #ffffff;
  --danger: #ffd0ca;
  --ad: #dcebf2;
  --code: #182a34;
  --code-text: #f3fbff;
  --glow: #a7dfff66;
  --dot: #277fa51c;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #eef6fa;
  --sea: #64c5ef;
  --mint: #273e32;
  --paper: #10171d;
  --sun: #7ed65a;
  --coral: #53b7e3;
  --sky: #22313a;
  --line: #3b5563;
  --muted: #a5b7c1;
  --white: #1b2830;
  --shadow: 7px 8px 0 #081016;
  --hero-frame: #0d151b;
  --soft: #162128;
  --button-text: #081016;
  --chip: #16232b;
  --danger: #63372f;
  --ad: #162533;
  --code: #071017;
  --code-text: #e8f8ff;
  --glow: #4ec8ff44;
  --dot: #53b7e326;
}

@media (prefers-color-scheme:dark) {
  :root[data-theme="system"] {
    color-scheme: dark;
    --ink: #eef6fa;
    --sea: #64c5ef;
    --mint: #273e32;
    --paper: #10171d;
    --sun: #7ed65a;
    --coral: #53b7e3;
    --sky: #22313a;
    --line: #3b5563;
    --muted: #a5b7c1;
    --white: #1b2830;
    --shadow: 7px 8px 0 #081016;
    --hero-frame: #0d151b;
    --soft: #162128;
    --button-text: #081016;
    --chip: #16232b;
    --danger: #63372f;
    --ad: #162533;
    --code: #071017;
    --code-text: #e8f8ff;
    --glow: #4ec8ff44;
    --dot: #53b7e326;
  }
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  color: var(--ink);
  font: 16px/1.5 ui-rounded, "Segoe UI", system-ui, sans-serif;
  background: var(--paper);
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 19px 19px
}

button,
input,
select {
  font: inherit
}

button {
  cursor: pointer
}

html {
  scroll-padding-top: var(--header-h)
}

.app {
  min-height: 100dvh;
  display: flex;
  flex-direction: column
}

body.in-lesson {
  overflow: hidden;
}

body.in-lesson .site-header {
  position: relative;
  flex: 0 0 auto;
}

body.in-lesson .app {
  height: 100dvh;
  overflow: hidden;
}

body.in-lesson main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 55px);
  border-bottom: 3px solid var(--line);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px)
}

/* ANNOUNCEMENT BANNER STYLES - comment out this block and the matching HTML block to remove event announcements. */
.event-ticker {
  border-bottom: 3px solid var(--line);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  white-space: nowrap;
  box-shadow: 0 3px 0 color-mix(in srgb, var(--line) 70%, transparent);
}

.event-ticker-track {
  display: flex;
  width: max-content;
  animation: tickerScroll 28s linear infinite;
}

.event-ticker:hover .event-ticker-track,
.event-ticker:focus-within .event-ticker-track {
  animation-play-state: paused;
}

.event-ticker-group {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 8px 22px;
  font-weight: 900;
  letter-spacing: .01em;
}

.event-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.event-ticker-badge {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 2px 9px;
  background: var(--sun);
  color: var(--button-text);
  box-shadow: 2px 2px 0 var(--line);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

@media (prefers-reduced-motion: reduce) {
  .event-ticker-track {
    animation: none;
  }
}

@keyframes tickerScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}


.brand {
  font-weight: 950;
  font-size: 1.3rem;
  letter-spacing: -.04em;
  white-space: nowrap;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  padding: 0;
  cursor: pointer
}

.brand span {
  color: var(--coral)
}

.nav {
  display: flex;
  gap: 8px;
  margin-left: auto
}

.nav button {
  border: 0;
  background: transparent;
  font-weight: 850;
  color: var(--ink);
  padding: 8px
}

.theme-select {
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 7px 9px;
  background: var(--chip);
  color: var(--ink);
  font-weight: 850
}

.identity-pill {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px 5px 5px;
  background: var(--mint);
  font-family: Georgia, serif;
  font-weight: 900;
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--line);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
  user-select: none
}

.identity-pill:hover,
.identity-pill:focus-visible {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--line);
  filter: saturate(1.04)
}

.identity-pill:active {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--line)
}

.avatar-btn {
  width: 38px;
  height: 38px;
  border: 2px solid var(--line);
  border-radius: 50%;
  padding: 0;
  overflow: hidden;
  background: var(--sky);
  display: grid;
  place-items: center;
  box-shadow: 1px 1px 0 var(--line)
}

.avatar-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.page {
  max-width: 1240px;
  margin: auto;
  padding: 30px clamp(18px, 4vw, 46px) 70px
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .76rem;
  font-weight: 950;
  color: var(--sea)
}

h1,
h2,
h3 {
  font-family: Georgia, serif;
  letter-spacing: -.035em
}

h1 {
  font-size: clamp(2.35rem, 5.7vw, 5rem);
  line-height: .92;
  margin: .2em 0
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.6rem);
  line-height: 1.05
}

.hero {
  display: grid;
  grid-template-columns: minmax(340px, .78fr) minmax(520px, 1.22fr);
  gap: 0;
  align-items: center;
  padding: 8px 0 18px
}

.hero-copy,
.sketch,
.panel,
.path,
.lesson-tile,
.stage-card {
  border: 3px solid var(--line);
  background: var(--white);
  border-radius: 20px 14px 25px 12px
}

.hero-copy {
  position: relative;
  z-index: 2;
  min-height: clamp(470px, 44vw, 535px);
  padding: clamp(30px, 4.5vw, 56px);
  box-shadow: var(--shadow);
  background: linear-gradient(145deg, var(--white) 0%, var(--soft) 68%, var(--sky) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center
}

.hero-copy p {
  font-size: 1.12rem;
  max-width: 48ch
}

.sketch {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(390px, 36vw, 455px);
  margin-left: -18px;
  background: var(--hero-frame);
  padding: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotate(.25deg);
  border-radius: 24px
}

.sketch img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: clamp(370px, 34vw, 435px);
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 16px;
  filter: saturate(.98) contrast(1.03);
  box-shadow: 0 0 40px var(--glow)
}

.btn {
  border: 3px solid var(--line);
  background: var(--sun);
  color: var(--button-text);
  font-weight: 950;
  padding: 12px 18px;
  border-radius: 13px 9px 15px 10px;
  box-shadow: 4px 4px 0 var(--line);
  text-decoration: none;
  display: inline-block
}

.btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--line)
}

.btn:disabled {
  opacity: .55;
  cursor: not-allowed
}

.btn.alt {
  background: var(--chip);
  color: var(--ink)
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-top: 52px
}

.section-head p {
  max-width: 52ch;
  color: var(--muted)
}

.paths {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 14px 0 20px
}

.filter-chip {
  border: 2px solid var(--line);
  background: var(--chip);
  color: var(--ink);
  font-weight: 900;
  padding: 8px 13px;
  border-radius: 999px;
  box-shadow: 2px 2px 0 var(--line)
}

.filter-chip.active {
  background: var(--sun);
  color: var(--button-text)
}

.searchbox {
  width: 100%;
  border: 3px solid var(--line);
  background: var(--chip);
  color: var(--ink);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 1.05rem;
  box-shadow: 4px 4px 0 var(--line);
  margin: 9px 0 6px
}

.resultsline {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  margin: 10px 0 16px;
  color: var(--muted)
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px
}

.lesson-tile {
  padding: 21px;
  display: flex;
  flex-direction: column;
  min-height: 220px
}

.lesson-tile .icon {
  font-size: 2rem
}

.lesson-tile p {
  color: var(--muted);
  flex: 1
}

.meter {
  height: 9px;
  background: color-mix(in srgb, var(--muted) 23%, transparent);
  border: 2px solid var(--line);
  border-radius: 10px;
  overflow: hidden
}

.meter i {
  display: block;
  height: 100%;
  background: var(--sun)
}

.done-tag {
  color: var(--sun);
  font-weight: 950
}

.panel {
  padding: 24px;
  margin-top: 35px
}

.frip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  align-items: center
}

.frip-name {
  background: var(--ink);
  color: var(--paper);
  padding: 25px;
  border-radius: 14px;
  text-align: center
}

.frip-name strong {
  font: 900 clamp(2rem, 5vw, 4rem) Georgia, serif
}

.tiny {
  font-size: .82rem;
  color: var(--muted)
}

.stage {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: 20px 25px 28px;
  overflow: auto;
  background: linear-gradient(var(--sky), var(--paper))
}

.stage-wrap {
  width: min(760px, 100%);
  min-height: calc(100% - 0px);
  display: flex;
  flex-direction: column;
  gap: 0
}

.stage-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px
}

.stage-progress {
  height: 14px;
  flex: 1;
  border: 2px solid var(--line);
  border-radius: 20px;
  background: var(--chip);
  overflow: hidden
}

.stage-progress i {
  display: block;
  height: 100%;
  background: var(--sun);
  transition: .35s
}

.stage-card {
  min-height: 570px;
  padding: clamp(25px, 5vw, 55px);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column
}

.stage-card h1 {
  font-size: clamp(2.2rem, 6vw, 4rem)
}

.fill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 18px 0 8px
}

.fill-input {
  flex: 1 1 16rem;
  min-width: 12rem;
  border: 3px solid var(--line);
  border-radius: 14px;
  background: var(--chip);
  color: var(--ink);
  padding: 12px 14px;
  box-shadow: 4px 5px 0 var(--line)
}

.fill-input:focus {
  outline: 3px solid var(--sea);
  outline-offset: 2px
}

.fill-input.good {
  background: color-mix(in srgb, var(--sun) 28%, var(--chip));
}

.fill-input.bad {
  background: var(--danger);
}

.card-art {
  min-height: 215px;
  background: var(--sky);
  border: 3px dashed var(--line);
  border-radius: 50% 44% 48% 42%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 25px;
  margin: 15px 0
}

.stage-actions {
  margin-top: auto;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center
}

.options {
  display: grid;
  gap: 11px
}

.option {
  padding: 14px;
  text-align: left;
  border: 2px solid var(--line);
  border-radius: 11px;
  background: var(--chip);
  color: var(--ink);
  font-weight: 800
}

.option.good {
  background: var(--mint)
}

.option.bad {
  background: var(--danger)
}

.feedback {
  font-weight: 900;
  min-height: 28px
}

.code {
  background: var(--code);
  color: var(--code-text);
  padding: 18px;
  border-radius: 12px;
  font: 1rem/1.7 ui-monospace, Consolas, monospace
}


.stage-card.hero-lesson-card {
  position: relative;
  flex: 1 1 auto;
  min-height: min(36rem, calc(100dvh - var(--header-h) - 7.5rem));
  padding: 0;
  overflow: hidden;
  background: var(--hero-frame);
  color: #fff;
}
.lesson-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
  animation: heroImageBreathe 7s ease-in-out infinite alternate;
}
.lesson-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7,16,23,.90) 0%, rgba(7,16,23,.68) 42%, rgba(7,16,23,.10) 100%), linear-gradient(0deg, rgba(7,16,23,.84) 0%, transparent 38%);
  animation: heroFadeIn 1s ease both;
}
.lesson-hero-copy {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  padding: clamp(28px, 6vw, 62px);
  max-width: 740px;
}
.lesson-hero-copy h1 {
  color: #fff;
  text-shadow: 0 3px 18px rgba(0,0,0,.45);
  margin: 0;
}
.lesson-hero-copy p {
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  margin: 0;
  color: #eef6fa;
  max-width: 48ch;
}
.pitch-points {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 8px;
}
.pitch-pill {
  border: 2px solid rgba(255,255,255,.55);
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  color: #fff;
  padding: 7px 11px;
  font-weight: 900;
  backdrop-filter: blur(8px);
}
@keyframes heroFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes heroImageBreathe {
  from { transform: scale(1); }
  to { transform: scale(1.035); }
}
.stage-card.terminal-card {
  flex: 1 1 auto;
  min-height: min(36rem, calc(100dvh - var(--header-h) - 7.5rem));
  padding: 0;
  overflow: hidden;
  background: #071017;
  color: #e8f8ff;
}
.terminal-shell {
  min-height: min(36rem, calc(100dvh - var(--header-h) - 7.5rem));
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: radial-gradient(circle at top left, rgba(83,183,227,.18), transparent 35%), #071017;
}
.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 17px;
  border-bottom: 2px solid rgba(232,248,255,.16);
  background: rgba(255,255,255,.05);
}
.terminal-dots {
  display: flex;
  gap: 7px;
}
.terminal-dots i {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: block;
  background: var(--sun);
  box-shadow: 0 0 14px rgba(126,214,90,.45);
}
.terminal-dots i:nth-child(2) { background: var(--coral); }
.terminal-dots i:nth-child(3) { background: #f4d35e; }
.terminal-output {
  padding: 20px;
  overflow: auto;
  font: .98rem/1.55 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
  cursor: text;
}
.terminal-line.cmd { color: #7ed65a; }
.terminal-line.out { color: #e8f8ff; }
.terminal-line.hint { color: #8fd8ff; }
.terminal-prompt-line {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  color: #fff;
}
.terminal-prompt-line input {
  border: 0;
  outline: 0;
  background: transparent;
  color: #e8f8ff;
  font: inherit;
  min-width: 0;
  caret-color: var(--sun);
}
.terminal-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 10px 16px 14px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  border-top: 1px solid rgba(232,248,255,.12);
  background: rgba(255,255,255,.045);
}
.terminal-chip {
  flex: 0 0 auto;
  border: 1px solid rgba(232,248,255,.35);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #e8f8ff;
  padding: 6px 10px;
  font: 800 .82rem ui-rounded, "Segoe UI", system-ui, sans-serif;
  white-space: nowrap;
}
.terminal-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 16px;
  background: rgba(255,255,255,.045);
}

.adcard {
  background: var(--ad);
  position: relative;
  overflow: hidden
}

.adcard:before {
  content: "SPONSOR";
  position: absolute;
  right: -30px;
  top: 25px;
  transform: rotate(35deg);
  background: var(--coral);
  color: #fff;
  padding: 5px 40px;
  font-weight: 950;
  letter-spacing: .12em
}

.ad-hero {
  flex: 1;
  display: grid;
  place-items: center;
  border: 3px dashed var(--line);
  border-radius: 18px;
  margin: 18px 0;
  background: color-mix(in srgb, var(--white) 62%, transparent);
  text-align: center;
  padding: 30px
}

.recommend {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: center;
  text-align: left;
  max-width: 560px;
  margin: 20px auto 0;
  padding: 14px 16px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--white)
}

.recommend-icon {
  width: 54px;
  height: 54px;
  border: 2px solid var(--line);
  border-radius: 50% 44% 48% 43%;
  display: grid;
  place-items: center;
  background: var(--sun);
  color: var(--button-text);
  font-size: 1.6rem
}

.recommend strong {
  display: block
}

.recommend p {
  margin: 2px 0 0;
  color: var(--muted)
}

.reason-list {
  display: grid;
  gap: 9px;
  margin-top: 7px
}

.reason-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  align-items: start
}

.reason-item+.reason-item {
  padding-top: 9px;
  border-top: 1px dashed color-mix(in srgb, var(--muted) 55%, transparent)
}

.reason-mini {
  width: 25px;
  height: 25px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--mint);
  font-size: .78rem;
  font-weight: 950
}

.ad-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 15px
}

.reveal {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  justify-content: center
}

.oldname {
  font: 700 1.6rem Georgia, serif;
  opacity: .55
}

.morph {
  font: 950 clamp(3rem, 10vw, 7rem)/1 Georgia, serif;
  color: var(--sun);
  margin: 25px 0;
  perspective: 500px
}

.morph.animate {
  animation: transform 1.25s cubic-bezier(.2, .8, .2, 1)
}

.bits {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap
}

.bit {
  padding: 6px 10px;
  border: 1px solid color-mix(in srgb, var(--paper) 40%, transparent);
  border-radius: 20px
}

.bit.on {
  background: var(--coral);
  color: #fff
}

.restore input {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: 9px;
  background: var(--chip);
  color: var(--ink)
}

.site-footer {
  border-top: 3px solid var(--line);
  background: color-mix(in srgb, var(--white) 82%, var(--paper));
  padding: 28px clamp(18px, 4vw, 55px);
  margin-top: auto
}

.footer-inner {
  max-width: 1240px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center
}

.footer-brand {
  font-weight: 950;
  font-size: 1.15rem;
  letter-spacing: -.04em
}

.footer-brand span {
  color: var(--coral)
}

.footer-credit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.footer-credit p {
  margin: 0
}

.social-links {
  display: flex;
  gap: 8px;
  align-items: center
}

.social-links a {
  text-decoration: none;
}

.linkedin-mark,
.youtube-mark {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  color: #fff;
  font: 900 13px/1 ui-rounded, "Segoe UI", system-ui, sans-serif;
  transition: background .12s ease;
}

.linkedin-mark {
  background: #0a66c2;
}

.youtube-mark {
  background: #ff0000;
  font-size: 12px;
}

.social-links a:hover .linkedin-mark,
.social-links a:hover .youtube-mark {
  transform: scale(1.08);
}

.site-footer p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .92rem
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px
}

.footer-nav button {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 850;
  padding: 8px 10px;
  border-radius: 999px
}

.footer-nav button:hover {
  background: var(--mint)
}

.identity-pill {
  cursor: pointer
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: color-mix(in srgb, var(--ink) 34%, transparent);
  backdrop-filter: blur(7px)
}

.profile-modal {
  width: min(980px, 100%);
  max-height: none;
  overflow: auto;
  border: 3px solid var(--line);
  border-radius: 24px 16px 28px 18px;
  background: linear-gradient(145deg, var(--white), var(--soft) 72%, var(--sky));
  box-shadow: 10px 12px 0 var(--line);
  padding: clamp(22px, 4vw, 38px)
}

.profile-modal::-webkit-scrollbar {
  display: none;
}





.profile-title-row {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 16px;
  align-items: center
}

.profile-title-avatar {
  width: 72px;
  height: 72px;
  border: 3px solid var(--line);
  border-radius: 50%;
  overflow: hidden;
  background: var(--sky);
  box-shadow: 4px 4px 0 var(--line)
}

.profile-title-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.profile-title-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 8px
}

.profile-title-copy {
  padding: 9px 13px;
  font-size: .95rem
}

.focus-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px
}

.focus-chip {
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  padding: 7px 11px;
  font-weight: 900;
  box-shadow: 2px 2px 0 var(--line)
}

.focus-chip .tiny {
  margin-left: 4px
}

.profile-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 18px;
  margin-bottom: 18px
}

.profile-close {
  width: 42px;
  height: 42px;
  border: 3px solid var(--line);
  border-radius: 50%;
  background: var(--chip);
  color: var(--ink);
  font-weight: 950;
  box-shadow: 3px 3px 0 var(--line);
  transition: transform .12s ease, box-shadow .12s ease
}

.profile-close:hover,
.profile-close:focus-visible {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--line)
}

.profile-close:active {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--line)
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(250px, .78fr) minmax(330px, 1.22fr);
  gap: 20px;
  align-items: start
}

.profile-card {
  border: 3px solid var(--line);
  border-radius: 18px 12px 21px 14px;
  background: var(--chip);
  padding: 20px;
  box-shadow: 4px 4px 0 var(--line)
}

.profile-nameplate {
  background: var(--ink);
  color: var(--paper);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  margin-bottom: 15px
}

.profile-nameplate strong {
  display: block;
  font: 950 clamp(2rem, 5vw, 3.6rem) Georgia, serif;
  color: var(--sun);
  line-height: 1
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 14px 0
}

.profile-stat {
  border: 2px solid var(--line);
  background: var(--white);
  border-radius: 14px;
  padding: 10px;
  text-align: center
}

.profile-stat b {
  display: block;
  font-size: 1.35rem
}

.restore-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center
}

.restore-row input {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: 9px;
  background: var(--chip);
  color: var(--ink)
}

.radar-wrap {
  display: grid;
  place-items: center;
  margin: 8px 0 6px
}

.radar-svg {
  width: min(440px, 100%);
  height: auto;
  overflow: visible
}

.radar-grid {
  fill: none;
  stroke: color-mix(in srgb, var(--muted) 45%, transparent);
  stroke-width: 1.5
}

.radar-axis {
  stroke: color-mix(in srgb, var(--muted) 55%, transparent);
  stroke-width: 1.5;
  stroke-dasharray: 4 5
}

.radar-area {
  fill: color-mix(in srgb, var(--sun) 48%, transparent);
  stroke: var(--line);
  stroke-width: 3
}

.radar-dot {
  fill: var(--sun);
  stroke: var(--line);
  stroke-width: 2
}

.radar-label {
  font: 900 12px ui-rounded, "Segoe UI", system-ui, sans-serif;
  fill: var(--ink)
}

.focus-list {
  display: grid;
  gap: 9px;
  margin-top: 12px
}

.focus-row {
  display: grid;
  grid-template-columns: 105px 1fr 58px;
  gap: 10px;
  align-items: center
}

.focus-meter {
  height: 10px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--muted) 18%, transparent);
  overflow: hidden
}

.focus-meter i {
  display: block;
  height: 100%;
  background: var(--sun)
}


.info-modal {
  width: min(740px, 100%);
}

.info-body {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.info-callout {
  border: 2px dashed var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--mint) 65%, transparent);
  padding: 15px 17px;
}

.info-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.info-list li+li {
  margin-top: 6px;
}

.restore-modal {
  width: min(520px, 100%);
  border: 3px solid var(--line);
  border-radius: 22px 14px 25px 16px;
  background: linear-gradient(145deg, var(--white), var(--soft));
  box-shadow: 8px 9px 0 var(--line);
  padding: clamp(20px, 4vw, 30px)
}

.restore-modal input {
  width: 100%;
  padding: 13px 14px;
  border: 2px solid var(--line);
  border-radius: 11px;
  background: var(--chip);
  color: var(--ink);
  margin: 10px 0 12px
}

.restore-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center
}

.restore-error {
  min-height: 1.25em;
  margin: 0 0 12px;
  color: var(--muted)
}

@media(max-width:640px) {
  .modal-backdrop {
    padding: 10px;
    align-items: start
  }

  .profile-modal {
    max-height: 94vh;
    padding: 19px
  }

  .profile-top {
    align-items: center
  }

  .profile-stats {
    grid-template-columns: 1fr
  }

  .restore-row {
    grid-template-columns: 1fr
  }

  .focus-row {
    grid-template-columns: 1fr
  }

  .footer-inner {
    grid-template-columns: 1fr
  }

  .footer-nav {
    justify-content: flex-start
  }
}

.hidden {
  display: none !important
}

@keyframes transform {
  0% {
    opacity: 0;
    filter: blur(13px);
    transform: rotateX(80deg) scale(.65);
    letter-spacing: .3em
  }

  55% {
    opacity: 1;
    filter: blur(0);
    transform: rotateX(-12deg) scale(1.12)
  }

  100% {
    transform: rotateX(0) scale(1);
    letter-spacing: normal
  }
}

@media(max-width:950px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 0
  }

  .hero-copy {
    order: 1;
    min-height: auto
  }

  .sketch {
    order: 2;
    min-height: auto;
    margin-left: 0;
    transform: none
  }

  .sketch img {
    height: auto;
    min-height: 0;
    aspect-ratio: 3/2;
    object-fit: cover
  }

  .frip {
    grid-template-columns: 1fr
  }

  .grid {
    grid-template-columns: 1fr 1fr
  }

  .nav {
    display: none
  }

  .identity-pill {
    margin-left: auto
  }

  .stage-card {
    min-height: calc(100dvh - var(--header-h) - 5.5rem)
  }

  .profile-grid {
    grid-template-columns: 1fr
  }

  .footer-inner {
    grid-template-columns: 1fr
  }

  .footer-nav {
    justify-content: flex-start
  }
}

@media(max-width:640px) {
  .grid {
    grid-template-columns: 1fr
  }

  .topbar {
    gap: 8px;
    flex-wrap: wrap
  }

  .brand {
    font-size: 1rem
  }


  .identity-pill {
    font-size: .82rem
  }

  .page {
    padding-top: 18px
  }

  .hero-copy {
    padding: 24px 19px
  }

  .stage {
    padding: 14px
  }

  .stage-card {
    padding: 24px 19px
  }

  .stage-actions {
    flex-wrap: wrap
  }

  .stage-actions .btn {
    flex: 1
  }
}

/* --- added for a11y, lesson depth, and extracted layout --- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  padding: 8px 12px;
  background: var(--sun);
  color: var(--button-text);
  font-weight: 950;
  border: 3px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--line)
}

.skip-link:focus {
  top: 12px
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0
}

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

.identity-open {
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: pointer;
  padding: 0;
  text-align: left
}

.draft-chip {
  display: inline-block;
  margin: 0 0 8px;
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 2px 9px;
  background: var(--sky);
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase
}

.lesson-points {
  margin: 12px 0 0;
  padding-left: 1.2rem
}

.lesson-points li + li {
  margin-top: 8px
}

.field-note,
.objective-box {
  margin-top: 14px;
  border: 2px dashed var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--mint) 55%, transparent);
  padding: 12px 14px;
  font-size: .95rem
}

.field-note strong,
.objective-box strong {
  display: block;
  margin-bottom: 4px
}

.quiz-why {
  margin-top: 10px;
  font-weight: 750;
  color: var(--muted)
}

.source-link {
  display: inline-block;
  margin-top: 10px;
  font-weight: 850;
  color: var(--sea)
}

.meter > span,
.stage-progress > span,
.focus-meter > span {
  display: block;
  height: 100%;
  background: var(--sun);
  transition: width .35s
}

.terminal-dots span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: block;
  background: var(--sun);
  box-shadow: 0 0 14px rgba(126, 214, 90, .45)
}

.terminal-dots span:nth-child(2) {
  background: var(--coral)
}

.terminal-dots span:nth-child(3) {
  background: #f4d35e
}

.restore-label {
  display: block;
  font-weight: 900;
  margin-top: 8px
}

@media (prefers-reduced-motion: reduce) {
  .lesson-hero-img {
    animation: none
  }

  .morph.animate {
    animation: none
  }
}

/* --- Compression field lab + course ad (keep the existing dark terminal language) --- */
.code {
  margin-top: 16px
}

.stage:has(.terminal-card) {
  align-items: stretch;
  overflow: hidden
}

.stage:has(.terminal-card) .stage-wrap {
  width: min(1120px, 100%);
  height: 100%;
  min-height: 0
}

.stage:has(.terminal-card) .stage-card.terminal-card {
  flex: 1 1 auto;
  min-height: 0;
  height: auto
}

.stage-card.terminal-card {
  display: flex;
  flex-direction: column
}

.terminal-shell {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr) auto
}

.terminal-lab {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(15.5rem, 18.5rem) minmax(0, 1fr);
  overflow: hidden
}

.lab-tasks {
  min-height: 0;
  overflow: auto;
  padding: 16px 14px 14px;
  border-right: 3px solid rgba(232, 248, 255, .16);
  background: rgba(255, 255, 255, .04);
  color: #e8f8ff
}

.lab-tasks .eyebrow {
  color: #8fd8ff
}

.lab-tasks-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  margin: 6px 0 12px
}

.lab-tasks-head .tiny {
  margin: 0;
  color: #a5b7c1
}

.lab-count {
  flex: 0 0 auto;
  border: 2px solid #7ed65a;
  border-radius: 999px;
  padding: 2px 9px;
  font-weight: 950;
  font-size: .78rem;
  color: #7ed65a;
  box-shadow: 2px 2px 0 #081016
}

.lab-task-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px
}

.lab-task {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  border: 2px solid rgba(232, 248, 255, .22);
  border-radius: 12px 8px 14px 10px;
  padding: 10px 11px;
  background: rgba(7, 16, 23, .5);
  box-shadow: 3px 3px 0 #081016
}

.lab-task.done {
  border-color: #7ed65a;
  box-shadow: 3px 3px 0 #7ed65a
}

.lab-check {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border: 2px solid #7ed65a;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: transparent;
  color: #071017;
  font-weight: 950;
  line-height: 1
}

.lab-task.done .lab-check {
  background: #7ed65a;
  animation: labSnap .28s cubic-bezier(.2, 1.4, .3, 1)
}

.lab-task.done .lab-check::after {
  content: "✓"
}

.lab-task-label {
  font-weight: 850;
  line-height: 1.35
}

.lab-task-num {
  display: inline-block;
  margin-right: 7px;
  color: #8fd8ff;
  font-weight: 950
}

.lab-task.done .lab-task-label {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  color: #a5b7c1
}

.lab-task-status {
  margin-top: 4px;
  min-height: 1.1em;
  color: #7ed65a;
  font-size: .82rem;
  font-weight: 800
}

@keyframes labSnap {
  0% { transform: scale(.4) }
  70% { transform: scale(1.18) }
  100% { transform: scale(1) }
}

.terminal-main {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden
}

.terminal-output {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto
}

.terminal-prompt-line {
  flex: 0 0 auto;
  margin: 0;
  padding: 10px 20px 14px;
  border-top: 1px solid rgba(232, 248, 255, .12);
  background: rgba(0, 0, 0, .22);
  color: #7ed65a
}

.terminal-prompt-line input {
  caret-color: #7ed65a
}

.terminal-line.success {
  margin-top: 10px;
  color: #7ed65a;
  font-weight: 900;
  letter-spacing: .04em
}

.matrix-rain {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 1;
  transition: opacity .38s ease
}

.matrix-rain.is-fading {
  opacity: 0
}

.lab-success {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 58px;
  z-index: 5;
  pointer-events: none;
  border: 3px solid #7ed65a;
  border-radius: 14px 10px 16px 12px;
  background: rgba(7, 16, 23, .92);
  box-shadow: 5px 6px 0 #081016;
  padding: 14px 16px;
  color: #e8f8ff;
  transform: translateY(8px);
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease
}

.lab-success.in {
  opacity: 1;
  transform: none
}

.lab-success strong {
  display: block;
  color: #7ed65a;
  font: 950 1.05rem ui-rounded, "Segoe UI", system-ui, sans-serif;
  letter-spacing: .12em
}

.adcard.course-ad h1 {
  font-size: clamp(1.85rem, 4.6vw, 3.15rem);
  line-height: 1.05
}

.adcard.course-ad h2 {
  margin: .15em 0 0;
  font-size: clamp(1.2rem, 2vw, 1.6rem)
}

.ad-hero.course-card {
  border-style: solid;
  text-align: left;
  place-items: stretch;
  padding: 22px 24px
}

.ad-hero.course-card > div {
  width: 100%
}

.course-author {
  margin: 0 0 4px;
  font-weight: 850;
  color: var(--muted)
}

.course-byline {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .76rem;
  font-weight: 950;
  color: var(--sea);
  margin-bottom: 4px
}

.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 4px
}

.course-meta span {
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 900;
  font-size: .82rem;
  background: var(--chip);
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--line)
}

.adcard.course-ad .recommend {
  margin-left: 0;
  margin-right: 0;
  max-width: none
}

.adcard.course-ad .ad-links {
  justify-content: flex-start
}

@media (max-width: 800px) {
  .terminal-lab {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr)
  }

  .lab-tasks {
    border-right: 0;
    border-bottom: 3px solid rgba(232, 248, 255, .16);
    padding: 12px 14px 10px
  }

  .lab-task-list {
    grid-template-columns: 1fr;
    gap: 8px
  }

  .lab-success {
    bottom: 54px;
    left: 12px;
    right: 12px
  }
}

@media (prefers-reduced-motion: reduce) {
  .lab-task.done .lab-check {
    animation: none
  }

  .matrix-rain,
  .matrix-rain.is-fading {
    display: none !important;
    opacity: 0
  }

  .lab-success {
    transition: none;
    transform: none
  }
}
