/* =========================================================================
   VP 3D Creations — stylesheet
   Monochrome. Flat colour, no gradients, no glow. One typeface.
   1 tokens · 2 reset · 3 primitives · 4 header · 5 hero · 6 services
   7 portfolio · 8 reviews · 9 contact · 10 footer · 11 lightbox
   12 motion · 13 responsive
   ========================================================================= */

/* ---------- 1. TOKENS ---------- */
:root {
  /* Blue on black. No other hue anywhere. */
  --bg:          #05070d;
  --bg-alt:      #080b13;
  --panel:       #0b0f1a;
  --panel-2:     #101725;

  --line:        rgba(110, 155, 255, .11);
  --line-mid:    rgba(110, 155, 255, .20);
  --line-strong: rgba(110, 155, 255, .36);

  --text:        #e9f0ff;
  --text-dim:    #97a6c4;
  --text-faint:  #64738f;

  --blue:        #2f6bff;
  --blue-bright: #6296ff;
  --blue-deep:   #12245c;

  --font: "Times New Roman", Times, "Liberation Serif", serif;

  --maxw:      1140px;
  --gutter:    clamp(1.25rem, 4vw, 2.5rem);
  --radius:    4px;
  --ease:      cubic-bezier(.4, 0, .2, 1);
  --header-h:  76px;
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 3px; }
::selection { background: var(--blue); color: #ffffff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #16223c; border: 2px solid var(--bg); border-radius: 20px; }
::-webkit-scrollbar-thumb:hover { background: #22335c; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--blue); color: #ffffff;
  padding: .75rem 1.25rem; font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- 3. PRIMITIVES ---------- */
.container {
  width: 100%; max-width: var(--maxw);
  margin-inline: auto; padding-inline: var(--gutter);
}

.section { padding-block: clamp(4.5rem, 10vw, 7.5rem); }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.section-head { max-width: 620px; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }

/* Small caps label — plain, no monospace, no heavy tracking */
.section-label {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.9rem, 4.4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.005em;
  margin-bottom: .9rem;
}

.section-sub { color: var(--text-dim); font-size: 1.02rem; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--line-mid);
}

/* Buttons — flat fills only */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 500; font-size: .95rem;
  border-radius: var(--radius);
  padding: .72rem 1.35rem;
  border: 1px solid transparent;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
}
.btn-sm { padding: .55rem 1rem; font-size: .875rem; }
.btn-lg { padding: .85rem 1.7rem; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--blue); color: #ffffff; }
.btn-primary:hover { background: var(--blue-bright); }

.btn-ghost { border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, .06); border-color: var(--text); }

.btn-outline { border-color: var(--line-mid); color: var(--text-dim); }
.btn-outline:hover { border-color: var(--text); color: var(--text); }

.btn-icon { width: 16px; height: 16px; flex: none; }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .25s var(--ease);
}

/* ---------- 4. HEADER ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background .25s var(--ease), border-color .25s var(--ease), height .25s var(--ease);
}
.site-header.is-stuck {
  background: rgba(11, 11, 12, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
  height: 64px;
}

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--text); }
.brand-mark { width: 30px; height: 19px; flex: none; }
.brand-text {
  font-weight: 600; font-size: 1.02rem;
  letter-spacing: -.01em; color: var(--text);
}

.nav { display: flex; align-items: center; gap: .25rem; }

.nav-link {
  position: relative;
  padding: .5rem .8rem;
  font-size: .92rem;
  color: var(--text-dim);
  transition: color .2s var(--ease);
}
.nav-link:hover { color: var(--text); }
.nav-link.is-active { color: var(--text); }
.nav-link.is-active::after {
  content: ""; position: absolute;
  left: .8rem; right: .8rem; bottom: .25rem;
  height: 1px; background: var(--blue);
}

.nav-cta { margin-left: .6rem; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line-mid);
  border-radius: var(--radius);
  padding: 0; position: relative;
}
.nav-toggle span {
  position: absolute; left: 11px;
  width: 18px; height: 1.5px;
  background: var(--text);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 24px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.scroll-progress {
  position: absolute; left: 0; bottom: -1px;
  height: 1px; width: 0;
  background: var(--blue);
  transition: width .1s linear;
}

/* ---------- 5. HERO ---------- */
.hero {
  position: relative;
  min-height: 92svh;
  display: flex; align-items: center;
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: 4.5rem;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .16;
  filter: contrast(1.05);
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(11, 11, 12, .82) 55%, rgba(11, 11, 12, .55) 100%);
}
.hero-grid { display: none; }

