@charset "UTF-8";

[hidden] { display: none !important; }

:root {
  --bg: #f4f3ec;
  --bg-soft: #eaede6;
  --surface: #fffdf7;
  --surface-muted: #eef0e9;
  --ink: #1f2b25;
  --ink-soft: #4f5d55;
  --muted: #748078;
  --line: #d7dbd1;
  --accent: #2e7a54;
  --accent-dark: #123d2a;
  --accent-soft: #dcebe1;
  --earth: #8b6a43;
  --earth-soft: #eadfcc;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(49, 69, 55, 0.14);
  --radius-card: 8px;
  --radius-button: 999px;
  --nav-height: 72px;
  font-family: "Segoe UI", "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(46, 122, 84, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(46, 122, 84, 0.04) 1px, transparent 1px),
    var(--bg);
  background-size: 56px 56px;
  color: var(--ink);
  font-family: var(--font-sans, "Segoe UI", "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif);
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}

.section-panel {
  scroll-margin-top: 92px;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  right: 0;
  left: 0;
  height: var(--nav-height);
  border-bottom: 1px solid rgba(215, 219, 209, 0.9);
  background: rgba(244, 243, 236, 0.9);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(1240px, calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  position: relative;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid rgba(46, 122, 84, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 253, 247, 0.95), rgba(220, 235, 225, 0.85)),
    var(--surface);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
  overflow: hidden;
}

.leaf-core {
  position: absolute;
  left: 13px;
  top: 9px;
  width: 18px;
  height: 25px;
  border-radius: 80% 0 80% 0;
  background: linear-gradient(145deg, #75a77d, var(--accent));
  transform: rotate(18deg);
}

.leaf-core::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 8px;
  width: 1px;
  height: 19px;
  background: rgba(255, 255, 255, 0.58);
  transform: rotate(-10deg);
}

.scan-dot {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-dark);
  opacity: 0.65;
}

.dot-a {
  right: 9px;
  top: 9px;
}

.dot-b {
  right: 6px;
  bottom: 12px;
}

.dot-c {
  left: 8px;
  bottom: 8px;
}

.brand-text {
  display: grid;
  gap: 1px;
}

.brand-text strong {
  font-size: 16px;
  line-height: 1.25;
}

.brand-text span {
  color: var(--muted);
  font-size: 12px;
}

.nav-menu {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(215, 219, 209, 0.92);
  border-radius: var(--radius-button);
  padding: 4px;
  background: rgba(255, 253, 247, 0.7);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 66px;
  height: 36px;
  border-radius: var(--radius-button);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: color 180ms ease, background 180ms ease;
}

.nav-link.active {
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: var(--radius-button);
  padding: 0 18px;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.nav-cta,
.button.primary {
  color: var(--white);
  background: var(--accent-dark);
  box-shadow: 0 12px 28px rgba(18, 61, 42, 0.18);
}

.button.secondary {
  color: var(--accent-dark);
  border-color: rgba(46, 122, 84, 0.32);
  background: rgba(255, 253, 247, 0.78);
}

.button.tertiary {
  color: var(--ink-soft);
  border-color: var(--line);
  background: var(--surface);
}

.button.small {
  min-height: 34px;
  padding: 0 13px;
  font-size: 13px;
}

.nav-cta:hover,
.button:hover,
.filter-chip:hover,
.suggest-tags button:hover,
.tool-button:hover {
  transform: translateY(-1px);
}

.button:active,
.nav-cta:active,
.filter-chip:active,
.suggest-tags button:active,
.tool-button:active,
.carousel-card:active {
  transform: translateY(1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--accent-dark);
}

.hero {
  position: relative;
  min-height: 760px;
  padding: 144px 0 72px;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 82% 32%, rgba(46, 122, 84, 0.12), transparent 42%),
    linear-gradient(135deg, rgba(255, 253, 247, 0.9), rgba(234, 237, 230, 0.5));
}

.hero-background::before {
  content: "";
  position: absolute;
  left: 5%;
  bottom: 8%;
  width: 340px;
  height: 420px;
  opacity: 0.15;
  background:
    linear-gradient(116deg, transparent 47%, rgba(46, 122, 84, 0.42) 48%, transparent 50%),
    linear-gradient(64deg, transparent 48%, rgba(46, 122, 84, 0.28) 49%, transparent 51%);
  border-radius: 48% 52% 52% 48%;
  transform: rotate(-12deg);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(650px, 1fr) minmax(0, 560px);
  gap: 44px;
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 24px;
}

.quiet-label {
  margin: 0;
  color: var(--accent);
  font-size: 14px;
  font-weight: 900;
}

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

h1 {
  margin-bottom: 0;
  font-size: 48px;
  line-height: 1.12;
  font-weight: 900;
  text-wrap: balance;
}

h1 span {
  display: block;
}

h2 {
  margin-bottom: 12px;
  font-size: 38px;
  line-height: 1.2;
  font-weight: 900;
  text-wrap: balance;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 900;
}

