:root {
  --ink: #303428;
  --muted: #6f7363;
  --moss: #59654b;
  --sage: #8fa37b;
  --sand: #efe7d6;
  --paper: #fffdf8;
  --clay: #c98255;
  --line: #ded8c9;
  --soft: #f7f4eb;
}

/* Curated project stage */
.project-stage {
  position: relative;
}

.project-stage-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.65fr);
  gap: 48px;
  align-items: end;
}

.project-stage-heading > p {
  max-width: 480px;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.project-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 38px 0 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 253, 248, 0.76);
  overflow: hidden;
  box-shadow: 0 16px 44px rgba(45, 54, 42, 0.06);
}

.project-metrics div {
  min-height: 142px;
  padding: 23px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
}

.project-metrics div:last-child {
  border-right: 0;
}

.project-metrics strong {
  color: var(--moss);
  font-size: clamp(42px, 5vw, 70px);
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.project-metrics span {
  max-width: 145px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}

.featured-project-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.featured-project {
  position: relative;
  min-height: 390px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.88);
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 20px 55px rgba(45, 54, 42, 0.07);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.featured-project:hover,
.featured-project:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(89, 101, 75, 0.55);
  box-shadow: 0 26px 68px rgba(45, 54, 42, 0.11);
}

.featured-project:focus-visible {
  outline: 3px solid rgba(89, 101, 75, 0.26);
  outline-offset: 3px;
}

.featured-project.is-voice {
  grid-column: span 8;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(310px, 1.1fr);
  gap: 24px;
  min-height: 480px;
  background:
    radial-gradient(circle at 88% 16%, rgba(143, 163, 123, 0.22), transparent 230px),
    linear-gradient(135deg, rgba(231, 236, 224, 0.96), rgba(250, 248, 240, 0.98)),
    var(--paper);
  color: var(--ink);
}

.featured-project.is-home-ai-small {
  grid-column: span 4;
  background:
    linear-gradient(155deg, rgba(225, 235, 220, 0.82), rgba(255, 253, 248, 0.94) 56%),
    var(--paper);
}

.featured-project.is-alfred,
.featured-project.is-foundry,
.featured-project.is-hr-agent {
  grid-column: span 4;
}

.featured-project.is-alfred {
  background:
    radial-gradient(circle at 86% 12%, rgba(201, 130, 85, 0.14), transparent 150px),
    linear-gradient(145deg, rgba(232, 236, 226, 0.94), rgba(255, 253, 248, 0.98));
  color: var(--ink);
  border-color: var(--line);
}

.featured-project.is-alfred p,
.featured-project.is-alfred .tool-kicker {
  color: var(--muted);
}

.featured-project.is-foundry {
  background:
    linear-gradient(160deg, rgba(220, 230, 220, 0.88), rgba(255, 253, 248, 0.96)),
    var(--paper);
}

.featured-project.is-hr-agent {
  background:
    linear-gradient(150deg, rgba(239, 226, 216, 0.88), rgba(255, 253, 248, 0.96)),
    var(--paper);
}

.featured-project.is-voice p,
.featured-project.is-voice .tool-kicker {
  color: var(--muted);
}

.featured-project.is-voice .voice-console p {
  color: rgba(255, 253, 248, 0.76);
}

.featured-project-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.featured-project h3 {
  margin: 12px 0 14px;
  font-size: clamp(29px, 4vw, 48px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.featured-project:not(.is-voice) h3 {
  font-size: clamp(27px, 3vw, 38px);
}

.featured-project.is-voice h3 {
  font-size: clamp(27px, 2.7vw, 38px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.voice-console {
  align-self: center;
  min-width: 0;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 18px;
  background: rgba(38, 47, 38, 0.94);
  box-shadow: 0 24px 54px rgba(25, 31, 25, 0.28);
}

.voice-console-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  color: rgba(255, 253, 248, 0.72);
  font-size: 13px;
}

.voice-console-head strong {
  color: #fffdf8;
}

.voice-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #9fd486;
  box-shadow: 0 0 0 6px rgba(159, 212, 134, 0.12);
}

.voice-wave {
  height: 126px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 18px 0;
}

.voice-wave span {
  width: 8px;
  border-radius: 999px;
  background: linear-gradient(to top, #90aa7c, #d8e8ce);
}

.voice-wave span:nth-child(1),
.voice-wave span:nth-child(9) { height: 24%; }
.voice-wave span:nth-child(2),
.voice-wave span:nth-child(8) { height: 46%; }
.voice-wave span:nth-child(3),
.voice-wave span:nth-child(7) { height: 72%; }
.voice-wave span:nth-child(4),
.voice-wave span:nth-child(6) { height: 48%; }
.voice-wave span:nth-child(5) { height: 92%; }

.voice-route {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 8px;
}

.voice-route span {
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 7px;
  color: rgba(255, 253, 248, 0.8);
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.voice-route i {
  height: 1px;
  background: rgba(255, 255, 255, 0.24);
}

.voice-console > p {
  margin: 22px 0 0;
  color: rgba(255, 253, 248, 0.72);
  font-size: 13px;
}

.home-ai-card-preview {
  height: 118px;
  margin: 22px 0 0;
  border: 6px solid #2c322b;
  border-radius: 11px;
  overflow: hidden;
  box-shadow: 0 15px 28px rgba(45, 54, 42, 0.15);
}

.home-ai-card-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

.alfred-card-scene {
  width: 100%;
  height: 92px;
  margin: 22px 0 0;
  border: 1px solid rgba(89, 101, 75, 0.18);
  border-radius: 12px;
  overflow: hidden;
  opacity: 0.9;
  box-shadow: 0 14px 28px rgba(45, 54, 42, 0.12);
}

.alfred-card-scene img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.featured-project p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.featured-project-action {
  position: relative;
  z-index: 2;
  display: inline-flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: auto;
  padding-top: 26px;
  color: inherit;
  font-size: 14px;
  font-weight: 750;
}

.featured-project-visual {
  align-self: end;
  min-width: 0;
  transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
  transform-origin: right center;
  filter: drop-shadow(0 24px 32px rgba(41, 50, 39, 0.16));
}

.featured-project-visual img {
  display: block;
  width: 100%;
  height: 340px;
  border: 9px solid #262c25;
  border-radius: 15px;
  object-fit: cover;
  object-position: top left;
}

.project-node-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 30px 0 0;
}

.project-node-list span {
  padding: 12px;
  border: 1px solid rgba(89, 101, 75, 0.18);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.62);
  color: var(--moss);
  font-size: 12px;
  font-weight: 750;
  text-align: center;
}

.foundry-signal {
  display: flex;
  align-items: end;
  gap: 10px;
  height: 88px;
  margin: 26px 0 0;
}

.foundry-signal span {
  flex: 1;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(to top, var(--moss), var(--sage));
}

.foundry-signal span:nth-child(1) {
  height: 38%;
}

.foundry-signal span:nth-child(2) {
  height: 72%;
}

.foundry-signal span:nth-child(3) {
  height: 52%;
}

.foundry-signal span:nth-child(4) {
  height: 88%;
}

.app-family {
  display: flex;
  align-items: end;
  justify-content: center;
  height: 120px;
  margin: 20px 0 0;
}

.app-family picture {
  width: 82px;
  height: 112px;
  margin-left: -14px;
  border: 5px solid #2c302b;
  border-radius: 14px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 14px 25px rgba(45, 54, 42, 0.18);
  transform: rotate(-5deg);
}

.app-family picture:first-child {
  margin-left: 0;
}

.app-family picture:nth-child(2) {
  z-index: 2;
  transform: translateY(-8px);
}

.app-family picture:nth-child(3) {
  transform: rotate(5deg);
}

.app-family img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.project-directory-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 18px;
  padding: 26px 30px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 253, 248, 0.74);
}

.project-directory-cta strong,
.project-directory-cta span {
  display: block;
}

.project-directory-cta strong {
  margin-bottom: 5px;
  font-size: 18px;
}

