/* ═══════════════════════════════════════════════════
   House of Void — GSAP FX Styles
   ═══════════════════════════════════════════════════ */

/* ── WORD SPLIT ── */
.gsap-word-outer {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.gsap-word-inner { display: inline-block; }

/* ── HERO TITLE WORD SPANS ── */
.ht-word {
  display: inline-block;
}

/* ══════════════════════════════════════════════════
   HERO MICRO-STAT BADGES
══════════════════════════════════════════════════ */
.hero__micro-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.hero__micro-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid rgba(26,23,20,.18);
  background: rgba(255,255,255,.55);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--ink-mid);
  backdrop-filter: blur(4px);
  /* opacity controlled by GSAP */
}

/* ══════════════════════════════════════════════════
   CTA BUTTONS
══════════════════════════════════════════════════ */

/* Shimmer sweep — Shop All */
.btn--shimmer {
  position: relative;
  overflow: hidden;
}
.btn--shimmer::after {
  content: '';
  position: absolute;
  top: 0; left: -70%;
  width: 50%; height: 100%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255,255,255,0.38) 50%,
    transparent 80%
  );
  transform: skewX(-18deg);
  pointer-events: none;
  opacity: 0;
  transition: none;
}
.btn--shimmer:hover::after {
  opacity: 1;
  animation: shimmer-sweep .55s ease forwards;
}
@keyframes shimmer-sweep {
  0%   { left: -70%; }
  100% { left: 130%;  }
}

/* Stroke border draw — Our Story */
.btn--stroke {
  position: relative;
  overflow: visible;
}
.btn-stroke-border {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  overflow: visible;
}
.btn-stroke-border rect {
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
}

/* ══════════════════════════════════════════════════
   HERO VISUAL WRAP & FLOATING ICONS
══════════════════════════════════════════════════ */
.hero__visual-wrap {
  position: relative;
  flex: 0 0 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__visual-wrap .hero__visual {
  flex: none;
  width: 100%;
}

.hero__float {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.42;
  pointer-events: none;
  color: var(--accent);
  filter: drop-shadow(0 1px 3px rgba(192,98,58,.3));
  z-index: 10;
}
.hero__float--book  { top: 12%;  left: -10%; }
.hero__float--star  { bottom: 8%; right: -6%; }
.hero__float--moon  { top: 42%;  right: -8%; }

/* ══════════════════════════════════════════════════
   HERO BADGE ROTATING BORDER
══════════════════════════════════════════════════ */
.hero__badge {
  position: absolute;
  top: 40px; right: 40px;
  padding: 6px 12px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  z-index: 4;
  /* initial bg — JS overrides with conic-gradient */
  background: var(--accent);
  /* clip to badge so gradient is visible on border only */
  background-clip: padding-box;
  border: 2px solid transparent;
}

/* ══════════════════════════════════════════════════
   HERO STATS — underline draw
══════════════════════════════════════════════════ */
.hero__stat-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.hero__stat-underline {
  display: block;
  height: 1.5px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform-origin: left;
  transform: scaleX(0);
  border-radius: 2px;
}

/* ══════════════════════════════════════════════════
   HERO DRIFTING SPOTLIGHT
══════════════════════════════════════════════════ */
.hero-spotlight {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,240,232,0.06) 0%, transparent 70%);
  pointer-events: none;
  top: -120px;
  left: -60px;
  z-index: 0;
}

/* ══════════════════════════════════════════════════
   TEE ASSEMBLY SECTION
══════════════════════════════════════════════════ */
.tee-assembly {
  position: relative;
  height: 100vh;
  overflow: visible;
  background: var(--ink);
  color: var(--cream);
}
.tee-assembly__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  min-height: 100vh;
  width: min(100%, 1200px);
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 40px;
  gap: 80px;
}

/* Left panel */
.ta-left {
  display: flex;
  justify-content: center;
  align-items: stretch;
}

/* The styled panel that color-morphs */
.ta-panel {
  position: relative;
  width: 420px;
  height: 520px;
  border: 2px solid #8B5A2B;
  border-radius: 16px;
  background: rgba(139,90,43,0.14);
  box-shadow: 0 0 28px rgba(196,133,58,0.4), inset 0 0 0 2px #8B5A2B;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #C4853A;
}

/* Corner brackets */
.ta-bracket {
  position: absolute;
  width: 22px;
  height: 22px;
  pointer-events: none;
}
.ta-bracket--tl { top: 8px; left: 8px; }
.ta-bracket--tr { top: 8px; right: 8px; }
.ta-bracket--bl { bottom: 8px; left: 8px; }
.ta-bracket--br { bottom: 8px; right: 8px; }

