:root {
  --bg: #faf7f2;
  --surface: #fffdfa;
  --paper: #faf7f2;
  --pedestal: #fdf7f2;
  --porcelain: #fffdfa;
  --linen: #f3ede3;
  --ink: #241b16;
  --ink-ui: #272c31;
  --muted: #675f58;
  --muted-soft: #948a80;
  --accent: #714b2b;
  --accent-soft: #f5eee4;
  --umber: #714b2b;
  --apricot: #fae4c8;
  --emerald: #1f7a58;
  --espresso-1: #32231b;
  --espresso-2: #201611;
  --line: rgba(46, 33, 24, 0.085);
  --line-strong: rgba(46, 33, 24, 0.15);
  --shadow-ambient: 0 14px 36px rgba(38, 26, 18, 0.055);
  --shadow-float: 0 24px 56px rgba(38, 26, 18, 0.1);
  --radius-card: 22px;
  --radius-banner: 26px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.72;
  overflow-x: hidden;
}

.sr-svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 3;
}

main {
  position: relative;
  overflow-x: clip;
}

/* ===================================================
   Legal & Compliance Subpage Styles (/terms, /privacy, /delete-account)
   =================================================== */
header.site-header {
  max-width: 900px;
  margin: 0 auto 28px;
  padding: 28px 0 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.brand-row img.icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  border: 1px solid var(--line);
  box-shadow: 0 4px 12px rgba(38, 26, 18, 0.06);
}

.brand-title strong {
  display: block;
  font-size: 19px;
  font-weight: 600;
}

.brand-title span {
  font-size: 13px;
  color: var(--muted);
}

nav.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

nav.site-nav a {
  color: var(--umber);
  text-decoration: none;
  font-weight: 500;
  font-size: 14.5px;
}

nav.site-nav a:hover,
nav.site-nav a[aria-current="page"] {
  text-decoration: underline;
}

nav.site-nav a.lang-switch {
  padding: 3px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--accent-soft);
  font-size: 12.5px;
}

article.card,
section.card {
  max-width: 900px;
  margin: 0 auto 28px;
  background: var(--porcelain);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 32px 30px;
  box-shadow: var(--shadow-ambient);
}

article.card h1 {
  font-size: 26px;
  line-height: 1.35;
  margin: 0 0 10px;
}

article.card h2 {
  font-size: 18.5px;
  line-height: 1.45;
  margin: 26px 0 10px;
  color: var(--ink);
}

article.card h3 {
  font-size: 15.5px;
  margin: 18px 0 8px;
}

article.card p,
article.card li {
  color: var(--ink);
  overflow-wrap: break-word;
}

.muted {
  color: var(--muted);
  font-size: 13.8px;
}

.btn-primary {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--apricot);
  border: 1px solid #dfc4a2;
  color: #4a2e16;
  font-weight: 600;
  text-decoration: none;
  margin-top: 8px;
}

.btn-primary:hover {
  background: #f5d8b2;
}

.notice-box {
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 14px 0;
  font-size: 13.8px;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 14px 0 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 20px;
  font-size: 13.8px;
}

.table-scroll table {
  margin: 0;
  min-width: 560px;
}

th, td {
  border: 1px solid #e6ddd1;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--accent-soft);
  font-weight: 600;
}

/* ===================================================
   Sticky Translucent Topbar (Homepage)
   =================================================== */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 60px;
  background: rgba(250, 247, 242, 0.78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(46, 33, 24, 0.065);
}

.topbar-inner {
  width: 100%;
  max-width: 1240px;
  height: 100%;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid rgba(46, 33, 24, 0.08);
  box-shadow: 0 2px 8px rgba(38, 26, 18, 0.06);
}

