/* =========================================================
   Keepbox — new landing page
   Vanilla CSS, no framework.
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

@font-face {
  font-family: "Founder Signature";
  src: url("../fonts/Austinronalle-BL9AV.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f6efe8;
  --bg-2: #f8ecec;
  --ink: #0f0f0f;
  --ink-soft: rgba(0, 0, 0, 0.72);
  --ink-muted: rgba(0, 0, 0, 0.55);
  --white: #ffffff;
  --pill-bg: #0c0c0c;
  --highlight-from: #ffac9f;
  --highlight-to: #dac8ce;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-cta: 0 2px 3px rgba(0, 0, 0, 0.06), 0 18px 30px rgba(0, 0, 0, 0.18);
  --shadow-icon: 0 2px 8px rgba(0, 0, 0, 0.1),
    0 2px 8px rgba(234, 150, 44, 0.5),
    0 10px 20px rgba(0, 0, 0, 0.1);
  --radius-pill: 999px;
  --font-display: ui-rounded, "SF Pro Rounded", "Avenir Next Rounded",
    "Nunito Sans", "SF Pro Display", "SF Pro Text", -apple-system,
    BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-hand: "Dekko", "Segoe Script", "Comic Sans MS", cursive;
  --container: 1280px;
  --nav-height: 88px;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  /* Reserve room at the top of the viewport for the fixed nav so that
     anchor-link jumps (e.g. clicking Features or Home) don't slide the
     target up underneath the nav. */
  scroll-padding-top: var(--nav-height);
}

/* Belt-and-braces: every anchor target also carries scroll-margin-top
   so the nav never overlaps the section's headline regardless of how
   the browser interprets scroll-padding-top with smooth scrolling. */
section[id],
.hero[id] {
  scroll-margin-top: var(--nav-height);
}

body {
  margin: 0;
  font-family: var(--font-display);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.4;
  overflow-x: hidden;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  color: inherit;
  background: transparent;
  border: 0;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* =========================================================
   Layout shell
   ========================================================= */

.page {
  position: relative;
  max-width: 100%;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
}

/* Background layers */
.bg-wash {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-color: #f3e9e2;
  background-image: url("https://res.cloudinary.com/dwpxmif3x/image/upload/c_limit,w_2400/f_auto,q_auto/v1777368024/website/hero-bg_k9htvd.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  pointer-events: none;
}

.bg-grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("https://res.cloudinary.com/dwpxmif3x/image/upload/v1777368024/website/grid_icelzc.svg");
  background-size: 1600px auto;
  background-repeat: repeat;
  background-attachment: fixed;
  opacity: 0.5;
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* =========================================================
   Navigation — sticky, frosted on scroll
   ========================================================= */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background-color 0.25s ease, box-shadow 0.3s ease,
    backdrop-filter 0.3s ease, padding 0.25s ease;
  padding: 4px 0;
}

.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px 32px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  transition: padding 0.25s ease;
}

/* Scrolled state — frosted glass, shrunk padding */
.nav--scrolled {
  background: rgba(246, 232, 228, 0.78);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 8px 20px rgba(60, 30, 30, 0.08);
}
.nav--scrolled .nav__inner {
  padding: 12px 32px;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateX(-12px);
  pointer-events: none;
  transition: opacity 0.35s ease 0.05s, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) 0.05s;
}
.nav--scrolled .nav__brand {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.nav__brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(234, 150, 44, 0.35),
    0 6px 14px rgba(0, 0, 0, 0.08);
  border: 2px solid #fff;
  object-fit: cover;
}

.nav__brand-name {
  color: var(--ink);
}

.nav__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  justify-self: center;
}

/* Get the app CTA in nav */
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 14px;
  background: var(--pill-bg);
  color: #fff;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.01em;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateX(12px) scale(0.92);
  pointer-events: none;
  transition: opacity 0.35s ease 0.05s,
    transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) 0.05s,
    background 0.2s ease;
}
.nav--cta-visible .nav__cta {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}
.nav__cta:hover {
  background: #1c1c1c;
}
.nav__cta-icon {
  display: inline-flex;
  width: 16px;
  height: 18px;
  color: #fff;
}
.nav__cta-icon svg {
  width: 100%;
  height: 100%;
}

.nav__link {
  font-size: 17px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.40);
  position: relative;
  padding: 6px 2px;
  transition: color 0.35s ease, opacity 0.35s ease;
}
.nav__link:hover {
  color: rgba(0, 0, 0, 0.75);
}
.nav__link--active {
  color: var(--ink);
}

.nav__menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 10px;
  border-radius: 10px;
}
.nav__menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav__menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav__menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px 24px 24px;
  margin: 0 16px 16px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}
.mobile-menu[data-open="true"] {
  display: flex;
}
.mobile-menu__link {
  font-weight: 700;
  font-size: 18px;
  padding: 14px 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  color: rgba(0, 0, 0, 0.55);
  transition: color 0.3s ease;
}
.mobile-menu__link:last-of-type {
  border-bottom: 0;
}
.mobile-menu__link--active {
  color: var(--ink);
}
.mobile-menu__cta {
  margin-top: 10px;
  text-align: center;
  padding: 14px 20px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-pill);
  font-weight: 800;
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: calc(var(--nav-height) + 18px) 32px 0;
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(560px, 720px);
  align-items: center;
  gap: 12px;
  max-height: 880px;
}

.hero__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 560px;
}

.hero__brand {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 2px;
}

.hero__brand-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  border: 4px solid #fff;
  box-shadow: var(--shadow-icon);
  object-fit: cover;
}

.hero__brand-wordmark {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(54px, 5.15vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: rgba(0, 0, 0, 0.92);
  display: flex;
  flex-direction: column;
  gap: 4px;
  white-space: nowrap;
}

.hero__title-line {
  display: block;
}

.hero__title-highlight {
  position: relative;
  display: inline-block;
  align-self: flex-start;
  padding: 0.025em 0.18em 0.06em;
}

.hero__title-highlight-bg {
  position: absolute;
  inset: 2% -3% -2%;
  background: linear-gradient(
    108deg,
    var(--highlight-from) 0%,
    var(--highlight-to) 116%
  );
  border-radius: 0;
  transform: rotate(-1.5deg);
  z-index: 0;
}

.hero__title-highlight-text {
  position: relative;
  z-index: 1;
  font-weight: 900;
  letter-spacing: -0.055em;
}

.hero__subtitle {
  margin: 0;
  font-size: clamp(20px, 1.72vw, 25px);
  font-weight: 500;
  color: var(--ink-soft);
  max-width: 470px;
  line-height: 1.4;
}

/* CTA */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 32px;
  width: 100%;
  max-width: 410px;
  background: var(--pill-bg);
  color: var(--white);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-cta);
  font-weight: 800;
  font-size: clamp(20px, 1.65vw, 22px);
  letter-spacing: -0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08),
    0 22px 36px rgba(0, 0, 0, 0.22);
}
.cta:active {
  transform: translateY(0);
}

