/* ============================================================
   Human Robots — humanrobots.ai
   Diffused glass. Near-monochrome, sharp corners, one accent
   used sparingly. Nothing decorative: every surface is either
   light, glass, or a hairline.
   ============================================================ */

:root {
  color-scheme: light;

  --bg:      #e8e9e8;
  --bg-2:    #dedfde;
  --ink:     #14140f;
  --ink-2:   #55554e;
  --ink-3:   #8a8a82;
  --ink-4:   #b8b8b0;
  --line:    rgba(20, 20, 15, 0.12);
  --line-2:  rgba(20, 20, 15, 0.06);
  --accent:  #14140f;

  /* glass */
  --glass:      rgba(255, 255, 255, 0.34);
  --glass-2:    rgba(255, 255, 255, 0.56);
  --glass-edge: rgba(255, 255, 255, 0.7);
  --blur: blur(34px) saturate(125%);

  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --gut:  clamp(20px, 4.4vw, 76px);
  --ease: cubic-bezier(.22, 1, .32, 1);
}

*, *::before, *::after { box-sizing: border-box; border-radius: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background: var(--bg);
}

/* the diffused light the whole page sits in */
body::before {
  content: "";
  position: fixed;
  inset: -20vh -10vw;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38vw 38vw at 78%  8%, rgba(255,255,255,1)    0%, rgba(255,255,255,0) 60%),
    radial-gradient(34vw 34vw at 16% 30%, rgba(255,255,255,.9)   0%, rgba(255,255,255,0) 58%),
    radial-gradient(46vw 40vw at 62% 52%, rgba(176,190,196,.55)  0%, rgba(176,190,196,0) 66%),
    radial-gradient(40vw 36vw at 10% 74%, rgba(206,198,186,.48)  0%, rgba(206,198,186,0) 62%),
    radial-gradient(52vw 44vw at 88% 88%, rgba(188,196,192,.45)  0%, rgba(188,196,192,0) 64%);
}

::selection { background: var(--ink); color: var(--bg); }

a { color: inherit; }
svg, img { display: block; max-width: 100%; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

.skip {
  position: absolute; top: -80px; left: var(--gut); z-index: 100;
  padding: 10px 16px; background: var(--ink); color: var(--bg);
  font-size: 13px; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: min(1240px, 100%); margin: 0 auto; padding-inline: var(--gut); }
.wrap-n { width: min(720px, 100%); margin: 0 auto; padding-inline: var(--gut); }

/* ── type scale ───────────────────────────────────────────── */

.eyebrow, .lab {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0;
}

h1, h2, h3 { font-weight: 400; letter-spacing: -0.035em; margin: 0; }

.h-xl { font-size: clamp(38px, 5.9vw, 84px); line-height: 0.98; }
.h-l  { font-size: clamp(28px, 3.8vw, 52px); line-height: 1.04; }
.h-m  { font-size: clamp(20px, 1.9vw, 26px); line-height: 1.16; letter-spacing: -0.025em; }

.lede { font-size: clamp(16px, 1.15vw, 19px); line-height: 1.55; color: var(--ink-2); max-width: 46ch; }
.fine { font-size: 13.5px; line-height: 1.55; color: var(--ink-3); }

/* ── glass surfaces ───────────────────────────────────────── */

.glass {
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-edge);
  box-shadow: 0 1px 0 rgba(255,255,255,.75) inset, 0 -1px 0 rgba(255,255,255,.28) inset,
              0 24px 60px -36px rgba(20,20,15,.42);
}

/* ── chrome ───────────────────────────────────────────────── */

.chrome {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 14px var(--gut);
  pointer-events: none;
}
.chrome > * { pointer-events: auto; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500; letter-spacing: -0.02em;
  text-decoration: none; color: var(--ink);
  padding: 9px 14px;
}
.brand .dot { width: 7px; height: 7px; background: var(--ink); flex: none; }

.chrome-cta {
  padding: 10px 18px;
  font-size: 13px; font-weight: 500;
  text-decoration: none; color: var(--ink);
  transition: background 200ms ease, color 200ms ease;
}
.chrome-cta:hover { background: var(--ink); color: var(--bg); }

/* ── hero ─────────────────────────────────────────────────── */

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.94fr);
  align-items: center;
  gap: clamp(28px, 5vw, 80px);
  padding: clamp(100px, 12vh, 132px) var(--gut) clamp(36px, 5vh, 64px);
  width: min(1240px, 100%); margin-inline: auto;
}
.hero h1 { margin: 18px 0 0; }
.hero .lede { margin: clamp(18px, 2vw, 26px) 0 0; }
.hero-act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(22px, 2.6vw, 32px); }
.hero-fine { margin: 18px 0 0; max-width: 40ch; }

