:root {
  --bg: #050505;
  --panel: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.11);
  --text: #f1f1f1;
  --muted: rgba(241, 241, 241, 0.72);
  --phone: #c4c8cf;
  --phone-edge: #f2f4f7;
  --screen: #010101;
  --shadow: 0 30px 100px rgba(0, 0, 0, 0.55);
  --phone-rotate-x: 4deg;
  --phone-rotate-y: -6deg;
  --phone-lift-y: 0px;
  --screen-rotate-x: -1.6deg;
  --screen-rotate-y: 1.8deg;
  --screen-shift-x: 0px;
  --screen-shift-y: 0px;
  --glint-x: 50%;
  --glint-y: 22%;
  --phone-entry-x: 0px;
  --phone-entry-y: 0px;
  --phone-entry-rotate-z: 0deg;
  --phone-entry-scale: 1;
  --phone-entry-opacity: 1;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans", sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
}

body.phone-entered .phone-drift {
  --phone-entry-x: 0px;
  --phone-entry-y: 0px;
  --phone-entry-rotate-z: 0deg;
  --phone-entry-scale: 1;
  --phone-entry-opacity: 1;
}

body.reveal-ui .intro-copy {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  pointer-events: auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: none;
}

.ambient {
  display: none;
}

.ambient-left {
  top: 10%;
  left: -8%;
  background: #7e7e7e;
}

.ambient-right {
  right: -10%;
  bottom: 6%;
  background: #4f4f4f;
}

.button {
  border-radius: 999px;
  min-height: 46px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.hero-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100svh;
  padding: 56px 0 20px;
  display: grid;
  grid-template-columns: 0.95fr 1.1fr;
  gap: 40px 48px;
  align-items: center;
  position: relative;
  z-index: 1;
  overflow: visible;
}

.intro-copy {
  align-self: center;
  justify-self: end;
  display: grid;
  place-items: center;
  width: auto;
  opacity: 1;
  transform: none;
  filter: none;
  pointer-events: auto;
  text-align: center;
  margin-right: -12px;
}

.kicker {
  margin: 0 0 14px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--muted);
}

.intro-copy h1,
.contact-panel h2,
.wordmark-block h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  letter-spacing: -0.05em;
}

.intro-copy h1 {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: clamp(0.82rem, 1.05vw, 0.98rem);
  line-height: 1.2;
  max-width: none;
  text-transform: lowercase;
  color: rgba(255, 255, 255, 0.76);
  letter-spacing: 0.24em;
  white-space: nowrap;
  font-weight: 400;
  min-height: 1.2em;
  position: relative;
  padding-right: 0.16em;
}

.intro-copy h1.is-typing::after {
  content: "";
  position: absolute;
  top: 0.04em;
  right: -0.06em;
  width: 1px;
  height: 0.92em;
  background: rgba(255, 255, 255, 0.76);
  animation: intro-caret 0.9s steps(1, end) infinite;
}

@keyframes intro-caret {
  0%, 48% {
    opacity: 1;
  }

  50%, 100% {
    opacity: 0;
  }
}

.button {
  font-weight: 600;
  border: 1px solid var(--line);
}

.button-solid {
  background: #f0f0f0;
  color: #0a0a0a;
}

.button-outline {
  background: transparent;
  color: var(--text);
}

.phone-stage {
  display: grid;
  place-items: center;
  position: relative;
  min-height: 0;
  height: min(72vh, 760px);
  perspective: 1800px;
  overflow: visible;
  margin-left: -88px;
}

.phone-backdrop {
  display: none;
}

.phone-drift {
  position: absolute;
  right: 146px;
  bottom: -56px;
  z-index: 4;
  width: fit-content;
  cursor: grab;
  touch-action: none;
  --phone-entry-x: min(78vw, 980px);
  --phone-entry-y: 120px;
  --phone-entry-rotate-z: 20deg;
  --phone-entry-scale: 0.9;
  --phone-entry-opacity: 0.28;
  opacity: var(--phone-entry-opacity);
  transform:
    translateX(var(--phone-entry-x))
    translateY(var(--phone-entry-y))
    rotateZ(var(--phone-entry-rotate-z))
    scale(var(--phone-entry-scale));
  transition:
    transform 1800ms cubic-bezier(0.16, 0.9, 0.24, 1),
    opacity 1400ms ease-out;
}

.phone-drift.is-dragging {
  cursor: grabbing;
  transform: none;
  transition: none;
}

.phone-drift.is-hidden {
  display: none;
}

.phone-drift.is-poofing {
  animation: phone-poof 420ms ease-in forwards;
}

.phone-drift::before {
  content: "";
  position: absolute;
  inset: auto 12% -24px;
  height: 34px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.34), transparent 72%);
  filter: blur(12px);
  opacity: 0.8;
  pointer-events: none;
}

