/* Layout idea: dark forest-green "grow room" world, gold accent from the logo, editorial left-aligned sections */
:root {
  --bg: #0f1d16;
  --surface: #172a20;
  --line: #2a4235;
  --text: #e9efe9;
  --muted: #a9b8ad;
  --gold: #d6a84a;
  --gold-soft: rgba(214, 168, 74, .14);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --wrap: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
}

img { max-width: 100%; display: block; }
a { color: var(--gold); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: 1.3rem; }
p { margin: 0; }
.lede { color: var(--muted); max-width: 62ch; font-size: 1.08rem; }
.kicker { color: var(--gold); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(15, 29, 22, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-family: var(--font-display); font-size: 1.2rem; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: .92rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--text); }
.nav .lang { color: var(--gold); border: 1px solid var(--line); padding: 2px 10px; border-radius: 999px; }
@media (max-width: 760px) { .site-header .wrap { flex-wrap: wrap; padding: 10px 0; } .nav { gap: 2px 14px; font-size: .85rem; } }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 20%, rgba(15,29,22,.55) 70%, rgba(15,29,22,.2)); }
.hero .wrap { position: relative; z-index: 1; padding: 96px 0 88px; display: grid; gap: 22px; }
.hero h1 { font-size: clamp(2.6rem, 6.5vw, 4.6rem); max-width: 14ch; }
.hero h1 em { color: var(--gold); font-style: italic; }
.hero .lede { color: var(--text); opacity: .85; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.chip { border: 1px solid var(--line); background: rgba(23,42,32,.7); color: var(--muted); padding: 6px 14px; border-radius: 999px; font-size: .88rem; }
.btn { display: inline-block; background: var(--gold); color: #1a1405; font-weight: 700; text-decoration: none; padding: 12px 22px; border-radius: 8px; width: fit-content; }
.btn:hover { filter: brightness(1.08); }

/* Sections */
section { padding: 88px 0; border-bottom: 1px solid var(--line); }
.section-head { display: grid; gap: 14px; margin-bottom: 44px; }

/* Pipeline */
.pipeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; }
.pipeline li { counter-increment: step; position: relative; padding: 22px 18px 0 0; border-top: 2px solid var(--line); }
.pipeline li::before { content: counter(step, decimal-leading-zero); position: absolute; top: -13px; left: 0; background: var(--bg); padding-right: 10px; color: var(--gold); font-weight: 700; font-size: .85rem; font-variant-numeric: tabular-nums; }
.pipeline li:first-child { border-top-color: var(--gold); }
.pipeline strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; margin-bottom: 6px; }
.pipeline span { color: var(--muted); font-size: .93rem; }
@media (max-width: 860px) { .pipeline { grid-template-columns: 1fr 1fr; row-gap: 32px; } }
@media (max-width: 480px) { .pipeline { grid-template-columns: 1fr; } }

/* Facilities */
.tech { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.tech article { background: var(--surface); display: grid; grid-template-columns: 96px 1fr; gap: 18px; padding: 22px; align-items: start; }
.tech img, .ph { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; background: #20382b; }
.tech h3 { font-size: 1.12rem; margin-bottom: 6px; }
.tech p { color: var(--muted); font-size: .93rem; }
.tech .gear { color: var(--gold); font-size: .8rem; font-weight: 700; letter-spacing: .04em; display: block; margin-top: 8px; }
@media (max-width: 400px) { .tech article { grid-template-columns: 1fr; } }

/* Split blocks */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split + .split { margin-top: 64px; }
.split img { border-radius: 12px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: var(--surface); }
.split .text { display: grid; gap: 14px; }
.split .text p { color: var(--muted); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 24px; } }

.partner-logo { background: #fff; border-radius: 12px; padding: 28px 32px; display: grid; place-items: center; }
.split .partner-logo img { aspect-ratio: auto; width: 100%; height: auto; max-height: 160px; object-fit: contain; border-radius: 0; background: none; }

/* Genetics */
.strains { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 360px)); gap: 28px; }
.strain { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.strain img, .strain video { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #20382b; display: block; }
.strain div { padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.strain h3 { font-size: 1.3rem; }
.strain a { font-size: .88rem; font-weight: 700; text-decoration: none; border: 1px solid var(--gold); padding: 6px 12px; border-radius: 6px; white-space: nowrap; }

/* Team */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 260px)); gap: 28px; }
.person { border-top: 2px solid var(--gold); padding-top: 16px; }
.person strong { font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; display: block; }
.person span { color: var(--muted); }

.team-lead { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 260px)); gap: 28px; margin-bottom: 40px; }
.person-photo { margin: 0; display: grid; gap: 14px; }
.person-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; background: var(--surface); }
.person-photo figcaption { border-top: 2px solid var(--gold); padding-top: 14px; }
.person-photo strong { font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; display: block; margin-bottom: 8px; }
.person-photo span { color: var(--muted); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: var(--surface); }

/* Contact */
.contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.contact address { font-style: normal; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 28px; display: grid; gap: 6px; }
.contact address strong { font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

footer { padding: 36px 0 48px; color: var(--muted); font-size: .88rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* Age gate (21+) */
.age-gate { display: none; }
.age-gate-on { overflow: hidden; }
.age-gate-on .age-gate { display: grid; place-items: center; position: fixed; inset: 0; z-index: 100; padding: 20px; background: rgba(8, 16, 12, .9); backdrop-filter: blur(14px); }
.age-box { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 14px; padding: 36px 32px; max-width: 440px; display: grid; gap: 16px; justify-items: center; text-align: center; }
.age-box img { width: 64px; height: 64px; object-fit: contain; }
.age-box h2 { font-size: 1.8rem; }
.age-box p { color: var(--muted); }
.age-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 4px; }
.age-actions button { font: inherit; font-weight: 700; cursor: pointer; border: 0; }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--line) !important; padding: 12px 22px; border-radius: 8px; }
.btn-outline:hover { border-color: var(--muted) !important; }

/* Lightbox (Installations) */
.tech img { cursor: zoom-in; transition: transform .2s ease; }
.tech img:hover, .tech img:focus-visible { transform: scale(1.05); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(5, 10, 8, .9); }
.lightbox img { max-width: 92vw; max-height: 82vh; width: auto; height: auto; border-radius: 10px; display: block; margin: 0 auto; cursor: zoom-out; }
.lightbox p { color: var(--text); text-align: center; margin-top: 14px; font-family: var(--font-display); font-size: 1.2rem; }
.lightbox-close { position: absolute; top: -16px; right: -16px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 1.5rem; line-height: 1; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .tech img { transition: none; } }

/* Image missing (e.g. preview without the images folder) */
img.missing { visibility: hidden; }
