/* De Wynter Audio: home page mock-up. Brown only, no serif. */

@font-face {
  font-family: "Brown";
  src: url("assets/fonts/brown-regular-5.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "Brown";
  src: url("assets/fonts/brown-bold-6.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: block;
}

:root {
  --paper: #F8F6F2;      /* warm paper white */
  --oat: #ECE6DC;        /* linen / oat band */
  --ink: #26221E;        /* warm near-black */
  --ink-soft: #5E574F;   /* secondary text */
  --timber: #8A5A34;     /* accent, sparingly */
  --hair: #D9D1C4;       /* hairline on light */
  --dark: #2A2521;       /* dark band */
  --on-dark: #F1ECE4;
  --on-dark-soft: #B5AB9C;
  --hair-dark: #4A423B;

  --font: "Brown", sans-serif;
  --track: 0.18em;
  --gutter: clamp(20px, 5vw, 80px);
  --max: 1320px;
  --band: clamp(72px, 10vw, 136px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Labels: small letter-spaced caps */
.label {
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
}
.label--timber { color: var(--timber); }

/* Text links: quiet, underline on hover */
.tlink {
  display: inline-block;
  font-size: 13px;
  letter-spacing: var(--track);
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
}
.tlink:hover { border-bottom-color: transparent; }

/* Thin-border button, inverts on hover */
.btn {
  display: inline-block;
  font: inherit;
  font-size: 13px;
  letter-spacing: var(--track);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  padding: 15px 30px;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.band--dark .btn { color: var(--on-dark); border-color: var(--on-dark); }
.band--dark .btn:hover { background: var(--on-dark); color: var(--dark); }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--hair); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 84px; gap: 32px;
}
.wordmark {
  font-size: 15px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(18px, 2.2vw, 34px); }
.nav a {
  font-size: 12px; letter-spacing: var(--track); text-transform: uppercase;
  text-decoration: none; white-space: nowrap; padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover { border-bottom-color: var(--ink); }
.menu-btn { display: none; }

@media (max-width: 1080px) {
  .menu-btn {
    display: inline-block; font: inherit; font-size: 12px; letter-spacing: var(--track);
    text-transform: uppercase; background: none; border: 1px solid var(--ink);
    color: var(--ink); padding: 9px 14px; cursor: pointer;
  }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 85px; background: var(--paper);
    border-bottom: 1px solid var(--hair); z-index: 20; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 24px; }
  .nav li { border-top: 1px solid var(--hair); }
  .nav a { display: block; padding: 16px 0; font-size: 13px; }
  .site-header { position: relative; }
}

/* ---------- Bands ---------- */
.band { padding: var(--band) 0; }
.band--oat { background: var(--oat); }
.band--dark { background: var(--dark); color: var(--on-dark); }
.band--dark .label { color: var(--on-dark-soft); }

.h2 {
  font-weight: 400;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 18em;
}
.h3 {
  font-weight: 400;
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0;
}
.body { max-width: 34em; margin: 0; }
.body + .body { margin-top: 1em; }
.soft { color: var(--ink-soft); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(56px, 8vw, 112px); }
.hero__text { display: grid; gap: 24px; }
.hero__headline { max-width: 11em; }
.hero__headline {
  font-weight: 400;
  font-size: clamp(44px, 6.4vw, 92px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin: 0;
}
.hero__support {
  font-size: clamp(19px, 1.6vw, 22px);
  line-height: 1.45;
  color: var(--ink-soft);
  margin: 0;
  max-width: 30em;
}
.hero__figure { margin: clamp(48px, 7vw, 96px) 0 0; }
.hero__figure .wrap { position: relative; }
.hero__img {
  width: 100%; height: auto;
  mix-blend-mode: multiply;
}
.floor { border-top: 1px solid var(--ink); }
.figcap {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding-top: 16px; padding-bottom: clamp(48px, 6vw, 80px);
}

/* ---------- Belief ---------- */
.belief { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: start; }
.belief__body { display: grid; gap: 32px; }
.belief__lead {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 20em;
}

/* ---------- Routes ---------- */
.section-head { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; margin-bottom: clamp(48px, 6vw, 80px); }
.routes { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--hair); }
.route { padding: 48px 0 0; display: grid; gap: 20px; align-content: start; }
.route:first-child { padding-right: clamp(24px, 4vw, 64px); border-right: 1px solid var(--hair); }
.route:last-child { padding-left: clamp(24px, 4vw, 64px); }
.route__pic {
  height: clamp(320px, 34vw, 460px);
  display: flex; align-items: flex-end; justify-content: center;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 12px;
}
.route__pic img { height: 100%; width: auto; mix-blend-mode: multiply; }
.route__pic svg { height: 92%; width: auto; }
.route__title { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }

/* ---------- Steps ---------- */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--ink);
}
.step { padding: 24px 20px 8px 0; display: grid; gap: 18px; align-content: start; }
.step + .step { border-left: 1px solid var(--hair); padding-left: 20px; }
.step svg { width: 64px; height: 64px; }
.step__name { font-size: 18px; line-height: 1.3; margin: 0; }
.steps-foot { margin-top: 48px; }

/* ---------- Projects ---------- */
.projects { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); }
.project { display: grid; gap: 18px; align-content: start; text-decoration: none; }
.project__pic {
  aspect-ratio: 4 / 3;
  background: var(--paper);
  border: 1px solid var(--hair);
  display: flex; align-items: center; justify-content: center;
  padding: 8%;
}
.project__pic img { max-height: 100%; width: auto; mix-blend-mode: multiply; }
.project__pic svg { height: 100%; width: auto; }
.project__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  border-top: 1px solid var(--ink); padding-top: 14px; }
.project:hover .h3 { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

/* ---------- Proof ---------- */
.proof { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: start; }
.proof__text { display: grid; gap: 24px; }
.chart { width: 100%; height: auto; }
.chart text { font-family: var(--font); font-size: 12px; fill: var(--ink-soft); letter-spacing: 0.04em; }
.legend { display: flex; gap: 10px 28px; flex-wrap: wrap; margin-top: 18px; font-size: 14px; color: var(--ink-soft); }
.legend span { display: inline-flex; align-items: center; gap: 10px; }
.legend i { display: inline-block; width: 28px; height: 0; border-top: 1.5px solid; }
.legend .k-before { border-top: 1.5px dashed var(--ink-soft); }
.legend .k-after { border-color: var(--timber); }
.legend .k-target { height: 10px; border: 0; background: rgba(217, 209, 196, .9); }
.chart-cap { margin-top: 20px; }

/* ---------- Enquiry ---------- */
.enquiry { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; align-items: end; }
.enquiry .body { color: var(--on-dark-soft); margin-top: 20px; }
.enquiry__act { justify-self: end; }

/* ---------- Footer ---------- */
.site-footer { padding: 64px 0 48px; }
.foot-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
.foot-nav { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, auto); gap: 14px 32px; justify-content: start; }
.foot-nav a { font-size: 12px; letter-spacing: var(--track); text-transform: uppercase; text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-base { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--hair); display: flex; gap: 32px; flex-wrap: wrap; }
.foot-base a { text-decoration: none; border-bottom: 1px solid var(--hair); }