/* Scene layers — all stacked */
.ta-scene {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ta-scene-svg {
  width: 86%;
  height: 86%;
}

/* Right: timeline */
.ta-right {
  display: flex;
  flex-direction: column;
  gap: 36px;
  min-width: 0;
}
.ta-eyebrow {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.ta-header h2 {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--cream);
  margin-bottom: 10px;
  letter-spacing: -.02em;
}
.ta-header p {
  font-size: .95rem;
  color: rgba(245,240,232,.55);
  line-height: 1.5;
  max-width: 48ch;
  overflow-wrap: anywhere;
}
.ta-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.ta-timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: rgba(245,240,232,.1);
}
.ta-node {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 14px 0;
  position: relative;
}
.ta-node__dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(245,240,232,.18);
  background: transparent;
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
  z-index: 1;
}
.ta-node__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
}
.ta-node__title {
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  color: rgba(245,240,232,.35);
  line-height: 1.2;
}
.ta-node__desc {
  display: block;
  font-size: .8rem;
  font-weight: 400;
  color: rgba(245,240,232,.55);
  line-height: 1.45;
  max-width: 100%;
  word-wrap: break-word;
}

/* ══════════════════════════════════════════════════
   PRODUCT CARD CLIP-PATH BASE
══════════════════════════════════════════════════ */
/* ══════════════════════════════════════════════════
   PRODUCT CARD CLIP-PATH BASE
══════════════════════════════════════════════════ */
.product-card {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .ta-panel { width: 360px; height: 460px; }
}
@media (max-width: 900px) {
  .tee-assembly__inner {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 28px;
    padding: 68px 24px 36px;
  }
  .ta-panel { width: 300px; height: 380px; }
  .ta-header h2 { font-size: 2rem; }
  .hero__visual-wrap { flex: none; width: 100%; max-width: 400px; }
  .hero__float--book  { left: 2%; }
  .hero__float--star  { right: 2%; }
  .hero__float--moon  { right: 1%; }
}
@media (max-width: 600px) {
  .tee-assembly__inner {
    gap: 24px;
    padding-inline: 20px;
  }
  .ta-panel { width: min(260px, 76vw); height: min(320px, 52vh); }
  .ta-right { gap: 24px; }
  .ta-header h2 { font-size: clamp(2rem, 12vw, 2.6rem); }
  .ta-header p { max-width: 100%; }
  .hero__micro-stats { justify-content: center; }
}

/* ══════════════════════════════════════════════════
   CSS CONTAINMENT for perf
══════════════════════════════════════════════════ */
/* Rebuild layer: ancient atelier motion system */
html { scroll-behavior: auto; }

body {
  background-color: #F5F0E8;
  background-image:
    linear-gradient(90deg, rgba(26,23,20,.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,.32), rgba(237,232,223,.34));
  background-size: 38px 38px, auto;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)' opacity='1'/%3E%3C/svg%3E");
}

.home-page .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, #C4853A40, transparent);
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.hero__visual {
  transform-style: preserve-3d;
}

.hero__visual::before {
  opacity: 0;
}

