/* ==========================================================================
   Happy Mess homepage styles

   Layout:
   - Mobile (up to 767px) matches the 390px Figma frame.
   - 768px to 1239px keeps the mobile layout in a centered column.
   - Desktop (1240px and up) matches the 1440px Figma frame.

   Change colors and fonts in :root below, never with new hex values.
   ========================================================================== */

@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 300; font-display: swap; src: url('/fonts/be-vietnam-pro-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/be-vietnam-pro-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/be-vietnam-pro-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/be-vietnam-pro-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 800; font-display: swap; src: url('/fonts/be-vietnam-pro-latin-800-normal.woff2') format('woff2'); }
/* The original Be Vietnam: the design uses it for desktop button labels and mobile footer headings */
@font-face { font-family: 'Be Vietnam'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/be-vietnam-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Chewy'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/chewy-latin-400-normal.woff2') format('woff2'); }

:root {
  /* Brand colors (brand guidelines) */
  --red: #d62f3d;
  --black: #1d2b36;
  --pink: #eb9ac6;
  --yellow: #fcb934;
  --vanilla: #f1e7db;
  --blue: #80bad0;
  --white: #ffffff;

  /* Shades used in the Figma file */
  --ink: #0f161c;              /* "Black" with the design's dark overlay */
  --red-text: #d92335;         /* text on outlined buttons */
  --red-hover: #bf2633;
  --mist: rgba(222, 233, 238, 0.5);  /* "How it works" background */
  --text-80: rgba(29, 43, 54, 0.8);
  --text-60: rgba(29, 43, 54, 0.65); /* Figma 0.6; raised for 4.5:1 contrast */
  --red-on-vanilla: #c32b38;         /* brand red, darkened just enough for 4.5:1 on vanilla */
  --placeholder: rgba(15, 22, 28, 0.6); /* Figma 0.5; raised for 4.5:1 contrast */

  --font: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-fun: 'Chewy', 'Be Vietnam Pro', system-ui, sans-serif;
  --font-label: 'Be Vietnam', 'Be Vietnam Pro', system-ui, sans-serif;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5625rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; font-weight: inherit; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
[id] { scroll-margin-top: 16px; }
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--white); text-decoration: none;
}
.skip-link:focus { top: 16px; }
.text-red { color: var(--red); }

