:root {
  --ink: #1d211f;
  --muted: #626c68;
  --paper: #fbfaf6;
  --porcelain: #ffffff;
  --blue: #0d4f72;
  --blue-deep: #083346;
  --green: #5f7d48;
  --red: #a3353d;
  --gold: #b27427;
  --line: #e2ddd2;
  --shadow: 0 18px 45px rgba(29, 33, 31, 0.13);
  --display-font: Montserrat, Inter, system-ui, sans-serif;
  --ui-font: Montserrat, Inter, system-ui, sans-serif;
  --body-font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem clamp(1rem, 4vw, 3rem);
  background: rgba(251, 250, 246, 0.92);
  border-bottom: 1px solid rgba(226, 221, 210, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--display-font);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 700;
  line-height: 1;
}

.brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.45rem);
  color: var(--blue-deep);
  font-family: var(--ui-font);
  font-size: 0.93rem;
  font-weight: 800;
}

.main-nav a {
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  border-color: var(--red);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding-bottom: clamp(2rem, 5vw, 4rem);
}

.hero-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center top;
  background: #f3eee8;
}

.hero-copy {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(1.35rem, 4vw, 3rem) 0 0;
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--red);
  font-family: var(--ui-font);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display-font);
  font-weight: 600;
  line-height: 1.02;
}

h1 {
  max-width: 13ch;
  font-size: clamp(2.15rem, 4.3vw, 4.35rem);
}

h2 {
  font-size: clamp(1.85rem, 3.2vw, 3.15rem);
}

h3 {
  font-size: 1.18rem;
  line-height: 1.15;
}

.hero-copy p:not(.eyebrow),
.section-heading p,
.intro-band p,
.feature-copy p,
.shop-card p {
  max-width: 68ch;
  color: var(--muted);
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.35rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.78rem 1.08rem;
  border: 1px solid var(--ink);
  border-radius: 6px;
  font-family: var(--ui-font);
  font-weight: 800;
}

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

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

.button:hover,
.button:focus-visible,
.studio-link:hover,
.studio-link:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(29, 33, 31, 0.16);
}

.text-link {
  color: var(--blue);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--red);
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.75fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: end;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 5vw, 4rem);
  color: var(--porcelain);
  background: var(--blue-deep);
}

.intro-band h2 {
  max-width: 15ch;
}

.intro-band p:not(.eyebrow) {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.section {
  padding: clamp(3.5rem, 8vw, 7rem) clamp(1rem, 5vw, 4rem);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.7fr);
  align-items: end;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.section-heading .eyebrow,
.section-heading h2 {
  grid-column: 1;
}

.section-heading p {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0;
}

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

.shop-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  background: var(--porcelain);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.shop-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0.75rem;
  object-fit: contain;
  object-position: center;
  background: #f7f3eb;
}

.shop-card-content {
  display: grid;
  align-content: start;
  gap: 0.85rem;
  padding: 1rem;
}

.shop-card h3 {
  font-size: 1.28rem;
  text-transform: none;
}

.shop-card p {
  margin: 0;
  color: var(--muted);
}

.shop-card .shop-alt {
  color: var(--blue-deep);
  font-size: 0.92rem;
  font-weight: 800;
}

.shop-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: var(--blue-deep);
  font-size: 0.9rem;
  font-weight: 800;
}

.shop-card .button {
  justify-self: start;
  margin-top: 0.3rem;
}

.loading-card {
  min-height: 220px;
}

.listing-section-after-banner {
  padding-top: clamp(2rem, 5vw, 4rem);
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(280px, 0.45fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(3.5rem, 8vw, 7rem) clamp(1rem, 5vw, 4rem);
  background: var(--porcelain);
  border-block: 1px solid var(--line);
}

.feature-copy {
  max-width: 760px;
}

.feature-row img {
  justify-self: center;
  width: min(440px, 100%);
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(29, 33, 31, 0.16));
}

.stl-row img {
  width: min(620px, 100%);
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: contain;
  background: var(--porcelain);
}

.template-row {
  background: var(--paper);
  border-top: 0;
}

.template-row img {
  width: min(620px, 100%);
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
}


