@font-face {
  font-family: Manrope;
  src: url("assets/fonts/manrope-400.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("assets/fonts/manrope-500.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("assets/fonts/manrope-600.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("assets/fonts/manrope-700.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --paper: #f5f3ee;
  --ink: #252723;
  --muted: #686b63;
  --line: #d5d4cb;
  --soft: #e7e9f0;
  --accent: #303e68;
  --accent-hover: #253152;
  --accent-dark: #202943;
  --accent-light: #c8d0e5;
  --accent-text: #e6e9f4;
  --accent-surface: #303e6808;
  --accent-border: #303e6840;
  --accent-line: #303e6880;
  --sans: Manrope, Arial, sans-serif;
  --gutter: clamp(24px, 4.45vw, 84px);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}
body {
  margin: 0;
  font: 16px/1.65 var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
body.modal-open {
  overflow: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  color: inherit;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}
img {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 500;
}
h2 {
  font-size: clamp(36px, 4.3vw, 68px);
  line-height: 1.12;
  letter-spacing: -0.055em;
}
h3 {
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -0.045em;
}
.wrap {
  width: calc(100% - var(--gutter) * 2);
  max-width: 1560px;
  margin-inline: auto;
}
.section-space {
  margin-top: 130px;
}
.eyebrow,
.micro,
.section-label {
  font-size: 11px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.eyebrow {
  margin-bottom: 25px;
  color: var(--muted);
}
.skip-link {
  position: fixed;
  left: 20px;
  top: -100px;
  z-index: 200;
  background: white;
  padding: 12px;
}
.skip-link:focus {
  top: 10px;
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--gutter);
  color: white;
  transition:
    background 0.25s,
    color 0.25s,
    height 0.25s;
}
.brand {
  flex-shrink: 0;
}
.brand img {
  width: 210px;
  height: auto;
  filter: brightness(0) invert(1);
}
.topbar nav {
  display: flex;
  gap: 42px;
  align-items: center;
}
.topbar nav a {
  font-size: 16px;
  line-height: 1.4;
  padding-block: 8px;
  position: relative;
}
.topbar nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 100%;
  height: 1px;
  background: currentColor;
  transition: right 0.25s;
}
.topbar nav a:hover::after,
.topbar nav a[aria-current]::after {
  right: 0;
}
.topbar.is-scrolled {
  background: #fff;
  color: var(--ink);
  height: 88px;
  box-shadow: 0 1px 0 #0000000d;
}
.topbar.is-scrolled .brand img {
  filter: brightness(0);
}
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: inherit;
  padding: 10px 0 10px 16px;
  font-size: 13px;
}
.menu-toggle span {
  font-size: 24px;
  margin-left: 12px;
}

.pill-button,
.dark-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: var(--ink);
  color: white;
  padding: 17px 27px;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
  transition:
    background 0.2s,
    border-color 0.2s;
  cursor: pointer;
}
.dark-button:hover,
.pill-button:hover {
  background: var(--accent);
}
.text-link,
.service-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 500;
}
.text-link:hover,
.service-link:hover {
  color: var(--accent);
}

.hero {
  position: relative;
  height: 100svh;
  min-height: 720px;
  max-height: 1250px;
  overflow: hidden;
  background: #454a40;
  color: white;
}
.hero-slides,
.hero-slide,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-slide {
  object-fit: cover;
  object-position: center 56%;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.hero-slide.is-active {
  opacity: 1;
}
.hero-shade {
  background:
    linear-gradient(180deg, #0e191f65, transparent 35%), linear-gradient(0deg, #18191ce8, #18191c05 75%);
  pointer-events: none;
}
.hero-content {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 152px;
}
.hero-content .eyebrow {
  color: #fff;
  margin-bottom: 25px;
}
.hero h1 {
  font-size: clamp(52px, 6.1vw, 96px);
  line-height: 1.04;
  letter-spacing: -0.06em;
  max-width: 1100px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 35px;
}
.hero-actions .pill-button:first-child {
  background: var(--accent);
}
.hero-actions .pill-button:first-child:hover {
  background: var(--accent-hover);
}
.outline-button {
  border: 1px solid #ffffff80;
  background: #ffffff0a;
}
.outline-button:hover {
  background: #fff;
  color: var(--ink);
}
.hero-bottom {
  position: absolute;
  bottom: 33px;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #ffffff4a;
  padding-top: 22px;
  gap: 25px;
}
.hero-project-link {
  display: flex;
  align-items: baseline;
  gap: 24px;
}
.hero-project-link span:first-child {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.75;
}
.hero-project-link span:last-child {
  font-size: 14px;
}
.hero-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}
.hero-controls > span {
  font-size: 11px;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  margin-right: 10px;
}
.hero-controls button {
  background: none;
  border: 0;
  color: #fff;
  font-size: 22px;
  min-width: 32px;
  min-height: 36px;
  padding: 3px;
}
.hero-controls #hero-pause {
  font-size: 11px;
  min-width: 62px;
}

