/* =========================================================================
   GAISCE BIOSCIENCES — Design System
   "Luminous Precision" — engineered navigation through hostile terrain
   ========================================================================= */

/* ----- Fonts ----- */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500&display=swap');

:root {
  /* Palette — green-through-teal + ink + paper. No gold, no third hue. */
  --mint:        #56F5BD;   /* luminous mint, sampled from the mark */
  --mint-deep:   #3DE0A0;   /* tonal step toward green */
  --teal:        #2A9D8F;
  --green:       #14654F;   /* deep Gaisce green — figures & gravitas */
  --green-2:     #0E4C3B;
  --sage:        #7FBFA8;
  --mint-wash:   #B8DCC6;
  --paper:       #FAFBFA;
  --paper-2:     #F1F4F2;
  --ink:         #0B0F0D;   /* cinematic near-black */
  --ink-2:       #10231C;   /* ink with a green undertone */
  --ink-panel:   #0F1714;

  /* Semantic — light baseline */
  --bg:          var(--paper);
  --fg:          #0B0F0D;
  --fg-soft:     #44524C;
  --fg-faint:    #8A968F;
  --hair:        #D7DED9;        /* hairline rule on light */
  --hair-strong: #BBC6C0;
  --panel:       #FFFFFF;

  /* Accent intensity (tweakable) */
  --accent:      var(--mint);
  --glow:        0.55;          /* 0..1 multiplier for glow strength */

  /* Type */
  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --serif: Georgia, 'Times New Roman', serif;

  /* Spacing scale */
  --s1: 6px; --s2: 12px; --s3: 18px; --s4: 28px; --s5: 44px;
  --s6: 68px; --s7: 100px; --s8: 148px;

  --maxw: 1240px;
  --nav-h: 118px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

/* ----- Reset / base ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.5;
  font-feature-settings: "ss01","cv01","tnum";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--mint); color: var(--ink); }

/* ----- Layout ----- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.wrap-wide { max-width: 1480px; }
section { position: relative; }
.section-pad { padding: var(--s8) 0; }
@media (max-width: 820px){ .section-pad { padding: var(--s7) 0; } .wrap{ padding: 0 22px; } }

/* ----- Typography ----- */
h1,h2,h3,h4 { font-family: var(--sans); font-weight: 500; letter-spacing: -0.02em; line-height: 1.04; margin: 0; text-wrap: balance; }
.display {
  font-size: clamp(40px, 6.4vw, 92px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.98;
}
.h-xl { font-size: clamp(32px, 4.4vw, 60px); letter-spacing: -0.03em; }
.h-lg { font-size: clamp(27px, 3vw, 40px); letter-spacing: -0.025em; }
.h-md { font-size: clamp(21px, 1.9vw, 27px); letter-spacing: -0.02em; }
p { margin: 0; }
.lede { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.5; color: var(--fg-soft); font-weight: 400; }
.body { font-size: 17px; line-height: 1.62; color: var(--fg-soft); }
.measure { max-width: 62ch; }
.measure-sm { max-width: 46ch; }

/* Serif figures — deep green, the gravitas convention */
.figure { font-family: var(--serif); color: var(--green); font-weight: 400; font-feature-settings: "tnum"; letter-spacing: -0.01em; }
.fig-xl { font-family: var(--serif); color: var(--green); font-size: clamp(48px, 6vw, 86px); line-height: 0.95; letter-spacing: -0.02em; font-weight: 400; }

/* Mono metadata labels — the signature tic */
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; }
.label { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; color: var(--teal); }
.label-mint { color: var(--green); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--hair-strong); display: inline-block; }

/* ----- Hairline rules ----- */
.hair { height: 1px; background: var(--hair); border: 0; width: 100%; }
.hair-v { width: 1px; background: var(--hair); align-self: stretch; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500;
  padding: 13px 22px; border-radius: 2px; border: 1px solid transparent;
  cursor: pointer; transition: all .35s var(--ease); white-space: nowrap;
}
.btn .tick { width: 6px; height: 6px; border-radius: 50%; background: currentColor; transition: transform .35s var(--ease); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--green); }
.btn-primary:hover .tick { transform: scale(1.6); box-shadow: 0 0 12px var(--mint); background: var(--mint); }
.btn-mint { background: var(--mint); color: var(--ink); }
.btn-mint:hover { box-shadow: 0 0 0 1px var(--mint), 0 0 30px rgba(86,245,189,.5); }
.btn-ghost { border-color: var(--hair-strong); color: var(--fg); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost-light { border-color: rgba(255,255,255,.22); color: var(--paper); background: transparent; }
.btn-ghost-light:hover { border-color: var(--mint); color: var(--mint); }

/* Link with arrow */
.arrow-link { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--green); transition: gap .3s var(--ease); }
.arrow-link svg { transition: transform .3s var(--ease); }
.arrow-link:hover { gap: 13px; }
.arrow-link:hover svg { transform: translateX(3px); }
.arrow-link.light { color: var(--mint); }

