/* Visterra Infrastructure — palette and type follow the "Visterra" PowerPoint theme. */

@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-600-italic.woff2") format("woff2"); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --navy: #0B1220;
  --navy-deep: #121B30;
  --copper: #E08A3C;
  --copper-dark: #C9782F;
  --slate: #6E8CAE;
  --slate-mid: #8896B0;
  --slate-light: #AEBBD4;
  --taupe: #8A7A6A;
  --mist: #F4F6FB;
  --white: #FFFFFF;
  --ink-muted: #41506B;   /* body text on light backgrounds */
  --copper-ink: #A55E22;  /* copper for small text on light backgrounds (AA 4.9:1) */

  --font: "Montserrat", "Century Gothic", "Segoe UI", system-ui, sans-serif;
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 10vw, 8rem);
  --radius: 14px;
  --header-h: 72px;
}

/* Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  color: var(--navy);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--copper); color: var(--navy); padding: .6rem 1rem; border-radius: 6px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* Shared type ------------------------------------------------------------ */
.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--copper); margin-bottom: 1rem;
}
.lede { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); line-height: 1.6; max-width: 38em; }
.tick { display: block; width: 44px; height: 5px; background: var(--copper); border-radius: 1px; margin-bottom: 1.25rem; }

.section { padding-block: var(--section-y); position: relative; }
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3rem); }
.section-head .eyebrow { margin-bottom: .75rem; }
.section-intro { margin-top: 1.25rem; font-size: 1.08rem; max-width: 36em; }

.section-light { background: var(--white); color: var(--navy); }
.section-tint  { background: var(--mist);  color: var(--navy); }
.section-dark  { background: var(--navy);  color: var(--mist); }
.section-deep  { background: var(--navy-deep); color: var(--mist); }
.section-light .section-intro, .section-tint .section-intro { color: var(--ink-muted); }
.section-dark .section-intro, .section-deep .section-intro { color: var(--slate-light); }

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .8rem 1.6rem; border-radius: 8px;
  font: 600 .95rem/1 var(--font); letter-spacing: .02em; text-decoration: none;
  border: 2px solid transparent; transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.btn-sm { min-height: 42px; padding: .6rem 1.15rem; font-size: .875rem; }
