/* Elevate Electronics - shared styles. Tokens lifted from the home-page design. */
:root {
  --ink: #23211E;        /* dark background / cream-section text */
  --cream: #F5F1E9;      /* cream background / dark-section text */
  --cream-2: #FBF9F4;
  --acc: #2E7D50;        /* green accent */
  --red: #B5453B;
  --muted: #BDB7AC;      /* body copy on dark */
  --muted-2: #9A9389;
  --stone: #78716A;      /* labels on cream */
  --body-cream: #44403C; /* body copy on cream */
  --line-cream: #E4DED4;
  --line-dark: rgba(245,241,233,0.18);
  --input-line: #D6D0C6;
  --oswald: 'Oswald', sans-serif;
  --mono: 'Roboto Mono', ui-monospace, monospace;
  --gutter: clamp(21px, 8vw, 120px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ink); color: var(--cream);
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: 14px; line-height: 1.7; overflow-x: clip; position: relative;
}
a { color: inherit; }
img { max-width: 100%; }
::selection { background: var(--acc); color: var(--ink); }
input::placeholder, textarea::placeholder { color: #A8A196; opacity: 1; }
@keyframes ee-spin { to { transform: rotate(360deg); } }
@keyframes ee-ripple-diag {
  0% { -webkit-mask-position: 50% 120%; mask-position: 50% 120%; opacity: 0; }
  14%, 86% { opacity: 0.6; }
  100% { -webkit-mask-position: 50% -120%; mask-position: 50% -120%; opacity: 0; }
}

/* ---------- Backdrop dot field ---------- */
.dots { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.dots--base { opacity: 0.22; background-image: radial-gradient(var(--cream) 1.1px, transparent 1.2px); background-size: 11px 11px; background-position: center; }
.dots--glow { background: radial-gradient(ellipse 70% 62% at 6% 4%, rgba(28,74,49,0.26) 0%, rgba(28,74,49,0.1) 42%, transparent 78%); }
.dots--green { opacity: 0.4; background-image: radial-gradient(#1C4A31 1.6px, transparent 1.7px); background-size: 11px 11px; background-position: center;
  -webkit-mask-image: linear-gradient(135deg, #000 0%, rgba(0,0,0,0.55) 32%, rgba(0,0,0,0.18) 62%, transparent 88%);
  mask-image: linear-gradient(135deg, #000 0%, rgba(0,0,0,0.55) 32%, rgba(0,0,0,0.18) 62%, transparent 88%);
  filter: drop-shadow(0 0 3px rgba(28,74,49,0.9)) drop-shadow(0 0 8px rgba(28,74,49,0.5)); }
.dots--ripple { background-image: radial-gradient(#2A7048 1.7px, transparent 1.8px); background-size: 11px 11px; background-position: center;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.35) 34%, #000 44%, rgba(0,0,0,0.3) 56%, transparent 90%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.35) 34%, #000 44%, rgba(0,0,0,0.3) 56%, transparent 90%);
  -webkit-mask-size: 100% 200%; mask-size: 100% 200%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  filter: drop-shadow(0 0 5px rgba(42,112,72,0.95)) drop-shadow(0 0 12px rgba(42,112,72,0.5)); animation: ee-ripple-diag 10s linear infinite; }
canvas.dots { width: 100%; height: 100%; }

/* ---------- Loader ---------- */
.loader { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; background: var(--ink); transition: opacity 0.5s ease; pointer-events: none; }
.loader.is-fading { opacity: 0; }
.loader.is-gone { display: none; }
.loader__mark { position: relative; width: 72px; height: 72px; animation: ee-spin 1.4s cubic-bezier(0.65,0,0.35,1) infinite; }
.loader__mark::before, .loader__mark::after { content: ""; position: absolute; width: 28px; height: 30px; }
.loader__mark::before { left: 6px; top: 14px; background: var(--red); clip-path: polygon(0 0, 50% 27%, 100% 0, 50% 100%); }
.loader__mark::after { right: 6px; top: 28px; background: var(--acc); clip-path: polygon(50% 0, 100% 100%, 50% 73%, 0 100%); }

/* ---------- Top bar ---------- */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 90; display: flex; justify-content: space-between; align-items: center; padding: 20px 28px 20px 21px; background: var(--ink); }
.topbar__logo img { display: block; height: 34px; width: auto; }
.topbar__actions { display: flex; gap: 10px; align-items: center; }
.tag-btn { font-size: 10px; letter-spacing: 0.25em; text-decoration: none; border: 1px solid var(--cream); padding: 8px 16px; color: var(--cream); background: none; font-family: var(--mono); cursor: pointer; transition: color 0.2s linear, border-color 0.2s linear; }
.tag-btn:hover { border-color: var(--acc); color: var(--cream); }

/* ---------- Overlays (menu / contact) ---------- */
.overlay { position: fixed; inset: 0; z-index: 120; display: none; align-items: center; justify-content: center; background: var(--cream); color: var(--ink); overflow-y: auto; }
.overlay.is-open { display: flex; }
.overlay__panel { position: relative; width: min(560px, 86vw); padding: 44px 0 40px; }
.overlay__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 34px; }
.overlay__close { font-size: 10px; letter-spacing: 0.25em; text-decoration: none; color: var(--stone); }
.overlay__close:hover { color: var(--ink); }
.overlay__list { display: flex; flex-direction: column; margin-bottom: 34px; }
.overlay__list a, .overlay__list span { display: flex; align-items: baseline; gap: 18px; padding: 16px 0; border-top: 1px solid var(--line-cream); text-decoration: none; color: var(--ink); font-family: var(--oswald); font-size: 32px; letter-spacing: 0.04em; }
.overlay__list a:hover, .overlay__list a.is-current { color: var(--acc); }
.overlay__list small { font-family: var(--mono); font-size: 10px; letter-spacing: 0.25em; color: var(--stone); align-self: center; }
.cream-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 0.5s ease;
  background: radial-gradient(circle 900px at var(--gx, 50%) var(--gy, 50%), rgba(46,125,80,0.1) 0%, rgba(46,125,80,0.055) 30%, rgba(46,125,80,0.028) 65%, rgba(46,125,80,0.02) 100%), rgba(46,125,80,0.02); }
.overlay .cream-glow { position: fixed; }

/* ---------- Typography ---------- */
.eyebrow { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--stone); }
.sec--dark .eyebrow { color: var(--muted-2); }
.eyebrow--acc { color: var(--acc) !important; }
.h-giant { margin: 0; font-family: var(--oswald); font-weight: 700; line-height: 0.86; letter-spacing: -0.01em; font-size: clamp(48px, 10.5vw, 200px); text-transform: uppercase; }
.h-xl { margin: 0; font-family: var(--oswald); font-weight: 600; line-height: 0.9; letter-spacing: -0.01em; font-size: clamp(44px, 7.5vw, 130px); text-transform: uppercase; }
.h-lg { margin: 0; font-family: var(--oswald); font-weight: 600; line-height: 0.95; font-size: clamp(32px, 4.2vw, 64px); text-transform: uppercase; }
.h-md { margin: 0; font-family: var(--oswald); font-weight: 500; line-height: 1.05; font-size: clamp(22px, 2.4vw, 32px); letter-spacing: 0.02em; text-transform: uppercase; }
.acc { color: var(--acc); }
.lede { margin: 0; font-size: 14px; line-height: 1.7; max-width: 62ch; text-wrap: balance; }
.sec--cream .lede, .sec--cream p { color: var(--body-cream); }
.sec--dark .lede, .sec--dark p { color: var(--muted); }
.small { font-size: 12px; }
p { margin: 0 0 1em; }

/* ---------- Sections ---------- */
.sec { position: relative; z-index: 1; padding: 12vh var(--gutter); }
.sec--cream { background: var(--cream); color: var(--ink); }
.sec--dark { color: var(--cream); }
.sec--hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: flex-start; padding-top: 88px; padding-bottom: 6vh; overflow: hidden; }
.sec--hero .h-giant { margin-top: 6vh; margin-left: -0.05em; }
.hero__top { display: flex; justify-content: flex-end; align-items: baseline; gap: 24px; flex-wrap: wrap; }
.hero__top .backed { display: inline-flex; align-items: center; gap: 12px; font-size: 11px; letter-spacing: 0.3em; color: var(--stone); }
.hero__top .backed img { height: 20px; width: auto; filter: invert(1); opacity: 0.8; }
.hero__bottom { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); align-items: center; gap: 28px 4.5vw; margin-top: auto; padding-top: calc(4vh + 14px); }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; justify-self: center; }
.hero__stats { display: flex; gap: 56px; justify-content: center; text-align: center; flex-wrap: wrap; margin-top: auto; padding-top: 6vh; }
.stat { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.stat__n { font-family: var(--oswald); font-size: 40px; line-height: 1; }
.stat__l { font-size: 10px; letter-spacing: 0.2em; color: var(--stone); }
.sec--dark .stat__l { color: var(--muted-2); }
.sec-head { display: flex; flex-direction: column; gap: 18px; margin-bottom: 6vh; }
.sec-head .lede { max-width: 52ch; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.25em; text-decoration: none; padding: 20px 34px; white-space: nowrap; border: 1px solid currentColor; cursor: pointer; background: none; transition: background 0.2s linear, border-color 0.2s linear, color 0.2s linear; }
.btn--solid-ink { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn--solid-ink:hover { background: var(--acc); border-color: var(--acc); color: var(--cream); }
.btn--ghost-ink { color: var(--ink); border-color: var(--ink); }
.btn--ghost-ink:hover { border-color: var(--acc); color: var(--acc); }
.btn--solid-cream { background: var(--cream); color: var(--ink); border-color: var(--cream); font-weight: 700; }
.btn--solid-cream:hover { background: var(--acc); border-color: var(--acc); color: var(--cream); }
.btn--ghost-cream { color: var(--cream); border-color: rgba(245,241,233,0.5); }
.btn--ghost-cream:hover { border-color: var(--acc); color: var(--acc); }

/* ---------- Layout helpers ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 6vh 6vw; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 40px 4vw; }
.grid-2--center { align-items: center; }
.photo { display: block; width: 100%; height: auto; object-fit: cover; border: 1px solid var(--line-dark); }
.sec--cream .photo { border-color: var(--line-cream); }
.photo--tall { aspect-ratio: 4 / 5; }

/* Row lists (bordered, like menu rows) */
.rows { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); gap: 16px 40px; padding: 28px 0; border-top: 1px solid var(--line-dark); }
.sec--cream .row { border-color: var(--line-cream); }
.rows > .row:last-child { border-bottom: 1px solid var(--line-dark); }
.sec--cream .rows > .row:last-child { border-color: var(--line-cream); }
.row__k { font-family: var(--oswald); font-size: clamp(22px, 2.4vw, 32px); line-height: 1.05; letter-spacing: 0.02em; text-transform: uppercase; }
.row__k small { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.25em; color: var(--muted-2); margin-top: 8px; text-transform: none; }
.sec--cream .row__k small { color: var(--stone); }
.row__v p { margin: 0 0 0.8em; max-width: 60ch; }
.row__v p:last-child { margin-bottom: 0; }
.row__v ul { margin: 0; padding-left: 1.2em; }
.row--3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 0.8fr); }

