@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@400;500;600;700;800;900&display=swap");

:root {
  color-scheme: dark;
  --bg: linear-gradient(180deg, #181818 0%, #101010 45%, #090909 100%);
  --ink: #f7f7f4;
  --muted: #b6b3aa;
  --line: rgba(255, 255, 255, 0.16);
  --panel: #10100f;
  --accent: #e33d32;
  --display-font: "Cormorant Garamond", Georgia, serif;
  --body-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body-font);
  font-weight: 400;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.page-shell {
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 94vh;
  border-bottom: 1px solid var(--line);
}

.hero-scrim {
  position: absolute;
  inset: 0;
}

.hero-scrim {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.74) 42%, rgba(0, 0, 0, 0.48)),
    linear-gradient(0deg, #030303 0%, rgba(3, 3, 3, 0) 30%);
}

.nav {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-family: var(--display-font);
  font-weight: 800;
  font-size: 1.32rem;
  letter-spacing: 0.035em;
}

.brand-mark {
  width: 24px;
  height: 24px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(255, 232, 106, 0.9);
}

.nav-links {
  gap: 24px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: calc(94vh - 80px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
  padding: 34px 0 86px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #f0b7a1;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 26px;
  font-family: var(--display-font);
  font-size: clamp(4rem, 8vw, 8.2rem);
  font-weight: 600;
  line-height: 0.86;
  letter-spacing: 0.01em;
  text-shadow: 0 0 34px rgba(255, 235, 210, 0.08);
}

.hero-subtitle {
  margin-bottom: 20px;
  color: #dedbd2;
  font-size: clamp(1.5rem, 3vw, 2.8rem);
  font-weight: 700;
}

.hero-text {
  max-width: 560px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.82;
}

.hero-actions,
.mode-grid,
.spec-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.mode-button {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button {
  padding: 0 18px;
  font-weight: 800;
}

.button:hover,
.mode-button:hover {
  transform: translateY(-1px);
}

.primary {
  background: var(--accent);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 42px rgba(227, 61, 50, 0.28);
}

.secondary {
  background: rgba(255, 255, 255, 0.08);
}

.preview-column {
  display: grid;
  gap: 18px;
}

.product-stage {
  position: relative;
  margin: 0;
  isolation: isolate;
}

.product-stage canvas {
  position: relative;
  z-index: 1;
  width: min(500px, 100%);
  height: auto;
  margin-left: auto;
  border-radius: 4px;
  filter: contrast(1.03);
}

.light-aura {
  position: absolute;
  inset: 7% 5% 8% 5%;
  z-index: 0;
  border-radius: 22px;
  opacity: 0;
  filter: blur(42px);
  transition: background 700ms ease, opacity 700ms ease;
}

.product-stage figcaption {
  display: none;
}

.lighting-controls {
  position: relative;
  z-index: 2;
  width: fit-content;
  padding: 15px 17px 17px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012)),
    rgba(0, 0, 0, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 18px 54px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
}

.lighting-controls .eyebrow {
  margin-bottom: 11px;
  color: rgba(247, 247, 244, 0.68);
  font-family: var(--body-font);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-align: center;
}

.lighting-panel,
.product-section,
.gallery-section,
.collection {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 82px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 32px;
}

.section-heading h2,
.product-copy h2 {
  margin-bottom: 0;
  font-family: var(--display-font);
  font-size: clamp(2.7rem, 5vw, 5.4rem);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: 0.01em;
}

.section-heading > p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.82;
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  align-items: stretch;
  width: min(100%, 330px);
}

.mode-button {
  width: 100%;
  min-height: 48px;
  border-color: transparent;
  padding: 8px;
  background: rgba(255, 255, 255, 0.018);
  color: rgba(247, 247, 244, 0.82);
  font: inherit;
  font-family: var(--body-font);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.055em;
  line-height: 1.12;
  text-align: center;
}

.mode-button span:last-child {
  display: block;
}

