/* plume site — tokens from brand/BRAND.md (light only, never dark). No colour literals below the token block. */
:root {
  color-scheme: light;

  /* surfaces */
  --cloud: #FDFCFA;
  --mist: #F6F4EF;
  --paper: #FFFFFF;
  --line: #ECE9E2;
  /* text */
  --ink: #2A2C33;
  --fog: #8A8F98;
  --ink-soft: #4A4E58;            /* body copy on glass — a lighter ink, still AA on white */
  /* accent */
  --iris: #6E7CF6;
  --iris-deep: #5763E8;
  /* aura tints */
  --lavender: #DCD9FF;
  --sky: #CDE7FF;
  --dawn: #FFE8D6;

  /* glass + washes */
  --glass: rgba(255, 255, 255, .72);
  --glass-soft: rgba(255, 255, 255, .5);
  --glass-edge: rgba(255, 255, 255, .85);
  --wash-top: rgba(253, 252, 250, .10);
  --wash-mid: rgba(253, 252, 250, .38);
  --wash-end: rgba(253, 252, 250, .85);
  --bezel: #F3F1EC;
  --mask-solid: #000;            /* alpha mask only — never painted */

  /* float physics */
  --shadow-float: 0 1px 2px rgba(42,44,51,.05), 0 6px 16px rgba(42,44,51,.06), 0 24px 48px rgba(42,44,51,.07);
  --shadow-hover: 0 2px 4px rgba(42,44,51,.05), 0 12px 28px rgba(110,124,246,.14), 0 36px 72px rgba(42,44,51,.10);
  --shadow-hero: 0 40px 90px rgba(110,124,246,.16);
  --shadow-phone: 0 2px 6px rgba(42,44,51,.06), 0 30px 60px rgba(87,99,232,.18), 0 60px 120px rgba(42,44,51,.14);

  /* radii */
  --r-pill: 999px;
  --r-chip: 12px;
  --r-card: 24px;
  --r-hero: 32px;

  /* type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", -apple-system, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;

  /* motion tokens */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-ui: cubic-bezier(.32, .72, 0, 1);
  --dur-micro: 150ms;
  --dur-ui: 250ms;
  --dur-reveal: 800ms;
  --stagger: 110ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cloud);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  animation: page-in 600ms var(--ease-out) both;
}
img, video, svg { display: block; max-width: 100%; }
a { color: var(--iris-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color var(--dur-micro) var(--ease-ui); }
a:hover { color: var(--iris); }
:focus-visible { outline: 2px solid var(--iris); outline-offset: 3px; border-radius: 6px; }

@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 180ms var(--ease-ui) both vt-out; }
::view-transition-new(root) { animation: 320ms var(--ease-out) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

/* ── aura: fixed blurred blobs behind every page ─────────────────────── */
.aura { position: fixed; inset: 0; z-index: -2; pointer-events: none; filter: blur(70px); overflow: hidden; }
.aura span { position: absolute; border-radius: 50%; width: 48vw; height: 48vw; opacity: .6; }
.aura span:nth-child(1) { background: var(--lavender); top: -12vw; left: -10vw; animation: drift-a 22s ease-in-out infinite; }
.aura span:nth-child(2) { background: var(--sky); top: 30vh; right: -14vw; width: 54vw; height: 54vw; animation: drift-b 26s ease-in-out infinite; }
.aura span:nth-child(3) { background: var(--dawn); bottom: -18vw; left: 18vw; width: 44vw; height: 44vw; opacity: .7; animation: drift-c 19s ease-in-out infinite; }
@keyframes drift-a { 50% { transform: translate(8vw, 6vh) scale(1.08); } }
@keyframes drift-b { 50% { transform: translate(-7vw, -5vh) scale(.94); } }
@keyframes drift-c { 50% { transform: translate(-6vw, -8vh) scale(1.06); } }

/* ── layout ─────────────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* nav: floating glass pill */
.nav { position: sticky; top: 14px; z-index: 10; padding: 0 16px; }
.nav-pill {
  max-width: 1080px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 10px 8px 16px; border-radius: var(--r-pill);
  background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--line); box-shadow: var(--shadow-float);
}
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.brand span { font-family: var(--font-display); font-size: 24px; font-weight: 380; letter-spacing: -.01em; line-height: 1; font-variation-settings: "opsz" 144; }
.brand:hover { color: var(--ink); }
.lang { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--r-pill); background: var(--glass-soft); border: 1px solid var(--line); }
.lang a {
  font-size: 13px; font-weight: 600; letter-spacing: .02em; text-decoration: none; color: var(--fog);
  padding: 5px 12px; border-radius: var(--r-pill); line-height: 1.4;
  transition: color var(--dur-micro) var(--ease-ui), background-color var(--dur-ui) var(--ease-ui), transform var(--dur-micro) var(--ease-ui);
}
.lang a:hover { color: var(--ink); }
.lang a:active { transform: scale(.96); }
.lang a[aria-current="true"] { background: var(--paper); color: var(--iris-deep); box-shadow: var(--shadow-float); }

