/* FloraCulture Research Lab - shared stylesheet.
   Theme driven by CSS custom properties below - change colors in one place. */

/* Design tokens live in theme.css - loaded before this file. */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--ground);
  line-height: 1.7; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); }

h1, h2, h3 { line-height: 1.14; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.02em;
  font-family: var(--display); font-weight: 600; }
h1 { font-size: clamp(2.3rem, 5.5vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,33,24,.86); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 16px; }
.brand { min-width: 0; }
.brand-text { min-width: 0; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800;
  color: var(--ink); text-decoration: none; font-size: 1.2rem; letter-spacing: -.02em; }
.brand .logo {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, var(--green), var(--teal));
  display: grid; place-items: center; color: #fff; font-size: 1.2rem;
}
/* Header and footer marks share one treatment: the emblem is dark green, so it
   needs a light disc to read on the canopy ground. */
.brand-logo, .footer-logo img {
  width: 52px; height: 52px; flex: none; display: block;
  object-fit: contain; padding: 6px; border-radius: 50%;
  background: var(--cream); box-shadow: 0 0 0 1px rgba(216,179,87,.45);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text .bt-name { font-size: 1.16rem; font-weight: 700; color: var(--ink); letter-spacing: -.02em;
  font-family: var(--display); }
.brand-text .bt-name em { font-style: normal; color: var(--gold); }
.brand-text .bt-sub { font-size: .62rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted); }
@media (max-width: 560px) {
  .brand-logo { width: 44px; height: 44px; }
  .brand-text .bt-name { font-size: 1rem; }
  .brand-text .bt-sub { font-size: .56rem; letter-spacing: .14em; }
}
@media (max-width: 380px) { .brand-text { display: none; } }
.footer-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }

.footer-logo .bt-name { font-size: 1.1rem; font-weight: 600; color: var(--ink);
  letter-spacing: -.02em; font-family: var(--display); }
.footer-logo .bt-name em { font-style: normal; color: var(--gold-light); }
.footer-logo .bt-sub { font-size: .6rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: #9fc4ae; }
.nav-right { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; }
.nav-links { display: flex; align-items: center; gap: 1px; list-style: none; margin: 0; padding: 0;
  flex-wrap: nowrap; white-space: nowrap; }
.nav-links a {
  position: relative; text-decoration: none; color: var(--nav);
  font-weight: 500; font-size: .9rem; padding: 8px 4px; margin: 0 7px;
  border-radius: 4px; background: none;
  transition: color .18s ease;
}
/* Hairline indicator that grows from the centre - no filled block. */
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 1px; height: 2px;
  border-radius: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: center;
  transition: transform .22s cubic-bezier(.4, 0, .2, 1);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(.55); }
.nav-links a.active { color: var(--ink); font-weight: 600; }
.nav-links a.active::after { transform: scaleX(1); }
/* Keyboard focus stays visible; taps don't leave a grey box behind. */
.nav-links a:focus-visible, .brand:focus-visible, .btn:focus-visible,
.btn-outline:focus-visible, .arrow-link:focus-visible, .explore-card:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px;
}
a, button { -webkit-tap-highlight-color: transparent; }
.btn.nav-cta { display: inline-flex; padding: 10px 18px; font-size: .9rem; white-space: nowrap; }
.nav-toggle {
  display: none; border: 1px solid var(--line); background: var(--card); border-radius: 10px;
  padding: 9px 11px; font-size: 1.2rem; cursor: pointer; line-height: 1;
}
@media (max-width: 1080px) {
  .nav-toggle { display: block; order: 3; }
  .nav-right { gap: 8px; }
  .btn.nav-cta, .nav-cta { display: none; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--deep); border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line); padding: 6px 0 10px;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  /* Full-bleed rows: a chip sized to the word looks stranded in a full-width sheet. */
  .nav-links li { border-bottom: 1px solid rgba(255,255,255,.045); }
  .nav-links li:last-child { border-bottom: 0; }
  .nav-links a {
    display: block; padding: 14px 22px; margin: 0; border-radius: 0;
    border-left: 3px solid transparent; font-size: .98rem;
  }
  .nav-links a::after { display: none; }
  .nav-links a:hover { background: rgba(255,255,255,.04); }
  .nav-links a.active {
    background: rgba(216,179,87,.09); border-left-color: var(--gold);
    color: var(--gold); font-weight: 600;
  }
  .site-header { position: relative; }
}

