/* IPN AI Youth Summit — Build with AI workshop companion.
   Warm editorial system drawn from the Module 1 deck: cream paper,
   terracotta, deep teal, Fraunces serif + Inter. The locked
   "What we'll build" page switches to a dark retro vault. */
:root {
  --paper: #f8f5ef;
  --paper-2: #f0e9dd;
  --card: #fffdf9;
  --ink: #2a221c;
  --ink-soft: #5f544a;
  --rust: #9e3b28;
  --rust-deep: #82301f;
  --rust-tint: #f3e1d8;
  --teal: #1f4f47;
  --teal-soft: #2f665c;
  --gold: #c98a3c;
  --line: #e2d7c6;
  --line-soft: #ece4d6;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --pixel: "VT323", ui-monospace, Menlo, Consolas, monospace;
  --sidebar: 244px;
  --shadow-sm: 0 1px 2px rgba(42, 34, 28, 0.04);
  --shadow: 0 18px 40px -24px rgba(42, 34, 28, 0.4);
  --shadow-lg: 0 30px 60px -30px rgba(42, 34, 28, 0.5);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
[hidden] {
  display: none !important;
}
button,
input {
  font: inherit;
}
a {
  color: inherit;
  text-underline-offset: 3px;
}
button,
a,
input,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
a,
summary {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  background: none;
  border: 0;
}
:focus-visible {
  outline: 2.5px solid var(--teal);
  outline-offset: 3px;
  border-radius: 3px;
}
::selection {
  background: var(--rust);
  color: var(--paper);
}
h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
}
p {
  margin: 0;
}
img {
  max-width: 100%;
  display: block;
}
code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--rust-tint);
  color: var(--rust-deep);
  padding: 2px 6px;
  border-radius: 5px;
  overflow-wrap: anywhere;
}
em {
  font-style: italic;
}
.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;
}

.icon-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eyebrow {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rust);
  flex: none;
}
.eyebrow.light {
  color: #e7c9a8;
}
.eyebrow.light::before {
  background: #e7c9a8;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: var(--rust);
  color: var(--paper);
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
}

/* Sidebar */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  background: var(--card);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 30px 22px 24px;
  z-index: 30;
}
.summit-brand {
  display: block;
  text-decoration: none;
}
.summit-brand img {
  width: 174px;
  height: auto;
}
.sidebar-caption {
  font-size: 12px;
  color: var(--ink-soft);
  margin: 18px 2px 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  font-style: italic;
  font-family: var(--display);
}
.main-nav {
  display: grid;
  gap: 3px;
}
.main-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 11px 13px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
  transition:
    background 0.15s,
    color 0.15s;
}
.main-nav a .icon {
  width: 18px;
  height: 18px;
  opacity: 0.75;
}
.main-nav a:hover {
  background: var(--paper-2);
  color: var(--ink);
}
.main-nav a[aria-current="page"] {
  background: var(--rust);
  color: var(--paper);
}
.main-nav a[aria-current="page"] .icon {
  opacity: 1;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 28px 2px 0;
  font-size: 13px;
}
.session-stamp {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
  font-weight: 600;
  margin-bottom: 12px;
}
.sidebar-bottom p {
  color: var(--ink-soft);
}
.sidebar-bottom strong {
  display: block;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  margin: 3px 0 2px;
}
.sidebar-room {
  color: var(--ink-soft);
  font-size: 12px;
}
.conference-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  color: var(--teal);
  font-weight: 500;
  font-size: 12px;
  text-decoration: none;
  min-height: 40px;
}
.conference-link .icon {
  width: 14px;
  height: 14px;
}
.conference-link:hover {
  color: var(--rust);
}

/* Workspace + top bar */
.workspace {
  margin-left: var(--sidebar);
  min-width: 0;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 44px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.breadcrumb {
  font-size: 13px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 10px;
}
.crumb-sep {
  color: var(--line);
}
#current-view {
  color: var(--ink);
  font-weight: 500;
}
.track-badge {
  font-size: 12px;
  font-weight: 500;
  color: var(--teal);
  border: 1px solid color-mix(in srgb, var(--teal) 30%, transparent);
  background: color-mix(in srgb, var(--teal) 6%, transparent);
  padding: 6px 12px;
  border-radius: 100px;
  white-space: nowrap;
}

