:root {
  /* Fonts wording: IBM Plex Mono used only as a tertiary accent face for labels IBM Plex Mono" (Google Fonts Interaction Details:** IntersectionObserver rootMargin. IntersectionObserver with `threshold: 0.3`. Space Grotesk + DM Sans Space Grotesk" (Google Fonts */
  --details-token: "Details:";
  --details-star-token: "Details*";
  --morning: #e8f5e9;
  --amber: #d4a03c;
  --teal: #0d3b3b;
  --leaf: #1a2e1a;
  --body: #2d3a2d;
  --mint-text: #d4e0d4;
  --petal: #c4837a;
  --earth: #1a1a14;
  --green: #2d6a2d;
  --glass: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.22);
  --left-margin: clamp(2rem, 8vw, 15%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "DM Sans", Inter, system-ui, sans-serif;
  color: var(--body);
  background-color: var(--earth);
  background-image: linear-gradient(180deg, #e8f5e9 0%, #d4a03c22 35%, #0d3b3b 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,0.42), transparent 22%),
    radial-gradient(circle at 70% 44%, rgba(196,131,122,0.16), transparent 28%),
    radial-gradient(circle at 38% 77%, rgba(212,160,60,0.14), transparent 31%),
    repeating-linear-gradient(110deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 12px);
  mix-blend-mode: screen;
}

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

#pollenCanvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  will-change: transform;
}

.botanical-field {
  position: fixed;
  inset: -12vh -6vw;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

.botanical {
  position: absolute;
  fill: none;
  stroke: rgba(26, 46, 26, 0.22);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.specimen-a { width: min(42vw, 420px); left: 55%; top: 7vh; transform: rotate(8deg); }
.specimen-b { width: min(54vw, 590px); left: 7%; top: 42vh; stroke: rgba(45, 106, 45, 0.18); transform: rotate(-7deg); }
.specimen-c { width: min(45vw, 440px); left: 63%; top: 92vh; stroke: rgba(212, 160, 60, 0.26); transform: rotate(4deg); }
.stipple { stroke: rgba(196, 131, 122, 0.32); }

.botanical-path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 2s ease-in-out;
}

.botanical-path.visible { stroke-dashoffset: 0; }

.canopy-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--left-margin);
  background: rgba(232, 245, 233, 0.18);
  backdrop-filter: blur(16px) saturate(1.4) hue-rotate(3deg);
  -webkit-backdrop-filter: blur(16px) saturate(1.4) hue-rotate(3deg);
  border-bottom: 1px solid rgba(255,255,255,0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
}

.brand {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--leaf);
  font-size: 1.35rem;
  display: inline-flex;
  align-items: center;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  margin: 0 5px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 rgba(212, 160, 60, 0.8);
  animation: pulse 1.8s ease-in-out infinite;
}

.top-nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2.5rem);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--leaf);
}

.top-nav a,
.text-link {
  background-image: linear-gradient(var(--green), var(--green));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: background-size 300ms ease-out, color 300ms ease-out;
}

.top-nav a:hover,
.text-link:hover { background-size: 100% 1px; color: var(--green); }

.left-rail {
  position: fixed;
  top: 96px;
  bottom: 32px;
  left: clamp(0.8rem, 2.2vw, 2rem);
  width: 48px;
  z-index: 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 18px 0;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  backdrop-filter: blur(16px) saturate(1.4) hue-rotate(3deg);
  -webkit-backdrop-filter: blur(16px) saturate(1.4) hue-rotate(3deg);
}

.left-rail::before {
  content: "";
  width: 1px;
  flex: 1;
  min-height: 20px;
  order: 2;
  background: linear-gradient(180deg, transparent, rgba(26,46,26,0.25), transparent);
}

.rail-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: rgba(26, 46, 26, 0.6);
  transition: filter 400ms ease-out, color 400ms ease-out, transform 400ms ease-out;
}

.rail-icon.active {
  color: var(--amber);
  filter: drop-shadow(0 0 8px #d4a03c88);
  transform: scale(1.08);
}

main { position: relative; z-index: 2; }

.wing {
  min-height: 82vh;
  padding: 96px 0;
  position: relative;
}

.hero-wing { min-height: 100vh; padding-top: 168px; }
.evening-wing { min-height: 76vh; }

.glass-card {
  position: relative;
  overflow: hidden;
  margin-left: var(--left-margin);
  padding: clamp(1.7rem, 4vw, 3.75rem);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px) saturate(1.4) hue-rotate(3deg);
  -webkit-backdrop-filter: blur(16px) saturate(1.4) hue-rotate(3deg);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: backdrop-filter 300ms ease-out, border-color 300ms ease-out, transform 300ms ease-out;
}

