/*
Theme Name: Quarta
Theme URI: https://quartastone.com/
Author: Quarta
Author URI: https://quartastone.com/
Description: Bespoke classic theme for Quarta, premium surface aggregates. Ports the approved static design exactly: Material Wall, mono spec typography, gold eyebrow rules, navy stat strips. No plugin dependencies, no external requests.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: quarta
Tags: business, custom-logo, custom-menu, one-column, full-width-template
*/

/* ==========================================================================
   1. Tokens — single :root block (maps 1:1 to theme.json if ever needed)
   ========================================================================== */

:root {
  --qta-gold: #B08B4F;
  --qta-gold-light: #D6C09A;
  --qta-gold-deep: #8A6B34;
  --qta-gold-deeper: #7E5F2B;
  --qta-navy: #0F2340;
  --qta-ink: #1A1A1A;
  --qta-slate: #5A5A5A;
  --qta-bone: #F7F5F0;
  --qta-stone: #EAE7E0;
  --qta-white: #FFFFFF;
  --qta-hairline: rgba(214, 192, 154, 0.28);
  --qta-hairline-dark: rgba(90, 90, 90, 0.18);

  --qta-font-display: "Poppins", system-ui, sans-serif;
  --qta-font-body: "Inter", system-ui, sans-serif;
  --qta-font-data: "IBM Plex Mono", ui-monospace, monospace;
  --qta-font-mark: "Cormorant Garamond", Georgia, serif;

  --qta-h1: clamp(2.25rem, 4.6vw, 3.9rem);
  --qta-h2: clamp(1.875rem, 3.6vw, 3rem);
  --qta-h3: clamp(1.25rem, 2vw, 1.625rem);
  --qta-body: clamp(1rem, 1.05vw, 1.125rem);
  --qta-small: 0.8125rem;

  --qta-space: 8px;
  --qta-section-y: clamp(4rem, 9vw, 9rem);
  --qta-gutter: clamp(1.25rem, 5vw, 5rem);
  --qta-maxw: 1320px;
  --qta-radius: 2px;

  --qta-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --qta-wall-t: 520ms;
  --qta-lift-t: 320ms;
  --qta-header-h: 64px;
}

@media (min-width: 1080px) {
  :root { --qta-header-h: 74px; }
}

@media (prefers-reduced-motion: reduce) {
  :root { --qta-wall-t: 1ms; --qta-lift-t: 1ms; }
}

/* ==========================================================================
   2. Base
   ========================================================================== */

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

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

body {
  margin: 0;
  background: var(--qta-bone);
  color: var(--qta-ink);
  font-family: var(--qta-font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

.qta-page a { color: var(--qta-gold-deeper); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.qta-page a:hover { color: var(--qta-gold); }

:focus-visible { outline: 2px solid var(--qta-gold); outline-offset: 2px; }

.qta-page img { max-width: 100%; }
.qta-page sub { font-size: 0.72em; }

.qta-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--qta-navy);
  color: var(--qta-bone);
  padding: 14px 20px;
  font-size: 0.875rem;
  text-decoration: none;
}
.qta-skip:focus { left: 0; }

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

@keyframes qta-wipe { from { transform: translateY(101%); } to { transform: translateY(0); } }
@keyframes qta-fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  @keyframes qta-wipe { from { transform: none; } to { transform: none; } }
  @keyframes qta-fade { from { opacity: 1; transform: none; } to { opacity: 1; transform: none; } }
}

/* ==========================================================================
   3. Type scale
   ========================================================================== */

.qta-eyebrow {
  display: block;
  font-family: var(--qta-font-mark);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--qta-gold-deeper);
  margin: 0;
}
.qta-eyebrow--dark { color: var(--qta-gold-light); }

.qta-rule {
  display: block;
  width: 48px;
  height: 1px;
  background: var(--qta-gold);
  margin: 14px 0 0;
  border: 0;
}

.qta-sechead { display: flex; flex-direction: column; align-items: flex-start; }

.qta-h1 {
  margin: 20px 0 0;
  font-family: var(--qta-font-display);
  font-weight: 700;
  font-size: var(--qta-h1);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--qta-ink);
  text-wrap: balance;
}

.qta-h2 {
  margin: 22px 0 0;
  font-family: var(--qta-font-display);
  font-weight: 700;
  font-size: var(--qta-h2);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--qta-ink);
  text-wrap: balance;
}

.qta-h2--plain { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: 1.1; }
.qta-h2--row { font-size: clamp(1.75rem, 3vw, 2.5rem); margin: 0; }

.qta-h3 {
  margin: 0;
  font-family: var(--qta-font-display);
  font-weight: 700;
  font-size: var(--qta-h3);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--qta-ink);
}

.qta-caps {
  margin: 0;
  font-family: var(--qta-font-display);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--qta-ink);
}
.qta-caps--sm { font-size: 0.8125rem; }

.qta-body {
  margin: 0;
  font-family: var(--qta-font-body);
  font-weight: 400;
  font-size: var(--qta-body);
  line-height: 1.65;
  color: var(--qta-slate);
  max-width: 68ch;
  text-wrap: pretty;
}
.qta-body--tight { max-width: 60ch; }
.qta-body--sm { font-size: 0.9375rem; line-height: 1.6; }
.qta-body--ink { color: var(--qta-ink); }

