/* Corelink Group LLC — institutional site. Buildless, no external requests. */

@font-face {
  font-family: "Manrope";
  src: url("assets/manrope.ttf") format("truetype");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #090d0b;
  --bg-raised: #0e1612;
  --ink: #f7f8f7;
  --sage: #b6c3bc;
  --emerald: #008466;
  --emerald-bright: #00a17a;
  --rule: rgba(182, 195, 188, 0.24);
  --gutter: clamp(1.25rem, 4.45vw, 4rem);
  --lane: clamp(15rem, 36vw, 30rem);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

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

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  caret-color: var(--emerald-bright);
}

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

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

img { max-width: 100%; }

a {
  color: inherit;
  text-underline-offset: 0.25em;
}

:focus-visible {
  outline: 3px solid var(--emerald-bright);
  outline-offset: 4px;
}

main:focus { outline: none; }

.wrap {
  width: 100%;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--emerald);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-300%);
}
.skip-link:focus { transform: none; }

.icon {
  flex: none;
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Fixed monument scene: stationary raster plus optical canvas ---------- */

.monument-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg);
}

.monument-scene {
  position: absolute;
  left: 54%;
  top: 50%;
  width: min(100%, 1300px);
  aspect-ratio: 1600 / 1000;
  transform: translate(-70%, -45%);
}

.monument-img,
.effects-canvas {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: block;
  max-width: none;
}
.monument-img { object-fit: fill; }
.effects-canvas { pointer-events: none; }

/* Soft feather at the raster edges so the plate sits on the page background */
.monument-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--bg) 0, rgba(9, 13, 11, 0) 5%, rgba(9, 13, 11, 0) 95%, var(--bg) 100%),
    linear-gradient(180deg, var(--bg) 0, rgba(9, 13, 11, 0) 5%, rgba(9, 13, 11, 0) 94%, var(--bg) 100%);
}

/* Left contrast scrim for the reading lane; the monument stays uncovered */
.scene-scrim {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(9, 13, 11, 0.72) 0, rgba(9, 13, 11, 0.42) 24vw, rgba(9, 13, 11, 0) 44vw);
}

/* ---------- Transparent reversed brand application ---------- */

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(13.125rem, 18.75vw, 16.875rem);
  height: 5rem;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border-radius: 0;
  line-height: 0;
}
.brand img {
  display: block;
  flex: none;
  max-width: none;
  width: calc(118% - 28.32px);
  filter: invert(1) hue-rotate(180deg);
  height: auto;
}

/* ---------- Header ---------- */

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
  padding-top: 2rem;
}
.site-header .wrap {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 2.5rem;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.45em;
  transition: text-decoration-color 0.2s ease;
}
.site-nav a:hover { text-decoration-color: var(--emerald-bright); }

.menu-toggle {
  display: none;
  min-height: 2.75rem;
  padding: 0 1.125rem;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
  background: rgba(9, 13, 11, 0.78);
  border: 1px solid rgba(247, 248, 247, 0.45);
  border-radius: 2px;
  cursor: pointer;
}
.menu-toggle:hover,
.menu-toggle[aria-expanded="true"] { border-color: var(--emerald-bright); }

/* ---------- Main flow ---------- */

main {
  position: relative;
  z-index: 2;
}

.lane {
  width: var(--lane);
  margin-left: var(--gutter);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 60vh var(--gutter) 3rem;
  padding-top: 60svh;
}

