/* ==========================================================================
   Edu Rodriguez Solar Designs — site stylesheet
   Design language: engineering drawing sheet.
   Hairline rules, mono spec labels, blueprint grids, restrained amber accent.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Ink — deep navy, used for dark sections and body copy */
  --ink-950: #070c14;
  --ink-900: #0b1420;
  --ink-800: #13223a;
  --ink-700: #1d3149;
  --ink-600: #35485f;
  --ink-500: #4a5c74;
  --ink-400: #6b7c93;
  --ink-300: #9aa7b8;

  /* Paper */
  --paper:   #ffffff;
  --paper-2: #f7f8f6;
  --paper-3: #ecefe9;

  /* Lines */
  --line:      #dde1e6;
  --line-soft: #e9ecef;
  --line-dark: rgba(255, 255, 255, 0.14);

  /* Accent — solar amber */
  --amber:     #f0a828;
  --amber-600: #cf8a0d;
  --amber-050: #fdf3de;

  /* Type */
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Rhythm */
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(64px, 9vw, 128px);
  --container: 1240px;
  --radius: 3px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-800);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: "kern" 1, "liga" 1, "cv11" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
img { background: var(--paper-3); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.022em;
  color: var(--ink-900);
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 6.2vw, 4.6rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.9vw, 3rem); }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.4rem); letter-spacing: -0.012em; }
h4 { font-size: 1.0rem; letter-spacing: -0.005em; }

p { margin: 0 0 1.15em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-underline-offset: 3px; }

strong { font-weight: 600; color: var(--ink-900); }

ul, ol { margin: 0 0 1.15em; padding-left: 1.25em; }
li { margin-bottom: 0.4em; }

hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

::selection { background: var(--amber); color: var(--ink-950); }

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

.skip-link {
  position: absolute; top: -100px; left: var(--gutter); z-index: 200;
  background: var(--ink-900); color: #fff;
  padding: 12px 20px; font-family: var(--font-mono); font-size: 0.8rem;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 860px; }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 84px); }
.section--paper2 { background: var(--paper-2); }
.section--line { border-top: 1px solid var(--line); }

.grid { display: grid; gap: clamp(24px, 3vw, 40px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* --------------------------------------------------------------------------
   4. Section headers — drawing-sheet eyebrow
   -------------------------------------------------------------------------- */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.735rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--amber); flex: none;
}
.eyebrow__idx { color: var(--amber-600); }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head p {
  font-size: clamp(1.02rem, 1.35vw, 1.16rem);
  color: var(--ink-500);
  max-width: 62ch;
}

.lede {
  font-size: clamp(1.1rem, 1.7vw, 1.32rem);
  line-height: 1.55;
  color: var(--ink-600);
  letter-spacing: -0.008em;
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px;
  font-family: var(--font-body);
  font-size: 0.925rem; font-weight: 600; letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .12s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--amber); color: var(--ink-950); border-color: var(--amber); }
.btn--primary:hover { background: var(--amber-600); border-color: var(--amber-600); color: #fff; }

.btn--dark { background: var(--ink-900); color: #fff; border-color: var(--ink-900); }
.btn--dark:hover { background: var(--ink-700); border-color: var(--ink-700); }

.btn--ghost { background: transparent; color: var(--ink-900); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink-900); background: var(--paper-2); }

.btn--onDark { background: transparent; color: #fff; border-color: rgba(255,255,255,.32); }
.btn--onDark:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.6); }

.btn--sm { padding: 10px 18px; font-size: 0.85rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Text link with animated arrow */
.arrow-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 0.925rem;
  color: var(--ink-900); text-decoration: none;
  border-bottom: 1px solid var(--line); padding-bottom: 3px;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.arrow-link:hover { border-color: var(--amber); color: var(--amber-600); }
.arrow-link svg { transition: transform .2s var(--ease); flex: none; }
.arrow-link:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   6. Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s var(--ease);
}
.site-header.is-stuck { box-shadow: 0 1px 24px rgba(11, 20, 32, 0.07); }

