/* WyrdTree homepage — image-led studio portfolio. */
body[data-page="home"] {
  --color-page: #f4f3ee;
  --color-section-alt: #ebece5;
  --color-surface: #f4f3ee;
  --color-ink: #25352e;
  --color-muted: #60695f;
  --color-line: #d4d8ce;
  --color-brand: #283e33;
  --color-brand-hover: #405847;
  --color-brand-dark: #20342b;
  --color-accent: #536650;
  --site-width: 1440px;
  --gutter: clamp(24px, 4.5vw, 80px);
  --section-space: clamp(76px, 8vw, 128px);
  --button-radius: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
}
body[data-page="home"] .section h2 { font-weight: 400; letter-spacing: -.045em; }
body[data-page="home"] .section-eyebrow { font-size: 10px; font-weight: 500; letter-spacing: .18em; }
body[data-page="home"] .button { box-shadow: none; font-weight: 500; letter-spacing: .02em; text-transform: none; }
body[data-page="home"] a:focus-visible,
body[data-page="home"] button:focus-visible,
body[data-page="home"] summary:focus-visible { outline: 2px solid #86bda6; outline-offset: 6px; }
body[data-page="home"] #site-header { position: absolute; top: 0; left: 0; width: 100%; z-index: 50; }
body[data-page="home"] .site-header { padding-top: 28px; padding-bottom: 24px; background: transparent; border: 0; box-shadow: none; backdrop-filter: none; }
body[data-page="home"] .nav { padding-bottom: 22px; border-bottom: 1px solid #ffffff42; }
body[data-page="home"] .brand-logo { width: 166px; filter: brightness(0) invert(1); }
body[data-page="home"] .nav-links { gap: 30px; }
body[data-page="home"] .nav-links a { color: #fff; font-size: 11px; font-weight: 400; text-transform: none; letter-spacing: .015em; }
body[data-page="home"] .nav-links a:hover { color: #d6e1c9; }
body[data-page="home"] .nav-action .button { padding: 13px 19px; background: transparent; border: 1px solid #ffffff85; color: #fff; font-size: 11px; }
body[data-page="home"] .nav-action .button:hover { background: #fff; color: #25352e; }
body[data-page="home"] .nav-toggle { border-color: #ffffff60; color: #fff; border-radius: 0; }
.home-hero { min-height: 820px; min-height: max(760px, 100svh); padding-top: 180px; padding-bottom: 30px; color: #fff; background: #25352e; display: flex; align-items: end; }
.cinematic-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% center; }
.home-hero .cinematic-image { opacity: 0; transition: opacity 1400ms ease-in-out; }
.home-hero .cinematic-image:first-child:not([aria-hidden="true"]), .home-hero .cinematic-image.is-visible { opacity: 1; }
.home-hero .hero-introduction .hero-offer { font-size: 12px; line-height: 1.6; border-left: 2px solid #d5e0c4; padding-left: 14px; margin: 22px 0; max-width: 370px; }
.hero-slideshow-toggle { background: #17291b50; border: 1px solid #ffffff60; padding: 10px 12px; color: #fff; font: inherit; font-size: 10px; cursor: pointer; }
.hero-slideshow-toggle[hidden] { display: none; }
@media (max-width: 720px) { .hero-bottom { flex-wrap: wrap; } }
@media (prefers-reduced-motion: reduce) { .home-hero .cinematic-image { transition: none; } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,20,15,.96) 0%, rgba(9,20,15,.9) 28%, rgba(9,20,15,.76) 48%, rgba(9,20,15,.3) 72%, rgba(9,20,15,.12) 100%), linear-gradient(180deg, rgba(9,20,15,.35), transparent 30%, transparent 70%, rgba(9,20,15,.65)); }
.home-hero .hero-composition { position: relative; padding: 0; }
.home-hero .section-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; color: #fff; }
.studio-dot { width: 6px; height: 6px; background: #d5e0c4; border-radius: 50%; }
.hero-story { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; width: min(100%, 680px); text-align: left; align-items: start; }
.home-hero h1 { font-size: clamp(62px, 6.2vw, 96px); line-height: 1.02; font-weight: 400; letter-spacing: -.065em; margin: 0; max-width: none; }
.home-hero h1 span { display: block; }
.home-hero h1 .hero-italic { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-style: italic; letter-spacing: -.055em; }
.home-hero .hero-introduction > p { color: #f2f1ec; font-size: 15px; line-height: 1.75; max-width: 520px; margin-left: 0; margin-right: 0; }
.hero-introduction { padding-bottom: 3px; }
.home-hero .hero-actions { gap: 25px; }
.home-hero .hero-actions .button { display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; background: #f4f3ee; color: #25352e; padding: 17px 20px; font-size: 12px; }
.home-hero .hero-actions .button:hover { background: #d9e3cd; }
.home-hero .text-link { background: transparent; border: 0; padding: 12px 0; color: #fff; font: 400 12px/1.3 "Helvetica Neue", Arial, sans-serif; letter-spacing: 0; text-transform: none; cursor: pointer; border-bottom: 1px solid #ffffff80; }
.home-hero .text-link span { margin-left: 14px; }
.hero-bottom { margin-top: clamp(48px, 8vh, 94px); padding-top: 20px; border-top: 1px solid #ffffff42; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.hero-scroll { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; display: flex; align-items: center; gap: 14px; }
.hero-scroll > span { font-size: 21px; }
.home-hero .hero-credit { text-align: right; font-size: 11px !important; color: #fff; }
.hero-credit span { display: block; color: #d2d8cd; font-size: 9px; letter-spacing: .06em; }
.hero-credit span:first-child { margin-bottom: 5px; text-transform: uppercase; }
.project-gallery { background: #f4f3ee !important; }
.gallery-kicker { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--color-line); padding-top: 18px; margin-bottom: 38px; }
.gallery-kicker .section-eyebrow { margin: 0; }
.gallery-kicker > span { font-size: 10px; letter-spacing: .14em; color: var(--color-muted); }
.gallery-heading { display: grid; grid-template-columns: 1.2fr 1fr; align-items: end; gap: 60px; margin-bottom: 68px; }
.project-gallery .gallery-heading h2 { font-size: clamp(48px, 5.8vw, 88px); line-height: 1.03; margin: 0; }
.gallery-heading h2 em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.gallery-heading > p { justify-self: end; max-width: 380px; font-size: 14px; line-height: 1.8; padding-bottom: 6px; }
.project-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 76px 5%; align-items: start; }
.project { margin: 0; grid-column: span 5; }
.project-wide { grid-column: span 7; }
.project-offset { margin-top: 160px; }
.project-last { margin-top: 130px; }
.project-image { display: block; position: relative; overflow: hidden; background: #d7dacf; aspect-ratio: 1.33; cursor: zoom-in; }
.project-offset .project-image { aspect-ratio: .88; }
.project-portrait .project-image { aspect-ratio: .8; }
.project-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 800ms cubic-bezier(.2,.7,.2,1); }
.project-image:hover img, .project-image:focus-visible img { transform: scale(1.035); }
.project-image::after { content: ""; position: absolute; inset: 65% 0 0; background: linear-gradient(transparent, #17291b70); opacity: 0; transition: opacity 250ms; }
.project-image:hover::after, .project-image:focus-visible::after { opacity: 1; }
.project-open { position: absolute; z-index: 1; right: 16px; bottom: 16px; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #ffffffa0; color: #fff; background: #1b2d2740; backdrop-filter: blur(8px); border-radius: 50%; font-size: 23px; }
.project-image-label { position: absolute; z-index: 1; left: 22px; bottom: 28px; color: #fff; font-size: 11px; opacity: 0; transform: translateY(6px); transition: opacity 250ms, transform 250ms; }
.project-image:hover .project-image-label, .project-image:focus-visible .project-image-label { opacity: 1; transform: none; }
.project figcaption { display: flex; justify-content: space-between; gap: 12px; padding-top: 20px; }
.project-number { display: block; color: var(--color-muted); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }
.project h3 { margin: 0 0 5px; font-weight: 400; font-size: clamp(20px, 2vw, 28px); line-height: 1.2; letter-spacing: -.03em; }
.project figcaption p { font-size: 11px; }
.project-year { padding-top: 3px; font-size: 10px; color: var(--color-muted); }
.gallery-footer { margin-top: 64px; padding-top: 25px; border-top: 1px solid var(--color-line); display: flex; justify-content: space-between; gap: 35px; align-items: center; }
.gallery-footer p { font-size: 12px; max-width: 480px; }
.gallery-footer p a { text-underline-offset: 3px; }
.gallery-all { flex-shrink: 0; font-size: 13px; text-decoration: none; padding-bottom: 8px; border-bottom: 1px solid; }
.gallery-all span { margin-left: 45px; }
body[data-page="home"] .home-services { background: #e6e9df; }
body[data-page="home"] .home-services h2 { max-width: 760px; }
body[data-page="home"] .service-list { margin-top: 55px; gap: 40px; }
body[data-page="home"] .service-item { border: 0; border-top: 1px solid #acb5a6; padding: 25px 0 0; background: transparent; box-shadow: none; border-radius: 0; }
body[data-page="home"] .service-item h3 { padding: 0; margin: 0 0 14px; font-size: 21px; font-weight: 400; }
body[data-page="home"] .service-item p { padding: 0; font-size: 14px; }
.service-project-image { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 26px; }
.studio-project-image { grid-column: 1 / -1; margin: 32px 0 0; }
.studio-project-image img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; }
.studio-project-image figcaption { display: flex; justify-content: space-between; gap: 12px; padding-top: 16px; font-size: 11px; color: var(--color-muted); }
@media (max-width: 720px) {
  .studio-project-image { margin-top: 20px; }
  .studio-project-image img { aspect-ratio: 4 / 3; }
  .studio-project-image figcaption { flex-direction: column; gap: 5px; }
}
body[data-page="home"] .home-bio .inner { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 80px; }
body[data-page="home"] .home-bio .section-eyebrow { grid-column: 1 / -1; }
body[data-page="home"] .home-bio h2 { grid-row: span 2; max-width: 500px; }
body[data-page="home"] .home-bio p:not(.section-eyebrow) { margin: 0; font-size: 15px; }
body[data-page="home"] .home-bio a { text-underline-offset: 4px; }
body[data-page="home"] .reviews { background: #243a30; color: #f4f3ee; }
body[data-page="home"] .reviews h2 { font: 400 11px/1.5 "Helvetica Neue", Arial, sans-serif; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 40px; }
body[data-page="home"] .reviews figure { margin: 0; }
body[data-page="home"] .reviews blockquote { margin: 0 0 30px; }
body[data-page="home"] .reviews blockquote p { max-width: 1020px; color: #f4f3ee; font: italic clamp(30px, 4vw, 58px)/1.2 Georgia, serif; letter-spacing: -.025em; }
body[data-page="home"] .reviews figcaption { color: #c5d0c0; font-size: 12px; }
body[data-page="home"] .reviews #testimonials-title { font: 400 clamp(40px, 5vw, 72px)/1.08 "Helvetica Neue", Arial, sans-serif; letter-spacing: -.045em; text-transform: none; margin-bottom: 48px; }
#testimonials-title em { font-family: Georgia, serif; font-weight: 400; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
body[data-page="home"] .reviews .testimonial-card { display: flex; flex-direction: column; border-top: 1px solid #ffffff40; padding-top: 24px; }
.testimonial-mark { font: 64px/.9 Georgia, serif; color: #aebf9e; }
body[data-page="home"] .reviews .testimonial-card blockquote { flex: 1; margin: 12px 0 32px; }
body[data-page="home"] .reviews .testimonial-card blockquote p { font-size: clamp(25px, 2.4vw, 35px); line-height: 1.3; }
.testimonial-card figcaption strong, .testimonial-card figcaption span { display: block; }
.testimonial-card figcaption { display: flex; align-items: center; gap: 16px; }
.testimonial-portrait { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 50%; object-fit: cover; border: 1px solid #ffffff30; }
.testimonial-card figcaption strong { font-weight: 500; color: #f4f3ee; margin-bottom: 6px; }
body[data-page="home"] .reviews .testimonials-source { margin: 40px 0 0; font-size: 11px; color: #c5d0c0; }
.testimonials-source a { color: inherit; text-underline-offset: 4px; }
@media (max-width: 800px) { .testimonial-grid { grid-template-columns: 1fr; gap: 36px; } }
.testimonial-carousel { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 28px; }
.testimonial-carousel::-webkit-scrollbar { display: none; }
.testimonial-carousel:focus-visible { outline: 2px solid #aebf9e; outline-offset: 6px; }
body[data-page="home"] .reviews .testimonial-carousel .testimonial-card { display: flex; flex-direction: column; gap: 26px; align-items: stretch; padding: 30px; border: 1px solid #aebf9e70; border-radius: 24px; background: #ffffff06; scroll-snap-align: start; scroll-snap-stop: always; min-width: 0; }
.testimonial-carousel .testimonial-card figcaption { flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.testimonial-carousel .testimonial-portrait { width: 88px; height: 88px; flex-basis: 88px; }
body[data-page="home"] .reviews .testimonial-carousel .testimonial-quote { margin: 0; }
body[data-page="home"] .reviews .testimonial-carousel .testimonial-quote p { margin: 0; font: 400 15px/1.8 "Helvetica Neue", Arial, sans-serif; letter-spacing: 0; color: #f4f3ee; }
body[data-page="home"] .reviews .testimonial-summary { margin: 0; color: #f4f3ee; font: 400 clamp(25px, 3vw, 42px)/1.4 Georgia, serif; }
body[data-page="home"] .reviews .testimonial-disclosure { color: #c5d0c0; font-size: 11px; margin-bottom: 18px; }
.testimonial-navigation { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid #ffffff40; padding-top: 24px; }
.testimonial-navigation[hidden] { display: none; }
.testimonial-count { font-size: 11px; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.testimonial-dots, .testimonial-arrows { display: flex; gap: 8px; }
.testimonial-navigation button { color: #f4f3ee; background: transparent; border: 1px solid #ffffff40; cursor: pointer; width: 44px; height: 44px; font: inherit; }
.testimonial-arrows button { border-radius: 50%; font-size: 20px; }
.testimonial-navigation button:hover { background: #ffffff15; }
.testimonial-dots button { width: 24px; border: 0; position: relative; }
.testimonial-dots button::after { content: ""; position: absolute; left: 0; right: 0; top: 21px; height: 2px; background: #ffffff40; }
.testimonial-dots button[aria-current="true"]::after { background: #f4f3ee; }
@media (max-width: 1000px) { .testimonial-carousel { grid-auto-columns: calc((100% - 24px) / 2); } }
@media (max-width: 720px) {
  .testimonial-carousel { grid-auto-columns: 100%; }
  body[data-page="home"] .reviews .testimonial-carousel .testimonial-card { padding: 24px; gap: 24px; }
  .testimonial-carousel .testimonial-card figcaption { flex-direction: row; align-items: center; }
  .testimonial-carousel .testimonial-portrait { width: 64px; height: 64px; flex-basis: 64px; }
  .testimonial-navigation { flex-wrap: wrap; gap: 12px; }
  .testimonial-dots { gap: 5px; }
  .testimonial-dots button { width: 16px; }
}
body[data-page="home"] .faq { background: #f4f3ee; }
body[data-page="home"] .faq-list summary { font-weight: 400; }
body[data-page="home"] .final-cta { background: #202b29; }
body[data-page="home"] .final-cta .offer-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; opacity: .28; filter: saturate(.65); pointer-events: none; }
body[data-page="home"] .final-cta::before { background: linear-gradient(90deg, #14221e40, #14221e70 50%, #14221e40); }
body[data-page="home"] .final-cta h2 { max-width: none; font-size: clamp(42px, 6vw, 88px); }
body[data-page="home"] .final-cta-content > a:last-child { display: block; margin-top: 24px; font-size: 13px; text-underline-offset: 4px; }
body[data-page="home"] .site-footer { background: #20342b; color: #f4f3ee; }
body[data-page="home"] .site-footer p, body[data-page="home"] .site-footer address, body[data-page="home"] .site-footer a, body[data-page="home"] .site-footer em, body[data-page="home"] .site-footer h2 { color: #e0e5db; }
body[data-page="home"] .footer-lockup { align-items: start; flex-direction: column; gap: 20px; }
body[data-page="home"] .footer-lockup strong { display: none; }
body[data-page="home"] .footer-bottom-wrap { border-color: #ffffff25; }
.gallery-dialog { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 24px 32px; border: 0; background: #101913; color: #f4f3ee; }
.gallery-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 18px; }
.gallery-dialog::backdrop { background: #101913; }
.gallery-dialog-top, .gallery-dialog-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.gallery-dialog-top > span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.gallery-dialog button { min-width: 48px; min-height: 48px; padding: 8px 15px; background: transparent; border: 1px solid #ffffff50; color: #fff; cursor: pointer; font: inherit; }
.gallery-dialog button:hover { background: #ffffff15; }
.gallery-dialog figure { min-height: 0; margin: 0; display: grid; place-items: center; }
.gallery-dialog img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.gallery-dialog h2 { font-size: 20px; font-weight: 400; margin: 0 0 5px; }
.gallery-dialog-credit { margin: 0; font-size: 12px; color: #becabc; }
.gallery-controls { display: flex; align-items: center; gap: 16px; }
.gallery-counter { min-width: 48px; font-size: 12px; text-align: center; }
body.gallery-open { overflow: hidden; }
/* The original grid remains the fallback until the carousel is ready. */
.project-gallery { overflow: hidden; }
.project-grid.is-carousel { display: block; position: relative; width: calc(100% + 2 * var(--gutter)); margin-left: calc(-1 * var(--gutter)); height: clamp(380px, calc(32vw + 145px), 680px); isolation: isolate; }
.is-carousel .project { position: absolute; top: 25px; left: 50%; width: 50%; margin: 0; transform: translateX(calc(-50% + var(--slide-x) * 100%)) scale(var(--slide-scale)); transform-origin: center 40%; opacity: 1; z-index: 1; transition: transform 1400ms cubic-bezier(.22,.68,.18,1), opacity 800ms; }
.is-carousel .project.is-active { transform: translateX(-50%) scale(1); z-index: 3; }
.is-carousel .project.is-away { opacity: 0; pointer-events: none; }
.project-grid.is-carousel { touch-action: pan-y pinch-zoom; cursor: grab; user-select: none; }
.is-carousel .project .project-image { cursor: grab; -webkit-user-drag: none; }
.is-carousel.is-dragging, .is-carousel.is-dragging .project-image { cursor: grabbing; }
.is-carousel.is-scrubbing .project { transition-duration: 1200ms; }
.is-carousel.is-scrubbing .project figcaption, .is-carousel.is-scrubbing .project .project-image { transition-duration: 800ms; transition-delay: 0ms; }
.is-carousel .project .project-image { aspect-ratio: 1.6; box-shadow: 0 22px 42px -26px #16261d75; }
.is-carousel .project:not(.is-active) .project-image { filter: saturate(.7) brightness(.8); }
.is-carousel .project .project-image { transition: filter 1400ms; }
.is-carousel .project figcaption { opacity: 0; transform: translateY(8px); transition: opacity 400ms, transform 600ms; }
.is-carousel .project.is-active figcaption { opacity: 1; transform: none; transition-delay: 350ms; }
.project-navigation { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 12px; }
.project-position { font-size: 11px; letter-spacing: .15em; font-variant-numeric: tabular-nums; }
.project-pagination, .project-buttons { display: flex; align-items: center; gap: 8px; }
.project-pagination { flex-wrap: wrap; justify-content: center; }
.project-navigation button { color: var(--color-ink); background: transparent; border: 1px solid var(--color-line); min-width: 44px; height: 44px; cursor: pointer; font: inherit; }
.project-buttons button { border-radius: 50%; font-size: 20px; transition: background 200ms, color 200ms; }
.project-buttons [data-pause] { border-radius: 0; border: 0; font-size: 11px; min-width: 56px; }
.project-buttons button:hover { background: var(--color-ink); color: var(--color-page); }
.project-pagination button { position: relative; border: 0; min-width: 30px; }
.project-pagination button::after { content: ""; position: absolute; inset: 21px 0 auto; height: 2px; background: var(--color-line); transition: background 400ms; }
.project-pagination button[aria-current="true"]::after { background: var(--color-ink); }
@media (max-width: 720px) {
  .project-grid.is-carousel { height: calc(42vw + 145px); }
  .is-carousel .project { width: 56%; top: 12px; transform: translateX(calc(-50% + var(--slide-mobile-x) * 100%)) scale(var(--slide-scale)); }
  .is-carousel .project .project-image { aspect-ratio: 1.35; }
  .is-carousel .project h3 { font-size: 18px; }
  .is-carousel .project-year { display: none; }
  .project-navigation { gap: 10px; flex-wrap: wrap; }
  .project-pagination { gap: 5px; }
  .project-pagination button { min-width: 18px; }
  .project-buttons { gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .is-carousel .project, .is-carousel .project figcaption, .is-carousel .project .project-image { transition: none !important; }
}
@media (min-width: 1800px) { .home-hero { min-height: 1000px; } }
@media (max-width: 1000px) {
  .hero-story { grid-template-columns: 1fr; gap: 28px; }
  .home-hero h1 { font-size: clamp(62px, 9.5vw, 90px); }
  .home-hero .hero-introduction > p { max-width: 570px; }
  .home-hero { min-height: max(850px, 100svh); }
  .hero-bottom { margin-top: 46px; }
  .gallery-heading { gap: 35px; }
  .project-grid { gap: 50px 5%; }
  .project-offset { margin-top: 100px; }
  .project-last { margin-top: 90px; }
}
@media (max-width: 720px) {
  body[data-page="home"] .site-header { padding-top: 20px; }
  body[data-page="home"] .nav { padding-bottom: 18px; }
  body[data-page="home"] .brand-logo { width: 128px; }
  body[data-page="home"] .nav-links { padding: 16px; margin-top: 10px; background: #20342bf5; border: 1px solid #ffffff25; }
  body[data-page="home"] .nav-action .button { font-size: 10px; padding: 10px; }
  .home-hero { min-height: max(820px, 100svh); padding-top: 150px; padding-bottom: 24px; }
  .cinematic-image { object-position: 58% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(9,20,15,.93), rgba(9,20,15,.72) 70%, rgba(9,20,15,.55)), linear-gradient(180deg, rgba(9,20,15,.2), transparent 25%, rgba(9,20,15,.55)); }
  .home-hero h1 { font-size: clamp(48px, 9.8vw, 72px); }
  .home-hero .section-eyebrow { font-size: 8px; letter-spacing: .12em; }
  .home-hero .hero-introduction > p { font-size: 14px; line-height: 1.7; }
  .home-hero .hero-actions { gap: 18px; }
  .home-hero .hero-actions .button { padding: 15px; gap: 20px; font-size: 11px; }
  .home-hero .text-link { font-size: 11px; }
  .hero-scroll { font-size: 8px; gap: 8px; }
  .home-hero .hero-credit { max-width: 180px; font-size: 9px !important; }
  .hero-credit span { font-size: 8px; }
  .gallery-heading { grid-template-columns: 1fr; gap: 24px; margin-bottom: 38px; }
  .gallery-heading > p { justify-self: start; max-width: 440px; font-size: 13px; }
  .gallery-kicker { margin-bottom: 30px; }
  .project-grid { grid-template-columns: 1fr; gap: 40px; }
  .project, .project-wide { grid-column: auto; margin-top: 0; }
  .project-image, .project-offset .project-image, .project-portrait .project-image { aspect-ratio: 1.2; }
  .project-portrait .project-image { aspect-ratio: 1; }
  .project figcaption { padding-top: 15px; }
  .project-open { width: 36px; height: 36px; }
  .gallery-footer { flex-direction: column; align-items: start; margin-top: 40px; gap: 25px; }
  body[data-page="home"] .home-bio .inner { grid-template-columns: 1fr; gap: 20px; }
  body[data-page="home"] .home-bio h2 { grid-row: auto; }
  .gallery-dialog { padding: 18px; }
  .gallery-dialog-bottom { align-items: start; flex-direction: column; }
  .gallery-controls { align-self: end; }
  .gallery-dialog h2 { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .project-image img, .project-image::after, .project-image-label { transition: none; }
}

/* A quiet continuous pan keeps the layered composition alive between slides. */
@keyframes project-drift {
  from { transform: scale(1.045) translate3d(.65%, .3%, 0); }
  to { transform: scale(1.105) translate3d(-.65%, -.3%, 0); }
}
.is-carousel .project-image img { animation: project-drift 9s ease-in-out infinite alternate; animation-play-state: paused; }
.is-carousel.is-running .project-image img { animation-play-state: running; }
.is-carousel .project:nth-child(2n) img { animation-delay: -4s; }
.is-carousel .project:nth-child(3n) img { animation-delay: -7s; }
@media (prefers-reduced-motion: reduce) {
  .is-carousel .project-image img { animation: none; }
}

/* Local chat preview. */
.studio-chat { position: fixed; right: 24px; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 80; font-family: "Helvetica Neue", Arial, sans-serif; }
.studio-chat button { font: inherit; cursor: pointer; }
.studio-chat-launcher { display: flex; align-items: center; gap: 12px; margin-left: auto; padding: 8px 20px 8px 8px; border: 1px solid #d4d8ce; border-radius: 50px; background: #f4f3ee; color: #25352e; box-shadow: 0 8px 32px #10251c35; font-size: 13px !important; }
.studio-chat img { display: block; border-radius: 50%; object-fit: cover; object-position: center 35%; flex-shrink: 0; width: 48px; height: 48px; }
.studio-chat-panel { display: flex; flex-direction: column; width: 360px; max-height: calc(100dvh - 120px); margin-bottom: 14px; overflow: hidden; border: 1px solid #d4d8ce; border-radius: 20px; background: #f4f3ee; color: #25352e; box-shadow: 0 18px 70px #10251c40; }
.studio-chat-panel[hidden] { display: none; }
.studio-chat-header { display: flex; align-items: center; gap: 12px; padding: 20px; background: #243a30; color: #fff; }
.studio-chat-header h2 { font-size: 14px; font-weight: 500; margin: 0 0 4px; letter-spacing: 0; }
.studio-chat-header span { font-size: 11px; color: #c5d0c0; }
.studio-chat-header button { margin-left: auto; min-width: 36px; height: 36px; background: transparent; color: #fff; border: 0; font-size: 25px; }
.studio-chat-messages { min-height: 100px; max-height: 260px; overflow-y: auto; padding: 20px; }
.studio-chat-message { max-width: 92%; margin: 0 0 12px; padding: 13px 15px; border-radius: 0 14px 14px; background: #e5e9df; color: #25352e; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.studio-chat-message.is-outgoing { margin-left: auto; background: #243a30; color: #fff; border-radius: 14px 0 14px 14px; }
.studio-chat-offer { padding: 0 20px 16px; }
.studio-chat-offer button { text-align: left; background: transparent; border: 1px solid #b4bfae; border-radius: 20px; padding: 10px 14px; color: #25352e; font-size: 12px; }
.studio-chat-form { border-top: 1px solid #d4d8ce; padding: 14px 20px 0; }
.studio-chat-label { display: block; margin-bottom: 8px; font-size: 11px; }
.studio-chat-form > div { display: flex; gap: 8px; }
.studio-chat-form input { flex: 1; min-width: 0; width: 100%; border: 1px solid #d4d8ce; border-radius: 8px; background: #fff; padding: 10px; font: inherit; font-size: 12px; color: #25352e; }
.studio-chat-form button { width: 42px; flex-shrink: 0; border: 0; border-radius: 50%; background: #243a30; color: #fff; font-size: 22px; }
.studio-chat-note { margin: 10px 20px 16px; color: #60695f; font-size: 10px; }
@media (max-width: 480px) {
  .studio-chat { right: 14px; bottom: max(14px, env(safe-area-inset-bottom)); }
  .studio-chat-panel { width: calc(100vw - 28px); }
  .studio-chat-launcher { padding-right: 15px; }
}
