/* Folded Space Labs — foldedspacelabs.com
   Night #0A0A16 · Magenta #E24FD0 → Violet #7C5CFF → Cyan #38E1FF · Starlight #F5F4FF · Sora */

:root {
  --night: #0A0A16;
  --night-2: #0F0F1C;
  --line: #20203a;
  --line-soft: #1a1a2c;
  --magenta: #E24FD0;
  --violet: #7C5CFF;
  --cyan: #38E1FF;
  --starlight: #F5F4FF;
  /* colour roles: cyan = brand identity only · violet = interaction · magenta = structure */
  --accent: #7C5CFF;
  --accent-text: #9B85FF;
  --accent-text-hover: #C4B6FF;
  --label: #E24FD0;
  --text: #AEB4CC;
  --muted: #8E96B4;
  --faint: #7C82A2;
  --legal: #7C82A2;
  --wrap: 1080px;
  --gut: clamp(20px, 4vw, 40px);
  --radius: 12px;
  --label-col: 180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--night);
  background-image:
    radial-gradient(1.1px 1.1px at 25px 45px, rgba(255,255,255,0.42), transparent 55%),
    radial-gradient(1px 1px at 150px 220px, rgba(255,255,255,0.26), transparent 55%),
    radial-gradient(1.2px 1.2px at 310px 110px, rgba(255,255,255,0.34), transparent 55%),
    radial-gradient(1px 1px at 420px 300px, rgba(255,255,255,0.22), transparent 55%),
    radial-gradient(1px 1px at 520px 60px, rgba(56,225,255,0.3), transparent 55%),
    radial-gradient(1px 1px at 80px 330px, rgba(226,79,208,0.26), transparent 55%),
    radial-gradient(0.9px 0.9px at 250px 350px, rgba(255,255,255,0.18), transparent 55%);
  background-size: 560px 380px;
  background-attachment: fixed;
  color: var(--text);
  font-family: Sora, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.72;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ambient nebula wash, behind everything */
body::before {
  content: ""; position: fixed; inset: -10% -10% -10% -10%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(38% 32% at 22% 26%, rgba(124,92,255,0.10), transparent 70%),
    radial-gradient(34% 30% at 80% 68%, rgba(226,79,208,0.08), transparent 72%),
    radial-gradient(30% 26% at 60% 12%, rgba(56,225,255,0.05), transparent 74%);
  animation: nebulaDrift 90s ease-in-out infinite alternate;
}
@keyframes nebulaDrift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-2.5%, 2%, 0) scale(1.08); }
}

#starfield {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none; opacity: 0.85;
}

.site-header, main, .site-footer { position: relative; z-index: 1; }

a { color: var(--accent-text); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-text-hover); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 4px; }
img, svg { max-width: 100%; }

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 30;
  background: var(--night-2); color: var(--accent-text);
  padding: 10px 16px; border: 1px solid var(--accent-text); border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid rgba(32,32,58,0.55);
  background: rgba(10,10,22,0.78);
  backdrop-filter: blur(10px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding-top: 12px; padding-bottom: 12px;
}

.brand { display: flex; align-items: center; gap: 9px; flex-shrink: 0; color: inherit; }
.brand:hover { color: inherit; }
.brand-mark { width: 30px; height: 30px; overflow: visible; }
.brand-mark .s { transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s; }
.brand-mark .warm { animation: breatheWarm 7s ease-in-out infinite; }
.brand-mark .cool { animation: breatheCool 7s ease-in-out infinite; }
.brand:hover .brand-mark .warm { transform: translateX(-2.5px); }
.brand:hover .brand-mark .cool { transform: translateX(2.5px); }
.brand:hover .brand-mark .thin { opacity: 1; }
@keyframes breatheWarm {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(226,79,208,0)); }
  50% { filter: drop-shadow(0 0 5px rgba(226,79,208,0.65)); }
}
@keyframes breatheCool {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(56,225,255,0)); }
  50% { filter: drop-shadow(0 0 5px rgba(56,225,255,0.65)); }
}
.brand-text { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.brand-name { font-weight: 700; font-size: 15px; color: var(--starlight); }
.brand-labs { font-weight: 800; font-size: 13px; letter-spacing: 0.18em; color: var(--cyan); }

.header-right { display: flex; align-items: center; gap: clamp(14px, 2vw, 26px); }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(14px, 2vw, 26px); }
.site-nav a {
  position: relative; display: inline-block; padding: 4px 0;
  font-size: 13.5px; font-weight: 400; color: var(--text); white-space: nowrap;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: var(--accent);
  border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.site-nav a:hover { color: var(--starlight); }
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--starlight); }
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
  color: var(--text); padding: 7px 9px; cursor: pointer; line-height: 0;
}
.nav-toggle svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6; }

