/*
 * Public page styles: Bernie's design. Montserrat for headings and labels,
 * Open Sans for text, ink #111 on white, square corners, 2px black rules,
 * small upper-case letter-spaced labels, one 640px column.
 *
 * Sizes and spacing follow the design's own CSS value for value, so the page
 * matches it; everything the design did not have (contact buttons, video,
 * gallery, ...) reuses the same pieces: section heads over a 2px rule, square
 * .btn buttons, 1px row rules, Montserrat labels.
 *
 * Colours: the theme colours come from /theme.css (loaded after this file):
 * --accent, --accent-contrast, --accent-ink(-dark), --highlight,
 * --highlight-contrast and --highlight-ink(-dark). The values below are the
 * defaults (orange and lime), so pages without it still look right.
 *
 * Light and dark: light tokens on :root; dark tokens for html.mode-dark and
 * for html.mode-auto when the device prefers dark. Dark mode swaps ink and
 * paper (the black bars and the event block turn light). The backgrounds are
 * mirrored in lib/render.js (LIGHT_BACKGROUNDS / DARK_BACKGROUNDS) so derived
 * theme shades stay readable; change both together.
 */

/* ----------------------------------------------------------------- fonts -- */

/* Self-hosted (public/fonts, SIL Open Font License, see OFL.txt): latin subset. */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/montserrat-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/montserrat-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/montserrat-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/montserrat-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/montserrat-latin-800.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/open-sans-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/open-sans-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

:root {
  --accent: #FF6A00;
  --accent-contrast: #000000;
  --accent-ink: #B34A00;
  --accent-ink-dark: #FF6A00;
  --highlight: #8ED600;
  --highlight-contrast: #000000;
  --highlight-ink: #4A7000;
  --highlight-ink-dark: #8ED600;

  --paper: #FFFFFF;
  --ink: #111111;
  --grey: #6B6B6B;
  --rule: #DADADA;
  --faint: #F0F0F0;
  --body: #3A3A3A;
  --link-ink: var(--accent-ink);

  /* The black event block (light on dark). */
  --event-bg: #111111;
  --event-fg: #FFFFFF;
  --event-sub: #DADADA;
  --event-muted: #B5B5B5;
  --event-rule: #3A3A3A;
  --event-line: #2A2A2A;
  --event-accent: var(--highlight-ink-dark);
  --code-bg: #FFFFFF;
  --code-fg: #111111;
  --code-hint: #4A4A4A;
  /* The black video frame needs an edge only on a dark page. */
  --video-edge: transparent;

  --ease: cubic-bezier(.2, 0, 0, 1);
  --display: Montserrat, sans-serif;
  --text: "Open Sans", system-ui, sans-serif;

  color-scheme: light;
}

html.mode-auto {
  color-scheme: light dark;
}

html.mode-dark {
  --paper: #111111;
  --ink: #F2F2F2;
  --grey: #A3A3A3;
  --rule: #3A3A3A;
  --faint: #1E1E1E;
  --body: #CFCFCF;
  --link-ink: var(--accent-ink-dark);
  --event-bg: #F2F2F2;
  --event-fg: #111111;
  --event-sub: #3A3A3A;
  --event-muted: #595959;
  --event-rule: #C4C4C4;
  --event-line: #DADADA;
  --event-accent: var(--highlight-ink);
  --code-bg: #111111;
  --code-fg: #F2F2F2;
  --code-hint: #B5B5B5;
  --video-edge: #3A3A3A;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  html.mode-auto {
    --paper: #111111;
    --ink: #F2F2F2;
    --grey: #A3A3A3;
    --rule: #3A3A3A;
    --faint: #1E1E1E;
    --body: #CFCFCF;
    --link-ink: var(--accent-ink-dark);
    --event-bg: #F2F2F2;
    --event-fg: #111111;
    --event-sub: #3A3A3A;
    --event-muted: #595959;
    --event-rule: #C4C4C4;
    --event-line: #DADADA;
    --event-accent: var(--highlight-ink);
    --code-bg: #111111;
    --code-fg: #F2F2F2;
    --code-hint: #B5B5B5;
    --video-edge: #3A3A3A;
  }
}