.qta-lead {
  margin: 0;
  font-family: var(--qta-font-body);
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  line-height: 1.6;
  color: var(--qta-ink);
  max-width: 68ch;
  text-wrap: pretty;
}

.qta-deck {
  margin: 16px 0 0;
  font-family: var(--qta-font-mark);
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  line-height: 1.3;
  color: var(--qta-gold-deep);
}

.qta-mark-line {
  margin: 0;
  font-family: var(--qta-font-mark);
  font-weight: 400;
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  line-height: 1.22;
  color: var(--qta-ink);
  text-wrap: pretty;
}

.qta-mono { font-family: var(--qta-font-data); }
.qta-note { margin: 16px 0 0; font-size: var(--qta-small); line-height: 1.6; color: var(--qta-slate); }

/* ==========================================================================
   4. Layout primitives
   ========================================================================== */

.qta-shell { max-width: var(--qta-maxw); margin: 0 auto; }
.qta-shell--narrow { max-width: 960px; margin: 0; }
.qta-shell--prose { max-width: 760px; margin: 0 auto; }

.qta-section { padding: var(--qta-section-y) var(--qta-gutter); background: var(--qta-bone); }
.qta-section--stone { background: var(--qta-stone); }
.qta-section--navy { background: var(--qta-navy); padding: clamp(3rem, 5vw, 4.5rem) var(--qta-gutter); }
.qta-section--tight { padding-top: clamp(2rem, 4vw, 4rem); padding-bottom: clamp(2rem, 4vw, 4rem); }
.qta-section--tight-top { padding-top: clamp(2rem, 4vw, 4rem); }
.qta-section--tight-bottom { padding-bottom: clamp(2rem, 3vw, 3rem); }
.qta-section--mid { padding: clamp(3.5rem, 6vw, 6rem) var(--qta-gutter); }
.qta-section--below-header { padding-top: calc(var(--qta-section-y) + var(--qta-header-h)); }
.qta-section--anchor { scroll-margin-top: 130px; }

.qta-cols-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(430px, 100%), 1fr));
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.qta-cols-2--mid { grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr)); }
.qta-cols-2--wide { gap: clamp(2.5rem, 5vw, 6rem); }
.qta-cols-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: clamp(2rem, 3vw, 3.5rem); }
.qta-cols-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: clamp(16px, 2vw, 28px); }

.qta-stack { display: flex; flex-direction: column; }
.qta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* ==========================================================================
   5. Buttons and links
   ========================================================================== */

.qta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 15px 28px;
  font-family: var(--qta-font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid var(--qta-gold);
  border-radius: var(--qta-radius);
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.qta-btn--solid { background: var(--qta-gold); color: var(--qta-white); }
.qta-btn--solid:hover { background: var(--qta-gold-deep); border-color: var(--qta-gold-deep); color: var(--qta-white); }
.qta-btn--solid:active { background: var(--qta-gold-deeper); border-color: var(--qta-gold-deeper); }
.qta-btn--ghost { background: transparent; color: var(--qta-gold-deeper); }
.qta-btn--ghost:hover { background: var(--qta-gold); color: var(--qta-white); }
.qta-btn--ghost:active { background: var(--qta-gold-deep); color: var(--qta-white); }
.qta-btn--onnavy { background: var(--qta-gold); color: var(--qta-white); }
.qta-btn--onnavy:hover { background: var(--qta-gold-light); border-color: var(--qta-gold-light); color: var(--qta-navy); }
.qta-btn--block { width: 100%; }

.qta-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-family: var(--qta-font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--qta-gold-deeper);
  text-decoration: none;
}
.qta-arrow--sm { font-size: var(--qta-small); letter-spacing: 0.04em; margin-top: 12px; }
.qta-arrow svg { flex-shrink: 0; }
.qta-arrow:hover { color: var(--qta-gold-deep); }

/* ==========================================================================
   6. Header
   ========================================================================== */

.qta-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  font-family: var(--qta-font-body);
  padding-top: env(safe-area-inset-top, 0px);
}

.qta-header__scrim {
  position: absolute;
  inset: 0;
  background: var(--qta-bone);
  border-bottom: 1px solid var(--qta-gold-light);
  opacity: 0;
  transition: opacity 320ms ease;
}
.qta-header.is-solid .qta-header__scrim { opacity: 1; }

.qta-header__bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: var(--qta-maxw);
  margin: 0 auto;
  min-height: var(--qta-header-h);
  padding: 10px var(--qta-gutter);
  padding-left: max(var(--qta-gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--qta-gutter), env(safe-area-inset-right, 0px));
}

.qta-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; min-height: 44px; }
.qta-logo svg { display: block; flex-shrink: 0; width: 26px; height: 26px; }
.qta-logo__text { display: flex; flex-direction: column; gap: 3px; }
.qta-logo__name {
  font-family: var(--qta-font-mark);
  font-weight: 500;
  font-size: 1.125rem;
  letter-spacing: 0.22em;
  line-height: 1;
  color: var(--qta-ink);
}
.qta-logo__tag {
  font-family: var(--qta-font-mark);
  font-weight: 400;
  font-size: 0.5rem;
  letter-spacing: 0.3em;
  line-height: 1;
  color: var(--qta-gold-deep);
  white-space: nowrap;
}

