.home-page {
  --home-ink: #191b1d;
  --home-muted: #54595d;
  --home-line: #d8dcde;
  --home-surface: #eef0f1;
  --home-space: clamp(3.5rem, 6.2vw, 5.5rem);
  color: var(--home-ink);
}
.home-page :is(.workfolio, .people, .contact-desk), .colophon > .wrap {
  width: min(100% - 2 * clamp(1.25rem, 6.7vw, 6.75rem), 78rem);
}
.home-page :where(main, footer) [id] { scroll-margin-top: 2rem; }
.home-page :focus-visible { outline-color: #555c62; }
.home-page main h2 { font-size: clamp(2rem, 3.2vw, 2.75rem); line-height: 1.16; letter-spacing: -.045em; font-weight: 600; }
.hero-newsletter {
  width: min(100%, 27rem);
  min-width: 0;
  margin-top: clamp(1.25rem, 2.5vw, 2rem);
}
.hero-newsletter > p:first-child { font-size: .875rem; font-weight: 500; line-height: 1.45; }
.hero-newsletter-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: .5rem;
  padding: 2px;
  border: 1px solid #7b8389;
  border-radius: 100px;
  background: var(--paper);
}
.hero-newsletter input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: .55rem .875rem;
  border: 0;
  border-radius: 100px;
  background: var(--paper);
  color: var(--home-ink);
  font: inherit;
}
.hero-newsletter input::placeholder { color: var(--home-muted); opacity: 1; }
.hero-newsletter button {
  min-height: 44px;
  padding: .5rem 1rem;
  border: 0;
  border-radius: 100px;
  background: #eef0f1;
  color: var(--home-ink);
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
}
.hero-newsletter button:hover { background: #dde1e3; }
.hero-newsletter-controls :focus-visible { outline-offset: -3px; }
.hero-newsletter [role="status"]:not(:empty) { margin-top: .625rem; font-size: .9rem; }
.folio-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 44px;
  width: fit-content;
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
  text-underline-offset: .3em;
}
.folio-link:hover { text-decoration: underline; }
.folio-link span, .project-button span, .contact-mail span, .service-arrow {
  font: 1.25rem/1 system-ui, sans-serif;
  flex-shrink: 0;
}
.project-category {
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .055em;
  text-transform: uppercase;
  color: var(--home-muted);
}
.project-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  width: fit-content;
  min-height: 48px;
  padding: .7rem 1.25rem;
  background: var(--home-ink);
  color: white;
  border-radius: 100px;
  text-decoration: none;
  text-align: center;
  font-size: .875rem;
  font-weight: 500;
}
.project-button:hover { background: #454b50; }
.workfolio { padding-block: var(--home-space); }
.folio-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  margin-bottom: 2rem;
}
.project-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.3vw, 2rem);
}
.folio-project { display: flex; flex-direction: column; min-width: 0; }
.project-photo {
  display: block;
  position: relative;
  width: 100%;
  min-width: 0;
  height: clamp(15rem, 22vw, 19rem);
  flex-shrink: 0;
  background: var(--home-surface);
  border-radius: 12px;
  overflow: hidden;
}
.project-photo img { width: 100%; height: 100%; object-fit: cover; }
.civil-photo img { object-position: 51% 50%; }
.cyber-photo img { object-position: 50% 55%; }
.breakfast-photo img { object-position: 50% 46%; }
.photo-credit {
  position: absolute;
  bottom: .6rem;
  right: .6rem;
  padding: .2rem .4rem;
  border-radius: 3px;
  color: #fff;
  background: #191b1de6;
  font-size: .75rem;
  line-height: 1.4;
}
.project-copy { display: flex; flex: 1; flex-direction: column; padding-top: 1.25rem; }
.project-copy .project-category { display: flex; justify-content: space-between; gap: .5rem; }
.project-copy .project-category span { letter-spacing: 0; }
.project-copy h3 { margin-top: .5rem; font-size: clamp(1.6rem, 2.2vw, 2rem); line-height: 1.2; letter-spacing: -.045em; font-weight: 600; }
.project-copy h3 a { text-decoration: none; }
.project-copy h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.project-copy > p:not(.project-category) { margin-top: .9rem; color: var(--home-muted); font-size: .9375rem; line-height: 1.7; }
.project-results { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: auto; padding-block: 1.5rem 1rem; }
.project-results > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: .35rem .5rem; }
.project-results dd { order: -1; font-size: 1.75rem; line-height: 1.2; letter-spacing: -.045em; font-weight: 500; }
.project-results dt { font-size: .75rem; line-height: 1.5; color: var(--home-muted); }
.project-copy > .folio-link { border-top: 1px solid var(--home-line); width: 100%; padding-top: .45rem; min-height: 52px; }
.project-editions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; border-top: 1px solid var(--home-line); padding-top: .45rem; min-height: 52px; }
.project-editions .folio-link { width: 100%; gap: .5rem; font-size: .8125rem; }

