@font-face {
  font-family: "Exo 2";
  src: url("/assets/fonts/exo-2-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "PT Sans";
  src: url("/assets/fonts/pt-sans-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "PT Sans";
  src: url("/assets/fonts/pt-sans-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --purple: #5745f2;
  --purple-dark: #2e257d;
  --purple-soft: #efedff;
  --cyan: #27cffc;
  --cyan-soft: #e8faff;
  --yellow: #f2d62e;
  --yellow-soft: #fff8cf;
  --coral: #f26e5e;
  --coral-dark: #9f3028;
  --coral-soft: #fbe7e3;
  --ink: #3c3c3b;
  --muted: #62626b;
  --paper: #fbfaf7;
  --white: #fff;
  --line: #d8d5e8;
  --display: "Exo 2", ui-sans-serif, sans-serif;
  --body: "PT Sans", ui-sans-serif, sans-serif;
  --shell: 72rem;
  --radius: 1rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 0; }
.section[id] { scroll-margin-top: calc(2rem - clamp(3.5rem, 6vw, 6rem)); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 1.1rem; line-height: 1.6; }
img, svg { display: block; max-width: 100%; }
a { color: var(--purple); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; box-shadow: 0 0 0 6px var(--ink); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.03; letter-spacing: -.035em; }
h1 { max-width: 16ch; font-size: clamp(2.5rem, 5vw, 4.25rem); }
h2 { max-width: 26ch; font-size: clamp(2.1rem, 3.6vw, 3.4rem); }
h3 { font-size: 1.55rem; }
p { max-width: 65ch; }
.shell { width: min(calc(100% - clamp(2rem, 6vw, 5rem)), var(--shell)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: .75rem; left: .75rem; padding: .7rem 1rem; background: var(--yellow); color: var(--ink); font-weight: 800; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: relative; z-index: 10; border-bottom: 1px solid var(--line); background: rgba(251, 250, 247, .95); }
.header-inner { min-height: 5rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.wordmark { display: inline-flex; align-items: center; text-decoration: none; }
.wordmark img { width: 10.5rem; height: auto; }
.site-nav { display: flex; align-items: center; gap: clamp(.85rem, 2vw, 1.75rem); }
.site-nav > a:not(.button) { color: var(--ink); font-weight: 700; text-decoration: none; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.2rem; padding: .75rem 1.25rem; border: 2px solid var(--ink); border-radius: .4rem; background: var(--purple); color: var(--white); font-family: var(--display); font-weight: 800; line-height: 1.1; text-decoration: none; box-shadow: 4px 4px 0 var(--ink); transition: transform 140ms ease, box-shadow 140ms ease; }
.button:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.button-small { min-height: 2.6rem; padding: .55rem .9rem; }
.button-light { background: var(--white); color: var(--purple-dark); }
.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 1.5rem; }
.text-link { display: inline-flex; align-items: center; gap: .35rem; font-weight: 800; }
.eyebrow { margin-bottom: 1rem; color: var(--purple); font-size: 1.05rem; font-weight: 900; letter-spacing: .08em; line-height: 1.2; text-transform: uppercase; }
.lede { max-width: 42rem; color: var(--muted); font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.45; }

.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--paper) 0 58%, var(--purple-soft) 58%); }
.hero-grid { min-height: min(46rem, calc(100vh - 5rem)); display: grid; grid-template-columns: 2fr 3fr; align-items: center; gap: clamp(2.5rem, 6vw, 6rem); padding-block: 5rem; }
.hero-copy .lede { margin-bottom: 2rem; }
.hero-stage { display: grid; gap: 1.6rem; }
.storyboard { position: relative; list-style: none; margin: 0; padding: 0; height: 39rem; }
.story-card { position: absolute; top: 0; width: 24rem; max-width: 100%; aspect-ratio: 3 / 2; display: grid; grid-template-columns: 1fr 9rem; align-items: stretch; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--white); box-shadow: 6px 7px 0 rgba(60, 60, 59, .22); overflow: hidden; }
.story-body { display: flex; flex-direction: column; justify-content: center; gap: .45rem; padding: 1.4rem 1.5rem; }
.story-tag { font-family: var(--display); font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.story-title { margin: 0; font-family: var(--display); font-weight: 800; font-size: 1.4rem; line-height: 1.16; }
.story-art { display: grid; place-items: center; padding: .6rem; border-left: 2px solid var(--ink); }
.story-art img { width: 6.5rem; height: auto; filter: drop-shadow(2px 3px 0 rgba(60, 60, 59, .18)); }
.story-goal { left: -1.5rem; top: 0; transform: rotate(-3.5deg); z-index: 1; }
.story-hit { right: 0; top: 10rem; transform: rotate(3deg); z-index: 2; }
.story-cost { left: 50%; top: 21.5rem; transform: translateX(-50%) rotate(-2.5deg); z-index: 3; }
.story-goal .story-art { background: var(--yellow); }
.story-hit .story-art { background: var(--coral); }
.story-hit .story-tag { color: var(--coral-dark); }
.story-cost .story-art { background: var(--purple); }
.hero-stage-note { margin: 0 auto; max-width: 22ch; text-align: center; font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 2.6vw, 2.4rem); line-height: 1.08; color: var(--ink); }