.brand-wordmark {
  height: 21px;
  width: auto;
  display: block;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.topnav a {
  color: var(--ink);
  opacity: 0.76;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.topnav a:hover {
  opacity: 1;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  background: rgba(255, 253, 250, 0.8);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.lang-pill:hover {
  background: var(--porcelain);
}

.cta-pill-sm {
  appearance: none;
  border: none;
  background: var(--ink);
  color: #fbf8f3;
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.2s ease;
}

.cta-pill-sm:hover {
  background: #3a2a21;
  transform: translateY(-1px);
}

/* ===================================================
   Section 1: Compact, Content-Rich & Multi-Animated Hero
   =================================================== */
.hero {
  position: relative;
  padding: 108px 0 56px;
  overflow: hidden;
  background:
    radial-gradient(90% 65% at 22% 0%, rgba(154, 216, 232, 0.56) 0%, rgba(203, 236, 242, 0.28) 45%, rgba(250, 247, 242, 0) 78%),
    radial-gradient(70% 58% at 78% 18%, rgba(250, 198, 134, 0.28) 0%, rgba(246, 134, 96, 0.1) 44%, rgba(250, 247, 242, 0) 78%),
    linear-gradient(180deg, #d8eef3 0%, #eef6f5 46%, #faf7f2 96%);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.02fr 1.06fr;
  gap: 48px;
  align-items: center;
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.live-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 253, 250, 0.78);
  border: 1px solid rgba(46, 33, 24, 0.08);
  font-size: 12.5px;
  font-weight: 600;
  color: #3f5862;
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2298b8;
  box-shadow: 0 0 0 0 rgba(34, 152, 184, 0.55);
  animation: dotPulse 2.2s infinite;
}

.hero-title {
  margin: 0;
  font-size: clamp(32px, 3.2vw, 44px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.hero-sub {
  margin: 16px 0 22px;
  font-size: 15px;
  line-height: 1.76;
  color: var(--muted);
  max-width: 46ch;
}

.sim-card {
  width: 100%;
  max-width: 510px;
  background: rgba(255, 253, 250, 0.84);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(46, 33, 24, 0.09);
  border-radius: 18px;
  padding: 14px 18px;
  margin-bottom: 22px;
  box-shadow: 0 10px 26px rgba(38, 26, 18, 0.045);
}

.sim-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 12.5px;
}

.sim-label {
  color: var(--muted);
  font-weight: 500;
}

.sim-result {
  color: var(--ink);
  font-weight: 500;
}

.sim-result strong {
  display: inline-block;
  font-size: 18px;
  font-weight: 700;
  color: var(--umber);
  margin: 0 3px;
  font-variant-numeric: tabular-nums;
}

.sim-presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.sim-chip {
  appearance: none;
  border: 1px solid rgba(46, 33, 24, 0.09);
  background: var(--paper);
  color: var(--muted);
  border-radius: 11px;
  padding: 7px 9px;
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.sim-chip:hover {
  border-color: rgba(113, 75, 43, 0.28);
  color: var(--ink);
}

.sim-chip.is-active {
  background: #fae4c8;
  border-color: #dec19c;
  color: #4a2e16;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(113, 75, 43, 0.1);
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.btn-espresso {
  appearance: none;
  border: none;
  background: var(--ink);
  color: #fbf8f3;
  font-size: 13.8px;
  font-weight: 600;
  padding: 11px 21px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(36, 27, 22, 0.15);
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-espresso:hover {
  background: #382920;
  transform: translateY(-1.5px);
}

.btn-porcelain {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: var(--porcelain);
  color: var(--ink);
  font-size: 13.8px;
  font-weight: 600;
  padding: 11px 19px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-porcelain:hover {
  background: #f5efe6;
  transform: translateY(-1.5px);
}

.btn-ghost-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--umber);
  text-decoration: none;
  padding: 6px 8px;
}

.btn-ghost-link:hover {
  text-decoration: underline;
}

.hero-metrics {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid rgba(46, 33, 24, 0.08);
  width: 100%;
  max-width: 510px;
}

.metric-item strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.metric-item span {
  font-size: 11.5px;
  color: var(--muted);
}

.metric-sep {
  width: 1px;
  height: 24px;
  background: rgba(46, 33, 24, 0.1);
}

/* Right Column: Animated Stage + Peeking Corgi + Floating 3D Tiles */
.hero-right {
  position: relative;
  padding-top: 42px;
}

.hero-orbit-tile {
  position: absolute;
  pointer-events: none;
  z-index: 2;
  opacity: 0.52;
  filter: saturate(0.82) drop-shadow(0 10px 16px rgba(38, 26, 18, 0.08));
}

.hot-1 {
  width: 64px;
  left: -34px;
  top: 68px;
  animation: tileOrbitA 8s ease-in-out infinite;
}

.hot-2 {
  width: 60px;
  right: -30px;
  top: 162px;
  animation: tileOrbitB 7.6s ease-in-out infinite;
}

.hot-3 {
  width: 56px;
  left: -28px;
  bottom: 44px;
  animation: tileOrbitC 8.8s ease-in-out infinite;
}

.hero-stage-card {
  position: relative;
  z-index: 3;
  background: var(--porcelain);
  border: 1px solid rgba(46, 33, 24, 0.1);
  border-radius: 26px;
  padding: 16px 18px 18px;
  box-shadow: 0 26px 64px rgba(38, 26, 18, 0.1);
}

.hero-peek-corgi {
  position: absolute;
  top: -86px;
  right: 26px;
  width: 112px;
  height: auto;
  z-index: 5;
  pointer-events: none;
  user-select: none;
}

.stage-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.stage-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  background: #edf7f2;
  border: 1px solid rgba(31, 122, 88, 0.18);
  color: var(--emerald);
  font-size: 12px;
  font-weight: 600;
}

.status-check {
  font-weight: 700;
}

.stage-loop-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid rgba(46, 33, 24, 0.08);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
}

.loop-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--umber);
  opacity: 0.7;
}

.stage-viewport {
  position: relative;
  border-radius: 18px;
  background: #faf8f4;
  border: 1px solid rgba(46, 33, 24, 0.07);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stage-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #faf8f4;
}

.stage-spin {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: grab;
  user-select: none;
  background: radial-gradient(70% 70% at 50% 52%, #ffffff 0%, #f7f1e7 100%);
}

.stage-spin:active {
  cursor: grabbing;
}

.stage-spin img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.spin-drag-tip {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 4px;
}

.stage-footer {
  margin-top: 12px;
}

.stage-recipe-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.stage-build-name {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  margin-right: 8px;
}

.stage-build-spec {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--umber);
  font-variant-numeric: tabular-nums;
}

.stage-bom-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.mini-bom {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.mini-bom img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.stage-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.stage-thumb {
  appearance: none;
  border: 1px solid rgba(46, 33, 24, 0.08);
  background: var(--pedestal);
  border-radius: 12px;
  padding: 6px 6px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.stage-thumb img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.stage-thumb span {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}

.stage-thumb:hover {
  border-color: rgba(113, 75, 43, 0.3);
}

.stage-thumb.is-active {
  background: #fffdf9;
  border-color: #c89b68;
  box-shadow: 0 4px 12px rgba(113, 75, 43, 0.1);
}

.stage-thumb.is-active span {
  color: var(--umber);
  font-weight: 600;
}

/* ===================================================
   Seamless 3-Group Infinite Loop Marquee (Zero Gap on 4K/5K!)
   =================================================== */
.hero-marquee-wrap {
  position: relative;
  z-index: 3;
  margin-top: 28px;
  padding: 12px 0;
  border-top: 1px solid rgba(46, 33, 24, 0.06);
  border-bottom: 1px solid rgba(46, 33, 24, 0.06);
  background: rgba(255, 253, 250, 0.55);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
}

.hero-marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: marqueeLoop 38s linear infinite;
}

.hero-marquee-wrap:hover .hero-marquee-track {
  animation-play-state: paused;
}

.hero-marquee-group {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 14px;
  flex-shrink: 0;
}

.mq-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 9px;
  border-radius: 999px;
  background: rgba(255, 253, 250, 0.92);
  border: 1px solid rgba(46, 33, 24, 0.075);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

.mq-pill img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* ========================
   Editorial Sections (Crisp 1180px Center + Widescreen Wings)
   ======================== */
.section {
  position: relative;
  padding: 72px 0;
}

.reveal-section {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--umber);
  margin-bottom: 10px;
}

.eyebrow-light {
  color: #e6c69f;
}

.section-head-center {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}

.section-head-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.section-title {
  margin: 0;
  font-size: clamp(26px, 2.4vw, 36px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.section-title-left {
  margin: 0 0 14px;
  font-size: clamp(26px, 2.5vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-desc {
  margin: 8px 0 0;
  font-size: 14.5px;
  color: var(--muted);
}

.body-calm {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 46ch;
}

/* ========================
   Section 2: Concept + Fluted Glass + 20 Shapes
   ======================== */
.concept-grid {
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 30px;
}

.feature-pills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.f-mini-card {
  background: var(--porcelain);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 15px 17px;
}

.f-mini-card strong {
  display: block;
  font-size: 14.5px;
  color: var(--ink);
  margin-bottom: 4px;
}

.f-mini-card span {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
  display: block;
}

.refraction-stage {
  position: relative;
  height: 360px;
  border-radius: var(--radius-banner);
  background: radial-gradient(75% 75% at 32% 28%, #fffdf9 0%, #f4ede2 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-ambient);
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
}

.tile-composition {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sunbeam-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  left: 28%;
  top: 6%;
  border-radius: 50%;
  background: conic-gradient(
    from 140deg,
    rgba(49, 201, 235, 0.24),
    rgba(246, 107, 64, 0.2),
    rgba(250, 178, 93, 0.24),
    rgba(144, 105, 191, 0.18),
    rgba(49, 201, 235, 0.24)
  );
  filter: blur(38px);
  animation: slowSpin 18s linear infinite;
}

.float-tile {
  position: absolute;
  height: auto;
  filter: drop-shadow(0 16px 22px rgba(42, 30, 20, 0.12));
}

.ft-sq {
  width: 146px;
  left: 35%;
  top: 17%;
  animation: driftSq 6.5s ease-in-out infinite;
}

.ft-eq {
  width: 130px;
  left: 58%;
  top: 9%;
  animation: driftEq 5.8s ease-in-out infinite;
}

.ft-frame {
  width: 130px;
  left: 14%;
  top: 44%;
  animation: driftFrame 7.1s ease-in-out infinite;
}

.ft-hex {
  width: 136px;
  left: 64%;
  top: 46%;
  animation: driftHex 6.2s ease-in-out infinite;
}

.ft-sector {
  width: 114px;
  left: 12%;
  top: 11%;
  animation: driftSector 6.9s ease-in-out infinite;
}

.ft-car {
  width: 128px;
  left: 40%;
  top: 58%;
  animation: driftCar 5.6s ease-in-out infinite;
}

.fluted-pane {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 var(--split, 50%));
  backdrop-filter: blur(6px) saturate(135%);
  -webkit-backdrop-filter: blur(6px) saturate(135%);
  pointer-events: none;
}

.refracted-clone {
  filter: url(#fluted-refraction) blur(2.2px) saturate(132%);
  transform: scale(1.025);
}

.fluted-ribs {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.05) 100%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.45) 0px,
      rgba(255, 255, 255, 0.12) 3px,
      rgba(45, 34, 24, 0.05) 7px,
      rgba(255, 255, 255, 0.03) 11px,
      rgba(255, 255, 255, 0.45) 14px
    );
  border-left: 1.5px solid rgba(255, 255, 255, 0.88);
}

.glass-tag {
  position: absolute;
  right: 16px;
  bottom: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 253, 250, 0.82);
  border: 1px solid rgba(46, 33, 24, 0.08);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
}

.fluted-handle {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 50px;
  border-radius: 999px;
  border: 1px solid rgba(46, 33, 24, 0.14);
  background: rgba(255, 253, 250, 0.94);
  box-shadow: 0 6px 18px rgba(36, 27, 22, 0.14);
  color: var(--umber);
  font-size: 15px;
  font-weight: 700;
  cursor: ew-resize;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.shapes-shelf {
  background: var(--porcelain);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px 28px;
  box-shadow: var(--shadow-ambient);
}

.shapes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.shapes-header h3 {
  margin: 0 0 3px;
  font-size: 18px;
}

.shapes-header p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
}

.segmented-tabs {
  display: inline-flex;
  padding: 4px;
  border-radius: 12px;
  background: #efe9df;
  gap: 2px;
}

.seg-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: #67717a;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 15px;
  border-radius: 9.5px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.seg-btn.is-active {
  background: #ffffff;
  color: var(--umber);
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(38, 26, 18, 0.06);
}

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

.shape-cell {
  background: var(--paper);
  border: 1px solid rgba(46, 33, 24, 0.06);
  border-radius: 14px;
  padding: 12px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.shape-cell:hover {
  transform: translateY(-2px);
  border-color: rgba(113, 75, 43, 0.25);
}

.shape-cell img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.shape-cell span {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.25;
}

.trademark-note {
  margin: 16px 0 0;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted-soft);
  line-height: 1.6;
}

/* ========================
   Section 3: 4-Column Signature Builds Gallery
   ======================== */
.builds-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.build-card {
  background: var(--porcelain);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-ambient);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.26s ease;
}

.build-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-float);
}