/* ── hero: the sky ──────────────────────────────────────────────────── */
.hero { position: relative; margin-top: -72px; padding: 132px 0 40px; isolation: isolate; overflow-x: clip; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, var(--wash-top) 0%, var(--wash-mid) 60%, var(--wash-end) 100%),
    url("/media/sky.jpg") center 30% / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, var(--mask-solid) 0%, var(--mask-solid) 72%, transparent 100%);
  mask-image: linear-gradient(180deg, var(--mask-solid) 0%, var(--mask-solid) 72%, transparent 100%);
}
.hero-copy { text-align: center; }
.hero h1 {
  font-family: var(--font-display); font-weight: 360; font-variation-settings: "opsz" 144;
  font-size: clamp(42px, 7.4vw, 104px); line-height: 1.02; letter-spacing: -.025em; margin: 0 0 22px;
  color: var(--ink); text-wrap: balance;
}
.hero .sub { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-soft); margin: 0 auto 30px; line-height: 1.6; text-wrap: balance; max-width: 760px; }
.badge-link { display: inline-block; border-radius: 10px; transition: transform var(--dur-ui) var(--ease-ui), box-shadow var(--dur-ui) var(--ease-ui); box-shadow: var(--shadow-float); }
.badge-link img { height: 54px; width: auto; }
.badge-link:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.badge-link:active { transform: translateY(-1px) scale(.98); transition-duration: var(--dur-micro); }

