:root {
  --night: #040a0c;
  --moss: #183328;
  --cream: #f7f0dd;
  --paper: #e9dfc5;
  --gold: #e3b96c;
  --muted: #aeb9a8;
  --line: rgba(247, 240, 221, 0.16);
  font-family: 'DM Sans', sans-serif;
  color: #11201a;
  background: var(--cream);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--cream);
}
a {
  color: inherit;
  text-decoration: none;
}
button,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  clip: rect(0 0 0 0);
  overflow: hidden;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 99;
  transform: translateY(-160%);
  background: var(--cream);
  padding: 0.8rem 1rem;
  color: var(--night);
  border-radius: 0.4rem;
}
.skip-link:focus {
  transform: none;
}
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 5;
  background: transparent;
  color: var(--cream);
}
.nav {
  max-width: 1200px;
  min-height: 78px;
  margin: auto;
  padding: 14px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.brand,
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font:
    700 1.45rem 'Cormorant Garamond',
    serif;
}
.brand img,
.footer-brand img {
  border-radius: 11px;
}
.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.nav-links a,
.footer-links a {
  color: var(--muted);
  font-size: 0.88rem;
}
.nav-links a:hover,
.footer-links a:hover,
.text-link:hover {
  color: var(--gold);
}
.language select {
  color: var(--cream);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.65rem;
}
.nav-download,
.mobile-download {
  background: var(--gold);
  color: var(--night);
  font-weight: 700;
  border-radius: 999px;
  padding: 0.7rem 1rem;
}
.menu-toggle {
  display: none;
  color: var(--cream);
  background: none;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  padding: 0.5rem 0.7rem;
  min-width: 44px;
  min-height: 44px;
}
.mobile-menu {
  display: none;
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 720px;
  padding: 36px max(28px, calc((100% - 1120px) / 2));
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
  color: var(--cream);
  background: #010508;
}
.hero-copy,
.hero-phone {
  position: relative;
  z-index: 1;
}
.hero-copy {
  grid-column: 1;
  max-width: 650px;
}
.hero-phone {
  grid-column: 2;
}
.eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}
.hero h1,
h2,
h3 {
  font-family: 'Cormorant Garamond', serif;
}
.hero h1 {
  margin: 0.7rem 0 1.5rem;
  font-size: clamp(3.5rem, 7vw, 6.6rem);
  line-height: 0.82;
  letter-spacing: -0.045em;
}
.hero h1 > span:not(.brand-in-heading),
.hero h1 em {
  display: block;
  text-wrap: balance;
}
.hero h1 em {
  color: var(--gold);
  font-style: italic;
}
.brand-in-heading {
  margin-bottom: 1.2rem;
  font:
    500 0.9rem 'DM Sans',
    sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero-description {
  max-width: 530px;
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.65;
}
.hero-promise {
  margin: 1.1rem 0 1.6rem;
  color: #d5d9ca;
  font-size: 0.92rem;
}
.store-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.store-ctas a {
  display: flex;
  flex-direction: column;
  min-width: 164px;
  padding: 0.58rem 1rem;
  border-radius: 0.55rem;
  color: var(--night);
  background: var(--cream);
  line-height: 1.05;
  transition:
    transform 0.2s,
    background 0.2s;
}
.store-ctas a:last-child {
  color: var(--cream);
  background: transparent;
  border: 1px solid var(--line);
}
.store-ctas a:hover {
  background: var(--gold);
  transform: translateY(-2px);
}
.store-ctas small {
  font-size: 0.66rem;
}
.store-ctas strong {
  font-size: 1.05rem;
}
.store-ctas a {
  position: relative;
  padding-left: 2.7rem;
}
.store-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
  transform: translateY(-50%);
}
.rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 1.35rem 0 0;
  color: #d7ddd2;
  font-size: 0.78rem;
}
.rating > span:first-child {
  color: var(--gold);
  letter-spacing: 0.03em;
}
.rating-stars {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  color: #777;
}
.rating-stars-filled {
  position: absolute;
  top: 0;
  left: 0;
  width: 92%;
  overflow: hidden;
  color: #e3b96c;
}
.rating small {
  flex-basis: 100%;
  color: #839486;
  font-size: 12px;
}
.desktop-qr-handoff {
  margin-top: 1.3rem;
  color: var(--muted);
  font-size: 0.78rem;
}
.desktop-qr-handoff summary {
  width: max-content;
  color: var(--cream);
  cursor: pointer;
}
.desktop-qr-handoff div {
  display: flex;
  gap: 0.9rem;
  margin-top: 0.8rem;
}
.desktop-qr-handoff a {
  display: grid;
  gap: 0.2rem;
  text-align: center;
}
.desktop-qr-handoff img {
  border-radius: 0.3rem;
  background: white;
}
.hero-phone {
  justify-self: center;
  color: var(--muted);
  text-align: center;
  font-size: 0.78rem;
}
.phone-frame {
  position: relative;
  width: 300px;
  height: 650px;
  padding: 7px;
  overflow: hidden;
  border-radius: 40px;
  background: #030705;
  box-shadow:
    0 35px 80px rgba(0, 0, 0, 0.52),
    0 0 0 1px rgba(247, 240, 221, 0.25);
}
.phone-frame:before {
  content: '';
  position: absolute;
  z-index: 2;
  top: 13px;
  left: 50%;
  width: 92px;
  height: 22px;
  border-radius: 999px;
  background: #030705;
  transform: translateX(-50%);
}
.phone-frame video {
  width: 100%;
  height: 100%;
  border-radius: 33px;
  object-fit: cover;
}
.video-toggle,
.video-sound {
  position: absolute;
  bottom: 20px;
  width: 39px;
  height: 39px;
  border: 0;
  border-radius: 50%;
  color: white;
  background: rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(5px);
}
.video-toggle {
  left: 20px;
}
.video-sound {
  right: 20px;
}
.fireflies {
  position: absolute;
  top: 32px;
  left: 38%;
  width: 27%;
  height: 650px;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
  filter: none;
  background: transparent;
}
.fireflies video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: none;
  background: transparent;
}
.motion-toggle {
  position: absolute;
  right: 22px;
  bottom: 18px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--cream);
  background: transparent;
}
.section {
  padding: 70px max(28px, calc((100% - 1120px) / 2));
}
.section-intro {
  max-width: 670px;
}
.section h2 {
  margin: 0.55rem 0 1rem;
  font-size: clamp(2rem, 3.34vw, 3rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.section-intro > p:last-child,
.craft-copy > p:not(.eyebrow),
.how p,
.faq p,
.closing > p:not(.eyebrow) {
  color: #526258;
  line-height: 1.7;
}
.gallery {
  color: var(--cream);
  background: var(--night);
}
.gallery-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 2.2rem 0 1.2rem;
}
.gallery-arrows button {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0.55rem 0.85rem;
  border: 1px solid #bcae91;
  border-radius: 999px;
  color: var(--cream);
  border-color: rgba(247, 240, 221, 0.35);
  background: transparent;
}
.gallery-arrows {
  display: flex;
  gap: 0.5rem;
  margin: 0;
}
.gallery-arrows button {
  font-size: 1.2rem;
  line-height: 1;
}
.screenshot-strip {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 5px 1px 18px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.screenshot-strip img {
  display: block;
  width: 235px;
  height: auto;
  border-radius: 19px;
  box-shadow: 0 14px 28px rgba(35, 38, 26, 0.18);
  scroll-snap-align: start;
}
.gallery-note {
  color: #b9c5b8;
  font-size: 0.76rem;
}
.craft {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(36px, 8vw, 130px);
  background: #e7d4b3;
  position: relative;
  border-top: 60px solid transparent;
  border-image-source: url('/site-assets/home/craft-surface-v4.webp');
  border-image-slice: 180 0 0 0 fill;
  border-image-width: 60px 0 0 0;
  border-image-repeat: stretch;
}
.craft-image {
  position: relative;
  z-index: 1;
}
.craft-copy {
  position: relative;
  z-index: 1;
}
.craft-image:before {
  content: '';
  position: absolute;
  inset: 10px -10px -10px 10px;
  border: 1px solid #ad9c7d;
}
.craft-image img {
  position: relative;
  display: block;
  width: 100%;
  box-shadow: 0 12px 28px rgba(52, 42, 24, 0.18);
}
.craft-credit {
  margin-top: 1.4rem;
  color: #6b6a5b !important;
  font-size: 0.8rem;
}
.making-of {
  margin-top: 1.5rem;
}
.making-of summary {
  color: #263c2f;
  font-weight: 700;
  cursor: pointer;
}
.making-of video {
  display: block;
  width: 430px;
  max-width: 100%;
  margin-top: 1rem;
  border-radius: 0.4rem;
}
.how {
  background: #eef0e8;
}
.how ol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
}
.how li {
  padding-top: 1rem;
  border-top: 1px solid #acb8aa;
}
.how li > span {
  color: #728174;
  font-size: 0.78rem;
}
.how h3 {
  margin: 0.55rem 0;
  font-size: 2rem;
}
.faq {
  max-width: 920px;
  margin: auto;
  padding-left: 28px;
  padding-right: 28px;
}
.faq details {
  padding: 1.25rem 0;
  border-top: 1px solid #ccd0c3;
}
.faq details:last-of-type {
  border-bottom: 1px solid #ccd0c3;
}
.faq summary {
  font:
    600 1.5rem 'Cormorant Garamond',
    serif;
  cursor: pointer;
}
.faq p {
  max-width: 720px;
  margin: 1rem 0 0;
}
.text-link {
  display: inline-block;
  margin-top: 1.5rem;
  color: #345440;
  font-weight: 700;
}
.closing {
  color: var(--cream);
  text-align: center;
  background: #010508 url('/site-assets/home/atmosphere-v4.webp') center/cover no-repeat;
}
.closing .eyebrow {
  color: var(--gold);
}
.closing > p:not(.eyebrow) {
  max-width: 480px;
  margin: 0 auto 1.7rem;
  color: #d5ddd0;
}
.closing .store-ctas {
  justify-content: center;
}
footer {
  display: grid;
  grid-template-columns: 1fr 2fr 1.4fr;
  align-items: start;
  gap: 2rem;
  padding: 48px max(28px, calc((100% - 1120px) / 2));
  color: var(--cream);
  background: var(--night);
}
footer > p {
  grid-column: 1/-1;
  margin: 0;
  color: #849387;
  font-size: 0.75rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 0.7rem 1rem;
}
.footer-guides {
  display: grid;
  gap: 0.55rem;
}
.footer-guides span {
  color: var(--gold);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
@media (max-width: 899px) {
  .nav-links,
  .nav-download {
    display: none;
  }
  .language select {
    width: 100px;
    min-width: 100px;
    max-width: 100px;
    font-size: 0.875rem;
  }
  .nav-actions {
    gap: 12px;
  }
  .menu-toggle {
    display: block;
  }
  .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 1.45rem;
    padding: 28px;
    color: var(--cream);
    visibility: hidden;
    background: var(--night);
    transform: translateX(100%);
    transition: transform 0.25s;
  }
  .mobile-menu.open {
    visibility: visible;
    transform: none;
  }
  .mobile-menu-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.4rem;
  }
  .mobile-menu button {
    padding: 0.45rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 0.4rem;
    color: var(--cream);
    background: transparent;
  }
  .mobile-menu a {
    font:
      600 1.8rem 'Cormorant Garamond',
      serif;
  }
  .mobile-menu .mobile-download {
    width: max-content;
    margin-top: 1rem;
    font:
      700 1rem 'DM Sans',
      sans-serif;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 42px;
    min-height: unset;
    padding-top: 36px;
    padding-bottom: 65px;
  }
  .hero-copy {
    margin: auto;
    text-align: center;
  }
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  .store-ctas,
  .rating {
    justify-content: center;
  }
  .desktop-qr-handoff {
    display: none;
  }
  .how ol,
  .craft {
    grid-template-columns: 1fr;
  }
  .craft-image {
    max-width: 600px;
  }
  .gallery-arrows {
    display: flex;
  }
  footer {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1/-1;
  }
}