.btn-copper { background: var(--copper); color: var(--navy); }
.btn-copper:hover { background: #EB9A50; }
.btn-ghost { border-color: rgba(174, 187, 212, .45); color: var(--mist); }
.btn-ghost:hover { border-color: var(--copper); color: var(--white); }
.btn:active { transform: translateY(1px); }

/* Header ------------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(11, 18, 32, .92);
  -webkit-backdrop-filter: saturate(140%) blur(8px); backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: rgba(110, 140, 174, .22); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand img { height: 44px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 2.25rem; }
.site-nav ul { display: flex; gap: 2rem; }
.site-nav ul a {
  color: var(--slate-light); text-decoration: none; font-size: .92rem; font-weight: 500;
  padding-block: .4rem; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.site-nav ul a:hover { color: var(--white); border-bottom-color: var(--copper); }

.nav-toggle { display: none; }

@media (max-width: 959px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; margin-right: -10px; background: none; border: 0; cursor: pointer; color: var(--mist);
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 24px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s, opacity .2s;
  }
  .nav-toggle-bars { position: relative; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -7px; }
  .nav-toggle-bars::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 1.5rem;
    padding: 1.5rem var(--gutter) 2rem; background: var(--navy);
    border-bottom: 1px solid rgba(110, 140, 174, .22);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: .9rem 0; font-size: 1.05rem; border-bottom: 1px solid rgba(110, 140, 174, .15); }
  .site-nav ul a:hover { border-bottom-color: rgba(110, 140, 174, .15); }
  .site-nav .btn { align-self: flex-start; }
}

/* Hero -------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--navy); color: var(--white);
  min-height: min(88vh, 860px); display: flex; align-items: center;
  padding-block: clamp(5rem, 12vw, 9rem) clamp(9rem, 16vw, 13rem);
}
.hero-glow {
  position: absolute; z-index: -1; left: 50%; bottom: 8%; width: 1100px; height: 620px; transform: translateX(-30%);
  background: radial-gradient(closest-side, rgba(255, 226, 194, .22), rgba(224, 138, 60, .14) 35%, rgba(224, 138, 60, .05) 65%, transparent);
  pointer-events: none;
}
.hero-horizon { position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; width: 100%; height: clamp(180px, 30vw, 420px); }
.hero h1 { font-size: clamp(1.95rem, 1.4rem + 4.6vw, 4.6rem); max-width: 14em; letter-spacing: -0.02em; }
.hero .lede { margin-top: 1.75rem; color: var(--slate-light); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 2.5rem; }
.hero-tagline { margin-top: 3.5rem; font-size: .78rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--slate); }

/* Stats ------------------------------------------------------------------- */
.stats { display: grid; gap: clamp(2rem, 4vw, 3.5rem); grid-template-columns: 1fr; }
@media (min-width: 700px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { border-top: 1px solid #DDE3EE; padding-top: 1.75rem; }
.stat-value { font-size: clamp(2.6rem, 2rem + 2.4vw, 3.6rem); font-weight: 600; line-height: 1; color: var(--copper-dark); letter-spacing: -0.02em; }
.stat-value span { font-size: .45em; font-weight: 500; letter-spacing: 0; color: var(--taupe); margin-left: .1em; }
.stat h3 { font-size: 1.1rem; margin: 1.25rem 0 .5rem; }
.stat p:last-child { color: var(--ink-muted); }

/* Phases ------------------------------------------------------------------ */
.phases { display: grid; gap: 2.5rem; grid-template-columns: repeat(3, 1fr); position: relative; counter-reset: none; }
.phases::before {
  content: ""; position: absolute; top: 27px; left: 28px; right: calc((100% - 5rem) / 3 - 28px); height: 2px;
  background: linear-gradient(90deg, var(--copper), var(--copper-dark) 50%, var(--taupe));
  opacity: .55;
}
.phase { position: relative; }
.phase-num {
  position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  font-weight: 600; font-size: 1.25rem; color: var(--navy); background: var(--copper);
  box-shadow: 0 0 0 8px var(--navy);
}
.phase:nth-child(2) .phase-num { background: var(--copper-dark); }
.phase:nth-child(3) .phase-num { background: var(--mist); }
.phase-label { margin-top: 1.75rem; font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--copper); }
.phase h3 { font-size: 1.4rem; margin: .4rem 0 .9rem; color: var(--white); }
.phase p:last-child { color: var(--slate-light); max-width: 30em; }

@media (max-width: 859px) {
  .phases { grid-template-columns: 1fr; gap: 2.75rem; padding-left: 0; }
  .phases::before { top: 28px; bottom: 28px; left: 27px; right: auto; width: 2px; height: auto;
    background: linear-gradient(180deg, var(--copper), var(--copper-dark) 50%, var(--taupe)); }
  .phase { padding-left: 84px; min-height: 56px; }
  .phase-num { position: absolute; left: 0; top: 0; }
  .phase-label { margin-top: .9rem; }
}

/* Deliver / execute ------------------------------------------------------- */
.split { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.panel { background: var(--mist); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 2px rgba(11, 18, 32, .05), 0 12px 32px -18px rgba(11, 18, 32, .25); }
.panel-head {
  padding: 1rem 1.75rem; font-size: .82rem; letter-spacing: .2em; text-transform: uppercase;
}
.panel-head-navy { background: var(--navy); color: var(--white); }
.panel-head-copper { background: var(--copper); color: var(--navy); }
.checklist { padding: 1.5rem 1.75rem 2rem; display: grid; gap: .9rem; }
.checklist li { position: relative; padding-left: 1.6rem; color: var(--navy); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; border-radius: 2px; background: var(--copper);
}

/* Community cards --------------------------------------------------------- */
.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card {
  padding: 2rem 1.75rem; border-radius: var(--radius);
  background: rgba(244, 246, 251, .04); border: 1px solid rgba(110, 140, 174, .2);
  transition: border-color .25s;
}
.card:hover { border-color: rgba(224, 138, 60, .55); }
.card-icon { width: 34px; height: 34px; fill: none; stroke: var(--copper); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1.5rem; }
.card h3 { font-size: 1.15rem; color: var(--white); margin-bottom: .7rem; }
.card p { color: var(--slate-light); font-size: .97rem; }

/* Partner tiles ----------------------------------------------------------- */
.tiles { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 960px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile {
  display: flex; flex-direction: column; gap: .85rem; padding: 2rem 1.75rem;
  background: var(--white); border-radius: var(--radius); border: 1px solid #E3E8F1;
}
.tile-primary { background: var(--navy); border-color: var(--navy); color: var(--mist); }
.tile h3 { font-size: 1.2rem; }
.tile p { color: var(--ink-muted); flex: 1; }
.tile-primary p { color: var(--slate-light); }
.tile-link {
  align-self: flex-start; font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--navy);
  border-bottom: 2px solid var(--copper); padding-bottom: .15rem; margin-top: .5rem;
}
.tile-primary .tile-link { color: var(--white); }
.tile-link span { display: inline-block; transition: transform .2s; }
.tile-link:hover span { transform: translateX(4px); }

/* Team -------------------------------------------------------------------- */
.team { display: grid; gap: 2rem 1.5rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.person { display: flex; flex-direction: column; }
.avatar {
  display: grid; place-items: center; width: 112px; height: 112px; border-radius: 50%; object-fit: cover;
  background: var(--navy); color: var(--copper); font-size: 1.6rem; font-weight: 600; letter-spacing: .06em;
  box-shadow: inset 0 0 0 2px rgba(224, 138, 60, .35); margin-bottom: 1.4rem;
}
.person h3 { font-size: 1.2rem; }
.role { margin-top: .35rem; font-size: .9rem; font-weight: 500; color: var(--copper-ink); }
.nowrap { white-space: nowrap; }
.bio { margin-top: .9rem; font-size: .95rem; color: var(--ink-muted); }
.bio.placeholder { color: var(--slate-mid); }
.linkedin { margin-top: .9rem; font-size: .9rem; font-weight: 600; color: var(--navy); text-decoration-color: var(--copper); text-underline-offset: 4px; }

/* Contact ----------------------------------------------------------------- */
.contact { overflow: hidden; isolation: isolate; }
.contact-glow {
  position: absolute; z-index: -1; right: -10%; top: -30%; width: 900px; height: 700px;
  background: radial-gradient(closest-side, rgba(224, 138, 60, .2), rgba(224, 138, 60, .06) 55%, transparent);
}
.contact-inner { display: grid; gap: 3rem; grid-template-columns: 1.5fr 1fr; align-items: end; }
.contact h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); color: var(--white); max-width: 14em; }
.contact .lede { margin-top: 1.25rem; color: var(--slate-light); }
.contact-email { color: var(--slate-light); font-weight: 500; text-underline-offset: 5px; text-decoration-color: rgba(224, 138, 60, .6); }
.contact-email:hover { color: var(--white); }
.newsletter { padding: 1.75rem; border-radius: var(--radius); border: 1px solid rgba(110, 140, 174, .25); background: rgba(18, 27, 48, .6); }
.newsletter h3 { font-size: 1.05rem; color: var(--white); }
.newsletter p { margin: .5rem 0 1.25rem; font-size: .93rem; color: var(--slate-light); }
@media (max-width: 859px) { .contact-inner { grid-template-columns: 1fr; } }

/* Footer ------------------------------------------------------------------ */
.site-footer { background: var(--navy); border-top: 1px solid rgba(110, 140, 174, .18); padding-block: 3rem; color: var(--slate-mid); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.footer-logo { width: 166px; height: auto; }
.footer-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 2rem; font-size: .88rem; }
.footer-meta a { color: var(--slate-light); text-decoration: none; }
.footer-meta a:hover { color: var(--copper); }

/* 404 --------------------------------------------------------------------- */
.notfound { min-height: 70vh; display: flex; align-items: center; }
.notfound h1 { font-size: clamp(2.2rem, 1.6rem + 3vw, 3.5rem); color: var(--white); }
.notfound-lede { margin-top: 1.25rem; color: var(--slate-light); }

/* Scroll reveal (only when JS is running and motion is allowed) ------------ */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
