/* HorneSci. Type follows the interim brand sheet, 28 September 2026; the paper is a near
   white, lighter than the sheet's warm white. Media sits in black and white at rest. Hover
   returns source colors when an asset has a color master; no synthetic tint is added. The
   simulation inside the wordmark and the program badges keep their source colors. */

@font-face {
  font-family: "Archivo Black";
  src: url("fonts/archivo-black.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Libre Franklin";
  src: url("fonts/libre-franklin-400.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Libre Franklin";
  src: url("fonts/libre-franklin-700.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #171819;
  --charcoal: #252728;
  --gray: #646661;
  --rule: #dddbd5;
  --paper: #fcfcfa;
  --paper-dim: #a7a49d;
  --display: "Archivo Black", "Arial Black", sans-serif;
  --text: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --gap: clamp(1.25rem, 2.5vw, 2.5rem);
  --max: 90rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
h1, h2, h3, p, li, dd { text-wrap: pretty; }
img, video { display: block; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

code { font: inherit; }

/* Masthead: difference blending keeps it legible over footage and paper alike. */

.masthead {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.15rem var(--pad);
  color: #fff;
  mix-blend-mode: difference;
  transition: transform 0.6s var(--ease), background-color 0.25s linear;
}

.masthead.is-solid {
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 1px 0 var(--rule);
  mix-blend-mode: normal;
}

.masthead.is-hidden { transform: translateY(-101%); }

.masthead a { text-decoration: none; }

.wordmark {
  font-family: var(--display);
  font-size: 1.375rem;
  line-height: 1;
  letter-spacing: -0.01em;
}

.masthead nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); font-weight: 700; font-size: 0.9375rem; }
.masthead nav a:hover { text-decoration: underline; }

.pill {
  padding: 0.55rem 1rem 0.6rem;
  border: 1px solid currentColor;
}

.masthead .pill:hover { text-decoration: none; background: #fff; color: #000; }
.masthead.is-solid .pill:hover { background: var(--ink); color: var(--paper); }

/* Hero: the footage starts full bleed and zooms out into the page grid as you scroll. */

.hero {
  --p: 0;
  --iy: clamp(4.5rem, 12vh, 8rem);
  --ix: var(--pad);
  position: relative;
  height: 190vh;
  height: 190svh;
}

.hero-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.hero-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--ink);
  clip-path: inset(calc(var(--p) * var(--iy)) calc(var(--p) * var(--ix)));
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--media-focus, 50% 50%);
  filter: grayscale(1);
  transform: scale(calc(1.16 - var(--p) * 0.16));
  will-change: transform;
  transition: filter 0.45s ease;
}

.hero-frame.has-color-master:hover .hero-video { filter: none; }

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(23 24 25 / 0.45) 0%, rgb(23 24 25 / 0) 28%),
    linear-gradient(0deg, rgb(23 24 25 / 0.82) 0%, rgb(23 24 25 / 0.35) 45%, rgb(23 24 25 / 0.05) 75%);
}

.hero h1 {
  position: absolute;
  left: calc(var(--pad) + var(--p) * var(--ix));
  right: calc(var(--pad) + var(--p) * var(--ix));
  bottom: calc(clamp(2.25rem, 7vh, 4.5rem) + var(--p) * var(--iy));
  max-width: 12.5em;
  color: var(--paper);
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.6rem, 7.4vw, 8rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.hero h1 { animation: rise 1.4s var(--ease) 0.2s both; }
.hero-video { animation: fade-in 1.8s ease both; }

@keyframes rise { from { opacity: 0; transform: translateY(2.5rem); } }
@keyframes fade-in { from { opacity: 0; } }

/* Lead */

.lead-block {
  width: min(100% - 2 * var(--pad), var(--max));
  margin: clamp(-2rem, -4vh, -1rem) auto 0;
  padding-block: 0 clamp(6rem, 13vw, 11rem);
}

.lead {
  max-width: 33em;
  font-size: clamp(1.375rem, 2.35vw, 2.125rem);
  line-height: 1.32;
  letter-spacing: -0.012em;
}

/* Section titles */

.section-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.25rem, 5.4vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

/* Domains */

.domains,
.engagements,
.about {
  width: min(100% - 2 * var(--pad), var(--max));
  margin-inline: auto;
}

.domains .section-title { margin-bottom: clamp(2rem, 4vw, 3.5rem); }

.domain-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(3rem, 6vw, 5.5rem) var(--gap);
}

