@font-face {
  font-family: 'Alysa Logo';
  src: url('../fonts/AlysaLogo.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --bg: #f2f4f6;
  --line: #e2e2e2;
  --gray: #8c8c8c;
  --orange: #ff971c;
  --navy: #0e2747;
  --blue: #3a6fb3;
  --kbyg-green: #c3dfbd;
  --musemap-green: #51582f;
  --musemap-brown: #744a32;
  --musemap-dark: #413d3e;
  --musemap-cream: #f9f7f3;
  --musemap-tan: #e5dfd6;
  --prime-factor-blue: #4678b2;
  --pf-site-blue: #347ab7;
  --pf-site-orange: #d78511;
  --pf-site-teal: #19b2b6;
  --cascade-navy: #112845;
  --cascade-orange: #ff9500;
  --cascade-lavender: #d9e3fa;
  --cascade-border: #e3e9f7;
  --pf-tint: #dde9f4;
  --font-serif: 'Ibarra Real Nova', Georgia, serif;
  --font-display: 'Barlow Condensed', 'Avenir Next Condensed', 'Arial Narrow', sans-serif;
  --font-round: 'Nunito Sans', 'Avenir Next', sans-serif;
  --font-sans: 'Avenir Next', Avenir, 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --nav-font-size: 1.4rem;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  /* clip (not hidden) so body isn't a scroll container, which would break the sticky header */
  overflow-x: clip;
  background: var(--bg);
  color: var(--black);
  font-family: var(--font-sans);
  font-weight: 500;
}

body {
  display: flex;
  flex-direction: column;
  animation: page-fade-in 1.2s ease-out;
  transition: opacity 0.4s ease-in-out;
}

body.page-fade-out {
  animation: none;
  opacity: 0;
}

@keyframes page-fade-in {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

button {
  font-family: inherit;
}

/* ---------- header ---------- */

.site-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem clamp(3rem, 7vw, 7rem);
  /* stays pinned to the top while the page scrolls */
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  transition: background-color 0.3s ease;
}

.logo-head {
  display: block;
  line-height: 0;
}

.logo-head .portrait-frame--logo {
  display: block;
  width: 58px;
  max-width: none;
  background-image: url('../assets/anim/floating-head/sprite-small.png');
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.site-nav:empty {
  display: none;
}

/* ---------- editorial home page ---------- */

.editorial {
  padding: 3.2rem clamp(3rem, 7vw, 7rem) 0;
}

.editorial__mast {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(3.2rem, 10vw, 7rem);
  line-height: 0.85;
  margin: 0;
  letter-spacing: -0.01em;
}

.editorial__rule {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  border-top: 2px solid var(--black);
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  flex-wrap: wrap;
}

.editorial__rule span {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
}

.editorial__body {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.5rem;
  margin-top: 2.2rem;
  align-items: start;
}

.editorial__bio {
  font-family: var(--font-sans);
  font-size: 1.3rem;
  line-height: 1.6;
  max-width: 46ch;
  margin: 0;
}

.editorial__bio .drop {
  font-family: var(--font-serif);
  float: left;
  font-size: 4.83rem;
  line-height: 0.8;
  font-weight: 600;
  color: var(--orange);
  padding-right: 0.14em;
  margin-top: 0.026em;
}

.editorial__nav {
  margin-top: 2rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.editorial__nav a {
  font-size: 1.05rem;
}

.editorial__nav .sep {
  color: var(--gray);
}

.editorial__contact {
  margin-top: 1.5rem;
}

.editorial__contact .contact__email {
  font-weight: 500;
}

.hover-hint {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  pointer-events: none;
  color: var(--gray);
}

.hover-hint span {
  font-family: var(--font-sans);
  font-style: italic;
  font-size: 1.05rem;
}

.hover-hint__arrow {
  flex: 0 0 auto;
  margin-top: -0.6rem;
}

@media (max-width: 1150px) {
  .hover-hint {
    display: none;
  }
}

.editorial__portrait-col {
  margin-top: -3.4rem;
}

.editorial__portrait-col .portrait-frame {
  max-width: 400px;
  margin: 0 auto;
}

.portrait-frame {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 600 / 745;
  background-image: url('../assets/anim/floating-head/sprite.png');
  background-repeat: no-repeat;
  background-size: 600% 400%;
  background-position: 0% 0%;
}

.contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 1.35rem;
}

.contact--row {
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
}

.contact__email {
  position: relative;
  color: var(--black);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact__email::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--orange);
  transform: translateX(-50%);
  transition: width 0.55s ease;
}

.contact__email:hover {
  color: var(--orange);
}

.contact__email:hover::after {
  width: 100%;
}

.contact__linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--black);
  border-radius: 8px;
}

