/* ── Kinetic Industrial — EntryLane Design System ──
   High-contrast modern with industrial precision.
   Sharp 0px corners, 8px modular scale.
   Type: Bebas Neue (display) · Titillium Web (body) · Saira (labels) · JetBrains Mono (code) */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Titillium+Web:wght@300;400;600;700&family=Saira:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Surfaces */
  --surface:                 #f9f9fa;
  --surface-bright:          #ffffff;
  --surface-low:             #f3f3f4;
  --surface-mid:             #eeeeef;
  --surface-high:            #e8e8e9;
  --surface-highest:         #e2e2e3;
  --surface-card:            #ffffff;
  --surface-dark:            #1A1A1B;
  --surface-darker:          #09090A;

  /* Foreground */
  --on-surface:              #1a1c1d;
  --on-surface-muted:        #5f5e5f;
  --on-surface-dim:          #8e8e93;
  --on-dark:                 #ffffff;
  --on-dark-muted:           #a1a1aa;
  --on-dark-dim:             #71717a;

  /* Brand */
  --primary:                 #FD7524;
  --primary-deep:            #C44E00;
  --primary-soft:            #ffdbcc;
  --on-primary:              #ffffff;

  /* Semantic */
  --success:                 #10B981;
  --warning:                 #FD7524;
  --danger:                  #ba1a1a;

  /* Lines */
  --border:                  #E4E4E7;
  --border-strong:           #d4d4d8;
  --border-dark:             #2a2a2c;

  /* Spacing — 8px modular scale */
  --space-xs:                4px;
  --space-base:              8px;
  --space-sm:                12px;
  --space-md:                24px;
  --space-lg:                48px;
  --space-xl:                80px;
  --gutter:                  24px;
  --margin-page:             32px;

  /* Type */
  --font-headline:           'Bebas Neue', 'Saira', system-ui, sans-serif;
  --font-body:               'Titillium Web', system-ui, sans-serif;
  --font-label:              'Saira', system-ui, sans-serif;
  --font-mono:               'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Sticky kbar offset so anchored sections don't slide under the nav */
section[id], div[id] { scroll-margin-top: 80px; }

/* Reveal-on-scroll utility — fade + slide up when in viewport.
   Sections opt in via class="reveal"; JS sets .is-visible. */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
body {
  background: var(--surface);
  color: var(--on-surface);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--primary); color: var(--on-primary); }

/* ── Layout ── */
.container { max-width: 1440px; margin: 0 auto; padding: 0 var(--margin-page); }
.section { padding: var(--space-xl) 0; }
.section-tight { padding: var(--space-lg) 0; }
.section-eyebrow {
  font-family: var(--font-label); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--primary);
  margin-bottom: 0.6rem;
}
.section-rule {
  height: 4px; width: 96px; background: var(--primary); margin-bottom: 1.4rem;
}

/* ── Typography ── */
.h-xl   { font-family: var(--font-headline); font-weight: 400; font-size: clamp(2.8rem, 6.5vw, 4rem);  line-height: 1.0;  letter-spacing: 0.02em; text-transform: uppercase; }
.h-hero { font-family: var(--font-headline); font-weight: 400; font-size: clamp(3.2rem, 10vw, 6rem);   line-height: 0.92; letter-spacing: 0.02em; text-transform: uppercase; }
.h-lg   { font-family: var(--font-headline); font-weight: 400; font-size: clamp(2rem, 3.8vw, 2.6rem);  line-height: 1.05; letter-spacing: 0.04em; text-transform: uppercase; }
.h-md   { font-family: var(--font-headline); font-weight: 400; font-size: 1.6rem; line-height: 1.1;  letter-spacing: 0.06em; text-transform: uppercase; }
.h-sm   { font-family: var(--font-headline); font-weight: 400; font-size: 1.2rem; line-height: 1.15; letter-spacing: 0.08em; text-transform: uppercase; }
.body-lg{ font-family: var(--font-body); font-size: 1.125rem; line-height: 1.6; }
.body   { font-family: var(--font-body); font-size: 1rem;     line-height: 1.55; }
.body-sm{ font-family: var(--font-body); font-size: 0.9rem;   line-height: 1.55; }
.label-bold { font-family: var(--font-label); font-weight: 700; font-size: 0.84rem; line-height: 1; letter-spacing: 0.06em; text-transform: uppercase; }
.label-sm   { font-family: var(--font-label); font-weight: 500; font-size: 0.72rem; line-height: 1; letter-spacing: 0.06em; text-transform: uppercase; }
.muted   { color: var(--on-surface-muted); }
.muted-2 { color: var(--on-surface-dim); }
.accent  { color: var(--primary); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 1.05rem 2.2rem;
  font-family: var(--font-label); font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 0;
  transition: filter 0.12s, transform 0.12s, background 0.12s, color 0.12s, border-color 0.12s;
  cursor: pointer;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.78rem; }
.btn-lg { padding: 1.3rem 3rem; font-size: 0.95rem; }
.btn-primary  { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-dark     { background: var(--surface-dark); color: var(--on-dark); }
.btn-dark:hover { background: #000; }
.btn-on-dark  { border: 2px solid var(--on-dark); color: var(--on-dark); }
.btn-on-dark:hover { background: var(--on-dark); color: var(--surface-dark); }
.btn-on-light { border: 2px solid var(--on-surface); color: var(--on-surface); }
.btn-on-light:hover { background: var(--on-surface); color: var(--surface-card); }

/* ── Cards ── */
.card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  position: relative;
}
.card-pad { padding: var(--space-md); }
.card-strip-orange::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--primary);
}
.card-strip-mid::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--on-surface-muted);
}
.card-dark { background: var(--surface-dark); color: var(--on-dark); border: 0; }
.card-dark .muted { color: var(--on-dark-muted); }

