:root {
  --ink: #171512;
  --charcoal: #24211d;
  --graphite: #353533;
  --ivory: #f4f0e8;
  --paper: #fbf8f1;
  --mist: #d7ded8;
  --brass: #b38a4c;
  --copper: #8f5940;
  --pine: #40554b;
  --line: rgba(36, 33, 29, 0.16);
  --white: #ffffff;
  --shadow: 0 22px 70px rgba(19, 18, 15, 0.18);
}

@property --hero-scale {
  syntax: "<number>";
  inherits: false;
  initial-value: 1.035;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
  color: var(--ink);
  background: var(--paper);
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(20px, 4vw, 58px);
  color: var(--white);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(251, 248, 241, 0.94);
  box-shadow: 0 12px 40px rgba(19, 18, 15, 0.08);
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  width: clamp(142px, 11.5vw, 170px);
  min-width: 142px;
}

.brand-mark img {
  width: 100%;
  height: auto;
  transition: filter 180ms ease;
}

.site-header:not(.is-scrolled):not(.is-open) .brand-mark img {
  filter: brightness(0) invert(1);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.9vw, 30px);
  font: 14px/1 "Avenir Next", "Gill Sans", sans-serif;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 0;
  color: inherit;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 6px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 94svh;
  display: grid;
  align-items: end;
  padding: 120px clamp(20px, 5vw, 76px) 42px;
  color: var(--white);
  overflow: hidden;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  object-fit: cover;
  filter: saturate(0.9) contrast(1.06);
}

.hero-depth {
  --hero-x: 0px;
  --hero-y: 0px;
  --hero-scale: 1.035;
  transform: translate3d(var(--hero-x), var(--hero-y), 0) scale(var(--hero-scale));
  transform-origin: center;
  animation: hero-depth 12s ease-in-out infinite alternate;
  will-change: transform, filter;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(9, 9, 8, 0.76), rgba(9, 9, 8, 0.3) 48%, rgba(9, 9, 8, 0.12)),
    linear-gradient(0deg, rgba(9, 9, 8, 0.62), transparent 42%);
}

.hero-inner {
  position: relative;
  width: min(820px, 100%);
  animation: rise-in 700ms ease both;
}

.eyebrow {
  margin: 0 0 14px;
  font: 700 12px/1.2 "Avenir Next", "Gill Sans", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
}

.hero-brandline {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  font: 700 clamp(15px, 1.5vw, 19px) / 1 "Avenir Next", "Gill Sans", sans-serif;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.86);
  text-transform: uppercase;
}

.hero-brandline::before {
  width: 46px;
  height: 1px;
  background: var(--brass);
  content: "";
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(34px, 4.25vw, 62px);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.hero-copy {
  max-width: 680px;
  margin: 22px 0 0;
  font-size: clamp(17px, 1.65vw, 22px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid currentColor;
  border-radius: 2px;
  font: 700 14px/1 "Avenir Next", "Gill Sans", sans-serif;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  border-color: var(--brass);
  color: var(--ink);
  background: var(--brass);
}

.button.ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(760px, 100%);
  margin: 64px 0 0;
  background: rgba(255, 255, 255, 0.24);
}

.hero-facts div {
  padding: 18px;
  background: rgba(16, 15, 13, 0.42);
  backdrop-filter: blur(10px);
}

.hero-facts dt {
  font: 12px/1 "Avenir Next", "Gill Sans", sans-serif;
  opacity: 0.72;
}

.hero-facts dd {
  margin: 8px 0 0;
  font-size: 18px;
}

.band {
  padding: clamp(72px, 9vw, 132px) clamp(20px, 5vw, 76px);
}

section[id] {
  scroll-margin-top: 122px;
}

.section-grid,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(34px, 6vw, 96px);
  align-items: start;
}

.section-heading {
  max-width: 860px;
  margin-bottom: clamp(34px, 5vw, 68px);
}

.section-heading.compact {
  max-width: 680px;
}

h2,
h3,
p {
  overflow-wrap: anywhere;
}

h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 62px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: clamp(21px, 2vw, 30px);
  line-height: 1.18;
}