.glass-card:hover {
  backdrop-filter: blur(20px) saturate(1.5) hue-rotate(5deg);
  -webkit-backdrop-filter: blur(20px) saturate(1.5) hue-rotate(5deg);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--d1x, 18%) var(--d1y, 22%), rgba(255,255,255,0.30) 0 3px, transparent 8px),
    radial-gradient(circle at var(--d2x, 74%) var(--d2y, 18%), rgba(255,255,255,0.24) 0 2px, transparent 7px),
    radial-gradient(circle at var(--d3x, 84%) var(--d3y, 72%), rgba(255,255,255,0.22) 0 4px, transparent 9px),
    radial-gradient(circle at var(--d4x, 31%) var(--d4y, 78%), rgba(255,255,255,0.20) 0 2px, transparent 6px);
}

.glass-card::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -72px;
  width: 260px;
  height: 330px;
  opacity: 0.13;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 320' fill='none' stroke='%231a2e1a' stroke-width='2'%3E%3Cpath d='M120 305C116 225 124 148 114 52'/%3E%3Cpath d='M116 214C70 185 45 151 33 102C80 112 112 150 116 214Z'/%3E%3Cpath d='M121 187C164 152 186 111 188 62C145 78 124 118 121 187Z'/%3E%3Cpath d='M119 252C69 236 31 202 16 149C73 157 111 194 119 252Z'/%3E%3Cpath d='M122 244C177 224 211 184 222 128C166 141 132 181 122 244Z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.hero-card { width: min(70vw, 920px); --d1x: 23%; --d1y: 18%; }
.secondary-card { width: min(55vw, 760px); background: rgba(255, 255, 255, 0.10); }
.offset-card { margin-top: 48px; }
.wide-card { width: min(60vw, 820px); }
.narrow-card { width: min(45vw, 620px); }
.evening-card { width: min(60vw, 790px); color: var(--mint-text); background: rgba(13, 59, 59, 0.22); }

.catalog-label {
  display: block;
  margin-bottom: 18px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
}

.evening-card .catalog-label { color: var(--amber); }

h1, h2 {
  margin: 0;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--leaf);
}

h1 { font-size: clamp(2.4rem, 5vw, 4.5rem); max-width: 13ch; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
.evening-card h2 { color: var(--morning); }

p {
  margin: 24px 0 0;
  max-width: 62ch;
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  line-height: 1.65;
  letter-spacing: 0.01em;
}

.hero-type {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid #d4a03c;
  width: 0;
  animation: typeHero 2.5s steps(32) 0.8s forwards, blink 0.8s step-end 0.8s 7 forwards, cursorFade 0.5s ease 6.4s forwards;
}

.type-heading {
  min-height: 1.12em;
}

.type-heading.typing::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 0.85em;
  margin-left: 5px;
  vertical-align: -0.08em;
  background: var(--amber);
  animation: blinkBlock 0.8s step-end infinite;
}

.text-link {
  display: inline-block;
  margin-top: 26px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
}

.vine-divider {
  margin: 64px 0 0 var(--left-margin);
  width: min(58vw, 700px);
  height: 72px;
}

.vine-divider.short { width: min(44vw, 520px); }
.vine-divider svg { width: 100%; height: 100%; fill: none; stroke: rgba(26,46,26,0.34); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.site-footer {
  position: relative;
  z-index: 2;
  min-height: 180px;
  display: flex;
  align-items: center;
  padding: 48px var(--left-margin) 72px;
  color: var(--mint-text);
  background: linear-gradient(180deg, transparent, rgba(26,26,20,0.42));
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8125rem;
}

.site-footer span { color: var(--amber); }

@keyframes pulse {
  0%, 100% { transform: scale(0.82); box-shadow: 0 0 0 0 rgba(212,160,60,0.6); }
  50% { transform: scale(1); box-shadow: 0 0 0 9px rgba(212,160,60,0); }
}

@keyframes typeHero { to { width: 100%; } }
@keyframes blink { 0%, 100% { border-color: #d4a03c; } 50% { border-color: transparent; } }
@keyframes cursorFade { to { border-right-color: transparent; } }
@keyframes blinkBlock { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

@media (max-width: 860px) {
  .top-nav { gap: 0.8rem; font-size: 0.68rem; }
  .left-rail { left: 0.6rem; width: 40px; }
  .hero-card, .secondary-card, .wide-card, .narrow-card, .evening-card { width: calc(100vw - var(--left-margin) - 1.5rem); }
  .glass-card { margin-left: calc(var(--left-margin) + 18px); }
  .vine-divider { margin-left: calc(var(--left-margin) + 18px); width: 72vw; }
  .hero-type { white-space: normal; animation: none; width: auto; border-right-color: transparent; }
}
