/* ==========================================================
   Vilir Systems Inc. — site styles
   ========================================================== */

:root {
  --ink: #0e1a3a;          /* navy from the wordmark */
  --ink-soft: #3b4663;
  --muted: #6b7489;
  --line: #e3e6ea;
  --paper: #f7f8f7;
  --white: #ffffff;
  --blue: #2a7de1;         /* left side of the mark */
  --teal: #19a3b1;         /* right side of the mark */
  --grad: linear-gradient(120deg, var(--blue), var(--teal));
  --radius: 4px;
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.6rem, 6.5vw, 5.2rem); font-weight: 400; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); font-weight: 400; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.2rem;
}
.lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--ink-soft); max-width: 40rem; }
.muted { color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s ease, box-shadow .3s ease, color .3s ease;
  color: var(--white);
}
.site-header.solid, .site-header.light {
  background: rgba(247, 248, 247, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  box-shadow: 0 1px 0 var(--line);
  color: var(--ink);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 30px; width: auto; }
.brand span { font-family: var(--display); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }
.brand small { font-weight: 400; opacity: .7; }
.nav-links { display: flex; gap: 36px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none; font-size: 0.92rem; font-weight: 500; opacity: .85;
  padding: 6px 0; border-bottom: 1px solid transparent; transition: opacity .2s, border-color .2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; border-bottom-color: currentColor; }
.nav-toggle {
  display: none; background: none; border: 0; color: inherit; cursor: pointer;
  width: 44px; height: 44px; padding: 10px; margin-right: -10px;
}
.nav-toggle span { display: block; height: 1.5px; background: currentColor; margin: 6px 0; transition: transform .3s, opacity .3s; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--paper); color: var(--ink); padding: 8px var(--gutter) 24px;
    box-shadow: 0 12px 30px rgba(14,26,58,.08);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: all .25s ease;
  }
  .nav-links a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-open .nav-links { transform: none; opacity: 1; pointer-events: auto; }
  .nav-open .site-header { background: var(--paper); color: var(--ink); }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  color: var(--white); overflow: hidden; background: var(--ink);
}
.hero.short { min-height: 72vh; min-height: 72svh; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); animation: drift 18s ease-out forwards; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,16,36,.35) 0%, rgba(8,16,36,.05) 35%, rgba(8,16,36,.72) 100%);
}
.hero-content { position: relative; z-index: 1; padding-bottom: clamp(56px, 10vh, 120px); padding-top: 120px; }
.hero .eyebrow { color: #8fe3ea; }
.hero h1 { max-width: 15ch; }
.hero .lead { color: rgba(255,255,255,.86); }
@keyframes drift { to { transform: scale(1); } }

.scroll-cue {
  position: absolute; right: var(--gutter); bottom: 40px; z-index: 1;
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.7);
  writing-mode: vertical-rl;
}
@media (max-width: 760px) { .scroll-cue { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 0.95rem/1 var(--font); text-decoration: none; cursor: pointer;
  padding: 16px 26px; border-radius: 999px; border: 1px solid currentColor;
  background: transparent; color: inherit; transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.hero .btn:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-solid { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-solid:hover { background: var(--blue); border-color: var(--blue); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }

/* ---------- Sections ---------- */
section { padding: clamp(80px, 12vw, 150px) 0; }
.section-white { background: var(--white); }
.section-dark { background: var(--ink); color: var(--white); }
.section-dark .lead, .section-dark .muted { color: rgba(255,255,255,.72); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
}

.figure { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--line); }
.figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.figure:hover img { transform: scale(1.03); }
.figure.tall { aspect-ratio: 4 / 5; }
.figure.wide { aspect-ratio: 16 / 10; }
.caption { font-size: .8rem; color: var(--muted); margin-top: 10px; letter-spacing: .02em; }

/* Word / meaning block */
.word { font-family: var(--display); font-size: clamp(3.5rem, 11vw, 9rem); font-weight: 300; letter-spacing: -0.04em; line-height: 1; margin: 0; }
.word-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 1.2rem 0 2rem; color: var(--muted); font-size: .95rem; }
.word-meta em { color: var(--teal); font-style: normal; }

/* Venture cards */
.ventures { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 56px; }
@media (max-width: 760px) { .ventures { grid-template-columns: 1fr; } }
.venture {
  position: relative; display: block; min-height: 520px; overflow: hidden; border-radius: var(--radius);
  color: var(--white); text-decoration: none; background: var(--ink);
}
.venture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease, opacity .6s; opacity: .9; }
.venture::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,16,36,0) 30%, rgba(8,16,36,.85) 100%); }
.venture:hover img { transform: scale(1.04); opacity: 1; }
.venture-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(24px, 4vw, 40px); }
.venture h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 400; margin-bottom: .3em; }
.venture p { color: rgba(255,255,255,.8); max-width: 30rem; margin-bottom: 1.2em; }
.tag {
  display: inline-block; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600;
  padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.14); backdrop-filter: blur(6px);
  margin-bottom: 1rem;
}
.tag.live { background: rgba(25,163,177,.85); }
.more { font-size: .92rem; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,.5); padding-bottom: 2px; }

