/* =========================================================
   DESIGN TOKENS
   ========================================================= */

:root {
  --surface-light: #FFFFFF;
  --ink: #1A1A1A;
  --brand-red: #C73131;
  --brand-red-deep: #A40000;
  --neutral-700: #4B4B4B;
  --neutral-300: #B8B8B8;
  --neutral-150: #E6E6E6;
  --content-max: 1440px;
  --gutter: clamp(1.125rem, 4vw, 4.5rem);
  --section-space: clamp(4rem, 8vw, 8rem);
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Atkinson Hyperlegible Next", "Segoe UI", Arial, sans-serif;
}

/* =========================================================
   RESET AND DOCUMENT BASE
   ========================================================= */

*, *::before, *::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  width: 100%;
  min-width: 0;
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
  background: var(--surface-light);
}
body {
  width: 100%;
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  background: var(--surface-light);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1rem, .24vw + .95rem, 1.16rem);
  line-height: 1.62;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
svg {
  display: block;
  max-width: 100%;
}
picture {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration-thickness: .12em;
  text-underline-offset: .18em;
}
p, ul, ol, dl {
  max-width: 68ch;
}
h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -.015em;
  text-wrap: balance;
}
h1 {
  max-width: 13ch;
  font-size: clamp(3rem, 6.8vw, 7rem);
  line-height: .96;
}
h2 {
  max-width: 18ch;
  font-size: clamp(2.4rem, 4.5vw, 4.8rem);
  line-height: 1;
}
h3 {
  max-width: 24ch;
  font-size: clamp(1.6rem, 2.3vw, 2.45rem);
  line-height: 1.08;
}
button, input, textarea {
  font: inherit;
}
:focus-visible {
  outline: .19rem solid var(--brand-red);
  outline-offset: .19rem;
}
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.skip-link {
  position: fixed;
  z-index: 1000;
  inset: .5rem auto auto .5rem;
  padding: .75rem 1rem;
  transform: translateY(-180%);
  background: var(--surface-light);
  color: var(--ink);
  border: .19rem solid var(--brand-red);
}
.skip-link:focus {
  transform: none;
}
.content-shell {
  width: min(100%, var(--content-max));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.chapter {
  scroll-margin-block-start: 7rem;
}
.chapter-content {
  padding-block: var(--section-space);
}
.eyebrow {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 1rem;
  padding-left: .8rem;
  border-left: .28rem solid var(--brand-red);
  color: inherit;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.lead, .chapter-intro {
  font-size: clamp(1.15rem, 1.4vw, 1.5rem);
  line-height: 1.48;
}
.chapter-intro {
  max-width: 58ch;
}

/* =========================================================
   HEADER, NAVIGATION AND LANGUAGE CONTROLS
   ========================================================= */

.site-header, main, .site-footer {
  width: 100%;
  min-width: 0;
}
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  background: var(--ink);
  color: var(--surface-light);
  border-bottom: .22rem solid var(--brand-red);
}
.header-inner {
  width: min(100%, var(--content-max));
  min-height: 5.25rem;
  margin-inline: auto;
  padding: .5rem var(--gutter);
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 2vw, 2rem);
}
.brand-home {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
}
.header-logo {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: contain;
}
.primary-navigation-shell {
  min-width: 0;
  display: flex;
  flex: 1;
  align-items: center;
}
.primary-navigation {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .1rem clamp(.5rem, 1.6vw, 1.5rem);
}
.primary-navigation a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  padding: .4rem .25rem;
  color: var(--surface-light);
  font-weight: 700;
  text-decoration: underline transparent .2rem;
  text-underline-offset: .5rem;
}
.primary-navigation a:hover, .primary-navigation a[aria-current] {
  text-decoration-color: var(--brand-red);
}
.language-navigation {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: .2rem;
}
.language-link {
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  text-decoration: none;
}
.language-link img {
  width: 1.625rem;
  height: auto;
  border: 1px solid var(--surface-light);
}
.language-link.is-current::after {
  content: "";
  position: absolute;
  inset: auto .45rem .16rem;
  height: .2rem;
  background: var(--brand-red);
}
.language-link.is-current img {
  outline: .12rem solid var(--surface-light);
  outline-offset: .12rem;
}

/* =========================================================
   SHARED CHAPTER AND SCENE LAYOUT
   ========================================================= */