.case-study {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: clamp(2.75rem, 4.5vw, 4rem);
  padding: clamp(1.25rem, 2.5vw, 2rem);
  background: #f4f5f5;
  border: 1px solid #e0e3e5;
  border-radius: 16px;
}
.case-study h3 { margin-top: .75rem; font-size: clamp(1.75rem, 2.5vw, 2.25rem); line-height: 1.2; letter-spacing: -.04em; font-weight: 600; }
.case-study-copy > p:not(.project-category) { max-width: 46ch; margin-top: 1rem; font-size: .9375rem; line-height: 1.75; color: var(--home-muted); }
.case-study-copy .folio-link { margin-top: .75rem; }
.case-study-visual { min-width: 0; }
.case-study-visual a { display: block; border-radius: 10px; }
.case-study-visual img { width: 100%; height: auto; border-radius: 10px; }
.case-study-visual figcaption { margin-top: .5rem; color: var(--home-muted); font-size: .6875rem; line-height: 1.5; }

.partner-band { margin-top: clamp(2.75rem, 4.5vw, 4rem); padding-top: 1.75rem; border-top: 1px solid var(--home-line); }
.partner-band-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.partner-band h3 { color: var(--home-muted); font-size: .75rem; line-height: 1.5; font-weight: 500; letter-spacing: .055em; text-transform: uppercase; }
.partner-more { min-height: 44px; border: 1px solid var(--home-line); background: transparent; color: var(--home-ink); font-size: .8125rem; }
.partner-more:hover { background: var(--home-surface); }
.partner-logos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: center; gap: 1.5rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.partner-logos a { display: flex; align-items: center; justify-content: center; min-height: 72px; border-radius: 8px; }
.partner-logos a:focus-visible { background: #f4f5f5; }
.partner-logos img { width: 100%; max-width: 9.5rem; max-height: 3.25rem; object-fit: contain; filter: grayscale(1); }
.partner-logos .partner-pfr { max-width: 8.25rem; max-height: 4rem; }
.partner-logos .partner-devstyle { max-width: 7.25rem; }

.upcoming {
  width: min(100% - 2 * clamp(.75rem, 2.5vw, 2.25rem), 85.5rem);
  margin-inline: auto;
  background: var(--home-surface);
  border: 1px solid #dfe3e5;
  border-radius: 24px;
}
.upcoming .wrap { width: min(100% - 2 * clamp(1.25rem, 4.2vw, 3.75rem), 78rem); }
.upcoming-inner { padding-block: clamp(2rem, 3.5vw, 3rem); }
.upcoming-header { display: flex; align-items: center; gap: 1rem; }
.upcoming-header .project-category { display: inline-flex; align-items: center; gap: .5rem; }
.upcoming-header .project-category::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #60686d; }
.upcoming-header > p:last-child { font-size: .875rem; font-weight: 500; }
.upcoming-content { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: clamp(2rem, 6vw, 6rem); margin-top: 1.3rem; }
.upcoming h2 { max-width: 11ch; }
.upcoming-copy > p { color: var(--home-muted); font-size: .9375rem; max-width: 50ch; }
.upcoming-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1.25rem; }
.upcoming-actions .folio-link { gap: .7rem; font-size: .8125rem; }
.upcoming-notify {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem 3rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid #ccd1d4;
}
.upcoming-notify h3 { font-size: 1.125rem; line-height: 1.4; letter-spacing: -.025em; font-weight: 500; }
.upcoming-notify p { max-width: 63ch; margin-top: .5rem; font-size: .8125rem; line-height: 1.7; color: var(--home-muted); }
.notification-button { border: 1px solid #737b81; background: transparent; color: var(--home-ink); }
.notification-button:hover { background: white; }

.people { padding-block: var(--home-space); }
.people-intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.people-heading h2 { max-width: 17ch; margin-top: .9rem; }
.people-description > p { max-width: 48ch; color: var(--home-muted); }
.people-description .folio-link { margin-top: .8rem; }
.team-heading { padding-block: 1.25rem; margin-top: 3rem; border-top: 1px solid var(--home-line); }
.team-heading h3 { font-size: .875rem; letter-spacing: 0; font-weight: 500; }
.person-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.25rem; margin: 0; padding: 0; list-style: none; align-items: start; }
.person-list img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--home-surface); border-radius: 10px; }
.person-list h3 { font-size: .9375rem; line-height: 1.35; font-weight: 500; margin-top: .85rem; letter-spacing: -.025em; }
.person-list p { font-size: .8125rem; color: var(--home-muted); margin-top: .35rem; line-height: 1.6; }