.phone-drift .phone-shell {
  animation: phone-float 7s ease-in-out infinite;
}

.phone-drift.is-dragging .phone-shell {
  animation-play-state: paused;
}

@keyframes phone-float {
  0%, 100% {
    transform:
      rotateX(var(--phone-rotate-x))
      rotateY(var(--phone-rotate-y))
      translateY(var(--phone-lift-y))
      scale(1);
  }

  50% {
    transform:
      rotateX(var(--phone-rotate-x))
      rotateY(var(--phone-rotate-y))
      translateY(calc(var(--phone-lift-y) - 4px))
      scale(1);
  }
}

@keyframes phone-poof {
  0% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }

  100% {
    opacity: 0;
    transform: scale(0.84);
    filter: blur(12px);
  }
}

.phone-shell {
  position: relative;
  width: min(360px, 30vw, 74vw);
  aspect-ratio: 420 / 840;
  height: auto;
  min-height: 0;
  border-radius: 60px;
  background:
    linear-gradient(135deg, rgba(244, 246, 249, 0.98) 0%, rgba(198, 203, 211, 0.96) 18%, rgba(224, 228, 234, 0.97) 45%, rgba(155, 161, 170, 0.95) 72%, rgba(248, 250, 252, 0.98) 100%);
  box-shadow:
    0 58px 140px rgba(0, 0, 0, 0.56),
    0 18px 42px rgba(250, 252, 255, 0.18) inset,
    0 -14px 30px rgba(112, 119, 128, 0.22) inset;
  border: 1px solid rgba(248, 250, 252, 0.82);
  overflow: hidden;
  transform:
    rotateX(var(--phone-rotate-x))
    rotateY(var(--phone-rotate-y))
    translateY(var(--phone-lift-y))
    scale(1);
  transform-style: preserve-3d;
  transition:
    transform 260ms ease-out,
    box-shadow 1800ms cubic-bezier(0.16, 0.9, 0.24, 1);
}

.scroll-story {
  position: relative;
  min-height: 225vh;
  background: var(--bg);
}

.scroll-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.scroll-copy {
  width: min(100% - 48px, 1100px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  position: relative;
  min-height: 100%;
  padding: min(14vh, 116px) 0 min(4vh, 34px);
}

.scroll-line {
  opacity: 0;
  transform: translateY(32px);
  filter: blur(18px);
  transition: opacity 700ms ease, transform 900ms ease, filter 900ms ease;
}

.scroll-line.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.scroll-line {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  text-transform: lowercase;
  letter-spacing: 0.24em;
  font-size: clamp(0.82rem, 1.05vw, 0.98rem);
  line-height: 1.2;
  font-weight: 400;
  max-width: 100%;
  position: relative;
  z-index: 2;
  white-space: nowrap;
}

.scroll-lockup {
  position: absolute;
  left: 50%;
  bottom: min(4.4vh, 34px);
  transform: translateX(-50%);
  width: max-content;
}

.scroll-brand {
  display: inline-grid;
  justify-items: center;
  gap: 0;
  position: relative;
  left: auto;
  bottom: auto;
  opacity: 1;
  transform: none;
  filter: none;
  padding-right: 0;
}

.scroll-brand-wordmark {
  display: grid;
  justify-items: center;
  gap: 0;
}

.scroll-brand h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.45rem, 6.1vw, 4.7rem);
  line-height: 0.82;
  letter-spacing: -0.06em;
  text-transform: lowercase;
  color: rgba(255, 255, 255, 0.94);
  white-space: nowrap;
}

.scroll-brand-subline {
  margin: 0;
  font-size: clamp(0.54rem, 0.76vw, 0.66rem);
  line-height: 1;
  letter-spacing: 0.46em;
  color: rgba(255, 255, 255, 0.72);
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 400;
  transform: translate(-0.4em, -0.14em);
  display: inline-flex;
  align-items: center;
  gap: 2.18em;
  white-space: nowrap;
}

.scroll-brand-subline span {
  display: inline-block;
}

.scroll-brand-subline span:first-child {
  transform: translateX(-0.18em);
}

.scroll-brand-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  text-transform: lowercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  line-height: 1;
  white-space: nowrap;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
  position: absolute;
  left: calc(100% + 18px);
  right: auto;
  bottom: 6px;
  z-index: 6;
  padding-top: 1px;
}

.scroll-brand-link:hover,
.scroll-brand-link:focus-visible {
  color: rgba(255, 255, 255, 0.98);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
}

.phone-shell.showcase-motion,
.phone-shell.showcase-motion .frame-sheen,
.phone-shell.showcase-motion .screen,
.phone-shell.showcase-motion .front-glass::before,
.phone-shell.showcase-motion .front-glass::after {
  transition: none;
}