.chapter, .chapter-scene {
  width: 100%;
  min-width: 0;
}
.chapter-scene {
  background: var(--ink);
}
.chapter-scene picture, .chapter-scene img {
  width: 100%;
  height: auto;
}

/* =========================================================
   PURPOSE INTRODUCTION
   ========================================================= */

.purpose-layout {
  min-height: 48rem;
  padding-block: var(--section-space);
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(18rem, 5fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 6rem);
  background: var(--surface-light);
}
.purpose-intro {
  grid-column: 1 / -1;
  width: min(100%, 78rem);
  min-width: 0;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(15rem, 20rem) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 5rem);
}
.purpose-intro > picture {
  min-width: 0;
  display: grid;
  place-items: center;
}
.purpose-logo {
  display: block;
  width: 100%;
  max-width: 20rem;
  height: auto;
}
.purpose-intro-text {
  min-width: 0;
}
.purpose-intro-text h1 {
  max-width: none;
  font-size: clamp(3.35rem, 5vw, 6rem);
}
.purpose-intro-text .lead {
  max-width: 58ch;
  margin-block: 1.5rem 0;
}
.opening-questions {
  margin-block: clamp(2rem, 4vw, 4rem);
  display: grid;
  gap: 1rem;
}
.opening-questions p {
  margin: 0;
  padding: 1rem 1.25rem;
  border-left: .28rem solid var(--brand-red);
  font-family: var(--display);
  font-size: clamp(1.75rem, 3vw, 3.2rem);
  font-weight: 900;
  line-height: 1.05;
}
.purpose-art, .contact-art {
  position: relative;
  display: grid;
  place-items: end center;
  align-self: end;
  isolation: isolate;
}
.purpose-art .picture--brush-red, .contact-art .picture--brush-red {
  position: absolute;
  z-index: 0;
  inset: 50% auto auto 50%;
  width: 100%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.purpose-art > picture:not(.picture--brush-red), .contact-art > picture:not(.picture--brush-red) {
  position: relative;
  z-index: 1;
}
.purpose-art .brush-disc, .contact-art .brush-disc {
  width: 100%;
  height: auto;
  opacity: .12;
}
.meditating-image {
  width: min(100%, 32.5rem);
}

/* =========================================================
   ACTIONS AND BUTTONS
   ========================================================= */

.actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}
.button {
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .7rem 1.1rem;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
  border: .13rem solid var(--ink);
  clip-path: polygon(0 0, calc(100% - .7rem) 0, 100% .7rem, 100% 100%, .7rem 100%, 0 calc(100% - .7rem));
  cursor: pointer;
}
.button--primary {
  background: var(--brand-red);
  color: var(--surface-light);
}
.button--primary:hover {
  background: var(--brand-red-deep);
  transform: translateY(-.12rem);
}
.button--secondary {
  background: var(--surface-light);
  color: var(--ink);
  border-left-width: .32rem;
  border-left-color: var(--brand-red);
}
.button--inverse {
  color: var(--surface-light);
  border-color: var(--surface-light);
  border-left-color: var(--brand-red);
}

/* =========================================================
   DIGITAL SYMPTOM CARDS
   ========================================================= */

.chapter--symptoms {
  background: var(--surface-light);
}
.bamboo-black, .bamboo-white {
  position: relative;
  isolation: isolate;
}
.bamboo-black::before, .bamboo-white::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 4rem 0 auto auto;
  width: min(48vw, 44rem);
  aspect-ratio: 1;
  background: url("/assets/images/bamboo-black-512.webp") center / contain no-repeat;
  opacity: .035;
  pointer-events: none;
}
.bamboo-white::before {
  inset: 3rem auto auto 0;
  background-image: url("/assets/images/bamboo-white-512.webp");
  opacity: .05;
}
.symptom-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1rem, 1.8vw, 1.75rem);
}
.symptom-card {
  position: relative;
  min-width: 0;
  min-height: 37rem;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  background: var(--surface-light);
  border: .13rem solid var(--ink);
  border-left: .35rem solid var(--brand-red);
  clip-path: polygon(0 0, calc(100% - 1.25rem) 0, 100% 1.25rem, 100% 100%, 0 100%);
}
.symptom-card .card-copy {
  z-index: 2;
  min-width: 0;
  padding: clamp(1.2rem, 2vw, 2rem);
  background: var(--surface-light);
}
.symptom-card h3 {
  text-transform: uppercase;
}
.card-question {
  font-size: 1.12em;
  font-weight: 700;
  line-height: 1.4;
}
.symptom-card picture {
  width: 100%;
  min-width: 0;
  align-self: end;
}
.symptom-card .card-image {
  width: 100%;
  height: auto;
}
.symptom-card--lags {
  grid-column: 1 / 5;
}
.symptom-card--glitches {
  grid-column: 5 / 10;
}
.symptom-card--bugs {
  grid-column: 10 / 13;
}
.symptom-card--viruses {
  grid-column: 1 / 5;
}
.symptom-card--holes {
  grid-column: 5 / 8;
}
.symptom-card--ghosts {
  grid-column: 8 / 13;
}
.symptom-card--demons {
  grid-column: 1 / 5;
}
.symptom-card--chaos {
  grid-column: 5 / 9;
}
.symptom-card--devices {
  grid-column: 9 / 13;
  min-height: 41rem;
}
.symptom-card--holes {
  border-left-width: .13rem;
}
.transition-copy {
  margin-top: 3rem;
  padding: 1.25rem 1.5rem;
  border-left: .38rem solid var(--brand-red);
  background: var(--ink);
  color: var(--surface-light);
  font-size: 1.12em;
}

