/* ==========================================================================
   Mary Tichelaar
   Navy ink, one berry brand colour, light and warm paper with a little grain.
   ========================================================================== */

:root {
  /* Brand */
  --brand: #a3165a;
  --brand-deep: #7a1145;
  --brand-soft: #f9dfeb;

  /* Surfaces */
  --light: #fafafb;
  --warm: #f6ece8;
  --sheet: #ffffff;

  /* Ink */
  --ink: #1c1f33;
  --ink-2: #464a61;
  --ink-3: #5b5f75;
  --rule: #ddd8de;
  --rule-strong: #1c1f33;

  /* On brand */
  --on-brand: #fff7fb;
  --on-brand-2: #f3c6da;
  --on-brand-accent: #ffd1e4;

  /* Sticky notes */
  --note-1: #fde7a8;
  --note-2: #f9d3e2;
  --note-3: #d6e6f7;
  --note-4: #d8ecd6;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;

  --wrap: 78rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --section: clamp(4.5rem, 10vw, 8rem);
  --header-h: 4rem;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Paper grain: fine noise, tinted warm */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .24 0 0 0 0 .26 0 0 0 .11 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  /* Linen: very faint woven threads */
  --linen:
    repeating-linear-gradient(0deg, rgba(122, 60, 66, .016) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(122, 60, 66, .013) 0 1px, transparent 1px 4px);
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--light);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--brand); }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
::selection { background: var(--brand-soft); color: var(--ink); }

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

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  padding: .6rem 1rem;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- Tones: sections alternate light / warm / brand ---------- */

.tone-light {
  background-color: var(--light);
  background-image: var(--grain);
  background-size: 220px 220px;
}

.tone-warm {
  background-color: var(--warm);
  background-image: var(--grain), var(--linen);
  background-size: 220px 220px, auto, auto;
  --rule: #e3d2cc;
  --sheet: #fffaf8;
}

.tone-brand {
  background-color: var(--brand-deep);
  background-image: var(--grain);
  background-size: 220px 220px;
  color: var(--on-brand);
  --rule: rgba(255, 247, 251, .22);
  --rule-strong: var(--on-brand);
}
.tone-brand ::selection { background: var(--on-brand-accent); color: var(--brand-deep); }
.tone-brand :focus-visible { outline-color: var(--on-brand-accent); }
.tone-brand a:hover { color: var(--on-brand-accent); }

/* ---------- Type ---------- */

.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -.015em;
  font-variation-settings: "opsz" 60;
  text-wrap: balance;
}
.h2--large { font-size: clamp(2.3rem, 1.4rem + 3.8vw, 4.4rem); line-height: 1; }
.h2 em, .hero__title em { font-style: italic; color: var(--brand); }
.tone-brand .h2 em { color: var(--on-brand-accent); }

.lede {
  font-size: clamp(1.125rem, 1.05rem + .3vw, 1.3rem);
  line-height: 1.5;
}
.muted { color: var(--ink-2); }
.tone-brand .muted { color: var(--on-brand-2); }

p { max-width: 62ch; }
p + p { margin-top: 1em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.1rem;
  font-weight: 500;
  font-size: 1rem;
  color: var(--brand);
}
.eyebrow::before {
  content: "";
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: currentColor;
}
.tone-brand .eyebrow { color: var(--on-brand-accent); }

.hand {
  font-family: var(--hand);
  font-weight: 500;
  letter-spacing: 0;
}

/* ---------- Markers: the shared symbol set ---------- */

.mk {
  display: inline-block;
  flex: none;
  width: .7rem;
  height: .7rem;
  vertical-align: middle;
}
.mk--manual { border: 1.5px dashed var(--ink-3); border-radius: 50%; }
.mk--auto { background: var(--ink); border-radius: 2px; }
.mk--human {
  width: .62rem;
  height: .62rem;
  border: 2px solid var(--brand);
  background: var(--sheet);
  transform: rotate(45deg);
}
/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 3rem;
  padding: .8rem 1.4rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 500 1rem/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn::after {
  content: "";
  width: .5rem; height: .5rem;
  border: 2px solid currentColor;
  border-left: 0; border-bottom: 0;
  transform: rotate(45deg);
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-deep); color: #fff; }
.btn--onBrand { background: var(--on-brand); color: var(--brand-deep); }
.btn--onBrand:hover { background: var(--on-brand-accent); color: var(--brand-deep); }
.btn[disabled] { opacity: .6; cursor: progress; }