/* ---------- Buttons ---------- */
.btn, .btn-outline {
  --ease: cubic-bezier(.34, 1.2, .5, 1);
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 600;
  padding: 13px 26px; border-radius: var(--radius-pill); cursor: pointer;
  border: 1px solid transparent; font-size: .97rem; letter-spacing: -.01em;
  transition: transform .22s var(--ease), box-shadow .22s ease,
              background-color .2s ease, border-color .2s ease, color .2s ease;
}
/* Sheen sweeps across on hover instead of the button just changing colour. */
.btn::before, .btn-outline::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.28) 50%, transparent 80%);
  transform: translateX(-120%); transition: transform .55s var(--ease);
}
.btn:hover::before, .btn-outline:hover::before { transform: translateX(120%); }
.btn { background: var(--gold); color: var(--on-gold); box-shadow: 0 1px 2px rgba(0,0,0,.24); }
.btn:hover {
  background: var(--gold-light); transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(216,179,87,.26), 0 2px 6px rgba(0,0,0,.28);
}
.btn:active { transform: translateY(0) scale(.985); box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover {
  background: var(--card-hi); border-color: var(--gold); transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.22);
}
.btn-outline:active { transform: translateY(0) scale(.985); }
.arrow-link .ic, .arrow-link svg { transition: transform .22s var(--ease); }
.arrow-link:hover { color: var(--gold-light); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; }
.arrow-link { font-weight: 600; text-decoration: none; color: var(--gold); display: inline-flex; gap: 6px; align-items: center; }
.arrow-link:hover { gap: 10px; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section.tight { padding: 56px 0; }
.section.alt { background: var(--panel); }
.section.dark { background: #081a13; color: var(--muted); }
.section.dark h2, .section.dark h3 { color: var(--ink); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head h2::after {
  content: ""; display: block; width: 62px; height: 3px; border-radius: 2px;
  margin-top: 18px; background: linear-gradient(90deg, var(--gold), var(--gold-light));
}
.section-head.center h2::after { margin-left: auto; margin-right: auto; }
.section.dark .section-head h2::after { background: linear-gradient(90deg, var(--gold-light), var(--lime)); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem;
  font-weight: 700; color: var(--gold); margin: 0 0 12px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% -20%, rgba(216,179,87,.14), transparent),
    radial-gradient(700px 400px at -10% 120%, rgba(23,160,127,.12), transparent),
    linear-gradient(160deg, var(--panel) 0%, var(--ground) 100%);
  padding: 110px 0 96px; border-bottom: 1px solid var(--line);
}
.hero h1 { margin-bottom: .3em; max-width: 16ch; }
.hero .lead { font-size: 1.24rem; color: var(--muted); max-width: 620px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0; }
.pill { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 9px 16px; font-weight: 600; font-size: .92rem; box-shadow: var(--shadow); }
.page-hero { padding: 84px 0 64px; }
.page-hero h1 { max-width: none; }

/* Photo hero (TiCi-style): add class="hero photo" + drop assets/img/hero.jpg.
   Full-bleed image, dark overlay, white text. */
.hero.photo {
  background:
    linear-gradient(180deg, rgba(8,30,20,.55), rgba(8,30,20,.75)),
    url("../img/hero.jpg") center/cover no-repeat;
  border-bottom: 0;
}
.hero.photo h1, .hero.photo .eyebrow { color: #fff; }
.hero.photo .lead { color: #e7f3ec; }
.hero.photo .pill { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.25); color: #fff; }
.hero.photo .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.hero.photo .btn-outline:hover { background: rgba(255,255,255,.14); }

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; }
.stat .num { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; color: var(--teal);
  letter-spacing: -.03em; line-height: 1; }
.section.dark .stat .num { color: var(--lime); }
.stat .label { font-weight: 600; color: var(--muted); margin-top: 8px; }
.section.dark .stat .label { color: #bcd6c8; }

/* ---------- Cards / Grid ---------- */
.grid { display: grid; gap: 26px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 920px) { .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); height: 100%;
  transition: transform .15s ease, box-shadow .2s ease;
}
.card.lift:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card .ico { font-size: 2rem; margin-bottom: 12px; }
.card h3 { margin-bottom: .4em; }
.card ul { margin: .5rem 0 0; padding-left: 1.1rem; color: var(--muted); }
.card ul li { margin-bottom: 5px; }
.card .arrow-link { margin-top: 14px; }

/* Media card (image/gradient top) */
.media-card { padding: 0; overflow: hidden; }
.media-card .thumb {
  aspect-ratio: 16/10; display: grid; place-items: center; font-size: 2.4rem;
  background: linear-gradient(135deg, #d7f0e3, #c3e8dd);
}
.media-card .thumb.v2 { background: linear-gradient(135deg, #d9efd0, #bfe6d6); }
.media-card .thumb.v3 { background: linear-gradient(135deg, #cdeae6, #d8efd5); }
.media-card img.thumb { width: 100%; object-fit: cover; }
.media-card .body { padding: 22px 24px 26px; }

/* Split section: image beside text (TiCi-style) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 28px; } }
.split img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 4/3; object-fit: cover; }

/* ---------- Notes / callouts ---------- */
.note { background: rgba(216,179,87,.08); border: 1px solid rgba(216,179,87,.32);
  border-radius: 14px; padding: 18px 20px; color: #e8d9ae; }
.note.green { background: var(--card); border-color: var(--line); color: var(--muted); }

/* ---------- Founders ---------- */
.founders { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
@media (max-width: 600px) { .founders { grid-template-columns: 1fr; } }
.founder { display: flex; gap: 18px; align-items: center; }
.avatar { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-deep), var(--gold));
  color: var(--on-gold); display: grid; place-items: center; font-weight: 700;
  font-size: 1.3rem; font-family: var(--display); }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 46px; }
@media (max-width: 980px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .gallery-grid { grid-template-columns: 1fr; } }
.tile { aspect-ratio: 4/3; border-radius: 16px; border: 1px solid var(--line);
  background: var(--card);
  display: grid; place-items: center; color: var(--muted); font-weight: 600;
  text-align: center; padding: 12px; }

/* ---------- Testimonials carousel ---------- */
.carousel { position: relative; }
.carousel-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px 2px 18px; scrollbar-width: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.quote { scroll-snap-align: start; flex: 0 0 clamp(280px, 80%, 420px);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); }
.quote p { font-size: 1.05rem; }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.quote .who .avatar { flex: 0 0 44px; width: 44px; height: 44px; font-size: 1rem; }
.quote .who b { display: block; color: var(--ink); }
.quote .who span { font-size: .88rem; color: var(--muted); }
.carousel-btns { display: flex; gap: 10px; margin-top: 8px; }
.carousel-btns button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--card); cursor: pointer; font-size: 1.1rem; color: var(--ink); }
.carousel-btns button:hover { background: var(--accent-soft); border-color: var(--teal); }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; background: var(--card); margin-bottom: 14px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 20px 22px; font-size: 1.05rem; font-weight: 600; color: var(--ink);
  font-family: var(--display);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-q .chev { transition: transform .2s ease; flex: 0 0 auto; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-a div { padding: 0 22px 20px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; margin-bottom: 7px; font-size: .92rem; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px;
  font: inherit; background: var(--card); color: var(--ink); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 3px solid rgba(20,160,152,.25); border-color: var(--teal); }
.form-field textarea { min-height: 140px; resize: vertical; }
.form-msg { margin-top: 12px; font-weight: 600; }
.contact-info p { margin-bottom: 16px; }
.wa-btn { background: #25d366; color: #073d22; }
.wa-btn:hover { background: #1fb858; }
.map-embed { width: 100%; aspect-ratio: 16/9; border: 1px solid var(--line); border-radius: 14px;
  background: var(--accent-soft); display: grid; place-items: center; color: var(--muted);
  text-align: center; padding: 16px; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, #0a2118, #17553d); border: 1px solid var(--line); color: var(--ink);
  border-radius: 24px; padding: 56px; text-align: center; }
.cta-band h2 { color: var(--ink); }
.cta-band p { color: var(--muted); max-width: 560px; margin: 0 auto 24px; font-size: 1.08rem; }
/* On the band's own gradient the neutral outline button disappears - give it the gold fill. */
.cta-band .btn-outline {
  background: var(--gold); color: var(--on-gold); border-color: var(--gold); font-weight: 600;
}
.cta-band .btn-outline:hover { background: var(--gold-light); border-color: var(--gold-light); }
@media (max-width: 600px) { .cta-band { padding: 40px 24px; } }

/* ---------- Focus & accessibility ---------- */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--card); padding: 10px 16px;
  border-radius: 0 0 8px 0; z-index: 100; }
.skip-link:focus { left: 0; }

/* ---------- Footer ---------- */
.site-footer { background: #081a13; color: var(--muted); margin-top: 0; border-top: 1px solid var(--line); }
.site-footer a { color: #cfe9db; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.4fr; gap: 36px; padding: 64px 0 28px; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--ink); margin: 0 0 14px; font-size: .96rem;
  font-family: var(--display); font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { margin-bottom: 9px; }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1);
  display: grid; place-items: center; font-size: 1.05rem; }
.socials a:hover { background: rgba(255,255,255,.22); }
.newsletter { display: flex; gap: 8px; margin-top: 12px; }
.newsletter input { flex: 1; padding: 11px 13px; border-radius: var(--radius-pill); border: 0; font: inherit; }
.newsletter button { border: 0; border-radius: var(--radius-pill); padding: 11px 18px; font-weight: 700;
  background: var(--gold); color: #0d2a1e; cursor: pointer; }
.newsletter button:hover { background: var(--gold-light); color: var(--on-gold); }
.disclaimer { border-top: 1px solid rgba(255,255,255,.15); padding: 20px 0; font-size: .85rem; color: #a9c7b6; }
.disclaimer p { margin: 0 0 6px; }

/* ---------- Utility ---------- */
.lead { font-size: 1.15rem; color: var(--muted); }
.mt0 { margin-top: 0; }
.center { text-align: center; }
.taglines { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.tagline { font-style: italic; color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 8px 18px; box-shadow: var(--shadow); }

/* ---------- Hero slider (home page) ---------- */
.hero-slider { position: relative; overflow: hidden; background: var(--green-dark); }
/* Track slides sideways: the whole strip shifts by one slide width. */
.hero-slider .slides {
  display: flex; height: clamp(420px, 62vh, 620px);
  transition: transform .62s cubic-bezier(.45, .05, .25, 1);
  will-change: transform;
}
.hero-slide { position: relative; flex: 0 0 100%; width: 100%; height: 100%; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(16,59,41,.88) 0%, rgba(16,59,41,.62) 42%, rgba(16,59,41,.28) 100%),
    linear-gradient(0deg, rgba(16,59,41,.62) 0%, rgba(16,59,41,0) 55%);
}
.hero-slide .slide-caption {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  padding: 0 22px 74px; max-width: var(--maxw); margin: 0 auto;
}
.hero-slide .slide-caption .sci {
  font-style: italic; font-size: clamp(1.6rem, 4vw, 2.9rem); font-weight: 800;
  color: #fff; margin: 0 0 6px; letter-spacing: -.02em; line-height: 1.1;
}
.hero-slide .slide-caption .common {
  color: var(--gold-light); font-weight: 700; font-size: .74rem;
  letter-spacing: .2em; text-transform: uppercase; margin: 0 0 10px;
}
.hero-slide .slide-caption .slide-note { color: #f0f7f2; max-width: 480px; margin: 0;
  font-size: 1.02rem; text-shadow: 0 1px 12px rgba(0,0,0,.45); }

.hero-slider .slider-nav {
  position: absolute; z-index: 3; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255,255,255,.45); background: rgba(16,59,41,.35);
  color: #fff; font-size: 1.15rem; display: grid; place-items: center;
  backdrop-filter: blur(6px); transition: background .2s, border-color .2s;
}
.hero-slider .slider-nav:hover { background: rgba(255,255,255,.22); border-color: #fff; }
.hero-slider .slider-nav.prev { left: 18px; }
.hero-slider .slider-nav.next { right: 18px; }

.hero-slider .slider-dots {
  position: absolute; z-index: 3; bottom: 26px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 9px;
}
.hero-slider .slider-dots button {
  width: 30px; height: 4px; border: 0; border-radius: 999px; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.35); transition: background .25s;
}
.hero-slider .slider-dots button[aria-current="true"] { background: var(--gold-light); }
@media (max-width: 560px) {
  .hero-slider .slides { height: clamp(340px, 56vh, 460px); }
  .hero-slide .slide-caption { padding-bottom: 62px; }
  .hero-slider .slider-nav { width: 38px; height: 38px; }
  .hero-slider .slider-nav.prev { left: 8px; }
  .hero-slider .slider-nav.next { right: 8px; }
}
@media (prefers-reduced-motion: reduce) { .hero-slider .slides { transition: none; } }

/* ---------- Facility tour ---------- */
.facility-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
@media (max-width: 780px) { .facility-grid { grid-template-columns: 1fr; gap: 24px; } }
.facility { margin: 0; }
.facility img {
  width: 100%; aspect-ratio: 16/7; object-fit: cover;
  border-radius: var(--radius); border: 1px solid rgba(216,179,87,.28);
}
.facility figcaption { padding: 16px 2px 0; }
.facility .step {
  display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold-light); margin-bottom: 8px;
}
.facility h3 { margin: 0 0 8px; }
.facility p { margin: 0; color: #cfe2d6; font-size: .96rem; }
.section.dark .section-head .lead { color: #cfe2d6; }

/* ---------- Feedback form (home) ---------- */
.feedback-form { max-width: 720px; margin: 0 auto; }
.feedback-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .feedback-form .form-row { grid-template-columns: 1fr; gap: 0; } }
.feedback-form .btn-row { justify-content: center; margin-top: 18px; }
.form-msg { margin-top: 12px; font-weight: 600; text-align: center; }

/* ---------- Home "where to next" router ---------- */
.explore-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .explore-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .explore-grid { grid-template-columns: 1fr; } }
.explore-card {
  display: flex; align-items: center; gap: 14px; text-decoration: none;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; color: var(--ink); transition: transform .12s ease, box-shadow .18s ease, border-color .18s ease;
}
.explore-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--gold); background: var(--card-hi); }
.explore-card .ico { font-size: 1.6rem; flex: none; }
.explore-card b { display: block; color: var(--ink); font-size: 1.02rem; margin-bottom: 2px; }
.explore-card span span, .explore-card > span:last-child { font-size: .88rem; color: var(--muted); line-height: 1.45; }

/* ---------- Contact page social list ---------- */
.contact-socials { list-style: none; margin: 8px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px 10px; }
.contact-socials a {
  display: inline-flex; align-items: center; gap: 7px; text-decoration: none;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 8px 15px; font-weight: 600; font-size: .9rem; color: var(--ink);
  transition: border-color .18s ease, background .18s ease;
}
.contact-socials a:hover { border-color: var(--gold); background: var(--card-hi); }

/* ---------- Icon system (inline SVG sprite, replaces emoji) ---------- */
.ic { width: 1.15em; height: 1.15em; display: inline-block; vertical-align: -.18em; flex: none; }
.ico .ic { width: 30px; height: 30px; vertical-align: 0; color: var(--gold); }
.ico { color: var(--gold); line-height: 0; margin-bottom: 14px; }
.section.dark .ico .ic, .explore-card .ic { color: var(--gold); }
.explore-card .ic { width: 26px; height: 26px; }
.contact-info .ic, .site-footer .ic { color: var(--gold); }
.contact-socials .ic { color: var(--gold); }
.socials .ic.soc { width: 20px; height: 20px; color: inherit; }
.nav-toggle .ic { width: 22px; height: 22px; color: var(--ink); }
.note .ic { color: var(--gold); }
.faq .ic { color: var(--gold); }

/* ---------- "Coming soon" course cards ---------- */
.card.is-soon { position: relative; background: var(--panel); border-style: dashed; }
.card.is-soon h3, .card.is-soon .ico { opacity: .72; }
.soon-tag {
  font-family: var(--font);
  position: absolute; top: 16px; right: 16px;
  font-size: .64rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); background: rgba(184,145,47,.12);
  border: 1px solid rgba(184,145,47,.35); border-radius: var(--radius-pill); padding: 5px 11px;
}
.soon-note { margin: 14px 0 0; font-size: .9rem; color: var(--muted); }

/* ---------- Gallery: grouped real lab photos ---------- */
.gal-head {
  font-size: 1.05rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 20px;
}
.gal-head + .gallery-grid { margin-top: 0; }
.tile-fig { margin: 0; }
.tile-fig img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover;
  border-radius: 16px; border: 1px solid var(--line); background: var(--card);
}
.tile-fig figcaption { padding: 12px 2px 0; }
.tile-fig figcaption b { display: block; color: var(--ink); font-size: .95rem; }
.tile-fig figcaption b em { font-style: italic; }
.tile-fig figcaption span { display: block; color: var(--muted); font-size: .82rem; margin-top: 2px; }

/* ---------- Motion: one easing curve, honoured reduced-motion ---------- */
.card, .explore-card, .tile-fig img, .media-card .thumb {
  transition: transform .26s cubic-bezier(.34, 1.2, .5, 1),
              box-shadow .26s ease, border-color .2s ease, background-color .2s ease;
}
.media-card { overflow: hidden; }
.media-card:hover .thumb { transform: scale(1.04); }
.tile-fig img:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}

