﻿:root {
  /* ===== Official SofiaSanté brand guide ===== */
  /* Colour palette */
  --navy: #00256b;        /* Sofia Navy: headings, dark digital accents */
  --teal: #00a9b4;        /* Bio Teal: links & accents (used sparingly) */
  --graphite: #4b4e54;    /* Dark Graphite: body/secondary corporate text */
  --neutral: #e7ecf2;     /* Cool Gray: rules, table lines, quiet backgrounds */
  --white: #ffffff;
  /* Brand typography: Aptos / Aptos Display with the guide's web fallbacks */
  --font-head: "Aptos Display", "Aptos", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Aptos", "Avenir Next", "Helvetica Neue", Arial, sans-serif;

  /* Dark-theme working tokens (background is the agreed brand exception) */
  --bg: #001642;
  --bg-2: #00256b;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-solid: rgba(8, 18, 38, 0.72);
  --panel-border: rgba(0, 169, 180, 0.18);
  --text: #eaf1f8;
  --text-dim: #a7b7c9;
  --text-faint: #6f8298;
  --teal-bright: #1fc9d3;
  --cyan: #4fdbe6;
  --blue: #2f6fc9;
  --grad: linear-gradient(110deg, #00a9b4 0%, #1fc9d3 55%, #4fdbe6 100%);
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; text-size-adjust: 100%; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg); color: var(--text); line-height: 1.65;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background:
    radial-gradient(1200px 700px at 75% -10%, rgba(0, 169, 180, 0.10), transparent 60%),
    radial-gradient(900px 600px at 10% 110%, rgba(0, 169, 180, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
a { color: inherit; }

/* 3D background canvas (inner pages) */
.scene-bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
.scene-scrim {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(1100px 800px at 70% 40%, transparent 0%, rgba(0,22,66,0.48) 70%, rgba(0,22,66,0.78) 100%);
}

/* Scroll progress */
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 0%; background: var(--grad); z-index: 100; transition: width 0.1s linear; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 34px; border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s;
}
.nav.scrolled { background: rgba(0, 22, 66, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--panel-border); padding: 10px 34px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { height: 99px; width: auto; display: block; transition: height 0.4s var(--ease); filter: drop-shadow(0 2px 14px rgba(0, 169, 180,0.25)); }
.nav.scrolled .brand-logo { height: 75px; }

.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--text-dim); text-decoration: none; font-size: 0.92rem; font-weight: 500; letter-spacing: 0.01em; transition: color 0.25s; position: relative; padding: 4px 0; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--teal); }
.nav-links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; background: var(--grad); border-radius: 2px; }

.lang-switcher { display: flex; align-items: center; gap: 8px; margin-left: 18px; color: var(--text-dim); font-size: 0.78rem; font-weight: 600; }
.lang-switcher-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lang-switcher select {
  appearance: none; -webkit-appearance: none;
  min-width: 108px; border: 1px solid var(--panel-border); border-radius: 999px;
  padding: 8px 30px 8px 13px; color: var(--text); background:
    linear-gradient(45deg, transparent 50%, var(--teal) 50%) right 15px center / 6px 6px no-repeat,
    linear-gradient(135deg, var(--teal) 50%, transparent 50%) right 10px center / 6px 6px no-repeat,
    rgba(0, 22, 66, 0.68);
  font: inherit; cursor: pointer;
}
.lang-switcher select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,169,180,0.16); }
.lang-switcher option { color: #04121a; background: #ffffff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; padding: 14px 28px; border-radius: 999px; font-weight: 600; font-size: 0.95rem; transition: all 0.3s var(--ease); cursor: pointer; border: 1px solid transparent; font-family: inherit; }
.btn-primary { background: var(--grad); color: #04121a; box-shadow: 0 8px 30px rgba(0, 169, 180, 0.28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0, 169, 180, 0.45); }
.btn-ghost { border-color: var(--panel-border); color: var(--text); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); background: rgba(0, 169, 180, 0.06); }

/* ---------- Home hero (3D centerpiece) ---------- */
.hero-3d { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(3,10,26,0.96) 0%, rgba(3,10,26,0.88) 30%, rgba(3,10,26,0.45) 54%, rgba(3,10,26,0.08) 76%, transparent 100%),
              linear-gradient(180deg, rgba(3,10,26,0.55) 0%, transparent 28%, transparent 72%, rgba(3,10,26,0.8) 100%); }