.project-directory-cta span {
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 900px) {
  .project-stage-heading {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

  .project-metrics div:nth-child(2) {
    border-right: 0;
  }

  .project-metrics div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .featured-project.is-voice,
  .featured-project.is-home-ai-small,
  .featured-project.is-alfred,
  .featured-project.is-foundry,
  .featured-project.is-hr-agent {
    grid-column: span 6;
  }

  .featured-project.is-voice {
    grid-column: 1 / -1;
  }
}

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

  .project-metrics div,
  .project-metrics div:nth-child(2) {
    min-height: 112px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .project-metrics div:last-child {
    border-bottom: 0;
  }

  .featured-project.is-voice,
  .featured-project.is-home-ai-small,
  .featured-project.is-alfred,
  .featured-project.is-foundry,
  .featured-project.is-hr-agent {
    grid-column: 1 / -1;
  }

  .featured-project,
  .featured-project.is-voice {
    min-height: 360px;
    padding: 24px;
    display: flex;
  }

  .voice-console {
    display: none;
  }

  .project-directory-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .project-directory-cta .primary-link {
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .featured-project {
    transition: none;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 8%, rgba(143, 163, 123, 0.22), transparent 28rem),
    radial-gradient(circle at 88% 18%, rgba(201, 130, 85, 0.12), transparent 24rem),
    linear-gradient(140deg, #f3efe4 0%, #fffdf8 48%, #eef3ea 100%);
  font-family: "Aptos", "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1040px, calc(100vw - clamp(48px, 8vw, 128px)));
  margin: 0 auto;
  padding: 28px 0;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  color: var(--paper);
  background: linear-gradient(135deg, var(--moss), var(--sage) 62%, var(--clay));
  font-size: 24px;
  font-weight: 750;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #4f5747;
  font-size: 14px;
  font-weight: 650;
}

nav a {
  text-decoration: none;
}

nav .mail-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

nav .language-switch {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 850;
}

nav .language-switch a,
nav .language-switch span {
  display: grid;
  min-width: 34px;
  min-height: 30px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
}

nav .language-switch a:hover,
nav .language-switch a:focus-visible {
  border-color: rgba(89, 101, 75, 0.22);
  background: rgba(255, 253, 248, 0.72);
  outline: none;
}

nav .language-switch [aria-current="page"] {
  border-color: rgba(89, 101, 75, 0.18);
  background: #405f50;
  color: white;
}

nav .mail-link span {
  display: inline-block;
  color: var(--moss);
  font-size: 2em;
  line-height: 1;
  transform: translateY(-0.08em);
}

main {
  width: min(1040px, calc(100vw - clamp(48px, 8vw, 128px)));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 64px;
  align-items: center;
  min-height: 600px;
  padding: 58px 0 68px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 620px;
  margin-bottom: 24px;
  font-size: clamp(36px, 4.6vw, 58px);
  line-height: 1.07;
  font-weight: 680;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 590px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}

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

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-radius: 7px;
  padding: 0 18px;
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 0 0 rgba(75, 84, 62, 0);
  transform: translateY(0);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.primary-link {
  color: var(--paper);
  background: var(--moss);
}

.secondary-link {
  color: var(--moss);
  border: 1px solid rgba(89, 101, 75, 0.18);
  background: rgba(255, 253, 248, 0.68);
}

.primary-link:hover,
.primary-link:focus-visible,
.secondary-link:hover,
.secondary-link:focus-visible {
  box-shadow: 0 14px 30px rgba(75, 84, 62, 0.12);
  outline: none;
  transform: translateY(-2px);
}

.primary-link:hover,
.primary-link:focus-visible {
  background: #4f5c42;
}

.secondary-link:hover,
.secondary-link:focus-visible {
  border-color: rgba(89, 101, 75, 0.3);
  background: rgba(255, 253, 248, 0.9);
}

.primary-link:focus-visible,
.secondary-link:focus-visible {
  outline: 2px solid rgba(89, 101, 75, 0.38);
  outline-offset: 4px;
}

.hero-visual {
  position: relative;
  min-height: 470px;
}

.hero-visual::before {
  content: "Hybrid";
  position: absolute;
  left: 50%;
  top: calc(50% + 86px);
  z-index: 2;
  border: 1px solid rgba(89, 101, 75, 0.12);
  border-radius: 999px;
  padding: 8px 14px;
  color: rgba(89, 101, 75, 0.82);
  background: rgba(255, 253, 248, 0.82);
  font-size: 12px;
  font-weight: 850;
  transform: translateX(-50%);
}

.orbit {
  position: absolute;
  inset: 48px;
  border: 1px solid rgba(143, 163, 123, 0.34);
  border-radius: 50%;
}

.orbit-small {
  inset: 128px;
  border-color: rgba(201, 130, 85, 0.28);
}

.hybrid-line {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(89, 101, 75, 0.08), rgba(89, 101, 75, 0.34), rgba(89, 101, 75, 0.08));
  transform-origin: center;
}

.hybrid-line-main {
  width: min(86%, 520px);
  transform: translate(-50%, -50%);
}

.hybrid-line-cloud {
  width: min(70%, 430px);
  transform: translate(-50%, -50%) rotate(35deg);
}

.hybrid-line-identity {
  width: min(70%, 430px);
  transform: translate(-50%, -50%) rotate(-35deg);
}

.node {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  min-width: 92px;
  min-height: 54px;
  border: 1px solid rgba(89, 101, 75, 0.14);
  border-radius: 10px;
  padding: 0 18px;
  color: var(--moss);
  background: rgba(255, 253, 248, 0.86);
  box-shadow: 0 24px 58px rgba(75, 84, 62, 0.1);
  font-weight: 800;
}

.node.core {
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 148px;
  height: 148px;
  border-radius: 32px;
  text-align: center;
  font-size: 16px;
  line-height: 1.15;
  transform: translate(-50%, -50%);
  color: var(--paper);
  background: linear-gradient(135deg, var(--moss), var(--sage));
}

.node.onprem {
  left: 4%;
  top: 23%;
  color: var(--paper);
  background: #4b5542;
}

.node.ad {
  left: 14%;
  top: 52%;
  background: #fff8ea;
}

.node.datacenter {
  left: 7%;
  bottom: 13%;
}

.node.azure {
  right: 8%;
  top: 18%;
  color: var(--paper);
  background: var(--moss);
}

.node.m365 {
  right: 6%;
  top: 47%;
}

.node.ai {
  right: 20%;
  bottom: 15%;
  color: var(--paper);
  background: var(--sage);
}

.node.id {
  right: 28%;
  top: 8%;
  background: #fff8ea;
}

.section,
.profile {
  padding: 68px 0;
  border-top: 1px solid rgba(89, 101, 75, 0.13);
}

.section-heading {
  display: block;
  max-width: 720px;
  margin-bottom: 40px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.14;
  font-weight: 660;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.service-grid article {
  min-height: 210px;
  padding: 24px;
  border: 1px solid rgba(89, 101, 75, 0.12);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.82);
}

h3 {
  margin-bottom: 14px;
  font-size: 20px;
  line-height: 1.18;
}

.service-grid p,
.profile > p {
  color: var(--muted);
  line-height: 1.62;
}

.profile {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 46px;
}

.profile > p {
  margin-bottom: 0;
  font-size: 20px;
}

.resource-list,
.playground-grid {
  display: grid;
  gap: 14px;
}

.resource-list {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.resource-list a {
  display: block;
  min-height: 130px;
  padding: 24px;
  border: 1px solid rgba(89, 101, 75, 0.12);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.82);
  text-decoration: none;
  box-shadow: 0 0 0 rgba(75, 84, 62, 0);
  transform: translateY(0);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.resource-list a:hover,
.resource-list a:focus-visible {
  border-color: rgba(89, 101, 75, 0.28);
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 18px 42px rgba(75, 84, 62, 0.12);
  outline: none;
  transform: translateY(-4px);
}

.resource-list a:focus-visible {
  outline: 2px solid rgba(89, 101, 75, 0.38);
  outline-offset: 4px;
}

.resource-list span,
.resource-list strong {
  display: block;
}

.resource-list span {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.resource-list strong {
  font-size: 21px;
}

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

.tool-card {
  display: block;
  min-height: 196px;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid rgba(89, 101, 75, 0.13);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.84);
  text-decoration: none;
  box-shadow: 0 0 0 rgba(75, 84, 62, 0);
  transform: translateY(0);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background-color 180ms ease;
}

a.tool-card:hover,
a.tool-card:focus-visible {
  border-color: rgba(89, 101, 75, 0.28);
  box-shadow: 0 18px 42px rgba(75, 84, 62, 0.12);
  outline: none;
  transform: translateY(-4px);
}

a.tool-card:focus-visible {
  outline: 2px solid rgba(89, 101, 75, 0.38);
  outline-offset: 4px;
}

.attention-tool {
  position: relative;
  overflow: hidden;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.9), rgba(239, 231, 214, 0.7)),
    radial-gradient(circle at 88% 34%, rgba(143, 163, 123, 0.24), transparent 16rem);
}

.attention-tool::after {
  content: "";
  position: absolute;
  right: clamp(14px, 3vw, 30px);
  bottom: clamp(14px, 3vw, 30px);
  width: 112px;
  height: 112px;
  border: 1px solid rgba(89, 101, 75, 0.14);
  border-radius: 50%;
  box-shadow: inset 0 0 0 24px rgba(89, 101, 75, 0.035);
}

.tool-kicker,
.protected-badge,
.tool-card strong,
.tool-card p,
.tool-action {
  position: relative;
  z-index: 1;
  display: block;
}

.tool-kicker {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.attention-tool .tool-kicker {
  color: var(--muted);
}

.tool-card strong {
  max-width: 620px;
  font-size: clamp(23px, 2.8vw, 32px);
  line-height: 1.12;
}

.tool-card p {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.attention-tool p {
  color: var(--muted);
}

.agent-tool {
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.92), rgba(238, 243, 234, 0.78)),
    radial-gradient(circle at 88% 30%, rgba(89, 101, 75, 0.16), transparent 13rem);
}

.agent-story-tool {
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.9), rgba(239, 231, 214, 0.72)),
    radial-gradient(circle at 88% 28%, rgba(201, 130, 85, 0.16), transparent 13rem);
}

.agent-lab-tool,
.alfred-profile-tool,
.ai-foundry-tool {
  position: relative;
  overflow: hidden;
  padding-top: clamp(92px, 7vw, 104px);
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.92), rgba(238, 243, 234, 0.78)),
    linear-gradient(90deg, rgba(89, 101, 75, 0.09), transparent 45%),
    radial-gradient(circle at 88% 30%, rgba(201, 130, 85, 0.14), transparent 13rem);
}

.agent-lab-tool::after,
.alfred-profile-tool::after,
.ai-foundry-tool::after {
  content: "";
  position: absolute;
  right: clamp(18px, 3vw, 34px);
  bottom: clamp(16px, 3vw, 30px);
  width: 132px;
  height: 132px;
  border: 1px solid rgba(89, 101, 75, 0.1);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 253, 248, 0.52) 0 33%, transparent 34%),
    conic-gradient(from 135deg, rgba(89, 101, 75, 0.09), rgba(201, 130, 85, 0.16), rgba(89, 101, 75, 0.07));
  opacity: 0.78;
  transform: rotate(-10deg);
  transition: opacity 180ms ease, transform 180ms ease;
}

a.agent-lab-tool:hover::after,
a.agent-lab-tool:focus-visible::after,
a.alfred-profile-tool:hover::after,
a.alfred-profile-tool:focus-visible::after,
a.ai-foundry-tool:hover::after,
a.ai-foundry-tool:focus-visible::after {
  opacity: 1;
  transform: rotate(0deg) scale(1.04);
}

.alfred-profile-tool {
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.94), rgba(239, 231, 214, 0.74)),
    linear-gradient(90deg, rgba(201, 130, 85, 0.1), transparent 46%),
    radial-gradient(circle at 88% 30%, rgba(89, 101, 75, 0.14), transparent 13rem);
}

.ai-foundry-tool {
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.94), rgba(231, 239, 238, 0.82)),
    linear-gradient(90deg, rgba(52, 111, 118, 0.12), transparent 48%),
    radial-gradient(circle at 88% 30%, rgba(82, 126, 121, 0.18), transparent 13rem);
}

.protected-badge {
  position: absolute;
  top: clamp(18px, 2.4vw, 24px);
  right: clamp(18px, 2.4vw, 24px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  border: 1px solid rgba(180, 132, 42, 0.36);
  border-radius: 999px;
  padding: 7px 16px 7px 7px;
  color: #5f4b21;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.94), rgba(252, 244, 222, 0.86)),
    linear-gradient(135deg, rgba(184, 137, 50, 0.18), rgba(255, 253, 248, 0));
  box-shadow:
    0 14px 34px rgba(91, 70, 25, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.lock-medallion {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(95, 75, 33, 0.22);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.72), transparent 30%),
    linear-gradient(145deg, #f8d978, #c58a2e 58%, #8b651f);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 7px 16px rgba(126, 85, 20, 0.22);
}

.lock-icon {
  width: 22px;
  height: 22px;
  fill: rgba(255, 250, 232, 0.44);
  stroke: #4f421d;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tool-action {
  width: fit-content;
  margin-top: 26px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 6px;
  font-weight: 800;
}

.tool-action::after {
  content: " →";
  display: inline-block;
  transform: translateX(0);
  transition: transform 180ms ease;
}

a.tool-card:hover .tool-action::after,
a.tool-card:focus-visible .tool-action::after {
  transform: translateX(4px);
}

.tool-card-empty {
  color: rgba(48, 52, 40, 0.78);
  background: rgba(247, 244, 235, 0.66);
}

.tool-card-empty strong {
  font-size: clamp(22px, 2.4vw, 30px);
}

.product-strip {
  width: min(1280px, calc(100vw - clamp(32px, 5vw, 96px)));
  margin-left: 50%;
  padding-bottom: 92px;
  transform: translateX(-50%);
}

.product-carousel {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  border: 1px solid rgba(89, 101, 75, 0.12);
  border-radius: 8px;
  padding: clamp(26px, 4vw, 48px);
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.92), rgba(238, 243, 234, 0.76)),
    radial-gradient(circle at 100% 0, rgba(79, 126, 121, 0.12), transparent 22rem);
}

.project-app-reel {
  position: relative;
  min-height: 730px;
}

.project-app-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(250px, 0.42fr) minmax(680px, 1.58fr);
  gap: clamp(26px, 4vw, 54px);
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateX(34px);
}

.project-app-slide.is-home-ai {
  animation: app-home-cycle 120s infinite ease-in-out;
}

.project-app-slide.is-home-mobile {
  animation: app-home-mobile-cycle 120s infinite ease-in-out;
}

.project-app-slide.is-macos-performance {
  animation: app-macos-performance-cycle 120s infinite ease-in-out;
}

.project-app-slide.is-golf {
  animation: app-golf-cycle 120s infinite ease-in-out;
}

.project-app-slide.is-news {
  animation: app-news-cycle 120s infinite ease-in-out;
}

.product-carousel.is-interactive .project-app-slide {
  animation: none;
}

.product-carousel.is-interactive .project-app-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.portal-copy h3 {
  max-width: 560px;
  margin: 0 0 18px;
  font-size: clamp(34px, 4.5vw, 56px);
  font-weight: 660;
  line-height: 1.02;
  letter-spacing: 0;
}

.portal-copy p {
  max-width: 600px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.68;
}

.portal-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}

.portal-capabilities span,
.portal-screenshot-slide figcaption {
  border: 1px solid rgba(89, 101, 75, 0.17);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.72);
  color: var(--moss);
  font-size: 12px;
  font-weight: 850;
}

.portal-capabilities span {
  padding: 8px 11px;
}

.portal-stage {
  min-width: 0;
  perspective: 1600px;
}

.phone-stage {
  position: relative;
  display: grid;
  justify-items: center;
  min-width: 0;
  perspective: 1600px;
}

.mac-stage {
  position: relative;
  display: grid;
  justify-items: center;
  min-width: 0;
  perspective: 1600px;
}

.floating-browser {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 835px;
  aspect-ratio: 2434 / 1462;
  border: 1px solid rgba(89, 101, 75, 0.2);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.92), rgba(229, 222, 208, 0.9)),
    #ece5d8;
  box-shadow:
    0 34px 70px rgba(48, 52, 40, 0.18),
    0 10px 26px rgba(89, 101, 75, 0.12),
    inset 0 1px 0 rgba(255, 253, 248, 0.86);
  transform: rotateX(3deg) rotateY(-4deg) rotateZ(-0.7deg);
  transform-origin: center;
}

.floating-browser::after {
  content: "";
  position: absolute;
  z-index: 5;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(115deg, rgba(255, 253, 248, 0.32), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 12%);
  pointer-events: none;
}

.floating-browser::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: 7%;
  bottom: -11%;
  left: 10%;
  height: 28%;
  border-radius: 50%;
  background: rgba(48, 52, 40, 0.14);
  filter: blur(26px);
}

