:root {
  --bg: #080b0d;
  --paper: #f4f7f8;
  --muted: #8e999f;
  --line: rgba(255, 255, 255, 0.12);
  --teal: #4ef2d2;
  --blue: #5bb7ff;
  --ease: cubic-bezier(0.2, 0.75, 0.25, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  max-width: 100%;
  overflow-x: clip;
  background: var(--bg);
}

body {
  min-height: 100svh;
  margin: 0;
  overflow-x: clip;
  color: var(--paper);
  background:
    radial-gradient(circle at 78% 42%, rgba(53, 118, 123, 0.1), transparent 32%),
    linear-gradient(145deg, #0d1114 0%, #080b0d 55%, #0a0d0f 100%);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  color: inherit;
}

a {
  text-decoration: none;
}

.ambient {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

#ambient-canvas,
.ambient__grain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ambient__grain {
  opacity: 0.13;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.4'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.ambient__glow {
  position: absolute;
  width: 34rem;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.08;
  animation: breathe 9s ease-in-out infinite alternate;
}

.ambient__glow--one {
  right: -12rem;
  top: 12%;
  background: var(--teal);
}

.ambient__glow--two {
  left: 24%;
  bottom: -28rem;
  background: var(--blue);
  animation-delay: -4s;
}

.page-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(100%, 1600px);
  min-height: 100svh;
  margin: 0 auto;
  padding: 30px clamp(22px, 4.4vw, 76px) 24px;
}

.topbar,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 13px;
  font-weight: 560;
  letter-spacing: -0.01em;
}

.brand__mark {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9px;
  color: #eafffb;
  background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.02));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.18), 0 9px 28px rgba(0, 0, 0, 0.3);
  font-weight: 650;
  font-size: 13px;
}

.status {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: #aab3b8;
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(14px);
  font-size: 11px;
  font-weight: 520;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(78, 242, 210, 0.08), 0 0 16px rgba(78, 242, 210, 0.6);
  animation: status-pulse 2.4s ease-in-out infinite;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, 0.96fr);
  align-items: center;
  gap: clamp(30px, 5vw, 90px);
  padding: clamp(58px, 8vh, 105px) 0;
}

.hero__copy {
  position: relative;
  z-index: 3;
  max-width: 770px;
}

.eyebrow {
  margin: 0 0 clamp(22px, 3.8vh, 42px);
  color: #8f999f;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(64px, 8.25vw, 138px);
  font-weight: 590;
  letter-spacing: -0.078em;
  line-height: 0.79;
}

h1 span {
  display: block;
}

.title-shine {
  padding-right: 0.08em;
  padding-bottom: 0.07em;
  color: transparent;
  background: linear-gradient(105deg, #fafcfc 5%, #8e999f 46%, #edf5f4 66%, #a3acab 100%);
  background-size: 180% auto;
  -webkit-background-clip: text;
  background-clip: text;
  animation: title-light 8s ease-in-out infinite;
}

.hero__statement {
  margin: clamp(26px, 4vh, 47px) 0 0;
  color: #d9dfe1;
  font-size: clamp(23px, 2.1vw, 35px);
  font-weight: 370;
  letter-spacing: -0.045em;
}

.hero__description {
  max-width: 470px;
  margin: 19px 0 0;
  color: #7f8a90;
  font-size: clamp(14px, 1.05vw, 17px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.58;
}

.sculpture-wrap {
  position: relative;
  display: grid;
  min-height: min(62vw, 720px);
  place-items: center;
  perspective: 1300px;
}

.sculpture {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  width: min(39vw, 590px);
  aspect-ratio: 0.89;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 550ms var(--ease);
}

.sculpture__halo {
  position: absolute;
  inset: 13% 5% 8%;
  border-radius: 50%;
  background: conic-gradient(from 180deg, rgba(78,242,210,.17), transparent 28%, rgba(91,183,255,.13), transparent 68%, rgba(78,242,210,.12));
  filter: blur(48px);
  animation: halo-turn 18s linear infinite;
}

.glass-window {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: clamp(22px, 2.2vw, 34px);
  background:
    linear-gradient(145deg, rgba(255,255,255,.115), rgba(255,255,255,.025) 46%, rgba(255,255,255,.055)),
    rgba(15, 20, 23, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.17),
    inset 0 -1px 0 rgba(255, 255, 255, 0.03),
    0 40px 100px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(24px) saturate(125%);
}

.glass-window::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.09) 40%, transparent 57%);
  transform: translateX(-120%);
  animation: glass-sweep 8s var(--ease) infinite;
  pointer-events: none;
}

