/* =========================================================
   Davinci Robots — Codex aesthetic
   Parchment, ink, and a faint smell of cedar.
   ========================================================= */

:root {
  /* base — warm paper */
  --parchment:        #f1e6cc;
  --parchment-light:  #faf3e0;
  --parchment-deep:   #e6d6b0;
  --cream:            #f5ead0;

  /* ink */
  --ink:              #1a1410;
  --ink-soft:         #3a2820;
  --sepia:            #6b4423;

  /* warm accents */
  --ochre:            #a8762a;
  --ochre-bright:     #c89039;
  --gold:             #b8884a;
  --gold-bright:      #d9a45e;

  /* terracotta (energy / CTA) */
  --terracotta:       #c4673a;
  --terracotta-deep:  #8e3d1a;
  --terracotta-light: #e89970;

  /* moss (renewable / nature) */
  --moss:             #4a6b3f;
  --moss-deep:        #2c4525;
  --moss-bright:      #6a8d56;
  --forest:           #2c4525;

  /* petrol teal (modern depth, sky) */
  --teal:             #2c5a5a;
  --teal-deep:        #143838;
  --teal-bright:      #4a8a8a;

  /* lines and shadow */
  --rule:             rgba(26, 20, 16, 0.18);
  --rule-strong:      rgba(26, 20, 16, 0.4);
  --shadow:           rgba(26, 20, 16, 0.18);

  /* legacy alias (used in older blocks) */
  --accent:           var(--terracotta);
  --accent-bright:    var(--terracotta-light);
  --accent-deep:      var(--terracotta-deep);

  /* type */
  --serif-display: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --serif-body:    'EB Garamond', Georgia, serif;
  --serif-hand:    'IM Fell English', 'EB Garamond', serif;
  --sans:          'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* layout */
  --max: 1280px;
  --max-wide: 1480px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--serif-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--parchment);
  /* layered parchment texture: warm gradient + faint noise */
  background-image:
    radial-gradient(ellipse at 20% 10%, rgba(255, 240, 200, 0.55), transparent 55%),
    radial-gradient(ellipse at 85% 90%, rgba(120, 80, 30, 0.18), transparent 60%),
    radial-gradient(ellipse at 50% 50%, rgba(168, 118, 42, 0.05), transparent 70%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.4  0 0 0 0 0.25  0 0 0 0 0.1  0 0 0 0.10 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-attachment: fixed, fixed, fixed, fixed;
  background-size: cover, cover, cover, 240px 240px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--ochre); }

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

::selection { background: rgba(168, 118, 42, 0.35); color: var(--ink); }


/* ----------------- HEADER ----------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(6px);
  background: rgba(241, 230, 204, 0.78);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  width: 100%;
  margin: 0;
  padding: 0.9rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
}

.brand-mark {
  width: 42px;
  height: 42px;
  color: var(--ink);
  flex-shrink: 0;
}

.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}
.brand-tag {
  font-family: var(--serif-hand);
  font-style: italic;
  font-size: 0.78rem;
  color: var(--sepia);
  margin-top: 2px;
  letter-spacing: 0.08em;
}

.primary-nav {
  display: flex;
  gap: 1.6rem;
  font-family: var(--serif-display);
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.primary-nav a {
  position: relative;
  padding-bottom: 2px;
}
.primary-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--ochre);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .25s ease;
}
.primary-nav a:hover::after { transform: scaleX(1); }

@media (max-width: 720px) {
  .primary-nav { display: none; }
}


/* ----------------- HERO ----------------- */

.hero {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) var(--gutter) 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.eyebrow {
  font-family: var(--serif-hand);
  font-style: italic;
  letter-spacing: 0.18em;
  color: var(--sepia);
  margin: 0 0 1.2rem;
  font-size: 0.95rem;
}

.hero-text h1 {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 1.5rem;
  color: var(--ink);
}

.h1-line { display: block; }
.h1-line.italic {
  font-style: italic;
  color: var(--sepia);
  font-weight: 300;
}

.lede {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 36em;
  margin: 0 0 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  font-family: var(--serif-display);
  font-size: 1rem;
  letter-spacing: 0.06em;
  padding: 0.85rem 1.6rem;
  border-radius: 1px;
  transition: all .2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--ink);
  color: var(--parchment);
  border-color: var(--ink);
}
.btn-primary:hover {
  background: var(--sepia);
  border-color: var(--sepia);
  color: var(--parchment-light);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--parchment-light);
}


/* hero figure */
.hero-figure {
  position: relative;
  display: flex;
  justify-content: center;
}

.schematic {
  color: var(--ink);
  width: 100%;
  max-width: 520px;
}

.schematic .annotation text {
  font-family: var(--serif-hand);
  font-size: 11px;
  fill: var(--sepia);
}

.schematic-hero {
  filter: drop-shadow(0 2px 0 rgba(0,0,0,0.02));
}

/* ink draw-in animation */
.ink-line {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: draw 2.4s ease-out forwards;
}
.ink-line:nth-child(2) { animation-delay: .15s; }
.ink-line:nth-child(3) { animation-delay: .3s; }
.ink-line:nth-child(4) { animation-delay: .45s; }
.ink-line:nth-child(5) { animation-delay: .6s; }

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

.scroll-hint {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif-hand);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--sepia);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  opacity: 0.7;
  letter-spacing: 0.15em;
}
.scroll-hint svg { width: 12px; height: 24px; color: var(--sepia); }


/* ----------------- SECTIONS (general) ----------------- */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 7rem) var(--gutter);
  position: relative;
}

.section + .section {
  border-top: 1px solid var(--rule);
}

.section-head {
  margin-bottom: 3rem;
  max-width: 720px;
}

.section-num {
  font-family: var(--serif-hand);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ochre);
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: 0.5rem;
}

.section-head h2 {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin: 0 0 0.6rem;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.section-sub {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--sepia);
  margin: 0;
}


/* ----------------- PHILOSOPHY ----------------- */

.two-col {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
@media (max-width: 880px) {
  .two-col { grid-template-columns: 1fr; }
}

.prose p { margin: 0 0 1.4rem; max-width: 36em; line-height: 1.75; }

.dropcap .initial {
  float: left;
  font-family: var(--serif-display);
  font-size: 4.4rem;
  line-height: 0.9;
  font-weight: 500;
  color: var(--ochre);
  margin: 0.15rem 0.5rem 0 0;
  padding: 0.1rem 0.3rem 0 0;
  font-style: normal;
}

.principles {
  background: rgba(255, 248, 225, 0.5);
  border: 1px solid var(--rule);
  padding: 2rem 1.8rem;
  border-radius: 2px;
  position: relative;
}
.principles::before,
.principles::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border: 1px solid var(--rule);
}
.principles::before { top: -8px; left: -8px; border-right: none; border-bottom: none; }
.principles::after  { bottom: -8px; right: -8px; border-left: none; border-top: none; }

.principles h3 {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.4rem;
  margin: 0 0 1.4rem;
  color: var(--sepia);
  letter-spacing: 0.02em;
}

.principles ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.principles li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.principle-num {
  font-family: var(--serif-hand);
  font-style: italic;
  color: var(--ochre);
  font-size: 1.4rem;
  min-width: 2rem;
  line-height: 1;
  padding-top: 0.15rem;
}

.principles strong {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.2rem;
}

.principles p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--ink-soft);
  line-height: 1.55;
}


/* ----------------- DRONES ----------------- */

.drone-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-top: 1px solid var(--rule);
}
.drone-card:first-of-type { border-top: none; padding-top: 0; }
.drone-card.reversed { grid-template-columns: 1fr 1.1fr; }
.drone-card.reversed .drone-art { order: 2; }
.drone-card.reversed .drone-info { order: 1; }

@media (max-width: 880px) {
  .drone-card,
  .drone-card.reversed { grid-template-columns: 1fr; }
  .drone-card.reversed .drone-art { order: 0; }
  .drone-card.reversed .drone-info { order: 0; }
}

.drone-art {
  background: rgba(255, 248, 225, 0.45);
  border: 1px solid var(--rule);
  padding: 1.5rem;
  border-radius: 2px;
}

.drone-tag {
  font-family: var(--serif-hand);
  font-style: italic;
  color: var(--ochre);
  letter-spacing: 0.15em;
  font-size: 0.9rem;
  margin: 0 0 0.5rem;
}

.drone-info h3 {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 1rem;
  letter-spacing: -0.005em;
}

.drone-info > p { line-height: 1.7; color: var(--ink-soft); margin: 0 0 1.5rem; }

.specs {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 0.5rem 1.4rem;
  margin: 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--rule);
  font-size: 0.98rem;
}
.specs dt {
  font-family: var(--serif-display);
  font-style: italic;
  color: var(--sepia);
  letter-spacing: 0.04em;
}
.specs dd { margin: 0; color: var(--ink); }


/* ----------------- WORKSHOP ----------------- */

.workshop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.workshop-card {
  background: rgba(255, 248, 225, 0.55);
  border: 1px solid var(--rule);
  padding: 1.8rem 1.5rem;
  border-radius: 2px;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  position: relative;
}

.workshop-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 248, 225, 0.85);
  box-shadow: 0 6px 20px -8px rgba(42, 26, 14, 0.25);
}

.workshop-icon {
  width: 56px;
  height: 56px;
  color: var(--sepia);
  margin-bottom: 1rem;
}

.workshop-card h3 {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
  letter-spacing: 0.005em;
}

.workshop-card p {
  margin: 0 0 1rem;
  font-size: 0.98rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

.workshop-card .status {
  font-family: var(--serif-hand);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--ochre);
  letter-spacing: 0.1em;
}


/* ----------------- MATERIALS ----------------- */

