/* SynCorpo Labs — site styles.
   Built on the AI 2030 design-system tokens (css/ds/*), recoloured to the
   soft high-tech palette: graphite ground, mint / ice blue / lilac / pink accents. */

:root {
  --bg: #0E1621;
  --bg-deep: #0A1019;
  --mint: #7FE3C9;
  --blue: #8FB4FF;
  --lilac: #C7B8F7;
  --pink: #F4B6D2;
  --ink: #0E1621;
  --grad-labs: linear-gradient(120deg, #7FE3C9, #8FB4FF 55%, #C7B8F7);

  /* DS semantic overrides for the dark site */
  --accent: #7FE3C9;
  --accent-hover: #A3EDD9;
  --text-on-accent: #0E1621;
  --text-strong: #E8EEF5;

  /* Readability tokens — swapped by .hc (high contrast) */
  --muted: #BAC6D3;
  --faint: #A7B3C1;
  --soft: #E3EAF1;
  --line: rgba(255, 255, 255, 0.16);
  --nav-idle: #C9D3DE;
}

.hc {
  --muted: #FFFFFF;
  --faint: #E3EAF1;
  --soft: #FFFFFF;
  --line: rgba(255, 255, 255, 0.55);
  --nav-idle: #FFFFFF;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  font-family: 'Bai Jamjuree', Helvetica, sans-serif;
  color: #FFFFFF;
  -webkit-font-smoothing: antialiased;
}
p, h1, h2, h3 { margin: 0; }
a { color: var(--mint); }
a:hover { color: var(--lilac); }
img { display: block; max-width: 100%; }
button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--mint); color: var(--ink); font-weight: 700;
  padding: 10px 16px; border-radius: 999px; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--ink); }

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  zoom: var(--zoom, 1);
}
main { flex: 1; }
[hidden] { display: none !important; }

.container { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; width: 100%; }
.narrow { max-width: 900px; }

