@charset "UTF-8";

:root {
  color-scheme: light;
  --paper: #f4f1ea;
  --vellum: #faf8f3;
  --stone: #e8e4d8;
  --ink: #1f261d;
  --ink-mid: #2e362b;
  --muted: #4d5347;
  --accent: #8b3f2e;
  --forest-accent: #35543d;
  --rule: #c2bfb0;
  --rule-dark: #555c4e;
  --serif: "Baskerville", "Libre Baskerville", "Hoefler Text", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 3.75rem);
  --max-shell: 1420px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border-radius: 0;
  -webkit-tap-highlight-color: transparent;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

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

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

::selection {
  background: #dec2a2;
  color: var(--ink);
}

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

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

.skip-link {
  position: absolute;
  z-index: 200;
  left: 1rem;
  top: -6rem;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--vellum);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

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

/* Concept Strip */
.concept-strip {
  background: var(--ink);
  color: var(--vellum);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.strip-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  padding-block: 0.55rem;
}

.strip-lead {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.strip-marker {
  width: 7px;
  height: 7px;
  background: #d89b79;
  flex: none;
}

.strip-trail {
  color: #cfd3c6;
}

/* Architectural Title-Block Header */
.site-header {
  position: relative;
  z-index: 30;
  padding-top: 1.5rem;
}

.header-frame {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 1.35rem;
  background: var(--vellum);
  border: 1px solid var(--ink);
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.85rem;
  text-decoration: none;
}

.wordmark-name {
  font-size: clamp(1.75rem, 2.3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}

.wordmark-descriptor {
  font-size: 0.75rem;
  letter-spacing: 0.13em;
  color: var(--muted);
  font-weight: 600;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.9375rem;
}

.nav-item {
  text-decoration: none;
  color: var(--ink);
  padding-block: 0.25rem;
}

.nav-item:hover {
  color: var(--accent);
  text-decoration: underline;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 1rem;
  background: var(--ink);
  color: var(--vellum);
  border: 1px solid var(--ink);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 0.2s, border-color 0.2s;
}

.header-cta:hover:not(:disabled) {
  background: var(--accent);
  border-color: var(--accent);
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.65rem;
  background: transparent;
  border: 1px solid var(--ink);
  padding: 0.45rem 0.8rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.menu-bars {
  width: 18px;
  height: 10px;
  border-top: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  position: relative;
}

.menu-bars::after {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 12px;
  height: 1.5px;
  background: currentColor;
}

/* Hero Section — Typographic Statement + Panoramic Orthographic Sheet */
.hero {
  padding-block: clamp(2rem, 3.8vw, 3.25rem) clamp(3rem, 5vw, 4.5rem);
}

.hero-top-band {
  display: grid;
  grid-template-columns: minmax(0, 6.8fr) minmax(0, 5.2fr);
  gap: clamp(2rem, 4vw, 3.75rem);
  align-items: end;
  padding-bottom: clamp(2rem, 3.5vw, 2.85rem);
}

.sheet-tag {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 1.45rem + 2.75vw, 4.25rem);
  line-height: 1.06;
  letter-spacing: -0.024em;
  color: var(--ink);
}

.hero-phrase {
  display: block;
}

.hero-brief {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  padding-left: clamp(1.25rem, 2.5vw, 2.25rem);
  border-left: 1px solid var(--rule);
}

.hero-summary {
  font-size: clamp(1.025rem, 0.96rem + 0.25vw, 1.15rem);
  line-height: 1.65;
  color: var(--ink-mid);
  max-width: 44ch;
}

.hero-cta-row {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.primary-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.95rem 1.25rem;
  background: var(--accent);
  color: var(--vellum);
  border: 1px solid var(--accent);
  font-size: 0.95rem;
  font-weight: 500;
  text-align: left;
  transition: background-color 0.2s, border-color 0.2s;
}

.primary-cta:hover:not(:disabled) {
  background: var(--ink);
  border-color: var(--ink);
}

.cta-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.cta-caption {
  font-size: 0.8125rem;
  color: var(--muted);
}

.load-status {
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 500;
}

.load-status:empty {
  display: none;
}

.brief-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-size: 0.85rem;
  line-height: 1.45;
}

.brief-specs dt {
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.brief-specs dd {
  color: var(--ink);
  font-weight: 500;
}

/* Panoramic Orthographic Sheet Frame */
.hero-sheet {
  background: var(--vellum);
  border: 1px solid var(--ink);
}

.sheet-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding: 0.85rem 1.35rem;
  border-bottom: 1px solid var(--rule);
  background: var(--stone);
  font-size: 0.8125rem;
}

.sheet-bar-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.sheet-code {
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.03em;
}

.sheet-subtitle {
  font-weight: 500;
  color: var(--ink);
}

.sheet-badge {
  color: var(--muted);
  font-weight: 500;
}

.sheet-viewport {
  background: #f7f4ec;
  overflow: hidden;
}

.sheet-viewport img {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 760;
  object-fit: contain;
}

.sheet-footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  padding: 0.9rem 1.35rem;
  border-top: 1px solid var(--rule);
  font-size: 0.8125rem;
  color: var(--muted);
}