.section { padding-block: clamp(3.5rem, 6vw, 6rem); }
.editorial-grid { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(3rem, 8vw, 8rem); align-items: start; }
.open-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: stretch; }
.intro-section { border-top: 1px solid var(--line); background: var(--white); }
.prose-large { font-size: clamp(1.25rem, 2.2vw, 1.65rem); line-height: 1.48; }
.prose-large p:last-child { margin-bottom: 0; }
.section-heading { margin-bottom: 3rem; }
.section-heading > p:last-child { font-size: 1.2rem; }

.how-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.proof-stack { display: grid; gap: 1.25rem; }
.proof-card { padding: clamp(1.5rem, 3vw, 2rem); border: 2px solid var(--ink); border-radius: var(--radius); background: var(--white); box-shadow: 7px 7px 0 var(--cyan); }
.proof-card h3 { margin-bottom: .75rem; font-size: clamp(1.45rem, 2.3vw, 2rem); }
.proof-card p { margin-bottom: .75rem; font-size: 1rem; line-height: 1.5; }
.proof-card p:last-child { margin-bottom: 0; }
.validation-card { background: var(--cyan-soft); }
.stewardship-card { box-shadow: 7px 7px 0 var(--yellow); }

.runit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.runit-card { padding: clamp(1.25rem, 2.5vw, 1.75rem); border: 2px solid var(--ink); border-radius: var(--radius); background: var(--white); box-shadow: 6px 6px 0 var(--purple-soft); }
.runit-card-head { display: flex; align-items: center; gap: .9rem; margin-bottom: .8rem; }
.runit-icon { display: grid; flex: 0 0 auto; width: 3rem; aspect-ratio: 1; place-items: center; border: 2px solid var(--ink); border-radius: 50%; background: var(--yellow-soft); color: var(--purple-dark); }
.runit-icon svg { width: 1.55rem; height: 1.55rem; }
.runit-card h3 { margin-bottom: 0; font-size: 1.3rem; }
.runit-card p { margin-bottom: 0; }
.runit-card-safe { grid-column: 1 / -1; background: var(--cyan-soft); box-shadow: 6px 6px 0 var(--cyan); }
.runit-card-safe .runit-icon { background: var(--white); color: var(--purple); }
.runit-card-safe p { max-width: none; }

