/* ═══════════════════════════════════════════════════════════════
   AIONX Integrated Security, Inc. — style.css
   Corporate premium. Light by default, full dark theme.
   Order: tokens → base → components → layout (page order) → responsive → motion → print
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Brand — sampled from the client logo, never altered */
  --navy:        #1E3F7F;
  --navy-700:    #16305F;
  --navy-900:    #0E2247;
  --navy-50:     #EEF2FA;
  --steel:       #8A9099;
  --steel-light: #B8BDC6;

  /* Surfaces & ink (light) */
  --paper:  #FFFFFF;
  --canvas: #F5F7FA;
  --raised: #FFFFFF;
  --ink:    #0E1726;
  --body:   #47515F;
  --muted:  #616B7A; /* clears AA (4.5:1) on both --paper and --canvas */
  --line:   #E2E6EC;
  --line-strong: #CFD5DE;

  --on-navy:       #FFFFFF;
  --on-navy-soft:  rgba(255,255,255,0.76);
  --on-navy-line:  rgba(255,255,255,0.16);
  --navy-panel:    #16305F;
  --navy-panel-2:  #0E2247;

  /* Buttons carry their own tokens so white label text keeps AA contrast
     in both themes, where --navy has to lighten for readable body links. */
  --btn-bg: var(--navy);
  --btn-bg-hover: var(--navy-700);
  --btn-fg: #FFFFFF;

  --shadow-sm: 0 1px 2px rgba(14,23,38,0.05), 0 1px 1px rgba(14,23,38,0.04);
  --shadow-md: 0 4px 14px rgba(14,23,38,0.07), 0 1px 3px rgba(14,23,38,0.05);
  --shadow-lg: 0 18px 48px rgba(14,23,38,0.12), 0 4px 12px rgba(14,23,38,0.06);

  --font-display: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --sec-y: clamp(4.5rem, 9vw, 8rem);
  --radius: 10px;
  --radius-lg: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: light;
}

:root[data-theme="dark"] {
  --paper:  #0F1520;
  --canvas: #141C2A;
  --raised: #18212F;
  --ink:    #F2F5F9;
  --body:   #B4BECC;
  --muted:  #8A94A3;
  --line:   #253040;
  --line-strong: #33404F;

  --navy:    #5B8DE0;
  --navy-700:#4778C9;
  --navy-50: #172439;

  --navy-panel:   #132038;
  --navy-panel-2: #0C1526;
  --on-navy:      #F2F5F9;
  --on-navy-soft: rgba(242,245,249,0.74);
  --on-navy-line: rgba(242,245,249,0.14);

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.45);
  --shadow-lg: 0 18px 48px rgba(0,0,0,0.55);

  --btn-bg: #2C5DB0;
  --btn-bg-hover: #3A6DC4;
  --btn-fg: #FFFFFF;

  color-scheme: dark;
}

/* ─────────────── Base ─────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 108px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.14;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 4.2vw, 3.5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 2.9vw, 2.625rem); }
h3 { font-size: 1.1875rem; line-height: 1.35; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--navy); color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: fixed; top: -200px; left: 1rem; z-index: 300; padding: 0.75rem 1.25rem; background: var(--navy); color: #fff; border-radius: 0 0 6px 6px; }
.skip:focus { top: 0; }

.eyebrow {
  font-family: var(--font-body); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy);
  margin-bottom: 1.125rem;
}
.lede { font-size: clamp(1.0625rem, 1.25vw, 1.1875rem); line-height: 1.7; color: var(--body); }
.prose p + p { margin-top: 1.125rem; }

/* ─────────────── Buttons ─────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 46px; padding: 0.75rem 1.5rem;
  font-family: var(--font-display); font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.005em;
  border: 1px solid transparent; border-radius: 8px;
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
  white-space: nowrap;
}
.btn--lg { min-height: 54px; padding: 0.9rem 1.85rem; font-size: 1rem; }
.btn--primary { background: var(--btn-bg); color: var(--btn-fg); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--btn-bg-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--outline { border-color: var(--line-strong); color: var(--ink); background: var(--paper); }
.btn--outline:hover { border-color: var(--navy); color: var(--navy); transform: translateY(-1px); }
.section--navy .btn--primary { background: #fff; color: var(--navy-900); }
.section--navy .btn--primary:hover { background: var(--navy-50); }
:root[data-theme="dark"] .section--navy .btn--primary { background: var(--btn-bg); color: var(--btn-fg); }
:root[data-theme="dark"] .section--navy .btn--primary:hover { background: var(--btn-bg-hover); }

/* ─────────────── Reveal ───────────────
   Only hidden once JS has confirmed it can reveal again (.js on <html>).
   Without JS, or if anything fails, content renders visible. */
