:root {
  --bg: #0b0d0f;
  --bg-deep: #07090a;
  --panel: #121518;
  --panel-raised: #181c20;
  --paper: #1b1e21;
  --text: #eeeae0;
  --muted: #a19f99;
  --quiet: #74787b;
  --line: rgba(238, 234, 224, 0.14);
  --line-strong: rgba(238, 234, 224, 0.28);
  --accent: #6686a3;
  --accent-light: #90abc2;
  --display: "Special Gothic Expanded One", Impact, sans-serif;
  --body: "Spectral", Georgia, serif;
  --brand: "Unbounded", sans-serif;
  --content: 1440px;
  --measure: 68ch;
  --header-height: 82px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 2rem);
  background: var(--bg);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: var(--accent-light);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

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

img {
  max-width: 100%;
  height: auto;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 4px;
}

::selection {
  background: var(--accent);
  color: #fff;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 1rem;
  transform: translateY(-160%);
  background: var(--text);
  color: var(--bg);
  font-family: var(--display);
  font-size: 0.7rem;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-height);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 9, 10, 0.92);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(100% - 3rem, var(--content));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.wordmark {
  color: var(--text);
  font-family: var(--brand);
  font-size: 1.26rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-decoration: none;
}

.wordmark span {
  color: var(--accent-light);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3.3rem);
  font-family: var(--display);
}

.primary-nav a {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
}

.primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  background: var(--accent-light);
  transition: transform 180ms ease;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--text);
}

.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.primary-nav .nav-publication {
  padding: 0 1.1rem;
  border: 1px solid var(--line-strong);
  color: var(--text);
}

.primary-nav .nav-publication::after {
  display: none;
}

.primary-nav .nav-publication:hover {
  border-color: var(--accent-light);
  background: rgba(102, 134, 163, 0.12);
}

.menu-toggle {
  display: none;
}

.eyebrow,
.footer-label,
.card-index,
.detail-number,
.contact-label,
.post-meta,
.legal-updated {
  margin: 0;
  color: var(--muted);
  font-family: var(--display);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero {
  position: relative;
  min-height: max(760px, 100svh);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--bg-deep);
}

.hero-image,
.hero-shade,
.hero-grid {
  position: absolute;
  inset: 0;
}

.hero-image {
  background-image: url("/static/images/hero.webp");
  background-position: 62% center;
  background-size: cover;
  filter: grayscale(1) saturate(0.35) contrast(1.12) brightness(0.54);
  transform: scale(1.01);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(7, 9, 10, 0.94) 0%, rgba(7, 9, 10, 0.68) 48%, rgba(7, 9, 10, 0.28) 100%),
    linear-gradient(0deg, rgba(7, 9, 10, 0.8) 0%, transparent 45%),
    radial-gradient(circle at 65% 45%, transparent 0%, rgba(7, 9, 10, 0.35) 72%);
}

