/* BLACK PORTAL — dark, high-contrast, logo-aligned */

:root {
  --bg: #000000;
  --bg-elevated: #0a0a0a;
  --bg-card: #0d0d0d;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.28);
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.62);
  --accent: #ffffff;
  --font: "Montserrat", system-ui, -apple-system, sans-serif;
  --header-h: 4rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  border-radius: 2px;
}

.skip-link:focus {
  top: 1rem;
}

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

a {
  color: inherit;
}

/* —— Typography helpers (logo rhythm) —— */
.brand-solid,
.title-solid,
.solid-word {
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-outline,
.title-outline,
.outline-word,
.footer-outline {
  font-weight: 300;
  color: transparent;
  -webkit-text-stroke: 1px var(--text);
  text-stroke: 1px var(--text);
}

@supports not (-webkit-text-stroke: 1px white) {
  .brand-outline,
  .title-outline,
  .outline-word,
  .footer-outline {
    color: var(--text);
    opacity: 0.85;
    -webkit-text-stroke: 0;
  }
}

/* —— Header —— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
  flex-shrink: 0;
}

@media (min-width: 769px) {
  .header-right {
    gap: 1.35rem;
  }
}

.lang-switch {
  display: flex;
  flex-direction: row;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}

.lang-btn {
  margin: 0;
  padding: 0.4rem 0.55rem;
  font-family: inherit;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: transparent;
  color: var(--text-muted);
  border: none;
  border-right: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.lang-btn:last-child {
  border-right: none;
}

.lang-btn:hover,
.lang-btn:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.lang-btn:focus-visible {
  outline: 2px solid var(--text-muted);
  outline-offset: 2px;
}

.lang-btn--active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}

.site-nav a.header-instagram-link {
  display: inline-block;
  padding: 0;
  margin: 0;
  line-height: 0;
  font-size: 0.875rem;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--text-muted);
  border: none;
  background: transparent;
  border-radius: 2px;
  transition: color 0.2s var(--ease);
  letter-spacing: normal;
  text-transform: none;
  font-weight: 500;
}

.site-nav a.header-instagram-link svg {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  vertical-align: text-bottom;
}

.site-nav a.header-instagram-link:hover,
.site-nav a.header-instagram-link:focus-visible {
  color: var(--text);
  outline: 2px solid var(--text-muted);
  outline-offset: 2px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-mark {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  object-fit: contain;
}

.brand-text {
  display: flex;
  gap: 0.35em;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  border-radius: 2px;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--text-muted);
  outline-offset: 2px;
}

.nav-toggle-bar {
  display: block;
  width: 1.1rem;
  height: 1px;
  background: var(--text);
}

.nav-toggle-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: baseline;
  gap: 2rem;
}

/* Bordered CTA sits on its own box; keep it vertically balanced with the bar */
.site-nav li:has(> a.nav-cta) {
  align-self: center;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
}

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

.site-nav a:focus-visible {
  outline: 2px solid var(--text-muted);
  outline-offset: 3px;
}

.nav-cta {
  padding: 0.5rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--text) !important;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--text);
  color: var(--bg) !important;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 2rem) 1.5rem 4rem;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: 20% 10% auto;
  height: 40vh;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.06) 0%,
    transparent 65%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 40rem;
  text-align: center;
}

.hero-logo-wrap {
  margin-bottom: 2rem;
}