/* Feature list */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 56px; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--white); padding: clamp(28px, 4vw, 44px); }
.feature .num { font-family: var(--display); font-size: .85rem; color: var(--teal); margin-bottom: 1.6rem; display: block; }
.feature p { color: var(--ink-soft); margin: 0; font-size: .97rem; }

/* Principles */
.principles { list-style: none; padding: 0; margin: 48px 0 0; border-top: 1px solid rgba(255,255,255,.15); }
.principles li { display: grid; grid-template-columns: 80px 1fr 1.4fr; gap: 24px; padding: 32px 0; border-bottom: 1px solid rgba(255,255,255,.15); align-items: baseline; }
.principles .n { color: #8fe3ea; font-size: .85rem; }
.principles h3 { font-weight: 400; font-size: 1.5rem; margin: 0; }
.principles p { margin: 0; color: rgba(255,255,255,.72); }
@media (max-width: 760px) { .principles li { grid-template-columns: 1fr; gap: 8px; } }

/* Photo strip */
.strip { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; padding: 0 12px; }
.strip .figure { aspect-ratio: auto; height: clamp(220px, 34vw, 460px); border-radius: 0; }
@media (max-width: 760px) { .strip { grid-template-columns: 1fr 1fr; } .strip .figure:first-child { grid-column: 1 / -1; } }

/* Full-bleed image band */
.band { position: relative; height: clamp(320px, 60vh, 640px); overflow: hidden; padding: 0; }
.band img { width: 100%; height: 100%; object-fit: cover; }
.band-quote {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--white); background: rgba(8,16,36,.35); padding: 0 var(--gutter);
}
.band-quote p { font-family: var(--display); font-size: clamp(1.6rem, 4vw, 3rem); font-weight: 300; letter-spacing: -0.02em; max-width: 22ch; line-height: 1.2; margin: 0; }

/* CTA */
.cta { text-align: center; }
.cta h2 { max-width: 18ch; margin-left: auto; margin-right: auto; }
.cta .lead { margin: 0 auto; }
.cta .btn-row { justify-content: center; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 7vw, 110px); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 22px; }
.field label { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 180px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(42,125,225,.15); }
.field .hint { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5em; font-size: .95rem; margin: 0; }
.form-status.ok { color: #138a6b; }
.form-status.err { color: #c0392b; }
.form button[disabled] { opacity: .6; cursor: progress; }
.contact-aside .figure { margin-top: 40px; aspect-ratio: 4 / 3; }
@media (max-width: 860px) { .contact-aside .figure { display: none; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 64px 0 40px; font-size: .9rem; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-top .brand { color: var(--white); }
.footer-top p { max-width: 26rem; margin: 16px 0 0; }
.footer-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 28px; font-size: .8rem; color: rgba(255,255,255,.5); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg { animation: none; transform: none; }
  html { scroll-behavior: auto; }
}
