/* ==========================================================================
   RENAISSANCE — blended build
   Palette + photographic hero from renaissance.systems (brand system 2026-07-01)
   Display type, museum plate framing, grain and load bar from the Railway build
   ========================================================================== */

:root {
  /* --- Ground: Ink, from the live brand system ------------------------- */
  --nocturne: #04070e;
  --ink: #0a1024;
  --ink-raise: #0b1226;
  --ink-lift: #12203f;

  /* --- Light: ivory rather than blue-white. Marble, not screen. --------- */
  --ivory: #f2eee6;
  --ivory-dim: #b9b4a9;
  --gray: #7e7a72;
  --faint: #4c4941;

  /* --- The two accents. One blue, one gild. Never a third. -------------- */
  --lum: #437ffe;         /* Luminous: the intelligence */
  --lum-halo: #79a6ff;
  --azure: #2563ff;
  --gold: #d4a537;        /* Gold Leaf: the single gild */
  --gold-soft: rgba(212, 165, 55, 0.42);

  --hairline: rgba(242, 238, 230, 0.13);
  --hairline-soft: rgba(242, 238, 230, 0.06);
  --hairline-gold: rgba(212, 165, 55, 0.26);

  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  --container: 1180px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-pad: clamp(84px, 10vw, 148px);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

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

html {
  background: var(--nocturne);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Fresco tooth. Keeps the near-black from reading as flat digital black. */
.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background-image: var(--grain);
  opacity: 0.55;
  mix-blend-mode: overlay;
}

/* Thin gild that draws across the top while the page settles. */
.load-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 1px;
  z-index: 120;
  pointer-events: none;
}
.load-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: draw 1.5s var(--ease) forwards;
}
@keyframes draw {
  0%   { width: 0; opacity: 1; }
  70%  { width: 100%; opacity: 1; }
  100% { width: 100%; opacity: 0; }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 20px;
  background: var(--ivory);
  color: var(--ink);
  font: 600 14px/1 var(--sans);
  border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--lum-halo);
  outline-offset: 3px;
  border-radius: 3px;
}

a { color: inherit; text-decoration: none; }
img, video, svg { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ==========================================================================
   Museum apparatus. The framing device the whole site hangs on.
   ========================================================================== */

/* Plate label: mono caps, wide tracking, gilded rule. Used above every
   section the way a gallery card sits under a painting. */
.plate {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 26px;
  font: 500 10.5px/1 var(--mono);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
.plate::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--hairline-gold), transparent);
}
.plate .plate-sub { color: var(--gray); letter-spacing: 0.2em; }

/* Corner annotations, borrowed from the exhibit build. */
.annot {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font: 400 9.5px/1 var(--mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(242, 238, 230, 0.42);
  text-shadow: 0 1px 10px rgba(4, 7, 14, 0.95);
  pointer-events: none;
}
.annot .gold { color: rgba(212, 165, 55, 0.72); }

/* ==========================================================================
   Type scale
   ========================================================================== */

.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ivory);
}
.display em {
  font-style: italic;
  color: var(--gold);
}
h1.display { font-size: clamp(42px, 7.2vw, 96px); }
h2.display { font-size: clamp(34px, 5.2vw, 68px); }

.lede {
  font-size: clamp(17px, 1.55vw, 20px);
  line-height: 1.6;
  color: var(--ivory-dim);
  max-width: 58ch;
  margin: 22px 0 0;
}

.eyebrow {
  font: 500 10.5px/1 var(--mono);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--lum);
  margin: 0 0 16px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease),
              border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(6, 10, 22, 0.82);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom-color: var(--hairline-soft);
}

/* The wordmark set in type rather than as an image: REN[AI]SSANCE, with the
   AI carrying the Luminous blue. Same idea as the exhibit build, brand colour
   from the live site. */