.hero-lead {
  max-width: 660px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 19px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.model-card {
  position: relative;
  min-height: 540px;
  border: 1px solid rgba(215, 219, 209, 0.92);
  border-radius: var(--radius-card);
  background:
    radial-gradient(circle at 50% 46%, rgba(164, 195, 150, 0.24), transparent 38%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    #14261d;
  background-size: auto, 34px 34px, 34px 34px, auto;
  box-shadow: var(--shadow);
  overflow: hidden;
  isolation: isolate;
}

.model-card::after,
.model-viewport::after {
  content: "";
  position: absolute;
  inset: 18px;
  pointer-events: none;
  border: 1px solid rgba(46, 122, 84, 0.16);
  border-radius: var(--radius-card);
}

.scan-plane {
  position: absolute;
  inset: 9% 7%;
  border: 1px solid rgba(46, 122, 84, 0.16);
  border-radius: 50%;
  transform: rotateX(72deg) rotateZ(-10deg);
}

.scan-plane::before,
.scan-plane::after {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(46, 122, 84, 0.12);
  border-radius: inherit;
}

.scan-plane::after {
  inset: 26%;
}

.hero-plant {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 49%;
  width: 84%;
  max-width: 620px;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 28px 34px rgba(26, 43, 36, 0.18));
  animation: floatPlant 7s ease-in-out infinite;
}

.hero-fallback-plant {
  transition: opacity 420ms cubic-bezier(0.16, 1, 0.3, 1), transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-ply-canvas {
  width: min(86%, 620px);
  height: min(74%, 500px);
  opacity: 0;
  transition: opacity 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.model-card.has-hero-model .hero-ply-canvas {
  opacity: 1;
}

.model-card.has-hero-model .hero-fallback-plant {
  opacity: 0;
}

.tech-tag {
  position: absolute;
  z-index: 3;
  border: 1px solid rgba(46, 122, 84, 0.22);
  border-radius: var(--radius-button);
  padding: 8px 12px;
  color: var(--accent-dark);
  background: rgba(255, 253, 247, 0.86);
  box-shadow: 0 10px 24px rgba(49, 69, 55, 0.1);
  font-size: 12px;
  font-weight: 900;
}

.tag-one {
  top: 54px;
  left: 42px;
}

.tag-two {
  top: 96px;
  right: 46px;
}

.tag-three {
  right: 34px;
  bottom: 82px;
}

.tag-four {
  left: 54px;
  bottom: 48px;
}

.scan-ring {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(46, 122, 84, 0.26);
  border-radius: 50%;
  pointer-events: none;
}

.ring-one {
  width: 420px;
  height: 160px;
  left: 15%;
  top: 47%;
  transform: rotate(-8deg);
  animation: ringPulse 4s ease-in-out infinite;
}

.ring-two {
  width: 270px;
  height: 96px;
  right: 7%;
  top: 30%;
  transform: rotate(16deg);
}

.axis {
  position: absolute;
  z-index: 1;
  background: rgba(46, 122, 84, 0.42);
}

.axis-x {
  right: 58px;
  bottom: 56px;
  width: 116px;
  height: 1px;
}

.axis-y {
  right: 58px;
  bottom: 56px;
  width: 1px;
  height: 92px;
}

.process-section,
.purpose-section,
.asset-public-section {
  padding: 84px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-heading.compact {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}

.section-heading p:not(.quiet-label) {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 17px;
}

.purpose-section .section-heading.compact {
  max-width: 1080px;
}

.purpose-section .section-heading.compact p:not(.quiet-label) {
  white-space: nowrap;
}

.process-card {
  display: grid;
  grid-template-columns: 1fr 28px 1fr 28px 1fr 28px 1fr;
  align-items: stretch;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 14px;
  background: rgba(255, 253, 247, 0.76);
  box-shadow: 0 18px 50px rgba(49, 69, 55, 0.09);
}

.process-step {
  min-height: 210px;
  border: 1px solid rgba(215, 219, 209, 0.82);
  border-radius: var(--radius-card);
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(220, 235, 225, 0.55), rgba(255, 253, 247, 0.92)),
    var(--surface);
}

.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 26px;
  border: 1px solid rgba(46, 122, 84, 0.26);
  border-radius: var(--radius-card);
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-size: 13px;
  font-weight: 900;
}

.process-step p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.flow-arrow {
  position: relative;
  align-self: center;
  height: 1px;
  background: rgba(46, 122, 84, 0.34);
}

.flow-arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -4px;
  width: 8px;
  height: 8px;
  border-top: 1px solid rgba(46, 122, 84, 0.55);
  border-right: 1px solid rgba(46, 122, 84, 0.55);
  transform: rotate(45deg);
}

.asset-public-section {
  background:
    linear-gradient(90deg, rgba(46, 122, 84, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(46, 122, 84, 0.045) 1px, transparent 1px),
    linear-gradient(135deg, rgba(255, 253, 247, 0.94), rgba(220, 235, 225, 0.48));
  background-size: 42px 42px, 42px 42px, auto;
}

.asset-public-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 28px;
  align-items: start;
}

.asset-map-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.asset-map-card {
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 18px;
  background: rgba(255, 253, 247, 0.88);
  box-shadow: 0 14px 36px rgba(49, 69, 55, 0.08);
}

.asset-map-card.feature {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.asset-map-preview {
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(46, 122, 84, 0.18);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--surface-muted);
}

.asset-map-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.asset-map-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 18px;
  line-height: 1.25;
}

.asset-map-card span:not(.asset-code) {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.asset-map-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.asset-code {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-bottom: 32px;
  border: 1px solid rgba(46, 122, 84, 0.22);
  border-radius: var(--radius-button);
  padding: 0 11px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-size: 12px;
  font-weight: 900;
}

.catalog-section,
.viewer-section {
  padding: 92px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.stat-card {
  display: grid;
  gap: 8px;
  min-height: 118px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 20px;
  background: var(--surface);
}

.stat-card span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.stat-card strong {
  font-size: 32px;
  line-height: 1.1;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}

.filter-chip,
.suggest-tags button,
.tool-button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-button);
  padding: 0 14px;
  color: var(--ink-soft);
  background: rgba(255, 253, 247, 0.82);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  transition: transform 180ms ease, color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.filter-chip.active,
.tool-button.active,
.suggest-tags button.active {
  color: var(--accent-dark);
  border-color: rgba(46, 122, 84, 0.34);
  background: var(--accent-soft);
}

.plant-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.catalog-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.catalog-more-wrap[hidden] {
  display: none;
}

.catalog-more-button {
  min-width: 148px;
}

.plant-card {
  display: grid;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(49, 69, 55, 0.08);
}

.plant-card[hidden] {
  display: none;
}

.empty-card {
  grid-column: 1 / -1;
}

.empty-card .plant-card-body {
  min-height: 160px;
  align-content: center;
  text-align: center;
}

.empty-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.plant-thumb {
  position: relative;
  justify-self: stretch;
  width: 100%;
  height: 200px;
  min-height: 200px;
  max-height: 200px;
  overflow: hidden;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  background: var(--surface-muted);
  box-shadow: 0 18px 36px rgba(20, 38, 29, 0.16);
}

.plant-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
  box-shadow: none;
}