/* =========================================================
   SOLUTION CARDS
   ========================================================= */

.chapter--solutions {
  background: var(--ink);
  color: var(--surface-light);
}
.approach-slab {
  max-width: 74rem;
  padding: clamp(1.5rem, 3vw, 3rem);
  background: var(--surface-light);
  color: var(--ink);
  border-left: .42rem solid var(--brand-red);
}
.solution-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1rem, 1.8vw, 1.75rem);
}
.solution-card {
  min-width: 0;
  display: grid;
  overflow: hidden;
  background: var(--surface-light);
  color: var(--ink);
  border: .13rem solid var(--surface-light);
  border-top: .38rem solid var(--brand-red);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 1.25rem), calc(100% - 1.25rem) 100%, 0 100%);
}
.solution-card .card-copy {
  min-width: 0;
  padding: clamp(1.25rem, 2.2vw, 2.25rem);
}
.solution-media, .solution-media picture {
  width: 100%;
  min-width: 0;
}
.solution-image {
  width: 100%;
  height: auto;
}
.solution-card--threats, .solution-card--cleanup {
  grid-column: span 6;
}
.solution-card--repair, .solution-card--organisation, .solution-card--security-planning {
  grid-column: span 4;
}
.solution-card--teaching-ai {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.2fr) minmax(19rem, .8fr);
  align-items: center;
}
.solution-card--teaching-ai .card-copy {
  align-self: center;
}

/* =========================================================
   PHYSICAL-SPACE COMPARISON
   ========================================================= */