.cta__icon {
  width: 24px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cta__icon svg {
  width: 100%;
  height: 100%;
}

.cta__label {
  flex: 1;
  text-align: center;
}

.cta__chevron {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  flex-shrink: 0;
}

/* Stats */
.stats {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  max-width: 410px;
  margin-top: 0;
}

.stats__item {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.stats__value {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.stats__star {
  color: #f5a623;
  font-weight: 900;
}

.stats__label {
  font-size: clamp(14px, 1.2vw, 16px);
  font-weight: 500;
  color: var(--ink-muted);
  margin-top: 2px;
}

/* =========================================================
   Shared section scaffolding
   ========================================================= */

.section-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.section-inner--narrow {
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.eyebrow--light {
  color: rgba(255, 255, 255, 0.65);
}

.section-title {
  margin: 0 0 56px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 3.6vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: var(--ink);
  max-width: 18ch;
}

/* =========================================================
   Features — Bento grid
   ========================================================= */

.features {
  position: relative;
  z-index: 1;
  padding: 72px 0 96px;
  background: #fff;
}
.features > .section-inner > .eyebrow,
.features > .section-inner > .section-title {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 18px;
}

.bento__card {
  position: relative;
  border-radius: 28px;
  padding: 28px;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 14px 36px rgba(190, 120, 120, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.35s ease;
}
.bento__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(190, 120, 120, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Asymmetric layout - desktop
   Row 1: gallery(3) + print(3)   ← both showcase cards together
   Row 2: scan(3) + life(3)
   Row 3: voice(2) + cloud(2) + share(2) */
.bento__card--gallery  { grid-column: span 3; }
.bento__card--scan     { grid-column: span 3; }
.bento__card--life     { grid-column: span 3; }
.bento__card--voice    { grid-column: span 2; }
.bento__card--cloud    { grid-column: span 2; }
.bento__card--share    { grid-column: span 2; }
.bento__card--print    { grid-column: span 3; }

/* Color themes */
.bento__card--gallery {
  background: linear-gradient(160deg, #e4eedb 0%, #c5dcae 100%);
}
.bento__card--scan {
  background: linear-gradient(160deg, #e4d8ff 0%, #d3c0ff 100%);
}
.bento__card--life {
  background: linear-gradient(170deg, #ffe6c9 0%, #fbd5a7 58%, #f5c58f 100%);
}
.bento__card--voice {
  background: linear-gradient(160deg, #eadcff 0%, #d4bdf5 100%);
}
.bento__card--cloud {
  background: linear-gradient(160deg, #d8eeff 0%, #bcd9f3 100%);
}
.bento__card--share {
  background: linear-gradient(160deg, #ffd8d4 0%, #ffbfb7 100%);
}
.bento__card--print {
  background: linear-gradient(150deg, #ffeeb2 0%, #ffdd7a 100%);
}

/* Subtle paper grid overlay (like the Figma) */
.bento__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.35) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.15) 60%, transparent);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.15) 60%, transparent);
  pointer-events: none;
  z-index: 0;
}

.bento__text {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 92%;
}

.bento__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 2.1vw, 34px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bento__title-plain {
  color: rgba(0, 0, 0, 0.78);
  font-weight: 600;
}

.bento__hl {
  align-self: flex-start;
  padding: 0.05em 0.28em 0.08em;
  color: var(--ink);
  font-weight: 900;
  border-radius: 6px;
  line-height: 1;
  box-shadow: inset 0 -0.05em 0 rgba(0, 0, 0, 0.04);
}
.bento__hl--violet { background: rgba(169, 144, 240, 0.6); }
.bento__hl--peach  { background: rgba(255, 170, 140, 0.65); }
.bento__hl--mint   { background: rgba(152, 214, 128, 0.7); }
.bento__hl--lilac  { background: rgba(194, 164, 240, 0.7); }
.bento__hl--sky    { background: rgba(145, 189, 235, 0.7); }
.bento__hl--coral  { background: rgba(255, 156, 148, 0.7); }
.bento__hl--sun    { background: rgba(255, 210, 90, 0.8); }

.bento__sub {
  margin: 4px 0 0;
  font-size: 15.5px;
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 38ch;
}

.bento__visual {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

/* =========================================================
   Bento card visuals + animations
   ========================================================= */

/* --- SCAN: animated scan-to-save, matches figma 4169:697 --- */
.bento__visual--scan {
  align-items: stretch;
  justify-content: center;
  margin-top: 12px;
  padding: 0;
  overflow: visible;
  position: relative;
  min-height: 260px;
}

/* The phone itself — thick purple rounded frame (figma 4169:611 / 3578:492).
   border-radius uses explicit X/Y so corners stay *circular* rather than
   stretching vertically with the tall aspect-ratio (746/1443 ≈ 0.517):
   horizontal radius = 18% of width, vertical radius = 18% * 0.517 = 9.3%
   of height. This yields equal-radius (pixel) corners matching the Figma. */
.scan-phone {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate3d(-50%, 14%, 0);
  width: clamp(220px, 56%, 320px);
  aspect-ratio: 746 / 1443;
  background: #c2a3f5;
  border-radius: 18% / 9.3%;
  padding: 4.8%;
  box-sizing: border-box;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.35),
    inset 0 -8px 16px rgba(120, 80, 180, 0.22);
  filter: drop-shadow(0 24px 38px rgba(120, 80, 180, 0.32))
    drop-shadow(0 6px 12px rgba(80, 50, 130, 0.18));
  isolation: isolate;
}

/* Inner frame aspect ratio is ~0.491 (slightly taller once padding removed),
   so we use 14% / 6.87% to keep the inner corner radius circular too. */
.scan-phone__frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 14% / 6.87%;
  overflow: hidden;
  isolation: isolate;
  transform: translateZ(0);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  /* Green "saved" background fills the scan area. During phases 1-4 the
     opaque desk photo covers it entirely. */
  background:
    radial-gradient(
      ellipse 90% 65% at 50% 45%,
      rgba(255, 255, 255, 0.55) 0%,
      rgba(255, 255, 255, 0) 70%
    ),
    linear-gradient(180deg, #efd06f 0%, #c9d070 40%, #8bbf63 100%);
}

/* The scan "stage" — holds the desk, clean overlay, artwork, and beam.
   Bottom 15% leaves room for the black bar + shutter button. */
.scan-stage {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 15%;
  overflow: hidden;
}

/* Layer 1 — original desk photo with pencils/paperclips. */
.scan-desk {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  z-index: 0;
}

/* Layer 2 — the "cleaned" background revealed top-down by the scan beam.
   During the scan it's a neutral cream/white (just "paper"); in phase 5
   it transitions to the warm green gradient matching figma 4169:614. */
.scan-clean {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0%;
  background:
    radial-gradient(
      ellipse 90% 65% at 50% 45%,
      rgba(255, 255, 255, 0.55) 0%,
      rgba(255, 255, 255, 0) 70%
    ),
    linear-gradient(180deg, #efd06f 0%, #c9d070 40%, #8bbf63 100%);
  opacity: 0;
  z-index: 1;
  will-change: height, opacity;
  /* The "paper white" tint layer — fades out as we move to the green
     saved state. */
}
.scan-clean::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #faf4ea;
  opacity: 0.95;
  transition: opacity 0s;
  will-change: opacity;
}
/* Layer 3 — the drawing, always visible, gently rotated like on the desk.
   Shadow is soft so the paper feels integrated with the scene (and doesn't
   read as a floating card on the revealed cream paper). */
.scan-artwork {
  position: absolute;
  top: 24%;
  left: 50%;
  width: 72%;
  height: auto;
  max-height: 82%;
  transform: translateX(-50%) rotate(4.2deg);
  z-index: 2;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.12))
    drop-shadow(0 1px 2px rgba(0, 0, 0, 0.08));
  will-change: transform, filter;
}

/* Scan beam — soft diffused glow (not a hard stripe). The leading edge is
   a cool blue "laser point" that fades up through a warm orange trail,
   matching figma node 4169:642 (Icon + Rectangle 178). */
.scan-beam {
  position: absolute;
  left: -10%;
  right: -10%;
  top: 0;
  height: 11%;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  will-change: transform, opacity;
  mix-blend-mode: screen;
}
.scan-beam__glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 102, 19, 0) 40%,
    rgba(255, 102, 19, 0.55) 82%,
    rgba(255, 102, 19, 0.85) 94%,
    rgba(23, 151, 255, 0.95) 100%
  );
}
.scan-beam__glow--wide {
  filter: blur(24px);
  opacity: 0.5;
}
.scan-beam__glow--narrow {
  filter: blur(8px);
  opacity: 0.75;
}
/* Sharp 2px-tall leading line — the actual scan position marker */
.scan-beam__line {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.85) 14%,
    #ffffff 50%,
    rgba(255, 255, 255, 0.85) 86%,
    rgba(255, 255, 255, 0) 100%
  );
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.85),
    0 0 14px rgba(23, 151, 255, 0.55);
  opacity: 0.9;
}

/* Flash — white overlay that pulses once on scan completion */
.scan-flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  z-index: 4;
}

/* Black bar at the bottom of the phone (hidden in saved phase) */
.scan-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 15%;
  background: #000;
  z-index: 5;
  will-change: opacity;
}

/* Shutter/check button container — absolute, centered, overlaps the bar. */
.scan-btn {
  position: absolute;
  left: 50%;
  bottom: 9%;
  width: 26%;
  aspect-ratio: 1 / 1;
  transform: translateX(-50%);
  z-index: 6;
  will-change: filter;
}

/* The coral shutter (default camera state) */
.scan-btn__shutter {
  position: absolute;
  inset: 0;
  opacity: 1;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
  will-change: opacity, transform;
}
.scan-btn__shutter img {
  width: 100%;
  height: 100%;
  display: block;
}

/* The checkmark (shown on "saved" state) — coral circle with white tick */
.scan-btn__check {
  position: absolute;
  inset: 0;
  background: #ffac9f;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.6);
  filter: drop-shadow(0 6px 12px rgba(255, 120, 100, 0.35));
  will-change: opacity, transform;
}
.scan-btn__check svg {
  width: 52%;
  height: 52%;
}

/* ===========================
   Animation — 4s master cycle
   Flow: idle → tap + flash (camera capture) → fast sweep → saved
   Phases (of the 4s cycle):
     0–18%     shutter press + camera flash
     22–27%    scan beam appears at top
     27–63%    beam sweeps top → bottom
     63–85%    save transition: drawing straightens, bar fades, shutter → check
     85–97.5%  "saved" state with checkmark on green bg
     97.5–100% reset back to desk scene
   =========================== */

        .bento__card--scan.is-inview .scan-clean {
          animation: scanCleanReveal 4s linear infinite;
        }
        /* Height tracks the beam's leading edge so the "scanned frontier"
           stays glued to the beam line throughout the sweep.
           Beam height = 11%, so bottom edge = (translateY + 100%) * 11%. */
        @keyframes scanCleanReveal {
          0%, 22%   { height: 0%;   opacity: 0; }
          27%       { height: 8%;   opacity: 1; }
          63%       { height: 100%; opacity: 1; }
          85%       { height: 100%; opacity: 1; }
          97.5%     { height: 100%; opacity: 1; }
          100%      { height: 0%;   opacity: 0; }
        }
.bento__card--scan.is-inview .scan-clean::before {
  animation: scanCleanWhite 4s ease infinite;
}
@keyframes scanCleanWhite {
  0%, 67%  { opacity: 0.95; }
  85%      { opacity: 0.8; }
  97.5%    { opacity: 0.8; }
  100%     { opacity: 0.95; }
}

        .bento__card--scan.is-inview .scan-beam {
          animation: scanBeamSweep 4s linear infinite;
        }
        /* Linear sweep = constant speed across the phone, no stalling.
           Beam is 11% of stage; translateY * 11% = leading-edge offset.
           At 12% the line sits just inside the top (~8% down); at 28%
           it reaches the stage bottom (~809%). Sweep = 16% of cycle = 1.28s. */
        @keyframes scanBeamSweep {
          0%, 22%   { transform: translateY(-150%); opacity: 0; }
          27%       { transform: translateY(-27%);  opacity: 1; }
          63%       { transform: translateY(809%);  opacity: 1; }
          70%       { transform: translateY(830%);  opacity: 0; }
          100%      { transform: translateY(830%);  opacity: 0; }
        }

/* Flash — fires on the button press, peaks near the bottom of the press,
   then fades out just before the beam appears. Simulates camera capture. */
