/* ==========================================================================
   Lucid Technology Services — site styles
   Colors and fonts live in the :root block below. Change them there and the
   whole site updates.
   ========================================================================== */

:root {
  /* Brand colors (from the build brief) */
  --bg: #0B0B0C;          /* page background, near black */
  --panel: #141416;       /* panels and cards */
  --panel-2: #1A1A1D;     /* raised panels, inputs */
  --line: #2A2A2E;        /* hairline borders */
  --gold: #D8B96E;        /* primary accent: logo line, headings, buttons */
  --gold-soft: #b89b55;
  --text: #EDE6D6;        /* warm off-white */
  --muted: #A99F8A;       /* muted text */
  --blue: #3BC9F5;        /* secondary accent: links, hover glow, focus */

  /* Blue logo variant (from the logo artboard), used for Vehicle & Marine */
  --blue-bg: #080C11;
  --blue-panel: #0E151D;
  --blue-line: #1C2A36;
  --blue-text: #E6EEF4;
  --blue-muted: #9FB3C2;

  /* Red logo variant (concept 9b), used for Consulting & Events.
     Light red #F59A8F is the only red used for text; the darker reds are
     for the line gradient and fills (they're too dark to read as text). */
  --red-bg: #0D0909;
  --red-panel: #161010;
  --red-line: #2E1D1C;
  --red-text: #EEE4E2;
  --red-muted: #BFA9A5;
  --red-light: #F59A8F;
  --red-solder: #B8302A;

  --font-head: "Outfit", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 10px;
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }

html { color-scheme: dark; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: .01em;
}
h1, h2 { text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.35rem); color: var(--gold); }
h3 { font-size: 1.25rem; color: var(--text); }
p  { margin: 0 0 1em; }

a { color: var(--blue); text-underline-offset: 3px; }
a:hover { text-shadow: 0 0 12px rgba(59, 201, 245, .45); }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.eyebrow {
  font-family: var(--font-head);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .78rem;
  color: var(--gold);
  margin-bottom: 1rem;
}
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--gold); color: var(--bg); padding: .5rem 1rem; border-radius: 6px;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 500; font-size: 1rem;
  letter-spacing: .04em;
  padding: .85rem 1.5rem; border-radius: 999px;
  border: 1px solid var(--gold);
  text-decoration: none; cursor: pointer;
  transition: box-shadow .2s, background .2s, color .2s, transform .2s;
}
.btn-primary { background: var(--gold); color: var(--bg); }
.btn-primary:hover { box-shadow: 0 0 0 4px rgba(216, 185, 110, .18), 0 0 24px rgba(59, 201, 245, .25); text-shadow: none; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--gold); }
.btn-ghost:hover { background: rgba(216, 185, 110, .08); text-shadow: none; }
.btn-small { padding: .55rem 1.1rem; font-size: .92rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 12, .88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }

.brand { display: inline-flex; flex-direction: column; text-decoration: none; color: var(--text); }
.brand:hover { text-shadow: none; }
.brand-word {
  font-family: var(--font-head); font-weight: 500; font-size: 1.35rem;
  letter-spacing: .22em; line-height: 1; padding-left: .22em; /* balances tracking */
}
/* width:0 + min-width:100% makes the line exactly as wide as the word above it */
.brand-line { width: 0; min-width: 100%; height: auto; margin-top: 2px; overflow: visible; }
.brand-line .signal { stroke-width: 1.6; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); color: var(--text);
  border-radius: 8px; padding: .5rem .7rem; font: inherit; cursor: pointer;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 1.75rem; }
.site-nav a:not(.btn) {
  color: var(--text); text-decoration: none; font-family: var(--font-head); font-size: 1rem; letter-spacing: .04em;
  padding: .25rem 0; border-bottom: 1px solid transparent;
}
.site-nav a:not(.btn):hover { color: var(--gold); text-shadow: none; }
.site-nav a:not(.btn)[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }

@media (max-width: 820px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gutter) 1.25rem; }
  .site-nav li a:not(.btn) { display: block; padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .site-nav li:last-child { margin-top: 1rem; }
  .site-nav .btn { width: 100%; }
}

/* ---------- Sections ---------- */
section { padding: clamp(56px, 9vw, 104px) 0; }
.section-head { max-width: 680px; margin-bottom: 2.5rem; }
.page-hero { padding-bottom: clamp(24px, 4vw, 48px); }
.page-hero p { color: var(--muted); font-size: 1.15rem; max-width: 640px; }