main {
  max-width: 1140px;
  margin: 0 auto;
  padding: 40px 44px 64px;
  outline: none;
}
#main:focus {
  outline: none;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 13px 24px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 0.15s,
    background 0.15s,
    box-shadow 0.15s;
  border: 1px solid transparent;
}
.button .icon {
  width: 18px;
  height: 18px;
}
.button-solid {
  background: var(--rust);
  color: var(--paper);
  box-shadow: var(--shadow);
}
.button-solid:hover {
  background: var(--rust-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.button-quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.button-quiet:hover {
  border-color: var(--ink);
  background: var(--card);
}
.button-sm {
  min-height: 42px;
  padding: 10px 18px;
  font-size: 14px;
  margin: 6px 0 2px;
}
.button-sm .icon {
  width: 15px;
  height: 15px;
}

/* Welcome: hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(12px, 3vw, 40px) 0 8px;
}
.hero-copy {
  max-width: 40rem;
}
/* Let the ideas peek above the fold on laptop screens. */
.hero + .home-section {
  margin-top: clamp(64px, 7vw, 96px);
}
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 300px;
  max-width: 100%;
  aspect-ratio: 5 / 4;
  padding: 22px;
  border-radius: 20px;
  background:
    radial-gradient(120% 90% at 50% 8%, #2c231b 0%, transparent 62%), #16110d;
  border: 1px solid rgba(241, 233, 220, 0.12);
  box-shadow: var(--shadow-lg);
  color: #a8f0c6;
}
.hero-visual .ascii-solid {
  flex: 1;
  display: flex;
  align-items: center;
}
.ascii-solid {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(8px, 1.1vw, 13px);
  line-height: 1.04;
  letter-spacing: 0.5px;
  white-space: pre;
  color: #a8f0c6;
  text-shadow: 0 0 12px rgba(168, 240, 198, 0.4);
  -webkit-user-select: none;
  user-select: none;
}
.hero-visual-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #b3a593;
}
.hero-kicker {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 84px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.96;
}
.hero h1 em {
  color: var(--rust);
  font-weight: 600;
}
.hero-lede {
  margin-top: 28px;
  font-size: clamp(18px, 1.9vw, 22px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 44ch;
}
.hero-assure {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 26px;
  max-width: 54ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.hero-assure .icon {
  width: 18px;
  height: 18px;
  color: var(--rust);
  margin-top: 3px;
}
.hero-assure strong {
  color: var(--ink);
  font-weight: 600;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}
.hero-meta {
  margin-top: 22px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* Welcome: sections breathe on whitespace, not boxes */
.home-section {
  margin-top: clamp(88px, 11vw, 136px);
}
.section-head {
  margin-bottom: 36px;
  max-width: 680px;
}
.section-head .eyebrow {
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 500;
}
.section-head h2 em {
  color: var(--rust);
  font-weight: 600;
}
.section-lede {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 54ch;
}

/* Welcome: ideas */
.idea-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 52px 44px;
}
.idea-top {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin-bottom: 18px;
}
.idea-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--rust-tint);
  color: var(--rust);
}
.idea-icon .icon {
  width: 21px;
  height: 21px;
}
.idea-feature .idea-icon {
  background: var(--teal);
  color: var(--paper);
}
.idea-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}
.idea h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.idea p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 32ch;
}

/* Welcome: agenda timeline */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}
.timeline li {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--line-soft);
}
.timeline li:first-child {
  border-top: 0;
}
.tl-time {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rust);
  padding-top: 3px;
}
.tl-body {
  position: relative;
  padding-left: 26px;
}
.tl-body::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--rust);
  box-shadow: 0 0 0 4px var(--rust-tint);
}
.tl-body h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.tl-body p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 52ch;
}