.bento__card--scan.is-inview .scan-flash {
  animation: scanFlashPulse 4s ease-out infinite;
}
@keyframes scanFlashPulse {
  0%, 8%, 18%, 100% { opacity: 0; }
  13%                { opacity: 0.85; }
}

.bento__card--scan.is-inview .scan-artwork {
  animation: scanArtwork 4s cubic-bezier(0.45, 0, 0.35, 1) infinite;
}
@keyframes scanArtwork {
  0%, 63%  { transform: translateX(-50%) rotate(4.2deg) scale(1); }
  72%      { transform: translateX(-50%) rotate(3deg)   scale(0.98); }
  85%      { transform: translateX(-50%) rotate(0deg)   scale(1.05) translateY(2%); }
  97.5%    { transform: translateX(-50%) rotate(0deg)   scale(1.05) translateY(2%); }
  100%     { transform: translateX(-50%) rotate(4.2deg) scale(1); }
}

.bento__card--scan.is-inview .scan-bottom {
  animation: scanBottomBar 4s ease infinite;
}
@keyframes scanBottomBar {
  0%, 100% { opacity: 1; }
}

/* Shutter button — presses in at the capture moment (with the flash),
   stays visible during the sweep, then cross-fades to the checkmark. */
.bento__card--scan.is-inview .scan-btn__shutter {
  animation: scanShutter 4s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
}
@keyframes scanShutter {
  0%, 4%   { opacity: 1; transform: scale(1); }
  11%      { opacity: 1; transform: scale(0.86); }
  18%      { opacity: 1; transform: scale(1); }
  63%      { opacity: 1; transform: scale(1); }
  72%      { opacity: 1; transform: scale(0.85); }
  80%      { opacity: 0; transform: scale(0.6); }
  97.5%    { opacity: 0; transform: scale(0.6); }
  100%     { opacity: 1; transform: scale(1); }
}

.bento__card--scan.is-inview .scan-btn__check {
  animation: scanCheck 4s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
}
@keyframes scanCheck {
  0%, 72%  { opacity: 0; transform: scale(0.6); }
  85%      { opacity: 1; transform: scale(1.08); }
  90%      { opacity: 1; transform: scale(1); }
  97.5%    { opacity: 1; transform: scale(1); }
  100%     { opacity: 0; transform: scale(0.6); }
}

