:root {
  color-scheme: dark;
  --bg: #11130f;
  --surface: #1a1d17;
  --surface-soft: #242a20;
  --text: #f4f1e8;
  --muted: #b8b3a3;
  --brand: #d9a441;
  --brand-dark: #9d642b;
  --accent: #70a36d;
  --line: rgba(244, 241, 232, 0.14);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(112, 163, 109, 0.08), transparent 360px),
    radial-gradient(circle at 84% 2%, rgba(217, 164, 65, 0.16), transparent 310px),
    var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.lightbox-open {
  overflow: hidden;
}

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

a,
button {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  backdrop-filter: blur(18px);
}

.logo,
.nav,
.hero-actions,
.contact-actions,
.site-footer {
  display: flex;
  align-items: center;
}

.logo {
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0;
}

.logo-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(217, 164, 65, 0.45);
  border-radius: 8px;
  background: linear-gradient(135deg, #2c3527, #6e5126);
  color: #fff7df;
  font-size: 0.78rem;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3);
}

.nav {
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(26, 29, 23, 0.78);
}

.nav a {
  padding: 8px 14px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  white-space: nowrap;
}

.nav a:hover,
.nav a:focus-visible {
  background: var(--surface-soft);
  color: var(--text);
}

.hero,
.section-band,
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.9fr);
  gap: 42px;
  align-items: center;
  min-height: calc(100vh - 74px);
  padding: 44px 0 74px;
}

.hero-media {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  height: clamp(320px, 52vw, 620px);
  object-fit: cover;
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 20px;
  font-size: clamp(3rem, 7.5vw, 6.7rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2.1rem, 4.4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
  line-height: 1.2;
}

.hero-copy,
.section-heading p,
.intro p,
.intro-lead,
.craft-list p,
.work-copy p,
.tools p,
.testimonial-card p,
.testimonial-card span,
.contact p {
  color: var(--muted);
}

.hero-copy {
  max-width: 600px;
  margin-bottom: 30px;
  font-size: 1.12rem;
}

.hero-actions,
.contact-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
}

.button.primary {
  background: var(--brand);
  color: #1b160b;
  box-shadow: 0 16px 34px rgba(217, 164, 65, 0.22);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #f0bd59;
}

.button.secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.section-band {
  padding: 76px 0;
  border-top: 1px solid var(--line);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(320px, 1fr);
  gap: 34px;
}

.craft-list,
.intro-grid,
.tool-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.craft-list article,
.intro article,
.tool-list article {
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(26, 29, 23, 0.72);
}

.craft-list article {
  position: relative;
  overflow: hidden;
}

.craft-list article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.intro article span {
  display: block;
  margin-bottom: 28px;
  color: rgba(217, 164, 65, 0.56);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.work-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 14px;
  scrollbar-width: thin;
}

.work-tab {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 900;
}

.work-tab:hover,
.work-tab:focus-visible,
.work-tab.active {
  border-color: rgba(217, 164, 65, 0.65);
  background: rgba(217, 164, 65, 0.14);
  color: var(--text);
}

.work-panels {
  margin-top: 18px;
}