/* Content column used inside sections */
.inner { position: relative; width: 100%; max-width: 600px; margin-inline: auto; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 3.125rem; padding: 0 2rem;
  border: 1px solid var(--red); border-radius: 999px;
  font-family: var(--font); font-weight: 600; font-size: 0.9375rem; line-height: 1.375rem; letter-spacing: 0.0125rem;
  text-align: center; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
/* The label is trimmed to cap height so it sits exactly in the middle of the button */
.btn__label { display: block; text-box: trim-both cap alphabetic; }
@supports not (text-box: trim-both cap alphabetic) {
  .btn__label { position: relative; top: 0.033em; }
}
.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { background: var(--red-hover); border-color: var(--red-hover); }
.btn--secondary { background: transparent; color: var(--red); }
.btn--secondary:hover { background: var(--red); color: var(--white); }
.btn[disabled] { opacity: .7; cursor: progress; }

/* ---------- Navigation ---------- */

.nav { position: relative; z-index: 20; background: var(--white); }
.nav__bar {
  display: flex; align-items: center; justify-content: space-between;
  height: 100px; padding: 0 24px; max-width: 648px; margin: 0 auto;
}
.nav__logo { position: relative; display: block; width: 154px; height: 30.06px; flex: none; }
.nav__logo img { position: absolute; left: -1.48px; top: -1.48px; width: 155.48px; max-width: none; }
.nav__menu, .nav__cta { display: none; }

.nav__toggle {
  position: relative; flex: none; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 22px; background: transparent; cursor: pointer;
}
.nav__line {
  position: absolute; left: 11px; width: 22px; height: 2px; border-radius: 1px; background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.nav__line:nth-of-type(2) { top: 15px; }
.nav__line:nth-of-type(3) { top: 22px; }
.nav__line:nth-of-type(4) { top: 29px; }
.nav.is-open .nav__line:nth-of-type(2) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__line:nth-of-type(3) { opacity: 0; }
.nav.is-open .nav__line:nth-of-type(4) { transform: translateY(-7px) rotate(-45deg); }

.nav__panel {
  position: absolute; inset: 100% 0 auto 0;
  display: flex; flex-direction: column; gap: 24px;
  padding: 8px 24px 32px; background: var(--white);
  box-shadow: 0 24px 32px rgba(15, 22, 28, .12);
}
.nav__panel a:not(.btn) {
  display: block; padding: 14px 0; border-bottom: 1px solid rgba(29, 43, 54, .1);
  font-weight: 500; font-size: 1.125rem; line-height: 1.5rem; color: #333; text-decoration: none;
}

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

.hero { padding: 24px 24px 52px; overflow: hidden; }
.hero__inner { display: flex; flex-direction: column; gap: 20px; max-width: 600px; margin: 0 auto; }
.hero__copy { display: flex; flex-direction: column; gap: 20px; }
.hero__title { font-weight: 600; font-size: 2.375rem; line-height: 2.625rem; letter-spacing: -0.0375rem; color: var(--ink); }
.hero__text { color: var(--ink); }
.hero__actions { display: flex; flex-direction: column; gap: 12px; }
.hero__actions .btn { width: 100%; }

/* Photo with the tilted pink card behind it. Positions are percentages of the Figma frame. */
.hero__media { position: relative; width: 100%; max-width: 342px; margin: 0 auto; aspect-ratio: 342 / 368; }
.hero__media::before,
.hero__media img {
  position: absolute; width: 95.322%; height: 95.109%; border-radius: 30px;
}
.hero__media::before { content: ''; left: 2.52%; top: 4.97%; background: var(--pink); transform: rotate(3deg); }
.hero__media img { left: 2.632%; top: 0; object-fit: cover; max-width: none; }

/* ---------- Wave dividers ---------- */

/* Wave dividers: a <picture> loads only the desktop or the mobile shape */
.wave-pic { display: block; }
.wave { display: block; width: 100%; height: auto; position: relative; }

/* ---------- How it works ---------- */

.how { background: var(--mist); padding: 48px 24px; }
.how__title {
  margin-bottom: 36px; text-align: center;
  font-family: var(--font-fun); font-weight: 400; font-size: 2.625rem; line-height: 2.875rem; color: var(--red);
}
.steps { position: relative; display: flex; flex-direction: column; gap: 27px; margin-right: -1px; } /* Figma's list is 1px wider than the column */
.step { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 27px; align-items: start; }
/* Line joining the numbered circles */
.step:not(:last-child)::after {
  content: ''; position: absolute; left: 16px; top: 34px; bottom: -27px; width: 2px; background: var(--pink);
}
.step__num {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; background: var(--pink);
  font-weight: 800; font-size: 1.0462rem; line-height: 1.4; color: var(--ink);
}
.step__body { display: flex; flex-direction: column; gap: 8px; max-width: 282px; }
.step:nth-child(n+3) .step__body { max-width: 236px; }
.step__art { width: 90px; height: 90px; }
.step__title { font-family: var(--font-fun); font-weight: 400; font-size: 1.75rem; line-height: 2.125rem; color: var(--red); }
.step__text { color: var(--ink); }

/* ---------- Parties and DIY kits ---------- */

.features { position: relative; background: var(--pink); padding: 48px 24px; overflow: hidden; }
.features__swirl { display: none; }
.features__title { margin-bottom: 28px; font-weight: 500; font-size: 1.875rem; line-height: 2.375rem; letter-spacing: -0.0187rem; color: var(--ink); }
.features__cards { display: flex; flex-direction: column; gap: 28px; }
.card {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 32px; border-radius: 24px; background: var(--vanilla); text-align: center;
}
.card--kits { padding-right: 24px; }
.card picture { width: 100%; }
.card__img { width: 100%; aspect-ratio: 294 / 208; object-fit: cover; border-radius: 16px; }
.card__copy { display: flex; flex-direction: column; gap: 16px; width: 100%; }
.card__title { font-family: var(--font-fun); font-weight: 400; font-size: 1.75rem; line-height: 2.125rem; color: var(--ink); }
.card__text { color: var(--ink); }
.card__actions { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.card__actions .btn { width: 100%; }
.card .btn--secondary { color: var(--red-on-vanilla); border-color: var(--red-on-vanilla); }
.card .btn--secondary:hover { background: var(--red-on-vanilla); color: var(--white); }

/* ---------- Our story ---------- */

.story { position: relative; padding: 40px 24px 48px; overflow: hidden; }
.story__inner { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.story__portrait { position: relative; flex: none; width: 320px; max-width: 100%; aspect-ratio: 440 / 520; }
.story__portrait::before,
.story__portrait img {
  position: absolute; width: 90.909%; height: 92.308%;
  /* Arch: round top, 32px corners at full size */
  border-radius: 50% 50% 8% 8% / 41.667% 41.667% 6.667% 6.667%;
}
.story__portrait::before { content: ''; right: 0; bottom: 0; background: var(--yellow); }
.story__portrait img { left: 0; top: 0; object-fit: cover; background: var(--vanilla); max-width: none; }
.story__copy { position: relative; display: flex; flex-direction: column; gap: 28px; width: 100%; }
.story__title { font-family: var(--font-fun); font-weight: 400; font-size: 2.625rem; line-height: 2.875rem; color: var(--ink); }
.story__text { display: flex; flex-direction: column; gap: 25px; color: var(--ink); }
.story__intro { font-weight: 600; }
/* Brush sits beside the heading */
.story__brush { position: absolute; right: 19px; top: 45.82px; width: 89.96px; max-width: none; }
@media (max-width: 374px) { .story__brush { display: none; } }

/* ---------- FAQ ---------- */

.faq { position: relative; background: var(--vanilla); padding: 48px 24px; }
.faq__inner { display: flex; flex-direction: column; gap: 20px; }
.faq__intro { display: flex; flex-direction: column; gap: 20px; }
.faq__title { font-weight: 500; font-size: 1.875rem; line-height: 2.375rem; letter-spacing: -0.0187rem; color: var(--ink); }
.faq__text { color: var(--ink); }
.faq__text a { text-decoration: underline; text-underline-offset: 0.15em; }
.faq__bulb { display: none; }
.faq__list { display: flex; flex-direction: column; gap: 12px; }
.faq__item { border-radius: 16px; background: var(--white); }
.faq__item summary {
  display: flex; align-items: center; gap: 12px; padding: 18px;
  border-radius: inherit; cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__q { flex: 1; font-weight: 500; font-size: 1rem; line-height: 1.5rem; color: var(--ink); }
.faq__icon { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); transition: background-color .2s ease; }
.faq__icon::before,
.faq__icon::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 30%; height: 3.333%; min-height: 1px; border-radius: 1px; background: var(--white);
  transform: translate(-50%, -50%);
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .2s ease; }
.faq__item[open] .faq__icon { background: var(--red); }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__item[open] summary { padding-bottom: 12px; }
.faq__a { padding: 0 18px 18px; color: var(--ink); }

/* ---------- Studio waitlist ---------- */

.waitlist { position: relative; background: var(--yellow); padding: 48px 24px; overflow: hidden; }
/* Other pages use a different band color */
.waitlist--pink { background: var(--pink); }
.waitlist--blue { background: var(--blue); }
.waitlist__copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.label {
  padding: 6px 14px; border-radius: 999px; background: var(--white);
  font-weight: 600; font-size: 0.75rem; line-height: 1.125rem; letter-spacing: 0.0625rem; text-transform: uppercase; color: var(--ink);
}
.waitlist__title { font-family: var(--font-fun); font-weight: 400; font-size: 2.625rem; line-height: 2.875rem; color: var(--ink); }
.waitlist__text { color: var(--ink); }
.waitlist__form { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.waitlist__form input[type='email'] {
  width: 100%; height: 3.25rem; padding: 0 1.25rem; border: 0; border-radius: 1.625rem; background: var(--white);
  font-size: 0.9375rem; line-height: 1.375rem; letter-spacing: 0.0125rem; color: var(--ink);
}
.waitlist__form input[type='email']::placeholder { color: var(--placeholder); opacity: 1; }
.waitlist__form .btn { width: 100%; }
.form-status { width: 100%; padding: 16px 20px; border-radius: 20px; background: var(--white); font-weight: 500; color: var(--ink); }
.form-status[data-state='error'] { padding: 0; background: transparent; color: #8a1620; }
.waitlist__bowl { position: absolute; right: 23.95px; top: -21.19px; width: 97.05px; max-width: none; transform: none; }
.waitlist__sparks { position: absolute; max-width: none; }
.waitlist__sparks--desktop { display: none; }
.waitlist__sparks--mobile { right: -9.78px; top: -35.95px; width: 41.3px; height: 39.75px; }

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

.footer { background: var(--ink); color: #fafafa; padding: 48px 24px 50.6px; }
.footer__inner { max-width: 600px; margin: 0 auto; }
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; }
.footer__logo { position: relative; display: block; width: 200px; height: 39.03px; margin-bottom: 24px; }
.footer__logo img { position: absolute; left: -1.92px; top: -1.92px; width: 201.92px; max-width: none; }
.footer__tagline { margin-bottom: 16px; font-family: var(--font-fun); font-size: 1.5rem; line-height: 1.2; color: var(--pink); }
.footer__text { margin-bottom: 30px; color: var(--white); }
.footer__brand .btn { width: 100%; }
.footer__groups { display: flex; flex-direction: column; gap: 26px; margin-top: 40px; }
.footer__title {
  margin-bottom: 9px;
  font-family: var(--font-label); font-weight: 600; font-size: 1rem; line-height: 0.6875rem; letter-spacing: 0.025rem; text-transform: uppercase; color: var(--yellow);
}
@supports (text-box: trim-both cap alphabetic) {
  .footer__title { height: 0.6875rem; line-height: normal; text-box: trim-both cap alphabetic; }
}
.footer__group ul { display: flex; flex-direction: column; gap: 8.8px; }
.footer__group li { font-size: 1rem; line-height: 1.45; }
.footer__group a { color: #fafafa; text-decoration: none; }
.footer__group a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 63.8px; padding-top: 27px; border-top: 1px solid rgba(255, 255, 255, .14);
  font-weight: 300; font-size: 0.75rem; line-height: 1.45;
}
.footer__bottom img { width: 48.89px; flex: none; margin-right: -3.89px; }

/* ---------- 404 ---------- */

.not-found { padding: 80px 24px 120px; text-align: center; }
.not-found .inner { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.not-found img { width: 160px; }
.not-found h1 { font-family: var(--font-fun); font-size: 2.625rem; line-height: 2.875rem; }

/* ==========================================================================
   Desktop: 1240px and up, matches the 1440px Figma frame.
   Horizontal positions are written relative to the page center (50%),
   so the layout stays centered on screens wider than 1440px.
   ========================================================================== */

@media (min-width: 1240px) {
  body { font-size: 1.125rem; line-height: 1.75rem; }
  .inner { max-width: none; }

  /* Buttons */
  @supports not (text-box: trim-both cap alphabetic) { .btn__label { top: -0.094em; } .footer__brand .btn__label { top: 0.033em; } }
  .btn { height: 3.5rem; font-family: var(--font-label); font-size: 1rem; line-height: normal; letter-spacing: 0.025rem; }
  .btn--primary { color: #fcfcfd; }
  .btn--secondary { color: var(--red-text); }
  .btn--secondary:hover { color: var(--white); }
  .btn--w188 { width: 188px; }
  .btn--w240 { width: 240px; }

  /* Navigation */
  .nav__bar { height: 90.09px; max-width: 1440px; padding: 0 64px; }
  .nav__logo { width: 233px; height: 44px; }
  .nav__logo img { left: 23.53px; top: 2.99px; width: 206.97px; }
  .nav__menu { display: block; }
  .nav__menu ul { display: flex; align-items: center; gap: 14px; }
  .nav__menu a {
    display: block; padding: 11px 14px; border-radius: 6px;
    font-weight: 500; font-size: 1.125rem; line-height: 0.875rem; color: #333; text-decoration: none; white-space: nowrap;
    transition: color .2s ease;
  }
  .nav__menu a:hover { color: var(--red); }
  /* Item widths from Figma so the menu lands in the same place */
  .nav__menu li:nth-child(1) a { width: 92px; }
  .nav__menu li:nth-child(2) a { width: 175px; }
  .nav__menu li:nth-child(3) a { width: 145px; }
  .nav__menu li:nth-child(4) a { width: 114px; }
  .nav__menu li:nth-child(5) a { width: 66px; }
  .nav__menu a { padding-inline: 0; text-align: center; }
  .nav__cta { display: inline-flex; width: 165px; height: 3rem; padding: 0; border-width: 0.879px; color: var(--red); }
  .nav__toggle, .nav__panel { display: none !important; }

  /* Hero */
  .hero { padding: 75px max(40px, calc((100% - 1152px) / 2)); }
  .hero__inner { flex-direction: row; align-items: center; gap: 64px; max-width: none; }
  .hero__copy { flex: 0 0 544px; gap: 24px; }
  .hero__title { font-size: 4rem; line-height: 4rem; letter-spacing: -0.06rem; color: var(--black); }
  .hero__text { font-size: 1.25rem; line-height: 1.4; letter-spacing: -0.0125rem; color: var(--ink); }
  .hero__actions { flex-direction: row; gap: 16px; }
  .hero__actions .btn { width: auto; }
  .hero__actions .btn--w188 { width: 188px; }
  .hero__actions .btn--w240 { width: 240px; }
  .hero__media { flex: 0 0 582.37px; max-width: none; margin: 0; aspect-ratio: 582.37 / 517.65; }
  .hero__media::before,
  .hero__media img { width: 93.411%; height: 89.636%; border-radius: 42.467px; }
  .hero__media::before { left: 3.294%; top: 5.954%; transform: rotate(5deg); }
  .hero__media img { left: 4.389%; }


  /* How it works */
  .how { padding: 40px 0 80px; }
  .how__title { margin-bottom: 80px; font-size: 4.5rem; line-height: 5rem; }
  .steps { flex-direction: row; justify-content: center; gap: 25px; margin-right: 0; }
  .steps::before {
    content: ''; position: absolute; left: calc(50% - 434px); top: 31.95px; width: 893px; height: 2px; background: var(--pink);
  }
  .step { display: flex; flex-direction: column; align-items: center; flex: 0 0 280px; width: 280px; }
  .step:not(:last-child)::after { display: none; }
  .step__num { width: 65px; height: 65px; font-size: 2rem; }
  /* The numbered circles sit on a 306px rhythm, the columns below on 305px (as in Figma). */
  .step:nth-child(1) .step__num { translate: -1.5px 0; }
  .step:nth-child(2) .step__num { translate: -0.5px 0; }
  .step:nth-child(3) .step__num { translate: 0.5px 0; }
  .step:nth-child(4) .step__num { translate: 1.5px 0; }
  .step__body, .step:nth-child(n+3) .step__body { align-items: center; gap: 12px; max-width: none; width: 100%; text-align: center; }
  .step__art { width: 203.09px; height: 203.09px; }
  .step__title { font-size: 2rem; line-height: 1.4; white-space: nowrap; }
  .step__text { font-size: 1.125rem; line-height: 1.75rem; color: var(--text-80); }
  .step:nth-child(3) .step__text { max-width: 252px; }

  /* Parties and DIY kits */
  .features { height: 968px; padding: 91.086px 0 0; }
  .features__swirl { display: block; position: absolute; left: 0; top: 46.44px; width: 305px; max-width: none; }
  .features__title {
    margin-bottom: 54.7px; text-align: center; translate: -17.5px 0;
    font-size: 2.75rem; line-height: 1.2; letter-spacing: -0.0275rem;
  }
  .features__cards { flex-direction: row; justify-content: center; gap: 53.62px; translate: -2.31px 0; }
  .card { flex: none; width: 566.76px; height: 709px; gap: 32px; padding: 52.628px; border-radius: 32.386px; }
  .card--kits { padding-right: 52.628px; }
  .card picture { width: 461.5px; }
  .card__img { width: 461.5px; height: 341.07px; aspect-ratio: auto; border-radius: 32.386px; }
  .card__copy { width: 442px; gap: 16.193px; }
  .card__title { font-size: 2rem; line-height: 1.2; }
  .card__text { font-size: 1.25rem; line-height: 1.4; letter-spacing: -0.0125rem; color: var(--ink); }
  .card__actions { flex-direction: row; justify-content: center; gap: 16px; width: auto; }
  .card__actions .btn { width: auto; }
  .card__actions .btn--w188 { width: 188px; }
  .card__actions .btn--w240 { width: 240px; }

  /* Our story */
  .story { height: 680px; padding: 80px 64px; }
  .story__inner { flex-direction: row; justify-content: center; gap: 87px; max-width: 1100px; }
  .story__portrait { width: 440px; }
  .story__copy { width: 573px; flex: none; gap: 45px; }
  .story__title { width: 572.735px; font-size: 4.5rem; line-height: 5rem; }
  .story__text { max-width: 572px; gap: 28px; font-size: 1.25rem; line-height: 1.4; letter-spacing: -0.0125rem; color: var(--text-60); }
  .story__intro { color: var(--text-80); }
  .story__brush { right: auto; left: 470px; top: 64.03px; width: 150.94px; }

  /* FAQ */
  .faq { height: 1304px; padding: 121.449px 0 0; }
  .faq__inner { display: grid; grid-template-columns: 348px 657.59px; column-gap: 174px; align-items: start; width: 1180px; max-width: none; }
  /* Left column (heading, text and bulb). min-height covers the bulb so it never overlaps what comes after. */
  .faq__intro { position: relative; width: 413px; min-height: 509.7px; gap: 38px; translate: 0.77px -0.86px; }
  .faq__title { font-size: 2.75rem; line-height: 3.3125rem; letter-spacing: -0.0275rem; color: #131414; }
  .faq__text { font-size: 1.25rem; line-height: 1.4; letter-spacing: -0.0125rem; color: #676767; } /* Figma #6e6e6e; darkened for contrast */
  .faq__bulb { display: block; position: absolute; left: -20.77px; top: 245px; width: 237.74px; max-width: none; }
  .faq__list { gap: 27.4px; }
  .faq__item { border-radius: 24px; }
  .faq__item summary { gap: 18.266px; padding: 22.833px 24.355px; }
  .faq__q { font-weight: 400; font-size: 1.25rem; line-height: 1.4; letter-spacing: -0.0125rem; }
  .faq__icon { width: 45.666px; height: 45.666px; }
  .faq__item[open] summary { padding-bottom: 13.7px; }
  .faq__a { padding: 0 24.355px 22.833px; font-size: 1.125rem; line-height: 1.75rem; color: #757575; } /* Figma #7d7d7d; darkened for contrast */

  /* Studio waitlist */
  .waitlist { height: 477px; padding: 68.45px max(40px, calc((100% - 1152px) / 2)) 0; }
  .waitlist__copy { width: 654px; gap: 20px; }
  .label { font-size: 0.875rem; line-height: 1.375rem; letter-spacing: 0.0612rem; }
  .waitlist__title { font-size: 4.5rem; line-height: 5rem; white-space: nowrap; }
  .waitlist__text { width: 596px; font-size: 1.125rem; line-height: 1.75rem; }
  .waitlist__form {
    flex-direction: row; align-items: center; gap: 8px; margin-top: 4px;
    padding: 8px 8px 8px 28px; border-radius: 999px; background: var(--white);
  }
  .waitlist__form:focus-within { outline: 3px solid var(--black); outline-offset: 3px; }
  .waitlist__form input[type='email'] {
    flex: 1; min-width: 0; height: 4rem; padding: 0; border-radius: 0; background: transparent;
    font-size: 1.125rem; line-height: 1.75rem; letter-spacing: 0; outline: none;
  }
  .waitlist__form .btn { flex: none; width: 191px; height: 4rem; padding: 0; color: var(--white); }
  .form-status { margin-top: 4px; padding: 26px 28px; border-radius: 40px; }
  .waitlist__bowl { left: 731px; right: auto; top: 19px; width: 378.06px; }
  .waitlist__sparks--mobile { display: none; }
  .waitlist__sparks--desktop { display: block; left: 1096.27px; top: -8.5px; width: 95.62px; }

  /* Footer */
  .footer { height: 505px; padding: 75px 0 0; }
  .footer__inner { width: 1153px; max-width: none; margin-left: calc(50% - 576px); }
  .footer__top { display: flex; align-items: flex-start; gap: 49px; }
  .footer__brand { flex: 0 0 326px; }
  .footer__logo { width: 236px; height: 46.06px; margin-bottom: 25px; }
  .footer__logo img { left: -2.26px; top: -2.27px; width: 238.26px; }
  .footer__tagline { margin-bottom: 25px; font-size: 2rem; }
  .footer__text { margin-bottom: 25px; font-size: 1.125rem; line-height: 1.75rem; }
  .footer__brand .btn { width: 188px; font-family: var(--font); }
  .footer__groups { flex-direction: row; gap: 25px; margin-top: 0; }
  .footer__group:nth-child(1) { width: 170px; }
  .footer__group:nth-child(2) { width: 165px; }
  .footer__group:nth-child(3) { width: 160px; }
  .footer__group:nth-child(4) { width: 208px; }
  .footer__title { height: auto; margin-bottom: 12px; font-family: var(--font); font-size: 0.875rem; line-height: 1.375rem; letter-spacing: 0.0612rem; text-box: none; }
  .footer__group ul { gap: 12.8px; }
  .footer__bottom { margin-top: 41px; padding-top: 26px; }
  .footer__bottom img { margin-right: -3px; }
}

/* FAQ heading column stays in view while the questions scroll past (desktop, when the window is tall enough to show all of it) */
@media (min-width: 1240px) and (min-height: 640px) {
  .faq__intro { position: sticky; top: 64px; }
}

/* ==========================================================================
   Motion and interactions
   Reusable on every page. Nothing here changes layout, only opacity and
   transforms, so it never causes content to jump.

   - data-reveal on an element: it fades and rises into place the first time
     it scrolls into view. Variants:
       data-reveal="pop"    scales up with a little bounce (stickers, icons)
       data-reveal="swing"  swings in from a tilt (illustrations)
       data-reveal="draw"   an inline SVG line draws itself (needs pathLength="1")
       data-reveal="line"   no fade; draws the connector line of a .steps list
   - data-reveal-stagger on a parent: its data-reveal children arrive one by one.
   - Buttons, cards, step illustrations, the menu and FAQ items have hover and
     press feedback built in.
   People who turn on "reduce motion" on their device get none of it.
   ========================================================================== */

:root {
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --reveal-time: 0.8s;
}

@media (prefers-reduced-motion: no-preference) {

  /* ---- Scroll reveals ---- */
  .js [data-reveal] {
    transition: opacity var(--reveal-time) var(--ease-out), transform var(--reveal-time) var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
  }
  .js [data-reveal]:not(.is-visible) { opacity: 0; transform: translateY(1.5rem); }
  .js [data-reveal="pop"] { transition-timing-function: var(--ease-out), var(--ease-spring); }
  .js [data-reveal="pop"]:not(.is-visible) { transform: scale(0.6) rotate(-8deg); }
  .js [data-reveal="swing"]:not(.is-visible) { transform: rotate(-14deg) translateY(0.75rem); }
  .js [data-reveal="swing"] { transform-origin: 50% 0; }
  .js [data-reveal="draw"]:not(.is-visible),
  .js [data-reveal="line"]:not(.is-visible) { opacity: 1; transform: none; }
  .js [data-reveal="draw"] path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease-out) 0.15s; }
  .js [data-reveal="draw"].is-visible path { stroke-dashoffset: 0; }

  /* ---- Hero: the pink card settles into its tilt ---- */
  .hero__media::before { animation: hm-tilt 1s var(--ease-spring) 0.15s backwards; }
  .hero__media img { transition: transform 0.5s var(--ease-out); }
  .hero__media:hover img { transform: rotate(-1.5deg) translateY(-0.25rem); }

  /* ---- How it works: line draws, numbers pop, art bobs on hover ---- */
  .js .steps[data-reveal="line"]::before,
  .js .step::after { transition: transform 1.2s var(--ease-out) 0.2s; }
  .js .steps[data-reveal="line"]:not(.is-visible)::before { transform: scaleX(0); }
  .js .steps::before { transform-origin: 0 50%; }
  .js .step:not(.is-visible)::after { transform: scaleY(0); }
  .js .step::after { transform-origin: 50% 0; }
  .js .step__num { transition: scale 0.6s var(--ease-spring); transition-delay: calc(var(--reveal-delay, 0ms) + 0.15s); }
  .js .step:not(.is-visible) .step__num { scale: 0.4; }
  .step__art { transition: transform 0.45s var(--ease-spring); }
  .step:hover .step__art { transform: translateY(-0.375rem) rotate(-4deg); }
  .step:nth-child(even):hover .step__art { transform: translateY(-0.375rem) rotate(4deg); }

  /* ---- Buttons ---- */
  .btn { transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.25s var(--ease-spring), box-shadow 0.25s ease; }
  .btn:hover { transform: translateY(-0.125rem); box-shadow: 0 0.5rem 1.25rem -0.75rem rgba(214, 47, 61, 0.7); }
  .btn:active { transform: translateY(0) scale(0.97); box-shadow: none; transition-duration: 0.08s; }

  /* ---- Cards lift, photos zoom gently ---- */
  .card, .js .card[data-reveal] { transition: opacity var(--reveal-time) var(--ease-out), transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out); transition-delay: 0ms; }
  .js .card[data-reveal]:not(.is-visible) { transition-duration: var(--reveal-time); transition-delay: var(--reveal-delay, 0ms); }
  .card.is-visible:hover, .card.is-visible:focus-within,
  html:not(.js) .card:hover { transform: translateY(-0.375rem); box-shadow: 0 1.5rem 2.5rem -1.75rem rgba(15, 22, 28, 0.45); }
  .card picture { display: block; overflow: hidden; border-radius: 16px; }
  .card__img { transition: transform 0.7s var(--ease-out); }
  .card:hover .card__img { transform: scale(1.05); }

  /* ---- Menu links: underline grows from the middle ---- */
  .nav__menu a {
    background: linear-gradient(currentColor, currentColor) no-repeat 50% calc(100% - 0.25rem) / 0 0.125rem;
    transition: color 0.2s ease, background-size 0.3s var(--ease-out);
  }
  .nav__menu a:hover { background-size: 60% 0.125rem; }

  /* ---- FAQ: answers slide open and closed (browsers without support just open) ---- */
  .faq__item { interpolate-size: allow-keywords; }
  .js .faq__item[data-reveal] { transition: opacity var(--reveal-time) var(--ease-out) var(--reveal-delay, 0ms), transform var(--reveal-time) var(--ease-out) var(--reveal-delay, 0ms), box-shadow 0.3s ease; }
  .faq__item::details-content {
    block-size: 0; overflow: clip;
    transition: block-size 0.4s var(--ease-out), content-visibility 0.4s allow-discrete;
  }
  .faq__item[open]::details-content { block-size: auto; }
  .faq__item summary { transition: padding-bottom 0.4s var(--ease-out); }
  .faq__item:hover { box-shadow: 0 0.75rem 1.75rem -1.25rem rgba(15, 22, 28, 0.35); }
  .faq__item summary:hover .faq__icon { scale: 1.08; }
  .faq__icon { transition: background-color 0.2s ease, scale 0.25s var(--ease-spring); }

  /* ---- Stickers wiggle a little after they arrive. Each stops within 5 seconds
     (WCAG 2.2.2), so never make these loop forever. ---- */
  .waitlist__bowl.is-visible { animation: hm-float 2.4s ease-in-out 0.9s 2; }
  .waitlist__sparks.is-visible { animation: hm-twinkle 1.2s ease-in-out 0.9s 4; transform-origin: 0 100%; }
  .faq__bulb.is-visible { animation: hm-sway 2.4s ease-in-out 0.9s 2; transform-origin: 50% 0; }
  .js .story__brush.is-visible { transition: transform 0.5s var(--ease-spring); }
  .story__copy:hover .story__brush.is-visible { transform: rotate(-10deg); }

  /* ---- Arriving at the waitlist from a button: the form glows twice ---- */
  .waitlist__form.is-highlighted input[type='email'],
  .waitlist__form.is-highlighted { animation: hm-ring 1.1s ease-out 2; }
}

@media (prefers-reduced-motion: no-preference) and (min-width: 1240px) {
  .card picture { border-radius: 32.386px; }
  .waitlist__form.is-highlighted input[type='email'] { animation: none; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 1239px) {
  .waitlist__form.is-highlighted { animation: none; }
}

/* Printing always shows everything */
@media print {
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .js [data-reveal] path { stroke-dashoffset: 0 !important; }
}

@keyframes hm-tilt { from { transform: rotate(0deg) scale(0.94); } }
@keyframes hm-float { 50% { translate: 0 -0.5rem; rotate: 2deg; } }
@keyframes hm-twinkle { 50% { scale: 1.12; } }
@keyframes hm-sway { 50% { rotate: 3deg; } }
@keyframes hm-ring {
  0% { box-shadow: 0 0 0 0 rgba(214, 47, 61, 0.45); }
  100% { box-shadow: 0 0 0 0.875rem rgba(214, 47, 61, 0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