.nav {
  display: flex; align-items: center; gap: 28px;
  min-height: 74px;
}

/* Logo -------------------------------------------------------------------- */
.logo {
  display: inline-flex; align-items: center; gap: 11px;
  text-decoration: none; color: var(--ink-900); flex: none;
  margin-right: auto;
}
.logo__mark { width: 34px; height: 34px; flex: none; }
.logo__mark .panel { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.logo__mark .grid  { fill: none; stroke: currentColor; stroke-width: 1.05; opacity: .62; }
.logo__mark .sun   { fill: none; stroke: var(--amber); stroke-width: 1.7; stroke-linecap: round; }

.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 0.98rem; letter-spacing: 0.02em;
}
.logo__sub {
  font-family: var(--font-mono); font-size: 0.575rem; font-weight: 400;
  letter-spacing: 0.2em; color: var(--ink-400); margin-top: 4px;
}

/* Links ------------------------------------------------------------------- */
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative;
  padding: 9px 13px;
  font-size: 0.9rem; font-weight: 500;
  color: var(--ink-600); text-decoration: none;
  border-radius: var(--radius);
  transition: color .18s var(--ease), background .18s var(--ease);
}
.nav__link:hover { color: var(--ink-900); background: var(--paper-2); }
.nav__link[aria-current="page"] { color: var(--ink-900); font-weight: 600; }
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px;
  height: 2px; background: var(--amber);
}

.nav__end { display: flex; align-items: center; gap: 14px; flex: none; }

/* Language switch --------------------------------------------------------- */
.lang {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.08em;
}
.lang a {
  padding: 6px 9px; text-decoration: none; color: var(--ink-400);
  transition: background .18s var(--ease), color .18s var(--ease);
}
.lang a:hover { background: var(--paper-2); color: var(--ink-900); }
.lang a[aria-current="true"] { background: var(--ink-900); color: #fff; }

/* Mobile toggle ----------------------------------------------------------- */
.nav__toggle {
  display: none; width: 44px; height: 44px; flex: none;
  background: none; border: 1px solid var(--line); border-radius: var(--radius);
  cursor: pointer; padding: 0; place-items: center; color: var(--ink-900);
}
.nav__toggle span {
  display: block; width: 18px; height: 1.5px; background: currentColor;
  margin: 3.5px auto; transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--ink-950);
  color: #fff;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .72; background: none; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7,12,20,.62) 0%, rgba(7,12,20,.3) 46%, rgba(7,12,20,.88) 100%),
    linear-gradient(90deg, rgba(7,12,20,.9) 0%, rgba(7,12,20,.62) 46%, rgba(7,12,20,.12) 100%);
}

.hero__inner {
  position: relative; z-index: 1;
  padding-block: clamp(84px, 13vw, 168px) clamp(64px, 8vw, 104px);
}

.hero h1 { color: #fff; max-width: 24ch; margin-bottom: 26px; }
.hero h1 em {
  font-style: normal; color: var(--amber);
}

.hero__lede {
  font-size: clamp(1.05rem, 1.55vw, 1.24rem);
  line-height: 1.55; color: rgba(255,255,255,.8);
  max-width: 54ch; margin-bottom: 34px;
}

.hero .eyebrow { color: rgba(255,255,255,.72); }

/* Credential strip -------------------------------------------------------- */
.cred-strip {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 10px 0;
  margin-bottom: 32px;
  font-family: var(--font-mono); font-size: 0.735rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,.72);
}
.cred-strip li { list-style: none; margin: 0; padding: 0 16px; border-left: 1px solid rgba(255,255,255,.22); }
.cred-strip li:first-child { padding-left: 0; border-left: 0; }

