/* ===========================================================================
   Nano Solutions L.C. | site styles
   Tokens are the single source of truth. No hardcoded hex below :root.
   Mode: strict light, no dark surfaces (decided 2026-09-29).
   =========================================================================== */

:root {
  color-scheme: light;

  /* Brand, from Nano_Brand/brand-kit.md. Do not eyeball new values. */
  --ink:        #0E1A26;
  --steel:      #1E5F8C;
  --steel-deep: #17496D;
  --steel-wash: #EAF1F7;
  --steel-tint: #F2F6FA;
  --muted:      #5B6B7C;
  --line:       #DCE3EA;
  --line-soft:  #EAEFF4;
  --mist:       #F4F6F8;
  --paper:      #FFFFFF;

  /* Type ramp: size, line-height and tracking travel together. */
  --t-display:   clamp(2.45rem, 1.5rem + 3.8vw, 4rem);
  --lh-display:  1.06;
  --tr-display:  -0.028em;
  --t-h2:        clamp(1.7rem, 1.25rem + 1.6vw, 2.25rem);
  --lh-h2:       1.15;
  --tr-h2:       -0.02em;
  --t-h3:        1.125rem;
  --lh-h3:       1.35;
  --tr-h3:       -0.008em;
  --t-stat:      clamp(2rem, 1.5rem + 2vw, 2.75rem);
  --tr-stat:     -0.024em;
  --t-body:      1.0625rem;
  --lh-body:     1.62;
  --t-small:     0.9375rem;
  --t-fine:      0.8125rem;
  --t-eyebrow:   0.6875rem;
  --tr-eyebrow:  0.18em;

  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --s-9: 88px; --s-10: 112px;

  --radius: 2px;
  --wrap: 1160px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ─── Reset ─────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: var(--t-body); line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--steel); outline-offset: 3px; border-radius: var(--radius); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--s-5); }
/* Anchor targets clear the sticky header. */
[id] { scroll-margin-top: 92px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper); padding: var(--s-3) var(--s-4); z-index: 100; }
.skip:focus { left: var(--s-4); top: var(--s-4); }

/* ─── Shared type ───────────────────────────────────────────────────────── */

.eyebrow {
  font-size: var(--t-eyebrow); letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase; color: var(--steel); font-weight: 600;
  margin-bottom: var(--s-4);
}
.section { padding-block: var(--s-10); }
.section--mist { background: var(--mist); border-block: 1px solid var(--line); }
.section-head { max-width: 680px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-title { font-size: var(--t-h2); line-height: var(--lh-h2); letter-spacing: var(--tr-h2); font-weight: 650; }
.section-lede { color: var(--muted); margin-top: var(--s-4); }

/* ─── Brand lockup ──────────────────────────────────────────────────────── */

.lockup { display: inline-flex; align-items: center; }
/* The lockup is the kit's outlined SVG (Nano_Brand/assets/lockup-light-web.svg): no live text,
   so it renders the same on every machine, and the cut A is geometry, not a mask. */
.lockup__img { display: block; height: 36px; width: auto; }
.lockup__img--footer { height: 34px; }

/* ─── Header ────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.9); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); min-height: 68px; }
.nav { display: flex; align-items: center; gap: var(--s-6); }
.nav a { font-size: var(--t-small); color: var(--muted); transition: color .15s ease; }
.nav a:hover { color: var(--ink); }

/* ─── Buttons ───────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  padding: 13px 24px; font-size: var(--t-small); font-weight: 600;
  border-radius: var(--radius); border: 1px solid transparent; cursor: pointer;
  transition: background .15s ease, border-color .15s ease; white-space: nowrap;
}
.nav a.btn--primary, .btn--primary { background: var(--ink); color: #fff; }
.nav a.btn--primary:hover, .btn--primary:hover { background: var(--steel); color: #fff; }
.btn--ghost { border-color: var(--line); color: var(--ink); background: var(--paper); }
.btn--ghost:hover { border-color: var(--muted); }
.btn--sm { padding: 9px 16px; font-size: var(--t-fine); }
.btn svg { width: 16px; height: 16px; }

/* ─── Hero (editorial, adopted 2026-10-03) ──────────────────────────────── */

.hero {
  position: relative; background: var(--paper);
  padding-block: clamp(88px, 10vw, 152px) var(--s-9);
  border-bottom: 1px solid var(--line);
}
/* Grid on its own wrapper, so the stats row below keeps full width. */
.hero__grid { display: grid; gap: var(--s-7); }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.15fr 0.85fr; align-items: end; gap: var(--s-8); }
}
.hero__eyebrow {
  display: flex; align-items: center; gap: var(--s-3);
  font-size: var(--t-eyebrow); letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase; color: var(--steel); font-weight: 600;
  margin-bottom: var(--s-6);
}
.hero__eyebrow::before { content: ""; flex-shrink: 0; width: 24px; height: 1px; background: var(--steel); }
.hero h1 {
  font-size: clamp(2.75rem, 1.6rem + 4.2vw, 5rem); line-height: 1.04;
  letter-spacing: -0.032em; font-weight: 300; max-width: 14ch; text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--steel); font-weight: 400; }
