/* East Coast Networks — Concept D: big skies.
   Pale sky hero with a drawn horizon and mast, sea-slate bands,
   Zilla Slab headings, Source Sans 3 body. */

@font-face {
  font-family: 'Zilla Slab';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/zilla-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Zilla Slab';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/zilla-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Zilla Slab';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/zilla-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('/assets/fonts/sourcesans-var.woff2') format('woff2');
}

:root {
  --sky: #e3edf3;
  --page: #fdfdfc;
  --sea: #24404e;
  --sea-deep: #1c3440;
  --ink: #22313a;
  --muted: #56676f;
  --muted-band: #a3b4bc;
  --rule: rgba(34, 49, 58, 0.14);
  --rule-band: rgba(253, 253, 252, 0.16);
  --beacon: #c2503b;
  --beacon-band: #e88a76;
  --wrap: 1080px;
  --header-h: 72px;
  --display: 'Zilla Slab', 'Georgia', serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--page);
  color: var(--ink);
  font-family: 'Source Sans 3', system-ui, 'Segoe UI', sans-serif;
  font-size: 17.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--sea); color: #fff; }
:focus-visible { outline: 2px solid var(--beacon); outline-offset: 3px; }
section { scroll-margin-top: calc(var(--header-h) + 8px); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: 0; }
h1 { font-weight: 700; font-size: clamp(2.6rem, 6.6vw, 4.4rem); }
h2 { font-weight: 700; font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 2rem; }
h3 { font-weight: 600; font-size: 1.35rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--sea);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 2rem; }
.brand { margin-right: auto; }
.brand-logo { height: 32px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 1.8rem; }
.site-nav a {
  color: var(--muted-band);
  text-decoration: none;
  font-size: 0.97rem;
  font-weight: 500;
}
.site-nav a:hover { color: #fff; }
.site-nav .nav-phone { display: none; }
.header-phone {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
}
.header-phone:hover { color: var(--beacon-band); }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule-band);
  border-radius: 6px;
  width: 42px;
  height: 38px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: #fff; transition: transform 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero: sky band with horizon ---------- */
.hero {
  background: var(--sky);
  padding: calc(var(--header-h) + 3.5rem) 0 0;
}
.hero h1 { max-width: 18ch; }
.lede { color: var(--muted); font-size: clamp(1.1rem, 1.7vw, 1.25rem); max-width: 52ch; margin-top: 1.4rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.horizon {
  display: block;
  width: calc(100% - 96px);
  max-width: 1380px;
  margin: clamp(-120px, -7vw, -0.5rem) auto 0;
  pointer-events: none;
}
/* Will's line-art scene (FrontPage.svg): recolour to the site palette.
   White fills mask crossing lines, so they take the sky colour. */
.horizon [class^="cls-"] { stroke: var(--sea); stroke-width: 0.55; }
.horizon .cls-3 { fill: var(--sky); }
/* Signal links in the site accent */
.horizon .cls-1, .horizon .cls-4, .horizon .cls-5,
.horizon .cls-6, .horizon .cls-7, .horizon .cls-8 { stroke: var(--beacon); }
/* Marching ants along the dashed signal links. The reversed ones were
   drawn right-to-left in the source, so this keeps the flow moving
   outward along the chain. */
.horizon .cls-1, .horizon .cls-4, .horizon .cls-5,
.horizon .cls-6, .horizon .cls-7, .horizon .cls-8 {
  animation: ants 0.6s linear infinite;
}
.horizon .cls-1, .horizon .cls-4, .horizon .cls-7 { animation-direction: reverse; }
@keyframes ants { to { stroke-dashoffset: -4.5; } }
@media (prefers-reduced-motion: reduce) {
  .horizon .cls-1, .horizon .cls-4, .horizon .cls-5,
  .horizon .cls-6, .horizon .cls-7, .horizon .cls-8 { animation: none; }
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-solid { background: var(--sea); color: #fff; }
.btn-solid:hover { background: var(--sea-deep); }
.btn-ghost { border: 1px solid rgba(34, 49, 58, 0.45); color: var(--ink); background: rgba(235, 242, 246, 0.9); }
.btn-ghost:hover { border-color: var(--ink); }

/* ---------- Services ---------- */
.services { padding: 5rem 0; }
.service-list { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem 3.5rem; }
.service h3 { margin-bottom: 0.45rem; }
.service p { color: var(--muted); font-size: 1rem; }

/* ---------- One-off systems: sea band ---------- */
.bespoke { background: var(--sea); color: #f4f7f8; padding: 4.5rem 0 5rem; }
.bespoke .wrap { position: relative; }
.panel-glyph { position: absolute; top: 0; right: 24px; width: 52px; }
.bespoke-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
}
.bespoke p { color: var(--muted-band); margin-bottom: 1.2rem; }
.bespoke p:last-child { margin-bottom: 0; }
.bespoke-list { list-style: disc; padding-left: 1.2rem; align-self: start; }
.bespoke-list li { padding: 0.32rem 0; font-size: 1rem; }
.bespoke-list li::marker { color: var(--beacon-band); }

/* ---------- About ---------- */
.about { padding: 5rem 0; }
.about-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3.5rem;
}
.about-cols p { color: var(--muted); }

/* ---------- Contact: sea band ---------- */
.contact { background: var(--sea); color: #f4f7f8; padding: 4.5rem 0 2.2rem; }
.contact-note { color: var(--muted-band); margin: -1rem 0 2.2rem; }
.contact-links { display: flex; flex-direction: column; gap: 0.5rem; }
.contact-big {
  font-family: var(--display);
  font-size: clamp(1.7rem, 4.6vw, 3.1rem);
  font-weight: 700;
  text-decoration: none;
  width: fit-content;
  overflow-wrap: anywhere;
}
.contact-big:hover { color: var(--beacon-band); }
.contact-area { margin-top: 2.2rem; color: var(--muted-band); }
.footer-inner {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 3.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--rule-band);
}
.footer-glyph { width: 24px; height: 24px; }
.footer-inner p { color: var(--muted-band); font-size: 0.92rem; }
.heart { color: var(--beacon-band); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--sea);
    border-bottom: 1px solid var(--rule-band);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.6rem 24px 1rem;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.8rem 0; font-size: 1rem; width: 100%; }
  .site-nav .nav-phone { display: block; color: #fff; font-weight: 600; }
  .header-phone { display: none; }
  .nav-toggle { display: flex; }

  .hero { padding-top: calc(var(--header-h) + 3.5rem); }
  .horizon { margin-top: 0.5rem; }
  .service-list, .about-cols, .bespoke-cols { grid-template-columns: 1fr; }
  .panel-glyph { position: static; margin-bottom: 1.4rem; }
}
@media (max-width: 620px) {
  h1 br, h2 br { display: none; }
  h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
}

/* Capture mode */
.flat .reveal, .js.flat .reveal { opacity: 1; transform: none; transition: none; }

.legal { font-size: 0.8rem; margin-top: 0.2rem; opacity: 0.75; }
