:root {
  --paper: #f4f0e7;
  --ink: #1b1914;
  --forest: #17342c;
  --moss: #3e6b58;
  --brass: #8d6a3c;
  --line: rgba(27, 25, 20, 0.14);
  --card: #faf7f1;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; }
h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0;
  overflow-wrap: break-word;
}
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }

.nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 6vw;
  background: rgba(244, 240, 231, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}
.logo {
  display: grid;
  gap: 0.02rem;
  color: #e24b17;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: 0.16em;
  text-decoration: none;
}
.logo span:last-child { letter-spacing: 0.28em; }
.nav nav { display: flex; gap: 1.25rem; margin-right: auto; }
.nav a { text-decoration: none; font-size: 0.92rem; }
.nav a[aria-current="page"] { color: var(--brass); }
.text-btn, .btn {
  border: 0;
  background: var(--forest);
  color: var(--paper);
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
}
.btn.line {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

main { padding: 0 6vw 5rem; }
.hero { padding: 2.2rem 0 0.4rem; max-width: 44rem; }
.hero:has(.place) {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2rem 2.4rem;
  align-items: end;
  max-width: none;
}
.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
}
h1 { font-size: clamp(2.5rem, 4.6vw, 4.3rem); max-width: 14ch; }
.lede { max-width: 38rem; margin-top: 1rem; font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.8rem; }
.rule {
  height: 1px;
  margin: 2.5rem 0 0;
  background: var(--line);
  transform-origin: left;
  animation: grow 1.1s ease both;
}

.theses, .scenarios, .catalog, .steps {
  display: grid;
  gap: 0;
  margin-top: 3.5rem;
  border-top: 1px solid var(--line);
}
.theses { grid-template-columns: 1fr 1fr; }
.thesis, .scenario, .step, .service {
  padding: 1.6rem 1.4rem 1.6rem 0;
  border-bottom: 1px solid var(--line);
}
.thesis span, .step span, .service span {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--brass);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
}
.thesis h2, .scenario h2, .step h2, .service h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.thesis p, .scenario p, .step p, .service p { margin-top: 0.7rem; max-width: 38rem; }
.scenarios { grid-template-columns: 1fr; }
.scenario {
  display: grid;
  grid-template-columns: 8rem 1fr auto;
  gap: 1rem;
  align-items: end;
  text-decoration: none;
  transition: background 0.35s ease, color 0.35s ease, padding 0.35s ease;
}
.scenario:hover { background: var(--forest); color: var(--paper); padding-left: 1rem; }
.scenario small { letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.72rem; }
.steps { grid-template-columns: repeat(3, 1fr); }
.step { padding-right: 1.5rem; }
.catalog { grid-template-columns: 1fr 1fr; }
.service a { color: var(--forest); }

.prose { max-width: 44rem; margin-top: 2rem; display: grid; gap: 1rem; }
.prose h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin-top: 1.5rem; }
.prose ul { margin: 0; padding-left: 1.1rem; }
.prose li + li { margin-top: 0.35rem; }