.link-arrow {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--brand);
  text-underline-offset: .35em;
}
.link-arrow::after { content: " \2193"; }

.link-out {
  font-weight: 500;
  text-decoration-color: var(--brand);
  text-decoration-thickness: 1.5px;
}
.link-out::after { content: " \2197"; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--light) 92%, transparent);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: saturate(1.2) blur(6px);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.wordmark:hover { color: var(--ink); }
.site-nav ul { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.9rem); }
.site-nav a { font-size: .95rem; text-decoration: none; color: var(--ink-2); }
.site-nav a:hover { color: var(--brand); }
.site-nav .site-nav__cta {
  padding: .5rem 1.1rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 500;
}
.site-nav .site-nav__cta:hover { background: var(--brand-deep); color: #fff; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: .6rem;
  min-height: 2.75rem;
  padding: .4rem .2rem .4rem .8rem;
  border: 0;
  background: none;
  font: 500 .95rem var(--sans);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle__icon,
.nav-toggle__icon::before {
  display: block;
  width: 1.25rem;
  height: 1.5px;
  background: currentColor;
  transition: transform .2s var(--ease);
}
.nav-toggle__icon { position: relative; transform: translateY(-3px); }
.nav-toggle__icon::before { content: ""; position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon { transform: translateY(0) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before { transform: translateY(-6px) rotate(-90deg); }

@media (max-width: 860px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--light);
    border-bottom: 1px solid var(--rule);
    display: none;
  }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gutter) 1.25rem; }
  .js .site-nav li { border-top: 1px solid var(--rule); }
  .js .site-nav li:first-child { border-top: 0; }
  .js .site-nav a { display: block; padding: .85rem 0; font-size: 1.05rem; color: var(--ink); }
  .js .site-nav .site-nav__cta { margin-top: .75rem; padding: .85rem 1rem; text-align: center; color: #fff; }

  html:not(.js) .site-header__inner { flex-wrap: wrap; padding-block: .75rem; }
  html:not(.js) .site-nav ul { flex-wrap: wrap; gap: .5rem 1rem; }
}

/* ---------- Sections ---------- */

.section { padding-block: var(--section); }

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

.hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) var(--section); }

.hero__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 3vw, 2.5rem);
  row-gap: 2rem;
}
.hero__head { grid-column: 1 / span 8; grid-row: 1; align-self: end; }
.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 1.4rem + 7vw, 7.2rem);
  line-height: .93;
  letter-spacing: -.03em;
  font-variation-settings: "opsz" 72;
}
.hero__title em { padding-right: .04em; }

.hero__body {
  grid-column: 1 / span 7;
  grid-row: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  column-gap: clamp(1rem, 3vw, 2.5rem);
  align-items: start;
}
.hero__lede { font-size: 1.125rem; line-height: 1.55; }
.hero__aside {
  margin-top: .35rem;
  padding-left: 1rem;
  border-left: 2px solid var(--brand);
  color: var(--ink-2);
  font-size: 1rem;
}
.hero__actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 1.75rem;
}

.hero__portrait {
  grid-column: 9 / -1;
  grid-row: 1 / span 2;
  align-self: start;
}
.hero__portrait picture {
  display: block;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 18px 40px -18px rgba(122, 17, 69, .45);
  transform: rotate(1.2deg);
}
.hero__portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 20%;
  background: var(--warm);
}
.hero__portrait figcaption {
  margin-top: .9rem;
  padding-left: .25rem;
  transform: rotate(-1deg);
  transform-origin: left;
  font-size: 1.45rem;
  line-height: 1.15;
  color: var(--brand);
}

@media (max-width: 1080px) {
  .hero__head { grid-column: 1 / span 7; }
  .hero__portrait { grid-column: 8 / -1; grid-row: 1; align-self: end; }
  .hero__body { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .hero__head { grid-column: 1 / -1; }
  .hero__portrait { grid-column: 1 / -1; grid-row: 2; }
  .hero__portrait picture { transform: rotate(-.6deg); }
  .hero__portrait img { aspect-ratio: 16 / 10; object-position: 50% 22%; }
  .hero__body { grid-row: 3; grid-template-columns: minmax(0, 1fr); row-gap: 1rem; }
  .hero__aside { margin-top: 0; }
}

/* ---------- Compare (hero figure) ---------- */

.compare { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.compare__cap {
  padding-bottom: .75rem;
  border-bottom: 1.5px solid var(--rule-strong);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--ink-2);
}
.compare__panes {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--sheet);
  border-bottom: 1px solid var(--rule);
}
.pane {
  --pane-bg: var(--sheet);
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 3.5vw, 3rem);
  background: var(--pane-bg);
}
.pane--before {
  --pane-bg: color-mix(in srgb, var(--warm) 55%, var(--sheet));
  border-right: 1px solid var(--rule);
}
.pane__head { margin-bottom: 1.5rem; }
.pane__label { font-family: var(--serif); font-size: 1.7rem; line-height: 1.1; }
.pane--before .pane__label { font-style: italic; color: var(--ink-2); }
.pane--after .pane__label { color: var(--brand); }
.pane__count { margin-top: .3rem; font-size: .9rem; color: var(--ink-3); }

