/* 日脉 Rimai homepage. Dark, photographic sections alternate with light "paper" ones.
   Shared header, language menu and footer live in style.css; they read the tokens set here. */

@font-face {
  font-family: "Rimai Serif";
  src: url("fonts/rimai-serif-600.woff2") format("woff2");
  font-weight: 500 800;
  font-display: swap;
}

@font-face {
  font-family: "Rimai Serif";
  src: url("fonts/rimai-serif-400.woff2") format("woff2");
  font-weight: 100 499;
  font-display: swap;
}

body.home {
  --bg: #09090A;
  --surface: #141518;
  --fg: #EDEBE6;
  --muted: #959AA0;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.26);
  --track: #1B1D21;
  --accent: #D6A24C;
  --accent-ink: #E3B567;
  --accent-soft: rgba(214, 162, 76, 0.14);
  --heart: #E0604B;
  --heart-soft: rgba(224, 96, 75, 0.2);
  --shadow: rgba(0, 0, 0, 0.4);
  --shadow-strong: rgba(0, 0, 0, 0.7);
  --soft: #CFCAC1;
  --serif: "Rimai Serif", "Songti SC", "STSong", "Source Han Serif SC", "Noto Serif CJK SC", "Noto Serif SC", Georgia, serif;
  --wrap: 1200px;
  color-scheme: dark;
  background: var(--bg);
  color: var(--fg);
}

.home .paper {
  --bg: #F2EFE9;
  --surface: #FFFFFF;
  --fg: #16171A;
  --muted: #676C72;
  --line: #DAD5CB;
  --line-strong: #C3BDB1;
  --track: #E6E2D9;
  --accent: #9A6A1E;
  --accent-ink: #875C17;
  --accent-soft: rgba(154, 106, 30, 0.1);
  --soft: #4C5157;
  color-scheme: light;
  background: var(--bg);
  color: var(--fg);
}

.home main {
  overflow-x: clip;
}

.home .site-header {
  background: rgba(9, 9, 10, 0.84);
  border-bottom-color: rgba(255, 255, 255, 0.07);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(28px, env(safe-area-inset-left, 0px));
  padding-right: max(28px, env(safe-area-inset-right, 0px));
}

.home .serif {
  font-family: var(--serif) !important;
  font-weight: 600;
}

/* ---------- Type ---------- */
.home .eyebrow {
  background: none;
  border: 0;
  padding: 0;
  border-radius: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.rec-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--heart);
  box-shadow: 0 0 0 4px var(--heart-soft);
  animation: rec 2.4s ease-in-out infinite;
}

@keyframes rec {
  50% {
    opacity: 0.55;
    box-shadow: 0 0 0 8px transparent;
  }
}

