/* A Bigger World: user-supplied logo and annotated page-title treatment. */
:root { --brand-orange: #ff5200; --nav: clamp(104px, 8.4vw, 120px); }
.brand-mark {
  display: block; position: relative; flex: none; overflow: hidden;
  width: clamp(148px, 14vw, 200px); aspect-ratio: 1365 / 550;
}
/* Display the supplied artwork without its outer canvas; the source image is unchanged. */
.brand .brand-mark img {
  display: block; position: absolute; max-width: none;
  width: 142.93%; height: auto; left: -19.78%; top: -22.73%;
  border: 0; border-radius: 0;
}
.site-header .brand-mark, .site-footer .brand-mark { mix-blend-mode: multiply; }
.page-title {
  font-family: 'DM Sans', Arial, sans-serif;
  font-weight: 700; text-transform: uppercase; letter-spacing: -.065em;
  line-height: .98;
}
.page-title .title-stop, .about-statement .title-stop {
  display: inline; color: var(--brand-orange); letter-spacing: inherit;
}
.bookshop-page .book-title, .bookshop-page .chapter-copy > .subtitle {
  font-size: clamp(21px, 2.45vw, 33px); line-height: 1.18;
  font-weight: 700; letter-spacing: -.035em;
}
.bookshop-page .book-title { margin-top: clamp(24px, 3vw, 40px); }
.bookshop-page .book-title + .subtitle { margin-top: 8px; }
.about-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px clamp(32px, 5vw, 72px); align-items: start;
}
.about-heading { grid-column: 1; grid-row: 1; }
.about-biography { grid-column: 1; grid-row: 2; }
.about-portrait { grid-column: 2; grid-row: 1 / span 2; align-self: center; min-width: 0; }
.about-portrait .portrait-editorial { margin-inline: auto; margin-bottom: 0; }
.about-statement {
  width: 82%; margin: clamp(36px, 4.5vw, 62px) auto 0;
  text-align: center;
  font-size: clamp(21px, 2.2vw, 30px); font-weight: 700;
  line-height: 1.2; letter-spacing: -.035em;
}
@media (max-width: 740px) {
  .about-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .about-heading, .about-portrait, .about-biography { grid-column: 1; grid-row: auto; }
  .about-portrait { width: min(100%, 460px); justify-self: center; }
  .about-statement { font-size: clamp(21px, 5.4vw, 26px); }
}
@media (max-width: 690px) {
  .site-header .brand-mark { width: 148px; }
}

body.about-page main > #about > .about-layout { display: grid; height: auto; }

/* One display scale: these are the same values as the approved ATLAS wordmark. */
:root { --display-title-size: clamp(94px, 12vw, 184px); }
:root body main .page-title {
  font-family: 'DM Sans', Arial, sans-serif; font-size: var(--display-title-size);
  font-weight: 700; line-height: .98; letter-spacing: -.065em;
  text-transform: uppercase; max-width: 100%; min-width: 0;
  overflow-wrap: anywhere; text-wrap: balance;
}
@media (min-width: 951px) and (max-width: 1140px) {
  :root { --display-title-size: clamp(92px, 10.3vw, 118px); }
}
.home-heading, .title-row > .page-title { grid-column: 1 / -1; }
.home-heading .page-title { margin-bottom: 0; }
.home-hero .hero-text { align-self: start; }
.home-hero .offer-map { align-self: start; }
.home-hero .hero-grid { row-gap: clamp(32px, 5vw, 72px); }
.mission-hero .wrap > .page-title, .contact-heading { margin-bottom: clamp(32px, 5vw, 64px); }
.review-heading > .page-title { flex: 1 0 100%; }
.reading:has(> .page-title) { max-width: none; }
.page-title + p { margin-top: 24px; }

/* Keep the one display scale readable below the width of the supplied ATLAS reference. */
@media (max-width: 612px) {
  :root { --display-title-size: clamp(44px, calc((100vw - 48px) * .16637), 94px); }
}
.page-title .title-ending { white-space: nowrap; }

.enquiry-heading { grid-column: 1 / -1; }

/* Electric blue identifies interaction, never diagnostic severity. */
:root { --electric-blue: #003cff; }
:root body :focus-visible { outline-color: var(--electric-blue); }
#enquiry-form :is(select,textarea,input):focus-visible { outline-color: var(--electric-blue); border-color: var(--electric-blue); }
.site-header .nav-item::after { background-color: var(--electric-blue); }
.site-header .nav-item:is(:hover,:focus-visible,:active,[aria-current="page"]),
.mobile-menu summary:is(:hover,:focus-visible), .mobile-menu[open] > summary { color: var(--electric-blue); }
:where(main,footer) a:not(.btn,.brand,.nav-item,.offer-route a):is(:hover,:focus-visible,:active),
.route-control:is(:hover,:focus-visible), #cookie-settings:is(:hover,:focus-visible),
.cookie-actions button:is(:hover,:focus-visible) { color: var(--electric-blue); text-decoration-color: var(--electric-blue); }
:root body .btn--primary:is(:hover,:focus-visible,:active):not(:disabled):not([aria-disabled="true"]),
:root body .button:is(:hover,:focus-visible,:active):not(:disabled) { background-color: var(--electric-blue); border-color: var(--electric-blue); color: #fff; }
:root body a.btn--secondary:is(:hover,:focus-visible,:active) { border-color: var(--electric-blue); color: var(--electric-blue); }
.offer-route a:is(:hover,:focus-visible) :is(.stop-copy strong,.stop-arrow),
.offer-route li:last-child a:is(:hover,:focus-visible) .stop-number { color: var(--electric-blue); }
.offer-route li:last-child a:is(:hover,:focus-visible) .stop-number { border-color: var(--electric-blue); }
.stop-arrow { color: var(--electric-blue); }
.demo-steps button[aria-pressed="true"] { background-color: var(--electric-blue); border-color: var(--electric-blue); color: #fff; }
.demo-steps button[aria-pressed="false"]:is(:hover,:focus-visible) { border-color: var(--electric-blue); color: var(--electric-blue); }
.atlas-step .app-label, .atlas-demo .file-glyph, .scope-num, .contact-checklist li > span { color: var(--electric-blue); }
.atlas-meter span { background-color: var(--electric-blue); }
.service-disclosures summary:is(:hover,:focus-visible) :is(.service-name,.service-toggle),
.service-disclosures details[open] > summary .service-toggle { color: var(--electric-blue); }
/* Retain readable contrast on the existing dark policy mastheads. */
body > header:not(.site-header) nav a:not(.button):is(:hover,:focus-visible) { background-color: var(--electric-blue); color: #fff; }
body > header:not(.site-header) :focus-visible { outline-color: #fff; }

/* Requested numbered accents and vertically balanced review slides. */
.section-number, .mission-list li > span { color: var(--electric-blue); }
.review-rail { scrollbar-color: var(--electric-blue) var(--sand); }
.review-rail::-webkit-scrollbar-thumb { background-color: var(--electric-blue); }
.review-rail li { display: grid; align-content: center; }

/* Retained ATLAS screen fades; cinematic.js now coordinates page-title entrances. */
@media (prefers-reduced-motion: no-preference) {
  .atlas-demo .atlas-step {
    opacity: 0; pointer-events: none;
    transition: opacity 180ms ease-out, visibility 0s linear 180ms;
  }
  .atlas-demo[data-stage="1"] [data-step="1"],
  .atlas-demo[data-stage="2"] [data-step="2"],
  .atlas-demo[data-stage="3"] [data-step="3"] {
    opacity: 1; pointer-events: auto; animation: none; transition-delay: 0s;
  }
}
