/* ============================================================
   VERUMION — dark editorial engineering studio
   type: Instrument Serif (display) / Instrument Sans (body)
         JetBrains Mono (technical labels)
   palette: near-black charcoal + warm brass accent
   ============================================================ */

:root {
  --bg: #0b0c0e;
  --bg-raised: #101216;
  --bg-chip: #15181d;
  --line: rgba(232, 230, 225, 0.09);
  --line-strong: rgba(232, 230, 225, 0.18);
  --text: #e8e6e1;
  --muted: #98948b;
  --brass: #cfa05c;
  --brass-soft: rgba(207, 160, 92, 0.14);
  --serif: "Instrument Serif", georgia, serif;
  --sans: "Instrument Sans", sans-serif;
  --mono: "JetBrains Mono", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px; /* keep section anchors clear of the fixed nav */
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* clip, not hidden: hidden makes body a scroll container, which breaks anchor scrolling */
  overflow-x: clip;
}

::selection { background: var(--brass); color: #14110b; }

/* film grain over everything */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 9s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 3%); }
}

/* ---------- shared ---------- */

h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.05;
}
h1 em, h2 em { font-style: italic; color: var(--brass); }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 22px;
}

.section-sub {
  color: var(--muted);
  max-width: 46ch;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s var(--ease);
}
.btn-solid {
  background: var(--brass);
  color: #14110b;
}
.btn-solid:hover {
  background: #e0b67a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(207, 160, 92, 0.22);
}
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--brass);
  color: var(--brass);
  transform: translateY(-2px);
}

/* scroll reveals */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.12s; }
.d2 { transition-delay: 0.24s; }
.d3 { transition-delay: 0.36s; }
.d4 { transition-delay: 0.48s; }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11, 12, 14, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text);
}
.brand-mark {
  width: 30px;
  height: 30px;
}
.brand-mark .m-v { fill: currentColor; }
.brand-mark .m-hex {
  fill: none;
  stroke: var(--brass);
  stroke-width: 2.6;
  stroke-linejoin: round;
}
.brand-name {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  gap: 32px;
  margin-left: auto;
}
.nav-links a {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--brass); }
.nav-cta { padding: 10px 20px; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 32px 40px;
  overflow: hidden;
}

/* faint blueprint grid behind hero */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 42%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 42%, black 30%, transparent 75%);
  opacity: 0.5;
}

.hero-inner {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 32px;
}

.hero h1 {
  font-size: clamp(2.9rem, 5.6vw, 4.6rem);
}
.lede {
  color: var(--muted);
  max-width: 50ch;
  margin-top: 28px;
  font-size: 18px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero-foot {
  position: relative;
  max-width: 1240px;
  margin: 64px auto 0;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
}
.hero-foot-line {
  flex: 1;
  height: 1px;
  background: var(--line);
}
.hero-foot-text {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- orbital lattice ---------- */

.orbital {
  position: relative;
  width: 560px;
  height: 560px;
  max-width: 100%;
  margin: 0 auto;
  justify-self: center;
  transition: transform 0.4s ease-out, opacity 0.9s var(--ease);
  will-change: transform;
}

.orbital-rings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.orbital-rings .ring {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1;
  stroke-dasharray: 3 7;
  opacity: 0;
  animation: ring-in 1.4s var(--ease) forwards;
}
.orbital-rings .ring:nth-of-type(1) { animation-delay: 0.5s; }
.orbital-rings .ring:nth-of-type(2) { animation-delay: 0.7s; }
.orbital-rings .ring:nth-of-type(3) { animation-delay: 0.9s; }
@keyframes ring-in {
  from { opacity: 0; transform: scale(0.92); transform-origin: center; }
  to   { opacity: 1; transform: scale(1); }
}
.orbital-rings .axis {
  stroke: var(--line);
  stroke-width: 1;
}
/* radar sweep: a short bright arc circling the middle ring */
.orbital-rings .sweep {
  fill: none;
  stroke: var(--brass);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 90 1092; /* arc ≈ 90px of 2π·188 */
  opacity: 0.7;
  transform-origin: 280px 280px;
  animation: sweep-spin 14s linear infinite;
}
@keyframes sweep-spin {
  to { transform: rotate(360deg); }
}

.orbital-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 92px;
  height: 92px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(207,160,92,0.10), transparent 70%);
  animation: core-pulse 4s ease-in-out infinite;
}
.orbital-core svg { width: 60px; height: 60px; }
.orbital-core .m-v { fill: var(--text); }
.orbital-core .m-hex {
  fill: none;
  stroke: var(--brass);
  stroke-width: 2.2;
  stroke-linejoin: round;
}
@keyframes core-pulse {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(207,160,92,0.18)); }
  50%      { filter: drop-shadow(0 0 18px rgba(207,160,92,0.4)); }
}