.work-panel {
  display: none;
  grid-template-columns: minmax(220px, 0.32fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.work-panel.active {
  display: grid;
}

.work-copy {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.work-copy span {
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.carousel {
  position: relative;
  overflow: hidden;
  min-height: 388px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0c0e0b;
}

.carousel-track {
  display: grid;
  grid-auto-columns: minmax(72%, 1fr);
  grid-auto-flow: column;
  gap: 14px;
  height: 100%;
  overflow-x: auto;
  padding: 18px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.gallery-image {
  position: relative;
  display: block;
  width: 100%;
  height: 350px;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #151812;
  cursor: zoom-in;
  scroll-snap-align: center;
}

.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 180ms ease;
}

.gallery-image.titled img {
  height: calc(100% - 54px);
  padding-bottom: 0;
  background: #151812;
  object-fit: contain;
}

.gallery-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 54px;
  padding: 14px 16px;
  border-top: 1px solid rgba(244, 241, 232, 0.14);
  background: rgba(12, 14, 11, 0.94);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 900;
  text-align: left;
}

.gallery-image:hover img,
.gallery-image:focus-visible img {
  filter: brightness(1.08);
}

.carousel-arrow,
.lightbox-close,
.lightbox-nav {
  display: grid;
  place-items: center;
  border: 1px solid rgba(244, 241, 232, 0.18);
  border-radius: 8px;
  background: rgba(17, 19, 15, 0.82);
  color: var(--text);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.34);
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 44px;
  height: 58px;
  transform: translateY(-50%);
  font-size: 2.1rem;
  line-height: 1;
}

.carousel-arrow:hover,
.carousel-arrow:focus-visible,
.lightbox-close:hover,
.lightbox-close:focus-visible,
.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  border-color: rgba(217, 164, 65, 0.78);
  background: rgba(36, 42, 32, 0.96);
}

.carousel-arrow.prev {
  left: 16px;
}

.carousel-arrow.next {
  right: 16px;
}

.tools {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(320px, 1fr);
  gap: 34px;
}

.rme-carousel .carousel-track {
  grid-auto-columns: clamp(240px, 31vw, 430px);
  align-items: start;
}

.rme-carousel .gallery-image {
  height: auto;
  aspect-ratio: 1323 / 885;
}

.rme-carousel .gallery-image.titled img {
  height: calc(100% - 46px);
}

.rme-carousel .gallery-caption {
  min-height: 46px;
  padding: 12px 14px;
  font-size: 0.86rem;
}

.testimonials {
  position: relative;
}

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

.testimonial-card {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(217, 164, 65, 0.08), transparent 42%),
    rgba(26, 29, 23, 0.78);
}

.testimonial-card p {
  margin-bottom: 0;
  font-size: 1.02rem;
}

.testimonial-card strong,
.testimonial-card span {
  display: block;
}

.testimonial-card strong {
  color: var(--text);
  font-size: 0.98rem;
}

.testimonial-card span {
  margin-top: 4px;
  font-size: 0.86rem;
  font-weight: 800;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1fr);
  gap: 36px;
  align-items: center;
}

.site-footer {
  justify-content: space-between;
  gap: 18px;
  padding: 32px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer a {
  color: var(--brand);
  font-weight: 900;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 72px;
  background: rgba(0, 0, 0, 0.88);
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: min(96vw, 1500px);
  max-height: 86vh;
  border: 1px solid rgba(244, 241, 232, 0.18);
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 46px;
  height: 46px;
  font-size: 2rem;
  line-height: 1;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  width: 50px;
  height: 68px;
  transform: translateY(-50%);
  font-size: 2.4rem;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

:focus-visible {
  outline: 3px solid rgba(217, 164, 65, 0.76);
  outline-offset: 3px;
}

@media (max-width: 940px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
  }

  .hero,
  .intro,
  .tools,
  .contact,
  .work-panel.active {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 28px;
  }

  .hero-media {
    order: 2;
  }

  .carousel {
    min-height: 330px;
  }

  .gallery-image {
    height: 300px;
  }

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

  .testimonial-card {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .site-header,
  .hero,
  .section-band,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }

  .craft-list,
  .intro-grid,
  .tool-list {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .carousel-track {
    grid-auto-columns: 100%;
    padding: 12px;
  }

  .rme-carousel .carousel-track {
    grid-auto-columns: 86%;
  }

  .carousel-arrow {
    width: 38px;
    height: 52px;
  }

  .gallery-image {
    height: 260px;
  }

  .lightbox {
    padding: 72px 12px;
  }

  .lightbox-nav {
    bottom: 18px;
    top: auto;
    width: 48px;
    height: 48px;
    transform: none;
  }

  .lightbox-prev {
    left: calc(50% - 58px);
  }

  .lightbox-next {
    right: calc(50% - 58px);
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
