:root {
  --ink: #14120f;
  --soft-ink: #39342c;
  --muted: #746c61;
  --paper: #f5f0e8;
  --paper-strong: #eee5d8;
  --white: #fffdf8;
  --line: #d9ccba;
  --bronze: #9b7044;
  --bronze-soft: #c9ad86;
  --bronze-dark: #754f2d;
  --green: #234c3e;
  --black: #0d0c0b;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.58;
}

img {
  max-width: 100%;
  display: block;
}

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

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

.container {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 253, 248, 0.94);
  border-bottom: 1px solid rgba(217, 204, 186, 0.86);
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  box-shadow: 0 12px 34px rgba(22, 18, 12, 0.08);
}

.header-inner {
  width: min(1280px, calc(100% - 42px));
  min-height: 86px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-wordmark {
  width: 286px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  color: var(--soft-ink);
  font-size: 14px;
  font-weight: 760;
}

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

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 2px;
  height: 1px;
  background: var(--bronze);
  transition: right 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after {
  right: 0;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

main {
  overflow: hidden;
}

.home-hero,
.page-hero {
  padding-top: 132px;
}

.home-hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-bottom: 58px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(460px, 1.08fr);
  gap: 58px;
  align-items: center;
}

.hero-copy {
  max-width: 620px;
}

.eyebrow,
.card-label,
.footer-label {
  margin: 0 0 14px;
  color: var(--bronze);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  margin: 0;
  color: var(--black);
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-size: 64px;
  line-height: 1.03;
  font-weight: 860;
}

h2 {
  font-size: 36px;
  line-height: 1.12;
  font-weight: 820;
}

h3 {
  font-size: 21px;
  line-height: 1.22;
  font-weight: 800;
}

p {
  margin: 0;
}

.lead {
  max-width: 720px;
  margin-top: 24px;
  color: var(--soft-ink);
  font-size: 19px;
  line-height: 1.72;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--black);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 850;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  color: var(--white);
  background: var(--black);
}

.btn-secondary {
  color: var(--black);
  background: transparent;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--bronze);
  color: var(--bronze-dark);
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-metrics span {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--soft-ink);
  background: rgba(255, 253, 248, 0.68);
  font-size: 13px;
  font-weight: 760;
}

.hero-media {
  margin: 0;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 34px 70px rgba(25, 20, 13, 0.12);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-media figcaption {
  padding: 14px 16px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
}

.page-hero {
  padding-bottom: 68px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fffaf2 0%, var(--paper) 100%);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.55fr);
  gap: 64px;
  align-items: end;
}

.hero-points {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--bronze);
}

.hero-points li {
  padding: 16px 0;
  color: var(--soft-ink);
  border-bottom: 1px solid var(--line);
  font-weight: 720;
}

.section {
  padding: 84px 0;
}

.surface-section {
  background: rgba(255, 253, 248, 0.58);
  border-top: 1px solid rgba(217, 204, 186, 0.72);
  border-bottom: 1px solid rgba(217, 204, 186, 0.72);
}

.section-heading {
  width: min(760px, calc(100% - 44px));
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading p:last-child {
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
}

.split-intro {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 54px;
  align-items: start;
}

.split-intro > p {
  color: var(--soft-ink);
  font-size: 18px;
  line-height: 1.75;
}

.card-grid {
  display: grid;
  gap: 18px;
}

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card,
.feature-card,
.application-tile,
.contact-card,
.process-step {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 42px rgba(27, 21, 14, 0.06);
}

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.product-card:hover,
.product-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--bronze);
  box-shadow: 0 24px 58px rgba(27, 21, 14, 0.1);
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--paper-strong);
}

.product-card div {
  padding: 20px;
}

.product-card p:last-child,
.feature-card p,
.application-tile p,
.contact-card p:last-child,
.process-step p {
  margin-top: 12px;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  gap: 18px;
}

.feature-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card {
  padding: 24px;
}

.application-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.application-tile {
  min-height: 230px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 180ms ease, transform 180ms ease;
}

.application-tile:hover,
.application-tile:focus-visible {
  transform: translateY(-3px);
  border-color: var(--bronze);
}

.application-tile span,
.process-step span {
  color: var(--bronze);
  font-size: 30px;
  line-height: 1;
  font-weight: 860;
}

.image-text {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 48px;
  align-items: center;
}

.image-text.reverse {
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
}

.image-text.reverse .image-panel {
  order: 2;
}

.image-panel {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 22px 54px rgba(25, 20, 13, 0.08);
}

.image-panel img {
  width: 100%;
}