.hero-grid {
  opacity: 0.22;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(to bottom, transparent 10%, #000 45%, transparent 96%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 3rem, var(--content));
  min-height: max(760px, 100svh);
  margin: 0 auto;
  padding: calc(var(--header-height) + clamp(5rem, 13vh, 9rem)) 0 8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-content::before {
  position: absolute;
  top: calc(var(--header-height) + 3rem);
  bottom: 3rem;
  left: -1.5rem;
  width: 1px;
  content: "";
  background: linear-gradient(transparent, var(--line-strong) 15%, var(--line-strong) 85%, transparent);
}

.hero-reference {
  position: absolute;
  top: calc(var(--header-height) + 2rem);
  right: 0;
  display: grid;
  gap: 0.15rem;
  color: rgba(238, 234, 224, 0.56);
  font-family: var(--display);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  text-align: right;
}

.hero .eyebrow {
  margin-bottom: 1.5rem;
  color: var(--accent-light);
}

.hero h1 {
  max-width: 980px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.25rem, 7vw, 7.5rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.9;
  text-wrap: balance;
}

.hero-summary {
  max-width: 670px;
  margin: 2rem 0 0;
  color: #d0cec7;
  font-size: clamp(1.08rem, 1.5vw, 1.28rem);
  line-height: 1.55;
}

.action-row {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  min-height: 52px;
  padding: 0.85rem 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.3rem;
  border: 1px solid transparent;
  font-family: var(--display);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button-primary {
  background: var(--accent);
  color: #fff;
}

.button-primary:hover {
  background: var(--accent-light);
  color: var(--bg-deep);
}

.button-quiet,
.button-outline {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(11, 13, 15, 0.34);
}

.button-quiet:hover,
.button-outline:hover {
  border-color: var(--accent-light);
  background: rgba(102, 134, 163, 0.12);
}

.hero-caption {
  position: absolute;
  z-index: 2;
  right: 1.5rem;
  bottom: 1rem;
  margin: 0;
  color: rgba(238, 234, 224, 0.48);
  font-family: var(--display);
  font-size: 0.52rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section {
  width: min(100% - 3rem, var(--content));
  margin: 0 auto;
  padding: clamp(6rem, 10vw, 10rem) 0;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(150px, 0.55fr) minmax(400px, 1.4fr) minmax(260px, 0.72fr);
  align-items: end;
  gap: 3rem;
}

.section-heading h2,
.approach-intro h2,
.publication-heading h2,
.closing-section h2,
.editorial-copy h2,
.contact-links h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.25rem, 4.6vw, 5.2rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.96;
  text-wrap: balance;
}

.section-heading > p:last-child,
.publication-heading > p {
  margin: 0;
  color: var(--muted);
}

.capability-grid {
  margin-top: clamp(4rem, 8vw, 7rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.capability-card {
  position: relative;
  min-height: 465px;
  padding: 1.5rem clamp(1.5rem, 3vw, 3rem) 2rem;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.016), transparent);
}

.capability-card:last-child {
  border-right: 0;
}

.capability-card::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 38%;
  height: 1px;
  content: "";
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.capability-card:hover::after {
  transform: scaleX(1);
}

.capability-card h3 {
  margin: auto 0 1.5rem;
  font-family: var(--display);
  font-size: clamp(1.55rem, 2.5vw, 2.6rem);
  font-weight: 400;
  line-height: 1.02;
}

.capability-card > p:not(.card-index) {
  min-height: 8.4em;
  margin: 0;
  color: var(--muted);
}

.capability-card a {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text);
  font-family: var(--display);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
}

.approach-section {
  display: grid;
  grid-template-columns: 0.8fr 2fr;
  gap: 5rem;
}

.approach-intro {
  align-self: start;
}

.approach-intro .eyebrow {
  margin-bottom: 2rem;
}

.approach-intro h2 {
  font-size: clamp(2rem, 3.4vw, 3.8rem);
}

.equation {
  display: grid;
  grid-template-columns: 1fr auto 0.54fr auto 1.35fr;
  align-items: center;
  gap: clamp(0.8rem, 2.2vw, 2rem);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.equation span {
  min-height: 180px;
  padding: 2.5rem 0;
  display: flex;
  align-items: center;
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.5vw, 3rem);
  line-height: 0.98;
}

.equation b {
  color: var(--accent);
  font-family: var(--body);
  font-size: 2.5rem;
  font-weight: 400;
}

.approach-copy {
  grid-column: 2;
  max-width: 860px;
  columns: 2;
  column-gap: 4rem;
}

.approach-copy p {
  margin: 0;
  color: var(--muted);
  break-inside: avoid;
}

.approach-copy p + p {
  margin-top: 1.5rem;
}

.publication-section {
  width: 100%;
  max-width: none;
  padding-right: max(1.5rem, calc((100vw - var(--content)) / 2));
  padding-left: max(1.5rem, calc((100vw - var(--content)) / 2));
  background:
    linear-gradient(rgba(102, 134, 163, 0.055) 1px, transparent 1px),
    var(--panel);
  background-size: 100% 96px;
}

.publication-heading {
  display: grid;
  grid-template-columns: 1.4fr 0.65fr;
  align-items: end;
  gap: 4rem;
}

.publication-heading .eyebrow {
  margin-bottom: 1.4rem;
  color: var(--accent-light);
}

.publication-grid {
  margin-top: 5rem;
  display: grid;
  grid-template-columns: 1.5fr 0.75fr 0.75fr;
  border: 1px solid var(--line-strong);
}

.post-card {
  min-height: 410px;
  padding: 1.7rem clamp(1.5rem, 3vw, 3rem) 2rem;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: rgba(11, 13, 15, 0.72);
}

.post-card:last-child {
  border-right: 0;
}

.post-featured {
  min-height: 560px;
  background:
    linear-gradient(0deg, rgba(7, 9, 10, 0.92) 0%, rgba(7, 9, 10, 0.58) 58%, rgba(7, 9, 10, 0.45) 100%),
    url("/static/images/hero.webp") 49% 52% / cover;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--accent-light);
}

.post-meta time {
  color: var(--muted);
}

.post-card h3 {
  margin: auto 0 1.2rem;
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.02;
}

.post-card:not(.post-featured) h3 {
  font-size: clamp(1.35rem, 1.8vw, 2rem);
}

.post-card h3 a {
  color: var(--text);
  text-decoration: none;
}

.post-card > p {
  max-width: 55ch;
  margin: 0;
  color: var(--muted);
}

.post-link {
  margin-top: 1.75rem;
  color: var(--text);
  font-family: var(--display);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.publication-actions {
  margin-top: 2rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.closing-section {
  width: min(100% - 3rem, var(--content));
  margin: 0 auto;
  padding: clamp(6rem, 12vw, 11rem) 0;
}

.closing-section .eyebrow {
  margin-bottom: 2rem;
}

.closing-section h2 {
  max-width: 1160px;
}

.text-link {
  margin-top: 2.5rem;
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  color: var(--accent-light);
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-footer {
  padding: clamp(4rem, 7vw, 7rem) max(1.5rem, calc((100vw - var(--content)) / 2)) 2rem;
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.55fr 0.78fr 0.8fr;
  gap: 3rem;
}

.footer-brand p {
  max-width: 25ch;
  margin: 1.5rem 0 0;
  color: var(--muted);
}

.footer-wordmark {
  font-size: 1.5rem;
}

.footer-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.footer-group .footer-label {
  margin-bottom: 0.7rem;
  color: var(--quiet);
}

.footer-group a {
  color: var(--muted);
  text-decoration: none;
}

.footer-group a:hover {
  color: var(--text);
}

.footer-group .footer-subscribe {
  margin-top: 0.7rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-family: var(--display);
  font-size: 0.6rem;
  text-transform: uppercase;
}

.hedera-mark {
  align-self: start;
  min-height: 92px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--display);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.hedera-mark img {
  width: 107px;
  height: 30px;
  object-fit: contain;
}

.footer-legal {
  margin-top: 5rem;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-family: var(--display);
  font-size: 0.54rem;
  letter-spacing: 0.06em;
  line-height: 1.7;
  text-transform: uppercase;
}

.footer-legal p {
  margin: 0;
}

/* Interior page mastheads */
.page-hero {
  position: relative;
  width: min(100% - 3rem, var(--content));
  min-height: 680px;
  margin: 0 auto;
  padding: calc(var(--header-height) + clamp(6rem, 12vw, 10rem)) 0 7rem;
  display: grid;
  grid-template-columns: 1.45fr 0.55fr;
  align-items: end;
  gap: 5rem;
  border-bottom: 1px solid var(--line-strong);
}

.page-hero::before {
  position: absolute;
  inset: var(--header-height) 0 0;
  z-index: -1;
  content: "";
  opacity: 0.18;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: linear-gradient(120deg, #000, transparent 75%);
}

.page-hero .eyebrow {
  margin-bottom: 2rem;
  color: var(--accent-light);
}

.page-hero h1 {
  max-width: 950px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.5rem, 8vw, 8.5rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.86;
}

.page-hero > p {
  max-width: 45ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.2rem;
}

.page-reference {
  position: absolute;
  top: calc(var(--header-height) + 2rem);
  right: 0;
  color: var(--quiet);
  font-family: var(--display);
  font-size: 0.54rem;
  letter-spacing: 0.1em;
  line-height: 1.7;
  text-align: right;
}

.editorial-section {
  width: min(100% - 3rem, var(--content));
  margin: 0 auto;
  padding: clamp(5rem, 9vw, 9rem) 0;
  display: grid;
  grid-template-columns: 0.5fr 1.5fr;
  gap: 5rem;
  border-bottom: 1px solid var(--line);
}

.section-marker {
  padding-top: 0.5rem;
}

.editorial-copy {
  max-width: 940px;
}

.editorial-copy h2 {
  max-width: 900px;
  font-size: clamp(2.4rem, 4.5vw, 5rem);
}

.editorial-copy > p {
  max-width: var(--measure);
  margin: 1.6rem 0 0;
  color: var(--muted);
}

.editorial-copy .standfirst {
  margin-top: 2.5rem;
  color: var(--text);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.5;
}

.editorial-copy blockquote {
  margin: 4rem 0 0;
  padding: 2rem 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  color: var(--accent-light);
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 3.5rem);
  line-height: 1.15;
}

.capability-detail {
  padding: 3rem 0;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-height) + 2rem);
}

.capability-detail:first-of-type {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}

.capability-detail h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.4vw, 2.5rem);
  font-weight: 400;
  line-height: 1.05;
}

