/* Poppins throughout, with an equally considered light and charcoal palette. */
:root {
  --study-page-width: 1740px;
  --study-gutter: var(--gutter);
  color-scheme: light;
  --header-height: 66px;
  --header-surface: rgb(255 255 255 / 93%);
  --hover-surface: #dedfd8;
  --artboard: #e9eee6;
  --body-copy: #5a5e55;
  --subtle: #878c80;
  --focus: #3f6752;
  --selection: #d6e0d2;
  --card-shadow: 0 14px 28px -18px rgb(11 28 48 / 32%), 0 4px 10px -6px rgb(11 28 48 / 18%);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #202123;
  --soft: #2b2d30;
  --ink: #f4f3ef;
  --muted: #b8bab5;
  --line: #424447;
  --header-surface: rgb(32 33 35 / 94%);
  --hover-surface: #3e4145;
  --artboard: #34373a;
  --body-copy: #cccec9;
  --subtle: #9fa39d;
  --focus: #bed4c2;
  --selection: #526259;
  --card-shadow: 0 16px 30px -18px rgb(0 0 0 / 65%), 0 0 0 1px rgb(255 255 255 / 8%);
}
::selection { background: var(--selection); color: var(--ink); }
a:focus-visible,button:focus-visible,input:focus-visible { outline-color: var(--focus); }
input { color: inherit; }
input::placeholder { color: var(--muted); opacity: 1; }
.site-header {
  display: flex;
  align-items: center;
  height: var(--header-height);
  background: var(--header-surface);
  border-bottom-color: var(--line);
}
.header-masthead,.header-actions,.header-profile,.header-tools,.header-nav,.header-nav .header-link-group {
  display: flex;
  align-items: center;
}
.header-masthead { width: 100%; gap: clamp(10px,calc(2.5vw - 18px),24px); position: relative; z-index: 2; }
.site-header .wordmark { flex-shrink: 0; }
.header-actions { flex: none; margin-inline-start: auto; gap: clamp(5px,.6vw,12px); }
.header-profile { gap: 2px; }
.header-tools { position: relative; gap: 2px; padding-inline-start: clamp(6px,.7vw,12px); }
.header-tools::before {
  position: absolute; content: ""; inset-inline-start: 0; top: 8px; bottom: 8px;
  width: 1px; background: var(--line);
}
.header-nav { flex: none; gap: clamp(6px,.65vw,14px); }
.header-nav .header-link-group { gap: 2px; padding: 2px; background: var(--soft); border-radius: 999px; }
.site-header .pill {
  min-height: 33px;
  padding: 5px clamp(6px,calc(2vw - 20px),16px);
  border-radius: 999px;
  gap: 7px;
  font-size: clamp(12px,calc(.6vw + 5px),14px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.02em;
  text-transform: none;
  white-space: nowrap;
}
.site-header .header-item,.header-tools .pill.icon-only { background: transparent; }
.header-tools .pill.icon-only { width: 35px; height: 35px; flex: 0 0 35px; padding: 0; }
.header-profile .header-item { min-height: 35px; padding-inline: clamp(5px,calc(1.3vw - 10px),11px); }
.header-actions .header-download { min-height: 35px; padding-inline: clamp(9px,.9vw,15px); gap: 7px; }
.header-actions .header-download,.site-header .header-item[aria-current],
.site-header .header-item.active,.site-header .header-disclosure:has([aria-current])>summary {
  color: var(--paper); background: var(--ink);
}
.header-actions .header-download:hover { background: var(--body-copy); }
.site-header .header-item:hover,.header-tools .pill:hover,.site-header .header-disclosure[open]>summary {
  color: var(--ink); background: var(--hover-surface);
}
.header-disclosure summary { cursor: pointer; list-style: none; }
.header-disclosure summary::-webkit-details-marker { display: none; }
.header-disclosure summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.header-caret { width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-1px) rotate(45deg); }
.header-disclosure[open]>summary .header-caret { transform: translateY(2px) rotate(225deg); }
.header-disclosure .nav-popover { width: 240px; padding: 6px; border-radius: 18px; }
.header-disclosure[open]>.nav-popover { display: grid; }
.header-disclosure .nav-popover a { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; padding: 9px 13px; border-radius: 12px; font-size: 14px; line-height: 1.4; }
.header-disclosure .nav-popover a:hover,.header-disclosure .nav-popover a:focus-visible { background: var(--soft); }
.header-disclosure .nav-popover small { display: block; font-size: 12px; color: var(--muted); }
.header-disclosure .nav-popover [aria-hidden] { color: var(--muted); }
.wordmark { font-size: 32px; letter-spacing: -.065em; }
.wordmark .dot { color: var(--subtle); }
.nav-popover, .skip-link, .search-dialog { background: var(--paper); }
.pill:hover,.pill.active,.pill[aria-expanded=true],.view-tools button[aria-pressed=true] { background: var(--hover-surface); }
.pill.dark,.filter[aria-pressed=true] { color: var(--paper); background: var(--ink); }
.pill.dark:hover { background: var(--body-copy); }
.pill.icon-only { width: 44px; height: 44px; padding: 0; flex: 0 0 44px; }
.header-tools .theme-toggle { display:grid;place-items:center;width:56px;height:44px;flex:0 0 56px;padding:0;border:0;border-radius:999px;background:transparent; }
.theme-toggle-track { position:relative;display:block;width:50px;height:28px;border:1px solid var(--line);border-radius:999px;background:#e8ebe5; }
.theme-toggle-thumb { position:absolute;inset:2px auto 2px 2px;width:22px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0002;transition:transform .2s ease; }
.theme-toggle svg { position:absolute;top:6px;width:14px;height:14px;color:#697365; }
.theme-toggle .theme-sun { left:6px;color:#263c2d; }
.theme-toggle .theme-moon { right:6px; }
.theme-toggle:hover .theme-toggle-track { border-color:var(--muted); }
[data-theme="dark"] .theme-toggle-track { background:#39423d; }
[data-theme="dark"] .theme-toggle-thumb { transform:translateX(22px);background:#e3eddf; }
[data-theme="dark"] .theme-toggle .theme-sun { color:#b1c0b4; }
[data-theme="dark"] .theme-toggle .theme-moon { color:#25382c; }
@media(prefers-reduced-motion:reduce){.theme-toggle-thumb{transition:none}}
.hero,.project-card,.project-cover { background: var(--soft); }
.hero-panel { background: rgb(28 29 31 / 74%); }
.hero-controls button { background: rgb(28 29 31 / 55%); }
.project-card.contained,.domain.product { background: var(--artboard); }
.project-story p,.page-intro .page-description,.about-copy .secondary { color: var(--body-copy); }
.statement .muted { color: var(--subtle); }
.research-row:hover h3 { color: var(--subtle); }
dialog::backdrop { background: rgb(13 14 16 / 68%); }
.lightbox { background: #18191b; }
.hero-caption h1,.hero-caption .hero-title { line-height: 1.2; }
.card-caption h3 { line-height: 1.2; }
.page-intro h1,.project-title h1 { line-height: 1.1; }
.section-heading .pill { flex-shrink: 0; white-space: nowrap; }

/* Keep the shared footer flush with the bottom even on short pages. */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body > main { flex: 1 0 auto; width: 100%; }
.footer {
  --foot-pad: var(--gutter);
  --foot-field: #edf1e8;
  --foot-title: #203229;
  --foot-accent: #4b704f;
  --foot-copy: #495a50;
  --foot-button: #253d30;
  --foot-button-ink: #fafbf7;
  margin: 54px 0 0; padding: 0; overflow: hidden;
  border: 0; border-radius: 0; background: var(--soft);
}
:root[data-theme="dark"] .footer {
  --foot-field: #25302b; --foot-title: #f1f3eb; --foot-accent: #b8d2ad;
  --foot-copy: #c1cbc1; --foot-button: #d0e5c5; --foot-button-ink: #203329;
}
.footer-invitation {
  display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,.8fr); align-items: center;
  gap: clamp(20px,5vw,85px); isolation: isolate; background: var(--foot-field);
  padding: clamp(32px,4.4vw,70px) var(--foot-pad); border-bottom: 1px solid var(--line);
}
.footer-message h2 {
  max-width: 23ch; color: var(--foot-title); font-size: clamp(32px,3.55vw,57px);
  font-weight: 500; line-height: 1.07; letter-spacing: -.055em; text-wrap: balance;
}
.footer-message em { color: var(--foot-accent); font-style: normal; }
.footer-connect {
  display: inline-flex; align-items: center; gap: 15px; min-height: 44px; padding: 9px 19px;
  margin-top: 23px; border-radius: 999px; background: var(--foot-button); color: var(--foot-button-ink);
  font-size: 14px; font-weight: 550; letter-spacing: -.02em; transition: background-color .15s ease;
}
.footer-connect:hover { background: color-mix(in srgb,var(--foot-button) 86%,var(--foot-field)); }
.footer-connect svg,.footer-sketch-caption svg { transition: transform .18s ease-out; }
.footer-connect:hover svg,.footer-sketch:hover svg { transform: translate(2px,-2px); }
.footer-sketch { display: grid; justify-self: center; align-content: center; width: min(100%,410px); color: var(--foot-copy); }
.footer-sketch-window { display: block; position: relative; width: 100%; aspect-ratio: 297 / 111; overflow: hidden; mix-blend-mode: multiply; }
.footer-sketch-window img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(1) contrast(1.65); }
/* The approved BEPO crop is now independent of the project sheet assets. */
.footer-sketch[data-project="bepo-steam-nest"] .footer-sketch-window {
  clip-path: polygon(0 100%,0 51%,12% 44%,19% 26%,28% 17%,45% 5%,59% 2%,69% 13%,79% 25%,93% 26%,93% 52%,78% 51%,78% 60%,86% 71%,100% 74%,100% 100%,66% 100%,54% 94%,40% 94%,30% 97%); }
:root[data-theme="dark"] .footer-sketch-window { mix-blend-mode: screen; }
:root[data-theme="dark"] .footer-sketch-window img { filter: grayscale(1) contrast(1.65) invert(1); opacity: .86; }
.footer-sketch-caption { display: inline-flex; justify-self: center; justify-content: center; align-items: center; gap: 7px; margin: 9px 0 0; max-width:100%; text-align:center; font-size: 11px; line-height: 1.5; }
.footer-sketch-caption::before { content: ""; width: 19px; height: 1px; background: currentColor; opacity: .55; }
.footer-sketch-caption svg { width: 12px; height: 12px; flex-shrink:0; }
.footer-directory { display: grid; grid-template-columns: 1.35fr 1.05fr .9fr 1fr; gap: 24px; padding: clamp(25px,3vw,46px) var(--foot-pad); }
.footer-signature { align-self: start; justify-self: start; font-size: clamp(31px,3.2vw,48px); line-height: 1; letter-spacing: -.075em; font-weight: 700; }
.footer-signature span { color: var(--foot-accent); }
.footer-links { display: grid; align-content: start; justify-items: start; }
.footer-links h3 { margin: 0 0 10px; font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.footer-links a { display: inline-flex; align-items: center; gap: 4px; min-height: 28px; font-size: 13px; line-height: 1.4; }
.footer-links a:hover,.footer-legal a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-links svg { width: 11px; height: 11px; }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin: 0 var(--foot-pad); padding: 14px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.footer-legal a:last-child { margin-inline-start: auto; }
.footer-legal a { display: inline-flex; align-items: center; gap: 5px; min-height: 26px; }
@media (max-width:760px) {
  .footer-directory { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .footer-signature { grid-column: 1/-1; }
  .footer-invitation { grid-template-columns: minmax(0,1.4fr) minmax(0,.8fr); gap: 18px; }
}
@media (max-width:600px) {
  .footer { margin-top: 34px; }
  .footer-invitation { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .footer-sketch { width: min(76%,270px); justify-self: end; }
  .footer-message h2 { font-size: clamp(29px,7.7vw,39px); }
  .footer-connect { margin-top: 16px; }
  .footer-directory { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 21px 14px; }
  .footer-links:last-child { grid-column: 1/-1; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 12px; }
  .footer-links:last-child h3 { grid-column: 1/-1; }
  .footer-links a { min-height: 32px; font-size: 12px; }
  .footer-legal { gap: 3px 16px; }
  .footer-legal > span { width: 100%; }
}
@media (max-width:365px) {
  .footer-directory { grid-template-columns: minmax(0,1fr) minmax(0,.85fr); }
  .footer-links:last-child a:first-of-type { overflow-wrap: anywhere; display: block; padding-block: 5px; }
}
@media (prefers-reduced-motion:reduce) {
  .footer-connect,.footer-connect svg,.footer-sketch-caption svg { transition: none; }
  .footer-connect:hover svg,.footer-sketch:hover svg { transform: none; }
}

/* Publication covers and introductions stay readable at every scale. */
.collection-intro { max-width: 760px; color: var(--body-copy); font-size: 15px; line-height: 1.8; margin: 0 0 36px; }
.essay-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 48px 24px; }
.essay-card { min-width: 0; }
.essay-cover { display: flex; align-items: center; justify-content: center; height: 360px; background: var(--soft); border-radius: 6px; overflow: hidden; padding: 28px; }
.essay-cover img { display: block; height: 100%; max-width: 100%; width: auto; object-fit: contain; box-shadow: 0 8px 22px #0002; }
.essay-card-copy { padding: 21px 3px 0; }
.essay-card .eyebrow { margin-bottom: 12px; color: var(--muted); font-size: 10px; }
.essay-card h3 { font-size: clamp(19px,1.5vw,25px); line-height: 1.35; letter-spacing: -.04em; font-weight: 500; margin-bottom: 14px; }
.essay-card-copy>p:not(.eyebrow) { font-size: 13px; line-height: 1.8; color: var(--body-copy); }
.essay-card-links { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; }
.essay-card .text-link { font-size: 12px; }
.series-collection { margin-top: 70px; scroll-margin-top: 90px; }
#beyond-the-built { scroll-margin-top: 90px; }
.essay-intro { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(240px,.7fr); align-items: center; gap: 7vw; padding: 75px var(--gutter) 65px; }
.essay-heading { max-width: 820px; }
.essay-heading h1 { font-size: clamp(35px,4.4vw,76px); line-height: 1.12; letter-spacing: -.055em; font-weight: 400; margin: 23px 0; }
.essay-subtitle { font-size: clamp(17px,1.7vw,27px); line-height: 1.5; color: var(--body-copy); max-width: 700px; }
.essay-byline { display: flex; flex-wrap: wrap; gap: 7px 24px; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 32px; font-size: 12px; color: var(--muted); }
.essay-topics { display: flex; gap: 6px; flex-wrap: wrap; margin: 22px 0 28px; }
.essay-heading .links { display: flex; flex-wrap: wrap; gap: 8px; }
.document-note { display: block; font-size: 10px; line-height: 1.8; color: var(--muted); margin-top: 16px; }
.essay-detail-cover { display: block; padding: 27px; border-radius: 6px; background: var(--soft); }
.essay-detail-cover img { width: 100%; height: auto; display: block; box-shadow: 0 9px 24px #0002; }
.essay-reading { display: grid; grid-template-columns: 1fr 2fr; gap: 7vw; border-top: 1px solid var(--line); padding-top: 50px; }
.essay-overview-label>p:last-child { font-size: 11px; line-height: 1.7; color: var(--muted); margin-top: 12px; max-width: 180px; }
.essay-prose { max-width: 800px; }
.essay-prose p { font-size: clamp(16px,1.35vw,20px); line-height: 1.9; color: var(--body-copy); margin-bottom: 25px; }
.essay-prose .text-link { font-size: 12px; }
.essay-back { margin-top: 28px; }
.contact-alternate { font-size: 11px; line-height: 1.8; color: var(--muted); margin-top: 25px; overflow-wrap: anywhere; }
.contact-alternate a { text-decoration: underline; text-underline-offset: 3px; }
.contact-email { overflow-wrap: anywhere; }

/* Full, uncropped Figma exports for the mobility product. */
.screen-preview { width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; gap: 16px; padding: 30px 30px 83px; }
.project-card.contained .screen-preview img { width: auto; min-width: 0; max-width: 45%; height: 100%; padding: 0; object-fit: contain; }
.project-cover.product-screens { height: auto; min-height: 0; background: var(--artboard); }
.project-cover .screen-preview { padding: 48px max(5vw,28px); gap: 25px; }
.project-cover.product-screens img { width: calc(25% - 19px); height: auto; padding: 0; object-fit: contain; max-height: 630px; }
.domain.product .screen-preview { padding: 28px 28px 80px; gap: 16px; }
.domain.product .screen-preview img { width: auto; max-width: 43%; height: 100%; padding: 0; object-fit: contain; }
.project-gallery.phone-gallery { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 30px 18px; }
.project-gallery.phone-gallery figure:first-child { grid-column: auto; }
.project-gallery.phone-gallery figure:last-child { grid-column: 1/-1; }
.phone-gallery .image-button { width: 100%; background: var(--soft); }
.phone-gallery .image-button.contained img { padding: 18px; height: auto; max-height: none; width: 100%; }
.phone-gallery figure:last-child .image-button { padding: 24px; }
.phone-gallery figure:last-child img { max-width: 1100px; margin: auto; }
.work-grid.list-view .screen-preview { width: 180px; padding: 6px 28px; gap: 5px; }
.work-grid.list-view .project-card.contained .screen-preview img { width: auto; height: 110px; max-width: 49%; padding: 0; }
@media (max-width: 1000px) {
  .essay-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .essay-intro { gap: 35px; }
  .essay-detail-cover { padding: 18px; }
  .project-cover .screen-preview { gap: 15px; padding: 30px; }
}
@media (max-width: 720px) {
  .essay-grid { grid-template-columns: 1fr; gap: 44px; }
  .essay-cover { height: 370px; }
  .essay-card h3 { font-size: 24px; }
  .essay-card-copy>p:not(.eyebrow) { font-size: 14px; }
  .essay-intro { grid-template-columns: 1fr; padding-top: 45px; gap: 35px; }
  .essay-heading h1 { font-size: clamp(34px,9vw,56px); }
  .essay-detail-cover { max-width: 360px; width: 100%; margin: auto; padding: 25px; }
  .essay-reading { grid-template-columns: 1fr; gap: 22px; }
  .essay-overview-label>p:last-child { max-width: none; }
  .project-cover .screen-preview { display: grid; grid-template-columns: 1fr 1fr; padding: 24px; gap: 22px; }
  .project-cover.product-screens img { width: 100%; max-height: none; }
  .project-gallery.phone-gallery { grid-template-columns: 1fr 1fr; gap: 24px 12px; }
  .phone-gallery .image-button.contained img { padding: 10px; }
  .phone-gallery figure:last-child .image-button { padding: 0; }
  .screen-preview { gap: 10px; padding: 20px 16px 85px; }
  .work-grid.list-view .screen-preview { width: 100px; padding: 6px; }
  .work-grid.list-view .project-card.contained .screen-preview img { height: 100px; }
}

/* Card feedback uses translate/scale independently of the scroll transforms. */
.project-card:hover img,.domain:hover img,.image-button:hover img { transform: none; }
.project-card img,.domain img,.image-button img { transition: none; }
@media (prefers-reduced-motion: no-preference) {
  .project-card,.domain,.image-button,.research-feature .cover {
    transition: translate 240ms cubic-bezier(.2,.7,.2,1), box-shadow 240ms cubic-bezier(.2,.7,.2,1);
  }
  .project-card img,.domain img,.image-button img {
    scale: 1;
    transition: scale 650ms cubic-bezier(.22,1,.36,1);
  }
  .project-card:focus-visible,.domain:focus-visible,.image-button:focus-visible,.research-feature .cover:focus-visible {
    translate: 0 -4px;
    box-shadow: var(--card-shadow);
  }
  .project-card:focus-visible img,.domain:focus-visible img,.image-button:focus-visible img { scale: 1.025; }
  [data-scroll-reveal="pending"] { opacity: 0; }
  [data-scroll-reveal="pending"]:focus-within { opacity: 1; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .project-card:hover,.domain:hover,.image-button:hover,.research-feature .cover:hover {
    translate: 0 -4px;
    box-shadow: var(--card-shadow);
  }
  .project-card:hover img,.domain:hover img,.image-button:hover img { scale: 1.025; }
}
.work-grid.list-view .project-card { translate: none; box-shadow: none; }
.work-grid.list-view .project-card img { transform: none!important; scale: 1; }
@media (min-width:1121px) {
  .site-header { padding-inline: clamp(16px,calc(4vw - 29px),var(--gutter)); }
  .site-header .wordmark { font-size: clamp(26px,calc(1.8vw + 6px),32px); }
}
@media (min-width:1024px) and (max-width:1250px) {
  .header-nav .header-item { padding-inline: 4px; }
}
@media (min-width:1121px) and (max-width:1199px) {
  .header-actions .header-download { width: 35px; padding-inline: 0; }
  .header-download span { display: none; }
}
@media (max-width:1120px) {
  .site-header .header-nav,.header-actions .header-profile,.header-actions .header-download { display: none; }
  .header-actions { gap: 6px; }
  .header-tools { padding: 0; }
  .header-tools::before { display: none; }
  .header-tools .pill.icon-only { width: 42px; height: 44px; flex-basis: 42px; }
  .site-header .mobile-menu-button { display: flex; min-height: 40px; gap: 8px; padding-inline: 14px; }
  .mobile-menu-button[aria-expanded=true] svg { transform: rotate(45deg); }
  .mobile-nav.open {
    display: grid; align-content: start; gap: 18px; position: fixed; z-index: 29;
    top: var(--header-height); bottom: 0; left: 0; right: 0;
    background: var(--paper); padding: 16px var(--gutter) 28px; overflow: auto;
    overscroll-behavior: contain;
  }
  .mobile-nav .header-link-group { min-width: 0; }
  .header-group-title {
    color: var(--muted); margin: 0 0 4px; padding: 0 0 7px; border-bottom: 1px solid var(--line);
    font-size: 12px; font-weight: 500; letter-spacing: .025em;
  }
  .mobile-nav .header-item {
    display: flex; align-items: center; justify-content: space-between; min-height: 44px;
    padding: 5px 6px; border-radius: 10px; font-size: clamp(19px,3.6vw,23px);
    line-height: 1.3; letter-spacing: -.035em;
  }
  .mobile-nav .header-item[aria-current],.mobile-nav .header-item.active { background: var(--soft); font-weight: 600; }
  .mobile-nav .header-caret { width: 9px; height: 9px; margin-right: 7px; }
  .mobile-nav .nav-popover { position: static; width: 100%; margin: 7px 0; border: 0; box-shadow: none; background: var(--soft); }
  .mobile-nav .nav-popover a { min-height: 44px; }
  .header-resources { display: flex; flex-wrap: wrap; gap: 0 20px; padding-top: 8px; border-top: 1px solid var(--line); }
  .header-resources a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; color: var(--body-copy); }
}
@media (min-width:1024px) and (max-width:1120px) {
  .site-header { padding-inline: 16px; }
  .site-header .wordmark { font-size: 26px; }
  .site-header .header-nav { display: flex; }
  .header-tools .pill.icon-only { width: 35px; height: 40px; flex-basis: 35px; }
  .site-header .mobile-menu-button { padding-inline: 10px; }
}
@media (min-width:600px) and (max-width:1120px) {
  .mobile-nav.open { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 32px; }
  .header-resources { grid-column: 1 / -1; }
}
@media (max-width:720px) {
  :root { --header-height: 61px; }
  .wordmark { font-size: 28px; letter-spacing: -.07em; }
  .page-intro h1 { font-size: clamp(43px,11.6vw,72px); }
  .project-title h1 { font-size: clamp(38px,10.5vw,60px); overflow-wrap: anywhere; }
  .hero-caption h1,.hero-caption .hero-title { font-size: 21px; }
  .hero-panel { padding-bottom: 15px; }
  .hero-controls { bottom: 156px; }
  .hero-view { flex-shrink: 0; }
  .mosaic .card-caption h3 { font-size: 17px; }
  .mosaic .card-caption .mono { letter-spacing: 0; }
  .section-heading h2 { font-size: 21px; }
}
@media (max-width:380px) {
  .site-header { padding-inline: 12px; }
  .wordmark { font-size: 25px; }
  .site-header .mobile-menu-button { width: 44px; padding: 0; }
  .mobile-menu-button span { display: none; }
  .hero-caption h1,.hero-caption .hero-title { font-size: 19px; }
}
@media (prefers-reduced-motion:reduce) {
  [data-scroll-reveal] { opacity: 1!important; transform: none!important; }
  .project-card img,.domain img,.image-button img,.project-cover img,.hero-slide img { transform: none!important; scale: 1!important; }
}
@media print {
  [data-scroll-reveal] { opacity: 1!important; transform: none!important; }
  main img { transform: none!important; scale: 1!important; }
}

/* Shared gutters for the revised portfolio sections and their footer. */
:is(.portfolio-study,.graphic-design) + .footer,
.footer.research-footer {
  --foot-pad: max(var(--study-gutter),calc((100% - var(--study-page-width)) / 2 + var(--study-gutter)));
}
@media (min-width:1750px) { :root { --study-gutter: 34px; } }
@media (max-width:780px) { :root { --study-gutter: clamp(15px,3vw,24px); } }
@media (max-width:590px) { :root { --study-gutter: 12px; } }