/* Stat bar ---------------------------------------------------------------- */
.statbar {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-dark);
}
.statbar__item {
  padding: 26px clamp(16px, 2.4vw, 32px) 28px;
  border-left: 1px solid var(--line-dark);
}
.statbar__item:first-child { border-left: 0; padding-left: 0; }
.statbar__n {
  display: block;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.65rem, 3vw, 2.35rem); line-height: 1;
  color: #fff; letter-spacing: -0.03em;
}
.statbar__n span { color: var(--amber); }
.statbar__l {
  display: block; margin-top: 9px;
  font-family: var(--font-mono); font-size: 0.685rem;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: rgba(255,255,255,.6); line-height: 1.5;
}

/* --------------------------------------------------------------------------
   8. Page header (interior pages)
   -------------------------------------------------------------------------- */
.page-head {
  background: var(--ink-950); color: #fff;
  padding-block: clamp(64px, 9vw, 118px) clamp(48px, 6vw, 80px);
  position: relative; overflow: hidden;
}
.page-head::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 90% 70% at 78% 20%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 78% 20%, #000 0%, transparent 72%);
}
.page-head > * { position: relative; z-index: 1; }
.page-head h1 { color: #fff; max-width: 20ch; font-size: clamp(2.1rem, 4.8vw, 3.6rem); }
.page-head .eyebrow { color: rgba(255,255,255,.7); }
.page-head__lede {
  font-size: clamp(1.02rem, 1.5vw, 1.2rem); line-height: 1.58;
  color: rgba(255,255,255,.76); max-width: 62ch; margin-top: 6px;
}

/* Breadcrumb -------------------------------------------------------------- */
.crumb {
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,.5); margin-bottom: 22px;
}
.crumb a { color: rgba(255,255,255,.72); text-decoration: none; }
.crumb a:hover { color: var(--amber); }
.crumb span { margin: 0 8px; opacity: .5; }

/* --------------------------------------------------------------------------
   9. Cards
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 2.6vw, 34px);
  transition: border-color .22s var(--ease), transform .22s var(--ease),
              box-shadow .22s var(--ease);
}
.card--hover:hover {
  border-color: var(--ink-300);
  transform: translateY(-3px);
  box-shadow: 0 14px 40px -22px rgba(11, 20, 32, 0.4);
}
.card__idx {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.12em; color: var(--amber-600);
  margin-bottom: 16px; display: block;
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.945rem; color: var(--ink-500); margin-bottom: 0; }

/* Feature list card (Why) ------------------------------------------------- */
.feature {
  display: grid; grid-template-columns: 42px 1fr; gap: 18px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.feature__ico {
  width: 42px; height: 42px; border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid; place-items: center; color: var(--amber-600);
  background: var(--paper);
}
.feature__ico svg { width: 19px; height: 19px; }
.feature h3 { font-size: 1.06rem; margin-bottom: 7px; }
.feature p { font-size: 0.94rem; color: var(--ink-500); margin: 0; }

/* --------------------------------------------------------------------------
   10. Project cards
   -------------------------------------------------------------------------- */
.proj {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--paper);
  transition: border-color .22s var(--ease), transform .22s var(--ease),
              box-shadow .22s var(--ease);
}
.proj:hover {
  border-color: var(--ink-300); transform: translateY(-3px);
  box-shadow: 0 18px 46px -26px rgba(11, 20, 32, 0.45);
}
.proj__media {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background: var(--paper-3); border-bottom: 1px solid var(--line);
}
.proj__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease);
}
.proj:hover .proj__media img { transform: scale(1.035); }
.proj__media--contain { background: var(--paper-2); }
.proj__media--contain img { object-fit: contain; padding: 14px; }

.proj__tag {
  position: absolute; top: 12px; left: 12px;
  background: rgba(7,12,20,.86); color: #fff;
  font-family: var(--font-mono); font-size: 0.655rem;
  letter-spacing: 0.11em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 2px;
  backdrop-filter: blur(6px);
}
.proj__body { padding: 22px 24px 24px; }
.proj__body h3 { font-size: 1.12rem; margin-bottom: 8px; }
.proj__body p { font-size: 0.91rem; color: var(--ink-500); margin-bottom: 16px; }

