@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@300;400;500&family=Manrope:wght@300;400;500;600&family=Playfair+Display:ital,wght@1,500&display=swap");

:root {
  --pink: #c7337d;
  --pink-hot: #ff4ba4;
  --ink: #08070a;
  --paper: #f1ebee;
  --muted: rgba(241, 235, 238, 0.5);
  --hairline: rgba(255, 255, 255, 0.15);
  --mono: "DM Mono", monospace;
  --sans: "Manrope", sans-serif;
  --serif: "Playfair Display", serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}

body {
  font-family: var(--sans);
  cursor: crosshair;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

#field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background:
    radial-gradient(circle at 25% 45%, rgba(199, 51, 125, 0.12), transparent 34%),
    radial-gradient(circle at 82% 48%, rgba(71, 103, 128, 0.08), transparent 30%),
    #08070a;
}

.site-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: 84px 1fr 68px;
  width: 100%;
  height: 100%;
  padding: 0 42px;
  pointer-events: none;
}

.topbar,
.footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-color: var(--hairline);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.topbar {
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--hairline);
}

.brand {
  justify-self: start;
  display: inline-flex;
  gap: 11px;
  align-items: center;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-decoration: none;
  pointer-events: auto;
}

.brand-mark {
  position: relative;
  width: 19px;
  height: 19px;
  animation: mark-turn 12s linear infinite;
}

.brand-mark i {
  position: absolute;
  inset: 8px 0 auto;
  display: block;
  height: 2px;
  background: var(--pink-hot);
  transform-origin: center;
}

.brand-mark i:nth-child(2) { transform: rotate(60deg); }
.brand-mark i:nth-child(3) { transform: rotate(-60deg); }

@keyframes mark-turn {
  to { transform: rotate(360deg); }
}

.firm-label {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pink-hot);
  box-shadow: 0 0 0 0 rgba(255, 75, 164, 0.65);
  animation: live 2.2s infinite;
}

@keyframes live {
  55% { box-shadow: 0 0 0 7px rgba(255, 75, 164, 0); }
}

.hero {
  position: relative;
  min-height: 0;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-copy {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: min(720px, 62vw);
  transform: translate(-50%, -48%);
  text-align: center;
  pointer-events: none;
}

.eyebrow {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 0 0 23px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.eyebrow span {
  color: var(--pink-hot);
}

h1 {
  margin: 0;
  font-size: clamp(52px, 7.3vw, 118px);
  font-weight: 300;
  line-height: 0.83;
  letter-spacing: -0.065em;
}

h1 .line {
  display: block;
  opacity: 0;
  animation: rise 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

h1 .line-two {
  animation-delay: 0.12s;
}

h1 em {
  color: var(--pink-hot);
  font-family: var(--serif);
  font-weight: 500;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(45px); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.intro {
  width: min(475px, 80%);
  margin: 30px auto 0;
  color: rgba(255, 255, 255, 0.63);
  font-size: 12px;
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.025em;
}

.field-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 17px;
  margin-top: 25px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  pointer-events: auto;
}

.field-button > span:first-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.32);
  padding-bottom: 5px;
  transition: border-color 0.3s, color 0.3s;
}

.field-button:hover > span:first-child,
.field-button:focus-visible > span:first-child {
  color: var(--pink-hot);
  border-color: var(--pink-hot);
}

.field-button:focus-visible {
  outline: 1px solid var(--pink-hot);
  outline-offset: 8px;
}

.button-orbit {
  position: relative;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  transition: transform 0.45s ease, border-color 0.45s;
}

.button-orbit::before,
.button-orbit::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 1px;
  background: var(--paper);
  transform: translate(-50%, -50%);
}

.button-orbit::after { transform: translate(-50%, -50%) rotate(90deg); }

.button-orbit i {
  position: absolute;
  top: -2px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--pink-hot);
  transform: translateX(-50%);
}

.field-button:hover .button-orbit { transform: rotate(135deg) scale(1.12); border-color: var(--pink-hot); }

