/* Round 3 base: what the five variations share. The reset, the type steps, the header bar, the footer, the
   actions, the form, a photograph with its credit and a motif in one ink. Each variation adds its own page.css.
   Square corners, flat blocks, hairline rules; no shadow, no gradient; type ranged left and never moved. */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--body-size);
  line-height: var(--body-line);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1,
h2,
h3,
h4,
p,
ol,
ul,
dl,
dd,
figure,
blockquote {
  margin: 0;
}
ol,
ul {
  padding: 0;
  list-style: none;
}
h1,
h2,
h3,
h4 {
  font-weight: 400;
  font-size: inherit;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
button,
input,
textarea {
  font: inherit;
  color: inherit;
  border-radius: 0;
}
:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 30;
  padding: 0.6rem 0.9rem;
  background: var(--acid-green);
  color: var(--black);
  font-weight: 700;
  text-decoration: none;
}
.skip:focus {
  top: 0.5rem;
}

/* The page's width and gutters. */
.wrap {
  width: 100%;
  max-width: calc(var(--column) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* The Acid Green strip down the left edge, where a variation keeps it. */
body.has-strip {
  padding-left: var(--strip);
}
body.has-strip::before {
  content: '';
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 25;
  width: var(--strip);
  background: var(--acid-green);
}

/* Type steps (brand.yaml, decision 0079). Light only at display sizes; Bold for a large number. */
.meta {
  font-size: var(--label-size);
  line-height: 1.3;
  letter-spacing: var(--label-track);
  text-transform: uppercase;
}
.lead {
  font-size: var(--lead-size);
  line-height: 1.45;
  max-width: 36rem;
}
.heading {
  font-size: var(--heading-size);
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-weight: 300;
  text-wrap: balance;
}
.headline {
  font-size: var(--headline-size);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 300;
  text-wrap: balance;
}
.statement {
  font-size: var(--statement-size);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 300;
  text-wrap: balance;
}
.number {
  font-size: var(--number-size);
  line-height: 0.85;
  letter-spacing: -0.05em;
  font-weight: 700;
}
.measure {
  max-width: 36rem;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.875rem;
  line-height: 1.45;
}
strong,
b {
  font-weight: 700;
}

/* A section opens on a hairline rule and a small label. */
.section {
  padding-block: var(--section);
}
.label-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--rule);
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
}

/* Actions: flat blocks with square corners. A label is black or white, never Acid Green. */
.action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--text, var(--black));
  background: var(--text, var(--black));
  color: var(--ground, var(--white));
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.action--acid {
  background: var(--acid-green);
  border-color: var(--acid-green);
  color: var(--black);
}
.action--line {
  background: none;
  color: var(--text, var(--black));
}
.action:hover {
  background: var(--acid-green);
  border-color: var(--black);
  color: var(--black);
}
.text-link {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}
.text-link:hover {
  text-decoration-thickness: 2px;
}

/* The header: one black bar that stays at the top (design-system decision 0093). */
.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--black);
  color: var(--white);
}
.bar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}
.bar-logo {
  display: block;
  flex: none;
}
.bar-logo img {
  height: 1.75rem;
  width: auto;
}
.bar-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.75rem);
}
.bar-links {
  display: flex;
  gap: clamp(0.75rem, 2vw, 1.75rem);
}
.bar-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  text-decoration: none;
  font-size: 0.9375rem;
}
.bar-links a:hover {
  text-decoration: underline;
}
.bar .action {
  min-height: 2.5rem;
  padding: 0.4rem 0.9rem;
}
.bar-menu {
  display: none;
  min-height: 2.75rem;
  padding: 0 0.25rem;
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 0.9375rem;
}
@media (max-width: 719px) {
  .bar-menu {
    display: inline-flex;
    align-items: center;
  }
  /* Without the script the links stay in the bar, wrapped under it; with it they open from Menu. */
  .js .bar-links {
    display: none;
    position: absolute;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem var(--gutter) 1rem;
    background: var(--black);
    border-top: 1px solid var(--grey);
  }
  .js .bar[data-open] .bar-links {
    display: flex;
  }
  .js .bar-links a {
    min-height: 3rem;
    font-size: 1.125rem;
    border-bottom: 1px solid var(--grey);
  }
  html:not(.js) .bar-in {
    flex-wrap: wrap;
    padding-block: 0.5rem;
  }
  html:not(.js) .bar-menu {
    display: none;
  }
}

/* The footer, on Stone: what STRGY does on the left, the links in three labelled columns, then a rule with the
   legal line (design-system decision 0096). The mission line is left off, as the review of 13 November asked. */
