/* ==========================================================================
   TOMBio homepage stylesheet - v22.2 (educational, justified document layout with a side column and justification guard).
   The filename carries the version: the server caches assets for a year, so any
   change to this file ships under a new name.
   ========================================================================== */
:root{
  --accent:#57d202; --accent-deep:#2f7f11; --accent-tint:#edf9e7; --accent-tint2:#dcf3cb;
  --forest:#0c2a1c; --forest-2:#123a26;
  --text:#101714; --text-soft:#41544a; --text-faint:#7c8a82;
  --surface:#ffffff; --surface-muted:#f6f7f5; --border:#e4e8e3; --border-strong:#d3dbd1;
  --radius-sm:12px; --radius-md:18px; --radius-lg:26px;
  --wide:1240px; --shadow:0 18px 50px rgba(16,23,20,.09);
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--surface);color:var(--text);
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased;overflow-x:hidden}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
h1,h2,h3,p{margin:0}
/* one title size across the site: the same as "Overall Research Goal" and the Vision / Mission titles */
h1,h2{font-size:1.04rem;font-weight:700;letter-spacing:-.015em;line-height:1.35}
h3{font-size:1.04rem;font-weight:700;letter-spacing:-.015em;line-height:1.35}
strong{font-weight:700}
/* every paragraph is justified; headings and labels stay flush left */
main p{text-align:justify;text-justify:inter-word;-webkit-hyphens:manual;hyphens:manual}
/* set per paragraph by justify-guard-v1.js when plain justification would leave uneven word gaps */
.jx-hy{-webkit-hyphens:auto;hyphens:auto;hyphenate-limit-chars:8 4 4}
.jx-left{text-align:left}
::selection{background:var(--accent-tint);color:var(--text)}
:focus-visible{outline:2px solid var(--accent-deep);outline-offset:3px;border-radius:8px}
.container{width:min(calc(100% - 48px),var(--wide));margin:0 auto}
.eyebrow{display:inline-block;color:var(--accent-deep);font-size:.71rem;font-weight:800;
  letter-spacing:.16em;text-transform:uppercase}
.ico{display:inline-flex;width:1em;height:1em;flex:0 0 auto;line-height:0;vertical-align:-.12em}
.ico svg{width:100%;height:100%}

/* ---------- header ---------- */
.hdr{position:sticky;top:0;z-index:100;background:rgba(255,255,255,.92);
  backdrop-filter:blur(14px);border-bottom:1px solid transparent;transition:border-color .25s,box-shadow .25s}
.hdr.stuck{border-bottom-color:var(--border);box-shadow:0 10px 30px rgba(16,23,20,.05)}
.hdr__in{display:flex;align-items:center;justify-content:space-between;gap:24px;height:92px}
.brand img{height:56px;width:auto;max-width:100%;display:block}
.nav{display:flex;gap:26px}
.nav a{position:relative;padding:6px 0;font-size:.88rem;font-weight:600;color:var(--text-soft)}
.nav a:hover{color:var(--text)}
.nav a.on{color:var(--text)}
.nav a.on:after{content:"";position:absolute;left:0;right:0;bottom:-2px;height:2px;background:var(--accent);border-radius:2px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;height:52px;padding:0 24px;
  border-radius:999px;border:1px solid transparent;font-size:.9rem;font-weight:700;cursor:pointer;
  transition:transform .2s,box-shadow .2s,background .2s,color .2s,border-color .2s}
