/* Miwlu minimal redesign — loaded last, owns the marketing UI without
   disturbing V12 turntable geometry or its mobile record interactions. */
:root {
  color-scheme: dark;
  --page-bg: #080809;
  --night: #080809;
  --night-2: #080809;
  --ink-hi: #f6f6f6;
  --ink-dim: #929296;
  --text: #f6f6f6;
  --text-muted: #929296;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --ease-record: cubic-bezier(.4, 0, .2, 1); /* from existing polish.css */
  --motion-press: 160ms;
  --motion-popover: 180ms;
  --motion-record: 460ms; /* let both records complete the same visible journey */
  --motion-needle: 105ms;
}
html { scroll-padding-top: 78px; }
body, .site { background: var(--page-bg); color: #f6f6f6; }
.site { overflow-x: clip; }
.site a, .site button { -webkit-tap-highlight-color: transparent; }
.site a:focus-visible,
.site button:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

/* The reference uses a clean navigation row, not a glass pill. */
.site-nav,
.site-nav.nav-motion-ready,
.site-nav.nav-motion-ready.nav-condensed {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1000;
  transform: none;
  display: flex;
  justify-content: space-between;
  gap: clamp(20px, 4vw, 70px);
  align-items: center;
  width: 100%;
  max-width: none;
  min-height: 72px;
  padding: 11px clamp(22px, 3.6vw, 70px);
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #080809;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: transform .35s var(--ease-out), background .3s ease, opacity .25s ease;
}
.site-nav.nav-motion-ready.nav-condensed,
.site-nav.nav-motion-ready.nav-deep {
  background: rgba(8, 8, 9, .96);
}
.site-nav.nav-motion-ready.nav-offscreen {
  transform: translate3d(0, -110%, 0);
  opacity: 0;
  pointer-events: none;
}
.site-logo,
.site-nav.nav-motion-ready.nav-condensed .site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 660;
  letter-spacing: -.055em;
  color: #f7f7f7;
}
.site-logo img,
.site-nav.nav-motion-ready.nav-condensed .site-logo img { width: 30px; height: 30px; }
.site-nav .nav-links { display: flex; justify-content: flex-start; gap: clamp(19px, 2.7vw, 45px); color: #d4d4d5; font-size: 14px; font-weight: 480; }
.site-nav .nav-links a { color: inherit; transition: color .2s ease; }
.site-nav .nav-links a:hover { color: #fff; }
.hero-button svg { width: 18px; height: 18px; flex: none; }

/* One uninterrupted black stage, character tucked behind the heading. */
.hero,
.site .hero {
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: none;
  min-height: max(600px, 92svh);
  margin: 0;
  padding: 94px 24px 58px;
  border: 0;
  border-radius: 0;
  overflow: clip;
  background: #080809;
}
.hero::after, .hero:after { content: none; }
.hero-sky, .hero-tint { display: none !important; }
.hero-content,
.hero .hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0;
  text-align: center;
}
.hero-character-wrap {
  --mascot-size: 188px;
  --mascot-fade-height: 116px; /* Figma Frame 230: transparent → #080809 */
  /* The colored SVG silhouette ends at y=86 of its 100-unit viewBox.
     Align that actual base, not the transparent SVG box, with wrapper bottom. */
  --mascot-base-overhang: 26.32px; /* 14% of 188px */
  position: relative;
  z-index: 0;
  width: 196px;
  height: 150px;
  margin: 0 0 -23px;
  pointer-events: none;
}
.hero-character-backdrop {
  position: absolute;
  z-index: 0;
  inset: auto -28px 0;
  height: calc(70% + 12px);
  background: radial-gradient(ellipse 50% 68% at 50% 100%, rgba(170, 143, 243, .13), transparent 100%);
}
/* A short opaque safety strip seals the mascot's animated silhouette
   even when subpixel transforms move its base by a few pixels. */
.hero-character-wrap::before {
  content: "";
  position: absolute;
  z-index: 3;
  inset: auto -40px -12px;
  height: 14px;
  background: #080809;
  pointer-events: none;
}
/* Two-stop gradient from the supplied Figma SVG (117px exported, 116px
   nominal height). Blur the overlay itself, not the mascot behind it. */
.hero-character-wrap::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: auto -40px -8px;
  height: calc(var(--mascot-fade-height) + 8px);
  background: linear-gradient(to bottom, rgb(8 8 9 / 0) 0%, #080809 calc(100% - 12px));
  filter: blur(2px);
  pointer-events: none;
}
.hero-character {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: calc(0px - var(--mascot-base-overhang));
  width: var(--mascot-size);
  height: var(--mascot-size);
  transform: translateX(-50%);
  display: block;
  overflow: visible;
}
.hero-character-pose { transform-box: view-box; transform-origin: 50px 80px; will-change: transform; }
.hero-character-body { fill: #b5a0fa; }
.hero-eye-position,
.hero-eye-expression { transform-box: view-box; transform-origin: 0 0; }
.hero-eye-core { fill: none; stroke: #101116; stroke-linecap: round; stroke-linejoin: round; }
.hero .hero-content h1 {
  position: relative;
  z-index: 3;
  margin: 0;
  max-width: 100%;
  color: #f8f8f8;
  font-size: clamp(38px, 5.1vw, 70px);
  font-weight: 580;
  line-height: 1.16;
  letter-spacing: -.022em;
  font-kerning: normal;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  text-wrap: balance;
  text-shadow: none;
}
.hero .hero-title-platform {
  display: flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: calc(100vw - 36px);
  margin-inline: auto;
  gap: .22em;
  min-width: 0;
  white-space: nowrap;
}
.hero .hero-title-preposition { display: inline; }
.hero .hero-description {
  position: relative;
  z-index: 3;
  margin: 16px 0 0;
  max-width: 610px;
  color: #8d8d92;
  font-size: clamp(14px, 1.18vw, 17px);
  font-weight: 430;
  line-height: 1.55;
  text-shadow: none;
}
.hero .service-roll {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 0;
  margin: 0;
  font: inherit;
  line-height: inherit;
  letter-spacing: 0;
  white-space: nowrap;
}
.hero .service-roll-control {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: none;
  color: #f4f4f5;
  font: inherit;
  font-weight: inherit;
  letter-spacing: 0;
  line-height: 1.16;
  vertical-align: middle;
  cursor: pointer;
}
.hero .service-roll-control:hover { color: #fff; }
.hero-content .service-roll .service-slot {
  display: block;
  position: relative;
  flex: none;
  width: 105px;
  max-width: none;
  height: 1.16em;
  min-height: 0;
  padding: 0;
  overflow: visible;
  perspective: none;
  -webkit-mask: none;
  mask: none;
  /* Only clip top/bottom: animated width must never cut off a long name. */
  clip-path: inset(0 -100vw);
  transition: none;
}
.service-word {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: .17em;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: max-content;
  height: 100%;
  line-height: 1;
  white-space: nowrap;
  font-kerning: normal;
  font-optical-sizing: auto;
  font-variant-ligatures: none;
  letter-spacing: 0;
}
.service-word-icon {
  position: relative;
  top: .035em; /* optical alignment with the cap height, not the line box */
  display: block;
  flex: none;
  width: .78em;
  height: .78em;
  object-fit: contain;
  filter: brightness(0) invert(1);
  will-change: transform, opacity;
}
.service-letters {
  display: block;
  position: relative;
  flex: none;
  height: 1em;
  line-height: 1;
  white-space: pre;
  letter-spacing: 0;
}
.service-letter {
  position: absolute;
  top: 0;
  display: inline-block;
  line-height: 1;
  white-space: pre;
  will-change: transform, opacity;
}
.service-word-measure {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-block;
  width: max-content;
  white-space: pre;
  visibility: hidden;
  pointer-events: none;
  letter-spacing: 0;
}
.hero .hero-actions { position: relative; z-index: 3; gap: 0; margin: 21px 0 0; }
.hero .hero-button, .site-ending .hero-button {
  min-height: 49px;
  gap: 12px;
  padding: 13px 21px;
  border: 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 560;
  line-height: 1.2;
  letter-spacing: -.025em;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: background-color var(--motion-press) ease, transform var(--motion-press) var(--ease-out);
}
.hero .hero-button.primary, .site-ending .hero-button.primary {
  background: #f5f5f5;
  color: #121212;
  box-shadow: none;
}
.hero .hero-button.primary:hover, .site-ending .hero-button.primary:hover {
  background: #dedede;
  box-shadow: none;
}
@media (hover: hover) and (pointer: fine) {
  .hero .hero-button.primary:hover, .site-ending .hero-button.primary:hover {
    transform: translateY(-1px);
  }
}
.hero .hero-button.primary:active, .site-ending .hero-button.primary:active {
  transform: scale(.97);
}
.hero .hero-button span { font: inherit; }

/* Content below stays functional and becomes part of the same visual system. */
.section-bridge { height: 0; margin: 0; background: #080809; }
.site > .viewport { background: #080809; }
.site > .viewport .scene { background: transparent; }
.mobile-record-experience { background: #080809; }
.site-ending {
  min-height: 530px;
  background: #080809;
  padding: 100px 24px 86px;
}
.ending-glow { display: none; }
.site-ending > img { width: 50px; height: 50px; margin-bottom: 18px; }
.ending-eyebrow { color: #858589; font-size: 11px; letter-spacing: .12em; }
.site-ending h2 {
  margin: 23px 0 29px;
  color: #f6f6f6;
  font-size: clamp(50px, 6vw, 81px);
  font-weight: 580;
  line-height: 1.05;
  letter-spacing: -.065em;
}
.site-ending h2 em { color: #f6f6f6; }
.site-ending > p:last-child { margin-top: 23px; color: #89898c; font-size: 13px; }
.site-footer {
  max-width: none;
  min-height: 105px;
  padding: 25px clamp(22px, 3.6vw, 70px);
  background: #080809;
  border-top: 1px solid rgba(255,255,255,.1);
  color: #808083;
  font-size: 12px;
}
.footer-brand { color: #f7f7f7!important; font-size: 22px; font-weight: 600; }
/* Compact hero: one animated heading, short subtitle, one CTA. */
@media (max-width: 900px) {
  .site-nav, .site-nav.nav-motion-ready, .site-nav.nav-motion-ready.nav-condensed {
    min-height: 70px;
    padding-inline: 25px;
  }
  .hero, .site .hero { min-height: max(580px, 92svh); padding-top: 92px; }
  .hero .hero-content h1 { font-size: clamp(36px, 5.2vw, 58px); }
}
@media (max-width: 700px) {
  .site-nav, .site-nav.nav-motion-ready, .site-nav.nav-motion-ready.nav-condensed {
    top: 0;
    left: 0;
    width: 100%;
    min-height: 62px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 18px;
    border: 0;
    border-radius: 0;
  }
  .site-nav .nav-links { display: flex; font-size: 12px; }
  .site-logo, .site-nav.nav-motion-ready .site-logo { font-size: 18px; gap: 6px; }
  .site-logo img, .site-nav.nav-motion-ready .site-logo img { width: 26px; height: 26px; }
  .hero, .site .hero {
    min-height: max(550px, 95svh);
    padding: 82px 17px 48px;
  }
  .hero .hero-content { padding: 0; min-height: 0; }
  .hero-character-wrap {
    --mascot-size: 160px;
    --mascot-fade-height: 99px;
    --mascot-base-overhang: 22.4px;
    width: 156px;
    height: 117px;
    margin: 0 0 -17px;
  }
  .hero .hero-content h1 {
    font-size: clamp(27px, 7vw, 43px);
    letter-spacing: -.018em;
    line-height: 1.16;
  }
  .hero .hero-description { max-width: 365px; margin-top: 16px; font-size: 14px; line-height: 1.48; }
  .hero .hero-actions { margin-top: 18px; }
  .hero .hero-button { min-height: 47px; font-size: 13px; padding: 12px 19px; gap: 10px; }
  .hero .hero-button svg { width: 17px; height: 17px; }
  .mobile-record-experience h2 { color: #f4f4f4; font-weight: 580; }
  .site-ending { min-height: 480px; padding: 78px 24px 65px; }
  .site-ending h2 { font-size: clamp(43px, 9vw, 65px); }
  .site-footer { min-height: 88px; padding: 22px 18px; }
}
@media (max-width: 380px) {
  .hero, .site .hero { min-height: 535px; padding-inline: 13px; }
  .hero .hero-content h1 { font-size: clamp(26px, 7vw, 29px); }
  .hero-character-wrap {
    --mascot-size: 152px;
    --mascot-fade-height: 94px;
    --mascot-base-overhang: 21.28px;
    width: 148px;
    height: 112px;
    margin-bottom: -14px;
  }
  .hero .hero-description { max-width: 290px; font-size: 13px; }
  .hero .hero-button { font-size: 12px; padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero .hero-content h1, .hero .hero-description, .hero .hero-actions { animation: none !important; }
  .hero .service-word-icon, .hero .service-letter, .hero-character-pose,
  .hero-eye-position, .hero-eye-expression { will-change: auto; }
  .hero .hero-button, .site-nav { transition: none !important; }
  .hero .hero-button.primary:hover,
  .hero .hero-button.primary:active { transform: none !important; }
}