.wordmark {
  font: 400 19px/1 var(--serif);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ivory);
  white-space: nowrap;
  padding-right: 0.34em;
}
.wordmark .ai {
  color: var(--lum);
  position: relative;
}
.wordmark .ai::after {
  content: "";
  position: absolute;
  left: 0; right: 0.2em; bottom: -5px;
  height: 1px;
  background: var(--lum);
  opacity: 0.5;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.wordmark:hover .ai::after { transform: scaleX(1); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-pill {
  display: flex;
  gap: 2px;
  padding: 5px;
  border: 1px solid var(--hairline-soft);
  border-radius: 999px;
  background: rgba(10, 16, 36, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.nav-pill a {
  padding: 7px 15px;
  border-radius: 999px;
  font: 500 13px/1 var(--sans);
  color: var(--ivory-dim);
  transition: color 0.25s, background 0.25s;
}
.nav-pill a:hover { color: var(--ivory); background: rgba(242, 238, 230, 0.06); }
.nav-pill a[aria-current="page"] { color: var(--ivory); background: rgba(67, 127, 254, 0.14); }

.signin {
  padding: 9px 15px;
  font: 500 13px/1 var(--sans);
  color: var(--ivory-dim);
  transition: color 0.25s;
}
.signin:hover { color: var(--ivory); }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 500 14px/1 var(--sans);
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s, border-color 0.3s,
              box-shadow 0.3s, color 0.3s;
}
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-solid {
  background: var(--ivory);
  color: var(--ink);
  font-weight: 600;
}
.btn-solid:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 34px rgba(242, 238, 230, 0.14);
}

.btn-blue {
  background: var(--azure);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(37, 99, 255, 0.28);
}
.btn-blue:hover {
  background: var(--lum);
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(67, 127, 254, 0.38);
}

.btn-ghost {
  border-color: var(--hairline);
  color: var(--ivory);
  background: rgba(242, 238, 230, 0.02);
}
.btn-ghost:hover {
  border-color: var(--gold-soft);
  background: rgba(212, 165, 55, 0.07);
}

/* ==========================================================================
   Hero. Plate I.
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 38% 50%;
  filter: saturate(0.9) contrast(1.06) brightness(1.06);
}

/* Scrim: readable copy on the left, the marble left alone on the right. */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(100deg, rgba(4, 7, 14, 0.9) 0%, rgba(4, 7, 14, 0.66) 30%,
                    rgba(4, 7, 14, 0.1) 62%, rgba(4, 7, 14, 0.24) 100%),
    linear-gradient(180deg, rgba(4, 7, 14, 0.42) 0%, rgba(4, 7, 14, 0) 20%,
                    rgba(4, 7, 14, 0) 56%, rgba(4, 7, 14, 0.86) 90%, var(--ink) 100%),
    radial-gradient(78% 62% at 4% 74%, rgba(4, 7, 14, 0.8), transparent 72%);
}

/* The ghost wordmark behind everything, at architectural scale. */
.ghost {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
  margin: 0;
  font: 400 clamp(64px, 14.5vw, 300px)/0.9 var(--serif);
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: rgba(242, 238, 230, 0.07);
  user-select: none;
  pointer-events: none;
}
.ghost .ai { color: rgba(67, 127, 254, 0.2); }

/* The bust. Video where it loads, poster otherwise. */
.bust-wrap {
  position: absolute;
  right: -4%;
  bottom: 0;
  z-index: -1;
  width: min(58vw, 720px);
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 84%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 84%, transparent 100%);
}
.bust-wrap video,
.bust-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
}

.hero-statement {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: 120px var(--gutter) 96px;
}
.hero-quote {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 6.6vw, 92px);
  line-height: 1.0;
  letter-spacing: -0.018em;
  margin: 0;
  max-width: 13ch;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(4, 7, 14, 0.75);
}
.hero-quote em {
  font-style: italic;
  color: var(--gold);
}
.hero-attr {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 0;
  font: 500 10.5px/1 var(--mono);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 1px 12px rgba(4, 7, 14, 0.9);
}
.hero-attr::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(4, 7, 14, 0.8);
}
.hero-sub {
  margin: 28px 0 0;
  max-width: 44ch;
  font-size: clamp(16px, 1.45vw, 18.5px);
  line-height: 1.62;
  color: var(--ivory-dim);
  text-shadow: 0 1px 16px rgba(4, 7, 14, 0.9);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

/* Entrance. Each element arrives on its own beat. */
.rise {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 1s var(--ease) forwards;
}
.rise-1 { animation-delay: 0.15s; }
.rise-2 { animation-delay: 0.3s; }
.rise-3 { animation-delay: 0.45s; }
.rise-4 { animation-delay: 0.6s; }
@keyframes rise {
  to { opacity: 1; transform: none; }
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
  position: relative;
  padding-block: var(--section-pad);
  border-top: 1px solid var(--hairline-soft);
}
.section-ink { background: var(--ink); }
.section-deep { background: var(--nocturne); }

/* Two-column: plate label and heading left, body right. */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 30px; }
}

