.thome-root {
  margin: 0;
  padding: clamp(1.5rem, 3.2vw, 2.5rem) clamp(1rem, 3vw, 2rem);
  background: linear-gradient(145deg, #0b1e24 0%, #142b33 52%, #1d2226 100%);
  color: #ffffff;
  border-top: 2px solid #1aa3be;
  border-bottom: 2px solid #1aa3be;
  font-family: var(--tcr-font-sans, 'Inter', system-ui, sans-serif);
  box-sizing: border-box;
  overflow: hidden;
  --thome-led-b1: 1;
  --thome-led-b2: 0.84;
  --thome-led-b3: 0.84;
  --thome-sway-a: 0deg;
  --thome-sway-b: 0deg;
  --thome-sheen-1: 0px;
  --thome-sheen-2: 0px;
  --thome-sheen-3: 0px;
  --thome-g1: 0.72;
  --thome-g2: 0.65;
  --thome-g3: 0.7;
}

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

.thome-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.thome-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.thome-head-copy {
  min-width: 0;
}

.thome-eyebrow {
  margin: 0 0 0.28rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9dd8e4;
}

.thome-root .thome-title {
  margin: 0 0 0.32rem;
  font-family: var(--tcr-font-display, 'Quicksand', system-ui, sans-serif);
  font-size: clamp(1.42rem, 2.7vw, 2.15rem);
  font-weight: 700;
  line-height: 1.18;
  color: #ffffff;
}

.thome-sub {
  margin: 0;
  font-size: clamp(0.88rem, 1.4vw, 0.98rem);
  font-weight: 300;
  line-height: 1.5;
  color: #d6e4e8;
  max-width: 62ch;
}

.thome-slot {
  flex: 0 0 auto;
  padding-top: 0.15rem;
}

.thome-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.95rem;
}