.hero-logo {
  width: min(300px, 78vw);
  max-height: min(54vh, 420px);
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.hero-lead {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  font-weight: 400;
  color: var(--text-muted);
  max-width: 32em;
  margin: 0 auto 2rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.btn-block {
  width: 100%;
  margin-top: auto;
}

.btn-submit {
  grid-column: 1 / -1;
  justify-self: start;
}

/* —— Sections —— */
.section {
  padding: 5rem 1.5rem;
  border-top: 1px solid var(--line);
}

.section-inner {
  max-width: 72rem;
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin-bottom: 3rem;
}

.section-head.align-left {
  text-align: left;
}

.section-head h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.15;
}

.section-head h2 .title-solid,
.section-head h2 .title-outline {
  margin-right: 0.25em;
}

.section-sub {
  margin: 0 auto;
  max-width: 36rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.align-left .section-sub {
  margin-left: 0;
}

/* —— Services grid —— */
.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
}

.feature-card {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: border-color 0.2s var(--ease);
}

.feature-card:hover {
  border-color: var(--line-strong);
}

.feature-icon {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.feature-card h3 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.925rem;
}

/* —— Modeling split —— */
.modeling {
  background: var(--bg-elevated);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split-text .section-head {
  margin-bottom: 1.5rem;
}

.checklist {
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
}

.checklist li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.65rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border: 1px solid var(--text);
  border-radius: 1px;
}

.split-panel {
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.modeling .split-panel {
  overflow: visible;
  min-height: 360px;
}

.parametric-visual {
  position: relative;
  width: min(100%, 360px);
  height: 360px;
  max-width: 360px;
  perspective: 640px;
  perspective-origin: 50% 45%;
}

.parametric-3d-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.parametric-3d-canvas {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  /* Match WebGL opaque clear (parametric-3d.js alpha: false) */
  background: #000000;
}

.parametric-3d-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.parametric-visual.parametric-3d--webgl .parametric-3d-fallback {
  display: none;
}

.parametric-3d-fallback-img {
  display: block;
  width: clamp(7.5rem, 55%, 13rem);
  height: auto;
  max-height: 85%;
  object-fit: contain;
  opacity: 0.96;
  transform: translateZ(36px);
  backface-visibility: hidden;
  filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.45))
    drop-shadow(0 8px 14px rgba(0, 0, 0, 0.35))
    drop-shadow(0 0 20px rgba(255, 255, 255, 0.14))
    drop-shadow(0 0 48px rgba(255, 255, 255, 0.08));
}

/* —— Shop —— */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.25rem;
}

.shop-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 2px;
  min-height: 280px;
}

.shop-card--featured {
  border-color: var(--line-strong);
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.04) 0%,
    var(--bg-card) 45%
  );
}

.shop-card h3 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shop-card p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  flex: 1;
}

.shop-badge {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 1.25rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  color: var(--text-muted);
  border-radius: 2px;
}

.shop-badge--solid {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.shop-status {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.shop-status--error {
  color: rgba(255, 200, 200, 0.9);
}

.shop-sections {
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
  width: 100%;
}

.shop-subsection {
  margin: 0;
}

.shop-subsection-title {
  margin: 0 0 1.15rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.shop-subsection-empty {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
  padding: 1rem 0 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr));
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  transition:
    border-color 0.3s var(--ease),
    box-shadow 0.35s var(--ease);
}

.product-card:hover,
.product-card:focus-within {
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 0 20px rgba(255, 255, 255, 0.07),
    0 0 48px rgba(255, 255, 255, 0.1),
    0 0 80px rgba(255, 255, 255, 0.05);
}

.product-card--featured {
  border-color: var(--line-strong);
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.05) 0%,
    var(--bg-card) 42%
  );
}

.product-image-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1);
  transition: filter 0.4s var(--ease);
}

a.product-card-media:hover .product-image,
a.product-card-media:focus-visible .product-image {
  filter: grayscale(0);
}

a.product-card-media {
  display: block;
  text-decoration: none;
  color: inherit;
  outline-offset: 0.25rem;
}

.product-card-title-link {
  color: inherit;
  text-decoration: none;
}

.product-card-title-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.product-image-wrap--default {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.04) 0%,
    var(--bg) 55%
  );
}

.product-image--default {
  object-fit: contain;
  max-width: 52%;
  max-height: 52%;
  width: auto;
  height: auto;
  padding: 1rem;
  box-sizing: content-box;
}

.product-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.35rem 1.5rem 1.5rem;
}

.product-card-body .shop-badge {
  margin-bottom: 1rem;
}

.product-card h3 {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
}

.product-card p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  flex: 1;
}

.product-price {
  margin: 0 0 1.15rem !important;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text) !important;
}

.product-card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.15rem;
}

.product-variant-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.product-variant-select,
.product-detail-variant-select {
  width: 100%;
  font: inherit;
  font-size: 0.85rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #000;
  color: var(--text);
  cursor: pointer;
}