/* ---------- Pictures: line drawings or design renders ---------- */
.render-only { display: none !important; }
body.lead-render .render-only { display: revert !important; }
body.lead-render .line-only { display: none !important; }
.hero__render { display: block; width: 100%; height: auto; }
body.lead-render img.hero__render { display: block !important; }
body.lead-render .route__pic { align-items: stretch; border-bottom: 0; }
body.lead-render .route__pic { height: auto; aspect-ratio: 4 / 5; margin-bottom: 0; }
.pic-cap { margin: 0; }
body.lead-render .project__pic { aspect-ratio: 3 / 2; min-height: 0; overflow: hidden; }
body.lead-render .project__pic:has(.pic-render) { padding: 0; border: 0; }
.project__pic svg { max-height: 100%; }
body.lead-render img.pic-render {
  display: block !important;
  width: 100%; height: 100%;
  object-fit: cover; mix-blend-mode: normal; max-height: none;
}

/* ---------- Review control (not part of the design) ---------- */
.review.review--pics { bottom: 62px; }
.review .review__wide { width: auto; padding: 0 10px; letter-spacing: 0.12em; }

.review {
  position: fixed; right: 16px; bottom: 16px; z-index: 50;
  display: flex; align-items: center; gap: 4px;
  background: var(--paper); border: 1px solid var(--hair);
  padding: 6px 6px 6px 12px;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft);
}
.review span { margin-right: 6px; }
.review button {
  font: inherit; letter-spacing: 0; width: 28px; height: 28px;
  border: 1px solid transparent; background: none; color: var(--ink-soft); cursor: pointer;
}
.review button[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step:nth-child(4) { border-left: 0; padding-left: 0; }
  .step:nth-child(n+4) { border-top: 1px solid var(--hair); }
}
@media (max-width: 760px) {
  body { font-size: 18px; }
  .belief, .section-head, .proof, .enquiry, .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .routes { grid-template-columns: 1fr; }
  .route:first-child { padding-right: 0; border-right: 0; padding-bottom: 56px; border-bottom: 1px solid var(--hair); }
  .route:last-child { padding-left: 0; }
  .route__pic { height: 340px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step, .step + .step { border-left: 0; padding: 22px 12px 22px 0; border-top: 1px solid var(--hair); }
  .step:nth-child(even) { border-left: 1px solid var(--hair); padding-left: 16px; }
  .step:nth-child(-n+2) { border-top: 0; }
  .projects { grid-template-columns: 1fr; gap: 56px; }
  .enquiry__act { justify-self: start; }
  .chart text { font-size: 22px; }
  .hero__figure > .wrap:first-child { padding: 0 8px; }
  .foot-nav { grid-template-columns: repeat(2, auto); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ===== Inner pages ===== */
/* Added 28 Nov 2026 for the 14 inner pages. Every selector below is new and none of them
   matches anything on the home page, so index.html renders exactly as before. */

/* Current page in the header and footer */
.nav a[aria-current] { border-bottom-color: var(--ink); }
.foot-nav a[aria-current] { text-decoration: underline; text-underline-offset: 4px; }
.foot-base a[aria-current] { border-bottom-color: var(--ink); }

/* Page intro: kicker, H1, lead */
.pg-intro { padding: clamp(56px, 8vw, 112px) 0 clamp(64px, 8vw, 112px); }
.pg-intro__text { display: grid; gap: 24px; align-content: end; }
.pg-h1 {
  font-weight: 400;
  font-size: clamp(40px, 5.2vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0;
  max-width: 13em;
}
.pg-h1--article { font-size: clamp(36px, 4.2vw, 58px); line-height: 1.06; }
.pg-lead {
  font-size: clamp(19px, 1.6vw, 22px);
  line-height: 1.45;
  color: var(--ink-soft);
  margin: 0;
  max-width: 30em;
}
.pg-hero { margin: clamp(48px, 7vw, 96px) 0 0; }
.pg-intro--split .pg-intro__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: end;
}
.pg-steps-index { margin-top: clamp(48px, 6vw, 80px); }
.pg-steps-index .step__name a { text-decoration: none; border-bottom: 1px solid var(--hair); }
.pg-steps-index .step__name a:hover { border-bottom-color: var(--ink); }

/* Section body on the home page's 1fr / 2fr grid: rail on the left, content on the right */
.pg-cols { display: grid; grid-template-columns: 1fr 2fr; column-gap: 48px; align-items: start; }
.pg-side { grid-column: 1; display: grid; gap: 18px; align-content: start; }
.pg-side svg { width: 64px; height: 64px; }
.pg-main { grid-column: 2; min-width: 0; }
.pg-main > * + * { margin-top: 24px; }
.pg-main > .pg-fig, .pg-main > .pg-figs { margin-top: clamp(40px, 5vw, 64px); }
.pg-main > .pg-sublabel { margin-top: 40px; }
.pg-main > .pg-sublabel + .pg-list { margin-top: 14px; }
.pg-main > .pg-more { margin-top: 40px; }
.pg-measure { max-width: 34em; }
.pg-measure > .h3 { margin-top: 56px; }
.pg-measure > .h3 + .body { margin-top: 16px; }

/* Pictures: every box has a fixed shape, so a missing file never collapses the layout */
.pg-fig { margin: 0; }
.pg-fig--narrow { max-width: 560px; }
.pic { position: relative; overflow: hidden; background: var(--hair); }
.pic > img,
.pic > a.fig-open > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pic--fit { background: var(--paper); border: 1px solid var(--hair); }
.pic--fit > img,
.pic--fit > a.fig-open > img { inset: 6%; width: 88%; height: 88%; object-fit: contain; mix-blend-mode: multiply; }
.r-1x1 { aspect-ratio: 1 / 1; }
.r-4x5 { aspect-ratio: 4 / 5; }
.r-4x3 { aspect-ratio: 4 / 3; }
.r-3x2 { aspect-ratio: 3 / 2; }
.r-16x10 { aspect-ratio: 16 / 10; }
.r-16x9 { aspect-ratio: 16 / 9; }
.r-2x1 { aspect-ratio: 2 / 1; }
.pic-quad { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pg-figs { display: grid; grid-template-columns: 1fr 1fr; gap: 40px clamp(20px, 3vw, 40px); align-items: start; }
.pg-figs > .pg-fig--span { grid-column: 1 / -1; }

/* Captions: fixed type word, then a short line */
.cap { display: grid; grid-template-columns: auto 1fr; column-gap: 20px; align-items: baseline; margin-top: 14px; }
.cap-type { font-size: 12px; line-height: 1.4; letter-spacing: var(--track); text-transform: uppercase; color: var(--ink-soft); }
.cap p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink-soft); max-width: 36em; }

/* Lists: hairline rows with a short timber dash */
.pg-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); max-width: 34em; }
.pg-list li {
  position: relative; padding: 12px 0 12px 30px; border-bottom: 1px solid var(--hair);
  font-size: 17px; line-height: 1.45; color: var(--ink-soft);
}
.pg-list li::before { content: ""; position: absolute; left: 0; top: 24px; width: 14px; height: 1px; background: var(--timber); }