/* orbit mechanics: wrapper spins, keel counter-spins */
.orbit {
  position: absolute;
  inset: 0;
  animation: spin linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.o1 { animation-duration: 36s; animation-delay: -4s; }
.o2 { animation-duration: 52s; animation-delay: -20s; }
.o3 { animation-duration: 70s; animation-delay: -47s; }
.o4 { animation-duration: 52s; animation-delay: -46s; }
.o5 { animation-duration: 70s; animation-delay: -12s; }
.t1 { animation-duration: 19s; animation-delay: -11s; }
.t2 { animation-duration: 27s; animation-delay: -3s;  }

.sat {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(calc(var(--r) * -1));
}
.keel { animation: spin linear infinite reverse; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.k1 { animation-duration: 36s; animation-delay: -4s; }
.k2 { animation-duration: 52s; animation-delay: -20s; }
.k3 { animation-duration: 70s; animation-delay: -47s; }
.k4 { animation-duration: 52s; animation-delay: -46s; }
.k5 { animation-duration: 70s; animation-delay: -12s; }

.sat-chip {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-chip);
  border: 1px solid var(--line-strong);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}
.sat-chip svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--brass);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sat-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  background: rgba(11, 12, 14, 0.7);
  padding: 2px 8px;
  border-radius: 2px;
}

.tracer {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 10px 2px rgba(207, 160, 92, 0.5);
}

/* ---------- marquee ---------- */

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 18px 0;
  background: var(--bg-raised);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 36px;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee-track span {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.marquee-track i {
  font-style: normal;
  font-size: 8px;
  color: var(--brass);
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- sections ---------- */

.services, .approach {
  max-width: 1240px;
  margin: 0 auto;
  padding: 140px 32px 60px;
}
.section-head h2 {
  font-size: clamp(2.3rem, 4.4vw, 3.6rem);
}

/* ---------- services ledger ---------- */

.service-list {
  margin-top: 80px;
  border-top: 1px solid var(--line);
}
.service {
  display: grid;
  grid-template-columns: 90px 1fr 120px;
  gap: 32px;
  align-items: center;
  padding: 48px 24px;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background 0.35s var(--ease);
}
.service::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--brass);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s var(--ease);
}
.service:hover { background: var(--bg-raised); }
.service:hover::before { transform: scaleY(1); }

.service-num {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--brass);
  letter-spacing: 0.1em;
}
.service-body h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 12px;
}
.service-body p {
  color: var(--muted);
  max-width: 62ch;
  margin-top: 12px;
}
.new-pill {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  border: 1px solid var(--brass);
  border-radius: 99px;
  padding: 3px 10px;
}

.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.tags li {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 5px 10px;
  transition: border-color 0.25s, color 0.25s;
}
.service:hover .tags li {
  border-color: var(--line-strong);
  color: var(--text);
}

.service-icon {
  justify-self: end;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 1px solid var(--line);
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.service-icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.35s;
}
.service:hover .service-icon {
  border-color: var(--brass);
  transform: rotate(8deg) scale(1.06);
}
.service:hover .service-icon svg { stroke: var(--brass); }

/* ---------- approach ---------- */

.steps {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.step {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 48px 36px 56px;
  position: relative;
  transition: background 0.35s var(--ease);
}
.step:hover { background: var(--bg-raised); }
.step-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 64px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  display: block;
  transition: color 0.4s var(--ease);
}
.step:hover .step-num { color: var(--brass); -webkit-text-stroke: 1px var(--brass); }
.step h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 21px;
  margin-top: 28px;
}
.step p {
  color: var(--muted);
  margin-top: 14px;
  font-size: 15.5px;
}

/* ---------- contact ---------- */

