/* Obscure Technologies: base, header (the line), footer, page header, shared parts. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; background: var(--paper); }
/* Lenis, as its own docs ask: its smoothing runs the scroll, so the browser's must stay off, and a locked page (the menu is open) cannot scroll */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-display);
  font-size: 18px;
  line-height: 1.62;
  font-weight: 400;
  font-feature-settings: 'tnum' 1, 'cv11' 1;
  font-variant-numeric: tabular-nums;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: var(--violet); color: #fff; }

.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: var(--radius); text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 2px; }
.band--night :focus-visible { outline-color: #A99BFF; }

.wrap { width: min(var(--wrap), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.g12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }

/* type */
.h1, h1.h1 { font-size: clamp(52px, 8.2vw, 132px); line-height: 0.98; font-weight: var(--w-light); letter-spacing: -0.035em; text-wrap: balance; }
.h2, h2 { font-size: clamp(36px, 5vw, 76px); line-height: 1.02; font-weight: var(--w-light); letter-spacing: -0.03em; text-wrap: balance; }
.h3, h3 { font-size: 24px; line-height: 1.25; font-weight: 500; letter-spacing: -0.01em; }
.lead { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.45; font-weight: var(--w-lead); letter-spacing: -0.01em; max-width: 34em; color: var(--fg-2); }
.mono { font-family: var(--f-mono); font-size: 13px; line-height: 1.4; letter-spacing: 0; }
.mono--3 { color: var(--fg-3); }
p { max-width: 36em; }   /* about 70 characters a line in Sora; ch would give 90 and more, because Sora's zero is wide */
.prose p + p { margin-top: 1em; }
.prose a, .textlink { color: var(--violet-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color var(--d1) ease; }
.band--night .prose a, .band--night .textlink { color: #C5BDFF; }
.prose a:hover, .textlink:hover { color: var(--ink); }
.band--night .prose a:hover, .band--night .textlink:hover { color: #fff; }
strong { font-weight: 500; }

/* buttons: solid, obviously clickable, no icons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: var(--radius);
  background: var(--ink); color: var(--paper); font-size: 17px; font-weight: 500; letter-spacing: -0.005em; text-decoration: none;
  transition: background var(--d2) var(--ease-arrive), transform var(--d2) var(--ease-arrive);
}
.btn:hover { background: var(--violet); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn--violet { background: var(--violet); color: #fff; }
.btn--violet:hover { background: var(--ink); }
.btn--signal { background: var(--signal); color: var(--ink); }
.btn--signal:hover { background: var(--ink); color: var(--paper); }
.btn--quiet { background: var(--paper-2); color: var(--ink); }
.btn--quiet:hover { background: var(--ink); color: var(--paper); }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--paper-3); color: var(--ink-3); cursor: not-allowed; }
.band--night .btn { background: var(--paper); color: var(--ink); }
.band--night .btn:hover { background: var(--violet); color: #fff; }

/* header: the line. Its paper and its hairline are two layers behind it that fade by opacity, so nothing about the header repaints while the page scrolls. */
.top {
  position: sticky; top: 0; z-index: 50; height: var(--head-h); isolation: isolate;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: clamp(20px, 3vw, 48px);
  padding-inline: var(--gutter);
}
.top::before, .top::after { content: ''; position: absolute; left: 0; right: 0; z-index: -1; pointer-events: none; transition: opacity var(--d3) var(--ease-arrive); }
.top::before { top: 0; bottom: 0; background: var(--paper); }
.top::after { bottom: 0; height: 1px; background: var(--rule); opacity: 0; }
.top.is-solid::after { opacity: 1; }
body.home .top:not(.is-solid)::before { opacity: 0; }
.brand { display: block; justify-self: start; color: var(--ink); line-height: 0; }
.brand .logo { width: 150px; height: 18px; }
.line ol { position: relative; display: flex; justify-content: center; gap: clamp(20px, 3.2vw, 52px); }
.line ol::before { content: ''; position: absolute; left: 4%; right: 4%; top: 5px; height: 1px; background: var(--paper-3); }
.line a { position: relative; display: grid; justify-items: center; gap: 12px; font-size: 15px; line-height: 1.1; color: var(--ink); text-decoration: none; padding-bottom: 2px; }
.line a i { width: 11px; height: 11px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink); transition: background var(--d2) var(--ease-arrive), box-shadow var(--d2) var(--ease-arrive), transform var(--d2) var(--ease-arrive); }
.line a:hover i { background: var(--teal); box-shadow: inset 0 0 0 1.5px var(--teal); transform: scale(1.18); }
.line a[aria-current="page"] i, .line a[aria-current="true"] i { background: var(--signal); box-shadow: inset 0 0 0 1.5px var(--signal), 0 0 0 5px color-mix(in srgb, var(--signal) 22%, transparent); }
.top__actions { display: flex; align-items: center; gap: 22px; justify-self: end; }
.top__tel { font-size: 15px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.top__tel:hover { color: var(--violet-deep); text-decoration: underline; text-underline-offset: 4px; }
.top .btn { min-height: 44px; padding: 0 20px; font-size: 16px; }
.menu-btn { display: none; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border: 0; border-radius: var(--radius); background: var(--ink); color: var(--paper); font-size: 16px; font-weight: 500; }
.menu-btn:hover { background: var(--violet); color: #fff; }
.menu-btn.is-close { background: var(--paper-2); color: var(--ink); }
.menu-btn.is-close:hover { background: var(--ink); color: var(--paper); }

.menu { position: fixed; inset: 0; z-index: 90; background: var(--paper); padding: 28px var(--gutter) 40px; overflow-y: auto; }
.menu__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 36px; }
.menu ol { position: relative; display: grid; gap: 4px; padding-left: 38px; }
.menu ol::before { content: ''; position: absolute; left: 6px; top: 22px; bottom: 22px; width: 1px; background: var(--paper-3); }
.menu a { position: relative; display: block; padding: 10px 0; font-size: 34px; font-weight: var(--w-light); letter-spacing: -0.03em; text-decoration: none; line-height: 1.1; }
.menu a::before { content: ''; position: absolute; left: -38px; top: 50%; width: 13px; height: 13px; margin-top: -6px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink); }
.menu a[aria-current="page"]::before { background: var(--signal); box-shadow: inset 0 0 0 1.5px var(--signal); }
.menu__more { margin-top: 28px; display: grid; gap: 6px; font-size: 18px; }
.menu__more a { font-size: 18px; font-weight: 400; letter-spacing: 0; padding: 6px 0; }
.menu__more a::before { display: none; }

/* logos: one colour, from the traced marks */
.logo { display: inline-block; flex: none; background-color: currentColor; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; }

/* the six layers: one atom used on every page */
.strip { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.chip { display: inline-flex; align-items: center; gap: 9px; min-height: 34px; padding: 0 14px 0 12px; border-radius: 999px; font-size: 15px; line-height: 1; color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--paper-3); background: transparent; }
.chip::before { content: ''; width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; }
.chip.is-on { color: var(--teal-deep); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--teal) 55%, transparent); background: color-mix(in srgb, var(--teal) 8%, transparent); }
.chip.is-on::before { background: var(--teal); box-shadow: none; }
.chip.is-attack { color: var(--signal-ink); }
.chip.is-attack::before { background: var(--signal); box-shadow: none; }
.chip b { font-weight: 500; color: var(--ink); }
.chip.is-on b { color: var(--teal-deep); }

/* page header on inner pages */
.pagehead { padding: clamp(56px, 8vw, 120px) 0 clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--rule); }
.pagehead .crumb { margin-bottom: clamp(22px, 3vw, 40px); color: var(--ink-3); }
.pagehead .crumb a { text-decoration: none; }
.pagehead .crumb a:hover { color: var(--violet-deep); text-decoration: underline; text-underline-offset: 3px; }
.pagehead h1 { max-width: 14em; }
.pagehead .lead { margin-top: clamp(20px, 2.6vw, 34px); }
.pagehead__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.pagehead .strip { margin-top: 28px; }

.section { padding: clamp(56px, 8vw, 120px) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; margin-bottom: clamp(32px, 4vw, 56px); }
.section__head > h2 { grid-column: 1 / span 7; }
.section__head > p { grid-column: 9 / span 4; align-self: end; color: var(--fg-2); font-size: 18px; }
.band--night { --bg: var(--night); --fg: var(--paper); --fg-2: #B6C0CA; --fg-3: #93A0AC; --rule: #24313E; background: var(--bg); color: var(--fg); }
.band--paper2 { background: var(--paper-2); }

/* the scrub: words go from pale to ink as they pass. The script sets each word's opacity; ink at low opacity on paper is the pale. */
.scrub .w { opacity: 0.16; }
html:not(.js) .scrub .w { opacity: 1; }

/* reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--d3) var(--ease-arrive), transform var(--d3) var(--ease-arrive); }
.reveal.is-in { opacity: 1; transform: none; }
html:not(.js) .reveal { opacity: 1; transform: none; }

/* footer: positioned above the home page's fixed canvas (z 0) and callouts (z 3), which otherwise paint over it on desktop */
.foot { position: relative; z-index: 4; background: var(--night); color: var(--paper); padding: clamp(56px, 7vw, 96px) 0 36px; }
.foot + .sa-corner-room { position: relative; z-index: 4; } /* agent.js's room for the launcher, after the footer */
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; }
.foot__brand { grid-column: 1 / span 4; }
.foot__brand .logo { width: 190px; height: 23px; color: var(--paper); margin-bottom: 22px; }
.foot__brand p { color: #B6C0CA; font-size: 16px; max-width: 17em; }
.foot h2 { font-size: 13px; font-family: var(--f-mono); font-weight: 400; letter-spacing: 0; line-height: 1.4; color: #93A0AC; margin-bottom: 16px; text-wrap: initial; }
.foot ul { display: grid; gap: 9px; font-size: 16px; }
.foot nav, .foot address { font-style: normal; font-size: 16px; line-height: 1.55; }
.foot__a { grid-column: 6 / span 2; }
.foot__b { grid-column: 8 / span 2; }
.foot__c { grid-column: 10 / span 3; }
.foot address + address { margin-top: 14px; }
.foot__base { margin-top: 56px; padding-top: 22px; border-top: 1px solid #24313E; display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; font-size: 14px; color: #93A0AC; }
.foot__base ul { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; }
.foot__base a { color: #C9D2DA; }

@media (max-width: 1020px) {
  .line { display: none; }
  .menu-btn { display: inline-flex; }
  .top__tel { display: none; }
  .top { grid-template-columns: 1fr auto; }
  .foot__brand { grid-column: 1 / -1; }
  .foot__a { grid-column: 1 / span 6; }
  .foot__b { grid-column: 7 / span 6; }
  .foot__c { grid-column: 1 / -1; }
  .section__head > h2 { grid-column: 1 / -1; }
  .section__head > p { grid-column: 1 / -1; margin-top: 18px; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .brand .logo { width: 132px; height: 16px; }
  .pagehead__row { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .top .btn { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