/* --- Discipline cards ------------------------------------------------- */
.tenets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
  gap: 1px;
  margin-top: 56px;
  background: var(--hairline-soft);
  border: 1px solid var(--hairline-soft);
}
.tenet {
  background: var(--ink);
  padding: 32px 28px 34px;
  transition: background 0.4s var(--ease);
}
.tenet:hover { background: var(--ink-raise); }
.tenet-num {
  font: 400 11px/1 var(--mono);
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-bottom: 18px;
}
.tenet h3 {
  font: 400 23px/1.2 var(--serif);
  margin: 0 0 10px;
  color: var(--ivory);
}
.tenet p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--gray);
}

/* --- Statistics ------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(24px, 4vw, 52px);
  margin-top: 44px;
}
.stat-num {
  font: 400 clamp(38px, 4.6vw, 62px)/1 var(--serif);
  color: var(--ivory);
  letter-spacing: -0.02em;
}
.stat-num span {
  font-size: 0.45em;
  color: var(--gold);
  margin-left: 3px;
  vertical-align: baseline;
}
.stat-cap {
  margin-top: 10px;
  font: 400 12.5px/1.45 var(--sans);
  color: var(--gray);
  max-width: 24ch;
}

/* --- Trust chips ------------------------------------------------------ */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 8px 15px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font: 500 11.5px/1 var(--mono);
  letter-spacing: 0.08em;
  color: var(--ivory-dim);
  background: rgba(242, 238, 230, 0.02);
}

/* ==========================================================================
   The CDT pipeline. Source files, the tool, the carrier file.
   ========================================================================== */

.pipeline {
  position: relative;
  border: 1px solid var(--hairline-soft);
  background:
    radial-gradient(120% 90% at 50% 8%, rgba(67, 127, 254, 0.09), transparent 62%),
    var(--nocturne);
  padding: clamp(34px, 5vw, 60px) clamp(22px, 4vw, 48px) clamp(28px, 4vw, 44px);
  overflow: hidden;
}
.pipe-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.8vw, 40px);
}
@media (max-width: 760px) {
  .pipe-row { flex-direction: column; gap: 20px; }
  .pipe-arrow { transform: rotate(90deg); }
}

.pipe-files {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 10px;
  justify-content: center;
  flex: 0 1 auto;
}
.file {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font: 700 10px/1 var(--sans);
  letter-spacing: 0.04em;
  color: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
  animation: bob 5s var(--ease) infinite;
}
.file:nth-child(2) { animation-delay: 0.5s; }
.file:nth-child(3) { animation-delay: 1s; }
.file:nth-child(4) { animation-delay: 1.5s; }
.file:nth-child(5) { animation-delay: 2s; }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50%      { transform: translateY(-6px) rotate(var(--r, 0deg)); }
}
.f-xlsx { background: #1e7c45; --r: -6deg; }
.f-pdf  { background: #d8403a; --r: 5deg; }
.f-doc  { background: #2b5bb0; --r: -4deg; }
.f-img  { background: #6a4bc9; --r: 6deg; }
.f-scan { background: #39485c; --r: -5deg; }

.pipe-core {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 26px 30px;
  border: 1px solid rgba(67, 127, 254, 0.34);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(18, 32, 63, 0.9), rgba(10, 16, 36, 0.9));
  box-shadow: 0 0 0 1px rgba(67, 127, 254, 0.08), 0 20px 60px rgba(0, 0, 0, 0.5);
  min-width: 168px;
}
.pipe-core::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(67, 127, 254, 0.5), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
  pointer-events: none;
}
.core-tag {
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lum-halo);
}
.core-name {
  font: 400 21px/1.1 var(--serif);
  color: var(--ivory);
  text-align: center;
}
.core-pulse {
  width: 100%;
  height: 2px;
  margin-top: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--lum), transparent);
  background-size: 200% 100%;
  animation: sweep 2.8s linear infinite;
}
@keyframes sweep {
  from { background-position: 200% 0; }
  to   { background-position: -100% 0; }
}

.pipe-arrow {
  color: var(--gray);
  font-size: 22px;
  line-height: 1;
  flex: 0 0 auto;
}

