/* ==========================================================================
   Batlak AI Lab — styles.css
   Dark research-institute theme. Petrol teal base, warm ivory text,
   amber accent used sparingly. Space Grotesk display, Inter body.
   ========================================================================== */

:root {
  /* colour */
  --bg:        #0C2E2C;
  --bg-2:      #0A2624;
  --bg-3:      #081E1C;
  --surface:   #0F3431;
  --surface-2: #103734;
  --line:      #1C3A37;
  --line-2:    #23433F;
  --forest:    #164B47;
  --ivory:     #F4EFE3;
  --sage:      #9FBDB6;
  --sage-dim:  #6E928B;
  --amber:     #E0A12E;
  --amber-soft:#F2DDB4;
  --amber-ink: #3A2606;
  --mist:      #DCE9E5;
  --good:      #6FD6A6;

  /* type */
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;

  /* scale */
  --container: 1080px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 8vw, 6rem);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ivory);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* focus */
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--amber); color: var(--amber-ink);
  padding: 10px 16px; border-radius: 0 0 8px 0; font-weight: 600; z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 3.5rem); }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; color: var(--ivory); }
.h-xl { font-size: clamp(2.1rem, 5.5vw, 3.5rem); }
.h-lg { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
.h-md { font-size: clamp(1.2rem, 2.2vw, 1.45rem); }
p { color: var(--sage); }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--sage); max-width: 60ch; }
strong { color: var(--ivory); font-weight: 600; }

/* eyebrow: small label with an amber tick — echoes the ring mark's filled segment */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--body); font-weight: 500; font-size: 0.78rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage-dim);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: ""; width: 22px; height: 3px; border-radius: 2px;
  background: var(--amber);
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 600; font-size: 1.15rem; color: var(--ivory); }
.brand__mark { width: 26px; height: 26px; flex: none; }
.brand__tag { font-family: var(--body); font-weight: 500; font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sage-dim); align-self: center; margin-left: -3px; }

.nav__links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav__links a { font-size: 0.95rem; color: var(--sage); transition: color 0.2s var(--ease); }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--ivory); }

.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--ivory); }
.nav__toggle svg { width: 24px; height: 24px; }

@media (max-width: 760px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: fixed; inset: 68px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--pad) 1.25rem;
    transform: translateY(-120%); transition: transform 0.28s var(--ease);
    max-height: calc(100vh - 68px); overflow-y: auto;
  }
  .nav__links[data-open="true"] { transform: translateY(0); }
  .nav__links li { width: 100%; border-bottom: 1px solid var(--line); }
  .nav__links a { display: block; padding: 0.9rem 0; font-size: 1.05rem; }
}

/* ---------- buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--body); font-weight: 600; font-size: 0.98rem;
  padding: 0.72rem 1.35rem; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer; transition: all 0.2s var(--ease);
}
.btn--primary { background: var(--amber); color: var(--amber-ink); }
.btn--primary:hover { background: #eeb14a; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ivory); border-color: var(--forest); }
.btn--ghost:hover { border-color: var(--sage); background: rgba(255,255,255,0.03); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2rem; align-items: center; }
.hero__title { margin-bottom: 1.3rem; }
.hero__sub { margin-bottom: 2rem; }
.hero__art { display: flex; justify-content: center; align-items: center; }
.hero__art svg { width: min(320px, 80%); height: auto; }
@media (max-width: 820px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; margin-bottom: 0.5rem; }
  .hero__art svg { width: 190px; }
}

/* ---------- stats / work so far ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--surface); padding: 1.6rem 1.4rem; }
.stat__num { font-family: var(--display); font-weight: 600; font-size: 1.9rem; color: var(--ivory); line-height: 1; }
.stat__num--amber { color: var(--amber); }
.stat__label { font-size: 0.9rem; color: var(--sage); margin-top: 0.5rem; }

/* ---------- generic cards grid ---------- */
.grid { display: grid; gap: 1.1rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 720px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--radius); padding: 1.5rem 1.5rem 1.6rem;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.card:hover { border-color: var(--forest); transform: translateY(-2px); }
.card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.card p { font-size: 0.96rem; }
.card__tag { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sage-dim); font-weight: 600; }
.card--muted { background: var(--bg-2); border-style: dashed; border-color: var(--line); }
.card--muted h3 { color: var(--sage); }

/* ---------- featured project ---------- */
.project {
  position: relative; background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--radius); padding: 2rem clamp(1.5rem, 3vw, 2.2rem);
  border-left: 4px solid var(--amber);
}
.project__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.9rem; flex-wrap: wrap; }
.project h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.project p { max-width: 62ch; }
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.2rem 0 1.4rem; }
.chip { font-size: 0.85rem; color: var(--mist); background: var(--forest); border-radius: var(--radius-pill); padding: 0.4rem 0.9rem; }
.project__link { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--amber); font-weight: 600; font-size: 0.98rem; transition: gap 0.2s var(--ease); }
.project__link:hover { gap: 0.7rem; }