.build-pedestal {
  position: relative;
  background: var(--pedestal);
  aspect-ratio: 1.22 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.build-pedestal img {
  width: 82%;
  height: 82%;
  object-fit: contain;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.build-card:hover .build-pedestal img {
  transform: scale(1.05);
}

.video-badge-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 253, 250, 0.85);
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 600;
  color: var(--umber);
}

.build-footer {
  padding: 16px 20px 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  background: var(--porcelain);
  border-top: 1px solid rgba(46, 33, 24, 0.045);
}

.build-info h3 {
  margin: 0 0 3px;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink);
}

.build-recipe {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--muted);
}

.build-spec {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.circle-plus {
  appearance: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.build-card:hover .circle-plus {
  background: var(--ink);
  color: #fbf8f3;
  border-color: var(--ink);
}

/* ========================
   Section 4: Symmetrical 2x2 Radial Hub
   ======================== */
.hub-layout {
  display: grid;
  grid-template-columns: 1fr 286px 1fr;
  gap: 36px;
  align-items: center;
}

.hub-col {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hub-pillar {
  appearance: none;
  border: 1px solid rgba(46, 33, 24, 0.06);
  background: rgba(255, 253, 250, 0.65);
  text-align: left;
  padding: 22px 24px;
  border-radius: 22px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.hub-pillar:hover,
.hub-pillar.is-active {
  background: var(--porcelain);
  border-color: rgba(113, 75, 43, 0.22);
  box-shadow: var(--shadow-ambient);
}

.hub-num {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  color: rgba(113, 75, 43, 0.11);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.hub-pillar h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  position: relative;
}

.hub-pillar p {
  margin: 0;
  font-size: 13.8px;
  line-height: 1.72;
  color: var(--muted);
  position: relative;
}

.pillar-bar {
  display: block;
  height: 2.5px;
  background: rgba(113, 75, 43, 0.08);
  border-radius: 99px;
  margin-top: 16px;
  overflow: hidden;
}

.pillar-bar i {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--umber);
  border-radius: 99px;
}

.hub-pillar.is-active.is-cycling .pillar-bar i {
  animation: pillarProgress 4.2s linear forwards;
}

.hub-pillar.is-active:not(.is-cycling) .pillar-bar i {
  width: 100%;
}

.hub-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.phone-frame {
  width: 268px;
  padding: 11px;
  border-radius: 42px;
  background: linear-gradient(145deg, #352b25 0%, #1d1714 100%);
  box-shadow: 0 26px 62px rgba(34, 23, 16, 0.19), inset 0 1px 1px rgba(255, 255, 255, 0.22);
}

.phone-screen-wrap {
  border-radius: 32px;
  overflow: hidden;
  background: var(--paper);
  aspect-ratio: 1320 / 2868;
}

.phone-screen-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hub-screen-caption {
  margin: 0;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--umber);
}

/* ========================
   Section 5: Deep Roasted Espresso Dual-Sheet Stage
   ======================== */
.espresso-section {
  position: relative;
  padding: 52px 0;
}

.espresso-banner {
  position: relative;
  border-radius: 30px;
  background: linear-gradient(132deg, var(--espresso-1) 0%, var(--espresso-2) 100%);
  color: #f7f1e8;
  padding: 48px 52px;
  display: grid;
  grid-template-columns: 0.96fr 1.04fr;
  gap: 40px;
  align-items: center;
  overflow: hidden;
  box-shadow: 0 26px 68px rgba(32, 22, 17, 0.22);
}

.espresso-title {
  margin: 0 0 14px;
  font-size: clamp(26px, 2.5vw, 34px);
  font-weight: 700;
  line-height: 1.22;
  color: #fffaf2;
}

.espresso-desc {
  margin: 0 0 22px;
  font-size: 14.5px;
  line-height: 1.78;
  color: rgba(247, 241, 232, 0.8);
  max-width: 44ch;
}

.pdf-switch-group {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.1);
  border: 1px solid rgba(255, 250, 242, 0.14);
  margin-bottom: 20px;
}

.pdf-pill {
  appearance: none;
  border: none;
  background: transparent;
  color: rgba(247, 241, 232, 0.76);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 19px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.pdf-pill.is-active {
  background: #f9efe0;
  color: var(--espresso-2);
}

.espresso-points {
  margin: 0;
  padding-left: 18px;
  font-size: 13.5px;
  color: rgba(247, 241, 232, 0.74);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.espresso-sheet-stage {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.paper-sheet-card {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.36);
  transform: rotate(-1.5deg);
  transition: all 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  width: 232px;
  cursor: pointer;
}

.paper-sheet-card.is-secondary {
  transform: rotate(2.5deg) scale(0.91);
  opacity: 0.74;
}

.paper-sheet-card:hover {
  transform: rotate(0deg) scale(1.02);
  opacity: 1;
}

.paper-sheet-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.sheet-badge {
  position: absolute;
  left: 50%;
  bottom: -11px;
  transform: translateX(-50%);
  white-space: nowrap;
  background: #fae4c8;
  color: #3a2516;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 13px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.espresso-bleed-props {
  position: absolute;
  right: -32px;
  bottom: -30px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.9;
}

.bleed-tile {
  display: block;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.45));
}

.bt-1 {
  width: 112px;
  transform: translate(12px, 20px) rotate(-18deg);
}

.bt-2 {
  width: 126px;
  transform: rotate(14deg);
}

/* ========================
   Section 6: Calm Support FAQ
   ======================== */
.faq-section {
  padding: 36px 0 64px;
}

.faq-layout {
  display: grid;
  grid-template-columns: 4.2fr 7.8fr;
  gap: 48px;
  align-items: start;
}

.support-mail-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--porcelain);
  border: 1px solid var(--line-strong);
  color: var(--umber);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--porcelain);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 16px 20px;
}

