/* ywamsfbayarea.org: site styles.
   Colours from the old Squarespace site (black #131516, white, greys); layout follows its grid.
   Fonts: Fraunces (headings, quotes, titles) with Inter (text, menus, labels, buttons), both from Google Fonts.
   Motion (reveals, parallax, 3D tilt, page transitions) only runs when site.js adds .motion to <html>, and never for
   people who ask their device for reduced motion, or inside the admin's editor (?edit=1). */
:root {
  --ink: #0f1011;
  --head: #131516;
  --grey: #545454;
  --label: #292929;
  --muted: rgba(15, 15, 15, .55);
  --line: #e8e8e8;
  --soft: #f6f6f5;
  --btn: #131516;
  --outline: #373d3f;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --pad: 80px;
  --gut: 17px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 30px 60px -30px rgba(19, 21, 22, .45), 0 12px 24px -16px rgba(19, 21, 22, .25);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 17px/1.75 var(--sans); font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--head); color: #fff; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 2px solid #01a0c6; outline-offset: 3px; }

/* ---------- header */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; background: var(--head); transform-origin: 0 50%;
  transform: scaleX(var(--p, 0)); pointer-events: none; }
.topbar { background: var(--head); color: #fff; height: 62px; display: flex; align-items: center; padding: 0 var(--pad); }
.tagline { font: 500 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; opacity: .85; }
.head-wrap { height: 178px; position: relative; z-index: 30; }
.head-wrap.over-wrap { height: 0; }
.head { position: relative; z-index: 20; display: flex; align-items: center; justify-content: space-between; height: 178px; padding: 0 var(--pad);
  background: #fff; transition: height .45s var(--ease-out), background-color .35s, box-shadow .35s; }
.head.over { position: absolute; left: 0; right: 0; top: 0; background: transparent; }
.brand { display: block; border-radius: 50%; transition: transform .5s var(--ease-out); }
.brand:hover { transform: rotate(-6deg) scale(1.04); }
.brand img { width: 90px; height: auto; transition: width .45s var(--ease-out); }
.nav { display: flex; gap: 0 30px; align-items: center; }
.nav-item { position: relative; font: 500 13px/16px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-decoration: none;
  background: none; border: 0; padding: 12px 0; cursor: pointer; transition: color .25s; }
.nav-item::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: 100% 50%; transition: transform .45s var(--ease-out); }
.nav-item:hover::after, .nav-folder:focus-within > .nav-item::after, .nav-folder.open > .nav-item::after { transform: scaleX(1); transform-origin: 0 50%; }
.head.over .nav-item { color: rgba(255, 255, 255, .92); text-shadow: 0 1px 12px rgba(0, 0, 0, .25); }
.nav-item:hover, .nav-folder:focus-within > .nav-item { color: var(--ink); }
.head.over .nav-item:hover, .head.over .nav-folder:focus-within > .nav-item { color: #fff; }
.nav-folder { position: relative; perspective: 800px; }
.nav-sub { position: absolute; top: calc(100% + 6px); left: 50%; min-width: 230px; background: #fff; padding: 14px 0; border-radius: 4px;
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .35), 0 0 0 1px rgba(0, 0, 0, .04); text-align: left;
  visibility: hidden; opacity: 0; transform: translateX(-50%) rotateX(-14deg) translateY(-6px); transform-origin: 50% 0;
  transition: opacity .25s, transform .4s var(--ease-out), visibility 0s .4s; }
.nav-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav-folder:hover .nav-sub, .nav-folder:focus-within .nav-sub, .nav-folder.open .nav-sub {
  visibility: visible; opacity: 1; transform: translateX(-50%) rotateX(0) translateY(0); transition: opacity .25s, transform .45s var(--ease-out), visibility 0s; }
.nav-sub a { display: block; padding: 8px 24px; font: 500 12.5px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; white-space: nowrap; transition: color .2s, padding-left .3s var(--ease-out), background-color .2s; }
.nav-sub a:hover { color: var(--ink); padding-left: 30px; background: var(--soft); }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 11px 9px; color: var(--ink); }
.menu-btn span { display: block; height: 2px; background: currentColor; margin: 5px 0; border-radius: 2px; transition: transform .3s var(--ease-out), width .3s; }
.menu-btn span:nth-child(2) { width: 70%; margin-left: auto; }
.menu-btn:hover span:nth-child(2) { width: 100%; }
.head.over .menu-btn { color: #fff; }
.mobile-menu { position: fixed; inset: 0; z-index: 70; background: var(--head); color: #fff; overflow: auto; padding: 96px 32px 48px; }
.mobile-menu[hidden] { display: none; }
.menu-close { position: absolute; right: 18px; top: 16px; width: 48px; height: 48px; font-size: 36px; line-height: 1; color: #fff; background: none;
  border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; cursor: pointer; transition: transform .4s var(--ease-out), background-color .2s; }
.menu-close:hover { transform: rotate(90deg); background: rgba(255, 255, 255, .08); }
.mnav { display: flex; flex-direction: column; gap: 2px; }
.mnav .nav-item { color: #fff; font: 400 34px/1.25 var(--display); letter-spacing: -.01em; text-transform: none; text-align: left; padding: 8px 0; text-shadow: none; }
.mnav .nav-item::after { display: none; }
.mnav .nav-item, .mnav .nav-item:hover, .mnav .nav-folder:focus-within > .nav-item { color: #fff; display: block; width: 100%; text-transform: lowercase; }
.mnav .nav-item::first-letter { text-transform: uppercase; }
.mnav .nav-folder > .nav-item::before { content: "+"; float: right; font: 300 28px/1.4 var(--sans); opacity: .6; transition: transform .35s var(--ease-out); }
.mnav .nav-folder.open > .nav-item::before { transform: rotate(45deg); }
.mnav .nav-sub { position: static; transform: none; box-shadow: none; padding: 0 0 14px 2px; text-align: left; min-width: 0; background: none;
  visibility: visible; opacity: 1; display: none; }
.mnav .nav-folder.open .nav-sub, .mnav .nav-folder:focus-within .nav-sub { display: block; transform: none; }
.mnav .nav-sub a { font: 500 14px/1.4 var(--sans); letter-spacing: .12em; color: rgba(255, 255, 255, .7); padding: 9px 0; background: none; }
.mnav .nav-sub a:hover { color: #fff; padding-left: 8px; background: none; }
.mnav > * { opacity: 0; transform: translateY(18px); animation: rise .6s var(--ease-out) forwards; }
.mnav > :nth-child(1) { animation-delay: .06s; } .mnav > :nth-child(2) { animation-delay: .12s; } .mnav > :nth-child(3) { animation-delay: .18s; }
.mnav > :nth-child(4) { animation-delay: .24s; } .mnav > :nth-child(5) { animation-delay: .3s; } .mnav > :nth-child(n+6) { animation-delay: .36s; }
.mobile-menu:not([hidden]) { animation: menuIn .45s var(--ease-out); }

/* sticky header once the page has scrolled past it (site.js adds .stuck to <body>) */
.stuck .head { position: fixed; top: 0; left: 0; right: 0; height: 80px; background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 18px 40px -28px rgba(0, 0, 0, .45); animation: dropIn .5s var(--ease-out); }
.stuck .head .brand img { width: 52px; }
.stuck .head.over .nav-item { color: var(--muted); text-shadow: none; }
.stuck .head.over .nav-item:hover { color: var(--ink); }
.stuck .head.over .menu-btn { color: var(--ink); }

/* ---------- typography */
/* vertical rhythm: margins collapse, first/last child of a block sit flush */
h1 { font: 600 70px/1.02 var(--display); font-optical-sizing: auto; letter-spacing: -.025em; color: var(--head); margin: 15px 0; text-wrap: balance; }
h2 { font: 600 12px/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--label); margin: 15px 0 14px; }
h3 { font: 400 25px/1.5 var(--display); letter-spacing: -.01em; color: var(--grey); margin: 15px 0; text-wrap: pretty; }
h4 { font: 600 18px/1.5 var(--display); margin: 15px 0; }
p { margin: 18px 0; text-wrap: pretty; }
.b-text > :first-child, .b-quote blockquote > :first-child, figcaption > :first-child { margin-top: 0; }
.b-text > :last-child, .b-quote blockquote > :last-child, figcaption > :last-child { margin-bottom: 0; }
.b-text blockquote { margin: 18px 0; padding-left: 0; }
.b-text a, .b-quote a { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .45s var(--ease-out); padding-bottom: 1px; }
.b-text a:hover, .b-quote a:hover { background-size: 0 1px; background-position: 100% 100%; }
.b-text h1 a, .b-text h2 a, .b-text h3 a { background: none; }
.b-text h2 a:hover, .b-text h3 a:hover { color: var(--ink); }
.ta-center { text-align: center; }
.ta-right { text-align: right; }
ul, ol { margin: 18px 0; padding-left: 1.3em; }
li > p { margin: 0; }
blockquote { margin: 0; }

/* ---------- layout */
.content { padding: 80px var(--pad); }
.sec { position: relative; padding: 120px var(--pad); background: #fff; }
.sec-img { padding: 200px var(--pad); background: var(--head); color: #fff; overflow: hidden; isolation: isolate; }
.sec-img > .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
/* photo bands that carry words get a soft shade so the words read well */
.sec-img:has(.b-text, .b-quote, .b-button)::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 90% at 50% 50%, rgba(10, 11, 12, .18), rgba(10, 11, 12, .5)); }
.sec-img > .sec-in { position: relative; }
.sec-img h1, .sec-img h2, .sec-img h3, .sec-img p, .sec-img blockquote { color: #fff; }
.sec-img .b-image img { margin: 0 auto; }
.has-hero main > .sec-img:first-child { padding-top: 300px; }
.sec-img .b-quote blockquote { color: #fff; text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
/* home page's first photo: exactly one screen (under the black top bar), logo, words and buttons centred in it */
.home.has-hero main > .sec:first-child { --hero-top: 178px; height: calc(100vh - 62px); height: calc(100svh - 62px); min-height: 520px;
  display: flex; align-items: center; padding: var(--hero-top) var(--pad) 84px; }
.home main > .sec:first-child > .sec-in { width: 100%; max-width: 860px; display: flex; flex-direction: column; align-items: center; gap: clamp(14px, 3svh, 30px); }
.home main > .sec:first-child .sec-in > * { width: 100%; margin: 0; }
.home main > .sec:first-child .b { padding: 0; }
.home main > .sec:first-child .b-image img { width: auto; max-width: min(100%, 520px); max-height: clamp(80px, calc(100svh - var(--hero-top) - 340px), 220px); }
.home main > .sec:first-child .nw { margin: 0; }
.home main > .sec:first-child h2 { margin: 0; text-wrap: balance; font-size: 13px; line-height: 1.7; text-shadow: 0 1px 14px rgba(0, 0, 0, .45); }
/* its buttons sit side by side with an even gap (empty layout columns are ignored) */
.home main > .sec:first-child .sec-in > .row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 16px; margin: 0; }
.home main > .sec:first-child .sec-in > .row .row, .home main > .sec:first-child .sec-in > .row .col { display: contents; }
.home main > .sec:first-child .b-button { text-align: center; }
.home main > .sec:first-child .sec-in > .row::after, .home main > .sec:first-child .sec-in > .row .row::after { display: none; }
.sec-in, .content > * { max-width: 1600px; margin-left: auto; margin-right: auto; }
.row { display: flex; margin: 0 calc(-1 * var(--gut)); }
.col { flex: 0 0 var(--w); max-width: var(--w); padding: 0 var(--gut); min-width: 0; }
/* every block has 17px above and below; spacers are given in 34px steps */
.b { margin: 0; padding: 17px 0; }
.b-spacer { height: calc(var(--s) * 34px); padding: 0; }
.b-line { border: 0; border-top: 1px solid var(--line); margin: 26px 0; padding: 0; height: 0; }
.sec-img .b-line { border-color: rgba(255, 255, 255, .4); }
.fl-left { float: left; width: calc(var(--span) / 12 * 100%); margin-right: 34px; }
.fl-left.b-image, .fl-right.b-image { padding-top: 0; }
.fl-right { float: right; width: calc(var(--span) / 12 * 100%); margin-left: 34px; }
.row::after, .content::after, .post-body::after { content: ""; display: table; clear: both; }
/* full-width text, buttons, quotes and forms sit in the middle two thirds; photos and maps don't */
@media (min-width: 801px) { .nw { margin-left: calc((100% + 34px) / 6 - 17px); margin-right: calc((100% + 34px) / 6 - 17px); } }

/* scroll cue under the home page's first section */
.scroll-cue { position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid rgba(255, 255, 255, .75);
  border-radius: 14px; z-index: 2; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff;
  animation: cue 1.8s var(--ease) infinite; }

/* "buttons around a photo" (Places map): equal buttons, spread evenly beside the photo, no spacer guesswork */
@media (min-width: 1025px) { .row-btnmap > .col:not(:has(.b-image)) { display: flex; flex-direction: column; justify-content: space-evenly; } }
.row-btnmap .b-spacer { display: none; }
.sec-btnmap .b-button { text-align: center; }
.sec-btnmap .btn { display: inline-flex; align-items: center; justify-content: center; width: min(100%, 260px); min-height: 64px;
  padding: 14px 12px; font-size: 12px; letter-spacing: .1em; line-height: 1.35; text-align: center; text-wrap: balance; }
.sec-btnmap .b-image img { border-radius: 4px; box-shadow: 0 30px 60px -30px rgba(19, 21, 22, .45); }

/* ---------- blocks */
.b-image { margin: 0; }
.b-image img { width: 100%; }
.b-image a { display: block; }
.b-image figcaption { font-size: 15px; line-height: 1.6; margin-top: 12px; color: var(--grey); }
.b-image.lay-inline figcaption p { margin: 0 0 .4em; }
/* "stack" photos (People, Speakers…): a large title under the photo, sized to the photo's width */
.b-image.lay-stack, .b-image.lay-collage, .b-image.lay-card, .b-image.lay-poster { container-type: inline-size; }
.b-image.lay-stack figcaption, .b-image.lay-collage figcaption, .b-image.lay-card figcaption, .b-image.lay-poster figcaption { font-size: 16px; line-height: 1.75; color: var(--ink); text-align: left; margin-top: 22px; }
.b-image.lay-stack figcaption > p:first-child, .b-image.lay-collage figcaption > p:first-child, .b-image.lay-card figcaption > p:first-child, .b-image.lay-poster figcaption > p:first-child {
  font-family: var(--display); font-weight: 500; font-size: max(22px, 7cqi); line-height: 1.1; letter-spacing: -.02em; margin-bottom: 18px; color: var(--head); }
.b-image.lay-stack figcaption > p { margin: 10px 0; }
.b-image.lay-stack figcaption > p:first-child { margin-top: 0; }
.b-image.lay-stack figcaption > p:last-child { margin-bottom: 0; }
/* "collage" photo (Contact Us): photo on the left, dark title card overlapping on the right */
.b-image.lay-collage { position: relative; }
.b-image.lay-collage img { width: 70%; }
.b-image.lay-collage figcaption { position: absolute; left: 55%; right: 0; top: calc(17px + 5cqi); margin: 0; padding: 5cqi; background: var(--head); color: #fff;
  box-shadow: var(--shadow); }
.b-image.lay-collage figcaption > p:first-child { font-weight: 500; font-size: max(26px, 4cqi); letter-spacing: -.01em; color: #fff; margin: 0; }

.b-button.al-left { text-align: left; }
.b-button.al-center { text-align: center; }
.b-button.al-right { text-align: right; }
.btn { position: relative; display: inline-block; overflow: hidden; isolation: isolate; font: 600 12px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; text-align: center; padding: 15px 28px; background: var(--btn); color: #fff; border: 0; border-radius: 2px; cursor: pointer;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), color .35s, background-color .35s; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #3a3f42; transform: translateY(101%); transition: transform .45s var(--ease-out); }
.btn:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -16px rgba(19, 21, 22, .6); }
.btn:active { transform: translateY(0); }
.btn { max-width: 100%; overflow-wrap: anywhere; }
.btn-medium, .btn-large { font-size: 14px; letter-spacing: .18em; padding: 22px 38px; background: transparent; color: var(--outline); border: 1.5px solid var(--outline); }
.btn-medium::before, .btn-large::before { background: var(--head); }
.btn-medium:hover, .btn-large:hover { color: #fff; }
.btn:hover::before { transform: translateY(0); }
.btn-large { font-size: 16px; padding: 26px 46px; }
.sec-img .btn-small { background: #fff; color: var(--head); }
.sec-img .btn-small::before { background: var(--head); }
.sec-img .btn-small:hover { color: #fff; }
.sec-img .btn-medium, .sec-img .btn-large { color: #fff; border-color: #fff; }
.sec-img .btn-medium::before, .sec-img .btn-large::before { background: #fff; }
.sec-img .btn-medium:hover, .sec-img .btn-large:hover { color: var(--head); }
.b-quote blockquote { font: italic 400 44px/1.22 var(--display); letter-spacing: -.02em; text-align: center; max-width: 909px; margin: 0 auto; text-wrap: balance; }
.b-quote blockquote::before { content: "\201C"; }
.b-quote blockquote::after { content: "\201D"; }
.b-quote blockquote p { display: inline; margin: 0; }
.b-quote figcaption { text-align: center; font: 600 12px/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; margin-top: 30px; }
.b-quote figcaption::before { content: ""; display: block; width: 40px; height: 1px; background: currentColor; margin: 0 auto 22px; opacity: .5; }
.b-quote { padding-bottom: 40px; }
.b-map iframe { width: 100%; border: 0; display: block; filter: grayscale(1) contrast(1.05); background: #e5e5e5; border-radius: 2px; }
.map-link { font: 600 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; display: inline-block; margin-top: 12px; }
.b-code { overflow-wrap: anywhere; }

/* forms */
.b-form { max-width: none; }
.ff { display: block; margin: 0 0 20px; }
.ff > span, .ff legend { display: block; font: 500 14px/1.4 var(--sans); margin-bottom: 8px; padding: 0; }
.ff-name { border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 16px; }
.ff-name legend { width: 100%; }
.ff-name label { flex: 1 1 200px; font-size: 14px; color: var(--grey); }
.ff-name label span { display: block; font: 400 12px/1.4 var(--sans); color: var(--grey); margin-bottom: 6px; }
.b-form input, .b-form textarea { width: 100%; font: 400 16px/1.4 var(--sans); padding: 13px 14px; border: 1px solid #cfcfcf; background: #fafafa; border-radius: 2px;
  transition: border-color .2s, background-color .2s, box-shadow .25s; }
.b-form input:hover, .b-form textarea:hover { border-color: #9a9a9a; }
.b-form input:focus, .b-form textarea:focus { background: #fff; border-color: var(--head); outline: none; box-shadow: 0 0 0 4px rgba(19, 21, 22, .08); }
.b-form textarea { height: 120px; resize: vertical; }
.req { color: #8a8a8a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin-top: 14px; font-size: 16px; }
.form-msg.bad { color: #b00020; }

/* ---------- blog-style lists (Places pages) */
.type-list .sec-img { padding: 0; height: 340px; }
.type-list.has-hero main > .sec-img:first-child { padding: 0; height: 340px; }
.type-list .sec-img > .bg { position: absolute; }
.type-list .sec-img::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(10, 11, 12, .35), rgba(10, 11, 12, 0) 55%); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 56px 32px; }
.card { font-size: 14px; line-height: 1.6; }
.card-img { display: block; aspect-ratio: 1; overflow: hidden; margin-bottom: 22px; border-radius: 2px; background: var(--soft); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out), filter .5s; }
.card:hover .card-img img { transform: scale(1.07); }
.card-title { display: block; font: 500 22px/1.25 var(--display); letter-spacing: -.01em; color: var(--head); text-decoration: none; margin-bottom: 12px; }
.card-title:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.card-ex { font-size: 13px; line-height: 1.65; letter-spacing: .04em; text-transform: uppercase; color: var(--grey); display: inline; }
.card-ex p { display: inline; margin: 0; }
.more { display: inline-flex; gap: 6px; align-items: center; font: 600 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  margin-left: 6px; white-space: nowrap; color: var(--ink); }
.more span { display: inline-block; transition: transform .35s var(--ease-out); }
.more:hover span, .card:hover .more span { transform: translateX(5px); }

/* posts */
.post { padding: 80px var(--pad); }
.post-title { font: 600 56px/1.08 var(--display); color: var(--head); letter-spacing: -.025em; margin: 24px 0 28px; text-wrap: balance; }
.post-share { display: flex; flex-wrap: wrap; gap: 10px; margin: 36px 0 28px; }
.post-share a { font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--grey); text-decoration: none;
  padding: 10px 14px; border: 1px solid var(--line); border-radius: 30px; transition: color .2s, border-color .2s, transform .3s var(--ease-out); }
.post-share a:hover { color: var(--ink); border-color: var(--ink); transform: translateY(-2px); }
.post-nav { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 28px; }
.post-nav a { display: block; text-decoration: none; color: var(--head); font: 500 22px/1.3 var(--display); max-width: 45%; transition: transform .35s var(--ease-out); }
.post-nav a:hover { transform: translateX(4px); }
.post-nav .pn-prev:hover { transform: translateX(-4px); }
.post-nav a span { display: block; font: 600 11px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.post-nav .pn-next { margin-left: auto; text-align: right; }

/* ---------- footer */
.foot { padding: 64px var(--pad) 48px; text-align: center; border-top: 1px solid var(--line); margin-top: 0; }
.foot-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 12px; margin: 0 0 22px; }
.foot-links a { font: 600 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #333738; text-decoration: none; padding: 12px 18px;
  border: 1px solid var(--line); border-radius: 30px; transition: color .2s, background-color .25s, border-color .25s, transform .3s var(--ease-out); }
.foot-links a:hover { color: #fff; background: var(--head); border-color: var(--head); transform: translateY(-2px); }
.foot-note, .copy { color: #555f61; font-size: 14px; }
.copy { margin: 0; }
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--head); color: #fff; font: 400 20px/1 var(--sans); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5);
  opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none; transition: opacity .35s, transform .45s var(--ease-out); }
.show-top .to-top { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }

/* ---------- motion (only with .motion on <html>) */
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes menuIn { from { opacity: 0; clip-path: circle(0 at calc(100% - 40px) 40px); } to { opacity: 1; clip-path: circle(150% at calc(100% - 40px) 40px); } }
@keyframes dropIn { from { transform: translateY(-100%); } to { transform: none; } }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 70% { opacity: 1; transform: translateY(12px); } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes kenburns { from { scale: 1.12; } to { scale: 1.0; } }
@keyframes heroIn { from { opacity: 0; transform: translateY(40px) scale(.98); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* reveal on scroll: blocks rise in; photos also come forward out of 3D space */
.motion .rv { transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out), filter .9s var(--ease-out); transition-delay: var(--d, 0s); }
.motion .rv:not(.in) { opacity: 0; transform: translate3d(0, 46px, 0); }
.motion .b-image.rv:not(.in), .motion .card.rv:not(.in) { transform: perspective(1200px) translate3d(0, 60px, -80px) rotateX(8deg); filter: blur(4px); }
.motion .b-line.rv { transform-origin: 0 50%; }
.motion .b-line.rv:not(.in) { transform: scaleX(0); opacity: 1; }
.motion .b-quote.rv:not(.in) { transform: scale(.94); filter: blur(6px); }
/* home page's first section: the photo slowly settles, the words come in one after another */
.motion .home .sec:first-child > .bg { animation: kenburns 9s var(--ease-out) both; }
.motion .home .sec:first-child .sec-in > * { animation: heroIn 1.2s var(--ease-out) both; }
.motion .home .sec:first-child .sec-in > :nth-child(1) { animation-delay: .15s; }
.motion .home .sec:first-child .sec-in > :nth-child(2) { animation-delay: .45s; }
.motion .home .sec:first-child .sec-in > :nth-child(3) { animation-delay: .7s; }
.motion .home .sec:first-child .sec-in > :nth-child(n+4) { animation-delay: .9s; }
.motion .home .sec:first-child .sec-in { opacity: var(--hero-o, 1); translate: 0 var(--hero-y, 0); }
.motion .home .sec:first-child .b-image img { translate: calc(var(--mx, 0) * -16px) calc(var(--my, 0) * -12px); transition: translate .6s var(--ease-out); }
.motion .home .sec:first-child .b-text, .motion .home .sec:first-child .row { translate: calc(var(--mx, 0) * -7px) calc(var(--my, 0) * -5px); transition: translate .6s var(--ease-out); }
/* photo bands drift slower than the page (parallax) */
.motion .sec-img > .bg { height: 124%; top: -12%; translate: 0 var(--py, 0); will-change: translate; }
.motion .home .sec:first-child > .bg { height: 112%; top: 0; }
/* 3D tilt on photos and cards (pointer devices only; site.js wraps photos in .tilt) */
.tilt { display: block; position: relative; transform-style: preserve-3d; will-change: transform;
  transform: perspective(1000px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)) scale(var(--ts, 1)); transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out); }
.tilt::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 55%); mix-blend-mode: soft-light; }
.tilt.on { --ts: 1.025; transition: transform .12s linear, box-shadow .6s var(--ease-out); }
.tilt.on::after { opacity: 1; }
.tilt.boxy.on { box-shadow: var(--shadow); }
.card.tilt { transform-style: flat; }

/* page-to-page transition (browsers that support cross-document view transitions) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .3s var(--ease) both vtOut; }
::view-transition-new(root) { animation: .55s var(--ease-out) both vtIn; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-12px) scale(.99); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(24px); } }

/* editing in the admin: no motion, everything visible */
.is-editing .rv, .is-editing .tilt { opacity: 1 !important; transform: none !important; filter: none !important; }

/* ---------- smaller screens */
@media (max-width: 1200px) {
  :root { --pad: 56px; }
  .nav { gap: 0 22px; }
  h1 { font-size: 58px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  :root { --pad: 40px; }
  .head { height: 140px; }
  .head-wrap { height: 140px; }
  .brand img { width: 76px; }
  .nav { gap: 0 18px; }
  .nav-item { font-size: 12px; letter-spacing: .12em; }
  h1 { font-size: 50px; }
  .b-quote blockquote { font-size: 36px; }
  .sec { padding: 96px var(--pad); }
  .sec-img { padding: 150px var(--pad); }
  .has-hero main > .sec-img:first-child { padding-top: 220px; }
  /* "buttons around a photo" on tablets and phones: the photo first, then the buttons two to a line */
  .sec-btnmap > .sec-in, .content.sec-btnmap { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
  .sec-btnmap .row, .sec-btnmap .col { display: contents; }
  .sec-btnmap .row::after, .content.sec-btnmap::after, .sec-btnmap .b-spacer { display: none; }
  .sec-btnmap .sec-in > *, .content.sec-btnmap > *, .sec-btnmap .b { order: 2; }
  .sec-btnmap .sec-in > :first-child, .content.sec-btnmap > :first-child { order: 0; width: 100%; }
  .sec-btnmap .b-image { order: 1; width: 100%; padding: 0 0 16px; }
  .sec-btnmap .b-image img { max-width: 480px; margin: 0 auto; }
  .sec-btnmap .b-button { padding: 0; width: calc(50% - 7px); max-width: 320px; }
  .sec-btnmap .btn { width: 100%; min-height: 60px; }
  .home.has-hero main > .sec:first-child { --hero-top: 140px; padding-top: 140px; }
  .post-title { font-size: 46px; }
}
@media (max-width: 860px) {
  :root { --pad: 28px; }
  body { font-size: 16.5px; }
  .topbar { display: none; }
  .head-wrap, .head-wrap.over-wrap { height: 72px; }
  .head, .head.over, .stuck .head { position: fixed; top: 0; left: 0; right: 0; height: 72px; padding: 0 18px; background: rgba(255, 255, 255, .9);
    -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 rgba(0, 0, 0, .06); animation: none; }
  .has-hero .head-wrap { height: 0; }
  .has-hero .head:not(.scrolled) { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .has-hero .head:not(.scrolled) .menu-btn { color: #fff; }
  .head .menu-btn, .head.over.scrolled .menu-btn { color: var(--ink); }
  .brand img, .stuck .head .brand img { width: 50px; }
  .nav { display: none; }
  .menu-btn { display: block; }
  .home.has-hero main > .sec:first-child { --hero-top: 72px; height: 100vh; height: 100svh; min-height: 460px; padding-top: 96px; padding-bottom: 84px; }
  .has-hero main > .sec-img:first-child { padding-top: 140px; }
  .type-list .sec-img, .type-list.has-hero main > .sec-img:first-child { height: 240px; padding: 0; }
  .sec { padding: 72px var(--pad); }
  .sec-img { padding: 110px var(--pad); }
  .content { padding: 48px var(--pad) 56px; }
  .post { padding: 36px var(--pad) 56px; }
  .post-title { font-size: 38px; }
  .b-spacer { height: calc(var(--s) * 17px); }
  h1 { font-size: 42px; }
  h3 { font-size: 21px; }
  .b-quote blockquote { font-size: 30px; }
  .b-quote figcaption { font-size: 11px; letter-spacing: .22em; }
  .btn-medium, .btn-large { font-size: 12px; letter-spacing: .14em; padding: 18px 22px; }
  .fl-left, .fl-right { float: none; width: auto; margin: 0 0 17px; }
  .cards { grid-template-columns: 1fr 1fr; gap: 40px 22px; }
  /* tablets: rows of four or more filled columns wrap two to a line instead of squeezing */
  .row:has(> .col:not(:empty) ~ .col:not(:empty) ~ .col:not(:empty) ~ .col:not(:empty)) { flex-wrap: wrap; row-gap: 10px; }
  .row:has(> .col:not(:empty) ~ .col:not(:empty) ~ .col:not(:empty) ~ .col:not(:empty)) > .col:empty { display: none; }
  .row:has(> .col:not(:empty) ~ .col:not(:empty) ~ .col:not(:empty) ~ .col:not(:empty)) > .col { flex: 0 0 50%; max-width: 50%; }
  .b-image.lay-collage img { width: 100%; }
  .b-image.lay-collage figcaption { position: relative; left: auto; top: auto; margin: -40px 24px 0; padding: 24px 28px; }
  .to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
  .scroll-cue { bottom: 22px; }
}
@media (max-width: 640px) {
  :root { --pad: 20px; }
  body { font-size: 16px; }
  h1 { font-size: 36px; }
  .post-title { font-size: 32px; }
  .b-quote blockquote { font-size: 26px; }
  .row { display: block; margin: 0; }
  .col { max-width: none; padding: 0; }
  .b-button.al-left, .b-button.al-right { text-align: center; }
  /* columns stack on phones, so the spacers that placed buttons beside a photo only leave big gaps: drop them */
  .col > .b-spacer, .col:empty { display: none; }
  .sec-btnmap .b-button { width: 100%; max-width: 360px; }
  .col > .b-button + .b-button, .b-button + .b-button { padding-top: 0; }
  .cards { grid-template-columns: 1fr; gap: 44px; }
  .card-title { font-size: 24px; }
  .mnav .nav-item { font-size: 30px; }
  .foot { padding: 48px var(--pad) 40px; }
  .post-nav a { font-size: 18px; }
}
@media (hover: none) { .tilt { transform: none !important; } .tilt::after { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  @view-transition { navigation: none; }
}