.qta-header__right { display: flex; align-items: center; gap: 10px; }

.qta-nav { display: none; align-items: center; gap: 2px; }
.qta-nav__item { position: relative; }
.qta-nav__link {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 12px 12px;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  color: var(--qta-ink);
  transition: color 200ms ease;
}
.qta-nav__link:hover { color: var(--qta-gold-deeper); }
.qta-nav__link.is-current { color: var(--qta-gold-deeper); }

.qta-mega {
  position: absolute;
  top: 100%;
  left: -24px;
  padding-top: 14px;
  display: none;
}
.qta-nav__item:hover .qta-mega,
.qta-nav__item:focus-within .qta-mega { display: block; }
.qta-mega__inner {
  display: grid;
  grid-template-columns: repeat(4, 190px);
  gap: 20px;
  background: var(--qta-bone);
  border: 1px solid var(--qta-gold-light);
  padding: 24px;
  animation: qta-fade 220ms var(--qta-ease) both;
}
.qta-mega__link { text-decoration: none; display: block; }
.qta-mega__link img { width: 100%; height: 127px; object-fit: cover; display: block; }
.qta-mega__name { display: block; margin-top: 12px; font-size: 0.875rem; font-weight: 500; color: var(--qta-ink); }
.qta-mega__size { display: block; margin-top: 4px; font-family: var(--qta-font-data); font-size: 0.6875rem; color: var(--qta-gold-deep); }

.qta-quote-sm {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  background: var(--qta-gold);
  color: var(--qta-white);
  padding: 11px 16px;
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid var(--qta-gold);
  border-radius: var(--qta-radius);
  transition: background 200ms ease;
}
.qta-quote-sm:hover { background: var(--qta-gold-deep); border-color: var(--qta-gold-deep); color: var(--qta-white); }
.qta-quote-sm:active { background: var(--qta-gold-deeper); }

.qta-burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  background: none;
  border: 1px solid var(--qta-gold-light);
  border-radius: var(--qta-radius);
  cursor: pointer;
}
.qta-burger span { display: block; width: 20px; height: 1px; background: var(--qta-ink); }
.qta-burger:active { background: var(--qta-stone); }

@media (min-width: 1080px) {
  .qta-nav { display: flex; }
  .qta-burger { display: none; }
  .qta-logo svg { width: 30px; height: 30px; }
  .qta-logo__name { font-size: 1.375rem; }
  .qta-quote-sm { padding: 13px 22px; font-size: 0.875rem; margin-left: 12px; }
}

/* ==========================================================================
   7. Mobile drawer
   ========================================================================== */

.qta-drawer {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--qta-bone);
  display: none;
  flex-direction: column;
  padding: 10px var(--qta-gutter) 48px;
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(48px + env(safe-area-inset-bottom, 0px));
  font-family: var(--qta-font-body);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.qta-drawer.is-open { display: flex; }
body.qta-locked { overflow: hidden; }

.qta-drawer__top { display: flex; align-items: center; justify-content: space-between; min-height: var(--qta-header-h); margin-bottom: 40px; }
.qta-drawer__close {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: none;
  border: 1px solid var(--qta-gold-light);
  border-radius: var(--qta-radius);
  cursor: pointer;
}
.qta-drawer__nav { display: flex; flex-direction: column; gap: 4px; }
.qta-drawer__link {
  display: flex;
  align-items: center;
  min-height: 56px;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--qta-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--qta-stone);
  animation: qta-fade 340ms var(--qta-ease) both;
}
.qta-drawer__link:active { color: var(--qta-gold-deeper); }
.qta-drawer__sub {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding-left: 18px;
  font-size: 18px;
  font-weight: 400;
  color: var(--qta-slate);
  text-decoration: none;
}
.qta-drawer__sub:active { color: var(--qta-gold-deeper); }

.qta-acc { border-bottom: 1px solid var(--qta-stone); }
.qta-acc__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 56px;
  padding: 0;
  background: none;
  border: 0;
  font-family: var(--qta-font-body);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--qta-ink);
  text-align: left;
  cursor: pointer;
}
.qta-acc__chev { transition: transform 240ms var(--qta-ease); flex-shrink: 0; }
.qta-acc__btn[aria-expanded="true"] .qta-acc__chev { transform: rotate(180deg); }
.qta-acc__panel { display: none; padding-bottom: 8px; }
.qta-acc__panel.is-open { display: flex; flex-direction: column; }

.qta-drawer__cta { margin-top: 28px; }

/* ==========================================================================
   8. Material Wall
   ========================================================================== */

.qta-wall {
  position: relative;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  background: var(--qta-navy);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  height: 62vh;
  height: 62dvh;
  min-height: 420px;
}
.qta-wall::-webkit-scrollbar { display: none; }
.qta-wall--tall { height: 72vh; height: 72dvh; min-height: 460px; }

