/* Drift Learn — 首頁（成人版）。Ported from Drift Home.dc.html; the design
   already defines its own 1080/768 breakpoints, so this is its stylesheet
   verbatim, plus the reduced-motion guard at the end. */

:root {
  --video-modal-info-inline: 24px;
  --video-modal-control-clearance: 76px;
  --video-modal-info-max-width: 520px;
  --video-modal-shade-height: 56%;
  --video-modal-shade-height-narrow: 48%;
  --video-hint-color: #7A6337;
  --video-hint-size: 13px;
  --video-hint-gap: 8px;
  --video-hint-travel: 3px;
  --video-hint-duration: 2.4s;
  --video-hint-cycles: 2;
  --video-hint-layer: 7;
  --video-hint-arrow-tip-inset: 1px;
}

.hero-video-hint {
  position: fixed;
  left: 0;
  top: 0;
  z-index: var(--video-hint-layer);
  display: flex;
  justify-content: center;
  color: var(--video-hint-color);
  font-size: var(--video-hint-size);
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

.hero-video-hint__motion {
  display: inline-flex;
  align-items: center;
  gap: var(--video-hint-gap);
  line-height: 1;
}

.hero-video-hint__desktop-arrows { display: block; flex-shrink: 0; }
.hero-video-hint__mobile-arrow { display: none; }
.hero-video-hint[aria-hidden="true"] { visibility: hidden; }
.video-modal-open .hero-video-hint { visibility: hidden; }

.hero-video-hint[aria-hidden="false"] .hero-video-hint__motion {
  animation: video-hint-sideways var(--video-hint-duration) ease-in-out var(--video-hint-cycles);
}

.video-modal-open .hero-video-hint__motion { animation-play-state: paused; }

@keyframes video-hint-sideways {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(calc(0px - var(--video-hint-travel))); }
  75% { transform: translateX(var(--video-hint-travel)); }
}

@keyframes video-hint-upwards {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(calc(0px - var(--video-hint-travel))); }
}