.hero-title {
  font-size: clamp(1.75rem, 3.2vw, 3rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.hero-title span { display: block; }

.hero-copy { max-width: 22.5rem; }

.hero-lead {
  font-size: clamp(1rem, 1.25vw, 1.1875rem);
  line-height: 1.5;
  color: var(--sage);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 3.5rem;
  padding: 0 2rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  color: #fff;
  text-decoration: none;
  background: var(--emerald);
  border: 1px solid transparent;
  border-radius: 0;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.btn:hover {
  background: #007659;
  border-color: var(--emerald-bright);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.75rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--emerald-bright);
  text-underline-offset: 0.35em;
}
.link-arrow .icon { transition: transform 0.2s ease; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Effects pause control ---------- */

.effects-toggle {
  position: fixed;
  right: var(--gutter);
  bottom: 1.25rem;
  z-index: 15;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 1rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  background: rgba(9, 13, 11, 0.72);
  border: 1px solid rgba(247, 248, 247, 0.4);
  border-radius: 2px;
  cursor: pointer;
}
.effects-toggle:hover { border-color: var(--emerald-bright); }

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.section h2 {
  font-size: clamp(1.75rem, 2.8vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.section h2::before {
  content: "";
  display: block;
  width: 3rem;
  height: 2px;
  margin-bottom: 1.25rem;
  background: var(--emerald-bright);
}

.approach-intro,
.about-body p {
  max-width: 65ch;
  margin-top: 1.25rem;
  font-size: 1.0625rem;
  color: var(--sage);
}

.rows {
  margin-top: 2rem;
  border-bottom: 1px solid var(--rule);
}

.row {
  position: relative;
  padding-block: 1.375rem;
  border-top: 1px solid var(--rule);
}
.row::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 3rem;
  height: 2px;
  background: var(--emerald-bright);
}
.row h3 {
  font-size: clamp(1.25rem, 1.8vw, 1.625rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.row p {
  max-width: 65ch;
  margin-top: 0.5rem;
  font-size: 1.0625rem;
  color: var(--sage);
}

/* Contact */

.contact h2 {
  font-size: clamp(2rem, 3.4vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 100%;
  min-height: 2.75rem;
  margin-top: 1.75rem;
  font-size: clamp(1.125rem, 1.7vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--emerald-bright);
  text-underline-offset: 0.25em;
  overflow-wrap: anywhere;
}
.contact-link .icon { transition: transform 0.2s ease; }
.contact-link:hover .icon { transform: translateX(4px); }
.contact-link:hover { text-decoration-color: var(--ink); }

/* Footer: compact stack in the reading lane */

.site-footer { padding-block: 2rem 3rem; }
.footer-inner {
  display: grid;
  justify-items: start;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.brand-small { width: 10.5rem; height: 3.5rem; padding: 0; }
.footer-meta {
  display: grid;
  gap: 0.25rem;
  font-size: 0.9375rem;
  color: var(--sage);
}
.back-top {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--emerald-bright);
  text-underline-offset: 0.35em;
}

/* ---------- Desktop and tablet: title in the upper-right empty region ---------- */

@media (min-width: 701px) {
  .site-header .wrap { padding-inline: var(--gutter); }

  .hero-title {
    position: absolute;
    top: 150px;
    top: clamp(130px, 13svh, 170px);
    right: var(--gutter);
    width: max-content;
  }
  .hero-title span { white-space: nowrap; }
}

/* ---------- Mobile: fixed art stage above, text scrolls below it ---------- */

@media (max-width: 700px) {
  html, body {
    height: 100%;
    overflow: hidden;
  }

  .site-header {
    position: fixed;
    padding-top: 1rem;
  }
  .brand { width: 13.125rem; height: 4rem; }

  .monument-stage {
    inset: 5rem 0 auto 0;
    height: calc(41vh - 5rem);
    height: calc(41svh - 5rem);
  }
  .monument-scene {
    left: 66%;
    top: 50%;
    width: 100%;
  }
  .scene-scrim { display: none; }

  main {
    position: fixed;
    inset: 43vh 0 0;
    inset: 43svh 0 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scroll-padding-top: 1rem;
    background: var(--bg);
    border-top: 1px solid var(--rule);
  }
  .js main[tabindex="0"]:focus-visible {
    outline: 3px solid var(--emerald-bright);
    outline-offset: -3px;
  }
  @media (prefers-reduced-motion: no-preference) {
    main { scroll-behavior: smooth; }
  }

  .effects-toggle {
    top: calc(41vh - 3.5rem);
    top: calc(41svh - 3.5rem);
    bottom: auto;
  }

  .hero {
    min-height: 0;
    padding: 1.75rem var(--gutter) 2.5rem;
  }
  .hero-title {
    font-size: clamp(1.75rem, 9.2vw, 2.75rem);
  }
  .hero-copy {
    max-width: none;
    margin-top: 1.25rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    margin-top: 1.5rem;
  }
  .hero-actions .btn { width: 100%; }
  .hero-actions .link-arrow {
    justify-content: center;
    min-height: 3rem;
  }

  .section { padding-block: 2.5rem; }
  .lane {
    width: auto;
    margin-inline: var(--gutter);
  }

  /* Without JS the links wrap beneath the logo; the collapse only applies once .js is set */
  .site-nav { width: 100%; }
  .site-nav ul { gap: 0 1.25rem; }
  .site-nav a { min-height: 2.75rem; }

  .js .menu-toggle { display: inline-flex; align-items: center; }
  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: var(--gutter);
    width: min(16rem, calc(100% - 2 * var(--gutter)));
    margin-top: 0.5rem;
    background: var(--bg-raised);
    border: 1px solid var(--rule);
  }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; gap: 0; }
  .js .site-nav li + li { border-top: 1px solid var(--rule); }
  .js .site-nav a {
    display: flex;
    width: 100%;
    min-height: 3rem;
    padding-inline: 1rem;
    font-size: 1rem;
  }
}

/* ---------- Reduced motion: static art, no effects control ---------- */

@media (prefers-reduced-motion: reduce) {
  html, main { scroll-behavior: auto; }
  .effects-toggle { display: none !important; }
  *, *::before, *::after { transition: none !important; }
}

/* Desktop frame: identity and title stay still while the reading lane scrolls. */
@media (min-width: 701px) {
  html, body { height: 100%; overflow: hidden; }
  .site-header { position: fixed; }
  main {
    position: fixed;
    inset: 8rem 0 6.5rem;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--emerald) transparent;
    scroll-padding-top: 1.5rem;
  }
  .hero {
    min-height: calc(100svh - 14.5rem);
    padding-top: max(3rem, calc(60svh - 8rem));
    padding-bottom: 3rem;
  }
  .hero-title { position: fixed; z-index: 5; }
  .site-footer {
    position: fixed;
    inset: auto calc(var(--gutter) + 10rem) 1.25rem var(--gutter);
    padding: 0;
    z-index: 10;
  }
  .footer-inner {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2vw, 2rem);
    min-height: 2.75rem;
  }
  .brand-small { flex: 0 0 9rem; width: 9rem; height: 2.75rem; }
  .footer-meta { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); font-size: .8125rem; white-space: nowrap; }
  .back-top { margin-left: auto; font-size: .8125rem; white-space: nowrap; }
  .contact { padding-bottom: 4rem; }
}
@media (min-width: 701px) and (max-width: 1100px) {
  .brand-small { flex-basis: 6.5rem; width: 6.5rem; }
  .footer-inner, .footer-meta { gap: .875rem; }
  .footer-meta { font-size: .6875rem; }
  .site-footer .back-top { display: none; }
}

.footer-contact { font-size: .875rem; white-space: nowrap; }
@media (min-width: 701px) and (max-width: 850px) {
  .site-footer .brand-small { flex-basis: 5rem; width: 5rem; }
  .footer-inner, .footer-meta { gap: .5rem; }
  .footer-meta { font-size: .625rem; }
  .footer-contact { font-size: .6875rem; gap: .35rem; }
}

@media (min-width: 701px) {
  main { overflow: visible; pointer-events: none; }
  .hero-title, .site-footer { pointer-events: auto; }
  .reading-window {
    position: fixed;
    left: var(--gutter);
    top: 60svh;
    bottom: 6.5rem;
    width: min(36vw, 30rem);
    overflow-x: hidden;
    overflow-y: auto;
    pointer-events: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--emerald) transparent;
    scroll-behavior: auto;
  }
  .reading-track { padding-bottom: 3rem; display: flow-root; }
  .reading-window .hero { padding: 0 0 2rem; min-height: 0; }
  .reading-window .hero-copy { max-width: none; }
  .reading-window .lane { width: 100%; margin: 0; }
  .reading-window .section { padding-block: 2rem; }
  .reading-window .section h2 { font-size: clamp(1.5rem, 2.3vw, 2rem); }
  .reading-window .contact-link { font-size: clamp(.875rem, 1.55vw, 1.3rem); }
}
@media (max-width: 700px) {
  .reading-window, .reading-track { display: contents; }
  .reading-window:focus { outline: none; }
}

/* ---------- Contact dialog ---------- */

.contact-dialog {
  --cd-bg: var(--bg-raised, #0e1512);
  --cd-ink: var(--ink, #eef4ef);
  --cd-muted: var(--sage, #a9bdb0);
  --cd-rule: var(--rule, rgba(150, 190, 165, .28));
  --cd-line: rgba(160, 196, 174, .55);
  --cd-accent: var(--emerald-bright, #35d08a);
  --cd-error: #ff9d8f;

  box-sizing: border-box;
  width: calc(100% - 2rem);
  max-width: 30rem;
  max-height: 90vh;
  max-height: 90svh;
  margin: auto;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--cd-accent) transparent;
  color: var(--cd-ink);
  background: var(--cd-bg);
  border: 1px solid var(--cd-rule);
  border-top: 2px solid var(--cd-accent);
  border-radius: .25rem;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, .65);
  color-scheme: dark;
  font-family: inherit;
}
.contact-dialog::backdrop { background: rgba(2, 6, 4, .82); }

.contact-form {
  position: relative;
  display: grid;
  gap: 1.25rem;
  padding: 1.5rem;
}
@media (min-width: 701px) {
  .contact-form { padding: 2rem; }
}

.contact-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.contact-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 5vw, 1.875rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--cd-ink);
}
.contact-close {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: -.25rem -.25rem 0 0;
  padding: 0;
  color: var(--cd-ink);
  background: transparent;
  border: 1px solid var(--cd-rule);
  border-radius: .25rem;
  cursor: pointer;
}
.contact-close:hover { border-color: var(--cd-accent); color: var(--cd-accent); }
.contact-close:focus-visible,
.contact-submit:focus-visible {
  outline: 3px solid var(--cd-ink);
  outline-offset: 3px;
}

.contact-field { display: grid; gap: .5rem; }
.contact-field label {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--cd-ink);
}
.contact-input {
  box-sizing: border-box;
  width: 100%;
  min-height: 2.75rem;
  padding: .625rem .75rem;
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--cd-ink);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--cd-line);
  border-radius: .25rem;
}
.contact-input:focus {
  outline: 3px solid var(--cd-accent);
  outline-offset: 2px;
  border-color: var(--cd-accent);
}
.contact-input[aria-invalid="true"] {
  border-color: var(--cd-error);
  box-shadow: inset 0 0 0 1px var(--cd-error);
}
.contact-input[readonly] { opacity: .75; }
.contact-textarea {
  min-height: 7.5rem;
  max-height: 24rem;
  resize: vertical;
}

