/* ---------- Tokens ---------- */
:root {
  --cream: #fff8f1;
  --pink: #ffa3cf;
  --pink-soft: #ffd6ea;
  --hot: #ff4f9f;
  --blue: #a6d8ff;
  --peri: #8a8ef7;
  --peri-deep: #4f53d6;  /* white text passes AA */
  --lav: #cfccff;
  --maroon: #7a1d3c;     /* headings, buttons */
  --ink: #4a2232;        /* body text */

  --font-fun: "Shrikhand", Georgia, serif;   /* big headings + brand */
  --font-display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, sans-serif;

  --radius: 24px;
  --max: 1160px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--maroon); }
:focus-visible { outline: 3px solid var(--peri-deep); outline-offset: 3px; border-radius: 8px; }

h1, h2, h3 {
  font-family: var(--font-fun);
  font-weight: 400;
  color: var(--maroon);
  line-height: 1.05;
  letter-spacing: 0;
  margin: 0 0 .45em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.kicker {
  display: inline-block;
  font-family: var(--font-display); font-weight: 700;
  font-size: .85rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-maroon { background: var(--maroon); color: #fff; box-shadow: 0 4px 0 #4d1026; }
.btn-maroon:hover { color: #fff; }
.btn-white { background: #fff; color: var(--maroon); box-shadow: 0 4px 0 rgba(0, 0, 0, .18); }
.btn-outline { border-color: var(--maroon); color: var(--maroon); background: transparent; }
.btn-sm { padding: 10px 20px; font-size: .95rem; box-shadow: none; }
.btn svg { width: 20px; height: 20px; }

/* ---------- Header: floating pill ---------- */
.site-header { position: sticky; top: 0; z-index: 20; padding: 12px 12px 0; }
.pill-nav {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 22px;
  background: rgba(255, 248, 241, .2); /* 80% transparent */
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 2px solid var(--maroon);
  border-radius: 999px;
}
.logo {
  font-family: var(--font-fun); font-weight: 400; font-size: 1.4rem;
  color: var(--maroon); text-decoration: none;
  display: flex; align-items: center; gap: 6px;
}
.logo svg { flex: none; width: 20px; height: 20px; color: var(--hot); }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a:not(.btn) {
  padding: 8px 14px; border-radius: 999px;
  font-weight: 600; color: var(--maroon); text-decoration: none;
}
.nav a:not(.btn):hover { background: var(--pink-soft); }
.nav a[aria-current="page"]:not(.btn) { background: var(--pink-soft); }
.nav .btn { margin-left: 6px; }

/* ---------- Hero ---------- */
.hero { background: var(--pink); margin-top: -76px; padding: 104px 0 96px; overflow: hidden; position: relative; }
.hero-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; }
.hero-copy { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px 56px; align-items: end; }
.hero-pitch .rule { margin-top: 0; }
.ri-badge {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 10px;
  background: var(--peri-deep); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em;
  padding: 10px 20px 10px 16px; border-radius: 999px; margin: 0 0 30px;
  box-shadow: 0 3px 0 var(--maroon);
}
.ri-badge svg { width: 18px; height: 18px; color: var(--pink); flex: none; }
.ri-badge span { font-weight: 500; opacity: .85; padding-left: 10px; border-left: 1.5px solid rgba(255, 255, 255, .4); }
/* Lockup: both lines sized to the same width by a small script in index.html */
.lockup {
  display: block; white-space: nowrap;
  font-family: var(--font-fun); font-weight: 400;
  font-size: 6vw; /* fallback before the script runs */
  line-height: 1.02; color: var(--maroon); margin: 0;
}
.lockup > span { display: table; }
.tagline {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  letter-spacing: -0.02em; line-height: 1.2; color: var(--maroon); margin: 14px 0 0;
}
.rule { width: 56px; height: 4px; border: 0; border-radius: 2px; background: var(--maroon); margin: 32px 0 26px; }
.hero-lead {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(1.3rem, 2vw, 1.6rem);
  letter-spacing: -0.02em; line-height: 1.2; color: var(--maroon); margin: 0 0 8px;
}
.hero-text { font-size: 1.15rem; color: var(--maroon); max-width: 30em; margin: 0 0 30px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
.hero-art { position: relative; justify-self: end; width: 100%; max-width: 440px; }

/* trust strip */
.trust { background: var(--maroon); }
.trust ul {
  list-style: none; margin: 0 auto; padding: 20px 24px; max-width: var(--max);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.trust li { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 1rem; }
.trust svg { flex: none; width: 22px; height: 22px; color: var(--pink); }

/* ---------- Sections ---------- */
section { padding: 110px 0; position: relative; }
.bg-cream { background: var(--cream); }
.bg-blue { background: var(--blue); }
.bg-pink { background: var(--pink); }
.bg-peri { background: var(--peri-deep); color: #fff; }
.bg-peri h2, .bg-peri h3, .bg-peri .kicker { color: #fff; }
.center { text-align: center; }
.section-head { margin-bottom: 52px; }
.section-head.center { max-width: 720px; margin-left: auto; margin-right: auto; }

/* sorting animation */
.stage-frame {
  position: relative; width: 100%;
  border: 2px solid var(--maroon); border-radius: var(--radius); overflow: hidden;
  background: #fbf7e9; box-shadow: 0 6px 0 var(--maroon);
}
.stage-frame canvas {
  display: block; width: 100%; aspect-ratio: 3 / 2;
  background: #fbf7e9 url("anim/assets/background.webp") center / cover no-repeat;
}
.stage-toggle {
  position: absolute; right: 14px; bottom: 14px;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; padding: 0; cursor: pointer;
  background: #fff; color: var(--maroon); border: 2px solid var(--maroon);
  box-shadow: 0 3px 0 var(--maroon);
}
.stage-toggle svg { width: 20px; height: 20px; }
.stage-toggle[data-state="playing"] .i-play,
.stage-toggle[data-state="paused"] .i-pause { display: none; }

/* intro with photo */
.intro { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: start; }
.intro h2 { margin: 0; }
.intro p { font-size: 1.2rem; }
.intro .btn { margin-top: 10px; }
.photo {
  position: relative; margin: 0;
  aspect-ratio: 4 / 5; width: 100%; max-width: 440px;
  border-radius: 999px 999px 24px 24px; overflow: hidden;
  background: var(--blue);
  display: grid; place-items: center;
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-placeholder { text-align: center; color: var(--maroon); opacity: .75; font-family: var(--font-display); font-weight: 700; padding: 24px; }
.photo-placeholder svg { width: 44px; height: 44px; margin: 0 auto 10px; }
.photo-wrap { position: relative; }
.photo-wrap .spark { position: absolute; width: 52px; height: 52px; color: var(--hot); right: 2%; top: 8%; z-index: 1; }
.photo-wrap .spark.sm { width: 26px; height: 26px; color: var(--peri-deep); right: 16%; top: 2%; }

/* services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: #fff; border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column;
}
.card h3 { margin-bottom: .5em; }
.card p { margin: 0; }
.ico {
  width: 56px; height: 56px; border-radius: 18px; margin-bottom: 36px;
  display: grid; place-items: center; color: var(--maroon);
}
.ico svg { width: 28px; height: 28px; }
.ico.pink { background: var(--pink); }
.ico.blue { background: var(--blue); }
.ico.lav { background: var(--lav); }
.card.feature {
  grid-column: span 2; grid-row: span 2;
  background: var(--pink); position: relative; overflow: hidden;
  padding: 40px; justify-content: flex-end; min-height: 440px;
}
.card.feature h3 { font-size: clamp(2rem, 4vw, 3rem); }
.card.feature p { font-size: 1.15rem; max-width: 26em; color: var(--maroon); }
.card.feature .ico { background: #fff; }
.badge {
  position: absolute; top: 28px; right: 28px;
  background: var(--maroon); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: .85rem;
  padding: 8px 14px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px;
}
.badge svg { width: 14px; height: 14px; }
.feature-art { position: absolute; right: 30px; top: 70px; width: 46%; max-width: 280px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; }
.steps li { background: #fff; border: 2px solid var(--maroon); border-radius: var(--radius); padding: 30px; }
.steps .num {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--peri); color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: 1.8rem;
  display: grid; place-items: center; margin-bottom: 26px;
}
.steps li:nth-child(2) .num { background: var(--hot); }
.steps li:nth-child(3) .num { background: var(--maroon); }
.steps p { margin: 0; }

/* why */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.why .card { min-height: 230px; justify-content: space-between; }
.why .card p { font-size: .98rem; }
.why h3 { font-size: 1.6rem; margin-bottom: .4em; }

/* closing */
.closing { padding: 120px 0; overflow: hidden; }
.closing h2 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); max-width: 12em; margin: 0 auto .3em; }
.closing p { font-size: 1.25rem; opacity: .95; }
.closing .contact-line {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px;
  margin: 32px 0 10px; font-weight: 700; font-size: 1.1rem;
}
.closing .contact-line a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.closing .contact-line a:hover { text-decoration: underline; }
.closing .contact-line svg { width: 20px; height: 20px; }
.closing small { display: block; opacity: .85; font-size: .95rem; }
.spark { position: absolute; color: var(--pink); }
.spark svg { width: 100%; height: 100%; }
/* sparkles sit in the section's top and bottom padding, clear of the text */
.closing .s1 { width: 60px; height: 60px; left: 6%; top: 32px; }
.closing .s2 { width: 30px; height: 30px; left: 13%; bottom: 36px; color: var(--blue); }
.closing .s3 { width: 48px; height: 48px; right: 7%; bottom: 32px; }
.closing .s4 { width: 26px; height: 26px; right: 13%; top: 46px; color: #fff; }

/* ---------- Page hero (About / Contact) ---------- */
.page-hero { background: var(--pink); margin-top: -76px; padding: 150px 0 90px; overflow: hidden; }
.page-hero .hero-grid { margin-top: 0; align-items: center; }
.page-hero h1 { font-size: clamp(3rem, 8vw, 6.2rem); line-height: 1; }
.page-hero p { font-size: 1.2rem; color: var(--maroon); max-width: 28em; }

/* about body */
.prose { max-width: 760px; }
.prose p { font-size: 1.2rem; }
.prose p:first-child { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 2.8vw, 2rem); line-height: 1.2; color: var(--maroon); letter-spacing: -0.02em; }
.creds { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; list-style: none; padding: 0; }
.creds li {
  background: var(--blue); color: var(--maroon);
  font-family: var(--font-display); font-weight: 700;
  padding: 10px 18px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 8px;
}
.creds li:nth-child(2) { background: var(--lav); }
.creds li:nth-child(3) { background: var(--pink); }
.creds svg { width: 18px; height: 18px; }

/* ---------- Contact ---------- */
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.qc {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border: 2px solid var(--maroon); border-radius: var(--radius);
  padding: 20px; text-decoration: none; color: var(--maroon);
  box-shadow: 0 4px 0 var(--maroon);
  transition: transform .15s;
}
.qc:hover { transform: translateY(-2px); }
.qc .ico { flex: none; width: 52px; height: 52px; border-radius: 16px; margin: 0; }
.qc .ico svg { width: 24px; height: 24px; }
.qc small { display: block; font-weight: 600; font-size: .85rem; color: var(--ink); }
.qc strong { display: block; font-family: var(--font-display); font-size: 1.15rem; word-break: break-word; }

.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: start; }
.panel { background: #fff; border-radius: var(--radius); padding: 34px; }
.panel h2 { font-size: 2rem; }
.side { display: grid; gap: 18px; }
.side .panel { padding: 28px; }
.side h3 { font-size: 1.3rem; }
.side p { margin: 0; }
.mini-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.mini-steps li { display: flex; gap: 14px; align-items: flex-start; }
.mini-steps b {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: var(--peri); color: #fff; font-family: var(--font-display);
  display: grid; place-items: center;
}

form { display: grid; gap: 20px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label, legend { font-weight: 700; font-size: .95rem; display: block; margin-bottom: 8px; color: var(--maroon); }
.optional { font-weight: 400; color: var(--ink); }
input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 14px 16px; border-radius: 14px;
  border: 2px solid var(--pink-soft); background: var(--cream);
  transition: border-color .15s;
}
input:focus, textarea:focus { outline: none; border-color: var(--maroon); }
textarea { min-height: 120px; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { margin: 0; font-weight: 600; color: var(--ink); }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block; padding: 9px 16px; border-radius: 999px;
  border: 2px solid var(--pink-soft); background: #fff; cursor: pointer;
  transition: all .15s; font-size: .95rem;
}
.chips span:hover { border-color: var(--pink); }
.chips input:checked + span { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.chips input:focus-visible + span { outline: 3px solid var(--peri-deep); outline-offset: 2px; }
form .btn { justify-self: start; }

/* ---------- Footer ---------- */
.site-footer { background: var(--maroon); color: var(--pink-soft); padding: 70px 0 30px; overflow: hidden; }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.footer-top p { margin: 0; font-weight: 600; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: #fff; text-decoration: none; font-weight: 600; }
.footer-links a:hover { text-decoration: underline; }
.footer-mark {
  font-family: var(--font-fun); font-weight: 400;
  font-size: clamp(3rem, 14vw, 11.5rem); line-height: 1;
  color: var(--pink); margin: 50px 0 24px; white-space: nowrap;
}
.footer-bottom { font-size: .9rem; opacity: .85; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-main, .hero-copy, .hero-grid, .intro, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-art { justify-self: center; max-width: 380px; }
  .photo { max-width: 380px; margin: 0 auto; }
  .trust ul { grid-template-columns: 1fr 1fr; }
  .services { grid-template-columns: 1fr 1fr; }
  .card.feature { grid-column: span 2; grid-row: auto; min-height: 0; }
  .feature-art { position: static; width: 60%; max-width: 260px; margin: 44px auto 8px; }
  .steps, .quick { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  section { padding: 76px 0; }
  .hero { padding: 96px 0 64px; }
  .nav .hide-sm { display: none; }
  .pill-nav { padding-left: 16px; }
  .logo { font-size: 1.15rem; gap: 4px; }
  .logo svg { width: 16px; height: 16px; }
  .nav .btn { margin-left: 2px; padding: 9px 14px; font-size: .9rem; }
  .nav a:not(.btn) { padding: 8px 10px; }
  .ri-badge { font-size: .92rem; margin-bottom: 24px; }
  .ri-badge span { display: none; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { padding: 14px 20px; font-size: 1rem; }
  .trust ul { grid-template-columns: 1fr; gap: 12px; padding: 20px 18px; }
  .services, .why, .row { grid-template-columns: 1fr; }
  .card.feature { grid-column: auto; padding: 28px; }
  .feature-art { width: 72%; max-width: 240px; }
  .closing .s1 { width: 36px; height: 36px; left: 5%; top: 22px; }
  .closing .s2 { width: 22px; height: 22px; left: 10%; bottom: 22px; }
  .closing .s3 { width: 30px; height: 30px; right: 6%; bottom: 18px; }
  .closing .s4 { width: 20px; height: 20px; right: 9%; top: 28px; }
  .why .card { min-height: 0; }
  .why .card .ico { margin-bottom: 22px; }
  .panel { padding: 24px; }
  .page-hero { padding: 130px 0 70px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .qc { transition: none; }
  .btn:hover, .qc:hover { transform: none; }
}
