/* ============================================================
   Control Hub — con-hub.com
   Design system: "the control layer made visible"
   Dark instrument-panel aesthetic. Brand: black + orange #D45216
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Canvas & structure */
  --ink:        #0a0a0b;   /* near-black canvas */
  --ink-2:      #141417;   /* raised surface */
  --ink-3:      #1d1d22;   /* card / panel */
  --line:       #2a2a31;   /* hairline borders */
  --line-2:     #3a3a43;   /* stronger border */

  /* Text */
  --fg:         #f2f2f0;   /* primary text */
  --fg-2:       #b4b4bd;   /* secondary text */
  --fg-3:       #7d7d88;   /* muted / captions */

  /* Brand accent */
  --orange:     #d45216;   /* Control Hub orange */
  --orange-lo:  #e8702f;   /* hover / lighter */
  --orange-dim: rgba(212, 82, 22, 0.12); /* wash */

  /* Type */
  --sans: "Archivo", "Segoe UI", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, sans-serif;

  /* Scale */
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --step-1:  clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-2:  clamp(1.6rem, 1.4rem + 1vw, 2.1rem);
  --step-3:  clamp(2.1rem, 1.7rem + 2vw, 3.2rem);
  --step-4:  clamp(2.8rem, 2rem + 3.6vw, 4.8rem);

  /* Space */
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);
  --maxw: 1180px;

  --radius: 4px;
  --radius-lg: 10px;
  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--fg);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button, input, textarea, select { font: inherit; color: inherit; }

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

/* ---------- Layout primitives ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 6vw, 4rem); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--fg);
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -0.01em; }
p { max-width: 68ch; }
strong { color: var(--fg); font-weight: 600; }

.lead {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--fg-2);
  font-weight: 400;
  max-width: 54ch;
}

/* A quiet label that encodes a section's role — not all-caps, not an eyebrow cliché.
   Uses a leading tick mark to echo a schematic callout. */
.marker {
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 0.6ch;
  letter-spacing: 0;
  margin-bottom: 1.2rem;
}
.marker::before {
  content: "";
  width: 1.6ch;
  height: 1px;
  background: var(--orange);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6ch;
  font-family: var(--sans);
  font-weight: 500;
  font-size: var(--step-0);
  padding: 0.85em 1.5em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn--primary {
  background: var(--orange);
  color: #fff;
}
.btn--primary:hover { background: var(--orange-lo); }
.btn--ghost {
  border-color: var(--line-2);
  color: var(--fg);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--fg-3); background: var(--ink-2); }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 11, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7ch;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.brand__logo { height: 64px; width: auto; flex: none; }
.site-footer .brand__logo { height: 96px; }
.brand__name { display: flex; flex-direction: column; line-height: 1.15; }
.brand__title { font-family: var(--sans); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.01em; color: var(--fg); }
.brand__sub { font-family: var(--body); font-weight: 400; font-size: 0.78rem; color: var(--fg-3); }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
}
.nav a {
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--fg-2);
  transition: color 0.15s ease;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
.nav a[aria-current="page"] { color: var(--orange); }

.nav-toggle { display: none; }

.nav .nav__login {
  display: inline-flex; align-items: center; gap: 0.5ch;
  padding: 0.5em 1em; margin-left: 0.4rem;
  border: 1px solid var(--orange); border-radius: var(--radius);
  color: var(--fg);
}
.nav .nav__login:hover { background: var(--orange); color: #fff; }
.nav__login-icon { width: 14px; height: 14px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink-2);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  color: var(--fg-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
}
.site-footer h4 {
  font-size: var(--step--1);
  color: var(--fg-3);
  font-weight: 500;
  margin-bottom: 1rem;
}
.site-footer a { color: var(--fg-2); transition: color 0.15s ease; }
.site-footer a:hover { color: var(--orange); }
.footer-links li { margin-bottom: 0.6rem; }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: var(--step--1);
  color: var(--fg-3);
}

/* ---------- Utilities ---------- */
.stack > * + * { margin-top: 1.1rem; }
.center { text-align: center; }
.muted { color: var(--fg-3); }
.accent { color: var(--orange); }

/* ============================================================
   Page components
   ============================================================ */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3.5rem, 8vw, 6rem);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 { max-width: 12ch; }
