/* Self-hosted fonts — no external font CDN is contacted at runtime. */
@font-face {
  font-family: "Bodoni Moda";
  src: url("/fonts/bodoni-moda-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("/fonts/bodoni-moda-latin-italic.woff2") format("woff2");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("/fonts/space-mono-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Original design stylesheet — source of truth from the provided HTML. */
:root {
  --ink: #12100d;
  --brown: #241811;
  --cream: #f5eddd;
  --gold: #b8935b;
  --gold2: #e2c48d;
  --muted: #b2a38c;
  --line: rgba(245, 237, 221, 0.14);
  --pad: clamp(1.25rem, 5.5vw, 6rem);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--ink);
  color: var(--cream);
  font-family: Manrope, sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}
a {
  color: inherit;
}
.serif {
  font-family: "Bodoni Moda", serif;
}
.mono {
  font-family: "Space Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.skip {
  position: fixed;
  left: 1rem;
  top: -5rem;
  background: var(--gold);
  color: var(--ink);
  padding: 0.8rem 1rem;
  z-index: 100;
}
.skip:focus {
  top: 1rem;
}
nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  padding: 1.35rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(22, 13, 9, 0.94), rgba(22, 13, 9, 0.18), transparent);
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand-logo {
  position: relative;
  display: inline-block;
  width: 180px;
  height: auto;
  line-height: 0;
}
.brand-logo-base {
  width: 100%;
  height: auto;
  display: block;
}
.brand-logo-sun {
  position: absolute;
  left: 64.77%;
  top: 36.61%;
  width: 16.61%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: logo-sun-spin 8s linear infinite;
  filter: drop-shadow(0 0 4px rgba(226, 196, 141, 0.55)) drop-shadow(0 0 10px rgba(184, 147, 91, 0.35));
}
@keyframes logo-sun-spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
@media (max-width: 720px) {
  .brand-logo {
    width: 130px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .brand-logo-sun {
    animation: none;
  }
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.78rem;
}
.nav-links a:hover {
  color: var(--cream);
}
.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--line);
  text-decoration: none;
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  transition: 0.25s;
}
.nav-cta,
.btn.primary {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
  font-weight: 600;
}
.btn:hover,
.nav-cta:hover {
  transform: translateY(-2px);
  border-color: var(--gold2);
}
.menu {
  display: none;
  background: none;
  border: 0;
  color: var(--cream);
  font: inherit;
  padding: 0.5rem;
}
.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  align-items: end;
  padding: 8rem var(--pad) 3rem;
  overflow: hidden;
}
.hero video,
.hero-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-poster {
  background-position: center;
  background-size: cover;
}
.hero video {
  opacity: 0.8;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 8, 5, 0.88) 0%, rgba(14, 8, 5, 0.22) 60%),
    linear-gradient(0deg, var(--ink) 0%, transparent 40%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 940px;
}
.hero h1 {
  font:
    400 clamp(2.8rem, 5.35vw, 5.65rem)/1.03 "Bodoni Moda",
    serif;
  letter-spacing: -0.025em;
  max-width: 15ch;
}
.hero h1 em {
  color: var(--gold2);
  font-weight: 400;
}
.hero-copy {
  max-width: 55ch;
  color: #d6c9b8;
  font-size: clamp(0.95rem, 1.3vw, 1.12rem);
  line-height: 1.7;
  margin: 1.5rem 0 1.8rem;
}
.actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-top: 4rem;
  color: #c8b9a5;
  font-size: 0.6rem;
}
.sample {
  border-left: 1px solid var(--gold);
  padding-left: 0.8rem;
}
.hero-rec {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #d9c7aa;
}
.hero-rec i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff5757;
  box-shadow: 0 0 12px rgba(255, 72, 72, 0.8);
  animation: rec-pulse 1.2s steps(2, end) infinite;
}
@keyframes rec-pulse {
  50% {
    opacity: 0.3;
  }
}
.sound {
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.scroll {
  writing-mode: vertical-rl;
  position: absolute;
  right: 1.4rem;
  top: 50%;
  z-index: 3;
  font-size: 0.55rem;
  color: var(--muted);
}
.partners {
  background: #1b100c;
  padding: clamp(3rem, 6vw, 5rem) var(--pad);
}
.partners .section-head {
  margin-bottom: 2rem;
}
.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: start;
}
.partner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}
.partner-logo-cell {
  width: 100%;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.partner img {
  max-width: 100%;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
}
.partner-wordmark {
  font:
    italic 500 1.125rem/1 "Bodoni Moda",
    serif;
  letter-spacing: 0.06em;
  color: var(--cream);
  white-space: nowrap;
}
.partner-name {
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: 100%;
}
main section {
  padding: clamp(5rem, 9vw, 9rem) var(--pad);
  border-top: 1px solid var(--line);
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 3.5rem;
}
.kicker {
  font-size: 0.62rem;
  color: var(--gold);
  margin-bottom: 1rem;
}
.section-head h2,
.work-copy h2,
.about h2,
.contact h2 {
  font:
    400 clamp(2.3rem, 5vw, 5rem)/1.05 "Bodoni Moda",
    serif;
}
.section-link {
  color: var(--gold2);
  text-underline-offset: 0.5rem;
  font-size: 0.75rem;
  white-space: nowrap;
}
.featured {
  background: var(--brown);
}
.featured-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.35fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: center;
}
.work-copy p {
  color: var(--muted);
  line-height: 1.8;
  margin: 1.3rem 0;
  max-width: 47ch;
}
.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}
.fact {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.64rem;
  color: var(--muted);
}
.fact b {
  display: block;
  color: var(--cream);
  font:
    400 1rem "Bodoni Moda",
    serif;
  margin-top: 0.35rem;
}
.media {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #0e0907;
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.08);
}
.media-featured {
  aspect-ratio: 1392 / 916;
  background: #0a0604;
  max-width: 1100px;
  margin-inline: auto;
}
.media-featured img {
  object-fit: contain;
  filter: none;
}
.media-featured::after {
  box-shadow: inset 0 0 70px rgba(10, 5, 3, 0.35);
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 70px rgba(10, 5, 3, 0.55);
}
.status {
  position: absolute;
  z-index: 2;
  right: 1rem;
  top: 1rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  font-size: 0.55rem;
}
.play {
  position: absolute;
  z-index: 3;
  inset: 50% auto auto 50%;
  translate: -50% -50%;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(15, 8, 5, 0.35);
  color: white;
  font-size: 1rem;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.projects {
  background: #1b100c;
}
.teams-intro {
  color: var(--muted);
  line-height: 1.8;
  max-width: 64ch;
  margin: -2rem 0 2.5rem;
  font-size: 0.95rem;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}
.team {
  position: relative;
  overflow: hidden;
  text-decoration: none;
  background: #2e1c13;
  display: block;
  min-height: 340px;
}
.team-wide {
  grid-column: span 6;
  min-height: 420px;
}
.team-tall {
  grid-column: span 3;
  min-height: 460px;
}
.team-small {
  grid-column: span 3;
  min-height: 360px;
}
.team img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  filter: saturate(0.55) brightness(0.85);
  transition:
    transform 0.6s,
    filter 0.6s;
}
.team::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(12, 7, 4, 0.94),
    rgba(12, 7, 4, 0.35) 55%,
    transparent 85%
  );
}
.team:hover img {
  transform: scale(1.035);
  filter: saturate(0.85) brightness(1);
}
.team-info {
  position: absolute;
  z-index: 2;
  inset: auto 1.4rem 1.4rem;
  max-width: 52ch;
}
.team-info h3 {
  font:
    400 clamp(1.35rem, 2vw, 2rem) "Bodoni Moda",
    serif;
  margin: 0 0 0.6rem;
}
.team-info p {
  color: #cdbfae;
  line-height: 1.65;
  font-size: 0.85rem;
  margin-bottom: 0.9rem;
}
.team-crew {
  display: block;
  font-size: 0.55rem;
  color: var(--gold2);
}
.team-arrow {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.68rem;
  color: var(--cream);
  transition: 0.3s;
}
.team:hover .team-arrow {
  color: var(--gold2);
  transform: translateX(3px);
}
/* Two work areas currently carry temporary, locally stored sample visuals.
   They are shown brighter and slightly more premium than the archive stills. */
