/* ═══════════════════════════════════════════════════════════
   SIAN3 motion + layout polish
   ═══════════════════════════════════════════════════════════ */

body.theme-sian3 .s3-header__logo img {
  height: 32px;
  width: auto;
  display: block;
}
body.theme-sian3 .s3-header__wordmark { display: none !important; }

/* Snap shell */
body.theme-sian3:not(.is-form-open) {
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
}
html:has(body.theme-sian3:not(.is-form-open)) {
  overflow: hidden;
  height: 100%;
  scroll-behavior: auto;
}
body.theme-sian3.is-form-open {
  overflow: auto;
  height: auto;
}
html:has(body.theme-sian3.is-form-open) {
  overflow: auto;
  height: auto;
}

body.theme-sian3 .s3-landing.s3-snap {
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-y: none;
  -webkit-overflow-scrolling: touch;
}

body.theme-sian3 .s3-panel {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding:
    calc(var(--s3-header-h) + 20px)
    var(--s3-pad-x)
    clamp(36px, 6vh, 64px);
  box-sizing: border-box;
  z-index: 4;
}

/* Kill decorative overlapping page numbers from older layout */
body.theme-sian3 .s3-panel__index,
body.theme-sian3 .s3-hero__side {
  display: none !important;
}

body.theme-sian3 .s3-kicker {
  font-family: var(--s3-font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--s3-red);
  margin: 0 0 14px;
}

/* Progress */
body.theme-sian3 .s3-snap-progress {
  position: fixed;
  right: max(12px, env(safe-area-inset-right));
  top: 50%;
  transform: translateY(-50%);
  z-index: 280;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
body.theme-sian3 .s3-snap-progress span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  transition: height 0.35s var(--s3-ease-out), background 0.35s ease;
  cursor: pointer;
}
body.theme-sian3 .s3-snap-progress span.is-active {
  background: var(--s3-red);
  height: 20px;
  border-radius: 999px;
}
body.theme-sian3.is-form-open .s3-snap-progress,
body.theme-sian3.is-form-open .s3-geo {
  display: none !important;
}

/* ── Glass system ── */
body.theme-sian3 .s3-glass {
  position: relative;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px) saturate(1.25);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 18px 50px rgba(0, 0, 0, 0.28);
  transition:
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease,
    background-color 0.35s ease,
    box-shadow 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  /* never transition backdrop-filter — major jank source */
}
body.theme-sian3 .s3-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 42%, transparent 58%, rgba(196, 21, 31, 0.08));
  opacity: 0.55;
  transition: opacity 0.35s ease;
}
body.theme-sian3 .s3-glass:hover,
body.theme-sian3 .s3-glass:focus-visible,
body.theme-sian3 .s3-glass.is-hot {
  transform: translate3d(0, -4px, 0) scale(1.01);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 28px 70px rgba(196, 21, 31, 0.18),
    0 0 0 1px rgba(196, 21, 31, 0.12);
  /* keep blur constant — do not animate */
  backdrop-filter: blur(16px) saturate(1.25);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
}
body.theme-sian3 .s3-glass:hover::before,
body.theme-sian3 .s3-glass:focus-visible::before,
body.theme-sian3 .s3-glass.is-hot::before {
  opacity: 1;
}

/* ── Geo: clean in-place spin / morph (no drift into text) ── */
body.theme-sian3 .s3-geo {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}
body.theme-sian3 .s3-geo__item {
  position: absolute;
  will-change: transform, opacity;
}
body.theme-sian3 .s3-geo__ring {
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
body.theme-sian3 .s3-geo__ring--a {
  width: 96px;
  height: 96px;
  top: 18%;
  right: 8%;
  animation: s3Spin 18s linear infinite;
}
body.theme-sian3 .s3-geo__ring--a::after {
  content: '';
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  border: 1px dashed rgba(196, 21, 31, 0.45);
  animation: s3Spin 10s linear infinite reverse;
}
body.theme-sian3 .s3-geo__ring--b {
  width: 56px;
  height: 56px;
  bottom: clamp(72px, 11vh, 112px);
  left: var(--s3-pad-x);
  border-color: rgba(196, 21, 31, 0.5);
  animation: s3Spin 12s linear infinite reverse;
}
body.theme-sian3 .s3-geo__diamond {
  width: 16px;
  height: 16px;
  top: 34%;
  left: 10%;
  background: rgba(196, 21, 31, 0.65);
  transform: rotate(45deg);
  animation: s3MorphDiamond 7s ease-in-out infinite;
}
body.theme-sian3 .s3-geo__sq {
  width: 14px;
  height: 14px;
  top: 14%;
  left: 11%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  animation: s3Spin 9s linear infinite;
}
body.theme-sian3 .s3-geo__plus {
  top: 22%;
  left: 18%;
  font-family: var(--s3-font-display);
  font-weight: 800;
  font-size: 28px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.34);
  transform-origin: 50% 50%;
  animation: s3Spin 11s linear infinite;
}
body.theme-sian3 .s3-geo__dot {
  display: none !important;
}

@keyframes s3Spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes s3MorphDiamond {
  0%, 100% { transform: rotate(45deg) scale(1); border-radius: 0; opacity: 0.7; }
  50% { transform: rotate(225deg) scale(1.25); border-radius: 40%; opacity: 1; }
}
@keyframes s3MorphSq {
  0%, 100% { transform: rotate(0deg) scale(1); border-radius: 2px; }
  50% { transform: rotate(90deg) scale(1.35); border-radius: 50%; }
}
@keyframes s3MorphPlus {
  0%, 100% { transform: rotate(0deg) scale(1); opacity: 0.35; }
  50% { transform: rotate(90deg) scale(1.15); opacity: 0.85; }
}
@keyframes s3MorphDot {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(196, 21, 31, 0.35); }
  50% { transform: scale(1.4); box-shadow: 0 0 0 12px rgba(196, 21, 31, 0); }
}

/* Disable old drifting orb geo leftovers */
body.theme-sian3 .s3-geo__orb,
body.theme-sian3 .s3-geo__line { display: none !important; }

