/* Reference Build. One homepage made from the three sections Max saved:
   Antimetal (a list that changes a panel, on a soft band of colour under a
   serif headline), Rogo (a fixed panel while statements scroll past, the one
   in view dark) and Eladio Dieste (the name across the full width with a
   photograph showing through the letters, on black). The band of colour is
   OnePrime's blue where Antimetal's is orange. */

:root {
  --ink: #0f1014;
  --text: #2b2d36;
  --muted: #6a6d7a;
  --dim: #b1b4c0;
  --ground: #f6f7fb;
  --blue: #1308e1;
  --line: #e2e4ec;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --pad: clamp(20px, 4.4vw, 64px);
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  scrollbar-color: #b7bbcc transparent;
}

body {
  margin: 0;
  font-family: "Geist", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px; line-height: 1.5;
  color: var(--ink); background: var(--ground);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.sign :focus-visible { outline-color: #fff; }

h1, h2 { font-family: "Roboto Slab", "Rockwell", Georgia, serif; font-weight: 300; letter-spacing: -0.018em; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--pad); }
.ico { flex: none; }
.skip {
  position: absolute; left: var(--pad); top: -80px; z-index: 30;
  padding: 10px 14px; border-radius: 8px; background: var(--ink); color: #fff;
  font-weight: 600; font-size: 14px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Navigation ---------- */

.nav {
  position: absolute; left: 0; right: 0; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--nav-h); padding: 0 var(--pad);
}
.brand { display: block; line-height: 0; }
.brand img { height: 30px; width: auto; }
.nav ul { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); list-style: none; margin: 0; padding: 0; }
.nav a:not(.brand) {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 15px; font-weight: 450; color: #c8c4c0; text-decoration: none;
  transition: color 150ms var(--ease-out);
}
.nav a[aria-current="page"] { color: #fff; font-weight: 550; }
.nav a.nav-cta {
  min-height: 40px; padding: 0 18px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); color: #fff; font-weight: 500;
  touch-action: manipulation; -webkit-user-select: none; user-select: none;
  transition: background-color 150ms var(--ease-out), transform 140ms var(--ease-out);
}
.nav a.nav-cta:active { transform: scale(0.98); }
@media (min-width: 900px) {
  .nav { display: grid; grid-template-columns: 1fr auto 1fr; }
  .nav a.nav-cta { justify-self: end; }
}
@media (hover: hover) and (pointer: fine) {
  .nav a:not(.brand):not(.nav-cta):hover { color: #fff; }
  .nav a.nav-cta:hover { background: rgba(255, 255, 255, 0.18); }
}
.menu-btn {
  display: none; align-items: center; height: 44px; padding: 0 14px;
  border: 0; border-radius: 8px; background: transparent; color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5);
  font-family: inherit; font-size: 15px; font-weight: 550; line-height: 1; cursor: pointer;
  touch-action: manipulation; -webkit-user-select: none; user-select: none;
}
@media (max-width: 899px) {
  .menu-btn { display: inline-flex; }
  .nav nav {
    position: absolute; left: 0; right: 0; top: var(--nav-h);
    padding: 4px var(--pad) 20px; background: #121218;
    box-shadow: 0 24px 40px -18px rgba(0, 0, 0, 0.8);
    display: none;
  }
  .nav.is-open nav { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav li + li { border-top: 1px solid rgba(255, 255, 255, 0.16); }
  .nav a:not(.brand) { width: 100%; min-height: 52px; font-size: 17px; color: #fff; }
  .nav a.nav-cta { display: none; }
}

/* ---------- Hero, after the Obsidian page. A pill, a light slab headline, one photographed object ---------- */

.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: clamp(640px, 100svh, 980px);
  display: flex; justify-content: center;
  padding: calc(var(--nav-h) + clamp(22px, 5.4svh, 56px)) var(--pad) 0;
  background: linear-gradient(180deg, #312e2c 0%, #2c2927 24%, #1b1918 52%, #0a0909 74%, #000 90%);
  color: #efedea;
}
.hero-copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 1180px; }
.pill {
  margin: 0 0 clamp(16px, 2.6svh, 26px); padding: 6px 13px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.1); color: #ece9e6; font-size: 14px; font-weight: 450; line-height: 1.3;
}
.hero h1 {
  max-width: 17.5em; font-size: clamp(34px, min(4.9vw, 8.2svh), 72px); line-height: 1.12; color: #efedea; text-wrap: balance;
}
.hero .sub {
  margin: clamp(14px, 2.4svh, 24px) 0 0; max-width: 52ch;
  font-size: clamp(15px, 1.12vw, 16.5px); line-height: 1.45; color: #d6d2ce; text-wrap: balance;
}
/* The photograph sits on pure black. Lighten lets the charcoal show wherever the stone is darker than it, so no cut-out edge shows. */
.hero-art {
  position: absolute; left: 50%; bottom: 0; z-index: 0;
  width: min(118vw, calc(clamp(330px, 52svh, 510px) * 1.488)); aspect-ratio: 1024 / 688;
  transform: translate3d(-50%, 0, 0);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 56%, transparent 96%);
  mask-image: linear-gradient(180deg, #000 0%, #000 56%, transparent 96%);
  pointer-events: none; mix-blend-mode: lighten;
}
.hero-art img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transform: translate3d(calc(var(--px, 0) * -10px), calc(var(--py, 0) * -6px + var(--sy, 0) * 1px), 0) scale(1.03);
}
/* The object rises once, after the first painted frame. */
html.js .hero-art { opacity: 0; transform: translate3d(-50%, 28px, 0); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); }
html.js.go .hero-art { opacity: 1; transform: translate3d(-50%, 0, 0); }