.materials-layout {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
@media (max-width: 880px) {
  .materials-layout { grid-template-columns: 1fr; }
}

.bamboo-figure {
  position: sticky;
  top: 6rem;
  text-align: center;
}
.bamboo-figure svg { max-height: 540px; margin: 0 auto; }

.materials-text h3 {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--sepia);
  margin: 1.8rem 0 0.6rem;
  letter-spacing: 0.01em;
}
.materials-text h3:first-child { margin-top: 0; }

.materials-text p {
  margin: 0 0 1rem;
  line-height: 1.75;
  max-width: 36em;
}

.process-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.process-list li {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  padding-bottom: 0.7rem;
  border-bottom: 1px dotted var(--rule);
}
.process-list li:last-child { border-bottom: none; }
.process-list .step {
  font-family: var(--serif-hand);
  font-style: italic;
  color: var(--ochre);
  letter-spacing: 0.1em;
  min-width: 2rem;
}


/* ----------------- CONTACT ----------------- */

.section-contact {
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(168, 118, 42, 0.12), transparent 60%),
    transparent;
  padding-top: clamp(5rem, 10vw, 8rem);
  padding-bottom: clamp(5rem, 10vw, 8rem);
}

.contact-inner {
  max-width: 620px;
  margin: 0 auto;
}

.section-contact h2 {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  margin: 0 0 0.8rem;
}

.contact-lede {
  color: var(--ink-soft);
  margin: 0 0 2.5rem;
  font-size: 1.1rem;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  text-align: left;
}
.contact-form .full { grid-column: 1 / -1; }

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-form span {
  font-family: var(--serif-hand);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--sepia);
  letter-spacing: 0.05em;
}

.contact-form input,
.contact-form textarea {
  font-family: var(--serif-body);
  font-size: 1rem;
  padding: 0.7rem 0.9rem;
  background: rgba(255, 248, 225, 0.55);
  border: 1px solid var(--rule);
  border-radius: 2px;
  color: var(--ink);
  transition: border-color .2s ease, background .2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--sepia);
  background: rgba(255, 248, 225, 0.9);
}

.contact-form button {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 0.5rem;
}

@media (max-width: 600px) {
  .contact-form { grid-template-columns: 1fr; }
}


/* ----------------- FOOTER ----------------- */

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2.5rem var(--gutter);
  background: rgba(230, 214, 176, 0.3);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
  font-size: 0.95rem;
}

.footer-brand strong {
  font-family: var(--serif-display);
  font-weight: 500;
  letter-spacing: 0.05em;
}
.footer-brand em {
  font-family: var(--serif-hand);
  color: var(--sepia);
}

.footer-meta { text-align: center; color: var(--ink-soft); line-height: 1.5; }
.footer-meta .muted { color: var(--sepia); font-style: italic; }

.footer-links { text-align: right; color: var(--sepia); }
.footer-links a { color: var(--sepia); }
.footer-links a:hover { color: var(--ochre); }

@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-links { text-align: center; }
}


/* ----------------- SCROLL REVEAL ----------------- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .ink-line { stroke-dashoffset: 0; }
  .reveal { opacity: 1; transform: none; }
}


/* =========================================================
   SUBPAGE LAYOUTS — for /philosophy /corvus /vitruvius /
   /ornitos /workshop /materials
   ========================================================= */

/* tighter inline link callouts on home that point to subpages */
.continue-link,
.section-continue {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 1.05rem;
  margin-top: 1.4rem;
}
.continue-link a,
.section-continue a {
  color: var(--ochre);
  border-bottom: 1px solid var(--ochre);
  padding-bottom: 1px;
}
.continue-link a:hover,
.section-continue a:hover {
  color: var(--sepia);
  border-color: var(--sepia);
}
.section-continue {
  text-align: center;
  margin-top: 3rem;
  font-size: 1.15rem;
}


/* ----------------- PAGE HERO (subpage) ----------------- */

.page-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter) clamp(2rem, 5vw, 3.5rem);
}

.breadcrumb {
  font-family: var(--serif-hand);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: var(--sepia);
  margin: 0 0 1.4rem;
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--sepia); }
.breadcrumb a:hover { color: var(--ochre); }
.breadcrumb .sep { opacity: 0.6; }
.breadcrumb .here { color: var(--ink); font-style: italic; }

.page-hero .folio {
  font-family: var(--serif-hand);
  font-style: italic;
  letter-spacing: 0.2em;
  color: var(--ochre);
  margin: 0 0 0.8rem;
  font-size: 0.95rem;
}

.page-hero h1 {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.005em;
  margin: 0 0 1rem;
  color: var(--ink);
  max-width: 18ch;
}

.page-hero .page-lede {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink-soft);
  font-style: italic;
  max-width: 38em;
  margin: 0;
}

.page-hero .meta-row {
  display: flex;
  gap: 2.5rem;
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
  flex-wrap: wrap;
  font-family: var(--serif-display);
  font-size: 0.95rem;
}
.page-hero .meta-row dt {
  font-style: italic;
  color: var(--sepia);
  margin-bottom: 0.2rem;
  letter-spacing: 0.04em;
}
.page-hero .meta-row dd {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
}


/* ----------------- FULL PLATE display (subpage hero schematic) ----------------- */

.full-plate {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(3rem, 6vw, 4.5rem);
}

.full-plate-frame {
  background: rgba(255, 248, 225, 0.6);
  border: 1px solid var(--rule);
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 2px;
  position: relative;
}
.full-plate-frame::before,
.full-plate-frame::after {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  border: 1px solid var(--sepia);
  opacity: 0.6;
}
.full-plate-frame::before { top: -9px; left: -9px; border-right: none; border-bottom: none; }
.full-plate-frame::after  { bottom: -9px; right: -9px; border-left: none; border-top: none; }

.full-plate-frame svg.schematic {
  margin: 0 auto;
  max-height: 720px;
}


/* ----------------- ARTICLE PROSE (long-form pages) ----------------- */

.article {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) var(--gutter);
  border-top: 1px solid var(--rule);
}

.article-grid {
  display: grid;
  grid-template-columns: 1fr 2.4fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 880px) {
  .article-grid { grid-template-columns: 1fr; }
}

.article-side {
  position: sticky;
  top: 6rem;
}
.article-side .marker {
  font-family: var(--serif-hand);
  font-style: italic;
  font-size: 1rem;
  color: var(--ochre);
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: 0.5rem;
}
.article-side h2 {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.1;
  margin: 0;
  color: var(--ink);
}

.article-body {
  font-size: 1.07rem;
  line-height: 1.78;
  color: var(--ink);
  max-width: 38em;
}
.article-body p { margin: 0 0 1.3rem; }
.article-body p:first-of-type { margin-top: 0; }

.article-body h3 {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--sepia);
  margin: 2.4rem 0 0.6rem;
  letter-spacing: 0.005em;
}

.article-body blockquote {
  margin: 2rem 0;
  padding: 0.4rem 0 0.4rem 1.6rem;
  border-left: 3px solid var(--ochre);
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--sepia);
  line-height: 1.55;
}
.article-body blockquote cite {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--serif-hand);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
}

.article-body ul.bare {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 1.6rem;
}
.article-body ul.bare li {
  display: flex;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px dotted var(--rule);
}
.article-body ul.bare li:last-child { border-bottom: none; }
.article-body ul.bare .label {
  font-family: var(--serif-hand);
  font-style: italic;
  color: var(--ochre);
  min-width: 6rem;
  letter-spacing: 0.05em;
}


/* ----------------- COMPARISON TABLE ----------------- */

.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.98rem;
}

.compare-table th,
.compare-table td {
  padding: 0.7rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--rule);
}

.compare-table thead th {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 500;
  color: var(--sepia);
  border-bottom: 1.5px solid var(--sepia);
  letter-spacing: 0.03em;
}

.compare-table tbody th {
  font-family: var(--serif-display);
  font-weight: 500;
  color: var(--ink);
}

.compare-table tbody tr:hover {
  background: rgba(168, 118, 42, 0.06);
}

.compare-table .highlight {
  color: var(--ochre);
  font-weight: 500;
}


/* ----------------- LARGE SPECS (drone subpages) ----------------- */

.specs-large {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
  margin: 2.5rem 0;
  padding: 2rem 0;
  border-top: 1.5px solid var(--rule);
  border-bottom: 1.5px solid var(--rule);
}
@media (max-width: 720px) { .specs-large { grid-template-columns: 1fr; } }

.specs-large .spec-group h4 {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 400;
  color: var(--sepia);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  margin: 0 0 0.7rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--rule);
}

.specs-large dl {
  margin: 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.4rem 1.2rem;
  font-size: 0.97rem;
}
.specs-large dt {
  font-family: var(--serif-display);
  color: var(--ink-soft);
  font-style: italic;
}
.specs-large dd {
  margin: 0;
  color: var(--ink);
}


/* ----------------- COMPONENT GRID ----------------- */

.component-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.component {
  border: 1px solid var(--rule);
  background: rgba(255, 248, 225, 0.5);
  padding: 1rem 1.1rem;
  border-radius: 2px;
}
.component .num {
  font-family: var(--serif-hand);
  font-style: italic;
  color: var(--ochre);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}
.component h4 {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: 1.1rem;
  margin: 0.2rem 0 0.4rem;
}
.component p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.5;
}


/* ----------------- PROCESS STEPS (long form) ----------------- */

.process-steps {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  counter-reset: step;
}
.process-steps > li {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1.5rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--rule);
  counter-increment: step;
}
.process-steps > li::before {
  content: counter(step, upper-roman);
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--ochre);
  line-height: 1;
}
.process-steps h4 {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: 1.2rem;
  margin: 0 0 0.4rem;
}
.process-steps p { margin: 0; line-height: 1.6; color: var(--ink-soft); }