.hero-inner { position: relative; z-index: 1; }

.hero-title {
  font-size: clamp(2.9rem, 6.4vw, 4.6rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.012em;
  margin: 1.4rem 0 1.3rem;
}

.hero-sub {
  color: var(--text-dim);
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  max-width: 54ch;
  margin-bottom: 2.25rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 3.5rem; }


/* ---------- 6. SERVICES ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.25rem;
}

.service-card { display: flex; flex-direction: column; }
.service-card:hover { border-color: var(--line-strong); }
.service-card.is-featured { border-color: var(--line-mid); }

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
}
.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.card-tag {
  position: absolute; top: .75rem; left: .75rem;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .28rem .6rem;
  border-radius: 2px;
  background: var(--bg);
  border: 1px solid var(--line-mid);
  color: var(--text-dim);
}

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

.card-title { font-size: 1.2rem; font-weight: 600; letter-spacing: -.015em; margin-bottom: .65rem; }
.card-text { color: var(--text-dim); font-size: .92rem; margin-bottom: 1.1rem; }

.feature-list { display: grid; gap: .45rem; margin-bottom: 1.5rem; }
.feature-list li {
  position: relative; padding-left: 1.1rem;
  font-size: .87rem; color: var(--text-dim);
}
.feature-list li::before {
  content: ""; position: absolute;
  left: 0; top: .62em;
  width: 5px; height: 1px;
  background: var(--blue);
}

.card-foot {
  margin-top: auto; padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.price { line-height: 1.25; }
.price-label {
  display: block;
  font-size: .68rem; letter-spacing: .07em;
  text-transform: uppercase; color: var(--text-faint);
}
.price-value { font-size: 1.2rem; font-weight: 600; letter-spacing: -.02em; }

/* ---------- 7. PORTFOLIO ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.75rem; }
.filter {
  font-size: .82rem;
  padding: .45rem .95rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-mid);
  color: var(--text-dim);
  transition: all .2s var(--ease);
}
.filter:hover { color: var(--text); border-color: var(--line-strong); }
.filter.is-active { background: var(--blue); border-color: var(--blue); color: #ffffff; }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  grid-auto-flow: dense;
}

.tile {
  position: relative; display: block; padding: 0;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel-2);
  text-align: left;
  transition: border-color .25s var(--ease);
}
.tile-feature { grid-column: span 2; grid-row: span 2; aspect-ratio: 1 / 1; }
.tile-feature .tile-title { font-size: 1.3rem; }
.tile-feature .tile-overlay { padding: 3.5rem 1.4rem 1.3rem; }

.tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.tile:hover { border-color: var(--line-strong); }
.tile:hover img { transform: scale(1.03); }

.tile-overlay {
  position: absolute; inset: auto 0 0 0;
  display: grid; gap: .22rem;
  padding: 2.5rem 1.1rem 1rem;
  background: linear-gradient(180deg, transparent, rgba(11, 11, 12, .92) 60%);
}
.tile-cat {
  font-size: .68rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-faint);
}
.tile-title { font-size: 1rem; font-weight: 600; color: var(--text); line-height: 1.25; }
.tile-meta { font-size: .78rem; color: var(--text-faint); }
.tile.is-hidden { display: none; }

/* ---------- 8. REVIEWS ---------- */
.carousel { position: relative; max-width: 800px; margin-inline: auto; }
.carousel:focus { outline: none; }
.carousel-viewport { overflow: hidden; }
.carousel-track { display: flex; transition: transform .45s var(--ease); }
.slide { flex: 0 0 100%; min-width: 0; }

.quote {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: clamp(1.6rem, 4vw, 2.5rem);
  height: 100%;
}
.quote p {
  font-size: clamp(1rem, 1.9vw, 1.15rem);
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 1.6rem;
}

.stars { display: flex; gap: .2rem; margin-bottom: 1.1rem; }
.stars svg { width: 14px; height: 14px; fill: var(--blue); }

.quote-foot { display: flex; align-items: center; gap: .85rem; }
.avatar {
  width: 42px; height: 42px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--panel-2);
  border: 1px solid var(--line-mid);
  font-size: .4rem; color: var(--text-faint);
  text-align: center; overflow: hidden;
}
.quote-who { display: grid; line-height: 1.4; }
.quote-who strong { font-weight: 600; font-size: .94rem; }
.quote-who span { font-size: .8rem; color: var(--text-faint); }