.team-temporary img {
  filter: saturate(0.9) brightness(1.02) contrast(1.02);
  object-position: center 42%;
}
.team-temporary:hover img {
  filter: saturate(1) brightness(1.08) contrast(1.03);
}
.team-temporary::after {
  background: linear-gradient(
    0deg,
    rgba(12, 7, 4, 0.9),
    rgba(12, 7, 4, 0.28) 58%,
    rgba(12, 7, 4, 0.05) 88%
  );
}
.team-temporary {
  box-shadow: inset 0 0 0 1px rgba(227, 196, 143, 0.18);
}
/* Portrait sources are shown fully contained over a blurred cover-fit copy. */
.team-portrait .team-media-blur {
  object-fit: cover;
  object-position: center 45%;
  transform: scale(1.12);
  filter: blur(26px) saturate(0.6) brightness(0.42);
}
.team-portrait .team-media {
  object-fit: contain;
  object-position: 78% center;
  filter: saturate(0.95) brightness(1.02) contrast(1.02);
}
.team-portrait:hover .team-media {
  transform: none;
  filter: saturate(1) brightness(1.08) contrast(1.03);
}
.team-portrait::after {
  background: linear-gradient(
    90deg,
    rgba(12, 7, 4, 0.94),
    rgba(12, 7, 4, 0.55) 46%,
    rgba(12, 7, 4, 0.1) 74%
  );
}
@media (max-width: 760px) {
  /* On narrow screens the card ratio matches the portrait source, so a cover
     crop shows the sun and the full lettering without letterboxing. */
  .team-portrait {
    min-height: 640px;
  }
  .team-portrait .team-media {
    object-fit: cover;
    object-position: center 42%;
  }
  .team-portrait .team-media-blur {
    display: none;
  }
  .team-portrait::after {
    background: linear-gradient(
      0deg,
      rgba(12, 7, 4, 0.94),
      rgba(12, 7, 4, 0.45) 52%,
      rgba(12, 7, 4, 0.08) 86%
    );
  }
}
@media (prefers-reduced-motion: reduce) {
  .team-portrait .team-media-blur {
    transform: none;
  }
}
/* Web design work area: owner-provided short MP4 (848x720) as the only visual.
   It sits in a restrained, centred media frame on a matching dark ground so the
   limited source resolution is never upscaled beyond its natural quality. */
.team-motion {
  width: 100%;
  min-height: 0;
  aspect-ratio: auto;
  display: block;
  background: #0a0604;
  padding: clamp(1rem, 2.4vw, 2.2rem);
}
.team-motion .team-motion-frame {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  aspect-ratio: 848 / 720;
  background: #0a0604;
  overflow: hidden;
}
.team-motion .team-motion-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0a0604;
  filter: saturate(0.95) contrast(1.02);
  transition: filter 0.6s;
}
.team-motion:hover .team-motion-video {
  filter: saturate(1) brightness(1.06);
}
.team-motion .team-motion-video::-webkit-media-controls {
  display: none !important;
}
.team-motion .team-info {
  position: static;
  padding: clamp(1rem, 2vw, 1.6rem) 0 0;
  background: none;
  max-width: 62ch;
}
.team-motion-toggle {
  position: absolute;
  z-index: 3;
  top: 0.9rem;
  right: 0.9rem;
  padding: 0.4rem 0.8rem;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  background: rgba(12, 7, 4, 0.6);
  border: 1px solid rgba(227, 196, 143, 0.32);
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: 0.3s;
}
.team-motion-toggle:hover,
.team-motion-toggle:focus-visible {
  color: var(--gold2);
  border-color: rgba(227, 196, 143, 0.6);
}
@media (max-width: 760px) {
  .team-motion .team-motion-frame {
    max-width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .team-motion:hover .team-motion-video {
    filter: none;
  }
}
.team-temp-note {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  color: rgba(227, 196, 143, 0.72);
  max-width: 46ch;
  line-height: 1.5;
}
.teams-note {
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.7;
  max-width: 60ch;
}
.placeholder-note {
  font-size: 0.6rem;
  color: var(--muted);
}
.services {
  background: var(--ink);
}
.service-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.service {
  padding: 2.5rem 2.5rem 2.5rem 0;
  border-bottom: 1px solid var(--line);
}
.service + .service {
  padding-left: 2.5rem;
  border-left: 1px solid var(--line);
}
.num {
  color: var(--gold);
  font: 0.65rem "Space Mono";
}
.service h3 {
  font:
    400 2rem "Bodoni Moda",
    serif;
  margin: 0.7rem 0;
}
.service p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.9rem;
}
.about {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) 1fr;
  gap: clamp(3rem, 8vw, 9rem);
  align-items: center;
  background: #24150f;
}
.about--text {
  grid-template-columns: 1fr;
  align-items: start;
  gap: 0;
}
.portrait {
  position: relative;
  background: #1a100c;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.portrait img {
  width: 100%;
  height: auto;
  max-height: min(72vh, 760px);
  object-fit: contain;
  display: block;
}
.about-text {
  max-width: 58rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 4rem);
}
.about--text h2 {
  font-weight: 300;
  letter-spacing: 0.01em;
  font-style: normal;
}
.about p {
  color: var(--muted);
  line-height: 1.95;
  margin-top: 1.3rem;
  max-width: 68ch;
}
.location {
  margin-top: 2rem;
  color: var(--gold2);
  font-size: 0.7rem;
}
.filmography {
  background: var(--ink);
}
.film-showcase {
  background: #1b100c;
}
.film-showcase-intro {
  max-width: 64ch;
  margin: 0 0 2.4rem;
  color: var(--muted);
  line-height: 1.8;
}
.film-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.4rem, 3vw, 3rem);
}
.film-card {
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-top: 0.8rem;
}
.film-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #050404;
}
.film-frame iframe,
.film-play,
.film-play img {
  width: 100%;
  height: 100%;
}
.film-frame iframe {
  display: block;
  border: 0;
}
.film-play {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  cursor: pointer;
  color: var(--cream);
  background: #050404;
  text-align: left;
}
.film-play::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(6, 3, 2, 0.78), transparent 58%);
  transition: background 180ms ease;
}
.film-play img {
  display: block;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.08);
  transition:
    transform 500ms ease,
    filter 180ms ease;
}
.film-play:hover img,
.film-play:focus-visible img {
  transform: scale(1.025);
  filter: saturate(1) contrast(1.04);
}
.film-play:focus-visible {
  outline: 2px solid var(--gold2);
  outline-offset: 4px;
}
.film-play-icon {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 3.7rem;
  height: 3.7rem;
  border: 1px solid rgba(255, 239, 213, 0.7);
  border-radius: 50%;
  background: rgba(10, 6, 4, 0.55);
  backdrop-filter: blur(5px);
  padding-left: 0.2rem;
}
.film-play-label {
  position: absolute;
  z-index: 1;
  left: 1rem;
  bottom: 0.9rem;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
}
.film-card-copy {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 1rem;
  align-items: baseline;
  padding-top: 1rem;
}
.film-card-copy > span {
  grid-column: 1 / -1;
  color: var(--gold2);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.film-card-copy h3 {
  font:
    400 1.25rem "Bodoni Moda",
    serif;
}
.film-card-copy a {
  color: var(--muted);
  font-size: 0.66rem;
  text-underline-offset: 0.3rem;
  white-space: nowrap;
}
.film-card-copy a:hover {
  color: var(--gold2);
}
.film-privacy {
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.56rem;
  line-height: 1.7;
}
.film-row {
  display: grid;
  grid-template-columns: 90px 1fr 1fr 100px;
  gap: 1rem;
  align-items: baseline;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}
.film-row:last-child {
  border-bottom: 1px solid var(--line);
}
.film-year {
  color: var(--gold2);
}
.film-title {
  font:
    400 1.35rem "Bodoni Moda",
    serif;
}
.film-meta,
.film-role {
  color: var(--muted);
  font-size: 0.72rem;
}
.film-role {
  text-align: right;
}
.network {
  background: var(--brown);
}
.links {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
}
.links a {
  padding: 1.5rem 0.8rem 1.5rem 0;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  color: var(--gold2);
  font-size: 0.78rem;
}
.links a:hover {
  color: var(--cream);
}
.contact {
  min-height: 70vh;
  display: grid;
  align-content: center;
  position: relative;
  overflow: hidden;
  background-position: center;
  background-size: cover;
}
.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.contact-media {
  width: 100%;
  max-width: 520px;
  justify-self: end;
  border: 1px solid var(--line);
  background: #0a0604;
  padding: 0.6rem;
}
.contact-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 800 / 422;
  object-fit: contain;
}
.contact-media .contact-gif-static {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .contact-media .contact-gif {
    display: none;
  }
  .contact-media .contact-gif-static {
    display: block;
  }
}
.contact h2 {
  max-width: 12ch;
  font-size: clamp(3.2rem, 7vw, 7rem);
}
.contact p {
  color: var(--muted);
  max-width: 48ch;
  line-height: 1.7;
  margin: 1.5rem 0 2rem;
}
.mail {
  display: inline-block;
  color: var(--gold2);
  font-size: clamp(0.9rem, 1.5vw, 1.2rem);
  margin-top: 1.4rem;
  text-underline-offset: 0.5rem;
}
footer {
  padding: 2rem var(--pad);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.65rem;
  border-top: 1px solid var(--line);
}
footer a {
  margin-left: 1.5rem;
}
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: 0.8s ease;
}
[data-reveal].in {
  opacity: 1;
  transform: none;
}
@media (max-width: 850px) {
  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--ink);
    display: none;
    place-content: center;
    text-align: center;
    gap: 1.7rem;
  }
  .nav-links.open {
    display: grid;
  }
  .nav-links a {
    font:
      400 2rem "Bodoni Moda",
      serif;
    color: var(--cream);
  }
  .menu {
    display: block;
    position: relative;
    z-index: 2;
  }
  .nav-cta {
    display: none;
  }
  .featured-grid,
  .about {
    grid-template-columns: 1fr;
  }
  .portrait img {
    max-height: min(58vh, 520px);
  }
  .team-tall,
  .team-small {
    grid-column: span 3;
  }
  .service-list {
    grid-template-columns: 1fr;
  }
  .service + .service {
    padding-left: 0;
    border-left: 0;
  }
  .film-row {
    grid-template-columns: 55px 1fr;
  }
  .film-meta {
    grid-column: 2;
  }
  .film-role {
    display: none;
  }
  .links {
    grid-template-columns: 1fr 1fr;
  }
  .hero-meta {
    margin-top: 2rem;
  }
  .scroll {
    display: none;
  }
  .partner-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .hero {
    padding-bottom: 1.5rem;
  }
  .hero h1 {
    font-size: clamp(2.55rem, 11.5vw, 3.75rem);
    line-height: 1.05;
  }
  .hero-copy {
    font-size: 0.9rem;
  }
  .btn {
    width: 100%;
  }
  .hero-meta {
    display: block;
  }
  .sound {
    display: block;
    margin-top: 1rem;
  }
  .section-head {
    align-items: start;
    flex-direction: column;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
  .team,
  .team-wide,
  .team-tall,
  .team-small {
    grid-column: auto;
    min-height: 340px;
  }
  .team-portrait {
    min-height: 620px;
  }

  .team-info {
    inset: auto 1.1rem 1.1rem;
  }
  .links {
    grid-template-columns: 1fr;
  }
  .film-row {
    grid-template-columns: 50px 1fr;
  }
  .film-showcase-grid {
    grid-template-columns: 1fr;
  }
  .film-card-copy {
    grid-template-columns: 1fr;
  }
  .film-card-copy a {
    margin-top: 0.25rem;
  }
  .facts {
    grid-template-columns: 1fr;
  }
  .contact {
    min-height: 80vh;
  }
  .contact-inner {
    grid-template-columns: 1fr;
  }
  .contact-media {
    max-width: 100%;
    justify-self: stretch;
  }
  .partner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 380px) {
  .partner-grid {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .hero video {
    display: none;
  }
}

/* Language switcher, legal pages, fallback pages, accessibility */
.nav-end {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: "Space Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
}
.lang-switch .lang-btn {
  color: var(--muted);
  text-decoration: none;
  padding: 0.35rem 0.45rem;
  border: 1px solid transparent;
  border-radius: 2px;
}
.lang-switch .lang-btn:hover {
  color: var(--gold2);
}
.lang-switch .lang-btn.active {
  color: var(--ink);
  background: var(--gold2);
  border-color: var(--gold2);
}
.lang-switch .lang-btn-umbriel {
  color: #83bfff;
  letter-spacing: 0.08em;
}
.lang-switch .lang-btn-umbriel:hover {
  color: #d9f1ff;
  text-shadow: 0 0 14px rgba(92, 170, 255, 0.75);
}
.lang-sep {
  color: var(--line);
}
.nav-lang-mobile {
  display: none;
}
:focus-visible {
  outline: 2px solid var(--gold2);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 50;
  background: var(--gold2);
  color: var(--ink);
  padding: 0.7rem 1rem;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
}
.legal {
  padding: 9rem var(--pad) 5rem;
  max-width: 74ch;
}
.legal h1 {
  font:
    400 clamp(2.2rem, 4vw, 3.4rem)/1.1 "Bodoni Moda",
    serif;
  letter-spacing: -0.02em;
  margin-bottom: 1.4rem;
}
.legal h2 {
  font:
    400 clamp(1.15rem, 2vw, 1.5rem)/1.3 "Bodoni Moda",
    serif;
  color: var(--gold2);
  margin: 2.4rem 0 0.7rem;
}
.legal h3 {
  font-size: 1rem;
  margin: 1.5rem 0 0.5rem;
}
.legal p,
.legal li {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 0.8rem;
}
.legal ul {
  padding-left: 1.1rem;
  margin-bottom: 1rem;
}
.legal .legal-intro {
  color: var(--cream);
}
.legal .section-link {
  display: inline-block;
  margin-top: 2.5rem;
}
.fallback-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 6rem var(--pad);
}
.fallback-page h1 {
  font:
    400 clamp(1.8rem, 4vw, 3rem)/1.15 "Bodoni Moda",
    serif;
  margin-bottom: 0.8rem;
}
.fallback-page p {
  color: var(--muted);
  margin-bottom: 1.6rem;
}
.fallback-code {
  color: var(--gold2);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  margin-bottom: 1rem;
}
.fallback-actions {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}
@media (max-width: 860px) {
  .nav-end .lang-switch.nav-lang-desktop {
    display: none;
  }
  .nav-lang-mobile {
    display: block;
    margin-top: 0.6rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
.nav-links .lang-switch a,
.nav-links .lang-switch {
  font-family: "Space Mono", monospace;
  font-size: 0.7rem;
  font-style: normal;
}

/* Keep the motion card driven by its aspect ratio on small screens, so the
   generic .team min-height cannot force a wider box than the viewport. */
@media (max-width: 560px) {
  .team-motion {
    min-height: 0;
    aspect-ratio: auto;
  }
}

/* Feature Film: owner-provided original still with burned-in lettering. The
   image is contained on a matching dark ground so the title and the director
   credit stay fully visible at every viewport width. */
.team-film {
  background: #0a0604;
}
.team-film .team-media {
  object-fit: contain;
  object-position: center center;
}
.team-film::after {
  background: linear-gradient(
    0deg,
    rgba(10, 6, 4, 0.92),
    rgba(10, 6, 4, 0.2) 52%,
    rgba(10, 6, 4, 0) 78%
  );
}
@media (max-width: 720px) {
  /* Contained wide still inside a taller card: anchor it above the caption
     block so the burned-in title stays clear of the overlay text. */
  .team-film .team-media {
    object-position: center 0%;
  }
}

/* Documentary work area: owner-provided portrait loop, contained over a
   blurred copy of its first frame. No controls are ever rendered. */
.team-loop .team-media-blur {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.15);
  filter: blur(28px) saturate(0.6) brightness(0.4);
}
.team-loop .team-loop-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  pointer-events: none;
}
.team-loop .team-loop-media::-webkit-media-controls {
  display: none !important;
}
.team-loop::after {
  background: linear-gradient(
    0deg,
    rgba(12, 7, 4, 0.92),
    rgba(12, 7, 4, 0.34) 56%,
    rgba(12, 7, 4, 0.06) 88%
  );
}
@media (max-width: 760px) {
  .team-loop {
    min-height: 520px;
  }
  .team-loop .team-loop-media {
    object-fit: cover;
    object-position: center 40%;
  }
  .team-loop .team-media-blur {
    display: none;
  }
}

