/* manymoats front door — Operator's OS (NOT the chamber manifesto)
   Cool ground · silk seed · media-first · transform-only motion
   No cream paper. No SF Pro webfont. */

:root {
  --ground: #F3F2F8;
  --surface: #FFFFFF;
  --ink: #1B1922;
  --ink2: #54525E;
  --muted: #929198;
  --line: #E1E0E5;
  --line2: #D1D0D6;
  --accent: #5B4FCF;
  --accent-2: #806EF3;
  --accent-soft: #ECEAFA;
  --ok: #007F54;
  --night: #090D1A;
  --night-ink: #F2F3FA;
  --night-mut: rgba(242, 243, 250, 0.72);
  --display: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Inter, Roboto, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Inter, Roboto, sans-serif;
  --silk: cubic-bezier(0.32, 0.72, 0, 1);
  --snap: cubic-bezier(0, 0, 0.2, 1);
  --maxw: min(1120px, 92vw);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--display);
  letter-spacing: -0.025em;
  text-wrap: balance;
  line-height: 1.08;
  font-weight: 650;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

/* nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 5vw;
  transition: background 0.4s var(--silk), border-color 0.4s var(--silk), backdrop-filter 0.4s;
}
.nav.scrolled {
  background: rgba(243, 242, 248, 0.78);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav.on-night:not(.scrolled) { color: var(--night-ink); }
.nav.on-night:not(.scrolled) .nav-links a { color: var(--night-mut); }
.nav.on-night:not(.scrolled) .mark b { color: var(--accent-2); }
.mark {
  font-family: var(--display); font-weight: 650; letter-spacing: -0.03em;
  font-size: 1.05rem; text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
}
.mark b { color: var(--accent); font-weight: 700; }
.mark img { width: 22px; height: 22px; }
.nav-links { display: flex; gap: 22px; flex-wrap: wrap; font-size: 0.9rem; color: var(--ink2); }
.nav-links a { text-decoration: none; transition: color 0.2s; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--ink); }

/* buttons */
.btn {
  font-family: var(--display); font-weight: 600; font-size: 0.98rem;
  letter-spacing: -0.01em; padding: 14px 26px; border-radius: 999px;
  cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid transparent;
  transition: transform 0.2s var(--snap), background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.12);
}
.btn-primary:hover { background: #4a3fc0; transform: translateY(-2px); }
.btn-ghost { color: var(--ink); border-color: var(--line2); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-night {
  color: var(--night-ink); border-color: rgba(242,243,250,.28);
  background: rgba(9,13,26,.35);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.btn-night:hover { border-color: #fff; transform: translateY(-2px); }

/* HERO — full media stage (this is the product face, not a kicker) */
.hero-stage {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--night);
  color: var(--night-ink);
}
.hero-stage .bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: saturate(0.92) brightness(0.72);
}
.hero-stage .scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(90% 70% at 50% 40%, rgba(9,13,26,.45) 0%, rgba(9,13,26,.78) 58%, rgba(9,13,26,.94) 100%),
    linear-gradient(180deg, rgba(9,13,26,.55) 0%, transparent 30%, transparent 55%, rgba(9,13,26,.9) 100%);
}
.hero-stage .in {
  position: relative; z-index: 2;
  width: var(--maxw);
  padding: 110px 0 56px;
  text-align: center;
}
.hero-stage .eyebrow { color: var(--accent-2); }
.hero-stage h1 {
  margin-top: 16px;
  font-size: clamp(2.4rem, 7vw, 5.2rem);
  font-weight: 700;
  max-width: 14ch;
  margin-left: auto; margin-right: auto;
}
.hero-stage .sub {
  margin: 18px auto 0;
  max-width: 38rem;
  color: var(--night-mut);
  font-size: clamp(1.02rem, 1.8vw, 1.25rem);
}
.hero-stage .cta {
  margin-top: 28px;
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.hero-stage .scrollcue {
  margin-top: 36px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(242,243,250,.45);
}

/* craft grid — real rooms, big tiles */
.craft {
  padding: 10vh 5vw 8vh;
  background: var(--night);
  color: var(--night-ink);
}
.craft .head { max-width: var(--maxw); margin: 0 auto 28px; }
.craft .head h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-top: 10px; }
.craft .head p { margin-top: 10px; color: var(--night-mut); max-width: 48ch; }
.craft-grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.craft a {
  position: relative; display: block; overflow: hidden;
  border-radius: 18px; min-height: 220px;
  border: 1px solid rgba(242,243,250,.14);
  text-decoration: none; color: inherit;
  transition: transform 0.25s var(--silk), border-color 0.25s;
}
.craft a:hover, .craft a:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(128,110,243,.55);
}
.craft a img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: brightness(0.62) saturate(0.95);
}
.craft a .body {
  position: relative; z-index: 1; min-height: 220px;
  padding: 20px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(180deg, transparent 20%, rgba(9,13,26,.88) 100%);
}
.craft a .k { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-2); font-weight: 700; }
.craft a .t { margin-top: 6px; font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; }
.craft a .s { margin-top: 4px; font-size: 0.92rem; color: var(--night-mut); overflow-wrap: anywhere; }