.qta-wall__panel {
  position: relative;
  display: block;
  flex: 0 0 78vw;
  scroll-snap-align: center;
  overflow: hidden;
  text-decoration: none;
  transition: flex-grow var(--qta-wall-t) var(--qta-ease);
}
.qta-wall__panel img,
.qta-wall__panel picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.qta-wall__panel picture img { position: absolute; }
.qta-wall__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 35, 64, 0.72), rgba(15, 35, 64, 0.06) 46%);
}
.qta-wall--header .qta-wall__scrim { background: linear-gradient(to top, rgba(15, 35, 64, 0.7), rgba(15, 35, 64, 0.1) 50%); }

.qta-wall__foot {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(18px, 2.2vw, 34px);
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}
.qta-wall__name {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--qta-font-mark);
  font-weight: 500;
  font-size: clamp(15px, 1.1vw, 19px);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--qta-bone);
  white-space: nowrap;
}
.qta-wall__cap {
  flex: 1;
  min-width: 0;
  opacity: 1;
  transition: opacity 300ms ease;
}
.qta-wall__cap p {
  margin: 0;
  font-family: var(--qta-font-body);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--qta-bone);
  max-width: 34ch;
  text-wrap: pretty;
}
.qta-wall__cap .qta-arrow--sm { color: var(--qta-gold-light); }

.qta-wall__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 8px 0 0;
  background: var(--qta-bone);
}
.qta-wall__dot {
  display: flex;
  align-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.qta-wall__dot i {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--qta-gold-light);
  transition: background 200ms ease;
}
.qta-wall__dot.is-active i { background: var(--qta-gold-deep); }

.qta-hero__copy {
  background: var(--qta-bone);
  padding: clamp(1.75rem, 5vw, 2.5rem) var(--qta-gutter) clamp(2.5rem, 6vw, 3rem);
}
.qta-hero__copy .qta-h1 { font-size: clamp(2rem, 8vw, 2.5rem); }

@media (min-width: 861px) {
  .qta-wall { height: 100vh; height: 100svh; min-height: 620px; }
  .qta-wall--header { height: 70vh; height: 70svh; min-height: 460px; }
  .qta-wall__panel { flex: 1 1 0; min-width: 0; }
  .qta-wall__panel:hover, .qta-wall__panel:focus-visible { flex-grow: 2.6; }
  .qta-wall--header .qta-wall__panel:hover,
  .qta-wall--header .qta-wall__panel:focus-visible { flex-grow: 2; }
  .qta-wall__cap { opacity: 0; }
  .qta-wall__panel:hover .qta-wall__cap,
  .qta-wall__panel:focus-visible .qta-wall__cap { opacity: 1; }
  .qta-wall--header .qta-wall__cap { display: none; }
  .qta-wall__foot { padding: 32px clamp(20px, 2.2vw, 34px); }
  .qta-wall__dots { display: none; }

  .qta-hero { position: relative; }
  .qta-hero__copy {
    position: absolute;
    left: var(--qta-gutter);
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    max-width: min(660px, calc(100vw - 2.5rem));
    background: rgba(247, 245, 240, 0.95);
    padding: clamp(2rem, 3.6vw, 3.5rem);
    animation: qta-fade 700ms var(--qta-ease) 620ms both;
  }
  .qta-hero__copy .qta-h1 { font-size: var(--qta-h1); }
  .qta-wall--header + .qta-hero__copy,
  .qta-hero__copy--bottom { top: auto; bottom: 0; transform: none; max-width: min(620px, calc(100vw - 2.5rem)); padding: clamp(1.75rem, 3vw, 3rem); }
}

/* ==========================================================================
   9. Page headers (interior)
   ========================================================================== */

.qta-phead {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--qta-navy);
  height: 56vh;
  height: 56dvh;
  min-height: 380px;
}
.qta-phead--tall { height: 68vh; height: 68dvh; min-height: 440px; }
.qta-phead > picture, .qta-phead > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.qta-phead picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.qta-phead__shell { position: relative; width: 100%; max-width: var(--qta-maxw); margin: 0 auto; padding: 0 var(--qta-gutter); }
.qta-phead__copy {
  background: rgba(247, 245, 240, 0.95);
  padding: clamp(1.5rem, 3vw, 3rem);
  max-width: min(660px, 100%);
}

@media (min-width: 861px) {
  .qta-phead { height: 62vh; height: 62dvh; min-height: 440px; }
  .qta-phead--tall { height: 74vh; height: 74dvh; min-height: 520px; }
}

/* ==========================================================================
   10. Stat strip
   ========================================================================== */

.qta-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: var(--qta-maxw);
  margin: 0 auto;
}
.qta-stat { padding: 20px clamp(14px, 2vw, 32px); border-left: 1px solid var(--qta-hairline); }
.qta-stat:nth-child(2n) { border-right: 1px solid var(--qta-hairline); }
.qta-stat svg { display: block; width: 26px; height: 26px; }
.qta-stat__fig {
  margin: 16px 0 0;
  font-family: var(--qta-font-data);
  font-weight: 500;
  font-size: clamp(1.375rem, 6vw, 2.5rem);
  line-height: 1;
  color: var(--qta-bone);
}
.qta-stat__label {
  margin: 10px 0 0;
  font-family: var(--qta-font-body);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--qta-gold-light);
  line-height: 1.5;
}

