/* Hummer Systems — site styles
   One family (Archivo, variable width axis), one accent (high-vis yellow),
   drawing-sheet vernacular: thin grids, title blocks, schedule tables. */

:root {
  --ink: #0c1b2a;        /* deep navy base */
  --steel: #244b6e;      /* primary blue */
  --steel-2: #3a6b94;    /* lighter steel for lines on dark */
  --concrete: #e9ecef;   /* light section background */
  --paper: #f7f8f9;      /* page background */
  --graphite: #1c2630;   /* body text */
  --mute: #5b6873;       /* secondary text */
  --line: #cfd6dc;       /* rules on light */
  --line-dark: rgba(255,255,255,.14);
  --hivis: #f5c518;      /* accent: action + highlighted structure */
  --hivis-ink: #3a2e00;
  --white: #ffffff;

  --w-display: 112;      /* Archivo width axis values */
  --w-body: 100;
  --w-cond: 82;

  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-variation-settings: "wdth" var(--w-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--graphite);
  background: var(--paper);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; font-variation-settings: "wdth" var(--w-display); }
h1 { font-size: clamp(2.1rem, 5.2vw, 4rem); font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; max-width: 62ch; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--mute); max-width: 56ch; }
.cond { font-variation-settings: "wdth" var(--w-cond); }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--hivis); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--hivis); color: var(--hivis-ink); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ink) 92%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  color: var(--white);
  border-bottom: 1px solid var(--line-dark);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; font-variation-settings: "wdth" 110; letter-spacing: .01em; }
.brand svg { width: 34px; height: 34px; }
.brand small { display: block; font-weight: 400; font-size: .72rem; color: #a9b7c4; letter-spacing: .02em; font-variation-settings: "wdth" 95; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: var(--radius); font-size: .95rem; color: #d6dee6; }
.nav a:hover { color: var(--white); background: rgba(255,255,255,.06); }
.nav a[aria-current="page"] { color: var(--white); box-shadow: inset 0 -2px 0 var(--hivis); border-radius: 0; }
.nav .cta { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-dark); color: var(--white); border-radius: var(--radius); padding: 8px 10px; font: inherit; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: var(--radius);
  background: var(--hivis); color: var(--hivis-ink);
  text-decoration: none; font-weight: 600; font-size: .98rem;
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform .15s var(--ease), background .15s;
}
.btn:hover { background: #ffd43a; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn.ghost:hover { background: rgba(255,255,255,.08); }
.light .btn.ghost:hover { background: rgba(0,0,0,.05); }

/* ---------- sheets (sections) ---------- */
.sheet { position: relative; padding: clamp(56px, 9vw, 120px) 0; }
.sheet.dark { background: var(--ink); color: var(--white); }
.sheet.dark .lead { color: #b7c3ce; }
.sheet.dark p { color: #c9d3dc; }
.sheet.concrete { background: var(--concrete); }
.sheet.grid::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.15) 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.15) 70%, transparent);
}
.sheet > .wrap { position: relative; }