.contact-desk {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  border-top: 1px solid var(--home-line);
  padding-block: 3rem var(--home-space);
}
.contact-desk h2 { margin-top: .9rem; max-width: 10ch; }
.contact-lead { max-width: 39ch; margin-top: 1rem; color: var(--home-muted); font-size: .9375rem; line-height: 1.7; }
.contact-offer { display: flex; margin-top: 1.25rem; }
.contact-mail { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.25rem; min-height: 44px; margin-top: 1.25rem; font-size: clamp(1.125rem, 1.8vw, 1.5rem); letter-spacing: -.025em; text-decoration: none; }
.contact-mail:hover { text-decoration: underline; text-underline-offset: .25em; }
.contact-services { display: flex; flex-direction: column; }
.service-option { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.25rem .75rem; border-bottom: 1px solid var(--home-line); text-decoration: none; }
.service-option:first-child { padding-top: .25rem; }
.service-option h3 { font-size: 1.125rem; line-height: 1.4; letter-spacing: -.025em; font-weight: 500; }
.service-option p { max-width: 49ch; margin-top: .4rem; color: var(--home-muted); font-size: .875rem; line-height: 1.7; }
.service-option:hover { background: var(--home-surface); }

.colophon { background: var(--paper); }
.colophon-directory {
  display: grid;
  grid-template-columns: minmax(14rem, 1fr) minmax(0, 2.7fr);
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(2rem, 4vw, 4rem);
  border-top: 1px solid var(--home-line);
}
.colophon-base > a { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; }
.colophon-base img { width: clamp(12rem, 16vw, 15rem); }
.colophon-base address, .colophon-base p { color: var(--home-muted); font-size: .8125rem; line-height: 1.7; font-style: normal; }
.colophon-base address { margin-top: .75rem; }
.colophon-base p { margin-top: .625rem; font-size: .75rem; }
.colophon-base p span { margin-inline: .15rem; }
.colophon-columns { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: clamp(1rem, 2.5vw, 3rem); }
.colophon-columns h2 { margin-bottom: .5rem; font-size: 1rem; letter-spacing: -.025em; line-height: 1.5; }
.colophon-columns a, .colophon summary {
  display: flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  color: var(--home-muted);
  font-size: .875rem;
  line-height: 1.5;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.colophon-columns a:hover, .colophon-columns [aria-current="page"], .colophon summary:hover {
  color: var(--home-ink);
  text-decoration: underline;
  text-underline-offset: .25em;
}
.colophon summary { cursor: pointer; gap: .65rem; padding-right: .2rem; list-style: none; }
.colophon summary::-webkit-details-marker { display: none; }
.colophon summary::after {
  content: "";
  width: .45rem;
  height: .45rem;
  flex: none;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-.12rem) rotate(45deg);
}
.colophon details[open] summary::after { transform: translateY(.12rem) rotate(225deg); }
.colophon details p { padding: .625rem 0 .25rem .875rem; border-left: 2px solid var(--home-line); font-size: .8125rem; line-height: 1.7; }

.donation-appeal {
  width: min(100% - 2 * clamp(.75rem, 2.5vw, 2.25rem), 85.5rem);
  margin-inline: auto;
  border: 1px solid #dfe3e5;
  border-radius: 24px;
  background: var(--home-surface);
}
.donation-appeal-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  width: min(100% - 2 * clamp(1.25rem, 4.2vw, 3.75rem), 78rem);
  padding-block: clamp(2rem, 3.5vw, 3rem);
}
.donation-appeal h2 { max-width: 21ch; font-size: clamp(2rem, 3.2vw, 2.75rem); line-height: 1.16; letter-spacing: -.045em; text-wrap: balance; }
.donation-description { max-width: 58ch; margin-top: 1rem; color: var(--home-muted); font-size: .9375rem; line-height: 1.7; }
.donation-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .5rem 1.5rem; margin-top: 1.5rem; }
.donation-actions summary { min-height: 48px; font-weight: 500; color: var(--home-ink); }
.donation-appeal-inner > img { justify-self: center; width: min(100%, 18rem); filter: contrast(1.06); mix-blend-mode: multiply; }
.colophon-with-appeal .colophon-directory { border-top: 0; }

