@font-face {
  font-family: "DM Serif Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/fonts/dm-serif-display-regular.ttf") format("truetype");
}

@font-face {
  font-family: "DM Serif Display";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/fonts/dm-serif-display-italic.ttf") format("truetype");
}

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

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

:root {
  --header-height: 76px;
  color-scheme: light;
  --color-cream: #f3f0e8;
  --color-ink: #252a22;
  --color-olive: #4e5845;
  --color-white: #fffef9;
  font-family: "Manrope", sans-serif;
  color: var(--color-ink);
  background: var(--color-cream);
  font-synthesis: none;
}

* { box-sizing: border-box; }
.entrance-curtain { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--color-ink); color: var(--color-cream); pointer-events: none; }
.entrance-signature { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.entrance-signature__name { font: 500 clamp(48px, 7vw, 88px)/1 "Cormorant Garamond", Georgia, serif; letter-spacing: .14em; padding-left: .14em; }
.entrance-signature__line { width: 64px; height: 1px; background: currentColor; opacity: .55; }
.entrance-signature__caption { font-size: 10px; letter-spacing: .28em; }
@media (prefers-reduced-motion: reduce) { .entrance-curtain { display: none; } }
body, h1, p { margin: 0; }
button { font: inherit; border: 0; cursor: pointer; }
button:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./assets/fonts/cormorant-medium.ttf") format("truetype");
}