.hero__lede { color: var(--muted); font-size: 1.125rem; line-height: 1.7; max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }

/* Figures on a single rule instead of boxed tiles. Labels keep their qualifiers. */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-6);
  margin-top: var(--s-9); padding-top: var(--s-6); border-top: 1px solid var(--line);
}
.stat__n {
  font-size: var(--t-stat); letter-spacing: -0.03em; font-weight: 500; line-height: 1;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.stat__l { margin-top: var(--s-3); font-size: var(--t-fine); color: var(--muted); line-height: 1.45; max-width: 24ch; }

/* ─── Sectors strip ─────────────────────────────────────────────────────── */

.sectors { padding-block: var(--s-6); border-bottom: 1px solid var(--line); }
.sectors__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s-3) var(--s-6); }
.sectors__label { font-size: var(--t-eyebrow); letter-spacing: var(--tr-eyebrow); text-transform: uppercase; color: var(--muted); font-weight: 600; }
.sectors__item { font-size: var(--t-small); font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: var(--s-2); }
.sectors__item::before { content: ""; width: 5px; height: 5px; background: var(--steel); border-radius: 50%; }

/* ─── Services ──────────────────────────────────────────────────────────── */

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); margin-top: var(--s-8); }
.service {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s-6); display: flex; flex-direction: column;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.service:hover { border-color: #C3D2DF; box-shadow: 0 1px 2px rgba(14,26,38,.04), 0 8px 24px rgba(14,26,38,.05); }
.service__icon {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--steel-wash); color: var(--steel); border-radius: var(--radius);
  margin-bottom: var(--s-5);
}
.service__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.service__tag { font-size: var(--t-eyebrow); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: var(--s-2); }
.service h3 { font-size: var(--t-h3); line-height: var(--lh-h3); letter-spacing: var(--tr-h3); font-weight: 600; }
.service p { margin-top: var(--s-3); color: var(--muted); font-size: var(--t-small); }
.service ul { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--line-soft); display: grid; gap: var(--s-2); }
.service li { font-size: var(--t-fine); color: var(--muted); padding-left: var(--s-5); position: relative; }
.service li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 10px; height: 6px;
  border-left: 1.6px solid var(--steel); border-bottom: 1.6px solid var(--steel);
  transform: rotate(-45deg);
}

/* ─── Industries ────────────────────────────────────────────────────────── */

.industries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: var(--s-8); }
.industry { background: var(--paper); padding: var(--s-6) var(--s-5); }
.industry h3 { font-size: 1.02rem; font-weight: 600; letter-spacing: var(--tr-h3); line-height: 1.35; }
.industry p { margin-top: var(--s-3); font-size: var(--t-fine); color: var(--muted); line-height: 1.55; }

/* ─── Case studies ──────────────────────────────────────────────────────── */