.contact__linkedin img {
  width: 22px;
  height: 22px;
  filter: invert(1) brightness(2);
}

.contact__linkedin:hover {
  opacity: 0.75;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .editorial {
    padding: 2rem 1.25rem 0;
  }
  /* bio, nav and contact join the grid directly so the head can sit on the contact row */
  .editorial__body {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 1rem;
    row-gap: 0;
    align-items: center;
  }
  .editorial__body > div:first-child {
    display: contents;
  }
  .editorial__bio,
  .editorial__nav {
    grid-column: 1 / -1;
  }
  .editorial__contact {
    align-self: start;
    margin-top: 1.5rem;
  }
  .editorial__portrait-col {
    margin-top: 1.5rem;
  }
  .editorial__portrait-col .portrait-frame {
    /* as big as fits beside the email / LinkedIn row (about 136px) */
    width: max(120px, min(52vw, calc(100vw - 176px), 300px));
    margin: 0;
  }
  .editorial__nav {
    justify-content: center;
  }
  .site-header {
    flex-wrap: wrap;
    row-gap: 0.75rem;
    padding: 1rem 1.25rem 0;
  }
  .site-nav {
    flex-wrap: wrap;
  }
}

/* ==================================================================
   Subpages (About / Projects / Gallery / project docs)
   ================================================================== */

.page-nav a {
  position: relative;
  appearance: none;
  cursor: pointer;
  text-decoration: none;
  border: none;
  background: none;
  color: var(--black);
  font-family: var(--font-sans);
  font-size: var(--nav-font-size);
  font-weight: 500;
  line-height: 1.2;
  padding: 0.4rem 0;
  transition: color 0.2s ease;
}

.page-nav a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--orange);
  transform: translateX(-50%);
  transition: width 0.55s ease;
}

.page-nav a:hover {
  color: var(--orange);
}

.page-nav a:hover::after {
  width: 100%;
}

.page-nav a.is-current {
  color: var(--orange);
}

.site-header.is-on-dark .page-nav a:not(.is-current) {
  color: var(--white);
}

.site-header.is-on-dark .page-nav a:not(.is-current):hover {
  color: var(--orange);
}

.page-nav a.is-current::after {
  width: 100%;
}

/* ---------- mobile hamburger menu (button injected by js/main.js) ---------- */

.nav-toggle {
  display: none;
}

@media (max-width: 700px) {
  .site-header.has-menu {
    flex-wrap: nowrap;
    padding: 0.75rem 1.25rem 0.5rem;
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    padding: 0;
    border: none;
    background: none;
    color: var(--black);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .site-header.is-on-dark .nav-toggle {
    color: var(--white);
  }

  .nav-toggle__bar {
    display: block;
    width: 26px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.3s ease, opacity 0.2s ease, background-color 0.2s ease;
  }

  .site-header.menu-open .nav-toggle {
    color: var(--orange);
  }

  .site-header.menu-open .nav-toggle__bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .site-header.menu-open .nav-toggle__bar:nth-child(2) {
    opacity: 0;
  }

  .site-header.menu-open .nav-toggle__bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* the links open in a row on the header itself, to the right of the head and left of the button */
  .site-header.has-menu .site-nav {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 3.9rem;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: clamp(0.6rem, 3.5vw, 1.1rem);
    opacity: 0;
    visibility: hidden;
    transform: translateX(12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
  }

  .site-header.has-menu.menu-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s;
  }

  .site-header.has-menu .site-nav a {
    font-size: clamp(0.85rem, 4.6vw, 1.2rem);
  }
}

.page-main {
  flex: 1 0 auto;
  padding: 1.75rem clamp(3rem, 7vw, 7rem) 5rem;
}

.page-main--narrow {
  max-width: 62rem;
  margin: 0 auto;
}

.page-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  margin: 0 0 0.6rem;
}

.page-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 3rem;
  line-height: 1.1;
  margin: 0 0 3.5rem;
  padding-left: 1rem;
  border-left: 3px solid var(--black);
}

