:root { --site-content-width: min(90.4%, calc(1360px - 9.6%)); }

.service-list article {
  display: block;
  padding: 0;
}

.lede,
.page-head > p {
  font-size: 16px;
}

body .topbar nav a {
  font-size: 12px;
}

@media (max-width: 900px) {
  body .topbar nav a {
    font-size: 14px;
  }
}

.service-columns {
  display: grid;
  width: 100%;
  max-width: 860px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(44px, 6vw, 88px);
}

.service-column.service-list {
  width: 100%;
  min-width: 0;
  max-width: none;
  border-top: 0;
}

.service-list .service-column-title {
  margin: 0;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--cyan);
  color: var(--cyan);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

picture { display: contents; }
picture > img {
  max-width: 100%;
  height: auto;
}

.service-list h2 {
  margin: 0;
}

.service-list h2 button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 25px 0;
  border: 0;
  background: transparent;
  color: var(--paper);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.service-list h2 button:hover,
.service-list h2 button:focus-visible {
  color: var(--cyan);
}

.service-list h2 button:focus-visible {
  outline: 1px solid var(--cyan);
  outline-offset: 5px;
}

.service-list h2 button > span:last-child {
  color: var(--cyan);
  font-size: 25px;
  font-weight: normal;
}

.service-list h2 button > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.service-list h2 button > span:last-child {
  flex: 0 0 auto;
}

.service-panel {
  padding: 0 8% 28px 0;
}

.service-panel[hidden] {
  display: none;
}

.service-project-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--cyan);
  font-size: 12px;
  line-height: 1.5;
}

.service-project-link:hover,
.service-project-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}


@media (max-width: 800px) {
  .service-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
}

.project-page-head {
  display: block;
  padding-top: 68px;
  padding-bottom: 34px;
}

.testimonial-page > .page-head {
  padding-top: 68px;
}

.contextual-gallery .project-card { order: 3; }
.contextual-gallery .project-card.featured { order: 1; }

.project-gallery-sentinel {
  order: 4;
  display: grid;
  grid-column: 1 / -1;
  height: 42px;
  place-items: center;
}

.project-gallery-sentinel[hidden] { display: none; }

.project-gallery-sentinel::before {
  width: 44px;
  height: 1px;
  background: var(--cyan);
  content: "";
  animation: project-load-pulse 1.1s ease-in-out infinite alternate;
}

.project-card.project-card-reveal {
  animation: project-card-reveal .48s cubic-bezier(.2, .75, .2, 1) both;
}

