:root {
  /* Compliance trace: (Google only metadata Inter-cell (tight packing Interaction* Interaction:** IntersectionObserver `threshold: 0.3` IntersectionObserver` `rootMargin: '-50px'` trigger slightly cells viewport. */
  --deep-nightshade: #1a1625;
  --specimen-slate: #2a2438;
  --parchment-cream: #e8dcc8;
  --dried-sage: #c4b8a8;
  --pressed-amber: #d4a574;
  --fern-circuit: #5c8a7a;
  --specimen-teal: #3dd4b0;
  --pollen-violet: #8a6bb5;
  --display-font: "Josefin Sans", sans-serif;
  --body-font: "Nunito Sans", sans-serif;
  --mono-font: "IBM Plex Mono", monospace;
  --hex-width: clamp(180px, 22vw, 280px);
  --hex-height: calc(var(--hex-width) * 1.12);
  --section-pad: clamp(3rem, 8vw, 6rem);
}

* { box-sizing: border-box; }

html { background: var(--deep-nightshade); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--dried-sage);
  font-family: var(--body-font);
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  line-height: 1.65;
  letter-spacing: 0.01em;
  background: var(--deep-nightshade);
  overflow-x: hidden;
}

.fixed-wireframe {
  position: fixed;
  inset: -8%;
  pointer-events: none;
  opacity: 0.36;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='112' height='98' viewBox='0 0 112 98'%3E%3Cpath d='M56 2 108 28 108 70 56 96 4 70 4 28Z' fill='none' stroke='%235c8a7a' stroke-opacity='.08' stroke-width='.5'/%3E%3C/svg%3E");
  transform: rotate(15deg) scale(1.15);
}

.catalogue-shell { position: relative; z-index: 1; }

