/* Salveus Labs, 2027 homepage ("Acid" palette). Plain CSS, no build step. */

:root {
  --ink: #0b0d12;
  --body: #4a4f5c;
  --muted: #8a909c;
  --line: #e8eaee;
  --line-2: #e3e6eb;
  --line-3: #eef0f3;
  --field: #d9dce2;
  --chip: #f6f7f9;

  --acc: #c6f432;
  --acc-ink: #0b0d12;
  --acc-text: #4a6a00;
  --acc-head: #6a9c00;
  --acc-soft: #f3fbd6;
  --dot: #86b800;

  --max: 1240px;
  --gutter: clamp(20px, 4vw, 32px);
  --section: clamp(72px, 9vw, 112px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, video, canvas, svg { display: block; }
button { font: inherit; }
input::placeholder, textarea::placeholder { color: var(--muted); }
:focus-visible { outline: 2px solid var(--acc-text); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

h1, h2, h3 { margin: 0; font-weight: 600; }
.h2 { font-size: clamp(32px, 4vw, 52px); letter-spacing: -0.04em; line-height: 1.02; }
.lede { margin: 0; color: var(--body); font-size: 17px; line-height: 1.6; }

/* Wordmark */
.brand { font-weight: 700; font-size: 17px; letter-spacing: -0.02em; white-space: nowrap; }
.brand sup { font-size: 9px; color: var(--muted); font-weight: 500; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; font-size: 15px; font-weight: 600; line-height: 1.2;
  padding: 14px 24px; border-radius: 999px; border: 0;
  transition: transform .2s var(--ease), border-color .2s, filter .2s;
}
.btn-dark { background: var(--ink); color: #ffffff; }
.btn-dark:hover { transform: translateY(-1px); }
.btn-ghost { padding: 13px 22px; border: 1px solid var(--field); background: rgba(255,255,255,.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-acc { background: var(--acc); color: var(--acc-ink); }
.btn-acc:hover { filter: brightness(1.06); }

/* 1. Nav */
.nav {
  position: sticky; top: 0; z-index: 70;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 16px; padding-bottom: 16px; max-height: 60px; }
.nav-links { display: flex; gap: clamp(14px, 2vw, 28px); font-size: 14px; font-weight: 500; color: var(--body); white-space: nowrap; }
.nav-links a:hover, .foot-col a:hover, .legal-nav a:hover { color: var(--ink); }
.nav-cta { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; padding: 6px 2px; border: 0; border-bottom: 1.5px solid transparent; background: none; color: var(--ink); cursor: pointer; white-space: nowrap; }
.nav-cta:hover { border-bottom-color: var(--acc-text); }
.nav-cta span { color: var(--acc-text); }
@media (max-width: 640px) {
  html { scroll-padding-top: 108px; }
  .nav-inner { flex-wrap: wrap; max-height: none; row-gap: 10px; padding-bottom: 12px; }
  .nav-links { order: 3; flex: 1 0 100%; overflow-x: auto; scrollbar-width: none; gap: 14px; justify-content: space-between; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 2px; }
  .nav-links::-webkit-scrollbar { display: none; }
}

/* 2. Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-field {
  position: absolute; inset: 0;
  -webkit-mask-image: linear-gradient(100deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.55) 38%, #000 70%);
  mask-image: linear-gradient(100deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.55) 38%, #000 70%);
}
.hero-field canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(180deg, rgba(255,255,255,0), #ffffff); pointer-events: none; }
.hero-inner {
  position: relative;
  padding-top: clamp(56px, 9vw, 120px); padding-bottom: clamp(64px, 8vw, 104px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 56px; align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(40px, 5.4vw, 76px); letter-spacing: -0.045em; line-height: 0.96; text-wrap: balance; }
.hero h1 span { color: var(--acc-head); }
.hero-lead { margin: 0; max-width: 42ch; font-size: 18px; color: var(--body); line-height: 1.6; text-wrap: pretty; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* Ask Salveus */
.ask {
  position: relative; border-radius: 16px; border: 1px solid var(--line-2);
  background: rgba(255,255,255,.78); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  padding: 28px; display: grid; gap: 16px;
  box-shadow: 0 30px 60px -30px rgba(11,13,18,.25), 0 2px 6px rgba(11,13,18,.04);
}
.ask-title { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.ask-form { display: flex; gap: 8px; align-items: center; border: 1px solid var(--field); border-radius: 999px; padding: 6px 6px 6px 18px; background: #ffffff; }
.ask-form:focus-within { border-color: var(--acc-text); box-shadow: 0 0 0 3px var(--acc-soft); }
.ask-form input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: var(--ink); font: inherit; font-size: 15px; }
.ask-go { border: 0; cursor: pointer; width: 38px; height: 38px; border-radius: 50%; background: var(--acc); color: var(--acc-ink); font-size: 16px; flex: none; }
.ask-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ask-chips button { border: 1px solid var(--line-2); cursor: pointer; font-size: 13px; padding: 7px 12px; border-radius: 999px; background: var(--chip); color: var(--body); text-align: left; }
.ask-chips button:hover { border-color: var(--ink); color: var(--ink); }
.ask-answer { border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 12px; }
.ask-answer[hidden] { display: none; }
.ask-answer p { margin: 0; font-size: 15px; line-height: 1.6; text-wrap: pretty; }
.ask-refs { display: flex; flex-wrap: wrap; gap: 8px; }
.ask-refs span { font-size: 12px; font-weight: 500; color: var(--acc-text); background: var(--acc-soft); border-radius: 999px; padding: 4px 10px; }
.ask-person { justify-self: start; font-size: 14px; font-weight: 600; color: var(--acc-text); background: none; border: 0; padding: 0; cursor: pointer; }

/* 3. Product carousel */
.marquee {
  position: relative; padding: 26px 0; overflow: hidden; border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; gap: 64px; width: max-content; padding-left: 64px; animation: slvMarq 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-row { display: flex; gap: 64px; margin: 0; padding: 0; list-style: none; }
.marquee-item { display: inline-flex; align-items: center; gap: 14px; border: 0; background: none; cursor: pointer; color: var(--ink); padding: 0; white-space: nowrap; }
.marquee-item svg { stroke: var(--dot); flex: none; }
.marquee-name { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; }
.marquee-tag { font-size: 14px; font-weight: 500; color: var(--muted); }
.soon { font-size: 12px; font-weight: 500; color: var(--acc-text); background: var(--acc-soft); border-radius: 999px; padding: 4px 10px; }
@keyframes slvMarq { to { transform: translateX(-50%); } }
@keyframes slvSpin { to { transform: rotate(360deg); } }

/* 4. Products, Spotlight tiles */
.products { padding-top: var(--section); padding-bottom: var(--section); }
.products:has(+ .products--next) { padding-bottom: 0; }
.products--next { padding-top: clamp(56px, 7vw, 88px); }
.section-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 24px; align-items: end; margin-bottom: 44px; }
.section-head .lede { max-width: 48ch; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.tile {
  display: flex; flex-direction: column; gap: 12px; min-height: 270px; height: 100%; padding: 26px;
  border-radius: 16px; border: 1px solid #1f232b; color: #ffffff; cursor: pointer;
  background: radial-gradient(380px circle at var(--mx, 85%) var(--my, 0%), color-mix(in srgb, var(--acc) 30%, transparent), transparent 65%), var(--ink);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.tile:hover, .tile:focus-visible { transform: translateY(-4px); border-color: var(--acc); box-shadow: 0 30px 60px -30px rgba(11,13,18,.6); }
.tile svg { stroke: var(--acc); flex: none; }
.tile-top { display: flex; align-items: center; gap: 12px; }
.tile-label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-decoration: none; color: var(--acc); border: 1px solid color-mix(in srgb, var(--acc) 45%, transparent); border-radius: 999px; padding: 4px 9px; line-height: 1; cursor: help; }
.tile h3 { font-size: 23px; letter-spacing: -0.03em; }
.tile-desc { margin: 0; color: #b8bcc6; font-size: 14px; line-height: 1.55; }
.tile-foot { margin-top: auto; display: grid; gap: 4px; padding-top: 14px; border-top: 1px solid #1f232b; }
.tile-meta { font-size: 12px; color: var(--muted); }
.tile-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: last baseline; gap: 4px 12px; }
.tile-price { font-size: 15px; font-weight: 600; color: var(--acc); }
.tile-cta { margin-left: auto; font-size: 13px; font-weight: 600; white-space: nowrap; }
.note { margin: 16px 0 0; font-size: 12px; color: var(--muted); }

/* 5. Why Salveus, video */
.why-frame { position: relative; overflow: hidden; border-radius: 20px; aspect-ratio: 16 / 9; max-height: 680px; width: 100%; background: var(--ink); }
.why-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.why-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,13,18,.72) 0%, rgba(11,13,18,.35) 45%, rgba(11,13,18,0) 75%); }
.why-copy { position: absolute; left: clamp(24px, 5vw, 64px); right: clamp(24px, 5vw, 64px); bottom: clamp(24px, 5vw, 64px); max-width: 560px; display: grid; gap: 16px; color: #ffffff; }
.why-copy h2 { font-size: clamp(30px, 4.4vw, 60px); letter-spacing: -0.045em; line-height: 1; }
.why-copy p { margin: 0; font-size: clamp(15px, 1.4vw, 18px); line-height: 1.55; color: #e4e6ea; max-width: 44ch; text-wrap: pretty; }
@media (max-width: 560px) {
  .why-frame { aspect-ratio: 4 / 5; }
  .why-shade { background: linear-gradient(0deg, rgba(11,13,18,.8) 0%, rgba(11,13,18,.4) 55%, rgba(11,13,18,0) 85%); }
}

/* 6. FAQ */
.faq { padding-top: var(--section); padding-bottom: var(--section); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(24px, 4vw, 64px); }
.faq-head { display: grid; gap: 14px; align-content: start; }
.faq-head .lede { max-width: 36ch; }
.faq-list { grid-column: span 2; min-width: 0; border-top: 1px solid var(--line-2); }
@media (max-width: 760px) { .faq-list { grid-column: auto; } }
.faq-list details { border-bottom: 1px solid var(--line-2); }
.faq-list summary { cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-size: 17px; font-weight: 500; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: var(--acc-text); font-size: 20px; line-height: 1; flex: none; }
.faq-list p { margin: 0 0 20px; font-size: 15px; line-height: 1.65; color: var(--body); max-width: 62ch; }

/* 7. CTA band */
.cta { padding-bottom: var(--section); }
.cta-panel { border-radius: 20px; padding: clamp(44px, 6vw, 72px) clamp(24px, 4vw, 56px); background: var(--ink); color: #ffffff; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 28px; align-items: end; }
.cta-panel h2 { font-size: clamp(32px, 4.4vw, 56px); letter-spacing: -0.045em; line-height: 1; }
.cta-panel p { margin: 0; color: #b8bcc6; font-size: 17px; max-width: 46ch; line-height: 1.6; }
.cta-copy { display: grid; gap: 16px; }
.cta-action { display: flex; justify-content: flex-end; }
.cta-action .btn { padding: 15px 26px; }
@media (max-width: 760px) { .cta-action { justify-content: flex-start; } }

/* 8. Footer */
.footer { border-top: 1px solid var(--line); }
.foot-cols { display: grid; grid-template-columns: minmax(200px, 2fr) repeat(5, minmax(0, 1fr)); gap: 40px 24px; padding: 56px 0; }
.foot-brand { min-width: 0; display: grid; gap: 18px; align-content: start; }
.foot-brand p { color: var(--body); font-size: 15px; max-width: 320px; margin: 0; line-height: 1.6; }
.foot-brand .btn { justify-self: start; font-size: 14px; padding: 11px 18px; }
.foot-col { min-width: 0; }
.foot-col h2 { font-size: 13px; font-weight: 600; color: var(--ink); letter-spacing: 0; margin: 0 0 14px; }
.foot-col ul { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--body); }
@media (max-width: 1000px) {
  .foot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; padding: 44px 0; }
}
.foot-bar { display: flex; justify-content: space-between; align-items: center; padding: 24px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; flex-wrap: wrap; gap: 12px; }

/* Contact modal */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(11,13,18,.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal-panel { width: min(620px, 100%); max-height: 90vh; overflow-y: auto; background: #ffffff; border: 1px solid var(--line-2); border-radius: 16px; padding: clamp(24px, 4vw, 36px); box-shadow: 0 40px 100px -30px rgba(11,13,18,.4); }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.modal-head h2 { font-size: 26px; letter-spacing: -0.04em; }
.modal-head p { color: var(--body); font-size: 14px; margin: 6px 0 8px; line-height: 1.5; }
.modal-x { width: 36px; height: 36px; border-radius: 50%; background: var(--chip); border: 1px solid var(--line-2); color: var(--body); cursor: pointer; font-size: 16px; flex: none; }
.enquiry { display: grid; gap: 16px; }
.enquiry[hidden] { display: none; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px; }
.field { display: grid; gap: 7px; align-content: start; font-size: 14px; font-weight: 500; color: var(--body); }
.field em { font-style: normal; color: var(--acc-text); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 14px; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--field); border-radius: 8px; outline: none; background: #ffffff; width: 100%;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--acc-text); box-shadow: 0 0 0 3px var(--acc-soft); }
.form-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 4px; }
.form-actions .btn { padding: 13px 22px; }
.form-actions small { font-size: 12px; color: var(--muted); }
.form-actions small a { text-decoration: underline; }
.form-error { margin: 0; font-size: 13px; color: #b42318; }
.form-error[hidden] { display: none; }
.honeypot { display: none; }
.sent { text-align: center; padding: 28px 0; display: grid; gap: 8px; justify-items: center; }
.sent[hidden] { display: none; }
.sent-tick { width: 56px; height: 56px; border-radius: 50%; background: var(--acc-soft); display: grid; place-items: center; color: var(--acc-text); font-size: 22px; margin-bottom: 8px; }
.sent h2 { font-size: 24px; letter-spacing: -0.03em; }
.sent p { margin: 0 0 12px; color: var(--body); }
.sent .btn { font-size: 14px; padding: 11px 20px; border: 1px solid var(--field); background: #ffffff; color: var(--ink); }
body.modal-open { overflow: hidden; }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: clamp(48px, 7vw, 88px) var(--gutter) var(--section); color: var(--body); font-size: 16px; line-height: 1.7; }
.legal .back { display: inline-block; font-size: 14px; font-weight: 500; color: var(--acc-text); margin-bottom: 28px; }
.legal h1 { color: var(--ink); font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.045em; line-height: 1; margin-bottom: 14px; }
.legal .updated { font-size: 14px; color: var(--muted); margin-bottom: 36px; }
.legal h2 { color: var(--ink); font-size: 22px; letter-spacing: -0.03em; line-height: 1.2; margin: 40px 0 12px; }
.legal p, .legal ul { margin: 0 0 16px; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--acc-text); text-decoration: underline; text-underline-offset: 2px; }
.legal .draft-note { margin-top: 40px; font-size: 13px; color: var(--muted); }
.legal-nav { display: flex; gap: clamp(14px, 2vw, 28px); font-size: 14px; font-weight: 500; color: var(--body); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee { overflow-x: auto; }
  .marquee-track { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