.glass-window--back {
  inset: 8% -4% 18% 13%;
  opacity: 0.54;
  transform: translate3d(35px, -24px, -70px) rotate(8deg);
  animation: back-float 8s ease-in-out infinite alternate;
}

.glass-window--main {
  inset: 15% 5% 10% 0;
  z-index: 2;
  display: grid;
  grid-template-rows: 54px 1fr 42px;
  animation: main-float 6.5s ease-in-out infinite alternate;
}

.window-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.window-bar span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.window-bar span:first-child {
  background: rgba(78, 242, 210, 0.6);
  box-shadow: 0 0 10px rgba(78, 242, 210, 0.4);
}

.window-bar b {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.32);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.editor-stage {
  position: relative;
  overflow: hidden;
}

.editor-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
}

.editor-guide {
  position: absolute;
  top: 10%;
  bottom: 10%;
  left: 50%;
  width: 1px;
  background: linear-gradient(transparent, rgba(78,242,210,.34), transparent);
  transform: translateX(-50%);
}

.monogram {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 64%;
  aspect-ratio: 1.12;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 20px 36px rgba(0, 0, 0, 0.42));
}

.monogram__e,
.monogram__m {
  position: absolute;
  color: transparent;
  background: linear-gradient(150deg, #fff 5%, #819091 43%, #eaf8f5 70%, #697477);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: clamp(105px, 12vw, 190px);
  font-weight: 620;
  letter-spacing: -0.15em;
  line-height: 0.72;
}

.monogram__e {
  left: 0;
  top: 7%;
}

.monogram__m {
  right: 6%;
  bottom: 2%;
  opacity: 0.65;
  transform: scale(0.78);
  transform-origin: right bottom;
}

.monogram__beam {
  position: absolute;
  left: 47%;
  top: -10%;
  width: 2px;
  height: 118%;
  background: linear-gradient(transparent, var(--teal) 28%, rgba(91,183,255,.9) 72%, transparent);
  box-shadow: 0 0 15px rgba(78, 242, 210, 0.7);
  opacity: 0.76;
  transform: rotate(28deg);
  animation: beam-pulse 4s ease-in-out infinite;
}

.editor-copy {
  position: absolute;
  left: 7%;
  bottom: 8%;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.editor-copy > span {
  color: rgba(255, 255, 255, 0.2);
  font: 500 8px/1 monospace;
}

.editor-copy div {
  display: grid;
  gap: 5px;
}

.editor-copy i,
.ghost-lines i {
  display: block;
  height: 2px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.2);
}

.editor-copy i:nth-child(1) { width: 78px; }
.editor-copy i:nth-child(2) { width: 55px; }
.editor-copy i:nth-child(3) { width: 67px; background: rgba(78,242,210,.33); }

.editor-orbit {
  position: absolute;
  border: 1px solid rgba(129, 234, 223, 0.15);
  border-radius: 50%;
  animation: orbit 12s linear infinite;
}

.editor-orbit::after {
  content: "";
  position: absolute;
  top: 19%;
  right: 6%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 14px rgba(78, 242, 210, 0.9);
}

.editor-orbit--a { inset: 12% 18%; }
.editor-orbit--b { inset: 24% 9%; animation-direction: reverse; animation-duration: 16s; }

.window-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.26);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.window-footer__signal::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--teal);
}

.ghost-lines {
  display: grid;
  gap: 15px;
  padding: 80px 14%;
}