.hero .lead { margin-top: 1.5rem; }
.hero__actions { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 2.2rem; }

/* The one bold moment: systems converging on the hub */
.schematic { width: 100%; height: auto; }
.schematic .node rect { fill: var(--ink-3); stroke: var(--line-2); stroke-width: 1; }
.schematic .node text {
  fill: var(--fg-2); font-family: var(--sans); font-size: 13px; font-weight: 500;
}
.schematic .wire {
  fill: none; stroke: var(--line-2); stroke-width: 1.2;
}
.schematic .signal {
  fill: none; stroke: var(--orange); stroke-width: 1.6;
  stroke-dasharray: 400; stroke-dashoffset: 400;
  animation: signal 1.4s cubic-bezier(.6,.1,.3,1) forwards;
}
.schematic .signal:nth-of-type(2) { animation-delay: .15s; }
.schematic .signal:nth-of-type(3) { animation-delay: .3s; }
.schematic .signal:nth-of-type(4) { animation-delay: .45s; }
.schematic .signal:nth-of-type(5) { animation-delay: .6s; }
.schematic .signal:nth-of-type(6) { animation-delay: .75s; }
.schematic .hub-ring { fill: var(--ink); stroke: var(--line-2); }
.schematic .hub-arc {
  fill: none; stroke: var(--orange); stroke-width: 7; stroke-linecap: round;
  opacity: 0; animation: hubon .5s ease 1.6s forwards;
}
.schematic .hub-label { fill: var(--fg); font-family: var(--sans); font-weight: 700; font-size: 15px; }
.schematic .dot { fill: var(--orange); opacity: 0; animation: hubon .3s ease forwards; }
@keyframes signal { to { stroke-dashoffset: 0; } }
@keyframes hubon { to { opacity: 1; } }

/* ---------- Page header (inner pages) ---------- */
.page-head {
  padding-block: clamp(3.5rem, 8vw, 6rem) clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--line);
}
.page-head h1 { max-width: 16ch; }
.page-head .lead { margin-top: 1.3rem; }

/* ---------- Split: heading left, content right ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.split h2 { max-width: 13ch; }

/* ---------- Pillars: three columns divided by rules, not boxed cards ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line);
}
.pillar {
  padding: 2rem clamp(1.25rem, 2.5vw, 2rem) 0.5rem 0;
}
.pillar + .pillar {
  border-left: 1px solid var(--line);
  padding-left: clamp(1.25rem, 2.5vw, 2rem);
}
.pillar__icon { width: 40px; height: 40px; margin-bottom: 1.4rem; }
.pillar h3 { margin-bottom: 0.4rem; }
.pillar .tagline { color: var(--orange); font-family: var(--sans); font-weight: 500; margin-bottom: 0.8rem; }
.pillar p { color: var(--fg-2); }

/* ---------- Reasons: definition list ---------- */
.reasons { display: grid; gap: 0; }
.reason {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: 1.5rem;
  padding-block: 1.4rem;
  border-top: 1px solid var(--line);
}
.reason:last-child { border-bottom: 1px solid var(--line); }
.reason dt { font-family: var(--sans); font-weight: 600; font-size: var(--step-1); line-height: 1.25; }
.reason dd { color: var(--fg-2); margin: 0; }

/* ---------- Band (lead-in to another page) ---------- */
.band {
  background: var(--ink-2);
  border-block: 1px solid var(--line);
}
.band .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: end;
}
.band p { color: var(--fg-2); margin-top: 0.9rem; }

/* ---------- Closing call to action ---------- */
.cta {
  position: relative;
  padding-block: clamp(4.5rem, 10vw, 8rem);
  overflow: hidden;
}
.cta h2 { max-width: 15ch; }
.cta p { color: var(--fg-2); margin-top: 1.2rem; max-width: 52ch; }
.cta .btn { margin-top: 2rem; }
.cta__arc {
  position: absolute;
  right: -40px; top: 50%;
  width: 300px; height: auto;
  transform: translateY(-50%);
  opacity: 0.16;
  pointer-events: none;
}