.faq-section {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

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

.faq-item {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--porcelain);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.faq-item p {
  max-width: 64ch;
  margin: 0;
  color: var(--muted);
}

.contact-section {
  background: var(--porcelain);
  border-top: 1px solid var(--line);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 0.58fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
  padding: clamp(1rem, 3vw, 1.5rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-panel p {
  max-width: 64ch;
  margin: 0.65rem 0 0;
  color: var(--muted);
}

.contact-direct a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.form-row {
  display: grid;
  gap: 0.35rem;
}

.form-row-full {
  grid-column: 1 / -1;
}

.form-row label {
  color: var(--blue-deep);
  font-family: var(--ui-font);
  font-size: 0.84rem;
  font-weight: 800;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.72rem 0.82rem;
  color: var(--ink);
  background: var(--porcelain);
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

.form-row textarea {
  min-height: 150px;
  resize: vertical;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 3px solid rgba(13, 79, 114, 0.18);
  border-color: var(--blue);
}

.captcha-box {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 0.85rem;
  color: var(--muted);
  background: var(--porcelain);
  border: 1px dashed var(--line);
  border-radius: 6px;
  font-size: 0.92rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.form-actions p {
  margin: 0;
  font-size: 0.92rem;
}

.contact-form.is-sending .button {
  opacity: 0.72;
  pointer-events: none;
}

.page-hero,
.product-hero {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.page-hero > p:not(.eyebrow),
.product-copy p:not(.eyebrow) {
  max-width: 68ch;
  color: var(--muted);
  font-size: 1rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-family: var(--ui-font);
  font-size: 0.88rem;
  font-weight: 800;
}

.breadcrumbs a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.product-hero-grid,
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(280px, 0.52fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}

.product-carousel {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
}

.carousel-track {
  display: grid;
  grid-auto-columns: 100%;
  grid-auto-flow: column;
  gap: 0.75rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.carousel-slide {
  position: relative;
  margin: 0;
  scroll-snap-align: start;
}

.carousel-slide img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #f7f3eb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--porcelain);
  cursor: pointer;
  background: rgba(29, 33, 31, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(29, 33, 31, 0.18);
  font-size: 0;
  transform: translateY(-50%);
}

.carousel-arrow::before {
  content: "";
  display: block;
  width: 0.62rem;
  height: 0.62rem;
  border-color: currentColor;
  border-style: solid;
  border-width: 0.18rem 0.18rem 0 0;
}

.carousel-arrow-prev {
  left: 0.75rem;
}

.carousel-arrow-prev::before {
  transform: translateX(0.12rem) rotate(-135deg);
}

.carousel-arrow-next {
  right: 0.75rem;
}

.carousel-arrow-next::before {
  transform: translateX(-0.12rem) rotate(45deg);
}

.carousel-arrow:hover,
.carousel-arrow:focus-visible {
  background: var(--red);
  outline: 3px solid rgba(163, 53, 61, 0.28);
  outline-offset: 2px;
}

.carousel-thumbs {
  display: grid;
  grid-auto-columns: minmax(64px, 84px);
  grid-auto-flow: column;
  gap: 0.55rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
  scrollbar-width: thin;
}

.carousel-thumbs button {
  display: block;
  padding: 0;
  cursor: pointer;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 6px;
}

.carousel-thumbs button:hover,
.carousel-thumbs button:focus-visible {
  border-color: var(--red);
}

.carousel-thumbs img {
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0.2rem;
  object-fit: contain;
  background: #f7f3eb;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.product-detail-section {
  background: var(--porcelain);
}

.detail-grid article,
.options-panel {
  display: grid;
  gap: 1rem;
}

.detail-grid article p,
.options-panel p {
  margin: 0;
  color: var(--muted);
}

.fact-list {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.option-list {
  display: grid;
  gap: 1rem;
}

.option-card {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.option-card p,
.option-card ul {
  margin: 0;
}

.option-card .button {
  justify-self: start;
}

.related-section {
  background: var(--porcelain);
  border-top: 1px solid var(--line);
}

.not-found {
  min-height: 52vh;
}
.studio-section {
  background: linear-gradient(135deg, var(--blue-deep), #1f3f38);
  color: var(--porcelain);
}

.studio-section .eyebrow {
  color: #f0ba62;
}

.studio-section p {
  color: rgba(255, 255, 255, 0.8);
}

.studio-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 0.28fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  margin-bottom: 1.5rem;
}

.studio-copy {
  max-width: 760px;
}

.studio-copy p {
  max-width: 68ch;
  margin: 1rem 0 0;
}

.studio-badge {
  justify-self: center;
  width: clamp(120px, 16vw, 190px);
  max-width: 190px;
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.24));
}

.studio-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.studio-link {
  display: grid;
  gap: 0.55rem;
  min-height: 160px;
  padding: clamp(1rem, 3vw, 1.5rem);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}

.studio-link.current {
  border-top: 6px solid var(--red);
}

.studio-link span {
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.studio-link strong {
  max-width: 18ch;
  font-family: var(--display-font);
  font-weight: 600;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.05;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  padding: clamp(1.6rem, 4vw, 2.4rem) clamp(1rem, 5vw, 4rem);
  color: var(--blue-deep);
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.footer-brand a {
  font-family: var(--display-font);
  font-size: 1.12rem;
  font-weight: 800;
}

.footer-brand p {
  max-width: 34ch;
  margin: 0.55rem 0 0;
  color: var(--muted);
}

.footer-menu {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.footer-menu div {
  display: grid;
  align-content: start;
  gap: 0.45rem;
}

.footer-menu h2 {
  color: var(--red);
  font-family: var(--ui-font);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-menu a {
  width: fit-content;
  font-weight: 800;
}

.footer-menu a:hover,
.footer-menu a:focus-visible {
  color: var(--red);
}

@media (max-width: 900px) {
  .site-footer {
    grid-template-columns: 1fr;
  }

  .intro-band,
  .section-heading,
  .feature-row {
    grid-template-columns: 1fr;
  }

  .section-heading p {
    grid-column: 1;
    grid-row: auto;
  }

  .studio-header,
  .contact-panel,
  .contact-form,
  .product-hero-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .studio-badge {
    justify-self: start;
    width: clamp(110px, 34vw, 160px);
    max-width: 160px;
  }

  .shop-grid,
  .faq-grid,
  .studio-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: sticky;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.65rem 1rem 0.55rem;
  }

  .brand img {
    width: 46px;
    height: 46px;
  }

  .main-nav {
    width: 100%;
    gap: 0.95rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: thin;
  }

  .main-nav a {
    flex: 0 0 auto;
  }

  .hero-copy {
    width: calc(100% - 1rem);
  }

  h1 {
    font-size: 2.55rem;
  }

  .footer-menu {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }
}
