/* ==========================================================================
   Think Of Them — public site
   One stylesheet for every public page.
   ========================================================================== */

/* --- Design tokens ------------------------------------------------------ */

:root {
  color-scheme: light;   /* the site is light in every context, by design */

  --paper:      #ffffff;
  --wash:       #f5faf9;
  --wash-deep:  #eaf3f1;
  --blush:      #fff7f4;
  --ink:        #0d2a26;
  --ink-soft:   #46615c;
  --ink-faint:  #5e7369;
  --line:       #e3edeb;
  --line-soft:  #eef5f3;

  --forest:     #0f5a51;
  --fern:       #1f8474;
  --fern-tint:  #e9f4f1;
  --flamingo:   #e0574c;   /* brand mark, accents, decorative rules */
  --flamingo-d: #c8483e;
  --cta:        #c2453a;   /* buttons: 4.9:1 against white text */
  --cta-d:      #a83a30;

  --shadow:     0 18px 44px rgba(13, 42, 38, .07);
  --shadow-sm:  0 6px 18px rgba(13, 42, 38, .05);

  --measure: 68ch;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --shell: 1220px;
  --radius: 10px;
  --radius-lg: 18px;

  --sans: "Archivo", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
}

/* --- Reset & base ------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.09rem;          /* ~17.5px — comfortable on a large screen */
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--forest); text-decoration-color: var(--line); text-underline-offset: .18em; }
a:hover { color: var(--fern); text-decoration-color: currentColor; }

:focus-visible {
  outline: 2px solid var(--fern);
  outline-offset: 3px;
  border-radius: 3px;
}

h1 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
/* the two places where the editorial voice is the point */
.h-serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.015em; }

h1 { font-size: clamp(2.35rem, 4.9vw, 3.7rem); line-height: 1.04; }
h2 { font-size: clamp(1.85rem, 3.1vw, 2.55rem); line-height: 1.12; }
h3 { font-size: 1.3rem; line-height: 1.25; }
h4 { font-size: 1.06rem; line-height: 1.3; }

p { margin: 0 0 .95em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  line-height: 1.5;
  color: var(--ink-soft);
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--forest); color: #fff;
  padding: .7rem 1.1rem; z-index: 200;
}
.skip:focus { left: .5rem; top: .5rem; }

/* --- Layout ------------------------------------------------------------- */

