/* Masterplan finish layer. Source: masterplan/src/v2/base.css and pages/cover/page.css.
   Grain and layered washes are explicitly requested brand treatments. */
:root {
  --paper: oklch(0.984 0.005 222);
  --wash: #f1f7f8;
  --wash-strong: #e3f1f3;
  --band: oklch(0.962 0.013 215);
  --ink-soft: rgb(24 30 31 / .84);
  --rule: rgb(24 30 31 / .12);
  --rule-soft: rgb(24 30 31 / .07);
  --mag: #da3284;
  --pale: #cdeef0;
  --gutter: clamp(16px, 4vw, 40px);
  --section-space: clamp(52px, 6vw, 88px);
  --column-gap: clamp(32px, 5vw, 72px);
  --edge: 0 0 0 1px rgb(24 30 31 / .08), 0 1px 2px rgb(24 30 31 / .05), 0 10px 24px -14px rgb(20 78 99 / .22);
  --edge-on: 0 0 0 1px var(--teal), 0 1px 2px rgb(24 30 31 / .06), 0 12px 28px -14px rgb(20 78 99 / .3);
  --edge-dark: 0 0 0 1px rgb(147 220 225 / .24), 0 10px 24px -14px rgb(16 59 75 / .7);
  --lift: 0 8px 22px rgb(20 78 99 / .1), 0 1px 3px rgb(20 78 99 / .08);
  --sunk: 0 2px 6px rgb(20 78 99 / .08), 0 1px 2px rgb(20 78 99 / .08);
  --time-in: 150ms;
  --time-out: 300ms;
  --time-down: 70ms;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-bright: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.25 0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: light;
}

