/* ============================================================
   VOXEL DIGITAL — shared stylesheet
   Tokens: ink #1B1035 · violet #8B4FD6 · cyan #37D3E0 · magenta #E23FA0
   Type: Space Grotesk (display) / Inter (body) / JetBrains Mono (labels)
   ============================================================ */

:root {
  --ink: #1B1035;
  --ink-deep: #120A24;
  --violet: #8B4FD6;
  --violet-soft: #C79BEE;
  --cyan: #37D3E0;
  --magenta: #E23FA0;
  --paper: #F6F4FB;
  --paper-dim: #ECE8F5;
  --muted: #6B6478;
  --white: #FFFFFF;
  --line: rgba(27, 16, 53, 0.10);
  --line-light: rgba(255, 255, 255, 0.14);

  --font-display: 'Space Grotesk', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --container: 1180px;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; color: var(--muted); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: linear-gradient(90deg, var(--magenta), var(--cyan));
  display: inline-block;
}
.eyebrow.on-dark { color: var(--cyan); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn-primary {
  background: linear-gradient(120deg, var(--magenta), var(--violet));
  color: var(--white);
  box-shadow: 0 8px 24px -8px rgba(139, 79, 214, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(139, 79, 214, 0.7); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--violet); color: var(--violet); }

.btn-ghost.on-dark { color: var(--white); border-color: var(--line-light); }
.btn-ghost.on-dark:hover { border-color: var(--cyan); color: var(--cyan); }

.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

/* ---------------- Header / Nav ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 244, 251, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  max-width: var(--container);
  margin: 0 auto;
}
.nav-logo img { height: 34px; }
.nav-links {
  display: flex;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 600;
  font-size: 0.94rem;
}
.nav-links a {
  position: relative;
  padding: 6px 0;
  color: var(--ink);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--magenta), var(--cyan));
  transition: width .2s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--violet); }

.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; }

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    inset: 68px 0 auto 0;
    background: var(--paper);
    flex-direction: column;
    gap: 0;
    padding: 8px 28px 20px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    transition: transform .25s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: flex; }
  .nav-right .btn-ghost { display: none; }
}

/* ---------------- Hero (diagonal split, brand signature) ---------------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  padding: 96px 0 120px;
}
.hero::before {
  /* diagonal cut echoing the letterhead banner */
  content: "";
  position: absolute;
  top: 0; right: -6%;
  width: 46%;
  height: 100%;
  background: var(--paper);
  clip-path: polygon(38% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  top: 0; right: 34.5%;
  width: 10px;
  height: 100%;
  background: linear-gradient(180deg, var(--magenta), var(--violet) 55%, var(--cyan));
  transform: skewX(-16deg);
  z-index: 1;
}
.hero .container { position: relative; z-index: 2; }
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.hero-copy { max-width: 560px; }
.hero-copy p.lead { color: rgba(255,255,255,0.72); font-size: 1.08rem; max-width: 480px; }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

.hero-stats { display: flex; gap: 30px; margin-top: 54px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--cyan); }
.hero-stats div span { font-size: 0.82rem; color: rgba(255,255,255,0.6); }

/* voxel grid visual — signature element */
.voxel-grid {
  position: relative;
  z-index: 2;
  width: 100%;
  aspect-ratio: 1 / 0.92;
}
.voxel-grid svg { width: 100%; height: 100%; }
.vcube { opacity: 0; transform: translateY(14px); animation: rise .7s ease forwards; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

/* small header banner used on inner pages */
.page-head {
  position: relative;
  background: var(--ink);
  color: var(--white);
  padding: 74px 0 64px;
  overflow: hidden;
}
.page-head::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--magenta), var(--violet), var(--cyan));
}
.page-head h1 { margin-bottom: 10px; }
.page-head p { color: rgba(255,255,255,0.68); max-width: 620px; margin: 0; }
.page-head .iso-strip { position: absolute; right: -20px; top: -30px; width: 260px; opacity: 0.5; }

/* ---------------- Sections ---------------- */
section { padding: 96px 0; }
.section-tight { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 54px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.bg-ink { background: var(--ink); color: var(--white); }
.bg-ink p { color: rgba(255,255,255,0.7); }
.bg-dim { background: var(--paper-dim); }

/* Cards */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: 0 18px 40px -18px rgba(27,16,53,0.28);
}
.card .cube-corner {
  width: 34px; height: 34px;
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 0; font-size: 0.95rem; }
.card .tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--violet);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}

/* Service list rows (used on services page) */
.svc-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 22px;
  align-items: start;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.svc-row:last-child { border-bottom: 1px solid var(--line); }