.doc-header__main .page-title {
  font-size: 2.25rem;
  line-height: 1.2;
  margin: 0 0 1.25rem;
  padding-left: 0;
  border-left: none;
}

.prose {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  line-height: 1.7;
}

.project-page .prose {
  font-size: 1.05rem;
  font-weight: 400;
}

.project-page .prose h2 {
  font-family: var(--font-round);
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 1.15;
}

.project-page .prose h3 {
  font-family: var(--font-round);
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.25;
}

.prose p {
  margin: 0 0 1.4rem;
}

.prose h2 {
  font-family: var(--font-sans);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 2.6rem 0 1rem;
}

.prose .page-eyebrow {
  margin: 6.5rem 0 0.5rem;
}

.prose .page-eyebrow:first-child {
  margin-top: 0;
}

.prose .page-eyebrow--lead:first-child {
  margin-top: 6.5rem;
}

.prose .page-eyebrow + h2 {
  margin-top: 0;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  margin: 6.5rem 0 1.5rem;
}

.split-section--continued {
  margin-top: 0.5rem;
}

.split-section--balanced {
  grid-template-columns: 1fr 1.15fr;
}

.split-section--media-wide {
  grid-template-columns: 0.8fr 1.3fr;
}

.split-section--phone {
  grid-template-columns: minmax(0, 25rem) auto;
  justify-content: center;
  gap: 3rem;
}

.split-section--phone .split-section__media img {
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 11rem);
}

.split-section--center {
  align-items: center;
}

.split-section--even-lines h2,
.split-section--even-lines p {
  text-wrap: balance;
}

.split-section .page-eyebrow,
.split-section h2,
.split-section h3 {
  margin-top: 0;
}

.split-section__media img {
  width: 100%;
  border-radius: 14px;
  display: block;
  border: 1px solid var(--line);
}

.split-section__media img.img-borderless {
  border: none;
}

.flow-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.flow-legend img {
  height: 5rem;
  width: auto;
  display: block;
}

@media (max-width: 700px) {
  .flow-legend img {
    height: 3.5rem;
  }
}

.flow-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 0 0 2.5rem;
}

.flow-grid img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  display: block;
}

@media (max-width: 700px) {
  .flow-grid {
    grid-template-columns: 1fr;
  }
}

.prose .split-section__media figure {
  margin: 0;
}

.split-section__media > * + * {
  margin-top: 1rem;
}

.split-section__media-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  align-items: start;
}

@media (max-width: 900px) {
  .split-section {
    grid-template-columns: 1fr;
  }
}

.prose a {
  color: var(--blue);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.prose a:hover {
  opacity: 0.7;
}

.prose strong {
  font-weight: 600;
}

.prose figure {
  margin: 2rem 0;
}

.prose figure img {
  width: 100%;
  border-radius: 14px;
  display: block;
}

.prose figcaption {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--gray);
  margin-top: 0.6rem;
  line-height: 1.4;
}

.prose h3 {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 500;
  margin: 3rem 0 1rem;
}

.prose .takeaway-list {
  margin: 1.5rem 0;
}

.prose .takeaway-list h3 {
  margin: 0.9rem 0 0.3rem;
}

.prose .takeaway-list h3:first-child {
  margin-top: 0;
}

.prose .takeaway-list p {
  margin: 0 0 0.3rem;
}

.prose .takeaway-list p:last-child {
  margin-bottom: 0;
}

.prose ul {
  margin: 0 0 1.4rem;
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 1.5rem 0 2.5rem;
}

.stat-bubble {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1 1 12rem;
  background: var(--musemap-tan);
  border-radius: 1.5rem;
  padding: 1.5rem;
  text-align: center;
}

.stat-bubble__number {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--musemap-green);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-bubble p.stat-bubble__label {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--musemap-dark);
  margin: 0;
  line-height: 1.4;
}

.device-trio {
  display: grid;
  grid-template-columns: 1.35fr 0.6fr 1fr;
  gap: 1.5rem;
  align-items: start;
  margin: 2rem 0 1rem;
}

.prose .device-trio figure {
  margin: 0;
}