/* ---------- Home hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-top: clamp(64px, 12vw, 140px);
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(216, 185, 110, .09), transparent 70%),
    var(--bg);
  text-align: center;
}
/* ---------- Logo, concept 9b ----------
   LUCID, then TECHNOLOGY sitting on the flatline (left), the signal line,
   and SERVICES under the wave (right). Proportions copied from the
   WaveEKGOffset artboard: word 64px, block 330px wide, small words 14px.
   Set font-size on .logo9b to scale the whole thing. */
.logo9b { width: 5.156em; display: flex; flex-direction: column; gap: .0625em; font-family: var(--font-head); }
.l9-word { font-weight: 500; letter-spacing: .22em; padding-left: .22em; line-height: 1; text-align: center; color: var(--text); margin-bottom: .219em; }
.l9-top, .l9-bot { font-size: .219em; font-weight: 300; letter-spacing: .42em; line-height: 1.1; color: var(--accent, var(--gold)); }
.l9-top { padding-left: 1.286em; }
.l9-bot { text-align: right; margin-right: -.42em; }
.l9-line { display: block; width: 100%; height: auto; overflow: visible; }
.theme-red .l9-top, .theme-red .l9-bot {
  font-weight: 500;
  background: linear-gradient(180deg, #F59A8F 0%, #D6463B 50%, #9A1F1A 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #D6463B;
}
.hero .logo9b { font-size: clamp(44px, 11vw, 96px); margin: 0 auto 2.5rem; text-align: left; }
.site-footer .logo9b { font-size: 48px; margin-bottom: 1rem; }

.hero h1 { max-width: 820px; margin: 0 auto .6em; }

/* Home hero photo. The dark layer on top keeps every word readable (WCAG AA). */
.hero.has-photo {
  padding-bottom: clamp(72px, 12vw, 140px);
  background:
    linear-gradient(180deg, rgba(11, 11, 12, .80) 0%, rgba(11, 11, 12, .78) 60%, rgba(11, 11, 12, .92) 88%, var(--bg) 100%),
    url("../../photos/hero-4runner-mountain-overlook.webp") center 40% / cover no-repeat,
    var(--bg);
}
.hero.has-photo h1, .hero.has-photo .lede, .hero.has-photo .l9-word { text-shadow: 0 2px 18px rgba(0, 0, 0, .55); }
.hero.has-photo .lede { color: var(--text); }
.hero .lede { color: var(--muted); font-size: 1.2rem; max-width: 620px; margin: 0 auto 2rem; }
.btn-row { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }

/* The logo's signal line (path data comes from the WaveEKG logo artboard) */
.signal    { fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.solder    { fill: var(--gold); }

/* Signature effect: the signal line draws itself left to right */
.hero .signal {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw-signal 2.6s cubic-bezier(.65, 0, .35, 1) .5s forwards;
}
.hero .solder { opacity: 0; animation: fade-in .4s ease .2s forwards; }
.hero .l9-top { opacity: 0; animation: fade-in .8s ease .6s forwards; }
.hero .l9-bot { opacity: 0; animation: fade-in .8s ease 2.7s forwards; }
@keyframes draw-signal { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }

/* Logo hover pulse (header logo and the big home logo) */
.pulse {
  fill: none; stroke: #F6E4B0; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: .1 1.1; stroke-dashoffset: .1; opacity: 0;
  filter: drop-shadow(0 0 3px rgba(216, 185, 110, .9));
}
.brand-line .pulse { stroke-width: 4.5; }
.brand:hover .pulse, .brand:focus-visible .pulse, .logo9b:hover .pulse { animation: lucid-pulse 1.6s linear infinite; }
@keyframes lucid-pulse {
  0%   { opacity: 1; stroke-dashoffset: .1; }
  72%  { opacity: 1; stroke-dashoffset: -1; }
  73%, 100% { opacity: 0; stroke-dashoffset: -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero .signal { stroke-dashoffset: 0; }
  .hero .solder, .hero .l9-top, .hero .l9-bot { opacity: 1; }
}

/* ---------- Service path cards (Home) ---------- */
.paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1.25rem; }
.path-card {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(28px, 4vw, 44px);
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text); text-decoration: none;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.path-card:hover { border-color: rgba(216, 185, 110, .6); box-shadow: 0 0 40px rgba(59, 201, 245, .08); transform: translateY(-2px); text-shadow: none; }
.path-card h3 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); color: var(--gold); }
.path-card p { color: var(--muted); }
.path-card ul { margin: .25rem 0 1.5rem; padding: 0; list-style: none; }
.path-card li { padding: .35rem 0 .35rem 1.4rem; position: relative; }
.path-card li::before {
  content: ""; position: absolute; left: 0; top: .95em; width: .7rem; height: 1px; background: var(--gold);
}
.path-card .more { margin-top: auto; font-family: var(--font-head); color: var(--gold); letter-spacing: .04em; }