/* Welcome: what you need */
.need-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.need-list li {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.need-list strong {
  display: block;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.need-list p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.needs .button {
  margin-top: 44px;
}

/* Welcome: crew */
.crew {
  scroll-margin-top: 24px;
}
.instructors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.instructor {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.instructor img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  border: 2px solid var(--card);
  box-shadow: 0 4px 14px rgba(42, 34, 28, 0.16);
}
.person-role {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
  font-weight: 600;
}
.instructor h3 {
  font-size: 21px;
  margin: 5px 0 3px;
}
.person-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 8px;
}
.person-bio {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.helpers {
  display: flex;
  align-items: baseline;
  gap: 16px 32px;
  flex-wrap: wrap;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
}
.helpers-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
  flex: none;
}
.helpers ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}
.helpers li strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}
.helpers li span {
  font-size: 12px;
  color: var(--ink-soft);
}

.track-note {
  margin-top: clamp(72px, 9vw, 112px);
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 70ch;
}
.track-note strong {
  color: var(--ink);
  font-weight: 600;
}

/* Page heads (inner views) */
.page-head {
  max-width: 720px;
  margin-bottom: 36px;
}
.page-head .eyebrow {
  margin-bottom: 16px;
}
.page-head h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.02;
}
.page-head h1 em {
  color: var(--rust);
  font-weight: 600;
}
.page-head p {
  margin-top: 18px;
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 60ch;
}

/* Reassurance banners */
.reassure {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 22px;
  background: var(--rust-tint);
  border: 1px solid color-mix(in srgb, var(--rust) 22%, transparent);
  border-radius: 14px;
  margin-bottom: 28px;
  color: var(--rust-deep);
}
.reassure .icon {
  width: 20px;
  height: 20px;
  color: var(--rust);
  flex: none;
  margin-top: 2px;
}
.reassure p {
  font-size: 14px;
  line-height: 1.6;
}
.reassure strong {
  font-weight: 600;
}
.reassure a {
  color: var(--rust-deep);
}
.reassure.calm {
  background: color-mix(in srgb, var(--teal) 8%, transparent);
  border-color: color-mix(in srgb, var(--teal) 22%, transparent);
  color: var(--teal);
}
.reassure.calm .icon {
  color: var(--teal);
}

/* Setup: before you start */
.setup-prep {
  margin: 0 0 40px;
}
.prep-title {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 14px;
}
.prep-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px 32px;
}
.prep-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.prep-list .icon {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  color: var(--teal);
  stroke-width: 2.2;
}
.setup-stuck {
  margin-top: 36px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 64ch;
}
.setup-stuck a {
  color: var(--rust);
  font-weight: 500;
}

/* Setup: platform bar */
.platform-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.platform-picker {
  display: inline-flex;
  gap: 4px;
  background: var(--paper-2);
  padding: 5px;
  border-radius: 100px;
  border: 1px solid var(--line-soft);
}
.platform-picker button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 9px 20px;
  border-radius: 100px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  transition:
    background 0.15s,
    color 0.15s;
}
.platform-picker button .platform-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.platform-picker button[aria-pressed="true"] {
  background: var(--card);
  color: var(--rust);
  box-shadow: var(--shadow-sm);
}
.progress-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}
.progress-copy {
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 500;
  white-space: nowrap;
}
.progress-copy b {
  color: var(--ink);
  font-weight: 600;
}
.progress-track {
  width: 132px;
  height: 6px;
  border-radius: 6px;
  background: var(--paper-2);
  overflow: hidden;
  border: 1px solid var(--line-soft);
}
.progress-fill {
  height: 100%;
  background: var(--rust);
  border-radius: 6px;
  transition: width 0.3s ease;
}

.all-ready {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  margin-bottom: 22px;
  background: color-mix(in srgb, var(--teal) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--teal) 26%, transparent);
  border-radius: 14px;
  color: var(--teal);
  font-size: 14.5px;
  font-weight: 500;
}
.all-ready .icon {
  width: 22px;
  height: 22px;
  flex: none;
}

