:root {
  --paper: #efeee7;
  --light: #faf9f4;
  --ink: #243238;
  --secondary: #47595e;
  --blue: #2d4856;
  --navy: #1e343f;
  --line: #a6b0ac;
  --sky: #dce6e5;
  --display: 'Cormorant Garamond', 'Times New Roman', serif;
  --body: 'Manrope', Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 74px);
  --space: clamp(54px, 8vw, 112px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--paper); color: var(--ink); font-family: var(--body); scroll-padding-top: 28px; }
body { margin: 0; line-height: 1.65; }
main { container-type: inline-size; }
img { display: block; width: 100%; height: auto; }
figure, ul, ol, dl, dd { margin: 0; }
a { color: inherit; }
p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }
:focus-visible { outline: 3px solid #946835; outline-offset: 4px; }
::selection { background: var(--sky); color: var(--navy); }

.wrap { width: min(100% - 2 * var(--gutter), 1420px); margin-inline: auto; }
.section { padding-block: var(--space); }
.skip { position: fixed; top: 10px; left: 10px; z-index: 5; padding: 10px 15px; color: var(--light); background: var(--navy); clip-path: inset(50%); }
.skip:focus { clip-path: none; }
h1, h2 { margin: 0; font: 600 clamp(48px, 6.6vw, 112px)/.89 var(--display); letter-spacing: -.046em; text-wrap: balance; }
h2 { font-size: clamp(39px, 4.8vw, 76px); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px 44px; margin-bottom: clamp(28px, 4vw, 54px); }
.section-heading p { max-width: 34ch; margin-bottom: 0; color: var(--secondary); }

.demo-bar { background: var(--navy); color: var(--light); }
.demo-bar .wrap { display: flex; min-height: 38px; align-items: center; justify-content: space-between; gap: 8px 18px; font-size: 13px; }
.demo-bar a { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; text-underline-offset: .23em; }

.header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; min-height: 86px; padding-block: 12px; }
.wordmark, .footer-mark { width: fit-content; text-decoration: none; font: 600 46px/.8 var(--display); letter-spacing: -.06em; }
.wordmark span { color: #718d87; }
.header nav { display: flex; gap: clamp(16px, 3vw, 56px); }
.header nav a, .header-action { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: 14px; font-weight: 700; white-space: nowrap; }
.header nav a:is(:hover,[aria-current]), .header-action:hover { text-decoration: underline; text-underline-offset: .35em; }
.header-action { justify-self: end; gap: 10px; }

.main-hero { display: grid; grid-template-areas: "photo copy"; grid-template-columns: minmax(0,1.57fr) minmax(0,1fr); align-items: center; gap: clamp(22px,5vw,76px); padding: clamp(14px,3vw,40px) 0 clamp(30px,5vw,70px); }
.main-hero-copy { grid-area: copy; min-width: 0; padding-block: 18px; border-block: 1px solid var(--line); }
.main-hero h1 { font-size: clamp(48px,6.8vw,108px); margin-bottom: clamp(15px,2vw,27px); }
/* Keep the hero copy width stable while Manrope loads. */
.main-hero-copy p { max-width: 20.13em; color: var(--ink); }
.main-hero-photo { grid-area: photo; }
.main-hero .main-hero-image { height: auto; aspect-ratio: 1.39; object-position: 52% 52%; }
.main-hero-photo figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 3px 16px; }
.main-hero-photo figcaption strong { color: var(--ink); font-size: 15px; }
.hero-links { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 18px; }

