/* Droid Deploy: coming soon. Same tokens as the main site (Brand Assets/BRAND-STYLE.md). */
:root {
  --void: #07040c;
  --night: #0d0816;
  --panel: #120c1d;
  --line: rgba(236, 232, 244, 0.12);
  --line-2: rgba(236, 232, 244, 0.22);
  --text: #efeaf7;
  --muted: #b4adc4;
  --dim: #8c859d;
  --violet: #a77bff;
  --pink: #ff4fb8;
  --cyan: #3fe0f0;
  --grad: linear-gradient(90deg, #ff4fb8 0%, #a77bff 50%, #3fe0f0 100%);
  --font-display: "Oxanium", "Manrope", sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "Share Tech Mono", ui-monospace, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --horizon: 76%;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--void);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- The night scene, fixed behind everything. ---------- */
.scene { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(120% 70% at 50% 0%, #1d0f38 0%, #0d0816 45%, var(--void) 80%); }
.stars { position: absolute; inset: 0 0 calc(100% - var(--horizon)) 0; }
.star { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; opacity: 0.2; animation: twinkle 4s ease-in-out infinite; }
.shoot { position: absolute; width: 120px; height: 1px; background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff); transform: rotate(-24deg); opacity: 0; animation: shoot 1.1s ease-out forwards; }
.sun {
  position: absolute;
  left: 50%;
  top: var(--horizon);
  width: clamp(240px, 34vw, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -48%);
  /* Only the top ~48% shows above the horizon, so the colours and the stripes (thickening
     toward the horizon) all sit in that top half. */
  background: linear-gradient(180deg, #ffe08a 0%, #ffab5e 16%, #ff5fae 34%, #b06cff 50%);
  opacity: 0.88;
  filter: drop-shadow(0 0 60px rgba(255, 79, 184, 0.5));
  -webkit-mask-image: linear-gradient(180deg, #000 0 20%, transparent 20% 21.5%, #000 21.5% 27%, transparent 27% 29%, #000 29% 33.5%, transparent 33.5% 36%, #000 36% 39.5%, transparent 39.5% 42.5%, #000 42.5% 45%, transparent 45% 48.5%, #000 48.5%);
  mask-image: linear-gradient(180deg, #000 0 20%, transparent 20% 21.5%, #000 21.5% 27%, transparent 27% 29%, #000 29% 33.5%, transparent 33.5% 36%, #000 36% 39.5%, transparent 39.5% 42.5%, #000 42.5% 45%, transparent 45% 48.5%, #000 48.5%);
}
.floor {
  position: absolute;
  inset: var(--horizon) 0 0 0;
  overflow: hidden;
  background: linear-gradient(180deg, #14091f, var(--void));
  border-top: 1px solid rgba(255, 79, 184, 0.8);
  box-shadow: 0 -1px 22px rgba(255, 79, 184, 0.6);
  perspective: 280px;
  perspective-origin: 50% 0;
}
.floor::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #14091f 0%, rgba(20, 9, 31, 0.55) 20%, rgba(20, 9, 31, 0) 55%); }
.grid {
  position: absolute;
  left: -100%;
  right: -100%;
  top: 0;
  height: 600%;
  transform-origin: 50% 0;
  transform: rotateX(78deg);
  background-image: linear-gradient(rgba(255, 79, 184, 0.6) 2px, transparent 2px), linear-gradient(90deg, rgba(167, 123, 255, 0.55) 2px, transparent 2px);
  background-size: 80px 80px;
  animation: grid-run 1.8s linear infinite;
}
/* Mist drifting along the horizon: two layers of a tileable texture at different speeds. */
.fog { position: absolute; left: 0; right: 0; top: calc(var(--horizon) - 30%); height: 50%; pointer-events: none; }
.fog span { position: absolute; left: 0; width: 200%; height: 100%; background: url("/images/fog.webp") repeat-x left bottom / 50% 100%; mix-blend-mode: screen; will-change: transform; }
.fog-a { opacity: 0.26; animation: fog-drift 80s linear infinite; }
.fog-b { opacity: 0.2; top: 18%; animation: fog-drift-b 120s linear infinite; }
.scanlines { position: fixed; inset: 0; z-index: 5; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 3px); mix-blend-mode: multiply; }

/* ---------- Content ---------- */
.stage {
  flex: 1;
  width: min(100% - 32px, 760px);
  margin: 0 auto;
  padding: clamp(40px, 9vh, 96px) 0 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.logo-wrap { width: min(100%, 620px); }
.logo { display: block; width: 100%; height: auto; aspect-ratio: 1945 / 541; overflow: visible; filter: drop-shadow(0 0 28px rgba(63, 224, 240, 0.18)); }
.js .logo { animation: crt-on 1.1s var(--ease-out) both; }

/* Robot life: blink (script.js toggles .blink), eyes boot after the power-on, the antenna halo
   breathes and signals run along the circuit trails. .bot-look is moved by script.js. */
.bot-look { transition: transform 0.35s var(--ease-out); }
.bot-eyes { transform-box: fill-box; transform-origin: 50% 50%; transition: transform 0.07s ease-in; }
.logo.blink .bot-eyes { transform: scaleY(0.08); }
.js .bot-eyes { animation: eyes-boot 1.4s 0.9s steps(1, end) both; }
.bot-halo { opacity: 0.2; animation: bot-halo 2.8s ease-in-out infinite; }
.bot-spark { opacity: 0; animation: bot-spark 4.2s ease-out infinite; }
.bot-spark-2 { animation-delay: 0.22s; }
.bot-spark-3 { animation-delay: 0.44s; }

.soon {
  margin: clamp(18px, 3.5vh, 34px) 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 8vw, 5.2rem);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.soon-a { color: var(--text); }
.soon-b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 18px rgba(255, 79, 184, 0.45)); }
.js .soon-b { animation: tube-on 1.6s 1.3s steps(1, end) both; }
.lead { max-width: 34rem; margin: 18px 0 0; color: #d6d0e2; font-size: clamp(1.02rem, 1.4vw, 1.18rem); }
.lead strong { color: var(--text); font-weight: 600; }

/* Boot terminal: typed lines and a progress bar that never quite finishes. */
.term {
  width: min(100%, 460px);
  margin-top: clamp(22px, 4vh, 36px);
  padding: 14px 18px 16px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--cyan);
  background:
    linear-gradient(var(--cyan), var(--cyan)) top left / 14px 2px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) top left / 2px 14px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) bottom right / 14px 2px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) bottom right / 2px 14px no-repeat,
    rgba(10, 6, 18, 0.72);
  border: 1px solid rgba(63, 224, 240, 0.2);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.term-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 0.72rem; letter-spacing: 0.18em; color: var(--dim); }
.term-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: blink-dot 1.2s steps(1, end) infinite; }
.term-lines { list-style: none; margin: 0; padding: 0; min-height: 6.4em; }
.term-lines li { display: flex; gap: 10px; white-space: nowrap; overflow: hidden; text-shadow: 0 0 8px rgba(63, 224, 240, 0.45); }
.term-lines li .t { flex: 1; overflow: hidden; text-overflow: clip; }
.term-lines li .ok { color: #7dffb0; text-shadow: 0 0 8px rgba(125, 255, 176, 0.5); }
.term-lines li.redacted .t { letter-spacing: 0.02em; color: #9be9f2; }
.term-lines li .pct { color: var(--pink); text-shadow: 0 0 8px rgba(255, 79, 184, 0.55); }
.term-lines li.typing .t::after { content: "_"; animation: blink-dot 0.8s steps(1, end) infinite; }
.term-bar { height: 6px; margin-top: 10px; background: rgba(63, 224, 240, 0.1); box-shadow: inset 0 0 0 1px rgba(63, 224, 240, 0.25); }
.term-bar span { display: block; height: 100%; width: 0; background: var(--grad); box-shadow: 0 0 12px rgba(255, 79, 184, 0.55); transition: width 0.6s var(--ease-out); }

/* Buttons, as on the main site, with the light sweep on the gradient one. */
.actions { margin-top: clamp(22px, 4vh, 34px); display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.25s var(--ease-out), color 0.2s, background-color 0.2s;
}
.btn-primary { color: var(--void); }
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.55) 50%, transparent 62%) 100% 0 / 250% 100% no-repeat, var(--grad);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}
.btn-primary::after { content: ""; position: absolute; inset: 6px 10px; z-index: -2; background: var(--grad); filter: blur(16px); opacity: 0.5; transition: opacity 0.3s; }
.btn-primary:hover { transform: translateY(-2px); }
.btn-primary:hover::after { opacity: 0.85; }
.btn-primary:hover::before { animation: btn-sweep 0.6s var(--ease-out); }
.btn-ghost {
  background:
    linear-gradient(var(--text), var(--text)) top left / 12px 1px no-repeat,
    linear-gradient(var(--text), var(--text)) top left / 1px 12px no-repeat,
    linear-gradient(var(--text), var(--text)) top right / 12px 1px no-repeat,
    linear-gradient(var(--text), var(--text)) top right / 1px 12px no-repeat,
    linear-gradient(var(--text), var(--text)) bottom left / 12px 1px no-repeat,
    linear-gradient(var(--text), var(--text)) bottom left / 1px 12px no-repeat,
    linear-gradient(var(--text), var(--text)) bottom right / 12px 1px no-repeat,
    linear-gradient(var(--text), var(--text)) bottom right / 1px 12px no-repeat,
    rgba(18, 12, 29, 0.7);
}
.btn-ghost:hover { color: var(--cyan); background-color: rgba(63, 224, 240, 0.08); }

.foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; padding: 18px 16px 22px; font-size: 0.85rem; color: var(--dim); }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--cyan); }

/* Easter egg: the cheat code (or five taps on the robot) sends a droid flying past. */
.toast { position: fixed; left: 50%; top: 22px; z-index: 20; width: max-content; max-width: calc(100vw - 32px); padding: 14px 22px; text-align: center; font-family: var(--font-mono); color: var(--cyan); background: rgba(7, 4, 12, 0.92); border: 1px solid var(--cyan); box-shadow: 0 0 24px rgba(63, 224, 240, 0.4); transform: translateX(-50%); pointer-events: none; animation: toast-life 4.2s ease forwards; }
.toast b { display: block; font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 0.1em; color: var(--pink); text-shadow: 0 0 14px rgba(255, 79, 184, 0.7); }
.toast span { font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; }
.fly { position: fixed; left: 0; top: 0; z-index: 21; width: 96px; pointer-events: none; filter: drop-shadow(-28px 0 14px rgba(63, 224, 240, 0.65)) drop-shadow(-56px 0 18px rgba(255, 79, 184, 0.4)); animation: droid-fly 2.8s cubic-bezier(0.45, 0, 0.55, 1) forwards; }

/* ---------- Contact form window (a native <dialog>). ---------- */
button.btn { border: 0; cursor: pointer; background: none; }
.contact { width: min(100% - 24px, 520px); max-height: calc(100svh - 24px); padding: 0; color: var(--text); background: none; border: 0; overflow: visible; }
.contact::backdrop { background: rgba(7, 4, 12, 0.72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.contact[open] { animation: panel-on 0.45s var(--ease-out); }
.contact-panel {
  max-height: calc(100svh - 24px);
  overflow-y: auto;
  padding: 16px 20px 22px;
  background:
    linear-gradient(var(--cyan), var(--cyan)) top left / 16px 2px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) top left / 2px 16px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) bottom right / 16px 2px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) bottom right / 2px 16px no-repeat,
    #120c1d;
  border: 1px solid rgba(63, 224, 240, 0.28);
  box-shadow: 0 0 60px rgba(63, 224, 240, 0.12), 0 30px 80px rgba(0, 0, 0, 0.6);
}
.contact .term-head { font-family: var(--font-mono); }
.contact-x { width: 32px; height: 32px; margin: -6px -8px -6px 0; font-size: 1.5rem; line-height: 1; color: var(--muted); background: none; border: 0; cursor: pointer; }
.contact-x:hover { color: var(--cyan); }
.contact h2 { margin: 10px 0 0; font-family: var(--font-display); font-size: 1.7rem; text-transform: uppercase; letter-spacing: 0.04em; }
.contact-sub { margin: 4px 0 16px; color: var(--muted); font-size: 0.95rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; margin-bottom: 12px; font-size: 0.85rem; font-weight: 600; text-align: left; }
.field em { font-style: normal; font-weight: 500; color: var(--dim); }
.field input, .field textarea {
  width: 100%;
  padding: 11px 12px;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  background: #07040d;
  border: 1px solid var(--line-2);
  border-radius: 0;
  resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan), 0 0 14px rgba(63, 224, 240, 0.25); }