.browser-chrome {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 34px;
  border-bottom: 1px solid rgba(89, 101, 75, 0.12);
  padding: 0 14px;
  color: rgba(48, 52, 40, 0.58);
  background: rgba(255, 253, 248, 0.64);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.browser-dots {
  display: flex;
  gap: 7px;
}

.browser-dots span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(89, 101, 75, 0.28);
}

.browser-chrome strong {
  margin-left: auto;
  color: rgba(48, 52, 40, 0.62);
  font-size: 12px;
}

.browser-chrome > span {
  color: rgba(48, 52, 40, 0.42);
}

.portal-reel {
  position: absolute;
  top: 34px;
  right: 8px;
  bottom: 8px;
  left: 8px;
  display: flex;
  width: 500%;
  overflow: hidden;
  border-radius: 0 0 12px 12px;
  animation: portal-reel 30s infinite ease-in-out;
}

.phone-reel {
  position: absolute;
  inset: 10px;
  display: flex;
  width: 300%;
  overflow: hidden;
  border-radius: 38px;
  animation: phone-reel 18s infinite ease-in-out;
}

.phone-reel.is-news {
  width: 500%;
  animation: news-phone-reel 25s infinite ease-in-out;
}

.mac-window-reel {
  position: absolute;
  inset: 0;
  display: flex;
  width: 400%;
  overflow: hidden;
  animation: mac-window-reel 24s infinite ease-in-out;
}

.portal-screenshot-slide {
  flex: 0 0 20%;
  overflow: hidden;
  position: relative;
  margin: 0;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(239, 231, 214, 0.88)),
    repeating-linear-gradient(90deg, rgba(89, 101, 75, 0.055) 0 1px, transparent 1px 72px);
}

.phone-screenshot-slide {
  position: relative;
  flex: 0 0 33.333%;
  overflow: hidden;
  margin: 0;
  background: #f1f1f4;
}

.phone-reel.is-news .phone-screenshot-slide {
  flex-basis: 20%;
}

.mac-screenshot-slide {
  position: relative;
  flex: 0 0 25%;
  overflow: hidden;
  margin: 0;
  background: transparent;
}

.portal-shot-image {
  display: block;
  width: 100%;
  height: 100%;
}

.phone-shot-image {
  display: block;
  width: 100%;
  height: 100%;
}

.mac-shot-image {
  display: block;
  width: 100%;
  height: 100%;
}

.portal-shot-image img,
.phone-shot-image img,
.mac-shot-image img {
  display: block;
  width: 100%;
  height: 100%;
}

.portal-shot-image img {
  object-fit: contain;
  object-position: top center;
}

.phone-shot-image img {
  object-fit: cover;
  object-position: top center;
}

.mac-shot-image img {
  object-fit: cover;
  object-position: center;
}

.portal-screenshot-slide figcaption {
  position: absolute;
  z-index: 6;
  right: 18px;
  bottom: 18px;
  border: 1px solid rgba(89, 101, 75, 0.18);
  border-radius: 999px;
  padding: 8px 11px;
  color: var(--moss);
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 12px 24px rgba(48, 52, 40, 0.12);
  font-size: 12px;
  font-weight: 900;
}

.floating-phone {
  position: relative;
  overflow: hidden;
  width: min(100%, 308px);
  aspect-ratio: 1179 / 2556;
  border: 7px solid #1a1d18;
  border-radius: 48px;
  background:
    linear-gradient(145deg, #2b3028, #0f120f 45%, #343832),
    #10120f;
  box-shadow:
    0 34px 76px rgba(48, 52, 40, 0.22),
    0 12px 28px rgba(89, 101, 75, 0.14),
    inset 0 0 0 1px rgba(255, 253, 248, 0.18);
  transform: rotateX(2deg) rotateY(5deg) rotateZ(0.8deg);
  transform-origin: center;
}

.floating-phone::before {
  content: "";
  position: absolute;
  z-index: 4;
  top: 7px;
  left: 50%;
  width: 82px;
  height: 24px;
  border-radius: 0 0 16px 16px;
  background: #11130f;
  transform: translateX(-50%);
}

.floating-phone::after {
  content: "";
  position: absolute;
  z-index: 5;
  inset: 1px;
  border-radius: 40px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.24), transparent 22%),
    linear-gradient(270deg, rgba(255, 255, 255, 0.12), transparent 16%);
  pointer-events: none;
}

.phone-stage::before {
  content: "";
  position: absolute;
  bottom: 34px;
  left: 50%;
  z-index: -1;
  width: 280px;
  height: 56px;
  border-radius: 50%;
  background: rgba(48, 52, 40, 0.13);
  filter: blur(22px);
  transform: translateX(-50%);
}

.phone-screenshot-slide figcaption {
  position: absolute;
  z-index: 6;
  right: 16px;
  bottom: 16px;
  border: 1px solid rgba(38, 150, 69, 0.22);
  border-radius: 999px;
  padding: 7px 10px;
  color: #269645;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 24px rgba(48, 52, 40, 0.12);
  font-size: 11px;
  font-weight: 900;
}

.floating-mac-window {
  position: relative;
  overflow: hidden;
  width: min(100%, 660px);
  aspect-ratio: 1720 / 1532;
  border: 0;
  border-radius: 28px;
  background: transparent;
  filter:
    drop-shadow(0 34px 48px rgba(48, 52, 40, 0.18))
    drop-shadow(0 12px 18px rgba(89, 101, 75, 0.12));
  transform: rotateX(3deg) rotateY(-4deg) rotateZ(-0.8deg);
  transform-origin: center;
}

.floating-mac-window::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: 12%;
  bottom: -9%;
  left: 10%;
  height: 24%;
  border-radius: 50%;
  background: rgba(48, 52, 40, 0.14);
  filter: blur(24px);
}

.floating-mac-window::after {
  content: none;
  position: absolute;
  z-index: 5;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(120deg, rgba(255, 253, 248, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 18%);
  pointer-events: none;
}

.mac-stage::before {
  content: "";
  position: absolute;
  bottom: 12px;
  left: 50%;
  z-index: -1;
  width: min(560px, 76%);
  height: 54px;
  border-radius: 50%;
  background: rgba(48, 52, 40, 0.12);
  filter: blur(22px);
  transform: translateX(-50%);
}

.mac-screenshot-slide figcaption {
  position: absolute;
  z-index: 6;
  right: 54px;
  bottom: 46px;
  border: 1px solid rgba(89, 101, 75, 0.18);
  border-radius: 999px;
  padding: 8px 11px;
  color: var(--moss);
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 12px 24px rgba(48, 52, 40, 0.12);
  font-size: 12px;
  font-weight: 900;
}

.product-progress {
  position: absolute;
  right: clamp(26px, 4vw, 48px);
  bottom: clamp(24px, 4vw, 38px);
  left: clamp(26px, 4vw, 48px);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.product-progress button {
  position: relative;
  overflow: hidden;
  height: 3px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(89, 101, 75, 0.16);
  cursor: pointer;
}

.product-progress button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--moss);
  transform: scaleX(0);
  transform-origin: left;
  animation: product-progress 30s infinite linear;
}

.product-progress button:nth-child(2)::after {
  animation-delay: 6s;
}

.product-progress button:nth-child(3)::after {
  animation-delay: 12s;
}

.product-progress button:nth-child(4)::after {
  animation-delay: 18s;
}

.product-progress button:nth-child(5)::after {
  animation-delay: 24s;
}

