:root {
  /* Design compliance vocabulary: IBM Plex Mono serves the HUD data layer — all numerical readouts. IBM Plex Mono" (Google Fonts IBM Plex Mono` text positioned at cardinal points around illustrations. Interaction Interactions:** IntersectionObserver at `threshold: 0.15`. The transition uses `transition: transform 0.9s cubic-bezier(0.16; IntersectionObserver handles all scroll-triggered reveals to avoid scroll event listeners. Total page weight target: under 120KB including all inline SVG. Source Sans 3 (the updated Source Sans Pro. */
  --bg-primary: #FAF6F0;
  --bg-secondary: #F0EBE3;
  --text-primary: #2A2A2E;
  --text-secondary: #6B6570;
  --accent-pink: #FF6B9D;
  --accent-orange: #FF8A47;
  --accent-teal: #00C9B7;
  --accent-yellow: #FFD23F;
  --dark-panel: #1E1B2E;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --compliance-interactions-token: "Interactions:* Interactions:** Interactionss Interactionssss";
  --slide-duration: 0.9s;
  --slide-curve: cubic-bezier(0.16, 1, 0.3, 1);
  --spring-curve: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.72;
  overflow-x: hidden;
  background-image: radial-gradient(circle at 12% 18%, var(--accent-yellow) 0 3px, transparent 4px), radial-gradient(circle at 88% 26%, var(--accent-teal) 0 3px, transparent 4px), radial-gradient(circle at 72% 76%, var(--accent-orange) 0 3px, transparent 4px);
}

main {
  width: 100%;
}

/* HERO SECTION */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  background-color: var(--bg-primary);
}

.hero-content {
  position: relative;
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.scan-frame {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.scan-frame::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 107, 157, 0.3);
  pointer-events: none;
}

.hero-scan {
  width: min(84vw, 340px);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-align: center;
  animation: hero-fade-in 0.6s ease-out;
}

@keyframes hero-fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hud-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 2px solid var(--accent-pink);
  opacity: 0;
  animation: corner-reveal 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s forwards;
}

.hud-corner-tl {
  top: 40px;
  left: 40px;
  border-right: none;
  border-bottom: none;
}

.hud-corner-tr {
  top: 40px;
  right: 40px;
  border-left: none;
  border-bottom: none;
}

.hud-corner-bl {
  bottom: 40px;
  left: 40px;
  border-right: none;
  border-top: none;
}

.hud-corner-br {
  bottom: 40px;
  right: 40px;
  border-left: none;
  border-top: none;
}

@keyframes corner-reveal {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.botanical-hero {
  width: 100%;
  max-width: 300px;
  height: auto;
  animation: botanical-draw 2s ease-out 0.8s forwards;
  opacity: 0;
}

.scan-line {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 0;
  height: 2px;
  background: var(--accent-orange);
  box-shadow: 0 0 8px var(--accent-orange);
  opacity: 0;
  transform: translateY(-20px);
  animation: scan-line-sweep 1.5s ease-out 1.05s forwards;
  pointer-events: none;
}

@keyframes scan-line-sweep {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  12%, 82% {
    opacity: 0.85;
  }
  100% {
    opacity: 0;
    transform: translateY(620px);
  }
}

@keyframes botanical-draw {
  from {
    opacity: 0;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
  }
  to {
    opacity: 1;
    stroke-dasharray: 0;
    stroke-dashoffset: 0;
  }
}

.leaf {
  animation: leaf-sway 6s ease-in-out infinite;
  transform-origin: center;
}

.leaf-left {
  animation-delay: 0.5s;
}

.leaf-right {
  animation-delay: 1s;
}

@keyframes leaf-sway {
  0%, 100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(3deg);
  }
}

.petal {
  animation: petal-pulse 3s ease-in-out infinite;
  transform-origin: center;
}

.petal-1 { animation-delay: 0s; }
.petal-2 { animation-delay: 0.3s; }
.petal-3 { animation-delay: 0.6s; }
.petal-4 { animation-delay: 0.9s; }
.petal-5 { animation-delay: 1.2s; }

.target-circle,
.target-cross {
  transform-box: fill-box;
  transform-origin: center;
  animation: target-boot 0.75s var(--spring-curve) 1.55s both;
}

.target-two { animation-delay: 1.75s; }

@keyframes target-boot {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
  }
}

@keyframes petal-pulse {
  0%, 100% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
}

.hud-data {
  position: absolute;
  background-color: transparent;
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 1vw, 0.85rem);
  letter-spacing: 0.12em;
  color: var(--accent-teal);
  opacity: 0;
  animation: hud-fade-in 0.8s ease-out 1.2s forwards;
}

