:root {
  color-scheme: light;
  --paper: #f7eebd;
  --paper-strong: #f2e2a0;
  --ink: #132052;
  --ink-soft: #32457c;
  --aqua: #83d4c7;
  --teal: #19b8b5;
  --line: rgba(19, 32, 82, 0.14);
  --panel-shadow: 0 14px 32px rgba(19, 32, 82, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 10%, rgba(131, 212, 199, 0.32), transparent 20%),
    radial-gradient(circle at 82% 72%, rgba(127, 103, 216, 0.08), transparent 18%),
    linear-gradient(180deg, #fcf6d9 0%, #f8edbc 54%, #f6e8ac 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image:
    linear-gradient(rgba(19, 32, 82, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 32, 82, 0.16) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 92%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 64px;
}

.page-shell-compact {
  width: min(1040px, calc(100% - 24px));
}

.onboarding-page {
  background:
    radial-gradient(circle at 18% 8%, rgba(131, 212, 199, 0.34), transparent 18%),
    radial-gradient(circle at 84% 12%, rgba(127, 103, 216, 0.06), transparent 18%),
    linear-gradient(180deg, #fcf6d9 0%, #f8edbc 54%, #f6e8ac 100%);
}

.onboarding-page-shell {
  width: min(520px, calc(100% - 14px));
  margin: 0 auto;
  padding: 6px 0;
  min-height: 100dvh;
  display: flex;
  align-items: stretch;
}

.micro-label,
.micro-meta,
.signal-chip,
.nav-link,
.button,
.ghost-button,
.terminal-copy,
.form-input,
.detail-list,
.legal-body li,
.footnote,
.poster-line,
.poster-side-label,
.poster-domain,
.qr-placeholder {
  font-family: "IBM Plex Mono", monospace;
}

.eyebrow,
.section-kicker,
.micro-label,
.micro-meta {
  letter-spacing: 0.06em;
}

.top-strip,
.panel,
.flagship-project-card,
.info-card,
.legal-card {
  background: rgba(250, 241, 194, 0.97);
  border: 1px solid var(--line);
  box-shadow: var(--panel-shadow);
  clip-path: polygon(22px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%, 0 22px);
}

.top-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
  padding: 12px 16px;
}

.micro-label,
.micro-meta {
  margin: 0;
  font-size: 0.76rem;
}

.micro-meta {
  color: var(--ink-soft);
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
  padding: 16px 18px;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark-home {
  align-items: flex-start;
}

.brand-lockup {
  position: relative;
  width: 150px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.poster-lockup {
  width: 168px;
}

.brand-orbit {
  position: absolute;
  width: 136px;
  height: 42px;
  border-radius: 999px;
  background: var(--aqua);
  transform: rotate(-23deg);
}

.brand-word {
  position: relative;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.08em;
  color: var(--ink);
}

.brand-meta,
.thrylox-lockup {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-title {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.brand-note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.nav-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-link {
  padding: 9px 12px;
  border: 1px solid rgba(19, 32, 82, 0.12);
  background: rgba(25, 184, 181, 0.08);
  font-size: 0.76rem;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.05em;
}

h1 {
  font-size: clamp(2.6rem, 6.7vw, 4.8rem);
  line-height: 0.93;
}

h2 {
  font-size: clamp(1.45rem, 2.8vw, 2.1rem);
  line-height: 1;
}

h3 {
  font-size: 1.18rem;
}

.eyebrow,
.section-kicker {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: lowercase;
  color: var(--teal);
}

.lead,
.section-copy,
.info-card p,
.legal-body p,
.brand-note,
.onboarding-point span {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
  gap: 20px;
  margin-bottom: 18px;
  padding: 24px;
}

.home-hero-copy,
.poster-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.flagship-project-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: space-between;
  padding: 22px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.flagship-project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 42px rgba(19, 32, 82, 0.14);
}

.poster-line {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.compact-points {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.compact-points li {
  margin: 0;
}

.flagship-cta {
  width: fit-content;
}

.compact-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}

.partner-sections,
.article-stack {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
}

.partner-section,
.article-section {
  gap: 10px;
}

.article-support {
  margin-bottom: 18px;
}

.info-card,
.legal-card {
  padding: 20px;
}

.info-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.terminal-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.terminal-copy {
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  font-size: 0.74rem;
  font-weight: 700;
  background: rgba(19, 32, 82, 0.05);
  border: 1px solid rgba(19, 32, 82, 0.12);
}

.button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 18px;
  border: 0;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: transform 160ms ease, filter 160ms ease;
}

.button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.button {
  background: linear-gradient(180deg, #5ce7bc 0%, #2bb889 100%);
  color: var(--ink);
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
  box-shadow: 0 10px 24px rgba(43, 184, 137, 0.18);
}

.ghost-button {
  background: rgba(19, 32, 82, 0.05);
  color: var(--ink);
  border: 1px solid rgba(19, 32, 82, 0.12);
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
}

.keyboard-cta {
  position: relative;
  width: 100%;
  min-height: 72px;
  padding: 18px 24px 16px;
  background: linear-gradient(180deg, #6df0d2 0%, #4ed7c4 24%, #33c1a1 64%, #2fb18d 100%);
  color: var(--ink);
  border: 8px solid #252134;
  border-radius: 14px;
  clip-path: polygon(20px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 20px), calc(100% - 20px) 100%, 12px 100%, 0 calc(100% - 12px), 0 20px);
  box-shadow:
    0 16px 26px rgba(19, 32, 82, 0.12),
    0 8px 0 rgba(37, 33, 52, 0.18),
    inset 0 2px 0 rgba(255, 255, 255, 0.48),
    inset 0 -6px 0 rgba(14, 85, 86, 0.16);
}

.keyboard-cta::before {
  content: "";
  position: absolute;
  inset: 10px 16px auto;
  height: 36%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
  opacity: 0.5;
  pointer-events: none;
}

.keyboard-cta:active {
  transform: translateY(2px);
}

.bog-poster {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 24px;
  margin-bottom: 18px;
  padding: 24px;
}

.poster-side {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
  padding-left: 8px;
}

.poster-side-label,
.poster-domain {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.poster-domain {
  color: var(--ink-soft);
}

.contact-line {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legal-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.article-stack .info-card p + p,
.partner-section p + p {
  margin-top: 4px;
}

.contact-line a,
.inline-link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(19, 32, 82, 0.24);
}

.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 18px 20px;
}

.footer-note {
  margin: 0;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.onboarding-app {
  width: 100%;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 10px;
  padding: 16px;
  min-height: calc(100dvh - 12px);
  max-height: calc(100dvh - 12px);
  overflow: hidden;
}

.onboarding-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.onboarding-back-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid rgba(19, 32, 82, 0.12);
  border-radius: 999px;
  background: rgba(255, 250, 231, 0.88);
  color: var(--ink);
  box-shadow: none;
  clip-path: none;
  cursor: pointer;
  appearance: none;
}

.onboarding-back-arrow span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 1rem;
  line-height: 1;
}

.onboarding-brand-link {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-width: 0;
}

.onboarding-brand-link:hover .brand-word,
.onboarding-brand-link:hover .brand-title {
  opacity: 0.92;
}

.onboarding-progress {
  display: flex;
  gap: 8px;
}

.progress-dot {
  flex: 1;
  height: 5px;
  background: rgba(19, 32, 82, 0.12);
  border-radius: 999px;
}

.progress-dot.is-active {
  background: linear-gradient(90deg, var(--teal), #4ce4bc);
}

.onboarding-shell-standalone {
  min-height: 0;
}

.onboarding-screen {
  display: none;
}

.onboarding-screen.is-active {
  display: grid;
}

.onboarding-screen-standalone {
  width: 100%;
  height: 100%;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
}

.onboarding-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.onboarding-body-compact {
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}

.onboarding-title {
  font-size: clamp(1.9rem, 6vw, 2.8rem);
  line-height: 0.92;
  max-width: 11ch;
}

.onboarding-points {
  display: grid;
  gap: 8px;
}

.onboarding-point {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  background: rgba(19, 32, 82, 0.03);
  border: 1px solid rgba(19, 32, 82, 0.1);
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
}

.onboarding-point strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.96rem;
}

.onboarding-footer {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.onboarding-footer-split {
  justify-content: space-between;
}

.onboarding-footer-stack {
  flex-direction: column;
}

.onboarding-footer-fixed {
  background: linear-gradient(180deg, rgba(247, 238, 189, 0), rgba(247, 238, 189, 0.92) 22%, rgba(247, 238, 189, 1) 100%);
  padding-top: 8px;
}

.stack-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stack-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.form-input {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid rgba(19, 32, 82, 0.16);
  background: rgba(255, 250, 231, 0.96);
  color: var(--ink);
  font-size: 0.96rem;
}

.form-input:focus {
  outline: 3px solid rgba(25, 184, 181, 0.2);
  border-color: rgba(25, 184, 181, 0.5);
}

.status-text {
  min-height: 20px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.form-legal-note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.5;
}

.legal-shell {
  width: min(940px, calc(100% - 32px));
}

.legal-card {
  padding: 28px;
}

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

.legal-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.detail-list,
.legal-body ul {
  margin: 0;
  padding-left: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.detail-list li,
.legal-body li {
  margin: 6px 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 10px 12px;
  border: 1px solid rgba(19, 32, 82, 0.12);
  background: rgba(25, 184, 181, 0.07);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.footnote {
  margin: 0;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.onboarding-body .section-copy {
  font-size: 0.98rem;
  line-height: 1.55;
}

.onboarding-body .section-kicker {
  font-size: 0.78rem;
}

@media (max-width: 980px) {
  .home-hero,
  .bog-poster,
  .compact-info-grid {
    grid-template-columns: 1fr;
  }

  .poster-side {
    max-width: 280px;
    padding-left: 0;
  }
}

@media (max-width: 720px) {
  .page-shell,
  .page-shell-compact,
  .legal-shell,
  .onboarding-page-shell {
    width: min(100% - 20px, 100%);
  }

  .top-strip,
  .site-header,
  .home-hero,
  .bog-poster,
  .info-card,
  .legal-card {
    padding: 16px;
  }

  .top-strip,
  .site-header,
  .legal-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    width: auto;
    gap: 8px;
  }

  .nav-link {
    padding: 8px 10px;
  }

  .hero-actions,
  .onboarding-footer,
  .onboarding-footer-split,
  .onboarding-footer-stack {
    width: 100%;
    flex-direction: column;
    justify-content: stretch;
  }

  .button,
  .ghost-button {
    width: 100%;
  }

  .poster-side {
    max-width: none;
    display: flex;
    gap: 10px;
    padding-left: 0;
  }

  .keyboard-cta {
    min-height: 64px;
    padding: 15px 18px 13px;
    border-width: 7px;
  }

  .onboarding-page-shell {
    padding: 0;
  }

  .onboarding-app {
    min-height: 100dvh;
    max-height: 100dvh;
    padding: 14px;
    border: 0;
    box-shadow: none;
    clip-path: none;
  }
}

@media (max-width: 420px) {
  .onboarding-page-shell {
    width: 100%;
  }

  .onboarding-app {
    gap: 8px;
    padding: 12px;
  }

  .onboarding-header {
    gap: 10px;
  }

  .onboarding-brand-link {
    gap: 10px;
  }

  .onboarding-brand-link .brand-lockup {
    width: 108px;
    height: 44px;
  }

  .onboarding-brand-link .brand-orbit {
    width: 98px;
    height: 30px;
  }

  .onboarding-brand-link .brand-word {
    font-size: 1.95rem;
  }

  .onboarding-brand-link .eyebrow {
    font-size: 0.72rem;
  }

  .onboarding-brand-link .brand-title {
    font-size: 0.98rem;
    line-height: 0.95;
  }

  .onboarding-progress {
    gap: 6px;
  }

  .progress-dot {
    height: 4px;
  }

  .onboarding-screen-standalone {
    gap: 8px;
  }

  .onboarding-body {
    gap: 10px;
  }

  .onboarding-title {
    font-size: clamp(1.35rem, 11vw, 2.4rem);
    line-height: 0.94;
    max-width: 9.4ch;
  }

  .onboarding-body .section-copy {
    font-size: 0.84rem;
    line-height: 1.45;
  }

  .onboarding-body .section-kicker {
    font-size: 0.72rem;
  }

  .onboarding-point {
    gap: 3px;
    padding: 9px 10px;
  }

  .onboarding-point strong {
    font-size: 0.86rem;
  }

  .onboarding-point span,
  .form-legal-note,
  .footnote,
  .status-text {
    font-size: 0.76rem;
    line-height: 1.42;
  }

  .stack-form {
    gap: 8px;
  }

  .stack-form label {
    gap: 6px;
    font-size: 0.74rem;
  }

  .form-input {
    min-height: 48px;
    padding: 12px 14px;
    font-size: 0.92rem;
  }

  .onboarding-footer-fixed {
    padding-top: 6px;
  }

  .keyboard-cta {
    min-height: 58px;
    padding: 13px 14px 11px;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    border-width: 6px;
    border-radius: 12px;
  }

  .keyboard-cta::before {
    inset: 8px 12px auto;
  }
}

@media (max-width: 420px) and (max-height: 760px) {
  .onboarding-app {
    padding: 10px;
  }

  .onboarding-brand-link .brand-lockup {
    width: 96px;
    height: 40px;
  }

  .onboarding-brand-link .brand-orbit {
    width: 90px;
    height: 27px;
  }

  .onboarding-brand-link .brand-word {
    font-size: 1.8rem;
  }

  .onboarding-brand-link .eyebrow {
    font-size: 0.68rem;
  }

  .onboarding-brand-link .brand-title {
    font-size: 0.9rem;
  }

  .onboarding-title {
    font-size: clamp(1.2rem, 10vw, 2rem);
    max-width: 9ch;
  }

  .onboarding-point {
    padding: 8px 10px;
  }

  .onboarding-footer {
    gap: 8px;
  }

  .keyboard-cta {
    min-height: 54px;
    font-size: 0.76rem;
  }
}
