/* self-org.org — static rebuild of the Squarespace theme.
   Colors and type scale are the values from the live site's theme. */

:root {
  --accent: #efb071;        /* gold */
  --dark: #476c77;          /* teal slate */
  --light: #e0e2ed;         /* pale lavender */
  --black: #313d41;         /* deep slate */
  --white: #ffffff;

  --heading-font: "Oxanium", system-ui, sans-serif;
  --body-font: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;

  /* Squarespace's fluid sizing: (value - 1) * unit + 13px base.
     Desktop/landscape unit = 1.2vw, capped at 1.2% of the 1280px page width.
     Phone portrait unit = 1.2% of min(viewport height, 900px). */
  --base: 13px;
  --u: min(1.2vw, 15.36px);
  --h1: calc(5.1 * var(--u) + var(--base));
  --h2: calc(2.6 * var(--u) + var(--base));
  --h3: calc(1.4 * var(--u) + var(--base));
  --h4: calc(.6 * var(--u) + var(--base));
  --large: calc(1.4 * var(--u) + var(--base));
  --normal: calc(.4 * var(--u) + var(--base));
  --small: calc(.2 * var(--u) + var(--base));
  --site-title: calc(2.5 * var(--u) + var(--base));
  --mobile-site-title: var(--normal);

  --sqs-site-gutter: 5vw;
  --sqs-mobile-site-gutter: 6vw;
  --sqs-site-max-width: 1280px;
}
@media (max-width: 767px) and (orientation: portrait) {
  :root { --u: calc(.012 * min(100vh, 900px)); }
}
@media (max-width: 767px) {
  :root { --sqs-site-gutter: 6vw; }
}

/* Section themes (same mapping Squarespace uses) */
[data-section-theme="white"]          { --bg: var(--white); --text: var(--black); --heading: var(--black); --link: var(--black); --btn-bg: var(--black); --btn-text: var(--white); }
[data-section-theme="white-bold"]     { --bg: var(--white); --text: var(--black); --heading: var(--black); --link: var(--black); --btn-bg: var(--black); --btn-text: var(--white); }
[data-section-theme="light"]          { --bg: var(--light); --text: var(--black); --heading: var(--black); --link: var(--black); --btn-bg: var(--black); --btn-text: var(--white); }
[data-section-theme="light-bold"]     { --bg: var(--light); --text: var(--black); --heading: var(--black); --link: var(--black); --btn-bg: var(--black); --btn-text: var(--white); }
[data-section-theme="dark"]           { --bg: var(--dark);  --text: var(--white); --heading: var(--white); --link: var(--accent); --btn-bg: var(--accent); --btn-text: var(--black); }
[data-section-theme="dark-bold"]      { --bg: var(--dark);  --text: var(--white); --heading: var(--accent); --link: var(--accent); --btn-bg: var(--accent); --btn-text: var(--black); }
[data-section-theme="black"]          { --bg: var(--black); --text: var(--white); --heading: var(--white); --link: var(--accent); --btn-bg: var(--accent); --btn-text: var(--black); }
[data-section-theme="black-bold"]     { --bg: var(--black); --text: var(--white); --heading: var(--accent); --link: var(--accent); --btn-bg: var(--accent); --btn-text: var(--black); }
[data-section-theme="bright"]         { --bg: var(--accent); --text: var(--black); --heading: var(--black); --link: var(--black); --btn-bg: var(--black); --btn-text: var(--accent); }
[data-section-theme="bright-inverse"] { --bg: var(--black); --text: var(--accent); --heading: var(--accent); --link: var(--accent); --btn-bg: var(--accent); --btn-text: var(--black); }

