/* Tokens + header and drawer, shared by every page (index.html, sector.html, brand.html). */
/* Brandbook 03.1 palette + 07.1 grid (margin = column / 2, gutter = margin / 2). */
:root {
  --orange: #ea4926;
  --blue: #0000c1;
  --silver: #d5d4d5;
  --smoke: #f5f5f5;
  --black: #121212;
  --rule: #c3c3c3;
  --text: #121212;
  --muted: rgba(18, 18, 18, .6);
  --m: max(18px, 4.1667vw);
  --g: max(10px, 2.0833vw);
  --header: 66px;
  --logo: 36px;
  --s: clamp(56px, 6vw, 96px);
  --font: "Coolvetica", "Helvetica Neue", Arial, sans-serif;
}
body.no-scroll { overflow: hidden; }

/* 05.2 Line Set — the main line */
.main-line { height: 20px; background: url("img/blue-line.svg") left center / auto 100% repeat-x; }
.main-line--orange { background-image: url("img/orange-line.svg"); }

/* arrows (05.2 Arrow Set) */
.arrow { width: 1em; height: 1em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: square; transition: transform .25s; }

/* ---------- header: the places to go on the left, the logo in the middle, the shop and the brief button
   on the right. Transparent over the hero, white once scrolled. ---------- */
header.site { position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: var(--header); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: var(--g); padding: 0 var(--m); color: #fff; transition: background .3s, color .3s, box-shadow .3s; }
header.site::before { content: ""; position: absolute; inset: 0 0 -40px; z-index: -1; background: linear-gradient(rgba(0,0,0,.35), transparent); transition: opacity .3s; pointer-events: none; }
header.site.is-solid { background: #fff; color: var(--black); box-shadow: 0 1px 0 var(--rule); }
header.site.is-solid::before { opacity: 0; }
header.site a:focus-visible, header.site button:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.logo { position: relative; display: block; height: var(--logo); }
.logo img { height: 100%; width: auto; max-width: none; transition: opacity .3s; }
.logo .dark { position: absolute; inset: 0; opacity: 0; }
header.site.is-solid .logo .dark { opacity: 1; }
header.site.is-solid .logo .light { opacity: 0; }
header.site nav { justify-self: start; display: flex; gap: clamp(22px, 2.6vw, 40px); }
header.site nav a, .shop-link { position: relative; padding: 7px 0; font-size: 15px; font-weight: 400; line-height: 1.2; white-space: nowrap; }
/* The marker under a link is a cut of the brandbook's main line: a slanted orange bar. */
header.site nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--orange); transform: skewX(-45deg) scaleX(0); transform-origin: left; transition: transform .25s; }
header.site nav a:hover::after, header.site nav a.is-active::after { transform: skewX(-45deg) scaleX(1); }
.actions { justify-self: end; display: flex; align-items: center; gap: 24px; }
.shop-link { display: inline-flex; align-items: center; gap: 6px; }
.shop-link .arrow { width: 14px; height: 14px; }
.shop-link:hover .arrow { transform: translate(2px, -2px); }
/* The brief button stays an outline while the hero's own button is in view, and turns blue once the header is solid. */
.header-cta { display: inline-flex; align-items: center; height: 38px; padding: 0 18px; border: 1px solid currentColor; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1; text-transform: uppercase; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.header-cta:hover { background: #fff; border-color: #fff; color: var(--black); }
header.site.is-solid .header-cta { background: var(--blue); border-color: var(--blue); color: #fff; }
header.site.is-solid .header-cta:hover { background: var(--black); border-color: var(--black); }
.menu-btn { display: none; }
.menu-btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.5; }

.drawer { position: fixed; inset: 0; z-index: 70; background: #fff; color: var(--black); padding: calc(var(--header) + 24px) var(--m) 32px; display: flex; flex-direction: column; gap: 4px; transform: translateY(-100%); transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.drawer.is-open { transform: none; }
.drawer a { display: flex; align-items: baseline; gap: .2em; font-size: 40px; font-weight: 300; line-height: 1.1; }
.drawer a .arrow { width: .55em; height: .55em; stroke-width: 1.4; }
.drawer a.is-active { font-weight: 700; color: var(--orange); }
.drawer .drawer-cta { align-self: flex-start; align-items: center; margin-top: auto; height: 50px; padding: 0 24px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 14px; font-weight: 700; line-height: 1; text-transform: uppercase; }
.drawer .main-line { margin-top: 24px; }
.drawer-close { position: absolute; top: 18px; right: var(--m); font-size: 32px; line-height: 1; font-weight: 300; }

/* Small screens: logo on the left, the brief button and the menu on the right. */
@media (max-width: 860px) {
  :root { --header: 58px; --logo: 28px; }
  header.site { grid-template-columns: 1fr auto; }
  header.site nav, .shop-link { display: none; }
  .menu-btn { display: block; }
  .actions { gap: 14px; }
  .header-cta { height: 32px; padding: 0 12px; font-size: 11px; }
  .logo { justify-self: start; }
}
@media (max-width: 520px) {
  :root { --logo: 24px; }
  .drawer a { font-size: 34px; }
}
@media (max-width: 350px) {
  .header-cta { display: none; }
}