.domain .media {
  position: relative;
  isolation: isolate;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--charcoal);
}

.domain .media > * {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--media-focus, 50% 50%);
  filter: grayscale(1);
  transition: transform 1.4s var(--ease), filter 0.45s ease;
}

.domain:hover .media > * { transform: scale(1.035); }
/* Only a documented color master may return its source pixels on hover. */
.photo-media.has-color-master:hover > * { filter: none; }

.domain figcaption { padding-top: 1.1rem; }

.domain h3,
.founder h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.375rem, 2.2vw, 1.875rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.domain p { max-width: 30em; margin-top: 0.4rem; }

/* Engagements */

.engagements { padding-block: clamp(7rem, 14vw, 12rem) clamp(5rem, 9vw, 8rem); }
.engagements .section-title { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem clamp(1.5rem, 3vw, 3rem);
  padding: 0;
  list-style: none;
}

.steps li { padding-top: 1.25rem; border-top: 1px solid var(--ink); }

.steps h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.75rem, 3vw, 2.625rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.steps .meta { margin: 0.55rem 0 1.1rem; color: var(--gray); font-size: 0.9375rem; font-weight: 700; }

.terms { max-width: 42em; margin-top: clamp(3rem, 6vw, 4.5rem); color: var(--gray); }

/* Archive band: a still that drifts against the scroll */

.band-media {
  height: clamp(18rem, 56vw, 46rem);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--charcoal);
}

.band-media img {
  width: 100%;
  height: 116%;
  margin-top: -8%;
  object-fit: cover;
  object-position: var(--media-focus, 50% 50%);
  filter: grayscale(1);
  transform: translateY(var(--py, 0%));
  will-change: transform;
  transition: filter 0.45s ease;
}

.band-media.has-color-master:hover img { filter: none; }

/* Evidence */

.evidence {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
  padding: clamp(6rem, 12vw, 10rem) max(var(--pad), (100% - var(--max)) / 2);
  background: var(--ink);
  color: var(--paper);
}

.evidence-copy > * + * { margin-top: 1.5rem; }
.evidence-copy > p { max-width: 34em; font-size: 1.1875rem; }

.ledger { margin-top: 2.5rem !important; border-top: 1px solid rgb(244 241 234 / 0.22); }

.ledger div {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  gap: 0.5rem clamp(1.25rem, 3vw, 2.5rem);
  align-items: baseline;
  padding-block: 1.35rem;
  border-bottom: 1px solid rgb(244 241 234 / 0.22);
}

.ledger dt {
  min-width: 4.2em;
  font-family: var(--display);
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.ledger dd { max-width: 18em; font-size: 1.0625rem; }

.conditions { color: var(--paper-dim); font-size: 0.875rem !important; max-width: 38em; }

.arrow { font-weight: 700; text-decoration: none; }
.arrow::after { content: " \2192"; }
.arrow:hover { text-decoration: underline; }

.evidence-media { position: sticky; top: 6rem; }
.evidence-media video {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: var(--media-focus, 50% 50%);
  filter: grayscale(1);
  background: var(--charcoal);
  transition: filter 0.45s ease;
}
.evidence-media.has-color-master:hover video { filter: none; }

/* About: the founders */

.about {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(2.5rem, 5vw, 4rem) var(--gap);
  align-items: start;
  padding-top: clamp(7rem, 14vw, 12rem);
}

.about-head { grid-column: 1 / span 5; }
.about-head p { max-width: 14em; margin-top: 1.5rem; font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1.35; letter-spacing: -0.01em; }

.founders {
  grid-column: 7 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}

.portrait {
  position: relative;
  isolation: isolate;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--charcoal);
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--media-focus, 50% 36%);
  filter: grayscale(1);
  transition: transform 1.4s var(--ease), filter 0.45s ease;
}

.portrait:hover img { transform: scale(1.03); }
.portrait.has-color-master:hover img { filter: none; }

/* Each card is a column, so the profile links line up when one role wraps further. */
.founder { display: flex; flex-direction: column; }
.founder h3 { margin-top: 1.1rem; }
.founder p { margin-top: 0.35rem; }
.founder .profile { align-self: flex-start; margin-top: auto; padding-top: 0.6rem; font-weight: 700; text-decoration: none; }
.founder .profile::after { content: " \2197"; }
.founder .profile:hover { text-decoration: underline; }

