:root {
  --bg: #f7f6f1;
  --bg-sand: #e8e1d6;
  --bg-cta: #e4d9cb;
  --paper: #fffcf8;
  --ink: #1e1f1e;
  --muted: #6e6960;
  --line: #e3dcd2;
  --header: #2a2c2b;
  --footer: #1c1e1d;
  --brass: #c6aa78;
  --brass-2: #d4bc90;
  --serif: "Fraunces", "Times New Roman", serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --header-h: 72px;
  --shadow: 0 24px 60px rgba(28, 26, 22, 0.08);
}

* { box-sizing: border-box; }
html { scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

::selection { background: #e4d3ae; color: var(--ink); }

.vh, .skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.skip:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  z-index: 80;
  background: #fff;
  padding: 8px 12px;
}

.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(760px, 100%); }

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
h1, h2, .serif { font-family: var(--serif); font-weight: 460; letter-spacing: -0.03em; }
h1 { font-size: clamp(44px, 6vw, 76px); line-height: 1.02; font-weight: 500; }
h2 { font-size: clamp(34px, 4vw, 52px); line-height: 1.05; font-weight: 500; }
h3 { font-family: var(--serif); font-size: 28px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }

.lede { font-size: 17px; line-height: 1.65; color: var(--muted); max-width: 46ch; }
.fine { color: var(--muted); font-size: 13px; margin-top: 10px; }

.section { padding: 88px 0; }
.section-head {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px 48px;
  align-items: end;
  margin-bottom: 32px;
}
.section-head .lede { justify-self: end; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  background: transparent;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 560;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-brass { background: var(--brass); color: #241f18; }
.btn-brass:hover { background: var(--brass-2); }
.btn-dark { background: var(--ink); color: #f7f4ee; border-color: var(--ink); }
.btn-dark:hover { background: #000; }
.btn-ghost { border-color: #d5cfc4; background: transparent; color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { border-color: rgba(255,255,255,0.35); color: #f7f4ee; }
.btn-light:hover { background: #fff; color: var(--ink); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 500;
}
.link-arrow.light { color: #f3eee6; }
.link-arrow:hover { color: var(--brass); }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header-h);
  background: var(--header);
  color: #f4f0e8;
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}
.logo {
  font-family: var(--serif);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 560;
  color: #f4f0e8;
  flex: 0 0 auto;
}
.logo small {
  font-size: 10px;
  letter-spacing: 0.22em;
  margin-left: 8px;
  color: #c6aa78;
}
.nav { display: flex; gap: 26px; margin-left: 12px; }
.nav a { font-size: 14px; color: #ddd6cb; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lang {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: #b7b1a6;
  padding: 0 8px;
}
.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  color: #f4f0e8;
}
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  position: relative;
  background: transparent;
  border: 0;
  color: #f4f0e8;
}
.nav-toggle span {
  position: absolute;
  left: 11px;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.2s ease, top 0.2s ease;
}
.nav-toggle span:first-child { top: 16px; }
.nav-toggle span:last-child { top: 23px; }
.nav-toggle.is-open span:first-child { top: 19px; transform: rotate(45deg); }
.nav-toggle.is-open span:last-child { top: 19px; transform: rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  min-height: calc(100dvh - var(--header-h));
  display: flex;
  align-items: center;
  color: #f7f4ee;
  background: #141413;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10,10,10,0.78) 0%, rgba(10,10,10,0.42) 42%, rgba(10,10,10,0.12) 100%),
    linear-gradient(180deg, rgba(10,10,10,0.15), rgba(10,10,10,0.28));
}
.hero-content { position: relative; z-index: 1; padding: 72px 0; }
.hero-copy { max-width: 640px; }
.hero .eyebrow { color: var(--brass); }
.hero h1 { color: #f7f4ee; }
.hero .lede { color: rgba(247, 244, 238, 0.86); margin-top: 18px; }
.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 28px; }

.stats {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.stat { padding: 28px 22px 30px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.stat span { color: var(--muted); font-size: 14px; }

/* Catalog */
.toolbar { display: grid; gap: 14px; margin-bottom: 18px; }
.catalog-search {
  display: flex;
  background: #fff;
  border: 1px solid var(--line);
  min-height: 52px;
}
.catalog-search input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 0 16px;
  outline: none;
  min-width: 0;
}
.catalog-search select {
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  padding: 0 36px 0 14px;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #6e6960 50%), linear-gradient(135deg, #6e6960 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid #ddd6cb;
  background: transparent;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--ink);
}
.chip.is-active, .chip:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.catalog-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; margin: 8px 0 16px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px 16px;
}
.card { background: var(--paper); display: flex; flex-direction: column; min-width: 0; }
.card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #e7e2d8; }
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.card:hover .card-media img { transform: scale(1.045); }
.badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 252, 248, 0.94);
  font-size: 11px;
  letter-spacing: 0.04em;
}
.card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body .eyebrow { margin: 0; }
.card h3 { font-size: 22px; }
.card p { color: var(--muted); font-size: 14px; line-height: 1.5; }
.card .spec { font-size: 12px; letter-spacing: 0.04em; color: #8a847a; }
.card-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 8px; }
.card-actions .btn { flex: 1; height: 36px; padding: 0 8px; }
.empty {
  display: none;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
}
.empty.is-on { display: block; }