/* ---------- Trust band ---------- */
.trust { padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel); }
.trust-inner { display: flex; flex-wrap: wrap; gap: 1rem 3rem; justify-content: center; align-items: center; text-align: center; }
.trust-item { font-family: var(--font-head); font-size: 1.15rem; letter-spacing: .04em; }
.trust-item strong { color: var(--gold); font-weight: 500; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.25rem; }
.project { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.project-media { display: grid; grid-template-columns: 1fr; gap: 2px; aspect-ratio: 4 / 3; background: var(--line); }
.project-media.pair { grid-template-columns: 1fr 1fr; }
.project-media .shot { position: relative; min-height: 0; background: var(--panel-2); }
.project-media img, .project-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot-label {
  position: absolute; left: .6rem; top: .6rem;
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  background: rgba(11, 11, 12, .8); color: var(--gold); padding: .2rem .5rem; border-radius: 4px;
}
.placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
  width: 100%; height: 100%; padding: 1rem; text-align: center;
  color: var(--muted); font-size: .85rem;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(216, 185, 110, .035) 14px 15px),
    var(--panel-2);
  border: 1px dashed rgba(169, 159, 138, .35);
}
.placeholder svg { width: 72px; height: 24px; opacity: .7; }
.project figcaption { padding: .9rem 1.1rem 1.1rem; }
.project .tag { display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: .25rem; }

.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.filter {
  font: inherit; font-family: var(--font-head); font-size: .95rem; letter-spacing: .04em;
  background: transparent; color: var(--text);
  border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1.15rem; cursor: pointer;
}
.filter:hover { border-color: var(--gold); }
.filter[aria-pressed="true"] { background: var(--gold); color: var(--bg); border-color: var(--gold); }

/* ---------- Services ---------- */
.service-group + .service-group { border-top: 1px solid var(--line); }
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1.25rem; }
.service {
  padding: 1.6rem 1.6rem 1.3rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}
.service h3, .service h4 { display: flex; align-items: center; gap: .7rem; font-size: 1.25rem; color: var(--text); }
.service h3::before, .service h4::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent, var(--gold)); box-shadow: 0 0 10px rgba(var(--accent-rgb, 216, 185, 110), .6); }
.service p { color: var(--muted); margin: 0; }