.hero-card-frame {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.hero-card-frame rect {
  stroke: rgba(196,133,58,0.76);
  stroke-width: 0.45;
  vector-effect: non-scaling-stroke;
}

@property --badge-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

.hero__badge {
  --badge-angle: 0deg;
  color: var(--cream);
  background:
    linear-gradient(#1a1714, #1a1714) padding-box,
    conic-gradient(from var(--badge-angle), #C4853A, #9B5DE5, #27AE60, #C4853A) border-box;
  border: 2px solid transparent;
  animation: heroBadgeSpin 3s linear infinite;
  animation-play-state: paused;
}

.hero.is-in-view .hero__badge {
  animation-play-state: running;
}

@keyframes heroBadgeSpin {
  to { --badge-angle: 360deg; }
}

.artifact-label {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  z-index: 12;
  opacity: 0.5;
  pointer-events: none;
  color: rgba(26,23,20,0.72);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.artifact-label > span {
  padding: 5px 9px;
  border: 1px solid rgba(180,120,60,0.45);
  border-radius: 999px;
  background: rgba(245,240,232,0.62);
  backdrop-filter: blur(6px);
  white-space: nowrap;
}

.artifact-label svg {
  width: 82px;
  height: 18px;
  overflow: visible;
}

.artifact-label line {
  stroke: rgba(180,120,60,0.38);
  stroke-width: 2;
  stroke-dasharray: 4 5;
  stroke-linecap: round;
}

.artifact-label--tl { top: 7%; left: -26%; }
.artifact-label--tr { top: 8%; right: -28%; flex-direction: row-reverse; }
.artifact-label--bl { bottom: 11%; left: -29%; }
.artifact-label--br { bottom: 11%; right: -27%; flex-direction: row-reverse; }
.artifact-label--rm { top: 46%; right: -38%; flex-direction: row-reverse; }
.artifact-label--tr line,
.artifact-label--br line,
.artifact-label--rm line { stroke-dashoffset: 4; }

.hero-spotlight {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,239,204,0.05) 0%, rgba(255,239,204,0.025) 34%, transparent 70%);
  mix-blend-mode: multiply;
}

.marquee__item:nth-child(4n+1) { color: #C4853A; }
.marquee__item:nth-child(4n+2) { color: #9B5DE5; }
.marquee__item:nth-child(4n+3) { color: #3A8C5C; }
.marquee__item:nth-child(4n) { color: #6F7D86; }
.marquee__item .sep {
  display: inline-block;
  transform-origin: center;
}

.tee-assembly {
  background: #1A1410;
  contain: none;
}

.ta-panel {
  width: 420px;
  height: 520px;
  border-radius: 16px;
  background: rgba(139,90,43,0.12);
}

.ta-scene-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ta-swatch-label,
.ta-selected-text,
.box-stamp-text,
.delivery-text {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  fill: rgba(245,240,232,0.78);
}

.ta-swatch-label.selected,
.ta-selected-text {
  fill: #C4853A;
}

.passed-text {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.16em;
  fill: rgba(39,174,96,0.88);
}

.box-stamp-text {
  font-size: 8px;
  fill: rgba(80,43,14,0.72);
}

.delivery-text {
  font-size: 10px;
  fill: rgba(232,232,232,0.92);
}

.fold-stage,
#shirtFoldLeft5,
#shirtFoldRight5,
#foldedTee5,
#shipBox5,
#plane5,
#deliveryDot5,
#dotPulse5,
.confetti-piece {
  transform-box: fill-box;
  transform-origin: center;
}

#shirtFoldLeft5 { transform-origin: 105px 212px; }
#shirtFoldRight5 { transform-origin: 275px 212px; }

.shipping-svg {
  perspective: 500px;
}

.featured-preview,
.value-props {
  contain: style paint;
}

.featured-preview {
  overflow: hidden;
  isolation: isolate;
}

.featured-sweep {
  position: absolute;
  top: -28%;
  bottom: -28%;
  left: -18%;
  width: 38%;
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  background: radial-gradient(circle, rgba(255,185,92,0.46) 0%, rgba(196,133,58,0.18) 34%, transparent 72%);
  filter: blur(12px);
  mix-blend-mode: screen;
}

.featured-grid .product-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(126,86,35,0.22);
  box-shadow: 0 18px 44px rgba(26,23,20,0.1);
}

.featured-grid .product-card:hover {
  transform: none;
  box-shadow: 0 18px 44px rgba(26,23,20,0.1);
}

.featured-grid .product-card .card__img {
  aspect-ratio: 1 / 1;
  min-height: 0;
  padding: clamp(28px, 4vw, 58px);
  background:
    radial-gradient(circle at 50% 42%, rgba(255,255,255,0.95) 0 36%, rgba(245,240,232,0.8) 58%, rgba(213,197,169,0.34) 100%);
}

.featured-grid .product-card .card__img::before {
  content: '';
  position: absolute;
  inset: 20px;
  border: 2px solid rgba(126,86,35,0.46);
  border-radius: 8px;
  pointer-events: none;
  box-shadow:
    inset 0 0 0 6px rgba(255,255,255,0.52),
    inset 0 0 0 8px rgba(196,133,58,0.22),
    0 10px 26px rgba(126,86,35,0.14);
  z-index: 1;
}

.featured-grid .product-card .card__img::after {
  content: '';
  position: absolute;
  inset: 33px;
  border: 1px solid rgba(196,133,58,0.28);
  border-radius: 4px;
  pointer-events: none;
  z-index: 1;
}

.featured-grid .product-card .card__img img {
  width: 72% !important;
  height: 72% !important;
  object-fit: contain !important;
  filter: drop-shadow(0 18px 24px rgba(26,23,20,0.16));
  position: relative;
  z-index: 2;
}

.featured-grid .product-card:hover .card__img img {
  transform: none;
  filter: drop-shadow(0 18px 24px rgba(26,23,20,0.16));
}

.value-props {
  position: relative;
}

.value-thread {
  position: absolute;
  left: 0;
  right: 0;
  top: 12px;
  width: 100%;
  height: 80px;
  pointer-events: none;
  overflow: visible;
  z-index: 0;
}

.value-thread__path {
  fill: none;
  stroke: #C4853A;
  stroke-width: 2;
  filter: url(#threadGlow);
  stroke-linecap: round;
}

@property --value-border-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

.value-prop {
  --value-accent: #C4853A;
  --value-border-angle: 0deg;
  z-index: 1;
  border-radius: 8px;
  border-color: rgba(26,23,20,0.1);
}

.value-prop::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1.5px;
  border-radius: inherit;
  background: conic-gradient(from var(--value-border-angle), transparent 0 62%, var(--value-accent), transparent 76%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  filter: none;
  animation: valueBorderSpin 1.7s linear infinite paused;
  pointer-events: none;
}

.value-prop::after {
  content: '';
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  border-radius: inherit;
  background: var(--value-accent);
  opacity: 0.06;
  clip-path: circle(8px at var(--value-fill-origin, 100% 100%));
  transition: clip-path 0.4s ease;
  animation: none;
  pointer-events: none;
}

.value-prop:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 54px rgba(26,23,20,0.14);
  border-color: color-mix(in srgb, var(--value-accent) 42%, rgba(26,23,20,0.08));
}

.value-prop:hover::before {
  opacity: 1;
  animation-play-state: running;
}

.value-prop:hover::after {
  clip-path: circle(145% at var(--value-fill-origin, 100% 100%));
}

.value-prop__icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  color: var(--ink-mid);
  transform-origin: center;
}

.value-prop__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.value-prop:hover .value-prop__icon {
  color: var(--value-accent);
}

@keyframes valueBorderSpin {
  to { --value-border-angle: 360deg; }
}

/* Midnight Workshop */
.workshop-scene {
  position: relative;
  min-height: 115vh;
  overflow: hidden;
  isolation: isolate;
  background: #0B0E13;
  color: #E8E0D0;
  margin-top: 0;
}

.workshop-bg,
.workshop-layers,
.layer {
  position: absolute;
  inset: 0;
}

.workshop-bg {
  background:
    linear-gradient(180deg, #F5F0E8 0%, rgba(245,240,232,0.78) 8%, rgba(11,14,19,0.1) 24%, rgba(11,14,19,0.72) 58%, rgba(11,14,19,0.94) 100%),
    linear-gradient(90deg, rgba(11,14,19,0.76), rgba(11,14,19,0.24) 48%, rgba(11,14,19,0.78)),
    #1a1714;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.workshop-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 900'%3E%3Crect fill='%232a2520' width='1440' height='600'/%3E%3Crect fill='%23362f28' y='600' width='1440' height='300'/%3E%3Cg opacity='0.15'%3E%3Crect x='80' y='120' width='280' height='380' rx='8' fill='%23C4853A'/%3E%3Crect x='90' y='130' width='260' height='360' rx='4' fill='%23E8D5B8'/%3E%3C/g%3E%3Cg opacity='0.18'%3E%3Crect x='1080' y='140' width='280' height='360' rx='8' fill='%23C4853A'/%3E%3Crect x='1090' y='150' width='260' height='340' rx='4' fill='%23E8D5B8'/%3E%3C/g%3E%3Cellipse cx='720' cy='180' rx='140' ry='140' fill='%23E8E0D0' opacity='0.08'/%3E%3Ccircle cx='720' cy='180' r='110' fill='%23FFF8E8' opacity='0.12'/%3E%3Cg opacity='0.25'%3E%3Crect x='480' y='520' width='480' height='180' rx='12' fill='%233a2f28'/%3E%3Crect x='500' y='540' width='440' height='140' rx='8' fill='%23524438'/%3E%3Cellipse cx='720' cy='610' rx='200' ry='60' fill='%23E8D5B8' opacity='0.15'/%3E%3C/g%3E%3Cg opacity='0.2'%3E%3Crect x='120' y='640' width='180' height='120' rx='6' fill='%23C4853A'/%3E%3Crect x='130' y='650' width='160' height='100' rx='4' fill='%23E8D5B8'/%3E%3C/g%3E%3Cg opacity='0.18'%3E%3Crect x='1140' y='660' width='160' height='100' rx='6' fill='%23C4853A'/%3E%3Crect x='1150' y='670' width='140' height='80' rx='4' fill='%23E8D5B8'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  pointer-events: none;
}

.workshop-glow {
  position: absolute;
  width: 34vw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196,133,58,0.06), transparent 68%);
  pointer-events: none;
}

.workshop-glow--one { left: 6%; top: 14%; }
.workshop-glow--two { left: 38%; top: 4%; width: 42vw; }
.workshop-glow--three { right: 3%; top: 18%; }

.workshop-layers { display: none; }

.layer svg {
  width: 100%;
  height: 100%;
  display: block;
}

.layer--back { opacity: 0.72; }
.layer--mid { opacity: 0.92; }
.layer--front { opacity: 1; }

.workshop-room-display {
  position: absolute;
  z-index: 2;
  top: clamp(150px, 22vh, 250px);
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vw, 64px);
  width: min(860px, 88vw);
  transform: translateX(-50%);
  pointer-events: auto;
}

.royal-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(118px, 14vw, 178px);
  aspect-ratio: 3 / 4;
  padding: 18px;
  border: 2px solid rgba(196,133,58,0.72);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(255,246,222,0.16), rgba(34,25,18,0.78)),
    rgba(17,15,18,0.68);
  box-shadow:
    inset 0 0 0 6px rgba(13,17,23,0.54),
    inset 0 0 0 8px rgba(232,194,122,0.22),
    0 24px 70px rgba(0,0,0,0.35);
  backdrop-filter: blur(4px);
}

