:root {
  color-scheme: light;
  --ink: #17130d;
  --muted: #6b6459;
  --paper: #f6f1e8;
  --paper-strong: #fffaf0;
  --stone: #d8c5a9;
  --stone-deep: #9d7d58;
  --olive: #596148;
  --line: rgba(23, 19, 13, 0.14);
  --shadow: 0 28px 80px rgba(48, 35, 20, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(rgba(246, 241, 232, 0.78), rgba(246, 241, 232, 0.88)),
    url("https://images.unsplash.com/photo-1615873968403-89e068629265?auto=format&fit=crop&w=2200&q=82")
      center / cover;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(90deg, rgba(23, 19, 13, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(23, 19, 13, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(135deg, black, transparent 68%);
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 20;
  width: min(1180px, calc(100% - 32px));
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 14px 12px 18px;
  border: 1px solid rgba(255, 250, 240, 0.62);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.8);
  box-shadow: 0 20px 60px rgba(40, 31, 20, 0.14);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  text-decoration: none;
  white-space: nowrap;
}

.brand-large {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
}

.brand-line {
  width: 1px;
  height: 26px;
  background: currentColor;
  opacity: 0.52;
}

.brand-small {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.28em;
}

.nav-links {
  display: flex;
  gap: clamp(16px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.nav-links a,
.header-action,
.button,
.contact-actions a {
  text-decoration: none;
}

.nav-links a:hover,
.contact-actions a:hover {
  color: var(--ink);
}

.header-action,
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-weight: 800;
}

.header-action {
  padding: 0 18px;
  color: var(--paper-strong);
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: 132px clamp(20px, 6vw, 88px) 56px;
  overflow: hidden;
}

.hero-media {
  position: relative;
  min-height: min(68vh, 680px);
  order: 2;
}

#stone-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-image {
  position: absolute;
  right: 3%;
  bottom: 2%;
  width: min(460px, 82%);
  aspect-ratio: 0.78;
  border: 1px solid rgba(255, 250, 240, 0.48);
  border-radius: 8px;
  background:
    linear-gradient(rgba(23, 19, 13, 0.08), rgba(23, 19, 13, 0.16)),
    url("https://images.unsplash.com/photo-1600566753190-17f0baa2a6c3?auto=format&fit=crop&w=1100&q=82")
      center / cover;
  box-shadow: var(--shadow);
}

.hero-content {
  max-width: 780px;
}

.eyebrow,
.section-label {
  margin: 0 0 18px;
  color: var(--olive);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 28px;
  font-size: clamp(3.7rem, 7.7vw, 7.45rem);
  line-height: 0.98;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.25rem, 5.6vw, 5.8rem);
  line-height: 1.02;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
}

.hero-copy,
.split p,
.export-panel p,
.contact-copy p {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  line-height: 1.68;
}

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

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

.button {
  padding: 0 22px;
  border: 1px solid var(--line);
}

.button.primary {
  color: var(--paper-strong);
  background: var(--ink);
}

.button.secondary {
  background: rgba(255, 250, 240, 0.62);
}

.hero-stats {
  position: absolute;
  left: clamp(20px, 6vw, 88px);
  right: clamp(20px, 6vw, 88px);
  bottom: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
}

.hero-stats div {
  padding: 18px;
  background: rgba(255, 250, 240, 0.74);
  backdrop-filter: blur(14px);
}

.hero-stats dt {
  font-size: clamp(1.55rem, 3vw, 2.45rem);
  font-weight: 800;
}

.hero-stats dd {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  padding: clamp(76px, 10vw, 138px) clamp(20px, 6vw, 88px);
}

.intro-section {
  padding-top: clamp(92px, 12vw, 160px);
}

.split,
.section-heading {
  display: grid;
  grid-template-columns: minmax(200px, 0.62fr) minmax(0, 1fr);
  gap: clamp(24px, 6vw, 86px);
}

.split p {
  max-width: 680px;
}

.material-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 14px;
  margin-top: clamp(34px, 5vw, 64px);
}

.material-card,
.process-grid article,
.export-panel,
.contact {
  border: 1px solid rgba(255, 250, 240, 0.64);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.78);
  box-shadow: 0 18px 52px rgba(48, 35, 20, 0.1);
  backdrop-filter: blur(14px);
}

.material-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(22px, 3vw, 34px);
  background:
    linear-gradient(rgba(255, 250, 240, 0.68), rgba(255, 250, 240, 0.88)),
    linear-gradient(135deg, rgba(157, 125, 88, 0.2), transparent);
}

.material-card.featured {
  grid-row: span 2;
  min-height: 634px;
  color: var(--paper-strong);
  background:
    linear-gradient(rgba(23, 19, 13, 0.18), rgba(23, 19, 13, 0.68)),
    url("https://images.unsplash.com/photo-1616486338812-3dadae4b4ace?auto=format&fit=crop&w=1400&q=82")
      center / cover;
}

.material-card span,
.process-grid span,
.market-list span {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.material-card p,
.process-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.material-card.featured p {
  color: rgba(255, 250, 240, 0.82);
}

.export-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.88fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(30px, 5vw, 62px);
}

.market-list {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.market-list span {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.42);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(34px, 5vw, 64px);
}

.process-grid article {
  min-height: 250px;
  padding: clamp(22px, 3vw, 34px);
}

.process-grid span {
  display: inline-block;
  margin-bottom: 54px;
  color: var(--stone-deep);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: 18px;
  margin: clamp(40px, 7vw, 92px) clamp(20px, 6vw, 88px);
  padding: 14px;
}

.contact-copy {
  padding: clamp(26px, 5vw, 58px);
}

.contact-actions a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.36);
  font-weight: 800;
}

address {
  margin-top: 34px;
  color: var(--muted);
  font-style: normal;
  line-height: 1.7;
}

.map-card {
  min-height: 480px;
  overflow: hidden;
  border-radius: 7px;
}

.map-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.8) contrast(1.05);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(20px, 6vw, 88px) 34px;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .site-header {
    position: absolute;
  }

  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 126px;
    padding-bottom: 220px;
  }

  .hero-media {
    min-height: 460px;
    order: 0;
  }

  .split,
  .section-heading,
  .export-panel,
  .contact {
    grid-template-columns: 1fr;
  }

  .material-grid {
    grid-template-columns: 1fr 1fr;
  }

  .material-card.featured {
    grid-column: 1 / -1;
    min-height: 480px;
  }
}

@media (max-width: 680px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
  }

  .header-action {
    display: none;
  }

  .hero {
    padding: 106px 16px 280px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.45rem);
  }

  .hero-media {
    min-height: 360px;
  }

  .hero-stats,
  .material-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    left: 16px;
    right: 16px;
  }

  .section {
    padding-right: 16px;
    padding-left: 16px;
  }

  .material-card,
  .material-card.featured {
    min-height: 300px;
  }

  .contact {
    margin-right: 16px;
    margin-left: 16px;
  }

  .map-card {
    min-height: 360px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    padding-right: 16px;
    padding-left: 16px;
  }
}
