/* Feature sections and illustrations on the homepage. */
.home-page section[id] { scroll-margin-top: 28px; }
.value-strip {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 24px;
  width: min(1320px, calc(100% - 80px));
  margin: auto;
  padding: 10px 0 22px;
  border-bottom: 1px solid var(--line);
}
.value-strip li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.value-strip svg {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.guides-section { padding-block: clamp(90px, 9vw, 140px); }
.guides-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; }
.guide-feature { min-width: 0; }
.guide-illustration { border-radius: 14px; overflow: hidden; }
.symmetry-feature .guide-illustration { background: transparent; }
.perspective-feature .guide-illustration { background: transparent; }
.guide-illustration svg { display: block; width: 100%; height: auto; }
.guide-illustration svg text { font: 700 10px "Avenir Next", sans-serif; letter-spacing: 2px; }
.symmetry-drawing { transform-origin: 260px 175px; transition: transform .55s var(--ease); }
.is-tilted .symmetry-drawing { transform: rotate(18deg); }
.symmetry-axis { fill: none; stroke: #416958; stroke-width: 1.5; stroke-dasharray: 5 5; }
.perspective-guides { transition: opacity .3s ease; }
.guides-hidden .perspective-guides { opacity: 0; }
.guide-copy { padding: 28px 4px 0; }
.guide-copy h3 { font-size: clamp(29px, 3vw, 40px); line-height: 1.15; margin: 12px 0; }
.guide-copy p { color: var(--ink-soft); font-size: 17px; max-width: 540px; }
.guides-note { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 16px; }
.guides-note strong { color: var(--ink); margin-right: 8px; }

.characters-section { padding-block: clamp(90px, 9vw, 135px); background: #173e36; color: #fff8e9; }
.character-heading { display: flex; align-items: end; justify-content: space-between; gap: 55px; margin-bottom: 56px; }
.character-heading h2, .sound-copy h2 {
  font-size: clamp(54px, 6.4vw, 94px);
  line-height: 1.02;
  font-weight: 900;
  margin: 20px 0 0;
}
.character-heading > p { max-width: 350px; font-size: 20px; color: #d4e6d7; padding-bottom: 5px; }
.characters-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.rig-demo { min-width: 0; background: #dce8cd; color: var(--ink); border-radius: 15px; overflow: hidden; }
.rig-demo svg { width: 100%; height: auto; display: block; }
.rig-bone { fill: none; stroke: #b7e4c9; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.rig-joint { fill: #c4ebd2; stroke: #173e36; stroke-width: 2; }
.pose-rest, .pose-wave { transition: opacity .2s ease; }
.pose-wave, .is-waving .pose-rest { opacity: 0; }
.is-waving .pose-wave { opacity: 1; }
.is-waving .waving-forearm { transform-box: view-box; transform-origin: 390px 223px; animation: wave-hello 2.4s ease-in-out infinite; }
@keyframes wave-hello { 0%, 100% { transform: rotate(-7deg); } 25%, 65% { transform: rotate(9deg); } 45%, 85% { transform: rotate(-5deg); } }
.character-steps { list-style: none; margin: 0; padding: 0; }
.character-steps li { display: grid; grid-template-columns: 32px 1fr; gap: 16px; padding: 30px 0; border-bottom: 1px solid #5e8476; }
.character-steps li:first-child { padding-top: 0; }
.character-steps li:last-child { border-bottom: 0; padding-bottom: 0; }
.character-steps h3 { font-size: clamp(27px, 2.8vw, 37px); line-height: 1.15; margin-bottom: 12px; letter-spacing: -.04em; }
.character-steps p { font-size: 17px; color: #d4e6d7; }
.camera-note { margin-top: 65px; padding-top: 30px; border-top: 1px solid #5e8476; display: grid; grid-template-columns: 150px 1fr 1.6fr; align-items: start; gap: 28px; }
.camera-note h3 { font-size: 29px; line-height: 1.15; letter-spacing: -.035em; }
.camera-note p { color: #d4e6d7; font-size: 16px; }

.sound-section { padding-block: clamp(100px, 10vw, 155px); display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: clamp(35px, 5vw, 75px); }
.sound-copy h2 { font-size: clamp(50px, 5.6vw, 80px); margin-bottom: 23px; }
.sound-copy > p { color: var(--ink-soft); font-size: 19px; max-width: 450px; }
.sound-copy .feature-list { margin-top: 26px; }
.sound-shot { padding: 0; }
.sound-shot figcaption { color: #3b6557; }
.gallery-card figcaption { display: grid; grid-template-columns: auto 1fr; gap: 12px 16px; }
.gallery-card figcaption p { grid-column: 1 / -1; font-size: 15px; max-width: 450px; }
.motion-paused .waving-forearm,
.has-motion-control .rig-demo:not(.is-in-view) .waving-forearm { animation-play-state: paused; }

@media (max-width: 1000px) {
  .value-strip { gap: 20px; }
  .value-strip li { gap: 10px; }
  .character-heading { gap: 30px; }
  .character-heading > p { max-width: 270px; font-size: 17px; }
  .characters-layout { gap: 32px; }
  .character-steps p { font-size: 16px; }
  .character-steps li { gap: 8px; padding-block: 24px; }
  .camera-note { grid-template-columns: 1fr 2fr; }
  .gallery-card figcaption { display: block; }
  .gallery-card figcaption strong { display: block; text-align: left; margin-top: 9px; }
  .gallery-card figcaption p { margin-top: 12px; }
}
@media (max-width: 720px) {
  .value-strip { width: calc(100% - 36px); padding-block: 10px 22px; flex-wrap: wrap; gap: 12px 20px; }
  .guides-section, .characters-section, .sound-section { padding-block: 80px; }
  .guides-grid, .characters-layout, .sound-section { grid-template-columns: 1fr; gap: 42px; }
  .guides-grid { gap: 48px; }
  .guide-copy { padding-top: 24px; }
  .guide-copy h3 { font-size: 34px; }
  .guide-copy p { font-size: 17px; }
  .character-heading { display: block; margin-bottom: 36px; }
  .character-heading h2, .sound-copy h2 { font-size: clamp(50px, 10vw, 75px); }
  .character-heading > p { max-width: 450px; font-size: 18px; margin-top: 25px; }
  .character-steps h3 { font-size: 31px; }
  .character-steps li { gap: 10px; }
  .camera-note { display: block; margin-top: 40px; }
  .camera-note h3 { margin: 14px 0; }
  .sound-section { gap: 36px; }
  .sound-copy > p { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .waving-forearm { animation: none !important; }
  }

/* Value and ownership: short claims backed by the app's actual free tier. */
.hero-copy { padding-right: clamp(24px, 2.6vw, 44px); }
.hero h1 { font-size: clamp(55px, 5.5vw, 84px); }
.hero-copy > p { max-width: 450px; }
.hero-actions { gap: 18px; margin-top: 28px; }
.hero-price-link { font-size: 13px; font-weight: 750; line-height: 1.5; max-width: 185px; }
.hero-benefits { display: flex; flex-wrap: wrap; gap: 7px 18px; list-style: none; padding: 0; margin: 25px 0 10px; font-size: 12px; font-weight: 800; }
.hero-benefits li { display: flex; align-items: center; gap: 6px; }
.hero-benefits li::before { content: '✓'; color: #386a54; }
.hero-copy > .availability { margin-top: 20px; font-weight: 600; font-size: 12px; }
.first-animation { list-style: none; counter-reset: first-frame; margin: 0; padding: 0; }
.first-animation li { counter-increment: first-frame; position: relative; padding: 0 0 27px 38px; }
.first-animation li:last-child { padding-bottom: 0; }
.first-animation li::before { content: counter(first-frame, decimal-leading-zero); position: absolute; left: 0; top: 5px; color: #985032; font-size: 12px; font-weight: 800; }
.first-animation h3 { font-size: clamp(25px, 2.3vw, 34px); margin: 0 0 9px; }
.first-animation p { font-size: 16px; }
.pricing-section { background: #f0dba9; padding-block: clamp(65px, 7vw, 110px); }
.pricing-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: clamp(40px, 7vw, 110px); }
.pricing-intro h2, .ownership-section h2 { font-size: clamp(46px, 5.4vw, 78px); font-weight: 900; line-height: 1.04; margin: 20px 0 24px; }
.pricing-intro h2 em { color: #944d31; }
.pricing-intro > p { font-size: 19px; max-width: 450px; color: #47503a; }
.pricing-intro > a { display: inline-block; margin-top: 25px; font-size: 14px; font-weight: 800; }
.price-option { padding: 28px 0; border-top: 1px solid #87784d; }
.price-option:first-child { padding-top: 0; border-top: 0; }
.price-heading { display: flex; justify-content: space-between; gap: 20px; align-items: start; margin-bottom: 19px; }
.price-heading h3 { font-size: clamp(23px, 2.3vw, 31px); line-height: 1.2; letter-spacing: -.035em; }
.price-heading h3 span { display: block; margin-top: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0; }
.price-amount { font-size: clamp(35px, 4vw, 54px); line-height: 1; font-weight: 850; letter-spacing: -.05em; white-space: nowrap; }
.price-amount small { display: block; font-size: 12px; font-weight: 650; letter-spacing: 0; text-align: right; margin-top: 8px; }
.price-option > p { font-size: 16px; color: #384934; }
.price-option .export-terms { margin-top: 12px; font-size: 14px; font-weight: 750; }
.pricing-footnote { font-size: 12px; color: #53533c; padding-top: 15px; border-top: 1px solid #b6a574; }
.camera-note { grid-template-columns: 1fr 1.6fr; }
.ownership-section { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); padding-block: clamp(75px, 8vw, 120px); }
.ownership-section h2 { margin-bottom: 0; }
.ownership-details { margin: 0; }
.ownership-details > div { padding: 21px 0; border-bottom: 1px solid var(--line); }
.ownership-details > div:first-child { padding-top: 0; }
.ownership-details dt { font-size: 24px; letter-spacing: -.035em; font-weight: 800; margin-bottom: 8px; }
.ownership-details dd { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
.questions-section { padding-bottom: 75px; max-width: 1000px; }
.questions-section h2 { font-size: clamp(34px, 4vw, 50px); margin-bottom: 28px; }
.questions-section details { border-bottom: 1px solid var(--line); }
.questions-section summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; cursor: pointer; list-style: none; padding: 22px 0; font-size: 18px; font-weight: 750; }
.questions-section summary::-webkit-details-marker { display: none; }
.questions-section summary::after { content: '+'; font-size: 27px; font-weight: 500; }
.questions-section details[open] summary::after { content: '−'; }
.questions-section summary:focus-visible { outline: 3px solid #d7794d; outline-offset: 4px; }
.questions-section details p { max-width: 750px; padding-bottom: 24px; font-size: 16px; color: var(--ink-soft); }
.home-page .closing { padding-top: 55px; border-top: 1px solid var(--line); }
@media (max-width: 1000px) {
  .studio-notes { display: block; max-width: none; }
  .first-animation { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .first-animation li { padding: 30px 0 0; }
  .first-animation li::before { top: 0; }
  .pricing-layout, .ownership-section { gap: 40px; }
}
@media (max-width: 720px) {
  .site-header nav a:nth-child(2) { display: inline; }
  .site-header nav a:first-child { display: none; }
  .hero-copy { padding: 42px 25px 30px; }
  .hero h1 { font-size: clamp(49px, 10.5vw, 75px); }
  .hero-price-link { max-width: none; }
  .hero-benefits { gap: 7px 14px; font-size: 11px; }
  .hero-art { padding: 15px 0 25px; }
  .first-animation { display: block; }
  .first-animation li { padding: 0 0 25px 35px; }
  .first-animation li::before { top: 5px; }
  .studio-notes .first-animation h3 { margin-top: 0; }
  .pricing-layout, .ownership-section { grid-template-columns: 1fr; gap: 36px; }
  .pricing-intro h2, .ownership-section h2 { font-size: clamp(43px, 10vw, 64px); }
  .pricing-intro > p { font-size: 17px; }
  .price-option:first-child { padding-top: 24px; border-top: 1px solid #87784d; }
  .price-heading { gap: 12px; }
  .price-heading h3 { font-size: 24px; }
  .price-amount { font-size: 39px; }
  .camera-note { display: block; }
  .questions-section summary { font-size: 17px; }
}

/* Native animation with a transparent canvas. */
.hero-art-energy { background: transparent; }
.hero-film-energy { aspect-ratio: 34 / 27; }
@media (max-width: 720px) { .hero-art-energy { padding: 0; } }

/* Let the illustrations and benefit copy speak without demo labels or controls. */
.rig-demo { padding-block: 24px; }
.character-steps li { grid-template-columns: 1fr; }
.gallery-card figcaption { display: block; }
.gallery-card figcaption strong { display: block; text-align: left; margin-bottom: 10px; }

/* Small native companions sit directly on the page, without panels or captions. */
.feature-companion { display: block; width: min(100%, 300px); height: auto; aspect-ratio: 3 / 2; margin: 0 0 -18px; }
.symmetry-film, .perspective-film { display: block; width: 100%; height: auto; aspect-ratio: 52 / 35; object-fit: contain; }
@media (max-width: 720px) {
  .feature-companion { width: min(100%, 260px); margin-block: 0 -14px; }
}

.drawing-copy > .feature-companion + h2, .sound-copy > .feature-companion + h2 { margin-top: 0; }

/* Keep paired artwork and copy centered on the same vertical axis. */
.home-page :is(.hero, .studio-layout, .drawing-layout, .characters-layout,
  .sound-section, .ownership-section, .camera-note, .character-heading, .gallery-heading) {
  align-items: center;
}
.hero-copy { justify-content: center; padding-block: clamp(42px, 5vw, 72px); }

@media (max-width: 720px) {
  .home-page section { text-align: center; }
  .home-page :is(.section-heading, .feature-companion, .studio-notes,
    .drawing-copy > p, .sound-copy > p, .guide-copy > p,
    .character-heading > p, .gallery-card figcaption p, .questions-section details p) {
    margin-inline: auto;
  }
  .hero-copy { align-items: center; padding-block: 42px 30px; }
  .hero-actions, .hero-benefits { justify-content: center; }
  .feature-list li { padding-inline: 8px; }
  .feature-list li::before { position: static; margin-right: 8px; }
  .first-animation li { padding: 0 0 25px; }
  .first-animation li::before { position: static; display: block; margin-bottom: 8px; }
  .gallery-heading { flex-direction: column; gap: 24px; }
  .gallery-card { flex-basis: 100%; scroll-snap-align: center; }
  .gallery-card figcaption strong { text-align: center; }
  .questions-section summary { position: relative; justify-content: center; padding-inline: 28px; }
  .questions-section summary::after { position: absolute; right: 0; }
  .home-page .site-footer, .home-page .site-footer nav { justify-content: center; text-align: center; }
}

/* Use the centered, vertical section layout at every screen size. */
.home-page section { text-align: center; }
.home-page :is(.studio-layout, .drawing-layout, .guides-grid, .characters-layout,
  .sound-section, .ownership-section, .camera-note) {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 48px;
}
.home-page :is(.section-heading, .feature-companion, .drawing-copy > p,
  .sound-copy > p, .guide-copy > p, .character-heading > p,
  .gallery-card figcaption p, .questions-section details p) {
  margin-inline: auto;
}
.home-page :is(.studio-layout > .app-shot, .drawing-visual, .sound-shot, .gallery-track) {
  width: min(100%, 960px);
  margin-inline: auto;
}
.home-page :is(.studio-notes, .drawing-copy, .sound-copy, .guide-feature,
  .rig-demo, .character-steps, .ownership-details, .camera-note) {
  width: min(100%, 650px);
  margin-inline: auto;
}
.studio-notes, .first-animation { display: block; }
.first-animation li { padding: 0 0 25px; }
.first-animation li::before { position: static; display: block; margin-bottom: 8px; }
.studio-notes .first-animation h3 { margin-top: 0; }
.feature-list li { padding-inline: 8px; }
.feature-list li::before { position: static; margin-right: 8px; }
.character-heading, .gallery-heading { flex-direction: column; gap: 24px; }
.character-heading > p { max-width: 650px; }
.camera-note { gap: 20px; }
.gallery-card { flex-basis: 100%; scroll-snap-align: center; }
.gallery-card figcaption strong { text-align: center; }
.questions-section summary { position: relative; justify-content: center; padding-inline: 28px; }
.questions-section summary::after { position: absolute; right: 0; }

/* The transparent animation sits behind the centered hero content. */
.hero {
  grid-template-columns: 1fr;
  min-height: 100vh;
  min-height: 100svh;
  isolation: isolate;
}
.hero-copy {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(32px, 4vw, 56px) 25px;
}
.hero h1 { margin-top: 0; }
.hero-copy > p { max-width: 580px; }
.hero-actions { justify-content: center; }
.hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent, rgb(0 0 0 / .12) 45%, #000 78%);
}
.hero-film-energy {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
@media (max-width: 720px) {
  .hero-film-energy {
    object-fit: contain;
    object-position: center bottom;
  }
}

/* Give the phone animation its own space below the call to action. */
@media (max-width: 720px) {
  .hero { min-height: calc(100svh - 72px); align-content: center; gap: 12px; }
  .hero-copy { padding: 28px 25px 0; }
  .hero-art { position: relative; inset: auto; height: auto; aspect-ratio: 34 / 27; mask-image: none; }
  .hero-film-energy { height: auto; object-fit: contain; }
}