.proj__meta {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  font-family: var(--font-mono); font-size: 0.695rem;
  letter-spacing: 0.06em; color: var(--ink-400);
  padding-top: 14px; border-top: 1px solid var(--line-soft);
}
.proj__meta b { color: var(--ink-700); font-weight: 500; }

/* --------------------------------------------------------------------------
   11. Spec table — datasheet look
   -------------------------------------------------------------------------- */
.spec { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.spec caption {
  text-align: left;
  font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-400); padding-bottom: 14px;
}
.spec th, .spec td {
  padding: 12px 0; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}
.spec th {
  font-family: var(--font-mono); font-size: 0.735rem; font-weight: 400;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-400); width: 42%; padding-right: 18px;
}
.spec td { font-weight: 500; color: var(--ink-900); }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }

/* Dark variant */
.on-dark .spec th { color: rgba(255,255,255,.55); }
.on-dark .spec td { color: #fff; }
.on-dark .spec th, .on-dark .spec td { border-bottom-color: var(--line-dark); }
.on-dark .spec caption { color: rgba(255,255,255,.5); }

/* --------------------------------------------------------------------------
   12. Dark section with blueprint grid
   -------------------------------------------------------------------------- */
.dark {
  background: var(--ink-950); color: rgba(255,255,255,.78);
  position: relative; overflow: hidden;
}
.dark h2, .dark h3, .dark h4 { color: #fff; }
.dark .eyebrow { color: rgba(255,255,255,.62); }
.dark .section-head p { color: rgba(255,255,255,.7); }
.dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, #000 0%, transparent 70%);
}
.dark > * { position: relative; z-index: 1; }

.dark .card {
  background: rgba(255,255,255,.035);
  border-color: var(--line-dark);
}
.dark .card p { color: rgba(255,255,255,.68); }
.dark .card--hover:hover { border-color: rgba(255,255,255,.3); box-shadow: none; }
.dark .feature { border-top-color: var(--line-dark); }
.dark .feature p { color: rgba(255,255,255,.68); }
.dark .feature__ico { background: rgba(255,255,255,.05); border-color: var(--line-dark); color: var(--amber); }

/* --------------------------------------------------------------------------
   13. Figures
   -------------------------------------------------------------------------- */
.figure { margin: 0; }
.figure img {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius);
}
.figure--plate img { background: var(--paper); padding: 10px; }
.figure figcaption {
  margin-top: 12px;
  font-family: var(--font-mono); font-size: 0.715rem;
  letter-spacing: 0.05em; color: var(--ink-400); line-height: 1.6;
}
.figure figcaption b { color: var(--ink-600); font-weight: 500; }
.dark .figure img { border-color: var(--line-dark); }
.dark .figure figcaption { color: rgba(255,255,255,.5); }
.dark .figure figcaption b { color: rgba(255,255,255,.78); }

/* Split media/text -------------------------------------------------------- */
.split {
  display: grid; gap: clamp(32px, 5vw, 72px);
  grid-template-columns: 1fr 1fr; align-items: center;
}
.split--media-first .split__media { order: -1; }
.split__media img { border-radius: var(--radius); width: 100%; }

/* --------------------------------------------------------------------------
   14. Process steps
   -------------------------------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  display: grid; grid-template-columns: 84px 1fr; gap: clamp(20px, 3vw, 40px);
  padding: clamp(28px, 3.4vw, 44px) 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__n {
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.1em; color: var(--amber-600);
  padding-top: 4px;
}
.step h3 { margin-bottom: 9px; }
.step p { color: var(--ink-500); font-size: 0.97rem; max-width: 66ch; margin-bottom: 0; }
.step__note {
  display: inline-block; margin-top: 14px;
  font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--ink-400);
  border: 1px solid var(--line); border-radius: 2px; padding: 5px 10px;
}
.dark .step, .dark .step:last-child { border-color: var(--line-dark); }
.dark .step p { color: rgba(255,255,255,.7); }
.dark .step__note { border-color: var(--line-dark); color: rgba(255,255,255,.6); }

/* --------------------------------------------------------------------------
   15. Service list
   -------------------------------------------------------------------------- */