/* Frame, type and the report's rhythm. */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { line-height: 1.62; letter-spacing: .006em; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
p, li { text-wrap: pretty; }
h1, h2 { font-synthesis: none; letter-spacing: .01em; }
::selection { background: var(--pale); color: var(--ink); }
.wrap { max-width: 1240px; }
.section, .store-inner { padding-block: var(--section-space); }
.section-heading { column-gap: var(--column-gap); margin-bottom: clamp(28px, 3.4vw, 44px); }
.section-heading h2, .open-copy h2, .questions-title h2, .store-inner h2 { font-size: clamp(2.3rem, 4.4vw, 3.7rem); line-height: .95; letter-spacing: .01em; }
.section-heading p { font-size: 17.5px; line-height: 1.6; }
.hero-grid { padding-block: clamp(56px, 8vw, 112px) clamp(48px, 6vw, 80px); gap: 40px 56px; }
.hero h1 { font-size: clamp(3.2rem, 6.1vw, 5.5rem); line-height: .92; letter-spacing: .005em; }
.hero-promise { margin-top: 30px; padding-top: 24px; border-top: 2px solid var(--ink); }
.hero-description { font-size: 18px; line-height: 1.6; }
.hero-note { font-size: 13px; }
.hero-bottom { border-top-color: var(--rule); padding-block: 20px; }
.hero-bottom > span { font-size: 12px; }
.open-section { align-items: start; gap: 40px var(--column-gap); }
.open-copy > p { line-height: 1.65; }
.freedom-list article { padding-block: 24px; }
.freedom-list article:last-child { border-bottom: 0; padding-bottom: 0; }
.local-first { border-bottom: 0; gap: 28px var(--column-gap); padding-block: 28px 0; }
.workflow { padding-block: var(--section-space); }
.workflow-panel { gap: var(--column-gap); padding: 40px 0 0; }
.lab-section .section-heading, .lab-layout { gap: 28px var(--column-gap); }
.lab-section .section-heading { margin-bottom: 40px; }
.build-layout, .store-inner { column-gap: var(--column-gap); }
.questions-section { gap: 36px var(--column-gap); }
.contact-inner { padding-block: clamp(56px, 7vw, 88px); }
.contact-inner h2 { font-size: clamp(2.8rem, 5.8vw, 5.1rem); line-height: .95; }
.contact-inner h2 br { display: none; }
.contact-inner h2 > span { display: block; }

/* The same separate wash and static-grain layers as the Masterplan. */
.hero, .open-section, .store-section, .lab-section, .contact-section, .footer { position: relative; isolation: isolate; background: transparent; }
.lab-section, .contact-section, .footer { background-color: var(--deep); }
.hero::before, .hero::after, .open-section::before, .open-section::after,
.store-section::before, .store-section::after, .lab-section::before, .lab-section::after,
.contact-section::before, .contact-section::after, .footer::before, .footer::after {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  pointer-events: none;
}
.hero::before {
  background:
    linear-gradient(to bottom, transparent 64%, var(--paper) 99%),
    radial-gradient(54rem 34rem at 88% 6%, color-mix(in oklab, var(--turq) 22%, transparent), transparent 68%),
    radial-gradient(44rem 28rem at 2% 94%, color-mix(in oklab, var(--teal) 12%, transparent), transparent 70%),
    radial-gradient(30rem 22rem at 36% -6%, color-mix(in oklab, var(--mag) 8%, transparent), transparent 72%),
    radial-gradient(36rem 24rem at 64% 98%, color-mix(in oklab, var(--turq) 10%, transparent), transparent 70%),
    oklch(0.968 0.014 214);
}
.hero::after { background: var(--grain); opacity: .55; mask-image: linear-gradient(to bottom, #000 60%, transparent 99%); }
.open-section::before, .store-section::before {
  background:
    radial-gradient(50rem 30rem at 94% 0%, color-mix(in oklab, var(--turq) 16%, transparent), transparent 70%),
    radial-gradient(42rem 26rem at 0% 100%, color-mix(in oklab, var(--mag) 6%, transparent), transparent 72%),
    var(--band);
}
.open-section::after, .store-section::after { background: var(--grain); opacity: .42; }
.lab-section::before {
  background:
    radial-gradient(46rem 28rem at 90% 125%, color-mix(in oklab, var(--mag) 34%, transparent), transparent 68%),
    radial-gradient(40rem 24rem at 4% -40%, color-mix(in oklab, var(--turq) 26%, transparent), transparent 70%),
    var(--deep);
}
.contact-section::before {
  background:
    radial-gradient(34rem 20rem at 100% 0%, color-mix(in oklab, var(--turq) 24%, transparent), transparent 70%),
    radial-gradient(28rem 18rem at 0% 110%, color-mix(in oklab, var(--mag) 16%, transparent), transparent 72%),
    var(--deep);
}
.lab-section::after, .contact-section::after { background: var(--grain-bright); opacity: .42; }
.footer::before {
  background:
    radial-gradient(50rem 30rem at 92% 120%, color-mix(in oklab, var(--mag) 30%, transparent), transparent 68%),
    radial-gradient(44rem 26rem at 0% -30%, color-mix(in oklab, var(--turq) 30%, transparent), transparent 70%),
    var(--deep);
}
.footer::after { background: var(--grain-bright); opacity: .4; }

/* Cards get a layered edge; fine rules separate content within them. */
.simulation { box-shadow: var(--edge), 0 28px 56px -26px rgb(20 78 99 / .25); }
.specimen, .agent-example { border: 0; border-radius: 14px; background: var(--paper); box-shadow: var(--edge); }
.room-map { border: 0; border-radius: 14px; background: var(--deep); box-shadow: var(--edge-dark); }
.agent-example { padding: 28px 30px; }
.specimen-heading, .document-heading, .agent-example-heading { color: var(--deep); }
.specimen-heading strong, .agent-example-heading strong { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; line-height: 1.5; }
.agent-example-heading > span { font-size: 11px; flex-shrink: 0; }
.source-highlight { border-radius: 6px; }
.format-list span, .outline-badge { border: 0; border-radius: 999px; background: var(--wash-strong); color: var(--deep); }
.document-footer { font-size: 12px; }
.preview-caption, .preview-caption span { font-size: 12px; }
.debrief-row:last-of-type { border-bottom: 0; }

/* Every interaction has distinct arrival, departure, press and release states. */
a, button, summary { --time: var(--time-out); }
a:hover, button:hover, summary:hover { --time: var(--time-in); }
a:active, button:active, summary:active { --time: var(--time-down); }
.button { font-weight: 600; letter-spacing: .01em; }
.button:hover { background: var(--teal); color: var(--white); box-shadow: var(--lift); }
.button:active { background: var(--deep); color: var(--white); box-shadow: var(--sunk); scale: .96; }
.button svg, .text-link svg, .footer a svg { transition: translate var(--time) var(--ease); }
.button:hover svg, .text-link:hover svg, .footer a:hover svg { translate: 3px 0; }
.button:active svg, .text-link:active svg { translate: 5px 0; }
.text-link { text-decoration-color: var(--turq-light); text-decoration-thickness: 1.5px; text-underline-offset: 4px; transition: color var(--time) var(--ease), text-decoration-color var(--time) var(--ease), text-underline-offset var(--time) var(--ease), text-decoration-thickness var(--time) var(--ease); }
.text-link:hover { text-decoration-color: currentColor; }
.text-link:active, .contact-email:active, .footer a:active { scale: 1; text-underline-offset: 1px; text-decoration-thickness: 2px; }
.hero-bottom > a:hover { background: var(--wash-strong); }
.hero-bottom > a:active { background: var(--pale); scale: .96; }
.icon-button, .flag-button { min-width: 40px; min-height: 40px; }
.reset, .copy-email { min-height: 40px; }
.state-button:active { scale: .96; }

/* Opaque, compact navigation and pill-shaped workflow tabs. */
.site-header { position: sticky; top: 0; background: var(--paper); }
.header-inner { height: 68px; }
.brand > img { width: 36px; height: 36px; }
.brand > span { font-size: 25px; }
.brand small { font-size: 10px; letter-spacing: .14em; }
.nav { gap: 12px; margin-right: 16px; }
.nav a { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 10px 12px; border-radius: 8px; }
.nav a:hover { background: var(--wash); box-shadow: none; color: var(--ink); }
.nav a:active { background: var(--wash-strong); scale: .96; }
.workflow-tabs { border: 0; gap: 8px; }
.workflow-tabs button { border: 0; border-radius: 999px; min-height: 56px; padding: 14px 18px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.4; box-shadow: inset 0 0 0 1px var(--rule); }
.workflow-tabs button:first-child { padding-left: 18px; }
.workflow-tabs button:hover { background: var(--wash); box-shadow: inset 0 0 0 1px var(--teal); }
.workflow-tabs button:active { scale: .985; }
.workflow-tabs button[aria-selected=true] { background: var(--deep); color: var(--white); box-shadow: none; }
.workflow-tabs button[aria-selected=true]:hover { background: color-mix(in oklab, var(--deep) 86%, var(--turq)); }
.workflow-tabs button[aria-selected=true] > span { color: var(--turq-light); }
.workflow-tabs button:nth-child(-n+2) { border-bottom: 0; }
summary { padding-inline: 4px; }
summary:hover { color: var(--deep); background: transparent; }
summary:active { scale: .985; }
summary > span { width: 28px; height: 28px; border-radius: 50%; background: var(--wash); transition: background-color var(--time) var(--ease), rotate var(--time) var(--ease); }
summary > span::before, summary > span::after { top: 13px; left: 7px; }
summary:hover > span { background: var(--wash-strong); }
summary:active > span { background: var(--pale); }
details > p { padding-left: 4px; }

/* A deep, continuous closing band with the inverse brand asset. */
.contact-action > .button:active { background: var(--pale); color: var(--deep); }
.footer { color: var(--on-deep); }
.footer-main { padding-block: 40px 32px; }
.footer-main > p, .footer-bottom, .footer .repo-note { color: var(--on-deep); }
.footer-main > a:last-child, .footer-bottom { font-size: 12px; }
.footer-bottom { border-top-color: rgb(255 255 255 / .18); padding-block: 20px 32px; }
.footer a:hover { color: var(--turq-light); }
.footer :focus-visible { outline-color: var(--turq-light); }
.footer .company-link:hover { opacity: 1; }

@media (max-width: 1120px) {
  .hero-grid { column-gap: 35px; }
  .hero h1 { font-size: 6.1vw; }
  .nav { gap: 3px; margin-right: 8px; }
  .nav a { padding-inline: 9px; font-size: 11px; }
  .workflow-tabs button { padding-inline: 13px; letter-spacing: .035em; }
  .workflow-tabs button:first-child { padding-left: 13px; }
}
@media (max-width: 850px) {
  .hero h1 { font-size: clamp(3.2rem, 10.8vw, 5.5rem); }
  .hero-copy { max-width: 640px; }
  .hero-promise { max-width: 560px; }
  .hero-grid { row-gap: 40px; }
  .open-section, .build-layout, .store-inner { row-gap: 36px; }
  .workflow-tabs button { font-size: 12px; padding-inline: 18px; }
  .workflow-panel { row-gap: 32px; }
  .section-heading { row-gap: 24px; }
}
@media (max-width: 480px) {
  .hero-grid { padding-block: 48px; }
  .hero h1 { font-size: clamp(2.75rem, 12.6vw, 3.6rem); }
  .hero-promise { font-size: 18px; padding-top: 20px; margin-top: 25px; }
  .hero-description { font-size: 17px; }
  .hero-note { font-size: 12px; gap: 6px 16px; }
  .header-inner { height: 64px; }
  .brand small { display: none; }
  .brand > img { width: 30px; height: 32px; }
  .brand > span { font-size: 24px; }
  .header-cta { min-height: 44px; }
  .section-heading h2, .open-copy h2, .questions-title h2, .store-inner h2 { font-size: clamp(2.1rem, 9.8vw, 2.6rem); }
  .section-heading p { font-size: 16px; }
  .hero-bottom > div { gap: 14px; }
  .preview-caption, .preview-caption span { font-size: 11px; }
  .local-first { row-gap: 24px; }
  .workflow-tabs button, .workflow-tabs button:first-child { font-size: 11px; letter-spacing: .04em; white-space: normal; padding: 12px 14px; gap: 8px; min-height: 58px; }
  .workflow-panel { padding-top: 30px; }
  .agent-example { padding: 24px; }
  .agent-example-heading { gap: 12px; align-items: start; }
  .agent-example-heading strong { font-size: 11px; letter-spacing: .06em; }
  .agent-example-heading > span { max-width: 68px; }
  .footer-main { gap: 20px; padding-block: 28px; }
  .footer-bottom { gap: 14px; font-size: 11px; }
  .footer .repo-note { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  a, button, summary { --time: .01ms; }
  .button:hover svg, .text-link:hover svg, .footer a:hover svg, .button:active svg, .text-link:active svg { translate: none; }
  .button:active, .state-button:active, .nav a:active, .workflow-tabs button:active, .hero-bottom > a:active, summary:active { scale: 1; }
}
@media print {
  .hero::before, .hero::after, .open-section::before, .open-section::after, .store-section::before, .store-section::after,
  .lab-section::before, .lab-section::after, .contact-section::before, .contact-section::after, .footer::before, .footer::after { display: none; }
  .site-header { position: static; }
}
