:root {
  color-scheme: light;
  --paper: #f4f2e9;
  --header-background: var(--paper);
  --ink: #172322;
  --muted: #536260;
  --line: #cbd3d0;
  --surface: #faf9f3;
  --inset: #e9eeeb;
  --tint: #e2eee8;
  --accent: #18604e;
  --on-accent: #fff;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #101113;
  --ink: #f1f1f2;
  --muted: #b2b2b8;
  --line: #3d3e44;
  --surface: #191a1d;
  --inset: #232428;
  --tint: #27282d;
  --accent: #9de4bf;
  --on-accent: #11241a;
}
.theme-switch {display:flex;align-items:center;padding:2px;border:1px solid var(--line);border-radius:24px;background:var(--inset)}
.theme-switch button {display:grid;place-items:center;width:34px;height:34px;padding:0;border-radius:50%;background:transparent;color:var(--muted)}
.theme-switch button[aria-pressed=true] {color:var(--ink);background:var(--surface);box-shadow:0 1px 4px #0002}
.theme-switch svg {width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.studio-header .theme-switch {flex:none}
:root[data-theme=dark] {
  .hero-bottom {background:color-mix(in srgb,var(--paper) 94%,transparent)}
  .studio-skip,.small-cta,.primary-cta,.work-button,.reading-apply,.reading-trigger {background:var(--ink);color:var(--paper)}
  .small-cta:hover,.primary-cta:hover,.work-button:hover {background:var(--accent);color:var(--on-accent)}
  .product-section,.services-section,.marketing-section,.contact-section,.team-marks li,.product-dropdown,.locale-options,
  .guard-platforms article,.study-sheet,.persona-feature,.reading-panel select {background:var(--surface);color:var(--ink)}
  .erp-feature,.approach-section,.service-feature,.approach-contact,.erp-study-plate,.intake-hero-art,
  .guard-illustration,.work-overview figure,.motion-control:hover {background:var(--tint);color:var(--ink)}
  .guard-feature,.campaign-contact,.cover-text,.profile-footer,.guard-study-plate {background:#202125;color:#f0f4f1}
  .guard-display,.guard-shield {background:#365c50;color:#ebfff4}
  .study-board {--study-ground:#192b29}
  .study-bar-existing {background:#567469}
  .study-slot {color:var(--ink)}
  .study-slot[aria-pressed=true] {background:var(--accent);color:var(--on-accent)}
  .campaign-study {--frame:#263330;--board:#b4cbbd}
  .campaign-study__print {background:var(--surface)}
  .campaign-study__events {background:#182823;color:var(--ink)}
  .scene-status,.team-lede,.team-practice-grid p,.service-links p,.about-evidence dd,.service-contact p,.study-description,
  .study-ticks,.study-slot-label,.study-tab,.product-caption p,.guard-note,.guard-features p,.guard-install p,
  .work-body,.work-lead p,.capability-list span {color:var(--muted)}
  .product-dropdown a,.locale-options button {color:var(--ink)}
  :is(.product-menu,.locale-menu):is([open],:hover) > summary,.product-dropdown a:is(:hover,[aria-current]),
  .locale-options button:is(:hover,[aria-pressed=true]) {background:var(--inset);color:var(--ink)}
  .work-overview,.persona-entry {--work-ink:var(--ink);--p-ink:var(--ink);--work-rule:var(--line);--p-rule:var(--line)}
  .work-button-secondary,.persona-options button[aria-pressed=true] {background:var(--inset);color:var(--ink)}
  .intake-field :is(input,select,textarea) {background-color:var(--surface);border-color:var(--line);color:var(--ink)}
  .intake-field select {appearance:auto;background-image:none}
  img[src*=".webp"] {filter:brightness(.79) saturate(.84)}
  img[src*="campus."] {mix-blend-mode:normal}
  .profile-credentials img, .about-credentials img {mix-blend-mode:normal}
}
@media (max-width:700px) {
  .studio-header .studio-actions {gap:5px}
  .theme-switch button {width:29px;height:32px}
}

/* Keep the hierarchy in the type and spacing, with rules only between items. */
:root :is(.studio-header, .header) {
  border-bottom: 0;
  background: var(--header-background);
  box-shadow: none;
  backdrop-filter: none;
}
.studio-hero, .team-hero { border-bottom: 0; }
.service-directory, .service-links a:first-child,
.approach-steps > div:first-child, .marketing-services > div:first-child { border-top: 0; }
.studio-footer, .persona-bar {
  border-color: color-mix(in srgb, var(--ink) 11%, transparent);
}
:is(.primary-cta, .small-cta, .header-cta, .primary-button, .guard-primary, .work-button) {
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: -.015em;
  padding-inline: 1.4em;
}
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  :is(.primary-cta, .small-cta, .header-cta, .primary-button, .guard-primary, .work-button) {
    transition: background-color .16s, color .16s, transform .16s;
  }
  :is(.primary-cta, .small-cta, .header-cta, .primary-button, .guard-primary, .work-button):hover {
    transform: translateY(-1px);
  }
}
/* The supplied square bitmap has a light matte outside the blue tile. */
img[src*="/berkeley."] { clip-path: inset(1% round 7%); }

/* Localize the drafting grid to the illustration, fading before its bounds. */
#world {
  --draft-rule: #69758122;
  --draft-glow: #e6e8eb;
  isolation: isolate;
}
#world::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, var(--draft-rule) 1px, transparent 1px),
    linear-gradient(var(--draft-rule) 1px, transparent 1px),
    radial-gradient(ellipse at center, var(--draft-glow) 0%, transparent 68%);
  background-size: 48px 48px, 48px 48px, 100% 100%;
  mask-image: radial-gradient(ellipse 61% 52% at 50% 52%, black 18%, transparent 92%);
}

:root[data-theme="dark"] #world {
  --draft-rule: #c4c9df12;
  --draft-glow: #24262d;
}
