/* A warm, device-led presentation. Real app media carries the experience. */
:root {
  --paper: #f5eddf;
  --paper-deep: #eee2cf;
  --ink: #352d25;
  --muted: #766757;
  --line: #a58c6b36;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 40px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-weight: 400; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
img, video { display: block; max-width: 100%; height: auto; }
figure, p, h1, h2, h3 { margin: 0; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid #8b6c46; outline-offset: 6px; }
.wrap { width: min(1160px, calc(100% - 112px)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 20; top: -80px; left: 16px; padding: 12px 18px; background: var(--ink); color: var(--paper); }
.skip-link:focus { top: 12px; }

/* The quiet navigation stays secondary to the product. */
.nav-shell { border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 78px; }
.wordmark { font-size: 21px; font-weight: 600; letter-spacing: -.04em; }
.wordmark span { margin-left: 10px; font-size: 12px; font-weight: 400; letter-spacing: .04em; }
.back-link { padding: 12px 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.back-link span { margin-left: 9px; }
.back-link:hover { color: var(--ink); }

/* Product name, two-line invitation, then the complete engineering demo. */
.hero { padding: 72px 0 80px; text-align: center; }
.eyebrow { color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.6; letter-spacing: .12em; }
.hero .eyebrow { margin-bottom: 20px; color: var(--ink); font-size: 22px; font-weight: 600; letter-spacing: -.025em; }
h1 { font-size: clamp(26px, 8.6vw, 76px); font-weight: 600; line-height: 1.13; letter-spacing: -.055em; white-space: nowrap; }
.intro { max-width: 550px; margin: 24px auto 0; color: var(--muted); font-size: 16px; line-height: 1.9; text-wrap: pretty; }
.hero-film { max-width: 1040px; margin: 42px auto 0; }
.film { min-width: 0; }
.film-surface { overflow: hidden; isolation: isolate; background: var(--paper); }
.film video { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: var(--paper); mix-blend-mode: multiply; }
#writing-film { aspect-ratio: 7 / 5; }
.film figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 17px 2px 0; color: var(--muted); font-size: 11px; line-height: 1.7; text-align: left; }
.duration { margin-left: 14px; font-variant-numeric: tabular-nums; }
.media-hint { margin-top: 12px; color: var(--muted); font-size: 11px; line-height: 1.8; }

/* Each chapter uses one clear heading and generous room for the device. */
.chapter { padding-block: 110px; }
.chapter-heading { max-width: 730px; margin: 0 auto 54px; text-align: center; }
.chapter-heading .eyebrow { margin-bottom: 17px; }
h2 { font-size: clamp(36px, 4vw, 49px); font-weight: 600; line-height: 1.28; letter-spacing: -.045em; text-wrap: balance; }
.chapter-heading > p:not(.eyebrow) { max-width: 570px; margin: 20px auto 0; color: var(--muted); font-size: 16px; line-height: 1.9; text-wrap: pretty; }
.scenery { background: var(--paper-deep); }
.scene-stage { width: min(100%, 790px); margin-inline: auto; }
.scene-link { display: block; width: 100%; border-radius: 8.6% / 12%; }
.scene-switcher { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; width: fit-content; margin: 36px auto 0; padding: 6px; border-radius: 999px; background: #ddcdb488; }
.scene-switcher button { min-height: 44px; padding: 10px 22px; border: 0; border-radius: 999px; background: transparent; color: #72614e; font-size: 13px; line-height: 1.5; transition: background-color .25s ease, color .25s ease; }
.scene-switcher button[aria-pressed="true"] { background: #fbf5e9; color: var(--ink); box-shadow: 0 2px 5px #64523b0c; }
.scene-switcher button:hover { color: var(--ink); }
.scene-caption { min-height: 22px; margin-top: 18px; color: var(--muted); font-size: 11px; line-height: 1.8; text-align: center; }

/* Sound details: the real settings screen is visible without a separate CTA. */
.sound-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 76px; align-items: center; margin-top: 92px; padding-top: 82px; border-top: 1px solid var(--line); }
.sound-copy { max-width: 390px; }
.sound-copy > .eyebrow { margin-bottom: 16px; }
.sound-copy h3, .feature-copy h3 { font-size: 28px; font-weight: 600; line-height: 1.4; letter-spacing: -.035em; text-wrap: balance; }
.sound-copy > p:not(.eyebrow), .feature-copy > p { margin-top: 18px; color: var(--muted); font-size: 16px; line-height: 1.9; text-wrap: pretty; }
.sound-notes { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 24px 0 0; list-style: none; color: #8b765e; font-size: 12px; line-height: 1.8; }
.sound-notes li { display: inline-flex; align-items: center; gap: 7px; }
.sound-notes li::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.sound-layout figure { min-width: 0; }
.sound-layout figure > a { display: block; border-radius: 8.6% / 12%; }
.sound-layout figcaption { margin-top: 20px; color: var(--muted); font-size: 11px; line-height: 1.7; text-align: center; }

/* Gentle interactions receive their own breathing room. */
.interactions { padding-bottom: 100px; }
.interaction-lead { display: grid; grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr); gap: 48px; align-items: center; margin-top: 16px; }
.interaction-lead .feature-copy { max-width: 315px; }
.interaction-lead .film { width: 100%; }
.moment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 60px; margin-top: 86px; }
.moment-grid article { min-width: 0; }
.moment-grid .visual { position: relative; display: block; width: 100%; margin-bottom: 14px; border-radius: 8.6% / 12%; }
.detail-inset { position: absolute; right: 7%; bottom: -14px; width: 41%; aspect-ratio: 2.15; overflow: hidden; border: 5px solid var(--paper); border-radius: 14px; background: var(--paper); box-shadow: 0 8px 16px #352d2526; }
.detail-inset > img { position: absolute; top: 50%; left: 50%; width: 500%; max-width: none; height: auto; }
.detail-companions > img { transform: translate(-48%, -66.5%); width: 750%; }
.detail-cake > img { transform: translate(-38.6%, -92.7%); }
.moment-grid .feature-copy { padding: 28px 4px 0; }
.moment-grid .feature-copy h3 { font-size: 23px; line-height: 1.45; }
.moment-grid .feature-copy p { margin-top: 12px; font-size: 15px; line-height: 1.9; }

.footer { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 20px; padding-block: 28px 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.7; }
.footer > a:hover { color: var(--ink); }
.credits { flex-basis: 100%; font-size: 11px; line-height: 1.9; }
.credits summary { width: fit-content; cursor: pointer; }
.credits p { max-width: 850px; margin-top: 10px; }
.credits a { text-decoration: underline; text-underline-offset: 3px; }

/* Lightbox stays in the same warm world and preserves the hardware proportion. */
.image-dialog { width: min(980px, 94vw); max-height: 94vh; padding: 64px 40px 24px; overflow: auto; border: 1px solid #9f896d44; border-radius: 22px; background: var(--paper); color: var(--ink); }
.image-dialog::backdrop { background: #2e251dde; backdrop-filter: blur(8px); }
.image-dialog > .duo-device { width: min(100%, calc((88vh - 138px) * 1.4)); margin-inline: auto; }
.image-dialog p { max-width: 740px; margin: 22px auto 0; color: var(--muted); font-size: 12px; line-height: 1.8; text-align: center; }
.dialog-close { position: absolute; top: 16px; right: 22px; min-height: 36px; padding: 4px 0 4px 12px; border: 0; background: transparent; color: var(--ink); font-size: 12px; }
.dialog-close span { margin-left: 9px; font-size: 23px; vertical-align: middle; }
body:has(dialog[open]) { overflow: hidden; }

/* No JavaScript means everything remains visible. */
.motion-ready [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .75s ease, transform .75s cubic-bezier(.2, .7, .2, 1); }
.motion-ready [data-reveal].is-visible { opacity: 1; transform: none; }

@media (min-width: 1500px) {
  .wrap { width: min(1240px, calc(100% - 160px)); }
  .hero { padding-top: 88px; }
}
@media (max-width: 1000px) {
  .wrap { width: calc(100% - 72px); }
  .hero { padding-top: 60px; }
  .chapter { padding-block: 88px; }
  .sound-layout { gap: 44px; margin-top: 76px; padding-top: 66px; }
  .sound-copy h3, .feature-copy h3 { font-size: 25px; }
  .interaction-lead { gap: 32px; }
  .moment-grid { gap: 36px; margin-top: 66px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 48px); }
  .nav { min-height: 72px; }
  .hero { padding: 50px 0 60px; }
  .intro { max-width: 470px; }
  .hero-film { margin-top: 32px; }
  .chapter { padding-block: 76px; }
  .chapter-heading { margin-bottom: 40px; }
  h2 { font-size: 37px; }
  .sound-layout, .interaction-lead { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .sound-layout { margin-top: 62px; padding-top: 56px; }
  .sound-copy, .interaction-lead .feature-copy { max-width: 510px; }
  .sound-layout figure { width: min(100%, 600px); margin-inline: auto; }
  .interaction-lead .film { margin-inline: auto; }
  .moment-grid { grid-template-columns: minmax(0, 1fr); gap: 52px; max-width: 600px; margin: 54px auto 0; }
  .moment-grid .feature-copy { padding-top: 24px; }
}
@media (max-width: 480px) {
  .wrap { width: calc(100% - 40px); }
  .nav { min-height: 68px; }
  .wordmark { font-size: 20px; }
  .wordmark span { font-size: 11px; }
  .back-link { font-size: 11px; }
  .hero { padding-top: 42px; }
  .hero .eyebrow { margin-bottom: 18px; font-size: 20px; }
  h1 { line-height: 1.15; letter-spacing: -.055em; }
  .intro { margin-top: 20px; font-size: 14px; line-height: 1.9; }
  .hero-film { width: calc(100% + 12px); max-width: none; margin: 25px -6px 0; }
  .film figcaption { gap: 10px; padding-top: 13px; font-size: 11px; }
  .duration { margin-left: 8px; }
  .chapter { padding-block: 62px; }
  .chapter-heading { margin-bottom: 32px; }
  .chapter-heading .eyebrow { margin-bottom: 13px; }
  h2 { font-size: 32px; line-height: 1.3; letter-spacing: -.045em; }
  .chapter-heading > p:not(.eyebrow) { margin-top: 17px; font-size: 14px; line-height: 1.9; }
  .scene-switcher { gap: 2px; padding: 4px; margin-top: 27px; }
  .scene-switcher button { min-height: 42px; padding: 9px 15px; font-size: 12px; }
  .scene-caption { margin-top: 14px; }
  .sound-layout { margin-top: 46px; padding-top: 44px; gap: 30px; }
  .sound-copy h3, .feature-copy h3 { font-size: 24px; }
  .sound-copy > p:not(.eyebrow), .feature-copy > p { margin-top: 15px; font-size: 14px; }
  .sound-notes { gap: 9px 18px; margin-top: 20px; font-size: 11px; }
  .sound-layout figcaption { margin-top: 16px; }
  .interaction-lead { gap: 24px; }
  .moment-grid { gap: 42px; margin-top: 42px; }
  .moment-grid .feature-copy { padding: 21px 0 0; }
  .moment-grid .feature-copy h3 { font-size: 22px; }
  .moment-grid .feature-copy p { font-size: 14px; }
  .footer { gap: 18px; padding-block: 24px; font-size: 11px; }
  .image-dialog { width: 96vw; padding: 60px 12px 22px; border-radius: 16px; }
  .dialog-close { top: 13px; right: 17px; }
  .image-dialog p { margin-top: 20px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .motion-ready [data-reveal] { opacity: 1; transform: none; }
}