/* Advertising / teaser / social work area: owner-provided portrait loop in a
   restrained frame, plus the premium claim line beneath the heading. */
.team-ad {
  min-height: 560px;
}
.team-ad .team-loop-media {
  object-fit: contain;
}
.team-claim {
  margin: 0.35rem 0 0.55rem;
  font-family: "Bodoni Moda", Georgia, serif;
  font-size: clamp(0.98rem, 1.05vw, 1.125rem);
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: #e3c48f;
  opacity: 0.94;
  max-width: 42ch;
}
@media (max-width: 760px) {
  .team-ad {
    min-height: 520px;
  }
  .team-ad .team-loop-media {
    object-fit: cover;
    object-position: center 40%;
  }
  .team-claim {
    font-size: 1rem;
  }
}

/* ---------------------------------------------------------------------- */
/* Cinematic intro (countdown + iris-wipe) and ambient film grain overlay */
/* ---------------------------------------------------------------------- */

.film-grain {
  position: fixed;
  inset: 0;
  z-index: 9990;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
  animation: js-grain-shift 0.7s steps(6) infinite;
}
@keyframes js-grain-shift {
  0% {
    transform: translate(0, 0);
  }
  20% {
    transform: translate(-2%, -1.5%);
  }
  40% {
    transform: translate(1.5%, 2%);
  }
  60% {
    transform: translate(-1.5%, 1.5%);
  }
  80% {
    transform: translate(2%, -2%);
  }
  100% {
    transform: translate(0, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .film-grain {
    animation: none;
    opacity: 0.03;
  }
}

/* ---------------------------------------------------------------------- */
/* Film-strip scrollbar                                                   */
/* ---------------------------------------------------------------------- */

html {
  scrollbar-color: var(--gold) var(--ink);
  scrollbar-width: thin;
}
::-webkit-scrollbar {
  width: 14px;
}
::-webkit-scrollbar-track {
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(226, 196, 141, 0.28) 0px,
      rgba(226, 196, 141, 0.28) 6px,
      transparent 6px,
      transparent 14px
    ),
    var(--ink);
  background-position:
    2px 0,
    0 0;
  background-repeat: repeat-y;
  border-left: 1px solid rgba(226, 196, 141, 0.12);
  border-right: 1px solid rgba(226, 196, 141, 0.12);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold2), var(--gold));
  border-radius: 2px;
  border: 3px solid var(--ink);
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold2);
  background-clip: padding-box;
}

