/* Geo Stack Technologies */
:root {
  --ink: #0A2B40;
  --ink-2: #113A55;
  --ink-line: #24506D;
  --paper: #F2F6F7;
  --surface: #FFFFFF;
  --text: #0E2233;
  --muted: #536676;
  --line: #D3DDE2;
  --brand: #34B2E4;
  --brand-deep: #13699F;

  /* sector colours, used consistently as map-legend colours */
  --land: #3F9A5F;
  --plan: #8A6CC8;
  --elec: #E09A12;
  --fiber: #2FA6DA;
  --gas: #DE5338;
  --nav: #3FA3AA;

  --wrap: 1180px;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand-deep); }
h1, h2, h3 { line-height: 1.12; margin: 0; font-stretch: 112%; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.75rem); font-weight: 750; }
h3 { font-size: 1.18rem; font-weight: 700; font-stretch: 105%; letter-spacing: 0; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--ink); border-bottom: 1px solid var(--ink-line); }
.bar { display: flex; align-items: center; gap: 28px; height: 70px; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav a, .phone { color: #D6E6EE; text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav a:hover, .phone:hover { color: #fff; }
.nav .nav-cta { color: var(--ink); background: var(--brand); padding: 9px 16px; border-radius: 4px; font-weight: 650; }
.nav .nav-cta:hover { background: #5CC4EC; color: var(--ink); }
.phone { font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 22px; border-left: 1px solid var(--ink-line); }
.menu { display: none; margin-left: auto; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 12px 10px; }
.menu span:not(.sr) { display: block; height: 2px; background: #fff; margin: 6px 0; transition: transform .2s; }
.menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn { display: inline-block; font: inherit; font-weight: 650; font-size: 1rem; padding: 14px 22px; border-radius: 4px; text-decoration: none; cursor: pointer; border: 1.5px solid transparent; }
.btn-primary { background: var(--brand); color: var(--ink); }
.btn-primary:hover { background: #5CC4EC; }
.btn-ghost { color: #fff; border-color: #5F8AA6; }
.btn-ghost:hover { border-color: #fff; }
.btn:disabled { opacity: .6; cursor: default; }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; padding: 112px 0 0; }
.hero-map { position: absolute; inset: 0; width: 100%; height: 100%; }
.contours path { fill: none; stroke: #2E5F7E; stroke-width: 1; opacity: .55; }
.contours path.c-major { stroke: #3D7395; stroke-width: 1.6; opacity: .8; }
.hatch-line { stroke: var(--land); stroke-width: 1.6; }
.net path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.n-land { fill: url(#hatch) !important; stroke: var(--land); stroke-width: 2; }
.n-plan { fill: rgba(138, 108, 200, .22) !important; stroke: var(--plan); stroke-width: 2; }
.n-elec { stroke: var(--elec); stroke-width: 3; }
.n-elec-t { stroke: var(--elec); stroke-width: 2.4; }
.n-fiber { stroke: var(--fiber); stroke-width: 3; stroke-dasharray: 10 8; }
.n-node { fill: var(--ink); stroke: var(--fiber); stroke-width: 3; }
.n-gas-o { stroke: var(--gas); stroke-width: 8; }
.n-gas-i { stroke: var(--ink); stroke-width: 3; }
.n-sub { fill: var(--ink); stroke: #fff; stroke-width: 3; }
.n-label { font-family: var(--font); font-size: 15px; font-weight: 600; fill: #CFE2EC; paint-order: stroke; stroke: var(--ink); stroke-width: 5px; stroke-linejoin: round; }
.l-elec { fill: #F3C163; } .l-fiber { fill: #8AD3F2; } .l-gas { fill: #F29A86; } .l-land { fill: #8CCB9F; } .l-plan { fill: #C4B1EA; }

.hero-inner { position: relative; max-width: var(--wrap); }
.hero h1 {
  max-width: 13ch;
  font-size: clamp(2.6rem, 1.4rem + 5.2vw, 5.4rem);
  font-weight: 780;
  font-stretch: 118%;
  line-height: 1.0;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.lede { max-width: 54ch; margin: 28px 0 34px; font-size: 1.15rem; color: #CADCE6; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* map-sheet info strip */
.sheet {
  position: relative; margin: 96px 0 0; display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--ink-line); border-bottom: 0; background: rgba(10, 43, 64, .86);
  backdrop-filter: blur(3px);
}
.sheet div { padding: 16px 20px 18px; border-right: 1px solid var(--ink-line); }
.sheet div:last-child { border-right: 0; }
.sheet dt { font-size: .8rem; color: #8FB0C3; }
.sheet dd { margin: 2px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- sections ---------- */
.section { padding: 104px 0; }
.head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end; margin-bottom: 52px; }
.head p { margin: 0; color: var(--muted); max-width: 46ch; font-size: 1.05rem; }

/* services as a map legend */
.services { background: var(--surface); }
.legend { border-top: 2px solid var(--text); }
.row {
  display: grid; grid-template-columns: 120px minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px;
  padding: 30px 0; border-bottom: 1px solid var(--line); align-items: start;
}
.sym { width: 96px; height: 48px; margin-top: 2px; }
.sym path, .sym circle { fill: none; stroke: var(--c); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.sym .s-hatch { fill: color-mix(in srgb, var(--c) 18%, transparent); }
.sym .s-fill { fill: color-mix(in srgb, var(--c) 30%, transparent); stroke-width: 2.5; }
.sym .s-fill2 { fill: color-mix(in srgb, var(--c) 60%, transparent); }
.sym .s-dash { stroke-dasharray: 9 7; }
.sym .s-node { fill: #fff; }
.sym .s-dbl-o { stroke-width: 10; stroke-linecap: butt; }
.sym .s-dbl-i { stroke: #fff; stroke-width: 4; stroke-linecap: butt; }
.sym .s-pin { fill: var(--c); }
.row-main h3 { margin-bottom: 8px; }
.row-main p { margin: 0; color: var(--muted); max-width: 52ch; }
.caps { list-style: none; margin: 0; padding: 0; }
.caps li { padding: 4px 0 4px 18px; position: relative; font-size: .97rem; }
.caps li::before { content: ""; position: absolute; left: 0; top: .82em; width: 8px; height: 2px; background: var(--c); }
.ai-note { margin: 32px 0 0; color: var(--muted); }

/* projects */
.proj-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.plot-wrap { margin: 0; background: var(--surface); border: 1px solid var(--line); padding: 12px; position: sticky; top: 96px; }
.plot .g { stroke: #E2E9ED; stroke-width: 1; }
.plot .gt { font: 500 11px var(--font); fill: #7A8C99; font-variant-numeric: tabular-nums; }
.plot .ray { stroke: #9FB6C4; stroke-width: 1.2; stroke-dasharray: 3 4; }
.plot .pt circle { fill: var(--brand-deep); stroke: #fff; stroke-width: 2.5; transition: r .2s; }
.plot .pt rect { fill: var(--ink); stroke: #fff; stroke-width: 2.5; }
.plot .pt text { font: 600 13px var(--font); fill: var(--text); paint-order: stroke; stroke: #fff; stroke-width: 4px; }
.plot .pt.on circle { fill: var(--brand); r: 10; }
.proj-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--text); }
.proj-list li { padding: 24px 0 22px 20px; border-bottom: 1px solid var(--line); position: relative; }
.proj-list li::before { content: ""; position: absolute; left: 0; top: 30px; width: 4px; height: 22px; background: var(--c); }
.proj-list h3 { margin-bottom: 4px; }
.where { color: var(--muted); font-size: .95rem; margin: 0 0 10px; }
.where span { font-variant-numeric: tabular-nums; margin-left: 10px; color: #7A8C99; }
.proj-list p:last-child { margin: 0; }
.proj-list li.on { background: linear-gradient(90deg, #E8F4FA, transparent 80%); }

/* process */
.process { background: var(--ink); color: #fff; }
.process .head p { color: #B9CFDB; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; }
.steps li { padding: 0 32px 0 0; position: relative; }
.steps li::after { content: ""; position: absolute; top: 23px; left: 56px; right: 18px; height: 2px; background: repeating-linear-gradient(90deg, #4C7FA0 0 10px, transparent 10px 18px); }
.steps li:last-child::after { display: none; }
.num { display: grid; place-items: center; width: 46px; height: 46px; border: 2px solid var(--brand); border-radius: 50%; font-weight: 750; font-size: 1.1rem; color: var(--brand); margin-bottom: 22px; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: #C3D6E1; margin: 0; max-width: 34ch; }

/* about */
.about { background: var(--surface); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 72px; }
.about h2 { margin-bottom: 24px; }
.about-grid > div:first-child p { max-width: 58ch; font-size: 1.06rem; }
.h-small { font-size: 1.4rem; font-stretch: 108%; }
.why { margin: 0; }
.why div { padding: 16px 0; border-top: 1px solid var(--line); }
.why dt { font-weight: 700; }
.why dd { margin: 2px 0 0; color: var(--muted); }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 64px; }
.contact h2 { margin-bottom: 12px; }
.contact-grid > div > p { color: var(--muted); margin-bottom: 28px; }
form label { display: block; font-size: .92rem; font-weight: 600; margin-bottom: 16px; }
form input, form select, form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px; font: inherit; font-weight: 400; color: var(--text);
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 4px;
}
form input:focus, form select:focus, form textarea:focus { outline: none; border-color: var(--brand-deep); box-shadow: 0 0 0 3px rgba(52, 178, 228, .25); }
form [aria-invalid="true"] { border-color: var(--gas); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 14px 0 0; font-weight: 600; min-height: 1.6em; }
.form-status.ok { color: #23774A; }
.form-status.err { color: #B23A23; }
.contact-info dl { margin: 0 0 24px; }
.contact-info dl div { padding: 14px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 120px 1fr; gap: 12px; }
.contact-info dt { color: var(--muted); font-size: .95rem; }
.contact-info dd { margin: 0; font-weight: 600; }
.contact-info dd a { color: var(--text); }
.map { border: 1px solid var(--line); aspect-ratio: 4 / 3; background: #E2E9ED; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* footer */
.site-footer { background: var(--ink); color: #B9CFDB; padding: 64px 0 28px; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; align-items: start; }
.foot-brand img { height: 50px; width: auto; margin-bottom: 14px; }
.foot-brand p { max-width: 36ch; margin: 0; }
.site-footer nav, .foot-contact { display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: #E2EEF4; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.legal { margin: 48px 0 0; padding-top: 20px; border-top: 1px solid var(--ink-line); font-size: .88rem; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .phone { display: none; }
  .row { grid-template-columns: 100px minmax(0, 1fr); }
  .caps { grid-column: 2; }
  .proj-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .plot-wrap { position: static; max-width: 620px; }
}
@media (max-width: 860px) {
  .menu { display: block; }
  .nav { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--ink); border-bottom: 1px solid var(--ink-line); padding: 8px 24px 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--ink-line); font-size: 1.05rem; }
  .nav .nav-cta { margin-top: 14px; text-align: center; border: 0; }
  .head { grid-template-columns: 1fr; gap: 14px; margin-bottom: 36px; }
  .sheet { grid-template-columns: 1fr 1fr; }
  .sheet div:nth-child(2) { border-right: 0; }
  .sheet div:nth-child(-n+2) { border-bottom: 1px solid var(--ink-line); }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps li::after { display: none; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section { padding: 72px 0; }
  .hero { padding-top: 64px; }
  .hero-map { opacity: .32; }
  .lede { font-size: 1.05rem; }
  .sheet { margin-top: 64px; }
  .sheet div { padding: 12px 14px 14px; }
  .row { grid-template-columns: 1fr; gap: 14px; padding: 26px 0; }
  .caps { grid-column: auto; }
  .two { grid-template-columns: 1fr; gap: 0; }
  .contact-info dl div { grid-template-columns: 1fr; gap: 2px; }
  .where span { display: block; margin: 0; }
  .plot .gt { font-size: 17px; }
  .plot .pt text { font-size: 21px; stroke-width: 6px; }
  .plot .gt:nth-of-type(even) { display: none; }
}
