/* Final responsive pass */
/* Keep the original pink emphasis in the headline. */
#cookie-dismiss:checked + .cookie-note { display: none !important; }
.cookie-note .cookie-action, .cookie-note .cookie-close {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 7px; padding: 9px 14px;
  background: #f2a2a8; color: #2d2238; font-weight: 750;
  white-space: nowrap; cursor: pointer; touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
}
.cookie-note .cookie-reject { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); }
.cookie-note .cookie-close { padding: 0 5px; background: transparent; color: #fff; font-size: 22px; font-weight: 400; }
html, body {
  max-width: 100%;
  overflow-x: hidden !important;
}
img, svg, video, iframe {
  max-width: 100%;
}
@media (max-width: 900px) {
  *, *::before, *::after { max-width: 100%; }
  .wrap, header, main, section, footer { width: 100%; max-width: 100%; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  header { overflow: hidden; }
  nav { min-width: 0; max-width: 64%; overflow: hidden; flex-wrap: wrap; justify-content: flex-end; }
  nav a { white-space: nowrap; }
  .hero, .section, .contact, .grid, .project-list, .about { max-width: 100%; overflow-x: hidden; }
  .hero h1, .hero .lead, .section h2, .section-intro, .project h3, .project p, .contact h2, footer p { max-width: 100%; overflow-wrap: anywhere; word-break: normal; }
  .hero-photo, .hero-photo img { max-width: 100vw !important; }
}

.cookie-note {
  z-index: 2147483647 !important;
  pointer-events: auto !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%);
  width: min(760px, calc(100% - 32px));
  justify-content: center;
  text-align: center;
}
.cookie-note p { flex: 1; }
.cookie-note button { flex: 0 0 auto; }
.cookie-note button { position: relative; z-index: 1; pointer-events: auto !important; cursor: pointer; }
.cookie-note #cookie-reject { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); }
@media (max-width: 600px) {
  .cookie-note { display: flex !important; flex-wrap: wrap; gap: 10px; padding: 16px; }
  .cookie-note p { flex: 0 0 100%; padding-right: 20px; }
  .cookie-note button { flex: 1 1 auto; }
}

@media (max-width: 1024px) {
  html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
  .wrap { width: min(100% - 40px, 900px); }
  header { padding: 0 4px; }
  nav { gap: 18px; }
}
@media (max-width: 900px) {
  main#top { display: block !important; position: static !important; }
  .wrap { width: min(100% - 32px, 680px); }
  header { height: 72px; }
  .hero { display: flex !important; flex-direction: column !important; align-items: stretch !important; position: static !important; width: 100% !important; margin: 0 !important; grid-template-columns: none !important; min-height: 0 !important; height: auto !important; padding: 36px 0 0 !important; gap: 0 !important; background: #eee4f0; overflow: visible !important; }
  .hero::before, .hero:before { content: none !important; display: none !important; height: 0 !important; min-height: 0 !important; }
  .hero > div { display: block !important; position: static !important; transform: none !important; width: 100% !important; max-width: none; margin: 0 !important; padding: 0 !important; order: 1; }
  .hero h1 { font-size: clamp(3rem, 10vw, 5rem); max-width: 760px; }
  .hero .lead { max-width: 600px; }
  .hero > .aside { max-width: 600px; margin: 38px 0 0; padding-left: 20px; order: 2; }
  .hero-photo { display: block !important; order: 3; width: calc(100% + 32px); height: min(54vw, 420px); min-height: 280px; margin: 38px -16px 0; overflow: hidden; }
  .hero-photo { background: transparent !important; visibility: visible !important; opacity: 1 !important; }
  .hero-photo img { display: block !important; visibility: visible !important; opacity: 1 !important; width: 100%; height: 100%; object-fit: cover; object-position: 56% 22%; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  header { height: 64px; }
  .brand { font-size: 15px; }
  nav { gap: 10px; }
  nav a { font-size: 12px; }
  .hero { padding-top: 24px !important; }
  .hero h1 { font-size: clamp(2.45rem, 13vw, 4.2rem); line-height: .98; }
  .hero .kicker { margin-bottom: 20px; font-size: 11px; }
  .hero .lead { margin: 24px 0 28px; font-size: 17px; }
  .actions { flex-wrap: wrap; }
  .hero > .aside { margin-top: 30px; font-size: 15px; }
  .hero-photo { width: calc(100% + 32px); height: 78vw; min-height: 250px; max-height: 360px; margin-top: 38px; }
  .section { padding-top: 58px; padding-bottom: 58px; }
  .section h2 { font-size: clamp(2.25rem, 11vw, 3.4rem); }
  .tile { min-height: 170px; }
  .contact { padding: 30px 24px; }
  .contact h2 { font-size: clamp(2.2rem, 11vw, 3.4rem); }
}