/* ── Hero: no clipping ── */
body.theme-sian3 .s3-hero {
  justify-content: center;
  padding-bottom: clamp(48px, 8vh, 72px);
}
body.theme-sian3 .s3-hero__bg,
body.theme-sian3 .s3-hero__grid {
  pointer-events: none;
}
body.theme-sian3 .s3-hero__orb { display: none !important; }
body.theme-sian3 .s3-hero__stack {
  position: relative;
  z-index: 2;
  max-width: min(900px, 100%);
  overflow: visible;
  margin-left: 0;
  padding-left: 0;
  align-self: flex-start;
}
body.theme-sian3 .s3-hero__eyebrow {
  margin-bottom: 18px;
  font-family: var(--s3-font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--s3-ink-muted);
}
body.theme-sian3 .s3-hero__headline {
  overflow: visible !important;
  display: flex !important;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 0;
  margin: 0;
  padding: 0;
  font-size: inherit !important;
  text-transform: none !important;
  line-height: 0.92;
  perspective: 900px;
}
body.theme-sian3 .s3-hero__line {
  display: block;
  overflow: visible !important;
  line-height: 0.92;
}
body.theme-sian3 .s3-hero__word {
  display: inline-block;
  font-family: var(--s3-font-display);
  font-weight: 800;
  font-size: clamp(3.2rem, 12vw, 7.5rem);
  letter-spacing: -0.045em;
  line-height: 0.92;
  overflow: visible !important;
}
body.theme-sian3 .s3-hero__word--accent {
  color: var(--s3-red);
}
body.theme-sian3 .s3-hero__lead {
  margin: clamp(18px, 3vh, 28px) 0 0;
  padding: 0;
  max-width: 22em;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: var(--s3-ink-muted);
  font-weight: 500;
}
body.theme-sian3 .s3-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: clamp(24px, 4vh, 36px) 0 0;
  padding: 0;
}
/* Slimmer, cleaner hero action buttons — luxury product UI */
body.theme-sian3 .s3-hero__actions .s3-btn {
  padding: 12px 32px;
  min-width: 8.75rem;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  transition:
    background 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.35s ease;
}
body.theme-sian3 .s3-hero__actions .s3-btn:not(.s3-btn--ghost) {
  background: linear-gradient(180deg, #d41c28 0%, #c4151f 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.14) inset,
    0 10px 28px rgba(196, 21, 31, 0.28);
}
body.theme-sian3 .s3-hero__actions .s3-btn:not(.s3-btn--ghost):hover,
body.theme-sian3 .s3-hero__actions .s3-btn:not(.s3-btn--ghost):focus-visible {
  background: linear-gradient(180deg, #e02230 0%, #d01822 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 14px 34px rgba(196, 21, 31, 0.36);
  transform: translateY(-1.5px);
}
body.theme-sian3 .s3-hero__actions .s3-btn--ghost {
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f3f2ef;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
body.theme-sian3 .s3-hero__actions .s3-btn--ghost:hover,
body.theme-sian3 .s3-hero__actions .s3-btn--ghost:focus-visible {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  transform: translateY(-1.5px);
}
body.theme-sian3 .s3-hero__scroll {
  position: absolute;
  left: var(--s3-pad-x);
  bottom: clamp(28px, 5vh, 40px);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  color: var(--s3-ink-dim);
  font: 700 11px/1 var(--s3-font-display);
  letter-spacing: 0.18em;
  cursor: pointer;
  padding: 0;
  margin: 0;
}
body.theme-sian3 .s3-hero__scroll-line {
  width: 36px;
  height: 1px;
  background: currentColor;
  position: relative;
  overflow: hidden;
}
body.theme-sian3 .s3-hero__scroll-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--s3-red);
  transform: translateX(-100%);
  animation: s3ScrollPulse 1.6s ease-in-out infinite;
}
@keyframes s3ScrollPulse {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* ── Vision glass panel ── */
body.theme-sian3 .s3-vision {
  justify-content: center;
}
body.theme-sian3 .s3-vision__blur {
  position: absolute;
  inset: -15%;
  background:
    radial-gradient(ellipse 45% 40% at 25% 30%, rgba(196, 21, 31, 0.38), transparent 60%),
    radial-gradient(ellipse 40% 35% at 75% 65%, rgba(255, 255, 255, 0.1), transparent 55%),
    #0a0a0a;
  filter: blur(50px) saturate(1.2);
  animation: s3VisionWash 14s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes s3VisionWash {
  from { transform: scale(1.02); }
  to { transform: scale(1.08) translate(-1%, 2%); }
}
body.theme-sian3 .s3-vision__card {
  position: relative;
  z-index: 2;
  width: min(720px, 100%);
  padding: clamp(28px, 5vw, 48px);
  border-radius: 28px;
}
body.theme-sian3 .s3-vision__title {
  margin: 0 0 18px;
  font-family: var(--s3-font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 6vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
body.theme-sian3 .s3-vision__title em {
  font-style: normal;
  color: var(--s3-red);
}
body.theme-sian3 .s3-vision__desc {
  margin: 0;
  color: var(--s3-ink-muted);
  font-size: clamp(0.98rem, 1.6vw, 1.12rem);
  line-height: 1.75;
}
body.theme-sian3 .s3-vision__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
body.theme-sian3 .s3-pill {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font: 700 13px/1 var(--s3-font-body);
  color: var(--s3-ink);
  cursor: pointer;
}
body.theme-sian3 .s3-pill:hover,
body.theme-sian3 .s3-pill:focus-visible {
  color: #fff;
  background: rgba(196, 21, 31, 0.85);
  border-color: transparent;
}

/* ── Micro / density extras ── */
body.theme-sian3 .s3-micro {
  font: 700 10px/1.4 var(--s3-font-display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--s3-ink-dim);
  margin: 0;
}

body.theme-sian3 .s3-watermark {
  position: fixed;
  inset: auto 0 2% 0;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  padding-right: clamp(24px, 6vw, 104px);
  pointer-events: none;
  opacity: 0.05;
  font-family: var(--s3-font-display);
  font-weight: 800;
  font-size: clamp(3rem, 10vw, 8rem);
  letter-spacing: -0.02em;
  color: var(--s3-ink);
  user-select: none;
  transition: opacity 0.6s ease;
}
/* Watermark lives only on the hero screen */
body.theme-sian3[data-s3-active="1"] .s3-watermark,
body.theme-sian3[data-s3-active="2"] .s3-watermark {
  opacity: 0;
}

body.theme-sian3 .s3-ticker {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 260;
  height: 40px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-block: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 8, 10, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
  opacity: 0.92;
}
body.theme-sian3.is-form-open .s3-ticker { display: none; }

body.theme-sian3 .s3-ticker__track {
  display: flex;
  gap: 2.5rem;
  white-space: nowrap;
  animation: s3Ticker 22s linear infinite;
  font: 700 11px/1 var(--s3-font-display);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--s3-ink-dim);
}
body.theme-sian3 .s3-ticker__track span::after {
  content: '·';
  margin-left: 2.5rem;
  color: var(--s3-red);
}
@keyframes s3Ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

body.theme-sian3 .s3-hero__pair {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 0;
  font: 700 11px/1 var(--s3-font-display);
  letter-spacing: 0.24em;
  color: var(--s3-ink-dim);
}
body.theme-sian3 .s3-hero__pair i {
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--s3-red), transparent);
  display: block;
}
body.theme-sian3 .s3-hero__pair span:last-child {
  color: var(--s3-red);
}

/* Word flip: 대치 ↔ 매치 */
body.theme-sian3 .s3-flip {
  position: relative;
  display: inline-grid;
  vertical-align: bottom;
  min-width: 2.4em;
  margin-left: 0;
}
body.theme-sian3 .s3-flip--suffix {
  margin-left: 0;
}
/* Base flip item. Two distinct effects are switched by a mode class on the
   headline: forward (.is-fwd) = zoom-focus, backward (.is-back) = drop reset. */
body.theme-sian3 .s3-flip__item {
  grid-area: 1 / 1;
  font-family: var(--s3-font-display);
  font-weight: 800;
  font-size: clamp(3.4rem, 13vw, 7.8rem);
  letter-spacing: -0.05em;
  line-height: 0.92;
  color: var(--s3-ink);
  opacity: 0;
  transform: translateY(0.34em);
  filter: blur(7px);
  transition:
    opacity 0.5s ease,
    transform 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.5s ease,
    color 0.5s ease;
}
body.theme-sian3 .s3-flip__item.is-active {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Forward: 대치에듀 → 매치시작. Each word zooms out of a soft blur into
   focus; the two words are triggered off-beat from JS (not sequential). */
body.theme-sian3 .s3-hero__headline.is-fwd .s3-flip__item {
  transform: scale(1.24);
  filter: blur(9px);
}
body.theme-sian3 .s3-hero__headline.is-fwd .s3-flip__item.is-active {
  transform: scale(1);
  filter: blur(0);
}

/* Backward: 매치시작 → 대치에듀. The whole phrase changes at once with a
   different feel — words drop in from above while the old ones lift away. */
body.theme-sian3 .s3-hero__headline.is-back .s3-flip__item {
  transform: translateY(-0.46em) scale(0.9);
  filter: blur(10px);
}
body.theme-sian3 .s3-hero__headline.is-back .s3-flip__item.is-active {
  transform: translateY(0) scale(1);
  filter: blur(0);
}

body.theme-sian3 .s3-flip__item[data-word="매치"].is-active {
  color: var(--s3-red);
}
body.theme-sian3 .s3-hero__micro {
  position: relative;
  top: auto;
  left: auto;
  z-index: 2;
  margin: 0 0 18px;
  padding: 0;
}
body.theme-sian3 .s3-hero__glow {
  position: absolute;
  width: min(54vw, 560px);
  height: min(54vw, 560px);
  right: clamp(-2%, 1vw, 6%);
  top: 42%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(196, 21, 31, 0.18) 0%,
    rgba(196, 21, 31, 0.06) 45%,
    transparent 72%
  );
  filter: blur(12px);
  animation: none;
  opacity: 0.85;
  pointer-events: none;
  transform: translateY(-50%);
}
/* Compact / laptop heights: pull blush lower so it reads past mid-hero */
@media (min-width: 901px) and (max-height: 900px) {
  body.theme-sian3 .s3-hero__glow {
    top: 54%;
    width: min(56vw, 540px);
    height: min(68vh, 620px);
    background: radial-gradient(
      ellipse 70% 78% at 50% 42%,
      rgba(196, 21, 31, 0.2) 0%,
      rgba(196, 21, 31, 0.08) 46%,
      transparent 76%
    );
    opacity: 0.9;
  }
}
@media (min-width: 901px) and (max-height: 780px) {
  body.theme-sian3 .s3-hero__glow {
    top: 60%;
    width: min(58vw, 500px);
    height: min(78vh, 640px);
    background: radial-gradient(
      ellipse 72% 82% at 50% 38%,
      rgba(196, 21, 31, 0.22) 0%,
      rgba(196, 21, 31, 0.09) 48%,
      transparent 78%
    );
  }
}
body.theme-sian3 .s3-hero__rail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  font: 700 11px/1 var(--s3-font-display);
  letter-spacing: 0.22em;
  color: var(--s3-ink-dim);
}
body.theme-sian3 .s3-hero__rail i {
  width: 18px;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
  display: block;
}

/* Vision denser layout */
body.theme-sian3 .s3-vision__wrap {
  position: relative;
  z-index: 2;
  width: min(1040px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.75fr);
  gap: clamp(16px, 3vw, 28px);
  align-items: stretch;
}
body.theme-sian3 .s3-vision__aside {
  display: grid;
  gap: 12px;
  align-content: center;
}
body.theme-sian3 .s3-stat {
  padding: 22px 20px;
  border-radius: 20px;
  display: grid;
  gap: 6px;
}
body.theme-sian3 .s3-stat__label {
  font: 700 10px/1 var(--s3-font-display);
  letter-spacing: 0.2em;
  color: var(--s3-ink-dim);
}
body.theme-sian3 .s3-stat strong {
  font-family: var(--s3-font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1;
}
body.theme-sian3 .s3-stat em {
  font-style: normal;
  font-size: 13px;
  color: var(--s3-ink-muted);
}

body.theme-sian3 .s3-panel.s3-process {
  padding-top: calc(var(--s3-header-h) + clamp(28px, 5.5vh, 52px));
  padding-bottom: clamp(56px, 9vh, 96px);
  justify-content: center;
}
body.theme-sian3 .s3-panel.s3-hero {
  padding-bottom: clamp(56px, 9vh, 88px);
}

body.theme-sian3 .s3-process__top {
  width: min(1100px, 100%);
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: clamp(20px, 3vh, 32px);
}
body.theme-sian3 .s3-process__title {
  margin: 0;
  font-family: var(--s3-font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
}
body.theme-sian3 .s3-process__hint { margin: 0 0 6px; }
body.theme-sian3 .s3-process__grid {
  width: min(1100px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 18px);
  align-items: stretch;
}
body.theme-sian3 .s3-step {
  position: relative;
  min-height: 220px;
  padding: clamp(22px, 3vw, 28px);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  overflow: hidden;
  outline: none;
  transform: translateY(0) scale(1);
  opacity: 0.72;
}
body.theme-sian3 .s3-step__corner {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 14px;
  height: 14px;
  border-top: 1px solid rgba(196, 21, 31, 0.55);
  border-right: 1px solid rgba(196, 21, 31, 0.55);
  opacity: 0.45;
  transition: opacity 0.35s ease;
}
body.theme-sian3 .s3-step.is-active .s3-step__corner { opacity: 1; }
body.theme-sian3 .s3-step.is-active {
  opacity: 1;
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(196, 21, 31, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 24px 60px rgba(196, 21, 31, 0.2);
  background: rgba(255, 255, 255, 0.09);
}
body.theme-sian3 .s3-step__num {
  font-family: var(--s3-font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1;
  color: rgba(196, 21, 31, 0.85);
  letter-spacing: -0.04em;
}
body.theme-sian3 .s3-step__en {
  font: 700 10px/1 var(--s3-font-display);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--s3-ink-dim);
}
body.theme-sian3 .s3-step h3 {
  margin: 8px 0 0;
  font-family: var(--s3-font-display);
  font-weight: 800;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  letter-spacing: -0.02em;
}
body.theme-sian3 .s3-step p {
  margin: 0;
  color: var(--s3-ink-muted);
  font-size: 14px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: break-word;
}
body.theme-sian3 .s3-step p .s3-br-m {
  display: none;
}
body.theme-sian3 .s3-step__tag {
  display: none !important;
}
body.theme-sian3 .s3-process__nav {
  width: min(1100px, 100%);
  display: flex;
  gap: 8px;
  margin-top: 18px;
}
body.theme-sian3 .s3-process__dot {
  width: 28px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
  padding: 0;
  transition: width 0.35s var(--s3-ease-out), background 0.35s ease;
}
body.theme-sian3 .s3-process__dot.is-active {
  width: 46px;
  background: var(--s3-red);
}

/* Roles swap text — JS toggles .is-on so the cards can float in sync */
body.theme-sian3 .s3-roles__swap {
  position: relative;
  display: inline-grid;
  color: var(--s3-red);
}
body.theme-sian3 .s3-roles__swap span {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(14px);
  filter: blur(5px);
  transition:
    opacity 0.55s ease,
    transform 0.6s var(--s3-ease-out),
    filter 0.55s ease;
}
body.theme-sian3 .s3-roles__swap span.is-on {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
body.theme-sian3 .s3-roles__swap span[data-role="student"] {
  color: var(--s3-student-bright);
}
body.theme-sian3 .s3-roles__desc { margin: 0 0 8px; }

/* ── Roles — PC: centered block (header + cards) ── */
body.theme-sian3 .s3-roles__inner {
  width: min(960px, 100%);
  max-width: 960px;
  margin: 0 auto;
}
body.theme-sian3 .s3-roles__header {
  text-align: center;
  margin-bottom: clamp(48px, 7vh, 72px);
}
body.theme-sian3 .s3-roles__title {
  margin: 0 0 12px;
  /* Noto first so Hangul + "?" share one face (Moderniz ? glyph looked alien) */
  font-family: "Noto Sans KR", "GmarketSans", sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
body.theme-sian3 .s3-roles__title .s3-roles__swap,
body.theme-sian3 .s3-roles__title .s3-roles__swap span {
  font-family: inherit;
  font-weight: inherit;
}
body.theme-sian3 .s3-roles__grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
  margin-top: 24px;
}
body.theme-sian3 .s3-role {
  text-align: left;
  padding: clamp(24px, 3.5vw, 36px) !important;
  border-radius: 24px;
  min-height: 220px;
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
body.theme-sian3 .s3-role__eyebrow {
  font: 700 11px/1 var(--s3-font-display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--s3-red);
}
body.theme-sian3 .s3-role--student .s3-role__eyebrow {
  color: var(--s3-student-bright);
}
body.theme-sian3 .s3-role__title {
  font-family: var(--s3-font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
body.theme-sian3 .s3-role__desc {
  color: var(--s3-ink-muted);
  line-height: 1.55;
  font-size: 14px;
}
body.theme-sian3 .s3-role__rail {
  display: none;
}
body.theme-sian3 .s3-role__foot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 18px;
  position: relative;
  z-index: 1;
}
body.theme-sian3 .s3-role__cta {
  margin-top: 0;
  padding-top: 0;
  font: 700 13px/1 var(--s3-font-display);
  letter-spacing: 0.04em;
  color: var(--s3-ink);
}
body.theme-sian3 .s3-role__arrow {
  font: 700 13px/1 var(--s3-font-display);
  color: inherit;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Role cards: compositor-only hover (no backdrop-filter / reflow jank) ── */
body.theme-sian3 .s3-role {
  transform-origin: center center;
  transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition:
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease,
    background-color 0.35s ease,
    box-shadow 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: auto;
}

/* Lock glass blur — animating backdrop-filter is the main stutter source */
body.theme-sian3 #s3Roles .s3-role.s3-glass,
body.theme-sian3 #s3Roles .s3-role.s3-glass:hover,
body.theme-sian3 #s3Roles .s3-role.s3-glass:focus-visible,
body.theme-sian3 #s3Roles .s3-role.s3-glass.is-hot {
  backdrop-filter: blur(16px) saturate(1.25) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.25) !important;
  transition:
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease,
    background-color 0.35s ease,
    box-shadow 0.42s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

body.theme-sian3 .s3-role__title {
  transition: color 0.35s ease;
}
body.theme-sian3 .s3-role__eyebrow {
  transition: color 0.35s ease;
}
body.theme-sian3 .s3-role__cta {
  transition: color 0.35s ease;
}
body.theme-sian3 .s3-role__arrow {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), color 0.35s ease;
}

/* No letter-spacing morph (causes layout thrash) — keep CTA nudge only */
body.theme-sian3 #s3Roles .s3-role:hover .s3-role__eyebrow,
body.theme-sian3 #s3Roles .s3-role:focus-visible .s3-role__eyebrow {
  letter-spacing: 0.18em;
}
body.theme-sian3 #s3Roles .s3-role:hover .s3-role__arrow,
body.theme-sian3 #s3Roles .s3-role:focus-visible .s3-role__arrow {
  transform: translate3d(5px, 0, 0);
}

/* Soft corner bloom — opacity only */
body.theme-sian3 .s3-role::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0.45;
  transition: opacity 0.4s ease;
  pointer-events: none;
  will-change: opacity;
}
body.theme-sian3 .s3-role--teacher::before {
  background: radial-gradient(120% 110% at 100% 100%,
    rgba(196, 21, 31, 0.2) 0%,
    rgba(196, 21, 31, 0.08) 38%,
    transparent 72%);
}
body.theme-sian3 .s3-role--student::before {
  background: radial-gradient(120% 110% at 100% 100%,
    rgba(217, 119, 6, 0.2) 0%,
    rgba(217, 119, 6, 0.08) 38%,
    transparent 72%);
}
body.theme-sian3 .s3-role:hover::before,
body.theme-sian3 .s3-role:focus-visible::before {
  opacity: 1;
}

/* Single hover motion — lift only (overrides itddaa + glass scale fights) */
body.theme-sian3 #s3Roles .s3-role--teacher:hover,
body.theme-sian3 #s3Roles .s3-role--teacher:focus-visible,
body.theme-sian3 #s3Roles .s3-role--student:hover,
body.theme-sian3 #s3Roles .s3-role--student:focus-visible,
body.theme-sian3 #s3Roles .s3-role--teacher.is-hot,
body.theme-sian3 #s3Roles .s3-role--student.is-hot {
  transform: translate3d(0, -6px, 0) scale(1.02);
  background: rgba(255, 255, 255, 0.055);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 22px 48px rgba(0, 0, 0, 0.32);
  will-change: transform;
}
body.theme-sian3 #s3Roles .s3-role--teacher:hover,
body.theme-sian3 #s3Roles .s3-role--teacher:focus-visible,
body.theme-sian3 #s3Roles .s3-role--teacher.is-hot {
  border-color: rgba(196, 21, 31, 0.48);
}
body.theme-sian3 #s3Roles .s3-role--student:hover,
body.theme-sian3 #s3Roles .s3-role--student:focus-visible,
body.theme-sian3 #s3Roles .s3-role--student.is-hot {
  border-color: rgba(217, 119, 6, 0.48);
}
body.theme-sian3 #s3Roles .s3-role--teacher:hover .s3-role__title,
body.theme-sian3 #s3Roles .s3-role--teacher:focus-visible .s3-role__title,
body.theme-sian3 #s3Roles .s3-role--teacher.is-hot .s3-role__title {
  color: var(--s3-red);
  text-shadow: none;
}
body.theme-sian3 #s3Roles .s3-role--student:hover .s3-role__title,
body.theme-sian3 #s3Roles .s3-role--student:focus-visible .s3-role__title,
body.theme-sian3 #s3Roles .s3-role--student.is-hot .s3-role__title {
  color: var(--s3-student-bright);
  text-shadow: none;
}