.js .reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ─────────────── Utility bar ─────────────── */
.utility {
  background: var(--navy-900); color: var(--on-navy-soft);
  font-size: 0.8125rem; line-height: 1.4;
}
:root[data-theme="dark"] .utility { background: var(--navy-panel-2); border-bottom: 1px solid var(--line); }
.utility__inner { display: flex; align-items: center; gap: 1.75rem; min-height: 44px; }
.utility__item { display: flex; align-items: center; gap: 0.5rem; }
.utility__item svg { width: 15px; height: 15px; flex: none; opacity: 0.85; }
.utility__actions { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.utility__phone { display: flex; align-items: center; gap: 0.5rem; color: #fff; font-weight: 600; padding: 0.35rem 0; }
.utility__phone svg { width: 15px; height: 15px; }
.utility__phone:hover { color: var(--steel-light); }
.theme { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 6px; color: var(--on-navy-soft); transition: background 0.25s, color 0.25s; }
.theme:hover { background: rgba(255,255,255,0.1); color: #fff; }
.theme svg { width: 16px; height: 16px; }
.theme .ico-sun { display: none; }
:root[data-theme="dark"] .theme .ico-sun { display: block; }
:root[data-theme="dark"] .theme .ico-moon { display: none; }

/* ─────────────── Header ─────────────── */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper); border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s;
}
.header.is-stuck { box-shadow: var(--shadow-md); }
.header__inner { display: flex; align-items: center; gap: 2rem; min-height: 82px; }

/* Logo: height-only sizing preserves the supplied aspect ratio exactly. */
.header__logo { display: block; flex: none; padding: 0.5rem 0; }
.header__logo img { height: 52px; width: auto; }

.header__nav { display: flex; align-items: center; gap: 2rem; margin-left: auto; }
.header__nav a {
  position: relative; font-size: 0.9375rem; font-weight: 500; color: var(--body);
  padding: 0.5rem 0; transition: color 0.22s;
}
.header__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--navy); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.header__nav a:hover { color: var(--ink); }
.header__nav a:hover::after, .header__nav a.is-current::after { transform: scaleX(1); }
.header__nav a.is-current { color: var(--navy); font-weight: 600; }
.header__actions { display: flex; align-items: center; gap: 0.875rem; }

.burger { display: none; width: 44px; height: 44px; padding: 11px 10px; }
.burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.burger span + span { margin-top: 5px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile { border-top: 1px solid var(--line); background: var(--paper); }
.mobile nav { display: flex; flex-direction: column; padding: 0.5rem var(--gutter) 1.25rem; }
.mobile a { padding: 0.95rem 0; font-size: 1.0625rem; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line); }
.mobile a:last-child { border-bottom: 0; }
.mobile__phone { color: var(--navy) !important; font-weight: 600 !important; }

/* ─────────────── Hero ─────────────── */
.hero { position: relative; padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(3.5rem, 7vw, 6rem); overflow: hidden; }
.hero__grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 88% 6%, var(--navy-50), transparent 58%);
}
.hero__grid-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(110% 80% at 78% 0%, #000 0%, transparent 62%);
  -webkit-mask-image: radial-gradient(110% 80% at 78% 0%, #000 0%, transparent 62%);
  opacity: 0.7;
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
.hero__copy h1 { margin-bottom: 1.5rem; }
.hero__copy .lede { max-width: 36rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.875rem; margin-top: 2.25rem; }
.hero__trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem 1.5rem; margin-top: 2.75rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.hero__trust li { display: flex; align-items: center; gap: 0.625rem; font-size: 0.9375rem; color: var(--body); }
.hero__trust svg { width: 19px; height: 19px; flex: none; color: var(--navy); }

.hero__media { position: relative; }
.hero__figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.hero__figure img { width: 100%; aspect-ratio: 4 / 3.1; object-fit: cover; object-position: 62% center; }
.credential {
  position: absolute; left: -1.25rem; bottom: -1.5rem;
  display: flex; align-items: center; gap: 0.875rem;
  padding: 0.9rem 1.25rem 0.9rem 1rem;
  background: var(--raised); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-lg); max-width: 17rem;
}
.credential img { height: 46px; width: auto; flex: none; }
.credential__title { font-family: var(--font-display); font-weight: 600; font-size: 0.9375rem; color: var(--ink); line-height: 1.3; }
.credential__meta { font-size: 0.75rem; color: var(--muted); line-height: 1.4; margin-top: 0.1rem; }

/* ─────────────── Credential strip ─────────────── */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--canvas); }
.strip__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding: 1.25rem var(--gutter); }
.strip p {
  font-family: var(--font-body); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}