.split {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.sheet {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 1.4rem;
  display: grid;
  gap: 0.8rem;
}
.sheet h2 { font-size: 2.4rem; }
label { display: grid; gap: 0.35rem; font-size: 0.92rem; font-weight: 650; }
input, select, textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 0.65rem 0;
  border-radius: 0;
}
textarea { resize: vertical; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.check { font-weight: 500; grid-template-columns: auto 1fr; align-items: start; gap: 0.6rem; }
.check input { width: auto; margin-top: 0.3rem; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.status { min-height: 1.3em; font-size: 0.95rem; }
.section-title { font-size: clamp(2rem, 4vw, 3.2rem); max-width: min(18ch, 100%); margin-top: 0.4rem; }
.metal-band .place { width: min(100%, 40rem); }
.partners { margin-top: 4.2rem; }
.why {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 1.6rem;
}
.why article { border-top: 1px solid var(--line); padding-top: 0.9rem; }
.why h3 { font-size: 1.7rem; }
.why p { margin-top: 0.45rem; }
.carousel { margin-top: 1.8rem; max-width: 100%; overflow: hidden; }
.carousel-track { display: flex; width: 100%; max-width: 100%; transition: transform 0.55s ease; }
.project {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(9rem, 0.7fr) 1.4fr;
  min-height: 18rem;
  background: var(--forest);
  color: var(--paper);
}
.project-mark {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem;
  background: #e24b17;
  color: #1b1914;
}
.project-mark span { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.project-mark strong { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.4rem, 4vw, 3.6rem); font-weight: 500; line-height: 0.9; }
.project-copy { padding: 1.5rem 1.6rem; display: grid; align-content: center; gap: 0.8rem; }
.project-copy h3 { font-size: clamp(2rem, 3vw, 2.8rem); }
.project-copy a { color: #f4f0e7; }
.carousel-bar { display: flex; align-items: center; gap: 0.8rem; margin-top: 0.8rem; }
.carousel-bar button {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
}
.dots { display: flex; gap: 0.4rem; margin-right: auto; }
.dots button {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(27, 25, 20, 0.25);
  cursor: pointer;
}
.dots button[aria-current="true"] { background: #e24b17; }
.metal-band {
  margin-top: 3rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 0.8rem;
  justify-items: start;
}
.metal-band h2 { font-size: clamp(2rem, 4vw, 3.2rem); max-width: 18ch; }
.shots {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.shots img { width: 100%; height: auto; display: block; background: #ddd; }
.shots figcaption { margin-top: 0.4rem; font-size: 0.92rem; }
.photo-note { margin-top: 0.8rem; max-width: 46rem; font-size: 0.92rem; }
.metal-list { margin-top: 2rem; }
.links { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; margin-top: 1rem; }
.links a { color: var(--forest); }

.site-footer {
  padding: 2rem 6vw 6rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1rem;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.7rem 1.2rem; }
.site-footer a { text-decoration: none; font-size: 0.92rem; }

.chat-fab {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 6;
  border: 0;
  background: var(--forest);
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  cursor: pointer;
}
.chat[hidden] { display: none; }
.chat {
  position: fixed;
  right: 1.2rem;
  bottom: 4.8rem;
  z-index: 7;
  width: min(24rem, calc(100vw - 1.4rem));
  height: min(36rem, calc(100vh - 6.5rem));
  background: var(--card);
  border: 1px solid var(--forest);
  display: flex;
  flex-direction: column;
}
.chat header, .chat form { padding: 0.85rem; }
.chat header { display: flex; justify-content: space-between; gap: 0.6rem; background: var(--forest); color: var(--paper); }
.chat header p { font-size: 0.82rem; opacity: 0.8; }
#chat-close { background: transparent; color: var(--paper); border: 0; font-size: 1.5rem; cursor: pointer; }
.chat-log { flex: 1; overflow: auto; padding: 0.85rem; display: flex; flex-direction: column; gap: 0.55rem; }
.bubble { max-width: 92%; padding: 0.55rem 0.7rem; }
.bubble span { display: block; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.2rem; }
.bubble p { font-size: 0.95rem; }
.bubble.client { align-self: flex-end; background: #fff; }
.bubble.owner { align-self: flex-start; background: #e5efe8; }
.chat form { display: grid; gap: 0.45rem; border-top: 1px solid var(--line); }

@keyframes grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
.place { margin: 0; }
.place img { width: 100%; height: auto; display: block; aspect-ratio: 16 / 9; object-fit: cover; background: #e7e1d6; }
.place figcaption { margin-top: 0.4rem; max-width: 40rem; font-size: 0.82rem; line-height: 1.4; color: #5c564c; }
.gallery { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 0.8rem; margin-top: 1.2rem; }
.fact-grid, .scenario-grid { display: grid; gap: 0.75rem; margin-top: 1.1rem; }
.fact-grid { grid-template-columns: repeat(3, 1fr); }
.fact-grid article, .faq details { background: var(--card); border: 1px solid var(--line); padding: 0.95rem 1rem 1.05rem; }
.fact-grid h3 { font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif; font-size: 1.02rem; font-weight: 750; letter-spacing: 0; line-height: 1.25; }
.fact-grid p, .faq p { margin-top: 0.35rem; font-size: 0.95rem; }
.scenario-grid { grid-template-columns: repeat(5, 1fr); }
.scenario-grid a {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 9.2rem;
  padding: 1rem;
  text-decoration: none;
  background: var(--forest);
  color: var(--paper);
}
.scenario-grid small { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: #f0c7b4; }
.scenario-grid h2 { font-size: 1.35rem; line-height: 1.08; }
.scenario-grid span { margin-top: auto; font-size: 0.85rem; }
.block { margin-top: 3.2rem; }
.faq { display: grid; gap: 0.6rem; margin-top: 1rem; max-width: 46rem; }
.faq summary { cursor: pointer; font-weight: 750; }
.faq p { max-width: 40rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rule { animation: none; }
  .scenario, .carousel-track { transition: none; }
}

@media (max-width: 900px) {
  .theses, .steps, .catalog, .split, .grid-2, .scenario, .why, .project, .shots, .gallery, .fact-grid { grid-template-columns: 1fr; }
  .scenario-grid { grid-template-columns: 1fr 1fr; }
  .hero:has(.place) { grid-template-columns: 1fr; }
  .nav {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.4rem 0.75rem;
    padding: 0.6rem 1rem;
    background: var(--paper);
    backdrop-filter: none;
  }
  .nav > nav {
    grid-column: 1 / -1;
    grid-row: 2;
    flex-wrap: wrap;
    gap: 0.35rem 0.9rem;
    margin: 0;
  }
  .nav > .text-btn { grid-column: 2; grid-row: 1; justify-self: end; padding: 0.45rem 0.85rem; }
  h1 { font-size: 2.15rem; }
  .section-title, .metal-band h2, .why h3, .sheet h2, .prose h2 { font-size: 1.7rem; }
  .hero { padding-top: 0.8rem; }
  main, .site-footer { padding-left: 1rem; padding-right: 1rem; }
  main { padding-bottom: 4.5rem; }
  .project { min-height: 0; }
  .project-mark { padding: 1rem; }
  .project-mark strong { font-size: 2rem; }
  .project-copy { padding: 1rem 1.05rem; }
  .project-copy h3 { font-size: 1.55rem; }
  input, select, textarea { font-size: 16px; }
  .chat {
    left: 0.6rem;
    right: 0.6rem;
    width: auto;
    height: min(32rem, calc(100dvh - 6rem - env(safe-area-inset-bottom)));
    bottom: calc(4.2rem + env(safe-area-inset-bottom));
  }
  .chat-fab {
    right: 0.7rem;
    bottom: calc(0.7rem + env(safe-area-inset-bottom));
    font-size: 1rem;
    padding: 0.5rem 0.8rem;
  }
  h1, h2, .block, .partners, .split { scroll-margin-top: 5.5rem; }
}
@media (max-width: 560px) {
  .scenario-grid { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
  .hero-actions { display: grid; }
}