/* ---------- Section 1. The record, a year at a time ---------- */

.lead {
  padding: clamp(64px, 11vh, 128px) 0 clamp(72px, 12vh, 132px);
  background:
    radial-gradient(60% 34% at 78% 62%, rgba(130, 224, 239, 0.34) 0%, rgba(130, 224, 239, 0) 70%),
    linear-gradient(180deg, var(--ground) 0%, var(--ground) 26%, #cdd5ff 50%, #a9b4ff 66%, #d9defb 86%, var(--ground) 100%);
}
.lead-top { display: grid; gap: 20px; }
h1 { margin: 0; line-height: 1.12; text-wrap: balance; }
.lead-top h2 { margin: 0; font-size: clamp(36px, 4.4vw, 60px); }
.lead-copy p { margin: 0 0 18px; max-width: 54ch; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.6; color: var(--text); text-wrap: pretty; }
.link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-size: 17px; font-weight: 450; color: var(--ink);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px;
  touch-action: manipulation; -webkit-user-select: none; user-select: none;
  transition: color 150ms var(--ease-out);
}
.link .ico { transition: transform 180ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .link:hover { color: var(--blue); }
  .link:hover .ico { transform: translateX(3px); }
}

.deck { display: grid; gap: 14px; margin-top: clamp(32px, 6vh, 64px); }
.yrows { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; align-content: start; }
.yrow {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 14px;
  width: 100%; min-height: 56px; padding: 0 18px; border: 0; border-radius: 8px; text-align: left;
  background: rgba(255, 255, 255, 0.44); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  font-family: inherit; color: var(--ink); cursor: pointer;
  touch-action: manipulation; -webkit-user-select: none; user-select: none;
  transition: background-color 150ms var(--ease-out), transform 140ms var(--ease-out);
}
.yrow:active { transform: scale(0.99); }
.yrow[aria-selected="true"] { background: #fff; box-shadow: 0 1px 2px rgba(15, 16, 20, 0.05), 0 10px 24px -14px rgba(19, 8, 225, 0.35); }
.yrow-name { font-size: 16px; font-weight: 550; font-variant-numeric: tabular-nums; }
.yrow-sub { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ylist { min-width: 0; }
.key { display: flex; align-items: center; gap: 8px; margin: 14px 0 0 2px; font-size: 13.5px; color: var(--text); }
.key .ticks + * { margin-left: 0; }
.key .ticks:not(:first-child) { margin-left: 14px; }
@media (min-width: 760px) and (max-width: 999px) { .yrow-sub { visibility: hidden; } }
.ticks { display: inline-flex; gap: 3px; }
.ticks i { width: 8px; height: 8px; border-radius: 2px; background: var(--ink); opacity: 0.78; }
.ticks i.m { background: none; box-shadow: inset 0 0 0 1.5px var(--ink); opacity: 0.6; }
.yrow[aria-selected="true"] .ticks i { background: var(--blue); opacity: 1; }
.yrow[aria-selected="true"] .ticks i.m { background: none; box-shadow: inset 0 0 0 1.5px var(--blue); }
@media (hover: hover) and (pointer: fine) {
  .yrow[aria-selected="false"]:hover { background: rgba(255, 255, 255, 0.74); }
}

.ypanels { display: grid; gap: 14px; min-width: 0; }
.ypanel {
  border-radius: 8px; background: rgba(255, 255, 255, 0.7); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.85);
  min-height: 100%;
}
html.js .ypanel:not(.is-on) { display: none; }
.ypanel-head {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; column-gap: 12px;
  padding: 16px 18px 14px; border-bottom: 1px solid rgba(15, 16, 20, 0.09);
}
.ypanel-head h3 { margin: 0; font-size: 17px; font-weight: 550; font-variant-numeric: tabular-nums; }
.ypanel-sub, .ypanel-n { font-size: 14.5px; color: var(--muted); }
.cos { list-style: none; margin: 0; padding: 4px 18px 10px; }
.co {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name date" "what what";
  align-items: center; column-gap: 14px; padding: 9px 0; border-bottom: 1px solid rgba(15, 16, 20, 0.07);
}
.co:last-child { border-bottom: 0; }
.co-logo { display: none; }
.co-name { grid-area: name; font-size: 16px; font-weight: 550; }
.co-what { grid-area: what; font-size: 14.5px; color: var(--muted); }
.co-date { grid-area: date; font-size: 14.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* The rows of a newly chosen year rise in, one after another. Waits for the first painted frame. */
html.go .ypanel.is-on .co { animation: rise 240ms var(--ease-out) backwards; animation-delay: calc(var(--i) * 26ms); }
@keyframes rise { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

@media (min-width: 760px) {
  .lead-top { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
  .lead-top h2 { grid-column: 1 / span 5; }
  .lead-copy { grid-column: 7 / span 6; padding-top: 10px; }
  .deck { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .co { grid-template-columns: minmax(0, 1fr) auto 40px; grid-template-areas: none; padding: 0; min-height: 46px; }
  .co-logo { display: none; align-items: center; height: 32px; overflow: hidden; }
  .co-logo img { width: 92px; height: 26px; object-fit: contain; object-position: left center; transform: scale(var(--s, 1)); transform-origin: left center; filter: brightness(0); opacity: 0.86; }
  .co-name, .co-what, .co-date { grid-area: auto; }
  .co-date { text-align: right; }
}

@media (min-width: 1000px) {
  .co { grid-template-columns: 112px minmax(0, 1fr) auto 40px; }
  .co-logo { display: flex; }
}

/* ---------- Areas of Investment ---------- */

.areas { padding: clamp(40px, 6vh, 72px) 0 clamp(72px, 12vh, 128px); }
.areas-in { display: grid; gap: 28px; }
h2 { margin: 0 0 14px; font-size: clamp(28px, 2.7vw, 38px); line-height: 1.12; text-wrap: balance; }
.areas p { margin: 0; max-width: 42ch; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.6; color: var(--text); text-wrap: pretty; }
.sectors { display: grid; list-style: none; margin: 0; padding: 0; column-gap: 40px; }
.sectors li { display: grid; gap: 2px; padding: 14px 0; border-top: 1px solid var(--line); }
.sectors strong { font-size: 18px; font-weight: 550; }
.sectors span { font-size: 15px; line-height: 1.45; color: var(--muted); text-wrap: pretty; }
@media (min-width: 760px) {
  .areas-in { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
  .areas-in > div { grid-column: 1 / span 4; }
  .sectors { grid-column: 6 / span 7; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Section 2. Statements past a fixed panel ---------- */

.approach { padding: clamp(64px, 12vh, 140px) 0; background: #fff; }
.stage { display: none; }
.says-h { margin: 0 0 20px; }
.says-h:not(:first-child) { margin-top: clamp(48px, 9vh, 96px); }
.say { padding: 30px 0 38px; border-top: 1px solid var(--line); transition: color 220ms var(--ease-out); }
.say h3 { margin: 0 0 12px; font-size: clamp(25px, 2.7vw, 38px); line-height: 1.15; font-weight: 400; letter-spacing: -0.028em; text-wrap: balance; }
.say p { margin: 0; max-width: 46ch; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.6; color: var(--text); text-wrap: balance; transition: color 220ms var(--ease-out); }

@media (min-width: 760px) {
  .approach-in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
  .stage {
    display: block; grid-column: 1 / span 6; position: sticky; top: 11vh;
    height: min(78vh, 700px); border-radius: 6px; overflow: hidden;
    background: linear-gradient(180deg, #f3f4f7 0%, #eceef3 100%);
  }
  .says { grid-column: 8 / span 5; }
  .say { padding: 44px 0 clamp(64px, 14vh, 132px); }
  html.js .say { color: var(--dim); }
  html.js .say p { color: var(--dim); }
  html.js .say.is-on { color: var(--ink); }
  html.js .say.is-on p { color: var(--text); }
}

.cards {
  position: absolute; inset: 0; list-style: none; margin: 0; padding: 0;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
}
.card {
  position: absolute; left: 11%; right: 11%; top: 50%;
  display: flex; align-items: center; gap: 14px; min-height: 96px; padding: 20px 24px; border-radius: 16px;
  background: #fff; color: var(--muted); font-size: clamp(16px, 1.45vw, 20px); line-height: 1.3;
  opacity: 0; transform: translateY(calc(-50% + var(--d, 0) * 118px)) scale(0.9);
  transition: transform 280ms var(--ease-out), opacity 280ms var(--ease-out), box-shadow 280ms var(--ease-out), color 280ms var(--ease-out);
}
.card.is-far { opacity: 0.32; transform: translateY(calc(-50% + var(--d, 0) * 118px)) scale(0.9); }
.card.is-near { opacity: 0.62; transform: translateY(calc(-50% + var(--d, 0) * 118px)) scale(0.95); }
.card.is-on {
  opacity: 1; color: var(--ink); transform: translateY(-50%) scale(1);
  box-shadow: 0 1px 2px rgba(15, 16, 20, 0.06), 0 18px 36px -18px rgba(15, 16, 20, 0.28);
}
.card-t { text-wrap: balance; }
.card-mark { flex: none; width: 10px; height: 10px; border-radius: 2px; background: var(--blue); }

/* ---------- Section 3. The sign-off ---------- */

.sign { padding: clamp(28px, 5vh, 48px) clamp(14px, 1.4vw, 24px) 0; background: #050506; color: #f3f4f6; overflow: hidden; }
.sign-say {
  margin: 0 0 clamp(120px, 34vh, 380px); max-width: 21ch;
  font-size: clamp(27px, 4.2vw, 62px); line-height: 1.1; letter-spacing: -0.032em; font-weight: 400; text-wrap: balance;
}
.sign-row {
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 32px;
  padding-bottom: 16px; border-bottom: 1px solid rgba(243, 244, 246, 0.75); font-size: 15px;
}
.sign-links { display: inline-flex; flex-wrap: wrap; gap: 8px 36px; }
.sign-links a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-decoration: none; transition: color 150ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .sign-links a:hover { color: #b9c2ff; } }
.sign-name {
  display: inline-block; margin: 0; padding: 0.04em 0 0.02em;
  font-size: 11.2vw; line-height: 1.1; font-weight: 700; letter-spacing: -0.05em; white-space: nowrap;
  /* The team's own photograph of the bay: sky, the Golden Gate Bridge and water show through the letters. */
  background: #4f7fd0 url("assets/bay.webp") 0 26% / 100% auto no-repeat;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}

/* Capture switches. Not part of the design. */
html.cap-record .hero, html.cap-areas .hero, html.cap-areas .lead, html.cap-approach .hero, html.cap-approach .lead, html.cap-approach .areas, html.cap-sign main { display: none; }
html.cap-record .nav, html.cap-areas .nav, html.cap-approach .nav, html.cap-sign .nav { display: none; }
html.cap-approach .approach { padding-top: 40px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .hero-art { opacity: 1; transform: translate3d(-50%, 0, 0); transition: none; }
  html.go .ypanel.is-on .co { animation: none; }
  .card, .say, .say p, .yrow, .link .ico { transition-duration: 1ms; }
  .yrow { transform: none !important; }
}
