:root {
  --ink: #241d17;
  --muted: #6f6257;
  --paper: #f8f3ea;
  --paper-deep: #efe4d4;
  --cedar: #8a4b2a;
  --cedar-dark: #56311f;
  --sage: #596a50;
  --line: rgba(36, 29, 23, 0.16);
  --white: #fffdf8;
  --shadow: 0 24px 70px rgba(36, 29, 23, 0.18);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid rgba(36, 29, 23, 0.1);
  background: rgba(248, 243, 234, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--cedar-dark);
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

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

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
}

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

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: var(--cedar);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  align-items: center;
  gap: clamp(28px, 6vw, 74px);
  min-height: calc(100vh - 72px);
  padding: clamp(44px, 8vw, 92px) clamp(18px, 5vw, 72px) 48px;
  background:
    linear-gradient(115deg, rgba(248, 243, 234, 0.96), rgba(248, 243, 234, 0.72)),
    linear-gradient(180deg, var(--paper), var(--paper-deep));
}

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

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

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.04;
  font-weight: 700;
}

h1 {
  max-width: 780px;
  font-size: clamp(2.45rem, 5vw, 5rem);
}

h2 {
  font-size: clamp(2rem, 4.4vw, 4.25rem);
}

h3 {
  font-size: 1.45rem;
}

.hero-text {
  max-width: 630px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--cedar-dark);
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--cedar-dark);
  color: var(--paper);
}

.button.secondary {
  background: transparent;
  color: var(--cedar-dark);
}

.hero-media {
  position: relative;
  align-self: stretch;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--paper-deep);
}

.hero-media img {
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.24);
}

.spec-strip {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 253, 248, 0.34);
  border-radius: var(--radius);
  background: rgba(36, 29, 23, 0.72);
  color: var(--paper);
  backdrop-filter: blur(12px);
}

.spec-strip span {
  display: grid;
  min-height: 54px;
  place-items: center;
  padding: 8px;
  text-align: center;
  font-weight: 800;
}

section {
  padding: clamp(54px, 8vw, 104px) clamp(18px, 5vw, 72px);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

.prose {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.45vw, 1.22rem);
}

.prose p {
  margin: 0 0 18px;
}

.builds,
.portfolio,
.faq {
  background: var(--white);
}

.section-heading {
  max-width: 850px;
  margin-bottom: clamp(26px, 4vw, 42px);
}

.section-heading p:not(.eyebrow) {
  max-width: 710px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}

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

.service-card {
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.service-card p {
  margin: 16px 0 0;
  color: var(--muted);
}

.feature {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(28px, 5vw, 68px);
  background: var(--cedar-dark);
  color: var(--paper);
}

.feature-image {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.feature-image img {
  aspect-ratio: 1;
  object-fit: cover;
}

.feature-copy .eyebrow,
.feature-copy p,
.feature-copy li {
  color: rgba(248, 243, 234, 0.82);
}

.feature-copy p {
  max-width: 650px;
  margin: 22px 0 0;
  font-size: 1.12rem;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding: 12px 14px;
  border: 1px solid rgba(248, 243, 234, 0.22);
  border-radius: var(--radius);
}

.parts-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.parts-list article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.parts-list strong,
.parts-list span {
  display: block;
}

.parts-list strong {
  color: var(--ink);
  font-size: 1rem;
}

.parts-list span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.95rem;
}

.strings {
  background: var(--paper-deep);
}

.tuning-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 14px;
  max-width: 720px;
}