.royal-frame::before,
.royal-frame::after {
  content: '';
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(232,224,208,0.28);
  border-radius: 5px;
  pointer-events: none;
}

.royal-frame::after {
  inset: -10px;
  border-color: rgba(196,133,58,0.18);
  box-shadow: 0 0 0 1px rgba(232,224,208,0.08);
}

.royal-frame img {
  width: 82%;
  height: 82%;
  object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(0,0,0,0.4));
}

.royal-frame--center {
  width: clamp(132px, 15vw, 196px);
  transform: translateY(-18px);
}

.workshop-content {
  position: relative;
  z-index: 3;
  min-height: 115vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 30px;
  padding: 54vh 24px 42px;
  text-align: center;
}

.archive-cta {
  width: min(640px, 100%);
  color: #E8E0D0;
}

.archive-label {
  margin-bottom: 10px;
  color: #C4853A;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
}

.archive-heading {
  margin-bottom: 12px;
  color: #E8E0D0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  font-weight: 700;
  line-height: .96;
}

.archive-sub {
  max-width: 520px;
  margin: 0 auto 24px;
  color: rgba(232,224,208,0.74);
  font-size: 1rem;
}

.archive-form {
  display: flex;
  justify-content: center;
  gap: 10px;
  width: min(520px, 100%);
  margin: 0 auto;
}