/* ------------------------------------------------------------------ base -- */

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

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
}

a {
  color: var(--ink);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

::selection {
  background: var(--highlight);
  color: var(--highlight-contrast);
}

h1,
h2 {
  font-family: var(--display);
  margin: 0;
}

p,
figure,
address {
  margin: 0;
}

address {
  font-style: normal;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
}

button {
  margin: 0;
  font: inherit;
  color: inherit;
}

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.icon {
  display: block;
  width: 20px;
  height: 20px;
  flex: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Off-screen buffer used by site.js when the Clipboard API is unavailable. */
.copy-buffer {
  position: fixed;
  top: 0;
  left: -9999px;
  opacity: 0;
}

/* ---------------------------------------------------------------- layout -- */

.wrap {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px 72px;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 0;
}

.top-logo {
  display: block;
  height: 34px;
  width: auto;
}

.brandline {
  margin-left: auto;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: right;
}

.block {
  min-width: 0;
  margin-top: 34px;
}

.page > .block:first-child,
.page > .visually-hidden:first-child + .block {
  margin-top: 26px;
}

.block-logos,
.block-ctaBar {
  margin-top: 16px;
}

.block-profile + .block-logos {
  margin-top: 4px;
}

.block-event {
  margin-top: 28px;
}

/* A section heading in small capitals over a 2px rule ("LINKS"). */
.sect-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 8px;
}

.sect-head h2 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------- buttons -- */

.btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-block;
  margin: 0;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  padding: 9px 14px;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
  transition: background-color 200ms, color 200ms, border-color 200ms;
}

.btn:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn.ghost {
  border-color: var(--rule);
}

.btn.ghost:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--highlight);
}

.btn.solid {
  background: var(--ink);
  color: var(--paper);
}

.btn.solid:hover {
  background: var(--highlight);
  color: var(--highlight-contrast);
}

.btn.is-done {
  border-color: var(--highlight);
}

/* Square icon-only copy button beside a phone number or email address. */
.btn-copy {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 2px solid var(--rule);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  appearance: none;
  transition: border-color 200ms;
}

.btn-copy:hover {
  border-color: var(--highlight);
}

.btn-copy .icon {
  width: 18px;
  height: 18px;
}

[data-copy]:not(.is-done) .icon + .icon,
[data-copy].is-done .icon:first-child {
  display: none;
}

.btn-copy.is-done {
  border-color: var(--highlight);
}

/* ------------------------------------------------------------------ hero -- */

.hero {
  position: relative;
  overflow: hidden;
}

.lattice {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-template-rows: repeat(6, 1fr);
  pointer-events: none;
}

.lattice > div {
  border-right: 1px solid var(--faint);
  border-bottom: 1px solid var(--faint);
  transition: background-color 320ms var(--ease);
}

/* Lit by site.js around the pointer: the cell itself, then two rings. */
.lattice > .d0 {
  background-color: rgba(142, 214, 0, .55);
  background-color: color-mix(in srgb, var(--highlight) 55%, transparent);
}

.lattice > .d1 {
  background-color: rgba(255, 106, 0, .18);
  background-color: color-mix(in srgb, var(--accent) 18%, transparent);
}

.lattice > .d2 {
  background-color: rgba(255, 106, 0, .05);
  background-color: color-mix(in srgb, var(--accent) 5%, transparent);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px 16px;
  padding: 24px 0 0;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  padding-bottom: 24px;
}