.axis-label {
  position: absolute;
  top: 50%;
  color: rgba(255, 255, 255, 0.24);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.axis-label-left { left: -1px; transform: translateY(-50%) rotate(180deg); }
.axis-label-right { right: -1px; transform: translateY(-50%); }

.telemetry {
  position: absolute;
  right: 2.5%;
  bottom: 6%;
  width: 205px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(8, 7, 10, 0.42);
  backdrop-filter: blur(8px);
  font-family: var(--mono);
  pointer-events: none;
}

.telemetry::before,
.telemetry::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: var(--pink-hot);
}

.telemetry::before { top: -1px; left: -1px; border-top: 1px solid; border-left: 1px solid; }
.telemetry::after { right: -1px; bottom: -1px; border-right: 1px solid; border-bottom: 1px solid; }

.telemetry-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 13px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 7px;
  letter-spacing: 0.15em;
}

.telemetry-head span:last-child { color: var(--pink-hot); }

.metric {
  display: grid;
  grid-template-columns: 55px 1fr 27px;
  gap: 8px;
  align-items: center;
  margin: 7px 0;
  color: rgba(255, 255, 255, 0.44);
  font-size: 6px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric b {
  position: relative;
  display: block;
  height: 2px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
}

.metric b i {
  display: block;
  width: var(--value);
  height: 100%;
  background: var(--pink-hot);
  transform-origin: left;
  animation: meter 1.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes meter { from { transform: scaleX(0); } }

.metric em { font-style: normal; text-align: right; }

.formula {
  display: flex;
  justify-content: space-between;
  margin-top: 11px;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.32);
  font-size: 6px;
  letter-spacing: 0.12em;
}

.footer {
  border-top: 1px solid var(--hairline);
  color: rgba(255, 255, 255, 0.42);
}

.footer p { margin: 0; }
.footer p span { color: rgba(255, 255, 255, 0.2); }
.footer-right { justify-self: end; }

.phase-control {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 350px;
}

.phase-line {
  position: relative;
  width: 120px;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.phase-line::before,
.phase-line::after {
  content: "";
  position: absolute;
  top: -2px;
  width: 1px;
  height: 5px;
  background: rgba(255, 255, 255, 0.45);
}

.phase-line::after { right: 0; }

.phase-line i {
  position: absolute;
  top: -3px;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink-hot);
  box-shadow: 0 0 9px var(--pink-hot);
  transform: translateX(-50%);
}

.noise {
  position: fixed;
  z-index: 5;
  inset: 0;
  opacity: 0.035;
  pointer-events: none;
  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='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

body.shifted .hero-copy h1 em { color: #66d8e2; }
body.shifted .button-orbit { transform: rotate(225deg); border-color: #66d8e2; }

@media (max-width: 900px) {
  .site-shell { padding: 0 22px; grid-template-rows: 70px 1fr 56px; }
  .telemetry, .axis-label { display: none; }
  .topbar { grid-template-columns: 1fr 1fr; }
  .hero-copy { width: 90vw; }
  .phase-control { min-width: 250px; gap: 9px; }
  .phase-line { width: 80px; }
}

@media (max-width: 620px) {
  .site-shell { padding: 0 17px; grid-template-rows: 62px 1fr 50px; }
  .firm-label > span:first-child { display: none; }
  h1 { font-size: clamp(46px, 15.5vw, 76px); line-height: 0.88; }
  .hero-copy { top: 52%; width: calc(100vw - 30px); }
  .intro { width: 88%; font-size: 11px; }
  .footer { grid-template-columns: 1fr 1fr; }
  .phase-control { display: none; }
}

@media (max-height: 650px) {
  .site-shell { grid-template-rows: 58px 1fr 44px; }
  .eyebrow { margin-bottom: 15px; }
  .intro { margin-top: 18px; line-height: 1.5; }
  .field-button { margin-top: 15px; }
  .telemetry { bottom: 3%; }
}

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