/* Berserk's existing three concept images become one backdrop for the composer. */
.berserk-hero {
  --hero-scrim: 23, 23, 25;
  --composer-surface: #202126eb;
  --composer-line: #ffffff30;
  --composer-shadow: #00000038;
  --wordmark-metal: linear-gradient(174deg, #fbfcfe 4%, #b4bdc8 31%, #6b7685 48%, #d7e0e8 56%, #8b97a7 76%, #e9edf3 100%);
  display: grid;
  align-items: center;
  min-height: 740px;
  min-height: min(780px, calc(100svh - 44px));
  padding: 48px 24px 64px;
}
html[data-theme="light"] .berserk-hero {
  --hero-scrim: 255, 255, 255;
  --composer-surface: #fffffff0;
  --composer-line: #c3c7d2;
  --composer-shadow: #273a591a;
  --wordmark-metal: linear-gradient(170deg, #8d9299 0%, #dfe2e6 24%, #adb3bb 43%, #f0f2f4 52%, #9ca3ac 68%, #c8cdd3 84%, #9299a2 100%);
}
.berserk-backdrop { position: absolute; inset: 0; z-index: -1; display: grid; grid-template-columns: 1fr 1.16fr 1fr; pointer-events: none; }
html[data-theme] body.glacier-site .berserk-backdrop .model-artwork {
  height: 100%; aspect-ratio: auto; background-color: transparent;
  opacity: .95;
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
html[data-theme] body.glacier-site .berserk-hero[data-mode="dialogue"] .model-artwork-dialogue,
html[data-theme] body.glacier-site .berserk-hero[data-mode="imagination"] .model-artwork-imagination,
html[data-theme] body.glacier-site .berserk-hero[data-mode="motion"] .model-artwork-motion { opacity: 1; filter: brightness(.82) contrast(1.15); }
html[data-theme="dark"] body.glacier-site .berserk-hero[data-mode="dialogue"] .model-artwork-dialogue,
html[data-theme="dark"] body.glacier-site .berserk-hero[data-mode="imagination"] .model-artwork-imagination,
html[data-theme="dark"] body.glacier-site .berserk-hero[data-mode="motion"] .model-artwork-motion { filter: brightness(1.25) contrast(1.1); }
.berserk-backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--hero-scrim),.97), rgba(var(--hero-scrim),.62) 23%, rgba(var(--hero-scrim),.18) 62%, rgba(var(--hero-scrim),.95)); }
.berserk-hero-content { width: min(760px, 100%); margin: auto; }
.berserk-hero .campaign-copy { padding: 0; }
.berserk-hero h1 {
  display: inline-block;
  padding-inline: .04em;
  /* The wordmark keeps the heavy system face it was drawn with, not the site's Geist text font. */
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'PingFang SC', 'Helvetica Neue', 'Microsoft YaHei', sans-serif;
  font-size: clamp(96px, 13vw, 164px);
  font-weight: 850;
  line-height: 1.06;
  letter-spacing: -.075em;
  background-image: var(--wordmark-metal);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
/* The silver wordmark fades into a white page; a tight cast shadow, as from a light above left, lifts it.
   drop-shadow, because text-shadow would paint over the clipped gradient. */
html[data-theme="light"] .berserk-hero h1 { filter: drop-shadow(.022em .035em .012em #0f172a80); }
.berserk-hero .product-subtitle { margin-top: 14px; font-size: 30px; line-height: 1.35; }
.berserk-hero .product-description { margin-top: 14px; font-size: 16px; line-height: 25px; }
.berserk-composer { margin-top: 38px; padding: 24px; text-align: left; border: 1px solid var(--composer-line); border-radius: 26px; background: var(--composer-surface); box-shadow: 0 20px 64px var(--composer-shadow), inset 0 1px #ffffff0f; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.berserk-prompt-label { display: block; color: var(--ab-text); font-size: 14px; font-weight: 500; line-height: 22px; }
.berserk-composer textarea { display: block; width: 100%; min-height: 100px; margin: 12px 0 20px; padding: 0; border: 0; resize: vertical; max-height: 240px; background: transparent; color: var(--ab-text); font: inherit; font-size: 18px; line-height: 1.65; border-radius: 2px; }
.berserk-composer textarea::placeholder { color: var(--ab-muted); opacity: 1; }
.berserk-composer textarea:focus-visible { outline: 2px solid var(--ab-accent); outline-offset: 6px; }
.berserk-composer-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.berserk-modes { display: flex; gap: 4px; border: 0; padding: 0; margin: 0; min-width: 0; }
.berserk-modes label { position: relative; cursor: pointer; }
.berserk-modes input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.berserk-modes label span { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 8px 12px; border-radius: 12px; color: var(--ab-muted); font-size: 14px; line-height: 20px; }
.berserk-mode-icon { width: 17px; height: 17px; background: currentColor; mask: var(--mode-icon) center / contain no-repeat; -webkit-mask: var(--mode-icon) center / contain no-repeat; }
.berserk-mode-dialogue { --mode-icon: url('assets/ui-icons/file-text.svg'); }
.berserk-mode-imagination { --mode-icon: url('assets/ui-icons/photo.svg'); }
.berserk-mode-motion { --mode-icon: url('assets/ui-icons/video.svg'); }
.berserk-modes input:checked + span { background: var(--ab-raised); color: var(--ab-text); }
.berserk-modes input:focus-visible + span { outline: 2px solid var(--ab-accent); outline-offset: 2px; }
.berserk-modes label:hover span { color: var(--ab-text); }
.glacier-site .berserk-submit { min-height: 44px; padding: 11px 18px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.berserk-examples { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 18px 0 0; }
.berserk-examples button { padding: 9px 14px; min-height: 44px; border: 1px solid var(--composer-line); border-radius: 980px; background: var(--composer-surface); color: var(--ab-text); font-size: 13px; line-height: 20px; }
.berserk-examples button:hover { border-color: var(--ab-accent); }
.berserk-hero-links { display: flex; justify-content: center; align-items: center; gap: 22px; margin-top: 28px; font-size: 14px; line-height: 22px; }
.glacier-site .berserk-hero-links a { color: var(--ab-accent); padding-block: 10px; }
.berserk-hero-links a:hover { text-decoration: underline; }
.berserk-hero-links span { color: var(--ab-muted); }
.berserk-request-dialog { position: fixed; inset: 0; width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto; margin: auto; padding: 36px; border: 1px solid var(--ab-border); border-radius: 24px; background: var(--ab-bg); color: var(--ab-text); text-align: left; }
.berserk-request-dialog::backdrop { background: #0009; }
.berserk-request-dialog h2 { font-size: 24px; line-height: 1.3; padding-right: 32px; margin-bottom: 18px; }
.berserk-request-dialog [data-request-close] { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--ab-raised); color: var(--ab-text); font-size: 24px; }
.berserk-request-dialog [data-request-mode] { color: var(--ab-accent); font-size: 14px; }
.berserk-request-dialog [data-request-copy] { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 35dvh; overflow: auto; padding: 18px; margin-top: 10px; border-radius: 14px; background: var(--ab-surface); font-size: 16px; line-height: 1.7; }
.berserk-request-dialog .request-note { margin: 18px 0 24px; color: var(--ab-muted); font-size: 14px; line-height: 1.7; }
@media (max-width: 767px) {
  .berserk-hero { padding: 48px 20px 50px; min-height: min(740px, calc(100svh - 48px)); }
  .berserk-hero h1 { font-size: clamp(64px, 20vw, 100px); }
  .berserk-hero .product-subtitle { font-size: 24px; margin-top: 12px; }
  .berserk-hero .product-description { font-size: 14px; max-width: 300px; }
  .berserk-backdrop { grid-template-columns: 1fr 1.2fr 1fr; }
  html[data-theme] body.glacier-site .berserk-backdrop .model-artwork { background-size: auto 100%; }
  .berserk-composer { margin-top: 30px; padding: 20px 18px 16px; border-radius: 22px; }
  .berserk-composer textarea { font-size: 16px; min-height: 108px; margin-bottom: 12px; }
  .berserk-composer-toolbar { flex-wrap: wrap; gap: 14px; }
  .berserk-modes { width: 100%; gap: 4px; }
  .berserk-modes label { flex: 1; }
  .berserk-modes label span { padding-inline: 10px; }
  .glacier-site .berserk-submit { width: 100%; }
  .berserk-examples { gap: 4px 8px; margin-top: 14px; }
  .berserk-examples button { padding: 6px 10px; font-size: 12px; }
  .berserk-hero-links { margin-top: 18px; gap: 14px; font-size: 12px; flex-wrap: wrap; }
  .berserk-request-dialog { padding: 30px 22px; }
}
@media (prefers-reduced-transparency: reduce) {
  .berserk-composer, .berserk-examples button { background: var(--ab-surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (forced-colors: active) {
  .berserk-hero h1 { background: none; color: CanvasText; }
}