@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .project-photo img { transition: transform .35s ease; }
  .project-photo:hover img { transform: scale(1.035); }
  .project-button, .service-option { transition: background-color .2s; }
}

@media (max-width: 1050px) {
  .colophon-directory { grid-template-columns: 1fr; gap: 2rem; }
  .colophon-base { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--home-line); }
  .colophon-base address, .colophon-base p { margin: 0; }
}

@media (min-width: 641px) and (max-width: 1000px) {
  .partner-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 2rem; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
  .project-civil { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.5rem; }
  .project-civil .project-photo { height: 100%; min-height: 19rem; aspect-ratio: auto; }
  .project-civil .project-copy { padding-top: .25rem; }
  .project-copy h3 { font-size: 1.65rem; }
  .project-photo { height: auto; aspect-ratio: 1.35; }
  .upcoming-content, .people-intro, .contact-desk { gap: 2rem; }
  .upcoming-actions { gap: .5rem; }
  .person-list { gap: .8rem; }
  .person-list h3 { font-size: .8125rem; }
  .person-list p { font-size: .75rem; }
}

@media (min-width: 641px) and (max-width: 800px) {
  .case-study { grid-template-columns: 1fr; }
  .case-study-copy > p:not(.project-category) { max-width: 58ch; }
  .upcoming-notify { grid-template-columns: 1fr; gap: 1rem; }
  .person-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 1rem; }
  .person-list h3 { font-size: .9375rem; }
  .person-list p { font-size: .8125rem; }
}

@media (max-width: 640px) {
  .home-page main h2 { font-size: 2rem; }
  .folio-heading { margin-bottom: 1.5rem; }
  .folio-heading .folio-link { font-size: .75rem; }
  .project-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .project-photo { height: auto; aspect-ratio: 1.4; }
  .project-copy { padding-top: 1rem; }
  .project-copy h3 { font-size: 1.875rem; }
  .project-copy > p:not(.project-category) { font-size: 1rem; }
  .project-results { padding-top: 1.1rem; }
  .case-study { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .case-study-copy > p:not(.project-category) { font-size: 1rem; }
  .partner-band { margin-top: 2.75rem; padding-top: 1.5rem; }
  .partner-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1.5rem; margin-top: 1rem; }
  .partner-logos a { min-height: 64px; }
  .partner-logos img { max-width: 8.25rem; max-height: 2.75rem; }
  .partner-logos .partner-pfr { max-width: 7.25rem; max-height: 3.5rem; }
  .upcoming { border-radius: 18px; }
  .upcoming-header { flex-wrap: wrap; gap: .5rem 1rem; }
  .upcoming-content { grid-template-columns: 1fr; gap: 1rem; }
  .upcoming h2 { max-width: 14ch; }
  .upcoming-copy > p { font-size: 1rem; }
  .upcoming-actions { gap: .5rem 1.25rem; }
  .upcoming-notify { grid-template-columns: 1fr; gap: 1rem; margin-top: 1.75rem; padding-top: 1.5rem; }
  .upcoming-notify p { font-size: .875rem; }
  .people-intro { grid-template-columns: 1fr; gap: 1.25rem; }
  .people-description > p { max-width: none; }
  .team-heading { margin-top: 2rem; }
  .person-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1rem; }
  .person-list h3 { font-size: .9375rem; }
  .person-list p { font-size: .8125rem; }
  .contact-desk { grid-template-columns: 1fr; gap: 1.5rem; padding-top: 2rem; }
  .contact-desk h2 { max-width: none; }
  .contact-mail { margin-top: .7rem; font-size: 1.25rem; }
  .contact-lead { max-width: none; font-size: 1rem; }
  .service-option { padding-inline: 0; gap: 1rem; }
  .service-option p { font-size: .9375rem; }
  .colophon-base { display: grid; justify-items: start; gap: .375rem; }
  .colophon-columns { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1rem; }
  .colophon-columns summary { gap: .375rem; }
  .colophon-with-appeal .colophon-columns nav:last-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1rem;
  }
  .colophon-with-appeal .colophon-columns nav:last-child h2 { grid-column: 1 / -1; }
  .donation-appeal { border-radius: 18px; }
  .donation-appeal-inner { grid-template-columns: 1fr; }
  .donation-appeal-inner > img { display: none; }
  .donation-description { font-size: 1rem; }
}

@media (max-width: 350px) {
  .hero-newsletter input { padding-inline: .625rem .25rem; }
  .hero-newsletter button { padding-inline: .625rem; }
}
