/* ============================================================
   VHP Decontamination — pharma-clean dark theme
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;600;700&display=swap');

:root{
  /* Surfaces */
  --bg:        #081428;
  --bg-2:      #0c1c38;
  --panel:     rgba(255,255,255,.035);
  --panel-2:   rgba(255,255,255,.06);

  /* Text */
  --text:      #eef3fb;
  --muted:     rgba(238,243,251,.62);
  --subtle:    rgba(238,243,251,.45);

  /* Brand — clinical blue + teal accent */
  --brand:     #5fa8ff;
  --brand-deep:#3b82f6;
  --brand-2:   #5dd6c5;
  --warn:      #f59e7b;

  /* Lines / shadows */
  --border:        rgba(255,255,255,.08);
  --border-strong: rgba(255,255,255,.14);
  --shadow:        0 8px 32px rgba(0,0,0,.28);
  --shadow-lift:   0 18px 44px rgba(8,20,40,.55), 0 0 0 1px rgba(95,168,255,.18);

  /* Geometry */
  --radius:    14px;
  --radius-sm: 10px;
  --max:       1120px;

  /* Type */
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* Motion */
  --ease:       cubic-bezier(.4,0,.2,1);
  --t-fast:     .18s var(--ease);
  --t-med:      .28s var(--ease);
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
html{ scroll-behavior:smooth; }

body{
  font-family: var(--sans);
  font-feature-settings: "cv11","ss01","ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background:
    radial-gradient(900px 700px at 12% 10%, rgba(95,168,255,.10), transparent 60%),
    radial-gradient(900px 700px at 88% 18%, rgba(93,214,197,.07), transparent 60%),
    radial-gradient(1100px 800px at 50% 110%, rgba(95,168,255,.06), transparent 60%),
    var(--bg);
  color: var(--text);
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.012em;
  min-height: 100vh;
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: none; }