.svc-group { border-top: 1px solid var(--line); padding-top: 34px; margin-top: 34px; }
.svc-group:first-of-type { margin-top: 0; }
.svc-group__head {
  display: flex; align-items: baseline; gap: 14px; margin-bottom: 26px;
}
.svc-group__n {
  font-family: var(--font-mono); font-size: 0.74rem; color: var(--amber-600);
  letter-spacing: 0.1em; flex: none;
}
.svc-group h2 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); margin: 0; }

.svc-item { padding: 20px 0; border-top: 1px solid var(--line-soft); }
.svc-item:first-child { border-top: 0; padding-top: 0; }
.svc-item h3 { font-size: 1.02rem; margin-bottom: 7px; }
.svc-item p { font-size: 0.93rem; color: var(--ink-500); margin: 0; max-width: 74ch; }
.svc-item__codes {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px;
}
.chip {
  font-family: var(--font-mono); font-size: 0.67rem;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--ink-500); background: var(--paper-2);
  border: 1px solid var(--line); border-radius: 2px;
  padding: 4px 8px;
}
.dark .chip { background: rgba(255,255,255,.05); border-color: var(--line-dark); color: rgba(255,255,255,.7); }

/* --------------------------------------------------------------------------
   16. Equipment / logo row
   -------------------------------------------------------------------------- */
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 8px 13px; border: 1px solid var(--line);
  border-radius: var(--radius); color: var(--ink-600);
  background: var(--paper);
}
.dark .tag { border-color: var(--line-dark); color: rgba(255,255,255,.76); background: rgba(255,255,255,.04); }

/* --------------------------------------------------------------------------
   17. Quote / callout
   -------------------------------------------------------------------------- */
.callout {
  border-left: 2px solid var(--amber);
  padding: 4px 0 4px 24px;
  font-size: clamp(1.08rem, 1.7vw, 1.3rem);
  line-height: 1.55; letter-spacing: -0.008em;
  color: var(--ink-700); font-family: var(--font-display); font-weight: 500;
}
.dark .callout { color: rgba(255,255,255,.9); }

.notice {
  border: 1px solid var(--line); border-left: 2px solid var(--amber);
  background: var(--paper-2);
  padding: 18px 22px; border-radius: var(--radius);
  font-size: 0.92rem; color: var(--ink-600);
}