/* ----------------- PAGE PAGINATION (prev / next) ----------------- */

.pagination {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem var(--gutter) 5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  border-top: 1px solid var(--rule);
}
.pagination a {
  display: block;
  padding: 1.4rem 1.6rem;
  border: 1px solid var(--rule);
  background: rgba(255, 248, 225, 0.4);
  border-radius: 2px;
  transition: all .25s ease;
}
.pagination a:hover {
  background: rgba(255, 248, 225, 0.85);
  border-color: var(--sepia);
  transform: translateY(-2px);
}
.pagination .label {
  display: block;
  font-family: var(--serif-hand);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--ochre);
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}
.pagination .title {
  font-family: var(--serif-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ink);
}
.pagination .next { text-align: right; }
@media (max-width: 600px) { .pagination { grid-template-columns: 1fr; } }


/* ----------------- WORKSHOP DETAIL CARDS (full page) ----------------- */

.workshop-detail {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) var(--gutter);
  border-top: 1px solid var(--rule);
}

.workshop-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.workshop-detail.reversed .workshop-detail-grid { grid-template-columns: 1.4fr 1fr; }
.workshop-detail.reversed .workshop-art { order: 2; }
.workshop-detail.reversed .workshop-info { order: 1; }
@media (max-width: 880px) {
  .workshop-detail-grid,
  .workshop-detail.reversed .workshop-detail-grid { grid-template-columns: 1fr; }
}

.workshop-art {
  background: rgba(255, 248, 225, 0.5);
  border: 1px solid var(--rule);
  padding: 2rem;
  border-radius: 2px;
}

.workshop-info .marker {
  font-family: var(--serif-hand);
  font-style: italic;
  color: var(--ochre);
  letter-spacing: 0.18em;
  font-size: 0.95rem;
  margin: 0 0 0.6rem;
}
.workshop-info h2 {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 1rem;
}
.workshop-info p { line-height: 1.7; color: var(--ink-soft); margin: 0 0 1rem; max-width: 36em; }
.workshop-info .status-pill {
  display: inline-block;
  font-family: var(--serif-hand);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--sepia);
  border: 1px solid var(--sepia);
  padding: 0.25rem 0.8rem;
  border-radius: 1rem;
  letter-spacing: 0.06em;
  margin-top: 0.5rem;
}


/* ----------------- MAP-LIKE LOCATION FIGURES (materials) ----------------- */

.locations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.location-card {
  border: 1px solid var(--rule);
  padding: 1.4rem;
  background: rgba(255, 248, 225, 0.5);
}
.location-card .coord {
  font-family: var(--serif-hand);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--ochre);
  letter-spacing: 0.06em;
}
.location-card h4 {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: 1.2rem;
  margin: 0.3rem 0 0.5rem;
}
.location-card p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); line-height: 1.5; }


/* ----------------- TIGHTEN HEADER on scroll & wider site ----------------- */

.brand-name { font-size: 1.05rem; }
@media (max-width: 580px) {
  .brand-text { display: none; }
}


/* =========================================================
   MODERN ACCENT + DYNAMICITY
   ========================================================= */

:root {
  --shadow-warm: rgba(26, 20, 16, 0.18);
}

/* nav active state */
.primary-nav a.current {
  color: var(--accent);
}
.primary-nav a.current::after {
  transform: scaleX(1);
  background: var(--accent);
}


/* ----------------- HERO MODERN ENHANCEMENTS ----------------- */

.hero {
  position: relative;
  isolation: isolate;
}

/* mouse-tracked spotlight — JS sets --mx and --my as percentages */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(
    600px circle at var(--mx, 50%) var(--my, 30%),
    rgba(74, 107, 63, 0.18),
    rgba(168, 118, 42, 0.06) 35%,
    transparent 70%
  );
  transition: background 0.15s ease;
  mix-blend-mode: multiply;
}

.hero-text h1 {
  position: relative;
}

/* big hero typography — modern display feel */
.page-hero-large h1.display,
.hero-text h1.display {
  font-size: clamp(3rem, 8vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.page-hero-large h1.display em,
.hero-text h1.display em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

/* highlight a word with a marker-like brushstroke */
.ink-mark {
  position: relative;
  display: inline-block;
  z-index: 0;
  padding: 0 0.12em;
}
.ink-mark::before {
  content: '';
  position: absolute;
  inset: 65% 0 6% 0;
  background: linear-gradient(105deg, rgba(168, 118, 42, 0.35), rgba(74, 107, 63, 0.3));
  z-index: -1;
  border-radius: 1px 6px 2px 8px;
  transform: skewX(-3deg);
}


/* ----------------- STAT COUNTERS ----------------- */

.meta-row.stats {
  gap: clamp(2rem, 5vw, 4rem);
}

.meta-row.stats > div {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.meta-row.stats dt {
  font-family: var(--serif-hand);
  font-style: italic;
  color: var(--sepia);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  margin: 0;
}

.meta-row.stats dd.stat-num {
  font-family: var(--serif-display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
  font-variant-numeric: oldstyle-nums;
}


/* ----------------- TICKER / MARQUEE ----------------- */

.ticker {
  background: var(--ink);
  color: var(--parchment-light);
  overflow: hidden;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  margin: clamp(2rem, 4vw, 3rem) 0;
  position: relative;
}

.ticker::before,
.ticker::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  pointer-events: none;
  z-index: 2;
}
.ticker::before {
  left: 0;
  background: linear-gradient(to right, var(--ink), transparent);
}
.ticker::after {
  right: 0;
  background: linear-gradient(to left, var(--ink), transparent);
}

.ticker-track {
  display: flex;
  gap: 3rem;
  padding: 0.95rem 0;
  white-space: nowrap;
  animation: ticker-scroll 50s linear infinite;
  font-family: var(--serif-display);
  font-style: italic;
  letter-spacing: 0.12em;
  font-size: 1rem;
  color: var(--parchment);
  width: max-content;
}
.ticker-track span {
  flex-shrink: 0;
  opacity: 0.85;
}
.ticker-track span:nth-child(odd) { color: var(--ochre-bright); }

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}


/* ----------------- CATALOG DIVIDER ----------------- */

.catalog-divider {
  max-width: var(--max);
  margin: clamp(3rem, 6vw, 5rem) auto clamp(1.5rem, 3vw, 2.5rem);
  padding: 0 var(--gutter);
}
.cd-num {
  font-family: var(--serif-hand);
  font-style: italic;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-size: 1.05rem;
  display: block;
  margin-bottom: 0.6rem;
}
.cd-title {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 0.9rem;
}
.cd-title em {
  font-style: italic;
  color: var(--sepia);
  font-weight: 300;
}
.cd-blurb {
  max-width: 40em;
  font-style: italic;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  margin: 0;
  line-height: 1.55;
}


/* ----------------- MACHINE BLOCK (drones + other machines on workshop) ----------------- */

.machine-block {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4.5rem) var(--gutter);
}
.machine-block + .machine-block {
  border-top: 1px solid var(--rule);
}
.machine-block-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.machine-block.reversed .machine-block-grid {
  grid-template-columns: 1fr 1.5fr;
}
.machine-block.reversed .machine-art { order: 2; }
.machine-block.reversed .machine-info { order: 1; }
@media (max-width: 880px) {
  .machine-block-grid,
  .machine-block.reversed .machine-block-grid { grid-template-columns: 1fr; }
  .machine-block.reversed .machine-art,
  .machine-block.reversed .machine-info { order: 0; }
}

.machine-art {
  background: rgba(255, 248, 225, 0.55);
  border: 1px solid var(--rule);
  padding: clamp(1rem, 3vw, 2rem);
  border-radius: 2px;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1),
              box-shadow 0.4s ease,
              border-color 0.4s ease;
  will-change: transform;
}
.machine-art:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -16px var(--shadow-warm);
  border-color: var(--accent);
}
.machine-art::before, .machine-art::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border: 1px solid var(--accent);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.machine-art::before { top: -8px; left: -8px; border-right: none; border-bottom: none; }
.machine-art::after { bottom: -8px; right: -8px; border-left: none; border-top: none; }
.machine-art:hover::before { transform: translate(-3px, -3px); }
.machine-art:hover::after { transform: translate(3px, 3px); }

.machine-info .marker {
  font-family: var(--serif-hand);
  font-style: italic;
  color: var(--accent);
  letter-spacing: 0.15em;
  font-size: 0.95rem;
  margin: 0 0 0.7rem;
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--accent);
}
.machine-info h2 {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
  color: var(--ink);
}
.machine-info > p {
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 1rem;
  font-size: 1.02rem;
}
.machine-info dl.specs {
  margin-top: 1.6rem;
}


/* ----------------- TEASER GRID (homepage) ----------------- */

.teaser-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) var(--gutter);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  border-top: 1px solid var(--rule);
}
@media (max-width: 880px) {
  .teaser-grid { grid-template-columns: 1fr; }
}