@keyframes project-card-reveal {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@keyframes project-load-pulse {
  from { opacity: .25; transform: scaleX(.35); }
  to { opacity: 1; transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .project-card.project-card-reveal,
  .project-gallery-sentinel::before { animation: none; }
}

.project-context {
  order: 2;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(24px, 3vw, 42px);
  border: 1px solid var(--line);
  background: var(--panel);
}

.project-context > p:last-child {
  max-width: 34ch;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.hero figure.hero-slider::after { content: none; }
.hero-slide::after {
  content: "";
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  height: clamp(72px, 16%, 128px);
  background: linear-gradient(to top, rgba(0, 0, 0, .65) 0%, rgba(0, 0, 0, .34) 38%, transparent 100%);
  pointer-events: none;
}

.project-detail .video-frame {
  aspect-ratio: var(--video-aspect, 16 / 9);
  background: transparent;
}

@media(max-width:720px) {
  .hero-slide::after { height: 56px; }
}

.builder-page-content { width: var(--site-content-width); margin: 0 auto; padding: 4px 0 80px; }
.builder-page-head { display: block; }
.builder-block { max-width: 880px; margin: 0 0 clamp(50px, 7vw, 92px); }
.builder-text { max-width: 880px; color: #d3dce0; font-size: 16px; line-height: 1.75; }
.builder-text.is-narrow { max-width: 680px; }
.builder-text h2,.builder-project-selection h2,.builder-cta h2 { margin: 0 0 22px; font-size: clamp(28px, 3.4vw, 48px); line-height: 1; }
.builder-image,.builder-video { width: 100%; margin-right: 0; margin-left: 0; }
.builder-image.is-normal,.builder-video.is-normal { max-width: 880px; }
.builder-image img { display: block; width: 100%; height: auto; max-height: 78vh; object-fit: cover; }
.builder-image figcaption,.builder-video figcaption,.builder-gallery figcaption { margin-top: 10px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.builder-gallery.project-image-grid,.builder-gallery.project-image-slider { margin-bottom: clamp(50px, 7vw, 92px); }
.builder-accordion { max-width: 880px; }
.builder-project-selection .project-grid { margin-top: 28px; }
.builder-cta { max-width: 880px; padding: 38px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.builder-cta.is-accent { padding: 38px; border: 1px solid var(--cyan); background: var(--panel); }
.builder-cta p { max-width: 680px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.builder-cta .text-link { margin-top: 24px; }
@media(max-width:720px){.builder-page-content{width:90%;padding-bottom:55px}.builder-block{margin-bottom:52px}.builder-cta.is-accent{padding:26px 22px}.builder-project-selection .project-grid{grid-template-columns:1fr}}

.project-credits {
  order: 2;
  margin: 0;
  padding: 0;
}

.project-detail .detail-heading .project-service-summary {
  margin: 10px 0 0;
  font-size: 12px;
}

.project-service-summary a:hover,
.project-service-summary a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.not-found-page {
  width: 100%;
  max-width: 1360px;
  min-height: calc(100vh - 230px);
  margin: 0 auto;
  padding: 68px 4.8% 100px;
}

.not-found-layout {
  display: grid;
  grid-template-columns: minmax(250px, .65fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(45px, 8vw, 130px);
  margin-top: clamp(70px, 10vh, 130px);
}

.not-found-code {
  margin: 0;
  color: var(--panel);
  font-size: clamp(120px, 20vw, 260px);
  font-weight: 700;
  letter-spacing: -.09em;
  line-height: .72;
}

.not-found-layout h1 {
  max-width: 700px;
  margin: 0 0 28px;
  font-size: clamp(54px, 6.3vw, 96px);
  letter-spacing: -.075em;
  line-height: .86;
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
}

@media (max-width: 800px) {
  .not-found-layout {
    grid-template-columns: 1fr;
    gap: 35px;
    margin-top: 60px;
  }

  .not-found-code { font-size: clamp(100px, 38vw, 180px); }
}

.detail-copy.with-credits { grid-template-columns: minmax(0, 1fr) minmax(220px, 340px); }
.detail-copy.with-credits > p { order: 1; }
.detail-copy.without-credits { grid-template-columns: minmax(0, 760px); }
.detail-copy.without-credits > p { order: 1; }

@media (max-width: 720px) {
  .project-detail .detail-copy.with-credits { grid-template-columns: 1fr; }
  .project-detail .detail-copy.with-credits .project-credits { order: 1; }
  .project-detail .detail-copy.with-credits > p { order: 2; }
}

.credit-lines p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.credit-lines span { color: var(--paper); }

.credit-lines button {
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(9, 175, 232, .55);
  background: transparent;
  color: var(--cyan);
  font: inherit;
  cursor: pointer;
}

.credit-lines button:hover,
.credit-lines button:focus-visible {
  border-bottom-color: var(--paper);
  color: var(--paper);
}

.home-project-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px 12px;
  width: min(90.4%, 1229px);
  margin: 34px auto 0;
}

.section.feature {
  display: block;
  padding-right: 0;
  padding-left: 0;
}

.section.feature > div:first-child {
  width: min(90.4%, 1229px);
  max-width: none;
  margin-right: auto;
  margin-left: auto;
}

.home-project-card { min-width: 0; }

.home-project-image {
  display: block;
  aspect-ratio: 1.52;
  overflow: hidden;
  border: 1px solid transparent;
  background: #172128;
  transition: border-color .25s ease, transform .25s ease;
}

.home-project-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-project-card strong,
.home-project-card small { display: block; }

.home-project-card strong {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.2;
}

.home-project-card small {
  margin-top: 6px;
  color: var(--cyan);
  font-size: 10px;
  line-height: 1.35;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-project-card:hover .home-project-image,
.home-project-card:focus-visible .home-project-image {
  border-color: var(--cyan);
  transform: translateY(-3px);
}

.home-project-card:focus-visible { outline: none; }

.testimonial-carousel-heading {
  display: flex;
  align-items: end;
  gap: 24px;
}

.testimonial-carousel-viewport {
  width: min(90.4%, 1229px);
  margin: 0 auto;
  overflow: hidden;
}

.testimonial-carousel-track {
  display: flex;
  gap: 12px;
  align-items: stretch;
  transition: transform .65s cubic-bezier(.2, .75, .2, 1);
  will-change: transform;
}

.testimonial-carousel-track.is-resetting { transition: none; }

.testimonial-carousel-track .testimonial-card {
  flex: 0 0 calc((100% - 24px) / 3);
  min-width: 0;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media(prefers-reduced-motion:reduce) {
  .testimonial-carousel-track { transition: none; }
}

@media(max-width:900px) and (min-width:721px) {
  .home-project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.project-contribution {
  padding: 42px 0;
  border-bottom: 1px solid var(--line);
}

.project-contribution > p:last-child {
  max-width: 760px;
  margin: 0;
  color: #d3dce0;
  font-size: 15px;
  line-height: 1.7;
}

.project-sequence {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 112px;
}

.project-sequence a {
  color: var(--cyan);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: color .2s ease;
}

.project-sequence a:hover,
.project-sequence a:focus-visible { color: var(--paper); }
.project-sequence a.next { text-align: right; }

.project-related {
  margin-top: 86px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.project-related .project-grid { margin-top: 28px; }

@media(max-width:720px) {
  .testimonial-carousel-heading { align-items: flex-start; }
  .testimonial-carousel-viewport { width: 90%; touch-action: pan-y; }
  .testimonial-carousel-track .testimonial-card { flex-basis: 100%; }
  .hero-slider { touch-action: pan-y; }
  .home-project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 8px;
    width: 90%;
    margin-right: auto;
    margin-left: auto;
  }
  .section.feature > div:first-child { width: 90%; }
  .project-context { grid-column: span 2; min-height: 190px; }
  .project-sequence { margin-top: 82px; }
  .project-related { margin-top: 60px; }
}

.parking-notice {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 860px;
  margin-top: 38px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.parking-sign { display: grid; flex: 0 0 48px; width: 48px; height: 48px; place-items: center; background: #0879d1; color: #fff; font-size: 32px; font-weight: 700; line-height: 1; }
.parking-notice p { margin: 0; color: var(--paper); font-size: 12px; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; }
.parking-notice + .map { margin-top: 28px; }
body footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: flex-start;
  gap: 18px 36px;
}

.footer-section {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 16px;
}

.footer-section:empty { display: none; }

.footer-contact { justify-content: center; }
.footer-documents { justify-content: flex-end; }

body footer a { white-space: nowrap; }

body footer .footer-document-link { color: var(--muted); }

.topbar nav a:not(.active):hover,
.topbar nav a:not(.active):focus-visible,
body footer a:hover,
body footer a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .28em;
}

.testimonial-page .testimonial-feature blockquote {
  font-size: clamp(19px, 1.9vw, 23px);
}

main.testimonial-page { max-width: none; }
.testimonial-page .testimonial-feature {
  max-width: 1360px;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 901px) {
  .filters {
    --divider-grid-width: min(1229px, 90.4%);
    position: relative;
    border-top: 0;
    border-bottom: 0;
  }

  .filters::before,
  .filters::after,
  .testimonial-list::before,
  .testimonial-feature::after {
    position: absolute;
    height: 1px;
    content: "";
    pointer-events: none;
  }

  .filters::before {
    top: 0;
    right: 0;
    left: 0;
    background: linear-gradient(to right, transparent 0, var(--line) calc((100% - var(--divider-grid-width)) / 2), var(--line) calc((100% + var(--divider-grid-width)) / 2), transparent 100%);
  }

  .filters::after {
    bottom: 0;
    left: 50%;
    width: min(1480px, calc(100vw - 24px));
    transform: translateX(-50%);
    background: linear-gradient(to right, transparent 0, var(--line) calc((100% - var(--divider-grid-width)) / 2), var(--line) calc((100% + var(--divider-grid-width)) / 2), transparent 100%);
  }

  .testimonial-page .testimonial-list {
    position: relative;
    border-top: 0;
  }

  .testimonial-list::before,
  .testimonial-feature::after {
    right: 0;
    left: 0;
    background: linear-gradient(to right, transparent 0, var(--line) 4.8%, var(--line) 95.2%, transparent 100%);
  }

  .testimonial-list::before {
    top: 0;
    right: auto;
    left: 50%;
    width: min(1360px, 100%);
    transform: translateX(-50%);
  }

  .testimonial-page .testimonial-feature {
    position: relative;
    border-bottom: 0;
  }

  .testimonial-feature::after { bottom: 0; }
}

@media (max-width: 900px) {
  body footer {
    display: flex;
    flex-direction: column;
    gap: 24px;
    line-height: 1.5;
  }

  .footer-section {
    flex-direction: column;
    justify-content: flex-start;
    gap: 6px;
  }
}

@media (max-width: 720px) {
  .filters.has-balanced-rows { display: block; }
  .filter-row {
    display: flex;
    justify-content: flex-start;
    gap: 13px;
  }
  .filter-row + .filter-row { margin-top: 10px; }
}

@media (max-width: 340px) {
  .filters button {
    font-size: 10px;
    letter-spacing: .08em;
  }
}

.project-image-slider { position: relative; width: 100%; background: #05080a; }
.project-image-slider-track { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; }
.project-image-slide { position: absolute; inset: 0; margin: 0; opacity: 0; pointer-events: none; transition: opacity .65s ease; }
.project-image-slide.active { z-index: 1; opacity: 1; pointer-events: auto; }
.project-image-slide picture,
.project-image-slide img { display: block; width: 100%; height: 100%; }
.project-image-slide img { object-fit: cover; }
.project-image-slide figcaption,
.project-image-grid figcaption,
.project-article-content figcaption { padding-top: 10px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.project-image-slide figcaption { position: absolute; right: 82px; bottom: 16px; left: 18px; z-index: 2; padding: 0; color: var(--paper); text-shadow: 0 1px 10px #000; }
.project-image-slider-controls { position: absolute; right: 18px; bottom: 18px; z-index: 3; display: flex; gap: 7px; }
.project-image-slider-controls button { width: 9px; height: 9px; padding: 0; border: 1px solid #fff; border-radius: 50%; background: transparent; }
.project-image-slider-controls button.active { background: #fff; }
.project-image-slider-controls button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.project-image-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.project-image-grid figure { grid-column: span 6; margin: 0; min-width: 0; }
.project-image-grid .project-grid-image-0 { grid-column: 1 / -1; }
.project-image-grid picture,
.project-image-grid img { display: block; width: 100%; }
.project-image-grid img { height: 34vw; max-height: 460px; object-fit: cover; }
.project-image-grid .project-grid-image-0 img { height: 40vw; max-height: 580px; }
.project-article-content { display: grid; gap: clamp(38px,6vw,86px); }
.project-article-text { width: min(860px,100%); margin: 0 auto; color: #d3dce0; font-size: clamp(17px,1.55vw,21px); line-height: 1.75; white-space: normal; }
.project-article-content figure { width: min(1100px,100%); margin: 0 auto; }
.project-article-image picture,
.project-article-image img { display: block; width: 100%; }
.project-article-image img { height: min(68vw,78vh); object-fit: cover; }
.project-article-video .video-frame { width: 100%; }
.project-detail:has(.project-article-content) .detail-copy,
.project-detail:has(.project-image-grid) .detail-copy,
.project-detail:has(.project-image-slider) .detail-copy { margin-top: 22px; }

@media(max-width:720px) {
  .project-image-slider-track { aspect-ratio: 4 / 3; }
  .project-image-slider-controls { right: 12px; bottom: 12px; }
  .project-image-grid { gap: 8px; }
  .project-image-grid figure,
  .project-image-grid .project-grid-image-0 { grid-column: 1 / -1; }
  .project-image-grid img,
  .project-image-grid .project-grid-image-0 img { height: 62vw; max-height: none; }
  .project-article-content { gap: 42px; }
  .project-article-text { font-size: 16px; }
  .project-article-image img { height: 75vw; }
}

@media(prefers-reduced-motion:reduce) {
  .project-image-slide { transition: none; }
}

/* Accessibility and interaction foundations */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.brand-text {
  color: var(--paper);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand-logo_text img { flex: 0 1 auto; }
@media(max-width:720px) {
  .brand-text { font-size: 16px; }
  .brand-logo_text { gap: 9px; }
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 11px 15px;
  border: 1px solid var(--cyan);
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  text-decoration: none;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
#main-content:focus { outline: none; }
:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
.project-sequence a { padding-block: 12px; }
.project-image-slider-controls { right: 12px; bottom: 10px; gap: 1px; }
.project-image-slider-controls button {
  position: relative;
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
}
.project-image-slider-controls button::before {
  content: '';
  position: absolute;
  inset: 7.5px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: transparent;
}
.project-image-slider-controls button.active { background: transparent; }
.project-image-slider-controls button.active::before { background: #fff; }

@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
