/* Visual V1.1 refinement layer
   Loaded between the byte-preserved V8 stylesheet and responsive-v1.css.
   This file contains visual art direction only; breakpoint structure remains
   in responsive-v1.css. */

:root {
  /* Restore the approved V8 editorial display face after the late V8 reset. */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

[hidden] {
  display: none !important;
}

/* Editorial typography --------------------------------------------------- */
h1,
h2,
.page-copy h1,
.simple-page-title,
.programme-panel h2,
.problem-examples h3,
.faq-item summary {
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: -.022em;
}

h1,
.page-copy h1,
.simple-page-title {
  line-height: 1.02;
}

h2,
.programme-panel h2,
.problem-examples h3 {
  line-height: 1.08;
}

.faq-item summary {
  font-size: clamp(21px, 1.7vw, 27px);
  line-height: 1.24;
}

.copy,
.page-copy,
.opening-copy,
.list-lead,
.list-closing-copy,
.insight-intro-copy,
.insight-pivot-copy,
.insight-close-copy,
.who-copy,
.cta-strip p {
  font-size: clamp(17.5px, 1.12vw, 18.75px);
  line-height: 1.66;
}

.about-continuation,
.page-copy.process-editorial,
.attachment-theory-intro,
.attachment-theory-coda {
  width: 100%;
  max-width: 820px;
}

.about-opening-copy {
  max-width: 700px;
}

.process-editorial > p,
.attachment-theory-intro > p,
.attachment-theory-coda > p,
.about-continuation > p {
  max-width: 780px;
}

/* About opening: source order is heading, portrait, prose. Wide screens use
   explicit grid areas; narrow screens can follow that editorial order. */
.about-layout-intro {
  grid-template-areas:
    "avatar title"
    "avatar copy";
  align-items: start;
}

.about-layout-intro > h1 {
  grid-area: title;
  margin: 0 0 clamp(28px, 3.2vw, 42px);
}

.about-layout-intro > .about-avatar {
  grid-area: avatar;
}

.about-layout-intro > .about-opening-copy {
  grid-area: copy;
}

/* My Process principle: one quiet rule, no card. */
.process-editorial .short-version {
  max-width: 740px;
  margin: clamp(24px, 3vw, 36px) 0 clamp(38px, 4.4vw, 58px);
  padding: 4px 0 4px clamp(22px, 2.6vw, 32px);
  border-left: 2px solid color-mix(in srgb, var(--moss), transparent 28%);
  background: transparent;
}

.process-editorial .short-version p {
  max-width: 700px;
}

.process-editorial .short-version p + p {
  margin-top: 12px;
}

.permanent-final-copy {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin-top: clamp(18px, 2vw, 26px);
  font-size: clamp(17.5px, 1.12vw, 18.75px);
  line-height: 1.66;
}

.permanent-final-copy p {
  max-width: 680px;
  margin: 0;
}

/* Recognition/example lists: typographic fields with rules, not cards. */
.patterns-composed .patterns-list-field,
.problem-composed .problem-list-field {
  width: 100%;
  max-width: 1120px;
  padding: clamp(28px, 3.5vw, 42px) 0 0;
  border-top: 1px solid color-mix(in srgb, var(--ink), transparent 80%);
  border-bottom: 0;
  background: transparent;
}

.patterns-composed .patterns-list-field::before,
.problem-composed .problem-list-field::before {
  display: none;
}

.patterns-composed .list-lead,
.problem-composed .list-lead {
  margin-bottom: clamp(22px, 2.8vw, 32px);
}

.patterns-composed .editorial-two-column-list,
.problem-composed .editorial-two-column-list {
  column-gap: clamp(48px, 6vw, 78px);
  row-gap: 0;
}

.patterns-composed .editorial-two-column-list li,
.problem-composed .editorial-two-column-list li {
  min-height: 100%;
  padding: 15px 0 15px 28px;
  border-top: 1px solid color-mix(in srgb, var(--ink), transparent 86%);
}

.patterns-composed .editorial-two-column-list li::before,
.problem-composed .editorial-two-column-list li::before {
  top: 1.78em;
  width: 11px;
  height: 1px;
  border-radius: 0;
  background: var(--moss);
}

/* Dark punctuation point late in the homepage. */
.who-v8.surface-slate {
  background: #303a47;
  color: var(--white);
  border-bottom-color: rgba(255, 255, 255, .12);
}

.who-v8 h2,
.who-v8 .who-copy p,
.who-v8 .who-page-links a {
  color: var(--white) !important;
}

.who-v8 .who-copy p:nth-child(3) {
  color: rgba(255, 255, 255, .72) !important;
}

.who-v8 .who-page-links {
  border-top-color: rgba(255, 255, 255, .22);
}

.who-v8 .who-page-links a {
  text-decoration-color: #aabcb7;
}

/* Programme comparison. */
.ways-programmes-section .programmes-layout {
  max-width: 1180px;
}

.ways-programmes-section .programme-panel {
  height: 100%;
  max-width: none;
  margin-top: 0;
  padding-top: clamp(28px, 3vw, 40px);
}

.ways-programmes-section .programme-panel h2 {
  font-size: clamp(32px, 3vw, 46px);
}

.ways-programmes-section .programme-panel p {
  max-width: 600px;
}

@media (min-width: 1025px) {
  .ways-programmes-section .programmes-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(48px, 5.5vw, 76px);
  }
}