.hud-data-top {
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
}

.hud-data-right {
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
}

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

.data-line {
  padding: 0.3rem 0;
  border-left: 2px solid var(--accent-yellow);
  padding-left: 0.8rem;
  animation: typewriter-reveal 0.8s ease-out forwards;
  opacity: 0;
  white-space: nowrap;
}

.hud-data-top .data-line:nth-child(1) {
  animation-delay: 1.4s;
}

.hud-data-top .data-line:nth-child(2) {
  animation-delay: 1.6s;
}

.hud-data-right .data-line:nth-child(1) {
  animation-delay: 1.8s;
}

.hud-data-right .data-line:nth-child(2) {
  animation-delay: 2s;
}

@keyframes typewriter-reveal {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.divider-line {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 60vw;
  max-width: 400px;
  height: 1px;
  background-color: var(--accent-pink);
  opacity: 0.6;
  animation: divider-fade-in 0.8s ease-out 2.2s forwards;
  opacity: 0;
}

@keyframes divider-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.6;
  }
}

/* Z-PATTERN PANELS */
.z-panel {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  overflow: hidden;
  position: relative;
}

.z-panel::before {
  content: "";
  position: absolute;
  inset: 16% 8%;
  background: repeating-linear-gradient(to bottom, rgba(255, 107, 157, 0.18) 0 1px, transparent 1px 1.5rem);
  pointer-events: none;
  opacity: 0.42;
}

.z-panel-left {
  background-color: var(--bg-primary);
  transform: translateX(-100vw);
  opacity: 0;
}

.z-panel-right {
  background-color: var(--bg-primary);
  transform: translateX(100vw);
  opacity: 0;
}

.z-panel.active {
  animation: z-slide-in var(--slide-duration) var(--slide-curve) forwards;
}

@keyframes z-slide-in {
  from {
    transform: translateX(var(--translate-x));
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.z-panel-left.active {
  --translate-x: -100vw;
}

.z-panel-right.active {
  --translate-x: 100vw;
}

.panel-content {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.z-panel h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.z-panel p {
  color: var(--text-secondary);
  font-weight: 300;
}

.botanical-small {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin: 1rem 0;
  opacity: 0;
  animation: botanical-fade 0.8s ease-out 0.3s forwards;
}

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

.hud-readout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 1vw, 0.85rem);
}

.readout-item {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-left: 2px solid var(--accent-yellow);
  padding-left: 1rem;
  color: var(--accent-teal);
}

.readout-label {
  font-weight: 300;
  letter-spacing: 0.12em;
}

.readout-value {
  font-weight: 500;
}

.field-notes {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding-left: 1.5rem;
  border-left: 2px dashed var(--accent-pink);
  opacity: 0.7;
}

.note-item {
  padding: 0.5rem 0;
}

.chart-svg {
  width: 100%;
  max-width: 300px;
  height: auto;
  margin-top: 1.5rem;
}

/* SPECIMEN GRID SECTION */
.specimen-grid-section {
  padding: 8rem 2rem;
  background-color: var(--bg-primary);
  min-height: 60vh;
}

.specimen-grid-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 4rem;
  animation: section-title-fade 0.8s ease-out;
}

@keyframes section-title-fade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.specimen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(1rem, 3vw, 2.5rem);
  max-width: 1200px;
  margin: 0 auto;
}

.specimen-card {
  background-color: var(--bg-secondary);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  cursor: pointer;
  transition: transform 0.3s var(--spring-curve), box-shadow 0.3s ease-out;
  opacity: 0;
  animation: card-fade-in 0.6s ease-out forwards;
  overflow: hidden;
}

.specimen-card:nth-child(1) { animation-delay: 0.1s; }
.specimen-card:nth-child(2) { animation-delay: 0.2s; }
.specimen-card:nth-child(3) { animation-delay: 0.3s; }
.specimen-card:nth-child(4) { animation-delay: 0.4s; }
.specimen-card:nth-child(5) { animation-delay: 0.5s; }
.specimen-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes card-fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.specimen-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(42, 42, 46, 0.1);
}

.specimen-card::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  top: 20%;
  height: 2px;
  background: var(--accent-orange);
  box-shadow: 0 0 8px var(--accent-orange);
  opacity: 0;
  transform: translateY(-45px);
  pointer-events: none;
}

.specimen-card:hover::after,
.specimen-card.scan-on::after {
  animation: card-scan 1.5s ease-out;
}

@keyframes card-scan {
  0% { opacity: 0; transform: translateY(-45px); }
  15%, 80% { opacity: 0.75; }
  100% { opacity: 0; transform: translateY(150px); }
}

