:root {
  color-scheme: dark;
  --orelab-ring: #a13300;
  --orelab-wordmark: #5e1a13;
  --orelab-accent: #d75a21;
  --orelab-canvas: #080706;
  --orelab-panel: rgba(24, 18, 15, 0.88);
  --orelab-panel-strong: #17110f;
  --orelab-line: rgba(255, 255, 255, 0.11);
  --orelab-line-strong: rgba(255, 255, 255, 0.2);
  --orelab-copy: #ddd4cf;
  --orelab-muted: #a99e98;
  --orelab-focus: #ffffff;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--orelab-canvas);
  color: #f4f4f5;
  line-height: 1.6;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(161, 51, 0, 0.14), transparent 34rem),
    var(--orelab-canvas);
}

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

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--orelab-focus);
  outline-offset: 4px;
}

::selection {
  background: rgba(161, 51, 0, 0.55);
  color: white;
}

.shell {
  width: min(72rem, calc(100% - 2rem));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  transform: translateY(-220%);
  border-radius: 0.5rem;
  background: var(--orelab-ring);
  color: white;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 150ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--orelab-line);
  background: rgba(8, 7, 6, 0.96);
}

.header-shell {
  min-height: 4.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 0.75rem;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  width: 9rem;
  min-height: 2.75rem;
  padding: 0.3rem 0.55rem;
}

.brand img {
  width: 100%;
  height: auto;
}

.primary-nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.primary-nav a,
.site-footer nav a {
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  border-radius: 0.55rem;
  padding: 0.45rem 0.7rem;
  color: var(--orelab-copy);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"],
.site-footer nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.main-content {
  padding-block: clamp(3.5rem, 9vw, 7rem);
  scroll-margin-top: 6rem;
}

.hero {
  max-width: 52rem;
}

.hero-grid {
  max-width: none;
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.2fr) minmax(16rem, 0.8fr);
  gap: clamp(2rem, 7vw, 5rem);
}

.compact-hero {
  max-width: 48rem;
}

.hero-mark {
  width: min(100%, 26rem);
  aspect-ratio: 1;
  justify-self: center;
  overflow: hidden;
  border: 1px solid var(--orelab-line);
  border-radius: 2rem;
  background: rgba(0, 0, 0, 0.3);
  padding: clamp(1.5rem, 5vw, 3rem);
  box-shadow: 0 1.8rem 5rem rgba(0, 0, 0, 0.42);
}

.hero-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.eyebrow,
.card-index {
  margin: 0 0 0.75rem;
  color: var(--orelab-accent);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2 {
  color: white;
  line-height: 1.14;
  letter-spacing: -0.02em;
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 5rem);
}