@media (min-width: 861px) {
  .qta-stats { grid-template-columns: repeat(5, 1fr); }
  .qta-stat { padding: 22px clamp(16px, 2vw, 32px); }
  .qta-stat:nth-child(2n) { border-right: 0; }
  .qta-stat:last-child { border-right: 1px solid var(--qta-hairline); }
  .qta-stat svg { width: 30px; height: 30px; }
  .qta-stat__fig { font-size: clamp(1.75rem, 3vw, 2.5rem); }
  .qta-stat__label { font-size: 0.75rem; margin-top: 12px; }
}

/* ==========================================================================
   11. Icon rows, steps, lists
   ========================================================================== */

.qta-iconrow { display: flex; gap: 20px; padding: 24px 0; border-top: 1px solid var(--qta-stone); }
.qta-iconrow:last-child { border-bottom: 1px solid var(--qta-stone); }
.qta-iconrow svg { flex-shrink: 0; width: 34px; height: 34px; }

.qta-steps {
  list-style: none;
  margin: clamp(2.5rem, 4vw, 4rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 1px;
  background: var(--qta-stone);
  border-top: 1px solid var(--qta-gold);
}
.qta-steps li { background: var(--qta-bone); padding: clamp(22px, 2.4vw, 32px); }
.qta-steps--plain { background: none; gap: 0 28px; border-top: 0; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); }
.qta-steps--plain li { background: none; padding: 20px 0; border-top: 1px solid var(--qta-stone); }
.qta-step__num { font-family: var(--qta-font-data); font-size: var(--qta-small); color: var(--qta-gold-deeper); }

.qta-valuegrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 1px;
  background: var(--qta-stone);
  border: 1px solid var(--qta-stone);
}
.qta-valuegrid > div { background: var(--qta-bone); padding: clamp(22px, 2.4vw, 34px); }
.qta-valuegrid svg { display: block; width: 32px; height: 32px; }

.qta-list { margin: 32px 0 0; padding: 0; list-style: none; }
.qta-list li {
  font-family: var(--qta-font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--qta-ink);
  padding: 14px 0;
  border-top: 1px solid var(--qta-hairline-dark);
}
.qta-list li:last-child { border-bottom: 1px solid var(--qta-hairline-dark); }
.qta-list--split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 0 28px;
  margin-top: 26px;
}
.qta-list--split li { font-size: 0.9375rem; padding: 12px 0; border-top: 1px solid var(--qta-stone); }
.qta-list--split li:last-child { border-bottom: 0; }

.qta-proof { padding: 24px 0; border-top: 1px solid var(--qta-stone); display: flex; gap: 18px; align-items: baseline; }
.qta-proof:last-of-type { border-bottom: 1px solid var(--qta-stone); }
.qta-proof__idx { font-family: var(--qta-font-data); font-size: var(--qta-small); color: var(--qta-gold-deeper); flex-shrink: 0; }
.qta-proof p { margin: 0; font-size: 1.0625rem; line-height: 1.6; color: var(--qta-ink); text-wrap: pretty; }

.qta-applications {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--qta-stone);
}
.qta-applications span { font-family: var(--qta-font-data); font-size: var(--qta-small); letter-spacing: 0.02em; color: var(--qta-slate); }
.qta-applications i { width: 3px; height: 3px; background: var(--qta-gold); }

/* ==========================================================================
   12. Cards and alternating rows
   ========================================================================== */

.qta-card { display: block; text-decoration: none; background: var(--qta-bone); transition: transform var(--qta-lift-t) var(--qta-ease); }
.qta-card:hover { transform: translateY(-6px); }
.qta-card img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.qta-card__body { padding: 22px; }
.qta-card__body h3 { margin: 0; font-family: var(--qta-font-display); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em; color: var(--qta-ink); }
.qta-card__body p { margin: 10px 0 0; font-size: 0.9375rem; line-height: 1.6; color: var(--qta-slate); text-wrap: pretty; }

.qta-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
  max-width: var(--qta-maxw);
  margin: 0 auto;
}
.qta-row img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.qta-row__meta {
  margin: 26px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--qta-stone);
  font-family: var(--qta-font-data);
  font-size: var(--qta-small);
  line-height: 1.9;
  color: var(--qta-gold-deeper);
}
/* image always first in source; flip only on wide screens */
@media (min-width: 861px) {
  .qta-row--flip img { order: 2; }
  .qta-row--flip > div { order: 1; }
}

.qta-imgpair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(12px, 1.5vw, 20px);
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
}
.qta-imgpair img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

/* Author-set fixed sizes from the approved design. Below 901px they release to
   full width so they can never overflow a narrow viewport. Held in classes
   rather than inline style attributes so no !important is needed anywhere. */
.qta-img--fixed { display: block; width: 100%; height: auto; max-width: 100%; object-fit: cover; }

