/* ============================================================
   kamio — section + component layout
   ============================================================ */

/* NAV -------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px 32px;
}
.nav-scrolled {
  background: linear-gradient(180deg, rgba(18,12,6,0.86), rgba(18,12,6,0));
  backdrop-filter: blur(8px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font);
  font-weight: 800;
  font-size: 23px;
  letter-spacing: -0.02em;
  color: var(--cream);
  text-decoration: none;
}
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--glow);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-glow);
  flex: none;
}
.brand-mark svg { width: 19px; height: 19px; }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-links { display: flex; gap: 26px; margin-right: 8px; }
.nav-links a {
  color: var(--cream-2);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--cream); }

/* HERO shared ------------------------------------------------ */
.hero-headline {
  font-size: clamp(42px, 6.4vw, 82px);
  font-weight: 800;
}
.hero-headline .accentword {
  background: var(--glow);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--cream-2);
  line-height: 1.55;
  max-width: 30em;
}

/* email capture --------------------------------------------- */
.capture { display: flex; flex-direction: column; gap: 12px; max-width: 460px; }
.capture--centered { align-items: center; margin: 0 auto; }
.capture--centered .capture-note { text-align: center; padding-left: 0; }
.capture-row {
  display: flex;
  gap: 9px;
  background: var(--panel-2);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-btn);
  padding: 7px 7px 7px 8px;
  backdrop-filter: blur(10px);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.capture-row:focus-within {
  border-color: color-mix(in oklab, var(--accent) 55%, transparent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 14%, transparent);
}
.capture-row input[type="email"] {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--cream);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  padding: 0 14px;
  min-width: 0;
}
.capture-row input::placeholder { color: var(--cream-3); }
/* honeypot — hidden from humans, catches bots */
.capture .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.capture-note { font-size: 13.5px; color: var(--cream-3); padding-left: 18px; }
.capture-note b { color: var(--accent-hi); font-weight: 700; }

.capture-done {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--panel-2);
  border: 1px solid color-mix(in oklab, var(--accent) 40%, var(--panel-border));
  border-radius: var(--radius-btn);
  padding: 15px 24px;
  max-width: 460px;
  font-weight: 600;
  font-size: 16px;
  animation: pop 0.4s cubic-bezier(.34,1.5,.5,1);
}
.capture-done .check {
  width: 26px; height: 26px; border-radius: 7px;
  background: var(--glow); color: #2c2218;
  display: grid; place-items: center; flex: none;
}
@keyframes pop { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }

/* ===== HERO — Full-bleed: the room IS the page ===== */
.heroA {
  position: relative;
  min-height: 100vh;
  margin-top: calc(-1 * var(--nav-h));
  padding-top: var(--nav-h);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.heroA-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 46%;
  transform: scale(1.22);
  z-index: 0;
}
.heroA-scrim {
  position: absolute; inset: 0;
  z-index: 1;
  background:
    linear-gradient(96deg, rgba(28,21,13,0.97) 0%, rgba(28,21,13,0.82) 30%, rgba(28,21,13,0.28) 60%, rgba(28,21,13,0) 88%),
    linear-gradient(180deg, rgba(28,21,13,0.5) 0%, transparent 22%, transparent 68%, rgba(28,21,13,0.85) 100%);
}
.heroA-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}
.heroA-content {
  max-width: 620px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 56px 0;
}
.heroA .floating-pill { position: absolute; z-index: 3; }
.heroA .pill-tr { top: calc(var(--nav-h) + 8px); right: 32px; }
.heroA .pill-br { bottom: 30px; right: 32px; }

/* trust row -------------------------------------------------- */
.trust-row {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  color: var(--cream-3);
  font-size: 14px;
  font-weight: 600;
}
.trust-row .av-stack { display: flex; }
.trust-row .av-stack span {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--bg-0);
  margin-left: -9px;
  background-size: cover;
}
.trust-row .av-stack span:first-child { margin-left: 0; }

/* BEATS ------------------------------------------------------ */
.beats { padding: 70px 0 30px; }
.beats-head { max-width: 720px; margin-bottom: 56px; display: flex; flex-direction: column; gap: 18px; }
.beats-head h2 { font-size: clamp(32px, 4.2vw, 52px); }
.beats-head p { font-size: 18px; color: var(--cream-2); line-height: 1.55; }

.beat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 46px 0;
}
.beat.flip .beat-visual { order: -1; }
.beat-text { display: flex; flex-direction: column; gap: 18px; }
.beat-num {
  font-family: var(--font);
  font-weight: 800;
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.beat-text h3 { font-size: clamp(26px, 3vw, 38px); }
.beat-text p { font-size: 17px; color: var(--cream-2); line-height: 1.6; max-width: 30em; }
.beat-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 6px; }
.tag {
  font-size: 13px; font-weight: 700;
  color: var(--cream-2);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-btn);
  padding: 7px 15px;
}

.beat-visual { position: relative; }