.phone-shell::before,
.phone-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.phone-shell::before {
  background:
    linear-gradient(112deg, rgba(248, 250, 252, 0.94) 3%, rgba(233, 238, 244, 0.18) 16%, transparent 30%),
    linear-gradient(180deg, rgba(237, 241, 246, 0.34), transparent 18%, transparent 84%, rgba(224, 229, 235, 0.2));
  opacity: 0.9;
}

.phone-shell::after {
  inset: 3px;
  border-radius: 57px;
  border: 1px solid rgba(236, 241, 246, 0.44);
  box-shadow:
    0 0 0 1px rgba(128, 136, 146, 0.18) inset,
    0 0 18px rgba(241, 245, 249, 0.18) inset;
}

.frame-sheen,
.frame-rim,
.front-glass {
  position: absolute;
  inset: 0;
}

.frame-sheen,
.frame-rim {
  pointer-events: none;
}

.frame-sheen {
  inset: 14px 12px;
  border-radius: 48px;
  background:
    linear-gradient(115deg, rgba(247, 249, 252, 0.56), transparent 14%, transparent 80%, rgba(232, 237, 243, 0.22)),
    linear-gradient(180deg, rgba(237, 241, 246, 0.2), transparent 18%, transparent 86%, rgba(228, 233, 239, 0.1));
  mix-blend-mode: screen;
  opacity: 0.75;
  transform: translateX(calc(var(--screen-shift-x) * 0.35)) translateY(calc(var(--screen-shift-y) * 0.2));
  transition: transform 260ms ease-out;
}

.frame-rim {
  inset: 8px;
  border-radius: 54px;
  border: 1px solid rgba(238, 242, 247, 0.44);
  box-shadow:
    0 1px 0 rgba(249, 251, 253, 0.68) inset,
    0 -1px 0 rgba(104, 111, 120, 0.2) inset;
}

.front-glass {
  inset: 11px;
  border-radius: 50px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(20, 20, 22, 0.98), rgba(7, 7, 8, 0.985));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 22px 34px rgba(0, 0, 0, 0.42) inset,
    0 -8px 18px rgba(255, 255, 255, 0.05) inset,
    0 0 24px rgba(255, 255, 255, 0.02);
  transform: translateZ(14px);
  transform-style: preserve-3d;
  pointer-events: auto;
}

.front-glass::before,
.front-glass::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 3;
}

.front-glass::before {
  inset: 0;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.14) 0%, transparent 14%, transparent 74%, rgba(255, 255, 255, 0.04) 100%);
  transform: translateX(calc(var(--screen-shift-x) * 0.55)) translateY(calc(var(--screen-shift-y) * 0.2));
  transition: transform 280ms ease-out;
}

.front-glass::after {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(220px 180px at var(--glint-x) var(--glint-y), rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.14) 24%, rgba(255, 255, 255, 0.05) 42%, transparent 64%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), transparent 22%, transparent 78%, rgba(255, 255, 255, 0.025));
  mix-blend-mode: screen;
  opacity: 0.95;
  transition: opacity 260ms ease-out, transform 260ms ease-out;
}

.dynamic-island {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 122px;
  height: 35px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 28% 36%, rgba(72, 72, 80, 0.5), transparent 22%),
    linear-gradient(180deg, rgba(16, 16, 18, 0.98), rgba(3, 3, 4, 1));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 10px 20px rgba(0, 0, 0, 0.35);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.island-speaker,
.island-sensor {
  display: block;
  border-radius: 999px;
}

.island-speaker {
  width: 40px;
  height: 5px;
  background: rgba(55, 58, 64, 0.9);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

.island-sensor {
  width: 10px;
  height: 10px;
  background:
    radial-gradient(circle at 35% 35%, rgba(84, 107, 152, 0.8), rgba(20, 24, 32, 0.95) 58%, rgba(4, 4, 5, 1) 100%);
  box-shadow:
    0 0 0 2px rgba(10, 10, 12, 0.95),
    0 0 12px rgba(63, 103, 173, 0.18);
}

.side-button,
.side-button-right {
  position: absolute;
  width: 5px;
  background: linear-gradient(180deg, #f2f4f7 0%, #bec4cc 26%, #8f96a0 100%);
  border-radius: 999px;
  box-shadow:
    1px 0 0 rgba(250, 252, 255, 0.44) inset,
    -1px 0 0 rgba(103, 110, 120, 0.28) inset;
}

.side-button {
  left: 0;
  height: 54px;
  transform: translateX(-58%);
}

.side-button-top {
  top: 168px;
}

.side-button-mid {
  top: 236px;
}

.side-button-low {
  top: 304px;
}

.side-button-right {
  right: 0;
  top: 244px;
  height: 84px;
  transform: translateX(58%);
}

.screen {
  position: absolute;
  top: 10px;
  left: 8px;
  right: 8px;
  bottom: 10px;
  overflow: hidden;
  border-radius: 42px;
  background: var(--screen);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 18px 34px rgba(255, 255, 255, 0.025);
  transform:
    translateZ(6px)
    translateX(var(--screen-shift-x))
    translateY(var(--screen-shift-y))
    rotateX(var(--screen-rotate-x))
    rotateY(var(--screen-rotate-y))
    scale(0.992);
  transform-origin: center center;
  transition: transform 260ms ease-out;
}

.screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.12) 0%, transparent 16%, transparent 72%, rgba(255, 255, 255, 0.02) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 18%);
  pointer-events: none;
  z-index: 1;
}

.screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.05), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0));
  opacity: 0.72;
  pointer-events: none;
  z-index: 1;
}

.phone-video-shell {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.phone-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  background: #000;
  transform: scale(1.01);
}

.phone-video-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 108%, rgba(255, 255, 255, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 24%, transparent 76%, rgba(255, 255, 255, 0.02));
  z-index: 2;
}

.sound-toggle {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 4;
  transform: translateX(-50%);
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(10, 10, 10, 0.56);
  color: rgba(255, 255, 255, 0.82);
  text-transform: lowercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 220ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
  backdrop-filter: blur(10px);
}

.sound-toggle.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.sound-toggle:hover,
.sound-toggle:focus-visible {
  background: rgba(18, 18, 18, 0.72);
  border-color: rgba(255, 255, 255, 0.24);
  color: rgba(255, 255, 255, 0.96);
}

@media (max-width: 980px) {
  body {
    overflow-x: hidden;
  }

  .phone-stage {
    margin-left: 0;
  }

  .intro-copy {
    opacity: 1;
    filter: none;
    pointer-events: auto;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    padding-top: 84px;
    padding-bottom: 18px;
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
  }

  .intro-copy {
    text-align: center;
    justify-self: center;
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    margin-right: 0;
    z-index: 3;
  }

  .intro-copy h1,
  .intro-text {
    max-width: none;
  }

  .intro-actions {
    justify-content: center;
  }

  .phone-stage {
    height: min(68vh, 760px);
    align-self: end;
    margin-top: auto;
    padding-bottom: 28px;
  }

  .phone-drift {
    right: auto;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
  }
}

@media (max-width: 720px) {
  .phone-stage {
    height: min(64vh, 640px);
    padding-bottom: 18px;
  }

  .phone-drift {
    position: absolute;
    --phone-entry-x: 0px;
    --phone-entry-y: 84px;
    --phone-entry-rotate-z: 0deg;
    --phone-entry-scale: 0.94;
    --phone-entry-opacity: 0;
    left: 50%;
    right: auto;
    top: auto;
    bottom: 0;
    transform: translateX(-50%);
  }

  .phone-drift.is-mobile-free {
    transform: none;
  }

  .phone-shell {
    width: min(320px, 88vw);
  }

  .screen {
    transform: none;
  }

  .scroll-story {
    min-height: 200vh;
  }

  .scroll-line {
    letter-spacing: 0.18em;
    font-size: 0.82rem;
    align-self: center;
    justify-self: center;
    width: 100%;
    margin: 0 auto;
    text-align: center;
  }

  .scroll-copy {
    justify-content: center;
    padding: 0;
  }

  .scroll-brand {
    justify-items: center;
  }

  .scroll-lockup {
    left: 50%;
    bottom: 64px;
    transform: translateX(-50%);
    display: grid;
    justify-items: center;
    gap: 12px;
    width: max-content;
  }

  .scroll-brand-wordmark {
    gap: 0;
  }

  .scroll-brand h2 {
    font-size: clamp(2.78rem, 15vw, 4.1rem);
    line-height: 0.76;
    letter-spacing: -0.062em;
  }

  .scroll-brand-subline {
    font-size: 0.66rem;
    line-height: 1;
    letter-spacing: 0.31em;
    gap: 1.84em;
    transform: translate(-0.48em, -0.28em);
  }

  .scroll-brand-subline span:first-child {
    transform: translateX(-0.72em);
  }

  .scroll-brand-link {
    min-height: 32px;
    padding: 0 13px;
    font-size: 0.66rem;
    line-height: 0.95;
    position: static;
    left: auto;
    right: auto;
    transform: translateY(-2px);
    bottom: auto;
    padding-top: 0;
    padding-bottom: 0;
  }

  .dynamic-island {
    top: 16px;
    width: 108px;
    height: 30px;
  }

  .frame-sheen {
    transform: none;
  }

  .sound-toggle {
    bottom: 22px;
  }

}