/* ── CTA ── */
body.theme-sian3 .s3-cta {
  align-items: stretch;
}
body.theme-sian3 .s3-cta__card {
  width: min(760px, 100%);
  padding: clamp(32px, 5vw, 52px);
  border-radius: 28px;
}
body.theme-sian3 .s3-cta__title {
  margin: 0 0 12px;
  font-family: var(--s3-font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
}
body.theme-sian3 .s3-cta__desc {
  margin: 0 0 28px;
  color: var(--s3-ink-muted);
  font-size: 1.05rem;
}

/* Hide obsolete blocks */
body.theme-sian3 .s3-marquee,
body.theme-sian3 .s3-sticky-cta,
body.theme-sian3 .s3-footer,
body.theme-sian3 .s3-hero__meta,
body.theme-sian3 .s3-vision__float,
body.theme-sian3 .s3-vision__frost,
body.theme-sian3 .s3-vision__tags,
body.theme-sian3 .s3-cta__glow,
body.theme-sian3 .s3-cta__foot {
  display: none !important;
}

@media (max-width: 900px) {
  body.theme-sian3 .s3-vision__wrap {
    grid-template-columns: 1fr;
  }
  body.theme-sian3 .s3-geo__ring--a,
  body.theme-sian3 .s3-geo__ring--b,
  body.theme-sian3 .s3-geo__dot,
  body.theme-sian3 .s3-geo__plus,
  body.theme-sian3 .s3-watermark {
    display: none !important;
  }
  body.theme-sian3 .s3-process__top {
    flex-direction: column;
    align-items: flex-start;
  }
  body.theme-sian3 .s3-flip__item,
  body.theme-sian3 .s3-hero__suffix {
    font-size: clamp(2.4rem, 11vw, 4rem);
  }
  body.theme-sian3 .s3-hero__word {
    font-size: clamp(2.4rem, 11vw, 4rem);
  }

  /* ── Tablet / mobile landing: balanced vertical rhythm ── */
  body.theme-sian3 .s3-panel {
    justify-content: center;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding:
      calc(var(--s3-header-h) + 20px)
      clamp(16px, 4vw, 28px)
      max(72px, calc(52px + env(safe-area-inset-bottom, 0px)));
    transform: none !important;
    opacity: 1 !important;
  }

  body.theme-sian3 .s3-panel:not(.is-inview) {
    transform: none !important;
    opacity: 1 !important;
  }

  body.theme-sian3 .s3-roles__inner .s3-kicker,
  body.theme-sian3 .s3-roles__inner .s3-roles__title,
  body.theme-sian3 .s3-roles__inner .s3-roles__desc,
  body.theme-sian3 .s3-roles__grid,
  body.theme-sian3 .s3-roles__grid .s3-role,
  body.theme-sian3 .s3-process__top,
  body.theme-sian3 .s3-process__grid,
  body.theme-sian3 .s3-process__nav,
  body.theme-sian3 .s3-process__grid .s3-step {
    opacity: 1 !important;
    visibility: visible !important;
    animation: none !important;
    filter: none !important;
  }

  /* Hero — centered; overflow visible so dial circle isn’t clipped on tablet */
  body.theme-sian3 .s3-panel.s3-hero {
    justify-content: center;
    align-items: stretch;
    padding-top: calc(var(--s3-header-h) + 28px);
    padding-bottom: max(72px, calc(52px + env(safe-area-inset-bottom, 0px)));
    overflow: visible !important;
  }
  body.theme-sian3 .s3-hero__stack {
    position: relative;
    z-index: 3;
    max-width: 100%;
    margin: 0;
  }
  body.theme-sian3 .s3-hero__lead {
    max-width: 34em;
    margin-top: 14px;
    font-size: clamp(0.92rem, 3.2vw, 1.05rem);
  }
  body.theme-sian3 .s3-hero__actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin-top: 18px;
    width: 100%;
    max-width: 100%;
  }
  body.theme-sian3 .s3-hero__actions .s3-btn {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
    align-items: center;
    padding-inline: 14px;
    white-space: nowrap;
    overflow: visible;
    line-height: 1;
    border-radius: 10px;
  }
  body.theme-sian3 .s3-hero__actions .s3-btn__magnet {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transform: translateY(-0.08em);
  }
  /* Tablet hero — overflow visible so dial circle isn’t clipped */
  body.theme-sian3 .s3-panel.s3-hero {
    overflow: visible !important;
  }
  body.theme-sian3 .s3-hero__symbol {
    top: 56% !important;
    bottom: auto !important;
    right: var(--s3-match-right, clamp(44px, 6vw, 80px)) !important;
    left: auto !important;
    transform: translateY(-50%) !important;
    width: var(--s3-match-size) !important;
    height: var(--s3-match-size) !important;
    max-width: none;
    opacity: 1;
    filter: none;
    z-index: 1;
    pointer-events: none;
  }
  body.theme-sian3 .s3-hero__stack {
    position: relative;
    z-index: 3;
    max-width: min(420px, calc(100% - var(--s3-match-size) - var(--s3-match-right, 64px) - 28px));
    align-self: flex-start;
  }
  body.theme-sian3 .s3-hero__actions {
    position: relative;
    z-index: 4;
  }
  body.theme-sian3 .s3-hero__micro {
    position: relative;
    top: auto;
    left: auto;
    margin: 0 0 14px;
  }
  body.theme-sian3 .s3-hero__scroll {
    display: none;
  }

  /* Roles — compact cards, less vertical bulk */
  body.theme-sian3 .s3-panel.s3-roles {
    justify-content: center;
    gap: 0;
  }
  body.theme-sian3 .s3-roles__inner {
    width: 100%;
    max-width: min(520px, 100%);
    margin: 0 auto;
  }
  body.theme-sian3 .s3-roles__header {
    text-align: center !important;
    margin-bottom: 14px !important;
  }
  body.theme-sian3 .s3-roles__header .s3-kicker,
  body.theme-sian3 .s3-kicker {
    margin-bottom: 8px;
    font-size: 12px;
    letter-spacing: 0.18em;
  }
  body.theme-sian3 .s3-roles__title {
    font-size: clamp(1.65rem, 5.4vw, 2.05rem);
    margin-bottom: 6px;
    line-height: 1.2;
    font-weight: 800;
    word-break: keep-all;
  }
  body.theme-sian3 .s3-roles__desc {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
    margin-bottom: 0;
    opacity: 0.7;
    letter-spacing: -0.01em;
  }
  body.theme-sian3 .s3-roles__grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px;
    margin-top: 14px;
  }
  body.theme-sian3 .s3-role {
    min-height: 0 !important;
    height: auto !important;
    padding: 16px 14px 15px !important;
    gap: 5px !important;
    border-radius: 16px !important;
    justify-content: flex-start !important;
  }
  body.theme-sian3 .s3-role__eyebrow {
    font-size: 9.5px;
    letter-spacing: 0.14em;
    margin: 0;
  }
  body.theme-sian3 .s3-role__title {
    font-size: clamp(1.12rem, 3.6vw, 1.28rem);
    line-height: 1.22;
    margin: 0;
    word-break: keep-all;
  }
  body.theme-sian3 .s3-role__desc {
    font-size: 12px;
    line-height: 1.45;
    margin: 0;
    word-break: keep-all;
  }
  body.theme-sian3 .s3-role__foot {
    margin-top: 10px !important;
    padding-top: 0 !important;
  }
  body.theme-sian3 .s3-role__cta {
    margin-top: 0 !important;
    padding-top: 0 !important;
    font-size: 11.5px;
    letter-spacing: 0.02em;
  }
  body.theme-sian3 .s3-role__arrow {
    font-size: 11.5px;
  }
  body.theme-sian3 #s3Roles .s3-role--teacher:hover,
  body.theme-sian3 #s3Roles .s3-role--teacher:focus-visible,
  body.theme-sian3 #s3Roles .s3-role--student:hover,
  body.theme-sian3 #s3Roles .s3-role--student:focus-visible,
  body.theme-sian3 #s3Roles .s3-role--teacher.is-hot,
  body.theme-sian3 #s3Roles .s3-role--student.is-hot {
    transform: none;
  }

  /* Process — finished card system (tablet 3-up / phone stack) */
  body.theme-sian3 .s3-panel.s3-process {
    justify-content: center;
    gap: 0;
    padding-top: calc(var(--s3-header-h) + clamp(36px, 7.5vh, 72px)) !important;
    padding-bottom: max(88px, calc(72px + env(safe-area-inset-bottom, 0px))) !important;
  }
  body.theme-sian3 .s3-process__top {
    width: 100%;
    max-width: 640px;
    margin: 0 auto 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  body.theme-sian3 .s3-process__title {
    margin: 0;
    font-size: clamp(1.4rem, 4.8vw, 1.75rem);
    line-height: 1.2;
    letter-spacing: -0.03em;
    word-break: keep-all;
  }
  body.theme-sian3 .s3-process__top .s3-kicker {
    margin: 0 0 6px;
  }
  body.theme-sian3 .s3-process__hint {
    margin: 0 0 4px;
    font-size: 12px;
  }
  body.theme-sian3 .s3-process__grid {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: stretch;
  }
  body.theme-sian3 .s3-process__grid .s3-step,
  body.theme-sian3 .s3-process__grid .s3-step.s3-glass {
    grid-column: auto !important;
    grid-row: auto !important;
    position: relative;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 18px 18px 16px !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    background: rgba(14, 12, 13, 0.88) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      0 10px 28px rgba(0, 0, 0, 0.32) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
    overflow: hidden;
    z-index: 1;
  }
  body.theme-sian3 .s3-process__grid .s3-step::before,
  body.theme-sian3 .s3-process__grid .s3-step.s3-glass::before {
    display: none !important;
    content: none !important;
  }
  body.theme-sian3 .s3-process__grid .s3-step.is-active {
    opacity: 1 !important;
    transform: none !important;
    border-color: rgba(196, 21, 31, 0.55) !important;
    background: rgba(28, 16, 18, 0.95) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 12px 30px rgba(196, 21, 31, 0.16) !important;
  }
  body.theme-sian3 .s3-step__corner {
    display: none !important;
  }
  body.theme-sian3 .s3-step__num {
    position: static !important;
    transform: none !important;
    display: block;
    width: auto;
    margin: 0 0 10px;
    padding: 0;
    border: none;
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
    color: #C4151F;
  }
  body.theme-sian3 .s3-process__grid .s3-step.is-active .s3-step__num {
    color: #e81c28;
  }
  body.theme-sian3 .s3-step__en {
    display: block;
    margin: 0 0 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1.2;
    text-transform: uppercase;
    color: rgba(245, 245, 245, 0.42);
  }
  body.theme-sian3 .s3-step h3 {
    display: block;
    margin: 0 0 8px;
    padding: 0;
    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.025em;
    color: #f5f5f5;
    word-break: keep-all;
  }
  body.theme-sian3 .s3-step p {
    display: block;
    margin: 0;
    padding: 0;
    flex: 1 1 auto;
    font-size: 12.5px;
    line-height: 1.55;
    letter-spacing: -0.01em;
    color: rgba(245, 245, 245, 0.58);
    word-break: keep-all;
    overflow-wrap: break-word;
    text-wrap: pretty;
  }
  body.theme-sian3 .s3-step p .s3-br-m {
    display: inline;
  }
  body.theme-sian3 .s3-step__tag {
    display: none !important;
  }
  body.theme-sian3 .s3-process__nav {
    display: none;
  }
  body.theme-sian3 .s3-process__grid .s3-step.s3-glass:hover,
  body.theme-sian3 .s3-process__grid .s3-step.s3-glass:focus-visible,
  body.theme-sian3 .s3-process__grid .s3-step.s3-glass.is-hot {
    transform: none !important;
  }

  /* Snap progress — bottom pill (keep above panels / safe-area) */
  body.theme-sian3 .s3-snap-progress {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    top: auto !important;
    bottom: max(16px, calc(10px + env(safe-area-inset-bottom, 0px))) !important;
    left: 50% !important;
    right: auto !important;
    transform: translate3d(-50%, 0, 0) !important;
    z-index: 285;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(8, 6, 7, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.42);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    backdrop-filter: blur(12px) saturate(1.2);
    pointer-events: auto;
  }
  body.theme-sian3 .s3-snap-progress span {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
  }
  body.theme-sian3 .s3-snap-progress span.is-active {
    width: 22px;
    height: 7px;
  }

  /* Reserve space so panel content doesn't sit under the pill */
  body.theme-sian3 .s3-panel {
    padding-bottom: max(72px, calc(52px + env(safe-area-inset-bottom, 0px))) !important;
  }
  body.theme-sian3 .s3-panel.s3-hero {
    padding-bottom: max(72px, calc(52px + env(safe-area-inset-bottom, 0px))) !important;
  }
}

/* Tablet (~768): role cards + hero symbol clearance */
@media (min-width: 641px) and (max-width: 900px) {
  /* Process — tablet keeps desktop DNA as 3 compact cards */
  body.theme-sian3 .s3-panel.s3-process {
    /* Bias content slightly above mid — not extreme */
    padding-top: calc(var(--s3-header-h) + clamp(28px, 5vh, 52px)) !important;
    padding-bottom: max(120px, calc(100px + env(safe-area-inset-bottom, 0px))) !important;
  }
  body.theme-sian3 .s3-process__top {
    max-width: 720px;
    margin: 0 auto 18px;
  }
  body.theme-sian3 .s3-process__title {
    font-size: clamp(1.55rem, 3.2vw, 1.9rem);
  }
  body.theme-sian3 .s3-process__grid {
    max-width: 720px;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px;
  }
  body.theme-sian3 .s3-process__grid .s3-step,
  body.theme-sian3 .s3-process__grid .s3-step.s3-glass {
    display: flex !important;
    flex-direction: column !important;
    min-height: 210px !important;
    padding: 20px 18px 18px !important;
    border-radius: 18px !important;
  }
  body.theme-sian3 .s3-step__num {
    width: auto;
    margin: 0 0 12px;
    font-size: 1.7rem;
  }
  body.theme-sian3 .s3-step__en {
    margin: 0 0 5px;
    font-size: 10px;
  }
  body.theme-sian3 .s3-step h3 {
    margin: 0 0 14px;
    font-size: 1.12rem;
    line-height: 1.25;
  }
  body.theme-sian3 .s3-step p {
    margin: 2px 0 0;
    font-size: 12.5px;
    line-height: 1.55;
  }
  body.theme-sian3 .s3-step__tag {
    display: none !important;
  }

  /* Hero match stage on tablet — keep dial fully in-frame (no edge clip) */
  body.theme-sian3 .s3-panel.s3-hero {
    overflow: visible !important;
  }
  body.theme-sian3 .s3-hero__symbol {
    width: var(--s3-match-size) !important;
    height: var(--s3-match-size) !important;
    max-width: none !important;
    top: 56% !important;
    bottom: auto !important;
    right: var(--s3-match-right, clamp(44px, 6vw, 80px)) !important;
    transform: translateY(-50%) !important;
    opacity: 1 !important;
    filter: none;
  }
  body.theme-sian3 .s3-hero__stack {
    max-width: min(420px, calc(100% - var(--s3-match-size) - var(--s3-match-right, 64px) - 28px)) !important;
    margin-right: auto;
    padding-right: 12px;
    align-self: flex-start;
  }
  body.theme-sian3 .s3-hero__lead {
    max-width: 28em;
  }
  body.theme-sian3 .s3-hero__actions {
    max-width: 100%;
    width: auto;
  }
  body.theme-sian3 .s3-hero__actions .s3-btn {
    flex: 0 1 auto;
    min-width: 7.5rem;
  }

  body.theme-sian3 .s3-roles__inner {
    max-width: min(640px, 100%);
  }
  body.theme-sian3 .s3-roles__header {
    margin-bottom: 16px !important;
  }
  body.theme-sian3 .s3-roles__header .s3-kicker {
    font-size: 12.5px;
    letter-spacing: 0.18em;
    margin-bottom: 8px;
  }
  body.theme-sian3 .s3-roles__title {
    font-size: clamp(1.75rem, 3.8vw, 2.15rem);
    font-weight: 800;
    line-height: 1.2;
  }
  body.theme-sian3 .s3-roles__desc {
    font-size: 13.5px;
    font-weight: 400;
    opacity: 0.7;
  }
  body.theme-sian3 .s3-roles__grid {
    gap: 18px;
    margin-top: 20px;
  }
  /* Tablet roles — align to PC glass card language */
  body.theme-sian3 .s3-role {
    min-height: 200px !important;
    height: auto !important;
    padding: clamp(24px, 3.2vw, 32px) !important;
    gap: 10px !important;
    border-radius: 22px !important;
    justify-content: flex-start !important;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    background: rgba(255, 255, 255, 0.045) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.12),
      0 18px 50px rgba(0, 0, 0, 0.28) !important;
    backdrop-filter: blur(16px) saturate(1.25) !important;
    -webkit-backdrop-filter: blur(16px) saturate(1.25) !important;
  }
  body.theme-sian3 .s3-role--teacher,
  body.theme-sian3 .s3-role--student {
    border-color: rgba(255, 255, 255, 0.12) !important;
  }
  body.theme-sian3 .s3-role__rail {
    display: none !important;
  }
  body.theme-sian3 .s3-role::before {
    opacity: 0.45;
  }
  body.theme-sian3 .s3-role--teacher::before {
    background: radial-gradient(120% 110% at 100% 100%,
      rgba(196, 21, 31, 0.2) 0%,
      rgba(196, 21, 31, 0.08) 38%,
      transparent 72%);
  }
  body.theme-sian3 .s3-role--student::before {
    background: radial-gradient(120% 110% at 100% 100%,
      rgba(217, 119, 6, 0.2) 0%,
      rgba(217, 119, 6, 0.08) 38%,
      transparent 72%);
  }
  body.theme-sian3 .s3-role__eyebrow {
    font-size: 11px;
    letter-spacing: 0.18em;
    margin: 0;
  }
  body.theme-sian3 .s3-role__title {
    font-size: clamp(1.55rem, 3.2vw, 2rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: inherit;
  }
  body.theme-sian3 .s3-role__desc {
    font-size: 14px;
    line-height: 1.55;
    color: var(--s3-ink-muted);
  }
  body.theme-sian3 .s3-role__foot {
    margin-top: auto !important;
    padding-top: 18px !important;
    border-top: none;
    align-self: flex-start;
    width: auto;
  }
  body.theme-sian3 .s3-role__cta {
    margin-top: 0 !important;
    font-size: 13px;
    letter-spacing: 0.04em;
    color: var(--s3-ink);
  }
  body.theme-sian3 .s3-role__arrow {
    font-size: 13px;
    color: inherit;
  }
  body.theme-sian3 .s3-role--teacher .s3-role__arrow,
  body.theme-sian3 .s3-role--student .s3-role__arrow {
    color: inherit;
  }
  body.theme-sian3 #s3Roles .s3-role--teacher:hover,
  body.theme-sian3 #s3Roles .s3-role--teacher:focus-visible,
  body.theme-sian3 #s3Roles .s3-role--student:hover,
  body.theme-sian3 #s3Roles .s3-role--student:focus-visible,
  body.theme-sian3 #s3Roles .s3-role--teacher.is-hot,
  body.theme-sian3 #s3Roles .s3-role--student.is-hot {
    transform: translate3d(0, -6px, 0) scale(1.02);
  }
}