.app-progress {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.app-progress button::after {
  animation: none;
  animation-delay: 0s;
}

.app-progress button:first-child::after {
  animation: app-progress-home 120s infinite linear;
}

.app-progress button:nth-child(2)::after {
  animation: app-progress-home-mobile 120s infinite linear;
}

.app-progress button:nth-child(3)::after {
  animation: app-progress-macos-performance 120s infinite linear;
}

.app-progress button:nth-child(4)::after {
  animation: app-progress-golf 120s infinite linear;
}

.app-progress button:nth-child(5)::after {
  animation: app-progress-news 120s infinite linear;
}

.product-carousel.is-interactive .app-progress button::after {
  animation: none;
}

.product-carousel.is-interactive .app-progress button.is-active::after {
  transform: scaleX(1);
}

.product-carousel.is-paused .portal-reel,
.product-carousel.is-paused .phone-reel,
.product-carousel.is-paused .phone-reel.is-news,
.product-carousel.is-paused .mac-window-reel {
  animation-play-state: paused;
}

.showcase-controls {
  position: absolute;
  right: clamp(26px, 4vw, 48px);
  bottom: clamp(44px, 5vw, 62px);
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.showcase-controls button {
  min-width: 38px;
  height: 34px;
  border: 1px solid rgba(89, 101, 75, 0.17);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--moss);
  background: rgba(255, 253, 248, 0.78);
  box-shadow: 0 10px 22px rgba(48, 52, 40, 0.08);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
}

.showcase-controls button:hover,
.showcase-controls button:focus-visible,
.product-progress button:hover,
.product-progress button:focus-visible {
  border-color: rgba(89, 101, 75, 0.34);
  outline: none;
  box-shadow: 0 12px 24px rgba(75, 84, 62, 0.12);
}

@keyframes product-progress {
  0%, 80%, 100% {
    transform: scaleX(0);
  }
  4%, 16% {
    transform: scaleX(1);
  }
}

@keyframes portal-reel {
  0%, 16% {
    transform: translateX(0);
  }
  20%, 36% {
    transform: translateX(-20%);
  }
  40%, 56% {
    transform: translateX(-40%);
  }
  60%, 76% {
    transform: translateX(-60%);
  }
  80%, 96% {
    transform: translateX(-80%);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes phone-reel {
  0%, 28% {
    transform: translateX(0);
  }
  33%, 61% {
    transform: translateX(-33.333%);
  }
  66%, 94% {
    transform: translateX(-66.666%);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes news-phone-reel {
  0%, 16% {
    transform: translateX(0);
  }
  20%, 36% {
    transform: translateX(-20%);
  }
  40%, 56% {
    transform: translateX(-40%);
  }
  60%, 76% {
    transform: translateX(-60%);
  }
  80%, 96% {
    transform: translateX(-80%);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes mac-window-reel {
  0%, 21% {
    transform: translateX(0);
  }
  25%, 46% {
    transform: translateX(-25%);
  }
  50%, 71% {
    transform: translateX(-50%);
  }
  75%, 96% {
    transform: translateX(-75%);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes app-home-cycle {
  0%, 18% {
    opacity: 1;
    transform: translateX(0);
  }
  22%, 100% {
    opacity: 0;
    transform: translateX(-34px);
  }
}

@keyframes app-home-mobile-cycle {
  0%, 18% {
    opacity: 0;
    transform: translateX(34px);
  }
  22%, 38% {
    opacity: 1;
    transform: translateX(0);
  }
  42%, 100% {
    opacity: 0;
    transform: translateX(-34px);
  }
}

@keyframes app-macos-performance-cycle {
  0%, 38% {
    opacity: 0;
    transform: translateX(34px);
  }
  42%, 58% {
    opacity: 1;
    transform: translateX(0);
  }
  62%, 100% {
    opacity: 0;
    transform: translateX(-34px);
  }
}

@keyframes app-golf-cycle {
  0%, 58% {
    opacity: 0;
    transform: translateX(34px);
  }
  62%, 78% {
    opacity: 1;
    transform: translateX(0);
  }
  82%, 100% {
    opacity: 0;
    transform: translateX(-34px);
  }
}

@keyframes app-news-cycle {
  0%, 78% {
    opacity: 0;
    transform: translateX(34px);
  }
  82%, 96% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-34px);
  }
}

@keyframes app-progress-home {
  0%, 18% {
    transform: scaleX(1);
  }
  22%, 100% {
    transform: scaleX(0);
  }
}

@keyframes app-progress-home-mobile {
  0%, 18% {
    transform: scaleX(0);
  }
  22%, 38% {
    transform: scaleX(1);
  }
  42%, 100% {
    transform: scaleX(0);
  }
}

@keyframes app-progress-macos-performance {
  0%, 38% {
    transform: scaleX(0);
  }
  42%, 58% {
    transform: scaleX(1);
  }
  62%, 100% {
    transform: scaleX(0);
  }
}

@keyframes app-progress-golf {
  0%, 58% {
    transform: scaleX(0);
  }
  62%, 78% {
    transform: scaleX(1);
  }
  82%, 100% {
    transform: scaleX(0);
  }
}

@keyframes app-progress-news {
  0%, 78% {
    transform: scaleX(0);
  }
  82%, 96% {
    transform: scaleX(1);
  }
  100% {
    transform: scaleX(0);
  }
}

@media (max-width: 900px) {
  .project-app-slide {
    grid-template-columns: 1fr;
    align-content: center;
  }

  .portal-copy h3,
  .portal-copy p {
    max-width: none;
  }

  .floating-browser {
    max-width: none;
  }

  .project-app-reel {
    min-height: 860px;
  }
}

@media (max-width: 640px) {
  .product-carousel {
    padding: 22px;
  }

  .portal-copy h3 {
    font-size: 34px;
  }

  .portal-copy p {
    font-size: 16px;
  }

  .portal-stage {
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .mac-stage {
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .floating-browser {
    width: 720px;
    transform: none;
  }

  .floating-mac-window {
    width: 640px;
    transform: none;
  }

  .floating-phone {
    width: 300px;
    transform: none;
  }

  .product-progress {
    right: 22px;
    bottom: 20px;
    left: 22px;
  }

  .showcase-controls {
    right: 22px;
    bottom: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-reel,
  .phone-reel,
  .phone-reel.is-news,
  .mac-window-reel,
  .project-app-slide,
  .product-progress button::after {
    animation: none;
  }

  .portal-reel,
  .mac-window-reel {
    transform: none;
  }

  .product-carousel {
    overflow: visible;
  }

  .project-app-reel {
    display: grid;
    gap: 42px;
    min-height: 0;
  }

  .project-app-slide,
  .project-app-slide.is-home-ai {
    position: relative;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .portal-reel,
  .phone-reel,
  .phone-reel.is-news,
  .mac-window-reel {
    width: 100%;
  }

  .portal-screenshot-slide,
  .phone-screenshot-slide,
  .phone-reel.is-news .phone-screenshot-slide,
  .mac-screenshot-slide {
    flex-basis: 100%;
  }

  .portal-screenshot-slide:not(:first-child),
  .phone-screenshot-slide:not(:first-child),
  .mac-screenshot-slide:not(:first-child),
  .product-progress,
  .showcase-controls {
    display: none;
  }
}

.agent-hero {
  max-width: 880px;
  padding: 42px 0 52px;
}

.agent-hero h1 {
  max-width: 820px;
  font-size: clamp(34px, 4.3vw, 56px);
}

.agent-hero p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.68;
}

.agent-simulator {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1.12fr);
  gap: 14px;
  align-items: stretch;
  margin-bottom: 70px;
}

.agent-controls,
.agent-stage,
.agent-story {
  border: 1px solid rgba(89, 101, 75, 0.13);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.86);
}

.agent-controls {
  padding: clamp(22px, 3vw, 32px);
}

.agent-form {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.agent-form label {
  display: grid;
  gap: 9px;
  padding: 15px;
  border: 1px solid rgba(89, 101, 75, 0.11);
  border-radius: 8px;
  background: rgba(247, 244, 235, 0.62);
}

.agent-form span,
.agent-form output {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.agent-form output {
  color: var(--moss);
}

.agent-form input[type="range"] {
  width: 100%;
  accent-color: var(--moss);
}

.agent-stage {
  --agent-score: 63;
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 680px;
  overflow: hidden;
  padding: clamp(22px, 3vw, 34px);
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.9), rgba(238, 243, 234, 0.74)),
    radial-gradient(circle at 72% 18%, rgba(143, 163, 123, 0.22), transparent 20rem);
}

.agent-score span,
.agent-score strong {
  display: block;
}

.agent-score span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.agent-score strong {
  margin-top: 8px;
  color: var(--moss);
  font-size: clamp(42px, 6vw, 72px);
  line-height: 0.95;
}

.agent-figure {
  position: relative;
  min-height: 500px;
  margin-top: 8px;
}

.agent-cable {
  position: absolute;
  left: 50%;
  top: 252px;
  width: 220px;
  height: 2px;
  border-radius: 999px;
  background: rgba(89, 101, 75, 0.2);
  transform-origin: left center;
  transition: opacity 220ms ease, transform 220ms ease, background-color 220ms ease;
}

.cable-a {
  transform: rotate(-118deg);
}

.cable-b {
  transform: rotate(-62deg);
}

.cable-c {
  transform: rotate(-24deg);
}

.cable-d {
  transform: rotate(24deg);
}

.cable-e {
  transform: rotate(62deg);
}

.cable-f {
  transform: rotate(118deg);
}

.agent-orbit {
  position: absolute;
  inset: 50px 76px;
  border: 1px solid rgba(89, 101, 75, calc(0.05 + var(--agent-score) * 0.002));
  border-radius: 50%;
  transform: rotate(-8deg);
}

.orbit-two {
  inset: 92px 120px;
  border-color: rgba(201, 130, 85, calc(0.03 + var(--agent-score) * 0.0015));
  transform: rotate(12deg);
}

.orbit-three {
  inset: 136px 170px;
  border-color: rgba(89, 101, 75, calc(0.02 + var(--agent-score) * 0.0013));
  transform: rotate(-28deg);
}

.agent-head {
  position: absolute;
  top: 102px;
  left: 50%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  width: 132px;
  height: 104px;
  border: 1px solid rgba(89, 101, 75, 0.18);
  border-radius: 32px;
  padding: 34px 28px;
  background: linear-gradient(135deg, var(--moss), var(--sage));
  box-shadow: 0 24px 58px rgba(75, 84, 62, 0.14);
  transform: translateX(-50%) rotate(calc((60 - var(--agent-score)) * 0.08deg));
  transition: transform 220ms ease;
}

.agent-head span {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--paper);
}

.agent-body {
  position: absolute;
  top: 232px;
  left: 50%;
  width: 96px;
  height: 86px;
  border-radius: 24px;
  background: rgba(89, 101, 75, 0.28);
  transform: translateX(-50%);
}

.agent-backpack {
  position: absolute;
  top: 246px;
  left: calc(50% + 48px);
  display: grid;
  place-items: center;
  width: 70px;
  height: 48px;
  border: 1px solid rgba(89, 101, 75, 0.15);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.82);
  color: var(--moss);
  font-size: 11px;
  font-weight: 900;
  transform: rotate(7deg);
  transition: opacity 220ms ease, transform 220ms ease;
}

.agent-arm {
  position: absolute;
  top: 246px;
  width: 136px;
  height: 14px;
  border-radius: 999px;
  background: rgba(89, 101, 75, 0.42);
  transform-origin: center;
  transition: opacity 220ms ease, transform 220ms ease;
}

.agent-leg {
  position: absolute;
  top: 306px;
  width: 18px;
  height: 98px;
  border-radius: 999px;
  background: rgba(89, 101, 75, 0.36);
  transform-origin: top center;
  transition: opacity 220ms ease, transform 220ms ease;
}

.leg-left {
  left: calc(50% - 38px);
  transform: rotate(8deg);
}

.leg-right {
  right: calc(50% - 38px);
  transform: rotate(-8deg);
}

.arm-left {
  left: calc(50% - 178px);
  transform: rotate(-24deg);
}

.arm-right {
  right: calc(50% - 178px);
  transform: rotate(24deg);
}

.agent-node {
  position: absolute;
  display: grid;
  place-items: center;
  min-width: 86px;
  min-height: 44px;
  border: 1px solid rgba(89, 101, 75, 0.14);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.88);
  color: var(--moss);
  font-size: 12px;
  font-weight: 850;
  transition: opacity 220ms ease, transform 220ms ease, filter 220ms ease;
}

.tool-search {
  top: 32px;
  left: 8%;
}

.tool-mail {
  top: 32px;
  right: 8%;
}

.tool-flow {
  bottom: 96px;
  left: 10%;
}

.tool-docs {
  right: 10%;
  bottom: 96px;
}

.tool-erp {
  top: 158px;
  left: 3%;
}

.tool-crm {
  top: 158px;
  right: 3%;
}

.tool-approval {
  left: 28%;
  bottom: 18px;
}

.tool-costs {
  right: 28%;
  bottom: 18px;
}

.agent-warning {
  position: absolute;
  z-index: 3;
  border: 1px solid rgba(201, 130, 85, 0.26);
  border-radius: 999px;
  padding: 8px 10px;
  color: #8c5738;
  background: rgba(255, 248, 234, 0.92);
  box-shadow: 0 14px 32px rgba(75, 84, 62, 0.08);
  font-size: 11px;
  font-weight: 900;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.warning-access {
  top: 204px;
  left: 8%;
}

.warning-source {
  top: 122px;
  right: 19%;
}

.warning-cost {
  right: 10%;
  bottom: 170px;
}

.warning-loop {
  left: 20%;
  bottom: 152px;
}

.agent-status {
  border-top: 1px solid rgba(89, 101, 75, 0.12);
  padding-top: 22px;
}

.agent-status strong {
  display: block;
  color: var(--ink);
  font-size: clamp(21px, 2.2vw, 28px);
  line-height: 1.16;
}

.agent-status p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.58;
}

.agent-stage.is-fragile .agent-node {
  filter: grayscale(0.35);
}

.agent-stage.is-fragile .agent-cable {
  opacity: 0.42;
  background: rgba(201, 130, 85, 0.3);
}

.agent-stage.is-fragile .tool-flow {
  transform: translateY(28px) rotate(-8deg);
  opacity: 0.54;
}

.agent-stage.is-fragile .tool-approval {
  transform: translateY(34px) rotate(6deg);
  opacity: 0.58;
}

.agent-stage.is-fragile .tool-costs {
  transform: translateY(20px) rotate(-5deg);
}

.agent-stage.is-fragile .arm-right {
  transform: rotate(44deg) translateY(14px);
}

.agent-stage.is-fragile .leg-right {
  transform: rotate(-28deg) translate(12px, 10px);
}

.agent-stage.is-fragile .warning-access,
.agent-stage.is-fragile .warning-source {
  opacity: 1;
  transform: translateY(0);
}

.agent-stage.issue-permissions .warning-access,
.agent-stage.issue-data .warning-source,
.agent-stage.issue-cost .warning-cost,
.agent-stage.issue-process .warning-loop,
.agent-stage.issue-monitoring .warning-loop,
.agent-stage.issue-review .warning-loop {
  opacity: 1;
  transform: translateY(0);
}

.agent-stage.issue-data .tool-search,
.agent-stage.issue-data .tool-docs {
  transform: translateY(24px) rotate(-5deg);
  opacity: 0.56;
}

.agent-stage.issue-permissions .tool-mail,
.agent-stage.issue-permissions .tool-erp,
.agent-stage.issue-permissions .tool-crm {
  transform: translateY(28px) rotate(7deg);
  opacity: 0.52;
}

.agent-stage.issue-process .tool-flow {
  transform: translateY(38px) rotate(-12deg);
  opacity: 0.48;
}

.agent-stage.issue-review .tool-approval,
.agent-stage.issue-review .arm-right {
  transform: translateY(48px) rotate(18deg);
  opacity: 0.44;
}

.agent-stage.issue-monitoring .agent-backpack,
.agent-stage.issue-monitoring .orbit-three {
  opacity: 0.34;
  transform: translate(20px, 42px) rotate(22deg);
}

.agent-stage.issue-cost .tool-costs {
  transform: translate(24px, 58px) rotate(18deg);
  opacity: 0.52;
}

.agent-stage.issue-cost .warning-cost {
  transform: translateY(0) rotate(4deg);
}

.agent-stage.is-broken .agent-orbit,
.agent-stage.is-broken .tool-docs,
.agent-stage.is-broken .tool-approval {
  opacity: 0.22;
}

.agent-stage.is-broken .agent-cable {
  opacity: 0.2;
}

.agent-stage.is-broken .cable-a {
  transform: rotate(-140deg) scaleX(0.48);
}

.agent-stage.is-broken .cable-b {
  transform: rotate(-78deg) scaleX(0.38);
}

.agent-stage.is-broken .cable-e {
  transform: rotate(86deg) scaleX(0.42);
}

.agent-stage.is-broken .agent-head {
  transform: translateX(-50%) rotate(-9deg);
}

.agent-stage.is-broken .agent-backpack {
  transform: translate(34px, 74px) rotate(28deg);
  opacity: 0.44;
}

.agent-stage.is-broken .arm-left {
  transform: rotate(-62deg) translate(-24px, 58px);
  opacity: 0.34;
}

.agent-stage.is-broken .arm-right {
  transform: rotate(70deg) translate(24px, 58px);
  opacity: 0.3;
}

.agent-stage.is-broken .leg-left {
  transform: rotate(38deg) translate(-18px, 20px);
  opacity: 0.44;
}

.agent-stage.is-broken .leg-right {
  transform: rotate(-54deg) translate(28px, 36px);
  opacity: 0.32;
}

.agent-stage.is-broken .tool-mail {
  transform: translate(28px, 44px) rotate(9deg);
  opacity: 0.52;
}

.agent-stage.is-broken .tool-erp {
  transform: translate(-18px, 72px) rotate(-12deg);
  opacity: 0.38;
}

.agent-stage.is-broken .tool-crm {
  transform: translate(18px, 66px) rotate(12deg);
  opacity: 0.42;
}

.agent-stage.is-broken .tool-costs {
  transform: translate(22px, 54px) rotate(18deg);
  opacity: 0.5;
}

.agent-stage.is-broken .warning-access,
.agent-stage.is-broken .warning-source,
.agent-stage.is-broken .warning-cost,
.agent-stage.is-broken .warning-loop {
  opacity: 1;
  transform: translateY(0);
}

.agent-stage.is-broken .warning-loop {
  transform: translateY(0) rotate(-4deg);
}

.agent-story {
  margin-bottom: 72px;
  padding: clamp(22px, 3vw, 32px);
}

.story-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.story-tabs button {
  min-height: 40px;
  border: 1px solid rgba(89, 101, 75, 0.18);
  border-radius: 7px;
  padding: 0 14px;
  color: var(--moss);
  background: rgba(247, 244, 235, 0.68);
  box-shadow: 0 0 0 rgba(75, 84, 62, 0);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  transform: translateY(0);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.story-tabs button:hover,
.story-tabs button:focus-visible {
  border-color: rgba(89, 101, 75, 0.3);
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 14px 30px rgba(75, 84, 62, 0.12);
  outline: none;
  transform: translateY(-2px);
}

.story-tabs button:focus-visible {
  outline: 2px solid rgba(89, 101, 75, 0.38);
  outline-offset: 4px;
}

.story-tabs button.is-active {
  color: var(--paper);
  background: var(--moss);
}

.story-tabs button.is-active:hover,
.story-tabs button.is-active:focus-visible {
  background: #4f5c42;
}

.story-board {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  min-height: 520px;
  border: 1px solid rgba(89, 101, 75, 0.1);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 44px);
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.82), rgba(247, 244, 235, 0.62)),
    radial-gradient(circle at 24% 18%, rgba(143, 163, 123, 0.18), transparent 20rem);
}

.story-visual {
  position: relative;
  min-height: 430px;
}

.story-agent-head,
.story-agent-core,
.story-chip,
.story-warning {
  position: absolute;
  transition: transform 260ms ease, opacity 260ms ease, filter 260ms ease;
}

.story-agent-head {
  top: 60px;
  left: 50%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  width: 116px;
  height: 92px;
  border-radius: 28px;
  padding: 30px 25px;
  background: linear-gradient(135deg, var(--moss), var(--sage));
  transform: translateX(-50%);
}

.story-agent-head span {
  border-radius: 50%;
  background: var(--paper);
}

.story-agent-core {
  top: 188px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 112px;
  height: 82px;
  border: 1px solid rgba(89, 101, 75, 0.13);
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.88);
  color: var(--moss);
  font-weight: 900;
  transform: translateX(-50%);
}

.story-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.story-path {
  stroke: rgba(89, 101, 75, 0.28);
  stroke-width: 3;
  stroke-linecap: round;
  transition: opacity 260ms ease, transform 260ms ease, stroke 260ms ease, stroke-dasharray 260ms ease;
  transform-box: fill-box;
  transform-origin: center;
}

.story-chip {
  display: grid;
  place-items: center;
  min-width: 74px;
  min-height: 42px;
  border: 1px solid rgba(89, 101, 75, 0.13);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.9);
  color: var(--moss);
  font-size: 12px;
  font-weight: 900;
}

.chip-a {
  top: 56px;
  left: 7%;
}

.chip-b {
  top: 56px;
  right: 7%;
}

.chip-c {
  top: 230px;
  left: 4%;
}

.chip-d {
  top: 230px;
  right: 4%;
}

.chip-e {
  bottom: 46px;
  left: 14%;
}

.chip-f {
  right: 14%;
  bottom: 46px;
}

.story-warning {
  z-index: 3;
  border: 1px solid rgba(201, 130, 85, 0.28);
  border-radius: 999px;
  padding: 8px 10px;
  color: #8c5738;
  background: rgba(255, 248, 234, 0.94);
  box-shadow: 0 16px 34px rgba(75, 84, 62, 0.1);
  font-size: 11px;
  font-weight: 900;
  opacity: 0;
  transform: translateY(8px);
}

.story-warning-access {
  top: 134px;
  left: 8%;
}

.story-warning-owner {
  top: 142px;
  right: 8%;
}

.story-warning-cost {
  right: 11%;
  bottom: 186px;
}

.story-warning-loop {
  left: 15%;
  bottom: 176px;
}

.story-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.1;
}

