@font-face {
  font-family: "Minh Serif";
  src: url("assets/serif.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Minh Serif";
  src: url("assets/serif-italic.woff") format("woff");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f8f6f0;
  --white: #fdfcf8;
  --ink: #192721;
  --muted: #525b53;
  --line: #d8d8cc;
  --green: #192923;
  --green-deep: #12211c;
  --light-muted: #ccd3c9;
  --gold: #e5cb9b;
  --gold-dark: #76572b;
  --serif: "Baskervville", "Minh Serif", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --gutter: clamp(20px, 5.2vw, 82px);
  --header-height: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 400 1rem/1.58 var(--sans);
}
body:has(dialog[open]) { overflow: hidden; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #956117; outline-offset: 4px; }
.hero :focus-visible, .services :focus-visible, .contact-intro :focus-visible {
  outline-color: var(--gold);
}
section[id], main[id] { scroll-margin-top: calc(var(--header-height) + 12px); }

.container {
  width: min(100% - 2 * var(--gutter), 1320px);
  margin-inline: auto;
}

.icon-diag {
  position: relative;
  display: inline-block;
  flex: none;
  width: .74em;
  height: .74em;
}
.icon-diag::before {
  position: absolute;
  inset: 0 0 auto auto;
  width: 70%;
  height: 70%;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  content: "";
}
.icon-diag::after {
  position: absolute;
  top: calc(50% - .5px);
  left: -12%;
  width: 124%;
  height: 1px;
  background: currentColor;
  transform: rotate(-45deg);
  content: "";
}

.skip {
  position: fixed;
  z-index: 10;
  top: 10px;
  left: 12px;
  padding: 10px 15px;
  background: var(--white);
  transform: translateY(-150%);
}
.skip:focus { transform: translateY(0); }

.header {
  position: sticky;
  z-index: 5;
  top: 0;
  background: var(--paper);
  border-bottom: 1px solid #e9e5db;
}
.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand { display: inline-flex; flex: none; align-items: center; gap: 9px; }
.brand img { mix-blend-mode: multiply; object-fit: contain; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1.04rem; font-weight: 780; letter-spacing: .06em; line-height: 1.23; }
.brand strong span { font-weight: 520; }
.brand small { margin-top: 2px; font-size: .58rem; font-weight: 650; letter-spacing: .105em; }
.nav { display: flex; align-items: center; gap: clamp(20px, 3.5vw, 52px); }
.nav a { display: flex; align-items: center; min-height: 44px; font-size: .9rem; font-weight: 570; }
.nav a:hover, .to-top:hover { text-decoration: underline; text-underline-offset: 5px; }
.header-cta {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 16px;
  padding: 8px 14px;
  border: 1px solid #9da297;
  font-size: .86rem;
  font-weight: 680;
  white-space: nowrap;
}
.header-cta:hover { color: var(--white); background: var(--green); border-color: var(--green); }
.menu-toggle { display: none; }

.hero { overflow: clip; color: var(--white); background: var(--green); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(360px, .88fr) minmax(0, 1.12fr);
  gap: clamp(24px, 3.4vw, 64px);
  min-height: clamp(500px, 43vw, 650px);
  align-items: stretch;
}
.hero-copy { align-self: center; padding-block: clamp(52px, 5.2vw, 90px); }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  font-size: .71rem;
  font-weight: 720;
  letter-spacing: .13em;
  color: var(--gold);
}
.eyebrow span { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
h1, h2 { font-family: var(--serif); font-weight: 400; }
.hero h1 {
  font-size: clamp(3.35rem, 5.3vw, 6rem);
  letter-spacing: -.052em;
  line-height: 1.08;
}
.hero h1 em, .contact h2 em { color: var(--gold); font-weight: inherit; }
.hero-copy > p:not(.eyebrow) { max-width: 410px; margin-top: 23px; color: var(--light-muted); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 24px; margin-top: 29px; }
.button {
  display: inline-flex;
  min-height: 49px;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 12px 17px;
  border: 1px solid transparent;
  font-size: .875rem;
  font-weight: 720;
  line-height: 1.3;
}
.button-gold { color: var(--green-deep); background: var(--gold); }
.button-gold:hover { background: #f1d9af; }
.button-dark { color: var(--white); background: var(--green); }
.button-dark:hover { background: #2f4539; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; gap: 8px; font-size: .875rem; font-weight: 660; }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }

.hero-visual {
  position: relative;
  min-width: 0;
  isolation: isolate;
  margin-right: calc(-1 * max(var(--gutter), (100vw - 1320px) / 2));
}
.hero-visual img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 51% center; }
.hero-visual::after {
  position: absolute;
  inset: auto 0 0;
  height: 37%;
  background: linear-gradient(transparent, #121911c9);
  content: "";
}
.hero-visual figcaption { position: absolute; z-index: 1; bottom: 28px; left: 28px; right: 20px; color: white; }
.hero-visual figcaption span, .hero-visual figcaption strong { display: block; }
.hero-visual figcaption span { font-size: .66rem; font-weight: 720; letter-spacing: .13em; color: #f0dec0; }
.hero-visual figcaption strong { margin-top: 3px; font: 400 clamp(1.25rem, 2.25vw, 1.95rem)/1.3 var(--serif); }

.section { padding-block: clamp(58px, 7.3vw, 109px); }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px 42px;
  margin-bottom: 30px;
}
.section h2 { font-size: clamp(2.35rem, 4.6vw, 4.55rem); line-height: 1.12; letter-spacing: -.05em; }
.section-heading p { max-width: 410px; color: var(--muted); }
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px 20px;
  padding-block: 14px 19px;
  border-top: 1px solid var(--line);
}
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button {
  min-height: 44px;
  padding: 7px 15px;
  border: 1px solid #b5baad;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: .84rem;
  font-weight: 620;
  white-space: nowrap;
}
.filters button[aria-pressed="true"] { border-color: var(--green); color: var(--white); background: var(--green); }
.filters button[aria-pressed="false"]:hover { background: #e9e9df; }
.result-count { flex: none; font-size: .84rem; color: var(--muted); }

.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; }
.project { display: flex; flex-direction: column; min-width: 0; border-bottom: 1px solid var(--line); }
.project button {
  width: 100%;
  padding: 0;
  color: inherit;
  border: 0;
  background: none;
  text-align: left;
}
.project-media { display: block; aspect-ratio: 1.36; overflow: hidden; background: #deded0; }
.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center var(--image-y, 50%);
  transition: transform .28s ease;
}
.project button:hover img { transform: scale(1.035); }
.project-media--plan img { object-fit: contain; padding: 8px; }
.project-more { display: flex; justify-content: center; margin-top: 25px; }
.project-summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0 17px; }
.project-type, .detail-type {
  display: block;
  color: var(--gold-dark);
  font-size: .71rem;
  font-weight: 690;
  letter-spacing: .10em;
  text-transform: uppercase;
}
.project h3 { font-size: inherit; }
.project-name {
  display: block;
  margin-top: 3px;
  font: 400 clamp(1.24rem, 2vw, 1.8rem)/1.26 var(--serif);
  letter-spacing: -.03em;
}
.round-arrow {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #aab0a4;
  border-radius: 50%;
}
.project button:hover .round-arrow { background: var(--green); border-color: var(--green); color: var(--white); }

.services { background: var(--green); color: var(--white); }
.services-grid { display: grid; grid-template-columns: .55fr 1.45fr; align-items: start; gap: clamp(24px, 6vw, 100px); }
.services-intro p { margin-top: 13px; color: var(--light-muted); max-width: 230px; }
.service-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 27px; }
.service {
  position: relative;
  min-height: 110px;
  width: 100%;
  padding: 18px 26px 20px 0;
  border: 0;
  border-top: 1px solid #647267;
  background: none;
  color: inherit;
  text-align: left;
}
.service:hover { color: var(--gold); }
.service strong { display: block; font-size: 1.04rem; font-weight: 690; line-height: 1.35; }
.service span:not(.service-arrow) { display: block; margin-top: 6px; color: var(--light-muted); font-size: .875rem; }
.service-arrow { position: absolute; top: 23px; right: 2px; color: var(--gold); }

.process { background: #eeeee5; }
.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: process-step;
}
.steps li { border-top: 1px solid #a8ada2; padding-top: 17px; counter-increment: process-step; }
.steps li::before {
  content: counter(process-step, decimal-leading-zero);
  color: var(--gold-dark);
  font-size: .8rem;
  font-weight: 690;
  letter-spacing: .10em;
}
.steps h3 { margin: 9px 0 4px; font-size: 1.02rem; font-weight: 730; }
.steps p { color: var(--muted); font-size: .87rem; }

.contact { color: var(--white); background: var(--green-deep); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: clamp(28px, 5vw, 74px); }
.contact-intro > p { max-width: 430px; margin-top: 20px; color: var(--light-muted); }
.contact-methods { margin-top: 23px; max-width: 440px; }
.contact-methods div {
  display: grid;
  grid-template-columns: 65px minmax(0, 1fr);
  align-items: center;
  border-bottom: 1px solid #59665d;
}
.contact-methods div > span { color: var(--light-muted); font-size: .875rem; }
.contact-methods a, .contact-methods address { padding: 11px 0; min-height: 44px; font-weight: 650; overflow-wrap: anywhere; }
.contact-methods address { font-style: normal; }
.contact-methods a:hover { color: var(--gold); text-decoration: underline; text-underline-offset: 4px; }
.contact-methods a i { margin-left: 4px; color: var(--gold); font-style: normal; }

.inquiry { min-width: 0; padding: clamp(20px, 3vw, 38px); background: var(--paper); color: var(--ink); }
.inquiry h3 { margin-bottom: 19px; font: 400 1.75rem/1.2 var(--serif); letter-spacing: -.025em; }
.inquiry label { display: block; margin-bottom: 5px; font-size: .83rem; font-weight: 680; }
.optional { color: var(--muted); font-weight: 400; }
.inquiry input, .inquiry select, .inquiry textarea {
  display: block;
  min-width: 0;
  width: 100%;
  min-height: 45px;
  margin-bottom: 14px;
  padding: 9px 10px;
  border: 1px solid #aab0a3;
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.4;
}
.inquiry label input { margin-top: 5px; margin-bottom: 9px; }
.inquiry textarea { resize: vertical; }
.inquiry input::placeholder, .inquiry textarea::placeholder { color: #636c64; opacity: 1; }
.fields-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.copy-button {
  border: 0;
  background: transparent;
  min-height: 44px;
  padding: 0;
  color: var(--ink);
  font-size: .82rem;
  font-weight: 670;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.form-note, .form-status, .context-note { font-size: .79rem; color: var(--muted); }
.form-note, .form-status:not(:empty) { margin-top: 9px; }
.form-status { font-weight: 680; }
.context-note { margin: -3px 0 13px; font-weight: 680; }
.clear-project {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 5px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.inquiry .copy-fallback { margin: 10px 0 0; }

.footer { background: var(--paper); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 13px 20px; padding-block: 20px; }
.footer-inner p, .to-top { font-size: .8rem; color: var(--muted); }
.footer-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.footer-visits strong { margin-left: 4px; color: var(--ink); font-variant-numeric: tabular-nums; }
.to-top { min-height: 44px; display: flex; align-items: center; gap: 8px; }
.mobile-contact { display: none; }

dialog {
  width: min(780px, 100% - 28px);
  max-height: 89dvh;
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
}
dialog::backdrop { background: #0a1512bd; }
.dialog-inner { display: flow-root; }
.dialog-close {
  position: sticky;
  z-index: 1;
  top: 9px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 9px 9px -55px auto;
  padding: 0;
  border: 1px solid #aab0a4;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.7rem;
  line-height: 1;
}
.dialog-close:hover { background: var(--gold); }
.dialog-heading { padding: 19px 61px 14px clamp(19px, 4vw, 34px); }
.dialog-heading h2 { margin-top: 5px; font-size: clamp(1.65rem, 5vw, 2.65rem); letter-spacing: -.035em; line-height: 1.14; }
.dialog-stage { height: clamp(165px, 42dvh, 440px); background: #222e27; }
.dialog-image { width: 100%; height: 100%; object-fit: contain; }
.gallery-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 51px;
  gap: 7px;
  padding: 4px clamp(12px, 3vw, 29px);
  border-bottom: 1px solid var(--line);
}
.gallery-controls button {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #aab0a4;
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
  font-size: 1.1rem;
}
.gallery-controls button:hover { background: var(--gold); }
.gallery-caption { flex: 1; padding-top: 4px; font-size: .85rem; line-height: 1.3; text-align: center; }
#gallery-index { margin-right: 4px; color: var(--gold-dark); white-space: nowrap; font-weight: 720; }
#gallery-full { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.gallery-thumbs { display: flex; gap: 8px; padding: 9px clamp(14px, 4vw, 34px) 4px; overflow-x: auto; }
.gallery-thumbs button { flex: none; padding: 2px; border: 2px solid transparent; background: transparent; }
.gallery-thumbs button[aria-pressed="true"] { border-color: var(--gold-dark); }
.gallery-thumbs button:hover { border-color: #aab0a4; }
.gallery-thumbs button:focus-visible { outline-offset: -2px; }
.gallery-thumbs img { width: 65px; height: 46px; object-fit: cover; background: var(--line); }
.dialog-copy { padding: 16px clamp(19px, 4vw, 34px) clamp(19px, 4vw, 34px); }
.dialog-copy ul { margin-block: 11px 19px; padding-left: 21px; }

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(330px, .88fr) minmax(0, 1.12fr); }
  .nav { gap: clamp(12px, 2.6vw, 28px); }
  .services-grid { grid-template-columns: .46fr 1.54fr; gap: 22px; }
}

@media (max-width: 760px) {
  :root { --header-height: 62px; }
  html { scroll-padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  .header-inner { flex-wrap: wrap; column-gap: 14px; row-gap: 0; }
  .brand img { width: 36px; height: 36px; }
  .header-cta { display: none; }
  .js .menu-toggle {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 0 1px 0 8px;
    background: none;
    border: 0;
    color: var(--ink);
    font-weight: 690;
    font-size: .85rem;
  }
  .menu-toggle i { width: 15px; height: 10px; border-block: 1px solid currentColor; }
  .menu-toggle[aria-expanded="true"] i { height: 5px; }
  .nav { flex-basis: 100%; justify-content: space-between; flex-wrap: wrap; }
  .js .menu-toggle[aria-expanded="false"] + .nav { display: none; }
  .nav a { min-height: 48px; }
  .hero-grid { display: block; min-height: auto; }
  .hero-copy { padding-block: 40px 32px; }
  .eyebrow { margin-bottom: 14px; }
  .hero h1 { font-size: clamp(2.45rem, 11.2vw, 4.5rem); }
  .hero-copy > p:not(.eyebrow) { margin-top: 17px; max-width: 490px; }
  .hero-actions { margin-top: 19px; }
  .hero-visual { margin-inline: calc(-1 * var(--gutter)); height: clamp(237px, 59vw, 390px); }
  .hero-visual figcaption { bottom: 15px; left: var(--gutter); }
  .section-heading { display: block; margin-bottom: 21px; }
  .section-heading p { margin-top: 10px; }
  .filter-bar { display: block; padding-top: 12px; padding-bottom: 12px; }
  .filters { gap: 7px; }
  .filters button { padding-inline: 11px; }
  .result-count { margin-top: 8px; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px 12px; }
  .project-summary { align-items: start; gap: 5px; }
  .project .round-arrow { width: 28px; height: 28px; font-size: .82rem; }
  .services-grid, .contact-grid { display: block; }
  .services-intro p { max-width: none; }
  .service-list, .inquiry { margin-top: 22px; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact-methods { margin-top: 14px; }
  .inquiry { margin-top: 28px; }
  .mobile-contact {
    position: fixed;
    inset: auto 0 0;
    z-index: 4;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--green-deep);
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -3px 16px #15201a23;
  }
  .mobile-contact a {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 52px;
    gap: 7px;
    padding: 7px 5px;
    color: var(--white);
    font-size: .83rem;
    font-weight: 720;
  }
  .mobile-contact a + a { background: var(--gold); color: var(--green-deep); }
}

@media (max-width: 470px) {
  .project-grid { grid-template-columns: 1fr; gap: 18px; }
  .project-media { aspect-ratio: 1.46; }
  .project-name { font-size: 1.52rem; }
  .service-list { gap: 0 15px; }
  .service { padding-right: 15px; min-height: 125px; }
  .service-arrow { right: 0; }
  .steps { grid-template-columns: 1fr 1fr; gap: 14px; }
  .fields-pair { grid-template-columns: 1fr; gap: 0; }
  .footer-inner { flex-wrap: wrap; }
  .dialog-stage { height: auto; }
  .dialog-image { height: auto; min-height: 120px; max-height: min(39dvh, 380px); }
  .gallery-thumbs img { width: 51px; }
}

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