.teaser {
  position: relative;
  display: block;
  padding: 2rem 1.8rem 2.4rem;
  border: 1px solid var(--rule);
  background: rgba(255, 248, 225, 0.5);
  border-radius: 2px;
  color: var(--ink);
  overflow: hidden;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
              border-color 0.3s ease,
              background 0.3s ease;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.teaser:hover {
  transform: translateY(-6px);
  background: rgba(255, 248, 225, 0.95);
  border-color: var(--accent);
  color: var(--ink);
}
.teaser .teaser-num {
  font-family: var(--serif-hand);
  font-style: italic;
  color: var(--accent);
  letter-spacing: 0.2em;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}
.teaser h3 {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.1;
  margin: 0 0 0.6rem;
  letter-spacing: -0.005em;
}
.teaser h3 em {
  font-style: italic;
  color: var(--sepia);
}
.teaser p {
  margin: 0 0 1.2rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.teaser .arrow {
  font-family: var(--serif-display);
  font-style: italic;
  color: var(--accent);
  font-size: 1rem;
  letter-spacing: 0.05em;
  align-self: flex-start;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: gap 0.3s;
}
.teaser:hover .arrow { color: var(--ochre); }

.teaser-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  color: var(--sepia);
  transition: color 0.3s ease, transform 0.5s ease;
}
.teaser:hover .teaser-icon {
  color: var(--accent);
  transform: rotate(-4deg) scale(1.05);
}


/* ----------------- FEATURED MACHINE BLOCK (homepage) ----------------- */

.featured {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) var(--gutter);
  border-top: 1px solid var(--rule);
  position: relative;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
@media (max-width: 880px) { .featured-grid { grid-template-columns: 1fr; } }

.featured-art {
  background: rgba(255, 248, 225, 0.55);
  border: 1px solid var(--rule);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
}
.featured-art::before, .featured-art::after {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  border: 1px solid var(--accent);
}
.featured-art::before { top: -9px; left: -9px; border-right: none; border-bottom: none; }
.featured-art::after { bottom: -9px; right: -9px; border-left: none; border-top: none; }

.featured-tag {
  font-family: var(--serif-hand);
  font-style: italic;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-size: 0.95rem;
  margin: 0 0 0.6rem;
}

.featured h2 {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}
.featured h2 em { font-style: italic; color: var(--sepia); font-weight: 300; }

.featured p {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 1rem;
}


/* ----------------- MANIFESTO PULL QUOTE (homepage) ----------------- */

.pullquote {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) var(--gutter);
  text-align: center;
  position: relative;
}
.pullquote::before {
  content: '"';
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif-display);
  font-size: 8rem;
  color: var(--accent);
  opacity: 0.18;
  line-height: 0.7;
  pointer-events: none;
}
.pullquote blockquote {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 1.5rem;
}
.pullquote cite {
  font-family: var(--serif-hand);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: var(--sepia);
}


/* ----------------- ATMOSPHERIC PAINTERLY ILLUSTRATION ----------------- */

.atmosphere {
  position: relative;
  width: 100%;
  height: clamp(280px, 36vh, 460px);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 2px;
  border: 1px solid var(--rule);
  background: linear-gradient(160deg, #d8c79a 0%, #b89567 60%, #6e4f2e 100%);
}

.atmosphere svg {
  width: 100%;
  height: 100%;
  display: block;
}

.atmosphere::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/><feColorMatrix values='0 0 0 0 0.2  0 0 0 0 0.1  0 0 0 0 0.05  0 0 0 0.10 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
  opacity: 0.35;
  pointer-events: none;
}


/* ----------------- TILT-CAPABLE CARD (drone-card on home, machine-art) ----------------- */

.tilt {
  transform-style: preserve-3d;
  transition: transform 0.18s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: transform;
}


/* ----------------- IMPROVED HEADER (modern accent on hover) ----------------- */

.primary-nav a {
  position: relative;
}
.primary-nav a::after {
  background: var(--accent);
}
.primary-nav a:hover {
  color: var(--accent);
}


/* ----------------- BUTTONS (accent variant) ----------------- */

.btn-accent {
  background: var(--accent);
  color: var(--parchment);
  border-color: var(--accent);
}
.btn-accent:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: var(--parchment-light);
}


/* ----------------- SCROLL PROGRESS BAR ----------------- */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--ochre-bright));
  z-index: 100;
  transition: width 0.05s linear;
  pointer-events: none;
}


/* ----------------- ATMOSPHERE WRAP (homepage band) ----------------- */
.atmosphere-wrap {
  width: 100%;
  margin: 0;
  padding: 0;
}
.atmosphere-wrap .atmosphere {
  border-left: none;
  border-right: none;
  border-radius: 0;
  height: clamp(260px, 32vh, 400px);
}


/* ----------------- HOMEPAGE FEATURED-INFO ----------------- */
.featured-info { padding: 0 1rem; }
@media (max-width: 880px) {
  .featured-info { padding: 0; }
}


/* ----------------- DISPLAY HEADING ON HOME HERO ----------------- */
.hero-text h1.display {
  font-family: var(--serif-display);
  font-weight: 300;
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin: 0 0 1.5rem;
}
.hero-text h1.display em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}


/* =========================================================
   MAGAZINE LAYOUT — homepage (index.html)
   Full-bleed photo hero, numbers band, photo tiles,
   featured plate, quote, magazine contact.
   ========================================================= */

body.page-home { background: var(--ink); }
body.page-home main { background: var(--parchment); }

.site-header-overlay {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: transparent;
  border-bottom: none;
  backdrop-filter: none;
  z-index: 60;
}
.site-header-overlay .brand,
.site-header-overlay .brand-mark,
.site-header-overlay .primary-nav a { color: var(--cream); }
.site-header-overlay .brand-tag { color: rgba(245, 234, 208, 0.72); }
.site-header-overlay .primary-nav a::after { background: var(--terracotta-light); }
.site-header-overlay .primary-nav a:hover { color: var(--terracotta-light); }

.btn-terracotta {
  background: var(--terracotta);
  color: var(--parchment-light);
  border-color: var(--terracotta);
}
.btn-terracotta:hover {
  background: var(--terracotta-deep);
  border-color: var(--terracotta-deep);
  color: var(--cream);
}
.btn-outline-light {
  background: transparent;
  color: var(--cream);
  border-color: rgba(245, 234, 208, 0.55);
}
.btn-outline-light:hover {
  background: rgba(245, 234, 208, 0.14);
  border-color: var(--cream);
  color: var(--cream);
}
.btn-small {
  font-size: 0.88rem;
  padding: 0.6rem 1.2rem;
  letter-spacing: 0.08em;
}


/* ---------------- HERO-MAG ---------------- */

.hero-mag {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  color: var(--cream);
  padding: clamp(6rem, 12vh, 9rem) var(--gutter) clamp(3rem, 6vh, 5rem);
}
.hero-mag-photo { position: absolute; inset: 0; z-index: -2; display: block; overflow: hidden; }
.hero-mag-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  filter: saturate(0.7) contrast(1.05) brightness(0.62);
  /* Pre-scaled so the parallax JS has a vertical buffer to translate
     within without exposing container edges. */
  transform: scale(1.12);
  transform-origin: center;
  will-change: transform;
}
.hero-mag-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(20,12,8,0.55) 0%, rgba(20,12,8,0.15) 35%, rgba(20,12,8,0.78) 100%),
    radial-gradient(ellipse at 18% 80%, rgba(20,12,8,0.55), transparent 60%);
}
.hero-mag-mark {
  position: absolute;
  top: clamp(5rem, 10vh, 8rem);
  right: clamp(1.5rem, 4vw, 3rem);
  width: clamp(110px, 14vw, 200px);
  height: auto;
  color: rgba(245, 234, 208, 0.55);
  z-index: 1;
}
.hero-mag-content {
  position: relative;
  z-index: 2;
  max-width: 920px;
  width: 100%;
}
.hero-mag-eyebrow {
  font-family: var(--serif-hand);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  margin: 0 0 1.4rem;
  color: rgba(245, 234, 208, 0.78);
  text-transform: lowercase;
}
.hero-mag-title {
  font-family: var(--serif-display);
  font-weight: 300;
  font-size: clamp(2.8rem, 8vw, 6.6rem);
  line-height: 0.96;
  letter-spacing: -0.018em;
  margin: 0 0 1.6rem;
  color: var(--cream);
}
.hero-mag-italic { font-style: italic; color: var(--terracotta-light); font-weight: 400; }
.hero-mag-aside {
  display: block;
  font-family: var(--serif-hand);
  font-style: italic;
  font-size: clamp(1.05rem, 2.2vw, 1.6rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: rgba(245, 234, 208, 0.85);
  margin-top: 0.8rem;
  line-height: 1.3;
}
.hero-mag-lede {
  font-family: var(--serif-body);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  max-width: 56ch;
  color: rgba(245, 234, 208, 0.92);
  margin: 0 0 2rem;
}
.hero-mag-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero-mag-meta {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(3rem, 6vh, 5rem);
  display: flex;
  gap: clamp(1.5rem, 3vw, 2.6rem);
  z-index: 2;
  border-left: 1px solid rgba(245, 234, 208, 0.25);
  padding-left: clamp(1.5rem, 3vw, 2.4rem);
}
.hero-mag-meta > div { display: flex; flex-direction: column; align-items: flex-start; gap: 0.2rem; }
.meta-num {
  font-family: var(--serif-display);
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 400;
  line-height: 1;
  color: var(--cream);
}
.meta-num small { font-size: 0.55em; opacity: 0.8; margin-left: 0.1em; }
.meta-lbl {
  font-family: var(--sans);
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: rgba(245, 234, 208, 0.7);
}
.hero-mag-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(245, 234, 208, 0.65);
  font-family: var(--serif-hand);
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  z-index: 2;
  animation: scrollBob 2.2s ease-in-out infinite;
}
.hero-mag-scroll svg { width: 12px; height: 26px; }
.hero-mag-scroll:hover { color: var(--cream); }
@keyframes scrollBob {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 6px); }
}
@media (max-width: 880px) {
  .hero-mag-meta {
    position: static;
    margin-top: 2.4rem;
    border-left: none;
    border-top: 1px solid rgba(245, 234, 208, 0.25);
    padding: 1.4rem 0 0;
    width: 100%;
    justify-content: space-between;
  }
  .hero-mag-mark { display: none; }
  .hero-mag-scroll { display: none; }
}