[data-section-theme="white"], [data-section-theme="white-bold"], [data-section-theme="light"],
[data-section-theme="light-bold"], [data-section-theme="bright"] { --nav: var(--black); }
[data-section-theme="dark"], [data-section-theme="black"] { --nav: var(--white); }
[data-section-theme="dark-bold"], [data-section-theme="black-bold"], [data-section-theme="bright-inverse"] { --nav: var(--accent); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--black);
  font-family: var(--body-font);
  font-size: var(--normal);
  font-weight: 350;         /* live's Adobe "interface" is lighter than Source Sans 3 at 400 */
  line-height: 1.6;
  letter-spacing: .01em;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--heading-font);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.4;
  margin: 0 0 .5em;
  color: var(--heading);
}
h1 { font-size: var(--h1); line-height: 1.12; }
h2 { font-size: var(--h2); line-height: 1.25; }
h3 { font-size: var(--h3); line-height: 1.32; }
h4 { font-size: var(--h4); line-height: 1.366; }
p { margin: 0 0 1em; }
/* Squarespace keeps empty paragraphs as blank lines. */
p:empty::before { content: ""; display: inline-block; }
.sqsrte-large { font-size: var(--large); line-height: 1.5; }
.sqsrte-small { font-size: var(--small); }
.sqsrte-text-color--accent { color: var(--accent); }
.sqsrte-text-color--darkAccent { color: var(--dark); }
.sqsrte-text-color--lightAccent { color: var(--light); }
.sqsrte-text-color--black { color: var(--black); }
.sqsrte-text-color--white { color: var(--white); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--white); padding: .5em 1em; z-index: 100; }
.skip:focus { left: 1em; }
hr { border: 0; border-top: 1px solid currentColor; opacity: .3; }

/* ---------- sections */
.page-section {
  position: relative;
  background: var(--bg);
  color: var(--text);
  padding: 3.3vmax 0;
  isolation: isolate;
}
.page-section a { color: var(--link); }
/* Squarespace link style: no text underline, a 1px line drawn under the link in its own color. */
.page-section .text a, .post-body a, .page-section .cite a {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat;
}
.page-section .text a { transition: color .6s cubic-bezier(.19, 1, .22, 1), background-size .3s cubic-bezier(.19, 1, .22, 1); }
.post-body a { transition: color .6s cubic-bezier(.19, 1, .22, 1), background-size .3s cubic-bezier(.19, 1, .22, 1); }
.page-section .text p a:hover, .post-body a:hover, .page-section .cite a:hover { background-size: 100% 2px; color: var(--text); }
.page-section :is(h1, h2, h3, h4) a:not(.card h3 a, .blog-list h2 a) {
  background-image: linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor);
  background-size: 50% 1px, 50% 1px; background-position: 0% 100%, 100% 100%; background-repeat: no-repeat;
  animation: underlineSlideIn .6s cubic-bezier(.19, 1, .22, 1) both;
}
.page-section :is(h1, h2, h3, h4) a:not(.card h3 a, .blog-list h2 a):hover { animation: underlineSlideOut .6s cubic-bezier(.19, 1, .22, 1) both; }
@keyframes underlineSlideIn { from { background-position: -200% 100%, -100% 100%; } to { background-position: 0% 100%, 100% 100%; } }
@keyframes underlineSlideOut { from { background-position: 0% 100%, 100% 100%; } to { background-position: 200% 100%, 300% 100%; } }
[data-section-theme="dark"] :is(h1, h2, h3, h4) a,
[data-section-theme="black"] :is(h1, h2, h3, h4) a { color: var(--light); }
.page-section .content { position: relative; z-index: 1; }
.page-section .content.narrow,
.page-section .wrap {
  max-width: min(var(--sqs-site-max-width), 100%);
  margin: 0 auto;
  padding: 0 var(--sqs-site-gutter);
}
.page-section .content.narrow { max-width: calc(860px + 2 * var(--sqs-site-gutter)); }

.page-section .bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.page-section .bg img { width: 100%; height: 100%; object-fit: cover; }
.page-section .bg .overlay { position: absolute; inset: 0; background: var(--bg); opacity: var(--overlay, .5); }
.fx-liquid .bg img { animation: drift 40s ease-in-out infinite alternate; transform-origin: 50% 50%; }
@keyframes drift { from { transform: scale(1.05) translateY(0); } to { transform: scale(1.18) translateY(-3%); } }
/* WebGL versions (fx.js) replace the static fallbacks below once they start */
.fx-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.fx-on.fx-liquid .bg img { visibility: hidden; animation: none; }