.canopy {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  align-content: center;
  overflow: hidden;
  padding: 2rem;
  text-align: center;
  background: radial-gradient(circle at 50% 44%, #2a2438 0%, #1a1625 62%);
}

.canopy-pattern {
  position: absolute;
  width: 115vmax;
  height: 115vmax;
  opacity: 0.06;
  animation: slowRotate 120s linear infinite;
}

.hero-label,
.date,
.rating,
.tag,
.overlay-meta,
.overlay-rating,
.end-mark {
  font-family: var(--mono-font);
  font-size: clamp(0.7rem, 0.9vw, 0.85rem);
  letter-spacing: 0.04em;
}

.hero-label {
  color: var(--pressed-amber);
  opacity: 0.72;
  margin-bottom: 1rem;
}

h1,
h2,
h3 { margin: 0; font-family: var(--display-font); }

h1 {
  color: var(--parchment-cream);
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  position: relative;
  z-index: 2;
}

.amber-rule {
  width: min(76vw, 960px);
  height: 1px;
  margin: 1.4rem auto 1.7rem;
  background: var(--pressed-amber);
  transform: scaleX(0);
  transform-origin: center;
  animation: ruleType 1.8s steps(40, end) 2s forwards;
  opacity: 0.85;
}

.hero-copy {
  max-width: 42ch;
  margin: 0;
  color: var(--c4b8a8, #c4b8a8);
}

.specimen-section {
  padding: var(--section-pad) clamp(1rem, 4vw, 4rem);
  min-height: 100vh;
}

.section-heading {
  width: min(940px, 92vw);
  margin: 0 auto clamp(2rem, 5vw, 4rem);
}

.section-heading span {
  display: block;
  color: var(--pressed-amber);
  font-family: var(--mono-font);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  margin-bottom: 0.45rem;
}

.section-heading h2 {
  color: var(--parchment-cream);
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.honeycomb {
  width: min(calc((var(--hex-width) * 3) + 24px), 96vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, var(--hex-width));
  gap: 8px;
  justify-content: center;
}

.hex-cell {
  width: var(--hex-width);
  height: var(--hex-height);
  position: relative;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: var(--fern-circuit);
  padding: 2px;
  opacity: 0;
  transition: opacity 500ms ease, background-color 300ms ease, transform 300ms ease, filter 300ms ease;
  cursor: pointer;
}

.hex-cell:nth-child(6n+4) { margin-left: calc(var(--hex-width) / 2 + 4px); }
.hex-cell.is-visible { opacity: 1; }
.hex-cell:hover,
.hex-cell:active {
  background: var(--pressed-amber);
  filter: drop-shadow(0 0 18px rgba(212, 165, 116, 0.18));
  transform: translateY(-2px);
}

.hex-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.42rem;
  padding: 16%;
  text-align: center;
  clip-path: inherit;
  background: linear-gradient(180deg, rgba(42,36,56,0.96), rgba(26,22,37,0.96));
  box-shadow: inset 0 0 0 2px var(--fern-circuit);
  transition: box-shadow 300ms ease;
  overflow: hidden;
}

.hex-cell:hover .hex-inner,
.hex-cell:active .hex-inner { box-shadow: inset 0 0 30px rgba(212, 165, 116, 0.12); }

.botanical {
  position: absolute;
  inset: 9% 8%;
  width: 84%;
  height: 84%;
  fill: none;
  stroke: var(--fern-circuit);
  stroke-width: 1.5px;
  opacity: 0.2;
  transition: opacity 400ms ease;
}

.hex-cell:hover .botanical,
.hex-cell:active .botanical { opacity: 0.4; }

.date { color: var(--pressed-amber); position: relative; z-index: 2; }
.rating { color: var(--fern-circuit); opacity: 0; transform: translateY(4px); transition: opacity 300ms ease-out, transform 300ms ease-out; position: relative; z-index: 2; }
.tag {
  color: var(--pollen-violet);
  border: 1px solid rgba(138, 107, 181, 0.48);
  padding: 0.12rem 0.5rem;
  transform: translateX(-12px);
  opacity: 0;
  transition: opacity 200ms ease, transform 200ms ease;
  position: relative;
  z-index: 2;
}

.hex-cell.revealed .rating,
.hex-cell.revealed .tag { opacity: 1; transform: translate(0, 0); }

.type-title {
  min-height: 3.6em;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--parchment-cream);
  font-size: clamp(1.05rem, 1.7vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  position: relative;
  z-index: 2;
}

.cursor {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 2px;
  background: var(--specimen-teal);
  animation: blink 1060ms infinite;
  vertical-align: -0.12em;
}

.chevron-divider,
.final-divider { width: 100%; height: 180px; overflow: hidden; }
.final-divider { height: 110px; }
.chevron-divider svg,
.final-divider svg { width: 100%; height: 100%; display: block; }
.chevron-divider polygon,
.final-divider polygon { fill: rgba(212, 165, 116, 0.08); stroke: rgba(212, 165, 116, 0.3); stroke-width: 2px; }
.secondary-section { padding-top: clamp(1rem, 3vw, 2rem); }
.end-mark { margin: 0; padding: 0 0 3rem; text-align: center; color: rgba(196, 184, 168, 0.5); }

.review-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: var(--deep-nightshade);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.94);
  transition: opacity 600ms cubic-bezier(0.22, 1, 0.36, 1), transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.review-overlay.open { opacity: 1; pointer-events: auto; transform: scale(1); }

.close-overlay {
  position: fixed;
  top: 1.2rem;
  right: 1.5rem;
  z-index: 2;
  border: 0;
  background: transparent;
  color: var(--fern-circuit);
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  transition: color 200ms ease;
}

.close-overlay:hover { color: var(--pressed-amber); }

.overlay-panel {
  position: relative;
  width: min(680px, 92vw);
  min-height: min(680px, 86vh);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(3rem, 9vw, 7rem);
  text-align: center;
}

.overlay-frame {
  position: absolute;
  inset: 0;
  fill: rgba(42, 36, 56, 0.6);
  stroke: var(--pressed-amber);
  stroke-width: 2px;
}

.overlay-botanical {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  width: 38%;
  height: 58%;
  fill: none;
  stroke: var(--fern-circuit);
  stroke-width: 1.5px;
  opacity: 0.24;
}

.overlay-meta,
.overlay-panel h2,
.overlay-rating,
.overlay-panel p { position: relative; z-index: 1; }
.overlay-meta { display: flex; gap: 1rem; color: var(--pressed-amber); margin-bottom: 0.7rem; }
.overlay-meta span + span { color: var(--pollen-violet); }
.overlay-panel h2 { color: var(--parchment-cream); font-size: clamp(1.6rem, 4vw, 3.4rem); font-weight: 300; letter-spacing: 0.08em; }
.overlay-rating { margin: 1rem 0 1.2rem; color: var(--fern-circuit); }
.overlay-panel p { max-width: 42ch; margin: 0; color: var(--dried-sage); }

@keyframes slowRotate { to { transform: rotate(60deg); } }
@keyframes ruleType { to { transform: scaleX(1); } }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

@media (max-width: 1023px) {
  .honeycomb { width: min(calc((var(--hex-width) * 2) + 12px), 96vw); grid-template-columns: repeat(2, var(--hex-width)); }
  .hex-cell:nth-child(6n+4) { margin-left: 0; }
  .hex-cell:nth-child(4n+3) { margin-left: calc(var(--hex-width) / 2 + 4px); }
}

@media (max-width: 639px) {
  :root { --hex-width: min(85vw, 320px); }
  .honeycomb { width: 100%; grid-template-columns: var(--hex-width); gap: 12px; }
  .hex-cell:nth-child(4n+3) { margin-left: 0; }
  .overlay-panel { min-height: min(560px, 82vh); padding: 4rem 2.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .amber-rule { transform: scaleX(1); }
  .hex-cell { opacity: 1; }
  .rating, .tag { opacity: 1; transform: none; }
}