/* Step lists. Each step draws the line down to the next marker, so the
   line always meets the markers whatever the row heights. */
.chain, .flow { display: grid; }
.compare .chain, .compare .flow { flex: 1; grid-auto-rows: 1fr; }

.chain li, .flow__step {
  --mk-mid: calc(.6rem + .7lh);
  position: relative;
  display: grid;
  grid-template-columns: .7rem minmax(0, 1fr);
  column-gap: 1rem;
  align-content: start;
  padding: .6rem 0;
  line-height: 1.4;
}
.chain li > .mk, .flow__step > .mk {
  position: relative;
  z-index: 1;
  margin-top: calc(.7lh - .35rem);
  box-shadow: 0 0 0 3px var(--pane-bg, var(--sheet));
}
.chain li > .mk--manual { background: var(--pane-bg, var(--sheet)); }
.flow__step > .mk--human { margin-top: calc(.7lh - .31rem - 2px); margin-left: 1px; }

.chain li:not(:last-child)::after,
.flow__step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(.35rem - .75px);
  top: var(--mk-mid);
  height: 100%;
}
.flow__step:not(:last-child)::after { width: 1.5px; background: var(--ink); }
.chain li:not(:last-child)::after { border-left: 1.5px dashed color-mix(in srgb, var(--ink-3) 60%, transparent); }

.chain li {
  grid-template-columns: .7rem minmax(0, 1fr) auto;
  color: var(--ink-2);
  font-size: .97rem;
}
.chain .tool { align-self: start; margin-top: calc(.7lh - .8em); }
.chain__note {
  display: inline-block;
  margin-left: .35rem;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--brand);
  white-space: nowrap;
}
.chain__note::before { content: "\2190\00a0"; }
.tool {
  padding: .1rem .55rem;
  border-radius: 999px;
  background: var(--sheet);
  border: 1px solid var(--rule);
  font-size: .8rem;
  color: var(--ink-3);
  white-space: nowrap;
}

.flow__step { font-size: 1rem; }
.flow__step--human { font-weight: 500; }

/* The hand-off between the two panes */
.compare__seam {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  box-shadow: 0 0 0 6px var(--sheet);
  transform: translate(-50%, -50%);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.75rem;
  padding-top: .9rem;
  font-size: .9rem;
  color: var(--ink-2);
}
.legend li { display: inline-flex; align-items: center; gap: .55rem; }

@media (max-width: 860px) {
  .compare__panes { grid-template-columns: minmax(0, 1fr); }
  .pane--before { border-right: 0; border-bottom: 1px solid var(--rule); }
  .compare .chain, .compare .flow { grid-auto-rows: auto; }
  .compare__seam { position: relative; left: auto; top: auto; justify-self: center; margin: -1.375rem 0; transform: rotate(90deg); }
}
@media (max-width: 480px) {
  .chain li { grid-template-columns: .7rem minmax(0, 1fr); }
  .chain .tool { grid-column: 2; justify-self: start; margin-top: .35rem; }
  .chain__note { display: block; margin: .2rem 0 0; }
}

/* ---------- About ---------- */

.about__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 3vw, 2.5rem);
  row-gap: 3rem;
  align-items: center;
}
.about__photo { grid-column: 1 / span 5; }
.about__photo picture {
  display: block;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 18px 40px -18px rgba(122, 17, 69, .45);
  transform: rotate(-1deg);
}
.about__photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.about__text { grid-column: 7 / -1; }
.about__text .h2 { margin-bottom: 1.5rem; }
.about__text .lede { margin-bottom: 1rem; }
.about__link { margin-top: 1.5rem; }