/* Squarespace's animated gradient + conic backgrounds, as static CSS */
.fx-gradient { background: linear-gradient(180deg, var(--accent) 0%, #f3cfa8 55%, #f1e8e0 100%); }
.fx-conic {
  background:
    radial-gradient(120% 90% at 85% 10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
    radial-gradient(110% 80% at 10% 95%, color-mix(in srgb, var(--dark) 55%, transparent), transparent 65%),
    var(--bg);
}

/* ---------- fluid engine grid (per-section rules come from the original layout data) */
.fe-section { padding: 0; display: flex; flex-direction: column; justify-content: center; }
.fe-section > .content { padding: var(--pad, 1vmax) 0; }
.fe-section.v-top { justify-content: flex-start; }
.fe-section.v-bottom { justify-content: flex-end; }
.h-custom { --pad: 1vmax; min-height: var(--custom-h, 10vh); }
.h-small  { --pad: 3.3vmax; min-height: 33vh; }
.h-medium { --pad: 6.6vmax; min-height: 66vh; }
.h-large  { --pad: 10vmax; min-height: 100vh; }
/* The header floats over the first section, which is padded down by the header's height. */
main > .page-section:first-child { padding-top: var(--header-h, 138px); }
main > .page-section.fe-section:first-child > .content { padding-top: var(--pad, 1vmax); }
.fluid-engine { display: grid; position: relative; }
.fe-block { position: relative; min-width: 0; }
.fe-block .sqs-block { height: 100%; display: flex; flex-direction: column; }
.fe-block .sqs-block > * { width: 100%; }
.fe-block .sqs-block-alignment-wrapper { display: flex; height: 100%; }
/* Squarespace text spacing: 13px around paragraphs, 26px around headings, nothing outside the first/last. */
.fe-block .text > * { margin: 13px 0; }
.fe-block .text > :is(h1, h2, h3, h4) { margin: 26px 0; }
.fe-block .text > :first-child { margin-top: 0; }
.fe-block .text > :last-child { margin-bottom: 0; }
figure.image { margin: 0; }
figure.image.fill { height: 100%; position: relative; min-height: 100%; }
.fe-block figure.image.fill > img, .fe-block figure.image.fill > a { position: absolute; inset: 0; }
figure.image.fill img, figure.image.fill a { width: 100%; height: 100%; object-fit: var(--fit, cover); display: block; }
/* Circle-masked photos: a centered square (shortest side of the block), clipped round, cropped not stretched. */
.fe-block figure.image.shape-circle { container-type: size; }
.fe-block figure.image.shape-circle > img {
  width: min(100cqw, 100cqh); height: min(100cqw, 100cqh);
  inset: 0; margin: auto; object-fit: cover; clip-path: circle(50% at 50% 50%);
}
img { height: auto; }
figure.image.fill img { height: 100%; }
figure.image figcaption { font-size: var(--small); opacity: .8; margin-top: .6em; }

/* ---------- buttons */
.btn {
  display: inline-block;
  font-family: var(--body-font);
  font-weight: 700;
  font-size: var(--normal);
  line-height: 1.2;
  padding: 1.2em 2em;
  border-radius: 6px;
  border: 2px solid var(--btn-bg);
  background: var(--btn-bg);
  color: var(--btn-text) !important;
  text-decoration: none;
  cursor: pointer;
  transition: opacity .2s;
}
.btn:hover { opacity: .85; }
.btn-outline { background: transparent; color: var(--btn-bg) !important; border-color: var(--btn-bg); border-radius: 300px; padding: 1.2em 2em; font-size: var(--small); line-height: 1.15; }

/* ---------- header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 0;
  /* +20px: on live, an off-screen "skip to content" link still takes a 20px line above the header row */
  padding: calc(1.8vw + 20px) var(--sqs-site-gutter) 1.8vw;
  background: transparent;
  color: var(--nav);
  transition: background-color .3s, padding .3s;
}
.site-header { transition: transform .4s ease, background-color .3s; }
.site-header.scrolled { background: var(--bg); }
/* Like the live site: the header slides away while scrolling down and returns on scroll up. */
.site-header.tucked { transform: translateY(-100%); }
.site-title { font-family: var(--heading-font); font-size: var(--site-title); letter-spacing: -.02em; text-decoration: none; color: var(--nav); line-height: 1.4; }
.site-title { margin-right: 3.4vw; }
/* Live puts a 3.3vw margin after every item (last one too), so the menu wraps a line on narrower windows. */
.nav { display: flex; flex-wrap: wrap; align-items: center; flex: 1; }
.nav > * { margin-right: 3.3vw; }
.nav > a, .folder-toggle { position: relative; color: var(--nav); text-decoration: none; font: inherit; background: none; border: 0; cursor: pointer; padding: .1em 0; font-size: var(--normal); line-height: 1.6; }
/* Live: a 1px line that draws in from the left on hover and leaves to the right. */
.nav > a::after, .folder-toggle::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .11em; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .6s cubic-bezier(.19, 1, .22, 1);
}
.nav > a:hover::after, .folder-toggle:hover::after, .nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.folder { position: relative; }
.folder-menu {
  display: none; position: absolute; left: -1.2em; top: 100%;
  list-style: none; margin: 0; padding: .8em 0;
  background: var(--bg); min-width: 22em; max-height: 75vh; overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.folder:hover .folder-menu, .folder.open .folder-menu { display: block; }
.folder-menu a { display: block; padding: .3em 1.2em; color: var(--nav); text-decoration: none; font-size: var(--small); }
.folder-menu a:hover { background: rgba(255,255,255,.08); }
.header-actions { display: flex; align-items: center; gap: 3.4vw; }
.site-header .social { gap: 3.3vw; }
.social { display: flex; gap: 1em; align-items: center; }
.social a { color: inherit; display: inline-flex; }
.social svg { width: 22px; height: 22px; }
.site-header .social a { color: var(--nav); }
.site-header .social svg { width: 20px; height: 20px; }
.social-block { justify-content: center; gap: 12px; }
.social-block a { width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 50%; background: var(--text); color: var(--bg); }
.social-block svg { width: 23px; height: 23px; }
.burger, .mobile-menu { display: none; }

@media (max-width: 900px) {
  .nav, .header-actions { display: none; }
  .site-header { justify-content: space-between; padding: 6vw var(--sqs-mobile-site-gutter); min-height: calc(12vw + 37px); }
  .site-title { font-size: var(--mobile-site-title); }
  .burger { display: flex; flex-direction: column; gap: 7px; background: none; border: 0; padding: 8px; cursor: pointer; }
  .burger span { display: block; width: 28px; height: 1.5px; background: var(--nav); transition: transform .2s; }
  .burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .mobile-menu:not([hidden]) {
    display: flex; flex-direction: column; gap: 1.2em;
    position: fixed; inset: var(--header-h, 64px) 0 0 0; overflow-y: auto;
    background: var(--bg); padding: 8vw var(--sqs-mobile-site-gutter);
    font-size: var(--large);
  }
  .mobile-menu a, .mobile-menu summary { color: var(--nav); text-decoration: none; cursor: pointer; }
  .mobile-menu ul { list-style: none; padding: .6em 0 0 1em; margin: 0; font-size: var(--normal); }
  .mobile-menu li { padding: .25em 0; }
  .mobile-menu .btn { align-self: flex-start; }
}

/* ---------- quote carousel */
.quotes-section { padding: 0; min-height: 50vh; display: flex; flex-direction: column; justify-content: center; }
.quotes-section > .content { width: 100%; }
.quotes-section .wrap { max-width: none; padding: 6vw 0; }
.carousel { position: relative; }
.carousel .slides { list-style: none; margin: 0; padding: 0; display: grid; }
.carousel .slide { grid-area: 1 / 1; align-self: center; opacity: 0; visibility: hidden; transition: opacity .6s; text-align: center; padding: 0 calc(3vw + 68px); }
.carousel .slide.active { opacity: 1; visibility: visible; }
.carousel blockquote { margin: 0 0 1em; font-family: var(--heading-font); font-size: calc(1.2 * var(--u) + var(--base)); line-height: 1.254; letter-spacing: -.02em; }
.carousel .cite { font-size: var(--small); }
.carousel .cite p { margin: 0; }
.arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer; padding: 0;
  background: var(--black); color: var(--white); display: grid; place-items: center;
}
.arrow.prev { left: 3vw; }
.arrow.next { right: 3vw; }
.arrow svg { width: 36px; }
@media (max-width: 767px) {
  /* Live on phones: the band is ~2/3 of the screen, quote centered, 48px arrows side by side near the bottom. */
  .quotes-section { min-height: 67vh; }
  .quotes-section > .content { flex: 1; display: flex; flex-direction: column; justify-content: center; }
  .quotes-section .wrap { padding: 6vw 0; }
  .carousel blockquote { margin-bottom: 13px; }
  .carousel { position: static; }
  .carousel .slide { padding: 0 var(--sqs-mobile-site-gutter); }
  .arrow { top: auto; bottom: 4px; transform: none; width: 48px; height: 48px; }
  .arrow svg { width: 28px; }
  .arrow.prev { left: calc(50% - 52.5px); }
  .arrow.next { right: calc(50% - 52.5px); }
}

/* ---------- chapter cards (home) */
/* Live: 3 columns from ~1150px wide, 2 below (cards at least ~300px wide) */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 60px; padding-bottom: 60px; }  /* live: every card has a 60px bottom margin, the last row too */
.card .card-img { display: block; }
.card .card-img img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.card h3 { font-size: 20px; line-height: 1.2; font-family: var(--body-font); letter-spacing: 0; margin: 15px 0 2px; }
.card h3 a { text-decoration: none; }
@media (max-width: 767px) { .cards { grid-template-columns: 1fr; gap: 60px; } }