.sheet-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
}

.sheet-legend strong {
  color: var(--ink);
}

.sheet-caption-label {
  font-weight: 600;
  color: var(--ink);
}

/* Shared Section Headings */
.section-kicker {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 0.65rem;
}

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.95rem, 1.3rem + 2vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.section-header-bar {
  display: grid;
  grid-template-columns: minmax(0, 6.5fr) minmax(0, 5.5fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: end;
  margin-bottom: 2.25rem;
}

.section-intro {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 52ch;
}

/* Practice Scope Matrix Section */
.services {
  padding-block: clamp(3rem, 5.5vw, 5rem);
  border-top: 1px solid var(--rule);
}

.service-matrix {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
  background: var(--vellum);
}

.service-matrix li {
  padding: 1.35rem 1.5rem;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.65rem;
}

.service-matrix li:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.matrix-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.service-number {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.service-domain {
  font-size: 0.8125rem;
  color: var(--muted);
  font-weight: 500;
}

.service-label {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.65rem);
  line-height: 1.25;
  color: var(--ink);
}

/* Architectural Continuities Section */
.perspective {
  padding-block: clamp(3rem, 5.5vw, 5rem);
  border-top: 1px solid var(--rule);
}

.continuity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.continuity-item {
  background: var(--vellum);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--ink);
  padding: 1.5rem;
}

.continuity-tag {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.continuity-heading {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  color: var(--ink);
}

.continuity-item p:last-child {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted);
}

/* Orthographic & Tectonic Drawing Board Section */
.studies {
  padding-block: clamp(3rem, 5.5vw, 5rem);
  border-top: 1px solid var(--rule);
}

.drawing-board {
  background: var(--stone);
  border: 1px solid var(--ink);
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
}

.board-header {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: 2rem;
  align-items: end;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--rule-dark);
}

.board-disclaimer {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-mid);
}

.board-controls {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 1rem;
  margin-block: 1.5rem;
}

.study-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(190px, 1fr));
  gap: 0.75rem;
  flex: 1 1 42rem;
}

.study-tab {
  background: var(--paper);
  border: 1px solid var(--rule-dark);
  padding: 0.9rem 1.1rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  transition: background-color 0.2s, border-color 0.2s;
}

.study-tab:hover {
  background: var(--vellum);
}

.study-tab[aria-selected="true"] {
  background: var(--ink);
  color: var(--vellum);
  border-color: var(--ink);
}

.tab-num {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.study-tab[aria-selected="true"] .tab-num {
  color: #e0a483;
}

.tab-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.2;
}

.tab-desc {
  font-size: 0.8125rem;
  color: var(--muted);
}

.study-tab[aria-selected="true"] .tab-desc {
  color: #cfd3c6;
}

