/* Gregory James Condon — site styles */

:root {
  --paper: #f2f3f3;
  --paper-2: #e9eaea;
  --ink: #1b1b1a;
  --ink-2: #504f4a;
  --ink-3: #807e77;
  --rule: #d4d6d6;
  --rule-2: #e2e4e4;

  /* inverted band: charcoal with paper-coloured text */
  --charcoal: #232321;
  --paper-muted: rgba(242, 243, 243, .72);
  --paper-faint: rgba(242, 243, 243, .5);
  --paper-ghost: rgba(242, 243, 243, .22);
  --rule-dark: rgba(242, 243, 243, .18);

  --font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif;
  --display: "Helvetica Neue", Helvetica, Arial, sans-serif;

  --max: 1120px;
  --measure: 640px;
  --gutter: clamp(20px, 4vw, 40px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--ink-3);
  transition: text-decoration-color .2s;
}
a:hover { text-decoration-color: var(--ink); }

::selection { background: var(--ink); color: var(--paper); }

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

[hidden] { display: none !important; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 14px; background: var(--ink); color: var(--paper);
  font-size: 14px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

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

h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.015em; }

h1, h2 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.025em;
  font-feature-settings: "kern", "liga";
}
h1 { font-size: clamp(38px, 4.5vw, 56px); line-height: 1.06; }
h2 { font-size: clamp(30px, 3.2vw, 40px); line-height: 1.12; }
h3 { font-size: 20px; line-height: 1.3; }

p { margin: 0; }
p + p { margin-top: 1em; }

.muted { color: var(--ink-2); }

.label {
  display: block;
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
}

/* Buttons --------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: var(--ink);
  color: var(--paper);
  font: 500 15px/1 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: #333; border-color: #333; }
.btn:disabled { opacity: .6; cursor: default; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn--ghost:hover { background: transparent; border-color: var(--ink); }
.btn--sm { padding: 9px 14px; font-size: 14px; }

.link {
  font-size: 15px;
  font-weight: 500;
}

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

.hero { padding-block: clamp(48px, 6vw, 72px) clamp(32px, 3.4vw, 48px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(260px, 400px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
/* Desktop: headline level with the top of the hair in the photo, no gap between photo and text; the second
   sentence sits just below it and steps right so it reads on from the first. */