@media (max-width: 660px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: rgba(10,10,22,0.97); border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
    display: none; padding: 8px var(--gut) 16px;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 2px; }
  .site-nav a { display: block; padding: 10px 0; font-size: 15px; }
}

/* ---------- Hero ---------- */

.hero {
  display: flex; flex-direction: column; align-items: center;
  padding: clamp(16px, 3vw, 32px) 0 clamp(4px, 2vw, 24px);
  background: radial-gradient(ellipse 56% 62% at 50% 46%, rgba(21,15,38,0.92) 0%, rgba(16,12,30,0.45) 55%, rgba(10,10,22,0) 78%);
}
.hero-art {
  display: block; width: min(1120px, 100vw);
  height: clamp(190px, 30vw, 320px);
}
.hero-art svg, .hero-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-art--static { display: none; }

.hero-lockup {
  display: flex; align-items: center; gap: clamp(9px, 1.6vw, 14px);
  margin-top: clamp(-40px, -3.4vw, -20px);
  position: relative; z-index: 1; padding: 0 20px;
}
.hero-lockup > img { width: clamp(46px, 6vw, 64px); height: auto; filter: drop-shadow(0 0 9px rgba(226,79,208,0.32)); }
.hero-words { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.hero-name {
  font-weight: 700; font-size: clamp(23px, 3.6vw, 34px); color: var(--starlight);
  line-height: 1; white-space: nowrap; margin: 0; letter-spacing: -0.01em;
}
.hero-labs { font-weight: 800; font-size: clamp(14px, 2.1vw, 20px); letter-spacing: 0.34em; color: var(--cyan); line-height: 1; }

.hero-tagline { margin-top: 22px; text-align: center; padding: 0 20px; position: relative; z-index: 1; }
.hero-tagline .phrase {
  display: block; font-size: clamp(11.5px, 1.3vw, 13px); letter-spacing: 0.3em;
  margin-right: -0.3em; color: var(--muted);
}
.hero-tagline .sub {
  display: block; margin-top: 10px; font-size: clamp(13px, 1.5vw, 14.5px);
  color: var(--faint); text-wrap: balance; max-width: 44ch; margin-left: auto; margin-right: auto;
}

/* ---------- Split layout (label column + content) ---------- */

section { padding: clamp(52px, 8vw, 108px) 0 0; }
main > section:last-of-type { padding-bottom: clamp(64px, 9vw, 120px); }
main { flex: 1; }

.split-inner {
  display: grid; gap: clamp(18px, 3.5vw, 48px);
  grid-template-columns: minmax(0, var(--label-col)) minmax(0, 1fr);
  align-items: start;
}
.split-label { position: relative; }
.eyebrow {
  display: block; font-weight: 800; font-size: 11px; letter-spacing: 0.28em;
  color: var(--label); line-height: 1.6;
}
.split-label .rule {
  display: block; height: 2px; width: 28px; margin-top: 6px;
  background: var(--label);
  border-radius: 2px;
}

.page-header { display: block; }
.section--head + section { padding-top: clamp(30px, 4vw, 56px); }
.page-header .lede { max-width: none; }

.split-inner--stacked { grid-template-columns: 1fr; gap: 14px; }
.split-inner--stacked .split-body p { max-width: none; }
.split-inner--stacked .split-label .rule { margin-top: 5px; }

@media (max-width: 720px) {
  .split-inner { grid-template-columns: 1fr; gap: 14px; }
  .split-label .rule { margin-top: 5px; }
}

/* ---------- Type ---------- */

h1 {
  font-weight: 700; font-size: clamp(25px, 3.2vw, 34px); color: var(--starlight);
  line-height: 1.2; margin: 0; letter-spacing: -0.015em; text-wrap: balance;
}
h2 {
  font-weight: 600; font-size: clamp(19px, 2.1vw, 23px); color: var(--starlight);
  line-height: 1.35; margin: 0 0 14px; text-wrap: pretty;
}
h3 { font-weight: 600; font-size: 16px; color: var(--starlight); margin: 0 0 8px; }
p { margin: 0 0 16px; max-width: 66ch; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
strong { color: var(--starlight); font-weight: 600; }
em { font-style: italic; }
.lede { font-size: clamp(15px, 1.7vw, 16.5px); color: var(--text); max-width: 58ch; margin: 16px 0 0; }

.prose > h2 { margin-top: 36px; }
.prose > h2:first-child { margin-top: 0; }
.prose ul { padding-left: 18px; max-width: 66ch; }
.prose li { margin-bottom: 8px; }

/* Primary CTA — solid brand violet, colour shift only on hover */
.cta {
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  padding: 11px 20px; border-radius: 10px;
  font-weight: 700; font-size: 13.5px; letter-spacing: 0.01em;
  color: #0B0B18; border: 0;
  background-color: var(--violet);
  box-shadow: none;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.cta:hover { background-color: var(--magenta); color: #0B0B18; }
.cta .arrow { font-weight: 600; transition: transform 0.25s; }
.cta:hover .arrow { transform: translateX(3px); }

/* Quiet CTA — for cards and inline navigation */
.cta--quiet {
  padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none;
  color: var(--accent-text); font-weight: 600;
}
.cta--quiet:hover { background: none; box-shadow: none; transform: none; color: var(--accent-text-hover); }
.cta--quiet .arrow {
  width: 22px; height: 22px; border-radius: 50%; border: 1px solid #2c2c4e;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; line-height: 1; color: var(--accent-text);
  transition: background-color 0.25s, border-color 0.25s, color 0.25s, transform 0.25s;
}
.cta--quiet:hover .arrow {
  background-color: var(--accent); border-color: var(--accent); color: #0B0B18; transform: translateX(3px);
}

/* ---------- Cards ---------- */

.card-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }

.card {
  position: relative; background: var(--night-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 22px 20px;
  display: flex; flex-direction: column; color: inherit;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.card p { font-size: 14px; color: var(--muted); margin-bottom: 0; }
a.card:hover { border-color: #33335c; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
a.card:hover::before { transform: scaleX(1); }
.card .cta { align-self: flex-start; margin-top: 18px; }
.card-grid--aligned .card { justify-content: space-between; }
.card-grid--aligned .card .cta { margin-top: 20px; }
.card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 700px) { .card-grid--3 { grid-template-columns: 1fr; } }

/* value tiles (About) */
.tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); margin-top: 18px; }
.tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 700px) { .tiles--3 { grid-template-columns: 1fr; } }
.tile {
  background: rgba(15,15,28,0.7); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 18px; display: flex; flex-direction: column; gap: 8px;
}
.tile svg { width: 22px; height: 22px; stroke: var(--label); fill: none; stroke-width: 1.4; stroke-linecap: round; }
.tile h3 { margin: 0; font-size: 14.5px; }
.tile p { font-size: 13.5px; color: var(--muted); margin: 0; }

/* service list */
.service-list { display: grid; gap: 2px; margin-top: 6px; }
.service-row {
  display: grid; grid-template-columns: minmax(0, 210px) minmax(0, 1fr); gap: clamp(12px, 2.5vw, 30px);
  padding: 16px 0; border-top: 1px solid var(--line-soft);
}
.service-row:last-child { border-bottom: 1px solid var(--line-soft); }
.service-row h3 { margin: 0; font-size: 15px; }
.service-row p { font-size: 14px; color: var(--muted); margin: 0; }
@media (max-width: 620px) { .service-row { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- Drey card (Drey's own palette, scoped) ---------- */

.drey-card {
  --rust: #C65A33; --deep-rust: #9E4020; --cream: #F7E9D7;
  --paper: #F4F0E7; --ink: #231D16; --teal: #234C52;
  background:
    radial-gradient(120% 90% at 88% 8%, rgba(126,169,162,0.30) 0%, rgba(126,169,162,0) 58%),
    linear-gradient(152deg, #FFFDF8 0%, #F8EEDF 46%, #F0DEC6 100%);
  border: 1px solid rgba(158,64,32,0.22); border-radius: 18px;
  padding: clamp(20px, 3.4vw, 34px); color: var(--ink);
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(20px, 3.4vw, 38px); align-items: center;
  position: relative; overflow: hidden;
  box-shadow: 0 18px 46px rgba(0,0,0,0.4);
}
.drey-card::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  right: clamp(-150px, -11vw, -80px); bottom: -22%;
  width: min(530px, 70%); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 34%, #E28A5F 0%, #D06B3D 46%, #C65A33 100%);
  opacity: 0.5;
}
.drey-body { position: relative; z-index: 2; }
.drey-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.drey-head img {
  width: 56px; height: 56px; border-radius: 14px;
  box-shadow: 0 6px 16px rgba(35,29,22,0.3);
}
.drey-name { font-weight: 700; font-size: 22px; color: var(--ink); line-height: 1.1; margin: 0; }
.drey-kicker {
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--deep-rust);
}
.drey-tagline {
  font-size: clamp(17px, 2vw, 20px); font-weight: 700; color: var(--deep-rust);
  line-height: 1.32; margin: 0 0 12px; max-width: 26ch;
}
.drey-blurb { font-size: 14.5px; color: #4A3F35; font-weight: 400; margin: 0 0 20px; max-width: 42ch; }
@media (min-width: 821px) { .drey-shots { padding-left: clamp(4px, 1vw, 14px); } }
.drey-link {
  display: inline-flex; align-items: center; gap: 8px; background: var(--deep-rust);
  color: #FFF8F1; border-radius: 10px; padding: 11px 19px; font-weight: 700; font-size: 14px;
  transition: background-color 0.25s, color 0.25s;
}
.drey-link:hover { background: #85351A; color: #FFF8F1; }
.drey-link span { transition: transform 0.25s; }
.drey-link:hover span { transform: translateX(3px); }

/* Lookout as a large, soft watermark rather than a corner sticker */
/* Lookout stands next to the call to action */
.drey-cta-row { display: flex; align-items: center; gap: 14px; }
.drey-lookout {
  width: clamp(52px, 5.5vw, 66px); height: auto; flex-shrink: 0; pointer-events: none;
  filter: drop-shadow(0 6px 12px rgba(35,29,22,0.2));
}

.drey-shots {
  position: relative; z-index: 1;
  display: flex; align-items: flex-end; justify-content: center; gap: 14px;
}
.drey-shots > img:not(.drey-lookout) {
  width: min(150px, 42%); height: auto; aspect-ratio: 660 / 1435; border-radius: 16px;
  box-shadow: 0 14px 30px rgba(35,29,22,0.3); border: 1px solid rgba(35,29,22,0.1);
}
.drey-shots > img:not(.drey-lookout):nth-of-type(2) { transform: translateY(9px) rotate(-2deg); }
.drey-shots > img:not(.drey-lookout):last-child { transform: rotate(2deg); }

@media (max-width: 820px) {
  .drey-card::after { right: -30%; bottom: -18%; width: 82%; opacity: 0.4; }
  .drey-card {
    grid-template-columns: 1fr; gap: 22px; padding: 22px 20px;
    text-align: left; align-items: start;
  }
  .drey-tagline { max-width: none; font-size: 17px; }
  .drey-blurb { max-width: none; }
  .drey-shots { justify-content: flex-start; gap: 12px; }
  .drey-shots > img:not(.drey-lookout) { width: 40%; max-width: 148px; }
  .drey-shots > img:not(.drey-lookout):nth-of-type(2),
  .drey-shots > img:not(.drey-lookout):last-child { transform: none; }
  .drey-lookout { width: 46px; }

}
@media (max-width: 420px) {
  .drey-head img { width: 48px; height: 48px; }
  .drey-name { font-size: 20px; }
  .drey-shots > img:not(.drey-lookout) { width: 42%; }
  .drey-link { width: 100%; justify-content: center; }
}

/* ---------- Contact ---------- */

.contact-box {
  background: var(--night-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(20px, 3vw, 28px); display: flex; flex-direction: column; gap: 12px;
  align-items: flex-start; max-width: 560px;
}
.contact-box .label { font-size: 10.5px; letter-spacing: 0.22em; color: var(--faint); font-weight: 700; }
.contact-box .addr { font-size: clamp(16px, 2.4vw, 20px); font-weight: 600; color: var(--accent-text); word-break: break-word; }

.contact-panel {
  display: grid; gap: clamp(20px, 3vw, 36px);
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: start;
  background: var(--night-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(20px, 3vw, 30px);
}
.contact-primary { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.contact-primary .label { font-size: 10.5px; letter-spacing: 0.22em; color: var(--faint); font-weight: 700; }
.contact-primary .addr { font-size: clamp(16px, 2.2vw, 19px); font-weight: 600; color: var(--accent-text); word-break: break-word; }
.contact-primary .cta { margin-top: 6px; }
.contact-notes {
  display: grid; gap: 18px;
  border-left: 1px solid var(--line-soft); padding-left: clamp(20px, 3vw, 32px);
}
.contact-notes h3 { font-size: 14.5px; margin-bottom: 5px; }
.contact-notes p { font-size: 13.5px; color: var(--muted); margin: 0; }
@media (max-width: 720px) {
  .contact-panel { grid-template-columns: 1fr; }
  .contact-notes { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-soft); padding-top: 20px; }
}

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line-soft); margin-top: auto; padding: clamp(40px, 5vw, 60px) 0 36px; }
.footer-top {
  display: grid; gap: clamp(24px, 4vw, 48px);
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 2fr); padding-bottom: 28px;
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.footer-lockup { display: flex; align-items: center; gap: 8px; }
.footer-lockup img { width: 22px; height: 22px; }
.footer-lockup span { display: flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.footer-lockup .n { font-weight: 700; font-size: 12.5px; color: var(--text); }
.footer-lockup .l { font-weight: 800; font-size: 11px; letter-spacing: 0.18em; color: var(--cyan); }
.footer-desc { font-size: 12.5px; color: var(--faint); max-width: 40ch; margin: 0; line-height: 1.65; }

.footer-cols { display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.footer-cols h2 {
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; margin: 0 0 10px;
}
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-cols a { font-size: 13.5px; color: var(--text); }
.footer-cols a:hover { color: var(--accent-text-hover); }
.footer-cols .with-icon { display: inline-flex; align-items: center; gap: 8px; }
.footer-cols .with-icon svg { width: 15px; height: 15px; fill: currentColor; }

.footer-legal {
  border-top: 1px solid var(--line-soft); padding-top: 18px;
  font-size: 11px; font-weight: 400; color: var(--legal); line-height: 1.7; margin: 0; max-width: none;
}

@media (max-width: 720px) {
  .footer-top { grid-template-columns: 1fr; gap: 26px; }
  .footer-cols { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
}

/* ---------- Scroll reveal ---------- */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-art--animated { display: none; }
  .hero-art--static { display: block; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .brand-mark .warm, .brand-mark .cool { animation: none; }
  body::before { animation: none; }
  #starfield { display: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* ---------- Contextual CTA prompt ---------- */

.cta-prompt {
  margin-top: 32px; padding: clamp(18px, 2.6vw, 26px);
  background: #14142a; border: 1px solid #262644; border-radius: var(--radius);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px 26px;
}
.cta-prompt .cta { justify-self: end; }
.cta-prompt .prompt-text {
  font-size: clamp(15px, 1.9vw, 17px); font-weight: 400; color: var(--starlight);
  margin: 0;
}
.cta-prompt .prompt-note { display: block; font-size: 13.5px; color: var(--faint); margin-top: 4px; }
.cta--lg { padding: 13px 24px; font-size: 14.5px; gap: 11px; }
@media (max-width: 620px) {
  .cta-prompt { grid-template-columns: 1fr; }
  .cta-prompt .cta { justify-self: start; }
}