.shell {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band { padding-block: clamp(3rem, 5.6vw, 5rem); }
.band--wash { background: var(--wash); }
.band--accent { background: linear-gradient(180deg, var(--blush) 0%, var(--wash) 100%); }
.band--tight { padding-block: clamp(2rem, 3.4vw, 2.75rem); }

.band--accent p { color: var(--ink-soft); }

.band-head { margin-bottom: clamp(1.6rem, 2.6vw, 2.25rem); }
.band-head p { color: var(--ink-soft); }

/* --- Header ------------------------------------------------------------- */

.masthead {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.masthead__inner {
  display: flex; align-items: center; gap: 1.25rem;
  min-height: 68px;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  text-decoration: none; color: var(--ink);
  font-family: var(--serif); font-size: 1.22rem; letter-spacing: -.01em;
  white-space: nowrap;
}
.brand img { width: 30px; height: 30px; }
.brand:hover { color: var(--ink); }

.nav { display: flex; align-items: center; gap: .15rem; margin-left: auto; }

.nav a:not(.btn) {
  display: inline-block;
  padding: .45rem .7rem;
  font-size: .97rem;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: var(--radius);
}
.nav a:not(.btn):hover { color: var(--ink); background: var(--wash); }
.nav a:not(.btn)[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--flamingo); border-radius: 0; }

.nav-tools { display: flex; align-items: center; gap: .5rem; margin-left: .5rem; }

.langs { display: flex; align-items: center; gap: .1rem; padding-left: .6rem; border-left: 1px solid var(--line); }
.langs a { padding: .3rem .42rem; font-size: .85rem; letter-spacing: .04em; color: var(--ink-faint); text-decoration: none; }
.langs a:hover { color: var(--ink); }
.langs a.is-active { color: var(--ink); font-weight: 600; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  font-family: var(--sans); font-size: .97rem; font-weight: 500; line-height: 1;
  padding: .72rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn--primary { background: var(--cta); color: #fff; box-shadow: 0 8px 22px rgba(194,69,58,.22); }
.btn--primary:hover { background: var(--cta-d); color: #fff; box-shadow: 0 10px 26px rgba(194,69,58,.28); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--fern); color: var(--ink); background: var(--fern-tint); }
.btn--light { background: var(--paper); color: var(--forest); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn--light:hover { background: var(--fern-tint); color: var(--forest); }
.btn--sm { padding: .5rem .85rem; font-size: .9rem; }

.signin { position: relative; }
.signin__menu {
  position: absolute; right: 0; top: calc(100% + .5rem);
  min-width: 232px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .35rem;
  display: none;
}
.signin[data-open="true"] .signin__menu { display: block; }
.signin__menu a {
  display: block; padding: .6rem .7rem; border-radius: 4px;
  text-decoration: none; color: var(--ink); font-size: .95rem; line-height: 1.35;
}
.signin__menu a:hover { background: var(--wash); }
.signin__menu span { display: block; font-size: .82rem; color: var(--ink-faint); }

.burger { display: none; }

@media (max-width: 940px) {
  .nav { display: none; position: fixed; inset: 68px 0 auto; flex-direction: column; align-items: stretch;
         gap: 0; background: var(--paper); border-bottom: 1px solid var(--line);
         padding: .6rem var(--gutter) 1.2rem; max-height: calc(100dvh - 68px); overflow-y: auto; }
  .masthead[data-open="true"] .nav { display: flex; }
  .nav a:not(.btn) { padding: .75rem .2rem; font-size: 1.05rem; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
  .nav-tools { margin: .9rem 0 0; flex-wrap: wrap; }
  .langs { border-left: 0; padding-left: 0; }
  .signin__menu { position: static; display: block; border: 0; padding: 0; min-width: 0; }
  .signin > .btn { display: none; }
  .burger { display: inline-flex; margin-left: auto; align-items: center; justify-content: center;
            width: 42px; height: 42px; border: 1px solid var(--line); border-radius: var(--radius);
            background: transparent; color: var(--ink); cursor: pointer; }
}

/* --- Hero --------------------------------------------------------------- */

.hero { padding-block: clamp(3rem, 6vw, 5.5rem) clamp(2.5rem, 5vw, 4rem); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 1000px) { .hero__grid { grid-template-columns: 1fr; } }

.hero h1 { margin-bottom: .55em; }
.hero .lead { max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.9rem; }

/* --- Cycle rail (the hero's one bold element) --------------------------- */

.cycle {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.cycle__caption {
  padding: .85rem 1.15rem;
  border-bottom: 1px solid var(--line-soft);
  font-size: .88rem;
  color: var(--ink-faint);
}
.cycle__rail { padding: 1.5rem 1.15rem .4rem; }
.cycle__svg { width: 100%; height: auto; display: block; }
.cycle__svg .track { fill: none; stroke: var(--line); stroke-width: 2; }
.cycle__svg .node { fill: var(--paper); stroke: var(--fern); stroke-width: 2; cursor: pointer; }
.cycle__svg .hit { fill: transparent; cursor: pointer; }
.cycle__svg .node.is-on { fill: var(--flamingo); stroke: var(--flamingo); }
.cycle__svg text { font-family: var(--sans); font-size: 11.5px; fill: var(--ink-faint); }
.cycle__svg text.is-on { fill: var(--ink); font-weight: 600; }

.cycle__panel { padding: .4rem 1.15rem 1.2rem; min-height: 126px; }
.cycle__panel h3 { font-size: 1.18rem; margin-bottom: .25rem; }
.cycle__panel p { font-size: .97rem; color: var(--ink-soft); margin-bottom: .7rem; }
.cycle__mods { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.cycle__mods li {
  font-size: .82rem; padding: .22rem .55rem;
  border: 1px solid var(--line); border-radius: 100px; color: var(--ink-soft);
  background: var(--fern-tint);
}

/* --- Fact row ----------------------------------------------------------- */

.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.facts > div { padding: 1.4rem 1.25rem; border-left: 1px solid var(--line); }
.facts > div:first-child { border-left: 0; padding-left: 0; }
.facts dt { font-size: .85rem; color: var(--ink-faint); margin-bottom: .2rem; }
.facts dd { margin: 0; font-family: var(--serif); font-size: 1.22rem; line-height: 1.25; }
@media (max-width: 1040px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts > div:nth-child(2n+1) { border-left: 0; padding-left: 0; }
  .facts > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .facts { grid-template-columns: 1fr; }
  .facts > div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-block: 1.05rem; }
  .facts > div:first-child { border-top: 0; }
}

/* --- Partner strip ------------------------------------------------------ */

.partners { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(1.5rem, 4vw, 3.25rem); }
.partners figure { margin: 0; display: flex; align-items: center; gap: .7rem; }
.partners img {
  width: 46px; height: 46px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--line); background: #fff;
}
.partners figcaption { font-size: .93rem; line-height: 1.25; }
.partners figcaption span { display: block; font-size: .8rem; color: var(--ink-faint); }

/* --- Hairline grid (modules, tests, facts) ------------------------------ */

.grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1080px) { .grid--4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid--4 { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.cell { background: var(--paper); padding: 1.3rem 1.25rem; transition: background-color .18s ease; }
.cell:hover { background: var(--wash); }
.cell h2, .cell h3 { font-size: 1.04rem; font-weight: 600; margin-bottom: .35rem; }
.cell p { font-size: .97rem; color: var(--ink-soft); margin: 0; }
.cell .ico { color: var(--fern); margin-bottom: .95rem; display: block; }
.cell .ico svg { width: 24px; height: 24px; }

/* --- Screenshot frame --------------------------------------------------- */

.shot {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--wash-deep);
  box-shadow: var(--shadow);
}
.shot__bar {
  display: flex; align-items: center; gap: .4rem;
  padding: .6rem .85rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.shot__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); display: block; }
.shot__bar span { margin-left: .5rem; font-size: .8rem; color: var(--ink-faint); }
.shot__scroll { overflow-x: auto; }
.shot__scroll img { min-width: 720px; }

.figure-note { margin: .85rem 0 0; font-size: .88rem; color: var(--ink-faint); }

/* --- Split section ------------------------------------------------------ */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split--narrow { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
@media (max-width: 900px) { .split, .split--narrow { grid-template-columns: 1fr; } }

/* --- Test cards --------------------------------------------------------- */

.test { background: var(--paper); padding: 1.4rem 1.35rem; display: flex; flex-direction: column; }
.test__n { font-family: var(--serif); font-size: 2.45rem; line-height: 1; color: var(--forest); }
.test__u { font-size: .88rem; color: var(--ink-faint); margin: .3rem 0 1.1rem; }
.test h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: .4rem; }
.test p { font-size: .96rem; color: var(--ink-soft); margin: 0; }

/* --- Checklist ---------------------------------------------------------- */

.checks { list-style: none; margin: 0; padding: 0; }
.checks li {
  display: grid; grid-template-columns: 22px 1fr; gap: .75rem;
  padding: .7rem 0; border-bottom: 1px solid var(--line-soft);
}
.checks li:last-child { border-bottom: 0; }
.checks svg { width: 18px; height: 18px; color: var(--fern); margin-top: .28rem; }
.checks strong { font-weight: 600; }
.checks span { display: block; font-size: .95rem; color: var(--ink-soft); }
.band--accent .checks { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: .4rem 1.5rem; box-shadow: var(--shadow-sm); }

/* --- People ------------------------------------------------------------- */

.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1.4rem 1.35rem; }
.person img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: 8px; background: var(--wash-deep); margin-bottom: .7rem;
}
.person h3 { font-size: .99rem; font-weight: 600; margin-bottom: .1rem; }
.person p { font-size: .89rem; color: var(--ink-faint); margin: 0; }

.advisors { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.4rem 1.75rem; }
.advisor { display: grid; grid-template-columns: 62px 1fr; gap: 1rem; align-items: start; }
.advisor img { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; background: var(--wash-deep); }
.advisor h3 { font-size: 1rem; font-weight: 600; margin-bottom: .1rem; }
.advisor p { font-size: .89rem; color: var(--ink-soft); margin: 0; }
.advisor .role { font-size: .8rem; color: var(--fern); margin-bottom: .15rem; }

/* --- Tabs --------------------------------------------------------------- */

.tabs { display: flex; gap: .35rem; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 2rem; }
.tabs button {
  font-family: var(--sans); font-size: 1rem; color: var(--ink-faint);
  background: none; border: 0; border-bottom: 2px solid transparent;
  padding: .6rem .8rem; margin-bottom: -1px; cursor: pointer;
}
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--flamingo); }
.tabpanel[hidden] { display: none; }

/* --- Form --------------------------------------------------------------- */

.form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 1.1rem; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .89rem; color: var(--ink-soft); margin-bottom: .3rem; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: .7rem .8rem;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--fern); outline: none; box-shadow: 0 0 0 3px var(--fern-tint); }
.form-note { font-size: .86rem; color: var(--ink-faint); }