/* Part number chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { font-size: 10px; letter-spacing: 0.15em; border: 1px solid var(--line-dark); padding: 7px 11px; white-space: nowrap; color: var(--muted); }
.sec--cream .chip { border-color: var(--input-line); color: var(--body-cream); }

/* Numbered steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 32px 3vw; margin: 0; padding: 0; list-style: none; }
.steps li { counter-increment: step; border-top: 1px solid var(--line-dark); padding-top: 18px; }
.sec--cream .steps li { border-color: var(--line-cream); }
.steps li::before { content: "0" counter(step); display: block; font-family: var(--oswald); font-size: 40px; line-height: 1; color: var(--acc); margin-bottom: 14px; }
.steps h3 { margin: 0 0 8px; font-family: var(--oswald); font-weight: 500; font-size: 20px; letter-spacing: 0.04em; text-transform: uppercase; }
.steps p { margin: 0; font-size: 13px; }

/* Spec key/value table */
.spec { width: 100%; border-collapse: collapse; font-size: 12px; }
.spec th, .spec td { text-align: left; padding: 12px 0; border-top: 1px solid var(--line-dark); vertical-align: top; }
.spec th { font-weight: 400; letter-spacing: 0.2em; font-size: 10px; text-transform: uppercase; color: var(--muted-2); width: 38%; padding-right: 20px; }
.sec--cream .spec th, .sec--cream .spec td { border-color: var(--line-cream); }
.sec--cream .spec th { color: var(--stone); }