.faq-item summary {
  cursor: pointer;
  font-size: 14.8px;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 18px;
  font-weight: 400;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 10px 0 0;
  font-size: 13.8px;
  line-height: 1.75;
  color: var(--muted);
}

.faq-item a {
  color: var(--umber);
  font-weight: 600;
}

/* ========================
   Section 7: Closing Mascot CTA
   ======================== */
.closing-section {
  position: relative;
  padding: 12px 0 68px;
}

.closing-card {
  position: relative;
  background: radial-gradient(80% 90% at 50% 0%, #fffdf9 0%, #f5efe4 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-banner);
  padding: 50px 44px;
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-ambient);
}

.closing-copy {
  position: relative;
  z-index: 2;
  max-width: 540px;
  margin: 0 auto;
}

.closing-wordmark {
  margin-bottom: 12px;
}

.closing-title {
  margin: 0 0 10px;
  font-size: clamp(24px, 2.9vw, 34px);
  font-weight: 700;
  line-height: 1.24;
}

.closing-sub {
  margin: 0 0 22px;
  font-size: 14px;
  color: var(--muted);
}

.store-btn-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.closing-mascot-box {
  position: absolute;
  right: 34px;
  bottom: 10px;
  z-index: 1;
  pointer-events: none;
}

.closing-mascot {
  width: 174px;
  height: auto;
  filter: drop-shadow(0 12px 22px rgba(38, 26, 18, 0.1));
  animation: calmFloat 5s ease-in-out infinite;
}