.title {
  font-size: clamp(2.1rem, 4.6vw, 3.9rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

.title--sm {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.35;
}

.display {
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0;
}

html[lang^="zh"] .home .title,
html[lang="ja"] .home .title {
  line-height: 1.28;
  letter-spacing: -0.005em;
}

html[lang^="zh"] .home .display,
html[lang="ja"] .home .display {
  line-height: 1.16;
  letter-spacing: -0.01em;
}

.lead {
  font-size: clamp(1.04rem, 1.3vw, 1.18rem);
  line-height: 1.75;
  color: var(--soft);
  max-width: 34em;
  margin: 22px 0 0;
  text-wrap: pretty;
}

.head {
  max-width: 780px;
  margin-bottom: clamp(48px, 6vw, 84px);
}

.head--center {
  margin-inline: auto;
  text-align: center;
}

.head--center .lead {
  margin-inline: auto;
}

/* ---------- Buttons & links ---------- */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.actions--center {
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.button--light {
  background: #F4F1EA;
  color: #111214;
}

.button--light:hover {
  background: #FFFFFF;
  color: #111214;
}

.button--ghost {
  border: 1px solid var(--line-strong);
  color: var(--fg);
}

.button--ghost:hover {
  color: var(--fg);
  border-color: var(--fg);
}

.link-arrow {
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
}

.link-arrow::after {
  content: "";
  display: inline-block;
  width: 0.48em;
  height: 0.48em;
  margin-left: 0.5em;
  border-top: 1.8px solid currentColor;
  border-right: 1.8px solid currentColor;
  transform: translateY(-0.08em) rotate(45deg);
  transition: transform 0.15s ease;
}

.link-arrow:hover {
  color: var(--accent-ink);
  text-decoration: none;
}

.link-arrow:hover::after {
  transform: translate(3px, -0.08em) rotate(45deg);
}

.more {
  margin: 32px 0 0;
}

.device {
  display: block;
  height: auto;
  max-width: 100%;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - 60px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(80%, 1700px);
  z-index: -1;
}

.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 46%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 36%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 36%);
  animation: heroPhoto 2.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes heroPhoto {
  from {
    opacity: 0;
    transform: scale(1.05);
  }
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 62%, var(--bg) 100%);
}

.hero__inner {
  position: relative;
  padding-block: 10vh 14vh;
  animation: rise 1s 0.25s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
}

.hero__title {
  font-size: clamp(3.4rem, 9vw, 8.2rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 28px;
}

html[lang^="zh"] .hero__title,
html[lang="ja"] .hero__title {
  line-height: 1.1;
  letter-spacing: -0.01em;
}

html[lang="ja"] .hero__title {
  font-size: clamp(2.9rem, 7.4vw, 6.6rem);
}

.hero__lead {
  max-width: 24em;
  margin: 0 0 38px;
  font-size: clamp(1.08rem, 1.5vw, 1.32rem);
  line-height: 1.65;
  color: var(--soft);
  text-wrap: pretty;
}

.hero__note {
  margin: 30px 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.hero__cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  width: 1px;
  height: 52px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.hero__cue span {
  position: absolute;
  left: 0;
  top: -40%;
  width: 1px;
  height: 40%;
  background: var(--fg);
  animation: cue 2.2s ease-in-out infinite;
}

@keyframes cue {
  to {
    top: 100%;
  }
}

/* ---------- Statement ---------- */
.statement {
  padding-block: clamp(120px, 24vh, 240px) clamp(100px, 18vh, 200px);
}

.statement__text {
  max-width: 17em;
  margin: 0;
  font-size: clamp(1.9rem, 4.6vw, 3.9rem);
  line-height: 1.42;
  letter-spacing: -0.01em;
  font-weight: 400 !important;
}

html[lang="en"] .statement__text {
  max-width: 19em;
  line-height: 1.3;
}

html.js .statement .w {
  opacity: 0.16;
  transition: opacity 0.3s ease;
}

html.js .statement .w.on {
  opacity: 1;
}

/* ---------- A day (pinned) ---------- */
.day {
  position: relative;
}

html.js .day {
  height: calc(var(--moments) * 100svh + 30svh);
}

.day__pin {
  position: relative;
}

html.js .day__pin {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
}

.moment {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}

html.js .moment {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease, visibility 0s linear 0.9s;
}

html.js .moment.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.9s ease, visibility 0s;
}

.moment__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.moment__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.07);
  transition: transform 7s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.moment.is-active .moment__photo {
  transform: scale(1);
}

.moment__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 9, 10, 0.86) 0%, rgba(9, 9, 10, 0.5) 34%, rgba(9, 9, 10, 0) 60%),
    linear-gradient(0deg, rgba(9, 9, 10, 0.85) 0%, rgba(9, 9, 10, 0) 42%),
    linear-gradient(180deg, rgba(9, 9, 10, 0.55) 0%, rgba(9, 9, 10, 0) 18%);
}

.moment__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 40px;
  padding-block: 0 clamp(118px, 17vh, 170px);
}

.moment__text > * {
  transition: opacity 0.8s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

html.js .moment:not(.is-active) .moment__text > * {
  opacity: 0;
  transform: translateY(18px);
}

.moment.is-active .moment__title {
  transition-delay: 0.08s;
}

.moment.is-active .moment__body {
  transition-delay: 0.16s;
}

.moment__time {
  margin: 0 0 14px;
  font-size: clamp(3.6rem, 9vw, 8rem);
  font-weight: 400 !important;
  line-height: 1;
  letter-spacing: -0.035em;
  color: #F4EFE6;
  font-variant-numeric: tabular-nums;
}

.moment__title {
  margin: 0 0 14px;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.2;
  color: #F4EFE6;
}

.moment__body {
  max-width: 27em;
  margin: 0;
  color: #D4CFC6;
  font-size: 1.06rem;
  line-height: 1.75;
}

.moment__device {
  align-self: center;
  transition: opacity 0.9s ease, transform 1s cubic-bezier(0.2, 0.7, 0.2, 1);
}

html.js .moment:not(.is-active) .moment__device {
  opacity: 0;
  transform: translateY(40px);
}

.moment__img {
  width: clamp(220px, 20vw, 290px);
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.6));
}