.pattern-controls {
  width: min(100%, 330px);
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.pattern-heading {
  position: relative;
  display: inline-flex;
  left: 50%;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transform: translateX(-50%);
  margin-bottom: 8px;
  color: rgba(247, 247, 244, 0.58);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-align: center;
  text-transform: uppercase;
}

.pattern-info {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border: 0;
  padding: 0;
  background: transparent;
  color: rgba(247, 247, 244, 0.48);
  font: inherit;
  line-height: 1;
  cursor: help;
  transition: color 180ms ease, opacity 180ms ease;
}

.pattern-info:hover,
.pattern-info:focus-visible {
  color: rgba(255, 245, 230, 0.86);
  outline: none;
}

.pattern-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 10;
  width: min(260px, 72vw);
  padding: 11px 12px;
  border: 1px solid rgba(255, 235, 200, 0.16);
  border-radius: 8px;
  background: rgba(10, 10, 10, 0.82);
  box-shadow:
    0 0 18px rgba(255, 235, 200, 0.09),
    0 18px 46px rgba(0, 0, 0, 0.38);
  color: rgba(247, 247, 244, 0.82);
  font-family: var(--body-font);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.035em;
  line-height: 1.55;
  text-align: left;
  text-transform: none;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 180ms ease, transform 180ms ease;
  backdrop-filter: blur(12px);
}

.pattern-info:hover .pattern-tooltip,
.pattern-info:focus-visible .pattern-tooltip,
.pattern-info:focus-within .pattern-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.pattern-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.pattern-button {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 7px 6px;
  background: rgba(255, 255, 255, 0.018);
  color: rgba(247, 247, 244, 0.76);
  font: inherit;
  font-family: var(--body-font);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.055em;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.pattern-button:hover,
.pattern-button:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.052);
}

.pattern-button[aria-pressed="true"] {
  color: rgba(255, 255, 255, 0.94);
  background: rgba(255, 255, 255, 0.075);
  box-shadow:
    0 0 10px rgba(255, 255, 255, 0.34),
    0 0 24px rgba(255, 235, 200, 0.18);
}

.pattern-button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.mode-button:hover,
.mode-button:focus-visible {
  background: rgba(255, 255, 255, 0.052);
}

.mode-button[aria-pressed="true"] {
  border-color: transparent;
  color: rgba(255, 255, 255, 0.94);
  background: rgba(255, 255, 255, 0.075);
  box-shadow:
    0 0 10px rgba(255, 255, 255, 0.34),
    0 0 24px rgba(255, 235, 200, 0.18);
}

.mode-button[data-mode="RGB Cycle"] {
  grid-column: 1 / -1;
}

.custom-colour-control {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: min(100%, 330px);
  margin-top: 14px;
  padding: 13px 12px 12px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 8px;
  background:
    radial-gradient(circle at center, rgba(255, 235, 200, 0.032), transparent 62%),
    rgba(0, 0, 0, 0.12);
}

.custom-colour-control[aria-pressed="true"] {
  border-color: rgba(255, 235, 200, 0.5);
  box-shadow: 0 0 24px rgba(255, 220, 170, 0.12);
}

.custom-colour-heading {
  grid-column: 1 / -1;
  color: rgba(247, 247, 244, 0.58);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.colour-wheel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 135px;
  height: 135px;
  border-radius: 9999px;
  overflow: hidden;
}

.colour-wheel {
  display: block;
  width: 135px;
  height: 135px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 0 18px rgba(255, 255, 255, 0.08);
  cursor: crosshair;
  touch-action: none;
}

.colour-wheel-marker {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.65), 0 0 12px rgba(255, 255, 255, 0.55);
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.custom-colour-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.custom-colour-swatch {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.28);
}

.artwork-tester {
  margin-top: 34px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.admin-panel {
  padding-top: 44px;
}

.tester-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  list-style: none;
}

.tester-summary::-webkit-details-marker {
  display: none;
}

.tester-summary h3 {
  margin-bottom: 0;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
}