.principles {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.principles li {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  padding: 1.1rem 1.25rem;
  background: var(--warm);
  border-radius: 4px;
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.25;
}
.principles__n {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font: 500 .85rem/1 var(--sans);
  transform: translateY(-.1rem);
}

@media (max-width: 960px) {
  .about__photo, .about__text { grid-column: 1 / -1; }
  .about__photo { max-width: 34rem; }
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .principles { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Examples ---------- */

.examples__intro {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 3vw, 2.5rem);
  row-gap: 2.5rem;
  align-items: center;
}
.examples__text { grid-column: 1 / span 7; }
.examples__text .h2 { margin-bottom: 1.5rem; }
.examples__text .lede { margin-bottom: 1rem; }
.examples__intro .stickies { grid-column: 9 / -1; }
@media (max-width: 960px) {
  .examples__text, .examples__intro .stickies { grid-column: 1 / -1; }
  .stickies { justify-self: start; }
}

.stickies { justify-self: end; width: 100%; max-width: 26rem; }
.stickies ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem .9rem;
}
.sticky {
  min-height: 6.5rem;
  padding: .75rem .8rem 1rem;
  font-family: var(--hand);
  font-size: 1.35rem;
  line-height: 1.1;
  color: #2a2633;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .06), 0 8px 14px -8px rgba(60, 30, 40, .35);
}
.sticky--1 { background: var(--note-1); transform: rotate(-2.2deg); }
.sticky--2 { background: var(--note-2); transform: rotate(1.6deg) translateY(.4rem); }
.sticky--3 { background: var(--note-1); transform: rotate(-.8deg); }
.sticky--4 { background: var(--note-3); transform: rotate(2.4deg); }
.sticky--5 { background: var(--note-4); transform: rotate(-1.6deg) translateY(-.3rem); }
.sticky--6 { background: var(--note-2); transform: rotate(1deg); }
.stickies figcaption { margin-top: 1.25rem; font-size: 1.4rem; line-height: 1.2; color: var(--brand); text-align: center; }


.tabs__list {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding: .25rem .1rem .5rem;
  scrollbar-width: none;
}
.tabs__list::-webkit-scrollbar { display: none; }
.tabs__tab {
  flex: none;
  min-height: 2.75rem;
  padding: .55rem 1.1rem;
  border: 1.5px solid color-mix(in srgb, var(--ink) 25%, transparent);
  border-radius: 999px;
  background: transparent;
  font: 500 1rem/1.2 var(--sans);
  color: var(--ink-2);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.tabs__tab:hover { border-color: var(--brand); color: var(--brand); }
.tabs__tab[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }

.example {
  margin-top: 1.25rem;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  background: var(--sheet);
  box-shadow: 0 1px 2px rgba(28, 31, 51, .05);
}
.example + .example { margin-top: 1.5rem; }
.js .tabs .example + .example { margin-top: 1.25rem; }
.example:focus-visible { outline-offset: 4px; }

.example__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 3vw, 2.5rem);
  row-gap: 2rem;
}
.example__story { grid-column: 1 / span 6; }
.example__title {
  margin-bottom: 1rem;
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem);
  line-height: 1.1;
  color: var(--brand);
}
.example__lead {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.1rem + .45vw, 1.45rem);
  line-height: 1.45;
  margin-bottom: .9rem;
}
.example__after {
  grid-column: 8 / -1;
  padding-left: clamp(1rem, 2.5vw, 2rem);
  border-left: 1px solid var(--rule);
}
.example__label { margin-bottom: .75rem; font-weight: 500; color: var(--ink); }
.example__keep {
  margin-top: 1.25rem;
  padding: .8rem 1rem;
  background: var(--brand-soft);
  border-radius: 4px;
  font-size: .97rem;
  color: var(--brand-deep);
}