.about-heading {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 60px;
  margin-bottom: 55px;
}
.about-heading .eyebrow {
  margin-top: 10px;
}
.about-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 80px;
  align-items: start;
}
.about-photo {
  max-width: 435px;
}
.about-photo img {
  width: 100%;
  aspect-ratio: 4/4.5;
  object-fit: cover;
  object-position: 50% center;
  filter: grayscale(1);
}
.about-photo figcaption {
  font-size: 10px;
  margin-top: 16px;
  color: var(--muted);
}
.about-copy .section-label {
  display: none;
}
.about-copy h2 {
  font-size: 32px;
  letter-spacing: -0.045em;
  margin-bottom: 30px;
}
.about-copy > p:not(.micro) {
  margin-bottom: 22px;
  font-size: 16px;
  line-height: 1.9;
  max-width: 760px;
}
.about-copy .text-link {
  margin-top: 14px;
}
.projects-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 45px;
}
.projects-heading .dark-button {
  flex-shrink: 0;
}
.projects-heading .eyebrow {
  margin-bottom: 15px;
}
.featured-projects {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
}
.project-card {
  display: block;
  position: relative;
  overflow: hidden;
  color: white;
  min-width: 0;
}
.project-card > img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  transition: transform 0.7s;
}
.project-card:hover > img {
  transform: scale(1.035);
}
.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #131b216f, transparent 48%, #151f1799);
  pointer-events: none;
}
.project-number {
  position: absolute;
  z-index: 1;
  left: 28px;
  top: 25px;
  font-size: 10px;
  letter-spacing: 0.12em;
  opacity: 0.8;
}
.project-caption {
  position: absolute;
  z-index: 1;
  left: 28px;
  right: 28px;
  top: 65px;
}
.project-caption h3 {
  font-size: 25px;
  line-height: 1.15;
  max-width: 280px;
}
.project-caption p {
  font-size: 12px;
  margin-top: 14px;
}
.project-card-meta {
  position: absolute;
  z-index: 1;
  left: 28px;
  right: 28px;
  bottom: 25px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
  line-height: 1.5;
}
.project-card-meta span:first-child {
  max-width: 140px;
}
.project-card-meta span:last-child {
  white-space: nowrap;
}

.offer-section {
  background: var(--soft);
  padding-block: 90px;
}
.offer-heading .eyebrow {
  margin-bottom: 22px;
}
.services,
.sub-services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin-top: 60px;
}
.service-card {
  padding: 30px 28px;
  border: 1px solid #cfcfc3;
  display: flex;
  flex-direction: column;
  background: #ffffff20;
}
.service-index {
  display: block;
  font-size: 12px;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 42px;
  font-variant-numeric: tabular-nums;
}
.service-icon {
  display: none;
}
.service-card h3 {
  font-size: 26px;
  min-height: 66px;
  margin-bottom: 25px;
}
.service-text {
  flex: 1;
}
.service-text p {
  font-size: 14px;
  line-height: 1.9;
  color: #4b5047;
}
.service-link {
  align-self: flex-start;
  margin-top: 35px;
}
.offer-more {
  margin-top: 35px;
}
.process-heading {
  margin-bottom: 55px;
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}
.process-steps article {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.step-number {
  color: var(--accent);
  font-size: 13px;
}
.process-steps h3 {
  font-size: 22px;
  margin: 35px 0 20px;
}
.process-steps p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
}
.interlude {
  position: relative;
  height: 560px;
  overflow: hidden;
  margin-top: 130px;
  color: #fff;
}
.interlude > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}
.interlude::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #18191cba, transparent 85%);
}
.interlude-content {
  position: absolute;
  z-index: 1;
  bottom: 48px;
  left: 0;
  right: 0;
}
.interlude h2 {
  font-size: clamp(36px, 4vw, 58px);
  line-height: 1.12;
  max-width: 850px;
}

.contact-section {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 80px;
  align-items: start;
}
.contact-details {
  margin-top: 50px;
}
.contact-details a {
  display: block;
  width: fit-content;
  font-size: 20px;
  letter-spacing: -0.03em;
  margin-block: 14px;
}
.contact-details a:hover {
  color: var(--accent);
}
.contact-details p {
  margin-top: 30px;
  color: var(--muted);
  font-size: 14px;
}
.contact-form {
  background: #fff;
  border: 1px solid #d6d7ce;
  padding: 36px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.contact-form label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 24px;
  line-height: 1.6;
}
.contact-form label > span {
  color: var(--accent);
}
.contact-form input:not([type="checkbox"]),
.contact-form textarea {
  display: block;
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid #c4c8ba;
  background: none;
  border-radius: 0;
  font: 14px/1.6 var(--sans);
  color: var(--ink);
  outline: none;
  margin-top: 7px;
}
.contact-form input:not([type="checkbox"]):focus,
.contact-form textarea:focus {
  border-bottom: 2px solid var(--accent);
  padding-bottom: 11px;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #888d80;
  opacity: 1;
}
.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}
.contact-form .form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}
.form-consent input {
  margin: 5px 0 0;
  accent-color: var(--accent);
}
.form-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.form-actions .dark-button {
  background: var(--accent);
}
.copy-button {
  border: 0;
  padding: 8px 0;
  background: none;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.form-note,
#form-status {
  font-size: 10px;
  line-height: 1.8;
  margin-top: 20px;
  color: var(--muted);
}
.prepared-mail {
  display: inline-block;
  font-size: 13px;
  text-decoration: underline;
  margin-top: 20px;
}
.prepared-mail[hidden] {
  display: none;
}

.footer {
  background: #252723;
  color: #f4f2ed;
  padding: 55px 0 28px;
  margin-top: 130px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 55px;
  align-items: center;
}
.footer-wordmark img {
  width: 120px;
  height: auto;
  filter: brightness(0) invert(1);
}
.footer-top p {
  font-size: 12px;
  line-height: 1.8;
  color: #c3c5bb;
}
.footer-top nav {
  display: flex;
  gap: 25px;
  font-size: 12px;
}
.footer-top a:hover {
  color: var(--accent-light);
}
.footer-bottom {
  border-top: 1px solid #ffffff22;
  padding-top: 25px;
  margin-top: 42px;
  display: flex;
  justify-content: space-between;
  gap: 25px;
  font-size: 11px;
  color: #c3c5bb;
}