.scenario-section { background: var(--purple-dark); color: var(--white); }
.scenario-section .eyebrow, .cta-band .eyebrow { color: var(--yellow); }
.scenario-section .section-heading > p { color: #e5e3ff; }
.scenario-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.scenario-card { min-height: 19rem; padding: clamp(1.5rem, 3vw, 2.5rem); border: 2px solid var(--ink); border-radius: var(--radius); color: var(--ink); box-shadow: 6px 6px 0 rgba(0, 0, 0, .28); }
.scenario-card-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.scenario-card h3 { max-width: 15ch; margin-bottom: 0; }
.scenario-card p { margin-bottom: 0; }
.scenario-yellow { background: var(--yellow-soft); }
.scenario-cyan { background: var(--cyan-soft); }
.scenario-coral { background: var(--coral-soft); }
.scenario-purple { background: var(--purple-soft); }
.scenario-icon-slot { display: grid; flex: 0 0 auto; width: 4.25rem; aspect-ratio: 1; place-items: center; border: 2px solid currentColor; border-radius: 50%; }
.scenario-icon-slot svg { width: 2.4rem; height: 2.4rem; }

.scenario-card { display: flex; flex-direction: column; text-decoration: none; transition: transform 140ms ease, box-shadow 140ms ease; }
a.scenario-card:not(.scenario-blank):hover { transform: translate(-2px, -2px); box-shadow: 9px 9px 0 rgba(0, 0, 0, .28); }
.scenario-more { margin-top: auto; padding-top: 1.25rem; font-family: var(--display); font-weight: 800; }
.scenario-blank { justify-content: center; gap: .5rem; border-style: dashed; border-color: rgba(255, 255, 255, .45); background: transparent; box-shadow: none; color: rgba(255, 255, 255, .8); text-decoration: none; transition: border-color 140ms ease, background 140ms ease; }
.scenario-blank .scenario-blank-label { font-family: var(--display); font-weight: 700; }
.scenario-blank strong { font-family: var(--display); font-size: 1.3rem; line-height: 1.2; color: var(--white); }
.scenario-blank:hover { border-color: var(--yellow); background: rgba(255, 255, 255, .06); }
.portfolio-note { margin: 2rem 0 0; max-width: 48rem; color: #e5e3ff; font-size: 1.2rem; }

.scenario-detail .back-link { margin-bottom: 1.5rem; font-family: var(--display); font-weight: 800; }
.scenario-detail-head { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.scenario-detail-title { display: flex; align-items: center; gap: clamp(1rem, 3vw, 1.75rem); margin-bottom: 1.25rem; }
.scenario-detail-title h1 { margin-bottom: 0; }
.scenario-detail-icon { display: inline-grid; flex: 0 0 auto; place-items: center; width: 4.25rem; aspect-ratio: 1; border: 2px solid var(--ink); border-radius: 50%; color: var(--ink); box-shadow: 5px 5px 0 var(--ink); }
.scenario-detail-icon svg { width: 2.1rem; height: 2.1rem; }
.scenario-detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.25rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.scenario-detail-grid p:last-child { margin-bottom: 0; font-size: 1.1rem; }
.scenario-detail-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.scenario-detail-cta p { margin: 0; font-family: var(--display); font-weight: 800; font-size: 1.3rem; }

.proof-stats { display: flex; flex-wrap: wrap; gap: 1.1rem 1.75rem; margin: 1.25rem 0 1.5rem; padding: 0; list-style: none; }
.proof-stats li { font-size: .9rem; color: var(--muted); line-height: 1.2; }
.proof-stats strong { display: block; font-family: var(--display); font-size: 2rem; color: var(--ink); line-height: 1; }

.open-section { background: var(--purple-soft); }

.hire-card, .os-card { display: flex; flex-direction: column; align-self: stretch; padding: clamp(1.5rem, 3vw, 2.25rem); border: 2px solid var(--ink); border-radius: var(--radius); background: var(--white); box-shadow: 9px 9px 0 var(--purple); }
.hire-card .eyebrow, .os-card .eyebrow { color: var(--purple); }
.service-card-head { display: flex; align-items: center; gap: 1rem; margin-bottom: .85rem; }
.service-card-head h3 { margin-bottom: 0; max-width: 16ch; font-size: clamp(1.45rem, 2.3vw, 2rem); }
.service-mark { display: grid; flex: 0 0 auto; width: 4.4rem; aspect-ratio: 1; place-items: center; overflow: hidden; }
.service-mark img { width: 82%; height: 82%; object-fit: contain; }
.service-mark-cocitizen img { width: 100%; height: 100%; }
.hire-card > p, .os-card > p { margin-bottom: 1.4rem; font-size: 1.1rem; }
.os-links-label { margin: 0 0 .35rem; font-family: var(--display); font-size: .8rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.os-links { display: grid; }
.os-links a { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-top: 1px solid var(--line); color: var(--ink); font-family: var(--display); font-weight: 800; text-decoration: none; }
.os-links a:hover { color: var(--purple); }
.hire-list { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: .65rem; }
.hire-list li { position: relative; padding-left: 1.9rem; font-family: var(--display); font-weight: 700; }
.hire-list li::before { content: "✓"; position: absolute; left: 0; color: var(--purple); font-weight: 900; }
.hire-card .button { margin-top: auto; align-self: flex-start; }

.cta-band { padding-block: 4.5rem; background: var(--purple); color: var(--white); }
.cta-inner { display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.cta-inner h2 { margin-bottom: 0; }

.site-footer { padding-block: 3.5rem; background: #24243a; color: #e7e5f2; }
.footer-inner { display: grid; grid-template-columns: .65fr 1.7fr .65fr; align-items: start; gap: 2.5rem; }
.wordmark-footer img { width: 9.5rem; }
.site-footer p { margin: 0; font-size: .96rem; }
.site-footer a { color: var(--white); }

.error-page { min-height: 70vh; display: grid; grid-template-columns: auto minmax(0, 38rem); align-items: center; justify-content: center; gap: clamp(1.5rem, 5vw, 4rem); padding-block: 5rem; background: var(--purple-dark); color: var(--white); }
.error-turtle { width: min(13rem, 30vw); filter: brightness(0) invert(1); opacity: .95; transform: rotate(180deg); }
.error-page h1, .error-page p { margin-inline: auto; }
.error-page .lede { color: #e5e3ff; }

/* The internal styleguide stays available but out of the public navigation. */
.page-hero { padding-block: clamp(4rem, 7vw, 6rem); border-bottom: 1px solid var(--line); background: var(--purple-soft); }
.page-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: end; }
.style-section { padding-block: 4rem; border-bottom: 1px solid var(--line); }
.style-section > .shell > h2 { margin-bottom: 2rem; font-size: 2rem; }
.swatch-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.swatch { display: grid; gap: .5rem; }
.swatch > span { height: 7rem; border: 1px solid var(--line); border-radius: .4rem; }
.swatch code { color: var(--muted); font-size: .75rem; overflow-wrap: anywhere; }
.type-samples { display: grid; gap: .5rem; }
.display-sample { max-width: none; font-size: clamp(3rem, 7vw, 6rem); font-weight: 850; letter-spacing: -.055em; line-height: 1; }
.type-h1, .type-h2, .type-h3 { margin-bottom: 1.5rem; font-weight: 850; line-height: 1.08; }
.type-h1 { font-size: clamp(2.8rem, 7vw, 6.8rem); }
.type-h2 { font-size: clamp(2rem, 4vw, 3.8rem); }
.type-h3 { font-size: 1.4rem; }
.component-demo { padding: 1.5rem; border: 1px solid var(--line); background: var(--white); }
.style-storyboard { width: min(100%, 42rem); height: 33rem; }
.style-storyboard .story-card { width: 22rem; }
.style-storyboard .story-hit { top: 8rem; }
.style-storyboard .story-cost { top: 18rem; }
.style-card-demo { max-width: 64rem; }
.supporting-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1.25rem; align-items: stretch; }
.feature-grid, .voice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.feature-card, .voice-example { padding: 1.5rem; border: 1px solid var(--line); background: var(--white); }
.demo-dark { background: var(--purple-dark); color: var(--white); }
.button-disabled { background: #d9d9d4; color: var(--muted); box-shadow: none; cursor: not-allowed; }
.notice { margin-top: 1rem; padding: 1rem 1.25rem; border-left: 5px solid var(--purple); background: var(--white); }
.notice p { margin: .25rem 0 0; }
.voice-yes { border-left: 5px solid var(--cyan); }
.voice-no { border-left: 5px solid var(--coral); }

@media (max-width: 58rem) {
  .site-nav > a:not(.button) { display: none; }
  .hero { background: linear-gradient(165deg, var(--paper) 0 61%, var(--purple-soft) 61%); }
  .hero-grid, .editorial-grid, .open-grid, .how-grid, .scenario-detail-grid, .page-hero-grid { grid-template-columns: 1fr; }
  .hero-grid { padding-top: 4rem; }
  .hero-stage { max-width: 34rem; }
  .storyboard { position: static; height: auto; display: flex; flex-direction: column; }
  .story-card { position: static; width: auto; max-width: none; aspect-ratio: auto; min-height: 5.5rem; }
  .story-card + .story-card { margin-top: -.6rem; }
  .story-goal, .story-hit, .story-cost { left: auto; right: auto; top: auto; }
  .story-goal { transform: rotate(-1.5deg); }
  .story-hit { transform: rotate(1.5deg); }
  .story-cost { transform: rotate(-1.5deg); }
  .footer-inner { grid-template-columns: 1fr 1.5fr; }
  .footer-inner p:last-child { grid-column: 1 / -1; }
}

@media (max-width: 40rem) {
  body { font-size: 1.03rem; }
  .header-inner { min-height: 4.5rem; }
  .wordmark img { width: 8.75rem; }
  .site-nav .button { min-height: 2.4rem; font-size: .85rem; box-shadow: none; }
  .hero-grid { min-height: 0; padding-block: 3.5rem; }
  .scenario-grid, .runit-grid, .footer-inner, .feature-grid, .voice-grid, .supporting-card-grid { grid-template-columns: 1fr; }
  .scenario-card { min-height: 0; }
  .error-page { grid-template-columns: 1fr; text-align: center; }
  .error-turtle { width: min(11rem, 45vw); justify-self: center; }
  .cta-inner { align-items: flex-start; flex-direction: column; }
  .swatch-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner p:last-child { grid-column: auto; }
}

@media (max-width: 22rem) {
  h1 { font-size: clamp(2.55rem, 13.25vw, 2.9rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