/* ---------------------------------------------------------------------- */
/* Logo shutter easter egg                                                */
/* ---------------------------------------------------------------------- */

.shutter-flash {
  position: fixed;
  inset: 0;
  z-index: 10060;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}
.shutter-flash.is-flashing {
  animation: js-shutter-flash 0.32s ease-out;
}
@keyframes js-shutter-flash {
  0% {
    opacity: 0;
  }
  8% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .shutter-flash.is-flashing {
    animation: none;
  }
}

/* ============================================================
   Galerie — Kontaktbogen
   Die Platten sind bewusst leer und warten auf eigene Aufnahmen.
   Das Sprossen-Motiv am Rand zitiert den 35-mm-Kontaktbogen.
   ============================================================ */
.gallery {
  padding: clamp(5rem, 11vw, 9rem) var(--pad);
  border-top: 1px solid var(--line);
}
.gallery .section-head {
  display: grid;
  gap: 1.6rem;
  align-items: end;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  margin-bottom: clamp(2.4rem, 5vw, 4rem);
}
.gallery h2 {
  font:
    400 clamp(1.9rem, 4.2vw, 3.6rem) / 1.06 "Bodoni Moda",
    serif;
  max-width: 18ch;
}
.gallery-note {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.65;
  max-width: 42ch;
  justify-self: end;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.9rem, 1.6vw, 1.5rem);
}
.plate {
  position: relative;
  margin: 0;
}
.plate-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 3 / 4;
  transition:
    border-color 0.5s ease,
    transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.plate-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.plate:hover .plate-frame {
  border-color: rgba(184, 147, 91, 0.5);
  transform: translateY(-4px);
}
@media (max-width: 900px) {
  .gallery .section-head {
    grid-template-columns: 1fr;
  }
  .gallery-note {
    justify-self: start;
  }
}
@media (max-width: 720px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .plate-frame,
  .plate:hover .plate-frame {
    transition: none;
    transform: none;
  }
}
/* ------------------------------------------------------------
   Ergänzungen: lebendiger UMBRIEL-Kern
   Inhalt an das Ende von src/portfolio.css bzw. src/umbriel.css
   anhängen.
   ------------------------------------------------------------ */

.umbriel-core {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 3;
}

/* Der Container der Kugel muss eine Positionierung haben,
   damit der Kern mittig darüber liegt. */
.umbriel-sphere,
.umbriel-visual {
  position: relative;
}

@media (prefers-reduced-motion: reduce) {
  .umbriel-core {
    opacity: 0.85;
  }
}

/* Canvas der Sonne innerhalb der positionierten Hülle */
.umbriel-sun-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
/* ------------------------------------------------------------
   Ergänzungen — an das Ende von src/portfolio.css anhängen
   ------------------------------------------------------------ */

/* Hero ---------------------------------------------------------- */
.hero-seq {
  position: relative;
  height: 700vh;
  background: #000;
}
.hero-seq-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
.hero-seq-canvas {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.hero-seq-name {
  margin: 0;
  position: absolute;
  left: 5.5vw;
  bottom: 8vh;
  color: #e8e2d8;
  font-weight: 300;
  letter-spacing: 0.42em;
  font-size: clamp(15px, 2.3vw, 32px);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.25s linear;
  pointer-events: none;
}

/* Telefon: Scrollstrecke bleibt, nur etwas kuerzer */
@media (max-width: 760px) {
  .hero-seq { height: 460vh; }
}
@media (max-width: 720px) {
  .hero-seq-name { left: 7vw; bottom: 11vh; letter-spacing: 0.32em; }
}

/* Nur in der Schleife oder als Standbild genau ein Bildschirm */
.hero-seq--loop,
.hero-seq--still {
  height: 100vh;
}
.hero-seq--loop .hero-seq-name,
.hero-seq--still .hero-seq-name {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .hero-seq { height: 100vh; }
}

/* Urhebervermerk im Fuß --------------------------------------- */
.site-credit {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #7d7568;
}
.site-credit a { color: inherit; text-decoration: none; }
.site-credit a:hover { text-decoration: underline; }

/* Hinweis, dass UMBRIEL derzeit kostenfrei ist -------------------- */
.umbriel-beta-note {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.6;
  color: #8b8272;
}

/* UMBRIEL — cinematic local companion. Isolated animation + panel styles. */
.umbriel-root {
  position: fixed;
  right: clamp(0.9rem, 2.2vw, 2rem);
  top: 52%;
  transform: translateY(-42%);
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
  pointer-events: none;
}
.umbriel-root > * {
  pointer-events: auto;
}
.umbriel-trigger {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  color: var(--muted);
  transition: transform 0.4s ease;
}
.umbriel-trigger:hover {
  transform: translateY(-2px);
}
.umbriel-trigger:focus-visible,
.umbriel-ghost:focus-visible,
.umbriel-chip:focus-visible,
.umbriel-send:focus-visible,
.umbriel-input:focus-visible,
.umbriel-link:focus-visible {
  outline: 2px solid var(--gold2);
  outline-offset: 3px;
}
.umbriel-caption {
  font-size: 0.5rem;
  color: #9db4e6;
  opacity: 0.85;
}
.umbriel-orb {
  position: relative;
  display: block;
  width: clamp(126px, 10vw, 158px);
  height: clamp(126px, 10vw, 158px);
  filter: drop-shadow(0 0 30px rgba(71, 139, 255, 0.5));
}
.umbriel-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.umbriel-particles {
  pointer-events: none;
}

@keyframes umbriel-breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.95;
  }
  50% {
    transform: scale(1.045);
    opacity: 1;
  }
}
@keyframes umbriel-heart {
  0%,
  100% {
    opacity: 0.6;
    r: 8;
  }
  50% {
    opacity: 0.95;
    r: 9.6;
  }
}
@keyframes umbriel-spin {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes umbriel-spin-rev {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0);
  }
}
@keyframes umbriel-fil {
  0%,
  100% {
    transform: translateY(0) scaleY(1);
    opacity: 0.5;
  }
  50% {
    transform: translateY(-1.5px) scaleY(1.12);
    opacity: 0.9;
  }
}
@keyframes umbriel-bloom {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 0.9;
  }
}
@keyframes umbriel-dial {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(-360deg);
  }
}

.umbriel-core,
.umbriel-ring,
.umbriel-fil,
.umbriel-bloom,
.umbriel-dial,
.umbriel-dial-rev {
  transform-origin: 60px 60px;
  will-change: transform, opacity;
}
.umbriel-core {
  animation: umbriel-breathe 6.5s ease-in-out infinite;
}
.umbriel-heart {
  animation: umbriel-heart 4.2s ease-in-out infinite;
}
.umbriel-bloom {
  animation: umbriel-bloom 7s ease-in-out infinite;
}
.umbriel-ring-1 {
  animation: umbriel-spin 26s linear infinite;
}
.umbriel-ring-2 {
  animation: umbriel-spin-rev 38s linear infinite;
}
.umbriel-ring-3 {
  animation: umbriel-spin 17s linear infinite;
}
.umbriel-dial {
  animation: umbriel-dial 60s linear infinite;
}
.umbriel-dial-rev {
  animation: umbriel-spin 34s linear infinite;
}
.umbriel-filaments {
  opacity: 0.85;
}
.umbriel-filaments-front {
  opacity: 0.4;
}
.umbriel-fil-1 {
  animation: umbriel-fil 5.5s ease-in-out infinite;
}
.umbriel-fil-2 {
  animation: umbriel-fil 7.2s ease-in-out infinite 0.6s;
}
.umbriel-fil-3 {
  animation: umbriel-fil 6.3s ease-in-out infinite 1.1s;
}

.umbriel-state-listening .umbriel-filaments {
  opacity: 1;
}
.umbriel-state-listening .umbriel-fil-1,
.umbriel-state-listening .umbriel-fil-2,
.umbriel-state-listening .umbriel-fil-3 {
  animation-duration: 2.4s;
}
.umbriel-state-thinking .umbriel-ring-1 {
  animation-duration: 9s;
}
.umbriel-state-thinking .umbriel-ring-2 {
  animation-duration: 13s;
}
.umbriel-state-thinking .umbriel-ring-3 {
  animation-duration: 6s;
}
.umbriel-state-speaking .umbriel-fil-1,
.umbriel-state-speaking .umbriel-fil-2,
.umbriel-state-speaking .umbriel-fil-3 {
  animation-duration: 1.1s;
}
.umbriel-state-speaking .umbriel-core {
  animation-duration: 1.6s;
}