/* Dialogs keep the project photography intact at every screen size. */
dialog {
  border: 0;
  overscroll-behavior: contain;
  padding: 0;
  color: var(--ink);
}
dialog::backdrop {
  background: #18191ccf;
  backdrop-filter: blur(8px);
}
.dialog-top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.close-dialog {
  border: 0;
  background: none;
  color: inherit;
  font-size: 12px;
  padding: 8px 0 8px 15px;
}
.close-dialog > span {
  font-size: 23px;
  margin-left: 15px;
}
.bio-dialog {
  width: 100%;
  height: 100svh;
  max-width: none;
  max-height: 100svh;
  margin: 0;
  padding: 20px var(--gutter) 70px;
  background: var(--paper);
}
.bio-dialog .dialog-top {
  position: sticky;
  top: -20px;
  background: var(--paper);
  z-index: 2;
  padding-top: 20px;
}
.bio-layout {
  max-width: 880px;
  margin: 60px auto 0;
}
.bio-layout h2 {
  text-align: center;
  margin-bottom: 45px;
}
#bio-text p,
#bio-text li {
  font-size: 16px;
  line-height: 1.9;
  margin-bottom: 24px;
}
#bio-text h3 {
  font-size: 25px;
  margin: 40px 0 25px;
}
#bio-text ul {
  padding-left: 20px;
}
.project-dialog {
  width: calc(100% - 60px);
  max-width: 1480px;
  max-height: calc(100svh - 40px);
  background: var(--paper);
  padding: 25px 35px 30px;
}
.project-dialog-heading {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: end;
  margin: 24px 0;
}
.project-dialog-heading h2 {
  font-size: 32px;
  line-height: 1.2;
  max-width: 600px;
}
.project-dialog-heading p {
  font-size: 12px;
  line-height: 1.7;
  max-width: 370px;
  text-align: right;
}
.gallery-stage {
  position: relative;
  background: #e5e3dc;
}
.gallery-stage > img {
  height: min(60svh, 720px);
  width: 100%;
  object-fit: contain;
}
.gallery-stage > button {
  position: absolute;
  z-index: 1;
  top: calc(50% - 22px);
  border: 0;
  background: #ffffffeb;
  color: var(--ink);
  width: 44px;
  height: 44px;
  font-size: 22px;
}
#gallery-prev {
  left: 14px;
}
#gallery-next {
  right: 14px;
}
.gallery-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 15px;
  font-size: 10px;
  color: var(--muted);
}
.gallery-thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.gallery-thumbnails button {
  border: 1px solid transparent;
  padding: 3px;
  background: none;
  opacity: 0.6;
}
.gallery-thumbnails button[aria-pressed="true"] {
  border-color: var(--accent);
  opacity: 1;
}
.gallery-thumbnails img {
  width: 90px;
  height: 60px;
  object-fit: cover;
}