.story-copy p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.64;
}

.story-copy ul {
  margin: 22px 0;
  padding-left: 19px;
  color: var(--muted);
  line-height: 1.7;
}

.story-copy strong {
  display: block;
  max-width: 620px;
  color: var(--moss);
  font-size: clamp(20px, 2.1vw, 28px);
  line-height: 1.22;
}

.story-board[data-phase="reality"] .story-agent-head {
  transform: translateX(-50%) rotate(-5deg);
}

.story-board[data-phase="reality"] .story-path {
  opacity: 0.68;
  stroke: rgba(201, 130, 85, 0.58);
}

.story-board[data-phase="reality"] .path-d,
.story-board[data-phase="reality"] .path-e {
  opacity: 0.32;
  stroke-dasharray: 14 11;
  transform: translateY(12px) scaleX(0.84);
}

.story-board[data-phase="reality"] .chip-c {
  transform: translateY(26px) rotate(-4deg);
}

.story-board[data-phase="reality"] .chip-d {
  transform: translateY(20px) rotate(4deg);
}

.story-board[data-phase="reality"] .chip-e,
.story-board[data-phase="reality"] .chip-f {
  transform: translateY(18px) rotate(4deg);
  opacity: 0.68;
}

.story-board[data-phase="reality"] .story-warning-access,
.story-board[data-phase="reality"] .story-warning-owner {
  opacity: 1;
  transform: translateY(0);
}

.story-board[data-phase="collapse"] .story-agent-head {
  filter: grayscale(0.35);
  transform: translateX(-50%) translate(-24px, 18px) rotate(-18deg);
}

.story-board[data-phase="collapse"] .story-agent-core {
  transform: translateX(-50%) translate(18px, 58px) rotate(10deg);
  opacity: 0.72;
}

.story-board[data-phase="collapse"] .story-path {
  opacity: 0.18;
  stroke: rgba(201, 130, 85, 0.72);
  stroke-dasharray: 16 13;
}

.story-board[data-phase="collapse"] .path-a {
  transform: translate(-24px, 42px) rotate(-18deg) scaleX(0.52);
}

.story-board[data-phase="collapse"] .path-b {
  transform: translate(24px, 42px) rotate(18deg) scaleX(0.5);
}

.story-board[data-phase="collapse"] .path-c {
  transform: translate(-42px, 64px) rotate(10deg) scaleX(0.44);
}

.story-board[data-phase="collapse"] .path-d {
  transform: translate(38px, 64px) rotate(-10deg) scaleX(0.42);
}

.story-board[data-phase="collapse"] .path-e {
  transform: translate(-28px, 84px) rotate(18deg) scaleX(0.4);
}

.story-board[data-phase="collapse"] .path-f {
  transform: translate(30px, 84px) rotate(-18deg) scaleX(0.4);
}

.story-board[data-phase="collapse"] .chip-a {
  transform: translate(-24px, 92px) rotate(-18deg);
  opacity: 0.5;
}

.story-board[data-phase="collapse"] .chip-b {
  transform: translate(30px, 86px) rotate(16deg);
  opacity: 0.54;
}

.story-board[data-phase="collapse"] .chip-c {
  opacity: 0.36;
  transform: translate(-32px, 92px) rotate(-12deg);
}

.story-board[data-phase="collapse"] .chip-d {
  opacity: 0.44;
  transform: translate(38px, 88px) rotate(18deg);
}

.story-board[data-phase="collapse"] .chip-e {
  transform: translate(-20px, 114px) rotate(-20deg);
  opacity: 0.36;
}

.story-board[data-phase="collapse"] .chip-f {
  transform: translate(24px, 112px) rotate(24deg);
  opacity: 0.38;
}

.story-board[data-phase="collapse"] .story-warning-access,
.story-board[data-phase="collapse"] .story-warning-owner,
.story-board[data-phase="collapse"] .story-warning-cost,
.story-board[data-phase="collapse"] .story-warning-loop {
  opacity: 1;
  transform: translateY(0);
}

.story-board[data-phase="collapse"] .story-warning-loop {
  transform: translateY(0) rotate(-6deg);
}

.calculator-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: 42px 0 52px;
}

.calculator-hero h1 {
  max-width: 700px;
  font-size: clamp(34px, 4.3vw, 56px);
}

.calculator-hero-copy > p:not(.eyebrow) {
  max-width: 700px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.68;
}

.calculator-hero-image {
  margin: 0;
}

.calculator-hero-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(89, 101, 75, 0.13);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 22px 52px rgba(75, 84, 62, 0.09);
}

.result-primary span,
.result-grid span {
  display: block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.calculator-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.62fr);
  gap: 14px;
  align-items: stretch;
  margin-bottom: 62px;
}

.calculator-panel,
.results-panel {
  border: 1px solid rgba(89, 101, 75, 0.13);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.86);
}

.calculator-panel {
  padding: clamp(22px, 3vw, 32px);
}

.calculator-heading h2 {
  font-size: clamp(26px, 2.7vw, 34px);
}

.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 30px;
}

.preset-row button {
  min-height: 40px;
  border: 1px solid rgba(89, 101, 75, 0.18);
  border-radius: 7px;
  padding: 0 14px;
  color: var(--moss);
  background: rgba(247, 244, 235, 0.7);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.calculator-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.calculator-form label {
  display: grid;
  gap: 10px;
  min-height: 112px;
  padding: 16px;
  border: 1px solid rgba(89, 101, 75, 0.11);
  border-radius: 8px;
  background: rgba(247, 244, 235, 0.62);
}

.calculator-form label span,
.calculator-form output {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.calculator-form output {
  color: var(--moss);
}

.calculator-form input[type="range"] {
  width: 100%;
  accent-color: var(--moss);
}

.results-panel {
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 3vw, 32px);
  color: var(--ink);
  background:
    linear-gradient(150deg, rgba(255, 253, 248, 0.88), rgba(239, 231, 214, 0.72)),
    radial-gradient(circle at 84% 12%, rgba(143, 163, 123, 0.22), transparent 18rem);
}

.results-panel .eyebrow {
  color: var(--muted);
}

.result-primary {
  margin-top: 24px;
}

.result-primary span,
.result-grid span {
  color: var(--muted);
}

.result-primary strong {
  display: block;
  margin-top: 12px;
  color: var(--moss);
  font-size: clamp(34px, 4.8vw, 56px);
  line-height: 0.96;
}

.result-primary p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin-top: 28px;
  border: 1px solid rgba(89, 101, 75, 0.12);
  background: rgba(89, 101, 75, 0.12);
}

.result-grid div {
  padding: 16px;
  background: rgba(255, 253, 248, 0.58);
}

.result-grid strong,
.result-grid small {
  display: block;
}

.result-grid strong {
  margin-top: 10px;
  color: var(--ink);
  font-size: 23px;
}

.result-grid small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

footer {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  width: min(1040px, calc(100vw - clamp(48px, 8vw, 128px)));
  margin: 0 auto;
  padding: 34px 0 46px;
  color: var(--muted);
  border-top: 1px solid rgba(89, 101, 75, 0.13);
  font-size: 14px;
}

footer a {
  text-decoration: none;
}

.footer-meta,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.footer-meta span + span::before {
  content: "- ";
}

.footer-disclaimer {
  max-width: 880px;
  color: rgba(111, 115, 99, 0.82);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

.legal {
  max-width: 760px;
  min-height: 58vh;
}

.legal h1 {
  font-size: clamp(42px, 6vw, 72px);
}

.legal p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.lab-hero {
  padding: 42px 0 52px;
}

.lab-hero h1 {
  max-width: 820px;
  font-size: clamp(34px, 4.3vw, 56px);
}

.lab-hero p:not(.eyebrow),
.future-message p,
.result-card p,
.contract-panel p {
  color: var(--muted);
  line-height: 1.64;
}

.alfred-story-section .section-heading,
.alfred-engine-section .section-heading {
  max-width: 780px;
}

.alfred-story-grid {
  display: grid;
  gap: 18px;
}

.alfred-first-person {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 270px;
  border: 1px solid rgba(89, 101, 75, 0.16);
  border-radius: 10px;
  background:
    radial-gradient(circle at 88% 10%, rgba(201, 130, 85, 0.18), transparent 170px),
    linear-gradient(145deg, rgba(231, 236, 224, 0.96), rgba(255, 253, 248, 0.96));
  box-shadow: 0 22px 58px rgba(75, 84, 62, 0.08);
  overflow: hidden;
}

.alfred-first-person figure {
  min-width: 0;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
}

.alfred-first-person img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 270px;
  object-fit: cover;
  object-position: 25% center;
}

