/* ============================================================
   PRINTFARM365 — One-printer prototype shop
   Design tokens: warm workshop, not industrial farm
   ============================================================ */
:root {
  --ink: #1A1816;
  --panel: #221F1C;
  --panel2: #2A2622;
  --line: rgba(244, 239, 230, 0.10);
  --cream: #F4EFE6;
  --copper: #D97B3F;
  --copper-bright: #EC9456;
  --slate: #A39A8C;
  --slate-dim: #6E665B;
  --brass: #C9A227;

  --display: "Fraunces", serif;
  --body: "Inter", sans-serif;
  --mono: "IBM Plex Mono", monospace;

  --container: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }

body {
  background-color: var(--ink);
  background-image: repeating-linear-gradient(
    0deg,
    rgba(244, 239, 230, 0.014) 0px,
    rgba(244, 239, 230, 0.014) 1px,
    transparent 1px,
    transparent 4px
  );
  color: var(--cream);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Background watermark: FDM printer line art ---------- */
.bg-watermark {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.bg-watermark svg {
  position: absolute;
  right: -90px;
  bottom: -70px;
  width: 620px;
  height: 620px;
  opacity: 0.05;
}
@media (max-width: 760px) {
  .bg-watermark svg { width: 380px; height: 380px; right: -60px; bottom: -40px; }
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.mono { font-family: var(--mono); }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper);
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brass);
  flex: none;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  color: var(--cream);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4rem); line-height: 1.08; font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.16; font-weight: 500; }
h3 { font-size: 1.2rem; font-weight: 600; }

p.lead { font-size: 1.08rem; color: var(--slate); max-width: 540px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  padding: 13px 22px;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--copper); color: #1A1816; }
.btn-primary:hover { background: var(--copper-bright); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--cream); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--copper); color: var(--copper-bright); transform: translateY(-1px); }

.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 2px;
}

/* ---------- Nav ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(26, 24, 22, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
}
.logo span { color: var(--copper); }
.navlinks {
  display: flex; gap: 32px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.03em;
  color: var(--slate);
}
.navlinks a { padding: 4px 0; border-bottom: 1px solid transparent; transition: color 0.15s ease; }
.navlinks a:hover, .navlinks a.active { color: var(--cream); border-bottom-color: var(--copper); }
.nav-right { display: flex; align-items: center; gap: 24px; }
@media (max-width: 860px) {
  .navlinks { display: none; }
  .nav-right .btn-ghost { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: 80px 0 64px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; gap: 44px; } }
.hero h1 { margin: 12px 0 18px; }
.hero-cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

/* ---------- Signature: single-printer build visual ---------- */
.benchcard {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 26px 26px 20px;
}
.printer-svg { width: 100%; height: auto; display: block; }
.layerbar { fill: var(--copper); }
.printhead { fill: var(--cream); }
.bedline { stroke: var(--line); }

.ticker {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--slate);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.ticker b { color: var(--copper-bright); font-weight: 500; }
.ticker .jobname { color: var(--cream); }

/* ---------- Stat-ish row, but personal not fleet metrics ---------- */
.factrow {
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.factrow .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.fact { padding: 28px 24px; border-right: 1px solid var(--line); }
.fact:last-child { border-right: none; }
.fact .num { font-family: var(--display); font-size: 1.9rem; color: var(--copper-bright); font-weight: 500; }
.fact .label { margin-top: 6px; font-family: var(--mono); font-size: 11.5px; color: var(--slate); letter-spacing: 0.02em; }
@media (max-width: 700px) {
  .factrow .wrap { grid-template-columns: 1fr; }
  .fact { border-right: none; border-bottom: 1px solid var(--line); }
  .fact:last-child { border-bottom: none; }
}

/* ---------- Sections ---------- */
section { padding: 84px 0; }
section.tight { padding: 60px 0; }
.section-head { max-width: 600px; margin-bottom: 46px; }

/* ---------- Cards ---------- */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 880px) { .grid3, .grid2 { grid-template-columns: 1fr; } }

.card { background: var(--ink); padding: 30px 26px; }
.card .tag {
  font-family: var(--mono); font-size: 11px; color: var(--copper);
  letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 12px; display: block;
}
.card h3 { margin-bottom: 9px; }
.card p { color: var(--slate); font-size: 0.95rem; }