/* Narrow phones — text mid-upper / graphic lower-right with clear breathing room */
@media (max-width: 640px) {
  body.theme-sian3 .s3-panel.s3-hero {
    justify-content: flex-start;
    align-items: stretch;
    padding-top: calc(var(--s3-header-h) + clamp(28px, 5vh, 48px));
    padding-bottom: max(108px, calc(14vh + env(safe-area-inset-bottom, 0px)));
    overflow: visible !important;
  }

  /* Graphic sits near the lower zone (not flush, not mid-stuck to copy) */
  body.theme-sian3 .s3-hero__symbol {
    display: block !important;
    top: auto !important;
    bottom: clamp(92px, 13vh, 132px) !important;
    right: clamp(14px, 4.5vw, 28px) !important;
    left: auto !important;
    transform: none !important;
    width: var(--s3-match-size) !important;
    height: var(--s3-match-size) !important;
    max-width: none !important;
    opacity: 0.92;
    filter: none;
    z-index: 1;
    pointer-events: none;
    user-select: none;
  }

  body.theme-sian3 .s3-hero__stack {
    position: relative;
    z-index: 3;
    max-width: 100% !important;
    width: 100%;
    margin: 0;
    margin-top: clamp(88px, 14vh, 130px) !important;
    padding-right: clamp(8px, 3vw, 20px);
    align-self: stretch;
  }
  body.theme-sian3 .s3-hero__micro {
    position: relative;
    top: auto;
    left: auto;
    margin: 0 0 12px;
    font-size: 10px;
    letter-spacing: 0.14em;
  }
  body.theme-sian3 .s3-hero__headline {
    flex-wrap: wrap;
    gap: 0.08em 0.12em;
    margin: 0;
    margin-left: 0;
  }
  body.theme-sian3 .s3-hero__lead {
    max-width: 22em;
    margin: 10px 0 0;
    font-size: clamp(0.78rem, 3.1vw, 0.88rem);
    line-height: 1.5;
    word-break: keep-all;
    overflow-wrap: break-word;
    color: rgba(245, 245, 245, 0.7);
  }
  body.theme-sian3 .s3-hero__actions {
    flex-wrap: nowrap;
    gap: 6px;
    margin-top: 12px;
    width: 100%;
    max-width: min(100%, 300px);
  }
  body.theme-sian3 .s3-hero__actions .s3-btn {
    flex: 1 1 0;
    min-width: 0;
    display: inline-flex !important;
    justify-content: center;
    align-items: center;
    min-height: 34px;
    height: auto;
    padding: 7px 18px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: -0.01em;
    border-radius: 9px;
    white-space: nowrap;
    overflow: visible;
    line-height: 1 !important;
    box-shadow: 0 4px 14px rgba(196, 21, 31, 0.22);
  }
  body.theme-sian3 .s3-hero__actions .s3-btn--ghost {
    padding: 7px 12px;
    box-shadow: none;
  }
  body.theme-sian3 .s3-hero__actions .s3-btn__magnet {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transform: translateY(-0.08em);
  }

  body.theme-sian3 .s3-roles__inner {
    max-width: 100%;
  }
  body.theme-sian3 .s3-roles__header {
    margin-bottom: 12px !important;
  }
  body.theme-sian3 .s3-roles__header .s3-kicker {
    font-size: 12px;
    letter-spacing: 0.18em;
    margin-bottom: 8px;
  }
  body.theme-sian3 .s3-roles__title {
    font-size: clamp(1.55rem, 6.2vw, 1.9rem);
    line-height: 1.22;
    font-weight: 800;
  }
  body.theme-sian3 .s3-roles__desc {
    font-size: 12.5px;
    font-weight: 400;
    opacity: 0.72;
    letter-spacing: -0.01em;
  }
  body.theme-sian3 .s3-roles__grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
    margin-top: 12px;
  }
  body.theme-sian3 .s3-role {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    padding: 18px 18px 16px !important;
    gap: 6px !important;
    border-radius: 16px !important;
    min-height: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.13) !important;
    background: rgba(14, 12, 13, 0.9) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.07),
      0 12px 28px rgba(0, 0, 0, 0.34) !important;
    backdrop-filter: blur(14px) saturate(1.2) !important;
    -webkit-backdrop-filter: blur(14px) saturate(1.2) !important;
  }
  body.theme-sian3 .s3-role--teacher {
    border-color: rgba(196, 21, 31, 0.28) !important;
  }
  body.theme-sian3 .s3-role--student {
    border-color: rgba(217, 119, 6, 0.26) !important;
  }
  body.theme-sian3 .s3-role::before {
    opacity: 0.72;
  }
  body.theme-sian3 .s3-role--teacher::before {
    background: radial-gradient(115% 100% at 100% 0%,
      rgba(196, 21, 31, 0.18) 0%,
      rgba(196, 21, 31, 0.05) 42%,
      transparent 70%);
  }
  body.theme-sian3 .s3-role--student::before {
    background: radial-gradient(115% 100% at 100% 0%,
      rgba(217, 119, 6, 0.16) 0%,
      rgba(217, 119, 6, 0.05) 42%,
      transparent 70%);
  }
  body.theme-sian3 .s3-role__rail {
    display: none !important;
  }
  body.theme-sian3 .s3-role__eyebrow {
    font-size: 10px;
    letter-spacing: 0.18em;
    margin: 0 0 2px;
    opacity: 0.92;
  }
  body.theme-sian3 .s3-role__title {
    font-size: 1.22rem;
    line-height: 1.22;
    letter-spacing: -0.03em;
    color: #f5f5f5;
  }
  body.theme-sian3 .s3-role__desc {
    font-size: 12.5px;
    line-height: 1.5;
    color: rgba(245, 245, 245, 0.58);
    max-width: 28ch;
  }
  body.theme-sian3 .s3-role__foot {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: calc(100% - 2px);
    margin-top: 12px !important;
    padding-top: 12px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    align-self: stretch;
  }
  body.theme-sian3 .s3-role__cta {
    margin-top: 0 !important;
    padding-top: 0 !important;
    align-self: flex-start;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
    color: rgba(245, 245, 245, 0.88);
  }
  body.theme-sian3 .s3-role__arrow {
    font-size: 12.5px;
    line-height: 1;
    color: rgba(245, 245, 245, 0.55);
  }
  body.theme-sian3 .s3-role--teacher .s3-role__arrow {
    color: rgba(232, 80, 88, 0.85);
  }
  body.theme-sian3 .s3-role--student .s3-role__arrow {
    color: rgba(245, 158, 11, 0.85);
  }
  body.theme-sian3 #s3Roles .s3-role--teacher:active,
  body.theme-sian3 #s3Roles .s3-role--student:active {
    transform: scale(0.985);
    background: rgba(22, 18, 19, 0.96) !important;
  }
  body.theme-sian3 #s3Roles .s3-role--teacher:active {
    border-color: rgba(196, 21, 31, 0.5) !important;
  }
  body.theme-sian3 #s3Roles .s3-role--student:active {
    border-color: rgba(217, 119, 6, 0.48) !important;
  }
  body.theme-sian3 #s3Roles .s3-role:active .s3-role__arrow {
    transform: translate3d(4px, 0, 0);
  }
  body.theme-sian3 #s3Roles .s3-role--teacher:active .s3-role__title {
    color: #e81c28;
  }
  body.theme-sian3 #s3Roles .s3-role--student:active .s3-role__title {
    color: var(--s3-student-bright);
  }

  body.theme-sian3 .s3-process__top {
    margin-bottom: 16px;
    max-width: 100%;
  }
  body.theme-sian3 .s3-process__title {
    font-size: clamp(1.28rem, 5.4vw, 1.55rem);
  }
  body.theme-sian3 .s3-process__grid {
    grid-template-columns: 1fr !important;
    gap: 10px;
    max-width: 100%;
  }
  /* Mobile process cards — simple vertical stack (role-card language) */
  body.theme-sian3 .s3-process__grid .s3-step,
  body.theme-sian3 .s3-process__grid .s3-step.s3-glass {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 16px 16px 15px !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.13) !important;
    background: rgba(14, 12, 13, 0.9) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.07),
      0 12px 28px rgba(0, 0, 0, 0.32) !important;
    backdrop-filter: blur(12px) saturate(1.15) !important;
    -webkit-backdrop-filter: blur(12px) saturate(1.15) !important;
    opacity: 1 !important;
    transform: none !important;
    overflow: hidden;
  }
  body.theme-sian3 .s3-process__grid .s3-step:last-child {
    grid-column: auto !important;
    max-width: none !important;
    justify-self: stretch !important;
  }
  body.theme-sian3 .s3-process__grid .s3-step.is-active {
    border-color: rgba(196, 21, 31, 0.48) !important;
    background: rgba(28, 16, 18, 0.96) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.09),
      0 12px 28px rgba(196, 21, 31, 0.14) !important;
  }
  body.theme-sian3 .s3-step__corner {
    display: none !important;
  }
  body.theme-sian3 .s3-step__num {
    position: static !important;
    transform: none !important;
    display: block;
    width: auto;
    margin: 0 0 8px;
    padding: 0;
    border: none;
    font-size: 1.22rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    color: #C4151F;
  }
  body.theme-sian3 .s3-process__grid .s3-step.is-active .s3-step__num {
    color: #e81c28;
  }
  body.theme-sian3 .s3-step__en {
    display: block;
    margin: 0 0 5px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1.2;
    text-transform: uppercase;
    color: rgba(245, 245, 245, 0.4);
  }
  body.theme-sian3 .s3-process__grid .s3-step.is-active .s3-step__en {
    color: rgba(232, 80, 88, 0.75);
  }
  body.theme-sian3 .s3-step h3 {
    display: block;
    margin: 0 0 8px;
    padding: 0;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.28;
    letter-spacing: -0.025em;
    color: #f5f5f5;
    word-break: keep-all;
  }
  body.theme-sian3 .s3-step p {
    display: block;
    margin: 0;
    padding: 0;
    font-size: 11.5px;
    line-height: 1.5;
    letter-spacing: -0.01em;
    color: rgba(245, 245, 245, 0.55);
    word-break: keep-all;
    overflow-wrap: break-word;
  }
  body.theme-sian3 .s3-step p .s3-br-m {
    display: inline;
  }
  body.theme-sian3 .s3-step__tag {
    display: none !important;
  }
}

