:root {
  --ink: #17211d;
  --paper: #f6f1e7;
  --paper-deep: #ebe0ce;
  --muted: #6b6257;
  --line: rgba(23, 33, 29, 0.16);
  --accent: #d8792c;
  --accent-dark: #9a4f20;
  --forest: #273d34;
  --white: #fffaf0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 5vw, 64px);
  background: rgba(246, 241, 231, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--white);
  background: var(--forest);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  line-height: 1.2;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  min-height: 44px;
  padding: 10px 14px;
  color: var(--muted);
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  position: relative;
  color: var(--ink);
  border: 1px solid var(--line);
  background: transparent;
  font: inherit;
  font-weight: 700;
  padding: 10px 12px 10px 38px;
}

.nav-toggle span {
  display: block;
  position: absolute;
  left: 12px;
  width: 16px;
  height: 2px;
  background: var(--ink);
}

.nav-toggle span:nth-child(1) {
  top: 14px;
}

.nav-toggle span:nth-child(2) {
  top: 21px;
}

.nav-toggle span:nth-child(3) {
  top: 28px;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - 76px);
  display: grid;
  align-items: center;
  padding: clamp(54px, 8vw, 108px) clamp(18px, 5vw, 64px);
  overflow: hidden;
  color: var(--white);
  background: var(--forest);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(23, 33, 29, 0.92) 0%, rgba(23, 33, 29, 0.72) 48%, rgba(23, 33, 29, 0.1) 100%),
    repeating-linear-gradient(115deg, rgba(255, 250, 240, 0.05) 0 2px, transparent 2px 24px);
}

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

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(2.45rem, 6vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
  margin-bottom: 18px;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.2;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 32px;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: rgba(255, 250, 240, 0.86);
}

.hero-actions,
.final-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

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

.btn-primary {
  color: #1a120a;
  background: var(--accent);
}

.btn-primary:hover {
  background: #e78b3e;
}

.btn-ghost {
  color: var(--white);
  border-color: rgba(255, 250, 240, 0.42);
}

.btn-ghost:hover {
  border-color: var(--white);
}

.hero-visual {
  position: absolute;
  inset: auto -8vw -8vw 35%;
  z-index: -1;
  height: 72%;
  min-height: 420px;
  opacity: 0.96;
}

.terrain-layer {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 62%;
  background: var(--accent-dark);
  clip-path: polygon(8% 62%, 24% 42%, 40% 48%, 57% 24%, 75% 30%, 100% 4%, 100% 100%, 0 100%, 0 76%);
}

.terrain-two {
  height: 46%;
  background: #c7a46d;
  opacity: 0.65;
  transform: translateY(32px);
}

.machine-line {
  position: absolute;
  right: 12%;
  bottom: 36%;
  width: 330px;
  height: 170px;
  border: 14px solid rgba(255, 250, 240, 0.34);
  border-left: 0;
  border-bottom: 0;
  transform: skewX(-18deg);
}

.machine-line::before,
.machine-line::after {
  content: "";
  position: absolute;
  bottom: -62px;
  width: 96px;
  height: 96px;
  border: 12px solid rgba(255, 250, 240, 0.34);
  border-radius: 50%;
}

.machine-line::before {
  left: -40px;
}

.machine-line::after {
  right: -22px;
}

.section {
  padding: clamp(58px, 8vw, 112px) clamp(18px, 5vw, 64px);
}

.section-label {
  margin-bottom: 20px;
  color: var(--accent-dark);
  font-weight: 800;
  text-transform: uppercase;
}

.intro-grid,
.locality,
.about-layout,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: clamp(30px, 6vw, 84px);
  align-items: start;
}

.intro-grid p,
.locality-text p,
.about-layout p,
.page-hero p,
.contact-main p,
.address-block p,
.inquiry p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
}

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

.quick-list li {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}

.service-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 0;
}

.service-strip a {
  min-height: 220px;
  padding: 28px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  transition: background-color 180ms ease, transform 180ms ease;
}

.service-strip a:first-child {
  border-left: 1px solid var(--line);
}

.service-strip a:hover {
  background: var(--paper-deep);
  transform: translateY(-4px);
}