.device-trio img {
  width: 100%;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.device-trio .device-trio__mobile img {
  border: none;
  border-radius: 0;
}

@media (max-width: 700px) {
  .device-trio {
    grid-template-columns: 1fr 0.5fr 1fr;
    gap: 0.75rem;
  }
}

/* full-bleed tinted band: the shadow extends sideways to the viewport edges, clip-path trims it vertically */
.tinted-section {
  position: relative;
  margin: 6.5rem 0 0;
  padding: 3.5rem 0 3rem;
  background: var(--pf-tint);
  box-shadow: 0 0 0 100vmax var(--pf-tint);
  clip-path: inset(0 -100vmax);
}

.prose .tinted-section > .page-eyebrow:first-child {
  margin-top: 0;
}

.prose .tinted-section .compare-label,
.prose .tinted-section figcaption {
  color: #1f2d3d;
}

.compare-block {
  margin: 2.5rem 0 0;
}

.prose .tinted-section .compare-block + p {
  margin-top: 2.5rem;
  text-align: center;
}

.prose .compare-block__header {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1.2;
  text-align: center;
  margin: 0 0 1.5rem;
}

.button-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.button-compare__page {
  display: grid;
  gap: 0.75rem;
}

.prose .compare-label {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  margin: 0;
}

.spacing-stack {
  display: grid;
  gap: 0.75rem;
  width: 66.667%;
  margin: 0 auto;
}

.prose .button-compare figure,
.prose .spacing-stack figure {
  margin: 0;
}


.button-compare img,
.spacing-stack img {
  width: 100%;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--line);
}

@media (max-width: 700px) {
  .button-compare {
    grid-template-columns: 1fr;
  }

  .spacing-stack {
    width: 100%;
  }
}

.stat-bubble__note {
  display: block;
}

.stat-bubble--pf-blue {
  background: #d3f1ef;
}

.stat-bubble--pf-blue .stat-bubble__number {
  color: var(--pf-site-teal);
}

.stat-bubble--pf-orange {
  background: #fbefdc;
}

.stat-bubble--pf-orange .stat-bubble__number {
  color: var(--pf-site-orange);
}

.stat-bubble--pf-blue p.stat-bubble__label,
.stat-bubble--pf-orange p.stat-bubble__label {
  color: #1f3a5f;
}

.pain-point-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 1.5rem 0 2.5rem;
}

.pain-point-card {
  background: var(--musemap-cream);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1.25rem;
}

.pain-point-card .pain-point-card__title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--musemap-brown);
  margin: 0 0 0.6rem;
  white-space: nowrap;
}

.pain-point-card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.pain-point-card li {
  font-size: 0.88rem;
  margin-bottom: 0.3rem;
  color: var(--musemap-dark);
}

.pain-point-card p {
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
  color: var(--musemap-dark);
}

@media (max-width: 700px) {
  .pain-point-grid {
    grid-template-columns: 1fr;
  }
}

.persona-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0 2.5rem;
}

.persona-card {
  background: var(--musemap-cream);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem;
}

.persona-card__id {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.persona-card__name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0;
  color: var(--musemap-dark);
}

.persona-card__meta {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  line-height: 1.45;
  margin: 0;
  color: var(--gray);
  text-align: right;
}

.persona-card__label {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--musemap-brown);
  margin: 1rem 0 0.4rem;
}

.persona-card__label:first-of-type {
  margin-top: 0;
}

.persona-card ul {
  margin: 0 0 0.5rem;
  padding-left: 1.1rem;
}

.persona-card li {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--musemap-dark);
  margin-bottom: 0.3rem;
}

.persona-card li:last-child {
  margin-bottom: 0;
}

@media (max-width: 700px) {
  .persona-grid {
    grid-template-columns: 1fr;
  }
}

.interview-block {
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  gap: 2rem;
  align-items: start;
  margin: 1.5rem 0 2.5rem;
}

.interview-block__label {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  margin: 0 0 0.35rem;
}

.interview-block__name {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--musemap-dark);
  margin: 0;
}

.interview-block__quotes {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (max-width: 700px) {
  .interview-block {
    grid-template-columns: 1fr;
  }
}

.interview-quote {
  margin: 0;
  padding-left: 1.25rem;
  border-left: 3px solid var(--musemap-green);
}

.interview-quote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.5;
  margin: 0;
  color: var(--musemap-dark);
}

.hmw-banner {
  background: var(--musemap-green);
  color: var(--musemap-cream);
  width: 100vw;
  margin-top: 6.5rem;
  margin-bottom: 6.5rem;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 5.5rem clamp(1.5rem, 6vw, 4.5rem);
  text-align: center;
}

.hmw-banner__inner {
  max-width: 50rem;
  margin: 0 auto;
  text-align: center;
}