/* ── Industrial grid ── */
.industrial-grid {
  background-image: radial-gradient(rgba(255,255,255,0.18) 1px, transparent 1px);
  background-size: 32px 32px;
}
.industrial-grid-light {
  background-image: radial-gradient(var(--surface-highest) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* ── Status chips ── */
.chip {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.28rem 0.7rem;
  font-family: var(--font-body); font-weight: 700; font-size: 0.7rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--on-primary);
}
.chip-primary { background: var(--primary); }
.chip-success { background: var(--success); }
.chip-dark    { background: var(--surface-dark); }
.chip-soft    { background: var(--surface-mid); color: var(--on-surface); }

/* ── Inputs ── */
.kfield      { display: block; margin-bottom: var(--space-md); }
.klabel      {
  display: block; margin-bottom: 0.5rem;
  font-family: var(--font-label); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-surface);
}
.kinput, .kselect, .ktextarea {
  width: 100%; display: block;
  padding: 0.85rem 1rem;
  font-family: var(--font-body); font-size: 1rem; line-height: 1.4;
  background: var(--surface-card); color: var(--on-surface);
  border: 1px solid var(--border); border-radius: 0;
  transition: border 0.12s;
}
.kinput:focus, .kselect:focus, .ktextarea:focus {
  outline: none; border: 2px solid var(--primary);
  padding: calc(0.85rem - 1px) calc(1rem - 1px);
}
.kinput.error { border-color: var(--danger); }
.khint { margin-top: 0.4rem; font-size: 0.82rem; color: var(--on-surface-muted); }
.kerror { margin-top: 0.4rem; font-size: 0.82rem; color: var(--danger); display: none; }
.kerror.visible { display: block; }

/* ── Top app bar ── */
.kbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface-dark); color: var(--on-dark);
  border-bottom: 1px solid var(--border-dark);
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem var(--margin-page);
}
.kbar-logo {
  font-family: var(--font-headline); font-weight: 400;
  font-size: 1.6rem; letter-spacing: 0.04em; color: var(--on-dark);
  text-transform: uppercase;
}
.kbar-logo .kw-entry,
.kfooter-logo .kw-entry { color: #ffffff; }
.kbar-logo .kw-lane,
.kfooter-logo .kw-lane  { color: var(--primary); margin-left: 0.05em; }
.kbar-nav      { display: flex; align-items: center; gap: 0.25rem; }
.kbar-nav a {
  font-family: var(--font-label); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--on-dark-muted); padding: 0.4rem 1rem;
  transition: color 0.12s;
}
.kbar-nav a:hover { color: var(--on-dark); }
.kbar-nav a.active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  padding-bottom: calc(0.4rem - 2px);
}
.kbar-right { display: flex; align-items: center; gap: 0.6rem; }
.kbar-icon  {
  color: var(--on-dark-muted); padding: 0.4rem; line-height: 1;
  transition: color 0.12s;
}
.kbar-icon:hover { color: var(--primary); }

/* ── Footer ── */
.kfooter {
  background: var(--surface-dark); color: var(--on-dark);
  padding: var(--space-lg) var(--margin-page);
  border-top: 1px solid var(--border-dark);
  display: flex; flex-direction: column; gap: 1.5rem;
}
@media (min-width: 768px) {
  .kfooter { flex-direction: row; justify-content: space-between; align-items: center; }
}
.kfooter-logo {
  font-family: var(--font-headline); font-weight: 400;
  font-size: 1.4rem; letter-spacing: 0.04em; color: var(--on-dark);
  text-transform: uppercase;
}
.kfooter a { color: var(--on-dark); }
.kfooter a:hover { color: var(--primary); }
.kfooter p { color: var(--on-dark) !important; }
.kfooter-nav {
  display: flex; flex-wrap: wrap; gap: 1.6rem; justify-content: center;
}
.kfooter-nav a {
  font-family: var(--font-label); font-weight: 500; font-size: 0.74rem;
  letter-spacing: 0.14em; text-transform: uppercase;
}

/* ── Material symbol sizing helper ── */
.mi    { font-family: 'Material Symbols Outlined'; font-variation-settings: 'FILL' 0, 'wght' 400, 'opsz' 24; vertical-align: middle; }
.mi-sm { font-size: 1.05rem; }
.mi-md { font-size: 1.4rem; }
.mi-lg { font-size: 2rem; }

/* ── Utility ── */
.hidden          { display: none !important; }
.text-center     { text-align: center; }
.flex            { display: flex; }
.flex-col        { flex-direction: column; }
.items-center    { align-items: center; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm          { gap: 0.75rem; }
.gap-md          { gap: 1.4rem; }
.mt-md           { margin-top: 1.4rem; }
.mt-lg           { margin-top: 2.5rem; }
.mb-md           { margin-bottom: 1.4rem; }
.mb-lg           { margin-bottom: 2.5rem; }

/* ── Responsive helpers ── */
@media (max-width: 760px) {
  .container { padding: 0 1.25rem; }
  .section   { padding: var(--space-lg) 0; }
  .kbar-nav  { display: none; }
}