.chapter--space {
  background: var(--surface-light);
}
.notice, .collection-notice {
  padding: 1rem 1.25rem;
  border-left: .3rem solid var(--brand-red);
  background: var(--surface-light);
  color: var(--ink);
}
.notice {
  border-block: .12rem solid var(--ink);
  border-right: .12rem solid var(--ink);
}
.comparison {
  margin-top: 2.5rem;
}
.comparison-plane {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.comparison-figure {
  min-width: 0;
  margin: 0;
  border: .15rem solid var(--ink);
  background: var(--surface-light);
}
.comparison-figure img {
  width: 100%;
  height: auto;
}
.comparison-figure figcaption {
  padding: .8rem 1rem;
}
.comparison-figure figcaption span {
  display: inline-block;
  margin-right: .4rem;
  padding: .15rem .5rem;
  background: var(--ink);
  color: var(--surface-light);
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
}
.comparison-after figcaption span {
  background: var(--brand-red-deep);
}
.comparison.is-enhanced {
  padding: clamp(1.6rem, 2vw, 2rem);
  background: var(--ink);
  clip-path: polygon(0 0, calc(100% - 1.5rem) 0, 100% 1.5rem, 100% 100%, 0 100%);
}
.comparison.is-enhanced .comparison-plane {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}
.comparison.is-enhanced .comparison-figure {
  position: relative;
  grid-area: 1 / 1;
  align-self: start;
  border: 0;
}
.comparison.is-enhanced .comparison-after {
  z-index: 1;
}
.comparison.is-enhanced .comparison-figure img {
  width: 100%;
  height: auto;
}
.comparison.is-enhanced .comparison-before {
  z-index: 2;
  clip-path: inset(0 calc(100% - var(--comparison, 50%)) 0 0);
}
.comparison-label {
  display: none;
}
.comparison.is-enhanced figcaption {
  display: none;
}
.comparison.is-enhanced .comparison-label {
  position: absolute;
  z-index: 3;
  top: .75rem;
  display: block;
  padding: .35rem .65rem;
  background: var(--ink);
  color: var(--surface-light);
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
  outline: .12rem solid var(--surface-light);
}
.comparison.is-enhanced .comparison-label--before {
  left: .75rem;
}
.comparison.is-enhanced .comparison-label--after {
  right: .75rem;
  background: var(--brand-red-deep);
}
.comparison-divider {
  display: none;
}
.comparison.is-enhanced .comparison-divider {
  display: block;
  position: absolute;
  z-index: 4;
  top: 0;
  bottom: 0;
  left: var(--comparison, 50%);
  width: .2rem;
  transform: translateX(-50%);
  border-left: .12rem solid var(--surface-light);
  background: var(--brand-red);
  pointer-events: none;
}
.comparison-control {
  margin-top: .8rem;
  padding: 1rem;
  background: var(--surface-light);
  color: var(--ink);
}
.comparison-control label {
  display: block;
  font-weight: 800;
}
.comparison-control p {
  margin-block: .25rem .5rem;
}
.comparison-control input[type="range"] {
  width: 100%;
  min-height: 2.75rem;
  accent-color: var(--brand-red);
  cursor: ew-resize;
}

/* =========================================================
   CONTACT CHANNELS AND FORM
   ========================================================= */

.chapter--contact {
  padding-block: var(--section-space);
  background: var(--surface-light);
}
.contact-layout {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(20rem, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.contact-art {
  min-width: 0;
  padding: 1rem 1.75rem 1.75rem 1rem;
  background: var(--ink);
  border-bottom: .4rem solid var(--brand-red);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 1.5rem), calc(100% - 1.5rem) 100%, 0 100%);
}
.contact-art > picture:not(.picture--brush-red) {
  width: 100%;
}
.calling-image {
  width: 100%;
  height: auto;
}
.contact-content > h3, .form-heading h3 {
  margin-top: 2rem;
}
.contact-content, .form-heading {
  min-width: 0;
}
.contact-channels {
  min-width: 0;
  display: grid;
  gap: .5rem;
  font-style: normal;
}
.contact-channels a, .contact-channels > p {
  min-width: 0;
  min-height: 4rem;
  margin: 0;
  padding: .65rem;
  display: flex;
  align-items: center;
  gap: .9rem;
  border: .12rem solid var(--ink);
  border-left: .3rem solid var(--brand-red);
  background: var(--surface-light);
  text-decoration: none;
}
.contact-channels img {
  width: auto;
  height: auto;
  max-width: 2.25rem;
  max-height: 2.8rem;
  flex: 0 0 auto;
}
.contact-channels span {
  min-width: 0;
  display: grid;
}
.contact-channels a span, .contact-channels a[href^="mailto:"] {
  overflow-wrap: anywhere;
}
.contact-form {
  min-width: 0;
  margin-top: 1rem;
  padding: clamp(1rem, 2.5vw, 2rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.15rem;
  border: .13rem solid var(--ink);
  border-top: .38rem solid var(--brand-red);
  background: var(--surface-light);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 1rem), calc(100% - 1rem) 100%, 0 100%);
}
.required-note {
  margin: 0;
  font-weight: 700;
}
.field {
  min-width: 0;
  display: grid;
  gap: .35rem;
}
.field label {
  font-weight: 800;
}
.field-state {
  color: var(--neutral-700);
  font-weight: 400;
}
.field input, .field textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 3rem;
  padding: .7rem .8rem;
  border: .13rem solid var(--ink);
  border-radius: .25rem;
  background: var(--surface-light);
  color: var(--ink);
}
.field textarea {
  min-height: 11rem;
  resize: vertical;
}
.field input:hover, .field textarea:hover {
  border-left-width: .3rem;
  border-left-color: var(--brand-red);
}
.field input:focus, .field textarea:focus {
  outline: .19rem solid var(--brand-red);
  outline-offset: .13rem;
}
.field [aria-invalid="true"] {
  border: .19rem solid var(--brand-red);
}
.field-help, .field-error {
  margin: 0;
  font-size: .96rem;
  overflow-wrap: break-word;
}
.field-error {
  padding-left: .65rem;
  border-left: .25rem solid var(--brand-red);
  font-weight: 700;
}
.contact-trap {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}
.collection-notice {
  border: .12rem solid var(--ink);
  border-left-width: .32rem;
  border-left-color: var(--brand-red);
  font-size: .95rem;
}
.collection-notice p {
  margin-top: 0;
}
.form-summary, .form-status {
  min-width: 0;
  padding: 1rem 1.2rem;
  border: .13rem solid var(--ink);
  border-left: .38rem solid var(--brand-red);
  background: var(--surface-light);
  color: var(--ink);
  overflow-wrap: break-word;
}
.form-summary h2, .form-status h3 {
  font-size: 1.65rem;
}
.form-status[data-state="success"] {
  border: .19rem solid var(--ink);
}
.contact-form[aria-busy="true"] {
  border-top-color: var(--ink);
}
.submit-button {
  justify-self: start;
}
.submit-button:disabled {
  background: var(--neutral-700);
  cursor: wait;
}