/* --- Contact list ------------------------------------------------------- */

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: .8rem 0; border-bottom: 1px solid var(--line-soft); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list dt, .contact-list .k { font-size: .84rem; color: var(--ink-faint); margin-bottom: .15rem; }

/* --- Long-form legal document ------------------------------------------- */

.doc { max-width: 74ch; }
.doc h2 { font-size: 1.5rem; margin-top: 2rem; }
.doc h3 { font-size: 1.12rem; font-weight: 600; margin-top: 1.9rem; }
.doc p, .doc li { font-size: 1.02rem; line-height: 1.62; }
.doc ul, .doc ol { padding-left: 1.2rem; }
.doc li { margin-bottom: .5rem; }
.doc dl { margin: 0 0 1.5rem; }
.doc dt { font-weight: 600; margin-top: 1rem; }
.doc dd { margin: .15rem 0 0; color: var(--ink-soft); }
.doc .caps { font-size: .95rem; color: var(--ink-soft); }
.doc-meta { font-size: .9rem; color: var(--ink-faint); border-bottom: 1px solid var(--line); padding-bottom: 1.4rem; margin-bottom: 2rem; }

.toc { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.35rem 1.5rem; margin-bottom: 2.5rem; background: var(--wash); }
.toc h2 { font-size: .95rem; font-weight: 600; margin: 0 0 .6rem; }
.toc ol { margin: 0; padding-left: 1.1rem; }
.toc li { margin-bottom: .3rem; font-size: .97rem; }