.hmw-banner__label {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--musemap-tan);
  margin: 0 0 1.25rem;
  text-align: center;
}

.hmw-banner__statement {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 2.75rem;
  line-height: 1.3;
  margin: 0;
  text-align: center;
}

@media (max-width: 700px) {
  .hmw-banner {
    padding: 3.5rem 1.5rem;
  }
  .hmw-banner__statement {
    font-size: 1.9rem;
  }
}

.prose figure.figure--pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.prose figure.figure--pair figcaption {
  grid-column: 1 / -1;
}

.compare-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin: 2rem 0;
}

.prose .compare-pair figure {
  margin: 0;
}

.prose .compare-pair figcaption {
  text-align: center;
  font-size: 0.95rem;
  margin: 0 0 0.7rem;
}

/* ---------- about page ---------- */

/* about page is exactly one screen tall on desktop and laptop, with the type scaling down to fit short windows */
@media (min-width: 901px) and (min-height: 480px) {
  body.page--fit {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }
  body.page--fit .page-main {
    min-height: 0;
    padding-bottom: 4rem;
  }

  /* 1.2rem is the normal size; it only shrinks when the window is short or narrow */
  body.page--fit .about-body {
    font-size: max(12px, min(1.2rem, 2.7vh, 1.6vw));
  }
  body.page--fit .about-body .page-title {
    font-size: 2.5em;
    margin-bottom: 1.17em;
  }
  body.page--fit .about-body .prose {
    font-size: 1em;
  }
  body.page--fit .about-body .prose p {
    margin-bottom: 1.17em;
  }
  body.page--fit .about-body .prose p:has(+ h2) {
    margin-bottom: 0.83em;
  }
  body.page--fit .about-body .prose h2 {
    font-size: 1.46em;
  }
}

.about-body {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  column-gap: 0;
  row-gap: 2.5rem;
  align-items: start;
}

/* equal space above and below the section headings */
.about-body .prose h2 {
  margin-top: 0;
}

.about-body .prose p:has(+ h2) {
  margin-bottom: 1rem;
}

.about-photos {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.5rem;
  position: relative;
  top: calc(50vh - 56px);
  transform: translateY(-50%);
}

.about-photo {
  width: min(85%, 60vh);
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}

.about-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  /* keep her face and the pumpkin in the square crop */
  object-position: 50% 100%;
  display: block;
}

.about-photo figcaption {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--gray);
  padding: 0.75rem 0.9rem;
}

/* ---------- projects listing page ---------- */

.project-archive-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.8rem;
  color: var(--gray);
  margin: 4rem 0 1.75rem;
  padding-left: 1rem;
  border-left: 3px solid var(--line);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 1.75rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}

.project-card:not(:has(.project-card__thumb)) {
  border: 1px solid var(--line);
  padding: 1.25rem;
}

.project-card__thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin-bottom: 0.7rem;
  display: block;
  transition: transform 0.35s ease;
}

.project-card:hover .project-card__thumb {
  transform: perspective(1200px) rotate3d(1, -1, 0, 7deg);
}

/* left-column cards tilt the opposite way */
.project-card:nth-child(odd):hover .project-card__thumb {
  transform: perspective(1200px) rotate3d(1, 1, 0, 7deg);
}

.project-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: opacity 0.2s ease;
}

.project-card:hover .project-card__thumb img {
  opacity: 0.9;
}

.project-card__thumb--tinted img {
  opacity: 0.9;
}

.project-card__thumb--framed {
  background: var(--musemap-green);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card__thumb--placeholder {
  background: var(--line);
}

.project-card__thumb--pf {
  background: var(--prime-factor-blue);
}

.project-card__thumb--cascade {
  background: var(--cascade-navy);
}

.project-card__thumb--framed img {
  width: 50%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  object-fit: cover;
}

.project-card__title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  margin: 0;
  transition: color 0.2s ease;
}

.project-card:hover .project-card__title {
  color: var(--orange);
}

.project-card__tags {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--gray);
  margin: 0;
}

.project-card__blurb {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0.2rem 0 0.3rem;
  flex: 1 0 auto;
  transition: color 0.2s ease;
}

.project-card:hover .project-card__blurb {
  color: var(--gray);
}

/* ---------- project docs page ---------- */

.doc-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.75rem 3rem;
  margin-top: 2rem;
  margin-bottom: 2.5rem;
}