/* ---------------- NUMBERS BAND ---------------- */

.numbers-band {
  background: var(--cream);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: clamp(3rem, 7vh, 5.5rem) var(--gutter);
}
.numbers-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: end;
}
.big-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  border-left: 1px solid var(--rule);
  padding-left: clamp(1rem, 2.4vw, 2rem);
}
.big-stat:first-child { border-left: none; padding-left: 0; }
.big-stat-num {
  font-family: var(--serif-display);
  font-weight: 300;
  font-size: clamp(3.2rem, 8vw, 6rem);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.big-stat-num small {
  font-size: 0.4em;
  color: var(--sepia);
  margin-left: 0.05em;
  font-weight: 400;
}
.big-stat-unit {
  font-family: var(--serif-hand);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--terracotta);
  margin-top: 0.4rem;
}
.big-stat-label {
  font-family: var(--sans);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  margin-top: 0.5rem;
}
@media (max-width: 720px) {
  .numbers-grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .big-stat { border-left: none; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 1.6rem; }
  .big-stat:first-child { border-top: none; padding-top: 0; }
}


/* ---------------- CATALOGUE TILES ---------------- */

.cat-tiles {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: clamp(4rem, 9vh, 7rem) var(--gutter);
}
.cat-tiles-head {
  text-align: center;
  margin: 0 auto clamp(2.5rem, 5vh, 4rem);
  max-width: 740px;
}
.cat-tiles-eyebrow {
  font-family: var(--serif-hand);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  color: var(--sepia);
  margin: 0 0 0.8rem;
}
.cat-tiles-h {
  font-family: var(--serif-display);
  font-weight: 300;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.012em;
}
.cat-tiles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
}
.cat-tile {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  color: var(--cream);
  isolation: isolate;
  transition: transform .5s ease;
  background: var(--ink);
}
.cat-tile--terracotta { background: var(--terracotta-deep); }
.cat-tile--moss       { background: var(--forest); }
.cat-tile--teal       { background: var(--teal-deep); }
.cat-tile-photo { position: absolute; inset: 0; z-index: -2; display: block; }
.cat-tile-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transition: transform 1.2s ease, filter .5s ease;
  filter: saturate(0.7) contrast(1.05) brightness(0.78);
}
.cat-tile-overlay { position: absolute; inset: 0; z-index: -1; transition: opacity .4s ease; }
.cat-tile--terracotta .cat-tile-overlay {
  background: linear-gradient(180deg, rgba(20,12,8,0.05) 0%, rgba(142,61,26,0.55) 60%, rgba(142,61,26,0.92) 100%);
}
.cat-tile--moss .cat-tile-overlay {
  background: linear-gradient(180deg, rgba(20,12,8,0.05) 0%, rgba(44,69,37,0.55) 60%, rgba(44,69,37,0.94) 100%);
}
.cat-tile--teal .cat-tile-overlay {
  background: linear-gradient(180deg, rgba(20,12,8,0.05) 0%, rgba(20,56,56,0.55) 60%, rgba(20,56,56,0.94) 100%);
}
.cat-tile-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: clamp(1.2rem, 2.4vw, 2rem);
  z-index: 1;
}
.cat-tile-num {
  font-family: var(--serif-hand);
  font-style: italic;
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  margin: 0 0 0.6rem;
  opacity: 0.78;
}
.cat-tile-title {
  font-family: var(--serif-display);
  font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.05;
  margin: 0 0 0.6rem;
  letter-spacing: -0.01em;
}
.cat-tile-title em { font-style: italic; font-weight: 400; }
.cat-tile-desc {
  font-family: var(--serif-body);
  font-size: 0.98rem;
  line-height: 1.5;
  margin: 0 0 1rem;
  max-width: 38ch;
  color: rgba(245, 234, 208, 0.92);
}
.cat-tile-arrow {
  font-family: var(--serif-display);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(245, 234, 208, 0.5);
  padding-bottom: 2px;
  transition: border-color .2s ease, letter-spacing .3s ease;
}
.cat-tile:hover .cat-tile-photo img { transform: scale(1.06); }
.cat-tile:hover .cat-tile-arrow { border-color: var(--cream); letter-spacing: 0.1em; }
.cat-tile:hover { color: var(--cream); }
@media (max-width: 880px) {
  .cat-tiles-grid { grid-template-columns: 1fr; }
  .cat-tile { aspect-ratio: 4 / 3; }
}


/* ---------------- FEATURED-MAG ---------------- */

.featured-mag {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--cream);
  padding: clamp(5rem, 10vh, 8rem) var(--gutter);
}
.featured-mag-photo { position: absolute; inset: 0; z-index: -2; display: block; overflow: hidden; }
.featured-mag-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  filter: saturate(0.55) brightness(0.42);
  transform: scale(1.12); transform-origin: center; will-change: transform;
}
.featured-mag-overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, rgba(20,56,56,0.7) 0%, rgba(20,12,8,0.78) 60%, rgba(142,61,26,0.55) 100%);
}
.featured-mag-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.featured-mag-info { max-width: 56ch; }
.featured-mag-eyebrow {
  font-family: var(--serif-hand);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  color: rgba(245, 234, 208, 0.7);
  margin: 0 0 1rem;
}
.featured-mag-title {
  font-family: var(--serif-display);
  font-weight: 300;
  font-size: clamp(2.2rem, 5.4vw, 4.2rem);
  line-height: 1;
  margin: 0 0 1.4rem;
  letter-spacing: -0.014em;
}
.featured-mag-title em { font-style: italic; color: var(--terracotta-light); font-weight: 400; }
.featured-mag-lede {
  font-family: var(--serif-body);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.6;
  color: rgba(245, 234, 208, 0.92);
  margin: 0 0 1.8rem;
}
.featured-mag-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem 1.4rem;
  margin: 0 0 2rem;
  padding: 1.4rem 0;
  border-top: 1px solid rgba(245, 234, 208, 0.25);
  border-bottom: 1px solid rgba(245, 234, 208, 0.25);
}
.featured-mag-specs > div { display: flex; flex-direction: column; gap: 0.2rem; }
.featured-mag-specs dt {
  font-family: var(--sans);
  text-transform: uppercase;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  color: rgba(245, 234, 208, 0.65);
}
.featured-mag-specs dd {
  margin: 0;
  font-family: var(--serif-display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 400;
  line-height: 1;
  color: var(--cream);
}
.featured-mag-specs dd small {
  font-size: 0.55em;
  font-family: var(--serif-hand);
  font-style: italic;
  color: rgba(245, 234, 208, 0.75);
  margin-left: 0.15em;
}
.featured-mag-art {
  background: rgba(245, 234, 208, 0.06);
  border: 1px solid rgba(245, 234, 208, 0.2);
  padding: clamp(1rem, 2.4vw, 2rem);
  position: relative;
}
.featured-mag-art::before, .featured-mag-art::after {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  border: 1px solid rgba(245, 234, 208, 0.55);
}
.featured-mag-art::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.featured-mag-art::after  { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.featured-mag-art .schematic { color: var(--cream); width: 100%; height: auto; }
@media (max-width: 960px) {
  .featured-mag-grid { grid-template-columns: 1fr; }
  .featured-mag-specs { grid-template-columns: repeat(2, 1fr); }
}


/* ---------------- QUOTE-MAG ---------------- */

.quote-mag {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(5rem, 12vh, 8rem) var(--gutter);
  color: var(--cream);
  text-align: center;
}
.quote-mag-photo { position: absolute; inset: 0; z-index: -2; display: block; overflow: hidden; }
.quote-mag-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  filter: grayscale(0.4) brightness(0.32);
  transform: scale(1.12); transform-origin: center; will-change: transform;
}
.quote-mag-overlay {
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at center, rgba(20,12,8,0.55), rgba(20,12,8,0.85) 70%);
}
.quote-mag-content { position: relative; max-width: 940px; margin: 0 auto; }
.quote-mag-mark {
  display: block;
  font-family: var(--serif-display);
  font-size: clamp(7rem, 14vw, 12rem);
  line-height: 0.7;
  color: var(--terracotta-light);
  opacity: 0.55;
  margin-bottom: -0.4em;
  font-style: italic;
}
.quote-mag blockquote {
  font-family: var(--serif-display);
  font-weight: 300;
  font-style: normal;
  font-size: clamp(1.6rem, 3.6vw, 2.8rem);
  line-height: 1.2;
  letter-spacing: -0.005em;
  margin: 0 0 1.6rem;
  color: var(--cream);
}
.quote-mag blockquote em {
  font-style: italic;
  color: var(--terracotta-light);
  font-weight: 400;
}
.quote-mag cite {
  display: block;
  font-family: var(--serif-hand);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.12em;
  color: rgba(245, 234, 208, 0.7);
  margin-bottom: 1.8rem;
}


/* ---------------- CONTACT-MAG ---------------- */

