/* Heimdall Research — Instrument */

@font-face {
  font-family: "IBM Plex Sans Fallback";
  src: local("Arial");
  size-adjust: 102%;
  ascent-override: 95%;
  descent-override: 25%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "IBM Plex Mono Fallback";
  src: local("Courier New");
  size-adjust: 100%;
  ascent-override: 95%;
  descent-override: 25%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/plex-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/plex-sans-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/plex-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

/* Contrast on --ground / --ground-2: ink 16.9 / 15.6, ink-2 9.4 / 8.7, ink-3 7.3 / 6.8, signal 9.7 / 9.0. */
:root {
  --ground: #0b0d10;
  --ground-2: #12161b;
  --ground-3: #181d23;
  --rule: rgba(236, 239, 242, 0.12);
  --rule-strong: rgba(236, 239, 242, 0.28);
  --ink: #eceff2;
  --ink-2: #b1b8c0;
  --ink-3: #9aa3ad;
  --signal: #f2a93b;
  --on-signal: #1a1208;

  --paper: #f4f2ec;
  --paper-ink: #16181b;
  --paper-ink-2: #454a51;

  --font-sans: "IBM Plex Sans", "IBM Plex Sans Fallback", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "IBM Plex Mono Fallback", "Courier New", monospace;
  --wrap: 1320px;
  --gutter: 20px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 72px;
  --space-9: 96px;
}

@media (min-width: 768px) {
  :root {
    --gutter: 32px;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  background: var(--ground);
  color: var(--ink-2);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ground);
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--signal);
}

a:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

.wrap {
  width: min(100% - (var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 0;
  z-index: 100;
  transform: translateY(-120%);
  padding: var(--space-2) var(--space-4);
  background: var(--ink);
  color: var(--ground);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.skip-link:focus {
  transform: translateY(var(--space-3));
}

/* Shared type roles */

.eyebrow,
.section__index,
.readout,
.figure__domain,
.panel__index,
.case__label,
.service__index,
.contact-block__label,
.diptych__date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 13, 16, 0.94);
  border-bottom: 1px solid var(--rule);
}

@supports (backdrop-filter: blur(8px)) {
  .site-header {
    background: rgba(11, 13, 16, 0.86);
    backdrop-filter: blur(8px);
  }
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-5);
  min-height: 60px;
  padding-block: var(--space-2);
}

.brand {
  view-transition-name: brand;
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.brand__mark {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: square;
}

.brand__horizon {
  stroke: var(--signal);
  stroke-width: 1.4;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
}

.site-nav a {
  padding-block: var(--space-2);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--signal);
  text-underline-offset: 0.5em;
}

@media (max-width: 560px) {
  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: var(--space-2);
  }
}

/* Hero */

.hero {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 86svh;
  overflow: hidden;
  background: var(--ground-2) center / cover no-repeat
    url("data:image/webp;base64,UklGRnAAAABXRUJQVlA4IGQAAADwBACdASogABIAPtFWpUyoJKOiKA1RABoJZwDCgBEd+oua2s1+clzBa45KypATZQAA/vERR8svLj+wZ9RCravPDjhxHUgj3DbBlFM/DU/nsUScTlTUJ8BebE8sYfkXZGWvzsAA");
}

@media (min-width: 641px) {
  .hero {
    min-height: min(88svh, 880px);
  }
}

.hero__media,
.hero__base,
.hero__video,
.hero__graticule,
.hero__scrim,
.hero__scan {
  position: absolute;
  inset: 0;
}

.hero__base img,
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__base img,
.hero__video {
  filter: brightness(1.18) contrast(1.04);
}

/* The poster underneath is the resting frame; motion-averse viewers keep it. */
@media (prefers-reduced-motion: reduce) {
  .hero__video {
    display: none;
  }
}

.hero__graticule {
  width: 100%;
  height: 100%;
}

.hero__graticule line {
  stroke: rgba(236, 239, 242, 0.16);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

/* Hard scrim: a dense graphite pocket behind the copy, not a wash over the whole scene. */
.hero__scrim {
  background: linear-gradient(180deg, rgba(11, 13, 16, 0.15) 0%, rgba(11, 13, 16, 0) 40%);
}

@media (min-width: 900px) {
  .hero__scrim {
    background:
      linear-gradient(
        90deg,
        rgba(11, 13, 16, 0.96) 0%,
        rgba(11, 13, 16, 0.92) 36%,
        rgba(11, 13, 16, 0.6) 56%,
        rgba(11, 13, 16, 0.08) 78%,
        rgba(11, 13, 16, 0) 100%
      ),
      linear-gradient(
        180deg,
        rgba(11, 13, 16, 0) 60%,
        rgba(11, 13, 16, 0.7) 100%
      );
  }
}

.hero__scan {
  opacity: 0;
  pointer-events: none;
}

.hero__scan::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--signal);
}