.product-variant-select:focus,
.product-detail-variant-select:focus {
  outline: 2px solid rgba(255, 255, 255, 0.35);
  outline-offset: 2px;
}

.product-detail-variant-wrap {
  width: 100%;
  margin-bottom: 0.25rem;
}

.shop-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
  padding: 2rem 1rem;
}

.shop-empty code {
  font-size: 0.88em;
  color: rgba(255, 255, 255, 0.8);
}

/* —— Gallery —— */
.gallery-status {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.gallery-status--error {
  color: rgba(255, 200, 200, 0.9);
}

.gallery-series {
  margin: 0 0 1.25rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1.15rem;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 60rem;
  width: 100%;
  justify-items: center;
}

@media (min-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr));
  }
}

.gallery-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  max-width: 19rem;
}

.gallery-thumb-frame {
  position: relative;
  display: block;
  width: 100%;
}

.gallery-badge {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  z-index: 1;
  padding: 0.28rem 0.5rem;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  pointer-events: none;
}

.gallery-badge--resin {
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--text);
}

.gallery-badge--fdm {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--line-strong);
  color: var(--text-muted);
}

.gallery-thumb {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-card);
  transition:
    border-color 0.3s var(--ease),
    box-shadow 0.35s var(--ease),
    transform 0.2s var(--ease);
}

.gallery-thumb:hover,
.gallery-thumb:focus-visible {
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 0 20px rgba(255, 255, 255, 0.07),
    0 0 48px rgba(255, 255, 255, 0.1),
    0 0 80px rgba(255, 255, 255, 0.05);
}

.gallery-thumb:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.gallery-thumb:active {
  transform: scale(0.98);
}

.gallery-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  vertical-align: middle;
  filter: grayscale(1);
  transition: filter 0.4s var(--ease);
}

.gallery-thumb:hover img,
.gallery-thumb:focus-visible img {
  filter: grayscale(0);
}

.gallery-card-cap {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.35;
  padding: 0 0.15rem;
  text-align: center;
}

.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
  padding: 2rem 1rem;
}

.gallery-empty code {
  font-size: 0.88em;
  color: rgba(255, 255, 255, 0.8);
}

.gallery-dialog {
  position: relative;
  max-width: min(92vw, 56rem);
  width: 100%;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--bg-elevated);
  color: var(--text);
}

.gallery-dialog::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
}