/* idea band */
.idea {
  padding: 14vh 5vw;
  text-align: center;
  background: var(--ground);
}
.idea h2 { font-size: clamp(1.7rem, 4vw, 2.8rem); margin-top: 12px; }
.idea p { margin: 16px auto 0; max-width: 48ch; color: var(--ink2); font-size: clamp(1rem, 1.5vw, 1.15rem); }

/* desk */
.os { padding: 10vh 5vw 14vh; background: var(--ground); }
.os-head { text-align: center; margin-bottom: 5vh; }
.os-head h2 { font-size: clamp(1.7rem, 4vw, 2.8rem); margin-top: 12px; }
.os-head p { margin: 14px auto 0; max-width: 46ch; color: var(--ink2); }
.desk {
  max-width: var(--maxw); margin: 0 auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 1px 2px rgba(27,25,34,.05), 0 40px 80px -48px rgba(27,25,34,.28);
  overflow: hidden;
}
.desk-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px; border-bottom: 1px solid var(--line); background: #FAFAFC;
}
.desk-bar .tl { display: flex; gap: 6px; }
.desk-bar .tl i { width: 10px; height: 10px; border-radius: 50%; background: var(--line2); }
.desk-bar .t { font-weight: 600; font-size: 0.92rem; margin-left: 4px; }
.desk-bar .chip {
  margin-left: auto; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line2); padding: 4px 10px; border-radius: 999px;
}
.desk-body { padding: 18px; }
.cards { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 14px; }
.card {
  background: #FAFAFC; border: 1px solid var(--line); border-radius: 14px;
  padding: 16px; min-width: 0;
}
.card.tie { background: var(--accent-soft); border-color: #D9D3F6; }
.card .lab {
  display: flex; justify-content: space-between; gap: 8px;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.card .lab .s {
  color: var(--accent); border: 1px solid #D3CCF2; border-radius: 6px;
  padding: 2px 7px; font-size: 10px; white-space: nowrap;
}
.card .big {
  font-family: var(--display); font-weight: 700; letter-spacing: -0.02em;
  margin-top: 10px; font-size: 1.5rem; overflow-wrap: anywhere;
}
.card .small { color: var(--ink2); font-size: 0.88rem; margin-top: 4px; overflow-wrap: anywhere; }
.card .from { margin-top: 8px; font-size: 0.78rem; color: var(--accent); font-weight: 600; }
.rows { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.row { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--ink2); }
.row .d { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.d.ok { background: var(--ok); }
.d.wait { background: var(--accent-2); }

/* close */
.close { padding: 14vh 5vw 10vh; text-align: center; background: var(--ground); }
.close h2 { font-size: clamp(1.8rem, 4.5vw, 3.2rem); }
.close p { margin: 14px auto 26px; max-width: 40ch; color: var(--ink2); }
.close .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

footer {
  padding: 40px 5vw 48px; border-top: 1px solid var(--line);
  text-align: center; background: var(--ground);
}
footer .m { font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; font-size: 1.3rem; }
footer .m b { color: var(--accent); }
footer .fine { margin-top: 8px; color: var(--muted); font-size: 0.82rem; }
footer .legacy {
  margin-top: 18px; font-size: 12px;
}
footer .legacy a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

/* reveals */
.ss-rv {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.45s var(--silk), transform 0.45s var(--silk);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.ss-rv.ss-in { opacity: 1; transform: none; }

@media (max-width: 820px) {
  .cards { grid-template-columns: 1fr; }
  .craft-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ss-rv { opacity: 1; transform: none; transition: none; }
  .craft a, .btn { transition: none; }
}