/* ---------- chapter list + posts */
.blog-list .list-item { padding: 0 0 4em; margin-bottom: 4em; border-bottom: 1px solid rgba(239, 176, 113, .25); }
.blog-list .list-item:last-child { border-bottom: 0; }
.blog-list .list-img img { width: 100%; margin-bottom: 1.4em; }
.blog-list h2 a { text-decoration: none; color: var(--heading); }
.blog-list .excerpt { margin-bottom: 1em; }
/* Chapter posts: full content width (1152px at desktop), like the live blog item */
.post .content.narrow { max-width: calc(var(--sqs-site-max-width) + 2 * var(--sqs-site-gutter)); }
.post { padding-bottom: 0; }
.post .content.narrow { padding-top: var(--sqs-site-gutter); }
.post h1 { font-size: var(--h1); line-height: 1.4; margin: 26px 0 49px; }
.post-body { overflow-wrap: anywhere; }
.post-body p { margin: 13px 0; }
.post-body h1, .post-body h2, .post-body h3, .post-body h4 { margin: 26px 0; }
/* Each Squarespace block has 17px padding top and bottom (none above the first). */
.post-body > *, .post-body .col > * { padding: 17px 0; margin: 0; }
.post-body > :first-child { padding-top: 0; }
/* Each text block drops the outer margin of its first and last item, as on live. */
.post-body .text > :first-child { margin-top: 0; }
.post-body .text > :last-child { margin-bottom: 0; }
.post-body .anchor { display: block; height: 13px; box-sizing: content-box; position: relative; top: -110px; visibility: hidden; }
.post-body blockquote { margin: 1em 0; }  /* live: plain, no rule or indent */
.post-body figure.image { margin: 0 auto; }
.post-body figure.image.inline img { margin: 0 auto; }
.post-body figure.image figcaption { text-align: center; }
.post-body figure.image.overlap { display: flex; align-items: center; gap: 0; }
.post-body figure.image.overlap > img, .post-body figure.image.overlap > a { width: 55%; flex: none; }
.post-body figure.image.overlap > a > img { width: 100%; }
.post-body figure.image.overlap figcaption { flex: 1; text-align: center; margin: 0; padding: 0 4%; font-size: var(--small); opacity: 1; }
.post-body figure.image.overlap.pos-right { flex-direction: row-reverse; }
.post-body .row { display: flex; gap: 3%; }
@media (max-width: 767px) {
  .post-body .row { flex-direction: column; }
}
.video { position: relative; aspect-ratio: 16 / 9; margin: 0; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.post-body .video + .video-caption { padding-top: 0; }
.video-caption > :first-child { margin-top: 0; }
.pager { display: flex; justify-content: space-between; margin-top: calc(38.4px + var(--sqs-site-gutter)); padding: 38.4px 0; }
/* Live: each link keeps a 15.5% gap on its inner side, titles stay on one line where they fit. */
.pager a { display: flex; align-items: center; text-decoration: none; color: var(--white); font-family: var(--heading-font); font-size: var(--h3); line-height: 1; letter-spacing: -.02em; flex: 0 1 auto; min-width: 0; }
.pager .prev { margin-right: 15.51%; }
.pager .caret { width: 18px; height: 32px; padding: 0; flex: none; stroke-width: 1px; }
.pager .prev .caret { margin-right: 25px; }
.pager .next .caret { margin-left: 25px; }
.pager a:hover .t { opacity: .75; }
.pager .next { text-align: right; margin-left: auto; justify-content: flex-end; }

/* ---------- forms */
/* Live sets the field and button inline, so they line up on the text baseline (the button sits a little lower). */
.newsletter { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; align-items: baseline; padding-top: 13px; }
.newsletter input { flex: 0 1 228px; height: 60px; padding: 18.2px 26px; border: 1px solid rgba(0,0,0,.12); border-radius: 0; background: #fff; font-size: var(--normal); }
.newsletter .btn { background: transparent; color: var(--btn-bg) !important; border: 2px solid var(--btn-bg); border-radius: 300px; height: 56px; padding: 0 26px; font-size: var(--normal); line-height: 1; }
input, textarea {
  font: inherit; font-size: var(--normal);
  padding: .9em 1em; border-radius: 4px;
  border: 1px solid rgba(49, 61, 65, .35); background: rgba(255,255,255,.85); color: var(--black);
  width: 100%;
}
.newsletter .form-note, .newsletter .form-status { flex-basis: 100%; text-align: center; font-size: var(--small); margin: 13px 0 0; }
.contact { display: grid; gap: 1em; }
.contact label { display: grid; gap: .35em; font-size: var(--small); }
.contact label span { opacity: .7; }
.contact .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1em; }
.contact .btn { justify-self: start; }
.form-note { font-size: var(--small); opacity: .8; margin: 0; }

.newsletter-embed { display: flex; justify-content: center; }
.newsletter-embed iframe { width: 100%; max-width: 480px; height: 150px; border: 1px solid #eee; background: #fff; border-radius: 4px; }

/* ---------- footer + contact dialog */
.site-footer .btn-outline { font-size: var(--normal); }
.contact-dialog {
  width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 32px);
  border: 0; border-radius: 6px; padding: 2.4em 2em 2em;
  background: var(--white); color: var(--black);
}
.contact-dialog::backdrop { background: rgba(49, 61, 65, .7); }
.contact-dialog h2 { color: var(--black); font-size: var(--h3); }
.contact-dialog .btn { --btn-bg: var(--black); --btn-text: var(--white); }
.dialog-close { position: absolute; top: .4em; right: .6em; font-size: 2em; line-height: 1; background: none; border: 0; cursor: pointer; color: var(--black); }
@media (max-width: 767px) { .contact .field-row { grid-template-columns: 1fr; } }

/* ---------- reveal on scroll (live: "flex" animation — fade up 2vh over .8s; images and videos wipe up) */
html.rv :where(.text > :is(p, h1, h2, h3, h4, ul, ol, blockquote), .btn, .newsletter, .social-block > a, .card h3, .pager > a, .site-title, .nav > *, .site-header .social > a) {
  transition: transform .8s cubic-bezier(.19, 1, .22, 1), opacity .8s cubic-bezier(.19, 1, .22, 1);
}
html.rv :where(.text > :is(p, h1, h2, h3, h4, ul, ol, blockquote), .btn, .newsletter, .social-block > a, .card h3, .pager > a, .site-title, .nav > *, .site-header .social > a):not(.is-in) { opacity: 0; transform: translateY(2vh); }
html.rv :where(figure.image, .video, .card-img) {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  transition: clip-path .8s cubic-bezier(.19, 1, .22, 1), opacity .8s cubic-bezier(.19, 1, .22, 1);
}
html.rv :where(figure.image, .video, .card-img):not(.is-in) { opacity: 0; clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%); }

/* pause control for the animated backgrounds (live has one in each animated section) */
.bg-pause {
  position: absolute; right: 14px; bottom: 14px; z-index: 3; width: 32px; height: 32px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(0, 0, 0, .5); color: var(--white); cursor: pointer;
  display: grid; place-items: center;
}
.bg-pause svg { width: 12px; height: 12px; fill: currentColor; }