/* Scalable process figures ----------------------------------------------- */
.method-figures-inner {
  width: min(1180px, calc(100vw - 92px));
}

.process-diagram-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 3.5vw, 48px);
  align-items: start;
}

.process-svg-figure {
  min-width: 0;
  margin: 0;
}

.process-svg-figure h3 {
  margin: 0 0 16px;
  font-family: var(--font-heading);
  font-size: clamp(25px, 2vw, 32px);
  font-weight: 500;
  letter-spacing: -.018em;
}

.process-svg-frame {
  padding: clamp(14px, 1.8vw, 22px);
  border: 1px solid color-mix(in srgb, var(--ink), transparent 72%);
  background: rgba(255, 255, 255, .24);
}

.process-svg-frame img {
  width: 100%;
  height: auto;
}

.diagram-view-actions {
  display: none;
  margin: 22px 0 0;
}

.diagram-expand,
.diagram-dialog-close {
  appearance: none;
  border: 1px solid currentColor;
  background: transparent;
  color: var(--ink);
  font: 500 12px/1 var(--font-body);
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}

.diagram-expand {
  min-height: 46px;
  padding: 0 18px;
}

.diagram-expand:focus-visible,
.diagram-dialog-close:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 3px;
}

.diagram-dialog {
  width: min(96vw, 1320px);
  max-width: none;
  height: min(92vh, 920px);
  max-height: none;
  margin: auto;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--ink), transparent 52%);
  background: #dfe7e8;
  color: var(--ink);
}

.diagram-dialog::backdrop {
  background: rgba(25, 31, 40, .72);
}

.diagram-dialog-shell {
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.diagram-dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(18px, 3vw, 32px);
  border-bottom: 1px solid color-mix(in srgb, var(--ink), transparent 74%);
  background: rgba(255, 255, 255, .28);
}

.diagram-dialog-header h2 {
  margin: 0;
  font-size: clamp(25px, 2.6vw, 38px);
}

.diagram-dialog-close {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 14px;
}

.diagram-dialog-viewport {
  overflow: auto;
  overscroll-behavior: contain;
  padding: clamp(24px, 3vw, 40px);
}

.diagram-dialog-canvas {
  min-width: 1120px;
  display: grid;
  grid-template-columns: repeat(2, 540px);
  gap: 40px;
}

.diagram-dialog-figure {
  margin: 0;
}