/* panel */
.umbriel-panel {
  width: min(350px, calc(100vw - 1.8rem));
  max-height: min(78vh, 640px);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.1rem;
  background: linear-gradient(145deg, rgba(7, 12, 28, 0.9), rgba(17, 10, 11, 0.86));
  backdrop-filter: blur(22px) saturate(125%);
  border: 1px solid rgba(128, 171, 255, 0.24);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 0 50px rgba(31, 88, 202, 0.1),
    inset 0 0 44px rgba(92, 140, 255, 0.08);
  animation: umbriel-panel-arrive 0.42s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  transform-origin: right center;
}
@keyframes umbriel-panel-arrive {
  from {
    opacity: 0;
    transform: translateX(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}
.umbriel-panel[hidden] {
  display: none;
}
.umbriel-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.7rem;
}
.umbriel-title {
  font-size: 1.15rem;
  letter-spacing: 0.06em;
}
.umbriel-tagline {
  font-size: 0.5rem;
  color: var(--muted);
  margin-top: 0.25rem;
}
.umbriel-head-actions {
  display: flex;
  gap: 0.4rem;
}
.umbriel-ghost {
  background: none;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.5rem;
  padding: 0.35rem 0.5rem;
  cursor: pointer;
  font-family: "Space Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.umbriel-ghost:hover {
  color: var(--cream);
  border-color: var(--gold);
}
.umbriel-ghost[aria-pressed="true"] {
  color: var(--gold2);
  border-color: var(--gold);
}
.umbriel-log {
  flex: 0 0 240px;
  height: 240px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-right: 0.2rem;
}
.umbriel-msg p {
  font-size: 0.82rem;
  line-height: 1.65;
  color: #d6c9b8;
}
.umbriel-msg-user {
  border-left: 1px solid var(--gold);
  padding-left: 0.65rem;
}
.umbriel-msg-user p {
  color: var(--cream);
}
.umbriel-who {
  display: block;
  font-size: 0.45rem;
  color: var(--gold);
  margin-bottom: 0.25rem;
}
.umbriel-link {
  display: inline-block;
  margin-top: 0.45rem;
  font-size: 0.7rem;
  color: var(--gold2);
  text-decoration: none;
}
.umbriel-link:hover {
  color: var(--cream);
}
.umbriel-status {
  min-height: 0.9rem;
  font-size: 0.5rem;
  color: #9db4e6;
}
.umbriel-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.umbriel-chip {
  background: none;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.5rem;
  padding: 0.4rem 0.55rem;
  cursor: pointer;
  font-family: "Space Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.umbriel-chip:hover {
  color: var(--cream);
  border-color: var(--gold);
}
.umbriel-form {
  display: flex;
  gap: 0.4rem;
}
.umbriel-input {
  flex: 1;
  min-width: 0;
  background: rgba(244, 235, 221, 0.04);
  border: 1px solid var(--line);
  color: var(--cream);
  font: inherit;
  font-size: 0.82rem;
  padding: 0.6rem 0.7rem;
}
.umbriel-input::placeholder {
  color: var(--muted);
}
.umbriel-send {
  background: var(--gold);
  border: 1px solid var(--gold);
  color: var(--ink);
  font-size: 0.55rem;
  padding: 0.55rem 0.8rem;
  cursor: pointer;
  font-family: "Space Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.umbriel-disclaimer {
  font-size: 0.55rem;
  color: var(--muted);
  line-height: 1.55;
}
.umbriel-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 760px) {
  .umbriel-orb {
    width: 72px;
    height: 72px;
  }
  .umbriel-root {
    right: 0.75rem;
    top: auto;
    bottom: calc(0.9rem + env(safe-area-inset-bottom));
    transform: none;
  }
  .umbriel-panel {
    width: calc(100vw - 1.5rem);
    max-height: 75vh;
  }
  .umbriel-log {
    flex: 0 0 34vh;
    height: 34vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .umbriel-core,
  .umbriel-heart,
  .umbriel-bloom,
  .umbriel-ring-1,
  .umbriel-ring-2,
  .umbriel-ring-3,
  .umbriel-dial,
  .umbriel-dial-rev,
  .umbriel-fil-1,
  .umbriel-fil-2,
  .umbriel-fil-3 {
    animation: none !important;
  }
  .umbriel-trigger {
    transition: none;
  }
}

/* ---- fully procedural companion capsule ---- */
.umbriel-capsule {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: visible;
  background: radial-gradient(
    circle,
    rgba(30, 82, 190, 0.14),
    rgba(2, 5, 18, 0.58) 62%,
    transparent 72%
  );
  box-shadow:
    inset 0 0 24px rgba(92, 140, 255, 0.25),
    0 0 26px rgba(92, 140, 255, 0.22);
}
.umbriel-rim {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid rgba(200, 155, 92, 0.35);
  pointer-events: none;
}
.umbriel-axis {
  position: absolute;
  left: 50%;
  top: -14%;
  bottom: -14%;
  width: 1px;
  background: linear-gradient(transparent, rgba(227, 196, 143, 0.55), transparent);
  opacity: 0.72;
  pointer-events: none;
}
.umbriel-axis::before,
.umbriel-axis::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(227, 196, 143, 0.55);
  border-radius: 50%;
  transform: translateX(-50%);
}
.umbriel-axis::before {
  top: 11%;
}
.umbriel-axis::after {
  bottom: 11%;
}
.umbriel-axis-node {
  position: absolute;
  left: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #f3d7a7;
  box-shadow: 0 0 8px #f3d7a7;
  transform: translateX(-50%);
}
.umbriel-axis-node-a {
  top: 2%;
}
.umbriel-axis-node-b {
  bottom: 2%;
}
.umbriel-bloom-layer {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(140, 175, 255, 0.35),
    rgba(92, 140, 255, 0.08) 55%,
    transparent 72%
  );
  mix-blend-mode: screen;
  animation: umbriel-bloom 7s ease-in-out infinite;
}
.umbriel-wave-layer {
  position: absolute;
  inset: -30%;
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgba(155, 123, 255, 0.35) 48%,
    rgba(180, 210, 255, 0.5) 52%,
    transparent 62%
  );
  mix-blend-mode: screen;
  opacity: 0.5;
  animation: umbriel-travel 9s linear infinite;
}
.umbriel-tick-layer {
  position: absolute;
  inset: 0;
  animation: umbriel-spin 30s linear infinite;
}
.umbriel-tick {
  position: absolute;
  left: 50%;
  top: 2px;
  width: 2px;
  height: 6px;
  background: #e3c48f;
  border-radius: 1px;
  transform-origin: 50% calc(50vh);
  opacity: 0.85;
}
.umbriel-tick-a {
  transform: translateX(-50%);
}
.umbriel-tick-b {
  top: auto;
  bottom: 2px;
  transform: translateX(-50%);
  opacity: 0.6;
}
.umbriel-tick-c {
  top: 50%;
  left: 2px;
  width: 6px;
  height: 2px;
  transform: translateY(-50%);
  opacity: 0.55;
}
@keyframes umbriel-travel {
  0% {
    transform: translateX(-40%);
  }
  100% {
    transform: translateX(40%);
  }
}
.umbriel-state-listening .umbriel-wave-layer {
  opacity: 0.8;
  animation-duration: 4s;
}
.umbriel-state-thinking .umbriel-tick-layer {
  animation-duration: 11s;
}
.umbriel-state-speaking .umbriel-bloom-layer {
  animation-duration: 1.4s;
}
.umbriel-state-speaking .umbriel-wave-layer {
  animation-duration: 2.6s;
  opacity: 0.85;
}

/* ---- persistent mini orbit rings — keeps the docked orb alive, not just the intro ---- */
.umbriel-orbits-mini {
  position: absolute;
  inset: -22%;
  pointer-events: none;
  mix-blend-mode: screen;
  perspective: 340px;
}
.umbriel-orbit-mini {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid transparent;
  transform-style: preserve-3d;
}
.umbriel-orbit-mini-a {
  border-top-color: rgba(170, 205, 255, 0.65);
  border-right-color: rgba(120, 160, 255, 0.28);
  animation: umbriel-orbit-mini-a 9s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}
.umbriel-orbit-mini-b {
  inset: 10%;
  border-bottom-color: rgba(155, 123, 255, 0.6);
  border-left-color: rgba(155, 123, 255, 0.2);
  animation: umbriel-orbit-mini-b 13s cubic-bezier(0.42, 0, 0.4, 1) infinite;
}
.umbriel-orbit-mini-c {
  inset: -6%;
  border-top-color: rgba(227, 196, 143, 0.4);
  border-left-color: rgba(200, 155, 92, 0.18);
  animation: umbriel-orbit-mini-c 19s linear infinite;
}
.umbriel-node-mini {
  position: absolute;
  top: -2px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #e3c48f;
  box-shadow: 0 0 8px rgba(227, 196, 143, 0.9);
  transform: translateX(-50%);
}
@keyframes umbriel-orbit-mini-a {
  0% {
    transform: rotateX(68deg) rotateZ(0);
  }
  100% {
    transform: rotateX(68deg) rotateZ(360deg);
  }
}
@keyframes umbriel-orbit-mini-b {
  0% {
    transform: rotateY(72deg) rotateZ(360deg);
  }
  100% {
    transform: rotateY(72deg) rotateZ(0);
  }
}
@keyframes umbriel-orbit-mini-c {
  from {
    transform: rotate3d(1, 0.6, 0.2, 0deg);
  }
  to {
    transform: rotate3d(1, 0.6, 0.2, 360deg);
  }
}
.umbriel-state-listening .umbriel-orbit-mini-a,
.umbriel-state-listening .umbriel-orbit-mini-b {
  animation-duration: 4s;
}
.umbriel-state-speaking .umbriel-orbit-mini-a {
  animation-duration: 2.6s;
}
.umbriel-state-speaking .umbriel-orbit-mini-b {
  animation-duration: 3.4s;
}
.umbriel-state-thinking .umbriel-orbit-mini-c {
  animation-duration: 6s;
}

