.hype-embed { position: relative; isolation: isolate; width: 100%; overflow: hidden; border-radius: var(--radius-lg); background: color-mix(in srgb, var(--surface) 86%, transparent); }
.hype-embed iframe { position: relative; z-index: 2; display: block; width: 100%; height: 100%; border: 0; background: transparent; opacity: 0; transition: opacity .28s ease; }
.hype-embed.is-loaded iframe { opacity: 1; }
.hype-display-responsive { height: clamp(var(--hype-height-mobile), 56vw, var(--hype-height-desktop)); max-height: 84svh; }
.hype-display-aspect { aspect-ratio: var(--hype-aspect); }
.hype-display-fixed { height: var(--hype-height-desktop); }
.hype-interaction-decorative iframe { pointer-events: none; user-select: none; }
.hype-embed-poster { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; transition: opacity .28s ease; }
.hype-embed.is-loaded .hype-embed-poster { opacity: 0; pointer-events: none; }
.hype-embed-loading { position: absolute; inset: 0; z-index: 0; display: grid; place-items: center; }
.hype-embed-loading span { width: 32px; aspect-ratio: 1; border: 2px solid color-mix(in srgb, var(--text) 18%, transparent); border-top-color: var(--accent); border-radius: 50%; animation: hype-loading-spin .8s linear infinite; }
.hype-embed.is-loaded .hype-embed-loading, .hype-embed.is-reduced-motion .hype-embed-loading { display: none; }
.hype-embed.is-reduced-motion iframe { display: none; }
.builder-hype-stage { max-width: 1200px; margin-inline: auto; }
.builder-hero-hype { max-width: none; margin: 0; }
.hype-section-heading + .hype-embed { margin-top: clamp(24px, 4vw, 46px); }
@keyframes hype-loading-spin { to { transform: rotate(360deg); } }
@media (max-width: 720px) {
  .hype-display-responsive, .hype-display-fixed { height: var(--hype-height-mobile); min-height: min(var(--hype-height-mobile), 76svh); }
}
@media (prefers-reduced-motion: reduce) {
  .hype-embed iframe, .hype-embed-poster { transition: none; }
  .hype-embed-loading span { animation: none; }
}
.hype-embed-controls{position:absolute;z-index:4;right:1rem;bottom:1rem;display:flex;gap:.35rem;padding:.35rem;border-radius:999px;background:color-mix(in srgb,var(--surface,#111) 82%,transparent);backdrop-filter:blur(12px)}
.hype-embed-controls button{inline-size:2.25rem;block-size:2.25rem;border:0;border-radius:50%;background:var(--text,#fff);color:var(--background,#111);cursor:pointer;font:inherit}
/* Animated public identity */
.brand-mark[data-animated-identity]{position:relative;isolation:isolate;overflow:hidden}
.brand-static-layer,.brand-animation-layer{display:grid;place-items:center;width:100%;height:100%}
.brand-static-layer{position:relative;z-index:1}
.brand-animation-layer{position:absolute;inset:0;z-index:0;border-radius:0;background:var(--aws-hype-host-background,transparent)!important;background-color:var(--aws-hype-host-background,transparent)!important;pointer-events:none;isolation:isolate}
.brand-animation-layer.hype-embed{background:var(--aws-hype-host-background,transparent)!important;background-color:var(--aws-hype-host-background,transparent)!important}
.brand-animation-layer iframe{width:100%;height:100%;min-width:0;min-height:0;object-fit:contain;pointer-events:none;user-select:none;background:var(--aws-hype-host-background,transparent)!important;background-color:var(--aws-hype-host-background,transparent)!important;color-scheme:normal;transition:none!important}
.brand-animation-layer[data-hype-identity-tone-sync="true"] iframe{opacity:0}
.brand-animation-layer[data-hype-identity-tone-sync="true"].is-loaded.is-identity-surface-ready iframe{opacity:1}
.brand-animation-mobile{display:none}
.brand-mark.is-desktop-animation-ready .brand-animation-desktop{z-index:2}

/* The identity frame receives the exact computed colour of its host surface.
   Its inner document and scene receive the same colour through the bridge, so
   even a browser that mis-composites transparent Hype canvases cannot expose a
   white rectangle. Artwork itself never uses filters, masks or blend modes. */
.brand-animation-layer iframe{
  filter:none!important;
  mix-blend-mode:normal!important;
}
.brand-mark.has-desktop-animation.is-desktop-animation-ready .brand-static-layer{opacity:0}
html.identity-animation-seen .brand-mark[data-identity-frequency="once_session"] .brand-animation-layer{display:none!important}
html.identity-animation-seen .brand-mark[data-identity-frequency="once_session"] .brand-static-layer{opacity:1}
@media(max-width:720px){
  .brand-animation-desktop{display:none}
  .brand-animation-mobile{display:grid}
  .brand-mark.is-mobile-animation-ready .brand-animation-mobile{z-index:2}
  .brand-mark.has-desktop-animation:not(.has-mobile-animation) .brand-static-layer{opacity:1}
  .brand-mark.has-mobile-animation.is-mobile-animation-ready .brand-static-layer{opacity:0}
}
@media(prefers-reduced-motion:reduce){
  .brand-mark[data-identity-reduced-motion="static"] .brand-animation-layer{display:none!important}
  .brand-mark[data-identity-reduced-motion="static"] .brand-static-layer{opacity:1!important}
  .brand-mark[data-identity-reduced-motion="hidden"]{visibility:hidden}
}


/* Header compact animations follow the same visual contract as static marks. */
.site-header .brand-animation-layer.brand-animation-role-compact {
  inset: 50% auto auto 0;
  width: var(--header-compact-mark-max-width, 2.65rem);
  height: var(--header-compact-mark-size, 1.9rem);
  transform: translateY(-50%);
  overflow: hidden;
}
.site-header .brand-animation-layer.brand-animation-role-compact iframe {
  width: 100%;
  height: 100%;
}


/* A custom scroll-transition composition owns the visible full-to-compact
   morph. Keep the host slot stable so the normal static logo switch and width
   transition cannot appear on top of, or instead of, the authored Hype motion. */
.site-header .brand-mark.has-header-transition-animation,
.site-header.scrolled .brand-mark.has-header-transition-animation {
  width: min(11rem, 18vw);
  max-width: min(11rem, 18vw);
  overflow: visible;
  transition: none;
}
.site-header .brand-mark.has-header-transition-animation .brand-static-layer .brand-logo-primary {
  display: block !important;
}
.site-header .brand-mark.has-header-transition-animation .brand-static-layer .brand-logo-compact {
  display: none !important;
}
.site-header .brand-animation-layer.brand-animation-role-transition {
  inset: 0 auto auto 0;
  width: var(--aws-hype-canvas-width, 100%);
  min-width: 100%;
  height: var(--aws-hype-canvas-height, 100%);
  min-height: 100%;
  overflow: visible;
}
.site-header .brand-animation-layer.brand-animation-role-transition iframe {
  width: 100%;
  height: 100%;
}
@media(max-width:720px){
  .site-header .brand-mark.has-header-transition-animation{width:auto;max-width:min(9.5rem,28vw)}
}