.carousel-controls {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; margin-top: 1.5rem;
}
.carousel-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-mid);
  color: var(--text-dim);
  display: grid; place-items: center;
  transition: all .2s var(--ease);
}
.carousel-btn svg { width: 17px; height: 17px; }
.carousel-btn:hover { border-color: var(--text); color: var(--text); }

.dots { display: flex; gap: .4rem; }
.dot {
  width: 6px; height: 6px; padding: 0;
  border-radius: 50%;
  background: var(--line-strong);
  transition: all .25s var(--ease);
}
.dot.is-active { background: var(--blue); width: 20px; border-radius: 20px; }

/* ---------- 9. CONTACT ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-points { display: grid; gap: .8rem; margin: 1.75rem 0; }
.contact-points li { display: flex; gap: .7rem; font-size: .92rem; color: var(--text-dim); }
.contact-points svg { width: 17px; height: 17px; flex: none; color: var(--blue); margin-top: .2rem; }
.contact-points strong { color: var(--text); font-weight: 600; }

.contact-meta { display: grid; gap: .55rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.contact-meta p { display: flex; align-items: baseline; gap: .8rem; font-size: .92rem; }
.meta-label {
  font-size: .68rem; letter-spacing: .07em; text-transform: uppercase;
  color: var(--text-faint); min-width: 62px;
}
.contact-meta a { color: var(--text); border-bottom: 1px solid var(--line-strong); }
.contact-meta a:hover { border-bottom-color: var(--text); }

.form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.35rem, 3vw, 2rem);
  display: grid; gap: 1rem;
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field label {
  font-size: .72rem; letter-spacing: .07em; text-transform: uppercase;
  color: var(--text-dim);
}
.req { color: var(--text-faint); }
.hint { text-transform: none; letter-spacing: 0; color: var(--text-faint); }

.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-mid);
  border-radius: var(--radius);
  padding: .75rem .9rem;
  font-size: .93rem;
  transition: border-color .2s var(--ease);
  appearance: none;
}
.field textarea { resize: vertical; min-height: 112px; font-family: var(--font); }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364738f' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; background-size: 16px;
  padding-right: 2.4rem; cursor: pointer;
}
.field select option { background: var(--panel); color: var(--text); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue);
}
.form.was-validated :invalid { border-color: var(--blue-bright); }

.hp { position: absolute !important; left: -9999px; opacity: 0; height: 0; width: 0; }

#submit-btn { margin-top: .3rem; }
#submit-btn[disabled] { opacity: .6; cursor: not-allowed; }

.spinner {
  display: none;
  width: 15px; height: 15px;
  border: 2px solid rgba(255, 255, 255, .3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.is-sending .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-status {
  font-size: .88rem;
  padding: .75rem .9rem;
  border-radius: var(--radius);
  display: none;
  border: 1px solid var(--line-mid);
}
.form-status.is-visible { display: block; }
.form-status.is-ok { color: var(--text); border-color: var(--line-strong); }
.form-status.is-err { color: var(--text); border-color: var(--blue); }

.form-fine { font-size: .76rem; color: var(--text-faint); text-align: center; }

/* ---------- 10. FOOTER ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 2.25rem; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
}
.footer-brand p { font-size: .82rem; color: var(--text-faint); margin-top: .15rem; }
.footer-nav { display: flex; gap: 1.3rem; flex-wrap: wrap; }
.footer-nav a { font-size: .86rem; color: var(--text-dim); transition: color .2s var(--ease); }
.footer-nav a:hover { color: var(--text); }
.copyright { font-size: .78rem; color: var(--text-faint); }

/* ---------- 11. LIGHTBOX ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: var(--gutter); }
.lightbox[hidden] { display: none; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(6, 6, 7, .9); }

.lightbox-panel {
  position: relative; z-index: 1;
  width: min(820px, 100%); max-height: 88vh; overflow: auto;
  background: var(--panel);
  border: 1px solid var(--line-mid);
  border-radius: var(--radius);
}
.lightbox-panel img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  border-bottom: 1px solid var(--line);
}
.lightbox-body { padding: clamp(1.25rem, 3vw, 1.85rem); display: grid; gap: .7rem; justify-items: start; }
.lightbox-body h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); font-weight: 600; }
.lightbox-meta { font-size: .8rem; color: var(--text-faint); }
.lightbox-body p:not(.lightbox-meta) { color: var(--text-dim); font-size: .93rem; }

.lightbox-close {
  position: absolute; top: .7rem; right: .7rem; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--line-mid);
  color: var(--text); display: grid; place-items: center;
  transition: border-color .2s var(--ease);
}
.lightbox-close svg { width: 17px; height: 17px; }
.lightbox-close:hover { border-color: var(--text); }

/* ---------- 12. MOTION ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .06s; }
.reveal[data-delay="2"] { transition-delay: .12s; }
.reveal[data-delay="3"] { transition-delay: .18s; }
.reveal[data-delay="4"] { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 13. RESPONSIVE ---------- */
@media (max-width: 980px) {
  .contact-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .tile-feature { grid-column: span 1; grid-row: span 1; aspect-ratio: 1 / 1; }
  .tile-feature .tile-title { font-size: 1rem; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .75rem var(--gutter) 1.25rem;
    background: rgba(11, 11, 12, .98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-10px);
    opacity: 0; pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-link { padding: .85rem .2rem; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .nav-link.is-active::after { display: none; }
  .nav-cta { margin: .9rem 0 0; justify-content: center; }

  .hero { min-height: auto; padding-top: calc(var(--header-h) + 3.5rem); }
  .hero-scrim { background: linear-gradient(180deg, rgba(11,11,12,.86) 0%, rgba(11,11,12,.9) 100%); }
    .hero-actions .btn { flex: 1 1 100%; }

  .field-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; }
  .tile, .tile-feature { grid-column: span 1; grid-row: span 1; aspect-ratio: 4 / 3; }
  .card-foot { flex-direction: column; align-items: flex-start; }
  .card-foot .btn { width: 100%; }
}

@media print {
  .site-header, .carousel-controls, .lightbox { display: none !important; }
  body { background: #fff; color: #000; }
}

/* =========================================================================
   14. HERO LAYOUT + P1S PRINTER ANIMATION
   The P1S is an enclosed CoreXY machine: the toolhead sweeps in X while the
   bed descends in Z. So the bed group translates down by exactly the amount
   the part grows, which keeps the top of the part level with the nozzle —
   the same way the real machine looks while printing.
   ========================================================================= */
.hero-layout {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}
.hero-copy { min-width: 0; }
.hero-copy .hero-actions { margin-bottom: 0; }
.hero-visual { min-width: 0; display: flex; justify-content: center; }
.printer { width: 100%; max-width: 420px; height: auto; display: block; }

/* --- static parts --- */
.pr-body      { fill: #08090d; stroke: var(--line-mid);    stroke-width: 2; }
.pr-chamber   { fill: #04050a; }
.pr-glass     { fill: rgba(47, 107, 255, .045); stroke: var(--line-mid); stroke-width: 1.5; }
.pr-seam      { stroke: var(--line-mid);    stroke-width: 2; }
.pr-rail      { stroke: var(--line-strong); stroke-width: 3; stroke-linecap: round; }
.pr-post      { stroke: var(--line);        stroke-width: 2; }
.pr-ams       { fill: #0a0d16; stroke: var(--line-mid); stroke-width: 2; }
.pr-spool     { fill: #0e1524; stroke: var(--line-strong); stroke-width: 1.5; }
.pr-bed-lip   { fill: var(--blue); opacity: .55; }
.pr-fan       { fill: #05070d; stroke: var(--line-mid); stroke-width: 1; }
.pr-vent      { fill: var(--line); }
.pr-base      { fill: #0a0c12; stroke: var(--line-mid); stroke-width: 1.5; }
.pr-screen    { fill: var(--blue-deep); stroke: var(--blue); stroke-width: 1; }
.pr-foot      { fill: #0a0c12; }
.pr-handle    { stroke: var(--line-strong); stroke-width: 3; stroke-linecap: round; }
.pr-bed       { fill: #10182a; stroke: var(--line-strong); stroke-width: 1.5; }
.pr-head-body { fill: #0d111c; stroke: var(--line-strong); stroke-width: 1.5; }
.pr-nozzle    { fill: var(--blue-bright); }
.pr-object    { fill: var(--blue); }
.pr-layer     { stroke: var(--blue-bright); stroke-width: 2.5; stroke-linecap: round; }

/* --- motion ---
   Driven by SMIL inside the SVG (see index.html), not CSS. SMIL animates real
   SVG attributes, so it does not depend on transform-box / transform-origin
   support and cannot be broken by a stale stylesheet cache.
   Reduced motion is handled in script.js via svg.pauseAnimations().          */

@media (max-width: 980px) {
  .hero-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { order: -1; }
  .printer { max-width: 300px; }
}

@media (max-width: 560px) {
  .printer { max-width: 240px; }
  }

/* =========================================================================
   15. SPECIALTY GALLERIES
   ========================================================================= */
.card-open {
  display: block; width: 100%; padding: 0;
  border: 0; text-align: left; cursor: pointer;
}
.card-open .card-media { transition: opacity .2s var(--ease); }
.card-open:hover .card-media { opacity: .82; }

.gallery-link {
  align-self: flex-start;
  margin: -.35rem 0 1.25rem;
  padding: 0;
  font-family: var(--font);
  font-size: .95rem;
  color: var(--blue);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}
.gallery-link:hover { border-bottom-color: var(--blue); }
.gallery-count { color: var(--text-faint); }

.gmodal { position: fixed; inset: 0; z-index: 210; display: grid; place-items: center; padding: var(--gutter); }
.gmodal[hidden] { display: none; }
.gmodal-backdrop { position: absolute; inset: 0; background: rgba(3, 5, 10, .92); }

.gmodal-panel {
  position: relative; z-index: 1;
  width: min(1040px, 100%);
  max-height: 88vh; overflow: auto;
  background: var(--panel);
  border: 1px solid var(--line-mid);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3.5vw, 2.25rem);
}

.gmodal-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1.5rem; margin-bottom: 1.75rem;
  padding-bottom: 1.25rem; border-bottom: 1px solid var(--line);
}
.gmodal-eyebrow {
  font-size: .74rem; letter-spacing: .09em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: .5rem;
}
.gmodal-title { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 700; letter-spacing: -.01em; }
.gmodal-blurb { color: var(--text-dim); font-size: .95rem; margin-top: .4rem; }

.gmodal-close {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line-mid); color: var(--text);
  display: grid; place-items: center;
  transition: border-color .2s var(--ease);
}
.gmodal-close svg { width: 18px; height: 18px; }
.gmodal-close:hover { border-color: var(--blue); }

.gmodal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.gm-item {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
  transition: border-color .2s var(--ease);
}
.gm-item:hover { border-color: var(--line-strong); }
.gm-item img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-bottom: 1px solid var(--line);
}
.gm-item figcaption { padding: .9rem 1rem 1.1rem; }

.gm-item-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: .75rem; margin-bottom: .35rem;
}
.gm-item-head h3 { font-size: 1.02rem; font-weight: 600; letter-spacing: -.005em; }
.gm-price { flex: none; font-size: 1rem; font-weight: 700; color: var(--blue); }
.gm-desc { font-size: .87rem; color: var(--text-dim); line-height: 1.5; }

.gmodal-empty { color: var(--text-dim); font-size: .95rem; padding: 2rem 0; text-align: center; }

@media (max-width: 560px) {
  .gmodal-panel { max-height: 92vh; }
  .gmodal-grid { grid-template-columns: 1fr; }
}

/* --- review that is a photo rather than a written quote --- */
.quote-photo { padding: 0; overflow: hidden; }
.quote-photo::before { content: none; }
.quote-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}
.quote-photo .quote-foot { padding: 1.1rem clamp(1.25rem, 3vw, 1.75rem) 1.25rem; }

/* =========================================================================
   16. SINGLE OFFERING
   One service left, so the card runs wide: photo on the left, detail on the
   right. A lone card sitting in a multi-column grid reads like a mistake.
   ========================================================================= */
.service-grid.is-single { grid-template-columns: 1fr; }

.is-single .service-card { flex-direction: row; align-items: stretch; }
.is-single .card-open { width: 46%; flex: none; display: flex; }
.is-single .card-media {
  /* a definite ratio, or the portrait photo drives a ~700px-tall card */
  aspect-ratio: 5 / 4;
  height: 100%;
  border-bottom: 0;
  border-right: 1px solid var(--line);
  width: 100%;
}
.is-single .card-body { padding: clamp(1.5rem, 3vw, 2.25rem); justify-content: center; }
.is-single .card-foot { margin-top: 1.5rem; }
.is-single .card-title { font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
.is-single .feature-list { margin-bottom: 1.75rem; }

@media (max-width: 760px) {
  .is-single .service-card { flex-direction: column; }
  .is-single .card-open { width: 100%; }
  .is-single .card-media { aspect-ratio: 4 / 3; border-right: 0; border-bottom: 1px solid var(--line); }
}

/* =========================================================================
   17. ORDER BOARD
   ========================================================================= */
.orders { display: grid; gap: .6rem; }
.orders[hidden] { display: none; }

.order {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1rem 1.15rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s var(--ease);
}
.order:hover { border-color: var(--line-mid); }

.order-main { display: grid; gap: .15rem; min-width: 0; }
.order-ref {
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.order-item { font-size: 1rem; font-weight: 600; color: var(--text); }
.order-note { font-size: .86rem; color: var(--text-dim); }

.order-meta { display: flex; align-items: center; gap: .9rem; flex: none; }
.order-when { font-size: .8rem; color: var(--text-faint); white-space: nowrap; }

/* status badges — blue carries "in progress", greys carry the rest */
.ostat {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .3rem .65rem;
  border-radius: 100px;
  border: 1px solid var(--line-mid);
  color: var(--text-dim);
  white-space: nowrap;
}
.ostat-queued    { border-color: var(--line-mid);    color: var(--text-dim); }
.ostat-printing  { border-color: var(--blue); background: var(--blue); color: #fff; }
.ostat-finishing { border-color: var(--blue); color: var(--blue-bright); }
.ostat-ready     { border-color: var(--text); color: var(--text); }
.ostat-delivered { border-color: var(--line); color: var(--text-faint); }

.orders-empty {
  color: var(--text-dim);
  font-size: .98rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.orders-empty[hidden] { display: none; }
.orders-empty a { color: var(--blue); border-bottom: 1px solid var(--line-strong); }
.orders-empty a:hover { border-bottom-color: var(--blue); }

.orders-key {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.4rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.orders-key li {
  display: flex; align-items: center; gap: .5rem;
  font-size: .8rem; color: var(--text-faint);
}

@media (max-width: 620px) {
  .order { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .order-meta { width: 100%; justify-content: space-between; }
}