.tuning-note,
.tuning-copy {
  min-height: 170px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.tuning-note {
  display: grid;
  align-content: center;
  justify-items: center;
}

.note {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.4rem;
  line-height: 1;
  color: var(--cedar);
}

.tuning-note small {
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
}

.tuning-copy p {
  margin: 12px 0 0;
  color: var(--muted);
}

.tuning-chart-card {
  min-height: 0;
}

.tuning-charts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.tuning-table-wrap {
  overflow-x: auto;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.tuning-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.tuning-table th,
.tuning-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.tuning-table th {
  background: var(--cedar-dark);
  color: var(--paper);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tuning-table tr:nth-child(even) td {
  background: rgba(239, 228, 212, 0.45);
}

.tuning-table tr:last-child td {
  border-bottom: 0;
}

.tuning-table td:first-child {
  color: var(--cedar-dark);
  font-weight: 900;
}

.gallery {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline proximity;
}

.portfolio-groups {
  display: grid;
  gap: 14px;
}

.portfolio-group {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.portfolio-group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
}

.portfolio-group > summary::-webkit-details-marker {
  display: none;
}

.portfolio-group > summary strong,
.portfolio-group > summary small {
  display: block;
}

.portfolio-group > summary strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.portfolio-group > summary small,
.portfolio-group > summary em {
  color: var(--muted);
  font-size: 0.92rem;
  font-style: normal;
}

.portfolio-group > summary::after {
  content: "+";
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--cedar-dark);
  font-weight: 900;
}

.portfolio-group[open] > summary::after {
  content: "-";
}

.expanded-gallery {
  padding: 0 18px 18px;
}

.reenactor-note {
  max-width: 860px;
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-deep);
}

.reenactor-note p:last-child {
  margin: 0;
  color: var(--muted);
}

.reenactor-note a {
  color: var(--cedar-dark);
  font-weight: 800;
}

figure {
  flex: 0 0 clamp(260px, 28vw, 380px);
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  scroll-snap-align: start;
}

.feature-gallery figure:first-child {
  flex-basis: clamp(340px, 42vw, 620px);
}

figure img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.feature-gallery figure:first-child img {
  aspect-ratio: 5 / 6;
}

.gallery-button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.gallery-button:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: -3px;
}

.video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--ink);
}

figcaption {
  padding: 12px 14px 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  width: auto;
  max-width: min(1100px, 94vw);
  max-height: 86vh;
  border-radius: var(--radius);
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.45);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(248, 243, 234, 0.34);
  border-radius: var(--radius);
  background: rgba(248, 243, 234, 0.12);
  color: var(--paper);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

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

details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

summary {
  cursor: pointer;
  padding: 18px 20px;
  color: var(--ink);
  font-weight: 800;
}

details p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
}

.contact {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(300px, 1.15fr);
  gap: clamp(26px, 5vw, 70px);
  background: var(--sage);
  color: var(--paper);
}

.contact-copy p {
  max-width: 620px;
  color: rgba(248, 243, 234, 0.86);
  font-size: 1.12rem;
}

.instagram-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--paper);
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(248, 243, 234, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.1);
}

label {
  display: grid;
  gap: 6px;
  color: rgba(248, 243, 234, 0.86);
  font-size: 0.9rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(248, 243, 234, 0.35);
  border-radius: var(--radius);
  padding: 12px 13px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

textarea {
  resize: vertical;
}

.form-note {
  margin: 0;
  color: rgba(248, 243, 234, 0.78);
  font-size: 0.9rem;
}

.hidden-submit-frame {
  position: absolute;
  width: 1px;
  height: 1px;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
}

.form-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 14px;
  width: min(420px, calc(100vw - 36px));
  padding: 16px;
  border: 1px solid rgba(248, 243, 234, 0.28);
  border-radius: var(--radius);
  background: var(--cedar-dark);
  color: var(--paper);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.form-toast.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.form-toast strong,
.form-toast span {
  grid-column: 1;
}

.form-toast span {
  color: rgba(248, 243, 234, 0.82);
  font-size: 0.95rem;
}

.form-toast button {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(248, 243, 234, 0.34);
  border-radius: var(--radius);
  background: rgba(248, 243, 234, 0.12);
  color: var(--paper);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 5vw, 72px);
  color: var(--muted);
  background: var(--paper);
}

.footer p {
  margin: 0;
}

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

  .nav {
    justify-content: flex-start;
  }

  .hero,
  .section-grid,
  .feature,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

  .service-grid,
  .gallery,
  .faq-list,
  .parts-list,
  .tuning-charts,
  .tuning-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tuning-charts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .brand {
    min-width: 0;
  }

  .hero {
    padding-top: 34px;
  }

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

  .spec-strip,
  .service-grid,
  .gallery,
  .faq-list,
  .parts-list,
  .tuning-charts,
  .tuning-board,
  .check-list {
    grid-template-columns: 1fr;
  }

  .spec-strip {
    position: static;
    border-radius: 0;
  }

  .footer {
    flex-direction: column;
  }
}