/* ---------- Product index cards + product tables ---------- */
.prod-link { display: block; text-decoration: none; color: inherit; }
.prod-link .arrow-link { margin-top: 12px; }
.media-card.is-soon { position: relative; background: var(--panel); border-style: dashed; }
.media-card.is-soon .thumb { opacity: .45; filter: saturate(.6); }
.media-card.is-soon .soon-tag { top: 14px; right: 14px; z-index: 2; }

.prod-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prod-table th {
  text-align: left; padding: 12px 14px; font-size: .68rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.prod-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.prod-table tr:hover td { background: var(--card); }
.prod-table code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem;
  color: var(--gold); background: rgba(216,179,87,.1); border: 1px solid rgba(216,179,87,.28);
  border-radius: 5px; padding: 3px 8px; white-space: nowrap;
}
.prod-table b { font-style: italic; font-weight: 600; color: var(--ink); }
.prod-table td span { color: var(--muted); font-size: .88rem; font-style: normal; }
.prod-table .mini { width: 54px; height: 40px; object-fit: cover; border-radius: 6px; }
.prod-table .dash { color: var(--line); }
.page-hero .eyebrow a { color: var(--muted); text-decoration: none; }
.page-hero .eyebrow a:hover { color: var(--gold); }
ul.tick { list-style: none; padding: 0; margin: 0; }
ul.tick li { padding: 8px 0 8px 22px; position: relative; border-bottom: 1px solid var(--line); }
ul.tick li:last-child { border-bottom: 0; }
ul.tick li::before {
  content: ""; position: absolute; left: 4px; top: 17px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
}

/* ---------- Publications ---------- */
.papers { list-style: none; counter-reset: pub; margin: 0; padding: 0; }
.papers li {
  counter-increment: pub; position: relative;
  padding: 18px 0 18px 44px; border-bottom: 1px solid var(--line);
}
.papers li:last-child { border-bottom: 0; padding-bottom: 0; }
.papers li::before {
  content: counter(pub, decimal-leading-zero);
  position: absolute; left: 0; top: 20px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .72rem; color: var(--gold); letter-spacing: .04em;
}
.papers h4 {
  margin: 0 0 6px; font-family: var(--display); font-weight: 600;
  font-size: 1.05rem; line-height: 1.3; color: var(--ink);
}
.papers .authors { margin: 0 0 2px; font-size: .9rem; color: var(--ink); }
.papers .cite { margin: 0 0 10px; font-size: .86rem; color: var(--muted); }
.papers .arrow-link { font-size: .86rem; }