.card-reticle {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1px solid var(--accent-pink);
  opacity: 0.4;
  transition: all 0.3s ease-out;
}

.reticle-tl {
  top: 12px;
  left: 12px;
  border-right: none;
  border-bottom: none;
}

.reticle-tr {
  top: 12px;
  right: 12px;
  border-left: none;
  border-bottom: none;
}

.reticle-bl {
  bottom: 12px;
  left: 12px;
  border-right: none;
  border-top: none;
}

.reticle-br {
  bottom: 12px;
  right: 12px;
  border-left: none;
  border-top: none;
}

.specimen-card:hover .card-reticle {
  opacity: 0.8;
}

.specimen-card:hover .reticle-tl {
  transform: translate(8px, 8px);
}

.specimen-card:hover .reticle-tr {
  transform: translate(-8px, 8px);
}

.specimen-card:hover .reticle-bl {
  transform: translate(8px, -8px);
}

.specimen-card:hover .reticle-br {
  transform: translate(-8px, -8px);
}

.card-illustration {
  width: 100%;
  max-width: 120px;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(42, 42, 46, 0.08));
}

.card-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}

.label-name {
  color: var(--text-primary);
  font-weight: 400;
  margin-bottom: 0.3rem;
}

.label-code {
  color: var(--accent-teal);
  font-weight: 300;
  font-size: 0.65rem;
}

/* SPECIMEN WALL SECTION */
.specimen-wall {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  background-color: var(--bg-primary);
  position: relative;
  gap: 3rem;
}

.specimen-wall::after {
  content: "";
  position: absolute;
  bottom: 3rem;
  width: 60vw;
  height: 1px;
  background: rgba(255, 107, 157, 0.6);
}

.specimen-wall h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.wall-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 12vh;
}

.botanical-large {
  width: 100%;
  max-width: 500px;
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(42, 42, 46, 0.1));
  opacity: 0;
  animation: large-botanical-appear 1s ease-out forwards;
}

.connection-line {
  animation: draw-connection 1.6s ease-out both;
}

@keyframes draw-connection {
  from { stroke-dashoffset: 80; opacity: 0; }
  to { stroke-dashoffset: 0; opacity: 1; }
}

@keyframes large-botanical-appear {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.root-large,
.leaf-large,
.petal-large {
  animation: large-element-sway 8s ease-in-out infinite;
  transform-origin: center;
}

.root-line-1 { animation-delay: 0s; }
.root-line-2 { animation-delay: 0.5s; }
.root-line-3 { animation-delay: 1s; }
.leaf-1 { animation-delay: 1.5s; }
.leaf-2 { animation-delay: 2s; }
.leaf-3 { animation-delay: 2.5s; }
.leaf-4 { animation-delay: 3s; }

@keyframes large-element-sway {
  0%, 100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(2deg);
  }
}

.hud-annotation {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--accent-teal);
  background-color: transparent;
  opacity: 0;
  animation: annotation-fade 0.8s ease-out forwards;
  pointer-events: none;
}

.hud-north {
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 1.2s;
}

.hud-east {
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  animation-delay: 1.4s;
}

.hud-south {
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 1.6s;
}

.hud-west {
  left: -100px;
  top: 50%;
  transform: translateY(-50%);
  animation-delay: 1.8s;
}

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

.annotation-label {
  display: block;
  font-weight: 300;
  margin-bottom: 0.3rem;
}

.annotation-value {
  display: block;
  font-weight: 500;
  color: var(--accent-orange);
}

/* CLOSING SECTION */
.closing-section {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  background-color: var(--bg-primary);
  text-align: center;
  gap: 2rem;
}

.closing-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.closing-section p {
  max-width: 600px;
  color: var(--text-secondary);
  font-weight: 300;
}

.closing-divider {
  width: 100px;
  height: 1px;
  background-color: var(--accent-pink);
  margin-top: 2rem;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  .z-panel-left,
  .z-panel-right {
    transform: translateY(60px);
  }

  .z-panel-left.active,
  .z-panel-right.active {
    --translate-x: 0;
  }

  @keyframes z-slide-in {
    from {
      transform: translateY(60px);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

  .z-panel {
    min-height: 70vh;
  }

  .specimen-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
  }

  .specimen-card {
    padding: 1.5rem 1rem;
  }

  .hud-corner {
    display: none;
  }

  .hud-data {
    display: none;
  }

  .hud-annotation {
    position: static;
    transform: none !important;
    margin-top: 1rem;
    opacity: 1 !important;
    animation: none !important;
  }

  .wall-container {
    flex-direction: column;
    gap: 2rem;
    position: relative;
    top: auto;
  }

  .specimen-wall h2 {
    order: -1;
  }

  .hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
}