.section-heading p,
.intro-copy p,
.section-note,
.contact-layout p {
  font-size: 17px;
  line-height: 1.9;
  color: rgba(23, 21, 18, 0.74);
}

.intro-copy p:first-child {
  margin-top: 0;
}

.applications {
  background: var(--ivory);
}

.application-layout {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 18px;
}

.feature-panel {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  background: var(--charcoal);
  color: var(--white);
}

.feature-panel.wide {
  grid-row: span 2;
}

.feature-panel img {
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  opacity: 0.8;
  transition: transform 700ms ease, opacity 300ms ease;
}

.feature-panel:hover img {
  transform: scale(1.035);
  opacity: 0.68;
}

.feature-panel div {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 28px;
  background: linear-gradient(0deg, rgba(12, 12, 10, 0.82), transparent);
}

.feature-panel span,
.system-grid span,
.process-list span,
.project-type span {
  font: 700 12px/1 "Avenir Next", "Gill Sans", sans-serif;
  color: var(--brass);
}

.feature-panel p {
  max-width: 560px;
  margin: 12px 0 0;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}

.dark {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(179, 138, 76, 0.14), transparent 28%),
    linear-gradient(0deg, rgba(64, 85, 75, 0.18), transparent 46%),
    var(--charcoal);
}

.dark .section-heading p,
.dark .contact-layout p {
  color: rgba(255, 255, 255, 0.72);
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.17);
}

.system-grid article {
  min-height: 270px;
  padding: clamp(24px, 3vw, 38px);
  background: rgba(255, 255, 255, 0.045);
}

.system-grid h3 {
  margin-top: 18px;
}

.system-grid p,
.process-list p {
  margin: 14px 0 0;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.72);
}

.product-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 1px;
  background: rgba(255, 255, 255, 0.17);
}

.product-detail {
  background: rgba(255, 255, 255, 0.06);
}

.product-detail summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 0 clamp(22px, 3vw, 34px);
  cursor: pointer;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 700;
  list-style: none;
}

.product-detail summary::-webkit-details-marker {
  display: none;
}

.product-detail summary::after {
  content: "+";
  color: var(--brass);
  font: 400 28px/1 "Avenir Next", "Gill Sans", sans-serif;
}

.product-detail[open] summary::after {
  content: "-";
}

.product-detail div {
  padding: 0 clamp(22px, 3vw, 34px) 30px;
}

.product-detail p,
.product-detail li {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.75;
}

.product-detail ul {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding-left: 18px;
}

.projects {
  background: var(--paper);
}

.project-groups {
  display: grid;
  gap: clamp(28px, 4vw, 54px);
}

.project-type {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  gap: 18px;
  padding-top: clamp(22px, 3vw, 34px);
  border-top: 1px solid var(--line);
}

.project-type.featured {
  padding-top: 0;
  border-top: 0;
}

.project-type-copy {
  position: sticky;
  top: 110px;
  align-self: start;
}

.project-type-copy h3 {
  margin-top: 16px;
  font-size: clamp(30px, 3.2vw, 46px);
}

.project-type-copy p {
  margin: 18px 0 0;
  line-height: 1.8;
  color: rgba(23, 21, 18, 0.68);
}

.project-type-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 270px;
  gap: 14px;
}

.project-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  color: var(--white);
  background: var(--charcoal);
  box-shadow: var(--shadow);
}

.project-card.wide {
  grid-column: span 2;
}

.project-card img {
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
  transition: transform 700ms ease, opacity 250ms ease;
}

.project-card:hover img {
  transform: scale(1.04);
  opacity: 0.72;
}

.project-card figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 22px;
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 700;
  line-height: 1.25;
  background: linear-gradient(0deg, rgba(12, 12, 10, 0.78), transparent);
}

.muted {
  background:
    linear-gradient(90deg, rgba(215, 222, 216, 0.78), transparent 45%),
    var(--ivory);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line);
}

.process-list li {
  min-height: 210px;
  padding: 28px;
  background: var(--paper);
}

.process-list strong {
  display: block;
  margin-top: 16px;
  font-size: 22px;
}

