:root {
  --ink: #0f2b24;
  --paper: #f3f5f2;
  --paper-2: #e6ebe7;
  --slate: #56655f;
  --line: #c4cec8;
  --accent: #ee4b18;
  --accent-strong: #c23a0e;
  --accent-ink: #ffffff;
  --white: #ffffff;
  --display: "Archivo", system-ui, sans-serif;
  --body: "Source Sans 3", system-ui, sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

h1, h2, h3 {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; font-stretch: 112%; }
p { margin: 0 0 1em; max-width: 68ch; }
.lead { font-size: 1.3rem; color: var(--slate); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: block; flex-shrink: 0; }
.logo img { height: 40px; width: auto; }
.footer-logo { width: 260px; max-width: 100%; margin-bottom: 16px; }
.nav { display: flex; gap: 20px; margin-left: auto; font-size: 1rem; }
.nav a { text-decoration: none; }
.lang { font-size: 0.95rem; color: var(--slate); }
.lang a { text-decoration: none; padding: 2px 4px; }
.lang [aria-current] { color: var(--ink); font-weight: 600; border-bottom: 2px solid var(--accent); }

.btn {
  display: inline-block;
  background: var(--accent-strong); color: var(--accent-ink);
  font: 600 1rem/1 var(--body);
  padding: 14px 22px; border-radius: 4px; border: 0;
  text-decoration: none; cursor: pointer;
}
.btn:hover { color: var(--accent-ink); background: #a83209; }
.btn-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-quiet:hover { background: var(--ink); color: var(--paper); }
.site-header .btn { padding: 10px 16px; }
@media (max-width: 400px) { .logo img { height: 32px; } .site-header .wrap { gap: 14px; } }

@media (max-width: 860px) {
  .nav { display: none; }
  .lang { margin-left: auto; }
}

/* Sections */
section { padding: 88px 0; }
section + section { border-top: 1px solid var(--line); }
.section-intro { max-width: 680px; margin-bottom: 40px; }

/* Hero */
.hero { padding: 56px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 20px; font-size: 1rem; color: var(--slate); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; gap: 40px; } }

/* Technical drawing motif */
.drawing { margin: 0 44px 0 0; }
.drawing .frame { position: relative; }
.drawing img { border-radius: 2px; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.drawing svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.drawing .dim { stroke: var(--ink); stroke-width: 1.2; fill: none; }
.drawing .dim-ext { stroke: var(--ink); stroke-width: 0.8; stroke-dasharray: 3 3; }
.drawing .dim-text { font: 600 13px var(--body); fill: var(--ink); }
.drawing figcaption { margin-top: 48px; font-size: 0.95rem; color: var(--slate); }
.dim-label {
  position: absolute; background: var(--paper); padding: 0 6px;
  font: 600 0.82rem/1.2 var(--body); color: var(--ink); white-space: nowrap;
}
.dim-label-v { right: -22px; top: 50%; transform: translate(50%, -50%) rotate(90deg); }
.dim-label-h { left: 50%; bottom: -26px; transform: translate(-50%, 50%); }

/* Audiences */
.audiences { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.audiences > div { border-top: 3px solid var(--ink); padding-top: 18px; }
.audiences p { font-size: 1.05rem; }
.audiences .example { color: var(--slate); font-size: 0.98rem; }
@media (max-width: 860px) { .audiences { grid-template-columns: 1fr; gap: 28px; } }

/* Steps (a real sequence) */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 44px; height: 44px; margin-bottom: 14px;
  border: 2px solid var(--ink); border-radius: 50%;
  font: 700 1.1rem var(--display);
}
.steps p { font-size: 1.02rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Capabilities */
.capabilities { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
@media (max-width: 860px) { .capabilities { grid-template-columns: 1fr; gap: 48px; } }
.machines { color: var(--slate); font-size: 1rem; }
table { width: 100%; border-collapse: collapse; font-size: 1rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
th { font-weight: 600; }
thead th { font-size: 0.9rem; color: var(--slate); font-weight: 600; border-bottom: 2px solid var(--ink); }
.table-note { font-size: 0.95rem; color: var(--slate); margin-top: 12px; }

/* Limits */
.limits { background: var(--ink); color: var(--paper); }
.limits h2 { color: var(--white); }
.limits .lead { color: #b9c7c1; }
.limits ul { padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 48px; margin: 0; }
.limits li { padding-left: 28px; position: relative; max-width: 52ch; }
.limits li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 14px; height: 2px; background: var(--accent); }
@media (max-width: 860px) { .limits ul { grid-template-columns: 1fr; } }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.gallery figure { margin: 0; position: relative; }
.gallery img, .gallery video { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; background: var(--paper-2); }
.gallery figcaption { font-size: 0.92rem; color: var(--slate); padding-top: 8px; }
.gallery .tag { display: inline-block; font-size: 0.78rem; font-weight: 600; padding: 2px 8px; border-radius: 3px; margin-right: 6px; background: var(--paper-2); color: var(--ink); }
.gallery .tag.made { background: var(--ink); color: var(--paper); }
.g-wide { grid-column: span 8; }
.g-tall { grid-column: span 4; grid-row: span 2; }
.g-third { grid-column: span 4; }
.g-half { grid-column: span 6; }
.gallery .frame { aspect-ratio: 3 / 2; overflow: hidden; }
.gallery .g-tall .frame { aspect-ratio: auto; height: calc(100% - 34px); }
@media (max-width: 760px) {
  .g-wide, .g-tall, .g-third, .g-half { grid-column: span 12; grid-row: auto; }
  .gallery .g-tall .frame { aspect-ratio: 3 / 4; height: auto; }
}

/* Pricing */
.pricing { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: start; }
.pricing ul { padding-left: 1.2em; }
.pricing li { margin-bottom: 8px; }
.pay { border: 2px solid var(--ink); border-radius: 4px; padding: 24px; }
.pay p:last-child { margin-bottom: 0; }
@media (max-width: 860px) { .pricing { grid-template-columns: 1fr; } }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; max-width: 820px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.15rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 600 1.4rem/1 var(--display); color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; }

/* Enquiry form */
.enquiry .wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; }
@media (max-width: 860px) { .enquiry .wrap { grid-template-columns: 1fr; gap: 32px; } }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
label { font-weight: 600; font-size: 1rem; }
label .opt { font-weight: 400; color: var(--slate); }
input, select, textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1.5px solid var(--line); border-radius: 4px; padding: 11px 12px;
}
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
textarea { min-height: 150px; resize: vertical; }
.hint { font-size: 0.9rem; color: var(--slate); }
.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; }
.check input { margin-top: 5px; width: 18px; height: 18px; }
.form-status { grid-column: 1 / -1; font-size: 1rem; padding: 14px 16px; border-left: 4px solid var(--accent); background: var(--white); display: none; }
.form-status.show { display: block; }
@media (max-width: 560px) { form { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--ink); color: #c9d5cf; padding: 56px 0 40px; font-size: 1rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; }
.site-footer strong { color: var(--white); }
.site-footer a:hover { color: var(--white); }
.site-footer p { margin: 0 0 6px; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; gap: 24px; } }

/* Legal pages */
.legal { padding: 56px 0 88px; }
.legal .wrap { max-width: 780px; }
.legal h2 { font-size: 1.5rem; margin-top: 2em; }
.legal h3 { margin-top: 1.5em; }
.placeholder { background: #fff3c4; padding: 0 4px; border-radius: 2px; }

/* Price list */
.price-table td { white-space: nowrap; font-weight: 600; }
.price-table th { padding-right: 24px; }
.price-note { display: block; font-weight: 400; font-size: 0.92rem; color: var(--slate); margin-top: 2px; }
.examples-title { margin-top: 40px; }
.examples { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 8px; }
.examples > div { border-top: 3px solid var(--ink); padding-top: 12px; }
.example-name { font-weight: 600; margin-bottom: 8px; }
.examples dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; margin: 0; font-size: 1rem; }
.examples dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.examples .total { font-weight: 700; border-top: 1px solid var(--line); padding-top: 6px; }
@media (max-width: 560px) {
  .examples { grid-template-columns: 1fr; }
  .price-table td { white-space: normal; }
}