/* Store handoff remains the strongest action in both callouts. */
.hero .store-ctas a,
.closing .store-ctas a {
  min-height: 64px;
  border: 0;
  color: var(--night);
  background: var(--gold);
}
.hero .store-ctas a:last-child,
.closing .store-ctas a:last-child {
  color: var(--night);
  background: var(--cream);
  border: 0;
}
.hero .store-ctas a:hover,
.closing .store-ctas a:hover { color: var(--night); background: var(--cream); }
@media (max-width: 620px) {
  .hero .store-ctas a,
  .closing .store-ctas a { min-height: 60px; }
  html body .store-ctas a {
    padding-left: 44px;
    padding-right: 8px;
  }
  html body .store-icon {
    left: 12px;
    width: 22px;
    height: 22px;
  }
}

html body .store-ctas strong { white-space: nowrap; }

.gallery .screenshot-strip {
  --shot-height: min(60svh, 600px);
  width: calc(var(--shot-height) * 900 / 1951 * 2 + 24px);
  max-width: 100%;
  height: calc(var(--shot-height) + 16px);
  margin-inline: auto;
}
.gallery .screenshot-strip .gallery-slide {
  flex: 0 0 calc(var(--shot-height) * 900 / 1951);
  width: calc(var(--shot-height) * 900 / 1951);
  height: var(--shot-height);
  border-radius: 0;
}
.gallery .screenshot-strip .gallery-slide img {
  width: 100%;
  height: 100%;
  max-height: none;
  border-radius: 10px;
  object-fit: contain;
}
.craft { padding-bottom: 112px; }
@media (max-width: 899px) {
  .gallery .screenshot-strip {
    --shot-height: min(62svh, 540px);
    width: min(100%, calc(var(--shot-height) * 900 / 1951));
    height: calc(var(--shot-height) + 16px);
  }
  .gallery .screenshot-strip .gallery-slide {
    flex-basis: calc(var(--shot-height) * 900 / 1951);
    width: calc(var(--shot-height) * 900 / 1951);
  }
  .craft { padding-bottom: 72px; }
}

