/* mimr landing page. One screen, no scroll, no external requests. */

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/poppins-500-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-latin.woff2') format('woff2');
}

:root {
  --ink: #0b0b0c;
  --orange: #e9622e;
  --orange-lift: #f4794a;
  --white: #f4f3f1;
  --muted: #8b8b8f;
  --muted-dim: #5c5c61;
  --hairline: rgba(255, 255, 255, 0.11);

  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;
  --display: 'Poppins', 'Futura', 'Avenir Next', 'Century Gothic', ui-rounded, system-ui, sans-serif;

  --edge: clamp(1.25rem, 3.4vw, 3.25rem);

  /* Position and size of the bead above the i. Tune here, nowhere else. */
  --dot-size: 0.12em;
  --dot-top: 0.195em;
  --stop-size: 0.145em;
  --stop-gap: 0.01em;
  --stop-radius: 50%;    /* 0 squares the full stop off */
  --stop-colour: #fff;    /* var(--orange) sinks it into the word */

  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  background: var(--ink);
  color: var(--white);
  font-family: var(--mono);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.a11y {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Layers ------------------------------------------------------------- */

#field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

/* Warm pool of light tracking the pointer. Moved by transform only. */
.halo {
  position: fixed;
  top: 0;
  left: 0;
  width: 46rem;
  height: 46rem;
  margin: -23rem 0 0 -23rem;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 600ms ease;
  background: radial-gradient(circle closest-side, rgba(233, 98, 46, 0.13), rgba(233, 98, 46, 0.04) 45%, transparent 70%);
}

.halo.is-live { opacity: 1; }

.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    radial-gradient(ellipse at 50% 46%, transparent 32%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.4), transparent 22%, transparent 78%, rgba(0, 0, 0, 0.45));
}

/* Head and foot rails ------------------------------------------------ */

.hud {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1rem, 2.6vw, 1.9rem) var(--edge);
  font-size: clamp(0.6rem, 0.78vw, 0.72rem);
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.hud--foot {
  bottom: 0;
  padding-bottom: max(clamp(1rem, 2.6vw, 1.9rem), env(safe-area-inset-bottom));
  color: var(--muted-dim);
}

.hud:not(.hud--foot) { top: 0; }

.hud__brand {
  display: flex;
  align-items: center;
  gap: 0.3em;
}

/* The tab icon, used again as the brand mark. One file, so the two cannot
   drift apart. Its tile matches the page ground and reads as the marks alone. */
.hud__mark {
  width: 2.4em;
  height: 2.4em;
  margin: -0.7em 0;
}

.hud__name { color: var(--muted); }

.hud__right {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.hud__version { color: var(--muted); }

.hud__menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  width: 3rem;
  height: 2.1rem;
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease;
}

.hud__menu span {
  width: 0.26rem;
  height: 0.26rem;
  border-radius: 50%;
  background: var(--muted);
  transition: background 200ms ease;
}

.hud__menu:hover,
.hud__menu[aria-expanded='true'] { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.22); }
.hud__menu:hover span,
.hud__menu[aria-expanded='true'] span { background: var(--orange); }

.hud__domain { color: var(--muted-dim); }

.hud__request {
  color: var(--muted-dim);
  text-decoration: none;
  transition: color 200ms ease;
}

.hud__request:hover { color: var(--orange); }

/* Contact panel ------------------------------------------------------ */

.panel {
  position: fixed;
  z-index: 5;
  top: calc(clamp(1rem, 2.6vw, 1.9rem) + 2.6rem);
  right: var(--edge);
  width: min(19rem, calc(100vw - 2 * var(--edge)));
  padding: 1.15rem 1.25rem 1.25rem;
  border: 1px solid var(--hairline);
  border-radius: 0.7rem;
  background: rgba(18, 18, 20, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  animation: panel-in 220ms ease both;
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(-0.5rem); }
  to { opacity: 1; transform: none; }
}