@media (max-width: 480px) {
  body.theme-sian3 { --s3-pad-x: 14px; }
  body.theme-sian3 .s3-roles__header .s3-kicker {
    font-size: 11.5px;
  }
  body.theme-sian3 .s3-roles__title {
    font-size: clamp(1.48rem, 6.4vw, 1.78rem);
  }
  body.theme-sian3 .s3-roles__desc {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.7;
  }
  body.theme-sian3 .s3-process__title {
    font-size: clamp(1.22rem, 5.8vw, 1.45rem);
  }
  body.theme-sian3 .s3-header__logo img {
    height: 26px;
  }
  body.theme-sian3 .s3-roles__grid {
    gap: 10px;
  }
  body.theme-sian3 .s3-role {
    padding: 16px 16px 15px !important;
  }
  body.theme-sian3 .s3-role__title {
    font-size: 1.14rem;
  }
  body.theme-sian3 .s3-role__desc {
    font-size: 12px;
  }
  body.theme-sian3 .s3-role__foot {
    margin-top: 11px !important;
    padding-top: 11px !important;
  }
  body.theme-sian3 .s3-process__grid {
    gap: 9px;
  }
  body.theme-sian3 .s3-process__grid .s3-step,
  body.theme-sian3 .s3-process__grid .s3-step.s3-glass {
    padding: 15px 15px 14px !important;
    border-radius: 15px !important;
  }
  body.theme-sian3 .s3-step__num {
    margin: 0 0 7px;
    font-size: 1.15rem;
  }
  body.theme-sian3 .s3-step__en {
    margin: 0 0 4px;
    font-size: 9px;
    letter-spacing: 0.14em;
  }
  body.theme-sian3 .s3-step h3 {
    margin: 0 0 7px;
    font-size: 1rem;
  }
  body.theme-sian3 .s3-step p {
    font-size: 11px;
    line-height: 1.48;
  }
  body.theme-sian3 .s3-step__tag {
    display: none !important;
  }
  body.theme-sian3 .s3-hero__lead {
    margin: 9px 0 0;
    font-size: clamp(0.76rem, 3vw, 0.84rem);
    line-height: 1.48;
  }
  body.theme-sian3 .s3-hero__actions {
    margin-top: 12px;
    max-width: min(100%, 248px);
    gap: 6px;
  }
  body.theme-sian3 .s3-hero__actions .s3-btn {
    min-height: 32px;
    height: auto;
    padding: 6px 11px;
    font-size: 10.5px;
    border-radius: 8px;
  }
  body.theme-sian3 .s3-hero__symbol {
    top: auto !important;
    bottom: clamp(80px, 11vh, 112px) !important;
    width: var(--s3-match-size) !important;
    height: var(--s3-match-size) !important;
    max-width: none !important;
    opacity: 0.88;
    right: clamp(12px, 4vw, 24px) !important;
    transform: none !important;
  }
  body.theme-sian3 .s3-hero__stack {
    padding-right: clamp(6px, 2vw, 16px);
    margin-top: clamp(56px, 10vh, 96px) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.theme-sian3 .s3-geo__item,
  body.theme-sian3 .s3-vision__blur,
  body.theme-sian3 .s3-hero__scroll-line::after,
  body.theme-sian3 .s3-ticker__track,
  body.theme-sian3 .s3-roles__swap span,
  body.theme-sian3 .s3-flip__item {
    animation: none !important;
  }
  body.theme-sian3 .s3-flip__item { opacity: 0; }
  body.theme-sian3 .s3-flip__item.is-active { opacity: 1; filter: none; transform: none; }
}

/* ═══════════════════════════════════════════════════════════
   SIAN3 v2 — grainy black/red bloom canvas (grid removed),
   clean snap scrollbar, hero symbol.gif
   ═══════════════════════════════════════════════════════════ */

/* Dark base + soft red blooms (top-right bright, bottom-left dim),
   fixed behind every panel so each snap screen shares the same glow. */
body.theme-sian3,
html:has(body.theme-sian3) {
  background: #0a0708;
}
body.theme-sian3::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(58% 52% at 82% 16%, rgba(232, 28, 40, 0.55) 0%, rgba(150, 18, 26, 0.22) 34%, transparent 62%),
    radial-gradient(46% 44% at 14% 86%, rgba(150, 18, 26, 0.36) 0%, transparent 56%),
    radial-gradient(130% 120% at 62% 38%, transparent 42%, rgba(0, 0, 0, 0.6) 100%),
    #0a0708;
}
body.theme-sian3.is-form-open::before { display: none; }

/* Grid + pulsing right-side glow orb fully removed */
body.theme-sian3 .s3-hero__grid,
body.theme-sian3 .s3-hero__glow { display: none !important; }

/* Header: dark glassmorphism (no gradient edge) */
body.theme-sian3 .s3-header {
  background: rgba(12, 10, 11, 0.55);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
  backdrop-filter: blur(20px) saturate(1.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

/* Grainier film over the blooms (kept below the text layer) */
body.theme-sian3 .s3-noise {
  opacity: 0.08;
  background-size: 150px;
}

/* Snap scroller: hide the inner scrollbar so the fixed header no longer
   sits awkwardly over a scroll track (progress dots are the indicator). */
body.theme-sian3 .s3-landing.s3-snap {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
body.theme-sian3 .s3-landing.s3-snap::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

/* Roles panel: transparent canvas (no slab under fixed header) */
body.theme-sian3 .s3-roles {
  background: transparent !important;
  border-block: 0 !important;
}

/* Mouse-follow gradient glow removed */
body.theme-sian3 .s3-cursor-glow { display: none !important; }

/* Process step cards: nothing to click yet, so keep the normal cursor
   (hover styling still applies). */
body.theme-sian3 .s3-step {
  cursor: default;
}

/* ══════════════════════════════════════════════════════════════════
   High-end panel-to-panel scroll choreography
   - Each snap panel reveals its content in a staged sequence
     (kicker → title → body → cards / steps) via keyframe animations
     with `backwards` fill, so hover & active transforms keep working
     once the intro has played.
   - The whole panel recedes slightly while off-screen (depth), and a
     scroll-linked parallax (--s3-rel, set per panel in JS) drifts the
     hero symbol for an organic, connected feel between screens.
   ══════════════════════════════════════════════════════════════════ */

@keyframes s3-rise-in {
  0%   { opacity: 0; transform: translateY(52px) scale(0.98); filter: blur(10px); }
  55%  { filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes s3-slide-left {
  0%   { opacity: 0; transform: translateX(-46px); filter: blur(9px); }
  100% { opacity: 1; transform: translateX(0); filter: blur(0); }
}
@keyframes s3-pop {
  0%   { opacity: 0; transform: scale(0.9) translateY(26px); filter: blur(11px); }
  60%  { filter: blur(0); }
  100% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}
@keyframes s3-fade-soft {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes s3-card-in {
  0%   { opacity: 0; transform: translate3d(0, 28px, 0) scale(0.98); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

/* Off-screen / leaving state: content is hidden and fades back out.
   NOTE: the role cards fade only (never transform) so their hover-lift
   stays perfectly smooth — the grid container does the entrance motion. */
body.theme-sian3 .s3-roles__inner .s3-kicker,
body.theme-sian3 .s3-roles__inner .s3-roles__title,
body.theme-sian3 .s3-roles__inner .s3-roles__desc,
body.theme-sian3 .s3-roles__grid,
body.theme-sian3 .s3-roles__grid .s3-role,
body.theme-sian3 .s3-process__top,
body.theme-sian3 .s3-process__grid,
body.theme-sian3 .s3-process__nav {
  opacity: 0;
  transition: opacity 0.55s ease;
}

/* ── Roles panel: focus-rise choreography ── */
body.theme-sian3 .s3-panel.is-inview .s3-roles__inner .s3-kicker,
body.theme-sian3 .s3-panel.is-inview .s3-roles__inner .s3-roles__title,
body.theme-sian3 .s3-panel.is-inview .s3-roles__inner .s3-roles__desc {
  opacity: 1;
  animation: s3-rise-in 0.95s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
body.theme-sian3 .s3-panel.is-inview .s3-roles__inner .s3-kicker { animation-delay: 0.04s; }
body.theme-sian3 .s3-panel.is-inview .s3-roles__inner .s3-roles__title { animation-delay: 0.13s; }
body.theme-sian3 .s3-panel.is-inview .s3-roles__inner .s3-roles__desc { animation-delay: 0.22s; }
/* grid container just reveals; the two cards carry the entrance motion */
body.theme-sian3 .s3-panel.is-inview .s3-roles__grid { opacity: 1; }
body.theme-sian3 .s3-panel.is-inview .s3-roles__grid .s3-role {
  opacity: 1;
  animation: s3-card-in 0.72s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
body.theme-sian3 .s3-panel.is-inview .s3-roles__grid .s3-role--teacher { animation-delay: 0.28s; }
body.theme-sian3 .s3-panel.is-inview .s3-roles__grid .s3-role--student { animation-delay: 0.38s; }

/* After entrance, clear animation so hover transform never fights keyframes */
body.theme-sian3 .s3-panel.is-inview .s3-roles__grid .s3-role.is-settle {
  animation: none !important;
}

/* ── Process panel: a different feel — heading slips in from the left,
   the cards pop up in scale, dots fade last ── */
body.theme-sian3 .s3-panel.is-inview .s3-process__top {
  opacity: 1;
  animation: s3-slide-left 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.05s backwards;
}
body.theme-sian3 .s3-panel.is-inview .s3-process__grid {
  opacity: 1;
  animation: s3-pop 1s cubic-bezier(0.16, 1, 0.3, 1) 0.16s backwards;
}
body.theme-sian3 .s3-panel.is-inview .s3-process__nav {
  opacity: 1;
  animation: s3-fade-soft 0.7s ease 0.4s backwards;
}

/* Whole panel recedes in depth + dims while off-screen so the incoming
   screen pulls focus — a layered, high-end handoff between panels. */
body.theme-sian3 .s3-panel {
  transition: transform 1.05s var(--s3-ease-out), opacity 0.9s ease;
}
body.theme-sian3 .s3-panel:not(.is-inview) {
  transform: scale(0.94) translateY(1.6%);
  opacity: 0.5;
}
body.theme-sian3 .s3-panel.s3-hero { transform: none !important; }

/* Mobile must win over the entrance opacity/depth rules above —
   otherwise process/roles stay invisible or get clipped. */
@media (max-width: 900px) {
  body.theme-sian3 .s3-panel,
  body.theme-sian3 .s3-panel:not(.is-inview) {
    transform: none !important;
    opacity: 1 !important;
  }
  body.theme-sian3 .s3-roles__inner .s3-kicker,
  body.theme-sian3 .s3-roles__inner .s3-roles__title,
  body.theme-sian3 .s3-roles__inner .s3-roles__desc,
  body.theme-sian3 .s3-roles__grid,
  body.theme-sian3 .s3-roles__grid .s3-role,
  body.theme-sian3 .s3-process__top,
  body.theme-sian3 .s3-process__grid,
  body.theme-sian3 .s3-process__nav,
  body.theme-sian3 .s3-process__grid .s3-step {
    opacity: 1 !important;
    visibility: visible !important;
    animation: none !important;
    filter: none !important;
    transform: none !important;
  }
}

/* Short landscape phones / foldables */
@media (max-width: 900px) and (max-height: 520px) {
  body.theme-sian3 .s3-panel {
    justify-content: flex-start;
    padding-top: calc(var(--s3-header-h) + 8px);
    padding-bottom: max(64px, calc(48px + env(safe-area-inset-bottom, 0px))) !important;
  }
  body.theme-sian3 .s3-snap-progress {
    bottom: max(10px, calc(6px + env(safe-area-inset-bottom, 0px))) !important;
    padding: 6px 12px;
  }
  body.theme-sian3 .s3-process__grid {
    grid-template-columns: 1fr !important;
    gap: 8px;
  }
  body.theme-sian3 .s3-process__grid .s3-step,
  body.theme-sian3 .s3-process__grid .s3-step.s3-glass {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    min-height: 0 !important;
    padding: 12px 14px 11px !important;
  }
  body.theme-sian3 .s3-process__grid .s3-step:last-child {
    max-width: none !important;
    grid-column: auto !important;
  }
  body.theme-sian3 .s3-step__num {
    width: auto;
    margin: 0 0 6px;
    font-size: 1.2rem;
    color: #C4151F;
  }
  body.theme-sian3 .s3-step__en {
    margin: 0 0 2px;
  }
  body.theme-sian3 .s3-step h3 {
    margin: 0 0 5px;
    font-size: 0.98rem;
  }
  body.theme-sian3 .s3-step p {
    margin: 0;
    font-size: 11.5px;
    line-height: 1.4;
  }
  body.theme-sian3 .s3-step__tag {
    display: none !important;
  }
  body.theme-sian3 .s3-role {
    padding: 12px 14px !important;
  }
  body.theme-sian3 .s3-roles__header {
    margin-bottom: 8px !important;
  }
  body.theme-sian3 .s3-roles__title,
  body.theme-sian3 .s3-process__title {
    font-size: clamp(1.15rem, 4.5vh, 1.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.theme-sian3 .s3-roles__inner .s3-kicker,
  body.theme-sian3 .s3-roles__inner .s3-roles__title,
  body.theme-sian3 .s3-roles__inner .s3-roles__desc,
  body.theme-sian3 .s3-roles__grid,
  body.theme-sian3 .s3-roles__grid .s3-role,
  body.theme-sian3 .s3-process__top,
  body.theme-sian3 .s3-process__grid,
  body.theme-sian3 .s3-process__nav {
    opacity: 1;
    animation: none;
    transition: none;
  }
  body.theme-sian3 .s3-panel:not(.is-inview) { transform: none; opacity: 1; }
  body.theme-sian3 .s3-hero__symbol { transform: translateY(-50%); }
}

body.theme-sian3 {
  --s3-match-size: clamp(300px, min(36vw, 46vh), 410px);
  --s3-match-bleed: 0.28;
  --s3-match-right: max(
    calc(var(--s3-match-size) * var(--s3-match-bleed)),
    clamp(48px, 7vw, 140px)
  );
  --s3-match-canvas-scale: 0.94;
  --s3-shape-scale: 1;
}
body.theme-sian3 .s3-hero__symbol,
body.theme-sian3 .s3-hero__match {
  position: absolute;
  right: var(--s3-match-right);
  top: 50%;
  left: auto;
  bottom: auto;
  transform: translateY(calc(-50% + (var(--s3-rel, 0) * 48px)));
  width: var(--s3-match-size);
  height: var(--s3-match-size);
  max-width: none;
  max-height: none;
  aspect-ratio: 1 / 1;
  z-index: 1;
  pointer-events: none;
  user-select: none;
  overflow: visible;
  filter: none;
  opacity: 1;
  background: transparent;
  will-change: transform, opacity;
}

body.theme-sian3 .s3-hero__match-stage {
  position: absolute;
  /* Square 150% bleed — room for dots without clipping sides */
  inset: -25%;
  width: 150%;
  height: 150%;
  left: -25%;
  top: -25%;
  background: transparent;
  overflow: visible;
}

body.theme-sian3 .s3-hero__match-canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
  background: transparent !important;
}

/* Sensory matched stamp — DOM fallback unused (sprite stamp in Three.js) */
body.theme-sian3 .s3-hero__matched {
  display: none !important;
}

body.theme-sian3 .s3-hero__match.is-static .s3-hero__match-canvas {
  opacity: 0.92;
}

/* Objects/dial-match — mid-size always-on ticks + outer-rim play above logo */
body.theme-sian3-objects .s3-geo__dot,
body.theme-sian3-objects .s3-geo__ring {
  display: none !important;
}
body.theme-sian3-objects .s3-hero__match-grain {
  display: none !important;
}
body.theme-sian3-objects .s3-hero__match-stage {
  isolation: isolate;
}
body.theme-sian3-objects .s3-hero__match-canvas {
  position: absolute !important;
  inset: 0;
  opacity: 1 !important;
  filter: none !important;
  z-index: 5 !important;
  pointer-events: none;
  background: transparent !important;
}

/* Objects / shapes: match tokens
   PC (≥1280): restore original ~410 pocket
   Compact / tablet: dial up a touch, orbit shapes scale down via --s3-shape-scale */
body.theme-sian3-objects,
body.theme-sian3-shapes {
  --s3-match-bleed: 0.28;
  --s3-match-size: clamp(300px, min(36vw, 46vh), 410px);
  --s3-match-right: max(
    calc(var(--s3-match-size) * var(--s3-match-bleed)),
    clamp(48px, 7vw, 140px)
  );
  --s3-match-canvas-scale: 0.94;
  --s3-shape-scale: 1;
}
@media (min-width: 2200px) and (min-height: 1100px) {
  body.theme-sian3-objects,
  body.theme-sian3-shapes {
    --s3-match-size: clamp(360px, min(30vw, 42vh), 520px);
    --s3-match-canvas-scale: 0.9;
  }
}
@media (min-width: 3000px) and (min-height: 1400px) {
  body.theme-sian3-objects,
  body.theme-sian3-shapes {
    --s3-match-size: clamp(400px, min(28vw, 40vh), 600px);
    --s3-match-canvas-scale: 0.88;
  }
}
body.theme-sian3-objects .s3-hero__match-lines {
  display: none !important;
}

/*
 * Concentric dial: outer ticks → mid → inner frame around symbol.
 * Match play sits above canvas on the rim / rings only.
 */
body.theme-sian3-objects .s3-match-dial,
body.theme-sian3-objects .s3-match-dial__play {
  --pulse: 0;
  --orbit: 44%;
  --mid: 37%;
  --inner: 27.5%;
  --hand-inner: 27.5%;
  position: absolute;
  inset: 3%;
  width: auto;
  height: auto;
  pointer-events: none;
  will-change: transform;
}
body.theme-sian3-objects .s3-match-dial {
  z-index: 2;
}
body.theme-sian3-objects .s3-match-dial__play {
  z-index: 9;
}

body.theme-sian3-objects .s3-match-dial__shell {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  opacity: 1 !important;
}
body.theme-sian3-objects .s3-match-dial__ticks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.38;
  mix-blend-mode: normal;
  pointer-events: none;
  user-select: none;
  /* neutralize red clock art → cool silver ticks */
  filter: grayscale(1) brightness(1.35) contrast(1.05);
}
/* Outer orbit (candidate track) */
body.theme-sian3-objects .s3-match-dial__orbit-line {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--orbit) * 2);
  height: calc(var(--orbit) * 2);
  margin: calc(var(--orbit) * -1) 0 0 calc(var(--orbit) * -1);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  pointer-events: none;
  transition: border-color 0.35s ease;
}
/* One detail ring between symbol and outer orbit (no overlap with plaque) */
body.theme-sian3-objects .s3-match-dial__mid-line {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--mid) * 2);
  height: calc(var(--mid) * 2);
  margin: calc(var(--mid) * -1) 0 0 calc(var(--mid) * -1);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  pointer-events: none;
}
/* mid ring soft rim light on match; outer orbit stays quiet */
body.theme-sian3-objects .s3-match-dial.is-matched .s3-match-dial__mid-line {
  border-color: rgba(196, 21, 31, 0.55);
  box-shadow:
    0 0 8px rgba(196, 21, 31, 0.28),
    0 0 22px rgba(196, 21, 31, 0.14),
    inset 0 0 12px rgba(196, 21, 31, 0.08);
  transition: border-color 0.55s ease, box-shadow 0.55s ease;
}
body.theme-sian3-objects .s3-match-dial.is-matched .s3-match-dial__orbit-line {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 10px rgba(196, 21, 31, 0.06);
}
/* Inner / bond / spoke / flash off — match uses bloom + overlap */
body.theme-sian3-objects .s3-match-dial__inner,
body.theme-sian3-objects .s3-match-dial__inner-glow,
body.theme-sian3-objects .s3-match-dial__bond,
body.theme-sian3-objects .s3-match-dial__spoke,
body.theme-sian3-objects .s3-match-dial__flash {
  display: none !important;
}
body.theme-sian3-objects .s3-match-dial__ring {
  display: none !important;
}

/* Soft verify tick — nearly invisible line */
body.theme-sian3-objects .s3-match-dial__probe {
  --a: -90deg;
  --r: 44%;
  --draw: 0;
  position: absolute;
  inset: 0;
  transform: rotate(var(--a));
  transform-origin: 50% 50%;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}
body.theme-sian3-objects .s3-match-dial__probe::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--orbit) - var(--r));
  height: 1px;
  margin-top: -0.5px;
  margin-left: var(--r);
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.35);
  transform: scaleX(var(--draw));
  transform-origin: 0 50%;
}

body.theme-sian3-objects .s3-match-dial__radar {
  display: none !important;
}

/*
 * Match bloom — soft red along the innermost detail ring (--mid).
 * Lock dot stays a clean solid circle.
 */
body.theme-sian3-objects .s3-match-dial__pair {
  display: none !important;
}

body.theme-sian3-objects .s3-match-dial__burst {
  --pop: 0;
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 0;
  transform: none;
}
body.theme-sian3-objects .s3-match-dial__burst.is-on {
  visibility: visible;
}
/* soft annular glow hugging the mid (innermost) ring */
body.theme-sian3-objects .s3-match-dial__burst::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--mid) * 2 + 22px + var(--pop) * 14px);
  height: calc(var(--mid) * 2 + 22px + var(--pop) * 14px);
  margin-left: calc(var(--mid) * -1 - 11px - var(--pop) * 7px);
  margin-top: calc(var(--mid) * -1 - 11px - var(--pop) * 7px);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    transparent 0%,
    transparent 62%,
    rgba(196, 21, 31, 0.06) 70%,
    rgba(196, 21, 31, 0.28) 78%,
    rgba(196, 21, 31, 0.1) 88%,
    transparent 100%
  );
  filter: blur(calc(8px + var(--pop) * 5px));
  opacity: calc(0.5 + var(--pop) * 0.5);
  box-sizing: border-box;
}
body.theme-sian3-objects .s3-match-dial__burst::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--mid) * 2 + 4px);
  height: calc(var(--mid) * 2 + 4px);
  margin-left: calc(var(--mid) * -1 - 2px);
  margin-top: calc(var(--mid) * -1 - 2px);
  border-radius: 50%;
  border: 1px solid rgba(196, 21, 31, calc(0.22 + var(--pop) * 0.28));
  box-shadow:
    0 0 8px rgba(196, 21, 31, calc(0.14 + var(--pop) * 0.2)),
    0 0 22px rgba(196, 21, 31, calc(0.08 + var(--pop) * 0.12)),
    0 0 1px rgba(255, 255, 255, calc(0.15 + var(--pop) * 0.2));
  opacity: calc(0.55 + var(--pop) * 0.45);
  box-sizing: border-box;
}