.moment__device--watch .moment__img {
  width: clamp(200px, 18vw, 270px);
  -webkit-mask-image: linear-gradient(transparent 0%, #000 22%, #000 78%, transparent 100%);
  mask-image: linear-gradient(transparent 0%, #000 22%, #000 78%, transparent 100%);
}

.notice {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 12px 14px 13px 12px;
  border-radius: 20px;
  background: rgba(30, 30, 33, 0.62);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.7);
  font-size: 0.86rem;
  line-height: 1.45;
  color: #F1EEE8;
}

.notice img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  flex-shrink: 0;
}

.notice p {
  margin: 0;
}

.notice__head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 2px !important;
}

.notice__head span {
  color: #A2A6AB;
  font-size: 0.76rem;
}

.moment__notice {
  position: absolute;
  top: calc(60px + 7vh);
  right: max(28px, 7vw);
  width: min(340px, 86vw);
  transition: opacity 0.8s 0.4s ease, transform 0.9s 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

html.js .moment:not(.is-active) .moment__notice {
  opacity: 0;
  transform: translateY(-16px);
}

.day__hud {
  display: none;
}

html.js .day__hud {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 22px;
  pointer-events: none;
}

.clock {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
}

.clock__ticks line {
  stroke: rgba(255, 255, 255, 0.3);
  stroke-width: 1;
}

.clock__ticks line.major {
  stroke: rgba(255, 255, 255, 0.7);
  stroke-width: 1.6;
}

.clock__track,
.clock__arc {
  fill: none;
  stroke-width: 4;
}

.clock__track {
  stroke: rgba(255, 255, 255, 0.12);
}

.clock__arc {
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-dasharray: 0 1440;
  transform: rotate(37.5deg);
  transform-origin: 50px 50px;
}

.clock__hand {
  transform-origin: 50px 50px;
  transform: rotate(127.5deg);
  transition: transform 0.25s linear;
}

.clock__hand line {
  stroke: #F4EFE6;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.clock__hand circle {
  fill: var(--heart);
}

.clock__pin {
  fill: #F4EFE6;
}

.day__rail {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  pointer-events: auto;
}

.day__rail button {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  font: inherit;
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
  padding: 7px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.day__rail button:hover {
  color: #F4EFE6;
}

.day__rail button[aria-current="true"] {
  color: #F4EFE6;
  background: rgba(255, 255, 255, 0.13);
}

/* ---------- Tonight's page (paper) ---------- */
.page {
  padding-block: clamp(100px, 14vw, 180px);
}

.page__stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 330px) minmax(0, 1fr);
  grid-template-rows: repeat(3, auto);
  align-items: center;
  column-gap: clamp(32px, 6vw, 96px);
  row-gap: 32px;
}

.page__phone {
  grid-column: 2;
  grid-row: 1 / span 3;
}

.page__phone .device {
  width: 100%;
  filter: drop-shadow(0 40px 60px rgba(40, 30, 10, 0.22)) drop-shadow(0 10px 20px rgba(40, 30, 10, 0.12));
}

.page__callouts {
  display: contents;
  list-style: none;
}

.page__callouts li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.callout-what {
  grid-column: 1;
  grid-row: 1;
  text-align: right;
  align-items: flex-end;
}

.callout-body {
  grid-column: 3;
  grid-row: 2;
}

.callout-next {
  grid-column: 1;
  grid-row: 3;
  text-align: right;
  align-items: flex-end;
}

.page__callouts li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  width: clamp(20px, 4vw, 64px);
  height: 1px;
  background: var(--accent);
}

.page__callouts li::after {
  content: "";
  position: absolute;
  top: calc(0.55em - 3px);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.callout-what::before,
.callout-next::before {
  right: calc(-1 * clamp(28px, 5vw, 80px));
}

.callout-what::after,
.callout-next::after {
  right: calc(-1 * clamp(28px, 5vw, 80px) - 6px);
}

.callout-body::before {
  left: calc(-1 * clamp(28px, 5vw, 80px));
}

.callout-body::after {
  left: calc(-1 * clamp(28px, 5vw, 80px) - 6px);
}

.callout__label {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.callout__text {
  max-width: 14em;
  text-wrap: balance;
  font-size: clamp(1.12rem, 1.6vw, 1.42rem);
  line-height: 1.5;
}

.page__foot {
  margin: 64px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- Watch (black) ---------- */
.watch {
  background: #000;
  padding-block: clamp(100px, 12vw, 170px);
  overflow: hidden;
}

.watch__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
}

.watch__hero {
  position: relative;
  display: flex;
  justify-content: center;
  max-height: 640px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent 0%, #000 16%, #000 84%, transparent 100%);
  mask-image: linear-gradient(transparent 0%, #000 16%, #000 84%, transparent 100%);
}

.watch__hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 90%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(214, 162, 76, 0.2), transparent);
}

.watch__img {
  position: relative;
  width: min(100%, 470px);
  align-self: center;
}

.minis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 56px);
  margin-top: clamp(64px, 8vw, 110px);
}