.plant-thumb .asset-thumb {
  position: absolute;
  inset: 0;
  transition: opacity 420ms cubic-bezier(0.16, 1, 0.3, 1), transform 520ms cubic-bezier(0.16, 1, 0.3, 1), filter 420ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 420ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.plant-thumb .preview-thumb {
  opacity: 0;
  filter: saturate(1.08) contrast(1.05);
}

.plant-card:hover .preview-thumb,
.plant-card:focus-within .preview-thumb {
  opacity: 1;
  transform: scale(1.035);
}

.plant-card:hover .base-thumb,
.plant-card:focus-within .base-thumb {
  opacity: 0.28;
}

.thumb-water img {
  filter: hue-rotate(18deg) saturate(0.96) brightness(1.04);
}

.thumb-rare img {
  filter: sepia(0.12) saturate(1.05) brightness(0.98);
}

.thumb-marsh img {
  filter: hue-rotate(-12deg) saturate(0.88) contrast(0.96);
}

.preview-layer {
  display: none;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-button);
  padding: 0 10px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.plant-thumb .status-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}

.status-badge.complete {
  color: var(--accent-dark);
  border-color: rgba(46, 122, 84, 0.22);
  background: rgba(220, 235, 225, 0.94);
}

.status-badge.review {
  color: #5f4a1d;
  border-color: rgba(139, 106, 67, 0.22);
  background: #f2ead6;
}

.status-badge.processing {
  color: #46534d;
  border-color: rgba(116, 128, 120, 0.24);
  background: #e8ece5;
}

.plant-card-body {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.plant-card h3 {
  margin-bottom: 2px;
}

.latin {
  margin-bottom: 0;
  color: var(--earth);
  font-size: 14px;
  font-style: italic;
  line-height: 1.35;
}

.plant-meta,
.detail-list {
  margin: 0;
}

.plant-meta div,
.detail-list div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid rgba(215, 219, 209, 0.72);
}

.plant-meta dt,
.detail-list dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.plant-meta dd,
.detail-list dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 10px;
  background: rgba(255, 253, 247, 0.82);
}

.search-panel input {
  min-width: 0;
  height: 46px;
  border: 1px solid transparent;
  border-radius: var(--radius-card);
  padding: 0 16px;
  color: var(--ink);
  background: var(--white);
  outline: none;
}

.search-panel input::placeholder {
  color: #7b867f;
}

.search-panel input:focus {
  border-color: rgba(46, 122, 84, 0.5);
  box-shadow: 0 0 0 3px rgba(46, 122, 84, 0.13);
}

.viewer-search-results {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  margin: 6px 0 14px;
}

.viewer-search-results[hidden] {
  display: none;
}

.viewer-search-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border: 1px solid rgba(46, 122, 84, 0.24);
  border-radius: var(--radius-button);
  padding: 0 13px;
  color: var(--accent-dark);
  background: rgba(220, 235, 225, 0.74);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(49, 69, 55, 0.08);
}

.viewer-search-chip.empty {
  color: var(--muted);
  background: rgba(255, 253, 247, 0.92);
}

.suggest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.suggest-tags:empty {
  min-height: 36px;
}

.viewer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: stretch;
}

.viewer-stage,
.detail-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: 0 18px 48px rgba(49, 69, 55, 0.09);
}

.viewer-stage {
  min-width: 0;
  overflow: hidden;
}

.viewer-toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  overflow-x: auto;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.model-viewport {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 46%, rgba(164, 195, 150, 0.24), transparent 38%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    #14261d;
  background-size: auto, 34px 34px, 34px 34px, auto;
  perspective: 1200px;
  isolation: isolate;
}

.ply-canvas {
  position: absolute;
  z-index: 5;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
}

.ply-canvas:active {
  cursor: grabbing;
}

.viewer-empty {
  position: absolute;
  z-index: 7;
  left: 50%;
  top: 50%;
  display: grid;
  gap: 8px;
  width: min(360px, calc(100% - 48px));
  border: 1px solid rgba(18, 61, 42, 0.18);
  border-radius: var(--radius-card);
  padding: 16px;
  color: var(--accent-dark);
  background: rgba(255, 253, 247, 0.9);
  text-align: center;
  transform: translate(-50%, -50%);
}

.viewer-empty[hidden] {
  display: none;
}

.viewer-empty strong {
  font-size: 16px;
  line-height: 1.35;
}

.viewer-empty span {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
}

.viewport-grid {
  position: absolute;
  pointer-events: none;
  left: 11%;
  right: 11%;
  bottom: 12%;
  height: 32%;
  border: 1px solid rgba(46, 122, 84, 0.18);
  border-radius: 50%;
  transform: rotateX(74deg);
  background:
    repeating-linear-gradient(0deg, transparent 0 18px, rgba(46, 122, 84, 0.12) 19px),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(46, 122, 84, 0.12) 19px);
}

