/* Elvermont — static site. No external fonts, scripts or trackers. */
:root {
  --bg: #04070f; --bg2: #070d1a; --panel: #0a1324; --panel2: #0d182d; --line: #1a2a44; --line2: #24395c;
  --text: #e6edf6; --muted: #9db0c8; --dim: #6b7c94; --accent: #67e8f9; --accent2: #818cf8; --signal: #f59e0b;
  --ok: #4ade80; --radius: 16px; --wrap: 1180px;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--sans); }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; background: var(--panel); padding: 8px 12px; z-index: 50; }
.preview { background: #422006; color: #fde68a; text-align: center; font-size: 13px; padding: 6px 16px; }

/* header */
header.site { position: sticky; top: 0; z-index: 20; background: rgba(4,7,15,.82); backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(36,57,92,.55); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; letter-spacing: .14em;
  text-transform: uppercase; font-size: 15px; }
.brand:hover { text-decoration: none; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; }
nav a { color: var(--muted); } nav a:hover, nav a[aria-current] { color: var(--text); text-decoration: none; }
nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--accent); }
@media (max-width: 719px) { nav ul { gap: 2px 14px; padding-bottom: 10px; font-size: 13px; } }

/* type */
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(34px, 5.4vw, 64px); font-weight: 700; }
h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 680; }
h3 { font-size: 19px; font-weight: 640; letter-spacing: -.01em; }
p { margin: 0 0 1em; } .lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 760px; }
.eyebrow { font: 600 12px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; display: block; }
.mono { font-family: var(--mono); } .muted { color: var(--muted); } .dim { color: var(--dim); } .small { font-size: 13px; }
.grad { background: linear-gradient(90deg, #a5f3fc, #818cf8 60%, #c4b5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* sections */
section { padding: 72px 0; } section.tight { padding: 40px 0; }
section.band { background: linear-gradient(180deg, var(--bg2), var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 800px; margin-bottom: 36px; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 0; border-bottom: 1px solid var(--line); }
.hero .art { position: absolute; inset: 0; } .hero .art img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; opacity: .95; }
.hero .art::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(4,7,15,.96) 0%, rgba(4,7,15,.78) 38%, rgba(4,7,15,.15) 75%), linear-gradient(0deg, var(--bg) 0, transparent 22%); }
.hero .wrap { position: relative; padding-top: 96px; padding-bottom: 120px; }
.hero h1 { max-width: 760px; } .hero .lead { max-width: 620px; }
@media (max-width: 719px) { .hero .art::after { background: linear-gradient(180deg, rgba(4,7,15,.55), rgba(4,7,15,.92) 55%, var(--bg)); }
  .hero .wrap { padding-top: 220px; padding-bottom: 56px; } }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  background: linear-gradient(90deg, #22d3ee, #6366f1); color: #04101f; border: 0; }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line2); }
.btn.ghost:hover { border-color: var(--accent); }

/* stat strip */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--panel); padding: 22px 22px 20px; }
.stat b { display: block; font: 700 clamp(26px, 3vw, 36px)/1.1 var(--sans); letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: 14px; }

/* cards & grids */
.grid { display: grid; gap: 18px; } .g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } .g4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.gf { grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
.card { background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-top: 0; } .card p:last-child { margin-bottom: 0; }
.card .icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 14px;
  background: rgba(103,232,249,.08); border: 1px solid rgba(103,232,249,.25); color: var(--accent); font: 600 13px var(--mono); }
.card.media { padding: 0; overflow: hidden; } .card.media .body { padding: 20px 22px 22px; }
.card.media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-bottom: 1px solid var(--line); }
ul.ticks { list-style: none; padding: 0; margin: 0; } ul.ticks li { padding-left: 24px; position: relative; margin: 6px 0; color: var(--muted); }
ul.ticks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 10px; height: 10px; border-radius: 2px;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); }
.chip { display: inline-block; font: 600 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 6px 9px;
  border-radius: 999px; border: 1px solid var(--line2); color: var(--muted); }
.chip.amber { color: var(--signal); border-color: rgba(245,158,11,.45); } .chip.cyan { color: var(--accent); border-color: rgba(103,232,249,.4); }

/* figures */
figure { margin: 0; } figcaption { color: var(--dim); font-size: 13px; margin-top: 10px; }
.frame { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #000; }
.imgrid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.imgrid figure { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.imgrid img { width: 100%; aspect-ratio: 1/1; object-fit: cover; image-rendering: auto; }
.imgrid figcaption { margin: 0; padding: 10px 12px; font: 12px/1.4 var(--mono); letter-spacing: .04em; color: var(--muted); }
.mosaic { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.mosaic img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }

/* case study */
.case { display: grid; gap: 28px; grid-template-columns: 1fr; padding: 34px 0; border-top: 1px solid var(--line); }
@media (min-width: 980px) { .case { grid-template-columns: 360px 1fr; } }
.case .meta h3 { font-size: 24px; } .case .label { color: var(--signal); font: 600 11px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
table.spec { width: 100%; border-collapse: collapse; font-size: 14px; margin: 14px 0; }
table.spec th, table.spec td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.spec th { color: var(--dim); font-weight: 500; width: 46%; } table.spec td { font-family: var(--mono); font-size: 13px; }
.big { font: 700 44px/1 var(--sans); letter-spacing: -.03em; } .big small { font-size: 18px; color: var(--muted); font-weight: 500; }

/* formulas */
.formula { font: 15px/1.6 var(--mono); background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; overflow-x: auto; }
.formula b { color: var(--accent); font-weight: 600; }

/* prose pages */
.prose { max-width: 820px; } .prose h2 { font-size: 26px; margin-top: 1.6em; } .prose li { margin: .3em 0; color: var(--muted); }
.note { color: var(--dim); font-size: 14px; }

/* footer */
footer.site { border-top: 1px solid var(--line); background: var(--bg2); padding: 40px 0 48px; margin-top: 40px; color: var(--dim); font-size: 13px; }
footer.site .cols { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
footer.site ul { list-style: none; padding: 0; margin: 0; } footer.site li { margin: 6px 0; } footer.site a { color: var(--muted); }
.placeholder { background: #422006; color: #fde68a; padding: 0 4px; border-radius: 4px; }
@media (min-width: 980px) { .case .imgrid { grid-template-columns: repeat(3, 1fr); } }