.mini {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

.mini__img {
  width: min(200px, 100%);
  aspect-ratio: 1 / 1.12;
  object-fit: cover;
  object-position: 50% 50%;
}

.mini figcaption {
  max-width: 13em;
  color: var(--soft);
  font-size: 0.98rem;
}

/* ---------- Feature cards ---------- */
.features {
  background: #0E0F11;
  padding-block: clamp(100px, 12vw, 170px);
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;
  border-radius: 30px;
  background: linear-gradient(165deg, #1B1C20 0%, #111215 70%);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.card__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 9, 10, 0.82) 0%, rgba(9, 9, 10, 0.45) 45%, rgba(9, 9, 10, 0.6) 100%);
}

.card__text {
  padding: clamp(28px, 3.4vw, 44px) clamp(28px, 3.4vw, 44px) 0;
}

.card__tag {
  margin: 0 0 12px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.card h3 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  line-height: 1.25;
}

.card__text p:last-child {
  margin: 0;
  max-width: 26em;
  color: var(--soft);
}

.card__peek {
  margin-top: auto;
  height: 390px;
  padding-top: 40px;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.card__img {
  width: 270px;
  align-self: flex-start;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.55));
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.card:hover .card__img {
  transform: translateY(-10px);
}

/* ---------- Looks ---------- */
.looks {
  padding-block: clamp(100px, 12vw, 170px);
  background: radial-gradient(70% 55% at 50% 100%, rgba(214, 162, 76, 0.16), transparent 70%), var(--bg);
}

.looks__row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(16px, 4vw, 56px);
}

.look {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.look__img {
  width: clamp(190px, 20vw, 262px);
  filter: drop-shadow(0 34px 50px rgba(0, 0, 0, 0.55));
}

.look:nth-child(2) .look__img {
  width: clamp(210px, 23vw, 300px);
}

.look figcaption {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.12rem;
}

.look figcaption > span {
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* ---------- Privacy (paper) ---------- */
.privacy {
  padding-block: clamp(100px, 14vw, 180px) clamp(72px, 9vw, 120px);
}

.privacy .head {
  margin-bottom: 0;
  max-width: 900px;
}

.privs {
  list-style: none;
  margin: clamp(56px, 7vw, 88px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(32px, 6vw, 88px);
}

.privs li {
  padding: 28px 0 30px;
  border-top: 1px solid var(--line);
}

.privs h3 {
  margin: 0 0 10px;
  font-size: 1.14rem;
}

.privs p {
  margin: 0;
  color: var(--muted);
  max-width: 32em;
}

.datatable {
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.datatable summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 0;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.datatable summary::-webkit-details-marker,
.qa summary::-webkit-details-marker {
  display: none;
}

.datatable summary::after,
.qa summary::after {
  content: "";
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  background:
    linear-gradient(currentColor, currentColor) center / 12px 1.6px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.6px 12px no-repeat;
  transition: transform 0.25s ease;
}

.datatable[open] summary::after,
.qa[open] summary::after {
  transform: rotate(45deg);
}

.datatable .table-wrap {
  margin: 0 0 12px;
}

/* ---------- FAQ (paper) ---------- */
.faq {
  padding-block: clamp(40px, 6vw, 80px) clamp(100px, 13vw, 170px);
}

.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.faq .head {
  position: sticky;
  top: 96px;
  margin-bottom: 0;
}

.qa {
  border-top: 1px solid var(--line);
}

.qa:last-child {
  border-bottom: 1px solid var(--line);
}

.qa summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 0;
  font-weight: 600;
  font-size: 1.06rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.qa p {
  margin: -4px 0 26px;
  color: var(--muted);
  max-width: 40em;
}

/* ---------- Closing ---------- */
.cta {
  position: relative;
  min-height: 86svh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  padding-block: 120px;
}

.cta__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.cta__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 70% at 50% 50%, rgba(9, 9, 10, 0.45), rgba(9, 9, 10, 0.85)), linear-gradient(180deg, var(--bg) 0%, transparent 18%, transparent 82%, var(--bg) 100%);
}

.cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta__icon {
  width: 96px;
  height: 96px;
  margin-bottom: 30px;
  border-radius: 22px;
  box-shadow: 0 24px 50px -16px rgba(0, 0, 0, 0.8), 0 0 0 0.5px rgba(255, 255, 255, 0.12);
}

.cta .lead {
  margin: 22px auto 36px;
}

.about {
  padding-block: clamp(64px, 8vw, 110px);
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.about .head {
  margin-bottom: 0;
}

.about__card {
  padding: 28px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.about__card .org-facts {
  margin: 0;
}

/* ---------- Reveal ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s ease, transform 1s cubic-bezier(0.2, 0.7, 0.2, 1);
}

html.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html.js .reveal,
  .hero__inner,
  .hero__photo,
  .moment__photo,
  .rec-dot,
  .hero__cue span {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .moment__img {
    width: clamp(180px, 24vw, 240px);
  }
}

@media (max-width: 900px) {
  .hero {
    align-items: flex-end;
    min-height: calc(100svh - 56px);
  }

  .hero__media {
    width: 100%;
    bottom: auto;
    height: 66%;
  }

  .hero__photo {
    object-position: 46% 50%;
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  }

  .hero__media::after {
    background: linear-gradient(180deg, rgba(9, 9, 10, 0.3) 0%, transparent 30%);
  }

  .hero__inner {
    padding-block: 0 56px;
  }

  .hero__cue {
    display: none;
  }

  .moment__inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 112px;
  }

  .moment__device {
    order: -1;
    justify-self: end;
  }

  .moment__img {
    width: min(40vw, 200px);
  }

  .moment__device--watch .moment__img {
    width: min(38vw, 190px);
  }

  .moment__media::after {
    background:
      linear-gradient(0deg, rgba(9, 9, 10, 0.92) 0%, rgba(9, 9, 10, 0.55) 42%, rgba(9, 9, 10, 0.1) 70%),
      linear-gradient(180deg, rgba(9, 9, 10, 0.55) 0%, rgba(9, 9, 10, 0) 20%);
  }

  .moment__time {
    font-size: clamp(3rem, 15vw, 4.6rem);
  }

  .moment__notice {
    left: 50%;
    right: auto;
    margin-left: min(-170px, -43vw);
  }

  .page__stage {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    row-gap: 24px;
  }

  .page__phone {
    grid-column: 1;
    grid-row: 1;
    width: min(270px, 70vw);
    margin: 0 auto 24px;
  }

  .callout-what,
  .callout-body,
  .callout-next {
    grid-column: 1;
    grid-row: auto;
    text-align: left;
    align-items: flex-start;
    padding-left: 22px;
    border-left: 1px solid var(--accent);
  }

  .page__callouts li::before,
  .page__callouts li::after {
    display: none;
  }

  .watch__grid,
  .faq__grid,
  .about__grid {
    grid-template-columns: 1fr;
  }

  .watch__hero {
    order: -1;
    max-height: 520px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: 0;
  }

  .faq .head {
    position: static;
  }

  .privs {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .wrap {
    padding-left: max(20px, env(safe-area-inset-left, 0px));
    padding-right: max(20px, env(safe-area-inset-right, 0px));
  }

  .looks__row {
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * max(20px, env(safe-area-inset-left, 0px)));
    padding: 8px max(20px, env(safe-area-inset-left, 0px)) 16px;
    scrollbar-width: none;
  }

  .looks__row::-webkit-scrollbar {
    display: none;
  }

  .look {
    flex: 0 0 auto;
    scroll-snap-align: center;
  }

  .look__img,
  .look:nth-child(2) .look__img {
    width: min(230px, 60vw);
  }
}

@media (max-width: 600px) {
  .day__rail {
    display: none;
  }

  html.js .day__hud {
    bottom: 22px;
  }

  .minis {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .card__peek {
    height: 340px;
  }

  .card__img {
    width: 230px;
  }

  .actions .button {
    flex: 1 1 auto;
  }
}

/* ---------- 404 ---------- */
.notfound {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  background: radial-gradient(60% 50% at 50% 40%, rgba(214, 162, 76, 0.12), transparent 70%), var(--bg);
}

.notfound__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: 80px;
}

.notfound__icon {
  width: 72px;
  height: 72px;
  margin-bottom: 28px;
  border-radius: 17px;
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.8);
}

.notfound .lead {
  margin: 18px auto 34px;
}