/* Setup: the calm accordion */
.step-list {
  display: grid;
  gap: 12px;
}
.step-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  overflow: hidden;
  scroll-margin-top: 84px;
  transition:
    border-color 0.18s,
    box-shadow 0.18s;
}
.step-item.open {
  border-color: color-mix(in srgb, var(--rust) 34%, var(--line));
  box-shadow: var(--shadow);
}
.step-item.done {
  border-color: color-mix(in srgb, var(--teal) 30%, var(--line));
}
.step-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 20px 22px;
  text-align: left;
  color: inherit;
}
.step-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  background: var(--paper-2);
  color: var(--ink-soft);
  border: 1px solid var(--line);
  transition:
    background 0.18s,
    color 0.18s,
    border-color 0.18s;
}
.step-item.open .step-badge {
  background: var(--rust);
  color: var(--paper);
  border-color: var(--rust);
}
.step-item.done .step-badge {
  background: var(--teal);
  color: var(--paper);
  border-color: var(--teal);
}
.step-badge .icon {
  width: 19px;
  height: 19px;
  stroke-width: 2.4;
}
.step-badge .tick {
  display: none;
}
.step-item.done .step-badge .num {
  display: none;
}
.step-item.done .step-badge .tick {
  display: grid;
  place-items: center;
}
.step-done-flag {
  display: none;
}
.step-item.done .step-done-flag {
  display: inline-flex;
}
.step-item.done .step-time {
  display: none;
}
.step-lede {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.65;
  margin: 0 0 24px;
  max-width: 60ch;
}
.step-lede strong {
  color: var(--ink);
  font-weight: 600;
}
.step-headline {
  flex: 1;
  min-width: 0;
}
.step-headline strong {
  display: block;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.step-headline span {
  display: block;
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 2px;
}
.step-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}
.step-time {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}
.step-chevron {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--rust);
  background: var(--rust-tint);
  transition: transform 0.22s ease;
}
.step-chevron .icon {
  width: 17px;
  height: 17px;
  stroke-width: 2;
}
.step-item.open .step-chevron {
  transform: rotate(45deg);
}
.step-done-flag {
  font-size: 12px;
  color: var(--teal);
  font-weight: 600;
  align-items: center;
  gap: 5px;
}
.step-done-flag .icon {
  width: 15px;
  height: 15px;
  stroke-width: 2.4;
}
@media (max-width: 560px) {
  .step-time {
    display: none;
  }
}

.step-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}
.step-item.open .step-panel {
  grid-template-rows: 1fr;
}
.step-panel-inner {
  overflow: hidden;
  min-height: 0;
}
.step-body {
  padding: 4px 28px 26px;
  border-top: 1px solid var(--line-soft);
}
.step-body-pad {
  padding-top: 24px;
}

.instruction {
  margin-bottom: 32px;
}
.instruction:last-child {
  margin-bottom: 0;
}
.instruction h4 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: flex;
  gap: 11px;
  align-items: baseline;
  margin: 0 0 8px;
}
.instruction h4 .marker {
  font-size: 12px;
  font-weight: 700;
  color: var(--rust);
  font-family: var(--body);
  letter-spacing: 0.05em;
  flex: none;
  min-width: 18px;
}
.instruction p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.68;
  margin: 8px 0;
}
.instruction p strong {
  color: var(--ink);
  font-weight: 600;
}
.instruction a:not(.button) {
  color: var(--rust);
  font-weight: 500;
}

/* Commands: light and friendly. Copy, paste, press Enter. */
.command {
  border-radius: 12px;
  overflow: hidden;
  margin: 14px 0;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.command-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 5px 7px 5px 14px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line-soft);
}
.command-top span {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}
.copy-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 5px 12px;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--rust-deep);
  font-size: 12px;
  font-weight: 600;
  transition:
    border-color 0.15s,
    color 0.15s;
}
.copy-button .icon {
  width: 13px;
  height: 13px;
}
.copy-button:hover {
  border-color: var(--rust);
}
.copy-button.copied {
  color: var(--teal);
  border-color: color-mix(in srgb, var(--teal) 45%, transparent);
}
.command pre {
  margin: 0;
  padding: 14px 16px;
  overflow-x: auto;
  line-height: 1.75;
}
.command code {
  font-size: 13px;
  background: none;
  color: var(--ink);
  padding: 0;
  border-radius: 0;
}
.prompt pre {
  white-space: pre-wrap;
}
.prompt code {
  overflow-wrap: anywhere;
}