/* Respect user reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .bento__card--scan.is-inview .scan-clean,
  .bento__card--scan.is-inview .scan-beam,
  .bento__card--scan.is-inview .scan-flash,
  .bento__card--scan.is-inview .scan-artwork,
  .bento__card--scan.is-inview .scan-bottom,
  .bento__card--scan.is-inview .scan-btn__shutter,
  .bento__card--scan.is-inview .scan-btn__check {
    animation: none;
  }
  .scan-clean { height: 0%; }
  .scan-btn__check { opacity: 0; }
}

/* --- ORGANIZE: stacked avatars --- */
.avatars {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  justify-content: center;
}
.avatar {
  width: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transform: translateY(18px);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.5s ease;
  transition-delay: calc(var(--d, 0) * 0.12s);
}
.avatar--1 { --d: 0; }
.avatar--2 { --d: 1; }
.avatar--3 { --d: 2; }
.bento__card--organize.is-inview .avatar {
  transform: translateY(0);
  opacity: 1;
}
.avatar span {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 24px;
  color: #fff;
  border: 4px solid #fff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}
.avatar--1 span { background: linear-gradient(135deg, #ff9e7d, #ff7d6e); }
.avatar--2 span { background: linear-gradient(135deg, #7db4ff, #5a8ee0); }
.avatar--3 span { background: linear-gradient(135deg, #ffc66e, #ff9d54); }
.avatar em {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  letter-spacing: -0.01em;
}

/* --- LIFE: crayon drawing → 3D character video, matches figma 4169:699 ---
   Layout (top → bottom inside the visual area):
     • tall portrait stage that matches the Figma aspect (~3:4)
     • crayon drawing paper centered along the top, tilted slightly,
       floats ABOVE and partially over the top edge of the video frame
     • hand-drawn arrow curving from the right side of the paper into
       the top of the video
     • video frame with rounded corners fills the lower ~80% of the stage
*/
.bento__visual--life {
  display: block;
  padding: 0;
  margin-top: 20px;
  min-height: 360px;
}

/* Stage = top gutter (paper + arrow) + video frame below.
   Aspect is tuned so the video frame roughly matches the source video
   (1024×845 ≈ 1.21 landscape) — avoids cropping the dino's arms & tail. */
.life-stage {
  position: relative;
  width: 100%;
  min-height: 360px;
  /* Compact gutter so the drawing sits closer to the video while still
     tucking behind the white-bordered frame. */
  padding-top: 19%;
}

/* Video frame sits below the paper gutter. We let it size itself by
   its own aspect ratio so the source video isn't squished.
   z-index is HIGHER than the paper so the bottom of the drawing tucks
   behind the top edge of the frame (matching the Figma). */
.life-video {
  position: relative;
  width: 92%;
  margin: 0 auto;
  aspect-ratio: 1024 / 845;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, #f9cb84 0%, #f1b068 60%, #e59e58 100%);
  border: 6px solid #ffffff;
  box-shadow: 0 16px 32px rgba(120, 70, 30, 0.16);
  z-index: 2;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.35s;
}
.bento__card--life.is-inview .life-video {
  transform: translateY(0) scale(1);
}
.life-video__el {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Crayon drawing paper — centered along the top, tilted slightly.
   The bottom of the paper tucks BEHIND the white-bordered video frame
   (z-index lower than .life-video) like in the Figma. */
.life-paper {
  position: absolute;
  top: -4%;
  left: 50%;
  width: 38%;
  max-width: 200px;
  aspect-ratio: 3 / 4;
  transform: translateX(-60%) rotate(-4deg);
  z-index: 1;
  filter: drop-shadow(0 14px 22px rgba(95, 55, 20, 0.22))
    drop-shadow(0 3px 4px rgba(95, 55, 20, 0.14));
  animation: lifePaperFloat 5s ease-in-out infinite;
}
.life-paper img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
}
@keyframes lifePaperFloat {
  0%, 100% { transform: translateX(-60%) rotate(-4deg) translateY(0); }
  50%      { transform: translateX(-60%) rotate(-2.5deg) translateY(-5px); }
}

/* Hand-drawn curved arrow — starts at the top-right corner of the
   paper and arcs right then down into the top of the video frame. */
.life-arrow {
  position: absolute;
  top: 0;
  left: 62%;
  width: 10%;
  max-width: 60px;
  aspect-ratio: 1 / 4;
  z-index: 4;
  opacity: 0.9;
  pointer-events: none;
  filter: drop-shadow(0 2px 2px rgba(95, 55, 20, 0.12));
}
.life-arrow path {
  stroke-dasharray: 180;
  stroke-dashoffset: 180;
  animation: lifeArrowDraw 1.1s cubic-bezier(0.3, 0.7, 0.3, 1) 0.5s forwards;
}
.bento__card--life.is-inview .life-arrow path {
  animation-play-state: running;
}
@keyframes lifeArrowDraw {
  to { stroke-dashoffset: 0; }
}

/* --- VOICE / VIDEO NOTES card ---
   A portrait video of a child talking about their drawing, white
   border + drop shadow like the life card's dino video. The recorder
   pill sits as an overlay at the bottom of the video frame. */
.voice-video {
  position: relative;
  width: 100%;
  max-width: 220px;
  margin: 0 auto;
  aspect-ratio: 3 / 4;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(60, 30, 80, 0.14);
  border: 5px solid #ffffff;
  box-shadow: 0 14px 28px rgba(80, 50, 110, 0.22),
              0 2px 4px rgba(80, 50, 110, 0.12);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s;
}
.bento__card--voice.is-inview .voice-video {
  transform: translateY(0) scale(1);
}
.voice-video__el {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.recorder {
  /* Pill overlay anchored to the lower portion of the video frame. */
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 2;
  width: calc(100% - 20px);
  max-width: 200px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 999px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
}
.recorder__mic {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}
.recorder__mic svg { width: 100%; height: 100%; }
.recorder__stop {
  width: 26px;
  height: 26px;
  background: #fff;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}
.recorder__stop::after {
  content: "";
  position: absolute;
  inset: 30%;
  background: #000;
  border-radius: 2px;
}
.waveform {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 20px;
  flex: 1 1 auto;
}
.waveform span {
  display: block;
  width: 3px;
  background: #fff;
  border-radius: 2px;
  height: 30%;
  opacity: 0.7;
}
.bento__card--voice.is-inview .waveform span {
  animation: wave 1.1s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.08s);
}
@keyframes wave {
  0%, 100% { height: 30%; opacity: 0.55; }
  50%      { height: 95%; opacity: 1; }
}

/* --- CLOUD: toggle + cloud --- */
.bento__visual--cloud {
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  justify-content: flex-end;
}
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(40, 80, 130, 0.12);
}
.toggle-row__label {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.01em;
}
.toggle {
  position: relative;
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.12);
  transition: background 0.4s ease;
}
.toggle__knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18);
  transition: left 0.45s cubic-bezier(0.4, 1.6, 0.5, 1);
}
.bento__card--cloud.is-inview .toggle {
  background: #4fa76a;
  transition-delay: 0.25s;
}
.bento__card--cloud.is-inview .toggle__knob {
  left: 20px;
  transition-delay: 0.25s;
}
.cloud-icon {
  position: relative;
  align-self: center;
  width: 72px;
}
.cloud-icon svg { width: 100%; height: auto; display: block; }
.cloud-spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
  opacity: 0;
}
.cloud-spark--a { top: -12px; left: 20%; }
.cloud-spark--b { top: -8px;  left: 50%; }
.cloud-spark--c { top: -14px; right: 14%; }
.bento__card--cloud.is-inview .cloud-spark {
  animation: sparkle 1.8s ease-in-out infinite;
}
.bento__card--cloud.is-inview .cloud-spark--a { animation-delay: 0s; }
.bento__card--cloud.is-inview .cloud-spark--b { animation-delay: 0.5s; }
.bento__card--cloud.is-inview .cloud-spark--c { animation-delay: 1s; }
@keyframes sparkle {
  0%, 100% { opacity: 0; transform: translateY(0) scale(0.5); }
  50%      { opacity: 1; transform: translateY(-8px) scale(1); }
}

/* --- SHARE: orbit with avatars --- */
.orbit {
  position: relative;
  width: 200px;
  height: 160px;
  margin: 0 auto;
}
.orbit__ring {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  border-radius: 50%;
}
.orbit__ring--1 { width: 70px; height: 70px; }
.orbit__ring--2 { width: 130px; height: 130px; }
.orbit__ring--3 { width: 190px; height: 190px; }

.orbit__center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff7a6b, #ff5043);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(255, 80, 67, 0.4);
  z-index: 3;
}
.orbit__center svg { width: 20px; height: 20px; }

.orbit__avatar {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transform: scale(0.5);
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.4s ease;
  z-index: 2;
}
.orbit__avatar--mom  { top: 8%;  left: 12%;  --d: 0.15s; }
.orbit__avatar--dad  { top: 18%; right: 4%;  --d: 0.35s; }
.orbit__avatar--nana { bottom: 2%; left: 38%; --d: 0.55s; }
.bento__card--share.is-inview .orbit__avatar {
  opacity: 1;
  transform: scale(1);
  transition-delay: var(--d);
}
.orbit__avatar span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  border: 3px solid #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
.orbit__avatar--mom span  { background: linear-gradient(135deg, #ff9e7d, #ff6a6a); }
.orbit__avatar--dad span  { background: linear-gradient(135deg, #7aa4e8, #4d76c7); }
.orbit__avatar--nana span { background: linear-gradient(135deg, #d59ae0, #a56ed0); }
.orbit__avatar em {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
}

/* --- GALLERY: half-width card with stacked-iPhone visual --- */
.bento__card--gallery {
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  padding: 28px 30px 30px;
}
.bento__card--gallery .bento__text {
  flex: 0 0 auto;
  max-width: 100%;
}
.bento__card--gallery .bento__visual {
  flex: 1 1 auto;
  width: 100%;
  margin-top: 0;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Stack of two iPhones — front phone shows the gallery grid, back phone
   peeks out behind it. Flat front-on view; depth comes purely from the
   offset, scale and z-index of each phone (no 3D rotation). */
.gallery-stack {
  position: relative;
  width: 100%;
  height: clamp(260px, 22vw, 320px);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Shared iPhone — the green bezel (border + border-radius) lives on
   the .gallery-phone element itself. The inner .gallery-phone__frame
   carries the screen's aspect-ratio and holds the screenshot. */
.gallery-phone {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  /* Solid outer bezel — this IS the phone frame. */
  border: clamp(7px, 0.7vmin, 11px) solid #85ad6c;
  /* Rounded outer corners. Vertical % is roughly horizontal × phone
     aspect (~0.52) so corners stay pixel-circular. */
  border-radius: 14% / 7.3%;
  overflow: hidden;
  isolation: isolate;
  background: #000;
  box-sizing: border-box;
  filter: drop-shadow(0 26px 40px rgba(60, 90, 40, 0.28))
          drop-shadow(0 8px 14px rgba(60, 90, 40, 0.18));
  transform-origin: 50% 50%;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s;
}

/* Front phone — sits left of center, full size. */
.gallery-phone--front {
  z-index: 2;
  transform: translate(-70%, 12px) scale(0.97);
}
.bento__card--gallery.is-inview .gallery-phone--front {
  transform: translate(-70%, 0) scale(1);
}
.bento__card--gallery:hover .gallery-phone--front {
  transform: translate(-70%, -4px) scale(1);
}

/* Back phone — sits to the right of the front phone, bottom-aligned.
   transform-origin: 50% 100% means the scale anchors at the bottom-
   center, so a smaller phone still has its bottom edge level with
   the front phone's bottom. */
.gallery-phone--back {
  z-index: 1;
  transform-origin: 50% 100%;
  transform: translate(-10%, 12px) scale(0.88);
  filter: drop-shadow(0 22px 32px rgba(60, 90, 40, 0.22))
          drop-shadow(0 6px 10px rgba(60, 90, 40, 0.14));
}
.bento__card--gallery.is-inview .gallery-phone--back {
  transform: translate(-10%, 0) scale(0.94);
}
.bento__card--gallery:hover .gallery-phone--back {
  transform: translate(-7%, -4px) scale(0.96);
}

.gallery-phone__frame {
  position: relative;
  height: 100%;
  aspect-ratio: 603 / 1231;
  background: #000;
  /* Thin dark hairline between bezel and screen for a crisp edge. */
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.22);
}
.gallery-phone__shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* --- PRINT: half-width card with auto-flipping art book --- */
.bento__card--print {
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  padding: 28px 30px 30px;
  min-height: 0;
}
.bento__card--print .bento__text {
  flex: 0 0 auto;
  max-width: 100%;
}
.bento__card--print .bento__visual {
  flex: 1 1 auto;
  width: 100%;
  margin-top: 0;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* ---------- Art book flipbook ----------
   The visible book is a StPageFlip instance mounted on .artbook__stage.
   We render a static fallback image underneath and fade the stage in
   once the library has initialised (.artbook.is-ready). */
.artbook {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 2 / 1;
  margin: 0 auto;
  transform: perspective(1200px) rotateX(4deg);
  /* Hardback-style multi-layer shadow: short tight shadow under the
     book + a longer soft shadow + a hint of warmth beneath. */
  filter: drop-shadow(0 6px 4px rgba(80, 40, 40, 0.18))
          drop-shadow(0 22px 30px rgba(120, 60, 60, 0.22));
}
.artbook__stage {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.artbook.is-ready .artbook__stage {
  opacity: 1;
}

/* StPageFlip controls page sizing itself; these rules style the content
   of each page. StPageFlip wraps our .artbook-page elements with its own
   .stf__item / .stf__block wrappers at runtime. */
.artbook-page {
  background: #fdfaf3;
  overflow: hidden;
  position: relative;
}

/* Inner paper pages — The base element acts as the visible inside
   of the hard cover board. The ::before pseudo-element acts as the
   cream paper page resting on top of it, complete with a 3D stack
   of pages on the outer edge. */
.artbook-page--paper {
  background: #efcaca; /* Inside cover liner paper */
  box-shadow: inset 0 0 20px rgba(120, 60, 60, 0.08);
}

/* The cream paper page */
.artbook-page--paper::before {
  content: "";
  position: absolute;
  background: #fdfaf3;
  z-index: 0;
}

/* Left pages: cover board shows on top, bottom, and left.
   Spine is on the right. Page stack is on the left. */
.artbook-page--paper.artbook-page--left::before {
  top: 8px;
  bottom: 8px;
  left: 14px;
  right: 0;
  /* 3D page stack effect using multiple box-shadows */
  box-shadow:
    -1px 0 0 #fdfaf3,
    -2px 0 0 #e0dcd3,
    -3px 0 0 #fdfaf3,
    -4px 0 0 #e0dcd3,
    -5px 0 0 #fdfaf3,
    -6px 0 0 #cfc9bd,
    -10px 4px 12px rgba(80, 30, 30, 0.15);
}
/* Spine shadow overlay for left page */
.artbook-page--paper.artbook-page--left::after {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  right: 0;
  width: 40px;
  background: linear-gradient(90deg, transparent, rgba(80, 30, 30, 0.12));
  pointer-events: none;
  z-index: 5;
}

/* Right pages: cover board shows on top, bottom, and right.
   Spine is on the left. Page stack is on the right. */
.artbook-page--paper.artbook-page--right::before {
  top: 8px;
  bottom: 8px;
  left: 0;
  right: 14px;
  box-shadow:
    1px 0 0 #fdfaf3,
    2px 0 0 #e0dcd3,
    3px 0 0 #fdfaf3,
    4px 0 0 #e0dcd3,
    5px 0 0 #fdfaf3,
    6px 0 0 #cfc9bd,
    10px 4px 12px rgba(80, 30, 30, 0.15);
}
/* Spine shadow overlay for right page */
.artbook-page--paper.artbook-page--right::after {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 0;
  width: 40px;
  background: linear-gradient(270deg, transparent, rgba(80, 30, 30, 0.12));
  pointer-events: none;
  z-index: 5;
}

/* Hard covers — soft-pink linen hardback, à la a real photo book.
   The cover plate uses subtle multi-layer gradients to fake a cloth /
   linen weave, plus inset shadows along the spine and outer edge to
   suggest a thick board binding. */
.artbook-page--cover {
  background: #e8b6b6;
  color: #4a2a2a;
}
.artbook-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  padding: 10% 11% 11% 14%;
  /* Linen weave + soft top sheen + bottom shading for board volume */
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.05) 0 1px,
      transparent 1px 3px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.04) 0 1px,
      transparent 1px 3px
    ),
    radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, 0.28), transparent 55%),
    radial-gradient(120% 90% at 50% 110%, rgba(120, 60, 60, 0.18), transparent 55%),
    linear-gradient(135deg, #efc4c4 0%, #e6b1b1 55%, #d99a9a 100%);
  /* Hardcover edges: outer board bevel + spine shadow on the binding side */
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -2px 0 rgba(120, 60, 60, 0.25),
    inset 12px 0 18px -10px rgba(80, 30, 30, 0.55);
}

/* Hardcover spine + joint groove.
   A real book has a rounded spine that catches light, then a deep
   groove where the cover board hinges, then the flat cover board.
   We render this as a single complex gradient spanning the first ~15%
   of the cover width. */
.artbook-cover--front::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    /* Spine curve: dark edge fading into a bright highlight */
    rgba(255, 255, 255, 0.0) 0%,
    rgba(255, 255, 255, 0.4) 2%,
    rgba(255, 255, 255, 0.0) 4%,
    /* The deep hinge groove: sharp drop into shadow */
    rgba(80, 30, 30, 0.1) 5%,
    rgba(80, 30, 30, 0.4) 6.5%,
    /* Climb out of the groove onto the flat board */
    rgba(80, 30, 30, 0.1) 8%,
    rgba(255, 255, 255, 0.15) 9.5%,
    rgba(255, 255, 255, 0.0) 12%
  );
  mix-blend-mode: overlay;
  opacity: 0.9;
}

/* Front cover: giraffe artwork on top, title block at the bottom */
.artbook-cover__art {
  flex: 1 1 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 2%;
  min-height: 0;
}
.artbook-cover__art img {
  display: block;
  width: auto;
  max-width: 90%;
  max-height: 100%;
  height: 100%;
  object-fit: contain;
  /* Faint paper / printed-on-cover feel */
  filter: drop-shadow(0 2px 1px rgba(0, 0, 0, 0.06));
}
.artbook-cover__title-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-bottom: 0;
  margin-top: 12%;
}
.artbook-cover__title {
  font-family: "Fraunces", "Times New Roman", Georgia, serif;
  font-size: clamp(18px, 3.2vw, 28px);
  font-weight: 500;
  letter-spacing: 0.005em;
  line-height: 1.15;
  color: #2c1a1a;
  /* Subtle embossed feel against the linen */
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}
.artbook-cover__age {
  font-family: "Fraunces", "Times New Roman", Georgia, serif;
  font-size: clamp(12px, 1.8vw, 17px);
  font-weight: 400;
  color: #3a2222;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Back cover — same hardback shell, mirrored spine shadow + groove.
   The "Made with love / Keepbox" stamp sits centered along the bottom
   edge, like the publisher mark on a real book. */
.artbook-cover--back {
  justify-content: flex-end;
  align-items: center;
  padding: 10% 14% 14% 11%;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.40),
    inset 0 -2px 0 rgba(120, 60, 60, 0.22),
    inset -12px 0 18px -10px rgba(80, 30, 30, 0.55);
}
.artbook-cover__back-stamp {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.artbook-cover__made-with {
  font-family: "Fraunces", "Times New Roman", Georgia, serif;
  font-style: italic;
  font-size: clamp(8px, 1vw, 10px);
  color: rgba(74, 42, 42, 0.55);
  letter-spacing: 0.02em;
}
.artbook-cover__logo {
  font-family: var(--font-display), "SF Pro Rounded", sans-serif;
  font-weight: 900;
  font-size: clamp(12px, 1.8vw, 16px);
  letter-spacing: -0.01em;
  color: rgba(44, 26, 26, 0.45);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}
.artbook-cover--back::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    270deg,
    /* Spine curve: dark edge fading into a bright highlight */
    rgba(255, 255, 255, 0.0) 0%,
    rgba(255, 255, 255, 0.4) 2%,
    rgba(255, 255, 255, 0.0) 4%,
    /* The deep hinge groove: sharp drop into shadow */
    rgba(80, 30, 30, 0.1) 5%,
    rgba(80, 30, 30, 0.4) 6.5%,
    /* Climb out of the groove onto the flat board */
    rgba(80, 30, 30, 0.1) 8%,
    rgba(255, 255, 255, 0.15) 9.5%,
    rgba(255, 255, 255, 0.0) 12%
  );
  mix-blend-mode: overlay;
  opacity: 0.9;
}
/* Inner page layout: drawing + caption.
   Must be inset to match the paper ::before element exactly. */
.artbook-leaf {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10% 8% 8%;
  gap: 8px;
  z-index: 2;
}
/* Left pages: inset to match paper, push content slightly away from spine */
.artbook-leaf--left {
  top: 8px; bottom: 8px; left: 14px; right: 0;
  padding-right: 12%; padding-left: 6%;
}
/* Right pages: inset to match paper, push content slightly away from spine */
.artbook-leaf--right {
  top: 8px; bottom: 8px; left: 0; right: 14px;
  padding-left: 12%; padding-right: 6%;
}
/* Title page (which is a left page) */
.artbook-leaf--title {
  top: 8px; bottom: 8px; left: 14px; right: 0;
  justify-content: center;
  text-align: center;
  color: #5a3133;
  gap: 16px;
}
.artbook-leaf__label {
  font-family: var(--font-display), sans-serif;
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 700;
}
.artbook-leaf__title-main {
  font-family: var(--font-display), sans-serif;
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 900;
  line-height: 1.1;
}
.artbook-leaf__meta {
  font-family: var(--font-display), sans-serif;
  font-size: clamp(12px, 1.6vw, 14px);
  font-weight: 500;
  opacity: 0.7;
}
/* Title page: only the inner paper is blush pink — the outer cover
   board border matches every other page so the book frame stays
   consistent. */
.artbook-page--title::before {
  background: #f7dcdc !important;
}
/* Caption block beneath each drawing: parent's handwritten-style note
   + small age / date line. */
.artbook-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 4% 0;
  text-align: center;
}
.artbook-caption__note {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-size: clamp(9px, 1.3vw, 12px);
  line-height: 1.3;
  color: #5a3d0f;
}
.artbook-caption__age {
  font-family: var(--font-display), sans-serif;
  font-size: clamp(7px, 1vw, 9px);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(120, 80, 10, 0.55);
}

/* Endpaper facing the back cover — publisher-style colophon mark */
.artbook-leaf--endpaper {
  top: 8px; bottom: 8px; left: 0; right: 14px;
  justify-content: center;
  align-items: center;
}
.artbook-endpaper__mark {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(10px, 1.4vw, 12px);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(120, 80, 10, 0.35);
}

/* Drawing — sits flat on the paper, no frame or shadow. */
.artbook-drawing {
  flex: 0 1 auto;
  width: 92%;
  height: 72%;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}
.artbook-drawing--1 { background-image: url("https://res.cloudinary.com/dwpxmif3x/image/upload/c_limit,w_500/f_auto,q_auto/v1777368022/website/artbook/art-1_nnqfem.jpg"); }
.artbook-drawing--2 { background-image: url("https://res.cloudinary.com/dwpxmif3x/image/upload/c_limit,w_500/f_auto,q_auto/v1777368022/website/artbook/art-2_rubpjb.jpg"); }
.artbook-drawing--3 { background-image: url("https://res.cloudinary.com/dwpxmif3x/image/upload/c_limit,w_500/f_auto,q_auto/v1777368022/website/artbook/art-3_jelaxa.jpg"); }
.artbook-drawing--4 { background-image: url("https://res.cloudinary.com/dwpxmif3x/image/upload/c_limit,w_500/f_auto,q_auto/v1777368021/website/artbook/art-4_kbkyv9.jpg"); }
.artbook-drawing--5 { background-image: url("https://res.cloudinary.com/dwpxmif3x/image/upload/c_limit,w_500/f_auto,q_auto/v1777368022/website/artbook/art-5_kn8e4i.jpg"); }
.artbook-drawing--6 { background-image: url("https://res.cloudinary.com/dwpxmif3x/image/upload/c_limit,w_500/f_auto,q_auto/v1777368022/website/artbook/art-6_cs8pai.jpg"); }
.artbook-drawing--7 { background-image: url("https://res.cloudinary.com/dwpxmif3x/image/upload/c_limit,w_500/f_auto,q_auto/v1777368022/website/artbook/art-7_uuwaal.jpg"); }
.artbook-drawing--8 { background-image: url("https://res.cloudinary.com/dwpxmif3x/image/upload/c_limit,w_500/f_auto,q_auto/v1777368022/website/artbook/art-8_uoojf3.jpg"); }
.artbook-drawing--9 { background-image: url("https://res.cloudinary.com/dwpxmif3x/image/upload/c_limit,w_500/f_auto,q_auto/v1777368022/website/artbook/art-9_dy7aux.jpg"); }

/* StPageFlip adds its own inline styles; make sure our .artbook-page
   fills its wrapper and that the book sits flush inside .artbook. */
.artbook__stage .stf__parent { margin: 0 auto; }
.artbook-page { width: 100%; height: 100%; }

/* Gentle floating idle animation — only while not actively flipping. */
.bento__card--print.is-inview .artbook {
  animation: bookFloat 6s ease-in-out infinite;
}
@keyframes bookFloat {
  0%, 100% { transform: perspective(1200px) rotateX(4deg) translateY(0); }
  50%      { transform: perspective(1200px) rotateX(3deg) translateY(-6px); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .bento__card .phone__scanline,
  .bento__card .phone__shutter-dot,
  .bento__card .waveform span,
  .bento__card .life-paper,
  .bento__card .cloud-spark,
  .bento__card .artbook {
    animation: none !important;
  }
}

/* =========================================================
   FAQ
   ========================================================= */

.faq {
  position: relative;
  z-index: 1;
  padding: 88px 0 96px;
  background: #fff;
  overflow: hidden;
}

.faq__inner {
  position: relative;
  z-index: 1;
}

.faq__header {
  text-align: center;
  margin: 0 auto 36px;
}

.faq__header .section-title {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 14px;
}

.faq__intro {
  max-width: 520px;
  margin: 0 auto;
  font-size: clamp(17px, 1.35vw, 19px);
  line-height: 1.55;
  color: rgba(45, 36, 28, 0.58);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  position: relative;
  background: #fff;
  border: 1px solid rgba(90, 58, 32, 0.08);
  border-radius: 22px;
  padding: 0;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 8px 20px rgba(54, 32, 16, 0.035);
  overflow: hidden;
  transition: background 0.22s ease, border-color 0.22s ease,
    box-shadow 0.22s ease, transform 0.22s ease;
}

.faq-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, #ffd45e, #ffac9f);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.faq-item:hover {
  background: #fffdfa;
  border-color: rgba(255, 172, 159, 0.28);
  box-shadow:
    0 12px 24px rgba(255, 172, 159, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
  transform: translateY(-1px) rotate(-0.15deg);
}

.faq-item:hover::before,
.faq-item[open]::before {
  opacity: 1;
}

.faq-item[open] {
  background:
    radial-gradient(circle at 96% 12%, rgba(255, 213, 128, 0.13), transparent 22%),
    #fffdf8;
  border-color: rgba(255, 172, 159, 0.26);
  box-shadow:
    0 12px 28px rgba(184, 122, 104, 0.09),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
  transform: translateY(-1px);
}

.faq-item__q {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 22px 70px 22px 28px;
  font-size: clamp(17px, 1.45vw, 20px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item__q::-webkit-details-marker {
  display: none;
}
.faq-item__q:focus-visible {
  outline: 3px solid rgba(255, 172, 159, 0.44);
  outline-offset: -6px;
  border-radius: 20px;
}
.faq-item:hover .faq-item__q {
  color: #23170f;
}

.faq-item__toggle {
  position: absolute;
  right: 22px;
  top: 50%;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff7ee;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 5px 12px rgba(61, 42, 26, 0.055);
  transform: translateY(-50%);
  transition: transform 0.25s ease, background 0.25s ease,
    box-shadow 0.25s ease;
}

.faq-item:hover .faq-item__toggle {
  background: #ffac9f;
  box-shadow:
    0 9px 18px rgba(255, 172, 159, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.28) inset;
  transform: translateY(-50%) rotate(8deg) scale(1.03);
}

.faq-item:hover .faq-item__toggle::before,
.faq-item:hover .faq-item__toggle::after {
  background: #fff;
}

.faq-item__toggle::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(79, 47, 30, 0.72);
  -webkit-mask:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 18px 18px no-repeat;
  mask:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 18px 18px no-repeat;
  transition: background 0.25s ease;
}
.faq-item[open] .faq-item__toggle {
  background: #ffac9f;
  box-shadow:
    0 10px 18px rgba(255, 172, 159, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.28) inset;
  transform: translateY(-50%) rotate(180deg);
}
.faq-item[open]:hover .faq-item__toggle {
  transform: translateY(-50%) rotate(180deg) scale(1.04);
}
.faq-item[open] .faq-item__toggle::before,
.faq-item[open] .faq-item__toggle::after {
  background: #fff;
}

.faq-item__a {
  padding: 0 70px 24px 28px;
  margin-top: -6px;
  font-size: clamp(16px, 1.25vw, 17px);
  line-height: 1.66;
  color: rgba(45, 36, 28, 0.66);
  max-width: 68ch;
}
.faq-item__a a {
  color: #11100f;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(255, 172, 159, 0.7);
  text-underline-offset: 4px;
}

/* =========================================================
   About — a personal letter from the founder.
   The whole section reads like a piece of paper pinned
   to a warm cream wall: serif body, italic emphasis,
   handwritten signature, and a small monogram credit.
   ========================================================= */

.about {
  position: relative;
  z-index: 1;
  padding: 96px 0 112px;
  text-align: center;
  background:
    radial-gradient(circle at 18% 28%, rgba(255, 172, 159, 0.14), transparent 28%),
    radial-gradient(circle at 82% 72%, rgba(197, 220, 174, 0.14), transparent 30%),
    #fff;
  overflow: hidden;
}

/* Subtle paper-grain wash so the section feels like a tabletop
   rather than a flat color. Kept very faint — under 4% opacity. */
.about::before {
  content: none;
}

.about::after {
  content: none;
}

.about__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about .eyebrow {
  margin-bottom: 26px;
  color: rgba(43, 31, 22, 0.48);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}
.about__header {
  max-width: 760px;
  margin: 0 auto 58px;
}
.about__header .eyebrow {
  margin-bottom: 14px;
}
.about__header .section-title {
  margin: 0 auto 18px;
}
.about__intro {
  max-width: 620px;
  margin: 0 auto;
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.65;
  color: rgba(40, 29, 20, 0.7);
}

/* The "paper" itself ----------------------------------------------------- */

.letter {
  position: relative;
  width: 100%;
  max-width: 760px;
  padding: 76px 76px 68px;
  text-align: left;
  background: #fffaf1;
  background-image:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.72) 0%,
      rgba(255, 255, 255, 0) 42%
    ),
    radial-gradient(
      120% 80% at 100% 0%,
      rgba(255, 205, 152, 0.2) 0%,
      transparent 55%
    ),
    radial-gradient(
      120% 80% at 0% 100%,
      rgba(181, 135, 96, 0.12) 0%,
      transparent 55%
    );
  border-radius: 10px 8px 12px 8px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 0 0 1px rgba(72, 46, 24, 0.075),
    0 20px 44px rgba(69, 46, 24, 0.14),
    0 54px 100px rgba(69, 46, 24, 0.14);
  /* A whisper of rotation so the letter feels hand-pinned. */
  transform: rotate(-0.35deg);
}

.letter::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background-image:
    repeating-linear-gradient(
      90deg,
      rgba(80, 52, 28, 0.022) 0 1px,
      transparent 1px 7px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(80, 52, 28, 0.018) 0 1px,
      transparent 1px 9px
    );
  opacity: 0.55;
  pointer-events: none;
}