/* ── buttons ──────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px;
  font-family: inherit; font-size: 14px; font-weight: 500;
  letter-spacing: -0.01em; text-decoration: none;
  border: 1px solid var(--ink); background: transparent; color: var(--ink);
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn-solid { background: var(--ink); color: var(--bg); }
.btn-solid:hover { background: transparent; color: var(--ink); }
.btn-ghost { border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-full { width: 100%; }
.btn[disabled] { opacity: .45; cursor: default; }

/* ── the robot ────────────────────────────────────────────── */

.stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(18px, 2.6vw, 34px);
  min-height: clamp(340px, 56svh, 620px);
}
.stage::after {           /* light falling through glass */
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(148deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 42%);
}

.bot { width: 100%; max-width: 300px; height: auto; max-height: 62svh; }

/* limb groups rotate about their own joint */
.bot [data-j] {
  transform-box: view-box;
  transition: transform 900ms var(--ease);
}
.j-shl  { transform-origin: 152px 176px; }
.j-shr  { transform-origin: 228px 176px; }
.j-elbl { transform-origin: 116px 246px; }
.j-elbr { transform-origin: 264px 246px; }
.j-tor  { transform-origin: 190px 300px; }
.j-hipl { transform-origin: 168px 316px; }
.j-hipr { transform-origin: 212px 316px; }
.j-head { transform-origin: 190px 140px; }

.bot .shell      { fill: rgba(255,255,255,.78); stroke: rgba(20,20,15,.40); stroke-width: 1.3; }
.bot .shell-soft { fill: rgba(255,255,255,.58); stroke: rgba(20,20,15,.26); stroke-width: 1.1; }
.bot .limb       { fill: none; stroke: rgba(20,20,15,.34); stroke-width: 1.3; stroke-linejoin: round; }
.bot .limb-fill  { fill: rgba(255,255,255,.6); }
.bot .seam       { fill: none; stroke: rgba(20,20,15,.14); stroke-width: 1; }
.bot .visor      { fill: rgba(20,20,15,.9); }
.bot .eye        { fill: #f4f4f0; }
.bot .pivot      { fill: rgba(255,255,255,.9); stroke: rgba(20,20,15,.4); stroke-width: 1.1; }
.bot .shadow     { fill: rgba(20,20,15,.16); }
.bot .payload, .bot .payload-seam { opacity: 0; transition: opacity 500ms var(--ease); }
.bot .payload      { fill: rgba(255,255,255,.55); stroke: rgba(20,20,15,.45); stroke-width: 1.5; }
.bot .payload-seam { fill: none; stroke: rgba(20,20,15,.22); stroke-width: 1.1; }
.bot.carrying .payload, .bot.carrying .payload-seam { opacity: 1; }

.bot .breathe { animation: breathe 7s ease-in-out infinite; transform-box: view-box; transform-origin: 190px 320px; }
@keyframes breathe {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-2.5px); }
}

/* ── the control: what is it doing ────────────────────────── */

.acts { display: grid; }
.act {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  width: 100%;
  padding: 15px 16px;
  border: none;
  border-top: 1px solid var(--line-2);
  background: transparent;
  font: inherit;
  text-align: left;
  text-decoration: none;
  color: var(--ink-3);
  cursor: pointer;
  transition: background 260ms var(--ease), color 260ms var(--ease);
}
.act:last-child { border-bottom: 1px solid var(--line-2); }
.act:hover { background: rgba(255,255,255,.5); color: var(--ink); }
.act .n { font-size: 11px; font-weight: 500; letter-spacing: .12em; color: var(--ink-4); }
.act .t { font-size: clamp(17px, 1.7vw, 22px); letter-spacing: -0.028em; line-height: 1.2; }
.act .d { display: block; margin-top: 4px; font-size: 13.5px; color: var(--ink-3); max-width: 44ch; opacity: 0; max-height: 0; overflow: hidden; transition: opacity 320ms var(--ease), max-height 420ms var(--ease); }
.act[aria-current="true"] { background: var(--glass-2); color: var(--ink); }
.act[aria-current="true"] .n { color: var(--ink); }
.act[aria-current="true"] .d { opacity: 1; max-height: 6em; }

/* ── section frame ────────────────────────────────────────── */

.sec { padding-block: clamp(64px, 10vh, 132px); }
.sec-head { max-width: 52ch; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head h2 { margin: 12px 0 0; }
.sec-head .lede { margin: 16px 0 0; }

/* ── does / doesn't, as one honest panel ──────────────────── */

.split { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
.split > div { padding: clamp(22px, 2.6vw, 34px); }
.split > div + div { border-left: 1px solid var(--line-2); }
.split .lab { margin-bottom: 16px; }
.split ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.split li { font-size: 15px; color: var(--ink-2); padding-left: 18px; position: relative; }
.split li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 1px; background: var(--ink-3); }
.split .no li { color: var(--ink-3); }
.split .no li::before { background: var(--ink-4); }
@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; }
  .split > div + div { border-left: none; border-top: 1px solid var(--line-2); }
}