.alfred-first-person-copy {
  display: flex;
  align-items: center;
  padding: clamp(24px, 3.2vw, 36px);
}

.alfred-first-person-copy p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(17px, 1.65vw, 20px);
  line-height: 1.56;
  letter-spacing: -0.02em;
}

.alfred-principles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.alfred-principles article,
.alfred-work-grid article {
  border: 1px solid rgba(89, 101, 75, 0.13);
  border-radius: 9px;
  background: rgba(255, 253, 248, 0.82);
}

.alfred-principles article {
  min-height: 215px;
  padding: 24px;
}

.alfred-principles article > span {
  display: block;
  margin-bottom: 26px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.alfred-principles h3,
.alfred-work-grid h3 {
  margin-bottom: 10px;
}

.alfred-principles p,
.alfred-work-grid p,
.alfred-engine-section .section-heading > p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.58;
}

.alfred-engine-section {
  border-top: 0;
  padding-top: 20px;
}

.alfred-engine {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(89, 101, 75, 0.14);
  border-radius: 12px;
  padding: clamp(18px, 3vw, 30px);
  background:
    linear-gradient(145deg, rgba(239, 231, 214, 0.58), rgba(255, 253, 248, 0.94)),
    var(--paper);
  box-shadow: 0 22px 58px rgba(75, 84, 62, 0.07);
}

.alfred-engine > i {
  color: rgba(89, 101, 75, 0.52);
  font-size: 22px;
  font-style: normal;
}

.alfred-engine-node {
  min-height: 154px;
  border: 1px solid rgba(89, 101, 75, 0.13);
  border-radius: 9px;
  padding: 20px;
  background: rgba(255, 253, 248, 0.88);
}

.alfred-engine-node.is-core {
  border-color: rgba(89, 101, 75, 0.25);
  color: var(--paper);
  background: linear-gradient(145deg, #405f50, #66785a);
  box-shadow: 0 18px 38px rgba(48, 52, 40, 0.17);
}

.alfred-engine-node small,
.alfred-engine-node strong,
.alfred-engine-node span {
  display: block;
}

.alfred-engine-node small {
  margin-bottom: 20px;
  color: var(--clay);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.alfred-engine-node.is-core small,
.alfred-engine-node.is-core span {
  color: rgba(255, 253, 248, 0.76);
}

.alfred-engine-node strong {
  font-size: 18px;
  line-height: 1.18;
}

.alfred-engine-node span {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.46;
}

.alfred-work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.alfred-work-grid article {
  min-height: 235px;
  padding: 24px;
}

.alfred-work-grid article > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 28px;
  border-radius: 50%;
  color: var(--moss);
  background: rgba(143, 163, 123, 0.14);
  font-size: 21px;
  font-weight: 800;
}

.alfred-trust-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.74fr) minmax(0, 1.26fr);
  gap: clamp(34px, 6vw, 72px);
  align-items: start;
}

.alfred-trust-copy {
  position: sticky;
  top: 34px;
}

.alfred-trust-copy h2 {
  margin-bottom: 20px;
}

.alfred-trust-copy > p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.67;
}

.alfred-guardrails {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(89, 101, 75, 0.15);
}

.alfred-guardrails li {
  display: grid;
  grid-template-columns: minmax(145px, 0.42fr) minmax(0, 1fr);
  gap: 22px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(89, 101, 75, 0.15);
}

.alfred-guardrails strong {
  color: var(--moss);
  line-height: 1.4;
}

.alfred-guardrails span {
  color: var(--muted);
  line-height: 1.6;
}

.alfred-closing {
  margin: 38px 0 82px;
  border: 1px solid rgba(89, 101, 75, 0.16);
  border-radius: 12px;
  padding: clamp(34px, 6vw, 68px);
  background:
    radial-gradient(circle at 92% 10%, rgba(201, 130, 85, 0.18), transparent 210px),
    linear-gradient(145deg, rgba(222, 231, 217, 0.92), rgba(255, 253, 248, 0.96));
  box-shadow: 0 26px 68px rgba(75, 84, 62, 0.08);
}

.alfred-closing > p:not(.eyebrow) {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 18px;
}

.alfred-closing h2 {
  max-width: 830px;
  font-size: clamp(31px, 4.2vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.foundry-hero {
  position: relative;
  overflow: hidden;
}

.foundry-hero::after {
  content: "";
  position: absolute;
  right: clamp(24px, 6vw, 76px);
  bottom: clamp(18px, 4vw, 48px);
  width: clamp(170px, 21vw, 280px);
  aspect-ratio: 1;
  border: 1px solid rgba(52, 111, 118, 0.16);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 253, 248, 0.68) 0 28%, transparent 29%),
    conic-gradient(from 120deg, rgba(52, 111, 118, 0.1), rgba(201, 130, 85, 0.18), rgba(89, 101, 75, 0.1), rgba(52, 111, 118, 0.1));
  opacity: 0.78;
}

.foundry-overview {
  margin: 0 auto 68px;
  width: 100%;
}

.foundry-panel,
.foundry-module-grid article {
  border: 1px solid rgba(89, 101, 75, 0.13);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.86);
  box-shadow: 0 22px 58px rgba(75, 84, 62, 0.08);
}

.foundry-panel {
  padding: clamp(22px, 3vw, 32px);
}

.foundry-stack-heading {
  max-width: 720px;
  margin-bottom: 26px;
}

.foundry-stack-card {
  position: relative;
}

.foundry-module-grid span {
  display: inline-flex;
  margin-bottom: 18px;
  color: #346f76;
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.foundry-module-grid strong {
  display: block;
  font-size: 19px;
  line-height: 1.18;
}

.foundry-module-grid p {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.55;
}

.foundry-stack-card ul {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foundry-stack-card li {
  position: relative;
  min-height: 112px;
  border: 1px solid rgba(89, 101, 75, 0.13);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.92), rgba(236, 242, 239, 0.76));
  box-shadow: 0 18px 44px rgba(75, 84, 62, 0.07);
  overflow: hidden;
}

.foundry-stack-card li::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -34px;
  width: 74px;
  aspect-ratio: 1;
  border: 1px solid rgba(52, 111, 118, 0.14);
  border-radius: 50%;
  background: rgba(52, 111, 118, 0.06);
}

.foundry-stack-card li strong {
  display: block;
  font-size: 18px;
  line-height: 1.18;
}

.foundry-stack-card li small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.48;
}

.foundry-lab-modules {
  padding-top: 0;
}

.foundry-module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.foundry-module-grid article {
  min-height: 210px;
  padding: clamp(18px, 2.4vw, 24px);
}

.foundry-live-note {
  padding-top: clamp(12px, 2vw, 22px);
}

.foundry-disclaimer {
  max-width: 1040px;
  margin: 0 auto;
  border-top: 1px solid rgba(89, 101, 75, 0.12);
  color: var(--muted);
}

.foundry-disclaimer summary {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 12px 0;
  color: var(--moss);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.foundry-disclaimer summary::-webkit-details-marker {
  display: none;
}

.foundry-disclaimer summary::before {
  content: "+";
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(89, 101, 75, 0.16);
  border-radius: 50%;
  color: var(--moss);
  font-size: 13px;
  line-height: 1;
}

.foundry-disclaimer[open] summary::before {
  content: "-";
}

.foundry-disclaimer p {
  max-width: 760px;
  margin: 0 0 6px 28px;
  font-size: 14px;
  line-height: 1.65;
}

.foundry-console-section {
  padding-top: 0;
}

.foundry-console {
  border: 1px solid rgba(89, 101, 75, 0.13);
  border-radius: 8px;
  padding: clamp(16px, 2.4vw, 22px);
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.94), rgba(236, 242, 239, 0.84)),
    radial-gradient(circle at 92% 20%, rgba(52, 111, 118, 0.13), transparent 15rem);
  box-shadow: 0 22px 58px rgba(75, 84, 62, 0.08);
}

.foundry-console-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.foundry-console-tabs button,
.foundry-console-form button {
  min-height: 40px;
  border: 1px solid rgba(89, 101, 75, 0.16);
  border-radius: 999px;
  padding: 0 16px;
  color: var(--moss);
  background: rgba(255, 253, 248, 0.78);
  font-weight: 850;
  cursor: pointer;
}

.foundry-console-tabs button.is-active,
.foundry-console-form button {
  color: var(--paper);
  background: var(--moss);
}

.foundry-console-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
}

.foundry-console-form {
  display: none;
  align-self: start;
  border: 1px solid rgba(89, 101, 75, 0.13);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 253, 248, 0.76);
}

.foundry-console-form.is-active {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.foundry-input-panel {
  display: grid;
  gap: 12px;
  align-content: start;
}

.foundry-flow-note {
  align-self: stretch;
  display: grid;
  align-content: center;
  border: 1px solid rgba(121, 116, 91, 0.14);
  border-radius: 8px;
  padding: clamp(18px, 2.8vw, 34px);
  background:
    radial-gradient(circle at 90% 12%, rgba(214, 232, 229, 0.72), transparent 34%),
    linear-gradient(135deg, rgba(255, 253, 248, 0.94), rgba(247, 244, 234, 0.84));
  box-shadow: inset 0 1px 0 rgba(255, 253, 248, 0.8);
}

.foundry-flow-note strong {
  display: block;
  margin-bottom: 18px;
  color: var(--ink);
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.1;
  text-align: center;
}

.foundry-flow-note ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.38;
  list-style: none;
  counter-reset: foundry-flow;
}

.foundry-flow-note li {
  position: relative;
  padding: 10px 12px 10px 46px;
  border: 1px solid rgba(89, 101, 75, 0.08);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.56);
}

.foundry-flow-note li::before {
  counter-increment: foundry-flow;
  content: counter(foundry-flow, decimal-leading-zero);
  position: absolute;
  top: 10px;
  left: 12px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.foundry-examples {
  display: grid;
  gap: 8px;
}

.foundry-examples > span {
  color: var(--moss);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.foundry-example-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.foundry-example-strip button,
.foundry-form-actions button[data-foundry-clear] {
  min-height: 34px;
  padding: 0 12px;
  color: var(--moss);
  background: rgba(255, 253, 248, 0.78);
  font-size: 13px;
}

.foundry-example-strip button {
  border-color: rgba(31, 111, 122, 0.22);
  color: var(--teal);
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.94), rgba(230, 242, 239, 0.82));
  box-shadow: 0 8px 18px rgba(75, 84, 62, 0.06);
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease, background 170ms ease;
}

.foundry-example-strip button:hover,
.foundry-example-strip button:focus-visible {
  border-color: rgba(31, 111, 122, 0.38);
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.98), rgba(218, 237, 233, 0.9));
  box-shadow: 0 12px 24px rgba(75, 84, 62, 0.1);
  outline: none;
  transform: translateY(-2px);
}

.foundry-form-actions button[data-foundry-clear]:hover,
.foundry-form-actions button[data-foundry-clear]:focus-visible {
  border-color: rgba(89, 101, 75, 0.3);
  background: rgba(255, 253, 248, 0.96);
  outline: none;
}

.foundry-console-form label {
  color: var(--moss);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.foundry-console-form textarea {
  width: 100%;
  height: 146px;
  min-height: 146px;
  border: 1px solid rgba(89, 101, 75, 0.16);
  border-radius: 8px;
  padding: 14px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.96);
  font: inherit;
  line-height: 1.55;
  resize: vertical;
}

.foundry-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.foundry-console-form > button,
.foundry-form-actions {
  justify-self: start;
}

.foundry-console-form button:disabled {
  opacity: 0.62;
  cursor: wait;
}

.foundry-console-result {
  min-width: 0;
  min-height: 280px;
  border: 1px solid rgba(89, 101, 75, 0.13);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 253, 248, 0.86);
}