.contact-mag {
  background: var(--cream);
  border-top: 1px solid var(--rule);
  padding: clamp(4rem, 9vh, 7rem) var(--gutter);
}
.contact-mag-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.contact-mag-eyebrow {
  font-family: var(--serif-hand);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  color: var(--sepia);
  margin: 0 0 0.8rem;
}
.contact-mag-h {
  font-family: var(--serif-display);
  font-weight: 300;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.05;
  margin: 0 0 1.2rem;
  letter-spacing: -0.012em;
}
.contact-mag-lede {
  font-family: var(--serif-body);
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 1.6rem;
  max-width: 50ch;
}
.contact-mag-pts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}
.contact-mag-pts li {
  font-family: var(--serif-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink-soft);
  padding-left: 1.4rem;
  position: relative;
}
.contact-mag-pts li span {
  position: absolute;
  left: 0;
  color: var(--terracotta);
  font-family: var(--serif-hand);
  font-style: italic;
}
.contact-mag-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.2rem;
  background: var(--parchment-light);
  border: 1px solid var(--rule);
  padding: clamp(1.4rem, 3vw, 2.2rem);
}
.contact-mag-form .full { grid-column: 1 / -1; }
.contact-mag-form label { display: flex; flex-direction: column; gap: 0.4rem; }
.contact-mag-form span {
  font-family: var(--sans);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--sepia);
}
.contact-mag-form input,
.contact-mag-form textarea {
  font: inherit;
  font-family: var(--serif-body);
  background: var(--cream);
  color: var(--ink);
  border: 1px solid var(--rule);
  padding: 0.7rem 0.85rem;
  border-radius: 1px;
  transition: border-color .2s ease, background .2s ease;
}
.contact-mag-form input:focus,
.contact-mag-form textarea:focus {
  outline: none;
  border-color: var(--terracotta);
  background: #fff;
}
.contact-mag-form button { grid-column: 1 / -1; justify-self: start; }
@media (max-width: 880px) {
  .contact-mag-inner { grid-template-columns: 1fr; }
  .contact-mag-form { grid-template-columns: 1fr; }
}


/* =========================================================
   SUBPAGE POLISH — lift codex pages to magazine standard
   (philosophy, workshop, materials, machine plates)
   ========================================================= */

/* ---------- Page hero refresh ---------- */

/* Atmospheric backing — soft sepia wash that sits behind the hero text,
   making each subpage feel like the opening spread of a chapter. */
.page-hero {
  position: relative;
  isolation: isolate;
  padding-top: clamp(3.5rem, 8vw, 6rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 80% at 12% 30%, rgba(168, 118, 42, 0.10), transparent 60%),
    radial-gradient(ellipse 60% 70% at 92% 90%, rgba(110, 60, 30, 0.08), transparent 65%),
    linear-gradient(180deg, rgba(255, 248, 225, 0.45), transparent 90%);
  pointer-events: none;
}

/* Ornamental fleuron above the breadcrumb — sets the codex tone */
.page-hero .breadcrumb::before {
  content: '✦';
  color: var(--ochre);
  font-size: 0.85rem;
  margin-right: 0.5rem;
  opacity: 0.8;
}

/* Headline gets italic emphasis support and a deeper drop into the page */
.page-hero h1 {
  font-weight: 300;
  letter-spacing: -0.012em;
  font-size: clamp(2.8rem, 7vw, 5rem);
}
.page-hero h1 em {
  font-style: italic;
  color: var(--terracotta);
  font-weight: 400;
}

/* Lede inherits a refined drop — sepia accent rule on the left */
.page-hero .page-lede {
  position: relative;
  padding-left: 1.4rem;
  border-left: 2px solid var(--ochre);
  font-style: italic;
  color: var(--ink-soft);
  max-width: 42em;
}

/* Meta-row: nudge typography */
.page-hero .meta-row {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.page-hero .meta-row dt {
  font-style: normal;
  font-size: 0.66rem;
  color: var(--sepia);
  letter-spacing: 0.18em;
}
.page-hero .meta-row dd {
  font-family: var(--serif-display);
  text-transform: none;
  font-size: 1.05rem;
  letter-spacing: 0;
  font-weight: 500;
  margin-top: 0.15rem;
}

/* Folio mark — push it to feel like a manuscript foliation */
.page-hero .folio {
  font-size: 1rem;
  letter-spacing: 0.22em;
}


/* ---------- Full-plate frame: deeper paper, stronger corners ---------- */

.full-plate-frame {
  background:
    linear-gradient(180deg, rgba(255, 248, 225, 0.85) 0%, rgba(241, 230, 204, 0.5) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 24px 50px -32px rgba(60, 30, 12, 0.32),
    0 1px 0 rgba(60, 30, 12, 0.08);
  border-color: rgba(60, 30, 12, 0.22);
}
.full-plate-frame::before,
.full-plate-frame::after {
  width: 22px; height: 22px;
  border-color: var(--sepia);
  border-width: 1.4px;
}
/* Tiny calligraphic plate caption strip — subtle bottom rule */
.full-plate-frame {
  padding-bottom: clamp(2rem, 4vw, 3rem);
}


/* ---------- Article-grid: dignified side rail ---------- */

.article-side {
  padding-left: 1.2rem;
  border-left: 1px solid var(--rule);
}
.article-side .marker {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  color: var(--terracotta);
  text-transform: uppercase;
}
.article-side h2 {
  font-weight: 300;
  letter-spacing: -0.008em;
}
@media (max-width: 880px) {
  .article-side {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--rule);
    padding-top: 1.2rem;
  }
}

/* Body refinements: drop-cap on first paragraph */
.article-body p:first-of-type::first-letter {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: 3.6em;
  line-height: 0.85;
  float: left;
  padding: 0.05em 0.12em 0 0;
  color: var(--terracotta);
  font-style: italic;
}
.article-body blockquote {
  border-left-color: var(--terracotta);
}
.article-body blockquote::before {
  content: '"';
  display: block;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 3.4rem;
  line-height: 0.4;
  color: var(--terracotta);
  opacity: 0.55;
  margin: 0.2em 0 0.3em -0.2em;
}


/* ---------- Pagination: ornamental footer ---------- */

.pagination {
  position: relative;
  padding-top: 4rem;
  padding-bottom: 6rem;
  border-top: none;
}
.pagination::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(80%, 720px);
  height: 1px;
  background:
    linear-gradient(90deg, transparent, var(--rule-strong) 30%, var(--rule-strong) 70%, transparent);
}
.pagination::after {
  content: '✦';
  position: absolute;
  top: -0.7em;
  left: 50%;
  transform: translateX(-50%);
  background: var(--parchment);
  padding: 0 0.6em;
  color: var(--ochre);
  font-size: 0.95rem;
}
.pagination a {
  background: rgba(255, 248, 225, 0.55);
  border-color: rgba(60, 30, 12, 0.18);
  padding: 1.6rem 1.8rem;
}
.pagination a:hover {
  background: var(--parchment-light);
  border-color: var(--terracotta);
  box-shadow: 0 14px 30px -18px rgba(60, 30, 12, 0.4);
}
.pagination .label {
  text-transform: lowercase;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
}
.pagination .title {
  font-family: var(--serif-display);
  font-weight: 300;
  font-size: 1.4rem;
  letter-spacing: -0.005em;
}
.pagination .title em { font-style: italic; color: var(--terracotta); font-weight: 400; }


/* ---------- Machine-block / machine-art: depth & restraint ---------- */

.machine-block {
  position: relative;
}
.machine-block + .machine-block::before {
  content: '✦';
  display: block;
  text-align: center;
  font-size: 0.95rem;
  color: var(--ochre);
  opacity: 0.7;
  margin: 0.6rem 0 2rem;
}
.machine-info .marker {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.16em;
  color: var(--terracotta);
  text-transform: uppercase;
}
.machine-info h2 {
  font-weight: 300;
  letter-spacing: -0.012em;
}
.machine-info h2 em { font-style: italic; color: var(--terracotta); font-weight: 400; }


/* ---------- Compare-table polish (materials.html) ---------- */

.compare-table {
  border: 1px solid var(--rule);
  background: rgba(255, 248, 225, 0.4);
}
.compare-table thead th {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}
.compare-table tbody tr:nth-child(even) {
  background: rgba(255, 248, 225, 0.55);
}
.compare-table tbody tr:hover {
  background: rgba(232, 153, 112, 0.18);
}
.compare-table .highlight {
  color: var(--terracotta);
  font-weight: 500;
}


/* ---------- Catalog-divider / cd numerals (workshop.html) ---------- */

.catalog-divider {
  position: relative;
  text-align: center;
  margin: clamp(3rem, 6vw, 5rem) 0;
}
.cd-num {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  color: var(--terracotta);
  letter-spacing: 0.08em;
  line-height: 1;
}
.cd-title {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  margin-top: 0.4rem;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.cd-blurb {
  font-family: var(--serif-hand);
  font-style: italic;
  color: var(--sepia);
  margin-top: 0.5rem;
  font-size: 1rem;
  letter-spacing: 0.04em;
}


/* ---------- Specs-large (machine plates) ---------- */

.specs-large {
  border: 1px solid var(--rule);
  background: rgba(255, 248, 225, 0.45);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  position: relative;
}
.specs-large .spec-group h4 {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 400;
  color: var(--terracotta);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.4rem;
  margin: 0 0 0.8rem;
}
.specs-large dt {
  font-family: var(--sans);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--sepia);
}
.specs-large dd {
  font-family: var(--serif-display);
  font-size: 1.1rem;
  color: var(--ink);
}


/* ---------- Process-steps (materials.html) ---------- */

.process-steps > li::before {
  background: var(--terracotta);
  color: var(--cream);
  font-family: var(--serif-display);
  font-style: italic;
}
.process-steps h4 {
  font-family: var(--serif-display);
  font-weight: 400;
  letter-spacing: -0.005em;
}


/* ---------- Location-card (materials.html) ---------- */

.location-card {
  border: 1px solid var(--rule);
  background: rgba(255, 248, 225, 0.45);
  padding: 1.2rem 1.4rem;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.location-card:hover {
  border-color: var(--moss);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -16px rgba(44, 69, 37, 0.4);
}
.location-card .coord {
  font-family: var(--serif-hand);
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--moss);
  margin-bottom: 0.3rem;
}


/* ---------- Continue-link footer-tag ---------- */

.continue-link a {
  font-family: var(--serif-display);
  font-style: italic;
  color: var(--terracotta);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color .2s ease;
}
.continue-link a:hover { color: var(--terracotta-deep); }


