/* ================================================================
   VENXUN LABS — Severance-inspired minimal corporate
   Porcelain surfaces, deep Lumon navy, cold mint accent.
   ================================================================ */

:root {
  --porcelain: #eef1ec;
  --porcelain-2: #e4e8e1;
  --ink: #102338;
  --navy: #0a1626;
  --navy-2: #0e1e33;
  --mint: #7fe0c8;
  --mint-dim: #4fb9a1;
  --line: rgba(16, 35, 56, 0.16);
  --line-light: rgba(238, 241, 236, 0.18);
  --font-body: "Archivo", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--porcelain);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

.mono { font-family: var(--font-mono); }

img {
  max-width: 100%;
  display: block;
  /* discourage casual saving — images are studio property */
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

a { color: inherit; }

/* ---------------- Topbar ---------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 2rem;
  background: color-mix(in srgb, var(--porcelain) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand-mark { width: 34px; height: 34px; color: var(--ink); }

.brand-word {
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.32em;
  font-size: 0.85rem;
}

.topnav { display: flex; align-items: center; gap: 1.8rem; }

.topnav a {
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.topnav a:hover { opacity: 1; }

.nav-cta {
  border: 1px solid var(--ink);
  padding: 0.5rem 1rem;
  opacity: 1 !important;
}
.nav-cta:hover { background: var(--ink); color: var(--porcelain); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  font-size: 1.1rem;
  padding: 0.3rem 0.7rem;
  cursor: pointer;
  color: var(--ink);
}

/* ---------------- Hero ---------------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem 4rem;
}

.kicker {
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  color: var(--mint-dim);
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero h1 em { font-style: normal; color: var(--mint-dim); }

.lede {
  margin: 1.6rem 0 2.2rem;
  max-width: 34rem;
  font-size: 1.08rem;
  font-weight: 300;
  color: color-mix(in srgb, var(--ink) 82%, transparent);
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-block;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.9rem 1.6rem;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: all 0.2s;
  background: none;
  color: var(--ink);
}

.btn-solid { background: var(--ink); color: var(--porcelain); }
.btn-solid:hover { background: var(--navy); box-shadow: 0 0 0 4px rgba(127, 224, 200, 0.35); }
.btn-ghost:hover { background: var(--ink); color: var(--porcelain); }
.btn-wide { width: 100%; }

.hero-stats {
  list-style: none;
  display: flex;
  gap: 2.4rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.5rem; font-weight: 600; }
.hero-stats span {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.6;
}

.hero-art {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  /* No panel — the emblem sits directly on the porcelain page. */
}

.hero-art .hero-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-art canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
  cursor: grab;
  touch-action: pan-y;   /* horizontal drag rotates; the page still scrolls */
}

.hero-art.dragging canvas { cursor: grabbing; }

.hero-art.live .hero-fallback { display: none; }

.hero-hint {
  position: absolute;
  left: 50%;
  bottom: 0.9rem;
  transform: translateX(-50%);
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  color: var(--mint-dim);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s;
}

.hero-art.live .hero-hint { opacity: 0.75; }
.hero-art.live.dragging .hero-hint { opacity: 0; }

/* ---------------- Marquee ---------------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  color: var(--mint-dim);
  white-space: nowrap;
}

.marquee-track { display: inline-flex; animation: scroll 40s linear infinite; }

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------------- Sections ---------------- */
.section { padding: 6rem 2rem; max-width: 1200px; margin: 0 auto; }

.section-dark {
  max-width: none;
  background: var(--navy);
  color: var(--porcelain);
}

.section-dark .section-head,
.section-dark .process,
.section-dark .partners,
.section-dark .partners-note,
.section-dark .quote-form {
  max-width: 1136px;
  margin-left: auto;
  margin-right: auto;
}

.section-head { margin-bottom: 3.4rem; max-width: 46rem; }

.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.section-sub {
  margin-top: 1rem;
  font-weight: 300;
  opacity: 0.78;
}

/* ---------------- Cards / grids ---------------- */
.grid { display: grid; gap: 1.2rem; }

.divisions-grid, .pricing-grid { grid-template-columns: repeat(3, 1fr); }

.card {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--porcelain-2) 55%, transparent);
  padding: 1.8rem;
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px -18px rgba(16, 35, 56, 0.45);
}

.card-icon {
  display: inline-flex;
  width: 54px;
  height: 54px;
  padding: 10px;
  margin-bottom: 1.1rem;
  border: 1px solid var(--line);
  color: var(--mint-dim);
  transition: color 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.card-icon svg { width: 100%; height: 100%; }

.card:hover .card-icon {
  color: var(--ink);
  border-color: var(--mint-dim);
  box-shadow: 0 0 0 3px rgba(127, 224, 200, 0.25);
}

.card-num {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--mint-dim);
  margin-bottom: 0.9rem;
}

