/* 04-custom-pantry (tpnt): Reach Everything at a Glance */
.tpnt-root {
  margin: 0;
  padding: clamp(1.25rem, 3vw, 2.5rem) clamp(0.75rem, 2.5vw, 1.5rem);
  background: var(--tcr-paper, #FFFFFF);
  color: var(--tcr-navy, #212326);
  font-family: var(--tcr-font-sans, 'Inter', system-ui, sans-serif);
  overflow-x: hidden;
}

.tpnt-frame {
  max-width: 1180px;
  margin: 0 auto;
  background: var(--tcr-warm, #FAF7F2);
  border: 1px solid var(--tcr-line, #e0e1e4);
  border-radius: var(--tcr-radius-lg, 20px);
  box-shadow: var(--tcr-shadow, 0 12px 32px -12px rgba(14, 122, 142, 0.14));
  padding: clamp(1rem, 2.5vw, 1.75rem);
  overflow: hidden;
}

.tpnt-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem 1.5rem;
  margin-bottom: 1.15rem;
}

.tpnt-head-copy {
  flex: 1 1 320px;
  min-width: 0;
}

.tpnt-eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--tcr-teal-ink, #0a6575);
}

.tpnt-title {
  margin: 0 0 0.35rem;
  font-family: var(--tcr-font-display, 'Quicksand', system-ui, sans-serif);
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--tcr-navy, #212326);
}

.tpnt-sub {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.5;
  color: var(--tcr-text, #434549);
  max-width: 60ch;
}

.tpnt-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.tpnt-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  border: 2px solid var(--tcr-teal, #0e7a8e);
  background: var(--tcr-teal, #0e7a8e);
  color: #FFFFFF;
  font-family: var(--tcr-font-sans, 'Inter', system-ui, sans-serif);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.1;
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.15s ease;
}

.tpnt-toggle-btn:hover {
  background: var(--tcr-teal-d, #0b6b7c);
  border-color: var(--tcr-teal-d, #0b6b7c);
}

.tpnt-toggle-btn:active {
  transform: scale(0.98);
}

.tpnt-toggle-btn[aria-pressed="true"] {
  background: var(--tcr-navy, #212326);
  border-color: var(--tcr-brass, #c9a84c);
  color: var(--tcr-led, #ffdfa0);
}

.tpnt-toggle-btn:focus-visible {
  outline: 3px solid var(--tcr-teal, #0e7a8e);
  outline-offset: 2px;
}

.tpnt-toggle-ico {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  border: 2px solid currentColor;
  transition: transform 0.35s ease, background-color 0.25s ease;
}

.tpnt-toggle-btn[aria-pressed="true"] .tpnt-toggle-ico {
  transform: translateX(3px);
  background: var(--tcr-led, #ffdfa0);
}

.tpnt-motion-slot {
  display: inline-flex;
  align-items: center;
}

.tpnt-stage {
  position: relative;
  border-radius: var(--tcr-radius, 14px);
  border: 1px solid var(--tcr-line, #e0e1e4);
  background: #f7f4ec;
  overflow: hidden;
}

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

/* Pull-out baskets, drawers & heavy trays (Closed vs Open) */
.tpnt-cavity-led {
  opacity: 0.14;
  transition: opacity 0.55s ease;
}

.tpnt-rails {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.tpnt-drawer-reveal {
  opacity: 0;
  transition: opacity 0.35s ease;
}

.tpnt-root[data-tpnt-open="true"] .tpnt-drawer-reveal {
  opacity: 1;
}

.tpnt-basket,
.tpnt-drawer {
  transform: translate(0, 0);
  transition: transform 0.62s cubic-bezier(0.22, 1, 0.36, 1), filter 0.45s ease;
}

.tpnt-pull-2 {
  transition-delay: 0.05s;
}

.tpnt-pull-3 {
  transition-delay: 0.1s;
}

.tpnt-root[data-tpnt-open="true"] .tpnt-cavity-led {
  opacity: 0.96;
}

.tpnt-root[data-tpnt-open="true"] .tpnt-rails {
  opacity: 1;
}

.tpnt-root[data-tpnt-open="true"] .tpnt-pull-1,
.tpnt-root[data-tpnt-open="true"] .tpnt-pull-2,
.tpnt-root[data-tpnt-open="true"] .tpnt-pull-3 {
  transform: translate(18px, 14px);
}

/* Pre-arrival JS state */
.tpnt-root.tpnt-wait .tpnt-bp-line {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}

.tpnt-root.tpnt-wait .tpnt-bp-text,
.tpnt-root.tpnt-wait .tpnt-cabinetry,
.tpnt-root.tpnt-wait .tpnt-led-strip,
.tpnt-root.tpnt-wait .tpnt-led-cone {
  opacity: 0;
}

/* Arrival choreography (~2s): Blueprint -> Pantry Millwork -> 2700K LEDs */
.tpnt-root.tpnt-play .tpnt-bp-line {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: tpnt-draw 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.tpnt-root.tpnt-play .tpnt-bp-d2 {
  animation-delay: 0.14s;
}

.tpnt-root.tpnt-play .tpnt-bp-d3 {
  animation-delay: 0.28s;
}

.tpnt-root.tpnt-play .tpnt-bp-text {
  opacity: 0;
  animation: tpnt-fade-in 0.55s ease 0.4s forwards;
}

.tpnt-root.tpnt-play .tpnt-cabinetry {
  opacity: 0;
  animation: tpnt-fade-in 0.85s ease 0.65s forwards;
}

.tpnt-root.tpnt-play .tpnt-led-strip,
.tpnt-root.tpnt-play .tpnt-led-cone {
  opacity: 0;
  animation: tpnt-led-on 0.65s ease 1.35s forwards;
}

/* Continuous subtle living shimmer after arrival */
.tpnt-led-cone {
  opacity: 0.72;
}

.tpnt-root.tpnt-live .tpnt-led-cone {
  animation: tpnt-led-shimmer 3.6s ease-in-out infinite alternate;
}

.tpnt-sweep-beam {
  opacity: 0;
}

.tpnt-root.tpnt-live .tpnt-sweep-beam {
  animation: tpnt-sweep 5.2s ease-in-out infinite;
}

.tpnt-live-note {
  margin: 0;
  padding: 0.55rem 0.9rem;
  font-size: 0.82rem;
  color: var(--tcr-teal-ink, #0a6575);
  background: rgba(255, 255, 255, 0.86);
  border-top: 1px solid var(--tcr-line, #e0e1e4);
}

.tpnt-caption {
  margin-top: 1rem;
}

.tpnt-zones {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 0.65rem;
}

.tpnt-zone {
  background: #FFFFFF;
  border: 1px solid var(--tcr-line, #e0e1e4);
  border-radius: var(--tcr-radius-sm, 8px);
  padding: 0.65rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.tpnt-zone b {
  font-family: var(--tcr-font-display, 'Quicksand', system-ui, sans-serif);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--tcr-teal-ink, #0a6575);
}

.tpnt-zone span {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--tcr-text, #434549);
}

@keyframes tpnt-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes tpnt-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes tpnt-led-on {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.72;
  }
}

@keyframes tpnt-led-shimmer {
  0% {
    opacity: 0.56;
  }
  100% {
    opacity: 0.92;
  }
}

@keyframes tpnt-sweep {
  0%, 10% {
    transform: translateX(-100px);
    opacity: 0;
  }
  45% {
    opacity: 0.72;
  }
  85%, 100% {
    transform: translateX(1160px);
    opacity: 0;
  }
}

html.tcrm-paused .tpnt-root *,
html.tcrm-paused .tpnt-root *::before,
html.tcrm-paused .tpnt-root *::after {
  animation-play-state: paused !important;
}

@media (prefers-reduced-motion: reduce) {
  .tpnt-root,
  .tpnt-root *,
  .tpnt-root *::before,
  .tpnt-root *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 640px) {
  .tpnt-frame {
    padding: 0.9rem;
    border-radius: 14px;
  }
  .tpnt-controls {
    width: 100%;
    justify-content: flex-start;
  }
  .tpnt-toggle-btn {
    font-size: 0.82rem;
    padding: 0.55rem 0.9rem;
  }
  .tpnt-zones {
    grid-template-columns: 1fr;
  }
}