/* High-end match confirm — dial atmosphere only (never around the lock dot) */
body.theme-sian3-objects .s3-match-dial__lux {
  --a: -90deg;
  --pop: 0;
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  visibility: hidden;
}
body.theme-sian3-objects .s3-match-dial__lux.is-on {
  visibility: visible;
}
/* soft atmospheric veil between mid and orbit — keeps plaque center clean */
body.theme-sian3-objects .s3-match-dial__lux-veil {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    transparent 0%,
    transparent 34%,
    rgba(196, 21, 31, 0.03) 48%,
    rgba(196, 21, 31, 0.09) 62%,
    rgba(255, 255, 255, 0.03) 72%,
    transparent 82%
  );
  opacity: 0;
}
/* slow breath annulus on innermost detail ring */
body.theme-sian3-objects .s3-match-dial__lux-breath {
  --pop: 0;
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--mid) * 2 + 18px + var(--pop) * 20px);
  height: calc(var(--mid) * 2 + 18px + var(--pop) * 20px);
  margin-left: calc(var(--mid) * -1 - 9px - var(--pop) * 10px);
  margin-top: calc(var(--mid) * -1 - 9px - var(--pop) * 10px);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    transparent 0%,
    transparent 68%,
    rgba(196, 21, 31, 0.1) 76%,
    rgba(196, 21, 31, 0.22) 82%,
    transparent 92%
  );
  filter: blur(10px);
  opacity: 0;
}
/* traveling specular on mid rim */
body.theme-sian3-objects .s3-match-dial__lux-rim {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--mid) * 2 + 2px);
  height: calc(var(--mid) * 2 + 2px);
  margin: calc(var(--mid) * -1 - 1px) 0 0 calc(var(--mid) * -1 - 1px);
  border-radius: 50%;
  background: conic-gradient(
    from calc(var(--a) + 90deg),
    transparent 0deg,
    transparent 300deg,
    rgba(255, 255, 255, 0.04) 320deg,
    rgba(255, 230, 230, 0.42) 342deg,
    rgba(196, 21, 31, 0.28) 352deg,
    transparent 360deg
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  opacity: 0;
}
/* longer elegant light arc chasing the mid circumference */
body.theme-sian3-objects .s3-match-dial__lux-arc {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--mid) * 2 + 2px);
  height: calc(var(--mid) * 2 + 2px);
  margin: calc(var(--mid) * -1 - 1px) 0 0 calc(var(--mid) * -1 - 1px);
  border-radius: 50%;
  background: conic-gradient(
    from calc(var(--a) + 200deg),
    transparent 0deg,
    transparent 250deg,
    rgba(196, 21, 31, 0.08) 280deg,
    rgba(255, 255, 255, 0.28) 310deg,
    rgba(196, 21, 31, 0.16) 330deg,
    transparent 350deg,
    transparent 360deg
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 0.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 0.5px));
  filter: blur(0.6px);
  opacity: 0;
}

/* Student (seeker) */
body.theme-sian3-objects .s3-match-dial__student {
  --a: -90deg;
  --r: 44%;
  position: absolute;
  inset: 0;
  transform: rotate(var(--a));
  transform-origin: 50% 50%;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
}
body.theme-sian3-objects .s3-match-dial__student-vis {
  --s: 1;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 calc(var(--r) - 14px);
  transform: scale(var(--s));
  transform-origin: 50% 50%;
  will-change: transform;
}
body.theme-sian3-objects .s3-match-dial__student-core,
body.theme-sian3-objects .s3-match-dial__student-ring,
body.theme-sian3-objects .s3-match-dial__student-glow {
  position: absolute;
  left: 50%;
  top: 50%;
}
body.theme-sian3-objects .s3-match-dial__student-core {
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: #c4151f;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}
body.theme-sian3-objects .s3-match-dial__student-ring {
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  box-sizing: border-box;
}
body.theme-sian3-objects .s3-match-dial__student-glow {
  display: none !important;
}
body.theme-sian3-objects .s3-match-dial__student.is-bonded .s3-match-dial__student-core {
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.55);
}
body.theme-sian3-objects .s3-match-dial__student.is-bonded .s3-match-dial__student-ring {
  border-color: rgba(255, 255, 255, 0.9);
  opacity: 1;
}

/* Teacher options — hollow glyphs on the outer orbit */
body.theme-sian3-objects .s3-match-dial__items {
  position: absolute;
  inset: 0;
  z-index: 3;
}
body.theme-sian3-objects .s3-match-dial__item {
  --a: 0deg;
  position: absolute;
  inset: 0;
  transform: rotate(var(--a));
  transform-origin: 50% 50%;
  pointer-events: none;
}
body.theme-sian3-objects .s3-match-dial__node {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 calc(var(--orbit) - 5px);
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.72);
  box-sizing: border-box;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease,
    width 0.2s ease, height 0.2s ease, margin 0.2s ease;
}
body.theme-sian3-objects .s3-match-dial__node-halo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 calc(var(--orbit) - 10px);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0);
  box-sizing: border-box;
  opacity: 0;
  transition: border-color 0.25s ease, opacity 0.25s ease, width 0.2s ease,
    height 0.2s ease, margin 0.2s ease;
}
body.theme-sian3-objects .s3-match-dial__item.is-circle .s3-match-dial__node {
  border-radius: 50%;
}
body.theme-sian3-objects .s3-match-dial__item.is-square .s3-match-dial__node {
  border-radius: 2px;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 calc(var(--orbit) - 4.5px);
}
body.theme-sian3-objects .s3-match-dial__item.is-diamond .s3-match-dial__node {
  border-radius: 1px;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 calc(var(--orbit) - 4.5px);
  transform: rotate(45deg);
  transform-origin: 50% 50%;
}

body.theme-sian3-objects .s3-match-dial__item.is-hot .s3-match-dial__node {
  border-color: #fff;
  box-shadow: none;
}
body.theme-sian3-objects .s3-match-dial__item.is-hot .s3-match-dial__node-halo {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.35);
}
body.theme-sian3-objects .s3-match-dial__item.is-miss .s3-match-dial__node {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}
/* lock always stays a clean solid circle — no local bloom clutter */
body.theme-sian3-objects .s3-match-dial__item.is-lock .s3-match-dial__node {
  background: #c4151f;
  border: 0;
  border-color: #c4151f;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 calc(var(--orbit) - 7px);
  border-radius: 50% !important;
  transform: none;
  transform-origin: 50% 50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
  z-index: 2;
  transition: background 0.28s ease, border-color 0.28s ease, box-shadow 0.35s ease,
    width 0.28s ease, height 0.28s ease, margin 0.28s ease;
}
body.theme-sian3-objects .s3-match-dial__item.is-lock.is-square .s3-match-dial__node,
body.theme-sian3-objects .s3-match-dial__item.is-lock.is-diamond .s3-match-dial__node {
  width: 14px;
  height: 14px;
  margin: -7px 0 0 calc(var(--orbit) - 7px);
  border-radius: 50% !important;
  transform: none;
}
body.theme-sian3-objects .s3-match-dial__item.is-lock .s3-match-dial__node-halo {
  opacity: 0 !important;
  visibility: hidden;
}
body.theme-sian3-objects .s3-match-dial__student.is-bonded .s3-match-dial__student-core {
  background: #c4151f;
  box-shadow: 0 0 8px rgba(196, 21, 31, 0.4);
}
body.theme-sian3-objects .s3-match-dial__student.is-bonded .s3-match-dial__student-ring {
  border-color: rgba(255, 255, 255, 0.55);
  opacity: 0.85;
}
body.theme-sian3-objects .s3-match-dial__item.is-dim {
  opacity: 0.08 !important;
}

@media (max-width: 900px) {
  body.theme-sian3-objects .s3-match-dial,
  body.theme-sian3-objects .s3-match-dial__play {
    inset: 2%;
    --orbit: 43%;
    --mid: 35%;
    --inner: 28%;
    --hand-inner: 28%;
  }
}