/* =========================================================
   ABOUT CHAPTER
   ========================================================= */

.chapter--about {
  background: var(--ink);
  color: var(--surface-light);
}
.about-content {
  padding-block: var(--section-space);
}
.about-story {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 3rem;
}
.about-story p {
  margin-top: 0;
}

/* =========================================================
   FOOTER AND CREATIVE CREDIT
   ========================================================= */

.site-footer {
  background: var(--ink);
  color: var(--surface-light);
  border-top: .35rem solid var(--brand-red);
}
.footer-inner {
  width: min(100%, var(--content-max));
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 4rem) var(--gutter);
}
.footer-utilities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}
.footer-utilities > *, .footer-utilities li,
.language-navigation--footer, .creative-credit > * {
  min-width: 0;
}
.footer-utilities a, .related-links a, .result-alternatives a {
  overflow-wrap: break-word;
}
.footer-utilities h2 {
  font-size: 1.55rem;
}
.footer-utilities ul {
  padding: 0;
  list-style: none;
}
.footer-utilities li {
  margin-block: .5rem;
}
.creative-credit {
  max-width: none;
  margin: 2rem 0 0;
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: .25rem .5rem;
  border-top: 1px solid var(--neutral-700);
  text-align: center;
}
.creative-credit-link {
  flex: 0 0 auto;
  width: clamp(3.25rem, 5vw, 4.5rem);
  display: block;
  border: 0;
  background: transparent;
  line-height: 0;
  text-decoration: none;
  box-shadow: none;
}
.creative-credit-link img {
  width: 100%;
  height: auto;
  background: transparent;
}
.creative-credit-link:focus-visible {
  outline: .19rem solid var(--surface-light);
  outline-offset: .25rem;
  box-shadow: 0 0 0 .13rem var(--brand-red);
}
.creative-credit > span:not(.sr-only) {
  white-space: nowrap;
}

/* =========================================================
   SCROLL PROGRESS / BACK TO TOP
   ========================================================= */

.progress-dock {
  display: contents;
}
.journey-progress {
  --progress: 0;
  --progress-offset: 100;
  position: fixed;
  z-index: 90;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  width: 3.5rem;
  height: 3.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--surface-light);
}
.journey-progress svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.journey-progress circle {
  fill: none;
}
.progress-track {
  stroke: var(--surface-light);
  stroke-width: 3;
  opacity: .24;
}
.progress-value {
  stroke: var(--brand-red);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: var(--progress-offset);
}
.progress-arrow {
  fill: none;
  stroke: var(--surface-light);
  stroke-width: 3;
  stroke-linecap: square;
  stroke-linejoin: miter;
  transform: rotate(90deg);
  transform-origin: center;
}
.journey-progress:focus-visible {
  outline: .19rem solid var(--surface-light);
  box-shadow: 0 0 0 .32rem var(--brand-red);
}

/* =========================================================
   LEGAL, PRIVACY, RESULT AND ERROR PAGES
   ========================================================= */