@media (min-width: 801px) {
  .hero-grid { column-gap: 0; }
  .hero-copy { align-self: stretch; display: grid; grid-template-rows: auto 1fr auto 6fr; }
  .hero-copy h1 { grid-row: 1; margin-top: 0.15em; }
  /* Sentence two runs on past the column into the right-hand margin on wide screens. */
  .hero-copy .statement { grid-row: 3; margin-left: 15%; margin-right: min(0px, calc((var(--max) - 100vw) / 3)); }
}
.hero h1 { max-width: none; font-size: clamp(40px, 4.9vw, 58px); font-weight: 700; line-height: 1.06; letter-spacing: -0.025em; }
.hero .sub {
  margin-top: 0.8em;
  max-width: none;
}
/* Sentence three matches sentence two in size and weight. */
.hero .sub, .hero-intro p {
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink-2);
}
/* Sentence three and the links sit in the dark band under the hero, in white. */
.hero-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.hero-intro p { margin: 0; color: #fff; }
.hero-intro a { color: #fff; }
@media (min-width: 801px) {
  /* Smaller photo and tight spacing so sentences three and four sit above the fold on a laptop
     screen (about 1470x745 of browser window). */
  /* No header above the hero, so it carries its own top space. */
  .hero { padding-block: 140px 24px; }
  .hero .sub { margin-top: 1.2em; }
  .hero-grid { grid-template-columns: minmax(260px, 330px) minmax(0, 1fr); }
  /* Two lines on a laptop: the break falls after "productivity". */
  /* The photo and first two sentences fill the first screen; sentence three starts just below the fold. */
  .hero-grid { min-height: calc(100svh - 140px); align-content: start; }
}
.hero-actions {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 16px 24px; margin-top: 8px;
}

/* The portrait's background matches --paper, so it sits directly on the page. */
.portrait { margin: 0; }
.portrait img {
  width: 100%;
  height: auto;
  /* soften the cut edge of the shirt at the bottom of the crop */
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
}
/* Name under sentence two, signing it as Greg's own words. */
.hero .byline {
  margin: 16px 0 0;
  font-size: 15px;
  color: var(--ink-2);
}

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

.section {
  padding-block: clamp(56px, 8vw, 104px);
  border-top: 1px solid var(--rule);
}
.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 32px clamp(40px, 6vw, 96px);
}
.section-grid > .sticky {
  position: sticky;
  top: 32px;
  align-self: start;
}
.section-grid .intro {
  margin-top: 20px;
  max-width: 400px;
  color: var(--ink-2);
}
.section > .wrap > .intro {
  margin-top: 20px;
  max-width: 520px;
  color: var(--ink-2);
}

/* Dark band --------------------------------------------------------------- */

.section--dark {
  background: var(--charcoal);
  color: var(--paper);
  border-top: 0;
}
.section--dark + .section { border-top: 0; }
.section--dark ::selection { background: var(--paper); color: var(--charcoal); }
.section--dark :focus-visible { outline-color: var(--paper); }
.section--dark .label,
.section--dark .case-kind,
.section--dark .pwr dt,
.section--dark .testimonial footer { color: var(--paper-faint); }
.section--dark > .wrap > .intro,
.section--dark .case .client,
.section--dark .case-body p,
.section--dark .pwr dd,
.section--dark .testimonial,
.section--dark .testimonial p { color: var(--paper-muted); }
.section--dark .pwr dd:last-of-type,
.section--dark .pwr dt:last-of-type { color: var(--paper); }
.section--dark .cases,
.section--dark .case,
.section--dark .pwr dt,
.section--dark .pwr dd { border-color: var(--rule-dark); }
.section--dark .pwr,
.section--dark .testimonial,
.section--dark .next { border-color: var(--paper); }
.section--dark a { text-decoration-color: var(--paper-faint); }
.section--dark a:hover { text-decoration-color: var(--paper); }
.section--dark .btn {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--charcoal);
}
.section--dark .btn:hover { background: #fff; border-color: #fff; }

/* Definition lists (services, process) ---------------------------------- */

.list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.list li {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 8px 32px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}
.list h3 { font-size: 17px; font-weight: 600; letter-spacing: 0; }
.list p { color: var(--ink-2); font-size: 16px; max-width: var(--measure); }
.list .eg { margin-top: 10px; font-size: 15px; }
.list .eg span { display: inline-block; margin-right: 8px; font-size: 14px; color: var(--ink-3); }

.list--numbered li { grid-template-columns: 48px minmax(0, 1fr); }
.list--numbered .n { font-size: 14px; color: var(--ink-3); padding-top: 3px; font-variant-numeric: tabular-nums; }
.list--numbered h3 { margin-bottom: 6px; }

.note {
  margin-top: 28px;
  font-size: 15.5px;
  color: var(--ink-2);
  max-width: var(--measure);
}
.note strong { color: var(--ink); font-weight: 600; }

/* Case studies ---------------------------------------------------------- */

.cases { margin-top: 36px; border-top: 1px solid var(--rule); }
.case {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 20px clamp(40px, 6vw, 96px);
  padding: 44px 0;
  border-bottom: 1px solid var(--rule);
}
.case-kind { display: block; margin-bottom: 8px; font-size: 13px; color: var(--ink-3); }
.case h3 {
  font-family: var(--display);
    font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.case .client { margin-top: 10px; font-size: 15px; color: var(--ink-2); max-width: 34ch; }
.case-body p { color: var(--ink-2); max-width: var(--measure); }

.pwr {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 0 24px;
  margin: 0;
  max-width: var(--measure);
  border-top: 1px solid var(--ink);
}
.pwr dt {
  padding: 13px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
  border-bottom: 1px solid var(--rule);
}
.pwr dd {
  margin: 0;
  padding: 12px 0 14px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
  border-bottom: 1px solid var(--rule);
}
.pwr dd:last-of-type,
.pwr dt:last-of-type { color: var(--ink); }

.testimonial {
  margin: 28px 0 0;
  padding: 4px 0 4px 20px;
  border-left: 1px solid var(--ink);
  max-width: var(--measure);
  font-family: var(--display);
    font-size: 19px;
  line-height: 1.45;
  color: var(--ink-2);
}
.testimonial p { color: inherit; }
.testimonial footer { margin-top: 10px; font-family: var(--font); font-size: 14px; color: var(--ink-3); }

.case .link { display: inline-block; margin-top: 22px; }

/* Case illustrations: the shape of what each system returns -------------- */

.viz {
  margin: 28px 0 0;
  max-width: 360px;
  padding: 18px 18px 16px;
  border: 1px solid var(--rule-dark);
  border-radius: 4px;
  font-size: 12.5px;
  color: var(--paper-faint);
}
.viz figcaption {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--rule-dark);
  font-size: 13px;
  line-height: 1.45;
  color: var(--paper-muted);
}
.viz b, .viz i { font-style: normal; font-weight: 400; }

/* ranked list */
.viz--rank .viz-head,
.viz--rank .viz-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 5fr) 44px minmax(0, 6fr);
  gap: 0 12px;
  align-items: center;
}
.viz--rank .viz-head {
  margin-bottom: 10px;
  font-size: 12px;
}
.viz--rank .viz-head span:first-child { grid-column: 2; }
.viz--rank .viz-row { padding: 7px 0; }
.viz--rank .viz-row i { font-size: 12px; font-variant-numeric: tabular-nums; text-align: right; }
.viz--rank .viz-row b {
  display: block;
  height: 7px;
  width: var(--w, 50%);
  border-radius: 4px;
  background: var(--paper-ghost);
}
.viz--rank .viz-row.is-top b { background: var(--paper-muted); }
.viz--rank .viz-row.is-top i { color: var(--paper); }