.container{
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

/* ============================================================
   Animated H2O2 molecule background
   ============================================================ */
.molecule-bg{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.molecule{
  position: absolute;
  opacity: 0;
  will-change: transform;
  animation:
    molDrift var(--dur,40s) ease-in-out var(--delay,0s) infinite,
    molFadeIn 1.2s ease-out var(--fadeDelay,0s) forwards;
}
.molecule svg{
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 14px rgba(95,168,255,.18));
}
@keyframes molFadeIn{
  to{ opacity: var(--targetOpacity, .14); }
}
@keyframes molDrift{
  0%,100%{ transform: translate(0,0) rotate(var(--rot,0deg)); }
  25%    { transform: translate(34px,-42px) rotate(calc(var(--rot,0deg) + 90deg)); }
  50%    { transform: translate(-22px,-66px) rotate(calc(var(--rot,0deg) + 180deg)); }
  75%    { transform: translate(-44px,-18px) rotate(calc(var(--rot,0deg) + 270deg)); }
}
@media (prefers-reduced-motion: reduce){
  .molecule{ animation: molFadeIn 1s ease-out forwards; }
}

/* Ensure all real content sits above molecules */
.site-header, main, footer{ position: relative; z-index: 1; }

/* ============================================================
   Page transitions — evaporate / condense
   Header and molecules stay static; content vaporizes into the
   molecular atmosphere and condenses back out on the next page.
   ============================================================ */

@keyframes condense-in{
  0%{
    opacity: 0;
    filter: blur(22px);
    transform: translateY(-26px) scale(1.035);
  }
  60%{
    filter: blur(4px);
  }
  100%{
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

/* Default condense-in on every page load */
main, footer, .wrap{
  animation: condense-in .78s cubic-bezier(.2,.65,.2,1) both;
  will-change: opacity, filter, transform;
}

/* Stagger footer slightly so it condenses just after main */
footer{ animation-delay: .12s; }

/* Leave state — overrides the entry animation */
body.page-leave main,
body.page-leave footer,
body.page-leave .wrap{
  animation: none;
  opacity: 0;
  filter: blur(20px);
  transform: translateY(-32px) scale(1.05);
  transition:
    opacity .46s cubic-bezier(.55,.06,.68,.19),
    filter .46s cubic-bezier(.55,.06,.68,.19),
    transform .46s cubic-bezier(.55,.06,.68,.19);
}

/* Subtle vapor "bloom" — molecules glow brighter during transitions */
body.page-leave .molecule svg,
.molecule.transition-flare svg{
  filter: drop-shadow(0 0 22px rgba(95,168,255,.42));
  transition: filter .4s ease;
}

/* Reduced motion — keep transition but skip blur/transform */
@media (prefers-reduced-motion: reduce){
  main, footer, .wrap{
    animation: none;
    opacity: 1;
  }
  body.page-leave main,
  body.page-leave footer,
  body.page-leave .wrap{
    opacity: 0;
    filter: none;
    transform: none;
    transition: opacity .25s ease;
  }
}

/* ============================================================
   Skip link / accessibility
   ============================================================ */
.skip-link{
  position:absolute; left:-999px; top:auto;
  width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{
  left: 14px; top: 14px; width:auto; height:auto;
  padding:10px 12px; background:#0e1f3a; border:1px solid var(--border-strong);
  border-radius: 10px; z-index: 9999;
}

/* ============================================================
   Header / navigation — fixed vertical side rail
   ============================================================ */
.site-header{
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 212px;
  z-index: 60;
  background: none;
  border-bottom: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.site-header > .container{
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 30px 0 30px 30px;
}

.nav{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  height: 100%;
  padding: 0;
  gap: 0;
}

.brand{
  display:flex; align-items:center; gap: 11px;
  font-weight: 500; letter-spacing: -.005em;
  margin-bottom: auto;            /* pin brand to the top of the rail */
  transition: opacity var(--t-fast);
}
.brand:hover{ opacity: .85; }
.brand span{ display:flex; flex-direction:column; line-height:1.15; }
.brand small{
  font-weight: 500; font-size: 11px;
  color: var(--muted);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-logo{
  height: 28px;
  width: auto;
  display: block;
  color: var(--text);   /* inline SVG inherits this via stroke="currentColor" */
  border-radius: 6px;   /* softens the .jpg mark used on inner pages */
}

/* Vertical link list, softly centered in the rail */
.nav-links{
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin: auto 0;                 /* vertically center between brand & bottom */
  width: 100%;
}
.nav-links a{
  position: relative;
  display: block;
  padding: 15px 24px;
  color: #ffffff;
  font-size: 21px;
  font-weight: 300;
  letter-spacing: .005em;
  border-radius: 0 999px 999px 0;
  isolation: isolate;
  transition: transform var(--t-med), color var(--t-fast);
}
/* the "soft extend to the right" fill */
.nav-links a::before{
  content:"";
  position:absolute; inset:0;
  border-radius: 0 999px 999px 0;
  border-left: 2px solid var(--brand);
  background: linear-gradient(90deg, rgba(95,168,255,.20), rgba(95,168,255,0) 92%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--t-med);
  z-index: -1;
}
.nav-links a:hover,
.nav-links a:focus-visible{ transform: translateX(7px); }
.nav-links a:hover::before,
.nav-links a:focus-visible::before,
.nav-links a.active::before{ transform: scaleX(1); }
.nav-links a:focus-visible{ outline:2px solid var(--brand); outline-offset:2px; }

.nav-toggle{
  display:none;
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,.04);
  color: var(--text);
  padding: 9px 14px;
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 14px;
  cursor: pointer;
  transition: background var(--t-fast);
}
.nav-toggle:hover{ background: rgba(255,255,255,.08); }

/* Push page content clear of the fixed rail on wider screens */
@media (min-width: 761px){
  body{ padding-left: 212px; }
}

/* ---------- Mobile: collapse the rail back into a top bar ---------- */
@media (max-width: 760px){
  body{ padding-left: 0; }
  .site-header{
    position: sticky;
    top: 0; left: auto; right: auto; bottom: auto;
    width: auto; height: auto;
    background: rgba(8,20,40,.62);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--border);
  }
  .site-header > .container{
    width: min(var(--max), calc(100% - 48px));
    height: auto;
    margin: 0 auto;
    padding: 0;
  }
  .nav{
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: auto;
    padding: 16px 0;
    gap: 16px;
  }
  .brand{ margin-bottom: 0; }
  .nav-toggle{ display:inline-flex; }
  .nav-links{
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    margin: 0;
    background: rgba(8,20,40,.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 16px;
    display: none;
  }
  .nav-links.open{ display: flex; }
  .nav-links a{
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
  }
  .nav-links a::before{ border-radius: 10px; }
  .nav-links a:hover,
  .nav-links a:focus-visible{ transform: none; }
}

/* ============================================================
   N2 brand watermark — huge, faded, self-drawing (right side)
   Injected by main.js on pages that carry the shared header.
   ============================================================ */
/* Full-viewport layer; individual marks are scattered + injected
   by main.js, each with its own --size/--dur/--delay/--peak. */
.brand-watermark{
  position: fixed;
  inset: 0;
  z-index: 0;                     /* behind content (main/footer are z-index:1) */
  pointer-events: none;
  overflow: hidden;
}
.n2-mark{
  position: absolute;
  width: var(--size, 360px);
}
.n2-mark svg{
  width: 100%; height: auto; display: block;
  filter: drop-shadow(0 0 28px rgba(95,168,255,.14));
}
.n2-mark path{
  stroke: var(--brand);
  stroke-dasharray: 1000;         /* path carries pathLength="1000" */
  stroke-dashoffset: 1000;
  opacity: 0;
  will-change: stroke-dashoffset, opacity;
  animation: n2-draw var(--dur, 8s) var(--ease) var(--delay, 0s) infinite;
}
@keyframes n2-draw{
  0%   { stroke-dashoffset: 1000; opacity: 0; }
  8%   { opacity: var(--peak, .14); }
  46%  { stroke-dashoffset: 0;    opacity: var(--peak, .14); }   /* fully drawn */
  70%  { stroke-dashoffset: 0;    opacity: var(--peak, .14); }   /* hold */
  88%  { stroke-dashoffset: 0;    opacity: 0; }                  /* fade out */
  100% { stroke-dashoffset: 1000; opacity: 0; }                  /* reset, loop */
}
@media (prefers-reduced-motion: reduce){
  .n2-mark path{
    animation: none;
    stroke-dashoffset: 0;
    opacity: var(--peak, .12);
  }
}
@media (max-width: 760px){
  .brand-watermark{ display: none; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero{
  padding: 80px 0 40px;
}

/* ============================================================
   Cards
   ============================================================ */
.card{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color var(--t-med), background var(--t-med);
}
.card.pad{ padding: 28px; }
.card.pad-lg{ padding: 40px; }

@media (max-width: 600px){
  .card.pad{ padding: 22px; }
  .card.pad-lg{ padding: 28px; }
}

/* ============================================================
   Typography
   ============================================================ */
.kicker{
  display: inline-block;
  color: var(--brand);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-bottom: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(95,168,255,.07);
  border: 1px solid rgba(95,168,255,.16);
}

h1,h2,h3{
  margin: 12px 0 14px;
  line-height: 1.25;
  letter-spacing: -.005em;
  font-weight: 300;
  color: var(--text);
}
h1{ font-size: clamp(32px, 3.6vw, 48px); font-weight: 300; }
h2{ font-size: clamp(22px, 2.4vw, 30px); font-weight: 300; }
h3{ font-size: 17px; font-weight: 400; }

p{
  margin: 12px 0;
  color: var(--muted);
  font-size: 15.5px;
}
strong{ color: var(--text); font-weight: 500; }

/* ============================================================
   Buttons — soft rise on hover
   ============================================================ */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 14.5px;
  letter-spacing: .02em;
  cursor: pointer;
  text-decoration: none;
  transform: translateY(0);
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 2px 8px rgba(0,0,0,.18);
  transition:
    transform var(--t-med),
    box-shadow var(--t-med),
    background var(--t-fast),
    border-color var(--t-fast),
    color var(--t-fast);
}
.btn:hover{
  transform: translateY(-3px);
  background: rgba(255,255,255,.07);
  box-shadow: var(--shadow-lift);
}
.btn:active{
  transform: translateY(-1px);
  transition-duration: .08s;
}
.btn:focus-visible{
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.btn.primary{
  border-color: rgba(95,168,255,.40);
  background: linear-gradient(135deg, rgba(95,168,255,.22), rgba(95,168,255,.06));
  color: #ecf3ff;
}
.btn.primary:hover{
  border-color: rgba(95,168,255,.60);
  background: linear-gradient(135deg, rgba(95,168,255,.30), rgba(95,168,255,.10));
}

.btn.secondary{
  border-color: rgba(93,214,197,.36);
  background: linear-gradient(135deg, rgba(93,214,197,.16), rgba(93,214,197,.04));
  color: #e8fffa;
}
.btn.secondary:hover{
  border-color: rgba(93,214,197,.55);
  background: linear-gradient(135deg, rgba(93,214,197,.24), rgba(93,214,197,.08));
}

.btn .icon{
  width: 18px; height: 18px;
  display:inline-grid; place-items:center;
}

.cta-row{
  display:flex; flex-wrap:wrap; gap: 12px;
  margin-top: 20px;
}

/* ============================================================
   Lists / utility
   ============================================================ */
.list{
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
}
.list li{ margin: 8px 0; font-size: 15px; }
.list li::marker{ color: var(--brand); }

.hr{
  height:1px;
  background: var(--border);
  margin: 22px 0;
  border: 0;
}

.section{ padding: 24px 0 80px; }

.grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 920px){ .grid-3{ grid-template-columns: 1fr; } }

/* ============================================================
   Profile cards (team)
   ============================================================ */
.profile{
  display:flex; gap: 16px; align-items: flex-start;
}
.avatar{
  width: 52px; height: 52px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(135deg, rgba(95,168,255,.18), rgba(93,214,197,.10));
  display:grid; place-items:center;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .04em;
  color: #f3f8ff;
  flex-shrink: 0;
}
.profile h3{ margin-top: 0; }
.profile p{ margin: 4px 0 10px; font-size: 14px; }

/* ============================================================
   Footer
   ============================================================ */
.footer, footer{
  padding: 32px 0 44px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: rgba(8,16,30,.45);
  margin-top: 40px;
}
.footer .container, footer .container{
  display:flex; justify-content:space-between; gap: 12px; flex-wrap:wrap;
  align-items: center;
}
.tiny{
  font-size: 13px;
  color: var(--subtle);
}
.tiny a{
  color: rgba(238,243,251,.78);
  transition: color var(--t-fast);
}
.tiny a:hover{ color: var(--text); }

/* ============================================================
   Misc helpers
   ============================================================ */
.small-note{
  font-size: 13.5px;
  color: var(--subtle);
  margin-top: 6px;
}

code.inline{
  font-family: var(--mono);
  font-size: .92em;
  padding: 2px 7px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
}