/* ARGUS by Krow Dynamics */
:root {
  --carbon: #0b0b0c;
  --graphite: #151517;
  --line: #262628;
  --ash: #f2f1ee;
  --steel: #8b8b87;
  --studio: #e4e4e3;
  --ink: #111112;
  --rescue: #ff5b1f;
  --rescue-deep: #e6450d;

  --display: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--carbon);
  color: var(--ash);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.03em; margin: 0; line-height: 1.02; }
p { margin: 0; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
::selection { background: var(--rescue); color: #fff; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  transition: background .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11, 11, 12, .72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--line);
}
.wordmark {
  font-family: var(--mono); font-size: 12px; letter-spacing: .42em;
  text-decoration: none; color: var(--ash); white-space: nowrap;
}
.nav-links { display: flex; align-items: center; gap: clamp(14px, 3vw, 32px); }
.nav-links a { font-size: 14px; text-decoration: none; color: #c9c9c5; transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav-links .nav-cta {
  color: var(--ash); border: 1px solid #3a3a3c; padding: 8px 16px; border-radius: 999px;
  transition: border-color .2s, background .2s;
}
.nav-links .nav-cta:hover { border-color: var(--rescue); background: rgba(255, 91, 31, .08); }
@media (max-width: 560px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--body); font-weight: 500; font-size: 16px;
  padding: 14px 26px; border-radius: 999px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .2s var(--ease), background .2s, border-color .2s, color .2s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--rescue); color: #fff; }