.svc-row .num { font-family: var(--font-mono); color: var(--violet-soft); font-size: 0.85rem; }
.svc-row h3 { margin-bottom: 6px; }
.svc-row .stack {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; align-self: center; max-width: 260px;
}
.chip {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--paper-dim);
  color: var(--ink);
  white-space: nowrap;
}
@media (max-width: 720px) {
  .svc-row { grid-template-columns: 36px 1fr; }
  .svc-row .stack { grid-column: 1 / -1; justify-content: flex-start; margin-top: 10px; }
}

/* Process steps */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 900px) { .process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }
.step { border-left: 2px solid var(--line); padding-left: 18px; }
.bg-ink .step { border-left-color: var(--line-light); }
.step .num { font-family: var(--font-mono); font-size: 0.85rem; color: var(--cyan); }

/* Team */
.team-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.team-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(27,16,53,0.28); }
.team-photo {
  aspect-ratio: 4/3.4;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.team-photo svg { width: 62%; }
.team-body { padding: 20px 22px 24px; }
.team-body .role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--violet);
  display: block;
  margin-bottom: 4px;
}
.team-body h3 { margin-bottom: 8px; }
.team-body p { font-size: 0.9rem; margin-bottom: 0; }

/* Values / list icons */
.value {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.value .dot {
  width: 10px; height: 10px; border-radius: 3px;
  background: linear-gradient(135deg, var(--magenta), var(--cyan));
  margin-top: 8px; flex-shrink: 0;
}
.value h3 { margin-bottom: 4px; font-size: 1.1rem; }
.value p { font-size: 0.92rem; margin-bottom: 0; }

/* Careers */
.perk {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--white);
}
.job {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 18px;
  align-items: center;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  margin-bottom: 16px;
  transition: border-color .2s ease, transform .2s ease;
}
.job:hover { border-color: var(--violet); transform: translateX(4px); }
.job h3 { margin-bottom: 6px; font-size: 1.15rem; }
.job .meta { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; }
.job .type-chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--violet);
  white-space: nowrap;
  justify-self: start;
}
@media (max-width: 700px) {
  .job { grid-template-columns: 1fr; }
  .job .btn { justify-self: start; }
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 50px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.info-row { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.info-row:last-child { border-bottom: 1px solid var(--line); }
.info-row .ic { color: var(--violet); flex-shrink: 0; margin-top: 2px; }
.info-row strong { display: block; font-size: 0.95rem; }
.info-row span { font-size: 0.9rem; color: var(--muted); }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(139,79,214,0.15);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 14px; }
.form-success {
  display: none;
  padding: 16px 18px;
  border-radius: 10px;
  background: rgba(55, 211, 224, 0.12);
  border: 1px solid rgba(55, 211, 224, 0.4);
  color: var(--ink);
  font-size: 0.92rem;
  margin-top: 16px;
}
.form-success.show { display: block; }

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  height: 260px;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.15) contrast(1.02); }

/* CTA band */
.cta-band {
  background: var(--ink);
  color: var(--white);
  border-radius: 24px;
  padding: 64px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(420px 220px at 90% 20%, rgba(139,79,214,0.35), transparent 70%),
    radial-gradient(360px 200px at 10% 90%, rgba(55,211,224,0.22), transparent 70%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,0.7); margin: 0; }

/* Logos strip */
.marquee-wrap { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; }
.marquee { display: flex; gap: 60px; font-family: var(--font-mono); font-size: 0.85rem; color: var(--muted); letter-spacing: 0.04em; white-space: nowrap; }

/* Footer */
.site-footer { background: var(--ink-deep); color: rgba(255,255,255,0.75); padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 40px; margin-bottom: 50px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--cyan); }
.footer-about p { color: rgba(255,255,255,0.6); font-size: 0.92rem; max-width: 300px; }
.footer-logo img { height: 30px; margin-bottom: 16px; }
.footer-bottom {
  border-top: 1px solid var(--line-light);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}
.social-row { display: flex; gap: 14px; }
.social-row a {
  width: 34px; height: 34px;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s ease, color .2s ease;
}
.social-row a:hover { border-color: var(--cyan); color: var(--cyan); }

/* Reveal on scroll — progressive enhancement: elements are visible by
   default, and only get hidden once JS has confirmed it can animate
   them back in. This means content never disappears if JS fails,
   is blocked, or an element is never scrolled past by an observer. */
.reveal.reveal-armed { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.reveal-armed.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal.reveal-armed { opacity: 1; transform: none; transition: none; }
  .vcube { animation: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero::before { width: 100%; right: 0; opacity: 0.06; clip-path: none; }
  .hero::after { display: none; }
  .voxel-grid { max-width: 380px; margin: 0 auto; }
}