/* funnel */
.viz--funnel .fun {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 0 14px;
  align-items: center;
  padding: 6px 0;
}
.viz--funnel .fun b {
  display: block;
  height: 14px;
  width: var(--w, 50%);
  border-radius: 4px;
  background: var(--paper-ghost);
}
.viz--funnel .fun:last-child b { background: var(--paper-muted); }
.viz--funnel .fun span { font-size: 13px; line-height: 1.35; color: var(--paper-muted); }
.viz--funnel .fun:last-child span { color: var(--paper); }

/* loop */
.viz--loop .loop {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 5px;
  margin: 0; padding: 0; list-style: none;
}
.viz--loop .loop li {
  padding: 4px 9px;
  border: 1px solid var(--rule-dark);
  border-radius: 999px;
  font-size: 12.5px;
  white-space: nowrap;
  color: var(--paper-muted);
}
.viz--loop .loop li + li::before { content: "→"; margin-right: 7px; color: var(--paper-faint); }
.viz--loop .loop li:last-child::after { content: "↺"; margin-left: 7px; color: var(--paper-faint); }

/* Real screenshot of a system, when available */
.shot {
  margin: 28px 0 0;
  max-width: 420px;
  padding: 6px;
  border: 1px solid var(--rule-dark);
  border-radius: 6px;
  background: rgba(0, 0, 0, .18);
}
.shot img { border-radius: 3px; }
.shot figcaption { margin: 10px 6px 4px; font-size: 13px; color: var(--paper-muted); }


/* Hero actions as plain links ------------------------------------------- */
.hero-actions .link { font-size: 16px; }

/* Case with a full-width figure beneath the two columns ------------------ */
.case--map .map { grid-column: 1 / -1; margin: 24px 0 0; }