.btn--sm{height:44px;padding:0 18px;font-size:.83rem}
.btn--p{background:var(--accent);color:#0e2107}
.btn--p:hover{transform:translateY(-2px);box-shadow:0 12px 26px rgba(87,210,2,.32)}
.btn--g{background:#fff;border-color:var(--border-strong);color:var(--text)}
.btn--g:hover{border-color:var(--accent);color:var(--accent-deep);transform:translateY(-2px)}
.btn--ghost-dark{background:transparent;border-color:rgba(255,255,255,.32);color:#fff}
.btn--ghost-dark:hover{border-color:var(--accent);color:var(--accent)}
.burger{display:none;width:46px;height:46px;align-items:center;justify-content:center;
  border:1px solid var(--border);border-radius:14px;background:#fff;cursor:pointer}
.burger span{position:relative;display:block;width:19px;height:2px;background:var(--text);border-radius:2px;transition:transform .28s}
.burger span:before,.burger span:after{content:"";position:absolute;left:0;width:100%;height:2px;background:var(--text);border-radius:2px;transition:transform .28s,opacity .2s}
.burger span:before{top:-6px}.burger span:after{top:6px}
.burger[aria-expanded=true] span{transform:rotate(45deg)}
.burger[aria-expanded=true] span:before{transform:translateY(6px) rotate(-90deg)}
.burger[aria-expanded=true] span:after{opacity:0}

/* ---------- sections ---------- */
.sec{padding:64px 0}
.sec--first{padding-top:52px}
.sec--muted{background:var(--surface-muted)}
.sec--dark{background:var(--forest);color:#fff}

/* Two-column reading layout: justified text on the left, a side column on the right
   (Vision and Mission, then the research-theme index). It stacks on tablets and phones. */
.doc-grid{display:grid;grid-template-columns:minmax(0,1fr) 450px;gap:56px;align-items:start}
.copy{max-width:none}
.doc-title{margin:0 0 16px;font-size:1.04rem;font-weight:700;letter-spacing:-.015em;line-height:1.35}
.copy p{color:var(--text-soft);font-size:1.02rem;line-height:1.78}
.copy p+p{margin-top:16px}
.copy--goal .btn{margin-top:6px}

.doc-aside{display:grid;gap:16px;position:sticky;top:116px}
.doc-aside article,.theme-index{padding:22px 24px;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface)}
.label{display:block;margin-bottom:8px;color:var(--accent-deep);font-size:.96rem;font-weight:700;letter-spacing:0;text-transform:none}
.doc-aside h3{margin-bottom:10px}
.doc-aside article p{color:var(--text-soft);font-size:.9rem;line-height:1.7}

/* research-theme index: the three themes and the platform, each linking to its block on /research */
.theme-index{display:block}
.theme-index a{display:grid;grid-template-columns:34px 1fr;gap:14px;align-items:center;padding:13px 0;
  border-top:1px solid var(--border);font-size:.93rem;font-weight:600;line-height:1.4;transition:color .2s}
.theme-index a:first-of-type{border-top:0}
.theme-index a:hover{color:var(--accent-deep)}
.theme-index b{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;
  background:var(--accent-tint);color:var(--accent-deep);font-size:.78rem;font-weight:800}
.theme-index .theme-index__platform b{background:transparent;border:1px dashed var(--border-strong);color:var(--text-faint)}
/* cta: "Collaborative by Design" */
.cta{display:grid;grid-template-columns:1.3fr .7fr;gap:40px;align-items:center;
  padding:52px 58px;border-radius:var(--radius-lg);background:var(--forest);color:#fff}
.cta h2{color:#fff;margin:0 0 14px}
.cta p{color:rgba(255,255,255,.72)}
.cta__act{display:flex;flex-wrap:wrap;gap:12px;justify-content:flex-end}
/* ---------- footer, full width by construction ---------- */
.ftr{width:100%;background:var(--forest);color:#fff;padding:66px 0 30px}
.ftr__top{display:grid;grid-template-columns:1.2fr 2fr;gap:60px}
.ftr__brand img{height:48px;margin-bottom:14px}
.ftr__brand p{color:rgba(255,255,255,.62);font-size:.86rem}
.ftr__links{display:grid;grid-template-columns:repeat(3,1fr);gap:10px 22px}
.ftr__links a{color:rgba(255,255,255,.74);font-size:.88rem;padding:5px 0;transition:color .2s}
.ftr__links a:hover{color:var(--accent)}
.ftr__base{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;
  margin-top:52px;padding-top:24px;border-top:1px solid rgba(255,255,255,.14);
  color:rgba(255,255,255,.52);font-size:.8rem}

.reveal{opacity:0;transform:translateY(26px);transition:opacity .75s ease,transform .75s ease}
.reveal.in{opacity:1;transform:none}

/* ---------- page loader ---------- */
.tb-loader{position:fixed;left:0;top:0;height:3px;width:100%;z-index:2000;pointer-events:none}
.tb-loader:before{content:"";position:absolute;left:0;top:0;height:100%;width:0;border-radius:0 3px 3px 0;
  background:linear-gradient(90deg,var(--accent-deep),var(--accent));box-shadow:0 0 10px rgba(87,210,2,.5);
  animation:tbLoaderFill 2.4s cubic-bezier(.1,.6,.2,1) forwards}
@keyframes tbLoaderFill{0%{width:0}30%{width:52%}70%{width:82%}100%{width:92%}}
.tb-loader.is-done:before{width:100%;transition:width .25s ease}
.tb-loader.is-hidden{opacity:0;transition:opacity .35s ease}
@media(prefers-reduced-motion:reduce){.tb-loader{display:none}}

@media(max-width:1080px){
  .cta{grid-template-columns:1fr}
  .cta__act{justify-content:flex-start}
}
/* below this the side column would leave the text too narrow to justify evenly, so it moves underneath */
@media(max-width:1180px){
  .doc-grid{grid-template-columns:1fr;gap:34px}
  .copy,.doc-aside{max-width:900px}
  .doc-aside{position:static}
}
@media(max-width:900px){
  .nav{position:fixed;inset:0;z-index:99;flex-direction:column;gap:0;padding:96px 22px 30px;
    background:#fff;transform:translateY(-100%);transition:transform .34s cubic-bezier(.4,0,.2,1);overflow-y:auto}
  .nav.open{transform:none}
  .nav a{padding:17px 4px;font-size:1.04rem;border-bottom:1px solid var(--border);color:var(--text)}
  .nav a.on:after{display:none}
  .burger{display:flex;position:relative;z-index:101}
  .brand{position:relative;z-index:101}
  .hdr__in{height:74px}
  .brand img{height:42px}
  .hdr__in .btn{display:none}
  .hdr{backdrop-filter:none;background:#fff}
  body.lock{overflow:hidden}
}
@media(max-width:760px){
  .sec{padding:46px 0}
  .sec--first{padding-top:34px}
  .cta{padding:30px}
  .ftr__top{grid-template-columns:1fr;gap:34px}
  .ftr__links{grid-template-columns:1fr 1fr}
  .about-brief{grid-template-columns:1fr}
  .copy p{font-size:1rem;line-height:1.72}
}
@media(prefers-reduced-motion:reduce){
  *,*:before,*:after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}
  .reveal{opacity:1!important}
}