h2 {
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

.lead {
  max-width: 48rem;
  margin: 1.4rem 0 0;
  color: var(--orelab-copy);
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  line-height: 1.75;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.button {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--orelab-line-strong);
  border-radius: 0.65rem;
  padding: 0.6rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.button-primary {
  border-color: transparent;
  background: var(--orelab-ring);
}

.button-primary:hover {
  background: #b23a00;
}

.card-grid {
  display: grid;
  gap: 1.1rem;
  margin-top: 4rem;
}

.card-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card {
  border: 1px solid var(--orelab-line);
  border-radius: 1rem;
  background: var(--orelab-panel);
  padding: 1.5rem;
  box-shadow: 0 1.25rem 3.75rem rgba(0, 0, 0, 0.2);
}

.info-card p,
.feature-panel p,
.boundary-note {
  color: var(--orelab-muted);
}

.info-card p {
  margin: 0.8rem 0 0;
}

.feature-panel {
  margin-top: 4rem;
  border: 1px solid var(--orelab-line);
  border-radius: 1.4rem;
  background: linear-gradient(135deg, rgba(161, 51, 0, 0.22), rgba(24, 18, 15, 0.9));
  padding: clamp(1.6rem, 5vw, 2.6rem);
}

.feature-panel p {
  max-width: 50rem;
  margin-bottom: 0;
}

.boundary-note {
  max-width: 52rem;
  margin-top: 2rem;
  font-size: 0.9rem;
}

.site-footer {
  border-top: 1px solid var(--orelab-line);
  background: var(--orelab-canvas);
}

.footer-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 2rem;
  color: var(--orelab-muted);
  font-size: 0.9rem;
}

.footer-shell p {
  margin: 0;
}

@media (max-width: 56rem) {
  .header-shell,
  .footer-shell {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-grid,
  .card-grid-three,
  .card-grid-two {
    grid-template-columns: 1fr;
  }

  .hero-mark {
    justify-self: start;
    width: min(80vw, 24rem);
  }
}

@media (max-width: 34rem) {
  .shell {
    width: min(100% - 1.25rem, 72rem);
  }

  .header-shell {
    gap: 0.75rem;
  }

  .brand {
    width: min(8.25rem, 46vw);
  }

  .primary-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
  }

  .primary-nav a {
    min-height: 2.75rem;
    justify-content: center;
    padding: 0.5rem 0.6rem;
    font-size: 0.84rem;
    text-align: center;
  }

  .primary-nav a:last-child {
    grid-column: 1 / -1;
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .site-footer nav {
    gap: 0.2rem;
  }

  .site-footer nav a {
    padding-inline: 0.5rem;
    font-size: 0.84rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .skip-link {
    transition: none;
  }
}


/* CD-3 compact mobile navigation and workflow visual. */
.mobile-nav {
  display: none;
}

.workflow-visual {
  margin-top: 3.5rem;
  border: 1px solid var(--orelab-line);
  border-radius: 1.4rem;
  background: rgba(24, 18, 15, 0.62);
  padding: clamp(1.4rem, 4vw, 2.2rem);
}

.workflow-visual-heading {
  max-width: 42rem;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.workflow-step {
  position: relative;
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 0.28rem;
  border: 1px solid var(--orelab-line);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.025);
  padding: 1rem 0.85rem;
}

.workflow-step:not(:last-child)::after {
  content: "›";
  position: absolute;
  top: 50%;
  right: -0.58rem;
  z-index: 2;
  transform: translateY(-50%);
  color: var(--orelab-accent);
  font-size: 1.3rem;
  font-weight: 800;
}

.workflow-glyph {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(215, 90, 33, 0.48);
  border-radius: 0.65rem;
  background: rgba(161, 51, 0, 0.18);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 750;
}

.workflow-step strong {
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.3;
}

.workflow-step > span:last-child {
  color: var(--orelab-muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

@media (max-width: 56rem) {
  .header-shell {
    min-height: 4.25rem;
    align-items: center;
    flex-direction: row;
    gap: 1rem;
    padding-block: 0.65rem;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    position: relative;
    display: block;
    margin-left: auto;
  }

  .mobile-nav summary {
    min-width: 3rem;
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border: 1px solid var(--orelab-line-strong);
    border-radius: 0.65rem;
    padding: 0.55rem 0.75rem;
    background: rgba(255, 255, 255, 0.035);
    color: #fff;
    cursor: pointer;
    font-size: 0.86rem;
    font-weight: 700;
    list-style: none;
  }

  .mobile-nav summary::-webkit-details-marker {
    display: none;
  }

  .mobile-nav summary:hover,
  .mobile-nav[open] summary {
    background: rgba(255, 255, 255, 0.08);
  }

  .menu-icon {
    width: 1.15rem;
    display: grid;
    gap: 0.22rem;
  }

  .menu-icon span {
    height: 2px;
    display: block;
    border-radius: 999px;
    background: currentColor;
  }

  .mobile-nav-menu {
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    width: min(20rem, calc(100vw - 1.25rem));
    display: grid;
    gap: 0.25rem;
    border: 1px solid var(--orelab-line-strong);
    border-radius: 0.9rem;
    background: #120e0c;
    padding: 0.55rem;
    box-shadow: 0 1.4rem 3.5rem rgba(0, 0, 0, 0.5);
  }

  .mobile-nav-menu a {
    min-height: 2.75rem;
    display: flex;
    align-items: center;
    border-radius: 0.55rem;
    padding: 0.55rem 0.7rem;
    color: var(--orelab-copy);
    font-size: 0.9rem;
    font-weight: 650;
    text-decoration: none;
  }

  .mobile-nav-menu a:hover,
  .mobile-nav-menu a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
  }

  .workflow-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .workflow-step:nth-child(3)::after {
    display: none;
  }
}

@media (max-width: 34rem) {
  .header-shell {
    gap: 0.65rem;
  }

  .menu-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .mobile-nav summary {
    width: 2.9rem;
    padding-inline: 0.75rem;
  }

  .workflow-steps {
    grid-template-columns: 1fr;
  }

  .workflow-step::after {
    content: "⌄";
    top: auto;
    right: 50%;
    bottom: -0.77rem;
    transform: translateX(50%);
  }

  .workflow-step:nth-child(3)::after {
    display: block;
  }

  .workflow-step:last-child::after {
    display: none;
  }
}