/* ---------- "Inspired by" lineage block (workshop machine cards) ---------- */

.inspired-by {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 1rem;
  align-items: start;
  margin: 1.6rem 0 0;
  padding: 1.2rem 0 0;
  border-top: 1px solid var(--rule);
}
.inspired-by img {
  width: 88px;
  height: 110px;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--rule);
  background: var(--parchment-light);
  filter: saturate(0.85) contrast(1.05);
}
.inspired-by figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
}
.inspired-by .label {
  font-family: var(--serif-hand);
  font-style: italic;
  color: var(--terracotta);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: lowercase;
}
.inspired-by .title {
  font-family: var(--serif-display);
  font-weight: 500;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.25;
}
.inspired-by .note {
  font-family: var(--serif-body);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}
@media (max-width: 600px) {
  .inspired-by { grid-template-columns: 64px 1fr; gap: 0.8rem; }
  .inspired-by img { width: 64px; height: 80px; }
}


/* =========================================================
   SUBPAGE CINEMATIC LAYER — same vibe as the home page
   Full-bleed photo hero, viewport-scaling sections,
   parchment bands that breathe to wide screens.
   ========================================================= */

/* extra-wide containers for scaling on large monitors */
:root {
  --max-xl: min(1680px, 94vw);
}

/* page-sub: dark backdrop outside main, parchment inside */
body.page-sub { background: var(--ink); }
body.page-sub main { background: var(--parchment); position: relative; }

/* Per-page hero photos */
body.page-philosophy { --page-hero-photo: url('https://commons.wikimedia.org/wiki/Special:FilePath/Leonardo_da_Vinci_-_RCIN_912657%2C_Notes_on_bird_flight_c.1511-13.jpg?width=2400'); }
body.page-workshop   { --page-hero-photo: url('https://commons.wikimedia.org/wiki/Special:FilePath/Codex_Madrid_I%2C_folio_031_recto.jpg?width=2400'); }
body.page-materials  { --page-hero-photo: url('https://commons.wikimedia.org/wiki/Special:FilePath/Paisagem_do_Arno_-_Leonardo_da_Vinci.jpg?width=2400'); }
body.page-corvus     { --page-hero-photo: url('https://commons.wikimedia.org/wiki/Special:FilePath/Leonardo_da_Vinci_helicopter_and_lifting_wing.jpg?width=2400'); }
body.page-ornitos    { --page-hero-photo: url('https://commons.wikimedia.org/wiki/Special:FilePath/Leonardo_Design_for_a_Flying_Machine%2C_c._1488.jpg?width=2400'); }
body.page-vitruvius  { --page-hero-photo: url('https://commons.wikimedia.org/wiki/Special:FilePath/Da_Vinci_Vitruve_Luc_Viatour.jpg?width=2400'); }
body.page-sagitta    { --page-hero-photo: url('https://commons.wikimedia.org/wiki/Special:FilePath/Da_Vinci_codex_du_vol_des_oiseaux_Luc_Viatour.jpg?width=2400'); }


/* ---------- Full-bleed cinematic hero on every subpage ---------- */

body.page-sub .page-hero {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(7rem, 16vh, 12rem) var(--gutter) clamp(3.5rem, 8vh, 6.5rem);
  min-height: clamp(60vh, 72vh, 78vh);
  min-height: clamp(60svh, 72svh, 78svh);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
  overflow: hidden;
  color: var(--cream);
  background: var(--ink);
}
/* photo backdrop */
body.page-sub .page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--page-hero-photo, none);
  background-size: cover;
  background-position: center calc(50% + var(--shift-y, 0px));
  filter: saturate(0.7) contrast(1.05) brightness(0.55);
  will-change: background-position;
  animation: heroSlowZoom 22s ease-out forwards;
}
/* gradient overlay */
body.page-sub .page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(20,12,8,0.55) 0%, rgba(20,12,8,0.18) 35%, rgba(20,12,8,0.85) 100%),
    radial-gradient(ellipse at 18% 80%, rgba(20,12,8,0.5), transparent 60%);
}
/* constrain inner content but let the band itself bleed */
body.page-sub .page-hero > * {
  position: relative;
  z-index: 1;
  max-width: var(--max-xl);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Hero typography on subpages */
body.page-sub .page-hero .breadcrumb {
  color: rgba(245, 234, 208, 0.78);
  margin-bottom: 1.6rem;
  font-size: 1rem;
}
body.page-sub .page-hero .breadcrumb a { color: rgba(245, 234, 208, 0.78); }
body.page-sub .page-hero .breadcrumb a:hover { color: var(--cream); }
body.page-sub .page-hero .breadcrumb .here { color: var(--cream); }
body.page-sub .page-hero .breadcrumb .sep { color: rgba(245, 234, 208, 0.5); }
body.page-sub .page-hero .breadcrumb::before { color: var(--terracotta-light); }

body.page-sub .page-hero .folio {
  color: rgba(245, 234, 208, 0.7);
  letter-spacing: 0.24em;
  font-size: 1rem;
  margin-bottom: 1.2rem;
}

body.page-sub .page-hero h1 {
  color: var(--cream);
  font-family: var(--serif-display);
  font-weight: 300;
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: 0.94;
  letter-spacing: -0.018em;
  margin: 0 0 1.6rem;
  max-width: 22ch;
}
body.page-sub .page-hero h1 em {
  font-style: italic;
  color: var(--terracotta-light);
  font-weight: 400;
}
/* h1.display (workshop) — even larger */
body.page-sub .page-hero h1.display {
  font-size: clamp(3.4rem, 11vw, 9rem);
}

body.page-sub .page-hero .page-lede {
  color: rgba(245, 234, 208, 0.92);
  font-style: italic;
  border-left: 2px solid rgba(245, 234, 208, 0.4);
  padding-left: 1.4rem;
  max-width: 60ch;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.55;
  margin: 0 0 2rem;
}

body.page-sub .page-hero .meta-row {
  border-top: 1px solid rgba(245, 234, 208, 0.25);
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  gap: clamp(2rem, 4vw, 4rem);
}
body.page-sub .page-hero .meta-row dt {
  color: rgba(245, 234, 208, 0.6);
  font-family: var(--sans);
  text-transform: uppercase;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  font-style: normal;
}
body.page-sub .page-hero .meta-row dd {
  color: var(--cream);
  font-family: var(--serif-display);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0;
}

/* clear the soft tint from the polish layer (it's now a photo) */
body.page-sub .page-hero { padding-top: clamp(7rem, 16vh, 12rem); }
body.page-sub .page-hero > .breadcrumb,
body.page-sub .page-hero > .folio,
body.page-sub .page-hero > h1,
body.page-sub .page-hero > .page-lede,
body.page-sub .page-hero > .meta-row { /* re-anchored above already */ }


/* ---------- Full-plate becomes a full-bleed parchment band ---------- */

body.page-sub .full-plate {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(4rem, 9vh, 7rem) var(--gutter);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(168, 118, 42, 0.10), transparent 60%),
    var(--parchment);
  border-bottom: 1px solid var(--rule);
}
body.page-sub .full-plate-frame {
  max-width: var(--max-xl);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem);
  background:
    linear-gradient(180deg, rgba(255, 248, 225, 0.92) 0%, rgba(241, 230, 204, 0.6) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 36px 80px -42px rgba(60, 30, 12, 0.45),
    0 1px 0 rgba(60, 30, 12, 0.08);
}
body.page-sub .full-plate-frame::before,
body.page-sub .full-plate-frame::after {
  width: 28px; height: 28px;
  border-width: 1.6px;
  top: -14px; left: -14px;
}
body.page-sub .full-plate-frame::after {
  top: auto; left: auto; bottom: -14px; right: -14px;
}
body.page-sub .full-plate-frame .schematic {
  max-height: 72vh;
}


/* ---------- Article container scales to wide screens ---------- */

body.page-sub .article {
  max-width: var(--max-xl);
  padding-top: clamp(4rem, 8vh, 6rem);
  padding-bottom: clamp(4rem, 8vh, 6rem);
}
body.page-sub .article-grid {
  grid-template-columns: 1fr 2.6fr;
  gap: clamp(2.4rem, 6vw, 6rem);
}
body.page-sub .article-body {
  font-size: clamp(1.05rem, 1.2vw, 1.18rem);
  line-height: 1.8;
  max-width: 42em;
}
body.page-sub .article-side h2 {
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.012em;
}
body.page-sub .article-side .marker {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
}
body.page-sub .article-body h3 {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
}


/* alternate article band — give every other article a soft cream wash */
body.page-sub article.article:nth-of-type(even) {
  background: var(--cream);
}
body.page-sub article.article {
  width: 100%;
  max-width: none;
  border-top: none;
}
body.page-sub article.article > * {
  max-width: var(--max-xl);
  margin-left: auto;
  margin-right: auto;
}
/* keep grid as a direct child max-width */
body.page-sub article.article .article-grid {
  max-width: var(--max-xl);
  margin: 0 auto;
}


/* ---------- Workshop-detail: scale to wide screens ---------- */

body.page-sub .workshop-detail {
  max-width: var(--max-xl);
  padding-top: clamp(4rem, 8vh, 6rem);
  padding-bottom: clamp(4rem, 8vh, 6rem);
}
body.page-sub .machine-block-grid {
  gap: clamp(2rem, 5vw, 5rem);
}
body.page-sub .machine-info h2 {
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  font-weight: 300;
}


/* ---------- Pagination becomes a parchment band ---------- */

