/* =========================================================
   Layer & Line — design tokens
   Concept: additive manufacturing / workshop spec-sheet.
   Layer lines (repeating horizontal rules of varying weight)
   are the recurring structural motif; monospace is used only
   for genuine technical data, the way slicer software does.
   ========================================================= */
:root {
  --charcoal:      #15181B;
  --charcoal-soft: #1D2126;
  --bone:          #E9E6DC;
  --bone-soft:     #F2F0E9;
  --steel:         #4A5560;
  --steel-soft:    #8B95A0;
  --teal:          #2ad4ff;
  --teal-dark:     #2ad4ff;
  --red:           #C7442E;
  --ink:           #1B1F22;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --max-w: 1120px;
  --radius: 3px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; max-width: 62ch; }
a { color: var(--teal-dark); }

.mono { font-family: var(--font-mono); font-size: 0.92rem; }

button, .btn {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  border-radius: var(--radius);
}

.btn-primary {
  display: inline-block;
  background: var(--teal);
  color: var(--charcoal);
  padding: 13px 26px;
  font-weight: 600;
  transition: background 0.15s ease, transform 0.15s ease;
  text-decoration: none;
}
.btn-primary:hover { background: #29c1b9; }
.btn-primary:active { transform: translateY(1px); }

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--bone);
  border: 1px solid var(--steel-soft);
  padding: 12px 25px;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* ---------- layer-line motif ---------- */
.layer-rule {
  height: 10px;
  background: repeating-linear-gradient(
    180deg,
    var(--teal) 0px, var(--teal) 2px,
    transparent 2px, transparent 5px
  );
  opacity: 0.5;
}
.layer-rule--dense {
  height: 6px;
  background: repeating-linear-gradient(
    180deg,
    var(--steel-soft) 0px, var(--steel-soft) 1px,
    transparent 1px, transparent 3px
  );
  opacity: 0.4;
}

/* =========================================================
   Header / nav
   ========================================================= */
.site-header {
  background: var(--charcoal);
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(233,230,220,0.08);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--bone);
}
.brand__mark {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: 26px;
}
.brand__mark-line {
  display: block;
  height: 3px;
  background: var(--teal);
  border-radius: 1px;
}
.brand__mark-line:nth-child(1) { width: 100%; }
.brand__mark-line:nth-child(2) { width: 70%; }
.brand__mark-line:nth-child(3) { width: 45%; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}
.brand__name--footer { color: var(--bone); font-size: 1.15rem; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  color: var(--steel-soft);
  text-decoration: none;
  font-size: 0.98rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav a:hover, .nav a.is-active { color: var(--bone); border-color: var(--teal); }
.nav__cta {
  background: var(--teal);
  color: var(--charcoal) !important;
  border-radius: var(--radius);
  padding: 9px 18px !important;
  font-weight: 600;
  border-bottom: none !important;
}
.nav__cta:hover { background: #29c1b9; }

/* =========================================================
   Hero (home page)
   ========================================================= */
.hero {
  background: var(--charcoal);
  color: var(--bone);
  padding: 76px 0 0;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding-bottom: 56px;
}
.hero__eyebrow {
  font-family: var(--font-mono);
  color: var(--teal);
  font-size: 0.9rem;
  margin-bottom: 18px;
}
.hero h1 { color: var(--bone); }
.hero p.lede {
  color: var(--steel-soft);
  font-size: 1.12rem;
  max-width: 46ch;
}
.hero__actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

.hero__print {
  width: 100%;
  height: auto;
}

/* build-up animation: each layer bar grows in, like a print job */
.print-layers rect {
  transform-origin: left center;
  transform: scaleX(0);
  animation: layer-grow 0.5s ease forwards;
}
@keyframes layer-grow { to { transform: scaleX(1); } }

/* =========================================================
   Sections (generic)
   ========================================================= */
.section { padding: 64px 0; }
.section--tight { padding: 44px 0; }
.section--dark { background: var(--charcoal); color: var(--bone); }
.section--panel { background: var(--bone-soft); }
.section__head { max-width: 60ch; margin-bottom: 36px; }
.section--dark .section__head p { color: var(--steel-soft); }

/* Steps (this content genuinely is a sequence, so numbering is used) */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(233,230,220,0.15);
}
.step {
  padding: 28px 26px 0;
  border-left: 1px solid rgba(233,230,220,0.15);
}
.step:first-child { border-left: none; }
.step__num {
  font-family: var(--font-mono);
  color: var(--teal);
  font-size: 0.95rem;
  display: block;
  margin-bottom: 14px;
}
.step h3 { color: var(--bone); margin-bottom: 8px; }
.step p { color: var(--steel-soft); font-size: 0.97rem; }

/* Materials strip */
.materials-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--steel-soft);
  border: 1px solid var(--steel-soft);
}
.material-chip {
  background: var(--bone);
  padding: 22px 20px;
}
.material-chip h3 { margin-bottom: 4px; }
.material-chip .rate {
  font-family: var(--font-mono);
  color: var(--teal-dark);
  font-size: 0.95rem;
}
.material-chip p { font-size: 0.9rem; color: var(--steel); margin: 6px 0 0; }

/* CTA band */
.cta-band {
  background: var(--teal);
  color: var(--charcoal);
  padding: 52px 0;
}
.cta-band__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--charcoal); margin-bottom: 6px; }
.cta-band p { color: var(--charcoal); opacity: 0.8; margin: 0; }
.cta-band .btn-primary {
  background: var(--charcoal);
  color: var(--bone);
}
.cta-band .btn-primary:hover { background: #24292e; }

/* =========================================================
   Cost page
   ========================================================= */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}