.card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.6rem; }

.card p { font-size: 0.92rem; font-weight: 300; opacity: 0.85; }

.card-tags {
  margin-top: 1.1rem;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--mint-dim);
  opacity: 1 !important;
}

/* ---------------- Process ---------------- */
.process {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  counter-reset: step;
}

.process li {
  border: 1px solid var(--line-light);
  padding: 1.6rem;
  background: rgba(238, 241, 236, 0.03);
}

.step-num {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  color: var(--mint);
  margin-bottom: 0.8rem;
}

.process h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.5rem; }
.process p { font-size: 0.88rem; font-weight: 300; opacity: 0.75; }


/* ---------------- Work ---------------- */
.work-grid { grid-template-columns: repeat(3, 1fr); }

.work-item {
  border: 1px solid var(--line);
  background: var(--porcelain-2);
}

.work-item img,
.work-item video {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
  display: block;
  filter: saturate(0.55) contrast(1.05) brightness(0.96);
  transition: filter 0.4s;
}

.work-item:hover img,
.work-item:hover video { filter: saturate(1) contrast(1.02); }

.work-item video {
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

.work-feature { margin-bottom: 1.2rem; }

.work-feature img {
  aspect-ratio: 24 / 10.2;
  object-fit: cover;
}

.reel-tag {
  margin-left: auto;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  color: var(--mint-dim);
  border: 1px solid var(--line);
  padding: 0.2rem 0.5rem;
}

.work-item figcaption {
  padding: 0.8rem 1rem;
  font-size: 0.78rem;
  font-weight: 300;
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
}

.work-item figcaption .mono {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--mint-dim);
  font-weight: 600;
}

/* ---------------- Partners ---------------- */
.partners {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid var(--line-light);
}

.partners li {
  flex: 1 1 auto;
  min-width: 170px;
  text-align: center;
  padding: 2.2rem 1.4rem;
  font-size: 0.82rem;
  letter-spacing: 0.3em;
  font-weight: 500;
  border-right: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  color: color-mix(in srgb, var(--porcelain) 85%, transparent);
  transition: color 0.25s, background 0.25s;
}

.partners li:hover { color: var(--mint); background: rgba(127, 224, 200, 0.05); }

.partners-note {
  margin-top: 1.6rem;
  font-size: 0.88rem;
  font-weight: 300;
  opacity: 0.65;
  max-width: 42rem;
}

/* ---------------- Quote form ---------------- */
.quote-form { display: flex; flex-direction: column; gap: 1.1rem; max-width: 46rem !important; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }

.quote-form label {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mint);
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
  background: rgba(238, 241, 236, 0.05);
  border: 1px solid var(--line-light);
  color: var(--porcelain);
  outline: none;
  transition: border-color 0.2s;
  border-radius: 0;
}

.quote-form select option { color: var(--ink); }

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus { border-color: var(--mint); }

.quote-form .btn-solid {
  background: var(--mint);
  color: var(--navy);
  border-color: var(--mint);
  font-weight: 600;
}

.quote-form .btn-solid:hover { background: var(--porcelain); border-color: var(--porcelain); }

.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }

.form-note {
  text-align: center;
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  opacity: 0.5;
}

.form-banner {
  padding: 1rem 1.4rem;
  border: 1px solid var(--mint);
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

/* ---------------- Footer ---------------- */
.footer {
  background: var(--navy-2);
  color: var(--porcelain);
  padding: 4rem 2rem 2rem;
}

.footer-grid {
  max-width: 1136px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}

.footer .brand-mark { color: var(--mint); margin-bottom: 1rem; }

.footer p { font-size: 0.72rem; letter-spacing: 0.14em; line-height: 2; opacity: 0.75; }

.footer a { text-decoration: none; }
.footer a:hover { color: var(--mint); }

.footer-line {
  max-width: 1136px;
  margin: 3rem auto 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-light);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  opacity: 0.45;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 4rem; }
  .divisions-grid, .pricing-grid, .work-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .topnav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--porcelain);
    border-bottom: 1px solid var(--line);
    padding: 1.4rem 2rem;
    gap: 1.2rem;
  }
  .topnav.open { display: flex; }
  .nav-toggle { display: block; }
  .divisions-grid, .pricing-grid, .work-grid, .process, .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.6rem; }
  .section { padding: 4rem 1.4rem; }
}