body[data-page="home"] .hero-3d {
  background:
    radial-gradient(900px 660px at 76% 46%, rgba(0, 169, 180, 0.14), transparent 62%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
body[data-page="home"] .hero-scrim {
  background:
    linear-gradient(90deg, rgba(0,22,66,0.98) 0%, rgba(0,22,66,0.88) 34%, rgba(0,22,66,0.58) 60%, rgba(0,22,66,0.18) 100%),
    linear-gradient(180deg, rgba(0,22,66,0.36) 0%, transparent 42%, rgba(0,22,66,0.86) 100%);
}
.hero-inner { position: relative; z-index: 2; padding-top: 90px; padding-bottom: 60px; }
.hero .hero-inner { max-width: var(--maxw); }
.hero-inner > * { max-width: 760px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.74rem; font-weight: 600; color: var(--teal); margin-bottom: 20px; }
.hero-title { font-family: var(--font-head); font-weight: 600; font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 26px; }
body[data-page="home"] .hero-title { color: var(--text); text-shadow: 0 10px 34px rgba(0, 0, 0, 0.26); }
body[data-page="home"] .hero-title .grad { display: block; }
body[data-page="home"] .hero-lead,
body[data-page="home"] .hero-sub { text-shadow: 0 8px 28px rgba(0, 0, 0, 0.22); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--text); margin-bottom: 16px; }
.hero-sub { font-size: 1rem; color: var(--text-dim); margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-tag { font-family: var(--font-head); color: var(--text-faint); font-size: 0.95rem; }
.hero-scroll { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--text-faint); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; }
body[data-page="home"] .page-body {
  background: linear-gradient(180deg, rgba(0,22,66,0.92) 0%, var(--bg-2) 100%);
  color: var(--text);
}
body[data-page="home"] .section-title,
body[data-page="home"] .page-body h2,
body[data-page="home"] .page-body h3 { color: var(--text); }
body[data-page="home"] .page-body p,
body[data-page="home"] .band-grid p,
body[data-page="home"] .card p { color: var(--text-dim); }
body[data-page="home"] .stat-label { color: var(--text-faint); }
body[data-page="home"] .cta-band {
  margin-top: 46px;
  padding: 46px 32px 24px;
  background:
    radial-gradient(620px 260px at 50% 0%, rgba(0, 169, 180, 0.12), transparent 72%),
    var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  box-shadow: none;
}
body[data-page="home"] .cta-band .section-title { color: var(--text); }
.hero-scroll-line { width: 1px; height: 46px; background: linear-gradient(var(--teal), transparent); position: relative; overflow: hidden; }
.hero-scroll-line::after { content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%; background: var(--teal); animation: scrolldot 2s var(--ease) infinite; }
@keyframes scrolldot { 0% { top: -50%; } 100% { top: 100%; } }

/* ---------- Inner page hero ---------- */
.page-hero { padding: 168px 0 30px; position: relative; }
.page-hero::after { content: ""; position: absolute; left: 28px; right: 28px; bottom: 0; height: 1px; background: linear-gradient(90deg, var(--teal), transparent 60%); opacity: 0.4; max-width: var(--maxw); margin: 0 auto; }
.page-title { font-family: var(--font-head); font-weight: 600; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 18px; max-width: 900px; }
.page-intro { font-size: clamp(1.02rem, 1.5vw, 1.22rem); color: var(--text-dim); max-width: 720px; }

/* ---------- Sections ---------- */
.section { padding: 66px 0; position: relative; }
.page-body { padding-top: 46px; }
.section-title { font-family: var(--font-head); font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 18px; }
.page-body h2 { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 12px 0 16px; letter-spacing: -0.01em; }
.page-body h3 { font-family: var(--font-head); }
.page-body p { color: var(--text-dim); margin-bottom: 14px; }
.page-body p.lead { color: var(--text); font-size: 1.08rem; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Bands / grids used inside page bodies */
.band { margin-bottom: 40px; }
.band-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 54px; align-items: start; margin-bottom: 40px; }
.band-grid p { color: var(--text-dim); margin-top: 14px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat { background: var(--panel); border: 1px solid var(--panel-border); border-radius: 16px; padding: 22px 20px; backdrop-filter: blur(6px); }
.stat-num { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { display: block; margin-top: 6px; font-size: 0.82rem; color: var(--text-faint); }

.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin: 24px 0; }
.mv-card { position: relative; background: var(--panel); border: 1px solid var(--panel-border); border-radius: 20px; padding: 38px 34px; overflow: hidden; }
.mv-card::before { content: ""; position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: var(--grad); }
.mv-index { font-family: var(--font-head); color: var(--teal-deep); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.1em; }
.mv-card h3 { font-family: var(--font-head); font-size: 1.4rem; margin: 8px 0 12px; }
.mv-card p { color: var(--text-dim); }

.cta-band { text-align: center; padding: 40px 0 10px; }
.cta-band .hero-actions { justify-content: center; margin-top: 22px; }

.principles { display: flex; flex-direction: column; gap: 18px; }
.principle { border-left: 2px solid var(--panel-border); padding-left: 20px; transition: border-color 0.3s; }
.principle:hover { border-color: var(--teal); }
.principle h4 { font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 6px; }
.principle p { color: var(--text-faint); font-size: 0.92rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.card { background: var(--panel); border: 1px solid var(--panel-border); border-radius: 18px; padding: 30px 26px; transition: transform 0.4s var(--ease), border-color 0.4s, background 0.4s; }
.card:hover { transform: translateY(-6px); border-color: rgba(0, 169, 180,0.4); background: rgba(0, 169, 180,0.04); }
.card-icon { width: 46px; height: 46px; margin-bottom: 18px; border-radius: 12px; background: rgba(0, 169, 180,0.1); border: 1px solid var(--panel-border); position: relative; }
.card-icon::before { content: ""; position: absolute; inset: 0; margin: auto; width: 20px; height: 20px; border: 2px solid var(--teal); border-radius: 50%; }
.card-icon::after { content: ""; position: absolute; inset: 0; margin: auto; width: 6px; height: 6px; background: var(--teal); border-radius: 50%; box-shadow: 0 0 12px var(--teal); }
.card h3 { font-family: var(--font-head); font-size: 1.18rem; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 0.93rem; }
.card strong { color: var(--teal); }

.adjacent { margin-top: 34px; background: var(--panel); border: 1px solid var(--panel-border); border-radius: 18px; padding: 30px 32px; }
.adjacent h4 { font-family: var(--font-head); font-size: 1.2rem; margin-bottom: 10px; color: var(--teal); }
.adjacent p { color: var(--text-dim); }

.pipeline-table { border: 1px solid var(--panel-border); border-radius: 18px; overflow: hidden; background: var(--panel); }
.pt-head, .pt-row { display: grid; grid-template-columns: 1fr 1.1fr 1fr 1.8fr; gap: 20px; padding: 20px 26px; }
.pt-head { background: rgba(0, 169, 180,0.06); font-family: var(--font-head); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-faint); }
.pt-row { border-top: 1px solid var(--panel-border); transition: background 0.3s; align-items: center; }
.pt-row:hover { background: rgba(255,255,255,0.02); }
.pt-row strong { font-family: var(--font-head); font-weight: 600; }
.pt-row span { color: var(--text-dim); font-size: 0.92rem; }
.tag { display: inline-block; font-style: normal; font-size: 0.76rem; padding: 4px 12px; border-radius: 999px; border: 1px solid; font-weight: 500; }
.tag-1 { color: var(--teal); border-color: rgba(0, 169, 180,0.4); background: rgba(0, 169, 180,0.08); }
.tag-2 { color: var(--cyan); border-color: rgba(79,219,230,0.4); background: rgba(79,219,230,0.08); }
.tag-3 { color: #5a8fd8; border-color: rgba(47,111,201,0.45); background: rgba(47,111,201,0.12); }
.tag-4 { color: #7fc2ca; border-color: rgba(0,169,180,0.35); background: rgba(0,169,180,0.06); }

.tech-flow { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 44px; }
.tech-flow li { display: flex; align-items: center; gap: 16px; background: var(--panel); border: 1px solid var(--panel-border); border-radius: 14px; padding: 18px 20px; color: var(--text); font-weight: 500; font-size: 0.95rem; transition: transform 0.3s var(--ease), border-color 0.3s; }
.tech-flow li:hover { transform: translateX(6px); border-color: var(--teal); }
.tech-flow li span { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; color: #04121a; background: var(--grad); }

.why-inner { max-width: 820px; }
.why-big { font-family: var(--font-head); font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.3; margin-bottom: 18px; color: var(--text); }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 14px; }
.chips li { background: var(--panel); border: 1px solid var(--panel-border); border-radius: 999px; padding: 12px 22px; font-size: 0.92rem; color: var(--text-dim); transition: all 0.3s var(--ease); }
.chips li:hover { border-color: var(--teal); color: var(--text); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0, 169, 180,0.12); }

.thesis { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.thesis-item { background: var(--panel); border: 1px solid var(--panel-border); border-radius: 14px; padding: 24px 22px; position: relative; padding-left: 44px; transition: border-color 0.3s; }
.thesis-item::before { content: ""; position: absolute; left: 22px; top: 28px; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 12px var(--teal); }
.thesis-item:hover { border-color: rgba(0, 169, 180,0.4); }
.thesis-item h4 { font-family: var(--font-head); font-weight: 500; font-size: 1rem; }

.leader { display: flex; gap: 34px; align-items: center; background: var(--panel); border: 1px solid var(--panel-border); border-radius: 22px; padding: 38px; margin-top: 8px; }
.leader-avatar { flex-shrink: 0; width: 116px; height: 116px; border-radius: 24px; background: var(--grad); display: grid; place-items: center; box-shadow: 0 10px 40px rgba(0, 169, 180,0.25); }
.leader-avatar span { font-family: var(--font-head); font-weight: 700; font-size: 2.3rem; color: #04121a; }
.leader-body h3 { font-family: var(--font-head); font-size: 1.5rem; }
.leader-role { color: var(--teal); font-weight: 600; margin: 4px 0 12px; }
.leader-body p:last-child { color: var(--text-dim); }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card { background: var(--panel); border: 1px solid var(--panel-border); border-radius: 18px; padding: 28px 26px; transition: transform 0.4s var(--ease), border-color 0.4s; }
.news-card:hover { transform: translateY(-6px); border-color: rgba(0, 169, 180,0.4); }
.news-tag { display: inline-block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--teal); margin-bottom: 12px; font-weight: 600; }
.news-card h3 { font-family: var(--font-head); font-size: 1.12rem; line-height: 1.35; margin-bottom: 10px; }
.news-card p { color: var(--text-dim); font-size: 0.92rem; }
.news-note { margin-top: 26px; color: var(--text-faint); font-size: 0.9rem; }

/* CSIRO Kick-Start acknowledgement, official mark kept on white per CSIRO guidelines */
.csiro-ack {
  display: flex; align-items: center; width: fit-content;
  background: transparent; border: 0;
  padding: 0; margin-top: 24px;
}
.csiro-ack-inline { margin: 20px 0 0; }
.csiro-ack a {
  display: inline-flex; align-items: center; justify-content: center; line-height: 0;
  background: #ffffff; border-radius: 10px; padding: 14px 16px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.14);
}
.csiro-ack-inline a { box-shadow: 0 10px 26px rgba(0,0,0,0.12); }
.csiro-logo { height: 112px; width: auto; display: block; }
.csiro-ack-text { flex: 1; min-width: 260px; }
.csiro-ack-text p { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 8px; }
.csiro-ack-text p:last-child { margin-bottom: 0; }
.csiro-ack-text strong { color: var(--text); }
.csiro-statement { font-size: 0.8rem; color: var(--text-faint); font-style: italic; }
@media (max-width: 620px) {
  .csiro-ack { padding: 0; }
  .csiro-ack a { padding: 10px 12px; }
  .csiro-logo { height: 86px; }
}

/* Timeline */
.timeline { position: relative; max-width: 980px; margin-top: 8px; padding-left: 34px; display: grid; gap: 18px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 14px; bottom: 14px; width: 2px; background: linear-gradient(var(--teal), rgba(0,169,180,0.12)); }
.tl-item {
  position: relative; margin-bottom: 0; background: var(--panel);
  border: 1px solid var(--panel-border); border-radius: 16px; padding: 22px 24px;
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
}
.tl-item:hover { transform: translateX(4px); border-color: rgba(0,169,180,0.42); background: rgba(0,169,180,0.035); }
.tl-item:last-child { margin-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -32px; top: 27px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 5px rgba(0,169,180,0.12), 0 0 16px rgba(0,169,180,0.45);
}
.tl-date { display: inline-block; font-family: var(--font-head); color: var(--teal); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; margin-right: 10px; }
.tl-area { display: inline-block; font-size: 0.68rem; color: var(--text-dim); border: 1px solid var(--panel-border); border-radius: 999px; padding: 3px 10px; vertical-align: middle; background: rgba(255,255,255,0.03); }
.tl-title { font-family: var(--font-head); font-size: 1.18rem; margin: 10px 0 7px; line-height: 1.32; }
.tl-item p { color: var(--text-dim); font-size: 0.94rem; max-width: 780px; margin-bottom: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 0.95fr); gap: 42px; align-items: start; }
.contact-lead p { color: var(--text-dim); margin-bottom: 26px; max-width: 520px; }
.contact-side { display: grid; gap: 20px; }
.contact-card { background: var(--panel-solid); border: 1px solid var(--panel-border); border-radius: 22px; padding: 36px; backdrop-filter: blur(8px); }
.contact-card h4 { font-family: var(--font-head); font-size: 1.12rem; margin-bottom: 8px; }
.contact-sub { color: var(--text-faint); font-size: 0.9rem; margin-bottom: 22px; }
.contact-details div { display: flex; gap: 16px; padding: 13px 0; border-top: 1px solid var(--panel-border); }
.contact-details dt { flex-shrink: 0; width: 76px; color: var(--text-faint); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }
.contact-details dd { color: var(--text); font-size: 0.95rem; }
.contact-details a { color: var(--teal); text-decoration: none; }
.contact-details a:hover { text-decoration: underline; }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 18px; margin-top: 18px; }
.contact-form .fld { display: flex; flex-direction: column; gap: 7px; font-size: 0.88rem; color: var(--text-dim); font-weight: 500; }
.contact-form .two-col { align-items: end; }
.contact-form input, .contact-form textarea, .contact-form select {
  background: rgba(255,255,255,0.03); border: 1px solid var(--panel-border); border-radius: 10px;
  padding: 12px 14px; color: var(--text); font-family: inherit; font-size: 0.95rem; width: 100%;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,169,180,0.15); }
.contact-form select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2300a9b4' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 34px; }
.contact-form select option { color: #04121a; background: #ffffff; }
.contact-form textarea { resize: vertical; }
.fld-err { color: #ff9db0; font-size: 0.8rem; font-weight: 400; }

/* Global presence map */
.contact-map { background: var(--panel-solid); border: 1px solid var(--panel-border); border-radius: 22px; padding: 26px; backdrop-filter: blur(8px); }
.contact-map .eyebrow { margin-bottom: 10px; }
.contact-map .section-title { font-size: 1.34rem; margin-bottom: 16px; }
.contact-map .map-wrap { max-width: 100%; margin: 0; }
.contact-map .world-map { filter: drop-shadow(0 8px 28px rgba(0,169,180,0.14)); }
.map-legend.compact { grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-top: 18px; }
.map-legend.compact .loc { gap: 10px; }
.map-legend.compact .loc h4 { font-size: 0.9rem; margin-bottom: 1px; }
.map-legend.compact .loc p { font-size: 0.78rem; line-height: 1.35; }
.map-legend.compact .loc-dot { width: 9px; height: 9px; margin-top: 5px; }
.global-presence .section-title.big { text-align: center; margin-bottom: 34px; }
.global-presence .eyebrow { text-align: center; }
.map-wrap { max-width: 1000px; margin: 0 auto; }
.world-map { width: 100%; height: auto; aspect-ratio: 1010 / 666; display: block; filter: drop-shadow(0 10px 40px rgba(0,169,180,0.12)); }
.map-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; max-width: 1000px; margin: 34px auto 0; }
.loc { display: flex; gap: 14px; align-items: flex-start; }
.loc-dot { flex-shrink: 0; width: 12px; height: 12px; margin-top: 5px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 12px var(--teal); }
.loc h4 { font-family: var(--font-head); font-size: 1.02rem; color: var(--text); margin-bottom: 4px; }
.loc p { color: var(--text-dim); font-size: 0.9rem; }

/* Admin: enquiries + badge */
.badge { display: inline-block; min-width: 18px; padding: 0 6px; height: 18px; line-height: 18px; text-align: center; font-size: 0.72rem; font-weight: 700; color: #04121a; background: var(--teal); border-radius: 999px; }
.enq-list { display: flex; flex-direction: column; gap: 14px; }
.enq { background: var(--panel); border: 1px solid var(--panel-border); border-radius: 14px; padding: 20px 22px; }
.enq-new { border-color: rgba(0,169,180,0.5); box-shadow: 0 0 0 1px rgba(0,169,180,0.2); }
.enq-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.enq-top a { color: var(--teal); text-decoration: none; }
.enq-meta { color: var(--text-faint); font-size: 0.85rem; white-space: nowrap; }
.enq-msg { color: var(--text-dim); font-size: 0.94rem; line-height: 1.6; }

/* Footer */
.footer { border-top: 1px solid var(--panel-border); padding: 30px 0; background: rgba(0, 22, 66, 0.62); position: relative; z-index: 2; }
.disclaimer { border-top: 0; padding-top: 0; }
.disclaimer p { color: var(--text-faint); font-size: 0.8rem; line-height: 1.6; max-width: 980px; }
.disclaimer strong { color: var(--text-dim); }
.credit { margin-top: 8px; font-size: 0.72rem; color: var(--text-faint); opacity: 0.7; }
.credit a { color: var(--text-faint); }

/* ======================================================= ADMIN ======================================================= */
.admin { background: #070c16; color: var(--text); min-height: 100vh; }
.admin::before { display: none; }
.admin-bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 28px; border-bottom: 1px solid var(--panel-border); background: rgba(6,11,22,0.9); position: sticky; top: 0; z-index: 20; }
.admin-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.admin-brand img { height: 34px; }
.admin-brand span { font-family: var(--font-head); color: var(--text-faint); font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; }
.admin-nav { display: flex; align-items: center; gap: 22px; }
.admin-nav a { color: var(--text-dim); text-decoration: none; font-size: 0.9rem; font-weight: 500; }
.admin-nav a:hover, .admin-nav a.active { color: var(--teal); }
.admin-nav .inline { display: inline; }
.admin-logout { background: none; border: 1px solid var(--panel-border); color: var(--text-dim); border-radius: 999px; padding: 7px 16px; cursor: pointer; font-family: inherit; font-size: 0.85rem; transition: all 0.25s; }
.admin-logout:hover { border-color: #e0607a; color: #ff8fa3; }
.admin-main { max-width: 980px; margin: 0 auto; padding: 40px 28px 80px; }
.admin-foot { text-align: center; color: var(--text-faint); font-size: 0.82rem; padding: 24px; border-top: 1px solid var(--panel-border); }
.admin-head { margin-bottom: 26px; }
.admin-head h1 { font-family: var(--font-head); font-size: 1.7rem; }
.muted { color: var(--text-faint); font-size: 0.9rem; }
.muted a { color: var(--teal); text-decoration: none; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.admin-page-card { display: block; background: var(--panel); border: 1px solid var(--panel-border); border-radius: 16px; padding: 22px; text-decoration: none; color: var(--text); transition: transform 0.25s var(--ease), border-color 0.25s; }
.admin-page-card:hover { transform: translateY(-4px); border-color: var(--teal); }
.apc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.apc-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-faint); }
.admin-page-card h3 { font-family: var(--font-head); font-size: 1.15rem; margin-bottom: 4px; }
.apc-slug { color: var(--text-faint); font-size: 0.85rem; font-family: monospace; }
.apc-edit { display: inline-block; margin-top: 14px; color: var(--teal); font-size: 0.88rem; font-weight: 600; }
.pill { font-size: 0.7rem; padding: 3px 10px; border-radius: 999px; font-weight: 600; }
.pill-on { color: var(--teal); background: rgba(0, 169, 180,0.12); }
.pill-off { color: #ffb27a; background: rgba(255,140,60,0.12); }

.alert { padding: 12px 18px; border-radius: 12px; margin-bottom: 20px; font-size: 0.92rem; border: 1px solid; }
.alert-ok { color: #6ff0d0; background: rgba(0,194,180,0.1); border-color: rgba(0,194,180,0.4); }
.alert-error { color: #ff9db0; background: rgba(255,80,110,0.1); border-color: rgba(255,80,110,0.4); }

.form-grid { display: flex; flex-direction: column; gap: 20px; max-width: 820px; }
.form-grid.narrow { max-width: 460px; }
.fld { display: flex; flex-direction: column; gap: 7px; font-size: 0.9rem; color: var(--text-dim); font-weight: 500; }
.fld-label { font-size: 0.9rem; color: var(--text-dim); font-weight: 500; margin-bottom: 8px; display: block; }
.hint { color: var(--text-faint); font-size: 0.8rem; font-weight: 400; }
.fld input, .fld textarea, .admin-login input { background: #0b1424; border: 1px solid var(--panel-border); border-radius: 10px; padding: 12px 14px; color: var(--text); font-family: inherit; font-size: 0.95rem; width: 100%; }
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0, 169, 180,0.15); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fieldset { border: 1px solid var(--panel-border); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.fieldset legend { font-family: var(--font-head); font-weight: 600; color: var(--teal); padding: 0 10px; }
.check { display: flex; align-items: center; gap: 10px; color: var(--text-dim); font-size: 0.92rem; }
.form-actions { display: flex; gap: 14px; align-items: center; }

.radio-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 14px; }
.radio-card { position: relative; border: 1px solid var(--panel-border); border-radius: 14px; padding: 18px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; transition: all 0.25s; }
.radio-card input { position: absolute; opacity: 0; }
.radio-card.selected, .radio-card:has(input:checked) { border-color: var(--teal); background: rgba(0, 169, 180,0.07); box-shadow: 0 0 0 3px rgba(0, 169, 180,0.12); }
.rc-title { font-family: var(--font-head); font-weight: 600; }
.rc-desc { color: var(--text-faint); font-size: 0.85rem; }

/* WYSIWYG */
.wysiwyg { border: 1px solid var(--panel-border); border-radius: 12px; overflow: hidden; background: #0b1424; }
.wy-toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; border-bottom: 1px solid var(--panel-border); background: #0d1830; }
.wy-toolbar button { background: #14203a; border: 1px solid var(--panel-border); color: var(--text-dim); border-radius: 8px; padding: 6px 11px; cursor: pointer; font-family: inherit; font-size: 0.82rem; transition: all 0.2s; }
.wy-toolbar button:hover { border-color: var(--teal); color: var(--teal); }
.wy-editor { padding: 18px 20px; min-height: 320px; max-height: 60vh; overflow-y: auto; color: var(--text); line-height: 1.6; font-size: 0.95rem; }
.wy-editor:focus { outline: none; }
.wy-editor h2, .wy-editor h3 { font-family: var(--font-head); margin: 10px 0; }
.wy-editor p { margin-bottom: 10px; color: var(--text-dim); }
.wy-source { width: 100%; min-height: 340px; padding: 16px; background: #0b1424; color: #cfe; border: none; border-top: 1px solid var(--panel-border); font-family: monospace; font-size: 0.85rem; line-height: 1.5; resize: vertical; }

/* Login */
.admin-login { display: grid; place-items: center; padding: 40px 20px; }
.login-card { width: 100%; max-width: 400px; background: var(--panel); border: 1px solid var(--panel-border); border-radius: 22px; padding: 40px 34px; text-align: center; }
.login-logo { height: 60px; margin-bottom: 22px; }
.login-card h1 { font-family: var(--font-head); font-size: 1.4rem; }
.login-sub { color: var(--text-faint); font-size: 0.9rem; margin: 6px 0 22px; }
.login-links { text-align: center; margin-top: 6px; font-size: 0.88rem; }
.login-links a { color: var(--teal); text-decoration: none; }
.login-links a:hover { text-decoration: underline; }
.stack { display: flex; flex-direction: column; gap: 16px; text-align: left; }
.stack label { display: flex; flex-direction: column; gap: 6px; font-size: 0.88rem; color: var(--text-dim); }
.stack .btn { justify-content: center; margin-top: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav { padding: 12px 22px; }
  .nav.scrolled { padding: 8px 22px; }
  .nav-links { position: fixed; top: 0; right: 0; height: 100svh; width: min(82vw, 340px); flex-direction: column; align-items: flex-start; justify-content: center; gap: 22px; background: rgba(0, 22, 66, 0.98); backdrop-filter: blur(16px); padding: 40px; transform: translateX(100%); transition: transform 0.45s var(--ease); border-left: 1px solid var(--panel-border); box-shadow: -18px 0 46px rgba(0,0,0,0.28); }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.1rem; }
  .lang-switcher { margin-left: auto; margin-right: 12px; }
  .lang-switcher select { min-width: 92px; padding-top: 7px; padding-bottom: 7px; font-size: 0.76rem; }
  .nav-toggle { display: flex; z-index: 95; }
  .brand-logo { height: 78px; }
  .nav.scrolled .brand-logo { height: 60px; }
  .hero-inner { padding-top: 122px; }
  .band-grid, .mv-grid, .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .cards, .news-grid { grid-template-columns: 1fr 1fr; }
  .leader { flex-direction: column; text-align: center; }
  .pt-head { display: none; }
  .pt-row { grid-template-columns: 1fr; gap: 6px; padding: 20px; }
  .pt-row span { display: flex; flex-direction: column; gap: 2px; }
  .pt-row span::before { content: attr(data-label); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--teal-deep); font-family: var(--font-head); }
  .two-col { grid-template-columns: 1fr; }
  .map-legend.compact { grid-template-columns: 1fr 1fr; }
  .admin-nav { gap: 14px; font-size: 0.82rem; flex-wrap: wrap; justify-content: flex-end; }
}
@media (max-width: 620px) {
  .container, .hero-inner { padding-left: 18px; padding-right: 18px; }
  .nav { padding: 9px 16px; }
  .nav.scrolled { padding: 7px 16px; }
  .brand-logo { height: 54px; }
  .nav.scrolled .brand-logo { height: 46px; }
  .lang-switcher { margin-left: auto; margin-right: 10px; }
  .lang-switcher select { min-width: 76px; max-width: 76px; padding: 7px 24px 7px 10px; font-size: 0.72rem; }
  .nav-toggle { padding: 8px; margin-right: -8px; }
  .nav-toggle span { width: 24px; }
  .nav-links { width: 100vw; padding: 98px 26px 34px; justify-content: flex-start; gap: 18px; }
  .nav-links a { width: 100%; padding: 12px 0; font-size: 1rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .section { padding: 42px 0; }
  .page-body { padding-top: 28px; }
  .page-hero { padding-top: 104px; padding-bottom: 22px; }
  .page-title { font-size: clamp(1.85rem, 9vw, 2.35rem); line-height: 1.12; margin-bottom: 14px; }
  .page-intro { font-size: 1rem; line-height: 1.62; }
  .cards, .news-grid, .stats { grid-template-columns: 1fr; }
  .hero-3d { min-height: auto; align-items: flex-start; }
  .hero-canvas, .scene-bg { display: none; }
  .scene-scrim { display: none; }
  .hero-inner { padding-top: 102px; padding-bottom: 34px; }
  body[data-page="home"] .hero-inner > *,
  body[data-page="home"] .disclaimer p {
    width: 100%;
    max-width: min(354px, calc(100vw - 36px));
  }
  .hero-title { font-size: clamp(1.8rem, 9vw, 2.28rem); line-height: 1.1; margin-bottom: 16px; }
  body[data-page="home"] .hero-title,
  body[data-page="home"] .hero-title .grad { max-width: 100%; overflow-wrap: anywhere; }
  .hero-lead { font-size: 1.03rem; line-height: 1.55; margin-bottom: 12px; }
  .hero-sub { display: none; }
  .eyebrow { font-size: 0.68rem; letter-spacing: 0.17em; margin-bottom: 14px; }
  .hero-actions { flex-direction: column; gap: 12px; margin-bottom: 24px; }
  .btn { width: 100%; justify-content: center; min-height: 48px; padding: 12px 18px; font-size: 0.92rem; }
  .hero-tag { font-size: 0.86rem; line-height: 1.45; }
  body[data-page="home"] .hero-tag { display: none; }
  .hero-scroll { display: none; }
  .hero-scrim { background: linear-gradient(180deg, rgba(0,22,66,0.62) 0%, rgba(0,22,66,0.34) 40%, rgba(0,22,66,0.82) 100%); }
  .map-legend.compact { grid-template-columns: 1fr; }
  body[data-page="home"] .hero-scrim {
    background: linear-gradient(180deg, rgba(0,22,66,0.92) 0%, rgba(0,22,66,0.72) 42%, rgba(0,22,66,1) 100%);
  }
  body[data-page="home"] .hero-3d { background: var(--bg); }
  body[data-page="home"]::before { background: linear-gradient(180deg, var(--bg) 0%, var(--bg) 100%); }
  .section-title,
  .page-body h2 { font-size: clamp(1.36rem, 7vw, 1.8rem); line-height: 1.18; }
  .page-body p,
  .card p,
  .mv-card p,
  .news-card p,
  .adjacent p { font-size: 0.94rem; line-height: 1.62; }
  .band { margin-bottom: 30px; }
  .band-grid { gap: 22px; margin-bottom: 30px; }
  .card,
  .mv-card,
  .adjacent,
  .news-card,
  .stat,
  .contact-card,
  .contact-map { border-radius: 14px; padding: 22px 20px; }
  .card:hover,
  .news-card:hover,
  .mv-card:hover,
  .tl-item:hover { transform: none; }
  .tech-flow { grid-template-columns: 1fr; gap: 12px; margin-bottom: 32px; }
  .tech-flow li { align-items: flex-start; padding: 15px 16px; }
  .chips { gap: 10px; }
  .chips li { width: 100%; border-radius: 12px; padding: 11px 14px; }
  .pipeline-table { border-radius: 14px; }
  .pt-row { padding: 18px; gap: 10px; }
  .pt-row strong { font-size: 1.02rem; }
  .pt-row span { font-size: 0.9rem; line-height: 1.5; }
  .tag { width: fit-content; }
  .timeline { padding-left: 20px; gap: 14px; }
  .timeline::before { left: 4px; }
  .tl-item { padding: 18px 18px; border-radius: 14px; }
  .tl-item::before { left: -23px; top: 23px; width: 11px; height: 11px; }
  .tl-date { display: block; margin-right: 0; margin-bottom: 8px; font-size: 0.72rem; }
  .tl-area { font-size: 0.64rem; }
  .tl-title { font-size: 1.04rem; }
  .contact-grid { gap: 24px; }
  .contact-lead { order: 2; }
  .contact-side { order: 1; gap: 16px; }
  .contact-map { order: -1; }
  .contact-form { gap: 15px; }
  .contact-form input,
  .contact-form textarea,
  .contact-form select { min-height: 46px; font-size: 1rem; }
  .contact-form textarea { min-height: 136px; }
  .contact-details div { flex-direction: column; gap: 4px; padding: 12px 0; }
  .contact-details dt { width: auto; }
  .contact-map .section-title { font-size: 1.18rem; margin-bottom: 12px; }
  .world-map { min-height: 190px; object-fit: contain; }
  .map-legend.compact { gap: 10px; margin-top: 14px; }
  .loc p { font-size: 0.82rem; }
  .footer { padding: 24px 0; }
  .disclaimer p { font-size: 0.76rem; line-height: 1.55; }
  .admin-bar { align-items: flex-start; gap: 12px; padding: 12px 16px; }
  .admin-brand img { height: 28px; }
  .admin-nav { width: 100%; justify-content: flex-start; gap: 10px 14px; }
  .admin-main { padding: 28px 18px 60px; }
  .fieldset { padding: 18px; }
  .form-actions { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; }
}