.letter > * {
  position: relative;
  z-index: 1;
}

/* Two short washi-tape strips pinning the top corners. */
.letter__tape {
  position: absolute;
  top: -14px;
  z-index: 2;
  width: 112px;
  height: 27px;
  background: rgba(255, 213, 128, 0.72);
  background-image:
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.24) 0 6px,
      rgba(255, 255, 255, 0) 6px 12px
    );
  box-shadow:
    0 5px 12px rgba(60, 40, 20, 0.13),
    0 1px 0 rgba(255, 255, 255, 0.4) inset;
  border-radius: 2px;
  backdrop-filter: blur(2px);
}
.letter__tape--left {
  left: 14%;
  transform: rotate(-7deg);
}
.letter__tape--right {
  right: 14%;
  transform: rotate(6deg);
  background: rgba(255, 177, 165, 0.66);
  background-image:
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.22) 0 6px,
      rgba(255, 255, 255, 0) 6px 12px
    );
}

/* Founder photo, treated like a taped Polaroid sitting on the letter. */
.letter__polaroid {
  position: relative;
  z-index: 1;
  float: right;
  width: clamp(168px, 21vw, 218px);
  margin: -8px -18px 24px 36px;
  padding: 10px 10px 24px;
  background: #fffdf7;
  border-radius: 3px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 0 0 1px rgba(72, 46, 24, 0.06),
    0 12px 28px rgba(55, 34, 18, 0.16);
  transform: rotate(3.2deg);
  transform-origin: center center;
}