/* ---------- Forms ---------- */
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 34px 36px; }
.form label { display: flex; flex-direction: column; gap: 12px; }
.form label span { font-size: 11px; letter-spacing: 0.22em; color: var(--stone); }
.form input, .form select, .form textarea { width: 100%; font-family: var(--mono); font-size: 15px; color: var(--ink); background: var(--cream); border: 1px solid var(--input-line); border-radius: 6px; padding: 16px 18px; outline: none; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--ink); }
.form textarea { resize: vertical; min-height: 200px; line-height: 1.6; }
.form .span-2 { grid-column: 1 / -1; }
.form__submit { grid-column: 1 / -1; display: flex; justify-content: center; margin-top: 8px; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__error { margin: 0; font-size: 13px; color: var(--red); border: 1px solid var(--red); padding: 14px 18px; border-radius: 6px; }
.form__error[hidden] { display: none; }
.form button[disabled] { opacity: 0.6; cursor: wait; }
.form__done { display: none; flex-direction: column; gap: 24px; padding: 4vh 0; }
.form.is-sent { display: none; }
.form__done.is-shown { display: flex; }

/* ---------- Contact blocks ---------- */
.contact-card { border-top: 1px solid var(--line-cream); padding: 28px 0; }
.contact-card .eyebrow { margin-bottom: 14px; display: block; }
.contact-card address { font-style: normal; line-height: 1.8; }
.contact-card a { text-decoration: none; color: var(--ink); }
.contact-card a:hover { color: var(--acc); }
.contact-big { font-family: var(--oswald); font-size: clamp(22px, 2.6vw, 32px); letter-spacing: 0.04em; text-decoration: none; color: var(--ink); display: block; word-break: break-all; }
.contact-big:hover { color: var(--acc); }

/* ---------- Legal prose ---------- */
.prose { max-width: 72ch; }
.prose h2 { font-family: var(--oswald); font-weight: 500; font-size: 26px; letter-spacing: 0.03em; text-transform: uppercase; margin: 6vh 0 18px; line-height: 1.1; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--stone); margin: 32px 0 10px; font-weight: 400; }
.prose p, .prose li { font-size: 13px; line-height: 1.8; }
.prose ul { padding-left: 1.2em; }
.prose a { color: var(--acc); }
.prose table { width: 100%; border-collapse: collapse; font-size: 12px; margin: 12px 0 24px; }
.prose th, .prose td { text-align: left; padding: 10px 12px 10px 0; border-top: 1px solid var(--line-cream); vertical-align: top; }
.prose th { font-weight: 400; letter-spacing: 0.2em; font-size: 10px; text-transform: uppercase; color: var(--stone); }
.legal-meta { font-size: 11px; letter-spacing: 0.2em; color: var(--stone); margin-bottom: 4vh; }
.toc { display: flex; flex-direction: column; gap: 0; position: sticky; top: 100px; }
.toc a { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; color: var(--stone); padding: 12px 0; border-top: 1px solid var(--line-cream); }
.toc a:hover { color: var(--acc); }
.legal-layout { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 6vh 6vw; align-items: start; }
@media (max-width: 860px) { .legal-layout { grid-template-columns: 1fr; } .toc { position: static; } }