@media (max-width: 1080px) {
  .hero-video-hint__desktop-arrows { display: none; }
  .hero-video-hint__mobile-arrow { display: block; }
  .hero-video-hint[aria-hidden="false"] .hero-video-hint__motion { animation-name: video-hint-upwards; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video-hint[aria-hidden="false"] .hero-video-hint__motion { animation: none; }
}

html { background:#EFE7DA; }
  html, body { margin:0; padding:0; }
  body { background:transparent; }
  * { box-sizing:border-box; }
  img, video { display:block; max-width:100%; }
  ::selection { background:#D9A450; color:#fff; }
  input::placeholder { color:#A08A5C; }
  a { color:#8E6A22; text-decoration:none; }
  a:hover { color:#C08F35; }
  summary::-webkit-details-marker { display:none; }
  input[type=range] { -webkit-appearance:none; appearance:none; height:6px; border-radius:99px; background:linear-gradient(90deg,#E5A055,#F0E2CB); outline:none; }
  input[type=range]::-webkit-slider-thumb { -webkit-appearance:none; width:24px; height:24px; border-radius:50%; background:#FFFBF2; border:3px solid #C79238; cursor:grab; box-shadow:0 6px 14px -4px rgba(74,52,19,0.5); }
  input[data-daytrack]::-webkit-slider-thumb { opacity:0; }
  input[data-daytrack]::-moz-range-thumb { opacity:0; border:none; }
  @keyframes b-pop { from { opacity:0; transform:translateY(30px) scale(.98); } to { opacity:1; transform:none; } }
  @keyframes b-bob { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-14px); } }
  @media (max-width:1080px) {
    [data-split] { grid-template-columns:1fr !important; }
    [data-split] > div:first-child { margin-left:0 !important; padding-right:0 !important; }
    [data-sticky] { position:static !important; }
  }
  @media (max-width:1080px) {
    [data-vq] { display:none !important; }
    [data-faq] { grid-template-columns:1fr !important; gap:32px !important; }
    [data-footgrid] { grid-template-columns:1fr !important; gap:30px !important; }
    footer { padding-left:18px !important; padding-right:18px !important; }
    [data-lvlgrid] { display:block !important; margin-top:30px !important; }
    [data-lvlgrid] > [data-big] { float:left !important; margin:0 16px 0 0 !important; font-size:44px !important; line-height:1.05 !important; }
    [data-lvltitle] { line-height:1.15 !important; padding-top:2px !important; }
    [data-lvlcells] { clear:both !important; margin-top:22px !important; }
  }
  @media (max-width:768px) {
    [data-heroform] { width:80% !important; max-width:368px !important; }
    [data-lvlgrid] > [data-big] { margin-right:14px !important; font-size:34px !important; }
    [data-lvltitle] { font-size:20px !important; }
    [data-lvlcells] { gap:18px !important; margin-top:20px !important; }
    section:not(.practice-section) { padding-left:18px !important; padding-right:18px !important; }
    h1 { font-size:clamp(62px, 15vw, 86px) !important; letter-spacing:-0.045em !important; }
    h2 { font-size:27px !important; letter-spacing:-0.022em !important; line-height:1.25 !important; }
    p { font-size:15px !important; line-height:1.75 !important; }
    [data-sub] { font-size:clamp(26px, 5vw, 32px) !important; }
    [data-big] { font-size:38px !important; }
    form { flex-direction:column !important; }
    nav { padding:12px 16px !important; }
    [data-navbar] { justify-content:space-between !important; gap:10px !important; }
    [data-nav-cta] { display:none !important; }
    [data-brand] { flex:0 0 auto !important; gap:8px !important; }
    [data-brand] span { font-size:15px !important; }
    [data-brand] img { width:28px !important; height:28px !important; }
  }
  @keyframes b-pulse { 0%,100% { box-shadow:0 0 0 0 rgba(232,185,102,0.55); } 60% { box-shadow:0 0 0 20px rgba(232,185,102,0); } }
  @keyframes b-merge-pop { 0% { opacity:0; transform:scale(.7) translateY(6px); } 58% { opacity:1; transform:scale(1.07) translateY(0); } 78% { transform:scale(.985); } 100% { opacity:1; transform:scale(1); } }
  @keyframes b-spin { to { transform:translate(-50%,-50%) rotate(360deg); } }
  @keyframes b-brain-pop { 0% { opacity:0; transform:scale(.12); } 62% { opacity:1; transform:scale(1.09); } 82% { transform:scale(.98); } 100% { opacity:1; transform:scale(1); } }
  @keyframes b-w1 { 0%,10.4% { transform:translate(-50%,-50%) scale(0.015); opacity:0; } 12% { opacity:1; } 29.2%,50% { transform:translate(-50%,-50%) scale(1); opacity:1; } 50.4%,100% { transform:translate(-50%,-50%) scale(0.015); opacity:0; } }
  @keyframes b-w2 { 0%,31.2% { transform:translate(-50%,-50%) scale(0.015); opacity:0; } 33% { opacity:1; } 50%,74% { transform:translate(-50%,-50%) scale(1); opacity:1; } 74.4%,100% { transform:translate(-50%,-50%) scale(0.015); opacity:0; } }
  @keyframes b-w3 { 0%,55.2% { transform:translate(-50%,-50%) scale(0.015); opacity:0; } 57% { opacity:1; } 74%,94.8% { transform:translate(-50%,-50%) scale(1); opacity:1; } 95.2%,100% { transform:translate(-50%,-50%) scale(0.015); opacity:0; } }
  @keyframes b-w4 { 0%,76% { transform:translate(-50%,-50%) scale(0.015); opacity:0; } 77.5% { opacity:1; } 94.8%,100% { transform:translate(-50%,-50%) scale(1); opacity:1; } }
  @keyframes b-float { 0%,100% { transform:translateY(0) rotate(0deg); } 50% { transform:translateY(-15px) rotate(0.7deg); } }
  @keyframes b-ring { 0% { opacity:.55; transform:scale(.6); } 100% { opacity:0; transform:scale(1.9); } }


/* Keep all three benefits in place; only the title and rule change color. */
.benefit-rotator {
  --benefit-gap: 28px;
  --benefit-compact-gap: 12px;
  --benefit-motion: 280ms;
  --benefit-ink: #3b2a0e;
  --benefit-muted: #7a6337;
  --benefit-gold: #a27835;
  --benefit-line: rgb(74 52 19 / 0.16);
  --benefit-line-active: #c79238;
  position: relative;
  margin-top: 44px;
  font-family: 'Noto Sans TC', sans-serif;
}
.benefit-rotator__items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--benefit-gap); padding: 0; margin: 0; list-style: none; }
.benefit-rotator__item {
  min-width: 0;
  border-top: 2px solid var(--benefit-line);
  padding-top: 16px;
  transition: border-color var(--benefit-motion) ease;
}
.benefit-rotator__number { display: block; font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--benefit-gold); }
.benefit-rotator__title {
  display: block;
  margin-top: 10px;
  font-size: 19px;
  font-weight: 800;
  color: var(--benefit-muted);
  transition: color var(--benefit-motion) ease;
}
.benefit-rotator__item.is-current { border-color: var(--benefit-line-active); }
.benefit-rotator__item.is-current .benefit-rotator__title { color: var(--benefit-ink); }
@media (max-width: 768px) {
  .benefit-rotator__items { gap: var(--benefit-compact-gap); }
  .benefit-rotator__title { font-size: 16px; line-height: 1.6; }
}
@media (prefers-reduced-motion: reduce) {
  .benefit-rotator__item,
  .benefit-rotator__title { transition: none; }
}

/* ------------------------------------------------------ practice cycle */

.practice-section {
  --practice-section-inset: 0px;
  padding: 120px var(--practice-section-inset) 0;
}

.practice-cycle {
  --cycle-ink: #3B2A0E;
  --cycle-muted: #7A6337;
  --cycle-gold: #B88936;
  --solid-tone-0: #FFF8EC;
  --solid-tone-1: #FAF0DF;
  --solid-tone-2: #F4E8D2;
  --solid-tone-3: #EEE0C5;
  --solid-tone-4: #E8D8B8;
  --solid-tone-5: #E2CFAB;
  --solid-tone-6: #DBC69E;
  --solid-tone-7: #D4BD91;
  --solid-depth: #B7A081;
  --solid-border: #C1AD8D;
  --solid-edge: #FFFCF4;
  --solid-border-width: 1;
  --solid-edge-width: 1.4;
  --meter-inactive-opacity: .2;
  --meter-fade-duration: .28s;
  --meter-reset-duration: .18s;
  --meter-flash-duration: .65s;
  --meter-flash-count: 2;
  --meter-flash-peak-opacity: .7;
  --cycle-gap: 28px;
  --cycle-icon-size: 40px;
  --cycle-visual-size: 330px;
  --cycle-visual-column: .97fr;
  --cycle-copy-size: 340px;
  --cycle-mobile-copy-size: 420px;
  --cycle-image-size: 34px;
  --cycle-art-left-inset: 5.6%;
  --cycle-view-width: 480;
  --cycle-view-height: 308;
  --cycle-resin-source-height: 1013;
  --cycle-resin-view-height: 1073;
  --cycle-resin-source-width: 1552;
  --cycle-resin-view-width: 1680;
  display: grid;
  grid-template-columns: minmax(0, var(--cycle-visual-column)) minmax(0, 1fr);
  width: 100%;
  max-width: calc(var(--cycle-visual-size) + var(--cycle-copy-size) + var(--cycle-gap));
  align-items: center;
  gap: var(--cycle-gap);
  margin: 32px 0 0;
}

.practice-cycle__visual {
  position: relative;
  width: min(100%, var(--cycle-visual-size));
  aspect-ratio: var(--cycle-view-width) / var(--cycle-view-height);
  justify-self: start;
}

.practice-cycle__svg { display: block; position: relative; width: 100%; height: 100%; overflow: visible; }
/* Reserve extension room without shrinking the material or the central emblem. */
.practice-cycle__visual[data-practice-resin] {
  aspect-ratio: var(--cycle-view-width) / calc(var(--cycle-view-height) * var(--cycle-resin-view-height) / var(--cycle-resin-source-height));
}
/* Compensate for the bitmap's built-in transparent/soft-edge left margin. */
[data-resin-state="ready"] > .practice-cycle__svg {
  width: calc(100% * var(--cycle-resin-view-width) / var(--cycle-resin-source-width));
  transform: translateX(calc(-1 * var(--cycle-art-left-inset)));
}
/* Every tier stays in place; progress changes only its opacity. */
.practice-meter__layer {
  opacity: var(--meter-inactive-opacity);
  transition: opacity var(--meter-reset-duration) ease-out;
}
.practice-meter__layer.is-visited { opacity: 1; transition-duration: var(--meter-fade-duration); }
/* Filled faces and a downward depth layer share a fixed world-space baseline. */
.practice-solid__depth { fill: var(--solid-depth); }
.practice-solid__face {
  stroke: var(--solid-border);
  stroke-width: var(--solid-border-width);
  stroke-linejoin: round;
}
.practice-solid__edge {
  fill: none;
  stroke: var(--solid-edge);
  stroke-width: var(--solid-edge-width);
  stroke-linecap: round;
}
.practice-solid__completion-highlight { fill: var(--solid-edge); }
.practice-meter__badge-background { opacity: 0; pointer-events: none; }
/* Pulse a surface highlight twice, keeping the filled dome and star opaque. */
[data-practice-meter][data-complete="true"] .practice-meter__badge-background {
  animation: practice-star-flash var(--meter-flash-duration) ease-in-out var(--meter-flash-count);
}
@keyframes practice-star-flash {
  0%, 100% { opacity: 0; }
  50% { opacity: var(--meter-flash-peak-opacity); }
}
@media (prefers-reduced-motion: reduce) {
  .practice-meter__layer { transition: none; }
  [data-practice-meter][data-complete="true"] .practice-meter__badge-background { animation: none; }
}
.practice-cycle__illustration { object-fit: contain; pointer-events: none; }

/* Match the previous SVG's xMidYMid fit without putting materials in its paint tree. */
.practice-baked__canvas {
  position: absolute;
  top: 0;
  left: 50%;
  width: calc(100% * var(--cycle-view-height) * var(--cycle-resin-source-width) / var(--cycle-view-width) / var(--cycle-resin-source-height));
  height: 100%;
  transform: translateX(-50%);
  isolation: isolate;
  pointer-events: none;
}
.practice-baked__layer { position: absolute; display: block; max-width: none; will-change: opacity; }
.practice-baked__layer[data-baked-layer="7"] { will-change: auto; }
.practice-baked__progress { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

.practice-cycle__copy { position: relative; width: 100%; max-width: var(--cycle-copy-size); justify-self: center; }
.practice-cycle__steps { display: flex; flex-direction: column; gap: 22px; }
.practice-cycle__step {
  display: grid;
  grid-template-columns: var(--cycle-icon-size) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.practice-cycle__step-icon {
  display: grid;
  width: var(--cycle-icon-size);
  height: var(--cycle-icon-size);
  place-items: center;
  border: 1px solid #CFB785;
  border-radius: 50%;
  color: var(--cycle-gold);
  background: rgba(255, 251, 242, .5);
}
.practice-cycle__step-icon img { width: var(--cycle-image-size); height: var(--cycle-image-size); }
.practice-cycle__step-title { font-size: 18px; font-weight: 800; line-height: 1.45; color: var(--cycle-ink); }
.practice-cycle__step-copy { margin-top: 4px; font-size: 15px; line-height: 1.75; color: var(--cycle-muted); }

/* Preserve the text area's height while its three items converge. */
[data-practice-copy] {
  --practice-merge-duration: .28s;
  --practice-copy-fade: .18s;
  --practice-completion-delay: .16s;
  --practice-completion-fade: .22s;
  --practice-check-size: 66px;
  --practice-check-glyph-size: 37.5px;
  --practice-check-gap: 16px;
  --practice-check-pop-duration: .48s;
  --practice-check-rise: 8px;
  --practice-check-overshoot: -3px;
  --practice-check-settle: 1px;
  --practice-check-start-scale: .55;
  --practice-check-peak-scale: 1.18;
  --practice-check-settle-scale: .96;
  --practice-check-light: #A8BC66;
  --practice-check-dark: #768E40;
  --practice-check-ink: #FFFFFF;
  --practice-check-shadow: 0 5px 12px rgb(88 108 42 / 18%);
}
[data-practice-copy] .practice-cycle__step {
  transition: transform var(--practice-merge-duration) ease-in-out, opacity var(--practice-copy-fade) ease-out;
}
[data-practice-copy].is-complete .practice-cycle__step {
  opacity: 0;
  transform: translateY(var(--practice-merge-y, 0px));
  pointer-events: none;
}
.practice-cycle__completion {
  position: absolute;
  top: 50%;
  inset-inline: 0;
  padding-inline-start: calc(var(--practice-check-size) + var(--practice-check-gap));
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--practice-copy-fade) ease-out;
}
.practice-cycle__completion[hidden] { display: none; }
[data-practice-copy].is-complete .practice-cycle__completion {
  opacity: 1;
  transition-duration: var(--practice-completion-fade);
  transition-delay: var(--practice-completion-delay);
}
.practice-cycle__completion-icon {
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  width: var(--practice-check-size);
  height: var(--practice-check-size);
  transform: translateY(-50%);
}
.practice-cycle__completion-check {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  border-radius: 50%;
  color: var(--practice-check-ink);
  background: linear-gradient(145deg, var(--practice-check-light), var(--practice-check-dark));
  box-shadow: var(--practice-check-shadow);
}
.practice-cycle__completion-check svg { width: var(--practice-check-glyph-size); height: var(--practice-check-glyph-size); }
[data-practice-copy].is-complete .practice-cycle__completion-check {
  animation: practice-check-pop var(--practice-check-pop-duration) ease-out var(--practice-completion-delay) 1 both;
}
@keyframes practice-check-pop {
  0% { opacity: 0; transform: translateY(var(--practice-check-rise)) scale(var(--practice-check-start-scale)); }
  55% { opacity: 1; transform: translateY(var(--practice-check-overshoot)) scale(var(--practice-check-peak-scale)); }
  78% { opacity: 1; transform: translateY(var(--practice-check-settle)) scale(var(--practice-check-settle-scale)); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.practice-cycle__completion-label { margin-bottom: 8px; font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--cycle-gold); }
.practice-cycle__completion-title { font-size: 23px; font-weight: 800; line-height: 1.45; color: var(--cycle-ink); }
.practice-cycle__completion-copy { margin-top: 10px; font-size: 15px; line-height: 1.75; color: var(--cycle-muted); }
@media (prefers-reduced-motion: reduce) {
  [data-practice-copy] .practice-cycle__step,
  [data-practice-copy] .practice-cycle__completion { transition: none; }
  [data-practice-copy].is-complete .practice-cycle__completion-check { animation: none; }
}
@media (max-width: 1080px) {
  .practice-cycle { --cycle-gap: 16px; grid-template-columns: minmax(0, 1fr); max-width: var(--cycle-mobile-copy-size); margin-top: 24px; margin-inline: auto; }
  /* Preserve the illustration's existing size when the text gutter is added. */
  .practice-cycle__visual { width: min(var(--cycle-mobile-copy-size), calc(100% + 2 * var(--practice-section-inset, 0px))); justify-self: center; }
  [data-resin-state="ready"] > .practice-cycle__svg { left: 50%; transform: translateX(-50%); }
  .practice-cycle__copy { max-width: var(--cycle-mobile-copy-size); }
  .practice-cycle__step-copy { font-size: 16px; line-height: 1.65; }
  .practice-cycle__completion-copy { font-size: 16px; line-height: 1.65; }
}
@media (max-width: 768px) {
  .practice-section { --practice-section-inset: 18px; }
}

/* ---------------------------------------------------------- performance */

/* Keep native FAQ disclosure controls available to assistive technology. */
[data-faq] summary > span { flex-shrink: 0; }
[data-faq] p a { text-decoration: underline; text-underline-offset: .2em; overflow-wrap: anywhere; }

/* Cards are moved by transform on every scroll frame; keep them on their own
   compositor layers rather than repainting the stack. */
[data-vfloat] {
  will-change: transform, opacity;
  backface-visibility: hidden;
  cursor: pointer;
  touch-action: manipulation;
}

[data-vfloat].is-video-card-active { pointer-events: auto; }

.home-story-layout {
  max-width: 1240px;
  grid-template-columns: minmax(0, 1fr) 480px;
}

@media (min-width: 1081px) {
  /* Keep off-screen entrance cards inside the desktop viewport's clipping layer. */
  [data-vlayer] { overflow: hidden; }
  /* Align the actual arrow tip, not the SVG box, with the right card's edge. */
  .hero-video-hint { justify-content: flex-start; }
  .hero-video-hint__motion { margin-left: calc(0px - var(--video-hint-arrow-tip-inset)); }
}

[data-vfloat]:focus-visible { outline: none; }

[data-vfloat]:focus-visible [data-vshell] {
  outline: 3px solid #E8B966;
  outline-offset: 4px;
}


/* ------------------------------------------------------- video playback */

body.video-modal-open { overflow: hidden; }

.video-modal {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 24px;
  border: 0;
  background: transparent;
  overflow: hidden;
}

.video-modal::backdrop {
  background: rgba(18, 14, 9, .78);
  backdrop-filter: blur(10px);
}

.video-modal__frame {
  position: relative;
  width: min(520px, calc((100dvh - 48px) * .5625), calc(100vw - 48px));
  aspect-ratio: 9 / 16;
  margin: auto;
  overflow: hidden;
  border-radius: 28px;
  background: #090909;
  box-shadow: 0 32px 90px rgba(0, 0, 0, .48);
}

.video-modal__frame video {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  background: #090909;
}

.video-modal__shade {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  height: var(--video-modal-shade-height);
  background: linear-gradient(180deg, transparent, rgba(7, 8, 8, .9));
  pointer-events: none;
}

.video-modal__details {
  position: absolute;
  z-index: 2;
  right: var(--video-modal-info-inline);
  bottom: var(--video-modal-control-clearance);
  left: var(--video-modal-info-inline);
  color: #FFF9EC;
  text-align: left;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .72);
  pointer-events: none;
}

.video-modal__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.video-modal__badges span {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(18, 16, 13, .54);
  backdrop-filter: blur(10px);
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.video-modal__sentence {
  margin: 0;
  font-size: clamp(18px, 2.1vw, 24px);
  font-weight: 700;
  line-height: 1.35;
  text-wrap: pretty;
}

.video-modal__translation {
  margin: 7px 0 0;
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255, 249, 236, .82);
  text-wrap: pretty;
}

.video-modal__close {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 16px;
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 50%;
  color: #fff;
  background: rgba(25, 22, 18, .48);
  backdrop-filter: blur(12px);
  cursor: pointer;
  touch-action: manipulation;
  transition: background .2s ease, transform .2s ease;
}

.video-modal__close:hover { background: rgba(25, 22, 18, .7); }
.video-modal__close:active { transform: scale(.95); }
.video-modal__close:focus-visible { outline: 3px solid #E8B966; outline-offset: 3px; }

@media (max-width: 1080px) {
  .video-modal { padding: 0; background: #090909; }

  .video-modal::backdrop { background: #090909; backdrop-filter: none; }

  .video-modal__frame {
    width: 100%;
    height: 100dvh;
    aspect-ratio: auto;
    border-radius: 0;
    box-shadow: none;
  }

  .video-modal__frame video { object-fit: contain; }

  .video-modal__shade { height: var(--video-modal-shade-height-narrow); }

  .video-modal__details {
    right: max(var(--video-modal-info-inline), env(safe-area-inset-right));
    bottom: max(
      var(--video-modal-control-clearance),
      calc(env(safe-area-inset-bottom) + var(--video-modal-control-clearance))
    );
    left: max(var(--video-modal-info-inline), env(safe-area-inset-left));
    width: min(
      var(--video-modal-info-max-width),
      calc(100% - var(--video-modal-info-inline) * 2)
    );
    margin: 0 auto;
  }

  .video-modal__close {
    top: max(16px, env(safe-area-inset-top));
    right: max(16px, env(safe-area-inset-right));
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Waitlist form status line. waitlist.js writes the text and a [data-state]
   of loading / error / success; the reserved min-height keeps the button row
   from jumping when the first message appears. */
.waitlist-msg {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: #7A6337;
  margin: 12px 0 0;
  min-height: 1.6em;
}

.waitlist-msg[data-state="error"] { color: #7B1810; }
.waitlist-msg[data-state="success"] { color: #3F6B32; }

/* Same line sitting on the warm closing-CTA panel, which needs darker ink. */
.waitlist-msg--onwarm { color: #6B4A24; }
.waitlist-msg--onwarm[data-state="error"] { color: #6E1108; }
.waitlist-msg--onwarm[data-state="success"] { color: #2F5A28; }


/* ------------------------------------------------------- signup washes */

/* Two very slow lights inside the signup panel — 28s and 36s, so they never
   line up and the panel never settles into a fixed picture. */
@keyframes cta-wash {
  0%, 100% { transform: translate(-12%, 8%) scale(1); opacity: .5; }
  50%      { transform: translate(12%, -6%) scale(1.2); opacity: .8; }
}

.cta-wash {
  position: absolute;
  width: 70%;
  padding-bottom: 70%;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.cta-wash-a {
  left: -6%;
  top: -34%;
  background: radial-gradient(circle, rgba(125,140,100,0.9) 0 46%, rgba(125,140,100,0) 72%);
  animation: cta-wash 28s ease-in-out infinite;
}

.cta-wash-b {
  right: -10%;
  bottom: -38%;
  background: radial-gradient(circle, rgba(196,158,96,0.42) 0 44%, rgba(196,158,96,0) 72%);
  animation: cta-wash 36s ease-in-out infinite reverse;
}
