:root {
  color-scheme: light;
  --navy: #0b182c;
  --navy-deep: #071326;
  --ink: #15243a;
  --subtle: #465976;
  --line: #dce4ed;
  --sky: #badcff;
  --wash: #eef5fc;
  --paper: #fcfdff;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 1.0625rem; line-height: 1.6; }
a { color: inherit; text-underline-offset: .2em; }
:focus-visible { outline: 3px solid #0071c5; outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: "Palatino Linotype", Palatino, Georgia, serif; font-weight: 500; line-height: 1.02; letter-spacing: -.045em; text-wrap: balance; }
h2 { font-size: clamp(2.5rem, 5vw, 4.6rem); }
.wrap { width: min(1240px, calc(100% - 5rem)); margin-inline: auto; }
.skip { position: absolute; top: .5rem; left: .5rem; transform: translateY(-200%); padding: .8rem; background: white; color: var(--navy); z-index: 2; }
.skip:focus { transform: none; }
.masthead { background: white; border-bottom: 1px solid var(--line); }
.mast-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 85px; padding-block: .8rem; }
.brand { display: inline-flex; flex: none; align-items: center; gap: .8rem; text-decoration: none; line-height: 1.15; }
.brand strong { display: block; font: 650 1.18rem Georgia, serif; }
.brand small { display: block; margin-top: .27rem; font-size: .77rem; color: var(--subtle); }
.brand-logo { width: clamp(4.5rem, 11vw, 8rem); height: auto; flex: none; }
nav, .top-actions, .hero-actions, .contact-actions { display: flex; align-items: center; gap: 1.35rem; }
nav a, .language { color: var(--ink); text-decoration: none; font-weight: 650; font-size: .92rem; white-space: nowrap; }
nav a:hover, .language:hover { text-decoration: underline; }
.button { display: inline-flex; width: fit-content; align-items: center; justify-content: center; gap: .75rem; border: 1px solid transparent; border-radius: .45rem; background: var(--navy); color: #fff; padding: .86rem 1.18rem; line-height: 1.3; font-weight: 700; text-decoration: none; }
.button-small { padding: .67rem .85rem; font-size: .88rem; }
.button:hover { background: #233c60; }
.bright { background: var(--sky); color: var(--navy-deep); }
.bright:hover { background: #deedff; }
.quiet { display: inline-flex; gap: .45rem; align-items: baseline; font-weight: 650; }
.hero, .contact, .service-hero { background: var(--navy-deep); color: #fff; }
.hero { background: radial-gradient(ellipse at 72% 48%, #162f51 0%, #0d1e35 40%, var(--navy-deep) 76%); }
.hero-layout { display: grid; grid-template-columns: 1fr .94fr; align-items: center; gap: clamp(2rem, 6vw, 6rem); padding-block: clamp(3rem, 7vw, 6.5rem); }
.eyebrow { color: var(--sky); font-size: .9rem; font-weight: 650; letter-spacing: .045em; }
.hero h1 { margin-top: .24em; font-size: clamp(3.6rem, 7.1vw, 7.1rem); max-width: 10.8ch; }
.hero-intro { max-width: 33rem; margin-top: 1.3rem; color: #d9e6f5; font-size: clamp(1.08rem, 1.5vw, 1.28rem); }
.hero-actions { flex-wrap: wrap; row-gap: .85rem; margin-top: 1.8rem; }
.language-note { margin-top: .9rem; color: #d9e6f5; font-size: .96rem; }
.calendar { display: inline-block; position: relative; width: 1.15em; height: 1em; border: 1.7px solid currentColor; border-radius: .17em; background: linear-gradient(currentColor,currentColor) center .22em / 100% 1.5px no-repeat; }
.calendar::before, .calendar::after { content: ""; position: absolute; top: -.21em; width: 1.6px; height: .31em; background: currentColor; }
.calendar::before { left: .23em; }.calendar::after { right: .23em; }
.hero-media { position: relative; min-width: 0; }
.house { width: 100%; aspect-ratio: 1.08; height: auto; object-fit: cover; object-position: center 55%; border-radius: 1rem; }
.portrait-badge { display: flex; align-items: center; gap: .85rem; position: absolute; bottom: -1.05rem; left: -1.15rem; padding: .68rem 1.3rem .68rem .68rem; background: white; color: var(--ink); box-shadow: 0 18px 44px #020b2333; border-radius: .72rem; }
.portrait-badge > img { width: 72px; height: 72px; object-fit: cover; border-radius: .45rem; }
.portrait-badge strong, .portrait-badge span { display: block; }
.portrait-badge span { color: var(--subtle); font-size: .9rem; }
.section { padding-block: clamp(3.25rem, 7vw, 6.8rem); }
.project-intro { display: grid; position: relative; align-items: end; isolation: isolate; min-height: clamp(16rem, 36vw, 27rem); overflow: hidden; border-radius: 1rem; color: #fff; background: #0b182c; }
.project-intro img, .project-intro::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.project-intro img { z-index: -2; object-fit: cover; object-position: center 53%; }
.project-intro::after { content: ""; z-index: -1; background: linear-gradient(90deg, #081323ee 2%, #081323b8 45%, #08132320 84%), linear-gradient(0deg,#0813238c,transparent 63%); }
.project-intro > div { padding: clamp(1.35rem,5vw,4rem); }
.project-intro h2 { max-width: 13ch; }
.project-intro p { margin-top: .75rem; color: #eff6ff; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; margin-top: 2rem; }
.tile { padding: clamp(1.2rem, 2.4vw, 2rem); border: 1px solid var(--line); border-radius: .76rem; background: white; }
.service-tile { display: flex; flex-direction: column; padding: 0; overflow: hidden; text-decoration: none; transition: transform .18s, border-color .18s, box-shadow .18s; }
.service-tile:hover { border-color: #8aaccd; box-shadow: 0 12px 27px #1d345315; transform: translateY(-3px); }
.service-tile > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center top; }
.tile-content { display: flex; flex: 1; flex-direction: column; padding: clamp(1.05rem, 2vw, 1.65rem); }
.tile h3, .tile h2 { margin-block: .8rem .4rem; font-family: Georgia, serif; font-size: clamp(1.46rem, 2.35vw, 2rem); font-weight: 500; letter-spacing: -.025em; line-height: 1.16; }
.tile-content h3 { margin-top: 0; }
.tile p { color: var(--subtle); }
.tile-link { display: block; margin-top: auto; padding-top: .8rem; color: #1d4f83; font-weight: 700; font-size: .92rem; }
.approach { background: var(--wash); }
.pair { display: grid; grid-template-columns: .9fr 1fr; align-items: start; gap: clamp(2rem, 7vw, 7rem); }
.pair p { margin-top: 1rem; color: var(--subtle); max-width: 38rem; }
.section-photo { width: 100%; aspect-ratio: 1.85; margin-top: 1.45rem; object-fit: cover; border-radius: .8rem; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { position: relative; padding: .8rem 0 .95rem 3.5rem; counter-increment: step; border-bottom: 1px solid #cbddeb; }
.steps li::before { content: counter(step); position: absolute; top: .8rem; left: 0; width: 2.25rem; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid #9db9d5; border-radius: 50%; color: #315578; font-weight: 700; }
.steps li p { margin-top: .25rem; }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; display: flex; gap: 1rem; align-items: center; padding: 1.05rem 0; font-weight: 700; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: #234e7b; font-size: 1.45rem; font-weight: 400; margin-left: auto; }
details[open] summary::after { content: "−"; }
details p { padding-bottom: 1.2rem; margin-top: 0 !important; }
.contact { background: linear-gradient(120deg, #0b1c34, #1a3559); }
.contact-inner { align-items: center; }
.contact p { color: #d9e6f5; }
.contact-actions { flex-wrap: wrap; }
footer { padding-block: 2rem; background: #eef2f7; color: #364c64; font-size: .92rem; }
.foot { display: grid; grid-template-columns: 1.15fr .95fr 1fr; gap: 1.6rem; }
.foot strong { color: var(--ink); }
.foot-partner { display: block; width: fit-content; margin-bottom: .45rem; }
.foot-partner img { width: 140px; height: auto; }
.service-hero { padding-block: clamp(3rem, 7vw, 6rem); }
.service-hero-layout { display: grid; grid-template-columns: 1fr .86fr; align-items: center; gap: clamp(1.4rem, 4vw, 4rem); }
.service-hero h1 { margin-top: 1rem; font-size: clamp(2.8rem, 5.9vw, 5.8rem); }
.service-hero p { margin-top: 1.25rem; max-width: 47rem; color: #d9e6f5; font-size: 1.18rem; }
.service-hero-photo { width: 100%; aspect-ratio: 1.45; object-fit: cover; border-radius: 1rem; }
.back { color: var(--sky); font-weight: 650; }
.reference { margin-top: 1.25rem; }
.contact-dialog { width: min(41rem, calc(100% - 1.5rem)); max-height: calc(100dvh - 1.5rem); padding: 0; border: 1px solid var(--line); border-radius: 1.15rem; color: var(--ink); background: #fff; box-shadow: 0 1.75rem 5rem #0005; }
.contact-dialog::backdrop { background: #061225af; }
.dialog-top { display: flex; gap: .95rem; align-items: center; padding: .8rem clamp(1rem, 4vw, 1.8rem); background: linear-gradient(105deg,#e4effb 0%,#f5f9fd 76%); border-bottom: 1px solid var(--line); }
.dialog-top img { flex: none; width: clamp(3.7rem, 16vw, 5.25rem); height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 .3rem .75rem #1a385525; }
.dialog-top strong, .dialog-top span { display: block; }
.dialog-top span { color: var(--subtle); font-size: .92rem; }
.dialog-close { flex: 0 0 44px; min-height: 44px; margin-left: auto; align-self: start; border: 1px solid #a7b8ca; border-radius: .65rem; color: var(--navy); background: #fff; font: 1.55rem system-ui; cursor: pointer; }
.dialog-close:hover { background: var(--wash); }
.dialog-body { padding: 1.15rem clamp(1rem, 4vw, 1.8rem); }
.dialog-body h2 { font-size: clamp(1.9rem, 5vw, 2.65rem); }
.dialog-body p { margin-top: .45rem; }
.dialog-body form { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: end; gap: .7rem .9rem; margin-top: .85rem; }
.dialog-field { min-width: 0; }
.dialog-body .button { grid-column: 1 / -1; }
.dialog-body label { display: block; margin-bottom: .2rem; font-weight: 650; }
.dialog-body input, .dialog-body select { display: block; width: 100%; min-height: 48px; border: 1px solid #8a9aab; border-radius: .55rem; padding: .55rem .66rem; background: #f8fbff; color: var(--ink); font: inherit; }
.dialog-body .button { width: 100%; margin-top: .2rem; cursor: pointer; font: inherit; font-weight: 700; }
.dialog-body .dialog-hint { margin-top: .32rem; color: var(--subtle); font-size: .92rem; }
.dialog-body .dialog-alternative { margin-top: .55rem; text-align: center; }
@media(max-width: 560px) {
  .dialog-body form { grid-template-columns: minmax(0, 1fr); }
}
@media(max-width: 1040px) {
  .wrap { width: min(1240px, calc(100% - 3rem)); }
  .mast-inner { gap: .85rem; }
  nav, .top-actions { gap: .8rem; }
  .top-actions .dark { display: none; }
}
@media(max-width: 740px) {
  .wrap { width: calc(100% - 2rem); }
  .mast-inner { flex-wrap: wrap; justify-content: space-between; min-height: 0; }
  .mast-inner nav { order: 3; width: 100%; justify-content: space-between; border-top: 1px solid var(--line); padding-top: .7rem; }
  .hero-layout, .pair, .foot, .service-hero-layout { grid-template-columns: 1fr; }
  .hero-layout { padding-top: 2.65rem; gap: 1.85rem; padding-bottom: 2.8rem; }
  .hero h1 { font-size: clamp(3.35rem, 12vw, 5.65rem); }
  .house { aspect-ratio: 1.2; }
  .portrait-badge { left: .55rem; bottom: -.85rem; max-width: calc(100% - 1.1rem); }
  .portrait-badge > img { width: 52px; height: 52px; }
  .service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .project-intro::after { background: linear-gradient(0deg,#081323f7 0%,#081323a3 61%,#0813231f 100%); }
}
@media(max-width: 440px) {
  .brand { gap: .55rem; }
  .brand strong { font-size: 1.05rem; }
  .brand-logo { width: clamp(4.1rem, 20vw, 5.4rem); }
  .service-grid { grid-template-columns: 1fr; }
  .service-tile { min-height: 0; }
}
@media(prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