.admin-badge {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.artwork-tester[open] .admin-badge {
  color: #fff;
}

.artwork-tester[open] .admin-badge::before {
  content: "Open";
}

.artwork-tester[open] .admin-badge {
  font-size: 0;
}

.artwork-tester[open] .admin-badge::before {
  font-size: 0.78rem;
}

.tester-body {
  margin-top: 22px;
}

.tester-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.85fr);
  gap: 22px;
  align-items: start;
  margin-bottom: 22px;
}

.tester-header p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.active-layers {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.active-layers span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.tester-controls,
.view-controls,
.slider-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tester-controls,
.slider-controls,
.view-controls {
  margin-bottom: 14px;
}

.slider-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
}

.slider-controls label {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--muted);
  font-size: 0.86rem;
}

.slider-controls span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.slider-controls input {
  width: 100%;
  accent-color: var(--accent);
}

.file-control,
.tool-button,
.view-button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  font: inherit;
}

.file-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  cursor: pointer;
}

.file-control input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.tool-button,
.view-button {
  padding: 0 14px;
  cursor: pointer;
}

.file-control:hover,
.tool-button:hover,
.view-button:hover {
  border-color: rgba(255, 255, 255, 0.44);
}

.view-button[aria-pressed="true"] {
  border-color: rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.14);
}

.debug-readout {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 8px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.86rem;
}

.debug-readout span {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  overflow-wrap: anywhere;
}