.gallery .screenshot-strip {
  --shot-height: min(60svh, 600px);
  width: calc(var(--shot-height) * 900 / 1951 * 2 + 24px);
  max-width: 100%;
  height: calc(var(--shot-height) + 16px);
  margin-inline: auto;
}
.gallery .screenshot-strip .gallery-slide {
  flex: 0 0 calc(var(--shot-height) * 900 / 1951);
  width: calc(var(--shot-height) * 900 / 1951);
  height: var(--shot-height);
  border-radius: 0;
}
.gallery .screenshot-strip .gallery-slide img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: contain;
}
.craft { padding-bottom: 112px; }
@media (max-width: 899px) {
  .gallery .screenshot-strip {
    --shot-height: min(62svh, 540px);
    width: min(100%, calc(var(--shot-height) * 900 / 1951));
    height: calc(var(--shot-height) + 16px);
  }
  .gallery .screenshot-strip .gallery-slide {
    flex-basis: calc(var(--shot-height) * 900 / 1951);
    width: calc(var(--shot-height) * 900 / 1951);
  }
  .craft { padding-bottom: 72px; }
}
@media (max-width: 620px) {
  .nav {
    padding-left: 18px;
    padding-right: 18px;
  }
  .hero,
  .section {
    padding-left: 22px;
    padding-right: 22px;
  }
  .hero h1 {
    font-size: 3.6rem;
  }
  .phone-frame {
    width: min(300px, 82vw);
    height: min(650px, calc(82vw * 2.167));
  }
  .store-ctas {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .store-ctas a {
    align-items: center;
    min-width: 0;
    padding: 0.55rem 0.5rem 0.55rem 2rem;
    text-align: left;
  }
  .rating {
    font-size: 0.7rem;
  }
  .screenshot-strip img {
    width: 195px;
  }
  footer {
    grid-template-columns: 1fr;
    padding-left: 22px;
    padding-right: 22px;
  }
  .footer-brand {
    grid-column: auto;
  }
}
@media (max-width: 350px) {
  .nav {
    padding-left: 12px;
    padding-right: 12px;
    gap: 8px;
  }
  .nav-actions {
    gap: 8px;
  }
  .brand {
    gap: 6px;
    font-size: 1.125rem;
  }
  .brand img {
    width: 32px;
    height: 32px;
  }
  .language select {
    width: 88px;
    min-width: 88px;
    max-width: 88px;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
  }
  .menu-toggle {
    padding: 0.45rem 0.55rem;
  }
  .store-ctas {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .store-ctas a {
    transition: none;
  }
}

/* Homepage v5: native dialog controls and editorial screenshot rail. */
.js .language {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.language-button,
.dialog-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--cream);
  background: transparent;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.language-button .control-icon,
.dialog-close .control-icon {
  width: 16px;
  height: 16px;
}
dialog {
  width: min(680px, calc(100% - 32px));
  max-height: min(760px, calc(100dvh - 32px));
  padding: 1.4rem;
  overflow: auto;
  border: 1px solid rgba(247, 240, 221, 0.22);
  border-radius: 14px;
  color: var(--cream);
  background: #101917;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
}
dialog::backdrop { background: rgba(0, 0, 0, 0.72); }
.dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}
.dialog-top h2,
.dialog-top p { margin: 0; }
.dialog-top h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 400; }
.dialog-close { flex: 0 0 auto; border-radius: 50%; padding: 0; }
.dialog-close:hover,
.dialog-close:focus-visible,
.language-button:hover,
.language-button:focus-visible { border-color: var(--gold); outline: 2px solid var(--gold); outline-offset: 2px; }
.language-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}
.language-choices button {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 42px;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(247, 240, 221, 0.16);
  border-radius: 7px;
  color: var(--cream);
  background: transparent;
  text-align: start;
}
.language-choices button[aria-pressed='true'] { border-color: var(--gold); color: var(--gold); }
.locale-status { margin: 0.5rem 0 0; color: var(--gold); font-size: 0.75rem; }
.install-dialog > p { margin: 0 0 1.25rem; color: #d5ddd0; }
.install-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.install-options a {
  display: grid;
  place-items: center;
  gap: 0.75rem;
  min-height: 220px;
  padding: 1rem;
  border-radius: 10px;
  color: var(--night);
  background: var(--gold);
  font-size: 1.15rem;
}
.install-options a:last-child { background: var(--cream); }
.install-options img { width: 132px; height: 132px; background: white; }

.gallery {
  display: block;
  max-width: none;
  min-height: 0;
  padding-top: 112px;
  padding-bottom: 112px;
}
.gallery .section-intro {
  max-width: 660px;
  margin: 0 auto 1.25rem;
  text-align: center;
}
.gallery .section-intro > p:last-child { max-width: 570px; margin-left: auto; margin-right: auto; }
.gallery-controls {
  justify-content: center;
  margin: 0 auto 1rem;
}
.screenshot-strip {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 2px max(2px, calc((100% - 1120px) / 2)) 14px;
  gap: 24px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}
.screenshot-strip::-webkit-scrollbar { display: none; }
.screenshot-strip img {
  flex: 0 0 calc((100% - 24px) / 2);
  width: calc((100% - 24px) / 2);
  height: auto;
  max-height: 650px;
  border-radius: 10px;
  box-shadow: none;
  cursor: zoom-in;
  object-fit: contain;
  scroll-snap-align: start;
}
.gallery-thumbnails {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.3rem auto 0;
}
.gallery-thumbnails button {
  width: 42px;
  height: 58px;
  padding: 0;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  opacity: 0.62;
}
.gallery-thumbnails button[aria-current='true'] { border-color: var(--gold); opacity: 1; }
.gallery-thumbnails img { width: 100%; height: 100%; object-fit: cover; }
.gallery-dialog { width: min(980px, calc(100% - 24px)); height: min(94dvh, 980px); text-align: center; }
.gallery-dialog > img { display: block; width: 100%; height: calc(100% - 104px); object-fit: contain; }
.gallery-dialog-actions { display: flex; justify-content: center; gap: 0.6rem; }
.gallery-dialog-actions button {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
}
.gallery-dialog-actions button:disabled,
.gallery-arrows button:disabled { opacity: 0.35; cursor: default; }
.film-open {
  display: grid;
  grid-template-columns: 72px 44px minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 380px;
  margin-top: 1.6rem;
  padding: 0;
  overflow: hidden;
  border: 1px solid #9e8a63;
  border-radius: 8px;
  color: #263c2f;
  background: transparent;
  text-align: start;
}
.film-open > img { width: 72px; height: 52px; object-fit: cover; }
.film-play { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid currentColor; border-radius: 50%; }
.film-dialog { width: min(980px, calc(100% - 24px)); }
.film-dialog video { display: block; width: 100%; max-height: 75dvh; }
.faq { max-width: 1120px; display: grid; grid-template-columns: minmax(220px, 0.34fr) minmax(0, 0.66fr); column-gap: 72px; align-items: start; }
.faq .section-intro { position: sticky; top: 1.5rem; }
.faq-group { grid-column: 2; }
.faq-group:first-of-type { grid-row: 1 / span 4; margin-top: 0; }
.faq-group h3 { margin: 0; padding: 1rem 0; color: #80601f; font-size: 1.35rem; font-weight: 500; }
.faq .text-link { grid-column: 2; }
.section { padding-top: 112px; padding-bottom: 112px; }
.store-ctas a {
  min-height: 64px;
  justify-content: center;
  padding: 0.65rem 1rem 0.65rem 3.5rem;
  border: 0;
  color: var(--night);
  background: var(--gold);
}
.store-ctas a:last-child { color: var(--night); background: var(--cream); border: 0; }
.store-ctas strong { font-size: 1.125rem; }
.store-icon { left: 1rem; width: 1.65rem; height: 1.65rem; }
.store-ctas a:focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; }

@media (max-width: 899px) {
  .language-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery,
  .section { padding-top: 72px; padding-bottom: 72px; }
  .gallery .section-intro { text-align: start; margin-left: 0; }
  .gallery .section-intro > p:last-child { margin-left: 0; }
  .gallery-controls { justify-content: flex-start; }
  .screenshot-strip { gap: 16px; padding-inline: 0; }
  .screenshot-strip img { flex-basis: 100%; width: 100%; }
  .faq { display: block; }
  .faq .section-intro { position: static; }
  .faq-group { margin-top: 2rem; }
  .faq .text-link { display: inline-block; }
}
@media (max-width: 620px) {
  .install-options { grid-template-columns: 1fr; }
  .install-options a { grid-template-columns: 92px 1fr; justify-items: start; min-height: 110px; }
  .install-options img { width: 84px; height: 84px; }
  .store-ctas a { min-height: 60px; }
}

@media (min-width: 900px) {
  .hero h1 {
    font-size: clamp(3.5rem, 6vw, 5.25rem);
    line-height: 0.86;
  }
}

/* Homepage composition: mirror the approved editorial layout while keeping the
   store media itself unframed and at its native portrait ratio. */
.hero {
  min-height: 760px;
  padding-top: 124px;
  padding-bottom: 40px;
  grid-template-columns: 410px 300px;
  justify-content: space-between;
  gap: 80px;
  background: #010508 url('/site-assets/home/atmosphere-v4.webp') center/cover
    no-repeat;
}
.hero-copy {
  align-self: center;
  min-width: 0;
  padding-top: 0;
}
.hero h1,
.section h2 {
  font-weight: 400;
  letter-spacing: 0;
}
.hero h1 {
  font-size: 64px;
  line-height: 1.05;
  margin: 0.6rem 0 1.45rem;
}
.hero h1 em {
  font-style: normal;
}
.brand-in-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.hero-description {
  max-width: 28rem;
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 24px;
}
.hero-promise {
  order: 3;
}
.hero-phone {
  width: 300px;
  padding: 0;
  align-self: center;
}
.phone-frame {
  width: 100%;
  height: auto;
  aspect-ratio: 15 / 31;
}
.phone-frame video {
  object-fit: contain;
}
.video-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}
.video-controls button {
  display: grid;
  position: static;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(247, 240, 221, 0.65);
  border-radius: 50%;
  color: var(--cream);
  background: transparent;
}
.control-icon {
  width: 18px;
  height: 18px;
  filter: invert(90%) sepia(20%);
}
.menu-toggle:hover,
.gallery-arrows button:hover,
.video-controls button:hover,
.menu-toggle:focus-visible,
.gallery-arrows button:focus-visible,
.video-controls button:focus-visible {
  border-color: var(--gold);
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.hero-phone > p {
  margin: 12px 0 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-style: italic;
}
.rating {
  margin-top: 1.25rem;
}
.hero-promise {
  margin-top: 1.1rem;
}
.gallery {
  min-height: 0;
  padding-top: 8px;
  padding-bottom: 0;
  grid-template-columns: 280px minmax(0, 1fr);
  column-gap: 32px;
  background: #010508;
}
.gallery .section-intro {
  align-self: center;
}
.gallery .section-intro > p:last-child {
  color: #ded8c7;
}
.gallery .section-intro h2 {
  font-size: clamp(2rem, 3.34vw, 3rem);
  line-height: 1.1;
}
.gallery-controls {
  margin: 0 0 12px;
}
.screenshot-strip {
  gap: 18px;
  overflow: hidden;
  padding: 0;
  height: 460px;
}
.screenshot-strip img {
  width: 245px;
  height: 460px;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
}
.screenshot-strip img[hidden] {
  display: none;
}
.gallery-note {
  margin: 10px 0 0;
}
.craft {
  min-height: 420px;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  gap: 36px;
  padding-top: 0;
  padding-bottom: 30px;
  background: #e7d4b3;
}
.craft-image:before {
  display: none;
}
.craft-image img {
  height: 350px;
  object-fit: contain;
  object-position: left center;
  box-shadow: none;
}
.craft-image {
  align-self: start;
}
.craft-copy {
  min-width: 0;
  max-width: 30rem;
  padding-top: 0;
  align-self: center;
}
.craft-copy h2 {
  font-size: clamp(2rem, 3.34vw, 3rem);
  line-height: 1.05;
}
.craft-copy p {
  font-size: 15px;
}
html[dir='rtl'] .hero h1,
html[dir='rtl'] .section h2,
html[lang='ja'] h1,
html[lang='ko'] h1,
html[lang='zh'] h1,
html[lang='zh-Hant'] h1 {
  font-family: Georgia, 'Noto Serif', serif;
  font-style: normal;
  letter-spacing: normal;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
html[dir='rtl'] .hero-copy,
html[dir='rtl'] .section-intro,
html[dir='rtl'] .craft-copy {
  min-width: 0;
}
@media (max-width: 899px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 120px;
    padding-bottom: 46px;
    justify-content: normal;
  }
  .hero-copy {
    order: 1;
    padding-top: 0;
  }
  .hero-phone {
    order: 2;
    grid-row: auto;
    margin: auto;
  }
  .hero h1 {
    font-size: clamp(2.5rem, 8vw, 3rem);
    line-height: 1.12;
  }
  .hero h1 em {
    font-style: normal;
  }
  .gallery {
    display: block;
    min-height: 0;
  }
  .gallery .section-intro {
    margin-bottom: 28px;
  }
  .screenshot-strip {
    height: 430px;
  }
  .screenshot-strip img {
    width: 100%;
    height: 430px;
  }
  .craft {
    padding-top: 0;
    padding-bottom: 42px;
  }
  .craft-image img {
    height: auto;
    max-height: 310px;
  }
  .craft-copy h2 {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  .craft-copy {
    padding-top: 0;
  }
  .hero-description,
  .section-intro > p:last-child,
  .craft-copy > p:not(.eyebrow) {
    overflow-wrap: anywhere;
  }
}
@media (max-width: 899px) {
  .hero-copy,
  .hero-phone {
    grid-column: 1;
  }
  .craft {
    grid-template-columns: minmax(0, 1fr);
  }
  .craft-copy h2 {
    overflow-wrap: break-word;
    line-height: 1.15;
  }
  .hero-phone {
    width: min(300px, 100%);
    max-width: 100%;
  }
  .phone-frame {
    width: 100%;
    max-width: 100%;
  }
}
@media (max-width: 899px) {
  .hero { gap:clamp(40px, 6vw, 48px); }
  .hero-phone { width:min(260px, 70vw, 100%); }
}

.craft .eyebrow,
.how .eyebrow,
.faq .eyebrow {
  color: #80601f;
}
@media (min-width: 900px) {
  .hero {
    padding-left: max(48px, calc((100% - 1120px) / 2));
    padding-right: max(92px, calc((100% - 1120px) / 2 + 44px));
  }
  .gallery {
    padding-left: max(48px, calc((100% - 1120px) / 2));
    padding-right: max(48px, calc((100% - 1120px) / 2));
  }
  .gallery {
    display: grid;
    grid-template-columns: minmax(230px, 0.34fr) minmax(0, 0.66fr);
    column-gap: 60px;
    align-items: center;
    grid-template-rows: 1fr auto 1fr;
  }
  .gallery .section-intro {
    grid-column: 1;
    grid-row: 2;
    align-self: end;
  }
  .gallery-controls {
    grid-column: 1;
    grid-row: 3;
    align-self: start;
    margin-top: 24px;
  }
  .gallery .screenshot-strip {
    grid-column: 2;
    grid-row: 1 / span 3;
  }
  .gallery .gallery-note {
    display: none;
  }
  .craft {
    grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr);
  }
  .craft-image img {
    height: 380px;
  }
}
#carouselStatus {
  margin-inline-start: 0;
  margin-inline-end: 8px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.gallery-status {
  direction: ltr;
  unicode-bidi: isolate;
}
html[dir='rtl'] .gallery-arrows .control-icon {
  transform: scaleX(-1);
}
@media (max-width: 620px) {
  .gallery-controls {
    flex-wrap: wrap;
    gap: 8px;
  }
  #carouselStatus {
    margin-inline-start: 0;
  }
}