.contact {
  margin-top: 80px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(207, 160, 92, 0.05), transparent 70%),
    var(--bg-raised);
}
.contact-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 130px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: start;
}
.contact h2 { font-size: clamp(2.3rem, 4.4vw, 3.4rem); }

.contact-meta {
  margin-top: 48px;
  display: grid;
  gap: 12px;
}
.contact-meta p { color: var(--muted); font-size: 15px; }
.meta-key {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  display: inline-block;
  width: 72px;
}

.contact-form {
  display: grid;
  gap: 30px;
  position: relative;
}

/* honeypot — visually removed, still in the DOM for bots */
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.field { display: grid; gap: 10px; position: relative; }
.field label, .chip-label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.field label small { text-transform: none; letter-spacing: 0.04em; opacity: 0.7; }

.field input, .field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  padding: 10px 2px 12px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16.5px;
  outline: none;
  border-radius: 0;
  transition: border-color 0.3s;
  resize: vertical;
}
.field input:focus, .field textarea:focus { border-bottom-color: var(--brass); }

/* keep browser autofill from forcing a light background / dark text */
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px var(--bg-raised) inset;
  box-shadow: 0 0 0 1000px var(--bg-raised) inset;
  caret-color: var(--text);
  transition: background-color 9999s ease-in-out 0s;
}
.field input:autofill {
  -webkit-text-fill-color: var(--text);
  box-shadow: 0 0 0 1000px var(--bg-raised) inset;
}
.field.invalid input, .field.invalid textarea { border-bottom-color: #c4564a; }

.field-err {
  display: none;
  font-size: 13px;
  color: #c4564a;
}
.field.invalid .field-err { display: block; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  padding: 9px 18px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.chip:hover { border-color: var(--brass); color: var(--text); }
.chip.on {
  border-color: var(--brass);
  background: var(--brass-soft);
  color: var(--brass);
}

.btn-submit {
  justify-self: start;
  margin-top: 6px;
  position: relative;
}
.btn-dots { display: none; gap: 5px; }
.btn-dots i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #14110b;
  animation: dot-bounce 0.9s ease-in-out infinite;
}
.btn-dots i:nth-child(2) { animation-delay: 0.15s; }
.btn-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(-5px); opacity: 1; }
}
.contact-form.sending .btn-text { display: none; }
.contact-form.sending .btn-dots { display: inline-flex; }
.contact-form.sending .btn-submit { pointer-events: none; }

.form-error {
  font-size: 14px;
  color: #c4564a;
}

.form-success[hidden] { display: none; }
.form-success {
  display: grid;
  justify-items: start;
  gap: 14px;
  padding: 12px 0;
}
.form-success svg {
  width: 56px;
  height: 56px;
  fill: none;
  stroke: var(--brass);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.form-success svg path {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: check-draw 0.7s var(--ease) 0.25s forwards;
}
@keyframes check-draw { to { stroke-dashoffset: 0; } }
.form-success h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
}
.form-success p { color: var(--muted); }

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line);
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 44px 32px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-tag {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-copy {
  margin-left: auto;
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .orbital { width: 460px; height: 460px; transform: scale(0.82); margin-top: -30px; }
  .contact-inner { grid-template-columns: 1fr; gap: 72px; }
}

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .service { grid-template-columns: 56px 1fr; }
  .service-icon { display: none; }
}

@media (max-width: 680px) {
  .nav-links { display: none; }
  .hero { padding-top: 120px; }
  .orbital { width: 340px; height: 340px; transform: none; margin: 24px auto 32px; }
  /* pin satellites to the rings at the 340px render size (340/560 scale) */
  .o1 .sat, .t1 .sat { --r: 75px !important; }
  .o2 .sat, .o4 .sat { --r: 114px !important; }
  .o3 .sat, .o5 .sat, .t2 .sat { --r: 153px !important; }
  .sat-chip { width: 38px; height: 38px; }
  .sat-chip svg { width: 18px; height: 18px; }
  .keel { gap: 5px; }
  .sat-label { font-size: 9.5px; padding: 1px 6px; }
  .services, .approach { padding: 96px 24px 40px; }
  .contact-inner { padding: 96px 24px; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain, .orbit, .keel, .sweep, .marquee-track, .orbital-core { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