@media (min-width: 901px) {
  .qta-img--quarry-portrait { width: 519px; height: 581px; aspect-ratio: 3 / 4; }
  .qta-img--sorting-line    { width: 548px; height: 289px; aspect-ratio: 16 / 10; }
  .qta-img--quarry-benches  { width: 425px; height: 463px; aspect-ratio: 16 / 10; }
  .qta-img--crushing-plant  { width: 796px; height: 683px; aspect-ratio: 4 / 3; }
  .qta-img--container       { width: 374px; height: 814px; aspect-ratio: 16 / 10; }
}

.qta-fullbleed { display: block; width: 100%; height: clamp(260px, 40vw, 560px); object-fit: cover; }

/* ==========================================================================
   13. Tables
   ========================================================================== */

.qta-table-scroll {
  position: relative;
  overflow-x: auto;
  background: var(--qta-white);
  border: 1px solid var(--qta-gold-light);
  -webkit-overflow-scrolling: touch;
}
.qta-table-wrap { position: relative; }
.qta-table-wrap::after {
  content: "";
  position: absolute;
  top: 1px; right: 1px; bottom: 1px;
  width: 44px;
  pointer-events: none;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.96));
  opacity: 1;
  transition: opacity 200ms ease;
}
.qta-table-wrap.is-end::after { opacity: 0; }
.qta-table-wrap--stone .qta-table-scroll { background: var(--qta-bone); }
.qta-table-wrap--stone::after { background: linear-gradient(to right, rgba(247, 245, 240, 0), rgba(247, 245, 240, 0.96)); }

.qta-table { width: 100%; min-width: 520px; border-collapse: collapse; font-family: var(--qta-font-body); font-size: 0.9375rem; }
.qta-table thead tr { background: var(--qta-navy); }
.qta-table th {
  text-align: left;
  padding: 15px 18px;
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--qta-bone);
  white-space: nowrap;
}
.qta-table th.qta-num, .qta-table td.qta-num { text-align: right; }
.qta-table td { padding: 13px 18px; color: var(--qta-ink); }
.qta-table td.qta-mono, .qta-table td .qta-mono { font-family: var(--qta-font-data); }
.qta-table td.qta-dim { color: var(--qta-slate); font-family: var(--qta-font-data); }
.qta-table tbody tr:nth-child(odd) { background: var(--qta-white); }
.qta-table tbody tr:nth-child(even) { background: var(--qta-bone); }
.qta-table--mono { font-family: var(--qta-font-data); min-width: 400px; }
.qta-table--mono th { font-family: var(--qta-font-body); padding: 15px 22px; }
.qta-table--mono td { padding: 13px 22px; }

.qta-fractions { margin: 0; font-family: var(--qta-font-data); font-size: 0.875rem; line-height: 2.15; color: var(--qta-ink); }

/* ==========================================================================
   14. Glass spectrum
   ========================================================================== */

.qta-spectrum {
  display: flex;
  gap: clamp(4px, 0.6vw, 10px);
  margin-top: clamp(2rem, 3vw, 3rem);
  align-items: flex-end;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.qta-swatch { flex: 0 0 27vw; min-width: 96px; scroll-snap-align: start; }
.qta-swatch img {
  display: block;
  width: 100%;
  height: clamp(200px, 44vw, 420px);
  object-fit: cover;
  transition: transform var(--qta-lift-t) var(--qta-ease);
}
.qta-swatch:hover img { transform: translateY(-12px); }
.qta-swatch figcaption {
  margin: 14px 0 0;
  font-family: var(--qta-font-data);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: var(--qta-slate);
  transition: color 200ms ease;
}
.qta-swatch:hover figcaption { color: var(--qta-gold-deeper); }

@media (min-width: 861px) {
  .qta-spectrum { overflow-x: visible; }
  .qta-swatch { flex: 1 1 0; min-width: 0; }
  .qta-swatch figcaption { margin-top: 16px; }
}

/* ==========================================================================
   15. Shell rows
   ========================================================================== */

.qta-shellrow {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 3vw, 48px);
  align-items: center;
  padding: clamp(24px, 3vw, 40px) 0;
  border-top: 1px solid var(--qta-stone);
}
.qta-shellrow:last-of-type { border-bottom: 1px solid var(--qta-stone); }
.qta-shellrow img {
  display: block;
  width: clamp(88px, 11vw, 148px);
  height: clamp(88px, 11vw, 148px);
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.qta-shellrow > div { flex: 1 1 320px; min-width: 0; }

.qta-mirrorcard {
  display: grid;
  grid-template-columns: minmax(110px, 34%) 1fr;
  gap: clamp(16px, 2vw, 28px);
  background: var(--qta-stone);
}
.qta-mirrorcard img { display: block; width: 100%; height: 100%; min-height: 210px; object-fit: cover; }
.qta-mirrorcard > div { padding: clamp(20px, 2.2vw, 30px) clamp(20px, 2.2vw, 30px) clamp(20px, 2.2vw, 30px) 0; }

/* ==========================================================================
   16. Source to Surface — chapter rail
   ========================================================================== */

.qta-chapters { display: grid; grid-template-columns: 1fr; background: var(--qta-bone); }
.qta-rail { display: none; }

@media (min-width: 1024px) {
  .qta-chapters { grid-template-columns: 240px 1fr; }
  .qta-rail { display: block; overflow: hidden; position: relative; }
  .qta-rail__inner { position: sticky; top: 140px; padding-left: var(--qta-gutter); display: flex; gap: 20px; }
  .qta-rail__track { position: relative; width: 1px; background: var(--qta-stone); flex-shrink: 0; height: 180px; }
  .qta-rail__fill { position: absolute; top: 0; left: 0; width: 1px; background: var(--qta-gold); height: 18%; transition: height 400ms var(--qta-ease); }
  .qta-rail__nav { display: flex; flex-direction: column; gap: 22px; }
  .qta-rail__link {
    font-size: var(--qta-small);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--qta-slate);
    transition: color 260ms ease;
  }
  .qta-rail__link.is-current { color: var(--qta-ink); }
}