/* mind card (autonomous thoughts) ---------------------------- */
.mind-card {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}
.mind-card .room-mini {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--panel-border-2);
  aspect-ratio: 16 / 9;
}
.mind-card .room-mini img { width: 100%; height: 100%; object-fit: cover; }
.thought {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--panel-2);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--cream);
  opacity: 0;
  transform: translateY(8px);
}
.mind-card.in .thought { animation: thoughtIn 0.6s ease forwards; }
.mind-card.in .thought:nth-child(2) { animation-delay: 0.15s; }
.mind-card.in .thought:nth-child(3) { animation-delay: 0.55s; }
.mind-card.in .thought:nth-child(4) { animation-delay: 0.95s; }
@keyframes thoughtIn { to { opacity: 1; transform: none; } }
.thought .ico { color: var(--accent-hi); flex: none; margin-top: 1px; }
.thought b { color: var(--accent-hi); font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  .mind-card .thought { opacity: 1; transform: none; animation: none; }
}

/* chat card -------------------------------------------------- */
.chat-card { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.bubble { max-width: 80%; padding: 12px 17px; border-radius: 12px; font-size: 15px; line-height: 1.45; }
.bubble.them {
  align-self: flex-start;
  background: var(--panel-2);
  border: 1px solid var(--panel-border);
  border-bottom-left-radius: 6px;
}
.bubble.you {
  align-self: flex-end;
  background: var(--glow);
  color: #2c2218;
  font-weight: 600;
  border-bottom-right-radius: 6px;
}
.chat-meta { font-size: 12px; color: var(--cream-3); padding-left: 4px; }
.chat-input {
  display: flex; align-items: center; gap: 10px;
  background: var(--panel-2);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-btn);
  padding: 9px 9px 9px 18px;
  margin-top: 6px;
  color: var(--cream-3);
  font-size: 14px;
  font-weight: 600;
}
.chat-input .mic { margin-left: auto; }
.chat-input .send {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--glow); color: #2c2218;
  display: grid; place-items: center; flex: none;
}

/* decorate card --------------------------------------------- */
.decorate-card { padding: 0; overflow: hidden; }
.decorate-card .shot { position: relative; }
.decorate-card .shot img { width: 100%; display: block; }
.decorate-card .shot-top {
  position: absolute; top: 16px; right: 16px;
  display: flex; gap: 10px;
}

/* CHARACTERS ------------------------------------------------- */
.characters { padding: 74px 0; }
.characters-head { text-align: center; display: flex; flex-direction: column; gap: 16px; align-items: center; margin-bottom: 48px; }
.characters-head h2 { font-size: clamp(32px, 4.2vw, 52px); }
.characters-head p { font-size: 18px; color: var(--cream-2); max-width: 38em; }
.char-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.char-card {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.char-card:hover { transform: translateY(-6px); border-color: color-mix(in oklab, var(--accent) 40%, transparent); }
.char-portrait {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 120% at 50% 20%, color-mix(in oklab, var(--accent) 24%, transparent), transparent 60%),
    var(--bg-3);
  border: 1px solid var(--panel-border-2);
}
.char-portrait .char-ico { color: color-mix(in oklab, var(--accent) 80%, var(--cream)); opacity: 0.9; }
.char-portrait[data-tone="pip"]  { background: radial-gradient(120% 120% at 50% 20%, rgba(155,176,137,0.30), transparent 60%), var(--bg-3); }
.char-portrait[data-tone="juno"] { background: radial-gradient(120% 120% at 50% 20%, rgba(157,180,204,0.30), transparent 60%), var(--bg-3); }
.char-portrait[data-tone="sol"]  { background: radial-gradient(120% 120% at 50% 20%, rgba(240,201,138,0.32), transparent 60%), var(--bg-3); }
.char-info { display: flex; flex-direction: column; gap: 5px; padding: 2px 6px 6px; }
.char-info .name {
  font-family: var(--font);
  font-weight: 800; font-size: 19px;
  display: flex; align-items: center; gap: 8px;
}
.char-info .name .mood {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px 1px color-mix(in oklab, var(--accent) 60%, transparent);
}
.char-info .trait { font-size: 14px; color: var(--cream-2); line-height: 1.45; }

/* CTA -------------------------------------------------------- */
.cta { padding: 40px 0 100px; }
.cta-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 72px 56px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  border: 1px solid var(--panel-border);
  background:
    radial-gradient(110% 130% at 50% -10%, color-mix(in oklab, var(--accent) 24%, transparent), transparent 55%),
    var(--panel-2);
}
.cta-card h2 { font-size: clamp(36px, 5vw, 60px); }
.cta-card p { font-size: 19px; color: var(--cream-2); max-width: 32em; line-height: 1.5; }

/* FOOTER ----------------------------------------------------- */
.footer {
  border-top: 1px solid var(--panel-border-2);
  padding: 40px 0 60px;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a { color: var(--cream-3); text-decoration: none; font-weight: 600; font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: var(--cream); }
.footer .copy { color: var(--cream-3); font-size: 13.5px; }

/* RESPONSIVE ------------------------------------------------- */
@media (max-width: 920px) {
  .beat, .beat.flip { grid-template-columns: 1fr; gap: 30px; }
  .beat .beat-visual, .beat.flip .beat-visual { order: -1; }
  .char-grid { grid-template-columns: repeat(2, 1fr); }
  .heroA-content { padding: 40px 0; max-width: 100%; }
  .heroA-scrim { background:
    linear-gradient(180deg, rgba(28,21,13,0.55) 0%, rgba(28,21,13,0.35) 40%, rgba(28,21,13,0.92) 100%); }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .section { padding: 0 20px; }
  .char-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .cta-card { padding: 48px 26px; }
  .heroA .floating-pill { display: none; }
  .heroA-inner { padding: 0 20px; }
}