.cases { margin-top: var(--s-8); border-top: 1px solid var(--line); }
.case { display: grid; grid-template-columns: 1fr 1.6fr; gap: var(--s-7); padding-block: var(--s-7); border-bottom: 1px solid var(--line); }
.case__label { font-size: var(--t-h3); font-weight: 600; letter-spacing: var(--tr-h3); line-height: 1.35; }
.case__meta { margin-top: var(--s-3); display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip { font-size: 0.75rem; color: var(--steel); background: var(--steel-wash); padding: 3px 9px; border-radius: var(--radius); font-weight: 500; }
.case__body { color: var(--muted); font-size: var(--t-small); }
.case__metrics { display: flex; flex-wrap: wrap; gap: var(--s-6); margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--line-soft); }
.case__metric strong { display: block; font-size: 1.35rem; letter-spacing: -0.015em; color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 650; }
.case__metric span { font-size: var(--t-fine); color: var(--muted); }

/* ─── Process ───────────────────────────────────────────────────────────── */

.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); margin-top: var(--s-8); counter-reset: step; }
.step { position: relative; padding-top: var(--s-6); border-top: 2px solid var(--line); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: -2px; left: 0; padding-top: var(--s-3);
  font-size: var(--t-fine); font-weight: 700; color: var(--steel);
  border-top: 2px solid var(--steel); width: 40px; font-variant-numeric: tabular-nums;
}
.step h3 { font-size: var(--t-h3); font-weight: 600; letter-spacing: var(--tr-h3); margin-top: var(--s-3); }
.step p { margin-top: var(--s-3); font-size: var(--t-small); color: var(--muted); }

.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-5); margin-top: var(--s-8); }
.principle { display: grid; grid-template-columns: 28px 1fr; gap: var(--s-4); padding: var(--s-5); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.principle svg { width: 22px; height: 22px; fill: none; stroke: var(--steel); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.principle h3 { font-size: 1rem; font-weight: 600; letter-spacing: var(--tr-h3); }
.principle p { margin-top: var(--s-2); font-size: var(--t-small); color: var(--muted); }

/* ─── Contact ───────────────────────────────────────────────────────────── */

.contact { background: var(--steel-tint); border-top: 1px solid var(--line); padding-block: var(--s-10); }
.contact__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--s-8); align-items: start; }
.contact h2 { font-size: var(--t-h2); line-height: var(--lh-h2); letter-spacing: var(--tr-h2); font-weight: 650; max-width: 18ch; }
.contact__lede { color: var(--muted); margin-top: var(--s-4); max-width: 52ch; }
.contact__cta { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.contact__card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-6); display: grid; gap: var(--s-5); }
.contact__row { display: grid; grid-template-columns: 36px 1fr; gap: var(--s-3); align-items: start; }
.contact__row .ico { width: 36px; height: 36px; display: grid; place-items: center; background: var(--steel-wash); color: var(--steel); border-radius: var(--radius); }
.contact__row .ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contact__row dt { font-size: var(--t-eyebrow); letter-spacing: var(--tr-eyebrow); text-transform: uppercase; color: var(--muted); font-weight: 600; }
.contact__row dd { font-size: var(--t-small); margin-top: 2px; }
.contact__row a { color: var(--steel); }
.contact__row a:hover { color: var(--steel-deep); text-decoration: underline; }

/* ─── Footer ────────────────────────────────────────────────────────────── */

.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding-top: var(--s-8); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--s-7); padding-bottom: var(--s-7); }
.footer__about { margin-top: var(--s-4); font-size: var(--t-small); color: var(--muted); max-width: 34ch; }
.footer__col h4 { font-size: var(--t-eyebrow); letter-spacing: var(--tr-eyebrow); text-transform: uppercase; color: var(--ink); font-weight: 700; margin-bottom: var(--s-4); }
.footer__col li + li { margin-top: var(--s-2); }
.footer__col a, .footer__col li { font-size: var(--t-small); color: var(--muted); }
.footer__col a:hover { color: var(--steel); }
.footer__bar { border-top: 1px solid var(--line); padding-block: var(--s-5); display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: space-between; font-size: var(--t-fine); color: var(--muted); }