.mini-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--paper-2);
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 14px 0;
}
.mini-note .icon {
  width: 15px;
  height: 15px;
  color: var(--teal);
  flex: none;
  margin-top: 2px;
}
.mini-note strong {
  color: var(--ink);
  font-weight: 600;
}
.mini-note a {
  color: var(--rust-deep);
  font-weight: 500;
}
.mini-note.guard {
  background: var(--rust-tint);
  color: var(--rust-deep);
}
.mini-note.guard .icon {
  color: var(--rust);
}
.mini-note.guard strong {
  color: var(--rust-deep);
}

.checkpoint {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 18px;
  padding: 13px 16px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--teal) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--teal) 20%, transparent);
  color: var(--teal);
  font-size: 13.5px;
  line-height: 1.6;
}
.checkpoint .icon {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 2px;
}
.checkpoint strong {
  font-weight: 600;
}

.setup-shot {
  margin: 14px 0;
}
.setup-shot img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.setup-shot figcaption {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 8px;
}

.inline-help {
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  margin: 12px 0;
  background: var(--paper);
}
.inline-help summary {
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--teal);
  cursor: pointer;
  list-style: none;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.inline-help summary::-webkit-details-marker {
  display: none;
}
.inline-help > div {
  padding: 0 14px 14px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.65;
}
.inline-help ol {
  margin: 6px 0;
  padding-left: 18px;
}
.inline-help li + li {
  margin-top: 6px;
}
.inline-help a {
  color: var(--rust);
}

/* Step panel footer */
.step-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  flex-wrap: wrap;
}
.mark-done {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 11px 20px;
  border-radius: 100px;
  background: var(--teal);
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
  transition:
    background 0.15s,
    transform 0.15s;
}
.mark-done:hover {
  background: var(--teal-soft);
  transform: translateY(-1px);
}
.mark-done .box {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 2px solid currentColor;
  display: grid;
  place-items: center;
}
.mark-done .box .icon {
  width: 12px;
  height: 12px;
  stroke-width: 3;
  opacity: 0;
}
.mark-done.is-done {
  background: var(--card);
  color: var(--teal);
  border: 1px solid color-mix(in srgb, var(--teal) 30%, transparent);
}
.mark-done.is-done .box {
  background: var(--teal);
  color: var(--paper);
  border-color: var(--teal);
}
.mark-done.is-done .box .icon {
  opacity: 1;
}
.next-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--rust);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  min-height: 44px;
}
.next-step .icon {
  width: 17px;
  height: 17px;
}

/* Setup: starting it up again */
.restart {
  margin-top: 48px;
  padding: clamp(24px, 3vw, 34px);
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--line-soft);
}
.restart h2 {
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 500;
  margin: 12px 0 10px;
}
.restart p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 62ch;
}
.restart p strong {
  color: var(--ink);
  font-weight: 600;
}
.restart a {
  color: var(--rust);
  font-weight: 500;
}
.restart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0 16px;
  margin: 6px 0;
}

