/* 2070 Express — site stylesheet
   Layers: reset → tokens → base → layout → components → motion */
@layer reset, tokens, base, layout, components, motion;

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo Expanded";
  src: url("../fonts/archivo-expanded-800-italic.woff2") format("woff2");
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body, h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
  ul, ol { padding: 0; list-style: none; }
  img, svg { display: block; max-width: 100%; }
  img { height: auto; }
  button, input, select, textarea { font: inherit; color: inherit; }
  button { cursor: pointer; }
  a { color: inherit; }
  [hidden] { display: none !important; }
}

@layer tokens {
  :root {
    --navy: #0b1828;
    --navy-2: #12263d;
    --navy-3: #1c3552;
    --ink: #101e2d;
    --steel: #4a5d6e;
    --mist: #9fb3c6;
    --line: #d9e2ea;
    --paper: #f3f6f8;
    --white: #fff;
    --blue: #1264df;
    --blue-ink: #0b4fb8;
    --cyan: #66d8ff;
    --red: #c90c29;
    --red-dark: #a30a21;
    --ok: #0f7a4a;

    --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --display: "Archivo Expanded", "Archivo", system-ui, sans-serif;

    --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
    --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
    --step-1: clamp(1.15rem, 1.08rem + 0.3vw, 1.3rem);
    --step-2: clamp(1.4rem, 1.25rem + 0.7vw, 1.8rem);
    --step-3: clamp(1.85rem, 1.45rem + 1.9vw, 3rem);
    --step-4: clamp(2.45rem, 1.2rem + 5.6vw, 5rem);

    --gutter: clamp(1.125rem, 4vw, 3rem);
    --max: 76rem;
    --section: clamp(4rem, 9vw, 7.5rem);
    --radius: 6px;
    --header-h: 84px;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  }
}

@layer base {
  html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
  }
  body {
    font: 400 var(--step-0)/1.6 var(--font);
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
  }
  h1, h2 {
    font-family: var(--display);
    font-style: italic;
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.015em;
    text-wrap: balance;
  }
  h1 { font-size: var(--step-4); }
  h2 { font-size: var(--step-3); }
  h3 { font-size: var(--step-1); font-weight: 700; line-height: 1.25; }
  p { text-wrap: pretty; }
  a, button, summary, input, select, textarea, [role="button"] {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  :focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
    border-radius: 3px;
  }
  .on-dark :focus-visible, .on-dark:focus-visible { outline-color: var(--cyan); }
  ::selection { background: var(--blue); color: var(--white); }
  .vh {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
  }
  .skip {
    position: absolute; left: 12px; top: -80px; z-index: 100;
    background: var(--white); color: var(--ink); padding: 12px 16px;
    border-radius: var(--radius); font-weight: 700;
  }
  .skip:focus { top: 12px; }
  .icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor;
    stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .icon.solid { fill: currentColor; stroke: none; }
}

@layer layout {
  .wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
  .section { padding-block: var(--section); }
  .section.tint { background: var(--paper); }
  .section.dark { background: var(--navy); color: var(--white); }
  .sec-head {
    display: grid; gap: 1rem 4rem; align-items: end;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    margin-bottom: clamp(2rem, 5vw, 3.5rem);
    padding-bottom: clamp(1.25rem, 3vw, 2rem);
    position: relative;
  }
  .sec-head::after {
    content: ""; position: absolute; inset: auto 0 0 0; height: 2px;
    background: linear-gradient(90deg, var(--red) 0 4.5rem, var(--line) 4.5rem);
    transform-origin: left;
  }
  .dark .sec-head::after { background: linear-gradient(90deg, var(--red) 0 4.5rem, var(--navy-3) 4.5rem); }
  .sec-head p { color: var(--steel); max-width: 34rem; }
  .dark .sec-head p { color: var(--mist); }
  @media (max-width: 760px) {
    .sec-head { grid-template-columns: 1fr; }
  }
}