.foundry-result-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.foundry-result-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.foundry-result-body {
  color: var(--muted);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.foundry-result-body > p {
  color: var(--ink);
  font-size: 17px;
}

.foundry-route-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.foundry-route-flow li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--muted);
  text-align: center;
  opacity: 0.58;
  transition: opacity 180ms ease, transform 180ms ease;
}

.foundry-route-flow li + li::before {
  content: "";
  position: absolute;
  top: 24px;
  left: -18px;
  width: 14px;
  height: 14px;
  border-top: 2px solid rgba(89, 101, 75, 0.28);
  border-right: 2px solid rgba(89, 101, 75, 0.28);
  transform: rotate(45deg);
}

.foundry-route-flow i {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(89, 101, 75, 0.18);
  border-radius: 50%;
  color: var(--moss);
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 10px 22px rgba(75, 84, 62, 0.08);
  font-style: normal;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0;
}

.foundry-route-flow span,
.foundry-route-flow strong {
  display: block;
}

.foundry-route-flow span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.foundry-route-flow strong {
  color: var(--moss);
  font-size: 12px;
  line-height: 1.15;
}

.foundry-route-flow li.is-active,
.foundry-route-flow li.is-complete {
  opacity: 1;
}

.foundry-route-flow li.is-active {
  transform: translateY(-4px);
}

.foundry-route-flow li.is-active i {
  border-color: rgba(201, 130, 85, 0.38);
  background: rgba(255, 248, 234, 0.96);
  animation: foundryRoutePulse 1.25s ease-in-out infinite;
}

.foundry-route-flow li.is-complete i,
.foundry-route-flow.is-complete li i {
  border-color: rgba(89, 101, 75, 0.34);
  color: var(--paper);
  background: var(--moss);
  box-shadow: 0 10px 22px rgba(75, 84, 62, 0.12);
  animation: none;
}

.foundry-route-flow.is-complete li.is-selected {
  opacity: 1;
  transform: translateY(-3px);
}

.foundry-route-flow.is-complete li.is-selected i {
  border-color: rgba(89, 101, 75, 0.34);
  background: var(--moss);
}

@keyframes foundryRoutePulse {
  0%,
  100% {
    border-color: rgba(89, 101, 75, 0.13);
    box-shadow: 0 0 0 rgba(75, 84, 62, 0);
    transform: translateY(0);
  }

  50% {
    box-shadow: 0 0 0 7px rgba(201, 130, 85, 0.1);
    transform: scale(1.05);
  }
}

.foundry-trace {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.foundry-trace li {
  border: 1px solid rgba(89, 101, 75, 0.12);
  border-radius: 8px;
  padding: 10px;
  background: rgba(236, 242, 239, 0.38);
}

.foundry-trace span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  border: 1px solid rgba(52, 111, 118, 0.16);
  border-radius: 999px;
  color: #346f76;
  background: rgba(255, 253, 248, 0.74);
  font-size: 11px;
  font-weight: 850;
}

.foundry-trace strong {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  font-size: 14px;
}

.foundry-trace p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.foundry-grounded {
  display: inline-flex;
  margin: 14px 0;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.foundry-grounded.is-ok {
  color: #2f5e36;
  background: rgba(89, 124, 75, 0.14);
}

.foundry-grounded.is-warn {
  color: #8b4f21;
  background: rgba(201, 130, 85, 0.16);
}

.foundry-source-list,
.foundry-compare-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.foundry-source-list article,
.foundry-compare-list article,
.foundry-decision div {
  min-width: 0;
  border-top: 1px solid rgba(89, 101, 75, 0.12);
  padding-top: 10px;
}

.foundry-source-list strong,
.foundry-compare-list strong,
.foundry-decision dt {
  display: block;
  color: var(--moss);
  font-weight: 850;
}

.foundry-source-list span,
.foundry-compare-list span,
.foundry-compare-list small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.foundry-compare-list small {
  margin-top: 4px;
  color: rgba(111, 115, 99, 0.84);
}

.foundry-source-list p,
.foundry-compare-list p,
.foundry-decision dd {
  margin: 6px 0 0;
  color: var(--muted);
}

.foundry-decision {
  display: grid;
  gap: 12px;
  margin: 0;
}

.lab-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.34fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 68px;
}

.scenario-panel,
.workflow-panel,
.timeline-panel,
.result-card,
.contract-panel {
  border: 1px solid rgba(89, 101, 75, 0.13);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.86);
}

.scenario-panel,
.workflow-panel,
.contract-panel {
  padding: clamp(22px, 3vw, 32px);
}

.scenario-panel {
  display: grid;
  gap: 12px;
  position: sticky;
  top: 18px;
}

.scenario-card {
  display: block;
  width: 100%;
  min-height: 132px;
  border: 1px solid rgba(89, 101, 75, 0.13);
  border-radius: 8px;
  padding: 18px;
  color: var(--ink);
  background: rgba(247, 244, 235, 0.58);
  text-align: left;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 0 0 rgba(75, 84, 62, 0);
  transform: translateY(0);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.scenario-card:hover,
.scenario-card:focus-visible {
  border-color: rgba(89, 101, 75, 0.3);
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 14px 30px rgba(75, 84, 62, 0.1);
  outline: none;
  transform: translateY(-2px);
}

.scenario-card:focus-visible {
  outline: 2px solid rgba(89, 101, 75, 0.38);
  outline-offset: 4px;
}

.scenario-card.is-active {
  border-color: rgba(89, 101, 75, 0.34);
  background: rgba(238, 243, 234, 0.88);
}

.scenario-card-future {
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.88), rgba(239, 231, 214, 0.72)),
    radial-gradient(circle at 92% 18%, rgba(201, 130, 85, 0.16), transparent 10rem);
}

.scenario-card-council {
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.9), rgba(238, 243, 234, 0.78)),
    linear-gradient(90deg, rgba(89, 101, 75, 0.08), rgba(201, 130, 85, 0.1));
}

.scenario-card span,
.scenario-card strong,
.scenario-card small {
  display: block;
}

.scenario-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.scenario-card strong {
  margin-top: 12px;
  font-size: 20px;
  line-height: 1.15;
}

.scenario-card small {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

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

.workflow-head h2 {
  max-width: 760px;
}

.queue-note {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 22px;
  border: 1px solid rgba(89, 101, 75, 0.13);
  border-radius: 8px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.86), rgba(247, 244, 235, 0.72));
}

.queue-note span,
.queue-note strong {
  display: block;
}

.queue-note span,
.queue-tags span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.queue-note strong {
  margin-top: 8px;
  color: var(--moss);
  font-size: 24px;
  line-height: 1.08;
}

.queue-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.queue-tags {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.queue-tags span {
  border: 1px solid rgba(89, 101, 75, 0.14);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255, 253, 248, 0.72);
}

.bridge-status {
  margin-bottom: 22px;
  border: 1px solid rgba(89, 101, 75, 0.13);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 253, 248, 0.84);
}

.bridge-status span,
.bridge-status strong {
  display: block;
}

.bridge-status span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.bridge-status strong {
  margin-top: 8px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.12;
}

.bridge-status p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.bridge-status.is-azure {
  border-color: rgba(89, 101, 75, 0.18);
  background: rgba(255, 253, 248, 0.84);
}

.bridge-status.is-queued {
  border-color: rgba(99, 119, 139, 0.24);
  background: rgba(241, 246, 248, 0.82);
}

.bridge-status.is-running {
  border-color: rgba(201, 130, 85, 0.3);
  background: rgba(255, 248, 234, 0.78);
}

.bridge-status.is-completed {
  border-color: rgba(89, 101, 75, 0.28);
  background: rgba(238, 243, 234, 0.82);
}

.bridge-status.is-completed strong {
  color: var(--moss);
}

.bridge-status.is-mock {
  border-color: rgba(201, 130, 85, 0.3);
  background: rgba(255, 248, 234, 0.72);
}

.bridge-status.is-error {
  border-color: rgba(154, 75, 52, 0.34);
  background: rgba(255, 241, 233, 0.78);
}

.bridge-status.is-error strong {
  color: #8c5738;
}

.phase-pill {
  flex: 0 0 auto;
  border: 1px solid rgba(89, 101, 75, 0.16);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--moss);
  background: rgba(247, 244, 235, 0.76);
  font-size: 12px;
  font-weight: 850;
}

.finance-form,
.crypto-form,
.council-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.finance-form label,
.crypto-form label,
.council-form label {
  display: grid;
  gap: 9px;
  min-height: 92px;
  border: 1px solid rgba(89, 101, 75, 0.11);
  border-radius: 8px;
  padding: 14px;
  background: rgba(247, 244, 235, 0.62);
}

.finance-form span,
.crypto-form span,
.council-form span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.finance-form input,
.finance-form select,
.crypto-form input,
.crypto-form select,
.council-form textarea,
.council-form select {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(89, 101, 75, 0.18);
  border-radius: 7px;
  padding: 0 10px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.86);
  font: inherit;
  font-weight: 700;
}

.council-form textarea {
  min-height: 96px;
  padding: 10px;
  resize: vertical;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.28;
}

.finance-form input:focus,
.finance-form select:focus,
.crypto-form input:focus,
.crypto-form select:focus,
.council-form textarea:focus,
.council-form select:focus {
  border-color: rgba(89, 101, 75, 0.38);
  outline: 2px solid rgba(89, 101, 75, 0.18);
}


.crypto-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.crypto-form .crypto-focus-field {
  grid-column: 1 / -1;
}

.crypto-form .crypto-focus-field input {
  min-height: 42px;
}

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

.council-role-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 18px;
}

.council-role-strip div {
  position: relative;
  overflow: hidden;
  min-height: 108px;
  border: 1px solid rgba(89, 101, 75, 0.12);
  border-radius: 8px;
  padding: 15px;
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.86), rgba(238, 243, 234, 0.7));
}

.council-role-strip div::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--moss), var(--sage), var(--clay));
  opacity: 0.82;
}

.council-role-strip span,
.council-role-strip strong {
  display: block;
}

.council-role-strip span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.council-role-strip strong {
  margin-top: 18px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.16;
}

.landing-config-panel {
  margin: 14px 0;
  border: 1px solid rgba(89, 101, 75, 0.12);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
}

.landing-config-panel summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  gap: 8px 14px;
  align-items: center;
  min-height: 58px;
  padding: 13px 15px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.landing-config-panel summary::-webkit-details-marker {
  display: none;
}

.landing-config-panel summary::after {
  content: "+";
  justify-self: end;
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(89, 101, 75, 0.16);
  border-radius: 50%;
  color: var(--moss);
  background: rgba(247, 244, 235, 0.72);
  font-weight: 900;
}

.landing-config-panel[open] summary::after {
  content: "−";
}

.landing-config-panel summary:focus-visible {
  outline: 2px solid rgba(89, 101, 75, 0.36);
  outline-offset: 3px;
}

.landing-config-panel summary span,
.landing-config-panel summary strong {
  display: block;
}

.landing-config-panel summary span {
  grid-column: 1;
  grid-row: 1;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.landing-config-panel summary strong {
  grid-column: 1;
  grid-row: 2;
  padding-right: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
}

.landing-components {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0 15px 15px;
}

.landing-components label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  border: 1px solid rgba(89, 101, 75, 0.11);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.74);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.landing-components label.is-required {
  border-color: rgba(89, 101, 75, 0.22);
  background: rgba(238, 243, 234, 0.82);
}

.landing-components input {
  width: 16px;
  height: 16px;
  accent-color: var(--moss);
}

.landing-components input:disabled {
  cursor: not-allowed;
}

.landing-deploy-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0 15px 15px;
}

.landing-deploy-form label {
  display: grid;
  gap: 9px;
  min-height: 82px;
  border: 1px solid rgba(89, 101, 75, 0.1);
  border-radius: 8px;
  padding: 13px;
  background: rgba(247, 244, 235, 0.54);
}

.landing-deploy-form span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.landing-deploy-form input,
.landing-deploy-form select {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(89, 101, 75, 0.14);
  border-radius: 7px;
  padding: 0 10px;
  color: var(--muted);
  background: rgba(255, 253, 248, 0.62);
  font: inherit;
  font-weight: 750;
}

.landing-deploy-form .landing-deploy-consent {
  grid-column: 1 / -1;
  grid-template-columns: 20px minmax(0, 1fr);
  min-height: auto;
  background: rgba(238, 243, 234, 0.82);
}

.landing-deploy-consent input {
  grid-row: 1 / span 2;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--moss);
}

.landing-deploy-consent small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.landing-deploy-consent.is-disabled {
  opacity: 0.62;
}