.reading-main {
  min-height: 70vh;
  padding: var(--section-space) var(--gutter);
  background: var(--surface-light);
}
.reading-page {
  width: min(100%, 72ch);
  margin-inline: auto;
}
.reading-page h1 {
  max-width: 16ch;
}
.reading-page section {
  margin-block: 3rem;
}
.reading-page h2 {
  max-width: 24ch;
  font-size: clamp(2rem, 3.2vw, 3.3rem);
}
.reading-page dl > div {
  padding-block: .8rem;
  border-bottom: .12rem solid var(--ink);
}
.reading-page dt {
  font-weight: 800;
}
.reading-page dd {
  margin: .2rem 0 0;
}
.related-links, .result-alternatives {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.error-code {
  margin: 0;
  color: var(--brand-red);
  font-family: var(--display);
  font-size: clamp(5rem, 15vw, 12rem);
  font-weight: 900;
  line-height: .8;
}
.result-page {
  max-width: 58rem;
}
.page--result .header-inner {
  justify-content: space-between;
}

/* =========================================================
   RESPONSIVE LAYOUT
   ========================================================= */

@media (max-width: 1023px) {
  .header-inner {
    flex-wrap: wrap;
  }
  .primary-navigation-shell {
    order: 3;
    flex-basis: 100%;
  }
  .language-navigation--header {
    margin-left: auto;
  }
  .purpose-layout {
    grid-template-columns: minmax(0, 1fr) minmax(16rem, .8fr);
  }
  .symptom-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .symptom-card {
    grid-column: auto;
  }
  .symptom-card--ghosts, .symptom-card--devices {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .solution-card--threats, .solution-card--cleanup, .solution-card--repair, .solution-card--organisation, .solution-card--security-planning {
    grid-column: span 6;
  }
  .solution-card--teaching-ai {
    grid-template-columns: minmax(0, 1fr);
  }
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .contact-art {
    max-width: 45rem;
  }
}

@media (max-width: 959px) {
  .purpose-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 2.5rem);
  }
  .purpose-intro > picture {
    width: clamp(11.875rem, 55vw, 16rem);
    margin-inline: auto;
  }
  .purpose-intro-text {
    width: 100%;
  }
}

@media (max-width: 719px) {
  :root {
    --gutter: clamp(18px, 5.5vw, 24px);
    --section-space: clamp(3rem, 12vw, 4.5rem);
  }
  html {
    scroll-padding-top: 1rem;
  }
  .chapter {
    scroll-margin-block-start: 1rem;
  }
  .purpose-layout {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
  }
  .purpose-art {
    align-self: auto;
  }
  .meditating-image {
    width: min(80vw, 32rem);
  }
  .opening-questions p {
    padding-inline: .8rem;
  }
  .actions {
    align-items: stretch;
    flex-direction: column;
  }
  .button {
    width: 100%;
  }
  .symptom-grid, .solution-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .symptom-card, .symptom-card--ghosts, .symptom-card--devices {
    min-height: 0;
    grid-column: auto;
    grid-template-columns: minmax(0, 1fr);
  }
  .solution-card--threats,
  .solution-card--cleanup,
  .solution-card--repair,
  .solution-card--organisation,
  .solution-card--security-planning,
  .solution-card--teaching-ai {
    grid-column: auto;
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  .comparison-plane {
    grid-template-columns: minmax(0, 1fr);
  }
  .calling-image {
    width: min(78vw, 34rem);
    height: auto;
    margin-inline: auto;
  }
  .about-story, .footer-utilities {
    grid-template-columns: minmax(0, 1fr);
  }
  .creative-credit {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: .75rem;
    text-align: center;
  }
  .creative-credit > span:not(.sr-only) {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .progress-dock {
    min-width: 0;
    padding: 1rem max(18px, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom));
    display: grid;
    place-items: center;
    background: var(--ink);
  }
  .journey-progress {
    position: static;
    width: 52px;
    height: 52px;
  }
}

@media (max-width: 719px), (orientation: landscape) and (max-height: 500px) and (max-width: 932px) {
  .site-header {
    position: relative;
  }
  .header-inner {
    min-height: auto;
    display: grid;
    grid-template-columns: auto minmax(3rem, 1fr) auto;
    align-items: center;
    gap: clamp(4px, 1.5vw, 8px);
  }
  .brand-home {
    grid-column: 1;
    grid-row: 1;
    width: 60px;
    height: 60px;
  }
  .header-logo {
    width: 60px;
    height: 60px;
  }
  .primary-navigation-shell {
    display: contents;
  }
  .navigation-disclosure {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--surface-light);
    cursor: pointer;
  }
  .navigation-disclosure-icon {
    position: relative;
    width: 24px;
    height: 20px;
    display: block;
  }
  .navigation-disclosure-icon > span {
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--surface-light);
    opacity: 1;
    transform-origin: center;
    transition: transform 140ms ease-out, opacity 140ms ease-out;
  }
  .navigation-disclosure-icon > span:nth-child(1) {
    top: 0;
  }
  .navigation-disclosure-icon > span:nth-child(2) {
    top: 9px;
  }
  .navigation-disclosure-icon > span:nth-child(3) {
    top: 18px;
  }
  .navigation-disclosure[aria-expanded="true"] .navigation-disclosure-icon > span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .navigation-disclosure[aria-expanded="true"] .navigation-disclosure-icon > span:nth-child(2) {
    opacity: 0;
  }
  .navigation-disclosure[aria-expanded="true"] .navigation-disclosure-icon > span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
  .navigation-disclosure:active {
    background: rgba(255,255,255,.08);
  }
  .navigation-disclosure:focus-visible {
    outline: .1875rem solid var(--surface-light);
    outline-offset: .125rem;
    box-shadow: 0 0 0 .25rem var(--brand-red);
  }
  .language-navigation--header {
    grid-column: 3;
    grid-row: 1;
    min-width: 0;
    margin-left: 0;
    justify-content: flex-end;
    flex-wrap: nowrap;
  }
  .language-link {
    width: 44px;
    height: 44px;
  }
  .primary-navigation {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
    gap: 0;
    padding: .25rem 0;
    border-top: .0625rem solid rgba(255,255,255,.18);
    border-bottom: .1875rem solid var(--brand-red);
    background: var(--ink);
  }
  .primary-navigation a {
    min-width: 0;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: .7rem clamp(.75rem, 4vw, 1.15rem);
    border-left: .25rem solid transparent;
    color: var(--surface-light);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: break-word;
    word-break: normal;
    text-align: start;
    text-decoration: underline transparent .12rem;
    text-underline-offset: .35rem;
  }
  .primary-navigation a + a {
    border-top: .0625rem solid rgba(255,255,255,.14);
  }
  .primary-navigation a:hover, .primary-navigation a[aria-current] {
    border-left-color: var(--brand-red);
    text-decoration-color: var(--surface-light);
  }
  .primary-navigation a:active {
    border-left-color: var(--brand-red);
    background: var(--brand-red-deep);
  }
  .primary-navigation a:focus-visible {
    outline: .1875rem solid var(--surface-light);
    outline-offset: -.1875rem;
    box-shadow: inset .25rem 0 0 var(--brand-red);
  }
}

