:root {
  color-scheme: light;
  --paper: #f9f8f4;
  --ink: #182822;
  --muted: #4d5a54;
  --accent: #7b5c2d;
  --gold: #e9ce9d;
  --logo-gold: #c09d2d;
  --line: #dcded5;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 95px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--sans); }
body:has(dialog[open]) { overflow: hidden; }
img { width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 2px solid #ad7835; outline-offset: 5px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: .98; }
h1 { font-size: clamp(4.4rem, 7.1vw, 7.1rem); letter-spacing: -.025em; }
h2 { font-size: clamp(3.1rem, 5.15vw, 5.05rem); letter-spacing: -.021em; }
h3 { font-size: clamp(1.95rem, 2.7vw, 2.65rem); }
h2 em { color: var(--accent); }
.wrap { width: min(100% - 9vw, 1240px); margin-inline: auto; }
.skip { position: fixed; top: 1rem; left: 1rem; transform: translateY(-180%); z-index: 10; padding: .5rem 1rem; background: var(--paper); }
.skip:focus { transform: none; }
.header { position: sticky; top: 0; z-index: 5; background: #000; color: #f5ecdc; border-bottom: 1px solid #352c1b; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 77px; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { width: 199px; height: auto; }
#navigation { display: flex; align-items: center; margin-left: auto; gap: clamp(1rem, 3.1vw, 2.9rem); font-size: .91rem; }
#navigation a { text-decoration: none; }
#navigation a:not(.button):hover, .footer a:hover { text-decoration: underline; text-underline-offset: 5px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 51px;
  padding: .65rem 1.38rem;
  color: #18231e;
  background: var(--logo-gold);
  border: 1px solid var(--logo-gold);
  text-decoration: none;
  font: 700 .91rem/1.3 var(--sans);
  transition: filter .2s;
}
.button:hover { filter: brightness(.94); }
#navigation .button { min-height: 43px; }
.menu-toggle { display: none; }

.hero { min-height: clamp(545px, 44vw, 685px); display: grid; align-items: center; position: relative; isolation: isolate; overflow: hidden; color: #fff; background: #173937; }
.hero > img, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero > img { object-fit: cover; object-position: center 49%; z-index: -2; }
.hero::after { content: ''; z-index: -1; background: linear-gradient(90deg, rgb(8 27 25 / 92%), rgb(9 32 31 / 66%) 43%, rgb(16 30 26 / 13%) 82%), linear-gradient(0deg, rgb(12 26 21 / 44%), transparent 36%); }
.hero-inner { padding-block: 68px 78px; }
.eyebrow { display: flex; align-items: center; gap: .75rem; color: var(--accent); font-size: .79rem; font-weight: 700; line-height: 1.5; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1.05rem; }
.eyebrow > span { width: 27px; height: 1px; flex: 0 0 27px; background: currentColor; }
.hero .eyebrow, .hero h1 em, .contact .eyebrow, .contact h2 em { color: var(--gold); }
.hero-copy { max-width: 450px; margin: 1.4rem 0 1.7rem; color: #f3f4ef; font-size: 1.08rem; }
.hero-caption { position: absolute; bottom: 24px; left: 0; right: 0; display: flex; justify-content: flex-end; pointer-events: none; }
.hero-caption span { color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; border-left: 1px solid var(--gold); padding-left: .7rem; }

.section { padding-block: clamp(64px, 6vw, 100px); }
.section-head { display: grid; grid-template-columns: minmax(0, 2fr) minmax(230px, 1fr); align-items: end; gap: 1.5rem 3rem; margin-bottom: 2.5rem; }
.section-head > p { max-width: 365px; justify-self: end; color: var(--muted); padding-bottom: .3rem; }
.project-grid, .service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.2vw, 34px); }
.project { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); }
.project-photo { position: relative; overflow: hidden; aspect-ratio: 1.54; background: #e1e5db; }
.project-photo img { height: 100%; object-fit: cover; transition: transform .35s; }
.project:hover img, .project:focus-within img { transform: scale(1.035); }
.project-photo span { position: absolute; left: 13px; top: 13px; padding: .25rem .53rem; background: #fbf9f1; font-size: .78rem; }
.project-copy { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(17px, 2vw, 28px); }
.category { color: var(--accent); font-size: .77rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .55rem; }
.project-copy > p:not(.category) { color: var(--muted); margin: .65rem 0 1.1rem; }
.project .button, .location .button { min-height: 44px; }
.project .button { margin-top: auto; }
.location .button { margin-top: .4rem; }

.location { background: #e9ede6; padding-block: clamp(57px, 6vw, 100px); }
.location-grid { display: grid; grid-template-columns: 1.14fr 1fr; gap: clamp(24px, 6vw, 95px); align-items: center; }
.location figure img { height: clamp(300px, 34vw, 475px); object-fit: cover; }
.location figcaption { margin-top: .65rem; font-size: .82rem; color: var(--muted); }
.location-copy > p:not(.eyebrow) { margin-block: 1.1rem; max-width: 520px; color: var(--muted); }
.service-grid article { border-top: 1px solid #b5bbaf; padding: 1.6rem 1rem 0 0; }
.service-grid article p { margin-top: .75rem; color: var(--muted); max-width: 330px; }
.service-line { display: block; width: 22px; height: 3px; margin-bottom: .9rem; background: #a28451; }

.contact { background: #172824; color: #fff; padding-block: clamp(53px, 7vw, 105px); }
.contact-grid { display: grid; grid-template-columns: 1.6fr 1fr; align-items: center; gap: 2rem 4rem; }
.contact h2 + p { max-width: 550px; margin-top: 1.3rem; color: #e4e7df; }
.contact-actions { justify-self: end; display: grid; justify-items: start; gap: .75rem; }
.contact-actions > a:not(.button) { color: #f5ecdc; text-underline-offset: 4px; }
.footer { background: #000; color: #f5ecdc; padding-block: 24px; font-size: .88rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.2rem; }
.footer-inner > a:not(.brand) { text-underline-offset: 4px; }

dialog { position: fixed; background: var(--paper); color: var(--ink); border: 0; padding: 0; width: min(860px, 100% - 24px); max-height: calc(100dvh - 24px); }
dialog::backdrop { background: rgb(10 24 20 / 82%); }
.dialog-inner { padding: clamp(16px, 3vw, 33px); }
.dialog-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.dialog-head .eyebrow { margin-bottom: .55rem; }
.dialog-head h2 { font-size: clamp(2.5rem, 5vw, 4.25rem); }
.close { width: 44px; min-height: 44px; padding: 0; font-size: 1.75rem; line-height: 1; }
#dialog-description { color: var(--muted); margin-block: .8rem 1rem; }
.gallery-image { height: min(49dvh, 520px); min-height: 150px; object-fit: contain; background: #e9ede6; }
.gallery-controls { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-block: .75rem 1rem; }
.gallery-controls button { min-height: 44px; padding: .35rem .7rem; }
.gallery-count { font-size: .86rem; }

@media (max-width: 820px) {
  .project-grid, .service-grid { gap: 14px; }
  .section-head { grid-template-columns: 1fr; gap: .85rem; }
  .section-head > p { justify-self: start; }
  .location-grid { gap: 25px; }
}
@media (max-width: 900px) {
  html { scroll-padding-top: 78px; }
  .header-inner { min-height: 64px; gap: .75rem; }
  .header .brand img { width: clamp(107px, 32vw, 180px); }
  .footer .brand img { width: 168px; }
  .menu-toggle { display: inline-flex; margin-left: auto; min-height: 43px; padding: .35rem .7rem; }
  #navigation { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #000; padding: .6rem 4.5vw 1.1rem; border-bottom: 1px solid #352c1b; box-shadow: 0 10px 22px #17282420; }
  .menu-toggle[aria-expanded=true] + #navigation { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  #navigation a:not(.button) { min-height: 45px; display: flex; align-items: center; }
  #navigation .button { margin-top: .5rem; }
}
@media (max-width: 680px) {
  .hero { min-height: 545px; }
  .hero > img { object-position: 55% center; }
  .hero::after { background: linear-gradient(90deg, rgb(8 27 25 / 79%), rgb(9 32 31 / 45%)), linear-gradient(0deg, rgb(12 26 21 / 41%), transparent 37%); }
  .hero-inner { padding-block: 58px 64px; }
  h1 { font-size: clamp(3.05rem, 10vw, 4.65rem); }
  .hero-caption { bottom: 15px; }
  .project-grid, .location-grid, .service-grid, .contact-grid { grid-template-columns: 1fr; gap: 1.45rem; }
  .project-grid, .service-grid { gap: 1.3rem; }
  .project-copy { padding: 1.3rem; }
  .location figure img { height: auto; aspect-ratio: 1.38; }
  .contact-actions { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.footer-links a { text-underline-offset: 4px; }
.inner-page { min-height: calc(100svh - 178px); }
.inner-page h1 { font-size: clamp(3.2rem, 7.2vw, 5.8rem); overflow-wrap: anywhere; }
.legal-copy { max-width: 790px; }
.legal-copy section { margin-top: 2.1rem; }
.legal-copy h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .7rem; }
.legal-copy p + p, .legal-copy address + p { margin-top: .65rem; }
.legal-copy address { font-style: normal; }
.legal-copy a, .contact-intro a, .form-note a { text-underline-offset: 4px; }
.contact-page-grid { display: grid; grid-template-columns: .75fr 1.25fr; align-items: start; gap: clamp(24px, 5vw, 80px); }
.contact-intro p { margin-top: 1.25rem; max-width: 390px; }
.inquiry-form { padding: clamp(18px, 3vw, 36px); background: #fff; border: 1px solid var(--line); }
.form-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; margin: 1.2rem 0; }
.form-fields label { display: grid; gap: .35rem; font-weight: 600; }
.form-fields :is(input, select, textarea) {
  width: 100%;
  min-height: 44px;
  border: 1px solid #828b83;
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 400;
  padding: .55rem .65rem;
}
.form-fields select { appearance: none; padding-right: 2rem; background: linear-gradient(45deg, transparent 50%, var(--ink) 50%) calc(100% - 16px) 50% / 5px 5px no-repeat, linear-gradient(135deg, var(--ink) 50%, transparent 50%) calc(100% - 11px) 50% / 5px 5px no-repeat, var(--paper); }
.form-fields textarea { resize: vertical; }
.form-fields :is(input, select, textarea):focus-visible { outline: 2px solid #ad7835; outline-offset: 2px; }
.form-wide { grid-column: 1 / -1; }
.form-note { font-size: .9rem; color: var(--muted); }
.inquiry-form .button { margin-top: 1.2rem; }
.inquiry-form .button:disabled { opacity: .72; cursor: wait; }
.form-status:empty { display: none; }
.form-status { margin-top: 1rem; font-weight: 600; }
.form-error { color: #912b29; }

@media (max-width: 680px) {
  .contact-page-grid, .form-fields { grid-template-columns: 1fr; }
  .footer-inner { flex-wrap: wrap; }
}

.language-switcher { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.language-switcher a { display: grid; place-items: center; width: 36px; height: 40px; border-bottom: 2px solid transparent; }
.language-switcher a:hover, .language-switcher a[aria-current="page"] { border-color: var(--logo-gold); }
.language-switcher img { width: 26px; height: 17px; object-fit: contain; }
@media (max-width: 390px) {
  .header-inner { gap: .35rem; }
  .language-switcher a { width: 32px; }
  .language-switcher img { width: 23px; }
}