.pipe-out {
  display: grid;
  place-items: center;
  gap: 12px;
  justify-items: center;
  flex: 0 0 auto;
}
.out-file {
  position: relative;
  width: 84px;
  height: 100px;
  border-radius: 8px;
  background: linear-gradient(180deg, #eaf1ff, #cfdcf7);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.46);
  padding: 12px 10px;
}
.out-file i {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: #96aee0;
  margin-bottom: 7px;
}
.out-file i:nth-child(3) { width: 62%; }
.out-check {
  position: absolute;
  right: -9px;
  bottom: -9px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #24b27c;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(36, 178, 124, 0.4);
}
.out-label {
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
}

.pipe-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 16px;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--hairline-soft);
  font: 400 11px/1 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
}
.pipe-steps b {
  color: var(--gold);
  font-weight: 500;
  margin-right: 7px;
}
.pipe-steps .sep { color: var(--faint); }

/* The approval gate. The one thing that is deliberately not automatic. */
.gate {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding: 10px 18px;
  border: 1px solid var(--hairline-gold);
  border-radius: 999px;
  background: rgba(212, 165, 55, 0.06);
  font: 500 11.5px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.gate::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 var(--gold-soft);
  animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(212, 165, 55, 0.5); }
  70%  { box-shadow: 0 0 0 9px rgba(212, 165, 55, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 165, 55, 0); }
}

/* ==========================================================================
   Page headers for the interior plates
   ========================================================================== */

.page-head {
  position: relative;
  padding: clamp(140px, 17vw, 210px) 0 clamp(52px, 7vw, 86px);
  overflow: hidden;
}
.page-head::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(90% 120% at 12% 0%, rgba(67, 127, 254, 0.1), transparent 60%);
}

/* ==========================================================================
   Contact
   ========================================================================== */

.mail-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  font: 400 clamp(24px, 3.4vw, 40px)/1.1 var(--serif);
  color: var(--ivory);
  border-bottom: 1px solid var(--hairline-gold);
  padding-bottom: 8px;
  transition: color 0.3s, border-color 0.3s;
}
.mail-link:hover { color: var(--gold); border-color: var(--gold); }
.mail-link .arrow { transition: transform 0.3s var(--ease); }
.mail-link:hover .arrow { transform: translateX(5px); }

.form { margin-top: 8px; display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label {
  font: 500 10.5px/1 var(--mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
}
.field input,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: rgba(242, 238, 230, 0.03);
  color: var(--ivory);
  font: 400 15px/1.55 var(--sans);
  transition: border-color 0.3s, background 0.3s;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--faint); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--lum);
  background: rgba(67, 127, 254, 0.05);
}
.field textarea { resize: vertical; min-height: 128px; }
.hp { position: absolute; left: -9999px; }
.form-note {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--faint);
}
.form-status {
  margin: 0;
  font: 500 13px/1.5 var(--sans);
  color: var(--gold);
  min-height: 1.5em;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--hairline-soft);
  background: var(--nocturne);
  padding: 46px 0 40px;
}
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.foot-legal {
  font: 400 11px/1.5 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.foot-nav { display: flex; gap: 22px; }
.foot-nav a {
  font: 500 13px/1 var(--sans);
  color: var(--gray);
  transition: color 0.25s;
}
.foot-nav a:hover { color: var(--ivory); }

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */

/* Content is visible by default. Only a page that has proved JavaScript is
   running hides it to animate it in, so a blocked or slow script never leaves
   a blank page behind. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
  .rise { opacity: 1; transform: none; animation: none; }
}

/* ==========================================================================
   Narrow screens
   ========================================================================== */

@media (max-width: 900px) {
  .nav-pill { display: none; }

  /* The mobile poster already carries the bust, so the separate cut-out
     would put a second David on top of the first. */
  .bust-wrap { display: none; }

  .hero-bg img {
    object-position: 50% 42%;
    filter: saturate(0.95) contrast(1.05) brightness(1.18);
  }
  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(4, 7, 14, 0.52) 0%, rgba(4, 7, 14, 0.34) 18%,
                      rgba(4, 7, 14, 0.74) 40%, rgba(4, 7, 14, 0.8) 62%,
                      rgba(4, 7, 14, 0.92) 82%, var(--ink) 100%);
  }
  .hero-quote { max-width: 100%; }
  .annot { display: none; }
}
@media (max-width: 560px) {
  .signin { display: none; }
  .wordmark { font-size: 16px; letter-spacing: 0.28em; }
  .hero-statement { padding-top: 104px; }
}