.qta-chapter { padding: clamp(3rem, 5vw, 5rem) var(--qta-gutter); scroll-margin-top: 100px; }
.qta-chapter--first { padding-top: clamp(4rem, 8vw, 8rem); }
.qta-chapter--last { padding-bottom: clamp(4rem, 8vw, 8rem); }

.qta-figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 0;
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  border-top: 1px solid var(--qta-gold);
}
.qta-figures > div { padding: 22px 22px 22px 0; }
.qta-figures p:first-child { margin: 0; font-family: var(--qta-font-data); font-weight: 500; font-size: 1.75rem; line-height: 1; color: var(--qta-ink); }
.qta-figures p:last-child { margin: 10px 0 0; font-family: var(--qta-font-body); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--qta-slate); line-height: 1.5; }

/* ==========================================================================
   17. Specifications sub-nav
   ========================================================================== */

.qta-subnav {
  position: sticky;
  top: var(--qta-header-h);
  z-index: 20;
  background: var(--qta-bone);
  border-top: 1px solid var(--qta-gold-light);
  border-bottom: 1px solid var(--qta-gold-light);
}
.qta-subnav__inner {
  max-width: var(--qta-maxw);
  margin: 0 auto;
  padding: 0 var(--qta-gutter);
  display: flex;
  gap: clamp(16px, 3vw, 40px);
  overflow-x: auto;
  scrollbar-width: none;
}
.qta-subnav__inner::-webkit-scrollbar { display: none; }
.qta-subnav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  font-size: var(--qta-small);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--qta-slate);
  text-decoration: none;
  white-space: nowrap;
}
.qta-subnav a:hover, .qta-subnav a.is-current { color: var(--qta-gold-deeper); }

.qta-scale { margin: clamp(2.5rem, 4vw, 3.5rem) 0 0; }
.qta-scale svg { display: block; width: 100%; height: auto; max-width: 760px; }

/* ==========================================================================
   18. CTA band
   ========================================================================== */

.qta-cta {
  position: relative;
  padding: clamp(3.5rem, 8vw, 7.5rem) var(--qta-gutter);
  overflow: hidden;
  background: var(--qta-navy);
}
.qta-cta > picture img, .qta-cta > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.qta-cta__scrim { position: absolute; inset: 0; background: rgba(15, 35, 64, 0.82); }
.qta-cta__inner {
  position: relative;
  max-width: var(--qta-maxw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
}
.qta-cta__line {
  margin: 0;
  font-family: var(--qta-font-mark);
  font-weight: 400;
  font-size: clamp(1.875rem, 4.4vw, 3.5rem);
  line-height: 1.1;
  color: var(--qta-bone);
}

/* ==========================================================================
   19. Footer
   ========================================================================== */

.qta-footer {
  background: var(--qta-navy);
  padding: clamp(3rem, 6vw, 6rem) var(--qta-gutter) 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  font-family: var(--qta-font-body);
}
.qta-footer__grid {
  max-width: var(--qta-maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: clamp(2rem, 4vw, 4rem);
}
.qta-footer__brand { display: flex; align-items: center; gap: 14px; }
.qta-footer__brand svg { width: 28px; height: 28px; }
.qta-footer__name { font-family: var(--qta-font-mark); font-weight: 500; font-size: 1.25rem; letter-spacing: 0.22em; line-height: 1; color: var(--qta-bone); display: block; }
.qta-footer__tag { font-family: var(--qta-font-mark); font-size: 0.5rem; letter-spacing: 0.3em; line-height: 1; color: var(--qta-gold); display: block; margin-top: 3px; }
.qta-footer__line { margin: 24px 0 0; font-family: var(--qta-font-mark); font-size: 1.375rem; line-height: 1.3; color: var(--qta-gold-light); }
.qta-footer__head { font-size: 0.6875rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--qta-gold); margin-bottom: 2px; display: block; }
.qta-footer__col { display: flex; flex-direction: column; }
.qta-footer__col a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9375rem;
  color: var(--qta-bone);
  text-decoration: none;
}
.qta-footer__col a:hover { color: var(--qta-gold-light); }
.qta-footer__col ul { list-style: none; margin: 0; padding: 0; }
.qta-footer address { font-style: normal; font-size: 0.9375rem; line-height: 1.7; color: var(--qta-gold-light); margin: 8px 0 0; }
.qta-footer__bottom {
  max-width: var(--qta-maxw);
  margin: clamp(2.5rem, 5vw, 4.5rem) auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-top: 1px solid var(--qta-hairline);
}
.qta-footer__bottom span, .qta-footer__bottom a { font-size: var(--qta-small); color: var(--qta-gold-light); text-decoration: none; }
.qta-footer__legal { display: flex; gap: 20px; }
.qta-footer__legal a { display: flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
.qta-footer__bottom a:hover { color: var(--qta-bone); }

/* ==========================================================================
   20. Contact panel and form (native + Fluent Forms)
   ========================================================================== */

.qta-contactlist { margin-top: clamp(2.5rem, 4vw, 3.5rem); display: flex; flex-direction: column; }
.qta-contactlist > div { padding: 16px 0; border-top: 1px solid var(--qta-gold-light); }
.qta-contactlist > div:last-child { border-bottom: 1px solid var(--qta-gold-light); }
.qta-contactlist__k { display: block; font-size: 0.6875rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--qta-gold-deeper); }
.qta-contactlist a, .qta-contactlist address {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin: 4px 0 0;
  font-size: 1.0625rem;
  color: var(--qta-ink);
  text-decoration: none;
  font-style: normal;
  line-height: 1.6;
}
.qta-contactlist a:hover { color: var(--qta-gold-deeper); }