/* ─── Mobile menu (900px and below) ─────────────────────────────────────── */
/* A <details> disclosure: opens and closes without JavaScript; a few lines of script close it
   after a link is tapped. The summary exposes its expanded state to screen readers natively. */

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.menu { display: none; }
/* The summary keeps its native display (changing it strips the disclosure role in some
   screen readers); the visible 44px box is an inner span. */
.menu__toggle { list-style: none; cursor: pointer; user-select: none; }
.menu__toggle::-webkit-details-marker { display: none; }
.menu__box {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
  transition: border-color .15s ease;
}
.menu__toggle:hover .menu__box { border-color: var(--muted); }
.menu__toggle:focus-visible { outline: none; }
.menu__toggle:focus-visible .menu__box { outline: 2px solid var(--steel); outline-offset: 2px; }
.menu__icon { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; }
.menu__icon--close, .menu[open] .menu__icon--open { display: none; }
.menu[open] .menu__icon--close { display: block; }
/* Positioned against the sticky header, so it spans the full width just below it. */
.menu__panel {
  position: absolute; left: 0; right: 0; top: 100%;
  display: grid; padding: var(--s-2) var(--s-5) var(--s-4);
  background: var(--paper); border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 24px rgba(14, 26, 38, .06);
}
.nav .menu .menu__panel a {
  display: flex; align-items: center; min-height: 48px;
  font-size: var(--t-body); font-weight: 500; color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
}
.nav .menu .menu__panel a:last-child { border-bottom: 0; }
.nav .menu .menu__panel a:hover { color: var(--steel); }

/* ─── Service lists: "What's included" disclosure on phones ────────────── */
/* Open everywhere by default; a script collapses them at 600px and below. The summary only
   shows on phones, so desktop renders exactly as before. */
.service__more > summary { display: none; }

/* ─── Responsive ────────────────────────────────────────────────────────── */

@media (max-width: 1000px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .industries { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: var(--s-7); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav > a:not(.btn) { display: none; }  /* section links move into the menu */
  .nav { gap: var(--s-2); }
  .menu { display: block; }
  .nav .btn--sm { min-height: 44px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .case { grid-template-columns: 1fr; gap: var(--s-5); }
  .contact__grid { grid-template-columns: 1fr; gap: var(--s-7); }
  .principles { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  :root { --t-body: 1rem; }
  .section { padding-block: var(--s-9); }
  .services, .industries, .process { grid-template-columns: 1fr; }
  .hero__cta .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .footer__col li + li { margin-top: var(--s-4); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: var(--s-6) var(--s-5); }
  .service__more { margin-top: var(--s-4); border-top: 1px solid var(--line-soft); }
  .service__more > summary { display: list-item; list-style: none; cursor: pointer; }
  .service__more > summary::-webkit-details-marker { display: none; }
  .service__more-label {
    display: flex; align-items: center; justify-content: space-between; min-height: 44px;
    font-size: var(--t-fine); font-weight: 600; color: var(--steel);
  }
  .service__more-label::after {
    content: ""; width: 8px; height: 8px; margin-right: 4px;
    border-right: 1.6px solid var(--steel); border-bottom: 1.6px solid var(--steel);
    transform: translateY(-2px) rotate(45deg); transition: transform .15s ease;
  }
  .service__more[open] .service__more-label::after { transform: translateY(2px) rotate(-135deg); }
  .service__more > ul { margin-top: 0; padding-top: var(--s-1); padding-bottom: var(--s-2); border-top: 0; }
  /* Approach principles: a plain divided list on phones instead of four bordered cards. */
  .principles { gap: 0; margin-top: var(--s-7); border-top: 1px solid var(--line); }
  .principle { padding: var(--s-4) 0; background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .service { padding: var(--s-5); }
}

@media (max-width: 360px) {
  /* Smallest phones: keep logo, menu and Contact us on one line. */
  .lockup__img { height: 30px; }
}