.thome-pill {
  min-height: 44px;
  padding: 0.52rem 1.05rem;
  border-radius: 999px;
  border: 1.5px solid rgba(157, 216, 228, 0.38);
  background: rgba(255, 255, 255, 0.07);
  color: #f0f6f8;
  font: 600 0.88rem/1.1 var(--tcr-font-sans, 'Inter', system-ui, sans-serif);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.thome-pill:hover {
  border-color: #9dd8e4;
  background: rgba(26, 163, 190, 0.2);
}

.thome-pill:active {
  transform: scale(0.98);
}

.thome-pill:focus-visible,
.thome-spec-btn:focus-visible {
  outline: 3px solid #ffdfa0;
  outline-offset: 2px;
}

.thome-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7cc9d8;
  flex: 0 0 auto;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.thome-pill.thome-is-active {
  background: #0a6575;
  border-color: #ffdfa0;
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(255, 223, 160, 0.3), 0 8px 20px -10px rgba(255, 223, 160, 0.6);
}

.thome-pill.thome-is-active .thome-pill-dot {
  background: #ffdfa0;
  box-shadow: 0 0 8px #ffdfa0;
}

.thome-stage {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(26, 163, 190, 0.38);
  background: #0b1d23;
  box-shadow: 0 20px 44px -22px rgba(0, 0, 0, 0.68);
}

.thome-svg {
  display: block;
  width: 100%;
  height: auto;
}

.thome-bay {
  cursor: pointer;
  transition: opacity 0.38s ease;
}

.thome-wood {
  opacity: 1;
  transition: opacity 0.65s ease;
}

.thome-bp {
  opacity: 0.34;
  transition: opacity 0.55s ease;
}

.thome-bp-line {
  stroke-dasharray: 1400;
  stroke-dashoffset: 0;
}

.thome-focus-halo,
.thome-focus-ring {
  opacity: 0;
  transition: opacity 0.35s ease;
}

.thome-stage[data-thome-active="closet"] .thome-bay:not(.thome-bay-closet),
.thome-stage[data-thome-active="pantry"] .thome-bay:not(.thome-bay-pantry),
.thome-stage[data-thome-active="garage"] .thome-bay:not(.thome-bay-garage) {
  opacity: 0.84;
}

.thome-stage[data-thome-active="closet"] .thome-bay-closet .thome-focus-halo,
.thome-stage[data-thome-active="closet"] .thome-bay-closet .thome-focus-ring,
.thome-stage[data-thome-active="pantry"] .thome-bay-pantry .thome-focus-halo,
.thome-stage[data-thome-active="pantry"] .thome-bay-pantry .thome-focus-ring,
.thome-stage[data-thome-active="garage"] .thome-bay-garage .thome-focus-halo,
.thome-stage[data-thome-active="garage"] .thome-bay-garage .thome-focus-ring {
  opacity: 1;
}

.thome-bay-closet .thome-led {
  opacity: var(--thome-led-b1);
}

.thome-bay-pantry .thome-led {
  opacity: var(--thome-led-b2);
}

.thome-bay-garage .thome-led {
  opacity: var(--thome-led-b3);
}

.thome-g1 {
  transform-box: fill-box;
  transform-origin: 50% 0%;
  transform: rotate(var(--thome-sway-a));
}

.thome-g2 {
  transform-box: fill-box;
  transform-origin: 50% 0%;
  transform: rotate(var(--thome-sway-b));
}

.thome-sheen {
  opacity: 0.65;
  pointer-events: none;
}

.thome-sheen-1 {
  transform: translateX(var(--thome-sheen-1)) skewX(-18deg);
}

.thome-sheen-2 {
  transform: translateX(var(--thome-sheen-2)) skewX(-18deg);
}

.thome-sheen-3 {
  transform: translateX(var(--thome-sheen-3)) skewX(-18deg);
}

.thome-glint {
  transform-box: fill-box;
  transform-origin: center;
}

.thome-glint-1 { opacity: var(--thome-g1); }
.thome-glint-2 { opacity: var(--thome-g2); }
.thome-glint-3 { opacity: var(--thome-g3); }

/* Pre-arrival blueprint-ready state only when JS + motion preference active */
@media (prefers-reduced-motion: no-preference) {
  html.tcrfx-js .thome-root:not(.thome-ready):not(.thome-arrive) .thome-wood {
    opacity: 0.16;
  }
  html.tcrfx-js .thome-root:not(.thome-ready):not(.thome-arrive) .thome-led {
    opacity: 0.08;
  }
  html.tcrfx-js .thome-root:not(.thome-ready):not(.thome-arrive) .thome-bp {
    opacity: 0.95;
  }
  html.tcrfx-js .thome-root:not(.thome-ready):not(.thome-arrive) .thome-bp-line {
    stroke-dashoffset: 1400;
  }
}

/* ~2s Choreographed Arrival */
.thome-root.thome-arrive .thome-bp-line {
  animation: thome-draw-bp 1.15s cubic-bezier(0.22, 0.8, 0.3, 1) forwards;
}

.thome-root.thome-arrive .thome-bp {
  animation: thome-settle-bp 1.95s ease forwards;
}

.thome-root.thome-arrive .thome-wood {
  animation: thome-reveal-wood 1.1s 0.48s cubic-bezier(0.2, 0.8, 0.25, 1) both;
}

.thome-root.thome-arrive .thome-led {
  animation: thome-bloom-led 0.95s 1.05s ease-out both;
}

@keyframes thome-draw-bp {
  0% { stroke-dashoffset: 1400; }
  100% { stroke-dashoffset: 0; }
}

@keyframes thome-settle-bp {
  0% { opacity: 0.95; }
  55% { opacity: 0.92; }
  100% { opacity: 0.34; }
}

@keyframes thome-reveal-wood {
  0% { opacity: 0.16; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes thome-bloom-led {
  0% { opacity: 0.06; }
  100% { opacity: 1; }
}

.thome-caption {
  margin-top: 0.95rem;
}

.thome-specs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.thome-spec-btn {
  width: 100%;
  height: 100%;
  min-height: 44px;
  text-align: left;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(157, 216, 228, 0.24);
  background: rgba(255, 255, 255, 0.05);
  color: #dce7eb;
  font: inherit;
  display: grid;
  align-content: start;
  gap: 0.24rem;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.thome-spec-btn:hover {
  background: rgba(26, 163, 190, 0.14);
  border-color: rgba(157, 216, 228, 0.55);
}

.thome-spec.thome-is-active .thome-spec-btn {
  background: rgba(10, 101, 117, 0.42);
  border-color: #ffdfa0;
  color: #ffffff;
}

.thome-spec-name {
  font-family: var(--tcr-font-display, 'Quicksand', system-ui, sans-serif);
  font-weight: 700;
  font-size: 0.96rem;
  color: #ffdfa0;
  line-height: 1.25;
}

.thome-spec-desc {
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.45;
  color: #e4eef1;
}

@media (max-width: 760px) {
  .thome-specs {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }
}

html.tcrm-paused .thome-root * {
  animation-play-state: paused !important;
  transition-duration: 0.001ms !important;
}

@media (prefers-reduced-motion: reduce) {
  .thome-root,
  .thome-root * {
    animation: none !important;
    transition: none !important;
  }
  .thome-root .thome-wood { opacity: 1 !important; transform: none !important; }
  .thome-root .thome-bp { opacity: 0.34 !important; }
  .thome-root .thome-bp-line { stroke-dashoffset: 0 !important; }
  .thome-root .thome-led { opacity: 1 !important; }
}