.qta-formpanel { background: var(--qta-stone); padding: clamp(1.25rem, 3vw, 3rem); }

.qta-form,
.qta-formpanel .frm-fluent-form .ff-el-group,
.qta-formpanel .fluentform form {
  font-family: var(--qta-font-body);
}
.qta-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 18px; }
.qta-field { display: flex; flex-direction: column; gap: 8px; }
.qta-field--full { grid-column: 1 / -1; }

.qta-label,
.qta-formpanel .ff-el-input--label label {
  font-family: var(--qta-font-body);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--qta-slate);
  font-weight: 400;
}

.qta-input, .qta-select, .qta-textarea,
.qta-formpanel .ff-el-form-control {
  font-family: var(--qta-font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--qta-ink);
  background: var(--qta-bone);
  border: 1px solid var(--qta-gold-light);
  border-radius: var(--qta-radius);
  padding: 13px 14px;
  width: 100%;
  min-height: 48px;
  -webkit-appearance: none;
  appearance: none;
}
.qta-input:focus, .qta-select:focus, .qta-textarea:focus,
.qta-formpanel .ff-el-form-control:focus { border-color: var(--qta-gold); }
.qta-textarea { resize: vertical; min-height: 120px; }
.qta-input--mono { font-family: var(--qta-font-data); font-size: 16px; }
.qta-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='6' fill='none'%3E%3Cpath d='M1 1.2 4.5 4.6 8 1.2' stroke='%231A1A1A' stroke-width='1.1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.qta-formpanel .ff-btn-submit,
.qta-formpanel .ff_submit_btn_wrapper button {
  background: var(--qta-gold);
  color: var(--qta-white);
  border: 1px solid var(--qta-gold);
  border-radius: var(--qta-radius);
  font-family: var(--qta-font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  min-height: 48px;
  padding: 15px 32px;
  cursor: pointer;
  transition: background 200ms ease;
}
.qta-formpanel .ff-btn-submit:hover { background: var(--qta-gold-deep); border-color: var(--qta-gold-deep); }
.qta-formpanel .ff-message-success {
  font-family: var(--qta-font-body);
  color: var(--qta-ink);
  background: var(--qta-bone);
  border: 1px solid var(--qta-gold-light);
  border-radius: var(--qta-radius);
  padding: 20px;
}

.qta-formnote {
  margin: 0 0 20px;
  padding: 14px 16px;
  background: var(--qta-bone);
  border-left: 2px solid var(--qta-gold);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--qta-slate);
}

.qta-sent { padding: clamp(1.5rem, 4vw, 4rem) 0; }
.qta-sent svg { display: block; width: 34px; height: 34px; }
.qta-sent h2 { margin: 20px 0 0; font-family: var(--qta-font-display); font-weight: 600; font-size: 1.375rem; color: var(--qta-ink); }

/* ==========================================================================
   21. 404
   ========================================================================== */

.qta-404 { padding: calc(var(--qta-section-y) + var(--qta-header-h)) var(--qta-gutter) var(--qta-section-y); }
.qta-404 .qta-mono { display: block; font-size: 3rem; color: var(--qta-gold-deeper); line-height: 1; }

/* ==========================================================================
   22. WordPress editor content (page.php fallback)
   ========================================================================== */

.qta-prose { max-width: 68ch; font-family: var(--qta-font-body); font-size: var(--qta-body); line-height: 1.7; color: var(--qta-ink); }
.qta-prose h2 { font-family: var(--qta-font-display); font-weight: 700; font-size: var(--qta-h2); line-height: 1.05; letter-spacing: -0.02em; margin: 2.5rem 0 1rem; }
.qta-prose h3 { font-family: var(--qta-font-display); font-weight: 600; font-size: var(--qta-h3); margin: 2rem 0 0.75rem; }
.qta-prose p { margin: 0 0 1.25rem; }
.qta-prose ul, .qta-prose ol { margin: 0 0 1.25rem; padding-left: 1.25rem; }
.qta-prose img { height: auto; }