/* Project cards with a render instead of a line drawing */
.project__pic.project__pic--render { position: relative; padding: 0; border: 0; aspect-ratio: 1 / 1; overflow: hidden; background: var(--hair); }
.project__pic.project__pic--render img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-height: none;
  object-fit: cover; mix-blend-mode: normal;
}

/* Previous / next project */
.pg-pager {
  display: grid; grid-template-columns: 1fr 2fr; column-gap: 48px; align-items: baseline;
  margin-top: clamp(56px, 7vw, 96px); padding-top: 24px; border-top: 1px solid var(--hair);
}

/* Journal cards */
.jcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.jcard { display: grid; gap: 18px; align-content: start; border-top: 1px solid var(--ink); padding-top: 20px; }

/* Journal article */
.pg-article { padding: clamp(56px, 8vw, 112px) 0 var(--band); }
.pg-article .pg-lead { margin-top: 24px; }
.pg-article .pg-main > .pg-lead + .body { margin-top: clamp(40px, 5vw, 56px); }

/* Enquiry form (not connected to any service in this private build) */
.pg-form { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 32px; max-width: 46em; }
.pg-field { display: grid; gap: 10px; align-content: start; }
.pg-field--full, .pg-form__act { grid-column: 1 / -1; }
.pg-field label { font-size: 12px; line-height: 1.4; letter-spacing: var(--track); text-transform: uppercase; color: var(--ink-soft); }
.pg-field input, .pg-field select, .pg-field textarea {
  font: inherit; font-size: 18px; color: var(--ink); width: 100%;
  background: transparent; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0;
  padding: 10px 0; -webkit-appearance: none; appearance: none;
}
.pg-field select {
  padding-right: 28px; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2326221E'/%3E%3C/svg%3E") no-repeat right 4px center;
}
.pg-field textarea { min-height: 180px; resize: vertical; border: 1px solid var(--ink); padding: 12px 14px; }
.pg-field input:focus, .pg-field select:focus, .pg-field textarea:focus { outline: 1px solid var(--ink); outline-offset: 4px; }
.pg-form__act { margin-top: 8px; }
.pg-note { margin-top: 40px; }

