/* Stegnor — parent-company site. Same family as TaxiDex (ink / gold / cream),
   darker and more engineering-led. All motion respects reduced-motion. */
:root {
  --ink: #07070d;
  --ink-2: #0e1116;
  --cream: #f6f1e4;
  --gold: #c0a040;
  --gold-hi: #e0c667;
  --gold-deep: #7c6624;
  --text: rgba(246, 241, 228, 0.92);
  --muted: rgba(246, 241, 228, 0.6);
  --hair: rgba(246, 241, 228, 0.1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--ink);
  color: var(--text);
  font: 400 16px/1.65 Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, .mark-word { font-family: Satoshi, Inter, sans-serif; }
em { font-style: normal; background: linear-gradient(120deg, var(--gold-hi), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
a { color: var(--gold-hi); text-decoration: none; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ---- canvases + grain ---- */
#gl { position: fixed; inset: 0; z-index: -2; width: 100%; height: 100%; }
.grain {
  position: fixed; inset: -50%; z-index: -1; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

/* ---- shared atoms ---- */
.gem { display: inline-block; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); flex: none; }
.eyebrow { display: flex; align-items: center; gap: 10px; font: 600 11.5px/1 Inter; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.eyebrow.center { justify-content: center; }
.center { text-align: center; }
.rule { display: flex; align-items: center; gap: 14px; max-width: 340px; margin: 0 auto 3rem; }
.rule .line { height: 1px; flex: 1; border-radius: 99px; background: linear-gradient(90deg, transparent, rgba(192,160,64,0.55), transparent); }
.btn {
  display: inline-block; padding: 0.85rem 1.7rem; border-radius: 99px;
  font: 600 14px/1 Inter; letter-spacing: 0.01em;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s ease;
}
.btn.gold { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: var(--ink); box-shadow: 0 14px 34px -12px rgba(192,160,64,0.55), inset 0 1px 0 rgba(255,255,255,0.35); }
.btn.ghost { color: var(--text); box-shadow: inset 0 0 0 1px var(--hair); }
.btn:hover { transform: translateY(-2px) scale(1.02); }
.btn.gold:hover { box-shadow: 0 22px 44px -14px rgba(192,160,64,0.7), inset 0 1px 0 rgba(255,255,255,0.35); }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

/* ---- nav ---- */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem clamp(1.2rem, 4vw, 3rem);
  background: linear-gradient(180deg, rgba(7,7,13,0.85), transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.mark { display: flex; align-items: center; gap: 10px; }
.mark-gem { width: 13px; height: 13px; background: linear-gradient(135deg, var(--gold-hi), var(--gold-deep)); transform: rotate(45deg); box-shadow: 0 0 18px rgba(192,160,64,0.6); }
.mark-word { font-weight: 900; font-size: 15px; letter-spacing: 0.34em; color: var(--cream); }
.nav nav { display: flex; align-items: center; gap: clamp(0.9rem, 2.6vw, 2rem); }
.nav nav a { font: 500 13.5px/1 Inter; color: var(--muted); transition: color 0.2s; }
.nav nav a:hover { color: var(--cream); }
.nav nav a.cta { color: var(--gold-hi); }
@media (max-width: 640px) { .nav nav a:not(.cta) { display: none; } }

/* ---- hero ---- */
.hero {
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 7rem clamp(1.2rem, 5vw, 3rem) 4rem; position: relative;
}
.hero h1 { font-size: clamp(2.6rem, 7.2vw, 5.4rem); font-weight: 900; line-height: 1.04; letter-spacing: -0.02em; margin-top: 1.4rem; }
.hero .lead { max-width: 40rem; margin-top: 1.6rem; font-size: clamp(1rem, 1.6vw, 1.125rem); color: var(--muted); }
.hero-ctas { display: flex; gap: 0.9rem; margin-top: 2.6rem; flex-wrap: wrap; justify-content: center; }
.hero-foot { position: absolute; bottom: 2.2rem; }
.scroll-hint { display: block; width: 24px; height: 38px; border: 1.5px solid rgba(246,241,228,0.28); border-radius: 99px; position: relative; }
.scroll-hint i { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 99px; background: var(--gold); animation: drop 2.1s ease-in-out infinite; }
@keyframes drop { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .scroll-hint i { animation: none; } }

/* ---- bands ---- */
.band { padding: clamp(4.5rem, 9vw, 8rem) clamp(1.2rem, 5vw, 3rem); max-width: 72rem; margin: 0 auto; position: relative; }
.band h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); font-weight: 900; letter-spacing: -0.015em; margin-top: 1rem; }
.band .lead { max-width: 42rem; margin: 1.4rem auto 0; color: var(--muted); }

/* what we do tiles */
.tiles { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 3rem; }
.tile {
  position: relative; padding: 1.9rem 1.7rem; border-radius: 18px;
  background: linear-gradient(160deg, rgba(246,241,228,0.045), rgba(246,241,228,0.015));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), inset 0 0 0 1px var(--hair);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tile:hover { transform: translateY(-5px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), inset 0 0 0 1px rgba(192,160,64,0.35), 0 26px 48px -22px rgba(0,0,0,0.6); }
@media (prefers-reduced-motion: reduce) { .tile:hover { transform: none; } }
.tile-num { font: 900 13px/1 Satoshi; letter-spacing: 0.2em; color: var(--gold); opacity: 0.85; }
.tile h3 { font-size: 1.15rem; margin-top: 0.8rem; color: var(--cream); }
.tile p { margin-top: 0.6rem; font-size: 0.9rem; color: var(--muted); }

/* product band */
.product { text-align: center; }
#lattice { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: 0.5; }
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-top: 2rem; }
.chip {
  font: 500 12.5px/1 Inter; color: var(--cream); padding: 0.6rem 1rem; border-radius: 99px;
  background: rgba(192,160,64,0.1); box-shadow: inset 0 0 0 1px rgba(192,160,64,0.3);
}
.next { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 3.4rem; font-size: 0.9rem; color: var(--muted); }

/* company */
.fact-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 3rem; }
.fact { padding: 1.6rem 1.5rem; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--hair); }
.fact h4 { font: 600 11px/1 Inter; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.fact p { margin-top: 0.7rem; font-size: 0.92rem; color: var(--muted); }

/* footer */
footer { text-align: center; padding: 3rem 1.5rem 3.4rem; }
footer .rule { margin-bottom: 2rem; }
footer p { font-size: 0.85rem; color: var(--muted); }
.foot-sub { margin-top: 0.5rem; opacity: 0.8; }

/* reveals — VISIBLE BY DEFAULT; .js-motion arms them, .in shows them.
   A visitor with no JS or failed JS sees everything. */
.js-motion .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.js-motion .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-motion .reveal { opacity: 1; transform: none; transition: none; }
}