.board-tools {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.sheet-counter {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.scale-button {
  background: var(--vellum);
  border: 1px solid var(--ink);
  padding: 0.55rem 0.95rem;
  font-size: 0.8125rem;
  font-weight: 600;
}

.scale-button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--vellum);
  border-color: var(--accent);
}

.board-canvas {
  background: #f7f4ec;
  border: 1px solid var(--ink);
  overflow: auto;
}

.board-canvas img {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 760;
  object-fit: contain;
  transition: transform 0.25s ease;
  transform-origin: center center;
}

.board-canvas.is-zoomed img {
  transform: scale(1.25);
}

.board-figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding-block: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--rule-dark);
  font-size: 0.85rem;
}

.fig-primary {
  font-weight: 600;
  color: var(--ink);
}

.fig-secondary {
  color: var(--muted);
}

.board-specs {
  padding-top: 1.35rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.spec-heading {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.spec-text {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink-mid);
}

/* Invitation Section */
.invitation {
  padding-block: clamp(3rem, 5.5vw, 5rem);
}

.invitation-frame {
  background: var(--ink);
  color: var(--vellum);
  padding: clamp(2rem, 4.5vw, 3.5rem);
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}

.invitation-frame .section-kicker {
  color: #e0a483;
}

.invitation-frame .section-title {
  color: var(--vellum);
}

.invitation-copy {
  margin-top: 0.85rem;
  font-size: 1.025rem;
  line-height: 1.65;
  color: #d5d8cc;
  max-width: 50ch;
}

.invitation-cta-col {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.solid-cta {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  padding: 1.05rem 1.35rem;
  background: var(--accent);
  color: var(--vellum);
  border: 1px solid #e0a483;
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  transition: background-color 0.2s, color 0.2s;
}

.solid-cta:hover:not(:disabled) {
  background: var(--vellum);
  color: var(--ink);
}

.invitation-micro {
  font-size: 0.8125rem;
  color: #cfd3c6;
}

/* Footer */
.site-footer {
  background: var(--stone);
  border-top: 1px solid var(--ink);
  padding-block: 3rem 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) auto;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule-dark);
}

.footer-name {
  display: block;
  font-size: 2.35rem;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}

.footer-descriptor {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 600;
}

.footer-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.45rem;
}

.contact-item {
  font-size: 0.9375rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.contact-site {
  font-size: 0.85rem;
  color: var(--muted);
}

.back-top {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  background: var(--vellum);
  border: 1px solid var(--ink);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
}

.back-top:hover {
  background: var(--ink);
  color: var(--vellum);
}

.footer-legal {
  padding-top: 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 1.25rem 2.5rem;
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--muted);
}

.footer-meta {
  text-align: right;
}

/* Dialog */
.inquiry-dialog {
  color: var(--ink);
  background: var(--vellum);
  border: 1.5px solid var(--ink);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  width: min(36rem, calc(100% - 1.5rem));
  max-height: 92svh;
  overflow: auto;
}

.inquiry-dialog::backdrop {
  background: rgba(24, 30, 22, 0.76);
  backdrop-filter: blur(3px);
}

.dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.dialog-top .section-kicker {
  margin-bottom: 0;
}

.dialog-close {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: transparent;
  border: 1px solid var(--ink);
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
}

.dialog-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.85rem, 3.5vw, 2.45rem);
  line-height: 1.1;
  margin-top: 0.85rem;
}

.dialog-intro {
  margin-block: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted);
}

.form-row {
  margin-top: 1.15rem;
}

.form-row label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.req {
  color: var(--accent);
}

.opt {
  font-weight: 400;
  color: var(--muted);
}

.form-row input,
.form-row select,
.form-row textarea {
  display: block;
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--rule-dark);
  border-radius: 0;
  padding: 0.7rem 0.85rem;
  font-size: 1rem;
  color: var(--ink);
}

.form-row input,
.form-row select {
  min-height: 2.875rem;
}