/* ---------- CTA + footer ---------- */
.cta { padding-bottom: 0; }
.cta__row { display: flex; justify-content: flex-start; align-items: center; gap: 28px 4vw; margin-top: 6vh; flex-wrap: wrap; }
.cta__row p { flex: 1 1 280px; max-width: 44ch; margin: 0; font-size: 13px; }
.cta__ring { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: 92px; height: 92px; border-radius: 50%; border: 1px solid var(--ink); font-size: 10px; letter-spacing: 0.25em; line-height: 1.1; text-decoration: none; text-align: center; color: var(--ink); }
.cta__ring:hover { color: var(--acc); }
.brands { margin: 12vh calc(var(--gutter) * -1) 0; padding: 38px 0; border-top: 1px solid var(--line-cream); overflow: hidden; }
.brands__label { padding: 0 var(--gutter); margin-bottom: 26px; }
.brands__track { display: flex; width: max-content; animation: ee-marquee 42s linear infinite; }
.brands__track:hover { animation-play-state: paused; }
.brands__mask { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 120px, #000 calc(100% - 120px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 120px, #000 calc(100% - 120px), transparent 100%); }
.brand { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 0 46px; border-right: 1px solid var(--line-cream); min-width: 230px; height: 64px; }
.brand img { height: 30px; width: auto; max-width: 160px; object-fit: contain; object-position: left center; opacity: 0.86; }
.brand img.inv { filter: invert(1); }
.brand small { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone); }
@keyframes ee-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 40px; position: relative; z-index: 1; background: var(--ink); padding: 40px var(--gutter) 36px; }
.footer img { display: block; height: 30px; width: auto; }
.footer nav { display: flex; flex-wrap: wrap; gap: 14px 36px; align-items: center; }
.footer nav a { font-size: 10px; letter-spacing: 0.25em; text-decoration: none; color: var(--muted); }
.footer nav a:hover { color: var(--cream); }
.footer__legal { width: 100%; font-size: 10px; letter-spacing: 0.1em; color: var(--muted-2); line-height: 1.8; }

@media (max-width: 720px) {
  .topbar { padding: 14px 16px; }
  .topbar__logo img { height: 28px; }
  :root { --gutter: 16px; }
  .row, .row--3 { grid-template-columns: 1fr; gap: 12px; }
  .hero__stats { gap: 32px; }
  .btn { padding: 16px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .dots--ripple, .brands__track, .loader__mark { animation: none; }
  html { scroll-behavior: auto; }
}