.letter__polaroid::before {
  content: "";
  position: absolute;
  top: -13px;
  left: 50%;
  z-index: 2;
  width: 76px;
  height: 23px;
  background: rgba(255, 213, 128, 0.58);
  background-image:
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.28) 0 5px,
      rgba(255, 255, 255, 0) 5px 10px
    );
  border-radius: 2px;
  box-shadow: 0 4px 9px rgba(60, 40, 20, 0.12);
  transform: translateX(-50%) rotate(-4deg);
  backdrop-filter: blur(2px);
}

.letter__polaroid-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 32%;
  border-radius: 2px;
  filter: saturate(0.94) contrast(0.98) brightness(1.03);
}

.letter__polaroid-caption {
  margin-top: 11px;
  text-align: center;
  font-family: "Cedarville Cursive", "Allura", "Snell Roundhand",
    "Apple Chancery", "Brush Script MT", cursive;
  font-weight: 400;
  font-size: 20px;
  line-height: 1;
  color: rgba(79, 47, 30, 0.78);
  transform: rotate(-1deg);
}

/* Greeting — large serif italic, the "Dear parents," line. */
.letter__greeting {
  margin: 0 0 30px;
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #23170f;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Body — warm serif, generous leading, slightly muted ink. */
.letter__body {
  max-width: 34.5em;
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(17px, 1.28vw, 18.5px);
  line-height: 1.82;
  color: rgba(40, 29, 20, 0.82);
}
.letter__body p {
  margin: 0 0 19px;
}
.letter__body p:last-child {
  margin-bottom: 0;
}
.letter__body p:first-child {
  font-size: 1.04em;
  font-weight: 400;
  color: rgba(35, 23, 15, 0.88);
}
.letter__body ul {
  margin: -4px 0 22px;
  padding-left: 1.15em;
}
.letter__body li {
  margin: 0 0 7px;
}
.letter__body hr {
  width: 100%;
  height: 1px;
  margin: 28px 0;
  border: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(78, 49, 25, 0.18) 18%,
    rgba(78, 49, 25, 0.12) 76%,
    transparent
  );
}
.letter__body em {
  font-style: italic;
  font-weight: 600;
  color: #2a1b12;
}

/* Sign-off block ---------------------------------------------------------- */

.letter__signoff {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-top: 38px;
  padding-top: 30px;
  border-top: 0;
}