/* ---------- Colour helpers ---------- */
.c-mint { color: var(--mint); }
.c-blue { color: var(--blue); }
.c-lilac { color: var(--lilac); }
.c-pink { color: var(--pink); }
.c-white { color: #FFFFFF; }
.c-muted { color: var(--muted); }
.muted { color: var(--muted); }
.soft { color: var(--soft); }

/* ---------- Type ---------- */
.eyebrow {
  font-size: 14px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; margin-bottom: 12px;
}
.label { font-size: 14px; font-weight: 600; letter-spacing: 0.16em; }
.h-display { font-size: clamp(36px, 5vw, 60px); line-height: 1.05; font-weight: 700; }
.h-section { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.1; font-weight: 700; max-width: 820px; text-wrap: balance; }
.lede { font-size: 21px; line-height: 1.55; color: var(--soft); text-wrap: pretty; }
.body { font-size: 17px; line-height: 1.6; color: var(--muted); }
.body-soft { font-size: 17px; line-height: 1.6; color: var(--soft); }

/* ---------- Layout ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(var(--min, 280px), 100%), 1fr)); gap: var(--gap, 20px); }
.row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Buttons (DS Button: primary / secondary, sm / md / lg) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--control-md); padding: 0 22px;
  font-family: var(--font-brand); font-size: var(--fs-body); font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-button);
  border-radius: var(--radius-pill); border: 1.5px solid transparent;
  cursor: pointer; white-space: nowrap; user-select: none; text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-standard), background var(--dur-base) var(--ease-standard),
    box-shadow var(--dur-base) var(--ease-standard), border-color var(--dur-base) var(--ease-standard);
}
.btn:active { transform: scale(0.97); }
.btn--sm { height: var(--control-sm); padding: 0 16px; font-size: var(--fs-body-sm); }
.btn--lg { height: var(--control-lg); padding: 0 30px; font-size: var(--fs-body-lg); }
.btn--full { width: 100%; }
.btn--primary { background: var(--accent); color: var(--text-on-accent); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--accent-hover); color: var(--text-on-accent); }
.btn--secondary { background: transparent; color: var(--accent); border-color: currentColor; }
.btn--secondary:hover { background: rgba(145, 43, 255, 0.06); color: var(--accent); }

/* ---------- Cards & pills ---------- */
.card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
}
.card h3 { font-size: 20px; line-height: 1.25; font-weight: 700; }
.card--feature h3 { font-size: 21px; }
.card__bar { height: 4px; width: 48px; border-radius: 4px; }
.bar-mint-blue { background: linear-gradient(90deg, #7FE3C9, #8FB4FF); }
.bar-blue-lilac { background: linear-gradient(90deg, #8FB4FF, #C7B8F7); }
.bar-lilac-pink { background: linear-gradient(90deg, #C7B8F7, #F4B6D2); }

.step {
  border: 1.5px solid var(--c, var(--mint));
  border-radius: 20px;
  padding: 24px;
}
.step__title { margin-top: 8px; font-size: 21px; font-weight: 600; }
.step__body { margin-top: 6px; font-size: 16px; line-height: 1.55; color: var(--muted); }
.step--sm .step__title { font-size: 20px; }
.step--lg .step__body { font-size: 17px; }
.step--grad { border: 0; background: var(--grad-labs); color: var(--ink); }
.step--grad .step__body { color: var(--ink); }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 17px; font-weight: 500;
  white-space: nowrap;
}
.pill--outline {
  background: none; border-color: rgba(255, 255, 255, 0.16);
  padding: 7px 14px; font-size: 16px;
}

.band { border-top: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }

/* ---------- Accessibility bar ---------- */
.a11y { background: var(--bg-deep); border-bottom: 1px solid var(--line); }
.a11y__inner {
  padding-top: 6px; padding-bottom: 6px;
  display: flex; justify-content: flex-end; align-items: center; gap: 20px; flex-wrap: wrap;
}
.a11y__group { display: flex; align-items: center; gap: 6px; }
.a11y__label { font-size: 14px; color: var(--muted); }
.a11y-btn {
  height: 36px; min-width: 40px; padding: 0 10px;
  border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, 0.4);
  background: transparent; color: #FFFFFF;
  font-weight: 700; cursor: pointer; white-space: nowrap; flex-shrink: 0;
}
.a11y-btn[aria-pressed="true"] { background: var(--mint); border-color: var(--mint); color: var(--ink); }
.a11y-btn--contrast { font-size: 14px; font-weight: 600; padding: 0 14px; min-width: 0; }
.a11y-btn--contrast[aria-pressed="true"] { background: #FFFFFF; border-color: #FFFFFF; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(14, 22, 33, 0.82);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  padding-top: 12px; padding-bottom: 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
  color: #FFFFFF; text-decoration: none;
}
.brand:hover { color: #FFFFFF; }
.brand__name { font-size: 17px; font-weight: 700; letter-spacing: 0.14em; }
.nav { display: flex; align-items: center; gap: 2px; flex: 1 1 auto; flex-wrap: wrap; justify-content: center; }
.nav a {
  border-radius: 999px; padding: 7px 10px;
  font-size: 15px; font-weight: 500; white-space: nowrap; flex-shrink: 0;
  color: var(--nav-idle); text-decoration: none;
}
.nav a:hover { color: #FFFFFF; }
.nav a[aria-current="page"] { color: #FFFFFF; background: rgba(255, 255, 255, 0.1); }

/* ---------- Home ---------- */
.hero {
  position: relative; min-height: 640px; display: flex; align-items: flex-end;
  background: var(--bg) url('../assets/nfhri-facility.jpg') center 45% / cover no-repeat;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,22,33,0.35) 0%, rgba(14,22,33,0.55) 40%, rgba(14,22,33,0.95) 75%, #0E1621 100%);
}
.hero__inner { position: relative; padding-top: 120px; padding-bottom: 72px; }
.hero__kicker { font-size: 14px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #FFFFFF; margin-bottom: 16px; }
.hero h1 { font-size: clamp(40px, 6vw, 76px); line-height: 1.02; font-weight: 700; letter-spacing: -0.01em; max-width: 900px; text-wrap: balance; }
.hero .lede { margin-top: 20px; max-width: 640px; }
.hero__ctas { margin-top: 32px; }
.hero__credit { margin-top: 40px; font-size: 14px; color: var(--muted); letter-spacing: 0.04em; }

.lab-teaser {
  background: linear-gradient(160deg, rgba(127,227,201,0.10), rgba(143,180,255,0.08) 50%, rgba(199,184,247,0.06));
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(28px, 4vw, 56px);
  --min: 320px; --gap: 40px; align-items: center;
}
.lab-teaser h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; font-weight: 700; }
.lab-teaser p { margin-top: 16px; font-size: 18px; line-height: 1.6; color: var(--soft); max-width: 460px; }
.service-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.service-tile {
  background: rgba(14, 22, 33, 0.6); border: 1px solid var(--line); border-radius: 16px;
  padding: 16px; display: flex; flex-direction: column; gap: 6px;
}
.service-tile__num { font-size: 15px; font-weight: 700; }
.service-tile__title { font-size: 17px; font-weight: 600; line-height: 1.3; }

/* ---------- The Lab ---------- */
.photo-banner {
  border-radius: 28px; overflow: hidden; aspect-ratio: 21 / 8; min-height: 240px;
  background: var(--bg) url('../assets/nfhri-facility.jpg') center 45% / cover no-repeat;
}
.challenges { --min: 280px; --gap: 0; border-top: 1px solid var(--line); }
.challenge { padding: 28px; display: flex; flex-direction: column; gap: 10px; border-left: 1px solid var(--line); }
.challenge:first-child { padding-left: 0; border-left: 0; }
.challenge__num { font-size: 16px; font-weight: 700; color: var(--pink); }
.challenge h3 { font-size: 20px; line-height: 1.25; font-weight: 700; }
.flow { font-size: 15px; font-weight: 600; letter-spacing: 0.02em; color: var(--mint); }

.panel { background: rgba(255,255,255,0.04); border: 1px solid var(--line); border-radius: 20px; padding: 32px; }
.panel h2 { margin-top: 6px; font-size: 28px; font-weight: 700; }
.panel__sub { margin-top: 4px; font-size: 16px; color: var(--muted); }
.services { margin-top: 24px; display: flex; flex-direction: column; gap: 22px; list-style: none; padding: 0; }
.service { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; }
.service__num { font-size: 20px; font-weight: 700; }
.service__title { font-size: 20px; font-weight: 600; }
.service p { margin-top: 4px; font-size: 17px; line-height: 1.55; color: var(--muted); }
.tagline { margin-top: 40px; font-size: 22px; font-weight: 600; line-height: 1.35; }

/* ---------- About ---------- */
.heritage-photo {
  border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 3;
  background: var(--bg) url('../assets/nfhri-facility.jpg') center / cover no-repeat;
}
.divider { border-top: 1px solid var(--line); }
.founder { gap: 12px; }
.founder__photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: rgba(255,255,255,0.06); }
.founder h2 { margin-top: 8px; font-size: 23px; font-weight: 700; }
.founder__role { font-size: 18px; font-weight: 600; }
.founder p { font-size: 17px; line-height: 1.6; color: var(--soft); flex: 1; }
.founder__orgs { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.1); list-style: none; margin: 0; padding-left: 0; }
.founder__orgs li { font-size: 14px; font-weight: 600; letter-spacing: 0.06em; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,0.08); white-space: nowrap; }

/* ---------- Coalition ---------- */
.synergy { display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); gap: 12px; align-items: stretch; }
.synergy .card { gap: 10px; }
.synergy h2 { font-size: 24px; line-height: 1.2; font-weight: 700; }
.synergy__plus { display: flex; align-items: center; justify-content: center; }
.synergy__plus span {
  width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center; font-size: 20px; line-height: 1;
}
.synergy-band {
  margin-top: 12px; background: var(--grad-labs); border-radius: 20px; padding: 24px 28px; color: var(--ink);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center;
}
.open-items { --min: 150px; --gap: 16px; margin-top: 32px; }
.open-item { border-top: 2px solid var(--mint); padding: 16px 4px 0; }
.open-item__title { font-size: 19px; font-weight: 600; }
.open-item p { margin-top: 6px; font-size: 16px; line-height: 1.55; color: var(--muted); }
.lifecycle { margin-top: 40px; display: flex; flex-direction: column; gap: 10px; }
.lifecycle__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lifecycle__tag { font-size: 14px; font-weight: 700; letter-spacing: 0.14em; width: 64px; }
.vision-cta {
  background: linear-gradient(160deg, rgba(127,227,201,0.12), rgba(199,184,247,0.08));
  border: 1px solid var(--line); border-radius: 28px; padding: 40px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.partner-name { font-size: 20px; font-weight: 700; }

/* ---------- News ---------- */
.news-item {
  display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 24px;
  padding: 28px 0; border-top: 1px solid var(--line);
}
.news-item__meta { display: flex; flex-direction: column; gap: 8px; }
.news-item__date { font-size: 16px; color: var(--muted); }
.news-item__tag { font-size: 14px; font-weight: 600; letter-spacing: 0.14em; color: var(--mint); }
.news-item h2 { font-size: 22px; line-height: 1.25; font-weight: 600; }
.news-item p { margin-top: 8px; font-size: 17px; line-height: 1.6; color: var(--soft); }
.news-item__links { margin-top: 12px; display: flex; gap: 16px; flex-wrap: wrap; }
.news-item__links a { font-size: 16px; font-weight: 600; color: var(--mint); text-decoration: underline; text-underline-offset: 3px; }
.news-item__links a:hover { color: #FFFFFF; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq h2 { margin: 0; font-size: inherit; }
.faq__q {
  width: 100%; background: none; border: 0; color: #FFFFFF; text-align: left;
  padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; cursor: pointer;
  font-size: 21px; font-weight: 600;
}
.faq__sign { color: var(--mint); font-size: 22px; line-height: 1; }
.faq__a { padding: 0 40px 24px 0; font-size: 18px; line-height: 1.65; color: var(--soft); }

/* ---------- Partner / Join ---------- */
.join-card h2 { font-size: 20px; font-weight: 700; }
.join-card p { margin-top: 6px; }
.form-card {
  background: #F4F6F8; color: var(--ink); border-radius: 20px; padding: 32px; align-self: start;
  --accent: #0E1621; --accent-hover: #26344A; --text-on-accent: #FFFFFF; --text-strong: #0E1621;
}
.form-card form { display: flex; flex-direction: column; gap: 16px; }
.form-card h2 { font-size: 22px; font-weight: 700; }
.field { display: flex; flex-direction: column; gap: 6px; font-family: var(--font-brand); }
.field label { font-size: var(--fs-body-sm); font-weight: var(--fw-medium); color: var(--text-strong); }
.field__control { position: relative; display: flex; align-items: center; }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-brand); font-size: var(--fs-body); color: var(--text-strong);
  background: var(--surface-card);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--dur-base) var(--ease-standard), box-shadow var(--dur-base) var(--ease-standard);
}
.field input, .field select { height: var(--control-md); padding: 0 14px; }
.field select { padding-right: 40px; appearance: none; cursor: pointer; }
.field textarea { padding: 12px 14px; line-height: var(--lh-snug); resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--border-focus); box-shadow: var(--focus-ring); }
.field__chevron { position: absolute; right: 14px; pointer-events: none; color: var(--text-muted); font-size: 12px; }
.thanks { display: flex; flex-direction: column; gap: 12px; padding: 24px 0; }
.thanks h2 { font-size: 24px; }
.thanks p { font-size: 18px; line-height: 1.6; color: #3A4656; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg); }
.footer__top { padding-top: 48px; padding-bottom: 48px; display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer__about { display: flex; flex-direction: column; gap: 8px; max-width: 360px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: flex-start; }
.footer__nav a { padding: 4px 0; font-size: 16px; color: var(--muted); text-decoration: none; }
.footer__nav a:hover { color: #FFFFFF; }
.footer__bottom {
  padding-top: 24px; padding-bottom: 32px; border-top: 1px solid var(--line);
  font-size: 16px; color: var(--soft);
}
.footer__bottom strong { font-weight: 600; color: #FFFFFF; }

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  .synergy { grid-template-columns: minmax(0, 1fr); }
  .synergy__plus { padding: 4px 0; }
  .news-item { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .challenge, .challenge:first-child { padding: 24px 0; border-left: 0; border-top: 1px solid var(--line); }
  .challenge:first-child { border-top: 0; }
  .vision-cta { padding: 28px; }
  .photo-banner { aspect-ratio: auto; height: 240px; }
  .pill { white-space: normal; }
  .service-tiles { grid-template-columns: minmax(0, 1fr); }
}