.field input[aria-invalid="true"] { border-color: #ff5a7a; box-shadow: 0 0 0 1px #ff5a7a; }
.consent { display: grid; grid-template-columns: 18px 1fr; gap: 10px; margin: 4px 0 16px; font-size: 0.8rem; color: var(--muted); text-align: left; }
.consent input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--cyan); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-send { width: 100%; }
.contact-send[disabled] { opacity: 0.6; cursor: progress; }
.contact-note { min-height: 1.2em; margin: 12px 0 0; font-size: 0.88rem; color: var(--muted); text-align: center; }
.contact-note.is-error { color: #ff5a7a; }
.contact-done { display: grid; justify-items: center; gap: 8px; padding: 34px 6px 18px; text-align: center; outline: none; }
.contact-done b { font-family: var(--font-mono); font-weight: 400; font-size: 0.95rem; letter-spacing: 0.3em; color: var(--pink); text-shadow: 0 0 12px rgba(255, 79, 184, 0.65); }
.contact-done h2 { margin: 4px 0 0; }
.contact-done p { margin: 0; color: var(--muted); }
.contact-done .typed { margin-top: 6px; font-family: var(--font-mono); font-size: 0.86rem; letter-spacing: 0.12em; color: var(--cyan); text-shadow: 0 0 10px rgba(63, 224, 240, 0.5); min-height: 1.4em; }
.contact-done .typed::after { content: "_"; animation: blink-dot 1s steps(1, end) infinite; }
@keyframes panel-on { from { opacity: 0; transform: scale(0.96, 0.6); } to { opacity: 1; transform: none; } }

@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
  :root { --horizon: 80%; }
  .term { font-size: 0.78rem; }
  .actions .btn { flex: 1 1 100%; }
  .scanlines { background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 3px); }
}
@media (max-height: 700px) and (min-width: 601px) {
  .logo-wrap { width: min(100%, 480px); }
  .soon { font-size: 3.4rem; }
}