@media (min-width: 1800px) {
  .project-card > img {
    height: 660px;
  }
}
@media (max-width: 1100px) {
  h2 {
    font-size: 48px;
  }
  .section-space {
    margin-top: 95px;
  }
  .topbar nav {
    gap: 28px;
  }
  .brand img {
    width: 180px;
  }
  .hero h1 {
    font-size: 70px;
  }
  .about-heading,
  .about-layout {
    gap: 45px;
    grid-template-columns: 0.8fr 1.2fr;
  }
  .services,
  .sub-services-grid {
    gap: 16px;
  }
  .service-card {
    padding: 26px 22px;
  }
  .service-card h3 {
    font-size: 23px;
  }
  .featured-projects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .project-card > img {
    height: 520px;
  }
  .process-steps {
    gap: 22px;
  }
  .process-steps h3 {
    font-size: 20px;
  }
  .contact-section {
    gap: 45px;
  }
  .interlude {
    margin-top: 95px;
  }
  .footer {
    margin-top: 95px;
  }
}
@media (max-width: 800px) {
  .topbar {
    height: 88px;
  }
  .topbar.is-scrolled {
    height: 76px;
  }
  .topbar nav a {
    font-size: 14px;
  }
  .hero {
    min-height: 700px;
  }
  .hero h1 {
    font-size: 64px;
  }
  .hero-content {
    bottom: 175px;
  }
  .hero-bottom {
    align-items: flex-start;
  }
  .hero-project-link {
    display: block;
  }
  .hero-project-link span {
    display: block;
  }
  .hero-project-link span:last-child {
    margin-top: 6px;
  }
  .about-layout,
  .about-heading {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .about-heading {
    margin-bottom: 35px;
  }
  .about-photo {
    max-width: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: end;
  }
  .about-photo img {
    aspect-ratio: 1/1;
  }
  .about-photo figcaption {
    padding-bottom: 20px;
  }
  .about-copy {
    margin-top: 15px;
  }
  .services {
    grid-template-columns: 1fr;
  }
  .service-card h3 {
    min-height: 0;
  }
  .service-index {
    margin-bottom: 30px;
  }
  .service-text p {
    max-width: 680px;
  }
  .process-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 35px;
  }
  .contact-section {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .contact-details {
    margin-top: 35px;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 35px;
  }
  .footer-top nav {
    grid-column: 1/-1;
  }
  .interlude {
    height: 480px;
  }
  .project-dialog-heading {
    display: block;
  }
  .project-dialog-heading p {
    text-align: left;
    margin-top: 12px;
  }
}
@media (max-width: 560px) {
  :root {
    --gutter: 20px;
  }
  h2 {
    font-size: 36px;
    line-height: 1.14;
  }
  .section-space {
    margin-top: 75px;
  }
  .eyebrow {
    font-size: 10px;
    margin-bottom: 22px;
  }
  .topbar,
  .topbar.is-scrolled {
    height: 78px;
  }
  .brand img {
    width: 155px;
  }
  .menu-toggle {
    display: flex;
    align-items: center;
  }
  .topbar nav {
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    padding: 20px;
    background: white;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
  }
  .topbar nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .topbar nav a {
    font-size: 20px;
    padding-block: 15px;
  }
  .hero {
    height: 100svh;
    min-height: 650px;
  }
  .hero-slide {
    object-position: 52% center;
  }
  .hero-shade {
    background:
      linear-gradient(180deg, #131d1e69, transparent 27%), linear-gradient(0deg, #18191cee, transparent 90%);
  }
  .hero-content {
    bottom: 190px;
  }
  .hero-content .eyebrow {
    font-size: 8px;
    letter-spacing: 0.1em;
    max-width: 260px;
    margin-bottom: 20px;
  }
  .hero h1 {
    font-size: clamp(36px, 9.6vw, 54px);
    line-height: 1.08;
    letter-spacing: -0.055em;
  }
  .hero-actions {
    gap: 9px;
    margin-top: 26px;
    flex-wrap: wrap;
  }
  .hero-actions .pill-button {
    font-size: 11px;
    padding: 14px 17px;
  }
  .hero-bottom {
    bottom: 20px;
    padding-top: 18px;
    flex-direction: column;
    gap: 15px;
  }
  .hero-project-link {
    display: flex;
    align-items: baseline;
    gap: 16px;
  }
  .hero-project-link span:first-child {
    font-size: 8px;
  }
  .hero-project-link span:last-child {
    font-size: 11px;
    margin: 0;
  }
  .hero-controls {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }
  .hero-controls > span {
    margin-right: auto;
    font-size: 10px;
  }
  .hero-controls button {
    font-size: 21px;
    min-width: 42px;
    min-height: 40px;
  }
  .hero-controls #hero-pause {
    font-size: 10px;
  }
  .about-photo {
    display: block;
    max-width: 340px;
  }
  .about-photo img {
    aspect-ratio: 4/4.2;
  }
  .about-photo figcaption {
    padding: 0;
    margin-top: 12px;
  }
  .about-copy h2 {
    font-size: 30px;
  }
  .about-copy > p:not(.micro) {
    font-size: 14px;
    line-height: 1.9;
  }
  .projects-heading {
    display: block;
    margin-bottom: 30px;
  }
  .projects-heading .dark-button {
    margin-top: 24px;
    font-size: 12px;
    padding: 13px 20px;
  }
  .featured-projects {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }
  .project-card {
    flex: 0 0 86%;
    scroll-snap-align: start;
  }
  .project-card > img {
    height: 480px;
  }
  .project-caption,
  .project-card-meta {
    left: 22px;
    right: 22px;
  }
  .project-number {
    left: 22px;
  }
  .project-caption h3 {
    font-size: 25px;
  }
  .offer-section {
    padding-block: 65px;
  }
  .services {
    margin-top: 35px;
    gap: 18px;
  }
  .service-card {
    padding: 28px 24px;
  }
  .service-card h3 {
    font-size: 25px;
  }
  .service-text p {
    font-size: 14px;
  }
  .process-steps {
    gap: 30px 20px;
  }
  .process-heading {
    margin-bottom: 38px;
  }
  .process-steps h3 {
    font-size: 19px;
    margin-top: 26px;
  }
  .process-steps p {
    font-size: 12px;
    line-height: 1.85;
  }
  .interlude {
    margin-top: 75px;
    height: 440px;
  }
  .interlude-content {
    bottom: 28px;
  }
  .interlude h2 {
    font-size: 34px;
  }
  .contact-details a {
    font-size: 20px;
  }
  .contact-form {
    padding: 26px 20px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .contact-form label {
    font-size: 12px;
  }
  .contact-form input:not([type="checkbox"]),
  .contact-form textarea {
    font-size: 16px;
  }
  .contact-form input::placeholder,
  .contact-form textarea::placeholder {
    font-size: 12px;
  }
  .form-actions {
    gap: 20px;
  }
  .form-actions .dark-button {
    font-size: 12px;
    padding: 16px 19px;
    gap: 14px;
  }
  .contact-form .form-consent {
    font-size: 10px;
  }
  .footer {
    padding-top: 40px;
    margin-top: 75px;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .footer-wordmark img {
    width: 100px;
  }
  .footer-top nav {
    flex-wrap: wrap;
    gap: 25px;
  }
  .footer-top p {
    font-size: 11px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    font-size: 10px;
    padding-top: 22px;
    margin-top: 30px;
  }
  .dialog-top {
    font-size: 9px;
    padding-bottom: 15px;
  }
  .bio-layout {
    margin-top: 38px;
  }
  .bio-layout h2 {
    margin-bottom: 30px;
  }
  #bio-text p,
  #bio-text li {
    font-size: 14px;
  }
  #bio-text h3 {
    font-size: 23px;
  }
  .project-dialog {
    width: calc(100% - 20px);
    max-height: calc(100svh - 20px);
    padding: 15px 15px 22px;
  }
  .project-dialog-heading h2 {
    font-size: 26px;
  }
  .project-dialog-heading p {
    font-size: 11px;
  }
  .gallery-stage > img {
    height: 40svh;
  }
  .gallery-stage > button {
    width: 36px;
    height: 40px;
    top: calc(50% - 20px);
  }
  #gallery-prev {
    left: 4px;
  }
  #gallery-next {
    right: 4px;
  }
  .gallery-thumbnails {
    gap: 6px;
  }
  .gallery-thumbnails img {
    width: 62px;
    height: 44px;
  }
  .gallery-bottom {
    font-size: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* Both comparison palettes share the same layout and neutral base. */
.dark-button {
  background: var(--accent);
}
.dark-button:hover {
  background: var(--accent-hover);
}
.offer-section {
  background: var(--accent);
  color: #faf9f6;
}
.offer-section .eyebrow {
  color: var(--accent-light);
}
.offer-section .service-card {
  background: #ffffff08;
  border-color: #ffffff4a;
}
.offer-section .service-index {
  color: var(--accent-light);
}
.offer-section .service-text p {
  color: var(--accent-text);
}
.offer-section .text-link:hover,
.offer-section .service-link:hover {
  color: var(--accent-light);
}
.process-steps article {
  border-top-color: var(--accent-line);
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
}
.contact-form {
  border-color: var(--accent-border);
}
.footer {
  background: var(--accent-dark);
}
.about-section > .eyebrow {
  margin-bottom: 35px;
}
.about-layout {
  column-gap: 80px;
  row-gap: 32px;
}
.about-layout > .about-photo {
  grid-column: 1;
  grid-row: 1;
}
.about-layout > .about-copy {
  grid-column: 2;
  grid-row: 1;
  margin-top: 0;
}
@media (max-width: 1100px) {
  .about-layout {
    column-gap: 45px;
    row-gap: 28px;
  }
}
@media (max-width: 800px) {
  .about-layout > .about-photo {
    grid-column: 1;
    grid-row: 1;
  }
  .about-layout > .about-copy {
    grid-column: 1;
    grid-row: 2;
  }
}

:root[data-palette="cegla"] {
  --soft: #efe3dc;
  --accent: #b9472e;
  --accent-hover: #913722;
  --accent-dark: #552e27;
  --accent-light: #edcbbd;
  --accent-text: #f5e7df;
  --accent-surface: #b9472e08;
  --accent-border: #b9472e40;
  --accent-line: #b9472e80;
}

/* The supplied Cream / Beige / Deep Ocean palette. */
:root[data-palette="ocean"] {
  --paper: #ffffff;
  --ink: #2c365a;
  --muted: #2c365a;
  --line: #c4bcb0;
  --soft: #eee8df;
  --accent: #2c365a;
  --accent-hover: #2c365a;
  --accent-dark: #2c365a;
  --accent-light: #eee8df;
  --accent-text: #2c365a;
  --accent-surface: #eee8df;
  --accent-border: #c4bcb0;
  --accent-line: #c4bcb0;
}
:root:is([data-palette="ocean"], [data-palette="coral"]) .projects-section {
  padding-top: 65px;
  background: var(--soft);
}
:root:is([data-palette="ocean"], [data-palette="coral"]) .offer-section {
  background: var(--soft);
  color: var(--ink);
}
:root:is([data-palette="ocean"], [data-palette="coral"]) .offer-section .eyebrow,
:root:is([data-palette="ocean"], [data-palette="coral"]) .offer-section .service-index,
:root:is([data-palette="ocean"], [data-palette="coral"]) .offer-section .service-text p,
:root:is([data-palette="ocean"], [data-palette="coral"]) .offer-section .text-link:hover,
:root:is([data-palette="ocean"], [data-palette="coral"]) .offer-section .service-link:hover {
  color: var(--ink);
}
:root:is([data-palette="ocean"], [data-palette="coral"]) .offer-section .service-card {
  background: var(--paper);
  border-color: var(--line);
}
:root:is([data-palette="ocean"], [data-palette="coral"]) .hero-actions .outline-button {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--accent);
}
:root:is([data-palette="ocean"], [data-palette="coral"]) .hero-actions .outline-button:hover {
  background: var(--soft);
  border-color: var(--soft);
}
:root:is([data-palette="ocean"], [data-palette="coral"]) .service-text p,
:root:is([data-palette="ocean"], [data-palette="coral"]) .contact-form input::placeholder,
:root:is([data-palette="ocean"], [data-palette="coral"]) .contact-form textarea::placeholder {
  color: var(--ink);
}
:root:is([data-palette="ocean"], [data-palette="coral"]) .contact-form input:not([type="checkbox"]),
:root:is([data-palette="ocean"], [data-palette="coral"]) .contact-form textarea {
  border-bottom-color: var(--line);
}
:root:is([data-palette="ocean"], [data-palette="coral"]) .footer {
  background: var(--soft);
  color: var(--ink);
}
:root:is([data-palette="ocean"], [data-palette="coral"]) .footer-top p,
:root:is([data-palette="ocean"], [data-palette="coral"]) .footer-bottom,
:root:is([data-palette="ocean"], [data-palette="coral"]) .footer-top a:hover {
  color: var(--ink);
}
:root:is([data-palette="ocean"], [data-palette="coral"]) .footer-bottom {
  border-top-color: var(--line);
}
:root:is([data-palette="ocean"], [data-palette="coral"]) .footer-wordmark {
  display: block;
  width: 120px;
  background: var(--accent);
  -webkit-mask: url("assets/archisfera-logo-simple.png") center / contain no-repeat;
  mask: url("assets/archisfera-logo-simple.png") center / contain no-repeat;
}
:root:is([data-palette="ocean"], [data-palette="coral"]) .footer-wordmark img {
  opacity: 0;
}
:root:is([data-palette="ocean"], [data-palette="coral"]) .gallery-stage {
  background: var(--soft);
}
@media (max-width: 560px) {
  :root:is([data-palette="ocean"], [data-palette="coral"]) .projects-section {
    padding-top: 45px;
  }
  :root:is([data-palette="ocean"], [data-palette="coral"]) .footer-wordmark {
    width: 100px;
  }
}