.capability-detail p:not(.detail-number) {
  max-width: var(--measure);
  margin: 1rem 0 0;
  color: var(--muted);
}

.compact-closing {
  padding-top: 7rem;
  padding-bottom: 7rem;
}

/* Contact */
.contact-hero h1 {
  max-width: 850px;
}

.contact-section {
  width: min(100% - 3rem, var(--content));
  margin: 0 auto;
  padding: clamp(5rem, 9vw, 9rem) 0;
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 7rem;
  border-bottom: 1px solid var(--line);
}

.contact-intro > p:not(.eyebrow) {
  max-width: 48ch;
  margin: 2rem 0 0;
  color: var(--muted);
}

.contact-options article {
  padding: 0 0 3rem;
  border-bottom: 1px solid var(--line-strong);
}

.contact-options article + article {
  padding-top: 3rem;
}

.contact-email {
  margin-top: 1.2rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(1.45rem, 3.4vw, 3.8rem);
  line-height: 1;
  text-decoration: none;
}

.contact-email:hover {
  color: var(--accent-light);
}

.contact-options article > p:last-child {
  margin: 1.2rem 0 0;
  color: var(--muted);
}

.contact-links {
  width: min(100% - 3rem, var(--content));
  margin: 0 auto;
  padding: clamp(5rem, 9vw, 9rem) 0;
  display: grid;
  grid-template-columns: 0.45fr 0.75fr 1fr;
  gap: 4rem;
}