.letter__signoff::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(78, 49, 25, 0.08),
    rgba(78, 49, 25, 0.2) 18%,
    rgba(78, 49, 25, 0.12) 76%,
    transparent
  );
}

.letter__signoff-text {
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(18px, 1.3vw, 20px);
  color: rgba(52, 35, 23, 0.72);
  margin-bottom: 4px;
}

/* The handwritten signature uses Adil's chosen local signature face. */
.letter__signature {
  position: relative;
  display: inline-block;
  font-family: "Founder Signature", "Snell Roundhand",
    "Apple Chancery", "Brush Script MT", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(42px, 4.7vw, 60px);
  line-height: 0.95;
  color: #3f2618;
  letter-spacing: -0.02em;
  transform: rotate(-4deg);
  transform-origin: left center;
  margin: 10px 0 16px;
  text-shadow:
    0 0.5px 0 rgba(63, 38, 24, 0.16),
    0 0 0.75px rgba(63, 38, 24, 0.18);
}

/* Founder credit row: monogram + role copy. */
.letter__role {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 2px;
  padding: 10px 14px 10px 10px;
  border-radius: 999px;
  background: rgba(255, 244, 226, 0.55);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.letter__avatar {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 30%;
  border: 2px solid rgba(255, 250, 241, 0.95);
  box-shadow:
    0 0 0 3px rgba(103, 64, 41, 0.08),
    0 5px 12px rgba(54, 32, 16, 0.2);
  flex-shrink: 0;
}

.letter__role-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  color: #26190f;
  line-height: 1.3;
}
.letter__role-sub {
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0.01em;
}

/* Testimonials ----------------------------------------------------------- */

.testimonials {
  width: 100%;
  margin-top: 96px;
  text-align: center;
}

.testimonials .eyebrow {
  margin-bottom: 12px;
}

.testimonials__title {
  max-width: 16ch;
  margin: 0 auto 30px;
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: rgba(22, 18, 15, 0.94);
}
.testimonials__title span {
  color: #ff8f84;
}

.testimonials__reviews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.review-card {
  position: relative;
  display: grid;
  grid-template-rows: 320px 1fr;
  border-radius: 26px;
  background: #fff;
  border: 1px solid rgba(90, 58, 32, 0.08);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 12px 28px rgba(54, 32, 16, 0.06);
  overflow: hidden;
  text-align: left;
  transition: transform 0.22s ease, box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 172, 159, 0.28);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 20px 38px rgba(184, 122, 104, 0.13);
}

.review-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #fff7ee;
}

.review-card__copy {
  padding: 20px;
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 213, 128, 0.14), transparent 28%),
    #fff;
}

.review-card__title {
  margin: 0 0 6px;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.035em;
  color: #14100d;
}

.review-card__stars {
  margin: 0 0 12px;
  color: #ffbf62;
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0.04em;
}

.review-card__quote {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(45, 36, 28, 0.7);
}

.review-card__name {
  margin: 16px 0 0;
  font-size: 14px;
  font-weight: 900;
  color: #17120f;
}
.review-card__name span {
  display: block;
  margin-top: 2px;
  font-weight: 600;
  color: var(--ink-muted);
}

.social-testimonials {
  margin-top: 48px;
}

.social-testimonials__eyebrow {
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(43, 31, 22, 0.48);
}

.social-testimonials__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.social-player-card {
  position: relative;
  width: 100%;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(90, 58, 32, 0.08);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 10px 24px rgba(54, 32, 16, 0.055);
  transition: transform 0.22s ease, border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.social-player-card {
  overflow: hidden;
}

.social-player-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 172, 159, 0.28);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 18px 34px rgba(184, 122, 104, 0.12);
}

.social-player-card__frame {
  display: block;
  width: 100%;
  height: clamp(300px, 34vw, 420px);
  border: 0;
  background: #fff;
}

/* =========================================================
   Contact
   ========================================================= */

.contact {
  position: relative;
  z-index: 1;
  padding: 24px 0 92px;
  background:
    radial-gradient(circle at 18% 28%, rgba(255, 172, 159, 0.14), transparent 28%),
    radial-gradient(circle at 82% 72%, rgba(197, 220, 174, 0.14), transparent 30%),
    #fff;
}

.contact__inner {
  display: flex;
  justify-content: center;
}

.contact__card {
  position: relative;
  width: 100%;
  max-width: 680px;
  padding: clamp(30px, 4vw, 44px);
  border-radius: 34px;
  background:
    radial-gradient(circle at 12% 14%, rgba(255, 213, 128, 0.34), transparent 30%),
    radial-gradient(circle at 88% 88%, rgba(216, 238, 255, 0.62), transparent 36%),
    linear-gradient(145deg, #fffaf2 0%, #fff0ee 56%, #f3edff 100%);
  color: var(--ink);
  text-align: center;
  overflow: hidden;
  border: 1px solid rgba(122, 76, 48, 0.08);
  box-shadow:
    0 22px 52px rgba(184, 122, 104, 0.13),
    0 1px 0 rgba(255, 255, 255, 0.95) inset;
  isolation: isolate;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.35s ease;
}
.contact__card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 28px 64px rgba(184, 122, 104, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.95) inset;
}
.contact__card::before {
  content: "";
  position: absolute;
  top: 24px;
  right: 28px;
  width: 20px;
  height: 20px;
  z-index: 1;
  background: #ffd45e;
  clip-path: polygon(50% 0%, 61% 34%, 98% 35%, 68% 56%, 79% 91%, 50% 70%, 21% 91%, 32% 56%, 2% 35%, 39% 34%);
  transform: rotate(14deg);
  opacity: 0.9;
  pointer-events: none;
  transition: transform 0.3s ease;
}
.contact__card:hover::before {
  transform: rotate(26deg) scale(1.08);
}
.contact__copy {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}
.contact__copy .eyebrow {
  color: rgba(61, 42, 26, 0.58);
}

.contact__title {
  margin: 0 auto 14px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  color: rgba(22, 18, 15, 0.95);
  max-width: 14ch;
}

.contact__body {
  margin: 0 auto 24px;
  max-width: 32em;
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.5;
  color: rgba(45, 36, 28, 0.68);
}

.contact__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 22px;
  background: #11100f;
  color: #fff;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  box-shadow:
    0 12px 24px rgba(53, 36, 24, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.14) inset;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}
.contact__cta:hover {
  transform: translateY(-2px) rotate(-1deg);
  background: #221d19;
  box-shadow:
    0 16px 30px rgba(53, 36, 24, 0.24),
    0 1px 0 rgba(255, 255, 255, 0.18) inset;
}
.contact__mail {
  width: 26px;
  height: 22px;
  display: inline-flex;
  flex-shrink: 0;
  color: #fff;
  transition: transform 0.22s ease;
}
.contact__mail svg {
  width: 100%;
  height: 100%;
}
.contact__cta:hover .contact__mail {
  transform: translateY(-2px) rotate(-6deg);
}

/* =========================================================
   Footer
   ========================================================= */

.footer {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, #fff 0%, #fffaf5 100%);
  border-top: 1px solid rgba(85, 55, 30, 0.06);
  padding: 34px 0 38px;
}

.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 22px 28px;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.footer__brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(234, 150, 44, 0.3),
    0 4px 10px rgba(0, 0, 0, 0.06);
  object-fit: cover;
}

.footer__nav {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  border-radius: var(--radius-pill);
  background: rgba(246, 239, 232, 0.72);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}
.footer__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-soft);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.footer__nav a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  transform: translateY(-1px);
}

.footer__social {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: rgba(15, 15, 15, 0.72);
  background: rgba(246, 239, 232, 0.72);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease,
    box-shadow 0.2s ease;
}

.footer__social-link:hover {
  color: #fff;
  background: #11100f;
  box-shadow: 0 8px 18px rgba(53, 36, 24, 0.16);
  transform: translateY(-2px) rotate(-3deg);
}

.footer__social-link svg {
  width: 19px;
  height: 19px;
}

.footer__copy {
  grid-column: 1 / -1;
  justify-self: center;
  margin: 0;
  font-size: 14px;
  color: var(--ink-muted);
  text-align: center;
  white-space: nowrap;
}

/* =========================================================
   Responsive overrides for new sections
   ========================================================= */

@media (max-width: 1100px) {
  .nav__inner {
    padding: 20px 24px;
  }
  .nav--scrolled .nav__inner {
    padding: 10px 24px;
  }
  .nav__cta {
    padding: 8px 14px 8px 12px;
    font-size: 14px;
  }
  .features,
  .faq,
  .about {
    padding-left: 0;
    padding-right: 0;
  }
  .section-inner {
    padding: 0 24px;
  }
  .section-title {
    margin-bottom: 40px;
  }
  .letter {
    padding: 56px 48px 52px;
  }
  .letter__polaroid {
    width: clamp(154px, 23vw, 190px);
    margin-right: -10px;
    margin-left: 28px;
  }
  .letter__polaroid-caption {
    font-size: 19px;
  }
  .letter__tape--left  { left: 12%; }
  .letter__tape--right { right: 12%; }

  /* Bento — tablet layout: 4 cols, simpler spans */
  .bento {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }
  .bento__card--gallery  { grid-column: span 4; }
  .bento__card--gallery {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px;
    gap: 20px;
  }
  .bento__card--gallery .bento__visual {
    width: 100%;
    min-height: 380px;
  }
  .bento__card--gallery .gallery-stack {
    height: clamp(300px, 46vw, 380px);
  }
  .bento__card--scan     { grid-column: span 4; grid-row: auto; min-height: 560px; }
  .bento__visual--scan   { min-height: 360px; }
  .bento__card--scan .scan-phone {
    width: clamp(220px, 38%, 280px);
    transform: translate(-50%, 10%);
  }
  .bento__card--life     { grid-column: span 2; }
  .bento__card--voice    { grid-column: span 2; }
  .bento__card--cloud    { grid-column: span 2; }
  .bento__card--share    { grid-column: span 2; }
  .bento__card--print    { grid-column: span 4; }
  .bento__card--print {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px;
  }
  .bento__card--print .bento__visual {
    min-height: 200px;
    width: 100%;
  }

  .contact__card {
    max-width: 680px;
  }
  .contact__copy {
    max-width: 100%;
    text-align: center;
  }
  .contact__cta {
    margin-left: auto;
    margin-right: auto;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 20px;
    text-align: center;
  }
  .footer__brand,
  .footer__nav,
  .footer__social,
  .footer__copy {
    justify-self: center;
  }
  .footer__copy {
    text-align: center;
    white-space: normal;
  }
}