/* Programs: the official badges on matching plaques. NVIDIA's artwork carries its own #f3f4f4
   panel, so both plaques use that color, and the badge stays smaller than our wordmark. */

.programs {
  grid-column: 7 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.programs p { max-width: 22em; color: var(--gray); font-size: 0.9375rem; }
.program-badges { display: flex; gap: 0.75rem; padding: 0; list-style: none; }
.program-badges li { display: grid; place-items: center; width: 6.875rem; height: 3rem; background: #f3f4f4; }
.program-badges img { width: auto; height: 3rem; }
.program-badges .aws img { height: 1.75rem; }
/* On the About page the badges are the subject, so they show larger; still smaller than the wordmark. */
.about-page .program-badges li { width: 9.625rem; height: 4.2rem; }
.about-page .program-badges img { height: 4.2rem; }
.about-page .program-badges .aws img { height: 2.45rem; }
.about-head .arrow { display: inline-block; margin-top: 1.5rem; }
.about-page { padding-top: clamp(4rem, 8vw, 6.5rem); }
.about-page + .about-page { padding-top: clamp(3rem, 6vw, 5rem); }

/* Footer: contact, every page, the wordmark, and the legal lines. The footer is the
   same on every page, so "Contact" in the masthead never leaves the page. */

.site-footer {
  width: min(100% - 2 * var(--pad), var(--max));
  margin-inline: auto;
  padding-top: clamp(7rem, 14vw, 12rem);
}

.footer-contact .section-title { margin-bottom: 1.25rem; }

/* The address stays on one line: 7vw fits its 18 characters inside the page gutters. */
.address {
  font-family: var(--display);
  font-size: min(6rem, 7vw);
  line-height: 1;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.address a { text-decoration-thickness: 0.06em; text-underline-offset: 0.12em; }
.footer-contact p:last-child { max-width: 32em; margin-top: 1.5rem; font-size: 1.1875rem; }

.footer-nav {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 2.5rem var(--gap);
  margin-top: clamp(5rem, 10vw, 8rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--ink);
}

.footer-nav > div { grid-column: span 3; }
.footer-nav > div:last-child { grid-column: span 4; }
.footer-nav h2 { font-size: 0.9375rem; font-weight: 700; }
.footer-nav ul { margin-top: 0.8rem; padding: 0; list-style: none; }
.footer-nav li + li { margin-top: 0.45rem; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-nav a[href^="http"]::after { content: " \2197"; color: var(--gray); }

.footer-mark {
  margin-top: clamp(4.5rem, 9vw, 8rem);
  aspect-ratio: 4859 / 737;
  background: var(--ink);
  -webkit-mask: url("media/wordmark-mask.svg") center / 100% 100% no-repeat;
  mask: url("media/wordmark-mask.svg") center / 100% 100% no-repeat;
}

.footer-mark video { width: 100%; height: 100%; object-fit: cover; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 2rem;
  padding-block: clamp(1.5rem, 3vw, 2.25rem) 3rem;
  color: var(--gray);
  font-size: 0.8125rem;
}

.footer-legal .trademark { flex-basis: 100%; max-width: 62em; }

/* Inner pages */

.page-head,
.page-body {
  width: min(100% - 2 * var(--pad), var(--max));
  margin-inline: auto;
}

.page-head { padding-top: clamp(8.5rem, 16vw, 13rem); }

.page-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3.25rem, 11vw, 10rem);
  line-height: 0.88;
  letter-spacing: -0.055em;
}

.page-lead {
  max-width: 30em;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  font-size: clamp(1.375rem, 2.35vw, 2.125rem);
  line-height: 1.32;
  letter-spacing: -0.012em;
}

.page-meta { margin-top: 1.25rem; color: var(--gray); font-size: 0.9375rem; }

.page-band { margin-top: clamp(4rem, 8vw, 6.5rem); }
.page-band .band-media { height: clamp(16rem, 46vw, 40rem); }
.page-band .band-media img { object-position: var(--media-focus, 50% 30%); }

.page-body {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  margin-top: clamp(3.5rem, 7vw, 6rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--ink);
}

.prose { grid-column: 4 / span 7; }
.prose > * + * { margin-top: 1.1em; }
.prose p, .prose li { max-width: 38em; font-size: 1.125rem; }

.prose h2 {
  margin-top: 2.4em;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.375rem, 2.2vw, 1.875rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.prose > h2:first-child { margin-top: 0; }

/* Credits */

.credit-list { grid-column: 1 / -1; padding: 0; list-style: none; }

.credit-list li {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: start;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.credit-list li:first-child { padding-top: 0; }
.credit-list img {
  grid-column: 1 / span 2;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: var(--media-focus, 50% 50%);
  background: var(--charcoal);
  filter: grayscale(1);
  transition: filter 0.45s ease;
}
.credit-list img.is-color { filter: none; }
.credit-list img.has-color-master:hover { filter: none; }
.credit-list div { grid-column: 4 / span 7; }

.credit-list h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.credit-list p { max-width: 40em; margin-top: 0.4rem; }
.credit-list .source { color: var(--gray); font-size: 0.9375rem; }

.page-body .prose.after-list { margin-top: clamp(3rem, 6vw, 4.5rem); }

/* Not found */

.jump-list { grid-column: 1 / span 8; padding: 0; list-style: none; }
.jump-list li { border-bottom: 1px solid var(--rule); }
.jump-list li:first-child a { padding-top: 0.25rem; }

.jump-list a {
  display: block;
  padding-block: 1rem;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.jump-list a::after { content: " \2192"; }
.jump-list a:hover { text-decoration: underline; text-decoration-thickness: 0.05em; }

/* Scroll reveals, only when the script is running */

.js .reveal {
  opacity: 0;
  transform: translateY(1.75rem);
  transition: opacity 1s var(--ease) var(--d, 0ms), transform 1.2s var(--ease) var(--d, 0ms);
}

.js .reveal.is-in { opacity: 1; transform: none; }

/* Titles wipe up from their baseline. The heading is observed; its inner span is clipped,
   because a fully clipped element never reports an intersection. */
.js .section-title.reveal { opacity: 1; transform: none; transition: none; }

.js .section-title .wipe {
  display: inline-block;
  clip-path: inset(0 0 100% 0);
  transform: translateY(40%);
  transition: clip-path 1.2s var(--ease) var(--d, 0ms), transform 1.2s var(--ease) var(--d, 0ms);
}

.js .section-title.is-in .wipe { clip-path: inset(-12% -4% -24% -4%); transform: none; }

@media (max-width: 64rem) {
  .founders, .programs { grid-column: 6 / -1; }
  .credit-list img { grid-column: 1 / span 3; }
  .credit-list div { grid-column: 4 / -1; }
}

@media (max-width: 56rem) {
  .evidence { grid-template-columns: 1fr; }
  .evidence-media { position: static; }
  .evidence-media video { aspect-ratio: 16 / 10; }
  .about-head, .founders, .programs { grid-column: 1 / -1; }
  .founders { max-width: 44rem; }
  .prose, .jump-list { grid-column: 1 / -1; }
  .footer-nav > div, .footer-nav > div:last-child { grid-column: span 4; }
}

@media (max-width: 48rem) {
  .masthead nav a:not(.pill) { display: none; }
  .domain-grid,
  .steps { grid-template-columns: 1fr; }
  .hero { --iy: 4.5rem; height: 170svh; }
  .ledger div { grid-template-columns: 1fr; }
  .footer-nav > div { grid-column: span 6; }
  .footer-nav > div:last-child { grid-column: 1 / -1; }
  .credit-list img { grid-column: 1 / span 4; }
  .credit-list div { grid-column: 5 / -1; }
}

@media (max-width: 30rem) {
  .founders { gap: 1rem; }
  .founder h3 { font-size: 1.25rem; }
  .founder p { font-size: 0.9375rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero { height: 100svh; }
  .hero-frame { clip-path: none; }
  .hero-video, .band-media img { transform: none; }
  .js .reveal, .js .section-title .wipe { opacity: 1; transform: none; clip-path: none; transition: none; }
  .hero h1, .hero-video { animation: none; }
  .hero-video, .domain .media > *, .band-media img, .evidence-media video, .portrait img, .credit-list img,
  .photo-media::after, .portrait::after { transition: none; }
}