/* pill statuses */
.pill { display: inline-flex; align-items: center; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.03em; padding: 0.3rem 0.75rem; border-radius: var(--radius-pill); }
.pill--ongoing { background: var(--line); color: var(--good); }
.pill--submitted { background: #143F2E; color: var(--good); }
.pill--prep { background: #3E3416; color: #E5B85A; }
.pill--planned { background: #2A3F3D; color: var(--sage); }

/* ---------- approach pillars ---------- */
.pillar { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 1.5rem; }
.pillar h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.pillar p { font-size: 0.95rem; }
.pillar__mark { width: 26px; height: 3px; background: var(--amber); border-radius: 2px; margin-bottom: 1rem; }

/* ---------- roadmap ---------- */
.roadmap { display: grid; gap: 0; }
.phase { display: grid; grid-template-columns: 200px 1fr; gap: 1.5rem; padding: 1.6rem 0; border-top: 1px solid var(--line); }
.phase:last-child { border-bottom: 1px solid var(--line); }
.phase__when { font-family: var(--display); font-weight: 600; color: var(--ivory); font-size: 1.1rem; }
.phase__state { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 0.35rem; color: var(--sage-dim); }
.phase__state--done { color: var(--good); }
.phase__state--now { color: var(--amber); }
.phase ul { list-style: none; display: grid; gap: 0.5rem; }
.phase li { color: var(--sage); position: relative; padding-left: 1.25rem; }
.phase li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 6px; height: 6px; border-radius: 50%; background: var(--forest); }
.phase--done li::before { background: var(--good); }
.phase--now li::before { background: var(--amber); }
@media (max-width: 620px) { .phase { grid-template-columns: 1fr; gap: 0.75rem; } }

/* ---------- coming soon panel ---------- */
.comingsoon {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 2.75rem); text-align: center;
}
.comingsoon .pill { margin-bottom: 1rem; background: var(--forest); color: var(--amber-soft); }
.comingsoon h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); margin-bottom: 0.75rem; }
.comingsoon p { max-width: 56ch; margin-inline: auto; }

/* ---------- team ---------- */
.team-group { margin-top: 2rem; }
.team-group__label { font-family: var(--body); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage-dim); margin-bottom: 1rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--line); }
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.1rem; }
.member { display: flex; align-items: center; gap: 0.9rem; }
.avatar { width: 52px; height: 52px; border-radius: 50%; flex: none; background: var(--forest); display: grid; place-items: center; color: var(--sage); overflow: hidden; border: 1px solid var(--line-2); }
.avatar svg { width: 24px; height: 24px; opacity: 0.5; }
.avatar--lead { background: var(--amber); color: var(--amber-ink); }
.member__name { font-weight: 600; color: var(--ivory); font-size: 0.98rem; line-height: 1.25; }
.member__role { font-size: 0.85rem; color: var(--sage); margin-top: 0.15rem; }

/* leadership (people page) */
.leaders { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; max-width: 640px; }
@media (max-width: 620px) { .leaders { grid-template-columns: 1fr; } }
.leader { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 1.75rem; text-align: center; }
.leader .avatar { width: 84px; height: 84px; margin: 0 auto 1rem; }
.leader .avatar svg { width: 36px; height: 36px; }
.leader__name { font-family: var(--display); font-weight: 600; font-size: 1.15rem; color: var(--ivory); }
.leader__role { color: var(--amber); font-size: 0.9rem; margin-top: 0.3rem; }
.leader__link { display: inline-block; margin-top: 0.9rem; font-size: 0.85rem; color: var(--sage); }
.leader__link:hover { color: var(--ivory); }

/* ---------- publications ---------- */
.pubs { display: grid; gap: 1rem; }
.pub { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.pub__top { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.6rem; flex-wrap: wrap; }
.pub h3 { font-size: 1.1rem; }
.pub__venue { color: var(--amber); font-size: 0.85rem; font-weight: 500; }
.pub p { font-size: 0.95rem; }

/* ---------- dataset / distribution placeholder ---------- */
.notice { background: var(--bg-2); border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 1.5rem; color: var(--sage); }
.catlist { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.catlist span { font-size: 0.8rem; color: var(--mist); background: var(--forest); border-radius: var(--radius-pill); padding: 0.3rem 0.75rem; }

/* ---------- breadcrumb ---------- */
.crumb { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.6rem; flex-wrap: wrap; }
.crumb__path { font-size: 0.85rem; color: var(--sage-dim); }
.crumb__back { font-size: 0.9rem; color: var(--amber); font-weight: 500; }

/* ---------- contact ---------- */
.contact-list { display: grid; gap: 1rem; max-width: 520px; }
.contact-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.contact-row a { color: var(--ivory); font-weight: 500; }
.contact-row a:hover { color: var(--amber); }
.contact-row span { color: var(--sage-dim); font-size: 0.9rem; }

/* ---------- footer ---------- */
.footer { background: var(--bg-3); border-top: 1px solid var(--line); padding-block: 2.75rem; margin-top: 2rem; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; }
.footer__brand { max-width: 320px; }
.footer__brand p { font-size: 0.9rem; margin-top: 0.6rem; color: var(--sage-dim); }
.footer__cols { display: flex; gap: 3rem; flex-wrap: wrap; }
.footer__col h4 { font-family: var(--body); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage-dim); margin-bottom: 0.9rem; font-weight: 600; }
.footer__col ul { list-style: none; display: grid; gap: 0.55rem; }
.footer__col a, .footer__col span { font-size: 0.9rem; color: var(--sage); }
.footer__col a:hover { color: var(--ivory); }
.footer__col .soon { color: var(--sage-dim); font-size: 0.72rem; letter-spacing: 0.04em; }
.footer__base { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1.4rem; font-size: 0.82rem; color: var(--sage-dim); }

/* ---------- reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

/* spacing helpers */
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.section-head { max-width: 62ch; margin-bottom: 2.25rem; }