@layer components {
  /* ---------- buttons ---------- */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
    min-height: 48px; padding: 0 1.35rem;
    font-weight: 700; font-size: 0.975rem; line-height: 1.2; text-decoration: none;
    color: var(--white); background: var(--red);
    border: 2px solid var(--red); border-radius: var(--radius);
    transition: background-color 0.18s, border-color 0.18s, color 0.18s;
  }
  .btn:hover { background: var(--red-dark); border-color: var(--red-dark); }
  .btn:active { background: #7f0719; border-color: #7f0719; }
  .btn.ghost { background: transparent; color: var(--ink); border-color: #b8c6d3; }
  .btn.ghost:hover { border-color: var(--ink); background: var(--paper); }
  .btn.ghost:active { background: var(--line); }
  .on-dark .btn.ghost, .btn.ghost.on-dark { color: var(--white); border-color: #5b7590; }
  .on-dark .btn.ghost:hover, .btn.ghost.on-dark:hover { background: var(--navy-2); border-color: var(--cyan); }
  .on-dark .btn.ghost:active, .btn.ghost.on-dark:active { background: var(--navy-3); }
  .btn.navy { background: var(--navy); border-color: var(--navy); }
  .btn.navy:hover { background: var(--navy-2); border-color: var(--navy-2); }
  .btn.navy:active { background: var(--navy-3); }
  .btn.wa { background: #0b7d43; border-color: #0b7d43; }
  .btn.wa:hover { background: #096636; border-color: #096636; }
  .btn.wa:active { background: #07522b; }
  .btn[aria-busy="true"] { opacity: 0.75; pointer-events: none; }
  .btn .icon { width: 1.15em; height: 1.15em; }

  .link-btn {
    display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px;
    padding: 0 0.25rem; margin-left: -0.25rem;
    background: none; border: 0; border-radius: 4px;
    color: var(--blue-ink); font-weight: 700; font-size: 0.95rem;
    text-decoration: underline; text-decoration-thickness: 2px;
    text-decoration-color: color-mix(in srgb, var(--blue) 35%, transparent);
    text-underline-offset: 5px;
    transition: text-decoration-color 0.18s, background-color 0.18s;
  }
  .link-btn:hover { text-decoration-color: var(--blue); }
  .link-btn:active { background: #e3ecf8; }

  /* ---------- header ---------- */
  .site-header {
    position: sticky; top: 0; z-index: 40;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }
  .site-header::after {
    content: ""; position: absolute; inset: 100% 0 auto; height: 14px; pointer-events: none;
    background: linear-gradient(#0b182814, transparent); opacity: 0;
  }
  .nav-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
  .brand { display: inline-flex; align-items: center; min-height: 44px; border-radius: 4px; }
  .brand:active { opacity: 0.7; }
  .skip:active { background: var(--paper); }
  .brand img { width: 124px; height: auto; view-transition-name: site-logo; transform-origin: left center; }
  .nav { display: flex; align-items: center; gap: clamp(0.25rem, 1.2vw, 1rem); }
  .nav a:not(.btn) {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.6rem;
    font-weight: 600; font-size: 0.95rem; text-decoration: none; border-radius: 4px;
    background: linear-gradient(var(--red), var(--red)) no-repeat 0.6rem calc(100% - 9px) / 0 2px;
    transition: background-size 0.25s var(--ease), color 0.18s;
  }
  .nav a:not(.btn):hover, .nav a[aria-current="true"] { background-size: calc(100% - 1.2rem) 2px; }
  .nav a:not(.btn):active { color: var(--blue-ink); background-color: var(--paper); }
  .nav .btn { margin-left: 0.5rem; }
  .header-actions { display: none; align-items: center; gap: 0.5rem; }
  .icon-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    min-width: 48px; min-height: 48px; padding: 0 0.75rem;
    background: var(--white); border: 2px solid var(--line); border-radius: var(--radius);
    font-weight: 700; font-size: 0.95rem; text-decoration: none; color: var(--ink);
    transition: background-color 0.18s, border-color 0.18s;
  }
  .icon-btn:hover { border-color: var(--ink); }
  .icon-btn:active { background: var(--paper); border-color: var(--ink); }
  .icon-btn.call { background: var(--navy); border-color: var(--navy); color: var(--white); }
  .icon-btn.call:active { background: var(--navy-3); }
  @media (max-width: 900px) {
    :root { --header-h: 74px; }
    .brand img { width: 106px; }
    .nav { display: none; }
    .header-actions { display: flex; }
    html:not(.js) .menu-btn { display: none; }
  }

  /* ---------- mobile drawer ---------- */
  .drawer {
    margin: 0 0 0 auto; padding: 0; border: 0;
    width: min(22rem, 88vw); height: 100dvh; max-height: none;
    background: var(--navy); color: var(--white);
    translate: 0 0; opacity: 1;
    transition: translate 0.32s var(--ease), opacity 0.2s, display 0.32s, overlay 0.32s;
    transition-behavior: allow-discrete;
  }
  .drawer::backdrop {
    background: #060e18b8;
    transition: background-color 0.32s, display 0.32s, overlay 0.32s;
    transition-behavior: allow-discrete;
  }
  .drawer[open] { @starting-style { translate: 100% 0; opacity: 0.6; } }
  .drawer[open]::backdrop { @starting-style { background: #060e1800; } }
  .drawer:not([open]), .drawer[data-closing] { translate: 100% 0; opacity: 0.6; }
  .drawer:not([open])::backdrop, .drawer[data-closing]::backdrop { background: #060e1800; }
  .drawer-inner { display: flex; flex-direction: column; min-height: 100%; padding: 1rem 1.25rem 1.5rem; }
  .drawer-top { display: flex; justify-content: space-between; align-items: center; min-height: 56px; }
  .drawer-top strong { font-family: var(--display); font-style: italic; font-size: 1.05rem; }
  .drawer .icon-btn { background: transparent; color: var(--white); border-color: #3a536e; }
  .drawer .icon-btn:active { background: var(--navy-3); }
  .drawer nav { margin-top: 0.75rem; border-top: 1px solid var(--navy-3); }
  .drawer nav a {
    display: flex; align-items: center; justify-content: space-between; min-height: 56px;
    font-size: 1.15rem; font-weight: 600; text-decoration: none;
    border-bottom: 1px solid var(--navy-3); padding-inline: 0.25rem;
  }
  .drawer nav a:active { background: var(--navy-2); color: var(--cyan); }
  .drawer-cta { margin-top: auto; display: grid; gap: 0.6rem; padding-top: 1.5rem; }

  /* ---------- hero ---------- */
  .hero { position: relative; background: var(--navy); color: var(--white); overflow: clip; isolation: isolate; }
  .hero::before, .hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  }
  /* brand accent: the diagonal stripes from the identity system */
  .hero::before {
    inset: 0 0 0 auto; width: min(19vw, 20rem);
    background:
      linear-gradient(140deg, transparent calc(50% - 1px), var(--blue) calc(50% - 1px) calc(50% + 7px), transparent calc(50% + 7px)) no-repeat right -14rem bottom -1rem / 46rem 46rem,
      linear-gradient(140deg, transparent 50%, var(--cyan) 50% calc(50% + 3px), transparent calc(50% + 3px)) no-repeat right -10rem bottom -4rem / 46rem 46rem,
      linear-gradient(140deg, transparent 50%, var(--red) 50% calc(50% + 12px), transparent calc(50% + 12px)) no-repeat right -2rem bottom -14rem / 46rem 46rem;
    opacity: 0.9;
  }
  @media (max-width: 900px) { .hero::before { display: none; } }
  .hero::after {
    background: radial-gradient(60rem 36rem at 78% 18%, #17365a 0%, transparent 62%);
    z-index: -2;
  }
  .hero-grid {
    display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: clamp(2rem, 6vw, 5.5rem); align-items: center;
    padding-block: clamp(3rem, 8vw, 6.5rem) clamp(3.5rem, 8vw, 6.5rem);
  }
  .hero-where {
    display: inline-flex; align-items: center; gap: 0.5rem;
    color: var(--mist); font-size: var(--step--1); font-weight: 600; margin-bottom: 1.25rem;
  }
  .hero-where .icon { color: var(--cyan); }
  .hero h1 span { display: block; }
  .hero-lede { margin-top: 1.5rem; max-width: 33rem; font-size: var(--step-1); line-height: 1.5; color: #d5e1ec; }
  .hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
  @media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
  }
  @media (max-width: 420px) {
    .hero-actions .btn { flex: 1 1 100%; }
  }

  /* the board: one supply, six circuits */
  .board { --row: 62px; --bus-x: 27px; position: relative; max-width: 30rem; }
  .board-src { display: flex; align-items: center; gap: 0.9rem; }
  .board-node {
    width: 56px; height: 56px; flex: none; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--red); color: var(--white);
    box-shadow: 0 0 0 6px #c90c2933;
  }
  .board-node .icon { width: 24px; height: 24px; }
  .board-src a {
    display: inline-flex; flex-direction: column; justify-content: center; min-height: 48px;
    text-decoration: none; border-radius: 4px;
  }
  .board-src small { color: var(--mist); font-size: var(--step--1); font-weight: 600; }
  .board-src b { font-size: var(--step-2); font-weight: 800; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; line-height: 1.1; }
  .board-src a:active { background: var(--navy-2); }
  .board-src a:active b { color: var(--cyan); }
  .board-list { position: relative; padding-top: 14px; }
  .board-list::before { /* the busbar */
    content: ""; position: absolute; left: var(--bus-x); top: 0; bottom: calc(var(--row) / 2);
    width: 2px; translate: -1px 0; transform-origin: top;
    background: linear-gradient(#fff0 0%, #fff 50%, #fff0 100%) no-repeat 0 -40% / 100% 22%, var(--cyan);
  }
  .board-list a {
    position: relative; display: flex; flex-direction: column; justify-content: center;
    min-height: var(--row); padding-left: 104px; padding-right: 0.5rem;
    text-decoration: none; border-radius: 4px;
  }
  .board-list a::before { /* branch conductor */
    content: ""; position: absolute; left: var(--bus-x); top: 50%; width: 60px; height: 2px;
    translate: 0 -1px; background: var(--cyan); transform-origin: left;
  }
  .brk { /* breaker */
    position: absolute; left: calc(var(--bus-x) + 24px); top: 50%; translate: 0 -50%;
    width: 20px; height: 32px; border: 2px solid var(--cyan); border-radius: 4px; background: var(--navy);
    transition: background-color 0.2s, border-color 0.2s;
  }
  .brk::after {
    content: ""; position: absolute; left: 3px; right: 3px; top: 4px; height: 10px;
    border-radius: 2px; background: var(--cyan);
    transition: translate 0.2s var(--ease), background-color 0.2s;
  }
  .board-list b { font-weight: 700; font-size: 1.075rem; line-height: 1.25; transition: color 0.2s; }
  .board-list span.sub { color: var(--mist); font-size: var(--step--1); line-height: 1.3; }
  .board-list a:hover b, .board-list a:focus-visible b { color: var(--cyan); }
  .board-list a:hover .brk::after, .board-list a:focus-visible .brk::after { translate: 0 10px; background: var(--white); }
  .board-list a:active { background: var(--navy-2); }
  .board-list a:active .brk { background: var(--navy-3); border-color: var(--white); }
  @media (max-width: 380px) {
    .board-list a { padding-left: 92px; }
    .board-list a::before { width: 50px; }
    .brk { left: calc(var(--bus-x) + 18px); }
  }

  /* ---------- services ---------- */
  .services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 5vw, 4.5rem); }
  .service {
    display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); gap: 0.25rem 1.1rem;
    padding-block: 1.75rem; border-top: 1px solid var(--line);
    scroll-margin-top: calc(var(--header-h) + 16px);
  }
  .service:nth-child(-n + 2) { border-top: 0; padding-top: 0; }
  .service-ico {
    grid-row: span 3; width: 3.25rem; height: 3.25rem; border-radius: var(--radius);
    display: grid; place-items: center; background: var(--paper); color: var(--blue);
    transition: background-color 0.25s, color 0.25s;
  }
  .service-ico .icon { width: 1.6rem; height: 1.6rem; }
  .service:hover .service-ico, .service:focus-within .service-ico { background: var(--navy); color: var(--cyan); }
  .service p { color: var(--steel); }
  .service ul { display: flex; flex-wrap: wrap; gap: 0.4rem 0.5rem; margin-top: 0.7rem; }
  .service li {
    font-size: var(--step--1); font-weight: 600; color: var(--ink);
    padding: 0.2rem 0.6rem; border: 1px solid var(--line); border-radius: 99px; background: var(--white);
  }
  .service .link-btn { margin-top: 0.5rem; justify-self: start; }
  @media (max-width: 760px) {
    .services { grid-template-columns: 1fr; }
    .service:nth-child(2) { border-top: 1px solid var(--line); padding-top: 1.75rem; }
  }

  /* ---------- prices ---------- */
  .price-group + .price-group { margin-top: clamp(2.25rem, 5vw, 3.5rem); }
  .price-group > h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.75rem; }
  .price-group > h3 small { font-weight: 600; font-size: var(--step--1); color: var(--steel); }
  .price-list { border-top: 2px solid var(--ink); background: var(--white); }
  .price-row {
    display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 0.25rem 2rem;
    padding: 1.1rem clamp(1rem, 2.5vw, 1.75rem); border-bottom: 1px solid var(--line);
    position: relative;
  }
  .price-row::before {
    content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--blue);
    scale: 1 0; transform-origin: top; transition: scale 0.25s var(--ease);
  }
  .price-row:hover::before, .price-row:focus-within::before { scale: 1 1; }
  .price-name { font-weight: 700; font-size: var(--step-1); line-height: 1.25; }
  .price-inc { grid-column: 1; color: var(--steel); font-size: var(--step--1); }
  .price-amount {
    grid-row: 1 / span 2; grid-column: 2; font-weight: 800; font-size: var(--step-2);
    font-variant-numeric: tabular-nums lining-nums; letter-spacing: -0.02em; white-space: nowrap;
  }
  .price-amount[data-live] { color: var(--blue-ink); }
  .price-row .btn { grid-row: 1 / span 2; grid-column: 3; }
  @media (max-width: 640px) {
    .price-row { grid-template-columns: minmax(0, 1fr) auto; }
    .price-amount { grid-row: 1; }
    .price-inc { grid-row: 2; grid-column: 1 / -1; }
    .price-row .btn { grid-row: 3; grid-column: 1 / -1; margin-top: 0.75rem; }
  }
  .price-note { margin-top: 1.25rem; color: var(--steel); font-size: var(--step--1); max-width: 48rem; }
  .aftercare {
    margin-top: clamp(2.25rem, 5vw, 3.5rem); padding: clamp(1.25rem, 3vw, 2rem);
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem;
    background: var(--navy); color: var(--white); border-radius: var(--radius);
  }
  .aftercare p { color: var(--mist); margin-top: 0.35rem; max-width: 36rem; }

  /* ---------- steps ---------- */
  .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; position: relative; counter-reset: step; }
  .steps::before, .steps::after { content: ""; position: absolute; left: 0; right: 0; top: 1.5rem; height: 2px; }
  .steps::before { background: var(--line); }
  .steps::after { background: var(--red); transform-origin: left; }
  .step { position: relative; z-index: 1; counter-increment: step; }
  .step::before {
    content: counter(step); display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: 1.25rem;
    border-radius: 50%; background: var(--navy); color: var(--white);
    font: italic 800 1.1rem/1 var(--display); box-shadow: 0 0 0 8px var(--white);
  }
  .step p { color: var(--steel); margin-top: 0.4rem; }
  @media (max-width: 760px) {
    .steps { grid-template-columns: 1fr; gap: 2rem; }
    .steps::before, .steps::after { left: 1.5rem; right: auto; top: 0; bottom: 0; width: 2px; height: auto; translate: -1px 0; }
    .steps::after { transform-origin: top; }
    .step { padding-left: 4.5rem; min-height: 3rem; }
    .step::before { position: absolute; left: 0; top: 0; margin: 0; }
  }

  /* ---------- about ---------- */
  .about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
  .about-photo { position: relative; border-radius: var(--radius); overflow: clip; background: var(--navy); aspect-ratio: 5 / 4; }
  .about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 72% center; }
  .about-photo figcaption {
    position: absolute; left: 0.75rem; bottom: 0.75rem; padding: 0.3rem 0.6rem; border-radius: 4px;
    background: #0b1828e0; color: var(--white); font-size: 0.75rem;
  }
  .about-copy > p { color: var(--steel); margin-top: 1.25rem; max-width: 34rem; }
  .facts { margin-top: 1.75rem; border-top: 1px solid #c8d4de; }
  .facts div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 1rem; padding-block: 0.9rem; border-bottom: 1px solid #c8d4de; }
  .facts dt { font-weight: 700; }
  .facts dd { color: var(--steel); }
  @media (max-width: 820px) {
    .about-grid { grid-template-columns: 1fr; }
    .facts div { grid-template-columns: 1fr; gap: 0.1rem; }
  }

  /* ---------- contact ---------- */
  .contact-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
  .contact-copy > p { color: var(--mist); margin-top: 1.25rem; max-width: 30rem; }
  .contact-list { margin-top: 2rem; border-top: 1px solid var(--navy-3); }
  .contact-list a, .contact-list div {
    display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); align-items: center; gap: 0 0.75rem;
    min-height: 68px; padding-block: 0.6rem; border-bottom: 1px solid var(--navy-3); text-decoration: none;
  }
  .contact-list .icon { grid-row: span 2; width: 1.5rem; height: 1.5rem; color: var(--cyan); justify-self: center; }
  .contact-list small { color: var(--mist); font-size: var(--step--1); font-weight: 600; line-height: 1.2; }
  .contact-list b { font-size: var(--step-1); font-weight: 600; overflow-wrap: anywhere; line-height: 1.3; }
  .contact-list a:hover b { color: var(--cyan); }
  .contact-list a:active { background: var(--navy-2); }
  @media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

  .form {
    background: var(--white); color: var(--ink); border-radius: var(--radius);
    padding: clamp(1.25rem, 3.5vw, 2.25rem); border-top: 4px solid var(--red);
  }
  .form-note { color: var(--steel); font-size: var(--step--1); margin-top: 0.35rem; }
  .fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; }
  .field { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
  .field.full { grid-column: 1 / -1; }
  .field label { font-weight: 700; font-size: 0.9rem; }
  .field label i { font-style: normal; font-weight: 500; color: var(--steel); }
  .field input, .field select, .field textarea {
    width: 100%; min-height: 50px; padding: 0.7rem 0.8rem;
    border: 1.5px solid #aebccb; border-radius: 4px; background: var(--white);
    font-size: 1rem; /* 16px minimum: stops iOS zooming the page on focus */
    transition: border-color 0.18s, box-shadow 0.18s;
  }
  .field textarea { min-height: 7.5rem; resize: vertical; line-height: 1.5; }
  .field input:hover, .field select:hover, .field textarea:hover { border-color: var(--steel); }
  .field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
    outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px #1264df40;
  }
  .field [aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 3px #c90c2926; }
  .field .err { color: var(--red-dark); font-size: var(--step--1); font-weight: 600; min-height: 0; }
  .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
  .send-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.25rem; }
  .send-row .btn { flex: 1 1 12rem; }
  .form .btn.ghost { color: var(--ink); border-color: #b8c6d3; }
  .form .btn.ghost:hover { background: var(--paper); border-color: var(--ink); }
  .form .btn.ghost:active { background: var(--line); }
  .form :focus-visible { outline-color: var(--blue); }
  .consent { margin-top: 0.9rem; color: var(--steel); font-size: var(--step--1); }
  .consent a { color: var(--blue-ink); font-weight: 600; display: inline-block; padding-block: 0.85rem; margin-block: -0.85rem; border-radius: 4px; }
  .consent a:active, .prose a:active { background: #e3ecf8; }
  .form-status {
    margin-top: 1.25rem; padding: 1rem 1.1rem; border-radius: 4px; border-left: 4px solid var(--blue);
    background: #eaf2fd;
  }
  .form-status[data-kind="ok"] { border-color: var(--ok); background: #e7f5ee; }
  .form-status[data-kind="warn"] { border-color: var(--red); background: #fdecef; }
  .form-status strong { display: block; }
  .form-status p { font-size: 0.95rem; margin-top: 0.2rem; }
  .form-status .send-row { margin-top: 0.9rem; }

  /* ---------- footer ---------- */
  .site-footer { background: #06111e; color: var(--mist); font-size: var(--step--1); padding-block: 3rem 2rem; }
  .footer-grid { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 2rem 3.5rem; align-items: start; }
  .footer-logo { background: var(--white); border-radius: var(--radius); padding: 0.6rem 0.9rem; width: 9.5rem; }
  .site-footer address { font-style: normal; line-height: 1.7; }
  .site-footer address b { color: var(--white); font-size: 1rem; }
  .footer-nav { display: grid; grid-template-columns: repeat(2, auto); gap: 0 2rem; }
  .footer-nav a, .footer-base a {
    display: inline-flex; align-items: center; min-height: 44px; color: #c9d8e6; text-decoration: none; border-radius: 4px;
  }
  .footer-nav a:hover, .footer-base a:hover { color: var(--white); text-decoration: underline; }
  .footer-nav a:active, .footer-base a:active { color: var(--cyan); }
  .footer-base {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.25rem 2rem;
    margin-top: 2rem; padding-top: 1rem; border-top: 1px solid #1a2c40;
  }
  @media (max-width: 760px) {
    .footer-grid { grid-template-columns: 1fr; }
    .site-footer { padding-bottom: 6.5rem; }
  }

  /* ---------- sticky mobile actions ---------- */
  .quick {
    display: none; position: fixed; inset: auto 0 0 0; z-index: 30;
    padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom));
    gap: 0.5rem; background: var(--white); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 18px #0b182814;
    translate: 0 110%; transition: translate 0.3s var(--ease);
  }
  .quick.show { translate: 0 0; }
  .quick .btn { flex: 1; padding: 0 0.5rem; }
  @media (max-width: 760px) { .quick { display: flex; } }


  /* ---------- questions and answers ---------- */
  .faq { border-top: 2px solid var(--ink); max-width: 52rem; }
  .faq details { border-bottom: 1px solid var(--line); }
  .faq summary {
    display: flex; align-items: center; gap: 0.9rem; min-height: 60px; padding: 0.75rem 0.25rem;
    font-weight: 700; font-size: var(--step-1); line-height: 1.3; cursor: pointer; list-style: none;
    border-radius: 4px; transition: color 0.18s, background-color 0.18s;
  }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::before {
    content: ""; flex: none; width: 0.6rem; height: 0.6rem; margin-left: 0.2rem;
    border-right: 2.5px solid var(--red); border-bottom: 2.5px solid var(--red);
    rotate: -45deg; transition: rotate 0.25s var(--ease);
  }
  .faq details[open] > summary::before { rotate: 45deg; }
  .faq summary:hover { color: var(--blue-ink); }
  .faq summary:active { background: var(--paper); }
  .faq details p { color: var(--steel); padding: 0 0.25rem 1.25rem 1.95rem; max-width: 44rem; }

  /* ---------- service pages ---------- */
  .crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.5rem; margin-bottom: 1rem; color: var(--mist); font-size: var(--step--1); font-weight: 600; }
  .crumbs a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding-inline: 0.25rem; color: var(--cyan); text-decoration: none; border-radius: 4px; }
  .crumbs a:hover { text-decoration: underline; }
  .crumbs a:active { color: var(--white); }
  .page-head h1 { font-size: var(--step-3); max-width: 20ch; }
  .page-head .hero-actions { margin-top: 1.75rem; }
  .svc-page { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
  .svc-main > h2 { font-family: var(--font); font-style: normal; font-size: var(--step-2); letter-spacing: -0.01em; line-height: 1.2; margin: 2.75rem 0 1rem; }
  .svc-main > h2:first-child { margin-top: 0; }
  .svc-main .facts { margin-top: 0; }
  .svc-main .price-list { border: 1px solid var(--line); border-top: 2px solid var(--ink); }
  .muted { color: var(--steel); }
  .ticks { margin-top: 0.9rem; }
  .ticks li { position: relative; padding: 0.55rem 0 0.55rem 1.6rem; border-bottom: 1px solid var(--line); }
  .ticks li::before { content: ""; position: absolute; left: 0; top: 1.25rem; width: 0.8rem; height: 2px; background: var(--red); }
  .svc-side { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: 1.5rem; }
  .side-card { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: 0.6rem; }
  .side-card h2, .side-nav h2 { font-family: var(--font); font-style: normal; font-size: var(--step-1); letter-spacing: 0; line-height: 1.2; }
  .side-card p { color: var(--mist); font-size: var(--step--1); margin-bottom: 0.4rem; }
  .side-nav ul { margin-top: 0.5rem; border-top: 1px solid var(--line); }
  .side-nav a { display: flex; align-items: center; min-height: 48px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); border-radius: 4px; }
  .side-nav a:hover { color: var(--blue-ink); }
  .side-nav a:active { background: var(--paper); }
  @media (max-width: 900px) {
    .svc-page { grid-template-columns: 1fr; }
    .svc-side { position: static; }
  }
  .service-acts { display: flex; flex-wrap: wrap; gap: 0 1.5rem; margin-top: 0.5rem; }
  .service-acts .link-btn { margin-top: 0; }
  .footer-nav.one { grid-template-columns: auto; }

  /* ---------- simple pages ---------- */
  .page-head { background: var(--navy); color: var(--white); padding-block: clamp(3rem, 8vw, 5rem); }
  .page-head p { color: var(--mist); margin-top: 1rem; max-width: 40rem; }
  .prose { max-width: 44rem; }
  .prose h2 { font-family: var(--font); font-style: normal; font-size: var(--step-2); letter-spacing: -0.01em; line-height: 1.2; margin-top: 2.5rem; }
  .prose p, .prose ul { margin-top: 0.9rem; color: #2b3d4f; }
  .prose ul { list-style: disc; padding-left: 1.25rem; }
  .prose li + li { margin-top: 0.35rem; }
  .prose a { color: var(--blue-ink); font-weight: 600; display: inline-block; padding-block: 0.7rem; margin-block: -0.7rem; border-radius: 4px; }
  .lost { min-height: 70dvh; display: grid; align-content: center; }
  .lost .hero-actions { margin-top: 2rem; }
}

@layer motion {
  @media (prefers-reduced-motion: no-preference) {
    @view-transition { navigation: auto; }

    /* hero: the one orchestrated moment. Supply energises, bus draws, circuits close. */
    @keyframes rise { from { opacity: 0; translate: 0 18px; } }
    @keyframes pop { from { scale: 0.4; opacity: 0; } 60% { scale: 1.08; } }
    @keyframes draw-y { from { scale: 1 0; } }
    @keyframes draw-x { from { scale: 0 1; } }
    @keyframes fade { from { opacity: 0; } }
    @keyframes current { from { background-position: 0 -40%, 0 0; } to { background-position: 0 140%, 0 0; } }
    @keyframes halo { 50% { box-shadow: 0 0 0 12px #c90c2900; } }

    .hero-where, .hero h1 span, .hero-lede, .hero-actions { animation: rise 0.7s var(--ease) backwards; }
    .hero h1 span:nth-child(1) { animation-delay: 0.08s; }
    .hero h1 span:nth-child(2) { animation-delay: 0.16s; }
    .hero h1 span:nth-child(3) { animation-delay: 0.24s; }
    .hero-lede { animation-delay: 0.36s; }
    .hero-actions { animation-delay: 0.46s; }

    .board-node { animation: pop 0.5s var(--ease) 0.35s backwards, halo 3.2s ease-in-out 2.4s infinite; }
    .board-src a { animation: fade 0.5s 0.5s backwards; }
    .board-list::before {
      animation: draw-y 0.9s cubic-bezier(0.6, 0, 0.3, 1) 0.7s backwards, current 4.5s linear 2.2s infinite;
    }
    .board-list a::before { animation: draw-x 0.35s var(--ease) calc(0.78s + var(--i) * 0.14s) backwards; }
    .board-list .brk { animation: pop 0.35s var(--ease) calc(0.95s + var(--i) * 0.14s) backwards; }
    .board-list b, .board-list .sub { animation: rise 0.45s var(--ease) calc(1.02s + var(--i) * 0.14s) backwards; }

    .faq details::details-content {
      interpolate-size: allow-keywords; overflow: clip; contain: layout;
      block-size: 0; opacity: 0;
      transition: block-size 0.3s var(--ease), opacity 0.3s, content-visibility 0.3s;
      transition-behavior: allow-discrete;
    }
    .faq details[open]::details-content { block-size: auto; opacity: 1; }

    /* scroll reveals: armed only when JS is running, so content never hides without it */
    .js [data-reveal] { opacity: 0; translate: 0 22px; }
    .js [data-reveal].is-in {
      opacity: 1; translate: 0 0;
      transition: opacity 0.6s var(--ease) var(--d, 0s), translate 0.7s var(--ease) var(--d, 0s);
    }
    .js .sec-head::after { scale: 0 1; }
    .js .sec-head.is-in::after { scale: 1 1; transition: scale 0.9s var(--ease) 0.15s; }

    /* scroll-linked extras: progressive, no fallback needed */
    @supports ((animation-timeline: view()) and (animation-range: entry)) {
      @keyframes fill-x { from { scale: 0 1; } }
      @keyframes fill-y { from { scale: 1 0; } }
      @keyframes drift { from { translate: 0 -5%; } to { translate: 0 5%; } }
      @keyframes lift { to { opacity: 1; } }
      @keyframes tuck { to { scale: 0.86; } }

      .steps::after {
        animation: fill-x linear both;
        animation-timeline: view();
        animation-range: entry 60% cover 55%;
      }
      @media (max-width: 760px) { .steps::after { animation-name: fill-y; } }
      .about-photo img {
        scale: 1.12;
        animation: drift linear both;
        animation-timeline: view();
        animation-range: cover;
      }
      .site-header::after {
        animation: lift linear both;
        animation-timeline: scroll(block root);
        animation-range: 0 120px;
      }
      .brand img {
        animation: tuck linear both;
        animation-timeline: scroll(block root);
        animation-range: 0 120px;
      }
    }
  }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  }
}