.form-row input[aria-invalid="true"],
.form-row select[aria-invalid="true"] {
  border-color: var(--accent);
  background: #fff9f7;
}

.field-error {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: var(--accent);
  font-weight: 500;
}

.field-error:empty {
  display: none;
}

.form-submit-row {
  margin-top: 1.5rem;
}

.preview-button {
  border-color: var(--accent);
}

.preview-button:hover {
  background: var(--ink);
  color: var(--vellum);
}

.form-note {
  margin-top: 0.6rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.preview-result {
  margin-top: 1.25rem;
  padding: 1.15rem;
  background: #e3e8dc;
  border-left: 3px solid var(--ink);
  font-size: 0.9375rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.preview-result strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.preview-result p + p {
  margin-top: 0.45rem;
}

.preview-result[hidden] {
  display: none;
}

.noscript-note {
  padding: 1.25rem;
  background: var(--vellum);
  color: var(--accent);
}

body:has(dialog[open]) {
  overflow: hidden;
}

/* Responsive breakpoints; actual browser coverage is recorded separately. */
@media (max-width: 1080px) {
  .hero-top-band {
    grid-template-columns: minmax(0, 6.2fr) minmax(0, 5.8fr);
  }

  .hero-title {
    font-size: clamp(2.15rem, 1.3rem + 2.5vw, 3.6rem);
  }

  .continuity-grid,
  .board-specs {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .hero-top-band,
  .section-header-bar,
  .board-header,
  .invitation-frame {
    grid-template-columns: 1fr;
  }

  .hero-brief {
    padding-left: 0;
    border-left: 0;
    padding-top: 1.25rem;
    border-top: 1px solid var(--rule);
  }

  .study-tabs {
    grid-template-columns: 1fr;
  }

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

  .footer-meta {
    text-align: left;
  }
}

@media (max-width: 760px) {
  .strip-trail {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.35rem);
    left: var(--gutter);
    right: var(--gutter);
    background: var(--ink);
    color: var(--vellum);
    padding: 1rem 1.25rem 1.25rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    box-shadow: 0 14px 28px rgba(24, 30, 22, 0.22);
  }

  .main-nav.is-open {
    display: flex;
  }

  .nav-item {
    color: var(--vellum);
    padding-block: 0.85rem;
    border-bottom: 1px solid #495243;
  }

  .nav-item:hover {
    color: #e0a483;
  }

  .header-cta {
    margin-top: 0.85rem;
    background: var(--accent);
    border-color: #e0a483;
    justify-content: space-between;
    padding: 0.75rem 1rem;
  }

  .service-matrix {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 480px) {
  .wordmark {
    flex-direction: column;
    gap: 0.15rem;
  }

  .header-frame {
    padding: 0.85rem 1rem;
  }

  .hero-title {
    font-size: clamp(1.85rem, 1.1rem + 4.4vw, 2.55rem);
  }

  .brief-specs {
    grid-template-columns: 1fr;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Main QA: readable two-dimensional sheet and keyboard panning. */
.board-canvas.is-zoomed img { width: max(100%, 75rem); max-width: none; transform: none; margin-inline: 0; }
.board-canvas:focus-visible { outline: 3px solid #8b3f2e; outline-offset: 4px; }

/* r4: navigation-only collapse follows the existing JS wide-query threshold. */
@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.35rem);
    left: var(--gutter);
    right: var(--gutter);
    background: var(--ink);
    color: var(--vellum);
    padding: 1rem 1.25rem 1.25rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    box-shadow: 0 14px 28px rgba(24, 30, 22, 0.22);
  }

  .main-nav.is-open {
    display: flex;
  }

  .nav-item {
    color: var(--vellum);
    padding-block: 0.85rem;
    border-bottom: 1px solid #495243;
  }

  .nav-item:hover {
    color: #e0a483;
  }

  .header-cta {
    margin-top: 0.85rem;
    background: var(--accent);
    border-color: #e0a483;
    justify-content: space-between;
    padding: 0.75rem 1rem;
  }
}