.profile-name {
  font-size: 40px;
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.eyebrow {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  font-family: var(--display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.eyebrow-icon {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.oneliner {
  margin: 12px 0 0;
  max-width: 24ch;
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.35;
  font-weight: 600;
  text-wrap: pretty;
}

.profile-intro {
  margin-top: 14px;
  max-width: 52ch;
  font-size: 14px;
}

/* Photo placement "Hidden": no portrait beside the text, so the one-liner may
   use the whole width instead of the narrow measure that sits beside it. */
.layout-none .oneliner {
  max-width: none;
}

.profile-meta {
  margin: 14px 0 0;
  color: var(--grey);
  font-family: var(--display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* The portrait square in the accent colour. */
.portrait {
  justify-self: end;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 208px;
  height: 208px;
  overflow: hidden;
  background: var(--accent);
}

/* A cut-out PNG: full width, anchored to the bottom, a touch larger. */
.portrait.is-cutout img {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1.06);
  transform-origin: 50% 100%;
}

/* An ordinary photo fills the square. */
.portrait.is-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait.is-monogram {
  align-items: center;
  color: var(--accent-contrast);
  font-family: var(--display);
  font-size: 76px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
  user-select: none;
}

.layout-left .portrait {
  order: -1;
  justify-self: start;
}

/* ----------------------------------------------------------------- logos -- */

.logos-title {
  margin: 0 0 10px;
  color: var(--grey);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.marquee {
  padding: 0 0 12px;
  overflow: hidden;
}

.track {
  display: flex;
  width: max-content;
  animation: marq 46s linear infinite;
}

.marquee:hover .track,
.marquee.is-paused .track {
  animation-play-state: paused;
}

/* Paused by a tap or keypress (site.js); only keyboard focus shows a ring. */
.marquee[role="button"] {
  cursor: pointer;
}

.marquee:focus-visible {
  outline: 2px solid var(--ink, #111);
  outline-offset: 2px;
}

@keyframes marq {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.logo-list {
  display: flex;
}

.logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 124px;
  height: 62px;
  margin: 0 10px 0 0;
}

.logo img {
  display: block;
  width: 124px;
  height: 62px;
  object-fit: contain;
}

/* A handful of logos sit still in a row. */
.marquee.is-still .track {
  width: auto;
  animation: none;
}

.marquee.is-still .logo-list {
  flex-wrap: wrap;
}

/* ------------------------------------------------------------ big button -- */

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  background: var(--ink);
  color: var(--paper);
  transition: background-color 200ms var(--ease);
}

.cta:hover {
  background: var(--accent);
  color: var(--accent-contrast);
}

.cta-label {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.cta-kicker {
  flex: none;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* ----------------------------------------------------------------- links -- */

.row {
  border-bottom: 1px solid var(--rule);
}

.row-head {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 17px 4px;
  color: inherit;
  text-align: left;
  cursor: pointer;
  list-style: none;
  transition: padding-left 200ms var(--ease);
}

.row-head::-webkit-details-marker {
  display: none;
}

.row-head:hover {
  padding-left: 12px;
  color: inherit;
}

.row-head:focus-visible {
  outline-offset: -2px;
}

.row-num {
  flex: none;
  width: 20px;
  color: var(--grey);
  font-family: var(--display);
  font-size: 10px;
  font-weight: 700;
}

.row.is-highlight .row-num {
  color: var(--link-ink);
}

.row-main {
  flex: 1 1 auto;
  min-width: 0;
}

.row-label {
  display: block;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.row-desc {
  display: block;
  margin-top: 2px;
  color: var(--grey);
  font-size: 13px;
}

.row-tog,
.row-go {
  flex: none;
  width: 24px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
}

.row-tog::before {
  content: "+";
}

.row-details[open] .row-tog::before {
  content: "\2212";
}

.row-go {
  font-size: 18px;
}

.row-body {
  padding: 0 4px 20px 38px;
}

.row-details[open] > .row-body {
  animation: rise 240ms var(--ease) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.row-body p {
  margin: 0 0 14px;
  max-width: 52ch;
  color: var(--body);
  font-size: 14px;
  line-height: 1.55;
}

/* ----------------------------------------------------------------- event -- */

.block-event {
  padding: 24px 22px 22px;
  background: var(--event-bg);
  color: var(--event-fg);
}

.block-event :focus-visible {
  outline-color: var(--event-accent);
}

.flag {
  display: flex;
  align-items: center;
  gap: 10px;
}

.flag-mark {
  display: block;
  width: 9px;
  height: 9px;
  background: var(--highlight);
}

.flag span:last-child {
  color: var(--event-accent);
  font-family: var(--display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.event-title {
  margin: 14px 0 4px;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.015em;
}

.when {
  color: var(--event-sub);
  font-size: 13px;
}

/* Resource rows: in the event block, and (on the page colours) downloads. */
.res-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  transition: padding-left 200ms var(--ease), color 200ms;
}

.res-link:hover {
  padding-left: 10px;
}

.res-main {
  flex: 1 1 auto;
  min-width: 0;
}

.res-label {
  display: block;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
}

.res-meta {
  display: block;
  margin-top: 2px;
  color: var(--grey);
  font-size: 12px;
}

.res-get {
  flex: none;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.block-event .res {
  margin-top: 20px;
  border-top: 2px solid var(--event-rule);
}

.block-event .res-link {
  border-bottom-color: var(--event-line);
  color: var(--event-fg);
}

.block-event .res-link:hover {
  color: var(--event-accent);
}

.block-event .res-meta {
  color: var(--event-muted);
}

.code-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}

.code-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 0;
  border-radius: 0;
  background: var(--code-bg);
  color: var(--code-fg);
  appearance: none;
}

button.code-btn {
  cursor: pointer;
  transition: background-color 200ms;
}

button.code-btn:hover {
  background: var(--highlight);
  color: var(--highlight-contrast);
}

.code-value {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .08em;
}

.code-hint {
  color: var(--code-hint);
  font-family: var(--display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

button.code-btn:hover .code-hint {
  color: inherit;
  opacity: .72;
}

.code-note {
  flex: 1 1 160px;
  color: var(--event-sub);
  font-size: 13px;
  line-height: 1.45;
}

.expires {
  margin: 18px 0 0;
  color: var(--event-muted);
  font-size: 12px;
}

/* ---------------------------------------------------------- save contact -- */

.block-saveContact {
  display: flex;
  flex-wrap: wrap;
  border: 2px solid var(--ink);
}

.save-main {
  flex: 1 1 260px;
  min-width: 0;
  padding: 22px;
}

.save-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.save-blurb {
  margin: 0 0 16px;
  color: var(--body);
  font-size: 14px;
  line-height: 1.5;
}

.save-qr {
  flex: 0 0 168px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  border-left: 2px solid var(--ink);
}

/* QR codes stay black on white in both modes. */
.qr-code {
  background: #FFFFFF;
}

.qr-code svg {
  display: block;
  width: 124px;
  height: 124px;
}

.block-saveContact.is-bare {
  border: 0;
}

.block-saveContact.is-bare .save-main {
  padding: 0;
}

/* --------------------------------------------------------------- contact -- */

.block-contact .sect-head + .contact-list,
.block-social .sect-head + .social-list,
.block-text .sect-head + .prose,
.block-video .sect-head + .video,
.block-gallery .sect-head + .gallery,
.block-location .sect-head + .location-details {
  margin-top: 16px;
}

.style-buttons .contact-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 10px;
}

.contact-item {
  display: flex;
  align-items: stretch;
  gap: 6px;
  min-width: 0;
}

.btn-contact {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  min-height: 44px;
}

.btn-contact .icon {
  width: 16px;
  height: 16px;
}

.style-list .contact-item {
  align-items: center;
  border-bottom: 1px solid var(--rule);
}

.contact-row {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 14px 4px;
  transition: padding-left 200ms var(--ease);
}

.contact-row:hover {
  padding-left: 10px;
}

.contact-row > .icon {
  color: var(--grey);
}

.contact-value {
  overflow-wrap: anywhere;
}

/* ---------------------------------------------------------------- social -- */

.style-icons .social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-link {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--ink);
  color: var(--ink);
  transition: background-color 200ms, color 200ms;
}

.social-link:hover {
  background: var(--ink);
  color: var(--paper);
}

.social-link .icon {
  width: 20px;
  height: 20px;
}

.style-buttons .social-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: 10px;
}

.btn-social {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.btn-social .icon {
  width: 16px;
  height: 16px;
}

/* ------------------------------------------------------------------ text -- */

.prose {
  color: var(--body);
  font-size: 15px;
  line-height: 1.6;
}

.prose > * {
  margin: 0;
}

.prose > * + * {
  margin-top: 12px;
}

.prose ul {
  padding-left: 1.2em;
  list-style: square;
}

.prose li + li {
  margin-top: 4px;
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}

.prose a:hover {
  color: var(--accent);
}

/* --------------------------------------------------------------- callout -- */

.block-callout {
  padding: 22px;
}

.callout-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.015em;
}

.callout-text {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.55;
}

.tone-accent {
  background: var(--accent);
  color: var(--accent-contrast);
}

.tone-accent :focus-visible {
  outline-color: var(--accent-contrast);
}

.tone-accent .btn {
  border-color: var(--accent-contrast);
  background: transparent;
  color: var(--accent-contrast);
}

.tone-accent .btn.solid,
.tone-accent .btn:hover {
  background: var(--accent-contrast);
  color: var(--accent);
}

.tone-accent .btn.solid:hover {
  background: transparent;
  color: var(--accent-contrast);
}

.tone-subtle {
  border: 2px solid var(--ink);
}

.tone-subtle .callout-text {
  color: var(--body);
}

/* ----------------------------------------------------------------- video -- */

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111111;
  box-shadow: 0 0 0 1px var(--video-edge);
}

.video-link,
.video-facade {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: #FFFFFF;
  cursor: pointer;
}

.video-link:hover {
  color: #FFFFFF;
}

.video-link:focus-visible,
.video-facade:focus-visible {
  outline: 2px solid var(--highlight);
  outline-offset: -4px;
}

.video-poster {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  background: #111111;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(0deg, rgb(0 0 0 / .6) 0%, rgb(0 0 0 / 0) 55%);
}

.video-play {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  background: var(--accent);
  color: var(--accent-contrast);
  transition: transform 200ms var(--ease);
}

.video-play .icon {
  width: 28px;
  height: 28px;
  margin-left: 3px;
}

.video-link:hover .video-play,
.video-facade:hover .video-play {
  transform: scale(1.06);
}

.video-title {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-cta {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  background: #111111;
  font-family: var(--display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video figcaption,
.gallery-item figcaption,
.share-qr figcaption {
  margin-top: 8px;
  color: var(--grey);
  font-size: 12px;
  line-height: 1.5;
}

/* --------------------------------------------------------------- gallery -- */

.gallery {
  display: grid;
  gap: 10px;
}

.gallery-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-grid.is-single,
.gallery-single {
  grid-template-columns: 1fr;
}

.gallery-single {
  gap: 16px;
}

.gallery-item {
  min-width: 0;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--faint);
}

.gallery-grid:not(.is-single) .gallery-item img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.gallery-link {
  display: block;
}

.gallery-link img {
  transition: opacity 200ms;
}

.gallery-link:hover img {
  opacity: .88;
}

/* -------------------------------------------------------------- location -- */

.location-details {
  display: grid;
  gap: 14px;
}

.location-row {
  display: grid;
  gap: 4px;
}

.location-label {
  color: var(--grey);
  font-family: var(--display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.location-value {
  font-size: 15px;
  line-height: 1.5;
}

.location-note {
  color: var(--grey);
  font-size: 13px;
  line-height: 1.5;
}

.location-maps {
  margin-top: 18px;
}

/* ------------------------------------------------------------- downloads -- */

.block-downloads .res-link:hover {
  color: var(--accent);
}

/* ----------------------------------------------------------------- share -- */

.share-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 24px;
  margin-top: 18px;
}

.share-qr {
  width: 160px;
}

.share-qr-code {
  border: 2px solid var(--ink);
  background: #FFFFFF;
}

.share-qr-code svg {
  display: block;
  width: 100%;
  height: auto;
}

.share-main {
  flex: 1 1 200px;
  min-width: 0;
}

.share-url {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

/* ---------------------------------------------------------------- footer -- */

.site-footer {
  margin-top: 40px;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  border-top: 2px solid var(--ink);
}

.foot-text {
  color: var(--grey);
  font-size: 12px;
}

.foot-link,
.back {
  padding-bottom: 2px;
  border-bottom: 2px solid var(--ink);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.note {
  margin: 10px 0 0;
  max-width: 60ch;
  color: var(--grey);
  font-size: 12px;
  line-height: 1.5;
}

/* ------------------------------------------------------- privacy and 404 -- */

/* The design's privacy page starts 48px down; under the header, one section gap. */
.page-doc {
  padding-top: 48px;
  line-height: 1.6;
}

.wrap-doc .site-footer {
  line-height: 1.6;
}

.top + .page-doc {
  padding-top: 34px;
}

.doc h1 {
  margin: 0 0 8px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.doc-body {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

.doc-body > * + * {
  margin-top: 0;
}

.doc-body p,
.doc-body ul {
  margin: 0 0 14px;
  max-width: 60ch;
  text-wrap: pretty;
}

.doc-body h2 {
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.wrap-doc .site-footer {
  margin-top: 40px;
}

/* The privacy page footer is a plain line of text with the Back link in it. */
.wrap-doc .foot {
  display: block;
  color: var(--grey);
  font-size: 12px;
}

.page-message {
  display: flex;
  align-items: center;
  min-height: 70vh;
}

.message h1 {
  margin: 0 0 10px;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.message p {
  margin: 0 0 18px;
  max-width: 52ch;
  color: var(--body);
  font-size: 15px;
  line-height: 1.6;
}

/* ------------------------------------------------------------ narrow, touch -- */

@media (max-width: 520px) {
  .save-qr {
    flex: 1 1 100%;
    border-left: 0;
    border-top: 2px solid var(--ink);
  }
}

/* Small controls get an invisible 44px-high hit area on touch screens, so the
   design's sizes stay as they are. */
@media (pointer: coarse) {
  .btn,
  .foot-link,
  .back {
    position: relative;
  }

  .btn::after,
  .foot-link::after,
  .back::after {
    content: "";
    position: absolute;
    inset: -5px -2px;
  }

  .foot-link::after,
  .back::after {
    inset: -14px -10px;
  }
}

/* -------------------------------------------------------- dark mode bits -- */

/* In dark mode the QR code keeps a white quiet zone around it. */
html.mode-dark .qr-code {
  padding: 10px;
}

@media (prefers-color-scheme: dark) {
  html.mode-auto .qr-code {
    padding: 10px;
  }
}

/* ------------------------------------------------- motion, print, colours -- */

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

  /* The logo strip stands still and scrolls sideways instead. */
  .marquee {
    overflow-x: auto;
  }

  .logo-copy {
    display: none;
  }

  .row-head:hover,
  .res-link:hover,
  .contact-row:hover {
    padding-left: 4px;
  }

  .video-link:hover .video-play,
  .video-facade:hover .video-play {
    transform: none;
  }
}

@media (forced-colors: active) {
  .btn,
  .btn-copy,
  .code-btn,
  .cta,
  .social-link,
  .block-event,
  .portrait {
    border: 1px solid CanvasText;
  }
}

@media print {
  .lattice,
  .logo-copy,
  .btn-copy,
  .video-facade,
  [data-copy],
  [data-share-url] {
    display: none !important;
  }

  .track {
    animation: none;
    width: auto;
  }

  .logo-list {
    flex-wrap: wrap;
  }

  .block,
  .row {
    break-inside: avoid;
  }
}
