@font-face {
  font-family: Comfortaa;
  src: url('assets/comfortaa.ttf') format('truetype');
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #141312;
  --surface: #1c1a18;
  --text: #faf4e9;
  --muted: #c4b9aa;
  --gold: #dfb977;
  --line: #3b3329;
  --paper: #f6f2eb;
  --ink: #22201e;
  --ink-muted: #5e554d;
  --paper-line: #cbbbab;
  --dark-gold: #795728;
  --site-font: Comfortaa, system-ui, sans-serif;
  font: 16px/1.6 var(--site-font);
  background: var(--bg);
  color: var(--text);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body, h1, h2, h3, p, figure, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
.wrap { width: min(1328px, calc(100% - 112px)); margin-inline: auto; }
.header { background: #11100f; border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.header-inner { min-height: 91px; }
.brand { display: inline-flex; align-items: center; gap: 13px; color: #efd2a0; white-space: nowrap; }
.brand img { width: 61px; height: auto; border-radius: 2px; }
.brand strong { display: block; font-size: .96rem; letter-spacing: .12em; line-height: 1.25; font-weight: 650; }
.brand small { color: var(--muted); display: block; font-size: .72rem; margin-top: 5px; }
nav { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 3vw, 45px); }
nav a, .footer-top { font-size: .9rem; color: var(--muted); }
nav a:hover, .footer a:hover { color: var(--gold); }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 49px; padding: 10px 21px; border: 1px solid transparent; border-radius: 3px; font-size: .91rem; line-height: 1.25; font-weight: 650; transition: background-color .2s, border-color .2s, color .2s; }
.header-phone { color: var(--gold); border-color: #816c4b; white-space: nowrap; }
.ghost { color: var(--text); border-color: #816c4b; background: transparent; }
.header-phone:hover, .ghost:hover { background: #393024; border-color: var(--gold); }
.primary { color: #211810; background: #dfb977; border-color: #dfb977; }
.primary:hover { background: #f0ce94; border-color: #f0ce94; }
.hero { position: relative; isolation: isolate; min-height: clamp(520px, 47vw, 710px); display: grid; align-items: center; overflow: clip; background: #171410; border-bottom: 1px solid var(--line); }
.hero-photo { position: absolute; top: 0; bottom: 0; right: 0; width: min(85%, 1590px); height: 100%; object-fit: cover; object-position: 62% center; z-index: -2; }
.hero::after { position: absolute; z-index: -1; inset: 0; content: ''; background: linear-gradient(90deg, #15120e 2%, #15120ef5 18%, #15120ebd 32%, #15120e18 54%, transparent 72%), linear-gradient(0deg, #0d0b08aa, transparent 22%); }
.hero-inner { align-self: stretch; display: flex; flex-direction: column; justify-content: center; position: relative; padding-block: 60px 95px; }
.hero-copy { max-width: 640px; }
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--gold); text-transform: uppercase; letter-spacing: .15em; font-size: .76rem; font-weight: 670; }
.eyebrow span, .hero-caption span { display: inline-block; height: 1px; width: 26px; background: currentColor; }
h1, h2 { font-family: var(--site-font); font-weight: 400; letter-spacing: -.042em; line-height: 1.05; }
h1 { margin-top: 18px; font-size: clamp(2.5rem, 4.1vw, 4.15rem); }
h2 { margin-top: 14px; font-size: clamp(2.4rem, 4.3vw, 4.25rem); }
.hero-description { max-width: 390px; margin-top: 23px; color: #e1d6c8; font-size: 1.04rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 29px; }
.hero-caption { position: absolute; bottom: 22px; right: 0; display: flex; align-items: center; gap: 9px; color: #f0dec6; font-size: .8rem; }
.section { padding-block: clamp(54px, 7vw, 108px); }
.catalog { color-scheme: light; color: var(--ink); background: var(--paper); }
.catalog .eyebrow { color: var(--dark-gold); }
.catalog .section-intro, .catalog-note { color: var(--ink-muted); }
.catalog-note { margin-top: 6px; font-size: .875rem; }
.catalog :focus-visible { outline-color: var(--dark-gold); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.section-intro { margin-top: 13px; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 7px; padding-bottom: 1px; }
.filters button { color: var(--ink); background: transparent; border: 1px solid var(--paper-line); border-radius: 2px; min-height: 42px; padding: 5px 13px; font-size: .875rem; }
.filters button:hover { border-color: var(--dark-gold); }
.filters button[aria-pressed="true"] { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 34px); }
.card { border: 1px solid var(--paper-line); border-radius: 3px; overflow: clip; background: #fcf9f4; }
.photo-button { display: block; width: 100%; overflow: hidden; padding: 0; border: 0; position: relative; background: #2b241e; text-align: left; }
.photo-button:focus-visible { outline-offset: -4px; }
.photo-button img { width: 100%; height: auto; aspect-ratio: 1.58; object-fit: cover; transition: transform .35s ease; }
.front-samples img { object-fit: contain; background: #e3e0da; }
.front-types-link {
  margin-top: 16px;
  border-color: var(--paper-line);
  color: var(--ink);
}
.front-types-link:hover { border-color: var(--dark-gold); }
.fronts-section { color-scheme: light; background: #eae5dc; color: var(--ink); }
.fronts-section .section-intro { color: var(--ink-muted); }
.fronts-section :focus-visible { outline-color: var(--dark-gold); }
.front-type-links { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 24px; }
.front-type-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 5px 11px;
  border: 1px solid #a99a87;
  border-radius: 3px;
  font-size: .84rem;
}
.front-type-links a:hover { background: #f8f4ed; border-color: var(--dark-gold); }
.front-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 305px), 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.front-type {
  min-width: 0;
  overflow: clip;
  background: #faf7f1;
  border: 1px solid var(--paper-line);
  border-radius: 3px;
}
.front-type .photo-button img { aspect-ratio: 2; }
.front-type-copy { padding: 16px; }
.front-type-copy p { margin-top: 7px; font-size: .9rem; color: var(--ink-muted); }
.front-type-note { margin-top: 24px; font-size: .85rem; color: var(--ink-muted); }
.photo-button:hover img { transform: scale(1.045); }
.zoom { display: grid; place-items: center; position: absolute; right: 12px; bottom: 12px; width: 39px; height: 39px; border: 1px solid #f4d59c80; background: #171410da; border-radius: 50%; color: #f0cc90; line-height: 1; font-size: 1.4rem; }
.card-copy { padding: clamp(16px, 2vw, 26px); }
.card-copy h3 { font: 400 clamp(1.55rem, 2.5vw, 2.35rem)/1.12 var(--site-font); letter-spacing: -.025em; }
.card-copy p { margin-top: 8px; color: var(--ink-muted); }
.card-copy .card-materials { border-top: 1px solid var(--paper-line); padding-top: 10px; margin-top: 13px; font-size: .9rem; }
h3 { font-size: 1.19rem; line-height: 1.25; font-weight: 640; }
.material-details dd { color: var(--muted); }
.materials { background: var(--surface); border-block: 1px solid var(--line); padding-block: clamp(54px, 7vw, 108px); }
.materials-inner { display: grid; grid-template-columns: 1.06fr 1fr; align-items: center; gap: clamp(28px, 5vw, 80px); }
.material-photo { border: 1px solid var(--line); border-radius: 5px; overflow: clip; }
.material-photo img { width: 100%; height: auto; aspect-ratio: 1.8; object-fit: cover; }
.material-copy .section-intro { max-width: 62ch; }
.materials-note { margin-top: 12px; color: var(--muted); font-size: .9rem; }
.material-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: clamp(28px, 4vw, 56px) 0 0; background: var(--line); border: 1px solid var(--line); }
.material-details > div { padding: clamp(16px, 2vw, 28px); background: var(--surface); }
.material-details dt { margin-bottom: 9px; color: #efd2a0; font: 400 1.35rem/1.22 var(--site-font); }
.material-details dd + dd { margin-top: 10px; }
.material-details dd strong { color: var(--text); font-weight: 620; }
.steps p { margin-top: 8px; color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; list-style: none; margin: 28px 0 0; border-block: 1px solid var(--line); }
.steps li { padding: 23px 19px 24px; border-right: 1px solid var(--line); }
.steps li:first-child { padding-left: 0; }
.steps li:last-child { border-right: none; }
.steps h3 { color: #e2bf89; }
.brief { padding-block: 65px 76px; border-block: 1px solid var(--line); background: radial-gradient(ellipse at left top, #30251b, transparent 65%), #181512; }
.brief-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(25px, 8vw, 110px); }
.brief-description { color: var(--muted); margin-top: 17px; max-width: 420px; }
.brief-phone { margin-top: 20px; }
#brief-form { display: grid; gap: 13px; }
#brief-form label { display: grid; gap: 5px; color: var(--text); font-size: .88rem; font-weight: 630; }
#brief-form input, #brief-form select, #brief-form textarea { width: 100%; min-height: 47px; border: 1px solid #62503c; border-radius: 3px; background: #191715; color: var(--text); padding: 10px 12px; font-size: 1rem; font-weight: 400; }
#brief-form select { appearance: none; padding-right: 33px; }
#brief-form label:has(select) { position: relative; }
#brief-form label:has(select)::after { content: ''; position: absolute; right: 17px; bottom: 21px; width: 8px; height: 8px; border-right: 1px solid var(--gold); border-bottom: 1px solid var(--gold); transform: rotate(45deg); pointer-events: none; }
#brief-form textarea { resize: vertical; }
#brief-form ::placeholder { color: #b2a596; }
#brief-form button { justify-self: start; margin-top: 3px; }
.form-status { color: #f2cc90; font-size: .92rem; }
.footer { background: #11100f; padding-block: 24px; }
.footer-contact a { font-weight: 650; color: var(--text); white-space: nowrap; }
.footer p { color: var(--muted); font-size: .86rem; }
dialog { position: fixed; width: fit-content; max-width: calc(100% - 30px); max-height: calc(100% - 30px); border: 1px solid #8f744e; border-radius: 5px; padding: 0; background: #1b1815; color: var(--text); }
dialog::backdrop { background: #090806e8; }
dialog img { max-height: 76vh; width: auto; max-width: 100%; object-fit: contain; }
dialog figcaption { padding: 10px 16px; white-space: pre-line; }
dialog .close { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #17120fe8; color: var(--text); border: 1px solid #a8906e; font-size: 1.45rem; }
@media (max-width: 1120px) {
  .wrap { width: calc(100% - 72px); }
  .section-head { flex-wrap: wrap; }
}
@media (max-width: 850px) {
  .wrap { width: calc(100% - 44px); }
  .header-inner { min-height: 72px; flex-wrap: wrap; gap: 9px 13px; padding-block: 10px; }
  .material-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  nav { justify-content: flex-start; order: 3; flex-basis: 100%; border-top: 1px solid var(--line); padding-top: 8px; }
  .hero-photo { width: 100%; }
  .hero { min-height: 495px; }
  .hero::after { background: linear-gradient(90deg, #15120ef5, #15120ec9 26%, #15120e30 65%, transparent), linear-gradient(0deg, #0d0b08a0, transparent 20%); }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .brand { gap: 8px; }
  .brand img { width: 42px; }
  .brand strong { font-size: .77rem; letter-spacing: .05em; }
  .brand small { font-size: .68rem; margin-top: 3px; }
  .header-phone { min-height: 44px; padding-inline: 8px; font-size: .825rem; }
  nav { justify-content: space-between; flex-wrap: wrap; gap: 8px; }
  .hero { display: flex; flex-direction: column; min-height: 0; }
  .hero-photo { position: static; flex: none; height: auto; aspect-ratio: 16 / 9; order: -1; object-fit: cover; }
  .hero::after { content: none; }
  .hero-inner { padding-block: 29px 38px; margin-inline: auto; }
  .hero-caption { display: none; }
  h1 { font-size: clamp(1.9rem, 7vw, 3rem); margin-top: 13px; }
  .hero-description { margin-top: 15px; }
  .hero-actions { margin-top: 20px; }
  .hero-actions .button { padding-inline: 12px; font-size: .82rem; }
  .section, .materials, .brief { padding-block: 47px; }
  .section-head { margin-bottom: 22px; gap: 16px; }
  .filters { gap: 5px; }
  .filters button { padding-inline: 9px; min-height: 42px; font-size: .875rem; }
  .gallery { grid-template-columns: 1fr; }
  .card-copy { padding: 15px 16px 17px; }
  .materials-inner, .brief-inner { grid-template-columns: 1fr; }
  .material-photo { order: 1; }
  .material-details { grid-template-columns: 1fr; }
  .material-photo img { aspect-ratio: 1.5; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li { padding: 15px 12px; }
  .steps li:nth-child(odd) { padding-left: 0; }
  .steps li:nth-child(even) { border-right: none; }
  .steps li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .footer-inner { flex-wrap: wrap; gap: 14px; }
  .footer-contact { order: 3; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
@media (min-width: 601px) and (max-width: 850px) {
  .hero { display: flex; flex-direction: column; min-height: 0; }
  .hero-photo { position: static; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
  .hero::after { content: none; }
  .hero-inner { padding-block: 36px 48px; }
  .hero-caption { display: none; }
}
@media (max-width: 355px) {
  .header-phone { padding-inline: 6px; font-size: .79rem; }
  .brand img { width: 33px; }
  .brand strong { font-size: .73rem; }
}

.portfolio { background: var(--surface); border-bottom: 1px solid var(--line); }
.portfolio .section-head { margin-bottom: 24px; }
.portfolio .filters { margin-bottom: 26px; }
.portfolio .filters button { color: var(--text); border-color: #80705f; }
.portfolio .filters button:hover { border-color: var(--gold); }
.portfolio .filters button[aria-pressed="true"] { color: var(--bg); background: var(--gold); border-color: var(--gold); }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px clamp(16px, 2vw, 30px); }
.work-card { min-width: 0; padding-bottom: 18px; border-bottom: 1px solid #55483b; }
.work-photo { position: relative; display: block; background: #332d26; border-radius: 4px; overflow: hidden; }
.work-photo img { width: 100%; height: auto; aspect-ratio: 1.2; object-fit: cover; object-position: center var(--work-focus, 50%); transition: transform .35s ease; }
.work-photo:hover img { transform: scale(1.035); }
.work-photo:focus-visible { outline-offset: 3px; }
.work-open { position: absolute; right: 10px; bottom: 10px; padding: 6px 10px; border-radius: 2px; color: var(--text); background: #141211e8; font-size: .82rem; }
.work-card h3 { margin-top: 10px; color: var(--text); font: 400 clamp(1.25rem, 2vw, 1.7rem)/1.14 var(--site-font); }
.work-card p { margin-top: 7px; color: var(--muted); font-size: .9rem; }
#lightbox .close { z-index: 1; }
#lightbox img { margin-inline: auto; max-height: 73dvh; }
#lightbox:has(#photo-navigation:not([hidden])) { width: min(850px, calc(100% - 30px)); }
#lightbox:has(#photo-navigation:not([hidden])) img { width: 100%; height: min(66dvh, 850px); background: #141312; }
#photo-navigation { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 0 12px 12px; }
#photo-navigation button { min-width: 44px; min-height: 44px; border-radius: 3px; border: 1px solid #a8906e; color: var(--text); background: #2b241e; }
#photo-navigation button:hover { border-color: var(--gold); }
@media (max-width: 1000px) {
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header nav { column-gap: 14px; }
}
@media (max-width: 600px) {
  .work-grid { grid-template-columns: 1fr; gap: 23px; }
  .portfolio .section-head { margin-bottom: 18px; }
  .portfolio .filters { margin-bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .work-photo img { transition: none; }
}