@media (max-width: 700px) {
  .bento {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .bento__card--gallery,
  .bento__card--scan,
  .bento__card--life,
  .bento__card--voice,
  .bento__card--cloud,
  .bento__card--share,
  .bento__card--print {
    grid-column: span 1;
    min-height: 0;
  }
  .bento__card--gallery {
    min-height: 540px;
  }
  .bento__card--gallery .gallery-stack {
    height: clamp(280px, 78vw, 360px);
  }
  .bento__card--scan {
    min-height: 620px;
  }
  .bento__visual--scan {
    min-height: 380px;
  }
  .scan-phone {
    width: clamp(200px, 58%, 260px);
    transform: translate(-50%, 10%);
  }
  .bento__card {
    padding: 24px 22px;
    border-radius: 24px;
  }
  .bento__title {
    font-size: 26px;
  }
  .bento__card--print .bento__visual {
    min-height: clamp(170px, 52vw, 220px);
  }
  .bento__card--life {
    padding-bottom: 28px;
  }
  .bento__visual--life {
    margin-top: 8px;
    min-height: 0;
  }
  .life-stage {
    min-height: 0;
    padding-top: 28%;
  }
  .life-video {
    width: 88%;
    border-width: 5px;
    border-radius: 22px;
  }
  .life-paper {
    top: 4%;
    width: 32%;
    max-width: 150px;
    transform: translateX(-70%) rotate(-4deg);
    animation-name: lifePaperFloatMobile;
  }
  .life-arrow {
    top: 9%;
    left: 59%;
    width: 8%;
    max-width: 42px;
  }
  @keyframes lifePaperFloatMobile {
    0%, 100% { transform: translateX(-70%) rotate(-4deg) translateY(0); }
    50%      { transform: translateX(-70%) rotate(-2.5deg) translateY(-4px); }
  }
  .artbook {
    width: min(100%, 560px);
    max-width: 100%;
  }
  .features,
  .faq {
    padding: 56px 0 64px;
  }
  .faq__header {
    margin-bottom: 24px;
  }
  .faq__intro {
    font-size: 16.5px;
  }
  .faq-list {
    gap: 10px;
  }
  .faq-item {
    border-radius: 20px;
  }
  .faq-item__q {
    font-size: 17px;
    padding: 20px 58px 20px 22px;
  }
  .faq-item__toggle {
    right: 18px;
    width: 30px;
    height: 30px;
  }
  .faq-item__a {
    padding: 0 58px 22px 22px;
    font-size: 15.5px;
  }
  .about {
    padding: 64px 0 80px;
  }
  .letter {
    padding: 44px 28px 40px;
    transform: none;
    border-radius: 8px;
  }
  .letter__polaroid {
    float: none;
    width: min(220px, 72%);
    margin: 0 auto 34px;
    transform: rotate(2deg);
  }
  .letter__polaroid-caption {
    font-size: 20px;
  }
  .letter__tape--left {
    left: 8%;
    width: 92px;
    height: 22px;
    top: -11px;
  }
  .letter__tape--right {
    right: 8%;
    width: 92px;
    height: 22px;
    top: -11px;
  }
  .letter__signoff {
    margin-top: 28px;
    padding-top: 22px;
  }
  .letter__signature {
    font-size: clamp(42px, 12vw, 56px);
  }
  .testimonials {
    margin-top: 72px;
  }
  .testimonials__reviews,
  .social-testimonials__grid {
    grid-template-columns: 1fr;
  }
  .review-card {
    grid-template-rows: auto 1fr;
    border-radius: 22px;
  }
  .review-card__photo {
    height: 300px;
  }
  .review-card__copy {
    padding: 18px;
  }
  .social-testimonials {
    margin-top: 36px;
  }
  .social-testimonials__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .social-player-card {
    border-radius: 20px;
  }
  .social-player-card__frame {
    height: 390px;
  }
  .contact {
    padding: 16px 0 72px;
  }
  .section-inner {
    padding: 0 20px;
  }
  .contact__card {
    min-height: auto;
    padding: 38px 24px 34px;
    border-radius: 28px;
  }
  .contact__card::after {
    inset: 12px;
    border-radius: 22px;
  }
  .contact__title {
    font-size: clamp(32px, 10vw, 44px);
  }
  .contact__body {
    font-size: 16.5px;
  }
  .contact__cta {
    width: 100%;
    justify-content: center;
    padding: 14px 18px;
    gap: 10px;
    font-size: 17px;
  }
  .footer__nav {
    gap: 4px;
    padding: 5px;
  }
  .footer__nav a {
    min-height: 32px;
    padding: 7px 10px;
    font-size: 14px;
  }
  .nav__cta {
    padding: 8px 13px 8px 11px;
  }
}

/* =========================================================
   Hero Visual — single composited image.
   ========================================================= */

.hero__visual {
  position: relative;
  width: 100%;
  align-self: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__visual picture,
.hero__visual-image {
  width: 100%;
  max-width: 720px;
  height: auto;
  display: block;
}
.hero__visual picture img {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: minmax(380px, 1fr) minmax(500px, 620px);
    gap: 10px;
  }
  .hero__visual-image {
    max-width: 620px;
  }
}

/* iPad portrait (Mini 744, Air 820, Pro 11" 834, Pro 13" 1024) and
   phones — single-column centered layout. iPad landscape stays in
   2-column mode above 1100px. */
@media (max-width: 1100px) {
  .nav__links {
    display: none;
  }
  /* Brand stays visible on tablet/mobile; the app CTA still waits until
     after the hero so it does not compete with the hero CTA. */
  .nav__brand {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    transition: none;
  }
  .nav__menu-btn {
    display: flex;
    margin-left: auto;
    margin-right: -10px;
  }
  .nav__inner {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .nav__cta {
    display: none;
    margin-left: auto;
  }
  .nav--cta-visible .nav__cta {
    display: inline-flex;
  }
  .nav--cta-visible .nav__menu-btn {
    margin-left: 0;
  }
  .mobile-menu {
    margin: 0 16px 16px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: calc(var(--nav-height) + 16px) 24px 0;
    gap: 8px;
    min-height: unset;
    max-height: none;
  }

  .hero__brand {
    display: none;
  }
  .hero__copy {
    align-items: center;
    text-align: center;
    max-width: 100%;
  }
  .hero__title {
    white-space: normal;
    align-items: center;
  }
  .hero__title-highlight {
    align-self: center;
  }
  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .cta {
    margin-left: auto;
    margin-right: auto;
  }
  .stats {
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
  }
  .hero__visual picture,
  .hero__visual-image,
  .hero__visual picture img {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 620px) {
  .hero__brand-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
  }
  .hero__brand-wordmark {
    height: 40px;
  }

  .hero__title {
    font-size: clamp(36px, 10.5vw, 56px);
    white-space: normal;
  }

  .hero__subtitle {
    font-size: 17px;
    max-width: 100%;
  }

  .cta {
    padding: 14px 20px;
    font-size: 17px;
    gap: 12px;
    max-width: 100%;
  }
  .cta__icon {
    width: 20px;
    height: 24px;
  }
  .cta__chevron {
    width: 18px;
    height: 18px;
  }

  .stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: -4px;
    max-width: 100%;
  }
  .stats__item {
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border: 1px solid rgba(48, 35, 26, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
    box-shadow: 0 8px 18px rgba(48, 35, 26, 0.05);
    white-space: nowrap;
  }
  .stats__item:first-child {
    display: none;
  }
  .stats__value {
    font-size: 13px;
    letter-spacing: -0.01em;
  }
  .stats__label {
    margin-top: 0;
    font-size: 12px;
    color: rgba(48, 35, 26, 0.58);
  }

  .hero {
    padding-bottom: 0;
  }
  .hero__visual {
    margin: -34vw -24px 0;
    width: calc(100% + 48px);
  }
  .hero__visual picture,
  .hero__visual-image,
  .hero__visual picture img {
    max-width: 100%;
    width: 100%;
  }
}

@media (max-width: 420px) {
  .nav__inner {
    padding: 14px 18px;
  }
  .nav--scrolled .nav__inner {
    padding: 10px 18px;
  }
  .nav__brand-name {
    font-size: 17px;
  }
  .nav__brand-icon {
    width: 32px;
    height: 32px;
  }
  .hero {
    padding: calc(var(--nav-height) + 8px) 20px 0;
  }
  .hero__visual {
    margin: -34vw -20px 0;
    width: calc(100% + 40px);
  }
}

/* Entry animation (applied by JS) */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease var(--reveal-delay, 0s),
    transform 0.6s ease var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
.reveal--in {
  opacity: 1;
  transform: translateY(0);
}

/* Reduce motion preferences */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .cta {
    transition: none;
  }
  .contact__card,
  .contact__cta,
  .contact__mail {
    transition: none;
  }
  .contact__card:hover,
  .contact__cta:hover,
  .contact__cta:hover .contact__mail {
    transform: none;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