/* --------------------------------------------------------------------------
   18. Forms
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label {
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.11em; text-transform: uppercase; color: var(--ink-500);
}
.field label .req { color: var(--amber-600); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px;
  font-family: var(--font-body); font-size: 0.96rem; color: var(--ink-900);
  background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field textarea { min-height: 148px; resize: vertical; line-height: 1.6; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--ink-700);
  box-shadow: 0 0 0 3px rgba(240, 168, 40, 0.18);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-300); }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* Honeypot — hidden from humans, visible to naive bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__note {
  font-size: 0.82rem; color: var(--ink-400); line-height: 1.6;
}

/* Contact detail list ----------------------------------------------------- */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { border-top: 1px solid var(--line); padding: 18px 0; margin: 0; }
.contact-list li:first-child { border-top: 0; padding-top: 0; }
.contact-list dt, .contact-list__k {
  font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-400);
  margin-bottom: 6px;
}
.contact-list a, .contact-list__v {
  font-family: var(--font-display); font-size: 1.06rem; font-weight: 500;
  color: var(--ink-900); text-decoration: none; letter-spacing: -0.012em;
}
.contact-list a:hover { color: var(--amber-600); }
.dark .contact-list li { border-top-color: var(--line-dark); }
.dark .contact-list dt, .dark .contact-list__k { color: rgba(255,255,255,.5); }
.dark .contact-list a, .dark .contact-list__v { color: #fff; }
.dark .contact-list a:hover { color: var(--amber); }

/* --------------------------------------------------------------------------
   19. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  background: var(--amber);
  color: var(--ink-950);
  padding-block: clamp(52px, 6.5vw, 88px);
}
.cta-band h2 { color: var(--ink-950); max-width: 18ch; }
.cta-band p { color: rgba(7,12,20,.76); max-width: 52ch; font-size: 1.04rem; }
.cta-band .btn--dark:hover { background: var(--ink-950); border-color: var(--ink-950); }
.cta-band__inner {
  display: grid; grid-template-columns: 1.35fr auto;
  gap: clamp(28px, 4vw, 56px); align-items: end;
}

/* --------------------------------------------------------------------------
   20. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink-950); color: rgba(255,255,255,.62);
  padding-block: clamp(52px, 6vw, 76px) 32px;
  font-size: 0.9rem;
}
.site-footer .logo { color: #fff; margin-right: 0; }
.footer__top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: 44px;
}
.footer__col h4 {
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,.45); margin-bottom: 18px;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col li { margin-bottom: 11px; }
.footer__col a { color: rgba(255,255,255,.72); text-decoration: none; transition: color .18s var(--ease); }
.footer__col a:hover { color: var(--amber); }
.footer__blurb { color: rgba(255,255,255,.6); max-width: 34ch; margin-top: 18px; font-size: 0.89rem; }

.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 14px 28px;
  justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line-dark); padding-top: 26px;
  font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.06em; color: rgba(255,255,255,.42);
}
.footer__bottom a { color: rgba(255,255,255,.6); text-decoration: none; }
.footer__bottom a:hover { color: var(--amber); }

/* --------------------------------------------------------------------------
   21. Utilities
   -------------------------------------------------------------------------- */
.mono {
  font-family: var(--font-mono); font-size: 0.75rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-400);
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 12px; }
.mt-2 { margin-top: 24px; }
.mt-3 { margin-top: 36px; }
.mt-4 { margin-top: 52px; }
.mb-2 { margin-bottom: 24px; }
.text-center { text-align: center; }
.sticky-aside { position: sticky; top: 108px; }

/* --------------------------------------------------------------------------
   22. Scroll reveal
   -------------------------------------------------------------------------- */
/* The hidden state is scoped to .js, which an inline <head> script sets and
   removes again if site.js never registers. Content is therefore never left
   invisible because a script failed to load or was blocked. */
.js [data-reveal] {
  opacity: 0; transform: translateY(16px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   23. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav__links {
    position: fixed; inset: 74px 0 auto;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 26px;
    box-shadow: 0 24px 40px -28px rgba(11,20,32,.5);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .22s var(--ease), transform .22s var(--ease);
    max-height: calc(100dvh - 74px); overflow-y: auto;
  }
  .nav__links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__link {
    padding: 15px 4px; font-size: 1.05rem;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav__link[aria-current="page"]::after { left: 4px; right: auto; width: 20px; bottom: 8px; }
  .nav__toggle { display: grid; order: 3; }
  .nav__end .btn { display: none; }
  .nav { gap: 12px; }

  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split--media-first .split__media { order: 0; }
  .statbar { grid-template-columns: repeat(2, 1fr); }
  .statbar__item { padding-inline: 0 20px; }
  .statbar__item:nth-child(2n+1) { border-left: 0; padding-left: 0; }
  .statbar__item:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .cta-band__inner { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .field--row { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 10px; }
  .footer__top { grid-template-columns: 1fr; gap: 34px; }
  .cred-strip { flex-direction: column; align-items: flex-start; gap: 7px; }
  .cred-strip li { padding: 0; border-left: 0; }
  .logo__sub { display: none; }
  .hero__media img { opacity: .3; }
}

/* --------------------------------------------------------------------------
   24. Motion & print preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .site-header, .cta-band, .nav__toggle, .site-footer { display: none; }
  body { color: #000; font-size: 11pt; }
  .hero, .page-head, .dark { background: #fff !important; color: #000 !important; }
  .hero__media { display: none; }
  .hero h1, .page-head h1, .dark h2, .dark h3 { color: #000 !important; }
}