.foot {
  padding-block: clamp(3rem, 6vw, 5rem) 2rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2.5rem var(--gap);
}
.foot-line {
  font-size: var(--heading-size);
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-weight: 300;
  max-width: 18ch;
  text-wrap: balance;
}
.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem var(--gap);
}
.foot-cols h2 {
  padding-top: 0.6rem;
  border-top: 1px solid var(--rule);
  margin-bottom: 0.75rem;
}
.foot-cols a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  text-decoration: none;
}
.foot-cols a:hover {
  text-decoration: underline;
}
.foot-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}
@media (max-width: 760px) {
  .foot-grid {
    grid-template-columns: 1fr;
  }
  .foot-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* A photograph with its credit. Only the brand's licensed photographs, each credited. */
.photo {
  position: relative;
  overflow: hidden;
  background: var(--stone);
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.credit {
  margin-top: 0.4rem;
  font-size: 0.6875rem;
  line-height: 1.3;
  color: var(--muted);
}

/* A motif in one ink: the brand's file as drawn, coloured by the text colour of its ground. It bleeds off its
   block's edge and is never framed. */
.motif {
  display: block;
  background: currentColor;
  -webkit-mask: var(--motif) center / var(--motif-size, cover) var(--motif-repeat, no-repeat);
  mask: var(--motif) center / var(--motif-size, cover) var(--motif-repeat, no-repeat);
}

/* Questions: each opens in place. */
.qa {
  border-top: 1px solid var(--rule);
}
.qa:last-of-type {
  border-bottom: 1px solid var(--rule);
}
.qa summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  font-size: var(--lead-size);
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}
.qa summary::-webkit-details-marker {
  display: none;
}
.qa summary::after {
  content: '+';
  flex: none;
  font-weight: 300;
  font-size: 1.5rem;
  line-height: 1;
}
.qa[open] summary::after {
  content: '\2212';
}
.qa p {
  padding: 0 0 1.4rem;
  max-width: 40rem;
}

/* The form: White fields with a black edge; the request opens the reader's email app with the message written. */
.form {
  display: grid;
  gap: 1rem;
}
.form-modes {
  border: 0;
  padding: 0;
  margin: 0;
}
.form-modes legend {
  padding: 0;
  margin-bottom: 0.5rem;
}
.form-mode-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.form-mode {
  position: relative;
  display: inline-flex;
}
.form-mode input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}
.form-mode span {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.9rem;
  border: 1px solid var(--text);
  font-weight: 700;
}
.form-mode input:checked + span {
  background: var(--text);
  color: var(--ground);
}
.form-mode input:focus-visible + span {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}
.form-field {
  display: grid;
  gap: 0.35rem;
}
.form-field label {
  font-size: 0.875rem;
  font-weight: 700;
}
.form-field input,
.form-field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.8rem;
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--black);
}
.form-field textarea {
  resize: vertical;
}
.form-error {
  font-size: 0.875rem;
  font-weight: 700;
}
.form .action {
  justify-content: space-between;
  width: 100%;
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}
.form .action:hover {
  background: var(--white);
  color: var(--black);
}
.form-sent:empty {
  display: none;
}