@keyframes crt-on {
  0% { transform: scale(1.04, 0.01); filter: brightness(3) drop-shadow(0 0 28px rgba(63, 224, 240, 0.6)); opacity: 0; }
  12% { opacity: 1; }
  45% { transform: scale(1, 0.01); filter: brightness(3) drop-shadow(0 0 28px rgba(63, 224, 240, 0.6)); }
  70% { transform: scale(1, 1.06); filter: brightness(1.5) drop-shadow(0 0 28px rgba(63, 224, 240, 0.4)); }
  100% { transform: none; filter: drop-shadow(0 0 28px rgba(63, 224, 240, 0.18)); }
}
@keyframes eyes-boot { 0% { opacity: 0; } 20% { opacity: 1; } 28% { opacity: 0.1; } 40%, 100% { opacity: 1; } }
@keyframes tube-on {
  0% { opacity: 0.25; filter: none; }
  10% { opacity: 1; filter: drop-shadow(0 0 18px rgba(255, 79, 184, 0.45)); }
  15% { opacity: 0.3; filter: none; }
  23% { opacity: 1; filter: drop-shadow(0 0 18px rgba(255, 79, 184, 0.45)); }
  29% { opacity: 0.55; }
  37%, 100% { opacity: 1; filter: drop-shadow(0 0 18px rgba(255, 79, 184, 0.45)); }
}
@keyframes bot-halo { 0%, 100% { opacity: 0.18; } 50% { opacity: 0.9; } }
@keyframes bot-spark { 0%, 100% { opacity: 0; } 4% { opacity: 0.75; } 16% { opacity: 0; } }
@keyframes twinkle { 0%, 100% { opacity: 0.15; } 50% { opacity: 0.9; } }
@keyframes shoot { 0% { opacity: 0; transform: rotate(-24deg) translateX(0); } 15% { opacity: 1; } 100% { opacity: 0; transform: rotate(-24deg) translateX(-260px); } }
@keyframes grid-run { from { transform: rotateX(78deg) translateY(0); } to { transform: rotateX(78deg) translateY(80px); } }
@keyframes fog-drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes fog-drift-b { from { transform: translateX(-50%) scaleY(-1); } to { transform: translateX(0) scaleY(-1); } }
@keyframes blink-dot { 50% { opacity: 0.15; } }
@keyframes btn-sweep { from { background-position: 100% 0, 0 0; } to { background-position: 0% 0, 0 0; } }
@keyframes toast-life { 0% { opacity: 0; transform: translate(-50%, -8px); } 8%, 82% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -8px); } }
@keyframes droid-fly {
  0% { transform: translate(-140px, 72vh) rotate(-14deg); }
  50% { transform: translate(48vw, 30vh) rotate(4deg) scale(1.15); }
  100% { transform: translate(calc(100vw + 140px), 12vh) rotate(16deg); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