.process-list p {
  color: rgba(23, 21, 18, 0.72);
}

.material-strip {
  display: grid;
  grid-template-columns: 0.8fr 1fr 0.78fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.material-strip figure {
  margin: 0;
  background: var(--white);
  box-shadow: var(--shadow);
}

.material-strip img {
  height: 330px;
  object-fit: cover;
}

.material-strip figcaption {
  padding: 16px 18px 18px;
  font-size: 18px;
}

.finish-system {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 18px;
  background: var(--line);
}

.finish-system article {
  min-height: 230px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.72);
}

.finish-system span {
  font: 700 12px/1 "Avenir Next", "Gill Sans", sans-serif;
  color: var(--brass);
}

.finish-system h3 {
  margin-top: 18px;
}

.finish-system p {
  margin: 14px 0 0;
  line-height: 1.75;
  color: rgba(23, 21, 18, 0.68);
}

.contact-layout {
  align-items: center;
}

.contact-cards {
  display: grid;
  gap: 1px;
  margin-top: 28px;
  background: rgba(255, 255, 255, 0.18);
}

.contact-cards a,
.contact-cards address {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 18px 20px;
  font-style: normal;
  background: rgba(255, 255, 255, 0.06);
}

.contact-cards span {
  font: 700 12px/1 "Avenir Next", "Gill Sans", sans-serif;
  color: var(--brass);
}

.contact-cards strong {
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.5;
}

.inquiry-form {
  display: grid;
  gap: 16px;
  padding: clamp(24px, 4vw, 42px);
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.inquiry-form label {
  display: grid;
  gap: 8px;
  font: 700 13px/1.2 "Avenir Next", "Gill Sans", sans-serif;
}

.inquiry-form select,
.inquiry-form textarea {
  width: 100%;
  border: 1px solid rgba(23, 21, 18, 0.18);
  border-radius: 2px;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--white);
}

.inquiry-form textarea {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(23, 21, 18, 0.58);
}

.dark .inquiry-form .form-note {
  color: rgba(23, 21, 18, 0.58);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(20px, 5vw, 76px);
  font: 13px/1.5 "Avenir Next", "Gill Sans", sans-serif;
  color: rgba(23, 21, 18, 0.66);
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-depth {
  from {
    --hero-scale: 1.035;
    filter: saturate(0.9) contrast(1.06);
  }
  to {
    --hero-scale: 1.1;
    filter: saturate(1) contrast(1.1);
  }
}

@media (max-width: 980px) {
  .site-nav {
    position: fixed;
    inset: 82px 16px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px;
    color: var(--ink);
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 17px 8px;
    border-bottom: 1px solid var(--line);
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .section-grid,
  .contact-layout,
  .application-layout {
    grid-template-columns: 1fr;
  }

  .system-grid,
  .process-list,
  .product-detail-grid,
  .finish-system {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-type {
    grid-template-columns: 1fr;
  }

  .project-type-copy {
    position: static;
  }

  .project-type-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .material-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 14px 16px;
  }

  .brand-mark {
    width: 120px;
    min-width: 120px;
  }

  .hero {
    min-height: 92svh;
    padding: 112px 18px 28px;
  }

  .hero h1 {
    font-size: 40px;
    letter-spacing: -0.05em;
  }

  .hero-brandline {
    margin-bottom: 14px;
    font-size: 13px;
    letter-spacing: 0.14em;
  }

  .hero-brandline::before {
    width: 28px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .hero-facts {
    grid-template-columns: 1fr;
    margin-top: 34px;
  }

  .band {
    padding: 62px 18px;
  }

  h2 {
    font-size: 34px;
  }

  .feature-panel,
  .feature-panel img {
    min-height: 380px;
  }

  .system-grid,
  .process-list,
  .product-detail-grid,
  .finish-system,
  .material-strip {
    grid-template-columns: 1fr;
  }

  .project-type-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 330px;
  }

  .project-card.wide {
    grid-column: auto;
  }

  .material-strip img {
    height: 280px;
  }

  .site-footer {
    display: grid;
  }
}