/* Stockist map (inline SVG), styled for the charcoal band ---------------- */
.map { margin: 0; }
.map-svg { display: block; width: 100%; height: auto; max-height: 70vh; }
.map-svg line { stroke: rgba(242, 243, 243, .11); stroke-width: .7; }
.map-svg .n circle { fill: none; stroke: rgba(242, 243, 243, .38); stroke-width: 1; }
.map-svg .n.s circle { fill: rgba(242, 243, 243, .22); stroke: none; }
.map-svg .n.s.maybe circle { fill: none; stroke: rgba(242, 243, 243, .55); }
.map-svg .n.s.yes circle { fill: none; stroke: var(--paper); stroke-width: 1.8; }
.map-svg .n.s.stockist circle { fill: var(--paper); stroke: none; }
.map-svg .n.hero circle { fill: var(--paper); stroke: none; }
.map-svg .n.hero .ring { fill: none; stroke: var(--paper); stroke-width: 1; }
.map-svg.focus line { stroke: rgba(242, 243, 243, .05); }
.map-svg.focus line.on { stroke: rgba(242, 243, 243, .8); stroke-width: 1; }
.map-svg.focus .n { opacity: .18; }
.map-svg.focus .n.on { opacity: 1; }
.map-svg .n { transition: opacity .12s; cursor: default; }
.map figcaption { margin: 14px 0 0; max-width: 760px; }
.map figcaption p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--paper-muted); }
.k { white-space: nowrap; color: var(--paper); }
.k::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: -0.5px; box-sizing: border-box; }
.k-stockist::before { background: var(--paper); }
.k-yes::before { background: transparent; border: 1.8px solid var(--paper); }

/* Background ------------------------------------------------------------ */

.roles { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.roles > li {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 6px 32px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}
.roles .when { font-size: 14px; color: var(--ink-3); padding-top: 3px; }
.roles h3 { font-size: 17px; font-weight: 600; letter-spacing: 0; }
.roles p { margin-top: 6px; font-size: 16px; color: var(--ink-2); max-width: var(--measure); }

.facts {
  margin: 14px 0 0; padding: 0; list-style: none;
  font-size: 15.5px; line-height: 1.5; color: var(--ink-2);
  max-width: var(--measure);
}
.facts li {
  display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 0 16px;
  padding: 7px 0; border-top: 1px solid var(--rule-2);
}
.facts b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.doc-section .facts { margin-top: 28px; }

.creds {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 32px;
  margin-top: 36px;
}
.creds h4 { font-size: 14px; font-weight: 500; color: var(--ink-3); margin-bottom: 10px; }
.creds ul { margin: 0; padding: 0; list-style: none; font-size: 15.5px; }
.creds li { padding: 6px 0; border-bottom: 1px solid var(--rule-2); }
.creds li span { color: var(--ink-3); }

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

.faq { border-top: 1px solid var(--rule); }
.faq .qa { padding: 22px 0; border-bottom: 1px solid var(--rule); }
.faq h3 { font-size: 18px; font-weight: 500; line-height: 1.35; letter-spacing: 0; }
.faq p { margin-top: 8px; max-width: var(--measure); color: var(--ink-2); font-size: 16px; }

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

.contact { padding-block: clamp(64px, 9vw, 120px); border-top: 1px solid var(--rule); }
.contact h2 { font-size: clamp(32px, 3.8vw, 48px); max-width: 20ch; }
.contact .lede { margin-top: 20px; max-width: 520px; color: var(--ink-2); }

.form { max-width: var(--measure); }
.contact-reply { margin-top: 36px; }
.contact-reply p { font-size: 18px; line-height: 1.5; }
.contact-reply p + p { margin-top: 10px; }
.contact .where { margin-top: 28px; font-size: 15px; }
.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.field .hint { font-weight: 400; color: var(--ink-3); }
.field p.hint { margin: -2px 0 8px; font-size: 14px; line-height: 1.45; }
.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
  font: 16px/1.5 var(--font);
  transition: border-color .2s;
}
.field input:hover,
.field textarea:hover { border-color: var(--ink-3); }
.field input:focus-visible,
.field textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.field textarea { resize: vertical; min-height: 120px; }
.gotcha { display: none; }
.privacy { margin-top: 14px; font-size: 13.5px; color: var(--ink-3); }
.form-thanks {
  padding: 20px 24px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  font-size: 17px;
}

.site-footer {
  background: var(--charcoal);
  font-size: 13.5px;
  color: var(--paper-muted);
}
.site-footer .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-block: 26px 34px;
}
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--paper-faint); }
.site-footer :focus-visible { outline-color: var(--paper); }

