@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
  --bg: #16191B;
  --amber: #D4A853;
  --amber-dim: rgba(212, 168, 83, 0.16);
  --cream: #F5F2ED;
  --muted: rgba(245, 242, 237, 0.5);
  --muted-strong: rgba(245, 242, 237, 0.78);
  --border: rgba(245, 242, 237, 0.1);
  --hair: rgba(245, 242, 237, 0.07);
  --paper: #E8DCC8;
  --teal: #5B8A8A;
  --font: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'Space Mono', monospace;
}

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

html {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 70% 42% at 72% 0%, rgba(212, 168, 83, 0.07), transparent 62%),
    radial-gradient(ellipse 55% 38% at 2% 24%, rgba(91, 138, 138, 0.08), transparent 60%),
    var(--bg);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    repeating-linear-gradient(to right, rgba(245, 242, 237, 0.024) 0, rgba(245, 242, 237, 0.024) 1px, transparent 1px, transparent 44px),
    repeating-linear-gradient(to bottom, rgba(245, 242, 237, 0.024) 0, rgba(245, 242, 237, 0.024) 1px, transparent 1px, transparent 44px);
  -webkit-mask-image: radial-gradient(ellipse 88% 76% at 50% 20%, black 0%, rgba(0, 0, 0, 0.25) 68%, rgba(0, 0, 0, 0.05) 100%);
  mask-image: radial-gradient(ellipse 88% 76% at 50% 20%, black 0%, rgba(0, 0, 0, 0.25) 68%, rgba(0, 0, 0, 0.05) 100%);
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  opacity: 0.035;
  pointer-events: none;
}

.page {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 36px 0 26px;
}

.masthead {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
}

.brand-lockup {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: var(--cream);
}

.logotype-buried,
.logotype-signals {
  height: 35px;
  width: auto;
  display: block;
}

.logotype-signals {
  color: var(--amber);
}

.masthead-rule {
  height: 1px;
  background: linear-gradient(90deg, var(--amber), rgba(212, 168, 83, 0.12), transparent);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 390px);
  gap: 42px;
  align-items: end;
  padding: 38px 0 22px;
}

.eyebrow,
.detail-label,
.session-kicker,
.section-head span,
.doc-code {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow,
.section-head span,
.session-kicker,
.detail-label {
  color: var(--amber);
}

h1 {
  margin-top: 9px;
  max-width: 780px;
  font-size: clamp(38px, 5.6vw, 70px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.agent-pills {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.agent-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(212, 168, 83, 0.48);
  background: rgba(212, 168, 83, 0.08);
  color: var(--amber);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dek {
  max-width: 720px;
  margin-top: 18px;
  color: var(--muted-strong);
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 300;
  line-height: 1.35;
}

.promise-callout {
  align-self: end;
  padding: 18px 20px 20px;
  border: 1px solid var(--border);
  border-left: 2px solid var(--amber);
  background: rgba(22, 25, 27, 0.62);
}

.promise-callout span {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--amber);
}

.promise-callout p {
  margin-top: 10px;
  color: var(--cream);
  font-size: 18px;
  line-height: 1.42;
}

.arc-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.arc-item {
  min-height: 108px;
  padding: 16px 18px;
  border-right: 1px solid var(--hair);
}

.arc-item:last-child {
  border-right: 0;
}

.arc-item span {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.arc-item strong {
  display: block;
  margin-top: 14px;
  font-size: 23px;
  line-height: 1;
}

.arc-item p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.curriculum {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 44px 0 32px;
}

.section-head {
  align-self: start;
}

.session {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) minmax(170px, 230px);
  gap: 22px;
  align-items: start;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.session--final {
  border-bottom: 1px solid var(--border);
}

.session-index {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(212, 168, 83, 0.46);
  color: var(--amber);
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
}

.session-main h3 {
  margin-top: 7px;
  font-size: clamp(22px, 2.4vw, 31px);
  line-height: 1.08;
  letter-spacing: 0;
}

.session-main p,
.session-points {
  max-width: 670px;
  margin-top: 10px;
}

.session-main p {
  color: var(--muted-strong);
  font-size: 16px;
  line-height: 1.52;
}

.session-points {
  list-style: none;
  display: grid;
  gap: 8px;
}

.session-points li {
  position: relative;
  padding-left: 17px;
  color: var(--muted-strong);
  font-size: 15px;
  line-height: 1.42;
}

.session-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--amber);
}

.session-output {
  padding-left: 18px;
  border-left: 2px solid var(--amber);
}

.session-output span {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.session-output p {
  margin-top: 7px;
  font-size: 15px;
  line-height: 1.35;
  color: var(--cream);
}

.details-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 18px;
  padding: 32px 0 6px;
}

.detail-card {
  min-height: 178px;
  padding: 20px;
  border: 1px solid var(--border);
  background: rgba(22, 25, 27, 0.5);
}

.detail-card--prework {
  background:
    linear-gradient(135deg, rgba(212, 168, 83, 0.12), rgba(212, 168, 83, 0.02)),
    rgba(22, 25, 27, 0.62);
}

.detail-card p,
.detail-card li {
  color: var(--muted-strong);
  font-size: 15px;
  line-height: 1.48;
}

.detail-card p,
.detail-card ul {
  margin-top: 16px;
}

.detail-card ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.detail-card li {
  position: relative;
  padding-left: 17px;
}

.detail-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  background: var(--amber);
  border-radius: 999px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 24px;
  margin-top: 28px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

.doc-code {
  color: rgba(245, 242, 237, 0.65);
}

@media (max-width: 920px) {
  .page {
    width: min(100% - 36px, 720px);
  }

  .curriculum,
  .hero,
  .session,
  .details-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 36px;
    gap: 24px;
  }

  .curriculum {
    gap: 20px;
  }

  .section-head {
    position: static;
  }

  .session {
    grid-column: auto;
  }

  .session-output {
    padding-left: 14px;
  }
}

@media (max-width: 660px) {
  .page {
    width: min(100% - 32px, 480px);
    padding-top: 24px;
  }

  .masthead {
    gap: 14px;
  }

  .logotype-buried,
  .logotype-signals {
    height: 30px;
  }

  h1 {
    font-size: clamp(38px, 12vw, 54px);
  }

  .arc-strip {
    grid-template-columns: 1fr 1fr;
  }

  .arc-item {
    min-height: 102px;
    padding: 16px;
    border-bottom: 1px solid var(--hair);
  }

  .arc-item:nth-child(2),
  .arc-item:nth-child(4) {
    border-right: 0;
  }

  .arc-item:nth-child(5) {
    grid-column: 1 / -1;
  }

  .arc-item:nth-child(5) {
    border-bottom: 0;
  }

  .arc-item strong {
    font-size: 22px;
  }

  .session {
    gap: 14px;
    padding: 22px 0;
  }

  .footer {
    flex-direction: column;
  }
}

@media print {
  body {
    background: var(--bg);
  }

  body::before,
  body::after {
    display: none;
  }

  .page {
    width: 100%;
    min-height: auto;
    padding: 18mm;
  }

  .section-head {
    position: static;
  }

  .hero {
    padding-top: 16mm;
  }
}