/* ========================
   Footer (#contact & Legal Subpages)
   ======================== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px 0 34px;
  color: var(--muted);
  font-size: 13px;
}

body > .container > .site-footer {
  max-width: 900px;
  margin: 40px auto 0;
  padding: 22px 0 48px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr 0.85fr 1.45fr;
  gap: 28px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.footer-brand-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 15px;
}

.footer-brand-head img {
  border-radius: 8px;
}

.footer-top h4 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.footer-top ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.footer-top a,
.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.footer-top a:hover,
.site-footer a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.footer-contact-col p {
  margin: 0 0 5px;
  line-height: 1.6;
}

.footer-addr {
  font-size: 12px;
  color: var(--muted-soft);
}

.footer-bottom {
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted-soft);
}

.footer-beian a {
  color: var(--muted-soft);
}

/* ========================
   Modals
   ======================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(32, 22, 17, 0.46);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-sheet {
  position: relative;
  width: 100%;
  background: var(--porcelain);
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: 0 32px 80px rgba(24, 16, 12, 0.28);
  padding: 24px;
}

.build-modal-sheet {
  max-width: 560px;
}

.download-modal-sheet {
  max-width: 440px;
  margin-top: 56px;
  text-align: center;
  padding-top: 34px;
}

.modal-peek-corgi {
  position: absolute;
  top: -86px;
  right: 34px;
  width: 112px;
  height: auto;
  pointer-events: none;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.modal-header h3 {
  margin: 2px 0 0;
  font-size: 20px;
}

.modal-close {
  appearance: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.download-modal-sheet .modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
}

.modal-stage {
  background: var(--pedestal);
  border-radius: 18px;
  border: 1px solid var(--line);
  overflow: hidden;
  min-height: 310px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.orbit-viewer {
  width: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: grab;
  user-select: none;
}

.orbit-viewer img {
  width: 280px;
  height: 240px;
  object-fit: contain;
}

.orbit-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

.video-viewer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #faf8f4;
}

.video-viewer video {
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 360px;
  object-fit: contain;
  display: block;
  background: #faf8f4;
}

.modal-switch-bar {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.modal-bom-row {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bom-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 500;
}

.bom-chip img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.dl-build-context {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--pedestal);
  border: 1px solid rgba(113, 75, 43, 0.14);
  border-radius: 16px;
  padding: 10px 14px;
  margin-bottom: 16px;
  text-align: left;
}

.dl-build-context img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 10px;
  background: #fffdfa;
  padding: 4px;
  border: 1px solid var(--line);
}

.dl-build-meta strong {
  display: block;
  font-size: 14.5px;
  color: var(--ink);
  margin-bottom: 2px;
}

.dl-build-meta span {
  display: block;
  font-size: 12px;
  color: var(--umber);
  line-height: 1.45;
}

.dl-icon {
  border-radius: 14px;
  border: 1px solid var(--line);
  margin-bottom: 10px;
}

.dl-body h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.dl-body p {
  margin: 0 0 18px;
  font-size: 13.8px;
  color: var(--muted);
}

.dl-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.dl-platform-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  text-align: left;
}

.dl-platform-card strong {
  display: block;
  font-size: 13.5px;
  margin-bottom: 3px;
}

.dl-platform-card span {
  font-size: 11.5px;
  color: var(--muted);
}

.dl-support {
  font-size: 12.5px !important;
  margin-bottom: 0 !important;
}

.dl-support a {
  color: var(--umber);
  font-weight: 600;
}

/* ========================
   Keyframes & Responsive
   ======================== */