/* ── facts strip ──────────────────────────────────────────── */

.facts { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); }
.facts > div { padding: clamp(20px, 2.4vw, 30px); }
.facts > div + div { border-left: 1px solid var(--line-2); }
.facts dt { font-size: 10.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.facts dd { margin: 10px 0 0; font-size: clamp(16px, 1.4vw, 19px); letter-spacing: -0.02em; line-height: 1.25; }
@media (max-width: 900px) {
  .facts { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .facts > div:nth-child(3) { border-left: none; }
  .facts > div:nth-child(n+3) { border-top: 1px solid var(--line-2); }
}
@media (max-width: 520px) {
  .facts { grid-template-columns: 1fr; }
  .facts > div + div { border-left: none; border-top: 1px solid var(--line-2); }
}

/* ── waitlist ─────────────────────────────────────────────── */

.join { padding: clamp(26px, 3.4vw, 44px); }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 10.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.inp {
  width: 100%; padding: 12px 0;
  background: transparent; border: none; border-bottom: 1px solid var(--line);
  color: var(--ink); font-family: inherit; font-size: 16px;
  transition: border-color 200ms ease;
}
.inp::placeholder { color: var(--ink-4); }
.inp:focus { outline: none; border-bottom-color: var(--ink); }
.inp[aria-invalid="true"] { border-bottom-color: #a3341f; }
select.inp { appearance: none; cursor: pointer; padding-right: 22px; }
.selw { position: relative; }
.selw::after {
  content: ""; position: absolute; right: 3px; top: 50%;
  width: 6px; height: 6px; border-right: 1px solid var(--ink-3); border-bottom: 1px solid var(--ink-3);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.fnote { margin: 12px 0 0; font-size: 12.5px; color: var(--ink-3); }
.fstat { margin: 8px 0 0; font-size: 14px; color: var(--ink-2); }
.fstat.err { color: #a3341f; }
form.done .field, form.done #signupBtn, form.done .fnote { display: none; }
form.done .fstat { font-size: 16px; line-height: 1.5; color: var(--ink); }

/* ── footer ───────────────────────────────────────────────── */

.foot {
  border-top: 1px solid var(--line-2);
  padding-block: 24px;
  display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: baseline;
  font-size: 12.5px; color: var(--ink-3);
}
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* ── reveal ───────────────────────────────────────────────── */

.rv { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* ── responsive ───────────────────────────────────────────── */

@media (max-width: 940px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: auto; padding-top: 104px; gap: 34px; }
  .hero-copy { order: 2; }
  .stage { order: 1; min-height: 0; }
  .bot { max-width: 210px; max-height: 42svh; }
  .lede, .hero-fine { max-width: none; }
}
@media (max-width: 620px) {
  body { font-size: 15.5px; }
  .hero-act { flex-direction: column; align-items: stretch; }
  .brand { padding: 8px 12px; }
  .chrome-cta { padding: 9px 13px; font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .bot [data-j] { transition: none; }
  .bot .breathe { animation: none; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}


/* ── word rows: a list with the sentences taken out ───────── */

.row {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 10px clamp(12px, 1.6vw, 22px);
  margin: 0;
  font-size: clamp(19px, 2.4vw, 32px);
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--ink);
}
.row i { width: 5px; height: 5px; background: var(--ink-4); flex: none; }

/* ── the honest column ────────────────────────────────────── */

.not { margin-top: clamp(26px, 3.4vw, 42px); padding: clamp(20px, 2.4vw, 30px); max-width: 560px; }
.not .lab { margin-bottom: 14px; }
.not ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.not li { position: relative; padding-left: 18px; font-size: 15px; color: var(--ink-3); }
.not li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 1px; background: var(--ink-4); }

/* ── places: photographs of the rooms, robot composited in later ──
   Each frame is 4:5 portrait. If an image is missing the frame still
   holds its shape and reads as an empty plate rather than a break. */

.places {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(8px, 1vw, 14px);
}
.places figure { margin: 0; }
.places .ph {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background:
    linear-gradient(148deg, rgba(255,255,255,.5) 0%, rgba(255,255,255,0) 46%),
    var(--bg-2);
  border: 1px solid var(--glass-edge);
  box-shadow: 0 18px 44px -32px rgba(20,20,15,.5);
}
.places img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.places img.missing { visibility: hidden; }
.places figcaption {
  margin-top: 10px;
  font-size: 12.5px;
  letter-spacing: -0.01em;
  color: var(--ink-2);
}

@media (max-width: 900px) {
  .places { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .places li:nth-child(n+4) { display: none; }
}
@media (max-width: 520px) {
  .places { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .places li:nth-child(n+3) { display: none; }
}