.spec-table th, .spec-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(27,31,34,0.1);
}
.spec-table thead th {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--steel);
  border-bottom: 2px solid var(--ink);
}
.spec-table td.num, .spec-table th.num { font-family: var(--font-mono); }
.spec-table tbody tr:hover { background: rgba(31,167,160,0.06); }

.fees-list { display: grid; gap: 0; margin-top: 8px; }
.fees-list__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(27,31,34,0.1);
}
.fees-list__row .amount { font-family: var(--font-mono); }

/* Estimator */
.estimator {
  background: var(--charcoal);
  color: var(--bone);
  padding: 36px;
  border-radius: var(--radius);
}
.estimator h3 { color: var(--bone); }
.estimator__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin: 22px 0;
}
.field label {
  display: block;
  font-size: 0.85rem;
  color: var(--steel-soft);
  margin-bottom: 6px;
}
.field select, .field input[type="number"] {
  width: 100%;
  background: var(--charcoal-soft);
  border: 1px solid rgba(233,230,220,0.2);
  color: var(--bone);
  padding: 10px 12px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.98rem;
}
.field select:focus, .field input:focus { outline: 2px solid var(--teal); }
.estimator__result {
  border-top: 1px solid rgba(233,230,220,0.15);
  padding-top: 20px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.estimator__result .amount {
  font-family: var(--font-mono);
  font-size: 2.1rem;
  color: var(--teal);
}
.estimator__result .caption { color: var(--steel-soft); font-size: 0.88rem; max-width: 40ch; }

/* =========================================================
   Team page
   ========================================================= */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: rgba(27,31,34,0.12);
  border: 1px solid rgba(27,31,34,0.12);
}
.team-card {
  background: var(--bone);
  padding: 28px 24px;
}
.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1rem;
  margin-bottom: 16px;
}
.team-card h3 { margin-bottom: 2px; }
.team-card .role {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--teal-dark);
  display: block;
  margin-bottom: 12px;
}
.team-card p { font-size: 0.95rem; color: var(--steel); }

/* =========================================================
   Order / upload form
   ========================================================= */
.order-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}
.form-panel {
  background: var(--bone-soft);
  border: 1px solid rgba(27,31,34,0.1);
  border-radius: var(--radius);
  padding: 32px;
}
.form-row { margin-bottom: 22px; }
.form-row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 7px;
}
input[type="text"], input[type="email"], input[type="tel"],
input[type="number"], select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--steel-soft);
  border-radius: var(--radius);
  background: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
}
textarea { resize: vertical; min-height: 100px; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(31,167,160,0.15);
}
.hint { font-size: 0.83rem; color: var(--steel); margin-top: 6px; }

.dropzone {
  border: 2px dashed var(--steel-soft);
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  background: #fff;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.dropzone.is-dragover { border-color: var(--teal); background: rgba(31,167,160,0.06); }
.dropzone p { margin: 0 0 4px; }
.dropzone .file-name { font-family: var(--font-mono); color: var(--teal-dark); font-size: 0.9rem; margin-top: 10px; }
.dropzone input[type="file"] { display: none; }
.dropzone__label {
  display: inline-block;
  margin-top: 10px;
  color: var(--teal-dark);
  text-decoration: underline;
  cursor: pointer;
}

.order-sidebar {
  background: var(--charcoal);
  color: var(--bone);
  padding: 28px;
  border-radius: var(--radius);
  position: sticky;
  top: 96px;
}
.order-sidebar h3 { color: var(--bone); }
.order-sidebar ul { padding-left: 18px; margin: 0 0 20px; color: var(--steel-soft); font-size: 0.93rem; }
.order-sidebar li { margin-bottom: 8px; }
.order-sidebar .mono { color: var(--teal); }

.alert {
  padding: 16px 18px;
  border-radius: var(--radius);
  margin-bottom: 26px;
  font-size: 0.96rem;
}
.alert--success { background: rgba(31,167,160,0.12); border: 1px solid var(--teal); color: var(--teal-dark); }
.alert--error { background: rgba(199,68,46,0.1); border: 1px solid var(--red); color: var(--red); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--charcoal); color: var(--steel-soft); padding-top: 48px; }
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
}
.site-footer p { color: var(--steel-soft); font-size: 0.92rem; margin: 0 0 6px; }
.site-footer nav { display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: var(--steel-soft); text-decoration: none; font-size: 0.92rem; }
.site-footer a:hover { color: var(--teal); }
.site-footer__legal { padding: 18px 0; }
.site-footer__legal p { font-size: 0.8rem; color: var(--steel); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 880px) {
  .hero__inner { grid-template-columns: 1fr; padding-bottom: 40px; }
  .hero__print { max-width: 380px; }
  .steps { grid-template-columns: 1fr; }
  .step { border-left: none; border-top: 1px solid rgba(233,230,220,0.15); padding-top: 24px; }
  .step:first-child { border-top: none; }
  .order-layout { grid-template-columns: 1fr; }
  .order-sidebar { position: static; }
  .site-footer__inner { grid-template-columns: 1fr; }
  .form-row--split { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav { gap: 16px; }
  .nav a:not(.nav__cta) { display: none; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
}