.diagram-dialog-figure h3 {
  margin: 0 0 14px;
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 500;
}

.diagram-dialog-figure img {
  width: 540px;
  height: auto;
  border: 1px solid color-mix(in srgb, var(--ink), transparent 72%);
  background: rgba(255, 255, 255, .26);
}

/* Contact routes --------------------------------------------------------- */
.contact-routes {
  display: grid;
  gap: 0;
  border-top: 1px solid color-mix(in srgb, var(--ink), transparent 76%);
}

.contact-route {
  padding: clamp(26px, 3.4vw, 38px) 0;
  border-bottom: 1px solid color-mix(in srgb, var(--ink), transparent 82%);
}

.contact-route-label {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.contact-route-link,
.contact-route-pending-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: clamp(25px, 2.5vw, 36px);
  line-height: 1.18;
  letter-spacing: -.018em;
}

.contact-route-link {
  text-decoration-color: var(--moss);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

.contact-route-link:hover {
  color: var(--moss);
}

.contact-route-pending-label {
  color: color-mix(in srgb, var(--ink), transparent 25%);
}

.contact-route .small-note {
  max-width: 520px;
  margin: 12px 0 0;
}

/* V1.2 final polish ------------------------------------------------------ */
:root {
  --surface-green-v1-2: #e4e9e5;
}

/* Balance the two approved hero clauses without fragile hard line breaks. */
.hero-title-block h1 {
  width: 100%;
  max-width: 1160px;
  font-size: clamp(44px, 5.15vw, 74px);
  text-wrap: balance;
}

.hero-title-block h1 span:first-child {
  color: color-mix(in srgb, var(--ink), transparent 30%);
}

/* Reuse one calm, muted green-grey field for the requested editorial bands. */
#patterns,
.about-process-section,
.mechanism-section-flush,
.faq-page-section {
  background: var(--surface-green-v1-2);
}

/* Remove the final remnants of the old recognition/example-list panel treatment. */
.patterns-composed .patterns-list-field,
.problem-composed .problem-list-field,
.patterns-composed .editorial-two-column-list li,
.problem-composed .editorial-two-column-list li {
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.patterns-closing blockquote {
  max-width: 650px;
  margin: clamp(34px, 4vw, 52px) 0;
  padding: 2px 0 2px clamp(22px, 2.6vw, 32px);
  border-left: 1px solid color-mix(in srgb, var(--moss), transparent 30%);
  background: transparent;
  font-family: var(--font-heading);
  font-size: clamp(23px, 2.15vw, 31px);
  font-style: italic;
  line-height: 1.32;
}

.patterns-closing blockquote p {
  color: color-mix(in srgb, var(--ink), transparent 6%) !important;
  font-family: inherit;
  font-size: inherit;
  font-style: inherit;
  line-height: inherit;
}

.patterns-closing blockquote p + p {
  margin-top: 12px;
}

/* Keep wrapper gutters intact when the long-form columns meet tablet widths. */
.about-continuation.wrap,
.process-editorial.wrap {
  width: var(--wrap);
}

/* Programme comparison. */
.ways-programmes-section .programmes-layout {
  align-items: stretch;
}

/* V1 final pre-beta pass ----------------------------------------------- */
/* Programme routes remain an editorial comparison, with only a quiet tint
   to distinguish each field from the surrounding chalk section. */
.ways-programmes-section .programme-panel {
  padding: clamp(30px, 3.5vw, 44px) clamp(26px, 3.4vw, 42px);
  border: 0;
  background: color-mix(in srgb, var(--white) 58%, var(--chalk));
  box-shadow: none;
}

/* One shared examples list: the programme-grid breakpoint selects either the
   restrained modal trigger or the native inline disclosure. */
.problem-examples-controls {
  margin-top: clamp(28px, 3vw, 40px);
}

.problem-examples-modal-trigger,
.problem-examples-inline summary {
  position: relative;
  width: 100%;
  padding: clamp(22px, 2.4vw, 30px) 42px 0 0;
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--ink), transparent 80%);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-heading);
  font-size: clamp(22px, 1.9vw, 28px);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -.018em;
}