/* The supplied red, black and light-gray palette. */
:root[data-palette="coral"] {
  --paper: #ffffff;
  --ink: #141414;
  --muted: #141414;
  --line: #ededed;
  --soft: #ffffff;
  --accent: #f54329;
  --accent-hover: #f54329;
  --accent-dark: #141414;
  --accent-light: #ededed;
  --accent-text: #141414;
  --accent-surface: #ededed;
  --accent-border: #14141433;
  --accent-line: #14141433;
}
:root[data-palette="coral"] .dark-button,
:root[data-palette="coral"] .hero-actions .pill-button:first-child,
:root[data-palette="coral"] .step-number {
  color: #ffffff;
}
:root[data-palette="coral"] .hero-actions .outline-button,
:root[data-palette="coral"] .text-link:hover,
:root[data-palette="coral"] .service-link:hover {
  color: var(--ink);
}
:root[data-palette="coral"] .text-link:hover,
:root[data-palette="coral"] .service-link:hover {
  border-bottom-color: var(--accent);
}
:root[data-palette="coral"] .footer {
  background: var(--ink);
  color: var(--soft);
}
:root[data-palette="coral"] .footer-top p,
:root[data-palette="coral"] .footer-bottom,
:root[data-palette="coral"] .footer-top a:hover {
  color: var(--soft);
}
:root[data-palette="coral"] .footer-bottom {
  border-top-color: #ededed33;
}
:root[data-palette="coral"] .footer-wordmark {
  background: var(--soft);
}

