:root {
  color-scheme: light;
  --ink: #20292d;
  --dark: #20292d;
  --darker: #171f23;
  --paper: #f8f6f0;
  --sand: #ede7da;
  --gold: #e4c48a;
  --bronze: #79562d;
  --muted: #535955;
  --line: #d9d3c8;
  --display: 'Playfair Display', Georgia, serif;
  --body: Manrope, system-ui, sans-serif;
  font-family: var(--body);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); }
img { max-width: 100%; display: block; }
figure, h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #9b682f; outline-offset: 5px; }
p { line-height: 1.7; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; }
.wrap { width: min(1280px, calc(100% - clamp(40px, 10vw, 160px))); margin-inline: auto; }
.skip { position: absolute; top: .5rem; left: 1rem; z-index: 9; transform: translateY(-200%); padding: .8rem; background: var(--paper); }
.skip:focus { transform: none; }
.eyebrow {
  color: var(--bronze);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1.5;
  text-transform: uppercase;
}

.site-header { background: var(--darker); color: var(--paper); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 83px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  width: fit-content;
  flex-shrink: 0;
}
.brand img { width: 41px; height: 39px; object-fit: contain; }
.brand strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .21em;
  line-height: 1.25;
  text-transform: uppercase;
}
.brand small {
  display: block;
  margin-top: 4px;
  font-size: .49rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .105em;
  text-transform: uppercase;
}
nav { display: flex; align-items: center; gap: clamp(1rem, 3.2vw, 3rem); }
nav a { font-size: .82rem; font-weight: 700; text-decoration: none; }
nav a:hover, .site-footer a:hover { color: var(--gold); }
.nav-contact { border: 1px solid #726951; padding: .65rem .9rem; }
.nav-contact span { margin-left: .45rem; color: var(--gold); }
.menu-toggle { color: inherit; border: 1px solid #726951; padding: .42rem .62rem; background: transparent; cursor: pointer; }
.site-header :focus-visible, .hero :focus-visible, .site-footer :focus-visible, .contact :focus-visible { outline-color: var(--gold); }

.hero { background: var(--dark); color: var(--paper); }
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr);
  align-items: center;
  gap: clamp(28px, 4vw, 65px);
  padding-block: clamp(44px, 5vw, 74px);
}
.hero-content { padding-block: 1rem; }
.hero-eyebrow { color: var(--gold); display: flex; align-items: center; gap: .8rem; }
.hero-eyebrow::before { content: ''; width: 27px; height: 1px; background: var(--gold); }
.hero h1 {
  margin-top: 1.15rem;
  font-size: clamp(3.4rem, 6.1vw, 6.2rem);
  letter-spacing: -.064em;
  line-height: 1.03;
}
.hero h1 em { color: var(--gold); font-weight: 400; }
.hero-content > p:not(.eyebrow) { margin-top: 1.6rem; color: #deddd6; max-width: 35ch; font-size: .98rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.9rem;
  padding: .9rem 1.1rem;
  min-height: 49px;
  font-size: .82rem;
  font-weight: 800;
  text-decoration: none;
  transition: background .18s ease, color .18s ease;
}
.button-gold { margin-top: 1.9rem; background: var(--gold); color: var(--darker); }
.button-gold:hover { background: #f2d9aa; }
.button-dark { color: var(--paper); background: var(--dark); }
.button-dark:hover { background: #414b4d; }
.button span, .text-action span { font-size: 1.1em; }
.hero-figure { position: relative; }
.hero-figure img {
  width: 100%;
  height: auto;
  min-height: 360px;
  aspect-ratio: 1.42;
  object-fit: cover;
  object-position: center;
}
.hero-figure figcaption {
  position: absolute;
  bottom: 0;
  right: 0;
}
.hero-figure figcaption a {
  display: block;
  background: #171f23;
  color: var(--paper);
  padding: .7rem 1rem;
  font-size: .72rem;
  font-weight: 800;
  text-decoration: none;
}
.hero-figure figcaption a span { color: var(--gold); margin-left: .35rem; }
.hero-figure figcaption a:hover { color: var(--gold); }

.portfolio { padding-block: clamp(62px, 6vw, 88px) clamp(62px, 7vw, 105px); }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.9rem;
}
.section-heading h2, .company h2, .contact h2 {
  font-size: clamp(2.45rem, 4vw, 3.9rem);
  letter-spacing: -.045em;
  line-height: 1.1;
}
.section-heading p, .project-content > p:not(.eyebrow), .company > p:not(.eyebrow) { color: var(--muted); }
.section-heading p { font-size: .88rem; }
.property-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 34px); }
.property { display: flex; }
.property-link {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  background: #fffdf8;
  text-decoration: none;
}
.property-photo { position: relative; overflow: hidden; background: var(--sand); }
.property-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.42;
  object-fit: cover;
  transition: transform .25s ease;
}
.property-link:hover .property-photo img { transform: scale(1.035); }
.photo-note { position: absolute; bottom: .7rem; left: .7rem; background: var(--darker); color: var(--paper); padding: .32rem .56rem; font-size: .68rem; font-weight: 750; }
.property-content { flex: 1; display: flex; flex-direction: column; padding: clamp(16px, 2vw, 29px); }
.property h3 { font-size: clamp(1.52rem, 2.45vw, 2.26rem); letter-spacing: -.038em; margin-top: .32rem; line-height: 1.15; }
.property-description { margin: .74rem 0 1.25rem; color: var(--muted); font-size: .88rem; }
.property-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .6rem;
  border-top: 1px solid var(--line);
  margin-top: auto;
  padding-top: .8rem;
  font-size: .78rem;
  font-weight: 800;
}
.property-action span { color: var(--bronze); font-size: 1.2rem; transition: transform .18s ease; }
.property-link:hover .property-action span { transform: translateX(3px); }