/* ---------- Process steps ---------- */
.steps { display: flex; flex-direction: column; }
.step { display: grid; grid-template-columns: 80px 1fr; gap: 26px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.step:first-child { border-top: 1px solid var(--line); }
.step .stepnum { font-family: var(--mono); font-size: 12.5px; color: var(--slate); }
.step .stepnum b { display: block; font-family: var(--display); font-size: 2rem; color: var(--copper); font-weight: 500; }
.step h3 { margin-bottom: 7px; }
.step p { color: var(--slate); max-width: 580px; }

/* ---------- Table ---------- */
table.spec { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.spec th, table.spec td { text-align: left; padding: 13px 15px; border-bottom: 1px solid var(--line); }
table.spec th { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--slate); font-weight: 500; }
table.spec td { color: var(--cream); }
table.spec td.dim { color: var(--slate); }
table.spec tr:last-child td { border-bottom: none; }

/* ---------- Pricing-explainer chips ---------- */
.factorlist { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.factorchip {
  font-family: var(--mono); font-size: 12px; color: var(--cream);
  background: var(--panel); border: 1px solid var(--line);
  padding: 8px 14px; border-radius: 20px;
}
.factorchip b { color: var(--copper-bright); }

/* ---------- Form ---------- */
.formgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 700px) { .formgrid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--slate); }
.field input, .field select, .field textarea {
  background: var(--panel2); border: 1px solid var(--line); border-radius: 3px;
  padding: 12px 14px; color: var(--cream); font-family: var(--body); font-size: 0.95rem;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--copper); outline: none; }
.field textarea { resize: vertical; min-height: 110px; }
.hint { font-family: var(--mono); font-size: 11.5px; color: var(--slate-dim); margin-top: -4px; }

/* ---------- CTA band ---------- */
.ctaband {
  background: var(--panel);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 66px 0; text-align: center;
}
.ctaband h2 { margin-bottom: 12px; }
.ctaband p.lead { margin: 0 auto 28px; }
.ctaband .hero-cta { justify-content: center; }

/* ---------- Footer ---------- */
footer.site { padding: 56px 0 32px; }
.footgrid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 38px; margin-bottom: 46px; }
@media (max-width: 760px) { .footgrid { grid-template-columns: 1fr 1fr; } }
.footgrid h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--slate); margin-bottom: 14px; font-weight: 500; }
.footgrid ul { list-style: none; }
.footgrid li { margin-bottom: 9px; font-size: 0.9rem; }
.footgrid li a:hover { color: var(--copper-bright); }
.footbottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 26px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; color: var(--slate-dim);
  flex-wrap: wrap; gap: 12px;
}

/* ---------- Page hero ---------- */
.pagehero { padding: 54px 0 48px; border-bottom: 1px solid var(--line); }
.pagehero p.lead { margin-top: 12px; }

/* ---------- Work / portfolio cards ---------- */
.workgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 760px) { .workgrid { grid-template-columns: 1fr; } }
.workcard { background: var(--ink); padding: 32px; }
.workcard .swatch {
  width: 100%; height: 120px; border-radius: 4px; margin-bottom: 20px;
  background: linear-gradient(135deg, var(--panel2), var(--panel));
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.workcard .swatch svg { width: 46px; height: 46px; opacity: 0.85; }
.workcard .tag { font-family: var(--mono); font-size: 11px; color: var(--copper); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 10px; display:block; }
.workcard p { color: var(--slate); font-size: 0.93rem; margin-top: 8px; }

@media (prefers-reduced-motion: reduce) {
  .layeranim, .headanim { animation: none !important; }
}

/* ---------- Hero printer animation ---------- */
.layeranim {
  animation: growpart 6.4s ease-in-out infinite;
  transform-origin: bottom;
}
@keyframes growpart {
  0%   { transform: scaleY(0.05); }
  70%  { transform: scaleY(1); }
  88%  { transform: scaleY(1); }
  100% { transform: scaleY(0.05); }
}

.headanim {
  animation: headsweep 1.8s ease-in-out infinite;
}
@keyframes headsweep {
  0%   { transform: translateX(-26px); }
  50%  { transform: translateX(26px); }
  100% { transform: translateX(-26px); }
}

.headrise {
  animation: headrise 6.4s ease-in-out infinite;
}
@keyframes headrise {
  0%   { transform: translateY(0px); }
  70%  { transform: translateY(-78px); }
  88%  { transform: translateY(-78px); }
  100% { transform: translateY(0px); }
}