.hero__bar {
  position: relative;
  z-index: 2;
  background: rgba(11, 13, 16, 0.84);
}

.hero__bar--top {
  border-bottom: 1px solid var(--rule);
}

.hero__bar--bottom {
  border-top: 1px solid var(--rule);
}

.hero__bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-1) var(--space-5);
  padding-block: var(--space-3);
}

.readout {
  color: var(--ink-2);
}

.readout--end {
  text-align: right;
}

/* The Copernicus notice keeps its prescribed casing. */
.readout--credit {
  letter-spacing: 0.02em;
  text-transform: none;
}

.live {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: var(--space-2);
  background: var(--signal);
  vertical-align: 1px;
}

@media (prefers-reduced-motion: no-preference) {
  .live {
    animation: blink 2s steps(2, jump-none) infinite;
  }
}

@keyframes blink {
  50% {
    opacity: 0.3;
  }
}

@media (max-width: 640px) {
  .hero__bar-inner {
    flex-direction: column;
  }

  .readout--end {
    text-align: left;
  }

  .readout {
    font-size: 0.6875rem;
  }
}

.hero__copy {
  position: relative;
  z-index: 2;
  align-self: end;
  padding-block: var(--space-8) var(--space-7);
}

/* Below 900px the copy spans the scene, so it carries its own full-bleed pocket. */
@media (max-width: 899px) {
  .hero {
    min-height: calc(100svh - 60px);
  }

  .hero__copy {
    padding-top: 112px;
  }

  .hero__copy::before {
    content: "";
    position: absolute;
    inset: 0 calc(var(--gutter) * -1);
    z-index: -1;
    background: linear-gradient(
      180deg,
      rgba(11, 13, 16, 0) 0,
      rgba(11, 13, 16, 0.93) 96px,
      rgba(11, 13, 16, 0.96) 100%
    );
  }
}

.eyebrow {
  color: var(--signal);
}