/* the title block: a small drawing-style stamp at a section's end */
.titleblock {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: repeat(3, auto); width: fit-content; margin-left: auto;
  border: 1px solid var(--line); font-size: .78rem; color: var(--mute);
  font-variation-settings: "wdth" var(--w-cond);
}
.dark .titleblock { border-color: var(--line-dark); color: #94a3b1; }
.titleblock > div { padding: 6px 12px; border-left: 1px solid var(--line); white-space: nowrap; }
.dark .titleblock > div { border-color: var(--line-dark); }
.titleblock > div:first-child { border-left: 0; }
.titleblock b { display: block; font-weight: 600; color: inherit; font-size: .72rem; }

.section-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head .lead { margin: 0; }

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 8vw, 110px) 0 clamp(48px, 7vw, 96px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { margin-bottom: 28px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .proof { margin-top: 40px; display: grid; grid-template-columns: repeat(3, auto); gap: 28px; width: fit-content; font-size: .9rem; color: #b7c3ce; }
.hero .proof b { display: block; white-space: nowrap; color: var(--white); font-size: 1.15rem; font-variation-settings: "wdth" 110; }
.drawing { width: 100%; height: auto; }

/* hero drawing animation: one orchestrated reveal */
.drawing .plan path, .drawing .plan line, .drawing .plan polyline { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 1.6s var(--ease) forwards; }
.drawing .dims { opacity: 0; animation: fade .6s .9s forwards; }
.drawing .cols rect, .drawing .cols circle { opacity: 0; animation: pop .45s var(--ease) forwards; }
.drawing .cols :nth-child(1) { animation-delay: 1.5s; }
.drawing .cols :nth-child(2) { animation-delay: 1.6s; }
.drawing .cols :nth-child(3) { animation-delay: 1.7s; }
.drawing .cols :nth-child(4) { animation-delay: 1.8s; }
.drawing .cols :nth-child(5) { animation-delay: 1.9s; }
.drawing .cols :nth-child(6) { animation-delay: 2.0s; }
.drawing .mesh { opacity: 0; animation: fade .8s 2.1s forwards; }
.drawing .tag { opacity: 0; animation: fade .5s 2.6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(.6); transform-box: fill-box; transform-origin: center; } to { opacity: 1; transform: scale(1); transform-box: fill-box; transform-origin: center; } }
@media (prefers-reduced-motion: reduce) {
  .drawing * { animation: none !important; stroke-dashoffset: 0 !important; opacity: 1 !important; }
  html { scroll-behavior: auto; }
}

/* ---------- schedule table (solutions, regions) ---------- */
.schedule { width: 100%; border-collapse: collapse; border-top: 2px solid var(--graphite); }
.dark .schedule { border-top-color: var(--white); }
.schedule th, .schedule td { text-align: left; vertical-align: top; padding: 20px 16px 20px 0; border-bottom: 1px solid var(--line); }
.dark .schedule th, .dark .schedule td { border-bottom-color: var(--line-dark); }
.schedule th { font-weight: 500; font-size: .8rem; color: var(--mute); font-variation-settings: "wdth" var(--w-cond); padding-top: 10px; padding-bottom: 10px; }
.dark .schedule th { color: #94a3b1; }
.schedule td.key { width: 34%; }
.schedule td.key h3 { margin-bottom: 6px; }
.schedule td.key .sub { color: var(--mute); font-size: .92rem; }
.dark .schedule td.key .sub { color: #94a3b1; }
.schedule td p { margin: 0; }
.schedule td .out { font-size: .9rem; color: var(--mute); margin-top: 8px; }
.schedule .ico { width: 56px; padding-right: 20px; }
.schedule .ico svg { width: 44px; height: 44px; }

/* ---------- process (a real sequence, so numbered) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dark .steps { border-color: var(--line-dark); }
.step { padding: 28px 24px 28px 0; border-left: 1px solid var(--line); padding-left: 20px; }
.dark .step { border-color: var(--line-dark); }
.step:first-child { border-left: 0; padding-left: 0; }
.step .n { font-size: .85rem; color: var(--mute); font-variation-settings: "wdth" var(--w-cond); margin-bottom: 14px; }
.dark .step .n { color: #94a3b1; }
.step h3 { margin-bottom: 8px; }
.step p { font-size: .95rem; margin: 0; }

/* ---------- regions ---------- */
.regions { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.region-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-dark); }
.region-list li { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-dark); font-size: .95rem; }
.region-list li b { font-weight: 600; }
.region-list li span { color: #b7c3ce; }
.region-list li.hq span { color: #b7c3ce; }
.region-list .head { font-size: .78rem; color: #94a3b1; font-variation-settings: "wdth" var(--w-cond); padding: 8px 0; }
.map { width: 100%; height: auto; }

/* ---------- partners ---------- */
.partners { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.partner { display: flex; align-items: center; justify-content: center; padding: 18px 16px; border: 1px solid var(--line); background: var(--white); }
.partner img { display: block; width: 100%; max-width: 200px; height: auto; }

/* ---------- people ---------- */
.people { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
.person { border-top: 2px solid var(--graphite); padding-top: 18px; }
.person h3 { margin-bottom: 4px; }
.person .role { color: var(--mute); margin-bottom: 14px; }
.person p { font-size: .98rem; }
.person a { color: var(--steel); text-decoration: none; }
.person a:hover { text-decoration: underline; }

/* ---------- facts strip ---------- */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts > div { padding: 24px 20px 24px 0; border-left: 1px solid var(--line); padding-left: 20px; }
.facts > div:first-child { border-left: 0; padding-left: 0; }
.facts b { display: block; font-size: 1.9rem; font-variation-settings: "wdth" 110; letter-spacing: -0.02em; margin-bottom: 4px; }
.facts span { color: var(--mute); font-size: .95rem; }

/* ---------- CTA band ---------- */
.band .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: center; }
.band h2 { margin-bottom: 10px; }
.band .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0 0 28px; border-top: 2px solid var(--graphite); }
.contact-list li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list .k { color: var(--mute); font-size: .9rem; font-variation-settings: "wdth" var(--w-cond); padding-top: 2px; }
.contact-list a { color: var(--steel); text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.contact-list small { display: block; color: var(--mute); font-size: .85rem; }
.maplink { font-size: .9rem; margin-top: 10px; }
.maplink a { color: var(--steel); }
.mapframe { width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--line); background: var(--concrete); }
.mapframe iframe { width: 100%; height: 100%; border: 0; }

form.inquiry { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .9rem; color: var(--mute); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--graphite); width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--steel); box-shadow: 0 0 0 3px rgba(36,75,110,.18); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: .88rem; color: var(--mute); margin: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #b7c3ce; padding: 48px 0 32px; font-size: .92rem; }
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: var(--white); font-size: .95rem; margin-bottom: 12px; font-variation-settings: "wdth" 105; }
.site-footer a { color: #d6dee6; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--line-dark); padding-top: 20px; margin-top: 12px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: #8a99a8; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap, .regions, .contact, .band .wrap, .section-head { grid-template-columns: 1fr; }
  .band .actions { justify-content: flex-start; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { border-left: 0; padding-left: 0; }
  .partners { grid-template-columns: repeat(3, 1fr); }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; background: var(--ink); padding: 12px var(--gutter) 20px; border-bottom: 1px solid var(--line-dark); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; font-size: 1.05rem; }
  .nav .cta { margin: 8px 0 0; }
  .nav-toggle { display: inline-block; }
  .hero .proof { grid-template-columns: 1fr 1fr; gap: 16px 24px; }
  .steps { grid-template-columns: 1fr; }
  .step { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .dark .step { border-color: var(--line-dark); }
  .step:first-child { border-top: 0; }
  .schedule, .schedule tbody, .schedule tr, .schedule td { display: block; }
  .schedule thead { display: none; }
  .schedule tr { padding: 18px 0; border-bottom: 1px solid var(--line); }
  .schedule td { padding: 4px 0; border: 0; width: auto !important; }
  .schedule .ico { padding-bottom: 10px; }
  .region-list li { grid-template-columns: 1fr; gap: 2px; }
  .region-list .head { display: none; }
  .partners { grid-template-columns: 1fr 1fr; }
  .people, .facts, .row2 { grid-template-columns: 1fr; }
  .facts > div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .facts > div:first-child { border-top: 0; }
  .contact-list li { grid-template-columns: 1fr; gap: 4px; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .titleblock { margin-left: 0; }
}

/* ---------- about: world map ---------- */
.mapgrid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.worldmap { width: 100%; height: auto; max-height: 78vh; }
.worldmap .land { fill: none; stroke: #3f6f98; stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 0 4; }
.worldmap .arc { fill: none; stroke: #f5c518; stroke-width: 1.4; stroke-dasharray: 6 5; opacity: .75; }
.worldmap .arc.draw { stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 1.8s .3s var(--ease) forwards; }
.worldmap .pin .core { fill: #f5c518; }
.worldmap .pin .hq { fill: none; stroke: #f5c518; stroke-width: 2.5; }
.worldmap .pin .ring { fill: none; stroke: #f5c518; stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; animation: ring 2.8s ease-out infinite; }
.worldmap .pin:nth-child(2) .ring { animation-delay: .5s; } .worldmap .pin:nth-child(3) .ring { animation-delay: 1s; } .worldmap .pin:nth-child(4) .ring { animation-delay: 1.5s; } .worldmap .pin:nth-child(5) .ring { animation-delay: 2s; }
.worldmap .lbl { fill: #e6edf3; font-family: Archivo, sans-serif; font-size: 21px; font-weight: 600; paint-order: stroke; stroke: #0c1b2a; stroke-width: 5px; stroke-linejoin: round; }
.worldmap .sub { fill: #b7c3ce; font-family: Archivo, sans-serif; font-size: 15px; paint-order: stroke; stroke: #0c1b2a; stroke-width: 4px; }
@keyframes ring { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .worldmap .ring { display: none; } .worldmap .arc.draw { animation: none; stroke-dasharray: 6 5; stroke-dashoffset: 0; } }

.loc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-dark); }
.loc-list li { padding: 18px 0; border-bottom: 1px solid var(--line-dark); display: grid; grid-template-columns: 18px 1fr; gap: 14px; align-items: start; }
.loc-list .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--hivis); margin-top: 6px; }
.loc-list .dot.hq { background: none; border: 2.5px solid var(--hivis); border-radius: 0; }
.loc-list b { display: block; font-size: 1.1rem; font-variation-settings: "wdth" 108; }
.loc-list span { color: #b7c3ce; font-size: .95rem; }
.loc-list small { display: block; color: #8a99a8; font-size: .85rem; margin-top: 2px; }

/* ---------- about: marks (standards, formats) ---------- */
.marks { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.mark { border: 1px solid var(--line); background: var(--white); padding: 18px 14px; min-height: 96px; display: flex; flex-direction: column; justify-content: flex-end; }
.mark b { display: block; font-size: 1.15rem; font-variation-settings: "wdth" 110; letter-spacing: -0.01em; line-height: 1.1; }
.mark span { color: var(--mute); font-size: .82rem; margin-top: 6px; font-variation-settings: "wdth" var(--w-cond); }
.mark.fmt { background: var(--ink); color: var(--white); border-color: var(--ink); }
.mark.fmt span { color: #b7c3ce; }
.marks + .marks { margin-top: 12px; }

.team-hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 80px); align-items: end; }
.quote { border-left: 3px solid var(--hivis); padding-left: 20px; font-size: 1.15rem; line-height: 1.5; color: #d6dee6; max-width: 40ch; }

@media (max-width: 960px) { .mapgrid, .team-hero { grid-template-columns: 1fr; } .marks { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .marks { grid-template-columns: repeat(2, 1fr); } .worldmap { max-height: none; } }