.doc-header__main {
  max-width: 30rem;
}

.doc-subtitle {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--gray);
  margin: 0;
}

.doc-header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem clamp(1.75rem, 3.5vw, 3rem);
  flex-shrink: 0;
  padding-top: 0.35rem;
}

.doc-meta-col {
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 3.5vw, 3rem);
  width: 11rem;
}

.doc-meta-block {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.doc-meta-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
}

.doc-meta-value {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--black);
}

.doc-meta-list {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.doc-hero {
  --header-tint: var(--kbyg-green);
  display: flex;
  justify-content: center;
  margin: 0.5rem 0 3rem;
  padding: clamp(1.5rem, 4vw, 3rem) 0;
  /* full-bleed band without causing horizontal scroll */
  border-image: linear-gradient(var(--kbyg-green), var(--kbyg-green)) fill 0 / / 0 100vmax;
}

.hero-video {
  position: relative;
  cursor: pointer;
  width: 100%;
  max-width: 40rem;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

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

.hero-video__play {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: clamp(2.75rem, 8%, 4.5rem);
  aspect-ratio: 1;
  border: none;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-video__play svg {
  width: 45%;
  height: 45%;
  fill: currentColor;
  margin-left: 6%;
}

.hero-video__play:hover,
.hero-video__play:focus-visible {
  transform: scale(1.08);
  background: var(--orange);
}

.hero-video.is-playing {
  cursor: auto;
}

.hero-video.is-playing .hero-video__play {
  opacity: 0;
  pointer-events: none;
}

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

.gallery-intro {
  max-width: none;
  margin-bottom: 3rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.art-piece--wide {
  grid-column: 1 / -1;
}

.art-piece img {
  width: 100%;
  border-radius: 4px;
  display: block;
  border: 1px solid var(--line);
}

.art-piece__title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  margin: 0.9rem 0 0.15rem;
}

.art-piece__meta {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--gray);
  margin: 0 0 0.5rem;
}

.art-piece__desc {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.5;
  color: #333;
  margin: 0;
}

@media (max-width: 900px) {
  .about-body {
    grid-template-columns: 1fr;
  }
  .about-photos {
    position: static;
    transform: none;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .about-photo {
    flex: 1 1 200px;
    width: auto;
  }
  .prose figure.figure--pair {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .compare-pair {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .page-main {
    padding: 2rem 1.25rem 3.5rem;
  }
  .page-title {
    font-size: 2.1rem;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .art-piece--wide {
    grid-column: auto;
  }
  .project-grid {
    grid-template-columns: 1fr;
  }
  .project-card:nth-child(odd):hover .project-card__thumb {
    transform: perspective(1200px) rotate3d(1, -1, 0, 7deg);
  }
  .doc-header {
    flex-direction: column;
  }
  /* role/timeline and tools stay side by side, as on desktop; the columns shrink to fit */
  .doc-header__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 11rem));
    padding-top: 0;
    gap: 1.5rem 1.5rem;
  }
  .doc-meta-col {
    width: auto;
  }
}

/* ---------- cascade: competitive analysis ---------- */

.cascade-band {
  background: var(--cascade-lavender);
  box-shadow: 0 0 0 100vmax var(--cascade-lavender);
}

.prose .cascade-band > .page-eyebrow {
  color: #5b6b85;
}

.competitor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 1.25rem;
  row-gap: 1.25rem;
  margin: 2.5rem 0 2.5rem;
}

/* title and body share rows across cards so the body text lines up */
.prose .competitor-card {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 2;
  row-gap: 0;
  background: #fafbff;
  border: 2px solid var(--cascade-orange);
  border-radius: 0;
  padding: 1.6rem 1.5rem 1.75rem;
  box-shadow: 5px 5px 0 var(--cascade-orange);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.prose .competitor-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--cascade-orange);
}

.prose .competitor-card__tag {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cascade-orange);
}

.prose .competitor-card h3 {
  margin: 0 0 0.85rem;
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.15;
  color: var(--cascade-navy);
}

.prose .competitor-card p:not(.competitor-card__tag) {
  margin: 0;
  font-family: var(--font-round);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--cascade-navy);
}

@media (max-width: 900px) {
  .competitor-grid {
    grid-template-columns: 1fr;
  }
  .prose .competitor-card {
    grid-row: auto;
    grid-template-rows: none;
  }
}