.viewer-plant {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 48%;
  width: min(72%, 620px);
  transform: translate(-50%, -50%) rotateY(0deg);
  filter: drop-shadow(0 30px 34px rgba(26, 43, 36, 0.2));
  transform-style: preserve-3d;
}

.viewer-plant.rotating {
  animation: modelSpin 9s linear infinite;
}

.viewport-ring {
  position: absolute;
  z-index: 3;
  border: 1px solid rgba(46, 122, 84, 0.28);
  border-radius: 50%;
  pointer-events: none;
}

.main-ring {
  left: 20%;
  top: 38%;
  width: 58%;
  height: 22%;
  transform: rotate(-8deg);
}

.small-ring {
  right: 16%;
  top: 24%;
  width: 22%;
  height: 10%;
  transform: rotate(18deg);
}

.point-cloud {
  position: absolute;
  pointer-events: none;
  z-index: 2;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(46, 122, 84, 0.55);
  box-shadow:
    32px 10px 0 rgba(46, 122, 84, 0.22),
    78px 40px 0 rgba(139, 106, 67, 0.25),
    118px 8px 0 rgba(46, 122, 84, 0.18),
    152px 74px 0 rgba(46, 122, 84, 0.22),
    210px 38px 0 rgba(139, 106, 67, 0.2),
    260px 96px 0 rgba(46, 122, 84, 0.18);
  animation: pointDrift 5s ease-in-out infinite;
}

.point-set-a {
  left: 15%;
  top: 24%;
}

.point-set-b {
  right: 33%;
  bottom: 28%;
  animation-delay: 900ms;
}

.interaction-hints {
  position: absolute;
  pointer-events: none;
  z-index: 6;
  left: 18px;
  bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.interaction-hints span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(18, 61, 42, 0.18);
  border-radius: var(--radius-button);
  padding: 0 10px;
  color: var(--accent-dark);
  background: rgba(255, 253, 247, 0.8);
  font-size: 12px;
  font-weight: 900;
}

.loader {
  position: absolute;
  pointer-events: none;
  z-index: 6;
  top: 18px;
  right: 18px;
  bottom: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 12px;
  width: min(270px, calc(100% - 36px));
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: var(--radius-card);
  padding: 12px;
  color: var(--accent-dark);
  background: rgba(255, 253, 247, 0.88);
  box-shadow: 0 10px 30px rgba(5, 24, 16, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.loader span,
.loader strong {
  font-size: 12px;
  font-weight: 900;
}

.loader i {
  grid-column: 1 / -1;
  position: relative;
  height: 6px;
  border-radius: var(--radius-button);
  background: rgba(46, 122, 84, 0.14);
  overflow: hidden;
}

.loader i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--zoom-bar-width, 72%);
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.18s ease-out;
}

.viewer-carousel {
  border-top: 1px solid var(--line);
  overflow: hidden;
  background: #fbfaf4;
}

.carousel-track {
  display: flex;
  gap: 10px;
  width: max-content;
  padding: 12px;
  animation: carouselMove 24s linear infinite;
}

.viewer-carousel:hover .carousel-track {
  animation-play-state: paused;
}