/* Field notes as a grid of dated cards. */
.notes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: 2rem var(--gap);
}
.note {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--rule);
  text-decoration: none;
}
.note h3 {
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.note:hover h3 {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

/* One-time turns: a motif's pieces turn in once as it enters, like coins (the brand's own motion). Nothing waits
   on it: before the script, and with reduced motion, the motif shows whole. */
.turning path {
  transform-box: fill-box;
  transform-origin: center;
}

/* A section's frame: its label in a head, its content in a body. Each variation lays the two out its own way. */
.sec-head {
  padding-top: 0.75rem;
  border-top: 1px solid var(--rule);
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
}
.sec-body > .heading,
.sec-body > .headline {
  max-width: 20ch;
}
.sec-body > .lead {
  margin-top: 1.25rem;
}

/* Plans: the way in as four steps, what every plan includes, and why there is no fee per seat. */
.plan-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem var(--gap);
  margin-top: clamp(2rem, 5vw, 4rem);
  counter-reset: plan;
}
.plan-steps li {
  counter-increment: plan;
  padding-top: 0.75rem;
  border-top: 1px solid var(--rule);
}
.plan-steps li::before {
  content: counter(plan);
  display: block;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}
.plan-steps h3 {
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.plan-more {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem var(--gap);
  margin-top: clamp(2rem, 5vw, 4rem);
}
.plan-includes h3,
.plan-aside h3 {
  margin-bottom: 0.75rem;
}
.plan-includes li {
  padding: 0.6rem 0;
  border-top: 1px solid var(--rule);
}
.plan-includes li:last-child {
  border-bottom: 1px solid var(--rule);
}
.plan-aside {
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--blue-wash);
  color: var(--black);
  align-self: start;
}
.plan-aside p + p {
  margin-top: 1.25rem;
}
@media (max-width: 900px) {
  .plan-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .plan-steps,
  .plan-more {
    grid-template-columns: 1fr;
  }
}

/* Book a demo: the words and what happens next beside the form. */
.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.demo-steps {
  margin-top: clamp(1.5rem, 4vw, 3rem);
  counter-reset: demo;
}
.demo-steps li {
  counter-increment: demo;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  padding: 0.9rem 0;
  border-top: 1px solid var(--rule);
}
.demo-steps li::before {
  content: counter(demo);
  font-weight: 700;
}
.demo-steps h3 {
  font-weight: 700;
}
@media (max-width: 800px) {
  .demo-grid {
    grid-template-columns: 1fr;
  }
}

/* A block figure: the plan is the black rule along the top, and each block hangs from it as far as the work has
   drifted by then. Flat blocks in the brand's colours, after the agency's own editorial charts; no thin lines.
   With the cord (--k from cord.js, 0 drifting to 1 pulled) the blocks fold back to the plan. */
.bars {
  display: grid;
  grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr));
  align-items: start;
  height: var(--bars-h, clamp(11rem, 26vw, 20rem));
  border-top: 3px solid var(--text);
}
.bars i {
  display: block;
  height: calc((var(--h) * (1 - var(--k, 0)) + var(--hk, var(--h)) * var(--k, 0)) * 1%);
  background: var(--blue-wash);
  border-bottom: 3px solid var(--text);
}

/* The cord: a string and a handle that hang from the plan. */
.cord {
  --k: 0;
  position: relative;
}
.cord-pull {
  position: absolute;
  z-index: 2;
  top: 0;
  left: var(--cord-x, 16.666%);
  width: 2.75rem;
  height: calc(var(--cord-len, 9rem) * (1 - 0.55 * var(--k)));
  transform: translateX(-50%);
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
  cursor: grab;
  touch-action: none;
  --drag: 0px;
}
.cord-pull[data-dragging] {
  cursor: grabbing;
}
.cord-string {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: calc(1.5rem - var(--drag));
  width: 2px;
  margin-left: -1px;
  background: var(--text);
}
.cord-knob {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 1.25rem;
  height: 1.75rem;
  margin-left: -0.625rem;
  background: var(--text);
  border: 1.5px solid var(--black);
  transform: translateY(var(--drag));
}
.cord-pull[data-ready] .cord-knob,
.cord[data-state='pulled'] .cord-knob {
  background: var(--acid-green);
}
.cord-label {
  position: absolute;
  left: calc(50% + 1.1rem);
  bottom: 0.25rem;
  padding: 0.1rem 0.4rem;
  background: var(--ground);
  white-space: nowrap;
  font-weight: 700;
}
/* Without the script there is nothing to pull: the words carry both states. */
html:not(.js) .cord-pull {
  display: none;
}

/* Book a demo again after How it works, so the way on is not only at the page's end. */
.cta-row {
  margin-top: clamp(2rem, 4vw, 3.5rem);
}
/* Who we work with: each sector's sentence at the lead size, so it is read. */
.sectors li > p {
  font-size: var(--lead-size);
  line-height: 1.4;
}

/* A light block inside a section keeps black type and black rules in both themes. */
.plan-aside,
.v2 .readout > div,
.v3 .with,
.v3 .steps li,
.v3 .proof,
.v4 .with,
.v5 .panel--with figcaption {
  color: var(--black);
  --text: var(--black);
  --ground: var(--white);
  --muted: var(--grey);
  --rule: var(--black);
}
/* In the dark theme Book a demo stands on Grey, and Acid Green marks its one action. */
:root[data-theme='dark'] .form .action {
  background: var(--acid-green);
  border-color: var(--acid-green);
  color: var(--black);
}
/* The Light and Dark switch, at the end of the menu. */
.bar-theme {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0;
  background: none;
  border: 0;
  font-size: 0.9375rem;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}
html:not(.js) .bar-theme {
  display: none;
}
@media (max-width: 719px) {
  .js .bar-theme {
    min-height: 3rem;
    font-size: 1.125rem;
  }
}
/* On a black page the black bar is told apart by a hairline. */
:root[data-theme='dark'] .bar {
  border-bottom: 1px solid var(--grey);
}