/* ---------- Services (data-driven) ---------- */
.service {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: clamp(1.5rem, 5vw, 4.5rem);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line);
}
.service:first-of-type { border-top: 0; }
.service__head h2 { font-size: var(--step-2); }
.service__head .tagline { color: var(--orange); font-family: var(--sans); font-weight: 500; margin-top: 0.6rem; }
.service__body > p { color: var(--fg-2); }
.service__list {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1.8rem;
}
.service__list li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--fg);
  font-size: var(--step--1);
  line-height: 1.5;
}
.service__list li::before {
  content: "";
  position: absolute; left: 0; top: 0.6em;
  width: 6px; height: 6px;
  border: 1.5px solid var(--orange);
  border-radius: 50%;
}

/* ---------- Projects: spec-sheet cards ---------- */
.filters { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filter {
  font-family: var(--sans); font-size: var(--step--1); font-weight: 500;
  padding: 0.45em 1em;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  color: var(--fg-2);
  cursor: pointer;
}
.filter:hover { color: var(--fg); border-color: var(--fg-3); }
.filter[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: #fff; }

.projects { display: grid; gap: 1.5rem; }
.project {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.3fr);
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.project__media {
  position: relative;
  min-height: 240px;
  background: var(--ink-3);
  border-right: 1px solid var(--line);
}
.project__media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.project__placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--ink-3);
}
.project__placeholder img { width: auto; height: 110px; position: static; object-fit: contain; }
.project__body { padding: clamp(1.5rem, 3vw, 2.2rem); }
.project__meta { color: var(--fg-3); font-size: var(--step--1); margin-bottom: 0.5rem; }
.project h3 { font-size: var(--step-1); margin-bottom: 1.2rem; }
.spec { display: grid; gap: 0.9rem; }
.spec div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; }
.spec dt { color: var(--fg-3); font-size: var(--step--1); padding-top: 0.15em; }
.spec dd { margin: 0; color: var(--fg-2); font-size: var(--step--1); line-height: 1.55; }
.tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 1.4rem; }
.tag {
  font-size: 0.78rem; font-family: var(--sans); font-weight: 500;
  padding: 0.25em 0.75em;
  border-radius: 999px;
  background: var(--orange-dim);
  color: var(--orange-lo);
}
.empty { color: var(--fg-3); padding: 2rem 0; }

/* ---------- About ---------- */
.prose > * + * { margin-top: 1.1rem; }
.prose p { color: var(--fg-2); }
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.fact { padding: 1.6rem 1.5rem 0 0; }
.fact + .fact { border-left: 1px solid var(--line); padding-left: 1.5rem; }
.fact dt { color: var(--fg-3); font-size: var(--step--1); }
.fact dd { margin: 0.35rem 0 0; font-family: var(--sans); font-weight: 600; font-size: var(--step-1); line-height: 1.3; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.form { display: grid; gap: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { display: grid; gap: 0.45rem; }
.field label { font-size: var(--step--1); color: var(--fg-2); font-weight: 500; }
.field .opt { color: var(--fg-3); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--ink-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 0.8em 0.95em;
  font-size: var(--step-0);
  color: var(--fg);
  transition: border-color 0.15s ease;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--fg-3) 50%), linear-gradient(135deg, var(--fg-3) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); }
