/* ==========================================================================
   DVNext.Tech — Main stylesheet
   --------------------------------------------------------------------------
   HOW TO CHANGE BRAND COLOURS: edit the variables in ":root" below.
   Every page uses them, so one change updates the whole website.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var-latin.woff2") format("woff2-variations"),
       url("../fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand colours (matched to the DVNext.Tech logo) */
  --navy: #001e66;          /* logo navy: headings, navigation, dark sections */
  --navy-deep: #00143f;
  --navy-soft: #0b2f7d;
  --blue: #0753b8;          /* primary blue: buttons, links */
  --blue-hover: #05439a;
  --blue-logo: #007ae3;     /* logo "x" blue: icons and accents */
  --cyan: #00aeef;          /* bright cyan: highlights on dark backgrounds */
  --cyan-soft: #7fd8f7;

  /* Neutrals */
  --text: #17243a;
  --text-soft: #475569;
  --grey: #64748b;
  --line: #dde4ee;
  --line-soft: #e9eef5;
  --white: #ffffff;
  --bg-light: #f5f8fc;
  --tint: #eaf3fd;

  /* On dark backgrounds */
  --on-dark: #ffffff;
  --on-dark-soft: #c9d6ea;
  --on-dark-muted: #9fb2d0;
  --dark-line: rgba(255, 255, 255, 0.14);

  /* Typography */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.1875rem;
  --fs-h3: 1.1875rem;
  --fs-h2: clamp(1.7rem, 1.3rem + 1.5vw, 2.4rem);
  --fs-h1: clamp(2.15rem, 1.45rem + 2.9vw, 3.6rem);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1rem, 0.6rem + 2vw, 2rem);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(0, 30, 102, 0.06), 0 1px 3px rgba(0, 30, 102, 0.05);
  --shadow: 0 2px 6px rgba(0, 30, 102, 0.05), 0 14px 32px -14px rgba(0, 30, 102, 0.18);
  --header-h: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; font-family: var(--font); font-size: var(--fs-base); line-height: 1.65;
  color: var(--text); background: var(--white);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 0.6em; letter-spacing: -0.02em; color: var(--navy); font-weight: 700; }
