/* Odin Labs — 2026 v2
   Product-first, paper palette
   ============================================================ */

:root {
  --paper: #f4efe6;
  --paper-2: #ebe5d8;
  --paper-3: #e3dccb;
  --ink: #1a1814;
  --ink-2: #2c2823;
  --ink-soft: #4a443a;
  --ink-mute: #7a7363;
  --rust: #b8421f;
  --rust-dim: #9a3a1a;
  --line: #d4cdb9;
  --line-soft: rgba(26, 24, 20, 0.08);
  --maxw: 1240px;
  --gut: clamp(20px, 4vw, 56px);
  --r: 6px;
  --t: cubic-bezier(.2, .7, .2, 1);
  --sans: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;

  /* very subtle paper noise via background-image */
  background-image:
    radial-gradient(ellipse at top, rgba(184, 66, 31, 0.04) 0%, transparent 60%),
    repeating-linear-gradient(0deg, rgba(26, 24, 20, 0.012) 0 1px, transparent 1px 3px);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--rust); color: var(--paper); }

/* Typography ------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1;
  margin: 0;
}
h1 {
  font-size: clamp(3rem, 9vw, 7.2rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.95;
}
h2 {
  font-size: clamp(2.2rem, 5.2vw, 4.4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.02;
}
h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
p  { margin: 0 0 1em; color: var(--ink-soft); }
p.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  color: var(--ink-2);
  max-width: 56ch;
  line-height: 1.5;
}

.kicker {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--rust);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.kicker::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--rust);
}

.rust { color: var(--rust); }
.ink { color: var(--ink); }
.mute { color: var(--ink-mute); }

/* Layout ---------------------------------------------------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gut);
}

section { position: relative; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Nav ------------------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--gut);
  background: transparent;
  transition: background .3s var(--t), border-color .3s var(--t), backdrop-filter .3s var(--t);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(244, 239, 230, 0.88);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.brand {
  display: inline-flex; align-items: center;
  gap: 18px;
  letter-spacing: -0.01em;
  position: relative;
  padding-right: 4px;
}
.brand .mark {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  background: var(--ink);
  color: var(--paper);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0;
}
.brand .mark-img, .foot-brand .mark-img {
  background: transparent;
  border-radius: 50%;
  object-fit: contain;
  display: block;
  transition: transform .4s var(--t), width .35s var(--t), height .35s var(--t);
}
.brand .mark-img { width: 128px; height: 128px; }
.nav.scrolled .brand .mark-img { width: 56px; height: 56px; }
.brand:hover .mark-img { transform: rotate(-6deg); }

.brand-word {
  display: inline-grid;
  grid-auto-flow: row;
  gap: 8px;
  align-items: center;
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity .4s var(--t), transform .4s var(--t);
  pointer-events: none;
}
.bw-line {
  font-family: "Poppins", "Inter Tight", sans-serif;
  font-weight: 700;
  font-size: 1.65rem;
  letter-spacing: 0.18em;
  line-height: 1;
  color: var(--ink);
  text-transform: uppercase;
  padding-left: 0.1em;
}
.bw-rule {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--t) .08s;
}
.nav.scrolled .bw-line { font-size: 0.95rem; }
.nav.scrolled .brand-word { gap: 4px; }
.brand:hover .brand-word,
.brand:focus-visible .brand-word {
  opacity: 1;
  transform: translateX(0);
}
.brand:hover .bw-rule { transform: scaleX(1); }
.nav-links {
  display: flex; gap: 36px;
  list-style: none; margin: 0; padding: 0;
  font-size: 0.92rem;
}
.nav-links a {
  color: var(--ink-soft);
  position: relative;
  transition: color .2s var(--t);
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1px; background: var(--rust);
}
.nav-cta {
  font-size: 0.9rem;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: color .2s var(--t), border-color .2s var(--t);
}
.nav-cta:hover { color: var(--rust); border-color: var(--rust); }

.nav-toggle {
  display: none;
  width: 36px; height: 36px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  position: relative;
}
.nav-toggle span {
  position: absolute; left: 9px; right: 9px; height: 1.5px;
  background: var(--ink);
  transition: transform .25s var(--t), opacity .25s var(--t);
}
.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 17.5px; }
.nav-toggle span:nth-child(3) { top: 22px; }
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

/* Hero ------------------------------------------------------ */
.hero {
  min-height: calc(88vh - 60px);
  display: flex; align-items: center;
  padding: 200px 0 80px;
  position: relative;
}
.hero h1 {
  max-width: 14ch;
  margin-bottom: 32px;
}
.hero h1 .punc { color: var(--rust); }
.hero-sub {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--ink-2);
  max-width: 56ch;
  line-height: 1.5;
  margin: 0 0 44px;
}
.hero-cta { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }

/* Buttons --------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px;
  border-radius: var(--r);
  font-size: 0.95rem;
  font-weight: 500;
  transition: transform .15s var(--t), background .15s var(--t), color .15s var(--t), box-shadow .15s var(--t);
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { background: var(--ink-2); transform: translateY(-1px); }
.btn-ghost {
  color: var(--ink);
  border-color: var(--ink-2);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn .arr { transition: transform .2s var(--t); }
.btn:hover .arr { transform: translateX(3px); }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  transition: color .2s var(--t), border-color .2s var(--t);
}
.text-link:hover { color: var(--rust); border-color: var(--rust); }

/* Proof bar (below hero) ------------------------------------ */
.proof {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 36px 0;
}
.proof-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  align-items: start;
}
.proof-cell .num {
  font-family: var(--sans);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 8px;
}
.proof-cell .lbl {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.proof-cell .num .accent { color: var(--rust); }

/* Section common -------------------------------------------- */
.section {
  padding: clamp(56px, 7vw, 96px) 0;
}
.section + .product { padding-top: clamp(40px, 6vw, 72px); }
.section-head {
  display: grid;
  gap: 16px;
  margin-bottom: clamp(36px, 5vw, 56px);
  max-width: 740px;
}
.section-head h2 .ital { font-style: italic; font-weight: 400; color: var(--rust); }

/* About — three-column with vertical rules ------------------ */
.about-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.about-col {
  padding: 44px 36px 36px 0;
  border-right: 1px solid var(--line);
}
.about-col:last-child { border-right: none; padding-right: 0; }
.about-col:not(:first-child) { padding-left: 36px; }
.about-col .n {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 28px;
}
.about-col h3 { margin-bottom: 16px; }
.about-col p { margin: 0; color: var(--ink-soft); }

/* Products — full-width bands ------------------------------- */
.product {
  border-top: 1px solid var(--line);
  padding: clamp(56px, 7vw, 84px) 0;
}
.product-row {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(40px, 6vw, 84px);
  align-items: center;
}
.product.reverse .product-row {
  grid-template-columns: 1.15fr 1fr;
}
.product.reverse .product-text { order: 2; }
.product.reverse .product-shot { order: 1; }

.product-text { max-width: 520px; }
.product-num {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  margin-bottom: 22px;
  display: flex; align-items: center; gap: 14px;
}
.product-num::after {
  content: "";
  flex: 1; height: 1px; background: var(--line);
}
.product-name {
  display: flex; align-items: baseline; gap: 14px;
  margin-bottom: 4px;
}
.product-name h3 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}
.product-status {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: inline-flex; align-items: center; gap: 7px;
}
.product-status .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #2d8f4d;
  box-shadow: 0 0 0 3px rgba(45, 143, 77, 0.16);
}
.product-status.deployed .dot { background: var(--rust); box-shadow: 0 0 0 3px rgba(184, 66, 31, 0.16); }