.form .btn { justify-self: start; margin-top: 0.4rem; }
.form-status { font-size: var(--step--1); min-height: 1.5em; }
.form-status[data-state="ok"] { color: #6fcf8e; }
.form-status[data-state="error"] { color: var(--orange-lo); }

.details { display: grid; gap: 1.6rem; }
.details dt { color: var(--fg-3); font-size: var(--step--1); margin-bottom: 0.3rem; }
.details dd { margin: 0; color: var(--fg); }
.details a:hover { color: var(--orange); }
.note { color: var(--fg-3); font-size: var(--step--1); }
.wa-link { display: inline-flex; align-items: center; gap: 0.55ch; }
.wa-icon { width: 22px; height: 22px; fill: #25d366; flex: none; }


/* ---------- Systems we work with ---------- */
.systems { display: grid; margin: 0; }
.system {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: 1.5rem;
  align-items: baseline;
  padding-block: 1.15rem;
  border-top: 1px solid var(--line);
}
.system:last-child { border-bottom: 1px solid var(--line); }
.system dt { color: var(--fg-3); font-size: var(--step--1); }
.system dd { margin: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 1.6rem; }
.brand-name { font-family: var(--sans); font-weight: 600; font-size: var(--step-1); color: var(--fg); letter-spacing: -0.01em; }
.system dd { gap: 0.6rem; }
.plate {
  display: inline-flex; align-items: center; justify-content: center;
  height: 58px; min-width: 120px; padding: 8px 16px;
  background: #fff; border-radius: 6px;
}
.plate img { max-height: 40px; max-width: 150px; width: auto; height: auto; }
.plate--text { font-family: var(--sans); font-weight: 600; font-size: 1.02rem; color: #1c1c1c; }

/* ---------- Service photo ---------- */
.service__img {
  margin-top: 1.6rem;
  aspect-ratio: 4 / 3; max-width: 100%;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}
.service__img img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Solutions ---------- */
.solutions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.solution {
  display: flex; flex-direction: column;
  background: var(--ink-2); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
}
.solution__img { aspect-ratio: 4 / 3; max-width: 100%; background: #fff; border-bottom: 1px solid var(--line); }
.solution__img img { width: 100%; height: 100%; object-fit: contain; }
.solution__body { padding: 1.2rem 1.25rem 1.4rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.solution h3 { font-size: 1.12rem; line-height: 1.25; }
.solution p { color: var(--fg-2); font-size: var(--step--1); line-height: 1.55; }
.solution__brands { margin-top: auto; padding-top: 0.4rem; color: var(--orange-lo) !important; font-family: var(--sans); font-weight: 500; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem; align-items: end; margin-bottom: 2.2rem; }
.section-head p { color: var(--fg-2); margin-top: 0.8rem; }

/* ---------- Power services (Home) ---------- */
.band .wrap.power {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.power__list { margin: 1.8rem 0 2rem; display: grid; border-top: 1px solid var(--line); }
.power__list li {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr); gap: 1rem;
  padding-block: 0.85rem; border-bottom: 1px solid var(--line);
}
.power__list strong { font-family: var(--sans); font-weight: 600; }
.power__list span { color: var(--fg-2); font-size: var(--step--1); line-height: 1.5; }
.power__media { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.power__img {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); aspect-ratio: 4 / 3; max-width: 100%;
}
.power__img--wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.power__img img { width: 100%; height: 100%; object-fit: contain; }
.protocols { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin-top: 1.6rem; }
.protocols .label { color: var(--fg-3); font-size: var(--step--1); margin-right: 0.6rem; }
.systems-more { margin-top: 1.8rem; }
.band .wrap.split { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); align-items: start; }


/* ---------- The four main sections (Services page) ---------- */
.area { padding-block: clamp(3rem, 6vw, 4.5rem); border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.area:first-child { border-top: 0; }
.area__top {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.area__head h2 { font-size: var(--step-3); max-width: 16ch; text-wrap: balance; }
.area__head .tagline { color: var(--orange); font-family: var(--sans); font-weight: 500; margin-top: 0.7rem; font-size: var(--step-1); }
.area__summary { color: var(--fg-2); margin: 1.1rem 0 1.8rem; }
.area__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.area__img, .area-card__img {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; aspect-ratio: 16 / 10; max-width: 100%;
}
.area__img img, .area-card__img img { width: 100%; height: 100%; object-fit: contain; }
.area__img--screen, .area-card__img--screen { background: var(--ink-3); }
.area__img--screen img, .area-card__img--screen img { object-fit: cover; object-position: left top; }
.area__img--photo, .area-card__img--photo { background: var(--ink-3); }
.area__img--photo img, .area-card__img--photo img { object-fit: cover; }
.area__img--photo { aspect-ratio: 4 / 3; }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.gallery figure { margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.gallery img {
  width: 100%; aspect-ratio: 4 / 5; max-width: 100%; object-fit: cover;
  border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--ink-3);
}
.gallery figcaption { color: var(--fg-3); font-size: var(--step--1); }
.area__img--brand, .area-card__img--brand {
  display: flex; align-items: center; justify-content: center; position: relative;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--ink-3);
}
.area__img img.brand-mark, .area-card__img img.brand-mark { position: absolute; inset: 0; margin: auto; width: auto; height: 58%; object-fit: contain; }

.offers { display: grid; margin-top: clamp(2.2rem, 4vw, 3rem); border-top: 1px solid var(--line); }
.offers--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.offers--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.offer { padding: 1.5rem 1.6rem 1.6rem 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.5rem; }
.offers--3 .offer:not(:nth-child(3n+1)), .offers--2 .offer:nth-child(2n) { padding-left: 1.6rem; border-left: 1px solid var(--line); }
.offer h3 { font-size: 1.12rem; line-height: 1.3; }
.offer p { color: var(--fg-2); font-size: var(--step--1); line-height: 1.55; }
.offer .offer__brands { color: var(--orange-lo); font-family: var(--sans); font-weight: 500; margin-top: auto; padding-top: 0.3rem; }

/* ---------- The four main sections (Home cards) ---------- */
.areas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.area-card {
  display: flex; flex-direction: column;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; transition: border-color 0.18s ease;
}
.area-card:hover { border-color: var(--orange); }
.area-card__img { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; aspect-ratio: 16 / 8; }
.area-card__body { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.area-card h3 { font-size: var(--step-2); }
.area-card .tagline { color: var(--orange); font-family: var(--sans); font-weight: 500; }
.area-card__list { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.9rem 0 1.2rem; }
.area-card__list li {
  font-size: 0.8rem; padding: 0.3em 0.8em; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--fg-2);
}
.area-card__more { margin-top: auto; font-family: var(--sans); font-weight: 500; color: var(--fg); }
.area-card:hover .area-card__more { color: var(--orange-lo); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero__visual { max-width: 520px; }
  .project { grid-template-columns: 1fr; }
  .solutions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .area__top { grid-template-columns: 1fr; }
  .offers--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offers--3 .offer { padding-left: 0; border-left: 0; }
  .offers--3 .offer:nth-child(2n) { padding-left: 1.6rem; border-left: 1px solid var(--line); }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillar:nth-child(3) { border-left: 0; padding-left: 0; }
  .pillar:nth-child(n+3) { border-top: 1px solid var(--line); }
  .project__media { border-right: 0; border-bottom: 1px solid var(--line); min-height: 200px; }
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .split, .service, .contact-grid, .band .wrap, .band .wrap.split, .band .wrap.power { grid-template-columns: 1fr; }
  .power__list li { grid-template-columns: 1fr; gap: 0.2rem; }
  .pillars, .facts { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar, .fact, .fact + .fact {
    border-left: 0; padding-left: 0; padding-right: 0;
  }
  .pillar + .pillar, .fact + .fact { border-top: 1px solid var(--line); margin-top: 1.5rem; }
  .reason, .system { grid-template-columns: 1fr; gap: 0.4rem; }
  .service__list { grid-template-columns: 1fr; }
  .solutions { grid-template-columns: 1fr; }
  .areas, .offers--3, .offers--2 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery figure:last-child { grid-column: 1 / -1; }
  .gallery figure:last-child img { aspect-ratio: 16 / 10; }
  .offers .offer, .offers--3 .offer:nth-child(2n), .offers--2 .offer:nth-child(2n) { padding: 1.2rem 0; border-left: 0; }
  .section-head { grid-template-columns: 1fr; }
  .plate { height: 50px; min-width: 0; padding: 6px 12px; }
  .plate img { max-height: 34px; max-width: 120px; }
  .form-row { grid-template-columns: 1fr; }
  .spec div { grid-template-columns: 1fr; gap: 0.2rem; }
  .cta__arc { width: 200px; right: -70px; opacity: 0.12; }
  .schematic .node text { font-size: 17px; }

  .nav {
    position: fixed;
    inset: 84px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--ink-2);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.5rem;
    transform: translateY(calc(-100% - 84px));
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0s linear 0.25s;
  }
  .nav[data-open="true"] { transform: translateY(0); visibility: visible; transition: transform 0.25s ease; }
  .nav a { padding: 0.8rem 0; width: 100%; font-size: var(--step-0); border-bottom: 1px solid var(--line); }
  .nav .nav__login { margin: 1rem 0 0; width: auto; justify-content: center; padding: 0.75em 1.2em; border-bottom: 1px solid var(--orange); }

  .site-header .brand__logo { height: 52px; }
  .brand__title { font-size: 1.05rem; }
  .brand__sub { font-size: 0.72rem; }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
  }
  .nav-toggle span {
    width: 22px; height: 2px; background: var(--fg); border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