.landing-deploy-status {
  grid-column: 1 / -1;
  margin: 0;
  border-left: 3px solid var(--moss);
  padding: 10px 12px;
  color: var(--muted);
  background: rgba(255, 253, 248, 0.72);
  font-size: 12px;
  line-height: 1.45;
}

.landing-deploy-status.is-blocked {
  border-left-color: #a55a43;
}

.lab-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 26px;
}

.lab-button {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.lab-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  filter: grayscale(0.35);
}

.secondary-link.lab-button {
  border: 1px solid rgba(89, 101, 75, 0.18);
}

.future-message {
  margin-bottom: 26px;
  border: 1px solid rgba(201, 130, 85, 0.2);
  border-radius: 8px;
  padding: 20px;
  background: rgba(255, 248, 234, 0.62);
}

.form-disclaimer {
  margin: -8px 0 26px;
  border-left: 3px solid rgba(201, 130, 85, 0.42);
  padding: 9px 12px;
  color: var(--muted);
  background: rgba(255, 248, 234, 0.48);
  font-size: 12px;
  line-height: 1.5;
}

.contract-inline {
  appearance: none;
  border: 1px solid rgba(89, 101, 75, 0.18);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--moss);
  background: rgba(255, 253, 248, 0.82);
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.contract-inline:hover,
.contract-inline:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(89, 101, 75, 0.34);
  box-shadow: 0 8px 18px rgba(75, 84, 62, 0.1);
}

.future-message strong {
  display: block;
  margin-bottom: 10px;
  color: var(--moss);
  font-size: 24px;
  line-height: 1.15;
}

.scenario-preview {
  display: grid;
  gap: 22px;
  margin-bottom: 24px;
  border: 1px solid rgba(89, 101, 75, 0.12);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 34px);
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.92), rgba(247, 244, 235, 0.72));
}

.scenario-preview[hidden] {
  display: none;
}

.preview-figure {
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(89, 101, 75, 0.12);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.76);
  box-shadow: 0 18px 48px rgba(75, 84, 62, 0.1);
}

.preview-figure[hidden] {
  display: none;
}

.preview-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.finance-demo[hidden],
.crypto-demo[hidden],
.council-demo[hidden],
.queue-note[hidden],
.bridge-status[hidden],
.agent-flow[hidden],
.status-result-grid[hidden],
.usage-details[hidden],
.contract-toggle-row[hidden],
.future-message[hidden] {
  display: none;
}

.scenario-preview h3 {
  max-width: 740px;
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.06;
}

.scenario-preview p:not(.eyebrow) {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.preview-grid div {
  border: 1px solid rgba(89, 101, 75, 0.11);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 253, 248, 0.72);
}

.preview-grid strong,
.preview-grid small {
  display: block;
}

.preview-grid strong {
  color: var(--moss);
  font-size: 13px;
  text-transform: uppercase;
}

.preview-grid small {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.agent-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
  margin: 0 0 18px;
  padding: 12px 6px 18px;
}

.agent-flow::before {
  content: none;
}

.flow-node {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 7px;
  min-width: 0;
  text-align: center;
  transition: transform 220ms ease, opacity 220ms ease;
}

.flow-node::after {
  content: "";
  position: absolute;
  top: 22px;
  right: -17px;
  width: 14px;
  height: 14px;
  border-top: 3px solid rgba(89, 101, 75, 0.28);
  border-right: 3px solid rgba(89, 101, 75, 0.28);
  transform: rotate(45deg);
}

.flow-node:last-child::after {
  content: none;
}

.flow-node i {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(89, 101, 75, 0.18);
  border-radius: 50%;
  color: var(--moss);
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 10px 22px rgba(75, 84, 62, 0.08);
  font-style: normal;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0;
  transition: border-color 220ms ease, background-color 220ms ease, color 220ms ease, box-shadow 220ms ease;
}

.flow-node span,
.flow-node strong {
  display: block;
}

.flow-node span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.flow-node strong {
  color: var(--moss);
  font-size: 12px;
  line-height: 1.15;
}

.agent-flow[data-state="idle"] .flow-node:not(.flow-client),
.agent-flow[data-state="queued"] .flow-node:not(.flow-client, .flow-alfred) {
  opacity: 0.54;
}

.agent-flow[data-state="running"] .flow-node,
.agent-flow[data-state="complete"] .flow-node {
  opacity: 1;
}

.agent-flow[data-state="running"] .flow-node::after,
.agent-flow[data-state="complete"] .flow-node::after {
  border-color: rgba(89, 101, 75, 0.42);
}

.flow-node.is-active,
.agent-flow[data-state="future"] .flow-alfred {
  transform: translateY(-4px);
}

.flow-node.is-active i,
.agent-flow[data-state="future"] .flow-alfred i {
  border-color: rgba(201, 130, 85, 0.38);
  background: rgba(255, 248, 234, 0.96);
  animation: agentPulse 1.8s ease-in-out infinite;
}

.flow-node.is-complete i,
.agent-flow[data-state="complete"] .flow-node i {
  border-color: rgba(89, 101, 75, 0.34);
  color: var(--paper);
  background: var(--moss);
  box-shadow: 0 10px 22px rgba(75, 84, 62, 0.12);
  animation: none;
}

.flow-node.is-complete,
.agent-flow[data-state="complete"] .flow-node {
  transform: none;
}

@keyframes agentPulse {
  0%,
  100% {
    box-shadow: 0 10px 22px rgba(75, 84, 62, 0.08);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(201, 130, 85, 0.14), 0 12px 26px rgba(75, 84, 62, 0.1);
    transform: scale(1.04);
  }
}

.status-result-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.72fr);
  gap: 14px;
}

.timeline-panel,
.result-card {
  padding: clamp(20px, 3vw, 26px);
}

.status-timeline {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.status-timeline li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid rgba(89, 101, 75, 0.1);
  border-radius: 8px;
  padding: 14px;
  background: rgba(247, 244, 235, 0.52);
  opacity: 0.62;
  transition: opacity 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.status-timeline li.is-active,
.status-timeline li.is-complete {
  opacity: 1;
}

.status-timeline li.is-active {
  border-color: rgba(201, 130, 85, 0.28);
  background: rgba(255, 248, 234, 0.72);
}

.status-timeline li.is-complete {
  border-color: rgba(89, 101, 75, 0.2);
  background: rgba(238, 243, 234, 0.78);
}

.status-timeline li.is-error {
  border-color: rgba(165, 90, 67, 0.32);
  background: rgba(255, 239, 232, 0.82);
  opacity: 1;
}

.status-timeline li.is-error span {
  background: #a55a43;
}

.status-timeline span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--paper);
  background: var(--moss);
  font-size: 12px;
  font-weight: 900;
}

.status-timeline strong,
.status-timeline small {
  display: block;
  grid-column: 2;
}

.status-timeline strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.2;
}

.status-timeline small {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.45;
}

.result-card h3 {
  font-size: clamp(24px, 2.6vw, 32px);
}

.usage-details {
  margin-top: 14px;
  border: 1px solid rgba(89, 101, 75, 0.13);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 253, 248, 0.82);
}

.usage-details summary {
  color: var(--moss);
  font-weight: 850;
  cursor: pointer;
}

.usage-details summary:focus-visible {
  outline: 2px solid rgba(89, 101, 75, 0.38);
  outline-offset: 4px;
}

.usage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.usage-grid div {
  border: 1px solid rgba(89, 101, 75, 0.1);
  border-radius: 8px;
  padding: 14px;
  background: rgba(247, 244, 235, 0.58);
}

.usage-grid span,
.usage-grid strong,
.usage-grid small {
  display: block;
}

.usage-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.usage-grid strong {
  margin-top: 10px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.15;
}

.usage-grid small,
.usage-details p {
  color: var(--muted);
  line-height: 1.5;
}

.usage-grid small {
  margin-top: 7px;
  font-size: 13px;
}

.usage-details p {
  margin: 16px 0 0;
  font-size: 13px;
}

.allocation {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
}

.allocation div {
  display: grid;
  gap: 8px;
}

.allocation span {
  display: block;
  height: 9px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--moss) var(--allocation), rgba(89, 101, 75, 0.12) var(--allocation));
  transition: background 260ms ease;
}

.result-card.is-landing-zone-result .allocation {
  gap: 10px;
}

.result-card.is-landing-zone-result .allocation div {
  border: 1px solid rgba(89, 101, 75, 0.1);
  border-radius: 8px;
  padding: 12px;
  background: rgba(247, 244, 235, 0.55);
}

.result-card.is-landing-zone-result .allocation span {
  display: none;
}

.allocation strong,
.allocation small {
  display: inline-block;
  color: var(--muted);
  font-size: 13px;
}

.allocation small {
  color: var(--moss);
  font-weight: 850;
}

.result-actions {
  margin-top: 18px;
}

.result-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid rgba(89, 101, 75, 0.18);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--paper);
  background: var(--moss);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.result-download:hover,
.result-download:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(75, 84, 62, 0.12);
}

.result-download.is-disabled {
  pointer-events: none;
  color: var(--muted);
  background: rgba(247, 244, 235, 0.82);
  opacity: 0.78;
}

.result-preview {
  margin-top: 18px;
  border-top: 1px solid rgba(89, 101, 75, 0.12);
  padding-top: 16px;
}

.result-preview summary {
  color: var(--moss);
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.result-preview summary:focus-visible {
  outline: 2px solid rgba(89, 101, 75, 0.38);
  outline-offset: 4px;
}

.result-preview-body {
  overflow: auto;
  max-height: 420px;
  margin-top: 14px;
  border: 1px solid rgba(89, 101, 75, 0.1);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 253, 248, 0.78);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.result-preview-body p {
  margin: 0 0 10px;
}

.contract-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.52fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 72px;
}

.contract-panel h2 {
  margin-bottom: 18px;
}

.contract-toggle-row {
  max-width: 1180px;
  margin: -42px auto 22px;
  padding: 0 20px;
  text-align: right;
}

.contract-panel[hidden] {
  display: none;
}

.contract-stack {
  display: grid;
  gap: 14px;
}

.contract-stack > div > strong {
  display: block;
  margin-bottom: 8px;
  color: var(--moss);
  font-size: 13px;
  text-transform: uppercase;
}

.contract-panel pre {
  overflow: auto;
  margin: 0;
  border: 1px solid rgba(89, 101, 75, 0.12);
  border-radius: 8px;
  padding: 18px;
  background: rgba(48, 52, 40, 0.94);
  color: #fffdf8;
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .site-header,
  .hero,
  .section-heading,
  .profile {
    grid-template-columns: 1fr;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    flex-wrap: wrap;
  }

  .hero {
    min-height: auto;
    padding-top: 30px;
  }

  .hero-visual {
    min-height: 410px;
  }

  .calculator-hero,
  .calculator-shell,
  .agent-simulator,
  .story-board,
  .lab-hero,
  .lab-layout,
  .foundry-overview,
  .foundry-module-grid,
  .foundry-console-grid,
  .foundry-console-form.is-active,
  .foundry-stack-card ul,
  .foundry-route-flow,
  .foundry-trace,
  .status-result-grid,
  .contract-panel,
  .service-grid,
  .resource-list,
  .playground-grid {
    grid-template-columns: 1fr;
  }

  .calculator-form,
  .finance-form,
  .council-form,
  .council-role-strip,
  .landing-components,
  .landing-config-panel summary,
  .landing-deploy-form,
  .agent-flow,
  .preview-grid,
  .usage-grid,
  .queue-note {
    grid-template-columns: 1fr;
  }

  .alfred-story-grid,
  .alfred-trust-section {
    grid-template-columns: 1fr;
  }

  .alfred-first-person {
    grid-template-columns: 1fr;
  }

  .alfred-first-person figure {
    min-height: 0;
  }

  .alfred-first-person img {
    min-height: 0;
    aspect-ratio: 2.35 / 1;
  }

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

  .alfred-engine {
    grid-template-columns: 1fr;
  }

  .alfred-engine > i {
    text-align: center;
    transform: rotate(90deg);
  }

  .alfred-engine-node {
    min-height: 0;
  }

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

  .alfred-trust-copy {
    position: static;
  }

  .queue-tags {
    grid-column: auto;
  }

  .scenario-panel {
    position: static;
  }

  .agent-flow::before {
    content: none;
  }

  .flow-node::after {
    top: auto;
    right: auto;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%) rotate(135deg);
  }

  .workflow-head {
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .alfred-principles,
  .alfred-work-grid,
  .alfred-guardrails li {
    grid-template-columns: 1fr;
  }

  .alfred-principles article,
  .alfred-work-grid article {
    min-height: 0;
  }

  .alfred-guardrails li {
    gap: 8px;
  }
}