@media (max-width: 1080px) {
  .nav a[aria-current] { border-bottom-color: transparent; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
}
@media (max-width: 760px) {
  .pg-cols, .pg-pager { grid-template-columns: 1fr; row-gap: 20px; }
  .pg-side, .pg-main { grid-column: auto; }
  .pg-side { display: flex; align-items: center; gap: 16px; }
  .pg-side svg { width: 48px; height: 48px; }
  .pg-intro--split .pg-intro__grid { grid-template-columns: 1fr; }
  .pg-figs { grid-template-columns: 1fr; }
  .jcards { grid-template-columns: 1fr; gap: 40px; }
  .pg-form { grid-template-columns: 1fr; gap: 28px; }
  .cap { grid-template-columns: 1fr; row-gap: 4px; }
}

/* ===== QA fixes ===== */
/* Added 28 Nov 2026 after visual QA of the 14 inner pages. Every selector needs .pg-*, .pic,
   .pic--fit, .pic-quad or .project__pic--render, none of which index.html uses.
   Picture-specific rules match on the file name because the HTML is frozen; if a picture is
   swapped, check its rule here. */

/* 1. Hero picture under the intro text: .pg-fig's margin: 0 was cancelling .pg-hero's top margin,
      so the picture touched the lead paragraph (vintage-systems, project-01). */
.pg-fig.pg-hero { margin: clamp(48px, 7vw, 96px) 0 0; }

/* 2. A list straight after a paragraph had no gap (how-we-work trades, about). */
.pg-main > * + .pg-list { margin-top: 24px; }

/* 3. Charts, drawings and the parent shape carry their own paper background; multiply turned it
      into a darker panel inside the box. */
.pic--fit > img[src*="tuning-"],
.pic--fit > img[src*="p01-"],
.pic--fit > img[src$="horn-parent-shape.png"],
drawings and the parent shape carry their own paper background; multiply turned it
      into a darker panel inside the box. */
.pic--fit > a.fig-open > img[src*="tuning-"],
.pic--fit > a.fig-open > img[src*="p01-"],
.pic--fit > a.fig-open > img[src$="horn-parent-shape.png"] { mix-blend-mode: normal; }

/* 4. Bitmaps in fitted boxes already have their own margins: use more of the box, and give charts,
      drawings and model views a box of their own shape instead of a letterbox. */
.pic--fit > img:not([src$=".svg"]),
drawings and model views a box of their own shape instead of a letterbox. */
.pic--fit > a.fig-open > img:not([src$=".svg"]) { inset: 3%; width: 94%; height: 94%; }
.pic--fit:has(> img[src*="tuning-"]),
.pic--fit:has(> a.fig-open > img[src*="tuning-"]) { aspect-ratio: 2400 / 1320; }
.pic--fit:has(> img[src$="tuning-targets.png"]),
.pic--fit:has(> a.fig-open > img[src$="tuning-targets.png"]) { aspect-ratio: 2400 / 1360; }
.pic--fit:has(> img[src$="p01-concept-elevation-plan.png"]),
.pic--fit:has(> img[src$="p01-centre-section.png"]),
.pic--fit:has(> a.fig-open > img[src$="p01-concept-elevation-plan.png"]),
.pic--fit:has(> a.fig-open > img[src$="p01-centre-section.png"]) { aspect-ratio: 4 / 3; }
.pic-quad > .pic { aspect-ratio: 4 / 3; }

/* 5. On wide screens a chart or the shape sheet in a two-up pair was ~330 px wide and unreadable:
      stack the pair, keep the companion picture at a moderate width. */
@media (min-width: 761px) {
  .pg-figs:has(img[src*="tuning-"]),
  .pg-figs:has(img[src$="horn-shape-sheet.png"]) { grid-template-columns: 1fr; }
  .pg-figs:has(img[src*="tuning-"]) > .pg-fig:not(:has(img[src*="tuning-"])),
  .pg-figs:has(img[src$="horn-shape-sheet.png"]) > .pg-fig:not(:has(img[src$="horn-shape-sheet.png"])) { max-width: 560px; }
}

/* 6. Crops that cut off what the caption names. */
/* Whole wall front on: the 4:3 box cut off the record shelves at each end (vintage-systems). */
.pg-figs:has(img[src$="p01-wall-front.jpg"]) .pic { aspect-ratio: 16 / 10; }
/* Blackbutt study and stacked study: square boxes cut the mouth's lip and the bass opening.
   Show both whole, at equal height, by sizing the columns to the pictures' shapes. */
.pic:has(> img[src$="horn-study-blackbutt.jpg"]),
by sizing the columns to the pictures' shapes. */
.pic:has(> a.fig-open > img[src$="horn-study-blackbutt.jpg"]) { aspect-ratio: 1448 / 1086; }
.pic:has(> img[src$="horn-study-stack.jpg"]),
.pic:has(> a.fig-open > img[src$="horn-study-stack.jpg"]) { aspect-ratio: 1200 / 1700; }
@media (min-width: 761px) {
  .pg-figs:has(img[src$="horn-study-stack.jpg"]) { grid-template-columns: 1.889fr 1fr; }
}
/* Horn walls: centred crops cut the top of the upper horn. */
.pic > img[src$="horn-in-joinery.jpg"],
/* Horn walls: centred crops cut the top of the upper horn. */
.pic > a.fig-open > img[src$="horn-in-joinery.jpg"] { object-position: 50% 12%; }
.pic > img[src$="horn-joinery-wall.jpg"],
.pic > a.fig-open > img[src$="horn-joinery-wall.jpg"] { object-position: 50% 30%; }
/* Projects card: overrides the inline 50% 40%, which cut the top of the upper horn. */
.project__pic--render > img[src$="horn-in-joinery.jpg"],
which cut the top of the upper horn. */
.project__pic--render > a.fig-open > img[src$="horn-in-joinery.jpg"] { object-position: 50% 6% !important; }

/* ===== Tap to open charts and drawings ===== */
.fig-open { display: block; height: 100%; cursor: zoom-in; }
.fig-open:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

/* ===== Owner feedback round, 28 Nov 2026 ===== */
/* Home hero: the wall as a calm line drawing instead of a render. */
body.lead-render img.hero__line, img.hero__line {
  display: block !important; width: 100%; height: auto; max-height: 64vh;
  object-fit: contain; mix-blend-mode: multiply;
}
/* Melbourne card: the timber mesh, shown whole rather than cropped. */
body.lead-render img.pic-mesh, .project__pic--render > img[src$="horn-model-side.png"] {
  object-fit: contain !important; background: #fff;
}