.panel__label {
  margin: 0 0 0.7rem;
  font-size: 0.6rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

.panel__mail {
  display: block;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid rgba(233, 98, 46, 0.45);
  padding-bottom: 0.35rem;
  transition: color 200ms ease, border-color 200ms ease;
}

.panel__mail:hover { color: var(--orange); border-color: var(--orange); }

.panel__copy {
  margin-top: 0.9rem;
  width: 100%;
  padding: 0.6rem;
  font: inherit;
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hairline);
  border-radius: 0.4rem;
  cursor: pointer;
  transition: color 200ms ease, border-color 200ms ease, background 200ms ease;
}

.panel__copy:hover { color: var(--white); border-color: rgba(255, 255, 255, 0.24); }
.panel__copy.is-done { color: var(--orange); border-color: rgba(233, 98, 46, 0.5); }

.panel__note {
  margin: 0.9rem 0 0;
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

/* Centre stage ------------------------------------------------------- */

.stage {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.6rem, 4vh, 2.8rem);
  padding: 0 var(--edge);
  text-align: center;
}

.wordmark {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(3.75rem, 18.8vw, 17rem);
  line-height: 1;
  letter-spacing: -0.012em;
  color: var(--orange);
  will-change: transform;
  transform-style: preserve-3d;
}

.wordmark__text {
  display: inline-block;
  filter: drop-shadow(0 0 60px rgba(233, 98, 46, 0.15));
}

.wordmark__i {
  position: relative;
  display: inline-block;
}

/* Fixed point above the i stem. The bead orbits inside this anchor. */
.wordmark__anchor {
  position: absolute;
  left: 50%;
  top: var(--dot-top);
  width: 0;
  height: 0;
}

.wordmark__dot {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--dot-size);
  height: var(--dot-size);
  margin: calc(var(--dot-size) / -2) 0 0 calc(var(--dot-size) / -2);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.4), 0 0 38px rgba(255, 255, 255, 0.14);
  will-change: transform;
}

/* The full stop of the wordmark, set as a white mark rather than a glyph. */
.wordmark__stop {
  display: inline-block;
  position: relative;
  bottom: 0.02em;
  width: var(--stop-size);
  height: var(--stop-size);
  margin-left: var(--stop-gap);
  vertical-align: baseline;
  border-radius: var(--stop-radius);
  background: var(--stop-colour);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.42), 0 0 36px rgba(255, 255, 255, 0.15);
  transition: box-shadow 300ms ease;
}

.wordmark__stop.is-hot {
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.85), 0 0 66px rgba(233, 98, 46, 0.4);
}

.slogan {
  margin: 0;
  font-size: clamp(0.62rem, 1.15vw, 0.95rem);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--muted);
  text-indent: 0.42em;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
  padding: 0.95em 1.8em;
  font-size: clamp(0.6rem, 0.95vw, 0.76rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  border: 1px solid rgba(233, 98, 46, 0.55);
  border-radius: 999px;
  background: rgba(233, 98, 46, 0.07);
  transition: background 240ms ease, border-color 240ms ease, color 240ms ease, transform 240ms ease;
}

.cta__label { text-indent: 0.3em; }

.cta__arrow {
  color: var(--orange);
  letter-spacing: 0;
  transition: transform 240ms ease, color 240ms ease;
}

.cta:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #120a06;
  transform: translateY(-1px);
}

.cta:hover .cta__arrow { color: #120a06; transform: translateX(0.35em); }

/* Focus and motion --------------------------------------------------- */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

@media (max-width: 34rem) {
  .hud { letter-spacing: 0.26em; }
  .slogan { letter-spacing: 0.3em; text-indent: 0.3em; }
  .hud--foot { font-size: 0.55rem; }
}

@media (prefers-reduced-motion: reduce) {
  .halo { display: none; }
  .panel { animation: none; }
  .cta, .cta__arrow { transition: none; }
}