.btn-primary:hover { background: var(--rescue-deep); }
.btn-ghost { background: transparent; color: var(--ash); border-color: #3a3a3c; }
.btn-ghost:hover { border-color: var(--ash); }
.btn-wide { width: 100%; padding: 16px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Shared type ---------- */
.eyebrow, .label, .unit-tag, .pillar-num {
  font-family: var(--mono); font-size: 12px; letter-spacing: .24em; text-transform: uppercase;
}
.eyebrow { color: var(--rescue); margin-bottom: 22px; }
.eyebrow.dark { color: var(--rescue-deep); }
.label { color: var(--steel); margin-bottom: 28px; }
.section-title { font-size: clamp(40px, 6.4vw, 84px); }
.muted { color: #6e6e6b; }
.accent { color: var(--rescue); font-family: var(--mono); font-weight: 500; letter-spacing: -0.02em; }
section { position: relative; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh; display: grid; place-items: center; overflow: hidden;
  padding: 120px var(--gutter) 100px; text-align: center; isolation: isolate;
}
#field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-glow {
  position: absolute; inset: auto 0 -30% 0; height: 70%; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 60% at 50% 100%, rgba(255, 91, 31, .22), rgba(255, 91, 31, 0) 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(90% 80% at 50% 45%, rgba(11,11,12,.15) 0%, rgba(11,11,12,.25) 55%, var(--carbon) 100%);
}
.hero-inner { max-width: 1280px; }
.hero-title { font-size: clamp(42px, 6.6vw, 96px); text-shadow: 0 2px 40px rgba(11,11,12,.6); font-weight: 600; }
.hero-sub { margin: 28px auto 0; max-width: 560px; font-size: clamp(18px, 1.6vw, 21px); color: #b9b9b4; }
.hero-actions { margin-top: 40px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; width: 1px; height: 48px; background: #2a2a2c; overflow: hidden;
}
.scroll-cue span {
  position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: var(--rescue);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue { to { top: 100%; } }

/* ---------- Statement ---------- */
.statement {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(120px, 18vw, 220px) var(--gutter);
}
.lit {
  font-family: var(--display); font-weight: 600; letter-spacing: -0.025em; line-height: 1.12;
  font-size: clamp(30px, 4.6vw, 64px);
}
.lit-2 { margin-top: 1.1em; }
.lit .w { color: #333335; transition: color .35s linear; }
.lit .w.on { color: var(--ash); }

/* ---------- Studio product reveal ---------- */
.studio {
  background:
    radial-gradient(70% 60% at 50% 40%, #f3f2f1 0%, #e4e4e3 55%, #d6d6d5 100%);
  color: var(--ink);
  padding: clamp(100px, 14vw, 170px) var(--gutter) clamp(60px, 8vw, 100px);
  text-align: center; overflow: hidden;
}
.studio h2 { font-size: clamp(44px, 7.4vw, 100px); }
.studio-sub { margin: 22px auto 0; max-width: 520px; font-size: clamp(18px, 1.6vw, 21px); color: #55554f; }
.studio-shot { margin: clamp(30px, 5vw, 60px) auto 0; max-width: 1280px; }
.studio-shot img {
  width: 100%;
  -webkit-mask-image: radial-gradient(62% 66% at 52% 50%, #000 58%, transparent 100%);
          mask-image: radial-gradient(62% 66% at 52% 50%, #000 58%, transparent 100%);
}
.concept-note {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; color: #77776f;
  max-width: 520px; margin: 18px auto 0; text-align: center;
}
.concept-note.on-dark { color: var(--steel); }

/* ---------- Pillars ---------- */
.pillars { max-width: var(--max); margin: 0 auto; padding: clamp(110px, 15vw, 190px) var(--gutter); }
.pillar-grid {
  margin-top: clamp(50px, 7vw, 90px);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
}
.pillar { background: var(--carbon); padding: clamp(28px, 3.5vw, 48px); min-height: 300px; display: flex; flex-direction: column; }
.pillar-num { color: var(--rescue); }
.pillar h3 { font-size: clamp(28px, 2.8vw, 38px); margin-top: auto; padding-top: 70px; }
.pillar p { margin-top: 14px; color: #a3a39e; max-width: 34ch; }
@media (max-width: 820px) {
  .pillar-grid { grid-template-columns: 1fr; }
  .pillar { min-height: 0; }
  .pillar h3 { padding-top: 40px; }
}

/* ---------- System ---------- */
.system, .turntable { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(110px, 15vw, 190px); }
.system-head { margin-bottom: clamp(40px, 6vw, 70px); }
.system-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.unit { background: var(--graphite); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.unit-media { aspect-ratio: 16 / 10; position: relative; display: grid; place-items: center; overflow: hidden; }
.unit-media.light { background: radial-gradient(70% 70% at 50% 45%, #f1f0ef, #d7d7d6); }
.unit-media.light img {
  width: 112%; max-width: none;
  -webkit-mask-image: radial-gradient(60% 64% at 52% 50%, #000 55%, transparent 100%);
          mask-image: radial-gradient(60% 64% at 52% 50%, #000 55%, transparent 100%);
}
.unit-media.dark { background: radial-gradient(70% 70% at 50% 55%, #1d1d20, #0f0f11); }
.unit-media.dark img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s; }
.unit-media.dark.has-image img { opacity: 1; }
.unit-media.dark.has-image .unit-placeholder { display: none; }
.unit-placeholder { position: absolute; inset: 0; display: grid; place-items: center; }
.unit-placeholder span { font-family: var(--mono); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: #4a4a4c; }
.unit-placeholder .scan {
  position: absolute; left: 0; right: 0; height: 40%;
  background: linear-gradient(180deg, rgba(255,91,31,0), rgba(255,91,31,.10) 85%, rgba(255,91,31,.55) 100%);
  border-bottom: 1px solid rgba(255,91,31,.7);
  animation: scan 3.6s var(--ease) infinite;
}
@keyframes scan { from { top: -40%; } to { top: 100%; } }
.unit-placeholder::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(#2c2c2f 1px, transparent 1px); background-size: 18px 18px; opacity: .7;
}
.unit-body { padding: clamp(26px, 3vw, 40px); }
.unit-tag { color: var(--rescue); }
.unit-body h3 { font-size: clamp(28px, 2.6vw, 36px); margin-top: 14px; }
.unit-body p:last-child { margin-top: 12px; color: #a3a39e; }
@media (max-width: 820px) { .system-grid { grid-template-columns: 1fr; } }

/* ---------- Turntable ---------- */
.turntable-stage {
  aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(70% 70% at 50% 45%, #f1f0ef, #d2d2d1);
}
.turntable-stage model-viewer, .turntable-stage video { width: 100%; height: 100%; display: block; object-fit: cover; --poster-color: transparent; }

/* ---------- Ethos ---------- */
.ethos {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(110px, 15vw, 190px) var(--gutter);
  border-top: 1px solid var(--line);
}
.ethos-title { font-size: clamp(44px, 7vw, 96px); }
.ethos-cols { margin-top: clamp(40px, 6vw, 70px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); max-width: 980px; }
.ethos-cols p { font-size: clamp(18px, 1.6vw, 21px); color: #b4b4af; }
.mission-line {
  margin-top: clamp(80px, 11vw, 140px); max-width: 900px;
  font-family: var(--display); font-weight: 500; font-size: clamp(24px, 2.8vw, 36px); line-height: 1.25; letter-spacing: -0.015em;
}
@media (max-width: 720px) { .ethos-cols { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { max-width: 860px; margin: 0 auto; padding: clamp(110px, 15vw, 170px) var(--gutter); }
.contact-head { text-align: center; }
.contact-sub { margin: 22px auto 0; max-width: 520px; color: #a3a39e; font-size: 18px; }
.contact-form { margin-top: clamp(40px, 6vw, 64px); display: grid; gap: 18px; }
.roles { border: 0; padding: 0; margin: 0 0 6px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.roles legend { font-family: var(--mono); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--steel); margin-bottom: 14px; padding: 0; }
.roles label { position: relative; cursor: pointer; }
.roles input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.roles span {
  display: grid; place-items: center; text-align: center; min-height: 64px; padding: 12px;
  border: 1px solid #2f2f31; border-radius: 14px; font-size: 15px; color: #c4c4bf;
  transition: border-color .2s, background .2s, color .2s;
}
.roles label:hover span { border-color: #4a4a4c; }
.roles input:checked + span { border-color: var(--rescue); background: rgba(255, 91, 31, .09); color: #fff; }
.roles input:focus-visible + span { outline: 2px solid var(--rescue); outline-offset: 2px; }
@media (max-width: 640px) { .roles { grid-template-columns: 1fr 1fr; } }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field > span { font-size: 14px; color: #a3a39e; }
.field em { font-style: normal; color: #6e6e6b; }
input[type="text"], input[type="email"], textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ash);
  background: var(--graphite); border: 1px solid #2a2a2c; border-radius: 12px; padding: 14px 16px;
  transition: border-color .2s, background .2s; resize: vertical;
}
input:focus, textarea:focus { outline: none; border-color: var(--rescue); background: #19191b; }
.form-status { min-height: 1.4em; font-size: 15px; color: var(--steel); text-align: center; }
.form-status.ok { color: var(--ash); }
.form-status.err { color: #ff8a65; }

.updates {
  margin-top: clamp(60px, 8vw, 90px); padding-top: 40px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; align-items: center;
}
.updates h3 { font-size: 26px; }
.updates p { color: #a3a39e; margin-top: 6px; font-size: 15px; }
.updates-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.updates-form .form-status { grid-column: 1 / -1; text-align: left; }
@media (max-width: 680px) { .updates { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer {
  display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between;
  padding: 28px var(--gutter); border-top: 1px solid var(--line);
  font-size: 13px; color: var(--steel);
}
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ash); }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal-scale { opacity: 0; transform: scale(.94) translateY(30px); transition: opacity 1.3s var(--ease), transform 1.3s var(--ease); }
.reveal.in, .reveal-scale.in { opacity: 1; transform: none; }
.pillar-grid .reveal:nth-child(2), .system-grid .reveal:nth-child(2) { transition-delay: .12s; }
.pillar-grid .reveal:nth-child(3) { transition-delay: .24s; }
.no-js .reveal, .no-js .reveal-scale { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-scale { opacity: 1; transform: none; transition: none; }
  .scroll-cue span, .unit-placeholder .scan { animation: none; }
  .lit .w { color: var(--ash); }
}

@media (max-width: 600px) { .hero-title br { display: none; } }