.projects { background: var(--sand); }
.project-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(30px, 6vw, 96px);
  align-items: center;
  padding-block: clamp(48px, 6vw, 92px);
}
.project-photo { display: block; }
.project-photo img { width: 100%; height: auto; aspect-ratio: 1.3; object-fit: cover; object-position: 59% center; }
.project-content h2 {
  font-size: clamp(2rem, 3.6vw, 3.55rem);
  margin: .65rem 0 1rem;
  line-height: 1.12;
  letter-spacing: -.049em;
}
.project-content > p:not(.eyebrow) { font-size: .93rem; max-width: 46ch; }
.project-facts { list-style: none; padding: 1rem 0; margin: 1.3rem 0 1.2rem; border-block: 1px solid #d0c6b7; display: flex; flex-wrap: wrap; gap: 1rem clamp(15px, 2.75vw, 40px); }
.project-facts li { display: grid; gap: .2rem; }
.project-facts strong { font-family: var(--display); font-weight: 500; font-size: clamp(1.15rem, 2.4vw, 1.9rem); line-height: 1.2; }
.project-facts span { font-size: .71rem; color: var(--muted); }
.text-action { font-size: .82rem; font-weight: 800; text-decoration-color: #ab8a60; text-underline-offset: .32em; }
.text-action span { display: inline-block; margin-left: .35rem; color: var(--bronze); }

.company-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: clamp(24px, 6vw, 94px);
  padding-block: clamp(55px, 7vw, 108px);
}
.company { padding: clamp(10px, 2vw, 24px) 0; }
.company h2 { margin: .45rem 0 .8rem; }
.company > p:not(.eyebrow) { max-width: 51ch; }
.contact { background: var(--dark); color: var(--paper); padding: clamp(22px, 3vw, 43px); min-width: 0; }
.contact h2 { font-size: clamp(2.1rem, 3.1vw, 2.95rem); }
.contact > p { color: #e0ddd4; font-size: .91rem; margin: .8rem 0 1.25rem; max-width: 45ch; }
.contact-mail { color: var(--gold); font-size: clamp(.86rem, 1.35vw, 1.1rem); font-weight: 800; overflow-wrap: anywhere; text-underline-offset: .28em; }
.contact-mail span { margin-left: .2rem; }
.site-footer { background: var(--darker); color: #e9e7df; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.5rem; }
.footer-inner > a:not(.brand) { font-size: .8rem; font-weight: 750; text-decoration: none; }
.footer-inner > small { color: #d3d0c8; font-size: .73rem; }

.detail { padding-block: clamp(28px, 4vw, 64px) clamp(60px, 7vw, 100px); }
.back { display: inline-flex; gap: .5rem; align-items: center; text-decoration: none; color: var(--muted); font-size: .85rem; font-weight: 800; }
.back:hover { color: var(--bronze); }
.detail-heading { margin-block: 1.55rem 1.8rem; }
.detail-heading h1 { font-size: clamp(2.4rem, 5.2vw, 5rem); letter-spacing: -.052em; line-height: 1.08; margin-top: .4rem; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: start; gap: clamp(24px, 4.5vw, 66px); }
.gallery-stage { position: relative; background: var(--sand); }
.gallery-stage > img { width: 100%; height: auto; aspect-ratio: 1.49; object-fit: contain; }
.gallery-stage figcaption { display: flex; justify-content: space-between; padding: .6rem .85rem; color: var(--paper); background: var(--dark); font-size: .73rem; font-weight: 750; }
.gallery-step {
  position: absolute;
  top: calc(50% - 17px);
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--paper);
  background: var(--darker);
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
}
.gallery-step:hover { color: var(--gold); }
.gallery-step.previous { left: .65rem; }
.gallery-step.next { right: .65rem; }
.gallery-thumbnails { margin: .7rem 0 0; padding: 5px; display: flex; gap: .55rem; list-style: none; overflow-x: auto; }
.gallery-thumbnails li { flex: 0 0 clamp(55px, 6.4vw, 91px); }
.gallery-thumbnails img { width: 100%; height: auto; aspect-ratio: 1.35; object-fit: cover; }
.gallery-thumbnails a { display: block; opacity: .77; }
.gallery-thumbnails a:hover, .gallery-thumbnails [aria-current="true"] { opacity: 1; }
.gallery-thumbnails [aria-current="true"] { outline: 2px solid var(--bronze); outline-offset: 2px; }
.gallery-note { margin-top: .85rem; font-size: .82rem; color: var(--muted); }
.detail-content h2 { font-size: clamp(1.65rem, 2.8vw, 2.45rem); margin: 0 0 .7rem; line-height: 1.15; }
.detail-content h3 { font-size: 1.35rem; margin: 1.05rem 0 .3rem; }
.detail-content > p { color: var(--muted); font-size: .91rem; }
.detail-facts { display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; margin: 1.05rem 0; list-style: none; }
.detail-facts li { padding: .36rem .6rem; background: var(--sand); color: var(--ink); font-size: .74rem; font-weight: 800; }
.detail-inquiry { display: grid; justify-items: start; gap: .65rem; border-top: 1px solid var(--line); margin-top: 1.4rem; padding-top: 1rem; }
.detail-inquiry p, .detail-inquiry > span { color: var(--muted); font-size: .8rem; font-weight: 700; }
.map { display: inline-block; margin-top: .5rem; }

@media (max-width: 930px) {
  .wrap { width: calc(100% - 56px); }
  .hero h1 { font-size: clamp(3.25rem, 7vw, 5rem); }
  .hero-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.14fr); gap: 24px; }
  .hero-figure img { min-height: 330px; }
}

@media (max-width: 720px) {
  .wrap { width: calc(100% - 38px); }
  .header-inner { flex-wrap: wrap; gap: 0; min-height: 67px; padding-block: .65rem; }
  .brand img { width: 33px; height: 33px; }
  .brand strong { font-size: .94rem; }
  nav { width: 100%; flex-wrap: wrap; padding: .8rem 0 .25rem; gap: .9rem 1rem; }
  .menu-toggle:not([hidden]) { display: inline-flex; align-items: center; gap: .46rem; font-size: .8rem; font-weight: 750; }
  .menu-toggle:not([hidden]) + nav { border-top: 1px solid #726951; margin-top: .7rem; }
  .nav-contact { padding: .42rem .52rem; }
  .hero-layout { grid-template-columns: minmax(0, 1fr); padding-block: 35px 24px; }
  .hero-content { padding-block: 0; }
  .hero h1 { font-size: clamp(3.15rem, 11.8vw, 4.7rem); margin-top: .75rem; }
  .hero-content > p:not(.eyebrow) { margin-top: .9rem; }
  .button-gold { margin-top: 1.2rem; }
  .hero-figure img { min-height: 0; aspect-ratio: 1.6; }
  .section-heading { display: grid; gap: .55rem; margin-bottom: 1.3rem; }
  .property-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-layout, .company-contact, .detail-layout { grid-template-columns: minmax(0, 1fr); }
  .project-photo img { aspect-ratio: 1.5; }
  .detail-heading { margin-block: 1.15rem; }
}

@media (max-width: 490px) {
  .portfolio { padding-block: 52px; }
  .property-grid { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
  .property-photo img { aspect-ratio: 1.55; }
  .footer-inner { flex-wrap: wrap; }
  .footer-inner > small { order: 1; flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