/* ----- Reticle (the recurring ring primitive) ----- */
.reticle { position: relative; display: inline-grid; place-items: center; }
.reticle svg { display: block; overflow: visible; }
.reticle .r-ring { fill: none; stroke: var(--accent); }
.reticle .r-dot  { fill: var(--accent); }

/* ----- Cards & panels ----- */
.card { background: var(--panel); border: 1px solid var(--hair); border-radius: 3px; transition: border-color .4s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease); }
.card:hover { border-color: var(--hair-strong); }
.panel-frost {
  background: rgba(255,255,255,.62);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border: 1px solid rgba(255,255,255,.7);
}

/* ----- Dark section base ----- */
.ink-section { background: var(--ink); color: var(--paper); }
.ink-section { --fg: #EAF1ED; --fg-soft: #9FB1A9; --fg-faint: #6E827A; --hair: rgba(255,255,255,.10); --hair-strong: rgba(255,255,255,.2); --panel: rgba(255,255,255,.03); }
.ink-section .label { color: var(--mint); }
.ink-section .figure, .ink-section .fig-xl { color: var(--mint); }
.ink-section .btn-ghost { border-color: rgba(255,255,255,.22); color: var(--paper); }
.ink-section .btn-ghost:hover { border-color: var(--mint); color: var(--mint); }

/* ----- Reveal animations ----- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"]{ transition-delay: .08s; }
[data-reveal][data-delay="2"]{ transition-delay: .16s; }
[data-reveal][data-delay="3"]{ transition-delay: .24s; }
[data-reveal][data-delay="4"]{ transition-delay: .32s; }
[data-reveal][data-delay="5"]{ transition-delay: .40s; }

/* Hairline draw-on */
.draw-rule { position: relative; height: 1px; background: var(--hair); transform-origin: left; transform: scaleX(0); transition: transform 1.1s var(--ease-out); }
.draw-rule.in { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .draw-rule { transform: scaleX(1) !important; transition: none !important; }
}

/* ----- Nav ----- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 100;
  display: flex; align-items: center;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(250,251,250,.82); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); border-bottom-color: var(--hair); }
.nav.on-dark:not(.scrolled) { color: var(--paper); }
.nav.on-dark:not(.scrolled) .nav-link { color: rgba(234,241,237,.78); }
.nav.on-dark:not(.scrolled) .nav-link:hover, .nav.on-dark:not(.scrolled) .nav-link.active { color: var(--mint); }
.nav-inner { width: 100%; max-width: 1480px; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 16px; }
.brand img { height: 86px; width: auto; filter: drop-shadow(0 0 16px rgba(86,245,189,.45)); transition: filter .35s var(--ease), transform .35s var(--ease); }
.brand:hover img { transform: scale(1.04); filter: drop-shadow(0 0 24px rgba(86,245,189,.7)); }
.brand .brand-tx { font-family: var(--mono); font-size: 15px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; padding-top: 2px; line-height: 1.25; max-width: 7.5ch; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; padding: 9px 13px; color: var(--fg-soft); transition: color .25s; position: relative; }
.nav-link:hover, .nav-link.active { color: var(--green); }
.nav-link.active::after { content:""; position:absolute; left:13px; right:13px; bottom:2px; height:1px; background: currentColor; }
.nav-cta { margin-left: 8px; }
.nav-burger { display: none; }

@media (max-width: 940px){
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: inline-grid; place-items:center; width: 40px; height: 40px; background: none; border: 1px solid var(--hair-strong); border-radius: 2px; cursor: pointer; }
  .nav-burger span { width: 16px; height: 1.4px; background: currentColor; display:block; }
  .nav-burger span + span { margin-top: 4px; }
}
/* mobile menu */
.mobile-menu { position: fixed; inset: 0; z-index: 99; background: var(--ink); color: var(--paper); display: flex; flex-direction: column; justify-content: center; padding: 0 32px; transform: translateY(-100%); transition: transform .5s var(--ease); }
.mobile-menu.open { transform: none; }
.mobile-menu a { font-family: var(--sans); font-size: 30px; font-weight: 500; letter-spacing: -.02em; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.mobile-menu a .mm-idx { font-family: var(--mono); font-size: 12px; color: var(--mint); margin-right: 14px; letter-spacing: .1em; }

/* ----- Footer ----- */
.footer { background: var(--ink); color: var(--paper); padding: var(--s7) 0 var(--s4); }
.footer { --fg-soft:#9FB1A9; --hair: rgba(255,255,255,.1); }
.footer a { color: rgba(234,241,237,.7); transition: color .25s; }
.footer a:hover { color: var(--mint); }
.fls { font-family: var(--mono); font-size: 11px; line-height: 1.7; letter-spacing: .02em; color: #5E7068; text-transform: none; }

/* ----- Misc utilities ----- */
.tm { font-size: 0.5em; vertical-align: super; font-weight: 500; }
.glow-text { text-shadow: 0 0 calc(40px * var(--glow)) rgba(86,245,189,.55); }
.divider-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--fg-faint); display:inline-block; vertical-align: middle; }
.kicker-row { display:flex; align-items:center; gap: 14px; flex-wrap: wrap; }
.grid { display: grid; gap: 1px; }
.stack-sm > * + * { margin-top: var(--s2); }
.stack-md > * + * { margin-top: var(--s3); }
.badge { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; padding: 4px 9px; border: 1px solid var(--hair-strong); border-radius: 2px; color: var(--fg-soft); display:inline-flex; align-items:center; gap:6px; }
.badge.live { border-color: rgba(86,245,189,.4); color: var(--green); }
.badge.live::before { content:""; width:5px; height:5px; border-radius:50%; background: var(--mint-deep); box-shadow: 0 0 8px var(--mint); }

/* ----- Minimalist infographics ----- */
.ig { width: 100%; height: 60px; margin: 2px 0 20px; }
.ig svg { width: 100%; height: 100%; display: block; overflow: visible; }
.ig-line   { fill: none; stroke: var(--hair-strong); stroke-width: 1; }
.ig-faint  { fill: none; stroke: var(--hair); stroke-width: 1; }
.ig-accent { fill: none; stroke: var(--green); stroke-width: 1.5; stroke-linecap: round; }
.ig-dash   { fill: none; stroke: var(--teal); stroke-width: 1.3; stroke-dasharray: 2 4; stroke-linecap: round; }
.ig-cell   { fill: none; stroke: var(--green); stroke-width: 1.4; }
.ig-dot    { fill: var(--mint-deep); }
.ig-fill   { fill: var(--green); }
.ig-faint-dot { fill: var(--fg-faint); }
.ig-cap    { font-family: var(--mono); font-size: 7px; letter-spacing: .14em; fill: var(--fg-faint); text-transform: uppercase; }
/* dark variant (platform systems / ink sections) */
.ink-section .ig-line, .system .ig-line, .sys-visual .ig-line { stroke: rgba(255,255,255,.24); }
.ink-section .ig-faint, .system .ig-faint, .sys-visual .ig-faint { stroke: rgba(255,255,255,.13); }
.ink-section .ig-accent, .system .ig-accent, .sys-visual .ig-accent { stroke: var(--mint); }
.ink-section .ig-dash, .system .ig-dash, .sys-visual .ig-dash { stroke: rgba(86,245,189,.6); }
.ink-section .ig-cell, .system .ig-cell, .sys-visual .ig-cell { stroke: var(--mint); }
.ink-section .ig-dot, .system .ig-dot, .sys-visual .ig-dot { fill: var(--mint); }
.ink-section .ig-fill, .system .ig-fill, .sys-visual .ig-fill { fill: var(--mint); }
.ink-section .ig-cap, .system .ig-cap, .sys-visual .ig-cap { fill: #7E938B; }
.ink-section .ig-faint-dot, .system .ig-faint-dot, .sys-visual .ig-faint-dot { fill: #4A5A53; }

/* ----- Supported-by marquee ----- */
.supporters { padding: 60px 0 64px; border-top: 1px solid var(--hair); background: var(--paper); overflow: hidden; }
.supporters-label { text-align: center; color: var(--fg-faint); letter-spacing: .22em; margin-bottom: 38px; }
.marquee { position: relative; width: 100%; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 11%, #000 89%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 11%, #000 89%, transparent 100%); }
.marquee-track { display: flex; align-items: center; width: max-content; animation: marquee-cross 24s linear infinite; will-change: transform; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.sup-logo { display: inline-flex; align-items: center; justify-content: center; margin-right: 112px; }
.sup-logo img { height: 50px; width: auto; opacity: .66; filter: grayscale(1) contrast(1.05); transition: opacity .3s var(--ease); }
.sup-logo img.logo-bt { height: 62px; }
.sup-logo img.logo-hhu { height: 46px; }
.sup-logo:hover img { opacity: .95; }
/* whole train pans in from the left, fully clears the right, then loops */
@keyframes marquee-cross { from { transform: translateX(-100%); } to { transform: translateX(100vw); } }
@media (prefers-reduced-motion: reduce){
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; width: 100%; justify-content: center; flex-wrap: wrap; gap: 24px 40px; }
  .sup-logo { margin: 0; }
}
@media (max-width: 600px){ .sup-logo { margin-right: 64px; } .sup-logo img { height: 40px; } .sup-logo img.logo-bt { height: 50px; } .sup-logo img.logo-hhu { height: 38px; } }