/* ---- Umbriel intro overlay — autonomous cinematic sequence ---- */
@property --umbriel-iris {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 0%;
}

.umbriel-intro {
  --umbriel-iris: 0%;
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 1.1rem;
  padding: clamp(1.4rem, 5vh, 3.4rem) 1.2rem
    calc(clamp(1.4rem, 5vh, 3.4rem) + env(safe-area-inset-bottom));
  background: #05030a;
  overflow: hidden;
}
.umbriel-intro-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.umbriel-intro-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
  transform: scale(1);
  animation:
    umbriel-push-in 26s cubic-bezier(0.33, 0, 0.2, 1) forwards,
    umbriel-intro-breathe 9s ease-in-out infinite;
}
.umbriel-intro-bloom {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 62% 50%, rgba(120, 160, 255, 0.22), transparent 55%);
  mix-blend-mode: screen;
  animation: umbriel-bloom 8s ease-in-out infinite;
}
.umbriel-intro-wave {
  position: absolute;
  inset: -20%;
  background: linear-gradient(
    100deg,
    transparent 42%,
    rgba(155, 123, 255, 0.16) 50%,
    transparent 58%
  );
  mix-blend-mode: screen;
  animation: umbriel-travel 14s linear infinite;
}
.umbriel-intro-wave-b {
  background: linear-gradient(
    78deg,
    transparent 44%,
    rgba(92, 140, 255, 0.14) 51%,
    transparent 60%
  );
  animation-duration: 19s;
  animation-direction: reverse;
}

/* Procedural living blue star — real axial surface motion, independent corona. */
.umbriel-live-sun {
  position: absolute;
  left: 62%;
  top: 50%;
  z-index: 2;
  width: min(36vh, 28vw);
  height: min(36vh, 28vw);
  transform: translate(-50%, -50%);
  pointer-events: none;
  mix-blend-mode: screen;
  filter: saturate(1.16) contrast(1.08);
  contain: strict;
}
.umbriel-live-sun-mini {
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 88%;
  height: 88%;
  filter: saturate(1.12) contrast(1.04);
}
.umbriel-phase-awaken .umbriel-live-sun,
.umbriel-phase-build .umbriel-live-sun {
  filter: saturate(1.25) contrast(1.1) brightness(1.08);
}
.umbriel-phase-portal .umbriel-live-sun {
  filter: saturate(1.2) contrast(1.12) brightness(1.28);
}

/* code-native orbital glass arcs, anchored to the artwork core */
.umbriel-orbits {
  position: absolute;
  left: 62%;
  top: 50%;
  z-index: 3;
  width: min(58vh, 44vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  perspective: 900px;
  pointer-events: none;
  mix-blend-mode: screen;
}
.umbriel-orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid transparent;
  transform-style: preserve-3d;
}
.umbriel-orbit-a {
  border-top-color: rgba(170, 205, 255, 0.55);
  border-right-color: rgba(120, 160, 255, 0.22);
  animation: umbriel-orbit-a 22s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}
.umbriel-orbit-b {
  inset: 9%;
  border-bottom-color: rgba(155, 123, 255, 0.5);
  border-left-color: rgba(155, 123, 255, 0.16);
  animation: umbriel-orbit-b 31s cubic-bezier(0.42, 0, 0.4, 1) infinite;
}
.umbriel-orbit-c {
  inset: -7%;
  border-top-color: rgba(227, 196, 143, 0.3);
  border-left-color: rgba(200, 155, 92, 0.14);
  animation: umbriel-orbit-c 44s linear infinite;
}
.umbriel-node {
  position: absolute;
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e3c48f;
  box-shadow: 0 0 12px rgba(227, 196, 143, 0.9);
  transform: translateX(-50%);
}
.umbriel-corebloom {
  position: absolute;
  inset: 26%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.5),
    rgba(140, 180, 255, 0.25) 45%,
    transparent 70%
  );
  opacity: 0.25;
  filter: blur(6px);
  animation: umbriel-bloom 7s ease-in-out infinite;
}

@keyframes umbriel-push-in {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.025);
  }
}
@keyframes umbriel-intro-breathe {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.06);
  }
}
@keyframes umbriel-orbit-a {
  0% {
    transform: rotateX(68deg) rotateZ(0);
  }
  55% {
    transform: rotateX(68deg) rotateZ(150deg);
  }
  70% {
    transform: rotateX(68deg) rotateZ(290deg);
  }
  100% {
    transform: rotateX(68deg) rotateZ(360deg);
  }
}
@keyframes umbriel-orbit-b {
  0% {
    transform: rotateY(72deg) rotateZ(360deg);
  }
  45% {
    transform: rotateY(72deg) rotateZ(200deg);
  }
  62% {
    transform: rotateY(72deg) rotateZ(70deg);
  }
  100% {
    transform: rotateY(72deg) rotateZ(0);
  }
}
@keyframes umbriel-orbit-c {
  from {
    transform: rotate3d(1, 0.6, 0.2, 0deg);
  }
  to {
    transform: rotate3d(1, 0.6, 0.2, 360deg);
  }
}

/* phase 1/2 — awakening + energy build */
.umbriel-phase-awaken .umbriel-orbit-a {
  animation-duration: 11s;
}
.umbriel-phase-awaken .umbriel-orbit-b {
  animation-duration: 15s;
}
.umbriel-phase-awaken .umbriel-orbit-c {
  animation-duration: 22s;
}
.umbriel-phase-awaken .umbriel-corebloom {
  opacity: 0.5;
}
.umbriel-phase-awaken .umbriel-intro-wave {
  animation-duration: 7s;
}
.umbriel-phase-build .umbriel-orbit-a {
  animation-duration: 5s;
}
.umbriel-phase-build .umbriel-orbit-b {
  animation-duration: 6.5s;
}
.umbriel-phase-build .umbriel-orbit-c {
  animation-duration: 9s;
}
.umbriel-phase-build .umbriel-intro-wave {
  animation-duration: 4s;
}
.umbriel-phase-build .umbriel-corebloom {
  animation: umbriel-gather 4.6s cubic-bezier(0.4, 0, 0.3, 1) forwards;
}
.umbriel-phase-build .umbriel-portal-rays {
  opacity: 0.35;
  animation: umbriel-spin 24s linear infinite;
}
@keyframes umbriel-gather {
  0% {
    opacity: 0.45;
    transform: scale(0.9);
    filter: blur(6px);
  }
  70% {
    opacity: 0.85;
    transform: scale(1.18);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: scale(1.34);
    filter: blur(3px);
  }
}

