:root {
  --bg: #ffffff;
  --ink: #111111;
  --body: #5a5950;
  --accent: #88744a;
  --line: #e2dfd8;
  --tile: #ecebe7;
  --dark: #0d0d0d;

  --sans: "Barlow", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 2.5vw, 32px);
  --gap: clamp(10px, 1.6vw, 20px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }

.eyebrow {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: .04em;
  color: var(--accent);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 13px 16px;
  border: 1px solid var(--accent);
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .25s, color .25s;
}
.button span { font-size: 18px; line-height: 1; transition: transform .25s var(--ease); }
.button:hover { background: var(--accent); color: #fff; }
.button:hover span { transform: translateX(4px); }

/* Header: see-through over the hero, solid once scrolled */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
  padding: 0 var(--gutter);
  color: #fff;
  transition: background .3s, color .3s;
}
.site-header.is-solid { background: var(--bg); color: var(--ink); }

.brand {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.header-actions { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 28px); }

.header-link {
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
}
.header-link:hover { text-decoration: underline; text-underline-offset: 5px; }

.menu-toggle {
  display: grid;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0 10px;
  align-content: center;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
.menu-toggle span { display: block; height: 1px; background: currentColor; }

/* Menu */

.menu {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0 var(--gutter);
  border: 0;
  background: var(--dark);
  color: #fff;
}
.menu::backdrop { background: var(--dark); }
.menu[open] { display: flex; align-items: center; animation: fade .3s var(--ease); }

.menu-close {
  position: absolute;
  top: 26px;
  right: var(--gutter);
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
}

.menu-nav { display: flex; flex-direction: column; gap: 6px; padding-left: clamp(0px, 8vw, 120px); }

.menu-nav a {
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: .04em;
  text-decoration: none;
  transition: color .2s;
}
.menu-nav a:hover { color: #b9a578; }
.menu-nav .menu-gap { margin-top: 24px; }

/* Hero */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 100svh;
  min-height: 480px;
  overflow: hidden;
  background: var(--dark);
  color: #fff;
  text-align: center;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.hero.is-loaded .hero-img { opacity: 1; }
.hero.is-missing .hero-img { display: none; }

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.4), transparent 22%),
    linear-gradient(to top, rgba(0,0,0,.55), transparent 50%);
  pointer-events: none;
}

.hero-text { position: relative; z-index: 1; padding: 0 var(--gutter) clamp(56px, 11vh, 110px); }

.hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: .04em;
}

.hero-cta {
  display: inline-block;
  margin-top: 20px;
  padding-bottom: 4px;
  border-bottom: 1px solid #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
}

/* Category features, alternating left and right */

.features {
  display: flex;
  flex-direction: column;
  gap: clamp(64px, 10vw, 140px);
  padding: clamp(48px, 7vw, 96px) var(--gutter) 0;
}

.feature { width: min(62%, 860px); margin-left: 8%; }
.feature:nth-child(even) { margin-left: auto; margin-right: 8%; }
.feature.is-portrait { width: min(44%, 620px); }

.feature-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--tile);
}

.feature-text { padding-top: clamp(24px, 3vw, 40px); max-width: 460px; }
.feature-text p:not(.eyebrow) { margin: 14px 0 26px; color: var(--body); }

/* Images shared by the features and the gallery */

.photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .8s var(--ease), transform 1.4s var(--ease);
}
.is-loaded > .photo, .is-loaded > * > .photo { opacity: 1; }
a.feature-frame:hover .photo, .tile.is-loaded:hover .photo { transform: scale(1.02); }

/* Shown until the real photo is in images/ */
.is-missing .photo { display: none; }
.is-missing .feature-frame::after, .is-missing .tile-frame::after {
  content: "Photo coming soon";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8d8b84;
}

/* About */