/* November client review: complete image frames, readable copy and deliberate red accents. */
.hero .hero-content .eyebrow {
  font-size: 0.875rem;
  letter-spacing: 0.06em;
}
.projects-heading .dark-button,
.form-actions .dark-button,
.full-width-cta .dark-button {
  font-size: 0.9375rem;
}
.contact-form .form-consent,
.contact-form .form-note,
.contact-form #form-status,
.contact-form .copy-button,
.footer-top nav a {
  font-size: 0.875rem;
  line-height: 1.7;
}
.eyebrow,
.micro,
.section-label {
  font-size: 0.875rem;
}
.pill-button,
.dark-button,
.text-link,
.service-link,
.menu-toggle {
  font-size: 0.9375rem;
}
.service-text p,
.process-steps p,
.contact-form label,
.contact-form input,
.contact-form textarea,
.bio-copy,
.contact-details,
.footer-top p {
  font-size: 1rem;
}
.service-index,
.step-number,
.project-number,
.project-card-meta,
.about-photo figcaption,
.footer-bottom,
.close-dialog,
.dialog-top,
.project-dialog-heading p,
.gallery-bottom {
  font-size: 0.875rem;
}
.hero-project-link span:first-child,
.hero-controls > span,
.hero-controls #hero-pause {
  font-size: 0.875rem;
}
.hero-project-link span:last-child {
  font-size: 1rem;
}
:root[data-palette="coral"] .eyebrow {
  color: #b02b1b;
}
:root[data-palette="coral"] .offer-section .eyebrow {
  color: #b02b1b;
}
.hero .hero-content .eyebrow {
  color: white;
}

#hero {
  height: 100svh;
  min-height: 0;
  max-height: none;
  background: #252723;
}
#hero .hero-slide {
  object-fit: cover;
  object-position: center top;
}
#hero .hero-shade {
  background: linear-gradient(180deg, #14141430, transparent 35%, #141414a6);
}
#hero .hero-content {
  bottom: 145px;
}
#hero .hero-bottom {
  bottom: 33px;
}
#hero h1 {
  font-size: clamp(36px, 4.8vw, 76px);
}
#hero .hero-actions {
  margin-top: 24px;
}
#hero .hero-project-link {
  max-width: 65%;
  flex-wrap: wrap;
  gap: 4px 20px;
}
#hero .hero-controls {
  gap: 14px;
}

.about-copy {
  border-left: 3px solid var(--accent);
  padding-left: 28px;
}
:root[data-palette="coral"] .contact-form {
  border-top: 3px solid var(--accent);
  background: #fff5f2;
  padding: clamp(24px, 3vw, 46px);
}
.contact-intro h2::after {
  content: "";
  display: block;
  width: 84px;
  height: 5px;
  background: var(--accent);
  margin-top: 28px;
}
.footer-top nav a {
  position: relative;
}
.footer-top nav a::after {
  content: "";
  display: block;
  height: 2px;
  background: var(--accent);
  width: 24px;
  margin-top: 6px;
}

.project-dialog {
  padding: 20px 28px;
}
.project-dialog-heading {
  margin: 16px 0;
}
.project-dialog-heading h2 {
  font-size: clamp(23px, 2.2vw, 34px);
}
.project-dialog-heading p {
  font-size: 0.9375rem;
}
.project-title-location {
  display: block;
}
.project-area-value,
.project-card-meta span:last-child,
.project-facts strong {
  white-space: nowrap;
}
#pracownia .about-photo {
  display: block;
  max-width: 435px;
}
#pracownia .about-photo img {
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}
.gallery-thumbnails img {
  object-fit: contain;
}
.gallery-thumbnails button span {
  display: none;
}
.gallery-overview-toggle {
  margin-bottom: 12px;
}
.gallery-overview-toggle[hidden] {
  display: none;
}
.project-dialog[data-gallery-view="overview"] .gallery-stage {
  display: none;
}
.project-dialog[data-gallery-view="overview"] .gallery-bottom {
  margin: 0 0 12px;
}
.project-dialog[data-gallery-view="overview"] .gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 0;
}
.project-dialog[data-gallery-view="overview"] .gallery-thumbnails:has(> :nth-child(4):last-child) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.project-dialog[data-gallery-view="overview"] .gallery-thumbnails button {
  min-width: 0;
  padding: 7px;
  border: 1px solid var(--line);
  background: #fafafa;
  opacity: 1;
}
.project-dialog[data-gallery-view="overview"] .gallery-thumbnails button[aria-pressed="true"] {
  border-color: var(--line);
}
.project-dialog[data-gallery-view="overview"] .gallery-thumbnails button:is(:hover, :focus-visible) {
  border-color: var(--accent);
}
.project-dialog[data-gallery-view="overview"] .gallery-thumbnails img {
  width: 100%;
  height: min(23svh, 240px);
  object-fit: contain;
}
.project-dialog[data-gallery-view="overview"] .gallery-thumbnails button span {
  display: block;
  font-size: 0.875rem;
  padding: 6px 0 0;
}
.project-dialog[data-gallery-view="detail"] .gallery-stage > img {
  height: min(48svh, 620px);
}
.project-dialog[data-gallery-view="detail"] .gallery-thumbnails {
  margin-top: 12px;
}