.problem-examples-modal-trigger {
  display: none;
  appearance: none;
}

.problem-examples-inline {
  margin: 0;
  border: 0;
}

.problem-examples-inline summary {
  list-style: none;
}

.problem-examples-inline summary::-webkit-details-marker {
  display: none;
}

.problem-examples-modal-trigger::after,
.problem-examples-inline summary::after {
  content: "+";
  position: absolute;
  right: 0;
  bottom: 2px;
  color: var(--moss);
  font-family: var(--font-body);
  font-size: 27px;
  font-weight: 400;
  line-height: 1;
}

.problem-examples-modal-trigger[aria-expanded="true"]::after,
.problem-examples-inline[open] summary::after {
  content: "–";
}

.problem-examples-modal-trigger:focus-visible,
.problem-examples-inline summary:focus-visible,
.problem-examples-dialog-close:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 4px;
}

.problem-examples-inline-slot {
  margin-top: clamp(22px, 2.6vw, 30px);
  padding-top: clamp(26px, 3vw, 38px);
  border-top: 1px solid color-mix(in srgb, var(--ink), transparent 84%);
}

.problem-examples-content {
  width: 100%;
  max-width: 780px;
  margin: 0;
  padding: 0;
  border: 0;
}

.problem-examples-content > h4:first-child {
  margin-top: 0;
}

.problem-examples-dialog {
  width: min(calc(100vw - 48px), 920px);
  max-width: none;
  height: min(88dvh, 820px);
  max-height: none;
  margin: auto;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--ink), transparent 58%);
  background: var(--chalk);
  color: var(--ink);
}

.problem-examples-dialog::backdrop {
  background: rgba(25, 31, 40, .68);
}

.problem-examples-dialog-shell {
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.problem-examples-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(20px, 3vw, 30px) clamp(22px, 4vw, 42px);
  border-bottom: 1px solid color-mix(in srgb, var(--ink), transparent 78%);
}

.problem-examples-dialog-header h2 {
  margin: 0;
  font-size: clamp(31px, 3.6vw, 48px);
}

.problem-examples-dialog-close {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid currentColor;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: 500 12px/1 var(--font-body);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.problem-examples-dialog-body {
  overflow: auto;
  overscroll-behavior: contain;
  padding: clamp(28px, 4vw, 44px) clamp(22px, 4vw, 42px) clamp(36px, 5vw, 56px);
}

/* The two example fields are lightly inset relatives of their section
   colours, without borders, shadows, rounding, or card decoration. */
.patterns-composed .patterns-list-field {
  padding: clamp(28px, 3.5vw, 42px) clamp(26px, 3.4vw, 42px);
  border: 0;
  background: color-mix(in srgb, var(--surface-green-v1-2) 76%, var(--white));
  box-shadow: none;
}

.problem-composed .problem-list-field {
  padding: clamp(28px, 3.5vw, 42px) clamp(26px, 3.4vw, 42px);
  border: 0 !important;
  background: color-mix(in srgb, var(--stone) 68%, var(--white)) !important;
  box-shadow: none !important;
}

/* Keep each introductory sentence on the section surface; only its list is
   contained by the pale inset field. */
.patterns-composed .examples-list-lead,
.problem-composed .examples-list-lead {
  margin-top: clamp(42px, 5vw, 68px);
}

.examples-list-lead + .list-field {
  margin-top: 0;
}

/* Fill down the first column before moving to the second: five items then
   four. DOM order is therefore also the single-column mobile order. */
.patterns-composed .editorial-two-column-list,
.problem-composed .editorial-two-column-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(5, auto);
  grid-auto-flow: column;
}