.about {
  margin: clamp(72px, 11vw, 150px) var(--gutter) 0;
  padding: clamp(56px, 9vw, 120px) clamp(20px, 8vw, 120px);
  background: var(--dark);
  color: #fff;
}
.about-inner { max-width: 760px; }
.about h2 {
  margin: 10px 0 20px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: .03em;
}
.about p:not(.eyebrow) { margin: 0; color: #b5b3ab; }

/* Inquire */

.inquire {
  max-width: 760px;
  margin: clamp(72px, 11vw, 150px) auto 0;
  padding: 0 var(--gutter);
}
.inquire-note { margin: 16px 0 44px; color: var(--body); }
.inquire-note a { color: var(--accent); text-underline-offset: 3px; }

.inquire-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px var(--gap);
}

.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 13px; letter-spacing: .03em; color: var(--body); }
.optional { opacity: .7; }

.field input, .field select, .field textarea {
  width: 100%;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid #cfccc4;
  border-radius: 0;
  background: transparent;
  font: inherit;
  font-size: 16px; /* stops iOS zooming on focus */
  color: var(--ink);
  transition: border-color .2s;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--body) 50%), linear-gradient(135deg, var(--body) 50%, transparent 50%);
  background-position: calc(100% - 9px) 55%, calc(100% - 4px) 55%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-bottom-color: #a33; }

.field-trap { position: absolute; left: -9999px; }
.button:disabled { opacity: .5; cursor: default; }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form-status { margin: 0; font-size: 14px; color: var(--body); }
.form-status a { color: var(--accent); }

/* Gallery view */

.gallery { padding: calc(72px + clamp(32px, 5vw, 64px)) var(--gutter) 0; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 26px;
  margin: 22px 0 clamp(24px, 3vw, 40px);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.filters a {
  padding: 4px 0;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--body);
  transition: color .2s;
}
.filters a:hover { color: var(--ink); }
.filters a[aria-current="page"] { color: var(--accent); font-weight: 600; }

.grid { columns: 3; column-gap: var(--gap); }

.tile { break-inside: avoid; margin: 0 0 var(--gap); cursor: zoom-in; }
.tile.is-missing { cursor: default; }
.tile.is-hidden { display: none; }
.tile-frame { position: relative; overflow: hidden; background: var(--tile); }
.tile figcaption { padding-top: 8px; font-size: 13px; color: var(--body); }
.tile figcaption:empty { display: none; }

.gallery-empty { margin: 48px 0; color: var(--body); }
.gallery-next { margin-top: clamp(32px, 5vw, 64px); }

/* Footer */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: clamp(72px, 11vw, 150px);
  padding: 24px var(--gutter) 32px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  letter-spacing: .03em;
  color: var(--body);
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

/* Lightbox */

.lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--dark);
  color: #fff;
}
.lightbox::backdrop { background: var(--dark); }
.lightbox[open] { display: grid; place-items: center; animation: fade .3s var(--ease); }

.lb-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 72px calc(var(--gutter) + 56px) 28px;
}
.lb-img { flex: 1; min-height: 0; width: 100%; object-fit: contain; }
.lb-caption { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #a5a39b; }

.lb-close, .lb-prev, .lb-next {
  position: absolute;
  border: 0;
  background: none;
  color: #a5a39b;
  font: inherit;
  cursor: pointer;
  transition: color .2s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { color: #fff; }
.lb-close { top: 26px; right: var(--gutter); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); padding: 20px; font-size: 22px; }
.lb-prev { left: calc(var(--gutter) - 12px); }
.lb-next { right: calc(var(--gutter) - 12px); }

@keyframes fade { from { opacity: 0; } }

/* Responsive */

@media (max-width: 960px) {
  .grid { columns: 2; }
}

@media (max-width: 720px) {
  .brand { font-size: 12px; letter-spacing: .16em; }
  .feature, .feature:nth-child(even), .feature.is-portrait { width: 100%; margin: 0; }
  .inquire-form { grid-template-columns: 1fr; }
  .lb-prev, .lb-next { top: auto; bottom: 8px; transform: none; }
  .lb-figure { padding: 64px var(--gutter) 72px; }
}

@media (max-width: 420px) {
  .grid { columns: 1; }
  .header-link { display: none; }
}

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