/* Keep the v5 rail above the legacy editorial composition. */
.gallery {
  display: block;
  min-height: 0;
  padding-top: 112px;
  padding-bottom: 112px;
}
.gallery .section-intro { max-width: 660px; margin: 0 auto 1.25rem; text-align: center; }
.gallery-controls { justify-content: center; margin: 0 auto 1rem; }
.gallery .screenshot-strip {
  display: flex;
  width: min(1120px, 100%);
  height: auto;
  margin: 0 auto;
  padding: 2px 0 14px;
  gap: 24px;
  overflow-x: auto;
}
.gallery .screenshot-strip img,
.screenshot-strip img[hidden] {
  display: block;
  flex: 0 0 calc((100% - 24px) / 2);
  width: calc((100% - 24px) / 2);
  height: auto;
  max-height: 650px;
}
.gallery .gallery-thumbnails { display: flex; }
.gallery .screenshot-strip .gallery-slide {
  display: block;
  flex: 0 0 calc((100% - 24px) / 2);
  width: calc((100% - 24px) / 2);
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
}
.gallery .screenshot-strip .gallery-slide img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
}
.gallery-slide:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
body.dialog-open { overflow: hidden; }
.film-play .control-icon { filter: none; }
.gallery-hint {
  margin: 0 auto 1rem;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}