.hero h1 {
  max-width: 17ch;
  margin-top: var(--space-4);
  color: var(--ink);
  font-size: clamp(2.25rem, 1.05rem + 4vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.04;
  text-wrap: balance;
}

.hero__sub {
  max-width: 44ch;
  margin-top: var(--space-5);
  color: var(--ink-2);
  font-size: 1.125rem;
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.action {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 var(--space-5);
  border: 1px solid var(--signal);
  background: var(--signal);
  color: var(--on-signal);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.action:hover {
  background: #f6bb63;
  color: var(--on-signal);
}

.action--ghost {
  border-color: var(--rule-strong);
  background: var(--ground);
  color: var(--ink);
}

.action--ghost:hover {
  border-color: var(--signal);
  background: var(--ground);
  color: var(--signal);
}

/* Sections */

.section {
  padding-block: var(--space-8);
}

@media (min-width: 768px) {
  .section {
    padding-block: var(--space-9);
  }
}

.section + .section {
  padding-top: 0;
}

.section__head {
  margin-bottom: var(--space-7);
}

.section__rule {
  height: 1px;
  margin-bottom: var(--space-4);
  background: var(--rule-strong);
  transform-origin: left center;
}

.section__index {
  color: var(--ink-3);
}

/* Generic section typography carries zero specificity so component classes always win. */
:where(.section) h2 {
  max-width: 30ch;
  margin-top: var(--space-3);
  color: var(--ink);
  font-size: clamp(1.625rem, 1.1rem + 1.6vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.12;
  text-wrap: balance;
}

:where(.section) h3 {
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
}

:where(.section) p {
  max-width: 64ch;
  color: var(--ink-2);
  font-size: 1.0625rem;
}

:where(.section) h3 + p {
  margin-top: var(--space-3);
}

.section__lede {
  margin-top: var(--space-4);
  max-width: 60ch;
}

/* Public context figures */

.figure-grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 900px) {
  .figure-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
  }
}

.figure {
  display: flex;
  flex-direction: column;
  padding: var(--space-5);
  background: var(--ground-2);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--signal);
}

.figure__domain {
  color: var(--ink-3);
}

.figure__value {
  margin-top: var(--space-4);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: clamp(2.25rem, 1.6rem + 2vw, 3.25rem);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1;
}

.figure__label {
  margin-top: var(--space-4);
  font-size: 1rem;
  line-height: 1.5;
}

.figure__source {
  margin-top: auto;
  padding-top: var(--space-5);
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.figure__source a {
  color: var(--ink-2);
}

.figure__source a:hover {
  color: var(--signal);
}

/* Practice */

.panel-grid {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 1000px) {
  .panel-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.panel {
  display: flex;
  flex-direction: column;
  padding: var(--space-6) var(--space-5);
  background: var(--ground-2);
  border: 1px solid var(--rule);
}

@media (min-width: 768px) {
  .panel {
    padding: var(--space-6);
  }
}

.panel__index {
  color: var(--signal);
}

.panel h3 {
  margin-top: var(--space-3);
  font-size: 1.25rem;
}

.plate {
  margin-top: auto;
  padding-top: var(--space-6);
}

.record-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.record-table caption {
  padding-bottom: var(--space-3);
  color: var(--ink-3);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.record-table th,
.record-table td {
  padding: var(--space-3) var(--space-3) var(--space-3) 0;
  border-top: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

.record-table th {
  color: var(--ink-3);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.6875rem;
}

.record-table td:first-child {
  color: var(--ink);
}

.record-table td:last-child {
  color: var(--ink-2);
}

.record-table tbody tr {
  border-left: 2px solid transparent;
}

.record-table tbody td:first-child::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: var(--space-3);
  background: var(--signal);
  vertical-align: 2px;
}

.diptych {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}

.diptych__frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--rule);
  background: var(--ground-3);
}

.diptych__date {
  margin-top: var(--space-2);
  color: var(--ink-2);
}

.plate__caption {
  margin-top: var(--space-4);
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.55;
}

/* Selected work */

.case-list {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 900px) {
  .case-list {
    grid-template-columns: 1fr 1fr;
  }
}

.case {
  padding: var(--space-6) var(--space-5);
  background: var(--ground-2);
  border: 1px solid var(--rule);
  border-left: 2px solid var(--signal);
}

@media (min-width: 768px) {
  .case {
    padding: var(--space-7) var(--space-6);
  }
}

.case__label {
  color: var(--signal);
}

.case h3 {
  margin-top: var(--space-3);
  font-size: 1.375rem;
  line-height: 1.25;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.chip-row li {
  padding: 0.3em 0.65em;
  background: var(--ground-3);
  border: 1px solid var(--rule-strong);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

/* Services */

.service-grid {
  display: grid;
  gap: 0 var(--space-5);
}

@media (min-width: 768px) {
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1100px) {
  .service-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .service-grid--three {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service {
  padding-block: var(--space-5) var(--space-6);
  border-top: 1px solid var(--rule-strong);
}

.service__index {
  color: var(--signal);
}

.service h3 {
  margin-top: var(--space-4);
}

.statement {
  margin-top: var(--space-6);
  padding: var(--space-5);
  border: 1px solid var(--rule);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.9375rem;
}

/* Sources */

.source-list {
  display: grid;
  gap: 0 var(--space-7);
}

@media (min-width: 700px) {
  .source-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1100px) {
  .source-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.source-list li {
  padding-block: var(--space-4);
  border-top: 1px solid var(--rule);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

/* About + contact */

.about-grid {
  display: grid;
  gap: var(--space-7);
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 1.2fr 1fr;
    align-items: end;
    gap: var(--space-8);
  }
}

.about-grid h2 {
  margin-top: 0;
}

.about-grid h2 + p {
  margin-top: var(--space-4);
}

.contact-block {
  padding: var(--space-6) var(--space-5);
  background: var(--ground-2);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--signal);
}

.contact-block__label {
  color: var(--ink-3);
}

.contact-block__email {
  margin-top: var(--space-4);
}

.contact-block__email a,
.contact-email a {
  color: var(--ink);
  font-size: clamp(1.375rem, 0.9rem + 1.8vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: var(--rule-strong);
  text-decoration-thickness: 1px;
}

.contact-block__email a:hover,
.contact-email a:hover {
  color: var(--signal);
  text-decoration-color: var(--signal);
}

/* Entry rows */

.entry-list {
  border-bottom: 1px solid var(--rule);
}

.entry-row {
  display: grid;
  gap: var(--space-2) var(--space-6);
  padding-block: var(--space-5);
  border-top: 1px solid var(--rule);
}

@media (min-width: 900px) {
  .entry-row {
    grid-template-columns: 11rem 1fr;
  }
}

.entry-row__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2) var(--space-3);
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (min-width: 900px) {
  .entry-row__meta {
    flex-direction: column;
    gap: var(--space-2);
  }
}

.type-chip {
  padding: 0.15em 0.5em;
  border: 1px solid var(--signal);
  color: var(--signal);
  font-weight: 500;
}

.entry-row__title {
  color: var(--ink);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.3;
}

.entry-row__title a {
  text-decoration: none;
}

.entry-row__title a:hover {
  text-decoration: underline;
}

.entry-row__summary {
  margin-top: var(--space-2);
  color: var(--ink-2);
  font-size: 1rem;
}

.entry-row__source {
  margin-top: var(--space-3);
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

/* Paper surface */
.paper {
  background: var(--paper);
  color: var(--paper-ink-2);
}

.paper h1,
.paper h2,
.paper h3,
.paper a {
  color: var(--paper-ink);
}

/* Interior pages */

.page {
  padding-block: var(--space-8) var(--space-9);
}

.page h1 {
  color: var(--ink);
  font-size: clamp(2rem, 1.4rem + 2vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.page .lede {
  max-width: 54ch;
  margin-top: var(--space-5);
  color: var(--ink-2);
  font-size: 1.0625rem;
}

.page .contact-email {
  margin-top: var(--space-6);
}

.page .hero__actions {
  margin-top: var(--space-6);
}

.prose {
  max-width: 64ch;
  margin-top: var(--space-7);
}

.prose h2 {
  margin-top: var(--space-6);
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 600;
}

.prose p {
  color: var(--ink-2);
}

.prose h2 + p,
.prose p + p {
  margin-top: var(--space-3);
}

/* Footer */

.site-footer {
  padding-block: var(--space-7) var(--space-8);
  border-top: 1px solid var(--rule);
}

.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
}

.site-footer p {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.site-footer__credit {
  margin-top: var(--space-4);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
}

.footer-links a {
  padding-block: var(--space-1);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* Motion. Text never animates opacity, so final contrast holds at every frame. */

@media (prefers-reduced-motion: no-preference) {
  /* A slow, repeating acquisition sweep over the looping radar scene. */
  .hero__scan {
    transform: translateY(-100%);
    animation: sweep 11s cubic-bezier(0.45, 0, 0.55, 1) 0.3s infinite;
  }

  .hero__actions {
    translate: 0 8px;
    animation: lift 0.6s ease-out 0.4s both;
  }

  @supports (animation-timeline: view()) {
    .section__rule {
      animation: draw linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 25%;
    }

    .reveal {
      animation: lift linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 20%;
    }
  }
}

@keyframes sweep {
  0% {
    opacity: 0;
    transform: translateY(-100%);
  }
  8% {
    opacity: 0.8;
  }
  40% {
    opacity: 0.8;
    transform: translateY(0);
  }
  48%,
  100% {
    opacity: 0;
    transform: translateY(0);
  }
}

@keyframes lift {
  from {
    translate: 0 12px;
  }
  to {
    translate: 0 0;
  }
}

@keyframes draw {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 180ms;
}

/* Practice brief: problem, approach, audience */

.brief {
  margin-top: var(--space-5);
}

.brief__row {
  display: grid;
  gap: var(--space-2);
  padding-block: var(--space-4);
  border-top: 1px solid var(--rule);
}

@media (min-width: 600px) {
  .brief__row {
    grid-template-columns: 7.5rem 1fr;
    gap: var(--space-5);
  }
}

.brief dt {
  padding-top: 0.25em;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.brief__row:first-child dt {
  color: var(--signal);
}

.brief dd {
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.6;
}

.brief__row:nth-child(2) dd {
  color: var(--ink);
}

/* Mobile: keep a real band of the scene visible above the copy, and stack the diptych. */
@media (max-width: 899px) {
  .hero {
    grid-template-rows: auto minmax(34svh, 1fr) auto auto;
  }

  .hero__copy {
    grid-row: 3;
  }

  .hero__bar--bottom {
    grid-row: 4;
  }
}

@media (max-width: 599px) {
  .diptych {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

/* Contact: plain address plus webmail options, since mailto does nothing without a mail app. */

.contact-address {
  color: var(--ink);
  font-size: clamp(1.375rem, 0.9rem + 1.8vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  overflow-wrap: anywhere;
  user-select: all;
  -webkit-user-select: all;
}

.contact-hint {
  margin-top: var(--space-5);
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.mail-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.mail-options a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-4);
  border: 1px solid var(--rule-strong);
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.mail-options a:hover {
  border-color: var(--signal);
  color: var(--signal);
}

.contact-block .mail-options {
  margin-top: var(--space-5);
}

/* Interior route heads reuse the section index and page h1. */
.page-head {
  padding-bottom: var(--space-4);
}

.page > .section:first-of-type {
  padding-top: var(--space-7);
}
