/* Option 8: styles for the About and Privacy pages.
   Stands alone. Does not import site.css or base.css.
   Built from the Option 8 build specification: tokens (2), top bar (3.0),
   footer (3.7), accessibility (6), fonts (7.3), the two pages (9). */

/* ---------- Fonts (7.3) ---------- */
@font-face { font-family: 'Satoshi'; src: url('fonts/Satoshi-Medium-latin.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('fonts/Satoshi-Bold-latin.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('fonts/Satoshi-Black-latin.woff2') format('woff2'); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('fonts/IBMPlexMono-Medium-latin.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
/* size-matched fallbacks so the font swap moves nothing */
@font-face { font-family: 'Satoshi Fallback'; src: local('Helvetica Neue'), local('Arial'); font-weight: 100 800; size-adjust: 97.7%; }
@font-face { font-family: 'Satoshi Fallback'; src: local('Helvetica Neue'), local('Arial'); font-weight: 900; size-adjust: 100.9%; }

/* ---------- Tokens (2) ---------- */
:root {
  --black: #000000;
  --navy: #00104E;
  --paper: #FFFFFF;
  --paper-2: #F5F5F7;
  --card: #FFFFFF;
  --ink: #141413;
  --ink-2: #45443F;
  --muted: #5F5E58;
  --line: #E3E3E6;
  --on-dark: #F5F5F7;
  --on-dark-2: #C7C7CC;
  --on-dark-3: #A1A1A6;
  --line-dark: rgba(255, 255, 255, 0.14);
  --red: #990000;
  --red-on-dark: #FF6257;
  --bar: rgba(10, 10, 12, 0.96);

  --sans: 'Satoshi', 'Satoshi Fallback', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;

  --section: clamp(72px, 10vw, 144px);
  --wrap: 1120px;
  --gutter: max(clamp(20px, 4vw, 32px), env(safe-area-inset-left), env(safe-area-inset-right));
  --nav-h: 56px;
  --r-tag: 6px;
  --r-inner: 12px;
  --r-card: 28px;
  --r-pill: 999px;

  --ease-enter: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-move: cubic-bezier(0.28, 0.11, 0.32, 1);
  --t-press: 100ms;
  --t-hover: 150ms;
  --t-state: 300ms;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--black);
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, p, dl, dd, ul { margin: 0; }
ul[role="list"] { padding: 0; list-style: none; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a, button { touch-action: manipulation; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* One focus style everywhere: a white line with a dark halo */
:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 3px; box-shadow: 0 0 0 7px #141413; }
main:focus { outline: none; box-shadow: none; }
.nav-links a, .nav-menu a, .nav-logo, .link-arrow, .text-link, .foot-links a { border-radius: var(--r-tag); }

.skip {
  position: fixed; left: 12px; top: 12px; z-index: 30;
  padding: 8px 16px;
  background: #FFFFFF; color: var(--ink); border-radius: var(--r-pill);
  font-weight: 700;
  transform: translateY(-96px);
}
.skip:focus { transform: none; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Type styles (2.2) ---------- */
.label {
  font-family: var(--mono); font-size: 12px; line-height: 16px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
}
.display {
  font-size: clamp(40px, 6.3vw, 88px); line-height: 1; letter-spacing: -0.04em; font-weight: 700;
  font-variant-ligatures: no-common-ligatures; text-wrap: balance;
}
.heading {
  font-size: clamp(32px, 4.6vw, 64px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 700;
  font-variant-ligatures: no-common-ligatures; text-wrap: balance;
}
.title {
  font-size: clamp(21px, 2vw, 28px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700;
  font-variant-ligatures: no-common-ligatures; text-wrap: balance;
}
.lead { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.4; color: var(--ink-2); text-wrap: pretty; }
.small { font-size: 15px; line-height: 1.45; }
p, li, dd { text-wrap: pretty; }
@media (max-width: 400px) {
  .display { font-size: clamp(34px, 10.2vw, 40px); }
}

/* ---------- Top bar (3.0) ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 20;
  color: var(--on-dark);
}
/* The blur sits on a layer of its own so the Menu sheet can blur too */
.nav::before {
  content: ""; position: absolute; inset: 0;
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  transition: background-color var(--t-state) var(--ease-move), box-shadow var(--t-state) var(--ease-move);
}
.nav.is-stuck::before { background-color: var(--bar); box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(20, 20, 19, 0.12); }
.nav-in {
  position: relative; height: var(--nav-h);
  max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center;
}
.nav-logo { display: inline-flex; align-items: center; flex: none; height: 44px; margin-right: auto; }
.nav-logo svg { width: 176px; height: 22px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  position: relative; display: inline-flex; align-items: center; height: 44px; padding: 0 11px;
  font-size: 14px; line-height: 1; font-weight: 500; white-space: nowrap;
  color: var(--on-dark); opacity: 0.85;
  transition: opacity var(--t-hover) var(--ease-move);
}
.nav-links a::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 8px; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: left center;
  transition: transform var(--t-state) var(--ease-move);
}
.nav-links a[aria-current] { opacity: 1; }
.nav-links a[aria-current]::after { transform: scaleX(1); }
.nav-links a:active { opacity: 0.6; }
.nav-cta {
  position: relative; display: inline-flex; align-items: center; flex: none;
  height: 36px; padding: 0 16px; margin-left: 8px; border-radius: var(--r-pill);
  font-size: 14px; line-height: 1; font-weight: 700; white-space: nowrap;
  color: var(--on-dark); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
  transition: background-color var(--t-hover) var(--ease-move), color var(--t-hover) var(--ease-move), transform 200ms var(--ease-move);
}
.nav-cta::after { content: ""; position: absolute; inset: -4px; }
.nav-cta:focus-visible { background: #FFFFFF; color: var(--ink); }
.nav-cta:active { transform: scale(0.97); transition-duration: 80ms; }
.nav-menu-btn {
  position: relative; display: none; flex: none; width: 44px; height: 44px; margin: 0 -12px 0 4px;
  border-radius: var(--r-pill);
}
.nav-menu-btn span {
  position: absolute; left: 13px; top: 21px; width: 18px; height: 2px; border-radius: 1px;
  background: var(--on-dark);
  transition: transform var(--t-state) var(--ease-move);
}
.nav-menu-btn span:first-child { transform: translateY(-4px); }
.nav-menu-btn span:last-child { transform: translateY(4px); }
.nav-menu-btn[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.nav-menu-btn[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

.nav-menu {
  position: absolute; top: var(--nav-h); left: 0; right: 0;
  padding: 8px var(--gutter) 16px;
  background: var(--bar);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1);
}
.nav-menu[hidden] { display: none; }
.nav-menu a {
  display: flex; align-items: center; height: 56px;
  font-size: 22px; font-weight: 700; color: var(--on-dark);
}
.nav-menu a:active { opacity: 0.6; }

@media (min-width: 620px) {
  .nav-menu { display: none; }
}
@media (max-width: 649px) {
  .nav-logo svg { width: 144px; height: 18px; }
}
@media (max-width: 619px) {
  .nav-links { display: none; }
  .nav-menu-btn { display: block; }
  .nav-menu-btn[hidden] { display: none; } /* shown by the script, so it never appears without one */
}
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover { opacity: 1; }
  .nav-cta:hover { background: #FFFFFF; color: var(--ink); transform: scale(1.03); }
}
@media (prefers-reduced-motion: no-preference) {
  .nav-menu { animation: menu-fade 280ms var(--ease-enter) both; }
  .nav-menu a { animation: menu-rise 280ms var(--ease-enter) both; }
  .nav-menu a:nth-child(2) { animation-delay: 30ms; }
  .nav-menu a:nth-child(3) { animation-delay: 60ms; }
  .nav-menu a:nth-child(4) { animation-delay: 90ms; }
}
@keyframes menu-fade { from { opacity: 0; } }
@keyframes menu-rise { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Page shell (9) ---------- */
.page {
  background: var(--paper);
  padding: calc(var(--nav-h) + clamp(48px, 8vw, 96px)) 0 var(--section);
}

/* ---------- Controls on light ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 30px; border-radius: var(--r-pill);
  background: var(--ink); color: #FFFFFF;
  font-size: 17px; line-height: 1; font-weight: 700; white-space: nowrap;
  transition: transform 200ms var(--ease-move);
}
.btn:active { transform: scale(0.97); transition-duration: 80ms; }
.link-arrow {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; margin: 0 -4px;
  font-size: 17px; line-height: 1; font-weight: 700; color: var(--navy);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px;
}
.link-arrow .arr { display: inline-block; white-space: pre; transition: transform 200ms var(--ease-move); }
.link-arrow:active { opacity: 0.6; }
.text-link {
  color: var(--navy);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.text-link:active { opacity: 0.6; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: scale(1.03); }
  .btn:hover:active { transform: scale(0.97); }
  .link-arrow:hover .arr { transform: translateX(3px); }
  .text-link:hover { text-decoration-thickness: 2px; }
}

/* ---------- About (9.1) ---------- */
.intro { display: flex; flex-direction: column; }
.intro-text .display { margin-top: 12px; }
.intro-text .lead { margin-top: 16px; max-width: 560px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 32px; }
.portrait { order: -1; display: block; width: 160px; margin-bottom: 32px; }
.portrait img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: var(--r-card); background: var(--paper-2);
}

.band { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.band-body { margin-top: 12px; }
.band-body > p { max-width: 680px; color: var(--ink-2); }
.band-body > p + p { margin-top: 16px; }
.band-body > .heading { color: var(--ink); }
.band-body > .heading + p { margin-top: 24px; }
.band-body > .link-arrow { margin-top: 16px; }

/* Number rail: the same as the homepage (3.2.1) */
.rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.rail > div {
  display: flex; flex-direction: column-reverse; justify-content: flex-end;
  padding: 24px 0 24px 16px; border-left: 1px solid var(--line);
}
.rail > div:first-child { padding-left: 0; border-left: 0; }
.rail dd {
  font-size: clamp(56px, 9vw, 120px); line-height: 0.85; letter-spacing: -0.05em; font-weight: 900;
  color: var(--ink);
}
.rail dd.is-red { color: var(--red); }
.rail dt { margin-top: 16px; font-size: 13px; line-height: 1.45; font-weight: 700; color: var(--ink); }

.facts { margin-top: 48px; }
.facts > div {
  display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 16px; align-items: baseline;
  padding: 16px 0; border-top: 1px solid var(--line);
}
.facts dt { line-height: 22px; }
.facts dd { font-size: 15px; line-height: 22px; color: var(--ink); }
.company p { font-size: 15px; line-height: 22px; }
.company .mail { display: inline-block; padding: 11px 0; margin-top: 4px; overflow-wrap: anywhere; }

@media (min-width: 620px) {
  .band { margin-top: 64px; padding-top: 32px; }
  .rail > div { padding: 32px 0 32px 24px; }
  .rail dt { font-size: 15px; }
  .facts { margin-top: 64px; }
  .facts > div { grid-template-columns: 160px minmax(0, 1fr); column-gap: 24px; }
}
@media (min-width: 900px) {
  .intro {
    display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center;
  }
  .intro-text { grid-column: 1 / span 7; }
  .portrait { order: 0; grid-column: 9 / span 4; width: 100%; max-width: 400px; margin: 0; justify-self: end; }
  .band, .facts > div {
    display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px;
  }
  .band > .label, .facts dt { grid-column: 1 / span 3; }
  .band > .band-body, .facts dd { grid-column: 4 / span 9; margin-top: 0; }
  .band > .label { line-height: 26px; }
  .band-tall > .label { padding-top: 16px; }
  .band .rail > div { padding-top: 0; }
  /* Company reads as the last row of the facts table */
  .facts-sec + .band { margin-top: 0; padding-top: 16px; }
  .company > .label { line-height: 22px; }
}

/* ---------- Privacy (9.2) ---------- */
.prose { max-width: 680px; }
.prose h1 { margin-top: 12px; }
.prose h2 { margin-top: 32px; }
.prose p { margin-top: 16px; color: var(--ink-2); overflow-wrap: break-word; }
.prose h1 + p { margin-top: 24px; }
.prose h2 + p { margin-top: 12px; }
.prose .updated { margin-top: 32px; font-size: 15px; line-height: 1.45; color: var(--muted); }

/* ---------- Footer (3.7): same values as the homepage ---------- */
.foot {
  position: relative; z-index: 2;
  background: var(--black); color: var(--on-dark-3);
  font-size: 14px; line-height: 22px;
  padding: 32px 0 calc(32px + env(safe-area-inset-bottom));
}
.foot-top { display: grid; gap: 24px; }
.foot-brand p { margin-top: 12px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 24px; }
.foot-links a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere;
  transition: color var(--t-hover) var(--ease-move), opacity var(--t-hover) var(--ease-move);
}
/* short words such as Team keep a 44px wide hit area without moving anything */
.foot-links a::after { content: ""; position: absolute; inset: 0 -6px; }
.foot-links a:active { opacity: 0.6; }
.foot-legal {
  display: grid; gap: 8px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line-dark);
  font-size: 13px;
}
.foot-internal { color: var(--red-on-dark); }
@media (min-width: 620px) {
  /* Same as the homepage: brand left, contact right, the page links in one row beneath (a shorter footer) */
  .foot-top { grid-template-columns: minmax(max-content, 1fr) auto; }
  .foot-top > :nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
}
@media (hover: hover) and (pointer: fine) {
  .foot-links a:hover { color: var(--on-dark); }
}

/* ---------- Windows high contrast ---------- */
@media (forced-colors: active) {
  .nav-menu-btn span { background: CanvasText; }
  .btn, .nav-cta { border: 1px solid ButtonText; }
}

/* ---------- Reduced motion (5.9) ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
