/* Tweaks panel */
.tweaks {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 200;
  width: 320px;
  background: rgba(246, 243, 236, 0.94);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  border: 1px solid rgba(31, 42, 34, 0.12);
  border-radius: 14px;
  box-shadow: 0 30px 80px -30px rgba(31, 42, 34, 0.4);
  font-family: var(--font-body);
  transform: translateY(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out);
}
.tweaks.open {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}
.tweaks__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(31,42,34,0.08);
}
.tweaks__head .t {
  font-family: var(--font-display); font-size: 20px;
  letter-spacing: -0.005em;
  display: flex; align-items: center; gap: 8px;
}
.tweaks__head .t svg { width: 18px; height: 18px; color: var(--jungle-deep); }
.tweaks__head .x {
  width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(31,42,34,0.14);
  transition: all var(--dur-quick);
}
.tweaks__head .x:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.tweaks__body {
  padding: 16px 18px 18px;
  display: flex; flex-direction: column; gap: 18px;
  max-height: 72vh; overflow-y: auto;
}
.tweak h6 {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: var(--trk-caption);
  text-transform: uppercase;
  color: var(--ink-quiet);
  font-weight: 400;
}
.tweak__group {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.tweak__chip {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(31,42,34,0.14);
  font-size: 12.5px;
  transition: all var(--dur-quick);
  cursor: pointer;
  color: var(--ink);
  background: transparent;
  text-align: left;
  line-height: 1.25;
}
.tweak__chip:hover { border-color: rgba(31,42,34,0.3); }
.tweak__chip.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.tweak__slider { display: flex; align-items: center; gap: 10px; }
.tweak__slider input { flex: 1; accent-color: var(--jungle-deep); }
.tweak__slider .v {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-quiet); min-width: 32px; text-align: right;
}

/* Tweaks trigger (only shown when tweaks mode off in host) */
.tweaks-fab {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 199;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--ink); color: var(--cream);
  display: none;
  align-items: center; justify-content: center;
  box-shadow: 0 14px 34px -10px rgba(0,0,0,0.4);
  cursor: pointer;
}
.tweaks-fab.visible { display: inline-flex; }
.tweaks-fab svg { width: 20px; height: 20px; }

/* Palette variants */
body[data-palette="cream"] { --cream: #EDF1EC; --paper: #F6F3EC; }
body[data-palette="warm"] { --cream: #F3EAD9; --paper: #F6F0DE; --paper-deep: #E3D9BF; }
body[data-palette="cool"] { --cream: #E9ECE7; --paper: #F0F1EB; --paper-deep: #D8DDD4; }
body[data-palette="light"] { --cream: #F5F3EA; --paper: #FDFBF4; --paper-deep: #E3DDC9; }

/* Dragonfly metaphor levels */
body[data-dragonfly="none"] .dragonfly-wm,
body[data-dragonfly="none"] .nav__brand svg,
body[data-dragonfly="none"] .footer__brand svg { display: none; }
body[data-dragonfly="mark"] .dragonfly-wm { display: none; }
body[data-dragonfly="mark"] .hero-wings { display: none; }
body[data-dragonfly="subtle"] .dragonfly-wm { display: block; }

/* Motion levels */
body[data-motion="0"] .hero__bg { animation: none; }
body[data-motion="0"] .hero__scroll .line { animation: none; }
body[data-motion="0"] * { transition-duration: 120ms !important; }
body[data-motion="1"] .hero__bg { animation-duration: 44s; }
body[data-motion="3"] .hero__bg { animation-duration: 18s; }

/* Footer address (Google Maps link) */
.footer__addr {
  margin-top: 18px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.55;
  opacity: 0.72;
}
.footer__addr a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 180ms ease, opacity 180ms ease;
}
.footer__addr a:hover {
  border-bottom-color: currentColor;
  opacity: 1;
}

/* "Last updated" footer badge — freshness signal for AI search citations. */
.footer__updated {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  opacity: 0.5;
}
.footer__updated time { color: inherit; }

/* =========================================================
   MOBILE — Seven Spaces image ratios aligned to the Ceremony
   reference (16:9) so they feel equally present on phone.
   Reciprocity CTA hidden on phone (no standalone page yet).
   ========================================================= */
@media (max-width: 720px) {
  /* Maloca (Row 1 hero): from 2:1 wide-short to 16:9 taller-present */
  .space-row--hero .space .img { --r: 56.25%; }

  /* Kitchen (Row 2 pair, child 2): from 4:3 to 16:9 to match ceremony */
  .space-row--pair .space:nth-child(2) .img { --r: 56.25%; }

  /* Waterfalls (Row 4 split, child 1): lock to 16:9 on phone */
  .space-row--split .space:nth-child(1) .img { --r: 56.25%; }

  /* Hide the "Read the full reciprocity page" CTA until that page exists */
  .recip2__link { display: none; }
}

/* Kene & Maisie portrait — square 1:1 frame, compact size across all breakpoints. */
.discovery__founders { max-width: 160px; }
.discovery__founders .img { --ratio: 100%; }
.discovery__founders .img::before { padding-top: 100%; }
@media (max-width: 720px) {
  .discovery__founders { max-width: 160px; }
}