@media (max-width: 899px) {
  .gallery { padding-top: 72px; padding-bottom: 72px; }
  .gallery .section-intro { margin-left: 0; text-align: start; }
  .gallery-controls { justify-content: flex-start; }
  .gallery-hint { margin-left: 0; text-align: start; }
  .install-options { grid-template-columns: 1fr; }
  .install-options a {
    grid-template-columns: 24px minmax(0, 1fr);
    justify-items: start;
    min-height: 64px;
    padding: 0.75rem 1rem;
  }
  .install-options a > img { display: none; }
  .install-options .install-store-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
  }
  .install-options strong {
    font-size: 1.125rem;
    white-space: nowrap;
  }
  .gallery .screenshot-strip { gap: 16px; }
  .gallery .screenshot-strip img,
  .gallery .screenshot-strip .gallery-slide { flex-basis: 100%; width: 100%; }
}
.gallery .screenshot-strip {
  --shot-height: min(60svh, 600px);
  width: calc(var(--shot-height) * 900 / 1951 * 2 + 24px);
  max-width: 100%;
  height: calc(var(--shot-height) + 16px);
  margin-inline: auto;
}
.gallery .screenshot-strip .gallery-slide {
  flex: 0 0 calc(var(--shot-height) * 900 / 1951);
  width: calc(var(--shot-height) * 900 / 1951);
  height: var(--shot-height);
  border-radius: 0;
}
.gallery .screenshot-strip .gallery-slide img {
  width: 100%;
  height: 100%;
  max-height: none;
  border-radius: 10px;
  object-fit: contain;
}
.gallery-dialog {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 24px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #010508;
}
.gallery-dialog[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 16px;
}
.gallery-dialog > img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}
.craft { padding-bottom: 112px; }
@media (max-width: 899px) {
  .gallery .screenshot-strip {
    --shot-height: min(62svh, 540px);
    width: min(100%, calc(var(--shot-height) * 900 / 1951));
    height: calc(var(--shot-height) + 16px);
  }
  .gallery .screenshot-strip .gallery-slide {
    flex-basis: calc(var(--shot-height) * 900 / 1951);
    width: calc(var(--shot-height) * 900 / 1951);
  }
  .craft { padding-bottom: 72px; }
}
@media (max-width: 620px) {
  .gallery-dialog { padding: 16px; }
}