@keyframes dotPulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 152, 184, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(34, 152, 184, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 152, 184, 0); }
}

@keyframes tileOrbitA {
  0%, 100% { transform: translate(0, 0) rotate(-14deg); }
  50% { transform: translate(6px, -11px) rotate(-6deg); }
}

@keyframes tileOrbitB {
  0%, 100% { transform: translate(0, 0) rotate(15deg); }
  50% { transform: translate(-7px, -12px) rotate(23deg); }
}

@keyframes tileOrbitC {
  0%, 100% { transform: translate(0, 0) rotate(8deg); }
  50% { transform: translate(7px, -9px) rotate(-2deg); }
}

/* Exact 1/3 translation across 3 identical 20-pill flex groups = 0.0px seam on 4K/5K displays */
@keyframes marqueeLoop {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-33.333333%, 0, 0); }
}

@keyframes slowSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes driftSq {
  0%, 100% { transform: translateY(0) rotate(-11deg); }
  50% { transform: translateY(-10px) rotate(-5deg); }
}

@keyframes driftEq {
  0%, 100% { transform: translateY(0) rotate(14deg); }
  50% { transform: translateY(9px) rotate(21deg); }
}

@keyframes driftFrame {
  0%, 100% { transform: translateY(0) rotate(8deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}

@keyframes driftHex {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(10px) rotate(-14deg); }
}

@keyframes driftSector {
  0%, 100% { transform: translateY(0) rotate(-18deg); }
  50% { transform: translateY(8px) rotate(-10deg); }
}

@keyframes driftCar {
  0%, 100% { transform: translateY(0) rotate(5deg); }
  50% { transform: translateY(-7px) rotate(10deg); }
}

@keyframes pillarProgress {
  0% { width: 0%; }
  100% { width: 100%; }
}

@keyframes calmFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

/* =========================================================
   Widescreen Outer-Wing Scenery (Soft, Low-Contrast Ambient Layer)
   Center 1180px stays dominant; outer gutters get whisper-light accents
   ========================================================= */
.side-wing {
  display: none;
}

@keyframes wingFloatSlow {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -5px, 0); }
}

@keyframes wingBobA {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(var(--rot, -12deg)); }
  50% { transform: translate3d(3px, -5px, 0) rotate(calc(var(--rot, -12deg) + 4deg)); }
}