.ghost-lines i { height: 4px; }
.ghost-lines i:nth-child(2) { width: 73%; }
.ghost-lines i:nth-child(3) { width: 87%; }
.ghost-lines i:nth-child(4) { width: 58%; }

.glass-chip {
  position: absolute;
  z-index: 4;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255,255,255,.14), rgba(255,255,255,.035));
  box-shadow: inset 0 1px rgba(255,255,255,.18), 0 22px 45px rgba(0,0,0,.32);
  backdrop-filter: blur(20px);
}

.glass-chip--top {
  top: 7%;
  right: 8%;
  width: 68px;
  height: 68px;
  color: rgba(240, 255, 252, 0.75);
  font-family: Georgia, serif;
  font-size: 24px;
  animation: chip-float 5s ease-in-out infinite alternate;
}

.glass-chip--side {
  right: 0;
  bottom: 9%;
  width: 54px;
  height: 86px;
  gap: 6px;
  animation: chip-float 6s -2s ease-in-out infinite alternate-reverse;
}

.glass-chip--side span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
}

.glass-chip--side span:nth-child(2) { width: 26px; background: rgba(78,242,210,.52); }

.footer {
  color: #616c72;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer p {
  margin: 0;
}

.footer p span {
  margin: 0 5px;
  color: #3b4448;
}

.motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  color: #6e797f;
  background: transparent;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  transition: color 220ms ease, background 220ms ease;
}

.motion-toggle:hover,
.motion-toggle:focus-visible {
  color: #c2cccf;
  background: rgba(255, 255, 255, 0.05);
  outline: none;
}

.motion-toggle__icon {
  width: 9px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-left: 2px solid currentColor;
}

.is-paused .motion-toggle__icon {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
  border-right: 0;
}

.is-paused *,
.is-paused *::before,
.is-paused *::after {
  animation-play-state: paused !important;
}

@keyframes main-float { to { transform: translate3d(0, -13px, 18px) rotate(-0.8deg); } }
@keyframes back-float { to { transform: translate3d(44px, -34px, -70px) rotate(10deg); } }
@keyframes chip-float { to { transform: translate3d(0, -14px, 30px) rotate(3deg); } }
@keyframes halo-turn { to { transform: rotate(360deg); } }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes glass-sweep { 0%, 26% { transform: translateX(-120%); } 62%, 100% { transform: translateX(120%); } }
@keyframes title-light { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes breathe { to { opacity: .14; transform: scale(1.12); } }
@keyframes beam-pulse { 0%, 100% { opacity: .35; } 50% { opacity: .9; } }
@keyframes status-pulse { 50% { opacity: .58; box-shadow: 0 0 0 7px rgba(78,242,210,.035), 0 0 18px rgba(78,242,210,.55); } }

@media (max-width: 900px) {
  .page-shell { padding-top: 22px; }
  .hero {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 70px 0 40px;
  }
  .hero__copy { max-width: 700px; }
  h1 { font-size: clamp(76px, 16vw, 125px); }
  .sculpture-wrap { min-height: min(76vw, 620px); }
  .sculpture { width: min(66vw, 530px); }
}

@media (max-width: 560px) {
  .page-shell { padding: 18px 19px; }
  .brand > span:last-child { font-size: 12px; }
  .status { padding: 7px 10px; font-size: 9px; }
  .hero { padding: 62px 0 24px; }
  .eyebrow { margin-bottom: 23px; font-size: 9px; }
  h1 { font-size: clamp(60px, 19vw, 84px); line-height: .82; }
  .hero__statement { margin-top: 25px; }
  .hero__description { max-width: 340px; margin-top: 14px; }
  .sculpture-wrap {
    min-height: 105vw;
    margin: 4px -12px 8px;
    overflow: hidden;
    overflow: clip;
    contain: paint;
  }
  .sculpture { width: min(91vw, 420px); }
  .glass-window--main { grid-template-rows: 44px 1fr 34px; }
  .window-bar { padding: 0 15px; }
  .footer { align-items: flex-end; }
  .motion-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .motion-toggle { display: none; }
}