.carousel-card {
  display: grid;
  grid-template-columns: 58px 118px;
  grid-template-rows: auto auto;
  gap: 4px 10px;
  align-items: center;
  min-width: 202px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 8px;
  text-align: left;
  background: var(--surface);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.carousel-card.active {
  border-color: rgba(46, 122, 84, 0.38);
  background: var(--accent-soft);
}

.mini-thumb {
  grid-row: 1 / 3;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border: 1px solid rgba(46, 122, 84, 0.18);
  border-radius: 16px;
  background: var(--surface-muted);
}

.mini-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.carousel-card strong {
  font-size: 14px;
  line-height: 1.25;
}

.carousel-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.detail-panel {
  align-self: stretch;
  padding: 22px;
}

.detail-header {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.detail-header h3 {
  margin-bottom: 0;
  font-size: 28px;
}

.detail-header p {
  margin-bottom: 0;
  color: var(--earth);
  font-style: italic;
  font-weight: 700;
}

.detail-list div {
  grid-template-columns: 88px 1fr;
}

.detail-description {
  margin: 18px 0 0;
  border: 1px solid rgba(46, 122, 84, 0.18);
  border-radius: var(--radius-card);
  padding: 14px;
  color: var(--ink-soft);
  background: var(--accent-soft);
  font-size: 14px;
}

.model-file-link {
  width: 100%;
  margin-top: 14px;
}

.purpose-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.purpose-card {
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 22px;
  background: var(--surface);
  box-shadow: 0 14px 38px rgba(49, 69, 55, 0.08);
}

.purpose-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 26px;
  border: 1px solid rgba(46, 122, 84, 0.26);
  border-radius: var(--radius-card);
  color: var(--accent-dark);
  background:
    linear-gradient(135deg, var(--accent-soft), rgba(255, 253, 247, 0.84));
  font-size: 12px;
  font-weight: 900;
}

.purpose-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.site-footer {
  padding: 42px 0;
  color: #edf5ef;
  background: var(--accent-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 28px;
  align-items: start;
}

.site-footer strong {
  display: block;
  margin-bottom: 8px;
  font-size: 17px;
}

.site-footer p {
  margin-bottom: 0;
  color: rgba(237, 245, 239, 0.76);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.site-footer a {
  color: rgba(237, 245, 239, 0.88);
  font-size: 14px;
  font-weight: 800;
}

.copyright {
  font-size: 13px;
  text-align: right;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes floatPlant {
  0%,
  100% {
    transform: translate(-50%, -50%) translateY(0);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-12px);
  }
}

@keyframes ringPulse {
  0%,
  100% {
    opacity: 0.8;
    transform: rotate(-8deg) scale(1);
  }
  50% {
    opacity: 0.42;
    transform: rotate(-8deg) scale(1.04);
  }
}

@keyframes modelSpin {
  0% {
    transform: translate(-50%, -50%) rotateY(0deg);
  }
  50% {
    transform: translate(-50%, -50%) rotateY(10deg) translateY(-8px);
  }
  100% {
    transform: translate(-50%, -50%) rotateY(0deg);
  }
}

@keyframes pointDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
    opacity: 0.8;
  }
  50% {
    transform: translate3d(12px, -8px, 0);
    opacity: 0.45;
  }
}


@keyframes carouselMove {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-424px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .viewer-plant.rotating,
  .carousel-track {
    animation: none !important;
  }
}

@media (max-width: 1180px) {
  h1 {
    font-size: 48px;
  }

  .hero-grid,
  .viewer-layout {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 720px;
  }

  .plant-grid,
  .purpose-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-card {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-card .flow-arrow {
    display: none;
  }

  .asset-public-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .container,
  .nav-shell {
    width: min(100% - 32px, 1180px);
  }

  .nav-shell {
    grid-template-columns: 1fr auto;
  }

  .menu-toggle {
    display: inline-block;
  }

  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border-radius: var(--radius-card);
    padding: 10px;
  }

  body.menu-open .nav-menu {
    display: flex;
  }

  .nav-link {
    justify-content: flex-start;
    width: 100%;
    padding: 0 14px;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 116px 0 52px;
  }

  .hero-grid {
    gap: 34px;
  }

  h1 {
    font-size: 39px;
  }

  h2 {
    font-size: 31px;
  }

  .hero-lead {
    font-size: 17px;
  }

  .model-card {
    min-height: 430px;
  }

  .tech-tag {
    font-size: 11px;
  }

  .tag-three,
  .tag-four {
    display: none;
  }


  .purpose-section .section-heading.compact p:not(.quiet-label) {
    white-space: normal;
  }

  .stats-grid,
  .plant-grid,
  .purpose-grid,
  .asset-map-grid {
    grid-template-columns: 1fr;
  }

  .asset-map-card.feature {
    grid-template-columns: 1fr;
  }

  .process-card {
    grid-template-columns: 1fr;
  }

  .flow-arrow {
    width: 1px;
    height: 28px;
    justify-self: center;
  }

  .flow-arrow::after {
    top: auto;
    right: -4px;
    bottom: 0;
    transform: rotate(135deg);
  }

  .search-panel {
    grid-template-columns: 1fr;
  }

  .search-button {
    width: 100%;
  }

  .viewer-toolbar {
    padding-bottom: 12px;
  }

  .model-viewport {
    min-height: 470px;
  }

  .interaction-hints {
    right: 18px;
    bottom: 88px;
  }

  .loader {
    top: 14px;
    right: 14px;
    bottom: auto;
    left: auto;
    width: min(250px, calc(100% - 28px));
  }

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

  .copyright {
    text-align: left;
  }
}

@media (max-width: 540px) {
  .loader {
    top: 12px;
    right: 12px;
    width: min(230px, calc(100% - 24px));
    padding: 10px 11px;
  }

  .container,
  .nav-shell {
    width: min(100% - 24px, 1180px);
  }

  .brand-text span {
    display: none;
  }

  h1 {
    font-size: 33px;
  }

  h2 {
    font-size: 27px;
  }

  .hero-actions,
  .card-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .model-card {
    min-height: 350px;
  }

  .hero-plant {
    width: 104%;
  }

  .tech-tag {
    padding: 7px 9px;
  }

  .tag-one {
    left: 20px;
    top: 28px;
  }

  .tag-two {
    right: 20px;
    top: 68px;
  }

  .model-viewport {
    min-height: 430px;
  }

  .viewer-plant {
    width: 104%;
  }

  .interaction-hints span {
    font-size: 11px;
  }

  .plant-meta div,
  .detail-list div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

.tool-button:not([data-control]) {
  cursor: default;
  opacity: 0.88;
}

/* ========================================================================== */
/* ver1.1 — Seasonal Ecology Archive                                           */
/* ========================================================================== */

:root {
  --bg: #f7f1e6;
  --bg-soft: #efe7d8;
  --surface: #fffaf0;
  --surface-muted: #f2ecdf;
  --ink: #1f311f;
  --ink-soft: #465244;
  --muted: #6f776a;
  --line: #ddd2bd;
  --accent: #3f5f2f;
  --accent-dark: #243e20;
  --accent-soft: #dce5cd;
  --earth: #d86e43;
  --earth-soft: #f4d2be;
  --season-blue: #a9cee5;
  --season-blue-deep: #3e7899;
  --season-yellow: #efd188;
  --season-yellow-deep: #8a6817;
  --season-lilac: #cbbbe0;
  --season-lilac-deep: #6c568d;
  --viewer-black: #050705;
  --white: #fff;
  --shadow: 0 22px 58px rgba(53, 62, 42, 0.12);
  --radius-card: 14px;
  --radius-button: 10px;
  --nav-height: 78px;
  --catalog-preview-ratio: 16 / 10;
}

body {
  background:
    radial-gradient(circle at 5% 4%, rgba(216, 110, 67, 0.09), transparent 28%),
    radial-gradient(circle at 95% 28%, rgba(169, 206, 229, 0.16), transparent 30%),
    linear-gradient(180deg, #fbf7ef 0%, var(--bg) 45%, #f2eadb 100%);
  color: var(--ink);
}

body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  opacity: 0.26;
  pointer-events: none;
  background-image: radial-gradient(rgba(63, 95, 47, 0.25) 0.7px, transparent 0.7px);
  background-size: 18px 18px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

::selection {
  background: var(--season-yellow);
  color: var(--accent-dark);
}

:focus-visible {
  outline: 3px solid var(--season-blue-deep);
  outline-offset: 3px;
}

.container {
  width: min(1320px, calc(100% - 64px));
}

.site-header {
  height: var(--nav-height);
  border-color: rgba(102, 91, 68, 0.18);
  background: rgba(255, 250, 240, 0.94);
  box-shadow: 0 8px 30px rgba(66, 57, 38, 0.06);
  backdrop-filter: blur(18px) saturate(1.15);
}

.nav-shell {
  width: min(1380px, calc(100% - 56px));
  grid-template-columns: minmax(230px, 1fr) auto minmax(176px, 1fr);
  gap: 28px;
}

.brand {
  gap: 10px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: none;
}

.leaf-core {
  left: 13px;
  top: 8px;
  width: 16px;
  height: 25px;
  background: transparent;
  border: 2px solid #fff;
}

.leaf-core::after {
  top: 2px;
  left: 7px;
  height: 21px;
  background: #fff;
}

.scan-dot {
  display: none;
}

.brand-text strong {
  color: var(--accent-dark);
  font-size: 18px;
  letter-spacing: -0.03em;
}

.brand-text span {
  color: var(--muted);
  font-size: 11px;
}

.nav-menu {
  gap: 22px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.nav-link {
  min-width: 54px;
  height: 44px;
  border-radius: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.nav-link::after {
  content: "";
  position: absolute;
  right: 9px;
  bottom: 1px;
  left: 9px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0;
  transform: scaleX(0.45);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-link.active {
  color: var(--accent-dark);
  background: transparent;
}

.nav-link.active::after,
.nav-link:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-cta {
  justify-self: end;
  min-height: 46px;
  border-color: var(--accent);
  border-radius: 10px;
  padding-inline: 22px;
  background: var(--accent);
  color: var(--white);
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(63, 95, 47, 0.18);
}

.nav-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.quiet-label {
  color: var(--accent);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.section-heading h2,
.hero-copy h1 {
  color: var(--accent-dark);
  letter-spacing: -0.055em;
}

.section-heading p:not(.quiet-label),
.hero-lead {
  color: var(--ink-soft);
}

/* Passive hero preview: auto-rotation only, no pointer interaction. */
.hero {
  min-height: calc(var(--nav-height) + 400px);
  padding: calc(var(--nav-height) + 24px) 0 24px;
  background: transparent;
}

.hero-background {
  inset: var(--nav-height) 0 auto;
  height: 74%;
  opacity: 0.6;
  background:
    radial-gradient(circle at 17% 24%, rgba(216, 110, 67, 0.14), transparent 26%),
    radial-gradient(circle at 72% 35%, rgba(169, 206, 229, 0.2), transparent 30%);
}

.hero-background::before {
  display: none;
}

.hero-grid {
  grid-template-columns: minmax(0, 0.88fr) minmax(560px, 1.12fr);
  gap: 66px;
  align-items: center;
}

.hero-copy {
  max-width: 610px;
}

.hero-copy h1 {
  margin-block: 12px 16px;
  font-size: clamp(36px, 3vw, 50px);
  line-height: 1.08;
}

.hero-copy h1 span {
  display: block;
}

.hero-lead {
  max-width: 590px;
  font-size: 17px;
  line-height: 1.7;
}

.hero-actions {
  margin-top: 20px;
  gap: 12px;
}

.button {
  min-height: 46px;
  border-radius: 10px;
  font-weight: 800;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.button.primary:hover {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
}

.button.secondary {
  border-color: var(--accent);
  background: rgba(255, 250, 240, 0.78);
  color: var(--accent-dark);
}

.model-card {
  width: 100%;
  height: 400px;
  min-height: 400px;
  aspect-ratio: auto;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 45%, rgba(46, 68, 35, 0.25), transparent 45%),
    var(--viewer-black);
  box-shadow: 0 26px 70px rgba(32, 41, 28, 0.23);
  pointer-events: none;
  isolation: isolate;
}

.model-card::before {
  content: attr(data-preview-label);
  position: absolute;
  z-index: 6;
  left: 20px;
  bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 8px 12px;
  background: rgba(13, 18, 12, 0.82);
  color: #fff;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0;
}

.model-card::after,
.model-card .scan-plane,
.model-card .tech-tag,
.model-card .scan-ring,
.model-card .axis {
  display: none;
}

.hero-plant {
  top: 50%;
  right: auto;
  bottom: auto;
  left: 50%;
  width: min(88%, 680px);
  height: min(82%, 610px);
  max-width: none;
  transform: translate(-50%, -50%);
  pointer-events: none !important;
}

.hero-fallback-plant {
  object-fit: contain;
  filter: saturate(1.08) contrast(1.04);
}

.hero-ply-canvas {
  touch-action: none;
  pointer-events: none !important;
}

/* Explanation and code-native iconography only. */
.process-section {
  padding: 92px 0;
  background: rgba(255, 250, 240, 0.58);
}

.process-section .section-heading.compact {
  max-width: 780px;
  margin: 0 0 42px;
  text-align: left;
}

.process-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.flow-arrow {
  display: none;
}

.process-step {
  min-height: 330px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  text-align: left;
  box-shadow: 0 16px 34px rgba(57, 63, 42, 0.07);
}

.process-step:nth-of-type(1) {
  border-color: #c8d2b4;
  background: linear-gradient(145deg, #f7f5e9, #e5ebd8);
}

.process-step:nth-of-type(2) {
  border-color: #ebad8b;
  background: linear-gradient(145deg, #fff5ed, var(--earth-soft));
}

.process-step:nth-of-type(3) {
  border-color: #a9c9dd;
  background: linear-gradient(145deg, #f3f9fc, #d6e8f2);
}

.process-step:nth-of-type(4) {
  border-color: #baa7d0;
  background: linear-gradient(145deg, #faf7fc, #e4dcef);
}

.step-icon {
  position: relative;
  width: 100%;
  height: 118px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  border: 0;
  border-radius: 0;
  padding: 2px;
  background: transparent;
  color: currentColor;
  font-size: 42px;
  font-weight: 850;
  line-height: 1;
}

.step-icon::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 74px;
  height: 74px;
  background: currentColor;
  mask: center / contain no-repeat;
  -webkit-mask: center / contain no-repeat;
  opacity: 0.9;
}

.process-step:nth-of-type(1) .step-icon {
  color: var(--accent);
}

.process-step:nth-of-type(1) .step-icon::after {
  mask-image: url("assets/icons/camera.svg");
  -webkit-mask-image: url("assets/icons/camera.svg");
}

.process-step:nth-of-type(2) .step-icon {
  color: var(--earth);
}

.process-step:nth-of-type(2) .step-icon::after {
  mask-image: url("assets/icons/coordinates.svg");
  -webkit-mask-image: url("assets/icons/coordinates.svg");
}

.process-step:nth-of-type(3) .step-icon {
  color: var(--season-blue-deep);
}

.process-step:nth-of-type(3) .step-icon::after {
  mask-image: url("assets/icons/plant.svg");
  -webkit-mask-image: url("assets/icons/plant.svg");
}

.process-step:nth-of-type(4) .step-icon {
  color: var(--season-lilac-deep);
}

.process-step:nth-of-type(4) .step-icon::after {
  mask-image: url("assets/icons/browser.svg");
  -webkit-mask-image: url("assets/icons/browser.svg");
}

.process-step h3 {
  margin-top: 8px;
  color: var(--accent-dark);
  font-size: 21px;
}

.process-step p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

/* Original catalog functions, with static black preview captures. */
.catalog-section {
  padding: 96px 0;
  background: rgba(255, 255, 255, 0.3);
}

.catalog-section .section-heading {
  max-width: 760px;
}

.stats-grid {
  grid-template-columns: repeat(3, minmax(0, 210px));
  margin-block: 30px 26px;
  gap: 12px;
}

.stat-card {
  min-height: 94px;
  border-color: var(--line);
  border-radius: 14px;
  background: rgba(255, 250, 240, 0.88);
  box-shadow: none;
}

.stat-card:nth-child(1) {
  border-top: 5px solid var(--accent);
}

.stat-card:nth-child(2) {
  border-top: 5px solid var(--season-blue-deep);
}

.stat-card:nth-child(3) {
  border-top: 5px solid var(--earth);
}

.filter-bar {
  gap: 10px;
  margin-bottom: 26px;
}

.filter-chip {
  min-height: 44px;
  border-color: #b9b39f;
  border-radius: 9px;
  padding-inline: 20px;
  background: rgba(255, 250, 240, 0.74);
  color: var(--ink-soft);
}

.filter-chip.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

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

.plant-card {
  border-color: var(--line);
  border-radius: 16px;
  background: rgba(255, 250, 240, 0.92);
  box-shadow: 0 18px 44px rgba(47, 56, 38, 0.09);
}

.plant-card:nth-child(3n + 1) {
  border-top: 5px solid var(--accent);
}

.plant-card:nth-child(3n + 2) {
  border-top: 5px solid var(--earth);
}

.plant-card:nth-child(3n) {
  border-top: 5px solid var(--season-blue-deep);
}

.plant-thumb {
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: var(--catalog-preview-ratio);
  border-radius: 11px 11px 0 0;
  background: #000 !important;
  box-shadow: none;
}

.plant-thumb img {
  object-fit: contain;
  object-position: center;
  background: #000;
}

.plant-thumb .asset-thumb {
  transition: none;
}

.plant-thumb .base-thumb,
.plant-thumb .preview-thumb,
.plant-card:hover .base-thumb,
.plant-card:focus-within .base-thumb {
  opacity: 1;
  transform: none;
  filter: none;
}

.plant-thumb .preview-thumb,
.plant-card:hover .preview-thumb,
.plant-card:focus-within .preview-thumb {
  opacity: 0;
}

.plant-thumb .status-badge {
  top: 12px;
  right: 12px;
}

.plant-card-body {
  padding: 20px;
}

.plant-card h3 {
  color: var(--accent-dark);
  font-size: 22px;
}

.latin {
  color: var(--muted);
}

.plant-meta {
  border-color: var(--line);
}

.catalog-more-button {
  min-width: 220px;
}

/* Searchable, fully interactive main viewer. */
.viewer-section {
  padding: 96px 0;
  background: linear-gradient(180deg, #f0e8da 0%, #f7f1e6 100%);
}

.viewer-section .section-heading {
  max-width: 740px;
}

.search-panel {
  width: min(720px, 100%);
  grid-template-columns: 1fr auto;
  margin: 28px 0 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  background: rgba(255, 250, 240, 0.92);
  box-shadow: 0 12px 30px rgba(61, 57, 43, 0.08);
}

.search-panel input {
  min-height: 48px;
  border: 0;
  border-radius: 9px;
  background: transparent;
}

.search-panel input:focus {
  box-shadow: inset 0 0 0 2px var(--season-blue-deep);
}

.search-button {
  min-width: 96px;
  min-height: 48px;
}

.viewer-search-results {
  margin-top: -16px;
  margin-bottom: 24px;
}

.viewer-search-chip {
  min-height: 44px;
  border-radius: 9px;
}

.viewer-layout {
  grid-template-columns: minmax(0, 2.25fr) minmax(300px, 0.75fr);
  gap: 20px;
  align-items: stretch;
}

.viewer-stage,
.detail-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 22px 54px rgba(39, 45, 31, 0.12);
}

.viewer-stage {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  gap: 0;
  padding: 12px;
  overflow: hidden;
  background: var(--viewer-black);
}

.viewer-toolbar {
  position: relative;
  z-index: 5;
  inset: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  border: 0;
  padding: 8px 10px 8px 0;
  background: transparent;
}

.tool-button {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 12px;
}

.tool-button:hover,
.tool-button.active {
  border-color: var(--season-yellow);
  background: rgba(239, 209, 136, 0.16);
  color: #fff7d7;
}

.tool-button.favorite {
  color: #f4d2be;
}

.model-viewport {
  min-height: 650px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 45%, rgba(63, 95, 47, 0.16), transparent 45%),
    var(--viewer-black);
}

.model-viewport::after {
  opacity: 0.18;
}

.viewport-grid {
  opacity: 0.25;
}

.interaction-hints {
  right: 16px;
  bottom: 16px;
  left: auto;
  max-width: 310px;
  border-color: rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(6, 9, 6, 0.78);
}

.loader {
  top: 16px;
  right: 16px;
  border-radius: 9px;
}

.viewer-carousel {
  grid-column: 1 / -1;
  margin-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  padding-top: 12px;
}

.carousel-track {
  gap: 10px;
}

.carousel-card {
  border-color: rgba(255, 255, 255, 0.14);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.06);
}

.carousel-card.active {
  border-color: var(--season-yellow);
  box-shadow: inset 0 0 0 1px var(--season-yellow);
}

.detail-panel {
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.97), rgba(247, 241, 230, 0.98));
}

.detail-header {
  border-bottom-color: var(--line);
}

.detail-header h3 {
  color: var(--accent-dark);
  font-size: 30px;
}

.detail-list div {
  border-bottom-color: rgba(221, 210, 189, 0.7);
}

.status-badge.complete {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

/* Purpose modules reuse the original content without previews. */
.purpose-section {
  padding: 96px 0;
  background: var(--surface);
}

.purpose-section .section-heading.compact {
  max-width: 820px;
  margin: 0 0 40px;
  text-align: left;
}

.purpose-grid {
  gap: 16px;
}

.purpose-card {
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  background: #f7f4e7;
  box-shadow: none;
}

.purpose-card:nth-child(2) {
  background: #fff0e5;
}

.purpose-card:nth-child(3) {
  background: #edf6fb;
}

.purpose-card:nth-child(4) {
  background: #f4eef9;
}

.purpose-icon {
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 0;
  background: currentColor;
  color: var(--accent);
  font-size: 0;
  mask: center / contain no-repeat;
  -webkit-mask: center / contain no-repeat;
}

.purpose-card:nth-child(1) .purpose-icon {
  mask-image: url("assets/icons/education.svg");
  -webkit-mask-image: url("assets/icons/education.svg");
}

.purpose-card:nth-child(2) .purpose-icon {
  color: var(--earth);
  mask-image: url("assets/icons/research.svg");
  -webkit-mask-image: url("assets/icons/research.svg");
}

.purpose-card:nth-child(3) .purpose-icon {
  color: var(--season-blue-deep);
  mask-image: url("assets/icons/archive.svg");
  -webkit-mask-image: url("assets/icons/archive.svg");
}

.purpose-card:nth-child(4) .purpose-icon {
  color: var(--season-lilac-deep);
  mask-image: url("assets/icons/exhibition.svg");
  -webkit-mask-image: url("assets/icons/exhibition.svg");
}

.purpose-card h3 {
  color: var(--accent-dark);
}

.site-footer {
  border-top-color: rgba(221, 210, 189, 0.9);
  background: var(--accent-dark);
  color: #f7f1e6;
}

.site-footer strong,
.site-footer a {
  color: #fff;
}

.site-footer p {
  color: #cbd5c3;
}

@media (max-width: 1180px) {
  .hero-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(470px, 1.1fr);
    gap: 38px;
  }

  .model-card {
    height: 400px;
    min-height: 400px;
  }

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

  .viewer-layout {
    grid-template-columns: 1fr;
  }

  .detail-panel {
    min-height: 0;
  }
}

@media (max-width: 860px) {
  :root {
    --nav-height: 68px;
  }

  .container {
    width: min(100% - 32px, 760px);
  }

  .nav-shell {
    width: calc(100% - 32px);
    grid-template-columns: 1fr auto;
  }

  .nav-cta {
    display: none;
  }

  .nav-menu {
    gap: 6px;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + 32px);
  }

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

  .hero-copy {
    max-width: none;
  }

  .hero-copy h1 {
    font-size: clamp(40px, 9vw, 62px);
  }

  .model-card {
    min-height: 0;
    height: min(400px, calc(100vw - 32px));
    aspect-ratio: auto;
  }

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

  .viewer-stage {
    grid-template-columns: 1fr;
  }

  .viewer-toolbar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 0 0 10px;
  }

  .model-viewport {
    min-height: 540px;
  }
}

@media (max-width: 620px) {
  .brand-text span {
    display: none;
  }

  .brand-text strong {
    font-size: 15px;
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero-actions .button {
    width: 100%;
  }

  .process-card,
  .plant-grid,
  .purpose-grid {
    grid-template-columns: 1fr;
  }

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

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

  .filter-chip {
    width: 100%;
    padding-inline: 10px;
  }

  .search-panel {
    grid-template-columns: 1fr;
  }

  .search-button {
    width: 100%;
  }

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

  .model-viewport {
    min-height: 430px;
  }

  .interaction-hints {
    right: 10px;
    bottom: 10px;
    left: 10px;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-ply-canvas {
    opacity: 0.92;
  }

  .nav-link::after,
  .nav-cta,
  .button {
    transition: none;
  }
}