body.theme-sian3 .s3-hero__stack {
  position: relative;
  z-index: 3;
}
body.theme-sian3 .s3-hero__micro,
body.theme-sian3 .s3-hero__scroll {
  z-index: 4;
}

/* Compact PC / iPad landscape — dial up; orbit shapes scale down */
@media (min-width: 901px) and (max-width: 1279px) {
  body.theme-sian3,
  body.theme-sian3-objects,
  body.theme-sian3-shapes {
    --s3-match-size: clamp(240px, min(30vw, 38vh), 340px);
    --s3-match-bleed: 0.3;
    --s3-match-right: max(
      calc(var(--s3-match-size) * var(--s3-match-bleed)),
      clamp(52px, 6vw, 100px)
    );
    --s3-match-canvas-scale: 0.9;
    --s3-shape-scale: 0.72;
  }
  body.theme-sian3 .s3-panel.s3-hero {
    overflow: visible !important;
  }
  body.theme-sian3 .s3-hero__symbol {
    right: var(--s3-match-right);
    top: 50%;
    opacity: 1;
    filter: none;
  }
  body.theme-sian3 .s3-hero__stack {
    max-width: min(560px, calc(100% - var(--s3-match-size) - var(--s3-match-right) - 28px));
    padding-right: 8px;
  }
  body.theme-sian3 .s3-hero__glow {
    width: min(36vw, 320px);
    height: min(36vw, 320px);
    opacity: 0.85;
  }
}

@media (min-width: 1181px) and (max-width: 1279px) {
  body.theme-sian3-objects,
  body.theme-sian3-shapes {
    --s3-match-size: clamp(270px, min(32vw, 40vh), 370px);
    --s3-match-canvas-scale: 0.92;
    --s3-shape-scale: 0.78;
  }
}

/* True PC band — keep restored ~410 pocket (do not shrink) */
@media (min-width: 1280px) and (max-width: 2199px) {
  body.theme-sian3-objects,
  body.theme-sian3-shapes {
    --s3-match-size: clamp(300px, min(36vw, 46vh), 410px);
    --s3-match-bleed: 0.28;
    --s3-match-right: max(
      calc(var(--s3-match-size) * var(--s3-match-bleed)),
      clamp(56px, 8vw, 148px)
    );
    --s3-match-canvas-scale: 0.94;
    --s3-shape-scale: 1;
  }
  body.theme-sian3-shapes {
    --s3-seek-scale: 0.88;
  }
}

@media (min-width: 2200px) {
  body.theme-sian3-shapes {
    --s3-seek-scale: 0.88;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  body.theme-sian3,
  body.theme-sian3-objects,
  body.theme-sian3-shapes {
    --s3-match-size: clamp(220px, min(34vw, 30vh), 300px);
    --s3-match-bleed: 0.32;
    --s3-match-right: max(
      calc(var(--s3-match-size) * var(--s3-match-bleed)),
      clamp(40px, 5.5vw, 72px)
    );
    --s3-match-canvas-scale: 0.88;
    --s3-shape-scale: 0.64;
  }
  body.theme-sian3 .s3-hero__symbol {
    top: 54% !important;
    bottom: auto !important;
    right: var(--s3-match-right) !important;
    transform: translateY(-50%) !important;
    opacity: 1;
  }
}

/* ═══════════════════════════════════════════════════════════
   Responsive polish — consistent down to small laptops, and
   content pulled inward on ultra-wide (2560 / 4K) displays.
   ═══════════════════════════════════════════════════════════ */

/* Small laptops keep the same look as desktop; we only make sure the
   full-height panels fit shorter viewports without clipping. */
@media (min-width: 901px) and (max-width: 1366px) {
  body.theme-sian3 .s3-panel.s3-process {
    padding-top: calc(var(--s3-header-h) + clamp(32px, 6vh, 64px));
    padding-bottom: clamp(56px, 9vh, 100px);
  }
  body.theme-sian3 .s3-step { min-height: 224px; }
}
@media (min-width: 901px) and (max-height: 820px) {
  body.theme-sian3 .s3-panel {
    padding-top: calc(var(--s3-header-h) + 14px);
    padding-bottom: clamp(28px, 4vh, 56px);
  }
  body.theme-sian3 .s3-panel.s3-hero,
  body.theme-sian3 .s3-panel.s3-process { padding-bottom: clamp(40px, 5vh, 64px); }
  body.theme-sian3 .s3-step { min-height: 196px; }
  body.theme-sian3 .s3-roles__header { margin-bottom: clamp(24px, 4vh, 48px); }
}

/* Ultra-wide (≈2560): pull the main content inward from the screen edges.
   Left-anchored content shifts right via --s3-pad-x so logo / copy / geo stay locked. */
@media (min-width: 2200px) {
  body.theme-sian3 { --s3-pad-x: clamp(96px, 9vw, 260px); }
  body.theme-sian3 .s3-hero__symbol { right: clamp(104px, 10vw, 300px); }
  body.theme-sian3 .s3-watermark { padding-right: clamp(104px, 10vw, 300px); }
}

/* 4K and beyond (≈3840): push further inward and scale primary content up a
   touch so it doesn't look lost on the canvas. */
@media (min-width: 3200px) {
  body.theme-sian3 { --s3-pad-x: clamp(260px, 12vw, 520px); }
  body.theme-sian3 .s3-hero__symbol {
    right: clamp(300px, 13vw, 560px);
  }
  body.theme-sian3 .s3-roles__inner { max-width: 1520px; }
  body.theme-sian3 .s3-process__top,
  body.theme-sian3 .s3-process__grid { width: min(1440px, 100%); }
  body.theme-sian3 .s3-watermark { padding-right: clamp(300px, 13vw, 560px); }
}

/* iOS Safari scroll-snap / 100vh address-bar jitter mitigation */
@supports (-webkit-touch-callout: none) {
  body.theme-sian3 .s3-landing.s3-snap,
  body.theme-sian3 .s3-panel {
    min-height: -webkit-fill-available;
  }
}

/* ═══════════════════════════════════════════════════════════
   FINAL: match dial — PC restored; compact/tablet/mobile refined
   ═══════════════════════════════════════════════════════════ */
body.theme-sian3 {
  --s3-match-size: clamp(300px, min(36vw, 46vh), 410px);
  --s3-match-bleed: 0.28;
  --s3-match-right: max(
    calc(var(--s3-match-size) * var(--s3-match-bleed)),
    clamp(48px, 7vw, 140px)
  );
  --s3-match-canvas-scale: 0.94;
  --s3-shape-scale: 1;
  --s3-seek-scale: 1;
}

/* Never clip the dial circle / ticks */
body.theme-sian3-objects .s3-panel.s3-hero,
body.theme-sian3-shapes .s3-panel.s3-hero,
body.theme-sian3-objects .s3-hero,
body.theme-sian3-shapes .s3-hero {
  overflow: visible !important;
}

body.theme-sian3 .s3-hero__symbol.s3-hero__match,
body.theme-sian3 .s3-hero__match {
  position: absolute !important;
  right: var(--s3-match-right) !important;
  top: 50% !important;
  left: auto !important;
  bottom: auto !important;
  width: var(--s3-match-size) !important;
  height: var(--s3-match-size) !important;
  max-width: none !important;
  max-height: none !important;
  aspect-ratio: 1 / 1 !important;
  transform: translateY(-50%) !important;
  background: transparent !important;
  overflow: visible !important;
  filter: none !important;
  z-index: 1 !important;
}

/* PC lock — original composition; floating seeker slightly smaller */
@media (min-width: 1280px) and (max-width: 2199px) {
  body.theme-sian3-objects,
  body.theme-sian3-shapes {
    --s3-match-size: clamp(300px, min(36vw, 46vh), 410px);
    --s3-match-bleed: 0.28;
    --s3-match-right: max(
      calc(var(--s3-match-size) * var(--s3-match-bleed)),
      clamp(56px, 8vw, 148px)
    );
    --s3-match-canvas-scale: 0.94;
    --s3-shape-scale: 1;
  }
  body.theme-sian3-shapes {
    --s3-seek-scale: 0.88;
  }
}

/* Small PC / large tablet landscape */
@media (min-width: 901px) and (max-width: 1024px) {
  body.theme-sian3-objects,
  body.theme-sian3-shapes {
    --s3-match-size: clamp(230px, min(29vw, 36vh), 300px);
    --s3-match-bleed: 0.32;
    --s3-match-right: max(
      calc(var(--s3-match-size) * var(--s3-match-bleed)),
      clamp(52px, 6.5vw, 96px)
    );
    --s3-match-canvas-scale: 0.88;
    --s3-shape-scale: 0.68;
  }
}

@media (min-width: 1025px) and (max-width: 1279px) {
  body.theme-sian3-objects,
  body.theme-sian3-shapes {
    --s3-match-size: clamp(260px, min(31vw, 38vh), 350px);
    --s3-match-canvas-scale: 0.9;
    --s3-shape-scale: 0.74;
  }
}

/* Tablet */
@media (min-width: 641px) and (max-width: 900px) {
  body.theme-sian3-objects,
  body.theme-sian3-shapes {
    --s3-match-size: clamp(210px, min(33vw, 28vh), 290px);
    --s3-match-bleed: 0.34;
    --s3-match-right: max(
      calc(var(--s3-match-size) * var(--s3-match-bleed)),
      clamp(40px, 5.5vw, 72px)
    );
    --s3-match-canvas-scale: 0.86;
    --s3-shape-scale: 0.62;
  }
  body.theme-sian3-shapes {
    --s3-seek-scale: 0.86;
  }
  body.theme-sian3 .s3-hero__symbol.s3-hero__match {
    top: 54% !important;
    right: var(--s3-match-right) !important;
  }
}

@media (min-width: 700px) and (max-width: 820px) {
  body.theme-sian3-objects,
  body.theme-sian3-shapes {
    --s3-match-size: clamp(200px, min(32vw, 26vh), 270px);
    --s3-match-canvas-scale: 0.86;
    --s3-shape-scale: 0.6;
  }
  body.theme-sian3-shapes {
    --s3-seek-scale: 0.84;
  }
}

/* Mobile — lower-right dial with bottom clearance */
@media (max-width: 640px) {
  body.theme-sian3-objects,
  body.theme-sian3-shapes {
    --s3-match-size: clamp(158px, min(44vw, 26vh), 196px);
    --s3-match-bleed: 0.24;
    --s3-match-right: max(
      calc(var(--s3-match-size) * var(--s3-match-bleed)),
      clamp(14px, 4vw, 28px)
    );
    --s3-match-canvas-scale: 0.84;
    --s3-shape-scale: 0.58;
  }
  body.theme-sian3-shapes {
    --s3-seek-scale: 0.82;
  }
  body.theme-sian3 .s3-hero__symbol.s3-hero__match {
    top: auto !important;
    bottom: clamp(92px, 13vh, 132px) !important;
    right: var(--s3-match-right) !important;
    transform: none !important;
    opacity: 0.92 !important;
  }
}

/* Short desktop height only — tuck slightly, keep PC scale */
@media (min-width: 1280px) and (max-height: 760px) {
  body.theme-sian3-objects,
  body.theme-sian3-shapes {
    --s3-match-size: clamp(260px, min(30vw, 40vh), 360px);
    --s3-match-canvas-scale: 0.9;
  }
}

body.theme-sian3 .s3-hero__match-stage,
body.theme-sian3 .s3-hero__match-canvas {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

body.theme-sian3 .s3-hero__match-stage {
  inset: -22% !important;
  width: 144% !important;
  height: 144% !important;
  left: -22% !important;
  top: -22% !important;
}
@media (max-width: 1180px) {
  body.theme-sian3 .s3-hero__match-stage {
    inset: -18% !important;
    width: 136% !important;
    height: 136% !important;
    left: -18% !important;
    top: -18% !important;
  }
}

body.theme-sian3-objects .s3-hero__match-canvas,
body.theme-sian3-shapes .s3-hero__match-canvas {
  transform: scale(var(--s3-match-canvas-scale, 0.94));
  transform-origin: 50% 50%;
}

body.theme-sian3 .s3-hero__stack {
  z-index: 3 !important;
}
body.theme-sian3 .s3-hero__micro,
body.theme-sian3 .s3-hero__scroll {
  z-index: 4 !important;
}

/* ═══════════════════════════════════════════════════════════
   FINAL: one left rail — logo ink · copy ink · scroll · geo
   ═══════════════════════════════════════════════════════════ */
body.theme-sian3 {
  /* Moderniz display caps — mild optical pull onto left rail */
  --s3-type-optical: 0.08em;
  /* logo_white.png left transparent pad ≈ 2/50 of intrinsic height */
  --s3-logo-optical: -1.3px;
}

body.theme-sian3 .s3-header {
  padding-left: var(--s3-pad-x);
  padding-right: var(--s3-pad-x);
}
body.theme-sian3 .s3-header__logo {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}
body.theme-sian3 .s3-header__logo img {
  display: block;
  margin: 0 0 0 var(--s3-logo-optical);
}

body.theme-sian3 .s3-panel {
  padding-left: var(--s3-pad-x);
  padding-right: var(--s3-pad-x);
}

/* Micro lives inside stack — same content box as headline / lead / CTAs */
body.theme-sian3 .s3-hero__micro {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  margin: 0 0 18px !important;
  padding: 0 !important;
  /* tracked caps: Moderniz optical align with logo rail */
  margin-left: calc(var(--s3-type-optical) * -0.35) !important;
}

body.theme-sian3 .s3-hero__stack {
  margin-left: 0 !important;
  padding-left: 0 !important;
  align-self: flex-start;
}

body.theme-sian3 .s3-hero__headline {
  flex-direction: column !important;
  align-items: flex-start !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Pull each display line’s glyph ink to the shared rail */
body.theme-sian3 .s3-flip,
body.theme-sian3 .s3-flip--suffix {
  margin-left: calc(var(--s3-type-optical) * -1) !important;
}

body.theme-sian3 .s3-hero__lead {
  margin-left: -0.05em;
  padding-left: 0;
}
body.theme-sian3 .s3-hero__actions {
  margin-left: 0;
  padding-left: 0;
}

/* Scroll + geo share the same pad as the content box (panel padding) */
body.theme-sian3 .s3-hero__scroll {
  left: var(--s3-pad-x) !important;
  padding: 0 !important;
  margin: 0 !important;
}
body.theme-sian3 .s3-geo__ring--b {
  left: var(--s3-pad-x) !important;
}


/* ═══════════════════════════════════════════════════════
 * theme-sian3-shapes — 3D prism seeker + line silhouette candidates
 * ═══════════════════════════════════════════════════════ */
body.theme-sian3-shapes .s3-match-dial__student.is-shape3d .s3-match-dial__student-vis {
  --s: 1;
  --seek: calc(92px * var(--s3-shape-scale, 1) * var(--s3-seek-scale, 1));
  width: var(--seek);
  height: var(--seek);
  margin: calc(var(--seek) * -0.5) 0 0 calc(var(--r) - var(--seek) * 0.5);
  overflow: visible;
  /* undo orbit rotate so the 3D solid stays screen-axis aligned */
  transform: rotate(calc(var(--a) * -1)) scale(var(--s));
  transform-origin: 50% 50%;
}
body.theme-sian3-shapes .s3-match-dial__seek-canvas {
  display: block;
  width: calc(92px * var(--s3-shape-scale, 1) * var(--s3-seek-scale, 1));
  height: calc(92px * var(--s3-shape-scale, 1) * var(--s3-seek-scale, 1));
  background: transparent !important;
  overflow: visible;
  filter: drop-shadow(0 1px 5px rgba(0, 0, 0, 0.2));
  transition: filter 0.35s ease;
}
body.theme-sian3-shapes .s3-match-dial__student.is-shape3d.is-bonded .s3-match-dial__seek-canvas {
  filter:
    drop-shadow(0 0 10px rgba(232, 90, 95, 0.28))
    drop-shadow(0 0 22px rgba(196, 21, 31, 0.14));
}
body.theme-sian3-shapes .s3-match-dial__student.is-shape3d {
  overflow: visible;
}
body.theme-sian3-shapes .s3-match-dial__student-core,
body.theme-sian3-shapes .s3-match-dial__student-ring,
body.theme-sian3-shapes .s3-match-dial__student-glow {
  display: none !important;
}

/* candidates: clean line shapes — beat objects 9px/45° rules; scale via --s3-shape-scale */
body.theme-sian3-shapes .s3-match-dial__node {
  --node: calc(21px * var(--s3-shape-scale, 1));
  width: var(--node) !important;
  height: var(--node) !important;
  margin: calc(var(--node) * -0.5) 0 0 calc(var(--orbit) - var(--node) * 0.5) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  /* node stays screen-upright; SVG counter-rotates orbit tilt */
  transform: none !important;
  transform-origin: 50% 50%;
  color: rgba(255, 255, 255, 0.72);
  display: grid;
  place-items: center;
  transition: color 0.25s ease, opacity 0.25s ease;
}
body.theme-sian3-shapes .s3-match-dial__node svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  /* square stays square, diamond tip-up, hex tip-up (= 3D seeker) */
  transform: rotate(calc(0deg - var(--a)));
  transform-origin: 50% 50%;
}
body.theme-sian3-shapes .s3-match-dial__item.is-circle .s3-match-dial__node {
  --node: calc(19px * var(--s3-shape-scale, 1));
}
body.theme-sian3-shapes .s3-match-dial__item.is-square .s3-match-dial__node {
  --node: calc(17px * var(--s3-shape-scale, 1));
}
body.theme-sian3-shapes .s3-match-dial__item.is-triangle .s3-match-dial__node {
  --node: calc(21px * var(--s3-shape-scale, 1));
}
body.theme-sian3-shapes .s3-match-dial__item.is-diamond .s3-match-dial__node {
  --node: calc(19px * var(--s3-shape-scale, 1));
}
body.theme-sian3-shapes .s3-match-dial__item.is-hexagon .s3-match-dial__node {
  --node: calc(20px * var(--s3-shape-scale, 1));
}
body.theme-sian3-shapes .s3-match-dial__item.is-hexagon .s3-match-dial__node svg {
  /* intentional flat-top hex on orbit silhouettes */
  transform: rotate(calc(0deg - var(--a) + 90deg));
  transform-origin: 50% 50%;
}
body.theme-sian3-shapes .s3-match-dial__item.is-plus .s3-match-dial__node {
  --node: calc(21px * var(--s3-shape-scale, 1));
}
body.theme-sian3-shapes .s3-match-dial__node-halo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 calc(var(--orbit) - 15px);
  border-radius: 50%;
  border: 1px solid transparent;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.35s ease,
    transform 0.35s ease;
  transform: scale(0.86);
}

/* pass-by (non-match): soft cool white lift, late cue only */
body.theme-sian3-shapes .s3-match-dial__item.is-pass .s3-match-dial__node,
body.theme-sian3-shapes .s3-match-dial__item.is-hot .s3-match-dial__node {
  color: rgba(255, 255, 255, 0.92);
}
body.theme-sian3-shapes .s3-match-dial__item.is-pass .s3-match-dial__node-halo,
body.theme-sian3-shapes .s3-match-dial__item.is-hot .s3-match-dial__node-halo {
  opacity: 0.7;
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.12);
  transform: scale(1);
}