.contact-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.contact-note,
.contact-count {
  margin: 0;
  font-size: .8125rem;
  line-height: 1.4;
  color: var(--cd-muted);
}
.contact-count {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
}
.contact-count.is-near { color: #f2c879; }

/* Honeypot: off-screen but still rendered (not display:none) */
.contact-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.contact-status {
  margin: 0;
  font-size: .9375rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.contact-status:not(:empty) {
  padding: .75rem 1rem;
  background: rgba(255, 255, 255, .04);
  border-left: 3px solid var(--cd-muted);
}
.contact-status[data-state="error"] { color: var(--cd-error); border-left-color: var(--cd-error); }
.contact-status[data-state="success"] { color: var(--cd-accent); border-left-color: var(--cd-accent); }
.contact-status[data-state="pending"] { color: var(--cd-muted); }

.contact-actions { display: flex; justify-content: flex-end; }
.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .75rem 1.5rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  color: #04100a;
  background: var(--cd-accent);
  border: 2px solid var(--cd-accent);
  border-radius: .25rem;
  cursor: pointer;
}
.contact-submit:hover { filter: brightness(1.1); }
.contact-submit[aria-disabled="true"] {
  opacity: .7;
  cursor: progress;
  filter: none;
}
@media (max-width: 700px) {
  .contact-submit { width: 100%; }
}

@media (forced-colors: active) {
  .contact-dialog { border: 1px solid CanvasText; }
  .contact-input { border-color: CanvasText; }
  .contact-submit { border-color: ButtonText; }
}
.contact-dialog.is-confirmation { width: min(24rem, calc(100vw - 2rem)); }
.contact-confirmation { padding: 2rem; text-align: center; }
.confirmation-check { display: block; width: 2.75rem; height: 2.75rem; margin: 0 auto 1.25rem; fill: none; stroke: var(--emerald-bright); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.contact-confirmation h2 { font-size: 1.75rem; line-height: 1.15; letter-spacing: -.02em; }
.contact-confirmation p { margin-top: .75rem; color: var(--sage); }
.contact-confirmation button { margin-top: 1.75rem; min-width: 7rem; }

.contact-confirmation { position: relative; padding-top: 3.5rem; }
.contact-confirmation .confirmation-close { position: absolute; top: .75rem; right: .75rem; min-width: 0; margin: 0; }

/* Polished fixed composition: headline is outside the masked scrolling lane. */
@media (min-width: 701px) {
  .monument-scene { width: min(92vw, 1200px); }
  .hero-title { position: fixed; z-index: 5; pointer-events: auto; }
  .reading-window {
    top: 56svh;
    padding-block: 1.5rem;
    padding-right: .75rem;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 24px, #000 calc(100% - 24px), transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 24px, #000 calc(100% - 24px), transparent);
  }
  .reading-window .rows { margin-bottom: .5rem; }
  .reading-window .lane { padding-top: .25rem; }
  .footer-contact {
    margin-left: auto;
    min-height: 2.75rem;
    padding-inline: 1.25rem;
    background: var(--emerald);
    color: #fff;
    text-decoration: none;
    font-size: .875rem;
  }
  .footer-contact:hover { background: #007659; }
  .effects-toggle {
    color: var(--sage);
    border-color: transparent;
    background: transparent;
    font-weight: 500;
  }
  .effects-toggle:hover { color: var(--ink); border-color: var(--rule); }
}
@media (min-width: 701px) and (max-width: 850px) {
  .hero-title { font-size: 1.5rem; top: 7.5rem; }
  .footer-contact { padding-inline: .625rem; font-size: .6875rem; }
}
@media (max-width: 700px) {
  main > .hero-title { margin: 1.75rem var(--gutter) 0; }
  .reading-window .hero { padding-top: 0; }
}