/* Featured video clip (Services) */
.clip-feature { margin: 2rem 0 0; max-width: 860px; }
.clip-feature video, .clip-feature img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel-2); display: block; }
.clip-feature figcaption { color: var(--muted); margin-top: .75rem; }
/* Two photos side by side at the end of a Services section */
.service-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1.25rem; margin: 2.5rem 0 0; }
.service-photos figure { margin: 0; }
.service-photos img, .service-photos video { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); border: 1px solid rgba(var(--accent-rgb, 216, 185, 110), .25); }
.service-intro + .service-subhead { margin-top: .5rem; }     /* "On the job" sits right under the section intro */
.service-photos figcaption { color: var(--muted); font-size: .9rem; margin-top: .6rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.story p { font-size: 1.12rem; }
.portrait { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.facts { margin-top: 1.5rem; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fact { background: var(--panel); padding: 1.1rem 1.3rem; }
.fact dt { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.fact dd { margin: .2rem 0 0; font-family: var(--font-head); font-size: 1.15rem; }

/* ---------- CTA band (ends every page) ---------- */
.cta-band {
  text-align: center; background:
    radial-gradient(50% 80% at 50% 100%, rgba(216, 185, 110, .1), transparent 70%), var(--panel);
  border-top: 1px solid var(--line);
}
.cta-band p { color: var(--muted); max-width: 560px; margin: 0 auto 1.75rem; }
.cta-band .signal-divider { width: 220px; margin: 0 auto 1.5rem; }

/* ---------- Form ---------- */
.form-shell { max-width: 760px; }
.estimate-form fieldset { border: 0; padding: 0; margin: 0 0 2.25rem; min-width: 0; }
.estimate-form legend {
  font-family: var(--font-head); font-size: 1.3rem; color: var(--gold); padding: 0; margin-bottom: 1rem;
}
.step-num { color: var(--muted); font-size: .9rem; margin-right: .5rem; letter-spacing: .1em; }
.field { margin-bottom: 1.15rem; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0 1rem; }
label, .label { display: block; font-weight: 500; margin-bottom: .4rem; }
.optional { color: var(--muted); font-weight: 400; font-size: .9rem; }
.hint { color: var(--muted); font-size: .9rem; margin: .35rem 0 0; }
label.check { display: flex; gap: .65rem; align-items: flex-start; font-weight: 400; }
label.check input { width: 1.15rem; height: 1.15rem; margin: .2rem 0 0; flex: none; accent-color: var(--gold); }
.consent label.check { color: var(--muted); font-size: .9rem; line-height: 1.5; }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%; font: inherit; color: var(--text);
  background: var(--panel-2); border: 1px solid #736d5f; border-radius: 8px;
  padding: .75rem .9rem;
}
textarea { min-height: 140px; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.5rem; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59, 201, 245, .25); }
input[type="file"] { font: inherit; color: var(--muted); max-width: 100%; }
input[type="file"]::file-selector-button {
  font: inherit; font-family: var(--font-head); margin-right: 1rem; cursor: pointer;
  background: transparent; color: var(--gold); border: 1px solid var(--gold); border-radius: 999px; padding: .45rem 1rem;
}

/* Big two-way choice */
.choice-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 1rem; }
.choice-card { position: relative; }
.choice-card input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice-card span {
  display: block; padding: 1.25rem 1.3rem; border: 1px solid #736d5f; border-radius: var(--radius); background: var(--panel);
  transition: border-color .2s, box-shadow .2s;
}
.choice-card strong { display: block; font-family: var(--font-head); font-weight: 500; font-size: 1.2rem; }
.choice-card small { color: var(--muted); font-size: .9rem; }
.choice-card input:checked + span { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold), 0 0 24px rgba(216, 185, 110, .12); }
.choice-card input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 3px; }

/* Pills for radios/checkboxes */
.pills { display: flex; flex-wrap: wrap; gap: .55rem; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pill span {
  display: inline-block; padding: .5rem 1rem; border: 1px solid #736d5f; border-radius: 999px; font-size: .95rem; background: var(--panel);
}
.pill input:checked + span { border-color: var(--gold); background: rgba(216, 185, 110, .14); color: var(--gold); }
.pill input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }

.branch { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.branch[hidden], .reveal[hidden] { display: none; }
.honeypot { position: absolute; left: -9999px; }

.form-status { margin-top: 1rem; color: var(--muted); }
.form-status.error { color: #ffb4a8; }
.thanks {
  padding: clamp(32px, 6vw, 56px); text-align: center; border: 1px solid var(--gold); border-radius: var(--radius);
  background: var(--panel);
}
.thanks h2 { margin-bottom: .4em; }

/* ---------- Privacy policy ---------- */
.policy { max-width: 720px; }
.policy h2 { font-size: 1.35rem; margin: 2.2rem 0 .6rem; scroll-margin-top: 96px; }
.policy h2:first-child { margin-top: 0; }
.policy p { color: var(--muted); }
.policy strong { color: var(--text); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 32px; color: var(--muted); font-size: .95rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.footer-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.footer-nav a { color: var(--text); text-decoration: none; }
.footer-nav a:hover { color: var(--gold); text-shadow: none; }
.footer-base { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .85rem; }
.footer-base a { color: var(--muted); }
.footer-base a:hover { color: var(--gold); text-shadow: none; }

/* ---------- Service themes (from the logo artboard) ----------
   Gold is the main logo. Blue is the artboard's blue variant, used only for
   Vehicle & Marine. Add class="theme-gold" or class="theme-blue" to a section
   or card; everything inside picks up the matching accent. */
.theme-gold { --accent: var(--gold); --accent-rgb: 216, 185, 110; }
.theme-blue {
  --accent: var(--blue); --accent-rgb: 59, 201, 245;
  --text: var(--blue-text); --muted: var(--blue-muted);
  --panel: var(--blue-panel); --panel-2: var(--blue-panel); --line: var(--blue-line);
  color: var(--text);
}
section.theme-blue { background: var(--blue-bg); }
.theme-blue .signal { stroke: var(--blue); }
.theme-blue .solder { fill: var(--blue); }

/* Logo-style service heading: name, signal line, subtitle */
.service-lockup { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .6rem; margin: 0 auto 1.25rem; }
.sl-word {
  font-family: var(--font-head); font-weight: 500; text-transform: uppercase;
  font-size: clamp(1.3rem, 3.6vw, 2.4rem); letter-spacing: .22em; padding-left: .22em;
  line-height: 1.2; color: var(--text); margin: 0;
}
.sl-line { width: min(330px, 80%); height: auto; overflow: visible; }
.sl-sub {
  font-family: var(--font-head); font-weight: 300; text-transform: uppercase;
  font-size: .82rem; letter-spacing: .32em; padding-left: .32em; color: var(--accent); margin: 0;
}
.service-subhead { text-align: center; color: var(--accent, var(--gold)); font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin: 3.5rem 0 .75rem; scroll-margin-top: 96px; }
.service-intro { max-width: 640px; margin: 0 auto 2.5rem; text-align: center; color: var(--muted); }
.service-intro strong { color: var(--text); font-weight: 500; }

/* Jump links at the top of Services */
.service-jump { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.service-jump a {
  font-family: var(--font-head); letter-spacing: .04em; text-decoration: none;
  color: var(--accent); border: 1px solid rgba(var(--accent-rgb), .5); border-radius: 999px; padding: .5rem 1.1rem;
}
.service-jump a:hover { background: rgba(var(--accent-rgb), .1); text-shadow: none; }

/* Home path cards follow their theme */
.path-card.theme-blue { background: linear-gradient(160deg, var(--blue-panel), var(--blue-bg)); }
.path-card h3, .path-card .more { color: var(--accent, var(--gold)); }
.path-card li::before { background: var(--accent, var(--gold)); }
.path-card:hover { border-color: rgba(var(--accent-rgb, 216, 185, 110), .6); }
.path-card .sl-line { width: 140px; margin: -.25rem 0 1rem; }
@media (max-width: 480px) {
  .sl-sub { font-size: .72rem; letter-spacing: .18em; padding-left: .18em; }
}

/* Red colorway: Consulting & Events */
.theme-red {
  --accent: var(--red-light); --accent-rgb: 245, 154, 143;
  --text: var(--red-text); --muted: var(--red-muted);
  --panel: var(--red-panel); --panel-2: var(--red-panel); --line: var(--red-line);
  color: var(--text);
}
section.theme-red { background: var(--red-bg); }
.theme-red .signal { stroke: url(#lucidRedMetal); }
.theme-red .solder { fill: var(--red-solder); }
.path-card.theme-red { background: linear-gradient(160deg, var(--red-panel), var(--red-bg)); }

/* Area buttons (each service section) */
.theme-gold { --accent-fill: var(--gold); --on-accent: #0B0B0C; }
.theme-blue { --accent-fill: var(--blue); --on-accent: #080C11; }
.theme-red  { --accent-fill: linear-gradient(180deg, #F59A8F, #E07B70); --on-accent: #0D0909; }
.btn-area { background: var(--accent-fill); color: var(--on-accent); border-color: var(--accent); }
.btn-area:hover { box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .18); text-shadow: none; transform: translateY(-1px); }
.service-cta { text-align: center; margin-top: 2.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }

/* What counts as a vehicle */
.vehicle-types { list-style: none; padding: 0; margin: -1.25rem auto 2.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.vehicle-types li { border: 1px solid rgba(var(--accent-rgb), .45); color: var(--text); border-radius: 999px; padding: .4rem 1rem; font-size: .95rem; }

/* Service heading in the 9b style: area name, then TECHNOLOGY / line / SERVICES */
.l9-mark { width: min(330px, 80%); display: flex; flex-direction: column; gap: 4px; font-family: var(--font-head); font-size: 64px; }
@media (max-width: 480px) { .l9-mark { font-size: 56px; } }

/* Our Work tags and filters in their area color */
.tag-vehicle, .tag-marine { color: var(--blue) !important; }
.tag-commercial, .tag-process { color: var(--gold) !important; }
.tag-events { color: var(--red-light) !important; }
.filter[data-filter="vehicle"], .filter[data-filter="marine"] { --f: var(--blue); }
.filter[data-filter="commercial"], .filter[data-filter="all"] { --f: var(--gold); }
.filter[data-filter="events"] { --f: var(--red-light); }
.filter:hover { border-color: var(--f, var(--gold)); }
.filter[aria-pressed="true"] { background: var(--f, var(--gold)); border-color: var(--f, var(--gold)); color: var(--bg); }

/* Estimate form choices in their area color */
.choice-card strong { color: var(--accent, var(--text)); }
.choice-card input:checked + span { border-color: var(--accent, var(--gold)); box-shadow: inset 0 0 0 1px var(--accent, var(--gold)), 0 0 24px rgba(var(--accent-rgb, 216, 185, 110), .15); }

/* ---------- Home hero: light field (lightfield.js) ----------
   Glowing bars travel left to right behind the header, one now and then
   pulsing into the logo's wave; clicking changes their color.
   Without WebGL the CSS glow below stays, and the hint is hidden. */
.hero.lightfield {
  --light: var(--gold);
  padding-bottom: clamp(72px, 12vw, 140px); cursor: pointer;
  background: radial-gradient(70% 45% at 70% 10%, rgba(216, 185, 110, .16), transparent 70%),
              radial-gradient(60% 40% at 25% 92%, rgba(216, 185, 110, .12), transparent 70%), var(--bg);
}
.hero.lightfield .light-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero.lightfield > .wrap { position: relative; }
.hero.lightfield .wrap a, .hero.lightfield .wrap .btn { cursor: pointer; }
.hero.lightfield h1, .hero.lightfield .lede, .hero.lightfield .l9-word { text-shadow: 0 2px 24px rgba(0, 0, 0, .8); }
.hero.lightfield .lede { color: var(--text); }
.hero.lightfield .signal { stroke: var(--light); transition: stroke 1.2s ease; }
.hero.lightfield .solder { fill: var(--light); transition: fill 1.2s ease; }
.hero.lightfield .l9-top, .hero.lightfield .l9-bot { color: var(--light); transition: color 1.2s ease; }

/* ---------- Home: the three areas, one at a time (lightfield.js) ----------
   The header and this section share the area's background shade, so they
   read as one piece: black for gold, blue-black for blue, red-black for red. */
.hero.lightfield { background-color: var(--bg); transition: background-color 1.1s ease; }
.hero.lightfield[data-area="blue"] { background-color: var(--blue-bg); }
.hero.lightfield[data-area="red"] { background-color: var(--red-bg); }
.hero.lightfield.light-on { background-image: none; }
.hero.lightfield .light-canvas {
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
}
.hero.lightfield { padding-bottom: clamp(48px, 7vw, 88px); }

.areas { background-color: var(--bg); transition: background-color 1.1s ease; padding-top: clamp(8px, 2vw, 24px); scroll-margin-top: 64px; }
.areas[data-area="blue"] { background-color: var(--blue-bg); }
.areas[data-area="red"] { background-color: var(--red-bg); }
/* the section's own shade fades back to the page's black at the bottom */
.areas { padding-bottom: clamp(72px, 10vw, 120px); background-image: linear-gradient(to bottom, transparent calc(100% - 140px), var(--bg)); }
.area-tabs { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.area-tabs[hidden] { display: none; }
.area-tab {
  font: inherit; font-family: var(--font-head); letter-spacing: .04em; cursor: pointer;
  color: var(--muted); background: transparent; border: 1px solid rgba(var(--accent-rgb), .35);
  border-radius: 999px; padding: .55rem 1.15rem; min-height: 44px;
  transition: color .4s ease, background-color .4s ease, border-color .4s ease;
}
.area-tab:hover { color: var(--accent); border-color: rgba(var(--accent-rgb), .7); }
.area-tab { position: relative; z-index: 1; }
.area-tab[aria-selected="true"] { color: var(--accent); border-color: transparent; }
.area-tabs:not(.glow-on) .area-tab[aria-selected="true"] { border-color: var(--accent); background: rgba(var(--accent-rgb), .12); }
/* the glow behind the chosen bubble slides to the next one */
.tab-glow {
  position: absolute; left: 0; top: 0; width: 0; height: 0; border-radius: 999px; pointer-events: none; opacity: 0;
  border: 1px solid var(--gold); background: rgba(216, 185, 110, .12); box-shadow: 0 0 22px rgba(216, 185, 110, .28);
  transition: transform .55s cubic-bezier(.6, 0, .3, 1), width .55s cubic-bezier(.6, 0, .3, 1), height .55s ease,
              border-color .55s ease, background-color .55s ease, box-shadow .55s ease;
}
.area-tabs.glow-on .tab-glow { opacity: 1; }
.area-tabs.no-slide .tab-glow { transition: none; }
.areas[data-area="blue"] .tab-glow { border-color: var(--blue); background: rgba(59, 201, 245, .12); box-shadow: 0 0 22px rgba(59, 201, 245, .3); }
.areas[data-area="red"] .tab-glow { border-color: var(--red-light); background: rgba(245, 154, 143, .12); box-shadow: 0 0 22px rgba(245, 154, 143, .3); }
.area-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.area-line { display: block; width: min(420px, 80%); height: auto; overflow: visible; margin: 1.75rem auto 2.75rem; }
.area-line .signal { stroke: var(--gold); transition: stroke .6s ease; }
.area-line .solder { fill: var(--gold); transition: fill .6s ease; }
.areas[data-area="blue"] .area-line .signal { stroke: var(--blue); }
.areas[data-area="blue"] .area-line .solder { fill: var(--blue); }
.areas[data-area="red"] .area-line .signal { stroke: url(#lucidRedMetal); }
.areas[data-area="red"] .area-line .solder { fill: var(--red-solder); }
.area-line .sweep {
  fill: none; stroke: #FFF3D6; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: .07 1.2; stroke-dashoffset: .07; opacity: 0; filter: drop-shadow(0 0 4px var(--gold));
}
.areas[data-area="blue"] .area-line .sweep { stroke: #DDF7FF; filter: drop-shadow(0 0 4px var(--blue)); }
.areas[data-area="red"] .area-line .sweep { stroke: #FFE3DE; filter: drop-shadow(0 0 4px var(--red-light)); }

.area { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; background: transparent; }
.area + .area { margin-top: 4.5rem; }            /* without JavaScript all three stack */
.areas.js .area-stage { position: relative; display: grid; transition: height .9s cubic-bezier(.6, 0, .3, 1); }
.areas.js .area { grid-area: 1 / 1; align-self: start; }   /* each keeps its own height, so nothing shifts while two overlap */
.areas.js .area + .area { margin-top: 0; }
.area-seam { display: none; }
.areas.js .area-seam {
  display: block; position: absolute; top: -1rem; bottom: -1rem; left: 0; width: 2px; z-index: 2; pointer-events: none; opacity: 0;
  background: linear-gradient(to bottom, transparent, var(--seam, var(--gold)) 20%, var(--seam, var(--gold)) 80%, transparent);
  box-shadow: 0 0 18px 2px var(--seam, var(--gold));
}
.areas[data-area="blue"] { --seam: var(--blue); }
.areas[data-area="red"] { --seam: var(--red-light); }
.area[hidden] { display: none; }
.area h3 { font-size: clamp(1.6rem, 3.2vw, 2.35rem); line-height: 1.15; color: var(--text); margin: 0 0 .9rem; text-wrap: balance; }
.area-text > p { color: var(--muted); font-size: 1.08rem; max-width: 34em; }
.area-list { list-style: none; padding: 0; margin: 1.4rem 0 1.8rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: .55rem 1.5rem; }
.area-list li { position: relative; padding-left: 1.3rem; color: var(--text); }
.area-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(var(--accent-rgb), .7); }
.area-btns { display: flex; flex-wrap: wrap; gap: .75rem; }
.area .btn-ghost { color: var(--accent); border-color: rgba(var(--accent-rgb), .6); }

.area-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.area-photos figure { margin: 0; }
.area-photos figure:nth-child(2) { margin-top: 3rem; }
.area-photos.single { grid-template-columns: 1fr; }     /* one photo: it takes the whole column */
.area-photos img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); border: 1px solid rgba(var(--accent-rgb), .25); box-shadow: 0 18px 50px rgba(0, 0, 0, .45), 0 0 40px rgba(var(--accent-rgb), .08); }
.area-photos figcaption { color: var(--muted); font-size: .88rem; margin-top: .55rem; }


@media (max-width: 560px) {
  .area-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
  .area-tab { font-size: .8rem; line-height: 1.25; padding: .5rem .35rem; border-radius: 14px; }
  .area-line { margin: 1.25rem auto 2rem; }
}
@media (max-width: 760px) {
  .area { grid-template-columns: 1fr; }
  .area-photos figure:nth-child(2) { margin-top: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .areas.js .area-stage, .tab-glow { transition: none; }
}
