/* ============================================================
   Site typography + header format.

   The measurements here come from Beyondsoft's own Innovation Lab site
   (ai.beyondsoft.com), taken at 1280px rather than eyeballed:

     logo              189 x 51      (this site was running 250 x 64)
     logo left inset   60px          (was 34px)
     nav items         Aileron 16px / 600, 32px apart   (was system sans 18px / 500, 24px)

   It also carries the site's typeface. Aileron started here as the header's font and is
   now the whole site's, at the client's request — the Lab and Tech Bridge mirrors were
   already set in it, and the rest of the site was on Helvetica, so the two halves did not
   look like one site.

   What this file does NOT do is colour. It sets type, size and spacing only, so a light
   page keeps its light bar; the Innovation Lab page paints itself black on top of this,
   in mirror-header.css.

   Aileron has no CJK glyphs, so the Chinese nav keeps its own tuning below rather than
   being dragged to Latin metrics it was never set for.
   ============================================================ */

/* Four files, but the stylesheet asks for seven weights: 400, 500, 600, 650, 700, 750 and
   800. Declaring RANGES rather than exact weights decides those substitutions here instead
   of leaving them to the browser's fallback rules, which would drop 500 to 400 and push 800
   to 900 — one step lighter and one step heavier than the page was drawn for.

   The ranges below reproduce what the site renders today. Helvetica has no 500 or 800
   either, so 500 has always come out as Regular and 800 as Bold; keeping that mapping means
   switching typeface changes the letterforms and nothing else. */
@font-face{font-family:Aileron;font-style:normal;font-weight:1 500;font-display:swap;
  src:url(fonts/aileron-400.woff2) format("woff2");}
@font-face{font-family:Aileron;font-style:normal;font-weight:501 650;font-display:swap;
  src:url(fonts/aileron-600.woff2) format("woff2");}
@font-face{font-family:Aileron;font-style:normal;font-weight:651 850;font-display:swap;
  src:url(fonts/aileron-700.woff2) format("woff2");}
@font-face{font-family:Aileron;font-style:normal;font-weight:851 1000;font-display:swap;
  src:url(fonts/aileron-900.woff2) format("woff2");}

/* Inter (7 Oct 2026). Clayton's Figma design system named Inter in the morning and Aileron by the afternoon;
   the site follows the later version, so the --f-* stacks below lead with Aileron again. These two Inter
   faces (self-hosted variable woff2, assets/fonts/INTER-LICENSE.txt) stay declared but unused — a face
   no rule asks for is never downloaded — so a switch back is one word per stack. */
@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;
  src:url(fonts/inter-latin-ext.woff2) format("woff2");
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;
  src:url(fonts/inter-latin.woff2) format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}

/* Site-wide typeface. base.css routes every rule through these three variables — 161 uses,
   with exactly one hard-coded font-family in the file — so redefining them here is the whole
   change.

   Aileron carries no CJK glyphs, which is why the original stacks are kept intact behind it
   rather than replaced: a Chinese or Japanese character falls straight through to PingFang /
   Hiragino / YaHei exactly as before, and only the Latin is different. Aileron also has no
   italics in the four files shipped here; anything italic will be synthesised by the browser,
   the same as it was under Helvetica on Windows. */
:root{
  --f-body:Aileron,Helvetica,'Helvetica Neue',Arial,"PingFang SC","Source Han Sans SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  --f-display:Aileron,Helvetica,'Helvetica Neue',Arial,"PingFang SC","Source Han Sans SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  --f-mono:Aileron,Helvetica,'Helvetica Neue',Arial,"PingFang SC","Source Han Sans SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  --f-nav:var(--f-body);
}
/* The two places base.css does not route through a variable. */
body{font-family:var(--f-body);}

/* base.css redeclares these under html[lang="zh"] with a CJK-first stack, and that selector
   is more specific than :root — so without this the Chinese site kept Helvetica for its
   Latin while the English site moved to Aileron. Same stack as base.css's, with Aileron
   in front of it: the Chinese characters still resolve to PingFang / Source Han / YaHei,
   and the Latin mixed into them now matches the rest of the site. */
html[lang="zh"]{
  --f-body:Aileron,Helvetica,'Helvetica Neue',Arial,"PingFang SC","Source Han Sans SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  --f-display:Aileron,Helvetica,'Helvetica Neue',Arial,"PingFang SC","Source Han Sans SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  --f-mono:Aileron,Helvetica,'Helvetica Neue',Arial,"PingFang SC","Source Han Sans SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
}

/* ---- the mark ---------------------------------------------------------------- */
/* base.css sets 64px with a note about keeping the mark the most prominent thing in the
   bar. 51px is what the Lab site uses, and the client asked to follow it. The footer
   lockup (.foot-brand .brand img, 46px) is deliberately left alone. */
.site-header .brand img{height:51px;}

/* ---- inset ------------------------------------------------------------------- */
/* The header's own rail, and the second half of the review's rank 5 — the first half landed in
   base.css and could not reach here, because this file loads after it.
   base.css:228 leaves the bar on --maxw:1640px while the page column is 1560px, so the header
   content and the page content start on different verticals at every width. The review measured
   four rails on one page (/service-ai-solutioning/ at 1920: left edges 85.3, 119, 200, 245.3 —
   a 159.7px spread); this is one of them.
   The --pad also moves, from the 60px this file set to the page's own clamp, because a matching
   --maxw with a different --pad still starts the content somewhere else. That replaces a step
   the note below documents as deliberate; it is replaced knowingly, and the review measured the
   nav's scrollWidth against its width at 1280/1360/1440/1600/1920 and found no crowding. */
.site-header .container.nav{--maxw:1560px;--pad:clamp(40px,3.4vw,72px);}

/* ---- navigation -------------------------------------------------------------- */
.site-header .nav-links{gap:32px;}
.site-header .nav-top{
  font-family:var(--f-nav);
  font-size:16px;font-weight:600;letter-spacing:normal;
}

/* 2026-09-07: the two declarations above never landed on the English bar. base.css's
   `.nav-links button.nav-top,.mobile-menu button.m-link` reset — the four top-level items
   are <button> now, not <a>, because they open a panel and navigate nowhere — strips the
   UA button styling with `font:inherit`, and the shorthand does not just take the family:
   it takes size, weight, style and line-height off .nav-links with it, which is 18px/500.
   At (0,2,1) that reset out-ranks `.site-header .nav-top` (0,2,0) above, so the English
   nav has been rendering 18px/500 — precisely the state this file's header note says it
   was replacing. Measured on the live home page at 1440: all four items 18px/500. The miss
   is 2px and 100 weight units.

   Restated below at (0,4,2) so it clears the reset. The `html:not([lang="zh"])` gate is
   not decoration: the Chinese bar is NOT broken, and must not be dragged along. Its own
   `html[lang="zh"] .site-header .nav-top` at (0,3,1) already wins the size, and base.css's
   `html[lang="zh"] .nav-links` block carries the rest; measured before and after this edit
   it is 16.5px/800 with letter-spacing .297px and a 29px gap, unchanged, and the rendered
   header is pixel-identical (same PNG hash). Aileron has no CJK glyphs, so putting that
   branch on 16px/600 Latin metrics would cost the Chinese nav tuning it was measured for.
   This selector cannot reach it.

   Cost: the nav gets NARROWER, not wider. The four labels plus their three gaps measure
   599.89px before and 573.22px after at 1440 — 26.67px given back, one row, no overflow.
   There is no tight band to trade against: base.css hides .nav-links entirely under
   `@media (max-width:1200px)`, and 1024/1100/1180/1200 all compute display:none, so
   1024-1180 is hamburger territory. 1201 is the first width that shows this nav, and there
   the row occupies 543.22px of a 1062px track — 26.67px more slack than before.

   Only <button> items are corrected because only those are broken: app.js emits an
   <a class="nav-top"> for a top-level item with no mega panel, the reset never touched it,
   and it has always taken 16px/600 from the rule above. All four current NAV entries carry
   a mega panel, so today every top-level item is a button; if a panel-less one is ever
   added it will already match. */
html:not([lang="zh"]) .site-header .nav-links button.nav-top{
  font-size:16px;font-weight:600;
}

/* Chinese keeps the treatment base.css tuned for it — a shade smaller and further apart,
   because the characters are denser than the Latin they sit beside. Aileron is still
   first in the stack so any Latin inside a Chinese label matches the rest of the bar. */
html[lang="zh"] .site-header .nav-links{gap:29px;}
html[lang="zh"] .site-header .nav-top{font-size:16.5px;letter-spacing:.018em;}

/* ---- narrower viewports ------------------------------------------------------- */
/* 60px of inset and 32px between items is what the source measures at 1280px, but its
   labels are short ones and its bar carries no search/region/language cluster. Ours does,
   and "Our Clients & Partners" alone is 161px, so at 1280 the row runs out of bar. From
   1400 up the source's numbers hold; below that the inset and the gap give way rather
   than the type, since shrinking the labels would undo the point of this file. */
@media (max-width:1399.98px){
  .site-header .container.nav{--pad:40px;}
  .site-header .nav-links{gap:22px;}
  html[lang="zh"] .site-header .nav-links{gap:20px;}
}
@media (max-width:1279.98px){
  .site-header .container.nav{--pad:34px;}
}
@media (max-width:720px){
  /* base.css drops the mark to 48px here; the same proportional step from 51 is 40. */
  .site-header .brand img{height:40px;}
}
