/* Home chapters: fluid editorial layouts, following the Figma composition. */
.chapter { padding: 64px var(--page-margin) 96px; scroll-margin-top: 32px; }
.chapter > .section-label { border: 0; padding: 0; margin: 0 0 28px; color: #8c503b; }
.chapter-heading { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 7vw, 100px); align-items: end; margin-bottom: 58px; }
.chapter h2 { margin: 0; font: 400 clamp(44px, 5.1vw, 76px)/1.04 var(--font-display); letter-spacing: -1.3px; }
.chapter h3 { font: 400 clamp(30px, 3.4vw, 50px)/1.12 var(--font-display); letter-spacing: -.6px; margin: 0 0 24px; }
.chapter p { line-height: 1.7; }
.chapter .lead { font-size: 18px; max-width: 540px; margin: 28px 0 0; color: #57594f; }
.chapter figure { margin: 0; overflow: hidden; }
.chapter figure > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.chapter .text-link { font-size: 14px; color: #8c503b; gap: 18px; min-height: 48px; margin-top: 20px; }
.project-facts { display: grid; gap: 22px; margin: 0 0 0 auto; min-width: 220px; }
.project-facts dt { font: 11px var(--font-mono); text-transform: uppercase; color: #8c503b; margin-bottom: 7px; }
.project-facts dd { margin: 0; font-size: 14px; }
.project-images { position: relative; padding: 0 0 48px; display: grid; grid-template-columns: 4fr 1fr; }
.project-images figure:first-child { aspect-ratio: 1.7; }
.project-images figure { position: relative; }
.project-images figure:last-child { width: 28%; height: 75%; position: absolute; right: 0; bottom: 0; box-shadow: 0 16px 40px rgb(57 42 35 / 12%); }
.project-images figcaption { position: absolute; bottom: 0; inset-inline: 0; padding: 32px 20px 20px; color: #fff; background: linear-gradient(transparent, #242421a8); font: 11px var(--font-mono); }
.narrative { display: grid; grid-template-columns: 1fr 1fr; gap: 12%; border-top: 1px solid #c9c2b7; margin-top: 64px; padding-top: 44px; }
.narrative p { margin: 0; max-width: 480px; }
.materials-story { background: #e9e3d9; }
.material-browser { display: grid; grid-template-columns: 1.1fr 1fr; gap: 9%; align-items: center; }
.material-stage { height: clamp(360px, 42vw, 600px); }
.material-info > p:not(.metadata) { max-width: 420px; min-height: 90px; }
.material-info .metadata { margin-bottom: 24px; }
.swatch-list { display: flex; gap: 24px; margin: 36px 0 16px; }
.swatch { font: inherit; font-size: 12px; background: transparent; color: inherit; border: 0; padding: 8px; display: grid; gap: 12px; cursor: pointer; text-align: left; border-bottom: 2px solid transparent; }
.swatch img { object-fit: cover; width: 80px; height: 90px; }
.swatch[aria-pressed="true"] { border-bottom-color: #8c503b; background: rgb(246 243 237 / 55%); }
.environment-layout { display: grid; grid-template-columns: 1.25fr 1fr; gap: 7%; align-items: start; }
.environment-layout figure { position: sticky; top: 32px; }
.environment-layout figure img { height: 580px; }
.environment-layout figcaption { padding-top: 18px; color: #57594f; }
.environment-list details { border-top: 1px solid #c9c2b7; padding: 0 0 8px; }
.environment-list details:last-child { border-bottom: 1px solid #c9c2b7; }
.environment-list summary { list-style: none; display: flex; align-items: center; gap: 20px; min-height: 84px; font: 32px var(--font-display); cursor: pointer; }
.environment-list summary::-webkit-details-marker { display: none; }
.environment-list summary .metadata { color: #8c503b; font-size: 11px; }
.detail-sign { margin-left: auto; font: 24px var(--font-sans); }
.detail-sign::after { content: '+'; }
details[open] .detail-sign::after { content: '−'; }
.environment-list details p { margin: 0 0 12px 38px; max-width: 400px; font-size: 15px; color: #57594f; }
.environment-list details a { display: inline-flex; align-items: center; min-height: 44px; margin: 0 0 16px 38px; font-size: 13px; color: #8c503b; }
.process-story { background: #392a23; color: #f6f3ed; }
.process-story > .section-label { color: #d2a28b; border-color: #73675e; }
.process-story .lead { color: #d4ccc0; }
.process-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 10%; align-items: start; }
.process-steps { padding: 0; margin: 0; list-style: none; }
.process-steps li { padding: 26px 0; border-top: 1px solid #73675e; }
.process-steps .metadata { color: #d2a28b; }
.process-steps h3 { font-size: 32px; margin: 16px 0 10px; }
.process-steps p { color: #d4ccc0; margin: 0; max-width: 440px; }
.process-layout figure img { max-height: 730px; aspect-ratio: 4/5; }
.process-layout figcaption { color: #d4ccc0; padding: 20px 0; line-height: 1.7; }
.precision-layout { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 8%; }
.precision-layout figure { height: 520px; }
.precision-layout .metadata { color: #8c503b; margin-bottom: 26px; }
.detail-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 32px; font: 11px/1.6 var(--font-mono); }
.detail-notes span { padding-top: 14px; border-top: 1px solid #c9c2b7; }
.lived-story { background: #e9e3d9; }
.lived-image { height: clamp(380px, 48vw, 680px); position: relative; }
.lived-image figcaption { position: absolute; inset: auto 0 0; padding: 56px 32px 28px; font: 28px var(--font-display); color: #fff; background: linear-gradient(transparent,#242421b3); }
.chapter .lived-line { text-align: center; font: 400 clamp(36px, 4.4vw, 64px)/1.15 var(--font-display); margin: 70px 0 4px; }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 9%; }
.contact-invitation { background: #e9e3d9; padding: 40px; overflow: hidden; }
.contact-invitation h3 { margin-top: 32px; }
.contact-number { font-size: 14px; }
.contact-materials { display: flex; height: 190px; margin: 40px -40px -40px; }
.contact-materials img { object-fit: cover; width: 55%; min-width: 0; }
.contact-materials img:last-child { width: 45%; }
#project-form { display: flex; flex-direction: column; align-items: stretch; }
#project-form > .metadata { color: #8c503b; margin: 0 0 24px; }
#project-form label { font-size: 13px; margin-top: 20px; }
#project-form input, #project-form select, #project-form textarea { width: 100%; min-height: 52px; border: 0; border-bottom: 1px solid #8d8177; border-radius: 0; background: transparent; color: #242421; padding: 12px 0; font: 15px/1.6 var(--font-sans); }
#project-form textarea { resize: vertical; }
.optional, .form-note { color: #57594f; font-size: 12px; }
.form-note { margin: 24px 0; }
#project-form .button { align-self: start; cursor: pointer; gap: 28px; }
.site-footer { background: #392a23; color: #f6f3ed; padding: 64px var(--page-margin) 28px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer-top > p { font: 44px/1.1 var(--font-display); margin: 0; }
.footer-top nav, .footer-top > div { display: flex; flex-direction: column; align-items: start; }
.footer-top a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.footer-top > div > span { font-size: 12px; color: #d4ccc0; }
.footer-wordmark { font: 400 clamp(80px, 16vw, 250px)/1 var(--font-sans); letter-spacing: .055em; text-align: center; border-top: 1px solid #73675e; margin-top: 56px; padding: 36px 0; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; color: #d4ccc0; font-size: 10px; }
.footer-bottom a { min-height: 44px; display: inline-flex; align-items: center; }
@media (min-width: 768px) and (max-width: 1000px) {
  .manifesto { min-height: 1160px; }
  .manifesto h2 { font-size: 44px; line-height: 1.08; }
  .chapter-heading { grid-template-columns: 1.2fr 1fr; gap: 36px; }
  .environment-layout { gap: 32px; }
  .environment-list summary { font-size: 26px; }
  .precision-layout { gap: 32px; }
  .contact-invitation { padding: 28px; }
  .contact-materials { margin-inline: -28px; margin-bottom: -28px; }
}
@media (max-width: 767px) {
  .chapter { padding: 40px var(--page-margin) 64px; }
  .chapter > .section-label { margin-bottom: 22px; font-size: 10px; }
  .chapter-heading, .material-browser, .environment-layout, .process-layout, .precision-layout, .contact-layout, .narrative { grid-template-columns: 1fr; gap: 32px; }
  .chapter-heading { margin-bottom: 36px; }
  .chapter h2 { font-size: 42px; letter-spacing: -.7px; }
  .chapter .lead { font-size: 16px; margin-top: 16px; }
  .chapter h3 { font-size: 34px; }
  .project-facts { margin: 0; grid-template-columns: 1fr 1fr; min-width: 0; gap: 20px; }
  .project-facts dd { font-size: 12px; }
  .project-images { display: block; padding-bottom: 0; }
  .project-images figure:first-child { aspect-ratio: .95; }
  .project-images figure:last-child { position: relative; height: 240px; width: 75%; margin: -32px 0 0 auto; }
  .narrative { margin-top: 36px; padding-top: 32px; }
  .narrative h3 { margin-bottom: 0; }
  .material-stage { height: 370px; }
  .material-info > p:not(.metadata) { min-height: 0; }
  .environment-layout figure { position: static; }
  .environment-layout figure img { height: 360px; }
  .environment-list summary { font-size: 28px; min-height: 76px; }
  .process-layout figure { order: -1; }
  .process-layout figure img { max-height: 460px; }
  .precision-layout figure { height: 330px; }
  .lived-image { height: 420px; }
  .lived-image figcaption { font-size: 25px; padding-inline: 20px; }
  .chapter .lived-line { font-size: 36px; margin-top: 44px; }
  .contact-invitation { padding: 28px; }
  .contact-materials { margin: 32px -28px -28px; height: 140px; }
  #project-form .button { align-self: stretch; }
  .site-footer { padding-top: 48px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer-top > p { grid-column: 1/-1; font-size: 38px; }
  .footer-top a { font-size: 12px; }
  .footer-bottom { align-items: start; flex-direction: column; gap: 8px; }
}

/* Editorial project composition; the flight reads the final image dimensions. */
.project-story { padding-top: 88px; padding-bottom: 88px; }
.project-opening { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.project-summary { padding: 24px 0; }
.project-summary .section-label { color: #8c503b; margin: 0 0 48px; font-size: 11px; letter-spacing: 1.2px; }
.project-story h2 { margin: 0; letter-spacing: -1.8px; }
.project-type { display: block; font: 400 clamp(28px, 2.6vw, 40px)/1.2 var(--font-display); letter-spacing: -.4px; margin-bottom: 4px; }
.project-name { display: block; font: 400 clamp(62px, 6.4vw, 96px)/1.04 var(--font-display); letter-spacing: -2.6px; }
.project-story .lead { max-width: 420px; font-size: 16px; line-height: 1.8; margin: 30px 0 0; color: #57594f; }
.project-story .project-facts { margin: 32px 0 0; padding: 22px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; min-width: 0; border-top: 1px solid #cfc6ba; border-bottom: 1px solid #cfc6ba; }
.project-story .project-facts dt { font-size: 10px; letter-spacing: .8px; color: #696256; margin-bottom: 9px; }
.project-story .project-facts dd { font-size: 13px; }
.project-story .project-contact { display: flex; justify-content: space-between; gap: 20px; padding: 0; margin-top: 24px; border-radius: 0; text-align: left; font-size: 14px; min-height: 48px; }
.project-contact-arrow { display: grid; place-items: center; flex: 0 0 44px; height: 44px; border: 1px solid #b7a89b; border-radius: 50%; font-size: 20px; transition: background .25s, color .25s; }
.project-contact:hover .project-contact-arrow { background: #392a23; border-color: #392a23; color: #f6f3ed; }
.project-panorama { height: auto; aspect-ratio: 1.12; }
@media (min-width: 768px) and (max-width: 1000px) {
  .project-opening { gap: 32px; grid-template-columns: 1fr 1fr; }
  .project-name { font-size: 60px; }
  .project-panorama { aspect-ratio: .75; }
  .project-summary .section-label { margin-bottom: 32px; }
}
@media (max-width: 767px) {
  .project-story { padding-top: 48px; padding-bottom: 56px; }
  .project-opening { grid-template-columns: 1fr; gap: 36px; }
  .project-summary { padding: 0; }
  .project-summary .section-label { margin-bottom: 32px; font-size: 10px; }
  .project-type { font-size: 28px; }
  .project-name { font-size: clamp(58px, 15vw, 72px); letter-spacing: -1.8px; }
  .project-story .lead { margin-top: 24px; }
  .project-panorama { aspect-ratio: 1; }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .project-panorama > img {
    transform: scale(1);
    transform-origin: center;
    transition: transform 850ms cubic-bezier(.22, 1, .36, 1);
  }
  html:not(.project-flight-active) .project-panorama:hover > img {
    transform: scale(1.04);
  }
}

/* Compact chapters 03–08. Hero and featured project retain their own layout. */
.chapter:not(.project-story) { padding-bottom: 64px; }
.chapter:not(.project-story) .chapter-heading { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 7%; margin-bottom: 36px; }
.chapter:not(.project-story) h2 { font-size: clamp(40px, 4.2vw, 60px); line-height: 1.06; letter-spacing: -1px; }
.chapter:not(.project-story) .chapter-heading .lead { font-size: 16px; line-height: 1.75; margin: 0; max-width: 470px; }
.chapter:not(.project-story) .text-link { padding-left: 0; padding-right: 0; justify-content: flex-start; }
.material-browser { grid-template-columns: 1fr 1fr; gap: 7%; }
.material-stage { height: 420px; }
.chapter .material-stage > img { width: 128%; max-width: none; object-position: left center; }
.material-info .metadata { margin: 0 0 12px; color: #696256; }
.material-info h3 { font-size: 38px; margin-bottom: 16px; }
.material-info > p:not(.metadata) { min-height: 0; margin: 0; font-size: 15px; max-width: 450px; }
.material-info > .material-select-label { margin: 22px 0 10px !important; font-size: 12px !important; font-weight: 600; }
.swatch-list { margin: 0 0 8px; gap: 16px; }
.swatch { padding: 10px 12px; grid-template-columns: 52px 1fr; align-items: center; gap: 12px; border: 1px solid #b9aea0; min-height: 74px; }
.swatch img { width: 52px; height: 52px; object-position: left; }
.swatch[aria-pressed="true"] { border: 1px solid #8c503b; background: #f6f3ed; }
.swatch:hover { background: rgb(246 243 237 / 65%); }
.material-info .text-link { margin-top: 12px; }
.environment-layout { grid-template-columns: 1.1fr 1fr; gap: 7%; }
.environment-layout figure img { height: 470px; }
.environment-list summary { min-height: 66px; font-size: 28px; }
.environment-list details { padding-bottom: 0; }
.environment-list details p { font-size: 14px; margin-bottom: 4px; }
.environment-list details a { margin-bottom: 10px; }
.process-layout { gap: 7%; align-items: center; }
.process-steps li { padding: 18px 0; }
.process-steps h3 { font-size: 28px; margin: 10px 0 6px; }
.process-steps p { font-size: 14px; line-height: 1.7; }
.process-layout figure img { height: 510px; aspect-ratio: auto; object-position: center; }
.precision-layout { grid-template-columns: 1.1fr 1fr; gap: 7%; }
.precision-layout figure { height: 400px; }
.precision-layout h3 { font-size: 36px; margin-bottom: 16px; }
.precision-layout p { font-size: 15px; }
.precision-layout .metadata { margin: 0 0 14px; font-size: 11px; }
.detail-notes { margin-top: 22px; gap: 14px; }
.lived-image { height: 440px; }
.chapter .lived-line { font-size: 36px; margin-top: 32px; }
.contact-layout { gap: 7%; align-items: start; }
.contact-invitation { padding: 32px; }
.contact-invitation h3 { font-size: 38px; margin: 24px 0 16px; }
.contact-materials { height: 160px; margin: 28px -32px -32px; }
#project-form > .metadata { margin-bottom: 12px; }
#project-form label { margin-top: 14px; }
.form-note { margin: 18px 0; }
@media (min-width: 768px) and (max-width: 1000px) {
  .swatch-list { flex-wrap: wrap; gap: 10px; }
  .swatch { min-height: 58px; padding: 8px; }
  .swatch img { width: 40px; height: 40px; }
  .material-info h3 { font-size: 32px; }
  .process-layout figure img { height: 500px; }
}
@media (max-width: 767px) {
  .chapter:not(.project-story) { padding-bottom: 48px; }
  .chapter:not(.project-story) .chapter-heading { grid-template-columns: 1fr; gap: 18px; margin-bottom: 28px; }
  .chapter:not(.project-story) h2 { font-size: 38px; }
  .chapter:not(.project-story) .chapter-heading .lead { font-size: 15px; }
  .material-browser, .environment-layout, .precision-layout { grid-template-columns: 1fr; gap: 26px; }
  .material-stage { height: 280px; }
  .material-info h3 { font-size: 32px; }
  .swatch-list { gap: 10px; }
  .swatch { flex: 1; min-width: 0; grid-template-columns: 1fr; gap: 8px; font-size: 11px; }
  .swatch img { width: 44px; height: 44px; }
  .environment-layout figure img { height: 300px; }
  .environment-list summary { min-height: 64px; font-size: 26px; }
  .process-layout { gap: 26px; }
  .process-layout figure img { height: 340px; }
  .precision-layout figure { height: 280px; }
  .precision-layout h3 { font-size: 30px; }
  .lived-image { height: 310px; }
  .chapter .lived-line { font-size: 28px; margin-top: 24px; }
  .contact-layout { gap: 28px; }
  .contact-invitation { padding: 24px; }
  .contact-invitation h3 { font-size: 32px; }
  .contact-materials { margin: 24px -24px -24px; height: 110px; }
}

/* Preserve the full living-room composition at every viewport size. */
.chapter .lived-image { height: auto; }
.chapter .lived-image > img { height: auto; aspect-ratio: auto; }

.contact-map { margin: 28px -32px -32px; }
.contact-map iframe { display: block; width: 100%; height: 300px; border: 0; }
.contact-map-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 16px 24px; font-size: 12px; line-height: 1.6; }
.contact-map-caption span { color: #625e55; }
.contact-map-caption a { color: #8c503b; text-underline-offset: 4px; }
.contact-map-caption a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
@media (max-width: 767px) {
  .contact-map { margin: 24px -24px -24px; }
  .contact-map iframe { height: 260px; }
}

/* Contact card: compact heading and warm neutral map. */
.contact-invitation { padding: 0; overflow: hidden; border: 1px solid #d7cfc3; background: #eee8df; }
.contact-card-heading { padding: 28px 32px 24px; }
.contact-card-heading .metadata { margin: 0; font-size: 10px; color: #8c503b; }
.contact-card-heading h3 { margin: 18px 0 24px; font-size: clamp(30px, 2.5vw, 40px); line-height: 1.08; }
.contact-direct { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding-top: 18px; border-top: 1px solid #d0c5b7; text-decoration: none; color: #392a23; }
.contact-direct small { display: block; font-size: 10px; letter-spacing: .07em; margin-bottom: 5px; }
.contact-direct strong { font-size: 18px; font-weight: 500; }
.contact-direct-arrow { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #b7a592; border-radius: 50%; transition: background .2s, color .2s; }
.contact-direct:hover .contact-direct-arrow { background: #392a23; color: #f6f3ed; }
.contact-direct:focus-visible { outline: 2px solid #8c503b; outline-offset: 5px; }
.contact-invitation .contact-map { margin: 0; border-top: 1px solid #d7cfc3; }
.contact-map iframe { height: 290px; filter: saturate(.55) contrast(1.2) brightness(.96); }
.contact-map-caption { padding: 15px 24px; font-size: 11px; background: #eee8df; }
@media (max-width: 767px) {
  .contact-invitation { padding: 0; }
  .contact-card-heading { padding: 24px; }
  .contact-map iframe { height: 260px; }
}
.portfolio-note { margin: 24px 0; font-size: 12px; line-height: 1.6; color: #e2d8cb; }
@media (min-width: 768px) and (max-width: 1000px) {
  .environment-layout { grid-template-columns: 1fr; gap: 28px; }
  .environment-layout figure img { height: auto; aspect-ratio: 3 / 2; }
}