/* --- Page intro (inner pages) ------------------------------------------- */

.pagehead { padding-block: clamp(2.25rem, 3.8vw, 3.25rem) clamp(1.75rem, 3vw, 2.25rem); border-bottom: 1px solid var(--line); }
.pagehead .eyebrow { color: var(--fern); font-size: .92rem; margin-bottom: .5rem; }
.pagehead h1 { font-size: clamp(2rem, 4vw, 3rem); }

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

.foot { background: var(--wash); color: var(--ink-soft); border-top: 1px solid var(--line); padding-block: clamp(2.5rem, 4vw, 3.25rem) 1.6rem; }
.foot a { color: var(--forest); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2.5rem 2rem; }
@media (max-width: 860px) { .foot__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot__grid { grid-template-columns: 1fr; } }
.foot h2 { font-size: .87rem; font-weight: 600; color: var(--ink); letter-spacing: .02em; margin-bottom: .8rem; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: .5rem; font-size: .96rem; }
.foot__brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--serif); font-size: 1.2rem; color: var(--ink); margin-bottom: .9rem; }
.foot__brand img { width: 28px; height: 28px; }
.foot p { font-size: .95rem; color: var(--ink-soft); max-width: 34ch; }
.foot__base {
  margin-top: 2.25rem; padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; align-items: center;
  font-size: .88rem;
}
.foot__base .spacer { margin-left: auto; }

/* --- Utility ------------------------------------------------------------ */