h1 { font-size: var(--fs-h1); letter-spacing: -0.03em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
strong { font-weight: 650; }

:focus-visible { outline: 3px solid var(--blue-logo); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible, .page-hero :focus-visible, .section--navy :focus-visible, .cta-band :focus-visible { outline-color: var(--cyan); }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--navy); color: #fff; padding: 0.75rem 1rem; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; color: #fff; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 860px; }

/* ---------- Icons ---------- */
.i { width: 1em; height: 1em; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 48px; padding: 0.75rem 1.4rem;
  font: inherit; font-size: var(--fs-sm); font-weight: 600; line-height: 1.2;
  border-radius: 10px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-hover); color: #fff; transform: translateY(-1px); }
.btn--accent { background: var(--cyan); color: var(--navy-deep); }
.btn--accent:hover { background: #33c1f4; color: var(--navy-deep); transform: translateY(-1px); }
.btn--outline { border-color: var(--line); color: var(--navy); background: #fff; }
.btn--outline:hover { border-color: var(--navy); color: var(--navy); }
.btn--ghost-light { border-color: rgba(255,255,255,0.35); color: #fff; background: transparent; }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); color: #fff; }
.btn[disabled] { opacity: 0.7; cursor: progress; transform: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.4rem; font-size: var(--fs-sm); font-weight: 600;
  color: var(--blue); text-decoration: none;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover { color: var(--navy); }
.link-arrow:hover svg, a:hover .link-arrow svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(10px); -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 8px 24px -18px rgba(0, 30, 102, 0.4); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 34px; width: auto; }

.primary-nav { display: flex; align-items: center; gap: 1.5rem; }
.nav-list { display: flex; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.nav-list > li { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.55rem 0.8rem; border-radius: var(--radius-sm);
  color: var(--navy); text-decoration: none; font-size: 0.95rem; font-weight: 550; white-space: nowrap;
  transition: background-color .15s, color .15s;
}
.nav-link:hover { background: var(--bg-light); color: var(--blue); }
.nav-link[aria-current="page"], .has-sub.is-active > .nav-row > .nav-link { color: var(--blue); }
.nav-link[aria-current="page"] { background: var(--tint); }

.nav-row { display: flex; align-items: center; }
.sub-toggle {
  display: inline-grid; place-items: center; width: 32px; height: 32px; margin-left: -0.35rem;
  border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--navy); cursor: pointer;
}
.sub-toggle:hover { background: var(--bg-light); }
.sub-toggle svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.has-sub.is-open .sub-toggle svg { transform: rotate(180deg); }

.sub-menu {
  list-style: none; margin: 0; padding: 0.5rem;
  position: absolute; top: calc(100% + 10px); left: -1rem; width: 380px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s linear .18s;
}
.sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu, .has-sub.is-open > .sub-menu {
  opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
}
.js .has-sub.is-closed > .sub-menu { opacity: 0; visibility: hidden; transform: translateY(6px); }
.sub-menu a {
  display: grid; grid-template-columns: 40px 1fr; gap: 0.15rem 0.85rem; align-items: start;
  padding: 0.7rem 0.75rem; border-radius: 10px; text-decoration: none; color: var(--text);
}
.sub-menu a:hover, .sub-menu a[aria-current="page"] { background: var(--bg-light); }
.sub-menu .icon-badge { grid-row: span 2; width: 40px; height: 40px; margin: 0; border-radius: 10px; }
.sub-menu .icon-badge svg { width: 20px; height: 20px; }
.sub-menu strong { font-size: 0.95rem; color: var(--navy); line-height: 1.3; }
.sub-menu small { font-size: var(--fs-xs); color: var(--grey); line-height: 1.4; }

.nav-cta { padding-inline: 1.2rem; }

.nav-toggle {
  display: none; align-items: center; justify-content: center; width: 46px; height: 46px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--navy); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 920px) {
  :root { --header-h: 68px; }
  .brand img { height: 28px; }
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 1rem;
    max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    padding: 0.75rem var(--gutter) 1.5rem; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(0, 30, 102, 0.35);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
  }
  .primary-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line-soft); }
  .nav-link { padding: 0.9rem 0.25rem; font-size: 1.05rem; flex: 1; border-radius: 0; }
  .nav-link:hover, .nav-link[aria-current="page"] { background: transparent; }
  .nav-row { justify-content: space-between; }
  .sub-toggle { width: 44px; height: 44px; margin: 0; }
  .sub-menu {
    position: static; width: auto; padding: 0 0 0.75rem; border: 0; box-shadow: none; border-radius: 0;
    opacity: 1; visibility: visible; transform: none; display: none;
  }
  .sub-menu::before { content: none; }
  .has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu { display: none; }
  .has-sub.is-open > .sub-menu { display: block; }
  .sub-menu a { padding: 0.6rem 0.5rem; }
  .nav-cta { width: 100%; }
  body.nav-open { overflow: hidden; }
  /* Without JavaScript the menu and service links stay visible */
  .no-js .primary-nav { position: static; visibility: visible; opacity: 1; transform: none; box-shadow: none; border: 0; padding: 0 0 1rem; max-height: none; }
  .no-js .header-inner { flex-wrap: wrap; height: auto; padding-top: 0.75rem; }
  .no-js .nav-toggle, .no-js .sub-toggle { display: none; }
  .no-js .sub-menu { display: block; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 2.6rem + 3.5vw, 5.75rem); }