.swatch {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gallery-card,
.selected-artwork {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.gallery-card span,
.selected-artwork p {
  color: var(--muted);
  line-height: 1.55;
}

.gallery-action {
  display: inline-flex;
  margin-top: 12px;
  color: #fff;
  font-weight: 800;
  font-size: 0.92rem;
}

.mini-frame {
  aspect-ratio: 4 / 5;
  display: block;
  border: 10px solid #070707;
  border-radius: 6px;
  padding: 8px;
  background: #f2f0eb;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
}

.luumi-frame-preview {
  position: relative;
  aspect-ratio: 1141 / 1125;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 235, 200, 0.12);
  border-radius: 2px;
  padding: 0;
  background: url("./assets/luumi-frame-template.jpeg") center / cover no-repeat;
  box-shadow:
    0 0 18px rgba(255, 235, 200, 0.22),
    0 0 42px rgba(255, 220, 170, 0.14),
    0 0 80px rgba(255, 210, 150, 0.08);
}

.mini-frame > span {
  display: block;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 3px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.08)),
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.9), transparent 18%),
    var(--placeholder-art, linear-gradient(135deg, #6a211f, #d9a04a 48%, #24515a));
  background-position: center;
  background-size: cover;
}

.luumi-frame-preview > .frame-panel {
  position: absolute;
  left: 6.85%;
  top: 6.4%;
  width: 85.45%;
  height: 89.15%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.luumi-frame-preview > .frame-panel img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  image-rendering: auto;
  filter: none;
  mix-blend-mode: normal;
  opacity: 1;
}

.theme-atmosphere { --placeholder-art: linear-gradient(135deg, #111, #74342f 45%, #f4b66c); }
.theme-shift { --placeholder-art: repeating-linear-gradient(12deg, #0a0a0a 0 10px, #efefea 10px 18px, #5bbbc8 18px 24px); }
.theme-hidden { --placeholder-art: radial-gradient(circle at 64% 34%, #f6d4a6, transparent 22%), linear-gradient(135deg, #151515, #7a304c 45%, #d8b15d); }
.theme-layered { --placeholder-art: linear-gradient(160deg, #101010, #d86b47 35%, #dfd5c8 58%, #2a6f7d); }
.theme-rgb { --placeholder-art: linear-gradient(135deg, #ff3b3b, #facc15 32%, #22c55e 55%, #38bdf8 78%, #d946ef); }
.theme-framed { --placeholder-art: linear-gradient(135deg, #111, #39526b 42%, #f1e1c2 68%, #141414); }

.gallery-section {
  border-top: 1px solid var(--line);
}

.selected-artwork {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 34px;
  align-items: end;
  margin-bottom: 34px;
}

.selected-artwork .eyebrow,
.selected-artwork h3,
.selected-artwork p,
.selected-artwork .price-line,
.selected-artwork .gallery-badges {
  grid-column: 1;
}

.selected-artwork .button {
  grid-column: 2;
  grid-row: 2 / span 4;
  align-self: center;
}

.gallery-preview-layout {
  display: grid;
  grid-template-columns: minmax(420px, 0.72fr) minmax(260px, 0.34fr);
  gap: 22px;
  align-items: center;
  margin-bottom: 44px;
  overflow: visible;
}

.gallery-preview-layout .preview-column,
.gallery-preview-layout .product-stage {
  overflow: visible;
}

.gallery-preview-layout .product-stage {
  padding: 18px;
}

.gallery-preview-layout .product-stage canvas {
  width: min(620px, 100%);
  margin: 0;
  border: 1px solid rgba(255, 235, 200, 0.12);
  box-shadow:
    0 0 18px rgba(255, 235, 200, 0.22),
    0 0 42px rgba(255, 220, 170, 0.14),
    0 0 80px rgba(255, 210, 150, 0.08);
}

.selected-artwork {
  padding: 26px 30px;
}

.selected-artwork h3 {
  margin-bottom: 12px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1;
}

.price-line {
  margin: 22px 0 14px;
  color: #fff;
  font-size: 2rem;
  font-weight: 900;
}

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

.gallery-badges span,
.gallery-meta {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.78rem;
}

.gallery-card {
  min-width: 0;
  padding: 12px;
  color: inherit;
  text-align: left;
  font: inherit;
}

.gallery-card[aria-pressed="true"] {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
}

.gallery-card .mini-frame:not(.luumi-frame-preview) {
  border-width: 8px;
  padding: 6px;
}

.gallery-card-copy,
.gallery-card-copy strong,
.gallery-card-copy span {
  display: block;
}

.gallery-card-copy {
  padding: 14px 2px 2px;
}

.gallery-card-copy strong {
  margin-bottom: 6px;
  color: #fff;
  font-size: 1.05rem;
}

.gallery-price {
  margin-top: 12px;
  color: #fff !important;
  font-weight: 900;
}

.gallery-meta {
  display: inline-flex !important;
  width: fit-content;
  margin-top: 8px;
}

.gallery-action {
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}

.gallery-action:hover,
.gallery-action:focus-visible {
  border-color: rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.14);
}

.gallery-admin {
  margin-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding-top: 10px;
}

.gallery-admin summary {
  color: var(--muted);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
}

.gallery-admin[open] summary {
  color: #fff;
}

.layer-role-brief {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.layer-role-brief p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.gallery-layer-controls {
  display: grid;
  gap: 8px;
}

.gallery-render-admin {
  margin-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding-top: 10px;
}

.gallery-render-admin summary {
  color: var(--muted);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
}

.gallery-render-admin[open] summary {
  color: #fff;
}

.gallery-render-note {
  margin: 10px 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.gallery-render-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.gallery-render-setting {
  display: grid;
  gap: 7px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  padding: 9px;
  background: rgba(0, 0, 0, 0.18);
}

.gallery-render-setting span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 0.75rem;
}

.gallery-render-setting strong {
  min-width: 0;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
}

.gallery-render-setting output {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.gallery-render-setting small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.gallery-render-setting input {
  width: 100%;
  accent-color: var(--accent);
}

.gallery-render-actions {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.gallery-render-actions button {
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
}

.gallery-render-actions button:hover,
.gallery-render-actions button:focus-visible {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
}

.gallery-layer-upload {
  position: relative;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

.gallery-layer-upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.gallery-layer-upload span,
.gallery-layer-upload strong,
.gallery-layer-upload small,
.gallery-layer-upload em {
  display: block;
}

.gallery-layer-upload strong {
  color: #fff;
  font-size: 0.86rem;
}

.gallery-layer-upload small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.76rem;
}

.gallery-layer-upload em {
  margin-top: 6px;
  color: rgba(134, 239, 172, 0.9);
  font-size: 0.75rem;
  font-style: normal;
}

.admin-settings-page {
  background: #050505;
}

.admin-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.admin-gate section {
  width: min(460px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.045);
}

.admin-gate h1,
.admin-header h1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

.admin-gate p,
.admin-header p {
  color: var(--muted);
  line-height: 1.6;
}

.admin-gate form,
.admin-gate label {
  display: grid;
  gap: 12px;
}

.admin-gate input,
.admin-select-label select,
.gallery-render-select select,
.admin-json {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font: inherit;
}

.admin-gate input,
.admin-select-label select,
.gallery-render-select select {
  min-height: 42px;
  padding: 0 12px;
}

.admin-error,
.admin-save-status {
  min-height: 1.4em;
  color: #fca5a5;
}

.admin-shell {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 70px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
}

.admin-workspace {
  display: grid;
  grid-template-columns: 220px minmax(360px, 0.92fr) minmax(330px, 0.78fr);
  gap: 22px;
  align-items: start;
}

.admin-sidebar,
.admin-settings-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.admin-select-label,
.admin-select-label span {
  display: grid;
  gap: 8px;
}

.admin-select-label span {
  color: var(--muted);
  font-size: 0.82rem;
}

.admin-artwork-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.admin-artwork-button {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
  cursor: pointer;
  text-align: left;
}

.admin-artwork-button[aria-pressed="true"] {
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.1);
}

.admin-preview .product-stage canvas {
  width: min(540px, 100%);
  margin: 0;
}

.admin-settings-panel h2,
.admin-settings-panel h3 {
  margin-bottom: 10px;
}

.admin-settings-panel > p {
  color: var(--muted);
  line-height: 1.5;
}

.admin-json {
  min-height: 92px;
  margin-top: 12px;
  padding: 10px;
  resize: vertical;
  font-family: Consolas, monospace;
  font-size: 0.78rem;
}

.admin-backup-tools {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.admin-backup-tools h3 {
  margin-bottom: 8px;
}

.admin-backup-tools p {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.admin-backup-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.admin-backup-actions button,
.admin-backup-file {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
}

.admin-backup-file {
  position: relative;
  display: grid;
  place-items: center start;
}

.admin-backup-file input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.admin-backup-actions button:hover,
.admin-backup-actions button:focus-visible,
.admin-backup-file:hover,
.admin-backup-file:focus-within {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
}

.product-section {
  display: block;
  border-top: 1px solid var(--line);
}

.product-copy {
  max-width: 900px;
}

.product-copy h2 {
  max-width: 720px;
  margin-bottom: 28px;
}

.product-copy p:not(.eyebrow) {
  max-width: 760px;
}

.product-copy p {
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.86;
}

.product-copy p + p {
  margin-top: 18px;
}

.spec-grid {
  margin: 28px 0;
}

.spec-grid div {
  flex: 1 1 140px;
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.spec-grid strong,
.spec-grid span {
  display: block;
}

.spec-grid span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

footer {
  border-top: 1px solid var(--line);
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner,
  .product-section,
  .section-heading,
  .gallery-preview-layout,
  .admin-header,
  .admin-workspace,
  .tester-header,
  .slider-controls,
  .gallery-render-controls,
  .debug-readout {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-inner {
    gap: 32px;
    padding-top: 48px;
  }

  .preview-column {
    order: -1;
  }

  .selected-artwork {
    grid-template-columns: 1fr;
  }

  .selected-artwork .button {
    grid-column: 1;
    grid-row: auto;
    width: fit-content;
  }

  .lighting-controls {
    padding-top: 0;
  }

  .product-stage canvas {
    margin: 0 auto;
  }

  .custom-colour-control {
    width: 100%;
  }

  .mode-grid,
  .pattern-controls {
    width: 100%;
  }

  .section-heading {
    gap: 8px;
  }

}

@media (max-width: 520px) {
  .hero-actions,
  .button,
  .mode-button,
  .file-control,
  .tool-button,
  .view-button {
    width: 100%;
  }

  .mode-button,
  .file-control,
  .tool-button,
  .view-button {
    justify-content: flex-start;
  }

  .lighting-panel,
  .product-section,
  .gallery-section,
  .collection {
    padding-block: 58px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}
