/* ==========================================================================
   FlowState — Design tokens
   Concept: engineering drawing meets night-drive — dark charcoal canvas,
   gold hairline "registration marks" borrowed from the brand's own hero
   art, two accents (cyan + ember) pulled from that same artwork, and
   monospace used only where it labels a real technical fact.
   ========================================================================== */

:root{
  --ink: #121110;
  --ink-raised: #191815;
  --ink-line: rgba(243,239,231,0.10);
  --ink-line-strong: rgba(243,239,231,0.18);

  --paper: #F3EFE7;
  --paper-dim: #C9C4B8;
  --steel: #8B8A85;

  --gold: #D9A83B;
  --gold-dim: rgba(217,168,59,0.4);
  --cyan: #45D3DE;
  --ember: #FF5A38;
  --ember-dim: #C7431F;

  --font-display: 'Archivo Black', 'Arial Black', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Menlo, monospace;

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

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

img{ max-width:100%; display:block; }
a{ color: inherit; }

.wrap{
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Faint blueprint grid wash — echoes the grid floor in the hero art.
   Painted on a ::before pseudo-element (not the element itself) so the
   fade mask only affects the decorative grid, never the real content. */
.grid-wash{ position: relative; }
.grid-wash::before{
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--ink-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink-line) 1px, transparent 1px);
  background-size: 42px 42px;
  background-position: center -1px;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 85%);
          mask-image: linear-gradient(to bottom, black, transparent 85%);
}
.grid-wash > *{ position: relative; z-index: 1; }

/* ---------- Type ---------- */
h1, h2, h3{
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin: 0;
  color: var(--paper);
}
h1{ font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2{ font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3{ font-size: 1.05rem; letter-spacing: 0.03em; }

p{ margin: 0 0 1em; color: var(--paper-dim); }
p:last-child{ margin-bottom: 0; }

.lede{
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--paper-dim);
  max-width: 46ch;
}

.eyebrow{
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin: 0 0 1.1em;
}
.eyebrow::before{
  content: '';
  width: 18px; height: 1px;
  background: var(--gold);
  display: inline-block;
}

.mono{ font-family: var(--font-mono); }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95em 1.5em;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:active{ transform: translateY(1px); }

.btn-primary{
  background: var(--ember);
  color: #1A0A05;
  border-color: var(--ember);
  font-weight: 600;
}
.btn-primary:hover{ background: #ff6c4e; border-color: #ff6c4e; }

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

.btn-row{ display:flex; flex-wrap: wrap; gap: 0.9em; align-items:center; }

/* ---------- Nav ---------- */
.site-nav{
  position: sticky; top:0; z-index: 40;
  background: rgba(18,17,16,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink-line);
}
.site-nav .wrap{
  display:flex; align-items:center; justify-content: space-between;
  padding-top: 16px; padding-bottom:16px;
  gap: 1.5rem;
}
.brand{ display:flex; align-items:center; }
.brand img{ height: 26px; width:auto; }
.nav-links{
  display:flex; align-items:center; gap: clamp(1rem, 2.5vw, 2.2rem);
  list-style:none; margin:0; padding:0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  flex-wrap: wrap;
}
.nav-links a{
  text-decoration:none; color: var(--paper-dim);
  padding: 0.3em 0;
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"]{
  color: var(--paper); border-color: var(--gold);
}
.nav-cta{ margin-left: 0.4rem; }

/* ---------- Blueprint frame (signature element) ----------
   Gold hairline + corner registration ticks, echoing the frame
   around the hero wireframe illustration. Wraps hero art and
   product photography throughout the site. */
.frame{
  position: relative;
  border: 1px solid var(--gold-dim);
  padding: 10px;
  background: var(--ink-raised);
}
.frame img{ width:100%; height:auto; display:block; }
.corner{ position:absolute; width:16px; height:16px; pointer-events:none; }
.corner.tl{ top:-1px; left:-1px; border-top:2px solid var(--gold); border-left:2px solid var(--gold); }
.corner.tr{ top:-1px; right:-1px; border-top:2px solid var(--gold); border-right:2px solid var(--gold); }
.corner.bl{ bottom:-1px; left:-1px; border-bottom:2px solid var(--gold); border-left:2px solid var(--gold); }
.corner.br{ bottom:-1px; right:-1px; border-bottom:2px solid var(--gold); border-right:2px solid var(--gold); }

.frame-cap{
  display:flex; justify-content: space-between; align-items:baseline;
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--steel);
  margin-top: 0.7em;
}
.frame-cap .tag{ color: var(--cyan); }

/* ---------- Sections ---------- */
section{ padding: clamp(56px, 9vw, 108px) 0; }
.section-border-top{ border-top: 1px solid var(--ink-line); }

.hero{ position:relative; overflow:hidden; padding-top: clamp(48px,8vw,88px); }
.hero-grid{
  display:grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem);
  align-items:center;
}
@media (max-width: 880px){
  .hero-grid{ grid-template-columns: 1fr; }
}

/* ---------- Band (3-up facts) ---------- */
.band{
  display:grid; grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  border-top: 1px solid var(--ink-line);
  border-bottom: 1px solid var(--ink-line);
  padding: clamp(40px, 6vw, 64px) 0;
}
@media (max-width: 720px){
  .band{ grid-template-columns: 1fr; gap: 2rem; }
}
.band-item .eyebrow{ margin-bottom: 0.6em; }
.band-item p{ color: var(--paper-dim); margin:0; }

/* ---------- Teaser / split rows ---------- */
.split{
  display:grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem);
  align-items:center;
}
@media (max-width: 860px){
  .split{ grid-template-columns: 1fr; }
  .split.reverse .frame{ order: -1; }
}
.split.reverse{ direction: rtl; }
.split.reverse > *{ direction: ltr; }

.link-arrow{
  display:inline-flex; align-items:center; gap:0.4em;
  font-family: var(--font-mono); font-size:0.85rem; letter-spacing:0.05em;
  text-decoration:none; color: var(--gold);
  text-transform: uppercase;
  border-bottom: 1px solid var(--gold-dim);
  padding-bottom: 2px;
  transition: gap .15s ease, color .15s ease;
}
.link-arrow:hover{ gap:0.7em; color: var(--cyan); }

/* ---------- Footer ---------- */
footer{
  border-top: 1px solid var(--ink-line);
  padding: 48px 0 36px;
}
.footer-grid{
  display:flex; flex-wrap:wrap; justify-content: space-between; gap: 2rem;
}
.footer-brand img{ height: 22px; margin-bottom: 0.9em; }
.footer-brand p{ font-size: 0.88rem; max-width: 32ch; }
.footer-col h3{ color: var(--steel); font-size:0.72rem; letter-spacing:0.12em; margin-bottom: 0.9em; }
.footer-col ul{ list-style:none; margin:0; padding:0; font-size:0.9rem; }
.footer-col li{ margin-bottom:0.55em; }
.footer-col a{ text-decoration:none; color: var(--paper-dim); }
.footer-col a:hover{ color: var(--gold); }
.footer-bottom{
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--ink-line);
  display:flex; flex-wrap:wrap; gap: 1em; justify-content: space-between;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing:0.06em;
  color: var(--steel); text-transform: uppercase;
}

/* ---------- Reveal on scroll (restrained) ---------- */
.reveal{ opacity:0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in{ opacity:1; transform:none; }

/* ---------- Focus visibility ---------- */
a:focus-visible, button:focus-visible{
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