.gallery-dialog-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.5);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.gallery-dialog-close:hover,
.gallery-dialog-close:focus-visible {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.gallery-dialog-close:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.gallery-dialog-img {
  display: block;
  width: 100%;
  max-height: min(72vh, 720px);
  object-fit: contain;
  background: var(--bg);
}

.gallery-dialog-caption {
  margin: 0;
  padding: 1rem 1.25rem 1.25rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
  border-top: 1px solid var(--line);
}

/* —— Print quote —— */
.quote {
  background: var(--bg-elevated);
}

.quote-inner {
  max-width: 40rem;
  margin: 0 auto;
}

.quote .section-head {
  margin-bottom: 2rem;
}

.quote-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.print-process {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.print-process .field-label {
  margin-bottom: 0.65rem;
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.process-card {
  position: relative;
  display: block;
  cursor: pointer;
  margin: 0;
}

.process-card input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.process-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  height: 100%;
  padding: 1rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.process-card:hover .process-card-body {
  border-color: var(--line-strong);
}

.process-card input:focus-visible + .process-card-body {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.process-card input:checked + .process-card-body {
  border-color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.process-title {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.process-desc {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.field-hint {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.quote-form input,
.quote-form textarea,
.quote-form select {
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.75rem 1rem;
  transition: border-color 0.2s var(--ease);
}

.quote-form select {
  cursor: pointer;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
    linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 1.1rem, calc(100% - 0.75rem) 1.1rem;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.25rem;
}

.quote-form input:focus,
.quote-form textarea:focus,
.quote-form select:focus {
  border-color: var(--line-strong);
}

.quote-form input:focus:not(:focus-visible),
.quote-form textarea:focus:not(:focus-visible),
.quote-form select:focus:not(:focus-visible) {
  outline: none;
}

.quote-form input:focus-visible,
.quote-form textarea:focus-visible,
.quote-form select:focus-visible {
  outline: 2px solid var(--text-muted);
  outline-offset: 2px;
}

.quote-form input[type="file"] {
  padding: 0.6rem 0.75rem;
  font-size: 0.9rem;
}

.quote-form input[type="file"]::file-selector-button {
  font-family: inherit;
  margin-right: 1rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--text);
  border: 1px solid var(--text);
  border-radius: 2px;
  cursor: pointer;
}

.quote-form textarea {
  resize: vertical;
  min-height: 100px;
}

/* —— Contact —— */
.contact-inner {
  max-width: 36rem;
}

.contact .section-head {
  margin-bottom: 2rem;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field-full {
  grid-column: 1 / -1;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.field-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-form input,
.contact-form textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.75rem 1rem;
  transition: border-color 0.2s var(--ease);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--line-strong);
}

.contact-form input:focus:not(:focus-visible),
.contact-form textarea:focus:not(:focus-visible) {
  outline: none;
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: 2px solid var(--text-muted);
  outline-offset: 2px;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

/* —— Footer —— */
.site-footer {
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  margin: 0 0 0.25rem;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-tag {
  margin: 0 0 1.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

.footer-tag .brand-solid,
.footer-tag .brand-outline {
  font-size: inherit;
}

.footer-social {
  margin: 0 0 1.25rem;
}

.footer-instagram-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.5rem 1.15rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.footer-instagram-btn:hover,
.footer-instagram-btn:focus-visible {
  color: var(--bg);
  background: var(--text);
  border-color: var(--text);
}

.footer-instagram-btn:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.footer-instagram-icon {
  flex-shrink: 0;
}

.footer-copy {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.footer-legal {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.footer-legal a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-legal a:hover {
  color: var(--text);
}

.footer-cookie-settings {
  margin: 0;
  padding: 0;
  font: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-cookie-settings:hover,
.footer-cookie-settings:focus-visible {
  color: var(--text);
}

.footer-cookie-settings:focus-visible {
  outline: 2px solid var(--text-muted);
  outline-offset: 2px;
}

.footer-legal-sep {
  color: var(--text-muted);
  opacity: 0.6;
}

/* —— Cookie consent (GDPR-oriented) —— */
body.cookie-banner-open {
  padding-bottom: max(10rem, calc(env(safe-area-inset-bottom, 0px) + 9rem));
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 250;
  padding: 1rem 1.25rem max(1rem, env(safe-area-inset-bottom));
  background: rgba(8, 8, 8, 0.94);
  border-top: 1px solid var(--line-strong);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45);
}

.cookie-banner-inner {
  max-width: 52rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

.cookie-banner-text {
  flex: 1 1 16rem;
  min-width: min(100%, 16rem);
}

.cookie-banner-title {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}

.cookie-banner-desc {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.cookie-banner-desc a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner-desc a:hover {
  text-decoration: none;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  flex: 0 1 auto;
  align-items: center;
}

/* Equal prominence: same size, same visual weight (GDPR: reject as easy as accept) */
.cookie-banner-reject,
.cookie-banner-accept {
  margin: 0;
  padding: 0.55rem 1.1rem;
  min-width: 10.5rem;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  border: 1px solid var(--line-strong);
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.cookie-banner-reject {
  background: transparent;
  color: var(--text);
}

.cookie-banner-reject:hover,
.cookie-banner-reject:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
}

.cookie-banner-reject:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.65);
  outline-offset: 2px;
}

.cookie-banner-accept {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.cookie-banner-accept:hover,
.cookie-banner-accept:focus-visible {
  background: rgba(255, 255, 255, 0.92);
}

.cookie-banner-accept:focus-visible {
  outline: 2px solid var(--bg);
  outline-offset: 2px;
}

/* Cookie policy page */
.cookie-policy-page {
  padding-top: calc(var(--header-h) + 2.5rem);
  padding-bottom: 4rem;
}

.cookie-policy-inner {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.cookie-policy-prose h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}

.cookie-policy-meta {
  margin: 0 0 2rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.cookie-policy-prose h2 {
  margin: 2rem 0 0.65rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.cookie-policy-prose p {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.cookie-policy-prose a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-policy-prose code {
  font-size: 0.85em;
  padding: 0.1em 0.35em;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}

.cookie-policy-inline-btn {
  margin: 0;
  padding: 0;
  font: inherit;
  font-size: inherit;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-policy-inline-btn:hover,
.cookie-policy-inline-btn:focus-visible {
  text-decoration: none;
}

.cookie-policy-inline-btn:focus-visible {
  outline: 2px solid var(--text-muted);
  outline-offset: 2px;
}

/* Human-readable sitemap page */
.sitemap-page .sitemap-lead {
  margin: 0 0 2.25rem;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.sitemap-list {
  margin: 0 0 2.25rem;
  padding-left: 1.15rem;
  list-style: disc;
}

.sitemap-list li {
  margin-bottom: 0.55rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.sitemap-list a {
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 0.05em;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.sitemap-list a:hover,
.sitemap-list a:focus-visible {
  color: var(--text-muted);
  border-bottom-color: var(--text-muted);
}

.sitemap-list a[aria-current="page"] {
  color: var(--text-muted);
  border-bottom-color: transparent;
}

.sitemap-list a:focus-visible {
  outline: 2px solid var(--text-muted);
  outline-offset: 3px;
}

.sitemap-item-desc {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.88rem;
}

@media (max-width: 560px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner-actions {
    flex-direction: column;
  }

  .cookie-banner-reject,
  .cookie-banner-accept {
    width: 100%;
    min-width: 0;
  }
}

/* —— Responsive —— */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .header-right {
    gap: 0.65rem;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.5rem;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s var(--ease), opacity 0.25s var(--ease),
      visibility 0.25s;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

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

  .site-nav a {
    display: block;
    padding: 1rem 0;
  }

  .site-nav a.header-instagram-link {
    display: flex;
    justify-content: center;
    padding: 1rem 0;
    margin: 0;
  }

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

  .split-panel {
    order: -1;
    min-height: 200px;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .quote-form {
    grid-template-columns: 1fr;
  }

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

  .btn-submit {
    grid-column: 1;
    width: 100%;
  }
}

/* —— Product detail page (product.html) —— */
.product-page-main {
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: 3rem;
  min-height: 60vh;
}

.product-page-inner {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.product-status {
  text-align: center;
  color: var(--text-muted);
  margin: 0 auto 1.5rem;
  max-width: 36rem;
  padding: 0 1.25rem;
}

.product-status--error {
  color: rgba(255, 200, 200, 0.92);
}

.product-detail-type {
  margin: 0 0 1rem;
}

.product-detail-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.25;
}

.product-detail-price {
  margin: 0 0 1.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.product-detail-media {
  margin-bottom: 1.75rem;
}

.product-detail-main-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.product-detail-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-detail-main--default {
  object-fit: contain;
  max-width: 55%;
  max-height: 55%;
  width: auto;
  height: auto;
  margin: 0 auto;
  padding: 1.25rem;
  box-sizing: content-box;
}

.product-detail-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.product-detail-thumb {
  padding: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-card);
  width: 5.5rem;
  height: 4.125rem;
  flex-shrink: 0;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.product-detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1);
  transition: filter 0.35s var(--ease);
}

.product-detail-thumb:hover img,
.product-detail-thumb:focus-visible img,
.product-detail-thumb.is-active img {
  filter: grayscale(0);
}

.product-detail-thumb:hover,
.product-detail-thumb:focus-visible {
  border-color: var(--line-strong);
}

.product-detail-thumb.is-active {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.product-detail-thumb:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.product-detail-body {
  margin-bottom: 1.75rem;
}

.product-detail-desc {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.product-detail-extra {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.product-detail-extra p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.product-detail-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
}

.product-detail-actions > .btn {
  align-self: flex-start;
}

.site-nav--product ul {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .product-image,
  .gallery-thumb img,
  .product-detail-thumb img,
  .product-card,
  .gallery-thumb {
    transition: none;
  }
}