/* ─────────────── Sections ─────────────── */
.section { padding: var(--sec-y) 0; }
.section--canvas { background: var(--canvas); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--navy {
  background: linear-gradient(160deg, var(--navy-panel), var(--navy-panel-2));
  color: var(--on-navy-soft);
}
.section--navy h2, .section--navy h3 { color: var(--on-navy); }
.section--navy .eyebrow { color: var(--steel-light); }
.section--navy .section__lede, .section--navy .lede { color: var(--on-navy-soft); }
:root[data-theme="dark"] .section--navy { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section__head { max-width: 58rem; margin-bottom: clamp(2.5rem, 4vw, 3.5rem); }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__lede { margin-top: 1.25rem; font-size: clamp(1rem, 1.2vw, 1.125rem); line-height: 1.72; max-width: 46rem; }
.section__head--center .section__lede { margin-left: auto; margin-right: auto; }

/* ─────────────── Service cards ─────────────── */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.card {
  display: flex; flex-direction: column;
  padding: clamp(1.5rem, 2.4vw, 2.125rem);
  background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: border-color 0.3s, transform 0.35s var(--ease), box-shadow 0.35s;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow-md); }
/* align-self keeps a flex child from stretching, which would distort the artwork */
.card__icon { height: 46px; width: auto; align-self: flex-start; margin-bottom: 1.5rem; }
:root[data-theme="dark"] .card__icon { filter: brightness(1.75) saturate(0.85); }
.card h3 { margin-bottom: 0.625rem; }
.card > p { font-size: 0.9688rem; color: var(--body); }
.card ul { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.625rem; }
.card ul li { position: relative; padding-left: 1.375rem; font-size: 0.9063rem; color: var(--muted); line-height: 1.55; }
.card ul li::before {
  content: ""; position: absolute; left: 0; top: 0.52em; width: 7px; height: 7px;
  border-radius: 50%; border: 2px solid var(--navy);
}
.card--cta { background: var(--navy-50); border-color: transparent; justify-content: center; }
:root[data-theme="dark"] .card--cta { background: var(--navy-50); border-color: var(--line); }
.card--cta h3 { font-size: 1.375rem; }
.card--cta > p { margin: 0.75rem 0 1.75rem; }
.card--cta .btn { align-self: flex-start; }

/* ─────────────── Why / stats ─────────────── */
.why { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
.why__list { margin-top: 2.75rem; display: grid; gap: 1.75rem; }
.why__list li { padding-left: 1.5rem; border-left: 2px solid var(--on-navy-line); }
.why__list h3 { font-size: 1.0625rem; margin-bottom: 0.4rem; }
.why__list p { font-size: 0.9688rem; color: var(--on-navy-soft); }

.stats {
  position: relative; padding: clamp(1.75rem, 3vw, 2.5rem);
  background: rgba(255,255,255,0.05); border: 1px solid var(--on-navy-line); border-radius: var(--radius-lg);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
/* The logo is never recolored. On dark grounds it sits on a white plaque,
   which is its intended background. */
.stats__brand { display: flex; padding-bottom: 1.75rem; border-bottom: 1px solid var(--on-navy-line); }
.stats__brand span {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.875rem 1.125rem; background: #fff; border-radius: 10px; box-shadow: var(--shadow-md);
}
.stats__brand img { height: 58px; width: auto; }
.stats ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1.25rem; padding: 1.75rem 0; }
.stats li { display: flex; flex-direction: column; gap: 0.3rem; }
.stats strong {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1; letter-spacing: -0.03em; color: var(--on-navy); font-variant-numeric: tabular-nums;
}
.stats span { font-size: 0.8125rem; color: var(--on-navy-soft); line-height: 1.45; }
.stats__foot {
  padding-top: 1.5rem; border-top: 1px solid var(--on-navy-line);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel-light);
}

/* ─────────────── About ─────────────── */
.about { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
.about__media figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.about__media img { width: 100%; aspect-ratio: 4 / 4.3; object-fit: cover; object-position: 58% center; }
.about__copy h2 { margin-bottom: 1.5rem; }
.quote { margin: 2.25rem 0 0; padding: 1.5rem 0 0; border-top: 1px solid var(--line); }
.quote p {
  font-family: var(--font-display); font-size: clamp(1.125rem, 1.6vw, 1.4375rem); font-weight: 500;
  line-height: 1.45; letter-spacing: -0.015em; color: var(--ink);
}
.quote p::before { content: "“"; color: var(--navy); }
.quote p::after { content: "”"; color: var(--navy); }
.quote footer {
  margin-top: 0.875rem; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}

/* ─────────────── Process ─────────────── */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.step {
  position: relative; padding: 2rem 1.5rem 1.75rem;
  background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.step::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--navy); border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.step__num {
  display: block; font-family: var(--font-display); font-weight: 700; font-size: 0.875rem;
  letter-spacing: 0.08em; color: var(--navy); margin-bottom: 0.875rem;
}
.step h3 { margin-bottom: 0.5rem; }
.step p { font-size: 0.9375rem; color: var(--muted); }

/* ─────────────── Industries (accordion slider) ───────────────
   Panels expand on hover, click, or Enter/Space. The :hover rule means the
   accordion still works with JavaScript disabled; JS adds is-active so a
   selection persists once the pointer leaves. */
.ind-accordion { display: flex; gap: 10px; height: min(60vh, 540px); min-height: 420px; }
.ind {
  position: relative; flex: 1; min-width: 0; overflow: hidden; cursor: pointer;
  border-radius: var(--radius-lg); border: 1px solid transparent;
  background: linear-gradient(158deg, #21437F 0%, var(--navy-panel) 46%, var(--navy-panel-2) 100%);
  transition: flex 0.75s var(--ease), border-color 0.3s, box-shadow 0.4s;
}
.ind::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,0.09), transparent 42%);
}
.ind:hover, .ind.is-active { flex: 4.2; border-color: rgba(255,255,255,0.22); box-shadow: var(--shadow-lg); }
.ind:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }

/* Oversized numeral gives each panel its own anchor without stock photography */
.ind__ghost {
  position: absolute; right: -0.06em; bottom: -0.30em; z-index: 0;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(7rem, 13vw, 13rem);
  line-height: 1; letter-spacing: -0.04em; color: #fff; opacity: 0.07;
  transition: opacity 0.6s var(--ease);
}
.ind:hover .ind__ghost, .ind.is-active .ind__ghost { opacity: 0.11; }

.ind__label {
  position: absolute; left: 50%; bottom: 1.5rem; z-index: 2;
  display: flex; align-items: center; gap: 1rem;
  transform: translateX(-50%);
  writing-mode: vertical-rl; text-orientation: mixed;
  font-family: var(--font-body); font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: #fff; white-space: nowrap;
  /* Delayed fade-in so a closing panel's label never overlaps its own body copy */
  transition: opacity 0.3s var(--ease) 0.28s;
}
.ind__label i { font-style: normal; color: var(--steel-light); }
.ind:hover .ind__label, .ind.is-active .ind__label { opacity: 0; transition-delay: 0s; }

.ind__body {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.ind:hover .ind__body, .ind.is-active .ind__body {
  opacity: 1; transform: none;
  transition: opacity 0.45s var(--ease) 0.22s, transform 0.55s var(--ease) 0.22s;
}
.ind__tag {
  display: inline-block; margin-bottom: 0.875rem; padding: 0.25rem 0.7rem;
  font-size: 0.625rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff; border: 1px solid rgba(255,255,255,0.32); border-radius: 999px;
}
.ind__body h3 { color: #fff; font-size: clamp(1.375rem, 2.1vw, 1.875rem); margin-bottom: 0.625rem; }
.ind__desc { font-size: 0.9375rem; line-height: 1.6; color: rgba(255,255,255,0.8); max-width: 40ch; }
.ind__hint {
  margin-top: 1.5rem; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}

/* ─────────────── Projects ─────────────── */
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.project {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.project:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.project figure { margin: 0; overflow: hidden; }
.project img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.7s var(--ease); }
.project:hover img { transform: scale(1.035); }
.project__body { padding: 1.5rem; }
.project__meta {
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--navy); margin-bottom: 0.625rem;
}
.project h3 { font-size: 1.0625rem; margin-bottom: 0.5rem; }
.project__body > p:last-child { font-size: 0.9063rem; color: var(--muted); }

/* ─────────────── Contact ─────────────── */
.contact { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
.contact__details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-top: 2.75rem; padding-top: 2rem; border-top: 1px solid var(--on-navy-line); }
.contact__details dt { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel-light); margin-bottom: 0.4rem; }
.contact__details dd { font-size: 1rem; color: var(--on-navy); }
.contact__details a { border-bottom: 1px solid var(--on-navy-line); transition: border-color 0.25s; }
.contact__details a:hover { border-color: var(--on-navy); }