@keyframes wingBobB {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(var(--rot, 14deg)); }
  50% { transform: translate3d(-3px, 5px, 0) rotate(calc(var(--rot, 14deg) - 4deg)); }
}

@keyframes starTwinkle {
  0%, 100% { opacity: 0.34; transform: scale(0.86) rotate(0deg); }
  50% { opacity: 0.78; transform: scale(1.08) rotate(10deg); }
}

@media (min-width: 1420px) {
  /* Whisper-soft stationery dots & fine stripes in Left & Right Outer Gutters */
  main::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background-image:
      radial-gradient(circle at 18px 18px, rgba(113, 75, 43, 0.065) 1.2px, transparent 1.4px),
      radial-gradient(circle at 52px 46px, rgba(56, 178, 214, 0.085) 1.5px, transparent 1.7px),
      radial-gradient(circle at 86px 14px, rgba(238, 120, 84, 0.075) 1.4px, transparent 1.6px),
      repeating-linear-gradient(
        -45deg,
        rgba(226, 188, 144, 0.045) 0px,
        rgba(226, 188, 144, 0.045) 4px,
        transparent 4px,
        transparent 16px
      );
    background-size: 72px 72px, 118px 118px, 134px 134px, 30px 30px;
    mask-image: linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.9) 0%,
      rgba(0, 0, 0, 0.65) calc(50% - 680px),
      transparent calc(50% - 595px),
      transparent calc(50% + 595px),
      rgba(0, 0, 0, 0.65) calc(50% + 680px),
      rgba(0, 0, 0, 0.9) 100%
    );
    -webkit-mask-image: linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.9) 0%,
      rgba(0, 0, 0, 0.65) calc(50% - 680px),
      transparent calc(50% - 595px),
      transparent calc(50% + 595px),
      rgba(0, 0, 0, 0.65) calc(50% + 680px),
      rgba(0, 0, 0, 0.9) 100%
    );
  }

  .side-wing {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    bottom: 0;
    width: calc((100vw - 1240px) / 2);
    pointer-events: none;
    user-select: none;
    z-index: 2;
    opacity: 0.45;
    filter: saturate(0.75) contrast(0.92);
    overflow: visible;
  }

  .wing-left {
    left: 0;
  }

  .wing-right {
    right: 0;
  }

  .hero > .side-wing {
    top: 68px;
    bottom: 36px;
  }

  .wing-canvas {
    position: relative;
    width: 280px;
    height: 300px;
    flex-shrink: 0;
    transform-origin: center center;
  }

  .wing-canvas.wing-tall {
    height: 360px;
  }

  .wing-canvas.wing-compact {
    height: 210px;
  }

  /* 1. Soft Stained-Glass Halos */
  .wing-glow {
    position: absolute;
    z-index: 1;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    filter: blur(36px);
    opacity: 0.58;
  }

  .glow-sky {
    background: radial-gradient(circle, rgba(96, 204, 234, 0.28) 0%, rgba(96, 204, 234, 0) 72%);
  }

  .glow-apricot {
    background: radial-gradient(circle, rgba(250, 188, 112, 0.28) 0%, rgba(250, 188, 112, 0) 72%);
  }

  .glow-mint {
    background: radial-gradient(circle, rgba(92, 198, 160, 0.24) 0%, rgba(92, 198, 160, 0) 72%);
  }

  .glow-coral {
    background: radial-gradient(circle, rgba(244, 132, 98, 0.22) 0%, rgba(244, 132, 98, 0) 72%);
  }

  /* 2. Delicate Diagonal Stripe Discs & Pills */
  .wing-stripe-disc {
    position: absolute;
    z-index: 2;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    border: 1px dashed rgba(113, 75, 43, 0.14);
  }

  .wing-stripe-pill {
    position: absolute;
    z-index: 2;
    width: 78px;
    height: 22px;
    border-radius: 999px;
    border: 1px solid rgba(113, 75, 43, 0.11);
  }

  .stripe-warm {
    background: repeating-linear-gradient(
      -45deg,
      rgba(235, 188, 130, 0.26) 0px,
      rgba(235, 188, 130, 0.26) 4px,
      rgba(255, 253, 250, 0.7) 4px,
      rgba(255, 253, 250, 0.7) 10px
    );
  }

  .stripe-sky {
    background: repeating-linear-gradient(
      -45deg,
      rgba(78, 190, 224, 0.24) 0px,
      rgba(78, 190, 224, 0.24) 4px,
      rgba(255, 253, 250, 0.72) 4px,
      rgba(255, 253, 250, 0.72) 10px
    );
  }

  .stripe-mint {
    background: repeating-linear-gradient(
      -45deg,
      rgba(82, 188, 152, 0.22) 0px,
      rgba(82, 188, 152, 0.22) 4px,
      rgba(255, 253, 250, 0.72) 4px,
      rgba(255, 253, 250, 0.72) 10px
    );
  }

  .stripe-coral {
    background: repeating-linear-gradient(
      -45deg,
      rgba(242, 132, 96, 0.22) 0px,
      rgba(242, 132, 96, 0.22) 4px,
      rgba(255, 253, 250, 0.72) 4px,
      rgba(255, 253, 250, 0.72) 10px
    );
  }

  /* 3. Vector Snap-Trail Curves, Polka Dots & Twinkling 4-Point Stars */
  .wing-trail {
    position: absolute;
    z-index: 3;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
  }

  .w-star {
    transform-box: fill-box;
    transform-origin: center;
    animation: starTwinkle 5.2s ease-in-out infinite;
  }

  .w-star.st-2 {
    animation-delay: -1.8s;
    animation-duration: 6s;
  }

  .w-star.st-3 {
    animation-delay: -3.2s;
    animation-duration: 4.8s;
  }

  /* 4. Gentle Corgi Playing with Magnetic Tiles */
  .wing-corgi-wrap {
    position: absolute;
    z-index: 5;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: wingFloatSlow 9.2s ease-in-out infinite;
  }

  .wing-corgi {
    width: 108px;
    height: auto;
    display: block;
    filter: drop-shadow(0 10px 16px rgba(38, 26, 18, 0.08));
  }

  /* 5. Tilted Warm-Porcelain Corgi Craft Stamp + Striped Washi Tape */
  .wing-stamp-wrap {
    position: absolute;
    z-index: 5;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: wingFloatSlow 9.8s ease-in-out infinite;
  }

  .wing-stamp {
    position: relative;
    width: 106px;
    height: 106px;
    padding: 5px;
    border-radius: 50%;
    background: #fffdfa;
    border: 1px solid rgba(113, 75, 43, 0.13);
    box-shadow: 0 10px 22px rgba(38, 26, 18, 0.07);
    transform: rotate(var(--stamp-rot, -4deg));
  }

  .wing-stamp::before {
    content: "";
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%) rotate(var(--tape-rot, -6deg));
    width: 40px;
    height: 12px;
    border-radius: 3px;
    background: repeating-linear-gradient(
      -45deg,
      rgba(236, 178, 108, 0.62) 0px,
      rgba(236, 178, 108, 0.62) 3.5px,
      rgba(255, 250, 240, 0.85) 3.5px,
      rgba(255, 250, 240, 0.85) 7px
    );
    border: 1px solid rgba(113, 75, 43, 0.12);
    z-index: 2;
  }

  .wing-stamp img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: contain;
    display: block;
  }

  .wing-mini-build {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    filter: drop-shadow(0 8px 14px rgba(38, 26, 18, 0.08));
  }

  .wing-mini-build img {
    display: block;
    width: 56px;
    height: auto;
  }

  /* 6. Floating 3D Translucent Magnetic Tiles */
  .wing-tile {
    position: absolute;
    z-index: 4;
    height: auto;
    filter: drop-shadow(0 8px 14px rgba(38, 26, 18, 0.08));
  }

  .wt-lg { width: 54px; }
  .wt-md { width: 45px; }
  .wt-sm { width: 36px; }

  .bob-a { animation: wingBobA 9.4s ease-in-out infinite; }
  .bob-b { animation: wingBobB 8.6s ease-in-out infinite; }
  .bob-c { animation: wingBobA 10.6s ease-in-out infinite -2.4s; }
}