/* match approach: brand-red bloom — clearly different from pass-by */
body.theme-sian3-shapes .s3-match-dial__item.is-match-ready .s3-match-dial__node {
  color: #e85a5f;
  filter: drop-shadow(0 0 6px rgba(196, 21, 31, 0.35));
}
body.theme-sian3-shapes .s3-match-dial__item.is-match-ready .s3-match-dial__node-halo {
  opacity: 1;
  border-color: rgba(196, 21, 31, 0.55);
  box-shadow:
    0 0 0 1px rgba(196, 21, 31, 0.2),
    0 0 14px rgba(196, 21, 31, 0.38),
    0 0 28px rgba(232, 90, 95, 0.18);
  transform: scale(1.12);
  animation: s3-shapes-match-ready 0.9s ease-in-out infinite alternate;
}
@keyframes s3-shapes-match-ready {
  from {
    opacity: 0.75;
    transform: scale(1.06);
  }
  to {
    opacity: 1;
    transform: scale(1.16);
  }
}

body.theme-sian3-shapes .s3-match-dial__item.is-miss .s3-match-dial__node {
  color: rgba(255, 255, 255, 0.48);
  opacity: 0.86;
  filter: none;
}
body.theme-sian3-shapes .s3-match-dial__item.is-miss .s3-match-dial__node-halo {
  opacity: 0;
  transform: scale(0.86);
}
body.theme-sian3-shapes .s3-match-dial__item.is-lock .s3-match-dial__node {
  --node: calc(21px * var(--s3-shape-scale, 1));
  width: var(--node) !important;
  height: var(--node) !important;
  margin: calc(var(--node) * -0.5) 0 0 calc(var(--orbit) - var(--node) * 0.5) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #c4151f;
  /* keep node unrotated; svg still counter-rotates via --a */
  transform: none !important;
  filter: drop-shadow(0 0 8px rgba(196, 21, 31, 0.45));
}
body.theme-sian3-shapes .s3-match-dial__item.is-lock.is-square .s3-match-dial__node,
body.theme-sian3-shapes .s3-match-dial__item.is-lock.is-diamond .s3-match-dial__node {
  border-radius: 0 !important;
  transform: none !important;
}
body.theme-sian3-shapes .s3-match-dial__item.is-lock.is-plus .s3-match-dial__node {
  --node: calc(21px * var(--s3-shape-scale, 1));
}
body.theme-sian3-shapes .s3-match-dial__item.is-lock .s3-match-dial__node-halo {
  opacity: 0 !important;
  visibility: hidden;
  animation: none;
}
body.theme-sian3-shapes .s3-match-dial.is-matched .s3-match-dial__student.is-shape3d {
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.32));
}

/* ── compass density (static SVG) — slot ticks strong, others quiet ── */
body.theme-sian3-shapes .s3-match-dial {
  z-index: 2;
}
body.theme-sian3-shapes .s3-match-dial__play {
  z-index: 9;
  background: transparent !important;
}
body.theme-sian3-shapes .s3-match-dial__ticks {
  opacity: 0.42;
  filter: grayscale(1) brightness(1.4) contrast(1.08);
}
body.theme-sian3-shapes .s3-match-dial__orbit-line {
  border-color: rgba(255, 255, 255, 0.2);
}
body.theme-sian3-shapes .s3-match-dial__mid-line {
  border-color: rgba(255, 255, 255, 0.14);
}
body.theme-sian3-shapes .s3-match-dial__compass {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
body.theme-sian3-shapes .s3-match-dial__compass-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
}
body.theme-sian3-shapes .s3-match-dial__compass-ring--outer {
  width: 98%;
  height: 98%;
  margin: -49% 0 0 -49%;
  border-color: rgba(255, 255, 255, 0.16);
}
body.theme-sian3-shapes .s3-match-dial__compass-ring--hair {
  width: 94.5%;
  height: 94.5%;
  margin: -47.25% 0 0 -47.25%;
  border-color: rgba(255, 255, 255, 0.07);
}
body.theme-sian3-shapes .s3-match-dial__compass-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  pointer-events: none;
}
body.theme-sian3-shapes .s3-match-dial__compass-svg line[data-slot] {
  transition: opacity 0.35s ease, stroke 0.35s ease;
}

/* keep plaque + seeker visible above dial chrome */
body.theme-sian3-shapes .s3-hero__match-canvas {
  z-index: 6 !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  pointer-events: none !important;
  transform: scale(var(--s3-match-canvas-scale, 0.94));
  transform-origin: 50% 50%;
}
body.theme-sian3-shapes .s3-match-dial__seek-canvas {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  position: relative;
  z-index: 2;
}
body.theme-sian3-shapes .s3-match-dial__student.is-shape3d {
  z-index: 10;
}

/* status readout — bottom-anchored under plaque; higher % = higher on dial */
body.theme-sian3-shapes {
  --s3-readout-bottom: 19.5%;
  --s3-readout-size: clamp(9.5px, 0.45vw + 8px, 10.5px);
  --s3-readout-match: clamp(12px, 0.55vw + 9.5px, 13px);
  --s3-readout-track: 0.14em;
  --s3-readout-match-track: 0.16em;
}
body.theme-sian3-shapes .s3-match-dial__readout {
  position: absolute;
  left: 50%;
  top: auto;
  bottom: var(--s3-readout-bottom);
  transform: translateX(-50%);
  z-index: 8;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.55s ease, bottom 0.35s ease;
  white-space: nowrap;
  line-height: 1;
}
body.theme-sian3-shapes .s3-match-dial__readout.is-off {
  opacity: 0;
}
body.theme-sian3-shapes .s3-match-dial__readout-text {
  display: inline-block;
  font-family: var(--s3-font-display, "Moderniz", sans-serif);
  font-weight: 600;
  font-size: var(--s3-readout-size);
  line-height: 1;
  font-kerning: normal;
  font-feature-settings: "kern" 1;
  letter-spacing: var(--s3-readout-track);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  white-space: nowrap;
  text-align: center;
  opacity: 1;
  transform: none;
}
body.theme-sian3-shapes .s3-match-dial__readout-label,
body.theme-sian3-shapes .s3-match-dial__readout-dots {
  display: inline;
}
body.theme-sian3-shapes .s3-match-dial__readout-ch {
  display: inline;
  opacity: 0.26;
  animation: s3-readout-ch 2.8s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.09s);
}
body.theme-sian3-shapes .s3-match-dial__readout-dots {
  margin-left: 0.06em;
}
body.theme-sian3-shapes .s3-match-dial__readout-dot {
  display: inline;
  opacity: 0.12;
  animation: s3-readout-dot 1.35s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  animation-delay: calc(var(--d, 0) * 0.3s);
}
body.theme-sian3-shapes .s3-match-dial__readout.is-outro .s3-match-dial__readout-ch,
body.theme-sian3-shapes .s3-match-dial__readout.is-outro .s3-match-dial__readout-dot {
  animation-play-state: paused;
}
body.theme-sian3-shapes .s3-match-dial__readout.is-match .s3-match-dial__readout-text {
  color: #d4222c;
  font-weight: 800;
  font-size: var(--s3-readout-match);
  letter-spacing: var(--s3-readout-match-track);
  text-shadow: 0 0 12px rgba(196, 21, 31, 0.4);
  transition:
    color 0.45s ease,
    font-size 0.45s ease,
    letter-spacing 0.45s ease,
    text-shadow 0.45s ease;
}
/* MATCH is taller — nudge seat a hair so it shares the same optical baseline */
body.theme-sian3-shapes .s3-match-dial__readout.is-match {
  bottom: calc(var(--s3-readout-bottom) - 0.35%);
}
@keyframes s3-readout-ch {
  0%,
  100% {
    opacity: 0.2;
  }
  35% {
    opacity: 0.58;
  }
  55% {
    opacity: 0.3;
  }
}
@keyframes s3-readout-dot {
  0%,
  100% {
    opacity: 0.1;
  }
  40% {
    opacity: 0.78;
  }
  70% {
    opacity: 0.22;
  }
}

/* Dense readout seats — under plaque, clear of ticks; scale with dial band */
@media (min-width: 1601px) and (max-width: 2199px) {
  body.theme-sian3-shapes {
    --s3-readout-bottom: 19.2%;
  }
}
@media (min-width: 1280px) and (max-width: 1600px) {
  body.theme-sian3-shapes {
    --s3-readout-bottom: 19%;
    --s3-readout-size: 10px;
    --s3-readout-match: 12.5px;
  }
}
@media (min-width: 1025px) and (max-width: 1279px) {
  body.theme-sian3-shapes {
    --s3-readout-bottom: 18.2%;
    --s3-readout-size: 9.5px;
    --s3-readout-match: 12px;
    --s3-readout-track: 0.12em;
    --s3-readout-match-track: 0.14em;
  }
}
@media (min-width: 901px) and (max-width: 1024px) {
  body.theme-sian3-shapes {
    --s3-readout-bottom: 19%;
    --s3-readout-size: 9px;
    --s3-readout-match: 11.5px;
    --s3-readout-track: 0.11em;
    --s3-readout-match-track: 0.13em;
  }
}
@media (min-width: 641px) and (max-width: 900px) {
  body.theme-sian3-shapes {
    --s3-readout-bottom: 18.6%;
    --s3-readout-size: 8.5px;
    --s3-readout-match: 11px;
    --s3-readout-track: 0.1em;
    --s3-readout-match-track: 0.12em;
  }
}
@media (min-width: 700px) and (max-width: 820px) {
  body.theme-sian3-shapes {
    --s3-readout-bottom: 18.2%;
  }
}
@media (max-width: 640px) {
  body.theme-sian3-shapes {
    --s3-readout-bottom: 17.5%;
    --s3-readout-size: 8px;
    --s3-readout-match: 10px;
    --s3-readout-track: 0.1em;
    --s3-readout-match-track: 0.12em;
  }
}
@media (min-width: 2200px) and (min-height: 1100px) {
  body.theme-sian3-shapes {
    --s3-readout-bottom: 20%;
    --s3-readout-size: 12px;
    --s3-readout-match: 15px;
  }
}
@media (min-width: 3000px) and (min-height: 1400px) {
  body.theme-sian3-shapes {
    --s3-readout-bottom: 20.5%;
    --s3-readout-size: 14px;
    --s3-readout-match: 17px;
  }
}