.stack > * + * { margin-top: .9rem; }
.mt-lg { margin-top: clamp(1.6rem, 3vw, 2.25rem); }
.mt-md { margin-top: 1.75rem; }
.muted { color: var(--ink-faint); }
.nowrap { white-space: nowrap; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* --- Cycle rail geometry (added) ---------------------------------------- */

.cycle__rail { position: relative; padding: 1.4rem 1.15rem .9rem; }
.cycle__line { position: absolute; left: 1.15rem; right: 1.15rem; top: 1.4rem; height: 118px; width: calc(100% - 2.3rem); }
.cycle__line line { stroke: var(--line); stroke-width: 2; }
.cycle__stages {
  position: relative; list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(7, 1fr); height: 118px;
}
.cycle__stages li { position: relative; }
.cycle__stages button {
  position: absolute; inset: 0; width: 100%;
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--sans); font-size: .73rem; line-height: 1.22;
  color: var(--ink-faint);
}
.cycle__stages .dot {
  position: absolute; left: 50%; width: 13px; height: 13px; margin-left: -6.5px;
  border-radius: 50%; background: var(--paper); border: 2px solid var(--fern);
  top: calc(78px - var(--rise) * 8px); margin-top: -6.5px;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.cycle__stages .lab { position: absolute; left: 0; right: 0; bottom: 0; padding-inline: 1px; overflow-wrap: anywhere; hyphens: auto; }
.cycle__stages button:hover .lab, .cycle__stages button[aria-pressed="true"] .lab { color: var(--ink); }
.cycle__stages button[aria-pressed="true"] .dot { background: var(--flamingo); border-color: var(--flamingo); transform: scale(1.18); }
.cycle__stages button[aria-pressed="true"] .lab { font-weight: 600; }

@media (max-width: 680px) {
  .cycle__line { display: none; }
  .cycle__stages {
    grid-template-columns: 1fr; height: auto;
    border-left: 2px solid var(--line); margin-left: 6px; padding-left: 1.1rem;
  }
  .cycle__stages li { min-height: 0; }
  .cycle__stages button { position: static; text-align: left; padding: .5rem 0; font-size: .95rem; }
  .cycle__stages .dot { position: absolute; left: -1.1rem; top: 50%; margin-left: -7.5px; }
  .cycle__stages .lab { position: static; padding-inline: 0; }
}

/* --- Advisor monogram (added) ------------------------------------------- */

.advisor .mono {
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--fern-tint); color: var(--forest);
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.15rem; letter-spacing: .02em;
}

/* --- Table of contents list (added) ------------------------------------- */

.toc ul { list-style: none; margin: 0; padding: 0; }
.toc ul li { margin-bottom: .35rem; font-size: .97rem; }
.toc ul li a { text-decoration: none; }
.toc ul li a:hover { text-decoration: underline; }

/* --- "What we will not do" uses a cross, in a muted tone (added) -------- */

.checks--no svg { color: var(--ink-faint); }

/* --- Additions for the trilingual build --------------------------------- */