.gallery .screenshot-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: min(1120px, 100%);
  height: auto;
  margin-inline: auto;
  gap: 14px;
  overflow: visible;
  padding: 0;
}
.gallery .screenshot-strip .gallery-slide {
  width: auto;
  height: auto;
  min-width: 0;
}
.gallery .screenshot-strip .gallery-slide img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.craft {
  padding-top: 112px;
  padding-bottom: 172px;
  overflow: visible;
}
.craft::after { display: none; }
.world {
  color: var(--cream);
  background: #010508;
}
.how {
  position: relative;
  color: var(--cream);
  background: #010508;
  padding-top: 202px;
}
.how::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 0;
  border-top: 60px solid transparent;
  border-image-source: url('/site-assets/home/craft-surface-v4.webp');
  border-image-slice: 180 0 0 0 fill;
  border-image-width: 60px 0 0 0;
  border-image-repeat: stretch;
  transform: rotate(180deg);
  pointer-events: none;
}
.how > * { position: relative; z-index: 1; }
.how li { border-color: rgba(247, 240, 221, 0.28); }
.how li > span { color: var(--gold); }
.how p { color: #d5ddd0; }
.world .section-intro,
.features .section-intro { max-width:42rem; }
.world .section-intro p:not(.eyebrow) { color: #d5ddd0; }
.world h2,
.features h2,
.guides h2 { overflow-wrap: anywhere; }
.world-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 2.5rem 0 0;
}
.world-stats > div {
  padding-top: 1rem;
  border-top: 1px solid rgba(227, 185, 108, 0.65);
}
.world-stats dt { color: var(--gold); font: 400 clamp(2.5rem, 5vw, 4rem) 'Cormorant Garamond', serif; }
.world-stats dd { margin: 0.45rem 0 0; color: var(--cream); }
.features {
  position:relative;
  background:#f3ead7;
  border-top:60px solid transparent;
  border-image-source:url('/site-assets/home/craft-surface-v4.webp');
  border-image-slice:180 0 0 0 fill;
  border-image-width:60px 0 0 0;
  border-image-repeat:stretch;
}
.features .eyebrow,
.features-section .eyebrow { color:#60430f; }
.features-art { margin:1.75rem 0 0; }
.features-art img { display:block; width:100%; aspect-ratio:4 / 1; object-fit:cover; object-position:center; }
.features::after { content:''; position:absolute; z-index:2; right:0; bottom:-60px; left:0; height:0; border-top:60px solid transparent; border-image-source:url('/site-assets/home/craft-surface-v4.webp'); border-image-slice:180 0 0 0 fill; border-image-width:60px 0 0 0; border-image-repeat:stretch; transform:rotate(180deg); pointer-events:none; }
.faq { max-width:none; margin:0; padding-right:max(28px, calc((100% - 1120px) / 2)); padding-left:max(28px, calc((100% - 1120px) / 2)); color:var(--cream); background:#010508; }
.faq .eyebrow,
.faq-group h3 { color:var(--gold); }
.faq h2,
.faq summary { color:var(--cream); }
.faq p { color:#d5ddd0; }
.faq details { border-color:rgb(247 240 221 / .28); }
.faq .text-link { color:var(--gold); }
.feature-list,
.guide-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 3rem;
  margin-top: 1.75rem;
}
.feature-list article,
.guide-list a {
  padding: 1.5rem 0;
  border-top: 1px solid #acb8aa;
}
.feature-list h3,
.guide-list h3 { margin: 0; font-size: clamp(1.35rem, 2vw, 1.8rem); font-weight: 400; }
.feature-list p,
.guide-list p { margin: 0.7rem 0 0; color: #526258; line-height: 1.65; }
.guides { background: var(--cream); }
.guide-list a:hover h3,
.guide-list a:focus-visible h3 { color: #80601f; }
@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
    justify-content: center;
  }
  .hero-copy { max-width: 560px; }
  .hero-phone {
    width: clamp(220px, min(24vw, calc((100svh - 230px) * 0.484)), 280px);
    justify-self: center;
  }
}
@media (max-width: 899px) {
  .gallery .screenshot-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    height: auto;
    gap: 12px;
  }
  .gallery .screenshot-strip .gallery-slide { width: auto; height: auto; }
  .gallery .screenshot-strip .gallery-slide:last-child {
    grid-column: 1 / span 2;
    width: calc(50% - 6px);
    justify-self: center;
  }
  .craft { padding-top: 72px; padding-bottom: 132px; }
  .how { padding-top: 142px; }
  .how::before {
    border-top-width: 48px;
    border-image-width: 48px 0 0 0;
  }
  .world-stats,
  .feature-list,
  .guide-list { grid-template-columns: 1fr; gap: 0; }
  .features { border-top-width:48px; border-image-width:48px 0 0 0; }
  .features::after { bottom:-48px; border-top-width:48px; border-image-width:48px 0 0 0; }
  .faq { padding-right:22px; padding-left:22px; }
  .world-stats { margin-top: 2.5rem; }
  .world-stats > div { padding-bottom: 1.5rem; }
}

.hero .store-ctas a,
.closing .store-ctas a {
  min-height: 64px;
  border: 0;
  color: var(--night);
  background: var(--gold);
}
.hero .store-ctas a:last-child,
.closing .store-ctas a:last-child {
  color: var(--night);
  background: var(--cream);
  border: 0;
}
.hero .store-ctas a:hover,
.closing .store-ctas a:hover { color: var(--night); background: var(--cream); }
@media (max-width: 620px) {
  .hero .store-ctas a,
  .closing .store-ctas a { min-height: 60px; }
}

/* Install handoff is a separate QR chooser, not a standard store CTA. */
.install-dialog { width:min(640px,calc(100% - 32px)); }
.install-dialog .dialog-top { align-items:flex-start; }
.install-dialog .dialog-top h2 { flex:1 1 auto; min-width:0; font-size:clamp(1.6rem,4vw,2rem); line-height:1.1; }
.install-dialog .dialog-close { flex:0 0 44px; width:44px; height:44px; }
.install-options { gap:.75rem; }
.install-options a { grid-template-columns:24px minmax(0,1fr); grid-template-rows:148px 24px; column-gap:.55rem; row-gap:.45rem; min-height:208px; padding:.8rem; }
.install-options a > img { display:block; grid-column:1 / -1; width:148px; height:148px; }
.install-options .install-store-icon { display:block; grid-column:1; width:24px; height:24px; fill:currentColor; }
.install-options strong { grid-column:2; justify-self:start; }
@media (max-width:899px) {
  .install-dialog { width:min(420px,calc(100% - 24px)); }
  .install-options { gap:.65rem; }
  .install-options a { grid-template-columns:24px minmax(0,1fr); grid-template-rows:1fr; gap:.7rem; min-height:58px; padding:.65rem .8rem; }
  .install-options a > img { display:none; }
  .install-options .install-store-icon { width:24px; height:24px; }
  .install-options strong { font-size:1rem; }
}