/* phase 3 — portal / iris light reveal from the core */
.umbriel-portal-burst {
  position: absolute;
  left: 62%;
  top: 50%;
  width: 40vmax;
  height: 40vmax;
  margin: -20vmax 0 0 -20vmax;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.95),
    rgba(190, 215, 255, 0.55) 38%,
    rgba(120, 160, 255, 0.18) 62%,
    transparent 74%
  );
  mix-blend-mode: screen;
  opacity: 0;
  transform: scale(0.05);
  pointer-events: none;
}
.umbriel-portal-rays {
  position: absolute;
  left: 62%;
  top: 50%;
  width: 70vmax;
  height: 70vmax;
  margin: -35vmax 0 0 -35vmax;
  background: conic-gradient(
    from 0deg,
    transparent 0 6%,
    rgba(200, 225, 255, 0.22) 7%,
    transparent 9% 20%,
    rgba(180, 205, 255, 0.16) 21%,
    transparent 23% 45%,
    rgba(220, 235, 255, 0.2) 46%,
    transparent 48% 70%,
    rgba(170, 200, 255, 0.14) 71%,
    transparent 73%
  );
  mask-image: radial-gradient(circle, #000 10%, transparent 62%);
  -webkit-mask-image: radial-gradient(circle, #000 10%, transparent 62%);
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
}
.umbriel-phase-portal {
  pointer-events: none;
  -webkit-mask-image: radial-gradient(
    circle at 62% 50%,
    transparent var(--umbriel-iris),
    #000 calc(var(--umbriel-iris) + 9%)
  );
  mask-image: radial-gradient(
    circle at 62% 50%,
    transparent var(--umbriel-iris),
    #000 calc(var(--umbriel-iris) + 9%)
  );
  animation: umbriel-iris 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.umbriel-phase-portal .umbriel-portal-burst {
  animation: umbriel-burst 1.5s cubic-bezier(0.3, 0, 0.2, 1) forwards;
}
.umbriel-phase-portal .umbriel-portal-rays {
  animation: umbriel-rays 1.5s ease-out forwards;
}
.umbriel-phase-portal .umbriel-intro-controls,
.umbriel-phase-portal .umbriel-intro-caption,
.umbriel-phase-portal .umbriel-intro-year {
  opacity: 0;
  transition: opacity 0.5s ease;
}
@keyframes umbriel-iris {
  0% {
    --umbriel-iris: 0%;
  }
  100% {
    --umbriel-iris: 150%;
  }
}
@keyframes umbriel-burst {
  0% {
    opacity: 0;
    transform: scale(0.05);
  }
  22% {
    opacity: 1;
    transform: scale(0.6);
  }
  100% {
    opacity: 0;
    transform: scale(4.6);
  }
}
@keyframes umbriel-rays {
  0% {
    opacity: 0;
    transform: scale(0.2) rotate(0);
  }
  30% {
    opacity: 0.55;
  }
  100% {
    opacity: 0;
    transform: scale(2.4) rotate(24deg);
  }
}
/* fallback where CSS masks are unavailable: still a light-led, non-flashing reveal */
@supports not (mask-image: radial-gradient(circle, #000, transparent)) {
  .umbriel-phase-portal {
    animation: umbriel-portal-fade 1.5s ease forwards;
  }
  @keyframes umbriel-portal-fade {
    0% {
      opacity: 1;
    }
    45% {
      opacity: 0.85;
      filter: brightness(1.5);
    }
    100% {
      opacity: 0;
      filter: brightness(2);
    }
  }
}

.umbriel-intro-year {
  position: absolute;
  top: clamp(1.4rem, 6vh, 3.6rem);
  left: clamp(1.4rem, 6vw, 4.5rem);
  font-size: clamp(2rem, 5vw, 3.6rem);
  letter-spacing: 0.4em;
  color: var(--cream);
  text-shadow: 0 0 40px rgba(92, 140, 255, 0.55);
}
.umbriel-intro-controls {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}
.umbriel-intro-enter {
  background: none;
  border: 1px solid var(--gold);
  color: var(--gold2);
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  padding: 0.9rem 1.8rem;
  cursor: pointer;
  transition:
    background 0.3s ease,
    color 0.3s ease;
}
.umbriel-intro-enter:hover {
  background: var(--gold);
  color: var(--ink);
}
.umbriel-intro-enter:focus-visible,
.umbriel-intro .umbriel-ghost:focus-visible {
  outline: 2px solid var(--gold2);
  outline-offset: 3px;
}
.umbriel-intro-minor {
  display: flex;
  gap: 0.5rem;
}
.umbriel-intro-hint {
  font-size: 0.5rem;
  color: #9db4e6;
  opacity: 0.8;
  letter-spacing: 0.12em;
}
.umbriel-intro-caption {
  position: relative;
  order: -1;
  background: linear-gradient(180deg, transparent, rgba(5, 3, 10, 0.55));
  padding: 0.5rem 0.9rem;
  max-width: min(46ch, 86vw);
  text-align: center;
  font-size: clamp(0.85rem, 2.4vw, 1.05rem);
  line-height: 1.6;
  color: var(--cream);
  min-height: 2.6em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.9);
}
@media (max-width: 760px) {
  .umbriel-intro-art {
    object-fit: cover;
    object-position: 62% 50%;
  }
  .umbriel-live-sun {
    left: 50%;
    width: min(37vh, 64vw);
    height: min(37vh, 64vw);
  }
  .umbriel-orbits {
    left: 50%;
    width: min(46vh, 84vw);
  }
  .umbriel-portal-burst,
  .umbriel-portal-rays {
    left: 50%;
  }
  .umbriel-phase-portal {
    -webkit-mask-image: radial-gradient(
      circle at 50% 50%,
      transparent var(--umbriel-iris),
      #000 calc(var(--umbriel-iris) + 9%)
    );
    mask-image: radial-gradient(
      circle at 50% 50%,
      transparent var(--umbriel-iris),
      #000 calc(var(--umbriel-iris) + 9%)
    );
    animation-duration: 1s;
  }
  .umbriel-phase-portal .umbriel-portal-burst,
  .umbriel-phase-portal .umbriel-portal-rays {
    animation-duration: 1s;
  }
}
@media (prefers-reduced-motion: reduce) {
  .umbriel-intro-art,
  .umbriel-intro-bloom,
  .umbriel-intro-wave,
  .umbriel-bloom-layer,
  .umbriel-wave-layer,
  .umbriel-tick-layer,
  .umbriel-orbit,
  .umbriel-corebloom,
  .umbriel-orbit-mini-a,
  .umbriel-orbit-mini-b,
  .umbriel-orbit-mini-c {
    animation: none !important;
  }
  .umbriel-panel {
    animation: none !important;
  }
  .umbriel-phase-portal {
    animation: umbriel-portal-soft 0.5s ease forwards !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }
  @keyframes umbriel-portal-soft {
    from {
      opacity: 1;
    }
    to {
      opacity: 0;
    }
  }
}

/* Runde 3 — Studio-Hauptaktion und Stummschalter */
.umbriel-voice-mute {
  position: fixed;
  left: 1.1rem;
  bottom: 1.1rem;
  z-index: 60;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  border: 1px solid rgba(227, 196, 143, 0.4);
  background: rgba(22, 13, 9, 0.8);
  color: #e3c48f;
  cursor: pointer;
}
.umbriel-mute {
  min-width: 2.1rem;
}
/* ------------------------------------------------------------
   Ergänzungen — an das Ende von src/umbriel.css anhängen
   Ruhiges goldenes Leuchten für die Schaltfläche
   „UMBRIEL Studio öffnen".
   ------------------------------------------------------------ */

.umbriel-studio-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(201, 161, 94, 0.55);
  border-radius: 999px;
  color: #f0dcb4;
  background: rgba(28, 22, 14, 0.55);
  padding: 12px 22px;
  font-size: 15px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition:
    border-color 0.25s ease,
    color 0.25s ease;
}

/* Atem: weicher Schein hinter der Fläche, Takt vier Sekunden */
.umbriel-studio-cta::before {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: -1;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 176, 60, 0.42),
    rgba(255, 140, 30, 0.14) 45%,
    transparent 70%
  );
  animation: umbriel-cta-breath 4s ease-in-out infinite;
}

/* Schmaler Streifen, alle sechs Sekunden von links nach rechts */
.umbriel-studio-cta::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 38%;
  z-index: -1;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 226, 176, 0.3) 45%,
    rgba(255, 226, 176, 0.3) 55%,
    transparent
  );
  animation: umbriel-cta-sweep 6s ease-in-out infinite;
}

.umbriel-studio-cta:hover {
  border-color: rgba(233, 199, 133, 0.95);
  color: #fbeed0;
}
.umbriel-studio-cta:hover::before {
  animation-duration: 2.6s;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 196, 90, 0.62),
    rgba(255, 150, 40, 0.22) 45%,
    transparent 70%
  );
}

@keyframes umbriel-cta-breath {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.97);
  }
  50% {
    opacity: 1;
    transform: scale(1.03);
  }
}