.archive-input {
  min-width: 0;
  flex: 1;
  height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(196,133,58,0.45);
  border-radius: 8px;
  outline: none;
  background: rgba(13,17,23,0.72);
  color: #E8E0D0;
}

.archive-input::placeholder {
  color: rgba(232,224,208,0.45);
}

.archive-input:focus {
  border-color: #C4853A;
}

.archive-btn {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  background: #C4853A;
  color: #0D1117;
  font-weight: 700;
}

.workshop-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  color: rgba(232,224,208,0.62);
  font-size: .82rem;
}

.workshop-footer a {
  color: #E8E0D0;
}

.workshop-footer a:hover {
  color: #C4853A;
}

@media (max-width: 760px) {
  .workshop-scene,
  .workshop-content {
    min-height: 105vh;
  }

  .workshop-content {
    padding: 50vh 20px 32px;
  }

  .workshop-room-display {
    top: 18vh;
    gap: 12px;
    width: 94vw;
  }

  .royal-frame {
    width: 28vw;
    padding: 12px;
  }

  .royal-frame--center {
    width: 30vw;
    transform: translateY(-10px);
  }

  .archive-form {
    flex-direction: column;
  }

  .archive-btn,
  .archive-input {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .artifact-label { display: none; }
  .ta-panel { width: min(320px, 82vw); height: min(390px, 58vh); }
}

@media (max-width: 600px) {
  .ta-panel { width: min(260px, 76vw); height: min(320px, 52vh); }
}