.stage { position: relative; display: flex; justify-content: center; padding: 56px 0 24px; }
.phone-float { animation: float 7s ease-in-out infinite; }
.phone {
  position: relative; width: min(72vw, 300px); aspect-ratio: 1206 / 2622;
  padding: 9px; border-radius: 52px; background: var(--bezel);
  border: 1px solid var(--glass-edge); box-shadow: var(--shadow-phone);
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
  transition: transform 600ms var(--ease-out);
}
.phone picture, .phone img { width: 100%; height: 100%; border-radius: 44px; object-fit: cover; }
.phone::after { content: ""; position: absolute; inset: 9px; border-radius: 44px; box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; }
.mote { position: absolute; border-radius: 50%; background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: var(--shadow-float); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.mote.m1 { width: 22px; height: 22px; top: 22%; left: calc(50% - 176px); animation: float 6s ease-in-out infinite .6s; }
.mote.m2 { width: 12px; height: 12px; top: 58%; left: calc(50% + 160px); animation: float 5.5s ease-in-out infinite 1.4s; }
.mote.m3 { width: 16px; height: 16px; top: 12%; left: calc(50% + 150px); animation: float 8s ease-in-out infinite .2s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ── beats ──────────────────────────────────────────────────────────── */
.beats { display: grid; grid-template-columns: 1fr; gap: 16px; padding: 48px 0 24px; margin: 0; list-style: none; }
.beat {
  padding: 26px 24px; border-radius: var(--r-card);
  background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--line); box-shadow: var(--shadow-float);
  transition: transform var(--dur-ui) var(--ease-ui), box-shadow var(--dur-ui) var(--ease-ui);
}
.beat:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.beat .icon {
  width: 44px; height: 44px; border-radius: var(--r-chip); display: grid; place-items: center; margin-bottom: 18px;
  color: var(--iris-deep); background: var(--lavender);
}
.beat:nth-child(2) .icon { background: var(--sky); }
.beat:nth-child(3) .icon { background: var(--dawn); }
.beat .icon svg { width: 22px; height: 22px; }
.beat h2 { font-family: var(--font-display); font-weight: 400; font-variation-settings: "opsz" 96; font-size: 30px; line-height: 1.1; letter-spacing: -.015em; margin: 0 0 6px; }
.beat p { margin: 0; color: var(--ink-soft); font-size: 17px; }

/* ── reel slot (hidden until the file actually loads) ───────────────── */
.reel { display: none; justify-content: center; padding: 56px 0 8px; }
.reel.is-ready { display: flex; }
.reel-frame {
  width: min(78vw, 340px); padding: 9px; border-radius: 48px; background: var(--bezel);
  border: 1px solid var(--glass-edge); box-shadow: var(--shadow-phone);
  animation: reel-in 700ms var(--ease-out) both;
}
.reel video { width: 100%; height: auto; border-radius: 40px; background: var(--mist); }
@keyframes reel-in { from { opacity: 0; transform: translateY(24px); } }

/* ── legal / support pages ──────────────────────────────────────────── */
.wrap.page { padding-top: 72px; padding-bottom: 24px; }
.sheet {
  padding: 32px 22px; border-radius: var(--r-hero);
  background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--line); box-shadow: var(--shadow-hero);
}
.sheet h1 { font-family: var(--font-display); font-weight: 380; font-variation-settings: "opsz" 144; font-size: clamp(36px, 5.4vw, 64px); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 10px; text-wrap: balance; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--iris); margin: 0 0 26px; }
.sheet p { margin: 0 0 22px; }
.sheet ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.sheet li { position: relative; padding: 18px 20px 18px 42px; border-radius: 18px; background: var(--glass-soft); border: 1px solid var(--line); }
.sheet li::before { content: ""; position: absolute; left: 20px; top: 29px; width: 8px; height: 8px; border-radius: 50%; background: var(--iris); opacity: .7; }
.sheet li strong { font-weight: 700; color: var(--ink); }
.sheet h2 { font-family: var(--font-display); font-weight: 400; font-size: 26px; letter-spacing: -.01em; margin: 34px 0 14px; }
.sheet em { font-style: normal; font-weight: 700; }