.site-header { height: var(--header-height); background: var(--color-cream); position: relative; z-index: 2; }
.site-header__inner { height: 100%; max-width: 1440px; margin: auto; padding-inline: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; flex-direction: column; gap: 3px; width: 160px; color: inherit; text-decoration: none; flex-shrink: 0; }
.brand__name { font-family: "Cormorant Garamond", Georgia, serif; font-size: 28px; line-height: 30px; font-weight: 500; letter-spacing: 2.5px; }
.brand__tagline { font-size: 8px; line-height: 12px; font-weight: 500; letter-spacing: 1.25px; }
.desktop-nav { display: flex; gap: 24px; font-size: 13px; line-height: 20px; letter-spacing: .2px; }
.header-cta { width: 200px; height: 42px; display: flex; justify-content: space-between; align-items: center; padding: 0 18px; border-radius: 2px; background: var(--color-olive); color: var(--color-cream); font-size: 14px; text-decoration: none; }
.header-cta:hover { background: #3d4635; }
a:focus-visible, summary:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.mobile-menu { display: none; }
.desktop-nav a { color: inherit; text-decoration: none; }
.desktop-nav a:hover { text-decoration: underline; text-underline-offset: 5px; }

.hero {
  position: relative;
  isolation: isolate;
  height: calc(100vh - var(--header-height));
  height: calc(100dvh - var(--header-height));
  min-height: 0;
  display: flex;
  align-items: center;
  color: var(--color-white);
  background: var(--color-ink);
}

/* Projects: dimensions follow the desktop and mobile Figma frames. */
.projects { max-width: 1440px; margin-inline: auto; padding: 88px 64px; display: grid; gap: 40px; scroll-margin-top: 32px; }
.projects__intro { display: grid; grid-template-columns: 1.69fr 1fr; gap: 64px; align-items: start; }
.projects h2, .projects h3 { margin: 0; font-family: "DM Serif Display", Georgia, serif; font-weight: 400; }
.projects h2, .featured-project h3 { font-size: clamp(40px, 4.444vw, 64px); line-height: 1.0625; }
.projects__intro > p { font-size: 16px; line-height: 26px; color: #6b6c62; }
.featured-project { display: grid; grid-template-columns: 480fr 832fr; color: var(--color-cream); }
.featured-project__content { position: relative; isolation: isolate; padding: 56px 48px; min-height: 540px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 24px; }
.featured-project__content::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--color-ink); transform-origin: right center; }
.project-label { font-size: 12px; line-height: 18px; font-weight: 500; }
.featured-project__content > p:not(.project-label) { font-size: 16px; line-height: 26px; }
.featured-project__image { min-width: 0; position: relative; }
.featured-project__image > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.project-button { width: 238px; min-height: 48px; padding: 12px 20px; border: 1px solid var(--color-olive); border-radius: 2px; background: transparent; color: var(--color-ink); display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 14px; line-height: 20px; font-weight: 500; }
.project-button:disabled { cursor: default; }
.project-button--light { background: var(--color-cream); border: 0; border-radius: 0; width: 216px; min-height: 52px; padding: 16px 24px; }
.categories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.category { min-width: 0; }
.category__image { width: 100%; height: auto; aspect-ratio: 640 / 336; object-fit: cover; display: block; }
.category__body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 12px; }
.category h3 { font-size: 32px; line-height: 38px; }
.projects__notice { font-size: 12px; line-height: 18px; font-weight: 500; color: #6b6c62; }
.image-transition { position: fixed; top: 0; left: 0; z-index: 1; overflow: hidden; pointer-events: none; contain: layout paint; transform-origin: 0 0; }
.image-transition[hidden] { display: none; }
.image-transition__zoom { width: 100%; height: 100%; }
.image-transition img { display: block; max-width: none; transform-origin: 0 0; }
.image-transition-active .image-transition, .image-transition-active .image-transition img { will-change: transform; }
.image-transition::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(15 18 10 / 78%), rgb(15 18 10 / 2%)); opacity: var(--shade-opacity, 1); }
.image-transition-active .hero { background: transparent; isolation: auto; }
.image-transition-active .hero__image, .image-transition-active .hero::after { visibility: hidden; }
.image-transition-active .hero__content { position: relative; z-index: 2; }
.image-transition-active .featured-project__image > img { visibility: hidden; }
.image-transition-active .featured-project .featured-project__image > img { transform: none; transition: none; }
.image-transition-active .projects__intro { opacity: var(--intro-reveal, 0); transform: translateY(calc((1 - var(--intro-reveal, 0)) * 10px)); }
.image-transition-active .featured-project__content::before { opacity: var(--panel-reveal, 0); transform: scaleX(var(--panel-reveal, 0)); }
.image-transition-active .featured-project__content > * { opacity: var(--project-reveal, 0); transform: translateX(calc((1 - var(--project-reveal, 0)) * 12px)); }
.image-transition-active .categories, .image-transition-active .projects__notice { opacity: var(--categories-reveal, 0); }
@media (min-width: 768px) and (max-width: 1023px) {
  .projects { padding-inline: 40px; }
  .projects__intro { gap: 32px; }
  .featured-project__content { padding: 40px 28px; min-height: 440px; }
  .category h3 { font-size: 28px; }
}
@media (max-width: 767px) {
  .projects { padding: 56px 24px; gap: 24px; }
  .projects__intro { grid-template-columns: 1fr; gap: 16px; }
  .projects h2, .featured-project h3 { font-size: 40px; line-height: 44px; }
  .featured-project { grid-template-columns: 1fr; }
  .featured-project__content { padding: 32px 24px; gap: 20px; min-height: 0; }
  .featured-project__image { height: 280px; grid-row: 1; }
  .image-transition::after { background: rgb(37 42 34 / 58%); }
  .image-transition-active .featured-project__content::before { transform: scaleY(var(--panel-reveal, 0)); transform-origin: top; }
  .image-transition-active .featured-project__content > * { transform: translateY(calc((1 - var(--project-reveal, 0)) * 12px)); }
  .project-button--light { width: 190px; }
  .categories { grid-template-columns: 1fr; gap: 24px; }
  .category__image { aspect-ratio: 342 / 172; }
  .category__body { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
  .category h3 { font-size: 26px; line-height: 30px; }
  .category .project-button { width: 112px; flex-shrink: 0; min-height: 44px; padding: 10px 12px; font-size: 13px; }
  .category__button-detail { display: none; }
}

.hero__image,
.hero__image img,
.hero::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__image { z-index: -2; overflow: hidden; }
.hero__image img { display: block; object-fit: cover; }
.hero::after {
  content: "";
  z-index: -1;
  background: linear-gradient(90deg, rgb(15 18 10 / 78%), rgb(15 18 10 / 2%));
  pointer-events: none;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(14px, 3.05vh, 28px);
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding: 24px 64px;
}

.hero__eyebrow,
.hero__notice {
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
}
.hero__separator { white-space: pre; }

.hero h1 {
  max-width: 1030px;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(48px, min(6.944444vw, 11vh), 100px);
  font-weight: 400;
  line-height: 1.02;
}
.hero h1 em { font-weight: 400; }
.hero__description {
  max-width: 500px;
  font-size: 16px;
  line-height: 26px;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  max-width: 100%;
  padding: 18px 24px;
  background: var(--color-olive);
  color: var(--color-white);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-decoration: none;
  transition: background-color 160ms ease;
}
.hero__cta img { display: block; flex-shrink: 0; }
.hero__cta:hover { background: #3d4635; }
.hero__cta:focus-visible { outline: 2px solid var(--color-white); outline-offset: 5px; }
.hero__mobile-break { display: none; }

@media (max-width: 1023px) and (min-width: 768px) {
  .hero__content { padding-inline: 40px; }
  .site-header__inner { padding-inline: 40px; gap: 16px; }
  .desktop-nav { gap: 16px; }
  .header-cta { width: 180px; }
}

@media (max-width: 767px) {
  :root { --header-height: 64px; }
  .site-header__inner { padding-inline: 24px; }
  .desktop-nav, .header-cta { display: none; }
  .mobile-menu { display: block; }
  .mobile-menu summary { cursor: pointer; list-style: none; font-size: 12px; line-height: 18px; padding: 13px 0 13px 12px; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu nav { position: absolute; inset: 100% 0 auto; padding: 24px; background: var(--color-cream); display: flex; flex-direction: column; gap: 24px; box-shadow: 0 8px 12px rgb(0 0 0 / 12%); font-size: 14px; }
  .mobile-menu a, .mobile-menu button { color: inherit; }
  .mobile-menu button { background: none; padding: 0; text-align: left; }
  .hero::after { background: rgb(37 42 34 / 58%); }
  .hero__content { gap: clamp(12px, 2.9vh, 24px); padding: 24px; }
  .hero__separator,
  .hero__desktop-break,
  .hero__desktop-space { display: none; }
  .hero__label-line { display: block; }
  .hero__mobile-break { display: inline; }
  .hero h1 { max-width: 342px; font-size: clamp(34px, min(13.8vw, 7.2vh), 54px); line-height: 1.037; }
  .hero h1 em { display: block; }
  .hero__description { max-width: 325px; }
}

@media (max-width: 374px) {
  .hero h1 { font-size: clamp(32px, min(13.8vw, 7.2vh), 51px); line-height: 1.04; }
  .hero__cta { gap: 20px; padding-inline: 20px; }
}

@media (max-height: 580px) {
  :root { --header-height: 64px; }
  .hero__content { gap: 12px; padding-block: 16px; }
  .hero h1 { font-size: min(6vw, 8vh); line-height: 1.04; }
  .hero__eyebrow, .hero__notice { font-size: 10px; line-height: 14px; }
  .hero__description { font-size: 14px; line-height: 20px; }
  .hero__cta { padding-block: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__cta { transition: none; }
}
@media (max-width: 767px) and (max-height: 580px) {
  .hero h1 { font-size: clamp(30px, min(12vw, 7vh), 40px); }
}
/* Browser toolbar changes must not resize the source image halfway through a swipe. */
@media (hover: none) and (pointer: coarse) {
  .hero { height: calc(100svh - var(--header-height)); }
}

/* Final home sections share the same content grid as the project gallery. */
.section-container { max-width: 1440px; margin-inline: auto; padding-inline: 64px; }
.section-eyebrow { font-size: 12px; line-height: 18px; font-weight: 500; letter-spacing: 1.2px; }
.about h2, .process h2, .contact h2, .process h3 { margin: 0; font-family: "DM Serif Display", Georgia, serif; font-weight: 400; }
.about h2, .process h2 { font-size: clamp(40px, 4.444vw, 64px); line-height: 1.0625; }
.about { background: var(--color-ink); color: var(--color-cream); }
.about__layout { display: grid; grid-template-columns: 576fr 648fr; column-gap: 88px; grid-template-rows: 1fr auto auto 1fr; padding-block: 88px; }
.about__heading { grid-column: 2; grid-row: 2; }
.about__heading .section-eyebrow { margin-bottom: 24px; letter-spacing: 1.5px; }
.about__figure { grid-column: 1; grid-row: 1 / -1; margin: 0; min-width: 0; }
.about__figure img { display: block; width: 100%; height: 560px; object-fit: cover; }
.about__figure figcaption { margin-top: 16px; font-size: 12px; line-height: 18px; }
.about__body { grid-column: 2; grid-row: 3; max-width: 548px; margin-top: 24px; font-size: 16px; line-height: 28px; }
.about__body > p + p { margin-top: 28px; }
.about__body .about__notice { border-top: 1px solid rgb(243 240 232 / 25%); padding-top: 24px; font-size: 12px; line-height: 18px; }
.about__notice span { display: none; }
.process { padding-block: 88px 80px; }
.process > .section-eyebrow { color: var(--color-olive); margin-bottom: 16px; }
.process__steps { list-style: none; margin: 40px 0 0; padding: 0; }
.process__steps li { border-top: 1px solid #cfcfc3; padding-block: 32px; display: grid; grid-template-columns: 64px minmax(0, 432fr) minmax(0, 736fr); gap: 40px; align-items: start; }
.process__number { font-family: "DM Serif Display", Georgia, serif; color: var(--color-olive); font-size: 32px; line-height: 38px; }
.process h3 { font-size: 32px; line-height: 40px; }
.process__steps p { font-size: 18px; line-height: 29px; }
.process__notice { margin-top: 24px; font-size: 12px; line-height: 18px; color: #6b6c62; }
.contact { background: var(--color-olive); color: var(--color-cream); }
.contact__layout { padding-block: 88px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 88px; row-gap: 48px; align-items: start; }
.contact__heading .section-eyebrow { margin-bottom: 24px; }
.contact h2 { font-size: clamp(44px, 4.45vw, 64px); line-height: 1.1; }
.contact__body { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; font-size: 18px; line-height: 29px; }
.contact__body > p:first-child { max-width: 450px; }
.contact__body { align-self: center; }
.contact-card { min-width: 0; border: 1px solid rgb(243 240 232 / 25%); background: rgb(243 240 232 / 5%); }
.contact-card__content { padding: 32px; }
.contact-card h3 { margin: 24px 0 30px; font: 400 clamp(32px, 3vw, 44px)/1.12 "DM Serif Display", Georgia, serif; }
.contact-card__link { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 20px 0 0; border-top: 1px solid rgb(243 240 232 / 30%); background: transparent; color: inherit; text-align: left; }
.contact-card__link small { display: block; margin-bottom: 8px; font-size: 10px; letter-spacing: .08em; }
.contact-card__link > span:first-child > span { font-size: 19px; }
.contact-card__arrow { display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; border: 1px solid rgb(243 240 232 / 40%); border-radius: 50%; transition: background 250ms ease; }
.contact-card__link:hover .contact-card__arrow { background: rgb(243 240 232 / 15%); }
.contact-card__map { width: 100%; height: clamp(260px, 25vw, 340px); }
.contact-card__map iframe { display: block; width: 100%; height: 100%; border: 0; }
.contact-card__caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 14px 24px; font-size: 11px; line-height: 1.6; }
.contact-card__caption a { color: inherit; text-underline-offset: 3px; }
.contact-form { min-width: 0; }
.contact-form > .section-eyebrow { margin-bottom: 28px; }
.contact-form__field { margin-bottom: 18px; }
.contact-form label { display: block; font-size: 12px; line-height: 1.5; }
.contact-form input, .contact-form select, .contact-form textarea { display: block; width: 100%; min-height: 48px; padding: 12px 0; border: 0; border-bottom: 1px solid rgb(243 240 232 / 50%); border-radius: 0; font: inherit; font-size: 15px; line-height: 1.6; background: transparent; color: inherit; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgb(243 240 232 / 75%); opacity: 1; }
.contact-form select { cursor: pointer; }
.contact-form option { background: var(--color-olive); color: var(--color-cream); }
.contact-form textarea { resize: vertical; min-height: 104px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-bottom-color: var(--color-cream); box-shadow: 0 1px 0 var(--color-cream); }
.contact-form__notice { margin: 18px 0 24px; font-size: 11px; line-height: 1.8; }
.contact__button { width: 342px; max-width: 100%; min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; border-radius: 2px; background: var(--color-cream); color: var(--color-ink); font-size: 15px; line-height: 20px; font-weight: 500; }
.contact__button img { flex-shrink: 0; }
.contact__button:hover { background: var(--color-white); }
.contact__notice { font-size: 12px; line-height: 18px; }
.site-footer { background: var(--color-ink); color: var(--color-cream); padding-block: 48px 32px; }
.site-footer__top { display: flex; justify-content: space-between; gap: 48px; align-items: flex-start; }
.site-footer .brand__name { font-size: 32px; line-height: 35px; }
.site-footer__tagline { margin-top: 12px; font-size: 16px; line-height: 26px; }
.site-footer nav { display: flex; gap: 32px; padding-top: 6px; font-size: 14px; line-height: 20px; }
.site-footer nav a { color: inherit; text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.site-footer__credits { border-top: 1px solid rgb(243 240 232 / 25%); margin-top: 32px; padding-top: 32px; display: flex; justify-content: space-between; gap: 24px; font-size: 12px; line-height: 18px; }
@media (min-width: 768px) and (max-width: 1023px) {
  .section-container { padding-inline: 40px; }
  .about__layout { column-gap: 40px; }
  .about__figure img { height: 520px; }
  .contact__layout { gap: 40px; }
  .process__steps li { grid-template-columns: 40px minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px; }
  .process h3 { font-size: 28px; line-height: 34px; }
  .site-footer nav { gap: 24px; }
}
@media (max-width: 767px) {
  .section-container { padding-inline: 24px; }
  .about__layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; gap: 24px; padding-block: 56px; }
  .about__heading, .about__figure, .about__body { grid-column: 1; grid-row: auto; }
  .about h2, .process h2 { font-size: 40px; line-height: 44px; }
  .about__figure img { height: 310px; }
  .about__figure figcaption { display: none; }
  .about__body { margin-top: 0; line-height: 26px; max-width: none; }
  .about__body > p + p { margin-top: 24px; }
  .about__notice span { display: inline; }
  .process { padding-block: 56px; }
  .process__steps { margin-top: 28px; }
  .process__steps li { grid-template-columns: 1fr; gap: 12px; padding-block: 24px; }
  .process__number { font-family: "Manrope", sans-serif; font-size: 12px; line-height: 18px; font-weight: 500; }
  .process h3 { font-size: 28px; line-height: 34px; }
  .process__steps p { font-size: 16px; line-height: 26px; }
  .contact__layout { padding-block: 56px; grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .contact h2 { font-size: clamp(36px, 9vw, 48px); line-height: 1.1; }
  .contact-card__content { padding: 24px; }
  .contact-card__caption { padding-inline: 24px; }
  .contact__body { font-size: 16px; line-height: 26px; }
  .contact__button { width: 100%; max-width: 342px; }
  .site-footer { padding-block: 40px 32px; }
  .site-footer__top { flex-direction: column; gap: 28px; }
  .site-footer nav { flex-direction: column; gap: 16px; padding-top: 0; }
  .site-footer__credits { flex-direction: column; gap: 12px; }
}

.motion-word { display: inline-block; }
/* Featured case: the same kitchen photograph provides the Figma detail crops. */
.case-intro { padding-block: 48px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.case-back { display: inline-flex; gap: 8px; color: inherit; text-decoration: none; font-size: 13px; line-height: 20px; font-weight: 500; }
.case-back:hover span { text-decoration: underline; text-underline-offset: 5px; }
.case-intro h1 { font-family: "DM Serif Display", Georgia, serif; font-weight: 400; font-size: clamp(54px, 6.944vw, 100px); line-height: 1.02; }
.case-intro > p { font-size: 16px; line-height: 26px; }
.case-intro > .case-note, .case-note { font-size: 12px; line-height: 18px; font-weight: 500; color: #6b6c62; }
.case-cover { width: 100%; height: min(52.778vw, 860px); }
.case-cover > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.case-section { padding-block: 72px; }
.case-section h2, .case-section h3 { margin: 0; font-family: "DM Serif Display", Georgia, serif; font-weight: 400; }
.case-section h2 { font-size: clamp(40px, 4.444vw, 64px); line-height: 1.0625; }
.case-heading { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.case-label { font-size: 12px; line-height: 18px; font-weight: 500; color: #6b6c62; }
.case-start { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 112px; align-items: start; }
.case-copy { display: flex; flex-direction: column; gap: 24px; font-size: 16px; line-height: 26px; }
.case-development { background: var(--color-ink); color: var(--color-cream); }
.case-development .case-label, .case-development .case-note { color: var(--color-cream); }
.case-decisions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 24px; }
.case-decision { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.case-decision h3 { font-size: 32px; line-height: 38px; }
.case-decision > p { font-size: 16px; line-height: 26px; }
.case-crop { position: relative; width: 100%; aspect-ratio: 416 / 270; }
.case-crop > img { position: absolute; display: block; max-width: none; }
.case-crop--island > img { width: 208.33%; height: 200%; left: -83.33%; top: -84%; }
.case-crop--wood > img { width: 277.78%; height: 166.67%; left: -172.22%; top: -8.33%; }
.case-crop--light > img { width: 285.71%; height: 153.85%; left: 0; top: -30.77%; }
.case-development__note { margin-top: 24px; }
.case-result__layout { display: grid; grid-template-columns: 780fr 468fr; gap: 64px; margin-top: 24px; align-items: start; }
.case-crop--result { aspect-ratio: 780 / 480; }
.case-crop--result > img { width: 153.85%; height: 166.67%; left: -38.46%; top: -53.33%; }
.case-crop--room > img { inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--crop-position); transform-origin: var(--crop-position); transform: scale(var(--crop-zoom)); }
.case-crop--room-result { aspect-ratio: 780 / 480; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .photo-frame.case-crop--room:hover > img { transform: scale(calc(var(--crop-zoom) * 1.045)); }
}
.case-result .case-copy { padding-top: 72px; }
@media (min-width: 768px) and (max-width: 1023px) {
  .case-start { gap: 48px; }
  .case-decisions { gap: 24px; }
  .case-decision h3 { font-size: 28px; line-height: 34px; }
  .case-result__layout { gap: 32px; grid-template-columns: 1.2fr 1fr; }
  .case-result .case-copy { padding-top: 0; }
}
@media (max-width: 767px) {
  .case-intro { padding-block: 32px; }
  .case-intro h1 { font-size: clamp(42px, 13.84vw, 54px); line-height: 1.037; }
  .case-cover { height: 430px; }
  .case-section { padding-block: 48px; }
  .case-section h2 { font-size: 40px; line-height: 44px; }
  .case-start { grid-template-columns: 1fr; gap: 32px; }
  .case-decisions { grid-template-columns: 1fr; gap: 36px; margin-top: 28px; }
  .case-decision { gap: 10px; }
  .case-decision h3 { font-size: 28px; line-height: 34px; }
  .case-decision .case-crop { margin-bottom: 8px; aspect-ratio: 342 / 180; }
  .case-development__note { margin-top: 28px; }
  .case-result__layout { grid-template-columns: 1fr; gap: 24px; }
  .case-crop--result, .case-crop--room-result { aspect-ratio: 342 / 260; }
  .case-result .case-copy { padding-top: 0; }
}
/* Category pages: Figma's 2-column gallery becomes a single stack on mobile. */
a.project-button { text-decoration: none; }
.collection-intro { padding-block: 48px 40px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; line-height: 18px; font-weight: 500; }
.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; text-underline-offset: 4px; }
.collection-intro h1 { margin-block: 16px; font-family: "DM Serif Display", Georgia, serif; font-weight: 400; font-size: clamp(48px, 5.555vw, 80px); line-height: 1.1; }
.collection-intro__description { display: grid; grid-template-columns: 680fr 600fr; gap: 48px; align-items: baseline; font-size: 16px; line-height: 26px; }
.collection-intro__description p + p { color: #6b6c62; font-size: 12px; line-height: 18px; font-weight: 500; }
.collection { padding-bottom: 56px; }
.collection__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 32px; }
.collection-card { min-width: 0; }
.collection-card__photo { display: block; aspect-ratio: 8 / 5; background: #e4e0d6; }
.collection-card__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.collection-card__caption { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; }
.collection-card h2 { margin: 0; font-family: "DM Serif Display", Georgia, serif; font-weight: 400; font-size: 32px; line-height: 40px; }
.collection-card .project-button { width: 158px; flex-shrink: 0; min-height: 44px; padding: 10px 12px; font-size: 13px; gap: 10px; }
.collection-card .project-button:hover { background: rgb(78 88 69 / 8%); }
.collection__notice { margin-top: 48px; font-size: 12px; line-height: 18px; color: #6b6c62; }
.collection-nav { display: flex; flex-wrap: wrap; gap: 16px 28px; margin-top: 28px; padding-top: 24px; border-top: 1px solid #cfcfc3; font-size: 13px; line-height: 22px; }
.collection-nav a { color: inherit; text-decoration: none; padding-block: 6px; }
.collection-nav a:hover, .collection-nav a[aria-current] { text-decoration: underline; text-underline-offset: 6px; }
.gallery-dialog { width: min(1100px, calc(100% - 40px)); max-height: calc(100dvh - 40px); margin: auto; padding: 48px 24px 20px; border: 0; background: var(--color-cream); color: var(--color-ink); }
.gallery-dialog::backdrop { background: rgb(15 18 10 / 85%); }
.gallery-dialog__close { position: absolute; top: 4px; right: 12px; width: 44px; height: 44px; background: transparent; color: inherit; font-size: 30px; }
.gallery-dialog figure { margin: 0; }
.gallery-dialog__image { display: block; width: 100%; height: min(62dvh, 670px); object-fit: contain; }
.gallery-dialog figcaption { margin-top: 16px; }
.gallery-dialog h2 { margin: 0 0 6px; font-family: "DM Serif Display", Georgia, serif; font-weight: 400; font-size: 28px; line-height: 34px; }
.gallery-dialog figcaption p { font-size: 10px; line-height: 16px; letter-spacing: .5px; color: #6b6c62; }
.gallery-dialog__controls { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 12px; font-size: 12px; }
.gallery-dialog__controls button { width: 44px; height: 44px; border: 1px solid var(--color-olive); background: transparent; color: inherit; font-size: 22px; }
.gallery-dialog__controls button:hover { background: rgb(78 88 69 / 8%); }
@media (max-width: 1023px) and (min-width: 768px) {
  .collection-card h2 { font-size: 28px; line-height: 34px; }
  .collection-card .project-button { width: 112px; }
  .collection-card__action-detail { display: none; }
}
@media (max-width: 767px) {
  .collection-intro { padding-block: 28px 32px; }
  .collection-intro h1 { font-size: 46px; line-height: 50px; overflow-wrap: anywhere; }
  .collection-intro__description { grid-template-columns: 1fr; gap: 12px; }
  .collection { padding-bottom: 40px; }
  .collection__grid { grid-template-columns: 1fr; gap: 28px; }
  .collection-card__photo { aspect-ratio: 3 / 2; }
  .collection-card__caption { margin-top: 12px; min-height: 60px; flex-wrap: wrap; }
  .collection-card h2 { font-size: 26px; line-height: 30px; }
  .collection-card .project-button { width: 112px; }
  .collection-card__action-detail { display: none; }
  .collection__notice { margin-top: 28px; }
  .gallery-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); padding-inline: 12px; }
  .gallery-dialog__image { height: auto; max-height: 55dvh; }
  .gallery-dialog h2 { font-size: 26px; }
}
.photo-frame, .featured-project__image { overflow: hidden; }
.photo-frame > img, .featured-project__image > img { transition: transform 800ms cubic-bezier(.22,1,.36,1); }
.hero__cta img, .header-cta img, .contact__button img { transition: transform 300ms ease; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .photo-frame:hover > img, .featured-project__image:hover > img { transform: scale(1.045); }
  .hero__cta:hover img, .header-cta:hover img, .contact__button:hover img { transform: translate(3px, -3px); }
}
@media (prefers-reduced-motion: reduce) {
  .photo-frame > img, .featured-project__image > img,
  .hero__cta img, .header-cta img, .contact__button img { transition: none; }
}

body.dialog-open { overflow: hidden; }
.demo-dialog { box-sizing: border-box; width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 48px; border: 1px solid rgb(37 42 34 / 12%); border-radius: 4px; color: var(--color-ink); background: var(--color-cream); box-shadow: 0 24px 80px rgb(0 0 0 / 25%); }
.demo-dialog::backdrop { background: rgb(15 18 10 / 65%); backdrop-filter: blur(4px); }
.demo-dialog__close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; padding: 0; background: transparent; color: var(--color-ink); font-size: 28px; line-height: 1; }
.demo-dialog__eyebrow { font-size: 11px; font-weight: 500; letter-spacing: 1.5px; color: var(--color-olive); }
.demo-dialog h2 { margin: 18px 0 24px; font-family: "DM Serif Display", Georgia, serif; font-size: 46px; font-weight: 400; line-height: 1.08; }
.demo-dialog h2 em { font-weight: 400; }
.demo-dialog > p:not(.demo-dialog__eyebrow) { font-size: 15px; line-height: 1.75; margin-bottom: 16px; }
.demo-dialog strong { font-weight: 500; }
.demo-dialog__actions { display: grid; gap: 12px; margin-top: 28px; }
.demo-dialog__actions .hero__cta { width: 100%; }
.demo-dialog__continue { width: 100%; min-height: 52px; padding: 14px 20px; background: transparent; border: 1px solid var(--color-olive); color: var(--color-ink); font-size: 14px; font-weight: 500; }
.demo-dialog__continue:hover, .demo-dialog__close:hover { background: rgb(78 88 69 / 8%); }
@media (max-width: 600px) {
  .contact-form input, .contact-form select, .contact-form textarea { font-size: 16px; }
  .demo-dialog__close { width: 44px; height: 44px; }
  .demo-dialog { padding: 48px 24px 28px; }
  .demo-dialog h2 { font-size: 36px; }
  .demo-dialog__actions .hero__cta { gap: 16px; padding-inline: 20px; }
}