@media (min-width: 1420px) and (max-width: 1620px) {
  .wing-canvas { transform: scale(0.58); }
}

@media (min-width: 1621px) and (max-width: 1860px) {
  .wing-canvas { transform: scale(0.78); }
}

@media (min-width: 1861px) and (max-width: 2140px) {
  .wing-canvas { transform: scale(0.94); }
}

@media (min-width: 2141px) {
  .wing-canvas {
    width: 330px;
    height: 330px;
    transform: scale(1);
  }
  .wing-canvas.wing-tall {
    height: 390px;
  }
  .wing-canvas.wing-compact {
    height: 225px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-orbit-tile,
  .float-tile,
  .sunbeam-glow,
  .closing-mascot,
  .pulse-dot,
  .wing-corgi-wrap,
  .wing-stamp-wrap,
  .wing-tile,
  .w-star {
    animation: none !important;
  }
  /* Keep marquee gently cycling even under reduced motion so it never halts at an edge */
  .hero-marquee-track {
    animation-duration: 80s !important;
  }
  .reveal-section {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 1180px) {
  .builds-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .paper-sheet-card.is-secondary {
    display: none;
  }
}

@media (max-width: 1040px) {
  .topnav { display: none; }
  .hero-grid,
  .concept-grid,
  .hub-layout,
  .espresso-banner,
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .shapes-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .closing-mascot-box {
    position: static;
    margin-top: 20px;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .section { padding: 52px 0; }
  .builds-grid {
    grid-template-columns: 1fr;
  }
  article.card, section.card { padding: 22px 18px; }
  .sim-presets,
  .stage-thumbs,
  .feature-pills-grid,
  .dl-badges {
    grid-template-columns: 1fr 1fr;
  }
  .shapes-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .espresso-banner {
    padding: 32px 22px;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
}