@media (max-width: 860px) {
  .example__story, .example__after { grid-column: 1 / -1; }
  .example__after { padding-left: 0; border-left: 0; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
}

/* Messy vs. tidy folder "screenshots" */
.files { margin-top: clamp(2rem, 4vw, 3rem); }
.files__pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
}
.files__win {
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e3e0e6;
  box-shadow: 0 14px 30px -18px rgba(28, 31, 51, .35);
  font-size: .86rem;
}
.files__win--messy { transform: rotate(-1deg); }
.files__win--tidy { transform: rotate(.6deg); }
.files__bar {
  display: flex;
  align-items: center;
  max-width: none;
  padding: .55rem .8rem;
  background: #f1eff3;
  border-bottom: 1px solid #e3e0e6;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.files__dots {
  flex: none;
  width: .55rem; height: .55rem;
  margin-right: 2.4rem;
  border-radius: 50%;
  background: #e8a6b9;
  box-shadow: .85rem 0 0 #efd28f, 1.7rem 0 0 #a9cfa3;
}
.files__list { padding: .35rem 0; }
.files__list li {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .38rem .8rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
}
.files__list li:nth-child(even) { background: #faf9fb; }
.files__win--messy li:nth-child(4) { background: #fff3c4; }
.files__icon {
  flex: none;
  width: .8rem; height: 1rem;
  background: #d55a7c;
  clip-path: polygon(0 0, 70% 0, 100% 28%, 100% 100%, 0 100%);
}
.files__tag {
  margin-left: auto;
  padding: .05rem .5rem;
  border-radius: 999px;
  background: #e2f0de;
  color: #2f5b2a;
  font-size: .75rem;
  font-weight: 500;
}
.files__tag--check { background: var(--brand-soft); color: var(--brand-deep); }
.files__arrow { font-size: 1.6rem; color: var(--brand); max-width: none; }
.files figcaption { margin-top: 1.25rem; font-size: .95rem; color: var(--ink-2); max-width: 60ch; }

@media (max-width: 860px) {
  .files__pair { grid-template-columns: minmax(0, 1fr); }
  .files__arrow { justify-self: center; }
  .files__glyph { display: inline-block; transform: rotate(90deg); }
  .files__list li { display: grid; grid-template-columns: .8rem minmax(0, 1fr); column-gap: .6rem; row-gap: .2rem; white-space: normal; overflow-wrap: anywhere; }
  .files__tag { grid-column: 2; justify-self: start; margin-left: 0; }
  .files__win--messy, .files__win--tidy { transform: none; }
}

/* ---------- Engage ---------- */

.engage__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 3vw, 2.5rem);
  row-gap: 2.5rem;
}
.engage__head { grid-column: 1 / span 4; }
.engage__head .h2 { margin-bottom: 1.25rem; }
.engage__list { grid-column: 6 / -1; border-top: 1.5px solid var(--rule-strong); }
.engage__item {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  column-gap: 1.5rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--rule);
}
.engage__scope {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding-top: .45rem;
  font-size: .9rem;
  color: var(--ink-3);
}
.scope {
  display: block;
  width: calc(var(--scope, 1) * 3rem);
  max-width: 100%;
  height: .45rem;
  border-radius: 999px;
  background: var(--brand);
}
.scope--1 { --scope: 1; }
.scope--2 { --scope: 2; }
.scope--3 { --scope: 3; }
.scope--ongoing {
  width: 100%;
  background: repeating-linear-gradient(90deg, var(--brand) 0 1.1rem, transparent 1.1rem 1.6rem);
}
.engage__body p + p { margin-top: .6rem; }
.engage__often { font-size: .93rem; color: var(--ink-3); }
.engage__often span { font-weight: 600; color: var(--brand); margin-right: .25rem; }
.engage__ai { margin-top: 1.75rem; padding-left: 1rem; border-left: 2px solid var(--brand); font-size: .95rem; color: var(--ink-2); }
.engage__ai strong { color: var(--ink); font-weight: 600; }
.engage__item h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1.15; margin-bottom: .35rem; }
.engage__item p:not(.engage__scope):not(.engage__often) { color: var(--ink-2); font-size: .98rem; }

@media (max-width: 960px) {
  .engage__head, .engage__list { grid-column: 1 / -1; }
  .engage__head { max-width: 40rem; }
}
@media (max-width: 560px) {
  .engage__item { grid-template-columns: minmax(0, 1fr); }
  .engage__scope { grid-row: auto; flex-direction: row; align-items: center; gap: .75rem; padding: 0 0 .75rem; }
  .scope { width: calc(var(--scope, 1) * 2rem); }
  .scope--ongoing { width: 6rem; }
}

/* ---------- FAQ ---------- */

.faq__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 3vw, 2.5rem);
  row-gap: 2rem;
}
.faq__head { grid-column: 1 / span 4; }
.faq__more { margin-top: 1.25rem; }
.faq__more a { color: var(--brand); font-weight: 500; }
.faq__list { grid-column: 6 / -1; border-top: 1.5px solid var(--rule-strong); }
@media (min-width: 961px) {
  .faq__head { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
}
@media (max-width: 960px) {
  .faq__head, .faq__list { grid-column: 1 / -1; }
}

.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  position: relative;
  display: block;
  padding: 1.25rem 2.75rem 1.25rem 0;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.1rem + .4vw, 1.4rem);
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: .4rem;
  top: 50%;
  width: .9rem;
  height: 1.5px;
  background: var(--brand);
  transition: transform .2s var(--ease);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover { color: var(--brand); }