.product-tag {
  font-size: 1.05rem;
  color: var(--rust);
  margin: 14px 0 24px;
  font-weight: 500;
}
.product-desc {
  font-size: 1.05rem;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0 0 26px;
}
.product-specs {
  display: flex; flex-wrap: wrap; gap: 24px 36px;
  margin: 0 0 32px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.spec .lbl {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 5px;
}
.spec .val {
  font-family: var(--sans);
  font-size: 0.98rem;
  color: var(--ink);
  font-weight: 500;
}

.product-shot {
  position: relative;
}
.product-shot a {
  display: block;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper-2);
  box-shadow:
    0 1px 0 rgba(26, 24, 20, 0.06),
    0 22px 50px -28px rgba(26, 24, 20, 0.32);
  transition: transform .35s var(--t), box-shadow .35s var(--t);
}
.product-shot a:hover {
  transform: translateY(-4px);
  box-shadow:
    0 1px 0 rgba(26, 24, 20, 0.06),
    0 32px 70px -28px rgba(26, 24, 20, 0.4);
}
.product-shot img {
  display: block; width: 100%; height: auto;
}
.product-shot .caption {
  position: absolute;
  bottom: -28px; right: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* Vulcan custom panel (no screenshot) ----------------------- */
.vulcan-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  padding: 36px;
  position: relative;
  box-shadow:
    0 1px 0 rgba(26, 24, 20, 0.06),
    0 22px 50px -28px rgba(26, 24, 20, 0.32);
  font-family: var(--mono);
  overflow: hidden;
}
.vulcan-panel::before {
  content: "VULCAN — BOF FURNACE / END-OF-BLOW PREDICTIONS";
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--rust);
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(244, 239, 230, 0.12);
  padding-bottom: 14px;
}
.vp-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 14px 20px;
  padding: 14px 0;
  border-bottom: 1px dashed rgba(244, 239, 230, 0.1);
  font-size: 0.85rem;
  align-items: center;
}
.vp-row:last-of-type { border-bottom: none; }
.vp-row .target { color: var(--paper); }
.vp-row .val { color: var(--rust); font-size: 1.05rem; font-weight: 500; }
.vp-row .tol  { color: rgba(244, 239, 230, 0.55); font-size: 0.75rem; }
.vp-feed {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(244, 239, 230, 0.12);
  display: grid; gap: 6px;
  font-size: 0.8rem;
  color: rgba(244, 239, 230, 0.85);
}
.vp-line { font-family: var(--mono); }
.vp-line.muted { color: rgba(244, 239, 230, 0.4); }
.vp-foot {
  margin-top: 18px;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.45);
  display: flex; justify-content: space-between;
}
.vp-foot .live::before {
  content: "● ";
  color: #5dc97c;
}

/* Team ------------------------------------------------------ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.team-card { display: block; }
.team-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-3);
  border-radius: 8px;
  margin-bottom: 18px;
}
.team-photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(0.95);
  transition: filter .5s var(--t), transform .5s var(--t);
}
.team-card:hover .team-photo img { filter: grayscale(0) contrast(1); transform: scale(1.025); }
.team-info h4 {
  font-family: var(--sans);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.team-info .role {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
  margin: 0 0 12px;
}
.team-info p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* Contact --------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-form { display: grid; gap: 16px; }
.contact-form .field { display: grid; gap: 6px; }
.contact-form label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.contact-form input, .contact-form textarea {
  width: 100%;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 13px 16px;
  color: var(--ink);
  font: inherit;
  font-size: 0.98rem;
  transition: border-color .2s var(--t), background .2s var(--t);
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--paper);
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form button { justify-self: start; margin-top: 6px; }

.contact-info { display: grid; gap: 32px; }
.contact-info .block .lbl {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 8px;
}
.contact-info .block p, .contact-info .block a {
  font-size: 1.05rem;
  color: var(--ink);
  margin: 0;
  line-height: 1.5;
}
.contact-info .block a:hover { color: var(--rust); }

/* Footer ---------------------------------------------------- */
.foot {
  border-top: 1px solid var(--line);
  padding: 48px 0 36px;
}
.foot-row {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 20px;
  font-size: 0.85rem;
  color: var(--ink-mute);
}
.foot-brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink);
  font-weight: 500;
}
.socials { display: flex; gap: 12px; list-style: none; margin: 0; padding: 0; }
.socials a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-soft);
  transition: color .2s var(--t), border-color .2s var(--t), background .2s var(--t);
}
.socials a:hover { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.socials svg { width: 15px; height: 15px; }

/* Reveal --------------------------------------------------- */
/* Only hide when JS is enabled — pre-init / no-JS shows everything */
.js-on .reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--t), transform .8s var(--t); }
.js-on .reveal.in { opacity: 1; transform: translateY(0); }
.js-on .reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--t), transform .8s var(--t); }
.js-on .reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: .05s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: .12s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: .19s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: .26s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Responsive ----------------------------------------------- */
@media (max-width: 980px) {
  .product-row, .product.reverse .product-row { grid-template-columns: 1fr; gap: 36px; }
  .product.reverse .product-text { order: 2; }
  .product.reverse .product-shot { order: 1; }
  .about-cols { grid-template-columns: 1fr; }
  .about-col { border-right: none; border-bottom: 1px solid var(--line); padding: 36px 0; }
  .about-col:last-child { border-bottom: none; }
  .about-col:not(:first-child) { padding-left: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .proof-row { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 16px var(--gut) 24px;
  }
  .nav.open .nav-links li { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav.open .nav-links li:last-child { border-bottom: none; }
  .team-grid { grid-template-columns: 1fr; }
  .product-name { flex-direction: column; align-items: flex-start; gap: 10px; }
}