/* The vault: the locked "What we'll build" page — one no-scroll screen */
.gate {
  --g-bg: #14100d;
  --g-text: #f1e9dc;
  --g-dim: #b3a593;
  --g-line: rgba(241, 233, 220, 0.14);
  --g-mint: #a8f0c6;
  --g-gold: #eab676;
  --g-red: #ff9b8a;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
  padding: clamp(20px, 3vw, 40px);
  border-radius: 24px;
  background:
    radial-gradient(120% 80% at 22% 0%, #2a2119 0%, transparent 60%),
    var(--g-bg);
  color: var(--g-text);
  box-shadow: var(--shadow-lg);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.gate::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.02) 0 1px,
    transparent 1px 4px
  );
}
.gate :focus-visible {
  outline-color: var(--g-mint);
}
.gate-monitor {
  position: relative;
  padding: 10px;
  border-radius: 18px;
  background: linear-gradient(180deg, #2d261f, #1a1511);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 30px 70px -40px rgba(168, 240, 198, 0.4);
  transition: box-shadow 0.4s ease;
}
.gate-art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 11px;
  background: #0e0c0a;
}
.gate-glass {
  position: absolute;
  inset: 10px;
  border-radius: 11px;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.14) 0 1px,
      transparent 1px 3px
    ),
    radial-gradient(120% 95% at 50% 45%, transparent 58%, rgba(0, 0, 0, 0.4) 100%);
}
.gate-scan {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 34%;
  border-radius: 11px;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(168, 240, 198, 0.12) 70%,
    transparent
  );
  animation: gate-scan 4.5s linear infinite;
}
.gate.is-granted .gate-monitor {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 0 2px var(--g-mint),
    0 0 60px rgba(168, 240, 198, 0.45);
}
.gate-console {
  min-width: 0;
}
.gate-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--g-line);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--g-dim);
}
.gate-state {
  color: var(--g-mint);
}
.gate.is-denied .gate-state {
  color: var(--g-red);
}
.gate-title {
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #fbf6ec;
}
.gate-title span {
  color: var(--g-mint);
  font-style: italic;
}
.gate-copy {
  margin-top: 12px;
  max-width: 42ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--g-dim);
}
.gate-form {
  margin-top: 22px;
}
.gate-label {
  display: block;
  margin-bottom: 9px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--g-dim);
}
.gate-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 14px;
  border-radius: 13px;
  background: #0c0a08;
  border: 1px solid rgba(168, 240, 198, 0.3);
  box-shadow: 0 0 0 4px rgba(168, 240, 198, 0.05);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.gate-field:focus-within {
  border-color: var(--g-mint);
  box-shadow: 0 0 0 4px rgba(168, 240, 198, 0.18);
}
.gate-caret {
  font-family: var(--mono);
  font-size: 18px;
  color: var(--g-mint);
}
.gate-field input {
  flex: 1;
  min-width: 0;
  padding: 11px 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--g-text);
  font-family: var(--mono);
  font-size: 19px;
  letter-spacing: 0.28em;
  caret-color: var(--g-mint);
}
.gate-field input:focus-visible {
  outline: none;
}
.gate-field input:disabled {
  opacity: 0.6;
}
.gate-submit {
  flex: none;
  min-height: 46px;
  padding: 10px 20px;
  border-radius: 10px;
  background: var(--g-mint);
  color: #0e1a13;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: background 0.15s;
}
.gate-submit:hover {
  background: #c6f7da;
}
.gate-submit:disabled {
  cursor: progress;
  opacity: 0.7;
}
.gate-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  min-height: 1.5em;
  margin-top: 13px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--g-dim);
}
.gate-status:empty {
  margin-top: 0;
}
.gate-status .denied,
.gate-status .granted {
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.gate-status .denied {
  color: var(--g-red);
}
.gate-status .granted {
  color: var(--g-mint);
}
.gate-countdown {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--g-line);
  font-family: var(--mono);
}
.countdown-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--g-dim);
}
.countdown-clock {
  font-size: 20px;
  letter-spacing: 0.08em;
  color: var(--g-gold);
  font-variant-numeric: tabular-nums;
}
.gate.is-denied .gate-field {
  border-color: var(--g-red);
  animation: gate-shake 0.42s ease;
}
@keyframes gate-shake {
  0%, 100% { transform: none; }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(7px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(3px); }
}
@keyframes gate-scan {
  from { transform: translateY(-40%); }
  to { transform: translateY(320%); }
}

/* The unlocked brief */
.brief {
  animation: brief-in 0.6s ease both;
}
@keyframes brief-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.brief-head h1:focus {
  outline: none;
}
.brief-block {
  margin-bottom: 26px;
  padding: clamp(22px, 3vw, 30px);
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line-soft);
}
.brief-block h2 {
  margin: 10px 0;
  font-size: 25px;
  font-weight: 500;
}
.brief-block > p {
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.brief-steps {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.6;
}
.brief-steps li::marker {
  color: var(--rust);
  font-weight: 600;
}
.brief-panel {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  padding: 34px;
  border-radius: 20px;
  background: var(--teal);
  color: #f2ede2;
  margin-bottom: 26px;
  box-shadow: var(--shadow-lg);
}
.brief-panel h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin: 14px 0 12px;
  color: #fbf6ec;
  font-weight: 500;
}
.brief-panel p {
  color: #cfe0d3;
  font-size: 15px;
  line-height: 1.6;
}
.brief-outcomes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.brief-outcomes li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 15px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 15px;
  color: #f0ece3;
}
.brief-outcomes li:first-child {
  border-top: 0;
}
.brief-outcomes span {
  font-family: var(--display);
  font-size: 14px;
  color: #edb57c;
  font-weight: 600;
  flex: none;
}