@media (max-width: 800px) {
  #hero {
    display: flex;
    flex-direction: column;
    height: 100svh;
    min-height: 600px;
    padding-top: 90px;
    background: var(--paper);
    color: var(--ink);
  }
  #hero .hero-slides {
    position: relative;
    flex: 0 1 auto;
    height: auto;
    min-height: 120px;
    aspect-ratio: 1.582;
    width: 100%;
  }
  #hero .hero-slide {
    object-fit: contain;
    object-position: center;
  }
  #hero .hero-shade {
    display: none;
  }
  #hero .hero-content {
    position: relative;
    flex-shrink: 0;
    bottom: auto;
    padding-top: 20px;
  }
  #hero .hero-content .eyebrow {
    color: #b02b1b;
  }
  #hero h1 {
    font-size: clamp(34px, 6vw, 44px);
  }
  #hero .hero-bottom {
    position: relative;
    flex-shrink: 0;
    bottom: auto;
    margin-top: auto;
    border-color: var(--line);
    padding: 12px 0;
    flex-wrap: wrap;
    gap: 16px;
  }
  #hero .hero-project-link {
    display: none;
  }
  #hero .hero-controls {
    width: 100%;
    justify-content: space-between;
  }
  #hero .hero-project-link span:first-child {
    opacity: 1;
  }
  #hero .hero-controls button {
    color: var(--ink);
  }
  #hero .hero-actions .outline-button {
    border-color: var(--accent);
  }
  body:has(#hero) .topbar {
    background: white;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
  }
  body:has(#hero) .brand img {
    filter: none;
  }
  .about-copy {
    padding-left: 20px;
  }
  .service-card h3,
  .service-detail h3 {
    min-height: 0;
  }
  .hero-actions .pill-button {
    font-size: 0.875rem;
    padding: 11px 15px;
  }
}
@media (max-width: 560px) {
  .project-dialog {
    width: calc(100% - 20px);
    max-height: calc(100svh - 20px);
    padding: 15px;
  }
  .project-dialog-heading {
    display: block;
    margin: 12px 0;
  }
  .project-dialog-heading p {
    text-align: left;
    margin-top: 8px;
    max-width: none;
  }
  .project-dialog .dialog-top {
    gap: 12px;
    font-size: 0.875rem;
  }
  .project-dialog .close-dialog {
    font-size: 0.875rem;
    flex-shrink: 0;
  }
  .project-dialog[data-gallery-view="overview"] .gallery-thumbnails {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .project-dialog[open][data-gallery-view="overview"] {
    display: flex;
    flex-direction: column;
    height: calc(100svh - 20px);
  }
  .project-dialog[data-gallery-view="overview"] .dialog-top,
  .project-dialog[data-gallery-view="overview"] .project-dialog-heading,
  .project-dialog[data-gallery-view="overview"] .gallery-bottom {
    flex-shrink: 0;
  }
  .project-dialog[data-gallery-view="overview"] .gallery-thumbnails {
    flex: 1;
    min-height: 0;
    grid-auto-rows: minmax(0, 1fr);
  }
  .project-dialog[data-gallery-view="overview"] .gallery-thumbnails button {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .project-dialog[data-gallery-view="overview"] .gallery-thumbnails img {
    flex: 1;
    min-height: 0;
    height: 0;
  }
  .project-dialog[data-gallery-view="overview"] .gallery-thumbnails button span {
    flex-shrink: 0;
  }
  .project-dialog[data-gallery-view="overview"] .gallery-bottom > span:last-child {
    display: none;
  }
  .project-dialog[data-gallery-view="detail"] .gallery-stage > img {
    height: 36svh;
  }
  .gallery-bottom {
    font-size: 0.875rem;
  }
  .gallery-thumbnails img {
    width: 64px;
    height: 44px;
  }
}

/* Honeypot stays outside the visible form and keyboard navigation. */
.contact-form .form-honeypot {
  display: none;
}
.contact-form button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.menu-contact,
.featured-controls[hidden] {
  display: none;
}
.menu-icon {
  display: none;
}

@media (max-width: 800px) {
  html {
    scroll-behavior: auto;
    scroll-padding-top: 94px;
  }
  body.navigation-open {
    position: fixed;
    width: 100%;
    overflow: hidden;
  }
  .topbar,
  .topbar.is-scrolled {
    height: 78px;
    transition:
      background-color 0.2s,
      color 0.2s;
  }
  .brand img {
    width: 155px;
  }
  .menu-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 8px 0 8px 12px;
  }
  .menu-toggle .menu-label {
    color: inherit;
    font-size: 14px;
    transform: none;
  }
  .menu-toggle[aria-expanded="true"] .menu-label,
  .menu-toggle[aria-expanded="true"] .menu-icon {
    transform: none;
  }
  .menu-toggle .menu-icon {
    position: relative;
    display: block;
    width: 27px;
    height: 20px;
    transform: none;
  }
  .menu-icon i {
    position: absolute;
    left: 0;
    width: 27px;
    height: 2px;
    background: currentColor;
    transition:
      transform 0.2s,
      top 0.2s;
  }
  .menu-icon i:first-child {
    top: 5px;
  }
  .menu-icon i:last-child {
    top: 14px;
  }
  .menu-toggle[aria-expanded="true"] .menu-icon i:first-child {
    top: 10px;
    transform: rotate(45deg);
  }
  .menu-toggle[aria-expanded="true"] .menu-icon i:last-child {
    top: 10px;
    transform: rotate(-45deg);
  }
  .topbar.menu-open,
  body:has(#hero) .topbar.menu-open {
    background: #fff;
    color: var(--ink);
  }
  .topbar.menu-open .brand img,
  body:has(#hero) .topbar.menu-open .brand img {
    filter: brightness(0);
  }
  .topbar #navigation {
    display: flex;
    position: fixed;
    inset: 78px 0 0;
    height: calc(100svh - 78px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 24px var(--gutter) max(28px, env(safe-area-inset-bottom));
    background: #fff;
    color: var(--ink);
    border: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition:
      opacity 0.2s,
      visibility 0.2s;
  }
  .topbar #navigation.open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }
  html.motion-enabled .topbar #navigation.open,
  html.motion-enabled .topbar #navigation.open a {
    animation: none;
  }
  .topbar #navigation > a {
    font-size: clamp(32px, 8vw, 48px);
    letter-spacing: -0.05em;
    line-height: 1.3;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
  }
  .topbar #navigation > a::after {
    display: none;
  }
  .topbar #navigation > a[aria-current] {
    color: var(--accent);
  }
  .topbar .menu-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: auto;
    padding-top: 40px;
  }
  .menu-contact p {
    font-size: 14px;
    color: var(--muted);
    margin: 0 0 5px;
  }
  .topbar .menu-contact a {
    font-size: 18px;
    padding: 4px 0;
    letter-spacing: -0.02em;
  }
  .topbar .menu-contact .menu-contact-button {
    margin-top: 12px;
    width: 100%;
    padding: 15px 20px;
    background: var(--accent);
    color: white;
    text-align: center;
    font-size: 15px;
  }
  .topbar .menu-contact a::after {
    display: none;
  }

  /* Small viewport height stays constant as the browser address bar opens/closes. */
  #hero {
    display: block;
    height: 100svh;
    min-height: 0;
    max-height: none;
    padding: 0;
    background: #252723;
    color: white;
  }
  #hero .hero-slides {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
  }
  #hero .hero-slide {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 53% 50%;
  }
  #hero .hero-shade {
    display: block;
    background:
      linear-gradient(180deg, #10151460, transparent 27%), linear-gradient(0deg, #101514eb, transparent 85%);
  }
  #hero .hero-content {
    position: absolute;
    bottom: 134px;
    padding-top: 0;
  }
  #hero .hero-content .eyebrow {
    color: white;
    font-size: 11px;
    max-width: 280px;
    margin-bottom: 18px;
  }
  #hero h1 {
    font-size: clamp(36px, 9.7vw, 58px);
    line-height: 1.08;
    max-width: 620px;
  }
  #hero .hero-actions {
    margin-top: 24px;
  }
  #hero .hero-actions .pill-button {
    font-size: 13px;
    padding: 14px 17px;
  }
  #hero .hero-actions .outline-button {
    background: white;
    color: #141414;
    border-color: white;
  }
  #hero .hero-bottom {
    position: absolute;
    bottom: max(20px, env(safe-area-inset-bottom));
    margin-top: 0;
    padding-top: 14px;
    padding-bottom: 0;
    border-color: #ffffff50;
  }
  #hero .hero-controls,
  #hero .hero-controls button {
    color: white;
  }
  #hero .hero-controls > span,
  #hero .hero-controls #hero-pause {
    font-size: 13px;
  }
  body:has(#hero) .topbar {
    background: transparent;
    color: white;
    border: 0;
  }
  body:has(#hero) .topbar .brand img {
    filter: brightness(0) invert(1);
  }
  body:has(#hero) .topbar.is-scrolled {
    background: white;
    color: var(--ink);
  }
  body:has(#hero) .topbar.is-scrolled .brand img {
    filter: brightness(0);
  }

  /* One fixed-size project frame: no scroll snapping, auto scrolling or height changes. */
  .featured-projects.is-carousel {
    display: block;
    position: relative;
    height: clamp(430px, 68svh, 620px);
    margin-inline: var(--gutter);
    overflow: hidden;
    scroll-snap-type: none;
  }
  .featured-projects.is-carousel > .project-card {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.55s,
      visibility 0.55s;
  }
  .featured-projects.is-carousel > .project-card.is-current {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .featured-projects.is-carousel .project-card > img {
    display: block;
    height: 100%;
    object-fit: cover;
    transform: none;
  }
  .featured-projects.is-carousel .project-caption h3 {
    font-size: clamp(28px, 7vw, 40px);
  }
  .featured-projects.is-carousel .project-caption p,
  .featured-projects.is-carousel .project-card-meta,
  .featured-projects.is-carousel .project-number {
    font-size: 14px;
  }
  .featured-controls:not([hidden]) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 16px 0;
  }
  .featured-controls > span {
    font-size: 14px;
    font-variant-numeric: tabular-nums;
  }
  .featured-controls > div {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .featured-controls button {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    background: white;
    border: 1px solid var(--line);
    color: var(--ink);
    border-radius: 50%;
    font-size: 23px;
  }
  .featured-controls #featured-pause {
    width: auto;
    min-width: 70px;
    border: 0;
    border-radius: 0;
    font-size: 13px;
  }
  .featured-controls button:active {
    background: var(--soft);
  }
  html.motion-enabled .process-steps > article::before {
    animation: none;
  }
}
@media (max-width: 360px) {
  #hero .hero-actions {
    gap: 8px;
  }
  #hero .hero-actions .pill-button {
    font-size: 12px;
    padding: 13px 12px;
  }
}
@media (max-width: 800px) and (orientation: landscape) {
  #hero .hero-content {
    bottom: 92px;
  }
  #hero h1 {
    font-size: 32px;
  }
  #hero .hero-content .eyebrow {
    margin-bottom: 10px;
  }
  #hero .hero-actions {
    margin-top: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .featured-projects.is-carousel > .project-card,
  .topbar #navigation,
  .menu-icon i {
    transition: none;
  }
}
/* Mobile document geometry must not follow browser-toolbar height changes. */
@media (max-width: 800px) {
  #hero {
    height: var(--mobile-viewport-height, 100svh);
  }
  .featured-projects.is-carousel {
    height: clamp(430px, calc(var(--mobile-viewport-height, 100svh) * 0.68), 620px);
  }
  .page-photo-hero {
    height: calc(var(--mobile-viewport-height, 100svh) * 0.39);
  }
  #hero .hero-slide {
    display: none;
    transition: none;
  }
  #hero .hero-slide.is-active {
    display: block;
  }
  .featured-projects.is-carousel > .project-card {
    display: none;
    transition: none;
  }
  .featured-projects.is-carousel > .project-card.is-current {
    display: block;
  }
  .page-progress {
    display: none;
  }
  dialog::backdrop {
    backdrop-filter: none;
    background: #141414cf;
  }
}
@media (max-width: 560px) {
  .page-photo-hero {
    height: calc(var(--mobile-viewport-height, 100svh) * 0.36);
  }
}