.rounded { border-radius: var(--radius-lg); }
.framed { border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.small { font-size: .94rem; }
.partners-intro { font-size: .92rem; margin-bottom: 1.5rem; }

.cta-actions { display: flex; gap: .7rem; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 900px) { .cta-actions { justify-content: flex-start; } }

.form-submit { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* numbered lists that read as a sequence */
ol.numbered { counter-reset: n; list-style: none; padding-left: 0; }
ol.numbered > li { counter-increment: n; position: relative; padding-left: 2.4rem; }
ol.numbered > li::before {
  content: counter(n);
  position: absolute; left: 0; top: 0;
  width: 1.7rem; text-align: right;
  font-family: var(--serif); font-size: 1.05rem;
  color: var(--fern); line-height: inherit;
}

/* photo alongside a short caption */
.aside-photo { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 1.75rem; align-items: center;
  max-width: 680px; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.aside-photo img { border-radius: 10px; width: 100%; }
.aside-photo p { font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.3; color: var(--ink); margin: 0; max-width: 22ch; }
@media (max-width: 620px) { .aside-photo { grid-template-columns: 140px 1fr; gap: 1rem; } }

.contact-photo { border-radius: 10px; margin-top: 2rem; width: 62%; }
@media (max-width: 900px) { .contact-photo { display: none; } }

/* legal document extras */
.doc h4 { font-size: 1rem; font-weight: 600; margin: 1.4rem 0 .2rem; }
.doc-note {
  border-left: 3px solid var(--fern); background: var(--fern-tint);
  padding: .9rem 1.1rem; border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .97rem; margin-bottom: 2rem;
}

/* --- Hero photograph ---------------------------------------------------- */

.hero__media { margin: 0; }
.hero__media img { width: 100%; border-radius: 14px; display: block; }
.hero__media figcaption { margin-top: .75rem; font-size: .86rem; color: var(--ink-faint); }

.cycle--wide { max-width: 1040px; }

/* --- Login page --------------------------------------------------------- */

.login-body { margin: 0; background: var(--paper); }

.login {
  display: grid;
  grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
  min-height: 100dvh;
}

.login__art {
  position: relative;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(2rem, 5vw, 4rem);
  background: #fdf3ee;
  overflow: hidden;
}
.login__art > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: 30% 70%;
}
.login__brand { position: relative; }
.login__mark { display: flex; align-items: center; gap: .9rem; }
.login__mark img { width: 52px; height: 52px; }
.login__mark span { font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.15rem); color: #16302a; letter-spacing: -.01em; }
.login__brand hr { border: 0; border-top: 3px solid var(--flamingo); width: 34px; margin: 1.1rem 0 1.5rem; }
.login__brand h1 { font-size: 1.18rem; font-weight: 600; color: #1a6e60; margin: 0 0 .35rem; }
.login__brand p { font-size: 1rem; color: #4a5b57; margin: 0; max-width: 30ch; }
.login__back {
  position: relative; margin-top: auto; padding-top: 2.5rem;
  font-size: .88rem; color: #4a5b57; text-decoration: none;
}
.login__back:hover { color: #16302a; text-decoration: underline; }

.login__panel {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.4rem;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 3rem);
  background: #f4f6f5;
}
.login__langs { position: absolute; top: 1.4rem; right: clamp(1.25rem, 4vw, 3rem); border-left: 0; padding-left: 0; }

.login__card {
  width: 100%; max-width: 400px;
  background: #fff;
  border: 1px solid #e4eae7;
  border-radius: 12px;
  padding: 2rem 1.9rem 1.7rem;
}
.login__lock {
  display: grid; place-items: center;
  width: 54px; height: 54px; margin: 0 auto 1.6rem;
  border-radius: 50%; background: var(--fern-tint); color: #1a6e60;
}
.login__lock svg { width: 24px; height: 24px; }

.login__card .field { margin-bottom: 1.05rem; }
.login__card label { display: block; font-size: .92rem; font-weight: 500; color: #223330; margin-bottom: .4rem; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap > svg { position: absolute; left: .8rem; width: 18px; height: 18px; color: #93a5a0; pointer-events: none; }
.input-wrap input {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: #10201c;
  background: #fff; border: 1px solid #dbe4e0; border-radius: 8px;
  padding: .78rem .8rem .78rem 2.5rem;
}
.input-wrap input::placeholder { color: #9aaba6; }
.input-wrap input:focus { outline: none; border-color: #1a6e60; box-shadow: 0 0 0 3px rgba(26,110,96,.14); }
.reveal {
  position: absolute; right: .5rem; display: grid; place-items: center;
  width: 32px; height: 32px; border: 0; background: none; color: #93a5a0; cursor: pointer;
}
.reveal svg { width: 19px; height: 19px; }
.reveal:hover { color: #47605a; }

.btn--seal { background: #1a6e60; color: #fff; }
.btn--seal:hover { background: #145649; color: #fff; }
.login__submit { width: 100%; padding-block: .85rem; font-size: 1rem; margin-top: .35rem; }

.login__forgot { text-align: center; margin: 1rem 0 0; font-size: .93rem; }
.login__forgot a { color: #1a6e60; text-decoration: none; }
.login__forgot a:hover { text-decoration: underline; }
.login__or {
  display: flex; align-items: center; gap: .9rem;
  margin: 1.1rem 0 .9rem; color: #9aaba6; font-size: .82rem; letter-spacing: .06em;
}
.login__or::before, .login__or::after { content: ""; flex: 1; height: 1px; background: #e4eae7; }
.login__help { text-align: center; margin: 0; font-size: .93rem; color: #47605a; }
.login__help a { color: #1a6e60; text-decoration: none; }
.login__help a:hover { text-decoration: underline; }

.login__phi { display: flex; align-items: center; gap: .5rem; margin: 0; font-size: .87rem; color: #6c807b; }
.login__phi svg { width: 17px; height: 17px; color: #1a6e60; }

@media (max-width: 860px) {
  .login { grid-template-columns: 1fr; min-height: 0; }
  .login__art { min-height: 300px; padding-block: 2.25rem; }
  .login__back { display: none; }
  .login__panel { min-height: 0; padding-block: 2.5rem 3rem; }
  .login__langs { position: static; margin-bottom: .5rem; }
}

/* --- Cycle rail in its own full-width section --------------------------- */

.cycle__caption { max-width: none; }

@media (min-width: 820px) {
  .cycle--wide .cycle__panel > div:not([hidden]) {
    display: grid;
    grid-template-columns: 15rem minmax(0, 1fr) auto;
    gap: 1.75rem;
    align-items: start;
  }
  .cycle--wide .cycle__panel h3 { margin: 0; }
  .cycle--wide .cycle__panel p { margin: 0; }
  .cycle--wide .cycle__mods { justify-content: flex-end; }
}

/* --- Lighter treatment: eyebrow pills, hero frame, softer chrome -------- */

.pill {
  display: inline-block;
  margin: 0 0 1rem;
  padding: .3rem .7rem;
  border-radius: 100px;
  background: var(--fern-tint);
  color: var(--forest);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1.4;
}
.pagehead .pill { margin-bottom: 1.1rem; }

/* the hero photograph sits on a soft blush field */
.hero__frame {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(150deg, var(--blush) 0%, #fdf3f0 55%, var(--wash) 100%);
  box-shadow: var(--shadow);
}
.hero__frame img { border-radius: 0; }
.hero__media img { border-radius: 22px; }
.hero__frame img { border-radius: 22px; }

.hero { padding-block: clamp(2.5rem, 4.4vw, 4rem) clamp(2rem, 3.6vw, 3rem); }

/* masthead sits lighter on the page */
.masthead { border-bottom-color: var(--line); }
.nav a:not(.btn)[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--flamingo); }

/* the trust band's check list is a card now, so it needs its own rhythm */
.band--accent .checks li { border-color: var(--line-soft); }
.band--accent .checks li:last-child { border-bottom: 0; }

/* screenshots read better with a touch more breathing room */
.figure-note { margin-top: .9rem; }

/* people and partners on the lighter ground */
.person img { background: var(--wash); border-radius: 12px; }
.partners img { background: #fff; }
.advisor .mono { background: var(--fern-tint); color: var(--forest); }

/* legal callout picks up the new tint */
.doc-note { background: var(--fern-tint); border-left-color: var(--fern); }


/* --- Small corrections for the light rebuild ---------------------------- */

.band--accent .pill { background: var(--paper); }

/* cut-out photographs need a white card so the background reads as intentional */
.photo-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.photo-card img { width: 100%; display: block; }

.contact-photo { border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--paper); }
.aside-photo img { border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--paper); }

/* --- Light only --------------------------------------------------------- */
/* The site has no dark variant. Every page carries data-theme="light" and a
   color-scheme meta tag, so a viewer's operating-system dark mode cannot
   repaint it. Do not reintroduce a prefers-color-scheme block here. */

html, body { background: var(--paper); }
.shadowed { box-shadow: var(--shadow); }

/* --- Two-column splits align to the top ---------------------------------- */
/* Centring left a tall column beside a short one and opened a large empty
   band above the shorter side (the contact form was 278px adrift). */

.split, .split--narrow { align-items: start; }

/* --- Partner without a supplied logo ------------------------------------- */

.partners .mono {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--fern-tint); color: var(--forest);
  display: grid; place-items: center;
  font-family: var(--serif); font-size: .95rem; letter-spacing: .02em;
  border: 1px solid var(--line);
}

/* --- Partner logo shown at readable size -------------------------------- */

.lab-logo { width: 170px; height: auto; margin-bottom: 1.4rem; }

/* --- Touch targets and remaining contrast -------------------------------- */
/* WCAG 2.5.8 asks for 24x24 CSS pixels on anything tappable that is not an
   inline link inside a sentence. Standalone links in lists were 17px tall. */

.foot li a,
.foot__base a,
.contact-list > li > a,
.toc ul li a,
.login__forgot a,
.login__help a { display: inline-block; padding-block: 4px; }

.login__or { color: var(--ink-faint); }
.input-wrap > svg,
.reveal { color: #6b807a; }
.input-wrap input::placeholder { color: #6b807a; }

/* ════════════════════════════════════════════════════════════════════════
   Polish pass
   ════════════════════════════════════════════════════════════════════════ */

/* --- One dark anchor: the closing call to action ------------------------ */

.band--dark { background: #0d2a26; color: #e7f2ee; border-top: 0; }
.band--dark h1, .band--dark h2, .band--dark h3 { color: #ffffff; }
.band--dark p, .band--dark .lead { color: #a9c9c0; }
.btn--outline-light { border-color: rgba(231, 242, 238, .38); color: #e7f2ee; background: transparent; }
.btn--outline-light:hover { border-color: #e7f2ee; background: rgba(231, 242, 238, .1); color: #fff; }

/* --- Proof points read as numbers, not footnotes ------------------------ */

.facts dt {
  font-family: var(--sans); font-weight: 600;
  font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.1;
  letter-spacing: -.03em; color: var(--ink); margin-bottom: .3rem;
}
.facts dd { margin: 0; font-family: var(--sans); font-size: .93rem; color: var(--ink-faint); line-height: 1.35; }

/* --- Hero: a readable slice of the real interface ----------------------- */

.hero__frame { position: relative; }
.hero__frame img.hero__ui {
  position: absolute; left: -5%; bottom: 5%;
  width: 47%; border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(13, 42, 38, .16);
  background: #fff;
}
@media (max-width: 1000px) { .hero__frame img.hero__ui { left: -3%; width: 50%; } }
@media (max-width: 560px)  { .hero__frame img.hero__ui { position: static; width: 100%; margin-top: .9rem; box-shadow: var(--shadow-sm); } }

/* --- Treatment cycle: numbered, higher contrast ------------------------- */

.cycle__line line { stroke: var(--line); stroke-width: 3; }
.cycle__stages .dot {
  width: 15px; height: 15px; margin-left: -7.5px; margin-top: -7.5px;
  border-width: 2.5px;
}
.cycle__stages button { font-size: .8rem; color: var(--ink-faint); }
.cycle__stages .num {
  position: absolute; left: 50%; transform: translateX(-50%);
  top: calc(78px - var(--rise) * 8px - 32px);
  font-family: var(--sans); font-size: .72rem; font-weight: 600;
  color: var(--ink-faint); letter-spacing: .04em;
}
.cycle__stages button[aria-pressed="true"] .num { color: var(--cta); }
.cycle__stages button[aria-pressed="true"] .dot { transform: scale(1.3); }
.cycle__stages button[aria-pressed="true"] .lab { color: var(--ink); font-weight: 600; }
@media (max-width: 680px) {
  .cycle__stages .num { position: static; transform: none; margin-right: .45rem; }
  .cycle__stages button { display: flex; align-items: baseline; gap: .1rem; }
}

/* --- Partner strip: one visual weight for every logo -------------------- */

.partners { gap: 1.25rem 1.75rem; }
.partners figure {
  gap: .85rem; padding: .55rem .9rem .55rem .6rem;
  border: 1px solid var(--line); border-radius: 12px; background: var(--paper);
}
.partners img {
  width: 46px; height: 34px; border-radius: 0; border: 0;
  object-fit: contain; background: transparent;
}
.partners .mono {
  width: 46px; height: 34px; border-radius: 0; border: 0; background: transparent;
  font-size: .92rem; font-weight: 600; font-family: var(--sans); color: var(--forest);
}

/* --- Screenshots: say that they scroll --------------------------------- */

.shot__scroll { position: relative; }
@media (max-width: 900px) {
  .shot__scroll::after {
    content: attr(data-scrollhint);
    position: absolute; right: .6rem; bottom: .6rem;
    background: rgba(13, 42, 38, .82); color: #fff;
    font-size: .74rem; letter-spacing: .04em;
    padding: .3rem .6rem; border-radius: 100px;
    pointer-events: none;
  }
  .shot { position: relative; }
  .shot::after {
    content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 44px;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.85));
    pointer-events: none; border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  }
}

/* --- Forms: status, validation, busy state ----------------------------- */

.form-status {
  margin: 0; padding: .7rem .9rem; border-radius: var(--radius);
  font-size: .95rem; border-left: 3px solid var(--fern); background: var(--fern-tint);
}
.form-status.is-error { border-left-color: var(--cta); background: #fdf0ee; color: #7d2b22; }
[aria-invalid="true"] { border-color: var(--cta) !important; }
.btn[disabled] { opacity: .65; cursor: default; }

/* --- Mobile menu: close icon, and the CTA must be reachable ------------- */

.burger__close { display: none; }
.masthead[data-open="true"] .burger__open { display: none; }
.masthead[data-open="true"] .burger__close { display: block; }

@media (max-width: 940px) {
  .masthead__inner > .btn--primary { display: none; }
  .nav .btn--primary { display: inline-flex; width: 100%; justify-content: center; padding-block: .8rem; }
  .nav-tools { gap: .75rem; }
}

/* --- Demonstration-data statement under every screenshot ---------------- */

.figure-note--data {
  display: flex; align-items: flex-start; gap: .5rem;
  margin-top: .5rem; max-width: 68ch;
  color: var(--ink-soft);
}
.figure-note--data svg { width: 16px; height: 16px; flex: none; margin-top: .18rem; color: var(--fern); }