.build-flow {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}
.build-flow article {
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
}
.build-step {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rust);
  font-weight: 600;
}
.build-flow h2 {
  font-size: 25px;
  margin: 10px 0 10px;
  font-weight: 500;
}
.build-flow > article > p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 62ch;
}
.test-checks {
  display: grid;
  gap: 12px;
  margin: 18px 0 4px;
}
.test-checks label {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 34px;
  cursor: pointer;
  font-size: 15px;
}
.test-checks input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
  flex: none;
  margin: 0;
}
.small-copy {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.missions,
.stretch {
  margin-top: clamp(64px, 8vw, 96px);
}
.mission-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.mission {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line-soft);
}
.mission h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.mission > p {
  margin: 6px 0 4px;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.mission .command {
  margin-bottom: 0;
}
.stretch-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 44px;
}
.stretch-list li {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.stretch-list strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.tool-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: clamp(56px, 7vw, 80px);
  padding: 22px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: var(--paper-2);
}
.tool-note .icon {
  width: 22px;
  height: 22px;
  color: var(--rust);
  flex: none;
  margin-top: 2px;
}
.tool-note strong {
  font-weight: 600;
}
.tool-note p {
  margin-top: 5px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.brief-foot {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}
.relock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 100px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  transition:
    border-color 0.15s,
    color 0.15s;
}
.relock .icon {
  width: 16px;
  height: 16px;
}
.relock:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* Help */
.help-crew {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  margin-bottom: 26px;
}
.avatar-stack {
  display: inline-flex;
  flex: none;
}
.avatar-stack img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--card);
  box-shadow: 0 2px 8px rgba(42, 34, 28, 0.18);
}
.avatar-stack img + img {
  margin-left: -14px;
}
.help-crew strong {
  font-size: 16px;
  font-weight: 600;
}
.help-crew p {
  margin-top: 4px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.faq-list {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--card);
  overflow: hidden;
}
.faq-list details[open] {
  border-color: color-mix(in srgb, var(--rust) 30%, var(--line));
}
.faq-list summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 20px;
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  font-weight: 500;
  min-height: 60px;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary .tag {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  border: 1px solid color-mix(in srgb, var(--teal) 26%, transparent);
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 600;
  flex: none;
  min-width: 74px;
  text-align: center;
}
.faq-list summary .q {
  flex: 1;
}
.faq-list summary .plus {
  flex: none;
  color: var(--rust);
  transition: transform 0.2s;
}
.faq-list summary .plus .icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}
.faq-list details[open] summary .plus {
  transform: rotate(45deg);
}
.faq-body {
  padding: 0 20px 20px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}
.faq-body p + p {
  margin-top: 10px;
}
.faq-body a {
  color: var(--rust);
}
.faq-body code {
  font-size: 12.5px;
}
.help-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.link-quiet {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  min-height: 44px;
}
.link-quiet .icon {
  width: 15px;
  height: 15px;
}
.link-quiet:hover {
  color: var(--rust);
}

