/* Saturn: shared styles. Black and white. Serif headlines in a light weight, one luminous image, a document layout. */

@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/SourceSerif4-latin-opsz.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/SourceSans3-latin-wght.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #000000;
  --navy-deep: #000000;
  --ice: #FFFFFF;
  --mist: #A9ADB3;
  --ink: #F2F2F2;
  --steel: #8C9096;
  --blue: #FFFFFF;
  --rule: rgba(255, 255, 255, 0.16);
  --rule-dark: rgba(255, 255, 255, 0.22);
  --wash: #0A0A0A;
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --quick: 160ms;
  --standard: 600ms;
  --slow: 1100ms;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #000000;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  font-feature-settings: "kern", "liga", "onum";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.band :focus-visible, .site-footer :focus-visible { outline-color: var(--ice); }

.skip {
  position: absolute; left: 12px; top: -56px; z-index: 20;
  padding: 10px 16px; background: #FFFFFF; color: #000000;
  font-family: var(--sans); font-size: 15px; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
}

/* ---------- Band: the dark top of every page ---------- */
.band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--navy);
  color: var(--ice);
}
.band--home { min-height: clamp(660px, 100svh, 940px); }
.band--page { min-height: clamp(360px, 48vh, 480px); }

.photo {
  position: absolute;
  z-index: -2;
  top: 0; bottom: 0; right: 0;
  width: min(72vw, 1040px);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 46%);
  mask-image: linear-gradient(to right, transparent 0%, #000 46%);
}
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 46% 50%; }
/* Keeps the headline and the navigation legible over the brightest rings. */
.band::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.92) 0, rgba(0, 0, 0, 0) 150px),
    linear-gradient(0deg, var(--navy) 0, rgba(0, 0, 0, 0) 170px),
    linear-gradient(90deg, var(--navy) 0%, rgba(0, 0, 0, 0.92) 34%, rgba(0, 0, 0, 0) 64%);
}
.band--page .photo { width: min(70vw, 900px); opacity: 0.6; }
.band--page .photo img { object-position: 30% 70%; }

/* Masthead */
.masthead { position: relative; }
.masthead::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--rule-dark); transform-origin: left center;
}
.masthead .wrap {
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px 32px; flex-wrap: wrap;
  padding-top: 30px; padding-bottom: 24px;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--serif); font-weight: 500; font-size: 1.05rem; line-height: 1;
  letter-spacing: 0.28em; text-transform: uppercase; text-decoration: none; color: var(--ice);
}
.wordmark svg { width: 30px; height: 30px; filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.55)); }
.nav { display: flex; gap: 6px 34px; flex-wrap: wrap; font-family: var(--sans); font-size: 15px; }
.nav a { position: relative; color: var(--mist); text-decoration: none; padding: 6px 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: var(--ice); transform: scaleX(0); transform-origin: left center;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ice); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

/* Hero text */
.hero { flex: 1; display: flex; align-items: flex-end; padding: clamp(56px, 12vh, 140px) 0 clamp(44px, 9vh, 96px); }
.hero > .wrap { width: 100%; }
h1 {
  margin: 0;
  max-width: 10.5em;
  font-weight: 300;
  font-size: clamp(2.5rem, 5.8vw, 5.1rem);
  line-height: 1.05;
  letter-spacing: -0.016em;
  color: #FFFFFF;
  text-shadow: 0 0 42px rgba(255, 255, 255, 0.16);
  text-wrap: balance;
}
.band--page h1 { font-size: clamp(2.2rem, 4.8vw, 4rem); max-width: 14em; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.w > span { display: inline-block; }

.hero-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 40px; margin-top: clamp(32px, 6vh, 56px); padding-top: 26px; position: relative; }
.hero-foot::before { content: ""; position: absolute; top: 0; left: 0; width: min(100%, 560px); height: 1px; background: var(--rule-dark); transform-origin: left center; }
.lede { margin: 0; text-wrap: balance; max-width: 24em; font-size: 1.2rem; line-height: 1.55; color: var(--ice); }