/* ── connect Claude (/claude) ───────────────────────────────────────── */
.wrap.connect { max-width: 820px; }
.connect-head { text-align: center; padding: 8px 0 30px; }
.connect-head h1 { font-family: var(--font-display); font-weight: 380; font-variation-settings: "opsz" 144; font-size: clamp(38px, 6vw, 68px); line-height: 1.04; letter-spacing: -.02em; margin: 0 0 18px; text-wrap: balance; }
.connect-head .lede { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--ink-soft); margin: 0 auto 12px; max-width: 640px; text-wrap: balance; }
.connect-head .note { font-size: 15px; color: var(--fog); margin: 0 auto; max-width: 560px; text-wrap: balance; }
.pair { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 0 30px; }
.orb {
  width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center;
  background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--glass-edge); box-shadow: var(--shadow-float);
  animation: float 7s ease-in-out infinite;
}
.orb img { width: 34px; height: 34px; }
.orb.spark { color: var(--iris-deep); background: var(--lavender); animation-delay: 1.2s; }
.orb.spark svg { width: 30px; height: 30px; }
.thread { position: relative; width: 72px; height: 2px; border-radius: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 11px); }
.thread::after {
  content: ""; position: absolute; top: -4px; left: 0; width: 10px; height: 10px; border-radius: 50%;
  background: var(--iris); box-shadow: var(--shadow-hover); opacity: 0;
  animation: hand-over 3.6s var(--ease-ui) infinite 1s;
}
@keyframes hand-over {
  0% { transform: translateX(0) scale(.6); opacity: 0; }
  15% { opacity: .9; transform: translateX(6px) scale(1); }
  70% { opacity: .9; transform: translateX(56px) scale(1); }
  85%, 100% { opacity: 0; transform: translateX(62px) scale(.6); }
}
.sheet.card { margin-top: 18px; scroll-margin-top: 96px; }
.sheet.card h2 { margin-top: 0; }
.sheet.card p:last-child { margin-bottom: 0; }
.sheet ol.steps { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 8px; }
.sheet ol.steps li { padding: 0; border: 0; background: none; border-radius: 0; color: var(--ink-soft); }
.sheet ol.steps li::before { content: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 26px;
  border-radius: var(--r-pill); background: var(--iris-deep); color: var(--paper); text-decoration: none;
  font-weight: 700; font-size: 16px; line-height: 1.3; text-align: center; box-shadow: var(--shadow-float);
  transition: transform var(--dur-ui) var(--ease-ui), box-shadow var(--dur-ui) var(--ease-ui), background-color var(--dur-micro) var(--ease-ui);
}
.btn:hover { color: var(--paper); background: var(--iris); transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.btn:active { transform: translateY(-1px) scale(.98); transition-duration: var(--dur-micro); }
.help { font-size: 14px; line-height: 1.55; color: var(--fog); margin: 18px 0 0 !important; }
.cmd {
  display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 10px 10px 10px 16px;
  border-radius: var(--r-chip); background: var(--mist); border: 1px solid var(--line);
}
.cmd code { flex: 1; min-width: 0; font-family: var(--font-mono); font-size: 14px; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.copy {
  flex: none; font: inherit; font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--iris-deep);
  padding: 6px 14px; border-radius: var(--r-pill); background: var(--paper); border: 1px solid var(--line);
  box-shadow: var(--shadow-float); cursor: pointer;
  transition: color var(--dur-micro) var(--ease-ui), transform var(--dur-micro) var(--ease-ui), box-shadow var(--dur-ui) var(--ease-ui);
}
.copy:hover { box-shadow: var(--shadow-hover); }
.copy:active { transform: scale(.96); }
.copy.is-copied { color: var(--ink); }
.fog-line { text-align: center; font-size: 14px; color: var(--fog); margin: 30px 0 0; }

/* ── footer ─────────────────────────────────────────────────────────── */
.foot { padding: 72px 0 44px; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 22px; font-size: 14px; color: var(--fog); }
.foot-row a { color: var(--fog); text-decoration: none; }
.foot-row a:hover { color: var(--iris-deep); }
.foot-legal { margin: 14px auto 0; text-align: center; font-size: 12px; line-height: 1.5; color: var(--fog); }

/* ── reveal (rise & settle) ─────────────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out); transition-delay: calc(var(--i, 0) * var(--stagger)); }
.js .reveal.in { opacity: 1; transform: none; }
.js .beat.reveal.in { transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-ui) var(--ease-ui), box-shadow var(--dur-ui) var(--ease-ui); transition-delay: calc(var(--i, 0) * var(--stagger)), 0s, 0s; }

/* ── wider screens ──────────────────────────────────────────────────── */
@media (min-width: 760px) {
  .wrap { padding: 0 32px; }
  .hero { padding: 150px 0 56px; }
  .beats { grid-template-columns: repeat(3, 1fr); gap: 20px; padding-top: 64px; }
  .sheet { padding: 56px 60px; }
  .phone { width: 320px; }
  .cmd code { font-size: 15px; }
  .mote.m1 { left: calc(50% - 250px); }
  .mote.m2 { left: calc(50% + 210px); }
  .mote.m3 { left: calc(50% + 196px); }
  .stage { padding-top: 72px; }
}
@media (min-width: 1200px) {
  .hero { padding-top: 170px; }
  .mote.m1 { left: calc(50% - 330px); }
  .mote.m2 { left: calc(50% + 290px); }
  .mote.m3 { left: calc(50% + 250px); }
}

/* ── reduced motion: kill ambient loops and movement, keep fades ────── */
@media (prefers-reduced-motion: reduce) {
  .aura span, .phone-float, .mote, .reel-frame, .orb { animation: none !important; }
  .thread::after { animation: none; opacity: 0; }
  .btn:hover { transform: none; }
  .phone { transform: none !important; }
  .js .reveal { transform: none; transition: opacity 400ms linear; }
  .beat:hover, .badge-link:hover { transform: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 1ms; }
}
