:root {
  --pa-ink: #101010;
  --pa-muted: #555;
  --pa-paper: #f1f1f1;
  --pa-lime: #d4f438;
  --pa-cover: #e8f52e;
  --pa-line: #d2d2cb;
  --pa-font: "Practical Inter", Inter, Arial, sans-serif;
  --pa-glass: linear-gradient(145deg, #fffffff5, #ffffffba 58%, #f4f4eff0);
  --pa-shadow: inset 0 1px 0 #fff, 0 13px 38px #262e1312;
}

body:where(.enterprise-home,.site-blog,.school-page),
body:has(> .site-header) {
  background: var(--pa-paper);
  color: var(--pa-ink);
}

.site-header, .enterprise-home .enterprise-header {
  background: #f8f8f3ea;
  border-bottom: 1px solid var(--pa-line);
  box-shadow: 0 4px 20px #1010100d;
}
.site-header .nav-links a, .site-header .lang-switch { color: var(--pa-ink); }
.site-header .nav-links a:hover, .site-header .nav-links a[aria-current="page"] { color: #475300; text-decoration: underline; }
.site-header .lang-switch { background: #fff9; border-color: #85877b; }
.site-footer, .enterprise-home .enterprise-footer { background: var(--pa-ink); }
.brand-lockup { width: 156px; }
.pa-mobile-menu { display: none; }
.site-footer .brand-lockup { width: 146px; }

body .button, body .button:hover {
  background: var(--pa-lime);
  border-color: #10101036;
  color: var(--pa-ink);
  box-shadow: 0 5px 11px #10101012;
}
body .button:hover { background: #c1e02b; }
body .button--dark, body .button--dark:hover { background: var(--pa-ink); color: #fff; }
body .button--dark:hover { background: #34352c; }
body .button--ghost, body .button--light,
body .hero .button--ghost, body .ea-actions .button--ghost {
  background: #ffffff9e;
  border-color: #535747;
  color: var(--pa-ink);
}
body .button--ghost:hover, body .hero .button--ghost:hover,
body .ea-actions .button--ghost:hover { background: #fff; color: var(--pa-ink); }
body :is(a,button,summary,input,textarea):focus-visible {
  outline: 2px solid var(--pa-ink);
  outline-offset: 4px;
  box-shadow: 0 0 0 3px #fff;
}
body .eyebrow::before, .enterprise-home .ea-case-page .eyebrow::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #657200;
  transform: none;
}

.ea-hero, .school-page .school-hero {
  background: var(--pa-cover);
  color: var(--pa-ink);
}
.ea-hero::before, .school-page .school-hero::before,
.school-page .school-hero::after { display: none; }
.enterprise-home .ea-hero :is(h1,.eyebrow,.ea-lede),
.school-page .school-hero :is(h1,.eyebrow,.hero-lede,.hero-note) { color: var(--pa-ink); }
.ea-hero h1 { max-width: 18ch; }
.ea-hero .eyebrow::before, .school-page .school-hero .eyebrow::before { background: var(--pa-ink); }
.ea-hero-visual {
  display: grid;
  min-width: 0;
  gap: 12px;
  width: min(100%, 430px);
  margin-inline: auto;
}
.ea-hero-proof {
  width: 100%;
  padding: 17px 20px;
  border: 1px solid var(--pa-line);
  border-radius: 16px;
  background: #fff;
  color: var(--pa-ink);
}
.ea-hero-proof :is(.ea-proof-client,.ea-proof-task,.ea-proof-time,.ea-proof-source,a) { color: var(--pa-ink); }
.ea-hero-proof .ea-proof-time strong { color: var(--pa-ink); font-size: clamp(26px,3vw,38px); }
.ea-proof-task { margin-top: 9px; }
.ea-hero-proof a { margin-top: 16px; }

:is(.ea-pain,.ea-formats,.ea-roadmap,.ea-estimator,.ea-measure,.ea-faq,.ea-cases,.ea-case-page,.programs,.school-role-section,.school-month,.school-pricing,.school-preparation,.school-demos,.school-team),
.site-blog :is(.article-listing,.article-main) { background: var(--pa-paper); }
:is(.ea-cases,.ea-estimator,.ea-formats,.programs) {
  background: radial-gradient(ellipse at 90% -12%,#e8f52e35,transparent 58%), var(--pa-paper);
}
:is(.ea-card,.ea-case-card,.ea-outcome,.ea-step,.ea-owner,.ea-phase,.ea-scope-card,.ea-form-card,.ea-estimator-card,.ea-table-scroll,.ea-price-box,
.program-card,.team-card,.method-card,.case-story,.proof-metric,.question,.school-role-card,.school-demo-card,.school-price-card,.school-artifact,.school-prep-grid article,.school-week-grid article,.school-assessment-list,
.site-blog .blog-list-card,.site-blog .article-cta,.site-blog .flow-diagram) {
  border-color: var(--pa-line);
  background: var(--pa-glass);
  box-shadow: var(--pa-shadow);
}
.ea-metric, .ea-case-stat { background: #f1f1ea; border-color: var(--pa-line); }
.ea-case-page :is(h1,.ea-case-page-subtitle,.ea-back-link), .ea-metric-value strong, .ea-case-stat strong { color: var(--pa-ink); }
.ea-case-page :is(.ea-case-desc,.eyebrow,.ea-caveat), .ea-metric-title, .ea-metric p, .ea-case-stat span { color: var(--pa-muted); }
.ea-case-stat { border-left-color: #7c8d21; }
.ea-case-index-link { display: inline-block; margin-top: 22px; }

.ea-case-illustration { width: 135px; height: auto; flex: 0 0 auto; }
.ea-case-identification { display: flex; align-items: center; gap: 19px; }
.ea-kerama-copy .ea-case-illustration { display: block; margin-bottom: 10px; }
.ea-table-scroll th, .ea-results, .ea-final, .method, .founder-strip,
.ea-form-team .ea-form-team-mark { background: var(--pa-ink); }
.ea-result strong, .ea-form-team .ea-form-team-mark { color: var(--pa-lime); }
.ea-estimator :is(input,textarea):focus, .ea-form-card :is(input,textarea):focus { border-color: #657200; }
.ea-hero .button:first-child { background: var(--pa-ink); color: #fff; }
.ea-hero .button:first-child:hover { background: #34352c; }

.editorial { background: var(--pa-paper); }
.editorial .lead { font: 400 clamp(18px,2.3vw,25px)/1.5 var(--pa-font); color: var(--pa-ink); }
.page-hero { background: #f4f5e9; color: var(--pa-ink); }
.page-hero :is(h1,p,.eyebrow) { color: var(--pa-ink); }
.page-hero::before { display: none; }
.school-page .school-hero .school-result-card { background: var(--pa-glass); border-color: #fff; box-shadow: var(--pa-shadow); }
.school-brand-art {
  display: block;
  width: min(100%,210px);
  height: auto;
  margin: 0 auto 15px;
  border-radius: 16px;
  mix-blend-mode: multiply;
}
.closing, .school-page .school-closing { background: var(--pa-lime); color: var(--pa-ink); }
.school-page .school-download-link--dark { background: var(--pa-ink); color: #fff; }
.site-blog :is(h1,h2,h3,.blog-list-title) { color: var(--pa-ink); }
.site-blog :is(.article-summary,.listing-heading p,.blog-list-label,.article-eyebrow) { color: var(--pa-muted); }
.site-blog .blog-list-card::before { background: var(--pa-lime); }

@media (max-width: 790px) {
  .enterprise-mobile-menu summary { color: var(--pa-ink); border-color: #74766c; }
  .enterprise-mobile-menu nav { background: #f5f5ef; border-color: var(--pa-line); }
  .enterprise-mobile-menu nav > a:not(.button) { color: var(--pa-ink); }
  .enterprise-mobile-menu nav > a:hover { background: #e9edcc; }
}
@media (max-width: 1160px) {
  .site-header .nav { flex-wrap: nowrap; gap: 10px; padding-block: 8px; }
  body .site-header .nav-links,
  body .site-header .nav-end > .button { display: none; }
  .pa-mobile-menu, .enterprise-mobile-menu { position: relative; display: block; }
  :is(.pa-mobile-menu,.enterprise-mobile-menu) summary {
    display: grid;
    min-height: 44px;
    place-items: center;
    padding: 0 10px;
    border: 1px solid #85877b;
    border-radius: 999px;
    cursor: pointer;
    list-style: none;
    color: var(--pa-ink);
    font-size: 12px;
    font-weight: 700;
  }
  :is(.pa-mobile-menu,.enterprise-mobile-menu) summary::-webkit-details-marker { display: none; }
  :is(.pa-mobile-menu,.enterprise-mobile-menu) nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(260px,calc(100vw - 32px));
    display: grid;
    padding: 10px;
    border: 1px solid var(--pa-line);
    border-radius: 16px;
    background: #fafaf4;
    box-shadow: var(--pa-shadow);
  }
  :is(.pa-mobile-menu,.enterprise-mobile-menu) nav > a:not(.button) {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 7px 10px;
    color: var(--pa-ink);
    font-size: 14px;
    text-decoration: none;
  }
  :is(.pa-mobile-menu,.enterprise-mobile-menu) nav > a:hover:not(.button) { text-decoration: underline; }
}
@media (max-width: 560px) {
  .ea-case-illustration { width: 84px; }
}
@media (prefers-reduced-transparency: reduce) {
  :root { --pa-glass: #fff; }
  .ea-hero-proof { background: #fff; backdrop-filter: none; }
}

.site-header .nav-end { flex-shrink: 0; }
.ea-metric-value, .ea-case-stat { overflow-wrap: anywhere; }

.personal-article.site-blog .site-header .nav-links a { color: var(--pa-ink); }
@media (max-width: 1160px) {
  .personal-article.site-blog .site-header .nav { min-height: 68px; flex-wrap: nowrap; }
  .personal-article.site-blog .site-header .nav-links,
  .personal-article.site-blog .site-header .nav-end > .button { display: none; }
}
@media (max-width: 360px) {
  .personal-article.site-blog .site-header .brand-lockup { width: 140px; }
}

/* Keep editorial and commercial pages on the deck's neutral canvas. */
.eyebrow::before, body .eyebrow::before,
.enterprise-home .ea-case-page .eyebrow::before,
.site-blog .blog-list-card::before,
.glass-standalone .hero::before { display: none; }

:is(.ea-cases,.ea-estimator,.ea-formats,.programs,.page-hero,.editorial,.school-pricing-section) {
  background: var(--pa-paper);
}
:is(.ea-card,.ea-case-card,.team-card,.program-card,.method-card,.school-role-card,.school-demo-card,.school-price-card),
.site-blog .blog-list-card {
  background: #fff;
  box-shadow: 0 6px 18px #1010100a;
}

.ea-case-illustration, .school-brand-art, .program-visual img {
  object-fit: contain;
}
.school-brand-art { border-radius: 0; }
.program-visual { background: var(--pa-paper); }

.ea-assessment h1, .ea-estimator h1 {
  margin: 12px 0 0;
  font-size: clamp(36px, 5vw, 60px);
}
#assessment-form { scroll-margin-top: 100px; }
.ea-step p { max-width: 34ch; }

.ea-case-facts {
  width: 100%;
  display: grid;
  gap: 8px;
  margin: 8px 0 0;
}
.ea-case-facts > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--pa-line);
}
.ea-case-facts dt { color: var(--pa-muted); }
.ea-case-facts dd { margin: 0; font-weight: 750; color: var(--pa-ink); }
.ea-case-page .ea-case-facts { max-width: 760px; margin-bottom: 24px; }
.ea-cases .ea-quote { margin: 8px 0 0; padding: 10px 16px; font-size: 16px; color: var(--pa-ink); }
.ea-content-note { margin: 16px 0 0; font-size: 15px; line-height: 1.5; }
.ea-results .ea-content-note { grid-column: 1 / -1; color: #fff; }

/* Foreground and background travel together when a shared card changes theme. */
.method .method-card { background: #fff; color: var(--pa-ink); }
.method .method-card h3 { color: var(--pa-ink); }
.method .method-card p { color: var(--pa-muted); }
.method .method-card .step { color: #475300; }

.site-blog :is(.breadcrumbs,.article-meta time),
.personal-article.site-blog article > .kicker { color: var(--pa-muted); }
.personal-article.site-blog .site-header .nav-links a[aria-current="page"],
.personal-article.site-blog .site-header .nav-links a:hover { color: #475300; }
.personal-article.site-blog .site-header .lang-switch { color: var(--pa-ink); }

.ea-client-stories {
  border-top: 1px solid var(--pa-line);
}
.ea-client-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.5fr);
  gap: clamp(24px, 5vw, 72px);
  padding-block: clamp(28px, 4vw, 52px);
  border-bottom: 1px solid var(--pa-line);
}
.ea-client-context h3 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3vw, 36px);
}
.ea-client-context p {
  margin: 0;
  color: var(--pa-muted);
  max-width: 32ch;
}
.ea-client-results .ea-case-facts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 22px;
  margin: 0;
}
.ea-client-results .ea-case-facts > div {
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 0;
  border: 0;
  gap: 5px;
}
.ea-client-results .ea-case-facts dd {
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.18;
}
.ea-client-results .ea-case-facts dt { font-size: 14px; }
.ea-client-results .ea-case-facts > div:first-child {
  grid-column: 1 / -1;
  padding: 16px 20px;
  border-radius: 12px;
  background: #e9efcc;
}
.ea-client-results .ea-case-facts > div:first-child dd {
  font-size: clamp(30px, 4.2vw, 54px);
  letter-spacing: -.045em;
}
.ea-client-results .ea-quote {
  margin-top: 24px;
  padding-block: 0;
  background: transparent;
  border-left-color: #84932f;
}
.ea-client-results .ea-quote cite { color: var(--pa-muted); }
@media (max-width: 840px) {
  .ea-client-story { grid-template-columns: 1fr; }
  .ea-client-context p { max-width: 56ch; }
}
@media (max-width: 480px) {
  .ea-client-results .ea-case-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ea-client-results .ea-case-facts > div:nth-child(4) { grid-column: 1 / -1; }
}

.site-header .skip-link:not(:focus) { clip-path: inset(50%); }

.ea-hero-fruit {
  display: block;
  width: min(100%, 310px);
  height: auto;
  justify-self: center;
}
.ea-formats .ea-formats-head {
  display: flex;
  align-items: center;
  gap: 16px;
}
.ea-format-fruit {
  width: clamp(65px, 11vw, 140px);
  height: auto;
  flex-shrink: 0;
}
@media (max-width: 560px) {
  .ea-hero-fruit { width: min(68%, 210px); }
}