.btn {
  display: inline-block; padding: 14px 28px;
  font-family: var(--sans); font-size: 15px; font-weight: 500; letter-spacing: 0.02em; text-decoration: none;
  color: var(--ice); background: transparent; border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 1px;
  transition: background-color var(--quick) var(--ease), color var(--quick) var(--ease), border-color var(--quick) var(--ease);
}
.btn:hover { background: #FFFFFF; color: #000000; border-color: #FFFFFF; box-shadow: 0 0 28px rgba(255, 255, 255, 0.35); }
.btn--solid { color: #000000; background: #FFFFFF; border-color: #FFFFFF; }
.btn--solid:hover { background: transparent; border-color: #FFFFFF; color: #FFFFFF; box-shadow: 0 0 28px rgba(255, 255, 255, 0.35); }

/* ---------- Document sheet ---------- */
.sheet { background: #000000; padding: clamp(24px, 5vh, 56px) 0 clamp(56px, 10vh, 120px); }
.docgrid { margin: 0; padding: 0; }
.doc-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(150px, 240px) minmax(0, 60ch);
  gap: 10px clamp(32px, 7vw, 112px);
  padding: 40px 0 54px;
}
.doc-section::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--rule); transform-origin: left center; }
.doc-section h2, .doc-section dt {
  margin: 0; font-family: var(--sans); font-weight: 600; font-size: 0.95rem; line-height: 1.6; color: var(--steel);
}
.doc-section dd { margin: 0; font-size: 1.5rem; line-height: 1.45; font-weight: 400; text-wrap: pretty; }
.doc-text p { margin: 0 0 1.1em; font-size: 1.3rem; line-height: 1.65; text-wrap: pretty; }
.doc-text > :last-child { margin-bottom: 0; }
.doc-text a { color: #FFFFFF; text-decoration-color: rgba(255, 255, 255, 0.5); }
.doc-text a.btn { margin: 18px 0 0; color: #000000; text-decoration: none; }
.doc-text a.btn:hover { color: #FFFFFF; }
.doc-text .address { margin: 28px 0 0; font-family: var(--sans); font-size: 1.05rem; line-height: 1.5; color: var(--ink); user-select: all; }

/* ---------- Plate: one photographic figure, set like a figure in a report ---------- */
.plate { margin: clamp(24px, 6vh, 72px) 0 0; padding: 0; }
.plate-frame { position: relative; overflow: hidden; aspect-ratio: 1472 / 460; background: var(--navy); -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%); }
.plate-frame img { position: absolute; left: 0; top: -12%; width: 100%; height: 124%; object-fit: cover; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: #000000; border-top: 1px solid var(--rule); color: var(--mist); font-family: var(--sans); font-size: 15px; line-height: 1.7; padding: clamp(44px, 8vh, 72px) 0 36px; }
.site-footer a { color: var(--ice); text-underline-offset: 3px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 1.3fr); gap: 32px 48px; padding-bottom: 36px; border-bottom: 1px solid var(--rule-dark); }
.foot-grid h2 { margin: 0 0 10px; font-family: var(--sans); font-weight: 600; font-size: 0.95rem; color: var(--ice); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid p { margin: 8px 0 0; }
.foot-base { padding-top: 22px; font-size: 14px; }

/* ---------- Phones ---------- */
@media (max-width: 860px) {
  /* The whole image sits in the top of the band, faded into black on every side. */
  .photo {
    width: 124vw; height: 124vw; right: -12vw; left: auto; top: 44px; bottom: auto; opacity: 0.95;
    -webkit-mask-image: radial-gradient(closest-side, #000 58%, transparent 100%);
    mask-image: radial-gradient(closest-side, #000 58%, transparent 100%);
  }
  .band::before {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.92) 0, rgba(0, 0, 0, 0) 90px),
      linear-gradient(0deg, var(--navy) 0%, rgba(0, 0, 0, 0.9) 40%, rgba(0, 0, 0, 0) 66%);
  }
  .band--home { min-height: 0; }
  .band--home .hero { padding-top: clamp(300px, 96vw, 520px); padding-bottom: 40px; }
  .band--page { min-height: 0; }
  .band--page .photo { width: 104vw; height: 104vw; right: -2vw; top: 6px; opacity: 1; }
  .band--page .hero { padding-top: clamp(150px, 44vw, 260px); padding-bottom: 36px; }
  .doc-section { grid-template-columns: 1fr; padding: 28px 0 38px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .plate-frame { aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) {
  body { font-size: 1.125rem; }
  .masthead .wrap { padding-top: 22px; padding-bottom: 18px; }
  .wordmark { letter-spacing: 0.16em; gap: 10px; font-size: 0.95rem; }
  .wordmark svg { width: 26px; height: 26px; }
  .nav { gap: 4px 18px; font-size: 14px; }
  .doc-section dd { font-size: 1.3rem; }
  .foot-grid { grid-template-columns: 1fr; }
}

/* ---------- Motion: only for people who have not asked for less ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Load sequence: one orchestrated moment, about two seconds. */
  .masthead::after { animation: draw var(--slow) var(--ease) 150ms both; }
  .wordmark, .nav { animation: fade 800ms var(--ease) 450ms both; }
  /* The photograph settles in, then drifts very slowly so the top of the page is never fully still. */
  .photo img { animation: settle 2600ms var(--ease-out) both, drift 80s ease-in-out 2600ms infinite alternate; }
  .w > span { animation: wordUp 950ms var(--ease-out) both; animation-delay: calc(400ms + var(--i, 0) * 45ms); }
  .hero-foot::before { animation: draw var(--slow) var(--ease) 1100ms both; }
  .hero-foot > * { animation: rise 800ms var(--ease-out) 1250ms both; }
  .nav a::after { transition: transform 240ms var(--ease); }
  .nav a:hover::after { transform: scaleX(1); }

  /* Cross-fade between pages where the browser supports it. */
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 320ms; }

  /* Scroll-linked: the photograph moves slower than the page; rows draw in as they arrive. */
  @supports (animation-timeline: view()) {
    .photo { animation: parallax linear both; animation-timeline: scroll(root); animation-range: 0 95vh; }
    .doc-section::before { animation: draw linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
    .doc-section > * { animation: rise linear both; animation-timeline: view(); animation-range: entry 8% entry 60%; }
    .plate-frame img { animation: plateShift linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
  }
}

@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes wordUp { from { transform: translateY(108%); } to { transform: none; } }
@keyframes settle { from { opacity: 0; transform: scale(1.07); } to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: none; } to { transform: translate3d(-1.4%, 1%, 0) scale(1.045); } }
@keyframes plateShift { from { transform: translateY(5%); } to { transform: translateY(-5%); } }
@keyframes parallax { from { transform: translateY(0); } to { transform: translateY(9vh); } }