.form {
  display: grid; gap: 1.25rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.field { display: block; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field legend {
  display: block; margin-bottom: 0.45rem; padding: 0;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
}
.field i { color: var(--navy); font-style: normal; margin-left: 0.15rem; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field textarea {
  width: 100%; padding: 0.78rem 0.9rem; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px color-mix(in srgb, var(--navy) 18%, transparent); }
.field input:user-invalid { border-color: #C0392B; }
.field textarea { resize: vertical; min-height: 116px; line-height: 1.6; }
.field textarea::placeholder { color: var(--muted); }

.radios, .checks { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.radio, .check { position: relative; }
.radio input, .check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.radio span, .check span {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0.5rem 1rem;
  font-size: 0.9063rem; color: var(--body);
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: 8px; cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.radio span:hover, .check span:hover { border-color: var(--navy); }
.radio input:checked + span, .check input:checked + span { border-color: var(--navy); background: var(--navy-50); color: var(--navy); font-weight: 600; }
.radio input:focus-visible + span, .check input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 2px; }

.hp { position: absolute; left: -9999px; }
.form__foot { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin-top: 0.25rem; }
.form__status { font-size: 0.9063rem; min-height: 1.4em; color: var(--body); }
.form__status.is-ok { color: #1E7A43; font-weight: 500; }
.form__status.is-error { color: #C0392B; font-weight: 500; }
:root[data-theme="dark"] .form__status.is-ok { color: #4ADE80; }
:root[data-theme="dark"] .form__status.is-error { color: #F87171; }
.form.is-sending .btn { opacity: 0.6; pointer-events: none; }
.form__fine { font-size: 0.8125rem; color: var(--muted); line-height: 1.55; }

/* ─────────────── Footer ─────────────── */
.footer { background: var(--canvas); border-top: 1px solid var(--line); }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3.5rem); padding-top: clamp(3rem, 5vw, 4.5rem); padding-bottom: clamp(2.5rem, 4vw, 3.5rem); }
.footer__brand img { height: 58px; width: auto; margin-bottom: 1.25rem; }
.footer__brand p { font-size: 0.9063rem; color: var(--muted); max-width: 26rem; }
.footer__col { display: flex; flex-direction: column; gap: 0.7rem; }
.footer__col h2 {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink); margin-bottom: 0.4rem;
}
.footer__col a, .footer__col p { font-size: 0.9375rem; color: var(--muted); }
.footer__col a { width: fit-content; transition: color 0.2s; }
.footer__col a:hover { color: var(--navy); }
.footer__lic { font-size: 0.8125rem !important; padding-top: 0.5rem; }
.footer__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-top: 1.5rem; padding-bottom: 1.5rem; border-top: 1px solid var(--line);
  font-size: 0.8125rem; color: var(--muted);
}
.footer__tagline { font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.75rem; color: var(--navy); }

/* ─────────────── Mobile call bar ─────────────── */
.callbar { display: none; }

/* ═══════════════════ Responsive ═══════════════════ */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ind-accordion { height: min(56vh, 460px); min-height: 380px; }
  .header__nav { gap: 1.375rem; }
  .header__nav a { font-size: 0.875rem; }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 88px; }
  .header__nav { display: none; }
  .burger { display: block; }
  .header__actions .btn { display: none; }
  .header__inner { min-height: 72px; }
  .header__logo img { height: 44px; }

  .hero__inner, .why, .about, .contact { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 2.5rem; }
  .hero__media { order: -1; }
  .hero__figure img { aspect-ratio: 16 / 10; }
  .credential { left: auto; right: 1rem; bottom: -1.25rem; }
  .about__media { order: -1; }
  .about__media img { aspect-ratio: 16 / 11; }
  .projects { grid-template-columns: minmax(0, 1fr); }
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .utility__item--hide { display: none; }
}

@media (max-width: 620px) {
  .cards, .steps, .form__row, .contact__details, .stats ul, .hero__trust { grid-template-columns: minmax(0, 1fr); }

  /* Vertical accordion: collapsed rows stack, the open one grows downward */
  .ind-accordion { flex-direction: column; height: auto; min-height: 0; gap: 8px; }
  .ind { flex: none; height: 62px; transition: height 0.7s var(--ease), border-color 0.3s; }
  .ind:hover, .ind.is-active { flex: none; height: 300px; }
  .ind__label {
    left: 1.25rem; top: 50%; bottom: auto; transform: translateY(-50%);
    writing-mode: horizontal-tb; font-size: 0.75rem;
  }
  .ind__ghost { font-size: 6rem; bottom: -0.22em; }
  .ind__desc { max-width: none; }
  .footer__top { grid-template-columns: minmax(0, 1fr); }
  .strip__inner { justify-content: flex-start; gap: 0.625rem 1.5rem; }
  .strip p { font-size: 0.6875rem; }
  .utility { font-size: 0.75rem; }
  .utility__item { display: none; }
  .utility__actions { margin: 0 auto; }
  .hero__cta .btn { width: 100%; }
  .card--cta .btn { align-self: stretch; }
  .footer__bar { flex-direction: column; align-items: flex-start; }
  body { padding-bottom: 64px; }

  .callbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
    display: grid; grid-template-columns: 1fr 1.5fr;
    background: var(--paper); border-top: 1px solid var(--line);
    box-shadow: 0 -4px 20px rgba(14,23,38,0.1);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .callbar a {
    display: flex; align-items: center; justify-content: center; min-height: 56px;
    font-family: var(--font-display); font-size: 0.9375rem; font-weight: 600; color: var(--ink);
  }
  .callbar__quote { background: var(--btn-bg); color: var(--btn-fg); }
}

/* ═══════════════════ Motion preferences ═══════════════════ */
@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;
  }
}
html.reduced .reveal { opacity: 1 !important; transform: none !important; }

/* ═══════════════════ Print ═══════════════════ */
@media print {
  /* Dark panels print white, so the tokens that paint light-on-navy text are
     redefined to dark here. Overriding the tokens covers every rule that uses
     them, instead of chasing individual selectors. */
  :root, :root[data-theme="dark"] {
    --paper: #fff; --canvas: #fff; --raised: #fff;
    --ink: #000; --body: #1A1A1A; --muted: #444;
    --on-navy: #000; --on-navy-soft: #222; --on-navy-line: #999;
    --steel-light: #444; --navy: #16305F;
    --shadow-sm: none; --shadow-md: none; --shadow-lg: none;
  }
  .utility__actions, .burger, .mobile, .callbar, .hero__grid-bg, .btn, .theme { display: none !important; }
  .header { position: static; border-bottom: 1px solid #999; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .utility { background: #fff !important; border-bottom: 1px solid #ccc; }
  .section, .hero { padding: 1.25rem 0; }
  .section--navy { background: #fff !important; }
  .stats, .stats__brand span { background: #fff !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .card, .step, .project, .form, .stats { border: 1px solid #999; break-inside: avoid; }
  .ind-accordion { flex-direction: column; height: auto; min-height: 0; gap: 0.5rem; }
  .ind { flex: none !important; height: auto !important; background: #fff !important; border: 1px solid #999; break-inside: avoid; }
  .ind::after, .ind__ghost, .ind__label, .ind__hint { display: none !important; }
  .ind__body { position: static; opacity: 1 !important; transform: none !important; padding: 0.85rem 1rem; }
  .ind__body h3 { color: #000 !important; }
  .ind__desc { color: #1A1A1A !important; max-width: none; }
  .ind__tag { color: #000 !important; border-color: #999 !important; }
  .hero__figure, .about__media figure, .project figure { border: 1px solid #ccc; }
  .contact__details a::after, .footer__col a[href^="mailto"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}