.contact-links h2 {
  font-size: clamp(2.2rem, 4vw, 4.5rem);
}

.contact-links > div {
  border-top: 1px solid var(--line-strong);
}

.contact-links > div a {
  min-height: 110px;
  padding: 1.2rem 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: center;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
}

.contact-links a span {
  font-family: var(--display);
  font-size: 1rem;
}

.contact-links a small {
  grid-row: 2;
  color: var(--muted);
  font-family: var(--display);
  font-size: 0.55rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-links a b {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  color: var(--accent-light);
  font-weight: 400;
}

/* Legal */
.legal-main {
  padding-top: var(--header-height);
}

.legal-header {
  width: min(100% - 3rem, 1160px);
  margin: 0 auto;
  padding: clamp(5rem, 9vw, 8rem) 0 4rem;
  border-bottom: 1px solid var(--line-strong);
}

.legal-header h1 {
  margin: 1.5rem 0 0;
  font-family: var(--display);
  font-size: clamp(3rem, 6vw, 6.5rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.legal-updated {
  margin-top: 1.5rem;
  color: var(--accent-light);
}

.legal-layout {
  width: min(100% - 3rem, 1160px);
  margin: 0 auto;
  padding: 4rem 0 8rem;
  display: grid;
  grid-template-columns: 240px minmax(0, 780px);
  gap: clamp(3rem, 7vw, 8rem);
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
  padding: 1.5rem;
  border: 1px solid var(--line);
  background: var(--panel);
}

.legal-toc ol {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style-position: inside;
  color: var(--quiet);
  font-family: var(--display);
  font-size: 0.58rem;
  line-height: 2;
  text-transform: uppercase;
}

.legal-toc a {
  color: var(--muted);
  text-decoration: none;
}

.legal-document {
  padding: clamp(2rem, 5vw, 4.5rem);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.2);
}

.legal-document section {
  scroll-margin-top: calc(var(--header-height) + 2rem);
}

.legal-document section + section {
  margin-top: 3.7rem;
  padding-top: 3.7rem;
  border-top: 1px solid var(--line);
}

.legal-document h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.legal-document h2 span {
  margin-right: 0.7rem;
  color: var(--accent-light);
  font-size: 0.62rem;
  vertical-align: middle;
}

.legal-document p,
.legal-document ul {
  margin: 1.3rem 0 0;
  color: #cbc8c0;
}

.legal-document ul {
  padding-left: 1.25rem;
}

.legal-document li + li {
  margin-top: 0.55rem;
}

@media (max-width: 1050px) {
  .section-heading {
    grid-template-columns: 0.45fr 1.3fr;
  }

  .section-heading > p:last-child {
    grid-column: 2;
  }

  .capability-card {
    min-height: 430px;
    padding-inline: 1.5rem;
  }

  .approach-section {
    grid-template-columns: 1fr;
  }

  .equation,
  .approach-copy {
    grid-column: 1;
  }

  .approach-copy {
    max-width: 900px;
  }

  .publication-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .post-card:nth-child(2) {
    border-right: 0;
  }

  .post-card:nth-child(3) {
    grid-column: 1 / -1;
    min-height: 300px;
    border-top: 1px solid var(--line);
  }

  .page-hero {
    grid-template-columns: 1fr 0.65fr;
  }

  .contact-section {
    gap: 4rem;
  }

  .contact-links {
    grid-template-columns: 0.4fr 0.8fr;
  }

  .contact-links > div {
    grid-column: 2;
  }
}

@media (max-width: 780px) {
  :root {
    --header-height: 70px;
  }

  body {
    font-size: 17px;
  }

  .header-inner {
    width: min(100% - 2rem, var(--content));
  }

  .wordmark {
    font-size: 1.05rem;
  }

  .menu-toggle {
    min-width: 72px;
    min-height: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.7rem;
    border: 0;
    background: transparent;
    color: var(--text);
    font-family: var(--display);
    font-size: 0.58rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .menu-toggle-lines,
  .menu-toggle-lines::before,
  .menu-toggle-lines::after {
    width: 20px;
    height: 1px;
    display: block;
    background: currentColor;
    transition: transform 160ms ease, opacity 160ms ease;
  }

  .menu-toggle-lines {
    position: relative;
  }

  .menu-toggle-lines::before,
  .menu-toggle-lines::after {
    position: absolute;
    left: 0;
    content: "";
  }

  .menu-toggle-lines::before {
    top: -6px;
  }

  .menu-toggle-lines::after {
    top: 6px;
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-lines {
    background: transparent;
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-lines::before {
    top: 0;
    transform: rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-lines::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    right: 0;
    bottom: auto;
    left: 0;
    width: 100vw;
    height: calc(100svh - var(--header-height));
    padding: 2.5rem 1rem 4rem;
    display: flex;
    visibility: hidden;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    transform: translateY(-1rem);
    opacity: 0;
    background: var(--bg-deep);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
  }

  .menu-open .primary-nav {
    visibility: visible;
    transform: translateY(0);
    opacity: 1;
  }

  .primary-nav a {
    min-height: 64px;
    padding: 0 0.5rem;
    border-bottom: 1px solid var(--line);
    font-size: 0.8rem;
  }

  .primary-nav a::after {
    display: none;
  }

  .primary-nav .nav-publication {
    min-height: 58px;
    margin-top: 1.5rem;
    padding: 0 1rem;
    justify-content: space-between;
  }

  .hero,
  .hero-content {
    min-height: max(700px, 100svh);
  }

  .hero-content {
    width: min(100% - 2rem, var(--content));
    padding-top: calc(var(--header-height) + 7rem);
    padding-bottom: 6rem;
  }

  .hero-content::before,
  .hero-caption {
    display: none;
  }

  .hero-reference {
    right: 0;
  }

  .hero h1 {
    font-size: clamp(2.9rem, 13vw, 5.6rem);
  }

  .hero-summary {
    font-size: 1.05rem;
  }

  .section,
  .closing-section,
  .page-hero,
  .editorial-section,
  .contact-section,
  .contact-links {
    width: min(100% - 2rem, var(--content));
  }

  .section-heading,
  .publication-heading {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section-heading > p:last-child {
    grid-column: 1;
  }

  .capability-grid {
    grid-template-columns: 1fr;
  }

  .capability-card {
    min-height: 370px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .capability-card:last-child {
    border-bottom: 0;
  }

  .capability-card > p:not(.card-index) {
    min-height: 0;
  }

  .equation {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 1rem 0;
  }

  .equation span {
    min-height: auto;
    padding: 1.35rem 0;
    font-size: clamp(1.6rem, 7vw, 2.5rem);
  }

  .equation b {
    font-size: 1.8rem;
  }

  .approach-copy {
    columns: auto;
  }

  .publication-section {
    width: 100%;
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .publication-grid {
    grid-template-columns: 1fr;
  }

  .post-card,
  .post-card:nth-child(3) {
    grid-column: 1;
    min-height: 360px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .post-featured {
    min-height: 500px;
  }

  .publication-actions {
    justify-content: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-legal {
    flex-direction: column;
  }

  .page-hero {
    min-height: 650px;
    padding-bottom: 5rem;
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .page-hero h1 {
    font-size: clamp(3.2rem, 13vw, 6rem);
  }

  .editorial-section,
  .contact-section {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-links {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-links > div {
    grid-column: 1;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .legal-toc {
    position: static;
  }
}

@media (max-width: 520px) {
  .action-row,
  .publication-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
    justify-content: space-between;
  }

  .hero-image {
    background-position: 67% center;
  }

  .hero-reference {
    top: calc(var(--header-height) + 1.5rem);
  }

  .hero .eyebrow {
    max-width: 28ch;
  }

  .section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .section-heading h2,
  .approach-intro h2,
  .publication-heading h2,
  .closing-section h2,
  .editorial-copy h2 {
    font-size: clamp(2.1rem, 10.5vw, 3.5rem);
  }

  .capability-card {
    min-height: 340px;
  }

  .post-meta {
    flex-direction: column;
  }

  .publication-actions {
    align-items: stretch;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: 1;
  }

  .hedera-mark {
    margin-top: 1rem;
  }

  .page-hero {
    min-height: 610px;
  }

  .contact-hero h1 {
    font-size: clamp(2.65rem, 11vw, 4rem);
    overflow-wrap: anywhere;
  }

  .page-reference {
    top: calc(var(--header-height) + 1.5rem);
  }

  .capability-detail {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contact-email {
    font-size: clamp(1.15rem, 6vw, 1.8rem);
  }

  .legal-main {
    padding-top: var(--header-height);
  }

  .legal-header,
  .legal-layout {
    width: min(100% - 2rem, 1160px);
  }

  .legal-document {
    padding: 1.5rem;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