.button { display: inline-flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 52px; max-width: 100%; padding: 12px 20px; border: 0; background: var(--navy); color: var(--light); font: 700 14px/1.45 var(--body); cursor: pointer; text-decoration: none; transition: background-color 180ms ease, color 180ms ease; }
.button:hover { background: #3c5b66; }
.button-inverse { color: var(--navy); background: var(--light); }
.button-inverse:hover { color: var(--navy); background: var(--sky); }
.button:disabled { opacity: .67; cursor: wait; }
.text-link { display: inline-flex; width: fit-content; align-items: center; gap: 7px; min-height: 44px; font-weight: 700; text-underline-offset: .27em; }

.service-list { display: grid; gap: 7px; padding: 0; list-style: none; }
.service-list a { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(0,1fr) auto; align-items: center; min-height: 84px; gap: 10px 26px; padding: 19px clamp(15px, 2vw, 25px); background: var(--light); text-decoration: none; transition: background-color 180ms ease; }
.service-list a:hover { background: var(--sky); }
.service-list strong { font: 600 clamp(26px, 3.1vw, 48px)/1 var(--display); letter-spacing: -.025em; }
.service-list a > span:not(.link-arrow) { color: var(--secondary); }
.link-arrow { justify-self: end; font-size: 24px; padding-right: 9px; }

.photo { display: grid; align-content: start; }
.photo > picture > img { height: 100%; aspect-ratio: 1.28; object-fit: cover; object-position: var(--focus, center); background: var(--sky); }
.photo figcaption { font-size: 13px; color: var(--secondary); padding-top: 12px; }
.home-case { display: grid; grid-template-columns: minmax(0,1.42fr) minmax(0,1fr); align-items: center; gap: 0; padding-block: 0; }
.home-case-copy { color: var(--light); background: var(--blue); padding: clamp(28px, 5vw, 76px); align-self: stretch; display: grid; align-content: center; }
.home-case-copy h2 { margin-bottom: .3em; }
.home-case-copy p { max-width: 36ch; }
.home-case .photo > picture > img { aspect-ratio: 1.48; height: auto; }
.documents { margin-top: clamp(40px,7vw,96px); color: var(--light); background: var(--navy); }
.documents-layout {
  display: grid;
  grid-template-columns: minmax(0,.68fr) minmax(0,1.32fr);
  align-items: start;
  gap: clamp(24px,6vw,85px);
}
.documents-intro h2 { max-width: 11ch; margin-bottom: .4em; }
.documents-intro p { max-width: 36ch; color: var(--sky); }
.documents-intro .text-link { color: var(--light); }
.documents :focus-visible { outline-color: #e6bd8d; }
.document-row {
  display: grid;
  grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr);
  gap: 10px clamp(15px,3vw,40px);
  padding-block: clamp(18px,2.8vw,34px);
  border-top: 1px solid #899b9e;
}
.document-row:last-child { border-bottom: 1px solid #899b9e; }
.document-row h3 {
  margin: 0 0 .35em;
  font: 600 clamp(30px,3.1vw,45px)/.97 var(--display);
  letter-spacing: -.03em;
}
.document-row p, .document-row dd { color: var(--sky); }
.document-row dl { display: grid; gap: .65rem; }
.document-row dt { font-weight: 760; }
.document-row > .text-link { grid-column: 1 / -1; align-self: end; }
.document-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0 1.2rem; }
.steps-preview { max-width: 960px; }
.steps-summary { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(17px, 3vw, 43px); }
.steps-summary p { max-width: 34ch; margin: 0; }
.steps-summary strong { display: block; margin-bottom: 7px; }

.contact { background: var(--sky); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: clamp(35px, 11vw, 180px); }
.contact h2 { margin-bottom: .35em; }
.contact p { max-width: 43ch; }
.brief-guide { margin-top: 25px; padding: clamp(16px, 3vw, 25px); background: var(--light); }
.brief-guide h3 { margin: 0 0 8px; font-size: 17px; }
.brief-guide p { margin: 0; }
.brief-guide .brief-choice { font-weight: 760; margin: 5px 0 8px; }
.brief-guide .brief-priority { color: var(--navy); font-weight: 760; border-inline-start: 2px solid #718d87; padding-inline-start: .65rem; margin: 0 0 10px; }
form { display: grid; min-width: 0; gap: 16px; }
form label { display: block; color: var(--ink); font-size: 15px; font-weight: 750; }
input, select, textarea { display: block; width: 100%; min-height: 48px; margin-top: 6px; padding: 11px 12px; border: 1px solid #728787; border-radius: 0; background: var(--light); color: var(--ink); font: 400 16px/1.5 var(--body); }
textarea { resize: vertical; }
.optional, .demo-notice { color: var(--secondary); font-weight: 500; }
.optional { font-size: 13px; }
.demo-notice { margin: 0; font-size: .8125rem; }
form .button { justify-self: start; text-align: left; }
.form-status { min-height: 1.65em; font-weight: 700; color: var(--navy); margin: 0; }
.form-status[data-error] { color: #792d20; }

.footer { background: var(--navy); color: var(--light); }
.footer-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 30px; padding-block: 30px; }
.footer-mark { font-size: 36px; }
.footer p { font-size: 13px; margin: 0 auto 0 0; color: var(--sky); }

.detail-intro { display: grid; grid-template-columns: .87fr 1fr; align-items: center; gap: clamp(35px, 6vw, 90px); padding-top: clamp(32px, 6vw, 94px); }
.detail-intro h1 { font-size: clamp(44px, 6vw, 96px); text-wrap: wrap; margin-bottom: .36em; }
.detail-intro p, .page-intro p { max-width: 38ch; }
.back { margin-bottom: 24px; }
.scope { padding-top: 0; }
.scope dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 5vw, 72px); }
.scope dl > div { padding-block: 13px; }
.scope dt { font: 600 clamp(27px, 3vw, 39px)/1 var(--display); margin-bottom: .4em; }
.work-brief { background: var(--light); }
.work-brief-grid { display: grid; grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr); align-items: start; gap: clamp(24px, 7vw, 95px); }
.work-brief-grid h2 { margin-bottom: 16px; }
.work-brief-grid dl { display: grid; gap: 22px; }
.work-brief-grid dt { font-weight: 760; margin-bottom: 4px; }
.scope-end { background: var(--blue); color: var(--light); }
.scope-end .wrap { display: flex; gap: 28px; align-items: center; justify-content: space-between; }