.service-strip span,
.service-detail span {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--accent-dark);
  font-weight: 900;
}

.service-strip strong,
.service-strip small {
  display: block;
}

.service-strip strong {
  margin-bottom: 12px;
  font-size: 1.42rem;
  line-height: 1.16;
}

.service-strip small {
  color: var(--muted);
  font-size: 1rem;
}

.locality {
  background: var(--forest);
  color: var(--white);
}

.locality .locality-text p {
  color: rgba(255, 250, 240, 0.78);
}

.contact-panel,
.fact-box,
.address-block,
.contact-main {
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
}

.locality .contact-panel {
  color: var(--ink);
  background: var(--paper);
}

.contact-panel a,
.contact-link {
  color: var(--accent-dark);
  font-weight: 900;
}

.contact-panel p,
.fact-box p,
.address-block p,
.contact-main p {
  margin-bottom: 10px;
}

.final-cta {
  flex-direction: column;
  align-items: flex-start;
  background: var(--paper-deep);
}

.final-cta p {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.1rem;
}

.page-hero {
  padding: clamp(62px, 9vw, 132px) clamp(18px, 5vw, 64px) clamp(48px, 7vw, 90px);
  background:
    linear-gradient(135deg, rgba(39, 61, 52, 0.08), rgba(216, 121, 44, 0.12)),
    var(--paper);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  color: var(--ink);
  font-size: clamp(2.3rem, 5vw, 4.7rem);
}

.service-detail-list {
  padding-top: 34px;
}

.service-detail {
  display: grid;
  grid-template-columns: 120px minmax(0, 780px);
  gap: 26px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.service-detail p,
.process p {
  color: var(--muted);
}

.process {
  background: var(--forest);
  color: var(--white);
}

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

.process-grid div {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 250, 240, 0.24);
}

.process p {
  color: rgba(255, 250, 240, 0.72);
}

.fact-box dl {
  margin: 0;
}

.fact-box div {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.fact-box dt {
  color: var(--muted);
  font-size: 0.9rem;
}

.fact-box dd {
  margin: 3px 0 0;
  font-weight: 800;
}

.contact-link {
  display: block;
  width: fit-content;
  margin-bottom: 12px;
  font-size: 1.18rem;
}

.contact-link.large {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.1;
}

.inquiry {
  padding-top: 0;
}

.inquiry .quick-list {
  max-width: 760px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 5vw, 64px);
  color: rgba(255, 250, 240, 0.78);
  background: #121915;
}

.site-footer p {
  margin: 6px 0 0;
}

.site-footer a {
  display: block;
  min-height: 32px;
  color: var(--white);
  font-weight: 800;
}

.reveal {
  animation: riseIn 700ms ease both;
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 860px) {
  .site-header {
    min-height: 70px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 18px 18px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

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

  .site-nav a {
    border-top: 1px solid var(--line);
  }

  .hero {
    min-height: min(760px, calc(100svh - 70px));
    align-items: center;
    padding-top: 48px;
    padding-bottom: 76px;
  }

  .hero-visual {
    inset: auto -30vw -4vw 5%;
    height: 56%;
    opacity: 0.72;
  }

  .machine-line {
    right: 18%;
    bottom: 42%;
    width: 190px;
    height: 104px;
    border-width: 10px;
  }

  .machine-line::before,
  .machine-line::after {
    bottom: -44px;
    width: 64px;
    height: 64px;
    border-width: 9px;
  }

  .intro-grid,
  .locality,
  .about-layout,
  .contact-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .service-strip {
    grid-template-columns: 1fr;
  }

  .service-strip a,
  .service-strip a:first-child {
    min-height: auto;
    border-left: 1px solid var(--line);
  }

  .service-detail {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .service-detail span {
    margin-bottom: 12px;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .brand small {
    display: none;
  }

  .brand strong {
    max-width: 170px;
  }

  .hero-actions,
  .hero-actions .btn,
  .final-cta .btn {
    width: 100%;
  }

  .contact-panel,
  .fact-box,
  .address-block,
  .contact-main {
    padding: 22px;
  }
}