body.page-sub .pagination {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(4rem, 8vh, 6rem) var(--gutter) clamp(5rem, 10vh, 8rem);
  background: var(--cream);
  border-top: 1px solid var(--rule);
  position: relative;
}
body.page-sub .pagination > * {
  max-width: var(--max-xl);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
body.page-sub .pagination::after {
  background: var(--cream);
}


/* ---------- Site-footer on subpages: dark band to close the page ---------- */

body.page-sub .site-footer {
  background: var(--ink);
  color: var(--cream);
  border-top: none;
  padding: clamp(3rem, 6vh, 5rem) var(--gutter);
}
body.page-sub .site-footer .footer-brand,
body.page-sub .site-footer .footer-meta { color: var(--cream); }
body.page-sub .site-footer .footer-brand strong { color: var(--cream); }
body.page-sub .site-footer .footer-brand em { color: rgba(245, 234, 208, 0.7); }
body.page-sub .site-footer .footer-meta .muted { color: rgba(245, 234, 208, 0.55); }
body.page-sub .site-footer .footer-links a { color: rgba(245, 234, 208, 0.78); }
body.page-sub .site-footer .footer-links a:hover { color: var(--terracotta-light); }
body.page-sub .site-footer .footer-inner { max-width: var(--max-xl); }


/* ---------- Header: stay overlay throughout subpage scroll ---------- */

/* The site-header-overlay is `position: absolute` (set in magazine block).
   On subpages we want it sticky-but-translucent once the user scrolls past
   the hero, so it remains usable on long pages. Make it sticky with a
   conditional smoke background. */
body.page-sub .site-header-overlay {
  position: sticky;
  top: 0;
  background: rgba(20, 12, 8, 0.0);
  transition: background .3s ease, backdrop-filter .3s ease;
}
body.page-sub .site-header-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 12, 8, 0.45), transparent);
  pointer-events: none;
  z-index: -1;
}


/* ---------- Catalog dividers (workshop) on the dark band ---------- */

body.page-sub .catalog-divider {
  margin-top: clamp(4rem, 8vh, 6rem);
  margin-bottom: clamp(2rem, 4vh, 3.5rem);
}


/* ---------- Section dividers — full-bleed cream ↔ parchment rhythm ---------- */

/* For materials/workshop, bands beyond `.article` should also breathe wide */
body.page-sub .workshop-detail,
body.page-sub .article {
  width: 100%;
  max-width: none;
}
body.page-sub .workshop-detail > *,
body.page-sub .article > .article-grid {
  max-width: var(--max-xl);
  margin-left: auto;
  margin-right: auto;
}
body.page-sub .workshop-detail.reversed { background: var(--cream); }


/* ---------- Mobile cleanup ---------- */

@media (max-width: 880px) {
  body.page-sub .page-hero {
    min-height: 80vh;
    min-height: 80svh;
    padding-top: 7rem;
  }
  body.page-sub .page-hero h1 { font-size: clamp(2.6rem, 12vw, 4.4rem); }
  body.page-sub .page-hero .meta-row { gap: 1.4rem 2rem; }
  body.page-sub .article-grid { grid-template-columns: 1fr; }
}


/* =========================================================
   SPACING RHYTHM PASS — consistent vertical tokens across
   home + subpages, plus hero overlap fixes.
   ========================================================= */

:root {
  --pad-section-sm: clamp(2.5rem, 5vh, 4rem);
  --pad-section:    clamp(3.5rem, 7vh, 5.5rem);
  --pad-section-lg: clamp(5rem, 10vh, 7.5rem);
  --pad-frame:      clamp(1.6rem, 3.6vw, 3rem);
  --gap-stack:      clamp(1.2rem, 2vh, 1.8rem);
}

/* Home magazine sections */
.numbers-band  { padding: var(--pad-section-sm) var(--gutter); }
.cat-tiles     { padding: var(--pad-section-lg) var(--gutter); }
.featured-mag  { padding: var(--pad-section-lg) var(--gutter); }
.quote-mag     { padding: var(--pad-section-lg) var(--gutter); }
.contact-mag   { padding: var(--pad-section) var(--gutter); }

/* Subpage sections */
body.page-sub .full-plate   { padding: var(--pad-section) var(--gutter); }
body.page-sub .article      { padding: var(--pad-section) var(--gutter); }
body.page-sub .workshop-detail { padding: var(--pad-section) var(--gutter); }
body.page-sub .pagination   { padding: var(--pad-section-lg) var(--gutter); }

/* Frame insets */
.full-plate-frame                    { padding: var(--pad-frame); }
body.page-sub .full-plate-frame      { padding: var(--pad-frame); }


/* ---------- Hero meta moves in-flow (no overlap risk) ---------- */

.hero-mag {
  /* keep the visual order but let meta + scroll be flow children */
  align-items: flex-start;
  flex-direction: column;
  justify-content: flex-end;
}
.hero-mag-content {
  margin-top: auto; /* push content + meta to the bottom of the band */
}
.hero-mag-meta {
  position: static;
  margin-top: 2.4rem;
  padding-left: 0;
  padding-top: 1.6rem;
  border-left: none;
  border-top: 1px solid rgba(245, 234, 208, 0.25);
  width: 100%;
  max-width: 920px;
  justify-content: flex-start;
  gap: clamp(2rem, 4vw, 3.5rem);
}


/* ---------- Subpage hero: balanced top/bottom whitespace ---------- */

body.page-sub .page-hero {
  /* breathing room above content (header floats), and below */
  padding-top: clamp(8rem, 18vh, 13rem);
  padding-bottom: clamp(4rem, 8vh, 6.5rem);
  min-height: clamp(58vh, 68vh, 74vh);
  min-height: clamp(58svh, 68svh, 74svh);
  justify-content: center;
}
body.page-sub .page-hero > * {
  /* re-anchor — these are flex-children, max width restored */
  max-width: var(--max-xl);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
body.page-sub .page-hero .breadcrumb { margin-bottom: 1.4rem; }
body.page-sub .page-hero .folio      { margin-bottom: 1rem; }
body.page-sub .page-hero h1          { margin-bottom: 1.4rem; }
body.page-sub .page-hero .page-lede  { margin-bottom: 0; }
body.page-sub .page-hero .meta-row   { margin-top: 2.2rem; padding-top: 1.4rem; }


/* ---------- Article body: tighter vertical rhythm ---------- */

body.page-sub .article-body p { margin: 0 0 1.1rem; }
body.page-sub .article-body h3 { margin: 2rem 0 0.6rem; }
body.page-sub .article-body blockquote { margin: 1.6rem 0; }


/* ---------- Specs-large breathing ---------- */

body.page-sub .specs-large { padding: var(--pad-frame); }


/* ---------- Component grid spacing ---------- */

body.page-sub .component-grid { gap: clamp(1rem, 2vw, 1.6rem); margin-top: 1rem; }


/* ---------- Featured-mag spec block: tighten ---------- */

.featured-mag-specs { padding: 1.2rem 0; margin: 0 0 1.6rem; }


/* ---------- Footer spacing ---------- */

.site-footer { padding: var(--pad-section) var(--gutter); }
body.page-sub .site-footer { padding: var(--pad-section) var(--gutter); }


/* ---------- Mobile collapses keep rhythm ---------- */

@media (max-width: 880px) {
  :root {
    --pad-section-sm: 2rem;
    --pad-section:    3rem;
    --pad-section-lg: 4rem;
  }
  .hero-mag-meta { margin-top: 1.8rem; padding-top: 1.2rem; }
  body.page-sub .page-hero { padding-top: 6rem; padding-bottom: 3rem; }
}


/* =========================================================
   TARGET CURSOR — vanilla port of React Bits TargetCursor.
   Spinning corner-bracket cursor that snaps to interactive
   elements (a, button, .btn, .cat-tile, .machine-art,
   .featured-mag-art, .cursor-target).
   ========================================================= */

/* Hide the native cursor while the target cursor is mounted.
   Keep the text I-beam on form inputs so typing isn't surprising. */
body.has-target-cursor,
body.has-target-cursor * { cursor: none; }
body.has-target-cursor input,
body.has-target-cursor textarea,
body.has-target-cursor [contenteditable="true"] { cursor: text; }

.target-cursor-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  opacity: 1;
  transition: opacity 0.18s ease;
  /* subtle halo so the cursor reads on both parchment and photo backdrops */
  filter: drop-shadow(0 1px 2px rgba(20, 12, 8, 0.45));
  color: var(--terracotta);
}

.target-cursor-spinner {
  position: absolute;
  inset: 0;
  width: 0;
  height: 0;
  animation: target-cursor-spin 2s linear infinite;
  will-change: transform;
}
.target-cursor-wrapper.is-locked .target-cursor-spinner {
  /* Snap rotation to 0 when locking onto a target so corner translates
     read in screen-aligned coordinates instead of the rotated frame. */
  animation: none;
  transform: rotate(0deg);
}

@keyframes target-cursor-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.target-cursor-dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  margin-top: -2px;
  background: currentColor;
  border-radius: 50%;
  transition: transform 0.18s ease-out;
  will-change: transform;
}

.target-cursor-corner {
  position: absolute;
  left: 0;
  top: 0;
  width: 12px;
  height: 12px;
  border: 3px solid currentColor;
  transition: transform 0.18s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: transform;
}
.target-cursor-corner.tl { border-right: none; border-bottom: none; }
.target-cursor-corner.tr { border-left:  none; border-bottom: none; }
.target-cursor-corner.br { border-left:  none; border-top:    none; }
.target-cursor-corner.bl { border-right: none; border-top:    none; }

/* Press feedback */
.target-cursor-wrapper.is-pressed .target-cursor-spinner { transform: scale(0.9); }
.target-cursor-wrapper.is-pressed.is-locked .target-cursor-spinner { transform: rotate(0deg) scale(0.9); }
.target-cursor-wrapper.is-pressed .target-cursor-dot { transform: scale(0.7); }