.text-panel p:not(.eyebrow) {
  margin-top: 16px;
  color: var(--soft-ink);
  font-size: 17px;
  line-height: 1.75;
}

.checklist {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.checklist p {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--soft-ink);
  font-weight: 740;
}

.process-roadmap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.process-step {
  padding: 24px;
}

.process-step h3 {
  margin-top: 28px;
}

.gallery {
  position: relative;
}

.gallery-stage {
  position: relative;
  min-height: 560px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--black);
}

.gallery-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 500ms ease;
}

.gallery-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-slide figcaption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 10px 12px;
  color: var(--white);
  background: rgba(13, 12, 11, 0.72);
  border: 1px solid rgba(255, 253, 248, 0.22);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 780;
}

.gallery-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 253, 248, 0.52);
  border-radius: 999px;
  color: var(--white);
  background: rgba(13, 12, 11, 0.54);
  transform: translateY(-50%);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.gallery-prev {
  left: 16px;
}

.gallery-next {
  right: 16px;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.gallery-dot {
  width: 34px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(117, 79, 45, 0.22);
  cursor: pointer;
}

.gallery-dot.is-active {
  background: var(--bronze);
}

.cta-section {
  padding-top: 68px;
}

.cta-band {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--black);
  color: var(--white);
}

.cta-band h2,
.cta-band p {
  color: var(--white);
}

.cta-band > div > p:last-child {
  margin-top: 12px;
  color: rgba(255, 253, 248, 0.72);
}

.cta-band .btn-primary {
  border-color: var(--white);
  color: var(--black);
  background: var(--white);
}

.cta-band .btn-secondary {
  border-color: rgba(255, 253, 248, 0.6);
  color: var(--white);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.contact-cards {
  display: grid;
  gap: 16px;
}

.contact-card {
  padding: 24px;
}

.contact-card h2 {
  font-size: 27px;
}

.inquiry-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 42px rgba(27, 21, 14, 0.06);
}

.inquiry-form label {
  display: block;
  margin-bottom: 7px;
  color: var(--soft-ink);
  font-size: 13px;
  font-weight: 820;
}

.inquiry-form input,
.inquiry-form textarea,
.inquiry-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--white);
}

.inquiry-form textarea {
  resize: vertical;
}

.site-footer {
  padding: 54px 0;
  color: rgba(255, 253, 248, 0.78);
  background: var(--black);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.75fr 0.55fr;
  gap: 46px;
}

.footer-brand img {
  width: 260px;
  filter: invert(1) brightness(1.75);
}

.footer-brand p {
  max-width: 520px;
  margin-top: 16px;
}

.footer-contact,
.footer-links {
  display: grid;
  gap: 8px;
  align-content: start;
}

.footer-label {
  color: var(--bronze-soft, #c9ad86);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .brand-wordmark {
    width: 246px;
  }

  .site-nav {
    gap: 14px;
    font-size: 13px;
  }

  h1 {
    font-size: 54px;
  }

  .hero-grid,
  .page-hero-grid,
  .split-intro,
  .image-text,
  .image-text.reverse,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .image-text.reverse .image-panel {
    order: 0;
  }

  .card-grid.four,
  .application-grid,
  .feature-grid.four,
  .checklist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .header-inner {
    min-height: 76px;
  }

  .brand-wordmark {
    width: 218px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 10px 22px 18px;
    background: rgba(255, 253, 248, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 28px rgba(24, 20, 14, 0.08);
  }

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

  .site-nav a {
    padding: 12px 0;
    border-bottom: 1px solid rgba(217, 204, 186, 0.64);
  }

  .home-hero,
  .page-hero {
    padding-top: 108px;
  }

  .home-hero {
    min-height: auto;
  }

  h1 {
    font-size: 46px;
  }

  h2 {
    font-size: 31px;
  }

  .hero-grid {
    gap: 34px;
  }

  .card-grid.three,
  .feature-grid.three,
  .process-roadmap,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .gallery-stage {
    min-height: 420px;
  }

  .cta-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container,
  .header-inner,
  .section-heading {
    width: min(100% - 28px, 1180px);
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 28px;
  }

  .lead {
    font-size: 17px;
  }

  .section {
    padding: 62px 0;
  }

  .card-grid.four,
  .application-grid,
  .feature-grid.four,
  .checklist {
    grid-template-columns: 1fr;
  }

  .product-card img,
  .hero-media img {
    aspect-ratio: 4 / 3;
  }

  .gallery-stage {
    min-height: 300px;
  }

  .gallery-control {
    width: 40px;
    height: 40px;
  }

  .gallery-slide figcaption {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
}