@media (max-width: 340px) {
  .page--home .header-inner {
    grid-template-columns: auto minmax(3rem, 1fr);
  }
  .page--home .navigation-disclosure {
    grid-column: 2;
  }
  .page--home .language-navigation--header {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    justify-content: center;
  }
  .page--home .primary-navigation {
    grid-row: 3;
  }
}

@media (orientation: landscape) and (max-height: 500px) and (max-width: 932px) {
  .progress-dock {
    min-width: 0;
    padding: 1rem max(18px, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom));
    display: grid;
    place-items: center;
    background: var(--ink);
  }
  .journey-progress {
    position: static;
    width: 52px;
    height: 52px;
  }
  .primary-navigation {
    padding-block: .25rem .4rem;
  }
  .primary-navigation a {
    min-height: 2.75rem;
    padding-block: .55rem;
  }
}

@media (max-width: 360px), (max-height: 799px) and (max-width: 719px) {
  .bamboo-black::before, .bamboo-white::before {
    opacity: .02;
    width: 80vw;
  }
}

@media (max-width: 719px) {
  h1, h2, h3, p, li, dt, dd, a, label, button, span {
    overflow-wrap: anywhere;
  }
  .symptom-card, .solution-card, .card-copy, .solution-media,
  .contact-layout, .contact-art, .contact-content, .contact-channels,
  .contact-channels > *, .contact-form, .field, .footer-utilities,
  .footer-utilities > *, .creative-credit, .primary-navigation,
  .language-navigation {
    min-width: 0;
  }
  .symptom-card .card-copy, .solution-card .card-copy,
  .contact-form, .comparison.is-enhanced {
    padding: clamp(16px, 5vw, 24px);
  }
  .button, .submit-button, .navigation-disclosure,
  .primary-navigation a, .field label, .collection-notice,
  .form-summary, .form-status {
    max-width: 100%;
    overflow-wrap: break-word;
  }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }
  .button--primary:hover {
    transform: none;
  }
  .navigation-disclosure-icon > span {
    transition: none !important;
  }
}
