:root {
  --ink: #0b1418;
  --text: #3a474d;
  --muted: #6a777c;
  --bg: #ffffff;
  --surface: #f4f6f5;
  --line: #e1e7e5;
  --teal: #03a18e;
  --teal-dark: #04796b;
  --green: #14df81;
  --font: "Archivo", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

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

html { scroll-behavior: smooth; }

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

img { display: block; max-width: 100%; height: auto; }
a { color: var(--teal-dark); }

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  font-stretch: 115%;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.nowrap { white-space: nowrap; }

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px;
}
.skip:focus { top: 12px; }

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

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 24px; border-radius: 6px;
  background: var(--ink); color: #fff;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  transition: background-color .2s;
}
.btn:hover { background: var(--teal-dark); }
.btn span { transition: transform .2s var(--ease); }
.btn:hover span { transform: translateX(3px); }
.btn-sm { padding: 9px 16px; font-size: .9375rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .9375rem; }
.nav a:not(.btn):hover { color: var(--teal-dark); }

/* Hero */
.hero { padding: 72px 0 104px; }
.hero h1 { font-size: clamp(2.3rem, 7vw, 5.75rem); font-stretch: 120%; max-width: 15ch; }
.hero-body {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px; align-items: start; margin-top: 56px;
}
.lead { margin: 0 0 32px; font-size: 1.25rem; line-height: 1.55; max-width: 28em; }
.hero-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; }

/* Sections */
section[id] { scroll-margin-top: 72px; }
.section { padding: 104px 0; }
.section-alt { background: var(--surface); }
.section-head { max-width: 620px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(2.1rem, 4.4vw, 3.25rem); }
.section-head p { margin: 16px 0 0; font-size: 1.125rem; }

/* Services: a busbar with one tap per circuit */
.circuits {
  --pad: 28px; --lh: 1.75rem;
  position: relative; list-style: none; margin: 0; padding: 0;
  border-top: 1px solid var(--line);
}
.circuits::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(var(--teal), var(--green));
  transform-origin: top;
}
.circuits li {
  position: relative;
  display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1.35fr); gap: 24px;
  padding: var(--pad) 0 var(--pad) 48px;
  border-bottom: 1px solid var(--line);
}
.circuits li::before {
  content: ""; position: absolute; left: 3px; top: calc(var(--pad) + var(--lh) / 2);
  width: 25px; height: 1.5px; background: var(--ink);
}
.circuits li::after {
  content: ""; position: absolute; left: 27px; top: calc(var(--pad) + var(--lh) / 2 - 3.5px);
  width: 8px; height: 8px; border: 1.5px solid var(--ink); border-radius: 50%;
  background: var(--bg); transition: background-color .2s;
}
.circuits li:hover::after { background: var(--green); }
.gr {
  line-height: var(--lh); font-size: .8125rem; font-weight: 500; font-stretch: 85%;
  letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.circuits h3 { font-size: 1.375rem; line-height: var(--lh); font-stretch: 110%; }
.circuits p { margin: 0; padding-top: 1px; color: var(--muted); }

.js .circuits::before { transform: scaleY(0); transition: transform 1.1s cubic-bezier(.6, 0, .2, 1); }
.js .circuits li { opacity: 0; transform: translateX(-8px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(250ms + var(--i) * 90ms); }
.js .circuits.is-in::before { transform: none; }
.js .circuits.is-in li { opacity: 1; transform: none; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 20px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: var(--line); }
.gallery figcaption { margin-top: 12px; color: var(--ink); font-weight: 500; font-size: .9375rem; }

/* Contact */
.contact { background: var(--ink); color: #b9c6c3; padding: 120px 0; }
.contact h2 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.25rem); }
.contact p { margin: 16px 0 40px; font-size: 1.125rem; }
.contact-email {
  display: inline-flex; align-items: baseline; gap: .35em;
  color: #fff; text-decoration: none;
  font-size: clamp(1.75rem, 6vw, 4.5rem); font-weight: 600; font-stretch: 110%;
  letter-spacing: -0.02em; line-height: 1.1;
  padding-bottom: 8px;
  background: linear-gradient(90deg, var(--teal), var(--green)) left bottom / 100% 3px no-repeat;
  overflow-wrap: anywhere;
}
.contact-email span { color: var(--green); transition: transform .2s var(--ease); }
.contact-email:hover span { transform: translateX(6px); }

/* Footer */
.site-footer { background: var(--ink); color: #8a9a97; font-size: .9375rem; }
.footer-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-top: 28px; padding-bottom: 28px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.site-footer a { color: #fff; text-decoration: none; font-weight: 500; }
.site-footer a:hover { color: var(--green); }

/* Load-in */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.hero h1 { animation: rise .8s var(--ease) both; }
.hero-body > div { animation: rise .8s var(--ease) .12s both; }
.hero-img { animation: rise .9s var(--ease) .22s both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .circuits::before, .js .circuits li { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 900px) {
  .hero-body { grid-template-columns: 1fr; gap: 40px; margin-top: 32px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .circuits li { grid-template-columns: 64px minmax(0, 1fr); }
  .circuits li p { grid-column: 2; margin-top: -16px; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .header-inner { height: 64px; }
  .brand img { height: 32px; }
  .nav a:not(.btn) { display: none; }
  .hero { padding: 40px 0 72px; }
  .hero h1 { font-stretch: 108%; }
  .lead { font-size: 1.125rem; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 32px; }
  .circuits { --pad: 22px; }
  .circuits li { grid-template-columns: minmax(0, 1fr); gap: 4px; padding-left: 44px; }
  .circuits li p { grid-column: 1; margin-top: 4px; }
  .gr { order: -1; line-height: 1.2; }
  .circuits li::before { top: calc(var(--pad) + .975rem + 4px + var(--lh) / 2); }
  .circuits li::after { top: calc(var(--pad) + .975rem + 4px + var(--lh) / 2 - 3.5px); }
  .gallery { gap: 24px 12px; }
  .gallery figcaption { font-size: .875rem; margin-top: 8px; }
  .contact { padding: 80px 0; }
}