.page-intro { padding-bottom: 38px; }
.page-intro h1 { margin-bottom: .26em; }
.process-layout { display: grid; grid-template-columns: .86fr 1fr; align-items: start; gap: clamp(30px, 6vw, 88px); padding-top: 0; }
.process-photo > picture > img { aspect-ratio: 1.04; }
.process-list { list-style: none; padding: 0; }
.process-list li { background: var(--light); padding: clamp(16px, 2vw, 28px); }
.process-list li + li { margin-top: 8px; }
.process-list .step-result { color: var(--blue); font-weight: 750; margin-top: 10px; }
.process-list h2 { font-size: clamp(29px, 4vw, 52px); margin-bottom: .25em; }
.process-list p { max-width: 56ch; }

.gallery-intro { padding-block: clamp(20px,3vw,45px) 24px; }
.gallery-intro .back { margin-bottom: 15px; }
.gallery-intro-body { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.48fr); gap: 10px 22px; align-items: end; }
.gallery-intro-body h1 { margin: 0; text-wrap: wrap; }
.gallery-intro-body p { margin: 0 0 5px; }
.gallery-layout { display: grid; grid-template-columns: minmax(0,.71fr) minmax(0,1.29fr); align-items: start; gap: clamp(20px,4vw,54px); padding-top: 0; }
.gallery-reading { min-width: 0; }
.gallery-canvas { position: relative; overflow: hidden; background: var(--sky); aspect-ratio: 1.79; }
.gallery-canvas [data-view] { position: absolute; inset: 0; opacity: 0; }
.gallery-canvas img { height: 100%; object-fit: cover; object-position: var(--gallery-position); transform: scale(var(--gallery-scale)); transform-origin: var(--gallery-position); }
.gallery-canvas .current { opacity: 1; }
[data-gallery][data-ready] .gallery-canvas [data-view] { transition: opacity 280ms ease; }
.gallery-plan { padding: clamp(12px,1.9vw,28px); color: var(--navy); background: var(--light); border: 1px solid var(--line); }
.route-plan-title { font-size: clamp(30px,3vw,47px); margin-bottom: 16px; }
.route-drawing { position: relative; aspect-ratio: 1.24; isolation: isolate; border: 1px solid #a7b3ae; background-color: #e2e9e5; background-image: linear-gradient(#b9c9c15e 1px,transparent 1px),linear-gradient(90deg,#b9c9c15e 1px,transparent 1px); background-size: 15px 15px; }
.route-rooms, .gallery-options { position: absolute; inset: 0; }
.route-room { position: absolute; border: 2px solid #536b6a; background: #f7f4ea; }
.route-living { inset: 8% 38% 9% 7%; padding: 5% 0 0 8%; font-size: clamp(.68rem,1.05vw,.85rem); font-weight: 750; }
.route-kitchen { inset: 8% 7% 57% 61%; }
.route-entry { inset: 42% 7% 9% 61%; background: #e9ede5; }
[data-route-selected="plan"] .route-entry, [data-route-selected="supervision"] .route-kitchen, [data-route-selected="apartment"] .route-living { background: #cfdfd8; border-color: #3d6762; }
.route-window { position: absolute; inset: 19% auto 51% 6%; width: 3%; border: 1px solid #4f716f; background: #b9d4d1; }
.route-table { position: absolute; left: 40%; top: 53%; display: grid; place-items: center; width: 17%; height: 14%; border: 1px solid #987c58; background: #e5d6be; color: #513e2a; font-size: clamp(.63rem,.95vw,.78rem); }
.route-sofa { position: absolute; left: 13%; top: 69%; width: 33%; height: 14%; border: 1px solid #817970; background: #ded7cb; }
.route-line { position: absolute; inset: 29% 22% 23% 21%; border: 2px dashed #647d78; border-width: 2px 2px 0 0; }
.gallery-options button { position: absolute; left: var(--point-x,78%); top: var(--point-y); transform: translate(-50%,-50%); display: inline-grid; place-content: center; min-width: 44px; min-height: 44px; padding: 5px clamp(7px,1vw,15px); border: 1px solid #536b6a; border-radius: 2px; background: var(--light); color: var(--ink); font: 760 clamp(.7rem,.95vw,.87rem)/1.25 var(--body); cursor: pointer; }
.gallery-options [data-service="plan"] { --point-y: 77%; }
.gallery-options [data-service="supervision"] { --point-y: 29%; }
.gallery-options [data-service="apartment"] { --point-x: 21%; --point-y: 29%; }
.gallery-options button:hover { background: var(--sky); }
.gallery-options button[aria-pressed="true"] { background: var(--navy); color: var(--light); border-color: var(--navy); box-shadow: 0 0 0 3px #faf9f4, 0 0 0 4px #627b76; }
.gallery-options button:focus-visible { outline-offset: 6px; }
@media (forced-colors: active), (prefers-contrast: more) {
  .gallery-options button { border-width: 3px; }
  .gallery-options button[aria-pressed="true"] { border-style: double; border-color: currentColor; }
}
.route-plan-caption { margin-top: 12px; color: var(--secondary); font-size: .78rem; }
.route-sheet-link { max-width: 100%; margin-top: .2rem; font-size: .875rem; }
.gallery-caption { display: grid; gap: 15px; margin-top: 16px; padding-top: 21px; border-top: 1px solid var(--line); }
.gallery-caption h2 { font-size: clamp(37px,4.3vw,62px); margin-bottom: .25em; }
.gallery-caption p { max-width: 57ch; }
.gallery-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 18px; }
.gallery-actions .button { min-height: 46px; }
.gallery-documents-link { color: var(--secondary); }

@media (max-width: 1050px) {
  .documents-layout { grid-template-columns: minmax(0,1fr); }
  .documents-intro h2 { max-width: none; }
}

@media (max-width: 840px) {
  .header { grid-template-columns: 1fr auto; gap: 10px 16px; }
  .header nav { grid-column: 1/-1; grid-row: 2; }
  .header-action { grid-column: 2; grid-row: 1; }
  .section-heading { align-items: start; flex-direction: column; }
  .main-hero { gap: 22px; }
  .detail-intro, .contact-grid { gap: 32px; }
}
@media (max-width: 730px) {
  :root { --gutter: 19px; --space: 48px; }
  .demo-bar .wrap { min-height: 38px; }
  .header { gap: 3px 10px; }
  .header nav { flex-wrap: wrap; }
  .header-action { white-space: normal; justify-content: end; text-align: right; font-size: 13px; }
  .main-hero { grid-template-areas: "copy" "photo"; grid-template-columns: 1fr; padding-block: 20px 32px; }
  .main-hero-copy { padding: 0; border: 0; }
  .main-hero h1 { font-size: clamp(51px, 13.8vw, 78px); }
  .main-hero .main-hero-image { aspect-ratio: 1.35; }
  .service-list a { grid-template-columns: 1fr auto; gap: 5px 12px; }
  .service-list a > span:not(.link-arrow) { grid-row: 2; }
  .service-list .link-arrow { grid-column: 2; grid-row: 1 / span 2; }
  .home-case, .detail-intro, .contact-grid, .process-layout, .gallery-layout, .work-brief-grid, .steps-summary { grid-template-columns: minmax(0,1fr); }
  .home-case-copy { margin: 0; order: 2; }
  .home-case .photo figcaption { padding-block: 10px; }
  .scope dl { grid-template-columns: 1fr; }
  .scope-end .wrap { align-items: start; flex-direction: column; }
  .footer-inner p { flex-basis: 100%; }
  .page-intro { padding-bottom: 18px; }
  .back { margin-bottom: 14px; }
  .process-layout { gap: 22px; }
  .steps-summary { gap: 15px; }
  .scope dl > div + div { padding-top: 0; }
  .gallery-intro-body { grid-template-columns: minmax(0,1fr); }
  .gallery-canvas { aspect-ratio: 1.52; }
  .gallery-layout { gap: 22px; }
  .gallery-actions { flex-direction: column; align-items: start; }
}
@media (max-width: 530px) {
  .document-row { grid-template-columns: minmax(0,1fr); }
}
@container (max-width: 730px) {
  .main-hero, .home-case, .detail-intro, .contact-grid, .process-layout, .gallery-layout, .work-brief-grid, .steps-summary, .scope dl { grid-template-columns: minmax(0, 1fr); }
  .section-heading, .scope-end .wrap { align-items: start; flex-direction: column; }
  .main-hero h1 { font-size: clamp(51px, 12cqw, 87px); }
  .main-hero { grid-template-areas: "copy" "photo"; }
  .home-case-copy { order: 2; }
}
@container (max-width: 11em) {
  .service-list a {
    grid-template-columns: minmax(0,1fr) auto;
    column-gap: 6px;
    padding-inline: 8px;
    overflow-wrap: anywhere;
  }
  .service-list .link-arrow { padding-inline-end: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
