/* Erickson Build Co client site, on the Flyover site/portal ground (site.css v6 tokens and rules).
   Twilight ground with film grain, sand type, golden rules. Flat surfaces, square corners, hairlines. One dark world. */
:root {
  color-scheme: dark;
  --bg: #1A2127; --bg-2: #161E25; --bg-3: #242E36; --deep: #0F1A23; --surface: #242E36; --surface-2: #303B44;
  --fg-strong: #E6E1D9; --fg: #CFCAC1; --fg-muted: #9AA1A6; --fg-faint: #6B747B;
  --line: rgba(230, 225, 217, .2); --line-strong: rgba(230, 225, 217, .42); --line-soft: rgba(230, 225, 217, .12);
  --accent: #CA995F; --accent-hi: #D9B27F; --accent-lo: #A87B45; --accent-dim: rgba(202, 153, 95, .55); --accent-wash: rgba(202, 153, 95, .1); --on-accent: #0F1A23;
  --brick: #73362C; --denim: #566A75;
  --ebco-navy: #253649; --ebco-khaki: #EBEAE9; --ebco-ink: #010911;
  --font-body: 'Sofia Sans Condensed', 'Arial Narrow', system-ui, sans-serif;
  --font-mono: 'Space Mono', 'SFMono-Regular', ui-monospace, monospace;
  --gutter: clamp(20px, 5vw, 64px);
  --sec: clamp(48px, 7vw, 96px);
  --max: 1160px;
  --r: 0px;
  --ease: cubic-bezier(.4, 0, .2, 1); --ease-out: cubic-bezier(.16, 1, .3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 1.125rem; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; position: relative; }
body::after { content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; background: url(/assets/film-grain.png) 0 0 / 320px 320px; mix-blend-mode: screen; opacity: .85; }
img, svg, video { max-width: 100%; display: block; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { color: var(--fg-strong); text-wrap: balance; }
p { text-wrap: pretty; }
strong, b { color: var(--fg-strong); font-weight: 700; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hi); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--on-accent); }

.label { font-weight: 600; font-size: .8125rem; letter-spacing: .16em; text-transform: uppercase; line-height: 1.3; }
.mono { font-family: var(--font-mono); font-size: .8125rem; letter-spacing: .04em; line-height: 1.45; font-variant-numeric: tabular-nums; }
.cap { font-weight: 600; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; line-height: 1.35; }
h1 { font-weight: 700; font-size: clamp(1.75rem, 2.9vw, 2.5rem); line-height: 1.08; letter-spacing: 0; max-width: 21em; }
h2 { font-weight: 700; font-size: clamp(1.3125rem, 1.8vw, 1.5rem); line-height: 1.2; }
h3 { font-weight: 700; font-size: 1.25rem; line-height: 1.2; }
.lede { font-size: clamp(1.125rem, 1.5vw, 1.3125rem); line-height: 1.5; max-width: 38em; }
.small { font-size: 1rem; line-height: 1.45; }
.eyebrow { color: var(--accent); margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); flex: none; }
.muted { color: var(--fg-muted); }

.wrap { max-width: var(--max); margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px), var(--gutter)); padding-right: max(16px, env(safe-area-inset-right, 0px), var(--gutter)); }
.sec { padding-block: var(--sec) 0; }
.sec-head { margin-bottom: 28px; }
.sec-head > .lede { margin-top: 10px; color: var(--fg-muted); }
.tick { position: relative; border-top: 1px solid var(--line); margin-bottom: 28px; }
.tick::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 7px; background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 24px) left top / 100% 7px no-repeat; opacity: .9; pointer-events: none; }
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.rule { height: 1px; background: var(--line); margin-block: 32px; }

.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; font: 700 .875rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; padding: 14px 22px; border: 1.5px solid var(--accent); border-radius: var(--r); background: var(--accent); color: var(--on-accent); text-decoration: none; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.btn::after { content: "\2192"; font-size: 1.05em; letter-spacing: 0; transition: transform .25s var(--ease); }
.btn:hover { background: var(--accent-lo); border-color: var(--accent-lo); color: var(--on-accent); text-decoration: none; }
.btn:hover::after { transform: translateX(4px); }
.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--fg-strong); }
.btn--ghost:hover { background: var(--fg-strong); border-color: var(--fg-strong); color: var(--on-accent); }
.btn--plain::after { content: none; }
.chip { font-weight: 600; font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; border: 1px solid var(--line-strong); border-radius: var(--r); padding: 5px 10px; color: var(--fg); }
.badge { font-weight: 700; font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-accent); background: var(--accent); padding: 4px 8px; border-radius: var(--r); white-space: nowrap; }

/* header */
.head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; padding: 14px 0 0; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 95; background: var(--bg); }
.head__bar { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); }
.head__row { display: flex; align-items: center; gap: 10px 22px; flex-wrap: wrap; min-height: 62px; padding: 8px 12px 8px 20px; }
.head__logo { display: block; flex: none; margin-right: auto; }
.head__logo img { height: 30px; width: auto; }
.nav { display: flex; gap: 2px 4px; flex-wrap: wrap; align-items: center; }
.nav__top { display: inline-flex; align-items: center; padding: 12px 14px; color: var(--fg-strong); font-size: 1.0625rem; font-weight: 500; border-radius: var(--r); text-decoration: none; }
.nav__top:hover { color: var(--accent); background: var(--line-soft); text-decoration: none; }
.nav__top.is-on { color: var(--accent); background: var(--line-soft); }
.head__side { display: flex; align-items: center; gap: 10px; flex: none; }
.head__side .cap { color: var(--fg-muted); }
.head__fmc { height: 22px; width: auto; }

/* intro + stats */
.intro { padding-block: clamp(40px, 6vw, 72px) 0; }
.intro .lede { margin-top: 14px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-left: 2px solid var(--accent); border-radius: var(--r); padding: 20px 22px; min-width: 0; display: flex; flex-direction: column; gap: 8px; transition: border-color .3s; }
.stat:hover { border-color: var(--line-strong); border-left-color: var(--accent); }
.stat__n { font-weight: 800; font-size: 2.75rem; line-height: .95; color: var(--fg-strong); font-variant-numeric: tabular-nums; }
.stat__cap { color: var(--fg-muted); font-size: 1rem; line-height: 1.45; }

/* footer */
.foot { margin-top: var(--sec); }
.foot__in { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; padding-block: 28px 40px; border-top: 2px solid var(--accent); }
.foot__in .cap { color: var(--fg-muted); }
.foot__big { font-weight: 800; font-size: 1.5rem; text-transform: uppercase; line-height: 1; color: var(--fg-strong); margin-top: 6px; }
.foot__who { color: var(--fg-muted); font-size: 1rem; }
.foot__who .mono { color: var(--fg-strong); display: block; margin-top: 4px; }

@media (max-width: 820px) { .cols-3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) { .head__row { padding-left: 14px; } .nav { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; } .nav__top { padding: 10px 11px; font-size: 1rem; white-space: nowrap; } .head__side .cap { display: none; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }
