/* Site chrome: header (with the Industries menu and the phone menu) and footer.
   One copy for every page, the redesigned ones and the older ones. Its tokens are scoped
   to the chrome so the older pages keep their own. Markup comes from header() and footer()
   in site/pages-src/layout.mjs; index.html carries a copy of the same markup. */
.nav, .foot, .menu {
  --paper-100: #F2EFE7; --ink-950: #11110F; --ink-900: #1A1A17; --ink-800: #262622; --ink-600: #3A3A34; --ink-300: #96948B; --ink-200: #C4C1B6;
  --acid: #C9FF5A;
  --display: 'Saira', system-ui, sans-serif; --body: 'Pretendard Std', system-ui, sans-serif; --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 48px); --max: 1240px; --nav: 64px; --hair: rgba(242, 239, 231, .12);
}
/* older pages size their top gap from the header height, and their content runs wider (pages.css --wrap):
   there the chrome follows their grid so the logo lines up with the page */
:root { --bar-h: 64px; }
body.pg .nav, body.pg .foot, body.pg .menu { --gutter: clamp(20px, 4vw, 48px); --max: calc(1280px + 2 * var(--gutter)); }

.nav .wrap, .foot .wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.nav a, .foot a, .menu a { color: inherit; }
.nav :focus-visible, .foot :focus-visible, .menu :focus-visible { outline: 2px solid var(--acid); outline-offset: 3px; border-radius: 4px; }
.nav .brand, .foot .brand, .menu .brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; font-family: var(--display); font-weight: 500; font-size: 17px; letter-spacing: 0; color: var(--paper-100); }
/* the logo as Akshay's reference (22 Oct): the whole eagle at about 2.4 times the height of a capital, 1.35 caps from the name */
.nav .brand svg, .foot .brand svg, .menu .brand svg { display: block; width: 32px; height: auto; color: var(--paper-100); }

/* header: clear at the top of the page, solid once you scroll */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav); font-family: var(--body); color: var(--paper-100); border-bottom: 1px solid transparent; transition: background-color .25s, border-color .25s; }
.nav.is-solid { background: rgba(17, 17, 15, .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--hair); }
.nav .wrap { display: flex; align-items: center; height: 100%; gap: 28px; }
.nav__links { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.nav__links > a, .nav .mega__btn, .nav .drop__btn { display: block; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-200); text-decoration: none; padding: 10px 12px; border-radius: 6px; }
.nav__links > a:hover, .nav .mega__btn:hover, .nav .mega.is-open .mega__btn, .nav .drop__btn:hover, .nav .drop.is-open .drop__btn, .nav__links [aria-current] { color: var(--paper-100); }
.nav .btn { display: inline-flex; align-items: center; padding: 9px 14px; border-radius: 8px; background: var(--acid); color: var(--ink-950); font: 600 14px/1.2 var(--body); text-decoration: none; white-space: nowrap; transition: background-color .15s; }
.nav .btn:hover { background: #d8ff80; }
.nav__menu { display: none; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--ink-600); border-radius: 8px; background: transparent; color: var(--paper-100); cursor: pointer; }
.nav__menu svg { display: block; }

/* the Industries menu, with a photo of the industry under the pointer */
.nav .mega { position: relative; }
.nav .mega__panel { position: absolute; left: -12px; top: calc(100% + 10px); width: 600px; display: grid; grid-template-columns: 220px 1fr; gap: 12px; padding: 12px; background: rgba(17, 17, 15, .94); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid var(--hair); border-radius: 10px; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .18s, transform .18s, visibility 0s .18s; }
.nav .mega__panel::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav .mega.is-open .mega__panel { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .18s; }
.nav .mega__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nav .mega__list a { display: flex; justify-content: space-between; gap: 8px; padding: 9px 10px; border-radius: 6px; font-size: 14px; line-height: 1.4; text-decoration: none; color: var(--ink-200); }
.nav .mega__list a:hover, .nav .mega__list a:focus-visible, .nav .mega__list a.is-hl { background: var(--ink-800); color: var(--paper-100); }
.nav .mega__list .all { margin-top: 6px; border-top: 1px solid var(--hair); padding-top: 12px; border-radius: 0 0 6px 6px; }
.nav .mega__pre { position: relative; border-radius: 8px; overflow: hidden; background: var(--ink-900); min-height: 220px; }
.nav .mega__pre img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .25s; }
.nav .mega__pre::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(17, 17, 15, .8)); }
.nav .mega__pre span { position: absolute; z-index: 1; left: 12px; bottom: 10px; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }

/* Product and Company: a short list under the label, opened like the Industries menu */
.nav .drop { position: relative; }
.nav .drop__panel { position: absolute; left: -12px; top: calc(100% + 10px); min-width: 240px; padding: 8px; background: rgba(17, 17, 15, .94); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid var(--hair); border-radius: 10px; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .18s, transform .18s, visibility 0s .18s; }
.nav .drop__panel::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav .drop.is-open .drop__panel { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .18s; }
.nav .drop__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nav .drop__list a { display: block; padding: 9px 10px; border-radius: 6px; font-size: 14px; line-height: 1.4; white-space: nowrap; text-decoration: none; color: var(--ink-200); }
.nav .drop__list a:hover, .nav .drop__list a:focus-visible { background: var(--ink-800); color: var(--paper-100); }

/* phones: the links move into a full-screen menu */
@media (max-width: 900px) {
  .nav .wrap { gap: 12px; }
  .nav__links { display: none; }
  .nav .brand { margin-right: auto; }
  .nav__menu { display: grid; }
}
@media (max-width: 380px) { .nav .btn { padding: 9px 11px; font-size: 13px; } .nav .brand { font-size: 15px; } }
dialog.menu { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 12px var(--gutter) 32px; border: 0; background: var(--ink-950); color: var(--paper-100); font-family: var(--body); overflow-y: auto; }
.menu::backdrop { background: rgba(17, 17, 15, .6); }
.menu__top { display: flex; align-items: center; justify-content: space-between; height: 40px; }
.menu__close { height: 40px; padding: 0 14px; border: 1px solid var(--ink-600); border-radius: 8px; background: transparent; color: var(--paper-100); font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.menu nav { display: grid; margin-top: 24px; border-top: 1px solid var(--hair); }
.menu nav a { display: block; padding: 16px 0; border-bottom: 1px solid var(--hair); font: 500 24px/1.1 var(--display); text-decoration: none; }
.menu nav a[aria-current] { color: var(--acid); }
.menu nav a.menu__sub { padding: 12px 0 12px 16px; font: 16px/1.3 var(--body); color: var(--ink-200); }
.menu .btn { display: flex; justify-content: center; margin-top: 28px; padding: 14px 18px; border-radius: 8px; background: var(--acid); color: var(--ink-950); font: 600 16px/1.2 var(--body); text-decoration: none; }

/* footer */
.foot { border-top: 1px solid var(--ink-800); padding: 56px 0 32px; background: var(--ink-950); color: var(--ink-300); font: 14px/1.55 var(--body); }
body.pg .foot { margin-top: 64px; }
.foot__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot h3 { margin: 0 0 14px; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--paper-100); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--paper-100); }
.foot__loc { margin: 14px 0 0; }
.foot__base { margin-top: 48px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font: 11px/1.4 var(--mono); }
@media (max-width: 760px) { .foot__grid { grid-template-columns: 1fr 1fr; } }