.why-grid, .steps { display: grid; gap: 16px; }
.why-grid { grid-template-columns: repeat(3, 1fr); }
.why-card { background: #fff; padding: 28px 24px 32px; border-top: 2px solid var(--brass); }
.why-card p { margin-top: 10px; color: var(--muted); }

.process { background: var(--bg-sand); }
.steps { grid-template-columns: repeat(5, 1fr); gap: 0; list-style: none; margin: 0; padding: 0; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 8px 0 28px; }
.facts li { border-top: 2px solid var(--brass); padding-top: 12px; }
.facts small { display: block; letter-spacing: 0.14em; text-transform: uppercase; font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.step { padding: 8px 18px 0 0; }
.step + .step { border-left: 1px solid rgba(30, 31, 30, 0.12); padding-left: 18px; }
.step em {
  display: block;
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 12px;
}
.step h3 { font-size: 24px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14px; }

/* Projects */
.projects { background: #161716; color: #f4f0e8; }
.projects .eyebrow { color: var(--brass); }
.projects .lede, .projects .fine { color: #b7b1a6; }
.filters-dark .chip { border-color: rgba(255,255,255,0.28); color: #f4f0e8; }
.filters-dark .chip.is-active, .filters-dark .chip:hover { background: #f4f0e8; color: #161716; border-color: #f4f0e8; }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 18px; }
.project-card { display: block; color: inherit; }
.project-media { aspect-ratio: 16/10; overflow: hidden; background: #2a2b2a; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.project-card:hover img { transform: scale(1.04); }
.project-meta { display: flex; justify-content: space-between; gap: 16px; padding-top: 12px; align-items: baseline; }
.project-meta strong { font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.project-meta span { color: #b7b1a6; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }

/* Journal */
.journal {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
}
.journal-item, .post-feature {
  display: grid;
  gap: 8px 18px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  color: inherit;
}
.journal-item { grid-template-columns: 120px 1fr auto; align-items: center; }
.journal-item time, .post-kicker { color: var(--muted); font-size: 13px; }
.journal-item h3, .post-feature h3 { font-size: 26px; }
.journal-item p, .post-feature p { color: var(--muted); font-size: 15px; }
.arrow {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.journal-item:hover .arrow, .post-feature:hover h3 { color: #8a6d3f; }
.post-list { display: grid; gap: 28px; }
.post-feature {
  grid-template-columns: 280px 1fr;
  align-items: center;
  border: 0;
  padding: 0 0 28px;
  border-bottom: 1px solid var(--line);
}
.post-feature img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.cta-band { background: var(--bg-cta); }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 42px 0; }
.cta-inner h2 { font-size: clamp(30px, 3vw, 42px); max-width: 16ch; }

.contact-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 48px;
  align-items: start;
}
.contact-points { margin-top: 22px; display: grid; gap: 8px; color: var(--muted); }
.contact-points a:hover { color: var(--ink); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field span { font-size: 12px; color: var(--muted); }
.field input, .field select, .field textarea {
  background: #fff;
  border: 1px solid #e4ddd3;
  min-height: 48px;
  padding: 0 14px;
  outline: none;
  width: 100%;
}
.field textarea { min-height: 140px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #b7a07a; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #9a4a3c; }
.field small { color: #9a4a3c; font-size: 12px; min-height: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { width: 16px; min-height: 16px; margin-top: 3px; flex: 0 0 auto; }
.check button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.form-actions { grid-column: 1 / -1; display: flex; justify-content: center; padding-top: 6px; }
.form-success { background: #fff; border: 1px solid var(--line); padding: 36px 28px; }
.form-success h3 { margin-bottom: 8px; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* Footer */
.site-footer { background: var(--footer); color: #d9d3c8; padding: 64px 0 22px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 0.8fr 0.9fr 1fr; gap: 32px; }
.site-footer .logo { display: inline-block; margin-bottom: 12px; }
.site-footer p { color: #a9a398; font-size: 14px; max-width: 32ch; }
.site-footer h3 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 500;
  margin-bottom: 14px;
}
.site-footer li + li { margin-top: 8px; }
.site-footer a { color: #d9d3c8; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.legal {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 36px;
  padding-top: 16px;
  color: #8f8a82;
  font-size: 12px;
}

/* Inner pages */
.page-hero { padding: 72px 0 12px; }
.page-hero h1 { max-width: 12em; }
.page-hero.prose h1 { max-width: 16em; }
.projects .filters { margin: 6px 0 18px; }
.related .product-grid { grid-template-columns: repeat(3, 1fr); }
.page-hero .lede { margin-top: 16px; }
.wide-photo { margin: 28px 0 8px; }
.wide-photo img { width: 100%; aspect-ratio: 16/7; object-fit: cover; }
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 56px;
  padding: 28px 0 10px;
}
.story p + p { margin-top: 14px; }
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  padding-bottom: 20px;
}
.split img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.detail {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 42px;
  padding: 28px 0 72px;
  align-items: start;
}
.detail-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.detail-copy { position: sticky; top: 92px; }
.detail-copy h1 { font-size: clamp(36px, 4vw, 56px); margin: 8px 0 12px; }
.specs { width: 100%; border-collapse: collapse; margin: 18px 0; }
.specs th, .specs td { text-align: left; font-weight: 400; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { color: var(--muted); width: 40%; font-size: 14px; }
.prose { max-width: 70ch; }
.prose p { font-size: 18px; line-height: 1.7; margin-bottom: 16px; }
.article-cover { width: 100%; aspect-ratio: 16/8; object-fit: cover; margin: 22px 0 28px; }
.crumb { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.crumb a:hover { color: var(--ink); }
.related { padding-bottom: 72px; }
.related h2 { font-size: 32px; margin-bottom: 18px; }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.pager a { max-width: 46%; }
.pager small { display: block; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; font-size: 11px; margin-bottom: 4px; }

.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(16, 16, 15, 0.5);
  display: grid;
  align-items: start;
  justify-items: center;
  padding: 10vh 20px 32px;
}
.overlay[hidden] { display: none; }
.overlay-panel {
  width: min(720px, 100%);
  background: var(--bg);
  padding: 22px 22px 18px;
  position: relative;
  max-height: min(78vh, 760px);
  overflow: auto;
}
.overlay-panel h2 { font-size: 32px; margin-bottom: 8px; }
.overlay-panel p { color: var(--muted); margin-bottom: 10px; }
.close-x {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
}
#search-input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-family: var(--serif);
  font-size: 32px;
  padding: 8px 36px 12px 0;
  outline: none;
}
.search-hit { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
.search-hit small { color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase; font-size: 11px; }
.search-hit strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 22px; }
body.locked { overflow: hidden; }

@media (min-width: 901px) {
  .hero-img { object-position: 68% center; }
}

@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; gap: 22px 0; }
  .step + .step { border-left: 0; padding-left: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .journal-item { grid-template-columns: 90px 1fr auto; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: block; }
  .lang { display: none; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--bg);
    color: var(--ink);
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 18px 22px 32px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  .nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
  .nav a {
    font-family: var(--serif);
    font-size: 36px;
    color: var(--ink);
    letter-spacing: -0.03em;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }
  .facts { grid-template-columns: 1fr 1fr; }
  .section-head, .journal, .contact-grid, .story, .split, .detail, .post-feature, .why-grid, .stats-row, .project-grid {
    grid-template-columns: 1fr;
  }
  .section-head .lede { justify-self: start; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .post-feature img { max-height: 240px; aspect-ratio: 16/9; }
  .detail-copy { position: static; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .journal-item { grid-template-columns: 1fr auto; }
  .journal-item time { grid-column: 1 / -1; }
  .related .product-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .product-grid, .form-grid, .steps, .facts { grid-template-columns: 1fr; }
  .header-inner { gap: 8px; }
  .header-tools { gap: 2px; }
  .logo { letter-spacing: 0.12em; font-size: 12px; }
  .header-inner .btn-brass { padding: 0 10px; }
  .hero-actions { flex-wrap: wrap; }
  .legal { flex-direction: column; }
  h1 { font-size: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .card-media img, .project-media img, .nav, .nav-toggle span { transition: none; }
}