/* Footer */
.site-footer {
  max-width: 1140px;
  margin: 0 auto;
  padding: 26px 44px 34px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.site-footer img {
  width: 150px;
  height: auto;
  opacity: 0.9;
}
.site-footer span {
  font-size: 13px;
  color: var(--ink-soft);
}
.site-footer a {
  color: var(--teal);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.site-footer a .icon {
  width: 13px;
  height: 13px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: calc(50% + var(--sidebar) / 2);
  transform: translateX(-50%) translateY(10px);
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
  z-index: 60;
  max-width: calc(100% - 48px);
  text-align: center;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Responsive */
@media (max-width: 1080px) {
  :root {
    --sidebar: 212px;
  }
  main,
  .site-footer {
    padding-left: 32px;
    padding-right: 32px;
  }
  .topbar {
    padding-left: 32px;
    padding-right: 32px;
  }
  .summit-brand img {
    width: 158px;
  }
  .idea-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mission-list {
    grid-template-columns: 1fr;
  }
  /* Pyramid + vault art tuck under the text on narrower screens. */
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    max-width: 100%;
    min-width: 0;
  }
  .hero-visual {
    order: -1;
    min-width: 0;
    padding: 16px;
  }
  .gate {
    grid-template-columns: 1fr;
  }
  .gate-monitor {
    max-width: 420px;
    margin: 0 auto;
  }
}
@media (max-width: 860px) {
  .sidebar {
    position: static;
    width: auto;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 20px;
    padding: 16px 22px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .summit-brand img {
    width: 150px;
  }
  .sidebar-caption {
    display: none;
  }
  .main-nav {
    order: 3;
    width: 100%;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    margin: 0 -4px;
    padding: 2px 4px;
  }
  .main-nav a {
    flex: 1;
    justify-content: center;
    min-width: max-content;
    min-height: 42px;
    padding: 9px 14px;
  }
  .sidebar-bottom {
    margin: 0 0 0 auto;
    padding: 0;
    text-align: right;
  }
  .session-stamp,
  .sidebar-bottom p,
  .conference-link {
    display: none;
  }
  .sidebar-bottom strong {
    font-size: 15px;
  }
  .sidebar-room {
    font-size: 11px;
  }
  .workspace {
    margin-left: 0;
  }
  .toast {
    left: 50%;
  }
}
@media (max-width: 680px) {
  main,
  .site-footer {
    padding: 28px 20px 40px;
  }
  .topbar {
    padding: 12px 20px;
    min-height: 56px;
  }
  .track-badge {
    font-size: 11px;
    padding: 5px 10px;
  }
  /* Phones: all four sections stay visible, Help desk included. */
  .main-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: visible;
  }
  .main-nav a {
    min-width: 0;
    padding: 9px 10px;
  }
  .idea-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .need-list {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .timeline li {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px 0;
  }
  .tl-time {
    padding-top: 0;
  }
  .instructors {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .helpers {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .helpers ul {
    gap: 16px 30px;
  }
  .brief-panel {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 26px;
  }
  .stretch-list {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .platform-bar {
    gap: 14px;
  }
  .progress-track {
    width: 96px;
  }
  .step-summary {
    padding: 17px 18px;
    gap: 13px;
  }
  .step-badge {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }
  .step-headline strong {
    font-size: 16px;
  }
  .step-headline span {
    font-size: 12px;
  }
  .step-body {
    padding: 4px 18px 20px;
  }
  .build-flow article {
    padding: 22px;
  }
  .site-footer {
    justify-content: flex-start;
  }
  .gate {
    border-radius: 18px;
  }
  .gate-field {
    padding-left: 12px;
  }
  .gate-field input {
    font-size: 18px;
    letter-spacing: 0.2em;
  }
  .gate-submit {
    padding: 10px 14px;
  }
}
@media (max-width: 400px) {
  .hero h1 {
    font-size: 40px;
  }
  .main-nav a span {
    font-size: 13px;
  }
  .main-nav a .icon {
    display: none;
  }
  /* The session time is in the hero; keep the phone header short. */
  .sidebar-bottom {
    display: none;
  }
  .platform-picker button {
    padding: 9px 15px;
  }
  .step-meta {
    gap: 8px;
  }
  .gate-path {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
  .step-panel {
    transition: none;
  }
}
@media print {
  .sidebar,
  .topbar,
  .toast,
  .copy-button,
  .platform-bar,
  .step-foot,
  .site-footer,
  .gate {
    display: none !important;
  }
  .workspace {
    margin: 0;
  }
  .view[hidden] {
    display: block !important;
  }
  .step-panel {
    grid-template-rows: 1fr !important;
  }
  .command {
    border: 1px solid #ccc;
  }
  .command code {
    color: #000;
  }
}