.faq__a { padding: 0 2.75rem 1.5rem 0; color: var(--ink-2); }

/* ---------- Contact (brand) ---------- */

.contact { padding-block: var(--section); }
.contact .lede { margin-top: 1.75rem; max-width: 34ch; }
.contact__alt { margin-top: 1.25rem; color: var(--on-brand-2); }
.contact__alt a, .form__status a { color: var(--on-brand); text-decoration-color: var(--on-brand-accent); }

.contact__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 3vw, 2.5rem);
  row-gap: 3rem;
}
.contact__intro { grid-column: 1 / span 5; }
.form { grid-column: 7 / -1; }
@media (max-width: 960px) {
  .contact__intro, .form { grid-column: 1 / -1; }
}

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-content: start;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: rgba(255, 247, 251, .07);
  border-radius: 6px;
}
.form__status-note {
  grid-column: 1 / -1;
  max-width: none;
  padding: .75rem 1rem;
  border-radius: 4px;
  background: rgba(255, 247, 251, .1);
  font-size: .95rem;
  color: var(--on-brand-2);
}
.form__status-note strong { color: var(--on-brand); font-weight: 600; }
.form.is-connected .form__status-note { display: none; }

.field { display: flex; flex-direction: column; gap: .45rem; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label, .field legend { font-size: .9rem; font-weight: 500; color: var(--on-brand-2); }
.field__opt { font-weight: 400; opacity: .85; margin-left: .3rem; }
.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  padding: .6rem 0;
  border: 0;
  border-bottom: 1.5px solid rgba(255, 247, 251, .45);
  border-radius: 0;
  background: transparent;
  color: var(--on-brand);
  font: 400 1.1rem/1.4 var(--sans);
  transition: border-color .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--on-brand-accent); }
.field input:focus-visible, .field textarea:focus-visible { box-shadow: 0 2px 0 0 var(--on-brand-accent); }
.field [aria-invalid="true"] { border-bottom-color: #ffd36b; }
.field__hint { font-size: .9rem; color: var(--on-brand-2); }
.field__error { font-size: .9rem; color: #ffe08f; }

.field--choice { border: 0; padding: 0; margin: 0; }
.field--choice legend { padding: 0; margin-bottom: .6rem; }
.choices { display: flex; flex-wrap: wrap; gap: .6rem; }
.choices label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 2.6rem;
  padding: .4rem 1rem;
  border: 1px solid rgba(255, 247, 251, .4);
  border-radius: 999px;
  font: 400 1rem/1.2 var(--sans);
  color: var(--on-brand);
  cursor: pointer;
}
.choices label:has(input:checked) { border-color: var(--on-brand); background: rgba(255, 247, 251, .12); }
.choices input { accent-color: var(--on-brand-accent); margin: 0; }

/* Honeypot for spam bots: kept out of view and out of the tab order */
.field--hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { grid-column: 1 / -1; padding-top: .5rem; }
.form__status { grid-column: 1 / -1; }
.form__status:empty { display: none; }
.form__status {
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--on-brand-accent);
  background: rgba(255, 247, 251, .1);
}
.form__status p { max-width: none; }
.form__status p + p { margin-top: .5rem; }
.form__status button {
  margin-top: .75rem;
  padding: .5rem 1rem;
  border: 1px solid var(--on-brand-2);
  border-radius: 999px;
  background: none;
  color: var(--on-brand);
  font: 500 .9rem var(--sans);
  cursor: pointer;
}
.form__status button:hover { border-color: var(--on-brand); }

@media (max-width: 560px) {
  .form { grid-template-columns: minmax(0, 1fr); }
}

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

.site-footer {
  padding-block: 2.5rem;
  background: var(--ink);
  color: #c4c6d6;
}
.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem 2rem;
  align-items: baseline;
}
.site-footer__line { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: #f6f6f8; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; font-size: .92rem; }
.site-footer__nav a { text-decoration: none; color: #c4c6d6; }
.site-footer__nav a:hover { color: #fff; text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--on-brand-accent); }
.site-footer__small { grid-column: 1 / -1; font-size: .85rem; color: #a3a6bb; }
@media (max-width: 760px) {
  .site-footer__inner { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Motion preferences ---------- */

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