/* Experience page ------------------------------------------------------- */

.page-hero { padding-block: clamp(40px, 7vw, 88px) clamp(36px, 5vw, 56px); }
.breadcrumb {
  display: flex; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none;
  font-size: 13.5px; color: var(--ink-3);
}
.breadcrumb li + li::before { content: "/"; margin-right: 8px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.page-hero h1 { max-width: 18ch; }
.page-hero .lede { margin-top: 24px; max-width: 560px; font-size: 18px; color: var(--ink-2); }

.doc {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  padding-block: clamp(48px, 6vw, 80px) clamp(64px, 8vw, 110px);
  border-top: 1px solid var(--rule);
}
.toc { position: sticky; top: 32px; align-self: start; }
.toc ol { margin: 0; padding: 0; list-style: none; }
.toc ol a {
  display: block; padding: 6px 0;
  font-size: 14.5px; color: var(--ink-3); text-decoration: none;
}
.toc ol a:hover { color: var(--ink); }
.toc ol a[aria-current] { color: var(--ink); }
.toc .link { display: inline-block; margin-top: 20px; }

.doc-section + .doc-section { margin-top: clamp(56px, 7vw, 88px); }
.doc-section > h2 {
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink);
}
.prose { max-width: var(--measure); }
.prose p { color: var(--ink-2); }
.prose p:first-child { color: var(--ink); font-size: 18px; }

.study + .study { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--rule); }
.study h3 {
  font-family: var(--display);
    font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.study .sub { margin-top: 6px; font-size: 15px; color: var(--ink-2); }
.study-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 24px;
}
.study-grid h4 { margin-bottom: 8px; font-size: 14px; font-weight: 500; color: var(--ink-3); }
.study-grid p { font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.study-grid .impact p { color: var(--ink); }

.quals { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); max-width: var(--measure); }
.quals li { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.quals li span { display: block; font-size: 14.5px; color: var(--ink-3); margin-top: 2px; }

.next {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px;
  margin-top: clamp(56px, 7vw, 88px);
  padding-top: 32px;
  border-top: 1px solid var(--ink);
}
.next h2 { font-size: 28px; }

/* Responsive ------------------------------------------------------------ */

@media (max-width: 960px) {
  .study-grid { grid-template-columns: 1fr; gap: 20px; }
  .doc { grid-template-columns: 1fr; }
  .toc { display: none; }
}

@media (max-width: 800px) {
  .hero { padding-block: 56px 44px; }
  /* Headline full width; photo and second sentence side by side beneath it. */
  .hero-grid { grid-template-columns: clamp(132px, 34vw, 240px) 1fr; gap: 24px 16px; }
  .hero-copy { display: contents; }
  .hero h1 { grid-column: 1 / -1; font-size: 34px; }
  .portrait { grid-column: 1; grid-row: 2; }
  .statement { grid-column: 2; grid-row: 2; }
  .hero .sub { margin-top: 0; font-size: 19px; }
  .hero .byline { margin-top: 12px; font-size: 14px; }
  .hero-intro { gap: 20px; }
  .hero-intro p { font-size: 19px; }
  .hero-actions { margin-top: 8px; }

  .section-grid { grid-template-columns: 1fr; }
  .section-grid > .sticky { position: static; }
  .case { grid-template-columns: 1fr; }
  /* On one column the map follows the title, then the table. */
  .case--map > div:first-child { order: -2; }
  .case--map .map { order: -1; margin: 8px 0 12px; }
  .map figcaption p { font-size: 14px; }
  .list li { grid-template-columns: 1fr; gap: 4px; }
  .list--numbered li { grid-template-columns: 40px minmax(0, 1fr); }
  .roles > li { grid-template-columns: 1fr; gap: 2px; }
}

@media (max-width: 520px) {
  .creds { grid-template-columns: 1fr; }
  .pwr { grid-template-columns: 1fr; }
  .pwr dt { padding-bottom: 4px; border-bottom: 0; }
  .pwr dd { padding-top: 0; }
  .field-row { grid-template-columns: 1fr; }
  .next .btn { width: 100%; justify-content: center; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .viz { max-width: none; }
}

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