@keyframes umbriel-cta-sweep {
  0% {
    left: -45%;
  }
  55%,
  100% {
    left: 115%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .umbriel-studio-cta::before,
  .umbriel-studio-cta::after {
    animation: none;
  }
  .umbriel-studio-cta::after {
    display: none;
  }
  .umbriel-studio-cta::before {
    opacity: 0.5;
  }
  .umbriel-studio-cta {
    border-color: rgba(233, 199, 133, 0.9);
  }
}

/* ------------------------------------------------------------
   Nur für Telefone. An das Ende von src/umbriel.css anhängen.
   Die Kugel wird halb so groß, am Rechner bleibt alles wie es ist.
   ------------------------------------------------------------ */

@media (max-width: 760px) {
  .umbriel-live-sun {
    left: 50%;
    width: min(18vh, 32vw);
    height: min(18vh, 32vw);
  }
  .umbriel-orbits {
    left: 50%;
    width: min(24vh, 44vw);
  }
  .umbriel-orb {
    width: 56px;
    height: 56px;
  }
}
.umbriel-owner-page {
  min-height: 100svh;
  color: #eaf4ff;
  background:
    radial-gradient(
      circle at 50% 12%,
      rgba(43, 112, 239, 0.22),
      transparent 30rem
    ),
    linear-gradient(150deg, #02040a, #071127 58%, #02040a);
  font-family: "Manrope", sans-serif;
}

.umbriel-owner-auth {
  width: min(92vw, 570px);
  min-height: 100svh;
  margin: 0 auto;
  padding: max(3rem, env(safe-area-inset-top)) 0
    max(2.5rem, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.umbriel-owner-auth .umbriel-orb {
  width: 190px;
  height: 190px;
  margin-bottom: 1.25rem;
}

.umbriel-owner-auth > .mono {
  color: #78baff;
  font-size: 10px;
  letter-spacing: 0.18em;
}

.umbriel-owner-auth h1 {
  max-width: 16ch;
  margin: 0.7rem 0 1rem;
  color: #f2f8ff;
  font-family: "Bodoni Moda", serif;
  font-size: clamp(1.7rem, 6vw, 2.5rem);
  font-weight: 500;
}

.umbriel-owner-auth > p:not(.mono) {
  max-width: 50ch;
  color: #9eb3cf;
  line-height: 1.65;
}

.umbriel-owner-auth form {
  width: min(100%, 420px);
  margin-top: 2rem;
  text-align: left;
}

.umbriel-owner-auth label {
  display: block;
  margin-bottom: 0.45rem;
  color: #b9cee9;
  font-size: 12px;
}

.umbriel-owner-auth input {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(120, 186, 255, 0.36);
  border-radius: 0;
  background: rgba(5, 12, 27, 0.75);
  color: #fff;
  font: inherit;
}

.umbriel-owner-auth button,
.umbriel-owner-compose button {
  width: 100%;
  margin-top: 0.8rem;
  padding: 0.85rem 1rem;
  border: 1px solid #78baff;
  background: #78baff;
  color: #031024;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.umbriel-owner-install {
  margin-top: 2rem;
  font-size: 12px;
}

.umbriel-owner-head {
  position: sticky;
  z-index: 5;
  top: 0;
  min-height: 64px;
  padding: calc(0.8rem + env(safe-area-inset-top))
    max(1rem, env(safe-area-inset-right)) 0.8rem
    max(1rem, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(120, 186, 255, 0.18);
  background: rgba(2, 4, 10, 0.86);
  backdrop-filter: blur(18px);
}

.umbriel-owner-head > div {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.umbriel-owner-head strong {
  font-family: "Bodoni Moda", serif;
  font-size: 18px;
}

.umbriel-owner-head .mono {
  color: #718bad;
  font-size: 8px;
  letter-spacing: 0.14em;
}

.umbriel-owner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #78baff;
  box-shadow: 0 0 14px #78baff;
}

.umbriel-owner-head button {
  border: 0;
  background: transparent;
  color: #91a9c7;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.umbriel-owner-chat {
  width: min(92vw, 820px);
  min-height: calc(100svh - 250px);
  margin: 0 auto;
  padding: 2.5rem 0 12rem;
}

.umbriel-owner-empty {
  min-height: 48svh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1rem;
  color: #b8cbe3;
  text-align: center;
}

.umbriel-owner-empty .umbriel-orb {
  width: 160px;
  height: 160px;
}

.umbriel-owner-message {
  margin: 0 0 1.8rem;
  padding: 0 0 0 1rem;
  border-left: 1px solid rgba(120, 186, 255, 0.26);
}

.umbriel-owner-message.is-user {
  margin-left: clamp(1rem, 8vw, 5rem);
  border-left-color: rgba(221, 183, 119, 0.55);
}

.umbriel-owner-message > .mono {
  display: block;
  margin-bottom: 0.55rem;
  color: #7296c3;
  font-size: 9px;
  letter-spacing: 0.14em;
}

.umbriel-owner-message.is-user > .mono {
  color: #d2aa6e;
}
.umbriel-owner-message p {
  margin: 0.4rem 0;
  line-height: 1.65;
}
.umbriel-owner-message a {
  color: #8bc5ff;
}
.umbriel-owner-thinking {
  color: #78baff;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.umbriel-owner-sources {
  display: grid;
  gap: 0.45rem;
  margin: 1rem 0 2rem;
  padding: 1rem;
  border: 1px solid rgba(120, 186, 255, 0.18);
  font-size: 11px;
}
.umbriel-owner-sources a {
  color: #87c1ff;
}

.umbriel-owner-compose {
  position: fixed;
  z-index: 6;
  right: 0;
  bottom: 0;
  left: 0;
  width: min(100%, 900px);
  margin: 0 auto;
  padding: 0.8rem max(1rem, env(safe-area-inset-right))
    max(0.8rem, env(safe-area-inset-bottom))
    max(1rem, env(safe-area-inset-left));
  border: 1px solid rgba(120, 186, 255, 0.18);
  border-bottom: 0;
  background: rgba(3, 8, 19, 0.94);
  backdrop-filter: blur(20px);
}

.umbriel-owner-compose textarea {
  width: 100%;
  resize: none;
  padding: 0.8rem;
  border: 1px solid rgba(120, 186, 255, 0.27);
  border-radius: 0;
  outline: none;
  background: rgba(8, 19, 40, 0.72);
  color: #eff7ff;
  font: inherit;
}

.umbriel-owner-compose > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.umbriel-owner-compose label {
  color: #91a9c7;
  font-size: 11px;
}
.umbriel-owner-compose button {
  width: auto;
  min-width: 100px;
  margin-top: 0.55rem;
}
.umbriel-owner-compose button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.umbriel-owner-speak {
  margin-top: 0.4rem;
  padding: 0.15rem 0.4rem;
  border: 0;
  background: transparent;
  color: #78baff;
  font-size: 14px;
  cursor: pointer;
  opacity: 0.75;
}
.umbriel-owner-speak:hover {
  opacity: 1;
}
.umbriel-owner-readaloud {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
}
.umbriel-owner-readaloud input {
  accent-color: #78baff;
}
.umbriel-owner-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.umbriel-owner-mic {
  min-width: 0 !important;
  padding: 0.55rem 0.7rem !important;
  border: 1px solid rgba(120, 186, 255, 0.4) !important;
  background: transparent !important;
  color: #78baff !important;
  font-size: 15px;
}
.umbriel-owner-mic[aria-pressed="true"] {
  background: rgba(120, 186, 255, 0.18) !important;
}
.umbriel-owner-notice {
  min-height: 1.25rem;
  margin: 0.5rem 0 0;
  color: #d7b274;
  font-size: 11px;
}

@media (max-width: 560px) {
  .umbriel-owner-head .mono {
    display: none;
  }
  .umbriel-owner-chat {
    width: calc(100% - 2rem);
    padding-top: 1.5rem;
  }
  .umbriel-owner-message.is-user {
    margin-left: 1rem;
  }
  .umbriel-owner-compose > div {
    align-items: flex-end;
  }
  .umbriel-owner-compose label {
    max-width: 15rem;
  }
}

/* ---- Voice-first owner stage: the core itself is the control ---- */
.umbriel-owner-stage {
  min-height: 100svh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1.1rem;
  padding: max(2rem, env(safe-area-inset-top)) 1rem
    max(4rem, env(safe-area-inset-bottom));
}

.umbriel-owner-core {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  line-height: 0;
  transition: transform 420ms ease;
}
.umbriel-owner-core .umbriel-orb {
  width: clamp(180px, 42vw, 280px);
  height: clamp(180px, 42vw, 280px);
}
.umbriel-owner-core.is-listening {
  animation: umbriel-owner-pulse 1.9s ease-in-out infinite;
}
.umbriel-owner-core.is-speaking {
  transform: scale(1.04);
}
.umbriel-owner-core.is-resting {
  transform: scale(0.94);
  opacity: 0.62;
}
.umbriel-owner-core.is-thinking {
  opacity: 0.85;
}

@keyframes umbriel-owner-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .umbriel-owner-core,
  .umbriel-owner-core.is-listening {
    animation: none;
    transition: none;
  }
}

.umbriel-owner-hint {
  color: #7fa4cf;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-align: center;
}

.umbriel-owner-recent {
  width: min(88vw, 36rem);
  max-height: 7.5rem;
  overflow: hidden;
  color: rgba(224, 236, 251, 0.68);
  font-size: 0.88rem;
  line-height: 1.55;
  text-align: center;
  animation: umbriel-owner-reply 8s ease forwards;
}
.umbriel-owner-recent p {
  margin: 0;
}

@keyframes umbriel-owner-reply {
  0%,
  72% {
    opacity: 0.72;
  }
  100% {
    opacity: 0;
  }
}

.is-voice .umbriel-owner-chat {
  position: relative;
  z-index: 2;
  min-height: 0;
  margin-top: -10svh;
  padding: 1.5rem 0 5rem;
}

.umbriel-owner-fallback-note {
  margin: 0 0 0.6rem;
  color: #d7b274;
  font-size: 11px;
}

.umbriel-owner-history-toggle {
  position: fixed;
  z-index: 8;
  right: 50%;
  bottom: max(0.7rem, env(safe-area-inset-bottom));
  transform: translateX(50%);
  padding: 0.35rem 0.6rem;
  border: 0;
  border-bottom: 1px solid rgba(145, 169, 199, 0.32);
  background: rgba(2, 4, 10, 0.72);
  color: rgba(174, 195, 220, 0.62);
  font: inherit;
  font-size: 10px;
  cursor: pointer;
  backdrop-filter: blur(10px);
}
.umbriel-owner-history-toggle:hover,
.umbriel-owner-history-toggle:focus-visible {
  color: #dcecff;
}

@media (prefers-reduced-motion: reduce) {
  .umbriel-owner-recent {
    animation: none;
  }
}

/* Umbriel Server: nur die Kugel */
.umbriel-orbits-mini,.umbriel-wave-layer,.umbriel-axis{display:none!important}
.umbriel-owner-stage{min-height:100svh;padding:0!important}
.umbriel-owner-core .umbriel-orb{width:min(92vw,640px)!important;height:min(92vw,640px)!important}
.umbriel-owner-core .umbriel-live-sun-mini{width:88%!important;height:88%!important;left:50%!important;top:50%!important}
.umbriel-owner-page{background:transparent!important;max-width:none!important;width:100%!important;margin:0!important}
html,body{background:radial-gradient(circle at 50% 40%,rgba(43,112,239,.18),transparent 60%),linear-gradient(150deg,#02040a,#071127 58%,#02040a)!important}
