.aligner-3d-section {
  position: relative;
  overflow: hidden;
  padding: 96px clamp(24px, 6vw, 86px);
  background:
    linear-gradient(112deg, rgba(255,255,255,.56), transparent 56%),
    #fbf8f1;
  color: #4e2c17;
}

.aligner-3d-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .72fr);
  align-items: center;
  gap: clamp(54px, 9vw, 132px);
  width: min(100%, 1260px);
  margin: 0 auto;
}

.aligner-3d-stage {
  position: relative;
  min-width: 0;
  aspect-ratio: 1.2 / 1;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255,253,249,.4), rgba(241,226,198,.28)),
    #f0e1c5;
  box-shadow: inset 0 0 0 1px rgba(91,53,28,.07);
  isolation: isolate;
}

.aligner-3d-stage::before,
.aligner-3d-stage::after {
  position: absolute;
  z-index: -1;
  content: "";
  width: 76%;
  height: 1px;
  left: 12%;
  top: 55%;
  background: linear-gradient(90deg, transparent, rgba(166,101,11,.2), transparent);
}

.aligner-3d-stage::after {
  width: 1px;
  height: 68%;
  left: 50%;
  top: 16%;
  background: linear-gradient(180deg, transparent, rgba(166,101,11,.15), transparent);
}

.aligner-3d-stage-label,
.aligner-3d-status {
  position: absolute;
  z-index: 3;
  top: 20px;
  left: 22px;
  color: #755738;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.aligner-3d-stage-label { display: flex; align-items: center; gap: 9px; }
.aligner-3d-stage-label span { width: 17px; height: 1px; background: #a6650b; }
.aligner-3d-status { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.aligner-3d-stage.is-loaded .aligner-3d-status { display: none; }

.aligner-3d-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.aligner-3d-canvas canvas {
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
  touch-action: pan-y;
}

.aligner-3d-canvas canvas:focus-visible { outline: 2px solid #1598d0; outline-offset: -4px; }

.aligner-3d-controls {
  position: absolute;
  z-index: 4;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}

.aligner-view-tabs,
.aligner-view-tools {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 4px;
  border: 1px solid rgba(91,53,28,.12);
  background: rgba(255,253,249,.9);
  box-shadow: 0 5px 18px rgba(76,48,22,.08);
  backdrop-filter: blur(10px);
  pointer-events: auto;
}

.aligner-view-tabs button,
.aligner-view-tools button {
  display: inline-grid;
  height: 32px;
  min-width: 38px;
  place-items: center;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: #72583d;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  transition: background .2s ease, color .2s ease;
}

.aligner-view-tabs button.is-active { background: #5b351c; color: #fffaf0; }
.aligner-view-tools button { min-width: 36px; font-size: 19px; line-height: 1; }
.aligner-view-tabs button:hover:not(.is-active),
.aligner-view-tools button:hover { background: #f1e5ce; color: #4e2c17; }
.aligner-view-tabs button:focus-visible,
.aligner-view-tools button:focus-visible,
.aligner-3d-link:focus-visible { outline: 2px solid #1598d0; outline-offset: 2px; }

.aligner-3d-copy { max-width: 420px; }

.aligner-3d-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: #88653c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.aligner-3d-kicker span { width: 23px; height: 1px; background: #a6650b; }

.aligner-3d-copy h2 {
  margin: 0;
  color: #4e2c17;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 4.3vw, 62px);
  font-weight: 400;
  line-height: .99;
  letter-spacing: 0;
}

.aligner-3d-copy h2 em { color: #a6650b; font-weight: 400; }

.aligner-3d-copy > p:not(.aligner-3d-kicker) {
  margin: 24px 0 28px;
  color: #685542;
  font-size: 15px;
  line-height: 1.8;
}

.aligner-3d-link {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(166,101,11,.45);
  color: #4e2c17;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: gap .2s ease, color .2s ease;
}

.aligner-3d-link span { color: #a6650b; font-size: 18px; }
.aligner-3d-link:hover { gap: 21px; color: #a6650b; }

@media (max-width: 900px) {
  .aligner-3d-section { padding: 76px 28px; }
  .aligner-3d-inner { grid-template-columns: minmax(0, 1fr) minmax(250px, .8fr); gap: 34px; }
  .aligner-3d-copy h2 { font-size: clamp(45px, 6vw, 58px); }
  .aligner-3d-stage { aspect-ratio: 1 / 1.04; }
}

@media (max-width: 600px) {
  .aligner-3d-section { padding: 58px 18px 68px; }
  .aligner-3d-inner { grid-template-columns: 1fr; gap: 32px; }
  .aligner-3d-stage { aspect-ratio: 1 / .94; }
  .aligner-3d-stage-label { top: 16px; left: 16px; }
  .aligner-3d-controls { right: 10px; bottom: 10px; left: 10px; gap: 6px; }
  .aligner-view-tabs,
  .aligner-view-tools { min-height: 38px; padding: 3px; }
  .aligner-view-tabs button { height: 30px; min-width: 0; padding-inline: 9px; font-size: 11px; }
  .aligner-view-tools button { height: 30px; min-width: 31px; padding-inline: 6px; font-size: 17px; }
  .aligner-3d-copy h2 { font-size: 52px; }
  .aligner-3d-copy > p:not(.aligner-3d-kicker) { margin: 18px 0 22px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .aligner-view-tabs button,
  .aligner-view-tools button,
  .aligner-3d-link { transition: none; }
}