.local-icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.cloud-illustration, .cloud-tool-art, [data-scenario-figure] { overflow: hidden; border: 1px solid var(--rule); background: #e9e1fa; }
.cloud-illustration > img, .cloud-tool-art > img, [data-scenario-figure] > img { display: block; width: 100%; height: auto; aspect-ratio: 1.56; object-fit: contain; padding: clamp(14px, 3.5vw, 38px); }
.cloud-illustration figcaption { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--rule); background: var(--white); }
.cloud-illustration figcaption strong, .cloud-illustration figcaption small { display: block; }
.cloud-illustration figcaption small { color: var(--muted); }
.cloud-tool-art, .page-studios .studio-process .story-art { align-self: start; }
.cloud-tool-art figcaption, [data-scenario-figure] figcaption { background: var(--white); }
[data-scenario-figure] { background: #e3f4ed; }
[data-scenario-figure][data-scenario="qr"] { background: #feecd4; }
[data-scenario-figure][data-scenario="studio"] { background: #e9e1fa; }
.story-options details[open] { border-color: var(--accent); }
.story-options summary:focus-visible { outline-offset: 5px; }
.page-studios .studio-work-grid article { border-top: 3px solid #bdeed8; }
.page-studios .studio-work-grid article:nth-child(2) { border-top-color: #cbb5ff; }
.page-studios .studio-work-grid article:nth-child(2) .feature-icon { color: #e8dcff; background: #42345d; }
.page-studios .studio-steps { isolation: isolate; }
.page-studios .studio-steps li { position: relative; }
.page-studios .studio-steps li:not(:last-child)::after { position: absolute; z-index: -1; top: 24px; bottom: -12px; left: 17px; width: 1px; background: var(--rule); content: ""; }
@media (max-width: 760px) {
  .cloud-illustration figcaption { padding: 12px 14px; }
}
@media (prefers-reduced-motion: no-preference) {
  [data-scenario-figure] { transition: background-color 240ms ease; }
  .hero-copy > .eyebrow .icon { animation: evo-icon-settle 560ms var(--motion-ease) 120ms both; transform-origin: 50% 65%; }
  .hero-art figcaption { animation: evo-caption-enter 480ms var(--motion-ease) 180ms both; }
  [data-page-settling] .hero-copy > .eyebrow .icon { animation: evo-icon-arrive 620ms var(--motion-ease) 100ms both; }
  .service-card figure img, .portfolio-image img { transition: scale 420ms var(--motion-ease); }
  .story-options details[open] > p { animation: evo-caption-enter 240ms var(--motion-ease); }
  @media (hover: hover) {
    .service-card:hover figure img, .portfolio-card:hover .portfolio-image img { scale: 1.036; }
    .service-card:hover .feature-icon .icon, .studio-work-grid article:hover .feature-icon .icon { animation: evo-icon-settle 510ms var(--motion-ease) both; }
  }
}
@keyframes evo-icon-settle {
  0%, 100% { transform: rotate(0) translateY(0); }
  35% { transform: rotate(-9deg) translateY(-3px); }
  65% { transform: rotate(5deg) translateY(-1px); }
}
@keyframes evo-icon-arrive {
  0%, 100% { transform: rotate(0) scale(1); }
  32% { transform: rotate(-10deg) scale(1.16); }
  60% { transform: rotate(5deg) scale(1.02); }
}
@keyframes evo-caption-enter {
  from { opacity: .75; translate: 0 7px; }
  to { opacity: 1; translate: 0 0; }
}

.home-art, .about-hero .hero-art { border: 1px solid var(--rule); }
.cloud-illustration > img { padding: 0; aspect-ratio: 1280 / 853; object-fit: cover; }
.proof-list a.proof-item { border-radius: 0; }
.proof-list a.proof-item:hover { background: var(--wash); }
.proof-list a.proof-item:focus-visible { outline-offset: -4px; }
.portfolio-card:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.section-menu > summary { display: none; }
@media (max-width: 760px) {
  :root {
    --page: min(100% - 36px, 640px);
    --section: 46px;
    --header: 62px;
    --radius: 13px;
  }
  .hero-grid { gap: 22px; padding-block: 28px 30px; }
  .hero-grid h1 { font-size: clamp(32px, 8.8vw, 48px); line-height: 1.06; }
  .hero-copy > .eyebrow { margin-bottom: 9px; }
  .hero-description { margin-top: 13px; font-size: 16px; line-height: 1.55; }
  .hero-actions { gap: 6px 14px; margin-top: 15px; }
  .hero-actions .button, .hero-actions .text-link,
  .portfolio-copy .text-link, .home-about .text-link { min-height: 44px; }
  .home-stage { background: var(--paper); }
  .home-stage::before { display: none; }
  .home-stage .home-art { box-shadow: none; }
  .cloud-illustration figcaption { display: none; }
  .home-proof { padding-bottom: 26px; }
  .proof-list .proof-item { min-height: 58px; gap: 11px; padding: 9px 12px; }
  .proof-list .feature-icon { width: 36px; height: 36px; }
  .section-heading { gap: 8px; margin-bottom: 19px; }
  .section-heading h2, .home-about h2, .story-copy h2 { font-size: clamp(26px, 6.9vw, 35px); }
  .portfolio-grid, .service-grid, .studio-work-grid, .footer-main { grid-template-columns: 1fr; }
  .portfolio-grid, .service-grid, .studio-work-grid { gap: 14px; }
  .portfolio-copy, .service-copy, .studio-work-grid article, .principle-grid article { padding: 16px; }
  .portfolio-copy .text-link { margin-top: 5px; }
  .portfolio-meta { margin-bottom: 7px; }
  .footer-main { gap: 25px; padding-block: 28px 20px; }
  .footer-nav a { min-height: 42px; }
  .section-nav { border: 1px solid var(--rule); border-radius: 10px; background: var(--white); }
  .section-menu > summary {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-inline: 13px;
    list-style: none;
    color: var(--ink);
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
  }
  .section-menu > summary::-webkit-details-marker { display: none; }
  .section-menu > summary:focus-visible { outline-offset: -4px; }
  .section-menu[open] > summary .icon { transform: rotate(180deg); }
  .section-nav ul { display: grid; gap: 2px; padding: 4px 6px 6px; border-top: 1px solid var(--rule); }
  .section-nav a { min-height: 44px; padding-inline: 8px; font-size: 14px; }
  .section-nav a > .icon { display: none; }
  .section-nav a::after { display: none; }
  .story-options summary { min-height: 49px; }
}
@media (max-width: 360px) {
  :root { --page: calc(100% - 28px); }
}
@media (hover: none) and (prefers-reduced-motion: no-preference) {
  .button, .nav-toggle { transition: scale 140ms var(--motion-ease); }
  .button:active, .nav-toggle:active { scale: .975; }
}

/* Light glass on surfaces that sit above the page. Opaque colors also work without filters. */
.site-header {
  padding-block: 7px;
  border: 0;
  background: transparent;
  pointer-events: none;
}
.header-inner {
  position: relative;
  min-height: calc(var(--header) - 14px);
  padding: 5px 9px 5px 12px;
  pointer-events: auto;
}
.header-inner::before {
  position: absolute;
  inset: 0;
  content: "";
  border: 1px solid var(--rule);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 5px 18px rgb(24 16 49 / 8%), inset 0 1px rgb(255 255 255 / 25%);
  pointer-events: none;
}
.header-inner > * { position: relative; z-index: 1; }
.header-inner .brand { gap: 9px; min-height: 44px; font-size: 20px; }
.header-inner .brand img { width: 34px; height: 34px; border-radius: 8px; }
.header-inner nav ul { gap: 3px; }
.header-inner nav a { min-height: 40px; border-radius: 9px; }
.header-inner nav a[aria-current="page"] { background: var(--wash); }
.header-inner nav a[aria-current="page"]::after { content: none; }
.header-inner .header-cta { min-height: 40px; border-radius: 10px; }

@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .header-inner::before, .site-header[data-enhanced] .header-inner nav[data-open] {
    background: color-mix(in srgb, var(--paper) 84%, transparent);
    -webkit-backdrop-filter: blur(12px) saturate(110%);
    backdrop-filter: blur(12px) saturate(110%);
  }
  .home-stage .proof-list, .page-cloud .section-nav, .console-preview figcaption {
    background: color-mix(in srgb, var(--white) 86%, transparent);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
}

@media (max-width: 760px) {
  :root { --header: 68px; }
  .header-inner { gap: 0 8px; padding-inline: 9px 6px; }
  .header-inner::before { border-radius: 14px; }
  .header-inner .brand { gap: 8px; font-size: 19px; }
  .header-inner .brand img { width: 32px; height: 32px; }
  .site-header[data-enhanced] .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: auto;
    min-width: 44px;
    height: 44px;
    padding-inline: 10px;
    border-radius: 9px;
    background: var(--wash);
    color: var(--ink);
  }
  .nav-toggle, .header-inner nav a { -webkit-tap-highlight-color: transparent; }
  .site-header[data-enhanced] .nav-toggle:active,
  .header-inner nav a:active { background: var(--white); }
  .nav-toggle .icon { width: 18px; height: 18px; }
  .menu-label { font-size: 13px; font-weight: 800; }
  .site-header[data-enhanced] .header-inner nav {
    inset: calc(100% + 7px) 0 auto;
    max-height: calc(100dvh - var(--header) - 8px);
    overflow-y: auto;
    padding: 6px;
    border: 1px solid var(--rule);
    border-radius: 13px;
    box-shadow: 0 10px 24px rgb(24 16 49 / 13%);
  }
  .header-inner nav ul { grid-template-columns: 1fr; gap: 3px; }
  .header-inner nav a { min-height: 47px; padding-inline: 12px; font-size: 15px; }
  .page-cloud .section-nav { background-color: var(--white); }
  .page-cloud .section-menu { background: color-mix(in srgb, var(--wash) 35%, transparent); border-radius: inherit; }
}
@media (prefers-reduced-transparency: reduce) {
  .header-inner::before, .site-header[data-enhanced] .header-inner nav[data-open],
  .home-stage .proof-list, .page-cloud .section-nav, .console-preview figcaption {
    background: var(--paper);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* Local color behind the cards gives the frosted material something to catch. */
.glass-field {
  --glass-wash: #cdbdf2;
  --glass-halo: #bcdced;
  --glass-base: var(--paper);
  --glass-opacity: 68%;
  background-color: var(--glass-base);
  background-image:
    radial-gradient(ellipse at 12% 58%, color-mix(in srgb, var(--glass-wash) 72%, transparent), transparent 49%),
    radial-gradient(ellipse at 89% 62%, color-mix(in srgb, var(--glass-halo) 76%, transparent), transparent 53%);
}
.section-surface.glass-field { --glass-base: var(--surface); }
.page-cloud .glass-field {
  --glass-wash: #b8dcc8;
  --glass-halo: #d2c2ef;
  --glass-opacity: 71%;
}
.page-studios .glass-field {
  --glass-wash: #583d8b;
  --glass-halo: #315466;
  --glass-opacity: 64%;
}
.page-about .glass-field {
  --glass-wash: #e9c5a7;
  --glass-halo: #e4c8db;
  --glass-opacity: 70%;
}
.glass-field .glass-surface { background-color: var(--white); }

@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .glass-field .glass-surface {
    --glass-blur: 10px;
    background-color: color-mix(in srgb, var(--white) var(--glass-opacity), transparent);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(108%);
    backdrop-filter: blur(var(--glass-blur)) saturate(108%);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 44%), 0 6px 18px rgb(28 17 52 / 5%);
  }
  .page-studios .glass-field .glass-surface {
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 13%), 0 6px 18px rgb(8 5 18 / 16%);
  }
  .page-home .portfolio-card:hover {
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 44%), 0 12px 25px rgb(33 20 62 / 7%);
  }
}
@media (max-width: 760px) {
  .glass-field .glass-surface { --glass-blur: 6px; }
  .glass-field {
    background-image:
      radial-gradient(ellipse at 3% 34%, color-mix(in srgb, var(--glass-wash) 66%, transparent), transparent 59%),
      radial-gradient(ellipse at 92% 71%, color-mix(in srgb, var(--glass-halo) 72%, transparent), transparent 58%);
  }
}
@media (prefers-reduced-transparency: reduce) {
  .glass-field { background-image: none; }
  .glass-field .glass-surface {
    background-color: var(--white);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
  }
}