.section--light { background: var(--bg-light); }
.section--tight { padding-block: clamp(2.5rem, 2rem + 2vw, 3.75rem); }
.section--navy {
  background: radial-gradient(900px 420px at 90% -10%, rgba(0, 174, 239, 0.14), transparent 60%), var(--navy);
  color: var(--on-dark-soft);
}
.section--navy h2, .section--navy h3 { color: #fff; }
.section-head { max-width: 700px; margin-bottom: clamp(2rem, 1.6rem + 1.6vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--text-soft); font-size: var(--fs-lg); margin: 0; }
.section--navy .section-head p { color: var(--on-dark-soft); }
.eyebrow {
  display: inline-block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 0.85rem;
}
.hero .eyebrow, .page-hero .eyebrow, .section--navy .eyebrow { color: var(--cyan); }

.grid { display: grid; gap: clamp(1rem, 0.7rem + 1vw, 1.5rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate; color: var(--on-dark-soft);
  background: radial-gradient(800px 480px at 80% 35%, rgba(0, 122, 227, 0.28), transparent 65%), var(--navy);
  padding-block: clamp(3.25rem, 2rem + 5vw, 6rem);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.55;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 65% 45%, #000 25%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 70% at 65% 45%, #000 25%, transparent 75%);
}
.hero__grid { display: grid; grid-template-columns: 1.08fr 1fr; align-items: center; gap: clamp(2rem, 1rem + 4vw, 4rem); }
.hero h1 { color: #fff; margin-bottom: 0.5em; }
.hero h1 span { color: var(--cyan); }
.hero__text { font-size: var(--fs-lg); max-width: 37rem; }
.hero__text + .hero__text { margin-top: -0.25rem; }
.hero__serving {
  display: inline-flex; align-items: center; gap: 0.6rem; margin: 0.5rem 0 2rem;
  font-weight: 600; color: #fff; font-size: var(--fs-sm);
  padding: 0.45rem 0.9rem 0.45rem 0.7rem; border: 1px solid var(--dark-line); border-radius: 999px; background: rgba(255,255,255,0.05);
}
.hero__serving svg { width: 18px; height: 18px; color: var(--cyan); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero__visual img { width: 100%; height: auto; }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__visual { max-width: 500px; margin-inline: auto; width: 100%; }
}
@media (max-width: 480px) { .hero__actions .btn, .page-hero__actions .btn { width: 100%; } }

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate; color: var(--on-dark-soft);
  background: radial-gradient(640px 360px at 92% 0%, rgba(0, 122, 227, 0.3), transparent 65%), var(--navy);
  padding-block: clamp(2.75rem, 2rem + 3.5vw, 4.75rem);
}
.page-hero::after {
  content: ""; position: absolute; right: -90px; top: 50%; width: 440px; height: 440px; transform: translateY(-50%); z-index: -1;
  background: url("../images/pattern-nodes.svg") center / contain no-repeat; opacity: 0.5;
}
.page-hero h1 { color: #fff; font-size: clamp(1.95rem, 1.4rem + 2.4vw, 3.1rem); max-width: 22ch; }
.page-hero .lead { color: var(--on-dark-soft); max-width: 46rem; margin: 0; font-size: var(--fs-lg); }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
@media (max-width: 700px) { .page-hero::after { opacity: 0.22; right: -220px; } }
.breadcrumb { font-size: var(--fs-xs); margin-bottom: 1.1rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--on-dark-muted); }
.breadcrumb li + li::before { content: "/"; opacity: 0.5; }
.breadcrumb a { color: var(--on-dark-soft); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }

/* ---------- Cards ---------- */
.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.35rem, 1.1rem + 0.8vw, 1.85rem); box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.card h3 { margin-bottom: 0.45rem; }
.card > p { color: var(--text-soft); font-size: var(--fs-sm); }
.card > p:last-child { margin-bottom: 0; }
.card--link { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #c3d3ea; color: inherit; }
.card--link .link-arrow { margin-top: auto; padding-top: 0.75rem; }

.icon-badge {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; margin-bottom: 1.1rem;
  background: var(--tint); color: var(--blue-logo);
}
.icon-badge svg { width: 24px; height: 24px; }
.section--navy .icon-badge { background: rgba(0, 174, 239, 0.14); color: var(--cyan); }

.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.card-num { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; color: var(--grey); }
.letter {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
  background: var(--navy); color: #fff; font-size: var(--fs-xs); font-weight: 700;
}

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.check-list li { position: relative; padding-left: 1.7rem; font-size: var(--fs-sm); color: var(--text); line-height: 1.5; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.15em; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230753b8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5'/%3E%3C/svg%3E") center / 0.75rem no-repeat;
}
.section--navy .check-list li { color: var(--on-dark-soft); }
.section--navy .check-list li::before { background-color: rgba(0, 174, 239, 0.16); }
.card .check-list { margin-top: 1rem; }

/* Category cards on service pages */
.cat-card h3 { display: flex; align-items: center; gap: 0.7rem; font-size: 1.15rem; }
.cat-card .check-list { margin-top: 1.1rem; }

/* Value / process blocks */
.value { padding: 1.4rem 1.4rem 1.5rem; border-left: 3px solid var(--blue-logo); background: #fff; border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow-sm); }
.value h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.value p { margin: 0; font-size: var(--fs-sm); color: var(--text-soft); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; position: relative; }
.steps::before { content: ""; position: absolute; left: 26px; right: 26px; top: 26px; height: 2px; background: var(--line); }
.step { position: relative; }
.step__num {
  position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 700; margin-bottom: 1.1rem; box-shadow: 0 0 0 6px var(--white);
}
.section--light .step__num { box-shadow: 0 0 0 6px var(--bg-light); }
.step h3 { margin-bottom: 0.35rem; font-size: 1.1rem; }
.step p { margin: 0; color: var(--text-soft); font-size: var(--fs-sm); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; } .steps::before { display: none; } }
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Industries */
.chip-card {
  display: flex; align-items: center; gap: 0.85rem; padding: 0.95rem 1.1rem;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  font-weight: 600; font-size: var(--fs-sm); color: var(--navy); line-height: 1.35;
}
.chip-card .icon-badge { width: 40px; height: 40px; margin: 0; flex: none; border-radius: 10px; }
.chip-card .icon-badge svg { width: 20px; height: 20px; }
.fine-print { font-size: var(--fs-xs); color: var(--grey); margin: 1.25rem 0 0; }
.section--navy .fine-print { color: var(--on-dark-muted); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius-lg);
  padding: clamp(2rem, 1.4rem + 2.6vw, 3.5rem);
  background: radial-gradient(520px 300px at 100% 0%, rgba(0, 174, 239, 0.25), transparent 60%), var(--navy);
  color: var(--on-dark-soft);
  display: grid; grid-template-columns: 1.5fr auto; align-items: center; gap: 1.5rem 2rem;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.3;
  background: url("../images/pattern-nodes.svg") right -70px center / 400px no-repeat;
}
.cta-band h2 { color: #fff; margin-bottom: 0.35em; }
.cta-band p { margin: 0; font-size: var(--fs-lg); max-width: 40rem; }
@media (max-width: 760px) { .cta-band { grid-template-columns: minmax(0, 1fr); } .cta-band .btn { justify-self: start; } }

/* ---------- Notices ---------- */
.notice {
  display: flex; gap: 0.9rem; align-items: flex-start; padding: 1.15rem 1.3rem; border-radius: var(--radius);
  background: #f1f7ff; border: 1px solid #cfe0f8; color: var(--text-soft); font-size: var(--fs-sm);
}
.notice svg { width: 22px; height: 22px; color: var(--blue); flex: none; margin-top: 0.1rem; }
.notice p { margin: 0; }
.notice p + p { margin-top: 0.5rem; }
.notice strong { color: var(--navy); }
.notice--warn { background: #fff8eb; border-color: #f1dbab; }
.notice--warn svg { color: #9a5b00; }
.notice-stack { display: grid; gap: 1rem; }

/* ---------- Two-column feature ---------- */
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: start; }
.split .section-head { margin-bottom: 0; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* Protocol list (building automation) */
.protocols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; }
.protocol { padding: 1.05rem 1.15rem; border: 1px solid var(--dark-line); border-radius: 12px; background: rgba(255,255,255,0.04); }
.protocol h3 { font-size: 1rem; margin-bottom: 0.3rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.protocol p { margin: 0; font-size: var(--fs-sm); color: var(--on-dark-soft); line-height: 1.55; }
.qual { font-size: 0.6875rem; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; color: var(--cyan-soft); border: 1px solid rgba(127, 216, 247, 0.4); border-radius: 999px; padding: 0.1rem 0.5rem; }
@media (max-width: 640px) { .protocols { grid-template-columns: minmax(0, 1fr); } }
.why-open { display: grid; gap: 1rem; margin-top: 1.5rem; }
.why-open > div { display: flex; gap: 0.85rem; }
.why-open .icon-badge { margin: 0; width: 42px; height: 42px; flex: none; }
.why-open h3 { font-size: 1rem; margin-bottom: 0.2rem; }
.why-open p { margin: 0; font-size: var(--fs-sm); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; margin: 0; padding: 0; }
.tag-cloud li {
  display: inline-flex; align-items: center; gap: 0.5rem; font-size: var(--fs-sm); font-weight: 600; color: var(--navy);
  background: #fff; border: 1px solid var(--line); padding: 0.55rem 0.95rem; border-radius: 999px;
}
.tag-cloud svg { width: 17px; height: 17px; color: var(--blue-logo); }

.survey-note { margin-top: 1.25rem; font-size: var(--fs-sm); color: var(--text-soft); display: flex; gap: 0.6rem; align-items: flex-start; }
.survey-note svg { width: 20px; height: 20px; color: var(--blue-logo); flex: none; margin-top: 0.15rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: start; }
.prose p { font-size: var(--fs-lg); color: var(--text-soft); }
.focus-panel { background: var(--bg-light); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: 1.75rem; }
.focus-panel h2 { font-size: 1.35rem; }
@media (max-width: 860px) { .about-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(1.5rem, 1rem + 3vw, 3.25rem); align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: minmax(0, 1fr); } }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.25rem, 0.8rem + 2vw, 2.4rem); box-shadow: var(--shadow); }
.form-title { font-size: 1.5rem; margin-bottom: 0.3rem; }
.form-intro { font-size: var(--fs-sm); color: var(--grey); margin-bottom: 1.5rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.25rem; }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label, .field legend { font-size: var(--fs-sm); font-weight: 600; color: var(--navy); }
.optional { font-weight: 450; color: var(--grey); }
.req { color: #b42318; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0.7rem 0.9rem; font: inherit; font-size: 1rem; color: var(--text);
  background: #fff; border: 1.5px solid var(--line); border-radius: 10px; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.5rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23475569' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 7.5l5 5 5-5'/%3E%3C/svg%3E") right 0.8rem center / 1.1rem no-repeat;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #b7c6da; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(7, 83, 184, 0.15); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #b42318; }
.error { font-size: var(--fs-xs); color: #b42318; font-weight: 550; }
.error:empty { display: none; }
.hint { font-size: var(--fs-xs); color: var(--grey); }
.checkbox { display: flex; gap: 0.7rem; align-items: flex-start; font-size: var(--fs-sm); color: var(--text-soft); font-weight: 450 !important; }
.checkbox input { width: 20px; height: 20px; min-height: 0; margin-top: 0.15rem; accent-color: var(--blue); flex: none; }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.form-status { margin-top: 1.25rem; padding: 1rem 1.15rem; border-radius: 12px; font-size: var(--fs-sm); border: 1px solid transparent; }
.form-status:empty { display: none; }
.form-status p { margin: 0 0 0.4rem; }
.form-status p:last-child { margin: 0; }
.form-status--error { background: #fef3f2; border-color: #fecdca; color: #912018; }
.form-status--info { background: #f1f7ff; border-color: #cfe0f8; color: var(--navy); }
.form-status--success { background: #ecfdf3; border-color: #abefc6; color: #05603a; }

.contact-aside { display: grid; gap: 1.25rem; }
.aside-title { font-size: 1.1rem; margin-bottom: 1.1rem; }
.contact-list { display: grid; gap: 1.05rem; }
.contact-method { display: flex; gap: 0.9rem; align-items: flex-start; }
.contact-method .icon-badge { margin: 0; flex: none; width: 42px; height: 42px; }
.contact-method h3 { font-size: 0.95rem; margin: 0 0 0.15rem; }
.contact-method p { margin: 0; font-size: var(--fs-sm); color: var(--text-soft); overflow-wrap: anywhere; }
.next-steps { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.7rem; font-size: var(--fs-sm); color: var(--text-soft); }
.next-steps strong { color: var(--navy); }

/* Placeholder values from config.js */
.placeholder-value {
  display: inline-block; font-style: normal; font-size: 0.92em; line-height: 1.4;
  color: #7a4f00; background: #fff6e0; border: 1px dashed #dfb75e; border-radius: 6px; padding: 0.05rem 0.45rem;
}

/* ---------- Legal & status pages ---------- */
.legal { max-width: 780px; }
.legal h2 { font-size: 1.3rem; margin-top: 2.25rem; }
.legal p, .legal li { color: var(--text-soft); }
.legal li { margin-bottom: 0.35rem; }
.draft-banner { margin-bottom: 2rem; }
.status-page { padding-block: clamp(2rem, 1rem + 5vw, 5rem); text-align: center; }
.status-page h1 { font-size: clamp(1.9rem, 1.5rem + 2vw, 2.7rem); }
.status-page .lead { max-width: 34rem; margin-inline: auto; color: var(--text-soft); font-size: var(--fs-lg); }
.icon-badge--lg { width: 72px; height: 72px; border-radius: 20px; margin-bottom: 1.5rem; }
.icon-badge--lg svg { width: 34px; height: 34px; }
.status-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-light); border-top: 1px solid var(--line); color: var(--text-soft); font-size: var(--fs-sm); padding-top: clamp(2.75rem, 2rem + 3vw, 4rem); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 0.9fr 1.3fr 1.3fr; gap: 2.25rem 2rem; padding-bottom: 2.5rem; }
.footer-brand img { height: 32px; width: auto; }
.footer-brand p { margin-top: 1rem; max-width: 22rem; }
.footer-col h2 { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy); margin-bottom: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer-col a { color: var(--text-soft); text-decoration: none; }
.footer-col a:hover { color: var(--blue); text-decoration: underline; }
.footer-col li { overflow-wrap: anywhere; }
.footer-contact li { display: flex; flex-direction: column; gap: 0.1rem; }
.footer-contact .label { font-size: var(--fs-xs); font-weight: 600; color: var(--grey); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.4rem; border-top: 1px solid var(--line); font-size: var(--fs-xs); }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.footer-bottom a { color: var(--text-soft); text-decoration: none; }
.footer-bottom a:hover { color: var(--blue); text-decoration: underline; }
.footer-bottom p { margin: 0; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Spacing helpers ---------- */
.mt-lg { margin-top: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.section + .section--tight { padding-top: 0; }
.section--light + .section--tight, .section--navy + .section--tight { padding-top: clamp(2.5rem, 2rem + 2vw, 3.75rem); }

/* ---------- Reveal on scroll (progressive enhancement) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .site-header, .nav-toggle, .cta-band, .hero__visual { display: none !important; }
  .hero, .page-hero, .section--navy { background: none !important; color: #000 !important; }
  .hero h1, .page-hero h1, .section--navy h2, .section--navy h3 { color: #000 !important; }
}
