/* 3D printing — MIX Systems look: white paper, ink #0e1017, orange #fd630b, Schibsted Grotesk
   (tokens as on mixsystems.net). No inline styles anywhere: the CSP (see _headers) allows styles
   from this file only. All motion sits under prefers-reduced-motion: no-preference; without it
   every element shows its final state. */
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 400 900; font-display: swap; src: url('/fonts/schibsted-grotesk-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 400 900; font-display: swap; src: url('/fonts/schibsted-grotesk-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #0e1017;
  --paper: #fff;
  --grey: #5a5d66;      /* 6.6:1 on white */
  --line: #d9dbe0;
  --o: #fd630b;         /* fills, borders and focus only: 3:1 on white is too little for text */
  --o-soft: #fff3ea;
  --pale: #e4e9f1;
  --mist: #f6f7f9;
  --bad: #b42318;       /* 6.1:1 on white */
  --ok: #1c6b3a;
  --pad: clamp(1.1rem, 4vw, 3.5rem);
  --max: 76rem;
  --f: "Schibsted Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;
  --grid: linear-gradient(#e6e8ec 1px, transparent 1px) 0 0 / 22px 22px, linear-gradient(90deg, #e6e8ec 1px, transparent 1px) 0 0 / 22px 22px;
}

*, *::before, *::after { box-sizing: border-box; }
/* display:grid / flex on a class would beat the UA rule for [hidden] — the form and panels hide by attribute */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
body { margin: 0; font-family: var(--f); font-size: 1.0625rem; line-height: 1.5; color: var(--ink); background: var(--paper); overflow-x: clip; }
a { color: inherit; text-underline-offset: .2em; }
h1, h2, h3 { margin: 0; line-height: 1; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--o); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .6rem 1rem; z-index: 20; }
.skip:focus { left: .5rem; top: .5rem; }
.fine { color: var(--grey); font-size: .92rem; }
.warn { border-left: 4px solid var(--o); background: var(--o-soft); padding: .6rem .8rem; }
.is-error { color: var(--bad); font-weight: 600; }
.ico { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: .75rem;
  padding: .6rem var(--pad); background: rgba(255,255,255,.95); border-bottom: 2px solid var(--ink); }
@supports (backdrop-filter: blur(6px)) { .top { background: rgba(255,255,255,.88); backdrop-filter: blur(6px); } }
.logo { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; }
.logo svg { display: block; }
.site { font-weight: 900; font-size: 1.15rem; letter-spacing: -.01em; text-transform: uppercase; text-decoration: none; }
.site:hover { color: var(--o); }
.lang { margin-left: auto; display: flex; gap: .25rem; }
.lang > * { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
  font: inherit; font-weight: 700; font-size: .9rem; color: var(--ink); background: transparent; border: 2px solid transparent; cursor: pointer; text-decoration: none; }
.lang > :hover { border-color: var(--line); }
.lang [aria-pressed="true"], .lang [aria-current] { background: var(--ink); color: var(--paper); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .6rem 1.1rem;
  font: inherit; font-weight: 700; color: var(--ink); background: var(--paper); border: 2px solid var(--ink); cursor: pointer; text-decoration: none;
  transition: background .15s, color .15s, transform .15s, box-shadow .15s; }
.btn:hover { background: var(--o); }
.btn--main { background: var(--ink); color: var(--paper); font-size: 1.05rem; padding: .8rem 1.4rem; }
.btn--main:hover { background: var(--o); color: var(--ink); }
.btn:disabled { opacity: .55; cursor: progress; }

/* ---------- hero: text left, the printing illustration right ---------- */
main { padding: 0 var(--pad); }
main > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.hero { padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(2rem, 5vw, 3.5rem); display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
@media (min-width: 60rem) { .hero { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); } }
.hero__text { display: grid; gap: 1.15rem; justify-items: start; }
.kicker { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.kicker span::before { content: ""; display: inline-block; width: .55em; height: .55em; margin-right: .45em; background: var(--ink); vertical-align: .05em; }
.kicker span:last-child::before { background: var(--o); }
.hero h1 { font-weight: 900; font-size: clamp(2.6rem, 8.6vw, 5.8rem); line-height: .92; letter-spacing: -.045em; }
.h1-a, .h1-b { display: block; }
/* Outlined second line as on mixsystems.net: text-shadow, because -webkit-text-stroke draws the
   overlapping contours of the variable font. */
.h1-b { letter-spacing: .01em; color: var(--paper); text-shadow: 2px 0 var(--ink), -2px 0 var(--ink), 0 2px var(--ink), 0 -2px var(--ink),
  1.5px 1.5px var(--ink), -1.5px -1.5px var(--ink), 1.5px -1.5px var(--ink), -1.5px 1.5px var(--ink); }
.dot { color: var(--o); text-shadow: none; }
@media (forced-colors: active) { .h1-b { color: CanvasText; text-shadow: none; } }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 40rem; }
.cta { display: flex; flex-wrap: wrap; gap: .6rem; }
.trust { display: flex; gap: .55rem; align-items: baseline; font-weight: 600; }
.trust::before { content: ""; flex: none; width: .7rem; height: .7rem; background: var(--o); }

.art { position: relative; border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); background: var(--grid), var(--mist); }
.art svg { display: block; width: 100%; height: auto; }
.art__note { position: absolute; left: 0; top: 0; padding: .35rem .7rem; background: var(--ink); color: var(--paper); font-size: .78rem; font-weight: 700; letter-spacing: .04em; }
.a-ink { fill: var(--ink); }
.a-o { fill: var(--o); }
.a-grey { fill: #c9ccd3; }
/* Final frame = base state: part printed, gantry above it, head parked on the right. */
.a-gantry { transform: translateY(-156px); }
.a-head { transform: translateX(150px); }
.a-l { transform-box: fill-box; transform-origin: left center; }
.a-l:nth-child(even) { transform-origin: right center; }

/* ---------- how it works ---------- */
.how { padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.how__h { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .9rem; }
.how__list { list-style: none; margin: 0; padding: 0; display: grid; border-top: 2px solid var(--ink); }
.how__list li { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .25rem 1rem; align-content: start; padding: 1.1rem 0; border-bottom: 2px solid var(--line); }
.how__list .ico { grid-row: span 2; width: 3rem; height: 3rem; padding: .6rem; background: var(--o); color: var(--ink); }
.how__no { position: absolute; top: 1rem; right: 0; font-weight: 900; font-size: .85rem; letter-spacing: .1em; color: var(--grey); }
.how__list h3 { font-weight: 900; font-size: 1.25rem; padding-right: 2.5rem; align-self: end; }
.how__list p { color: var(--grey); }
@media (min-width: 48rem) {
  .how__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .how__list li { border-bottom: 0; border-right: 2px solid var(--line); padding: 1.3rem 1.3rem .3rem; }
  .how__list li:first-child { padding-left: 0; }
  .how__list li:last-child { border-right: 0; }
  .how__no { right: 1.3rem; }
  .how__list li:last-child .how__no { right: 0; }
}

/* ---------- order: one column on a phone; viewer left (sticky) and form right on a desktop ---------- */
.order { display: grid; gap: clamp(2rem, 4vw, 3.5rem); padding: clamp(1rem, 3vw, 2rem) 0 clamp(3.5rem, 7vw, 5.5rem); }
@media (min-width: 60rem) {
  .order { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; }
  .step--model { position: sticky; top: 5rem; }
}
.col-form { display: grid; gap: 2.75rem; }
.step { display: grid; gap: 1rem; min-width: 0; }
.step h2 { font-weight: 900; font-size: clamp(1.5rem, 3vw, 2rem); }
.step h2 .num { display: inline-grid; place-items: center; width: 1.5em; height: 1.5em; margin-right: .3em; background: var(--o); font-size: .78em; vertical-align: .12em; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
.step--model.is-over .drop, .step--model.is-over .stage { border-color: var(--o); background: var(--o-soft); }

.drop { position: relative; display: grid; justify-items: center; gap: .8rem; text-align: center; padding: clamp(2rem, 5vw, 3.4rem) 1.2rem;
  border: 2px dashed var(--ink); background: var(--grid), var(--mist); transition: background .15s, border-color .15s; }
.drop.is-bad { border-color: var(--bad); }
.drop__i { width: 3.4rem; height: 3.4rem; padding: .75rem; background: var(--o); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.drop__t { font-weight: 800; font-size: 1.2rem; }
/* The file input stays focusable for the keyboard; its label is the visible button. */
.file-in { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.file-in:focus-visible + .btn { outline: 3px solid var(--o); outline-offset: 3px; }

.model { display: grid; gap: .8rem; }
.model__file { font-weight: 700; overflow-wrap: anywhere; }
.stage { position: relative; aspect-ratio: 4 / 3; border: 2px solid var(--ink); background: linear-gradient(var(--mist), var(--pale)); box-shadow: 6px 6px 0 var(--ink); }
/* pan-y: a vertical swipe scrolls the page, a horizontal one rotates, two fingers zoom */
.stage canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.stage canvas:active { cursor: grabbing; }
.tools { display: flex; flex-wrap: wrap; gap: .4rem; }
.tool { min-width: 44px; min-height: 44px; padding: .4rem .8rem; font: inherit; font-weight: 700; color: var(--ink);
  background: var(--paper); border: 2px solid var(--ink); cursor: pointer; }
.tool:hover { background: var(--pale); }
#zin, #zout { font-size: 1.3rem; line-height: 1; }

.dims { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.6rem; }
.dims span, .units legend { color: var(--grey); }
.units { display: flex; align-items: center; gap: .3rem .8rem; flex-wrap: wrap; }
.units legend { float: left; margin-right: .2rem; }
.units label { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; cursor: pointer; }
input[type=radio], input[type=checkbox] { accent-color: var(--ink); width: 1.15rem; height: 1.15rem; margin: 0; flex: none; }

.fit { border: 2px solid var(--ink); padding: .9rem 1rem; display: grid; gap: .6rem; }
.fit h3 { font-size: 1.1rem; font-weight: 800; }
.fit ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .35rem; }
.fit li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem 1rem; }
.fit__st { color: var(--ok); white-space: nowrap; }
.fit__st .yes::before { content: "✓ "; }
.fit__st .no::before { content: "✕ "; }
.fit li.is-no .fit__st { color: var(--bad); }
.fit li:not(.is-no) .no, .fit li.is-no .yes { display: none; }

/* ---------- materials: cards in two process groups ---------- */
.mats { display: grid; gap: 1.6rem; }
.mats > legend { margin-bottom: 1rem; }
.mat-group { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: .75rem; }
#mat-other { grid-template-columns: 1fr; }
.mat-group > legend { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .7rem; margin-bottom: .75rem; }
.mat-group > legend b { font-weight: 900; font-size: 1.1rem; }
.mat-group > legend span { color: var(--grey); font-size: .92rem; }
.mat { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .8rem; align-items: start; min-height: 44px;
  padding: .9rem 2.6rem .95rem .9rem; border: 2px solid var(--ink); background: var(--paper); cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s; }
.mat input { position: absolute; top: 1rem; right: .9rem; }
.mat__i { width: 2.6rem; height: 2.6rem; padding: .5rem; background: var(--pale); color: var(--ink); stroke-width: 1.7; transition: background .15s; }
#mat-resin .mat__i { background: var(--o-soft); }
.mat__b { display: grid; gap: .15rem; }
.mat__b b { font-weight: 800; font-size: 1.05rem; line-height: 1.2; }
.mat__b span { color: var(--grey); font-size: .93rem; line-height: 1.4; }
.mat:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.mat:has(input:checked) { background: var(--o-soft); box-shadow: 4px 4px 0 var(--o); }
.mat:has(input:checked) .mat__i { background: var(--o); }
.mats.is-bad .mat { border-color: var(--bad); }

/* ---------- request: kind switch and fields (venue-growth form, light) ---------- */
.kind { display: flex; flex-wrap: wrap; gap: .5rem; }
.kind legend { font-weight: 600; font-size: .95rem; margin-bottom: .45rem; }
.kind label { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1rem; border: 2px solid var(--ink); font-weight: 700; cursor: pointer; transition: background .15s, color .15s; }
.kind input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.kind label:hover { background: var(--pale); }
.kind label:has(input:checked) { background: var(--ink); color: var(--paper); }
.kind label:has(input:focus-visible) { outline: 3px solid var(--o); outline-offset: 3px; }
.order:not(.is-proto) .if-proto, .order.is-proto .if-print { display: none; }

.fields { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fields label { display: grid; gap: .35rem; font-weight: 600; font-size: .95rem; }
.fields label .fine { font-weight: 400; }
.fields .wide { grid-column: 1 / -1; }
.fields .qty { grid-column: 1 / -1; max-width: 10rem; }
.fields input:not([type=checkbox]), .fields textarea { font: inherit; font-weight: 400; color: var(--ink); background: var(--paper);
  border: 2px solid var(--ink); border-radius: 0; padding: .6rem .75rem; width: 100%; min-height: 44px; }
.fields textarea { resize: vertical; }
.fields input:focus-visible, .fields textarea:focus-visible { outline: 3px solid var(--o); outline-offset: 0; }
.fields [aria-invalid="true"] { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad); }
.fields label.consent { display: flex; align-items: flex-start; gap: .6rem; font-weight: 400; }
.fields label.consent input { margin-top: .2rem; }
.fields input[type=checkbox][aria-invalid="true"] + span { color: var(--bad); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 34rem) { .fields { grid-template-columns: 1fr; } }
.send { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; }
.msg { display: grid; gap: .5rem; }
.msg:focus { outline: none; }
.msg a { font-weight: 700; }

/* ---------- after sending ---------- */
.done { display: grid; gap: 1rem; max-width: 46rem; margin-top: 1rem; margin-bottom: 4rem; padding: clamp(1.2rem, 3vw, 2rem); border: 2px solid var(--ink); box-shadow: inset 0 6px 0 var(--o), 8px 8px 0 var(--ink); }
.done h2 { font-weight: 900; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.done:focus { outline: none; }
#done-file { display: grid; gap: .8rem; }

/* ---------- prototyping: full-width orange band (the "How we work" band of mixsystems.net) ---------- */
.proto { max-width: none; margin-left: calc(-1 * var(--pad)); margin-right: calc(-1 * var(--pad)); padding: clamp(3rem, 8vw, 6rem) var(--pad); background: var(--o); color: var(--ink); }
.proto__in { max-width: var(--max); margin: 0 auto; display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
.proto__head { display: grid; gap: 1rem; }
.proto .kicker span::before { background: var(--ink); }
.proto h2 { font-weight: 900; font-size: clamp(2.4rem, 7vw, 5.4rem); line-height: .92; letter-spacing: -.045em; max-width: 13ch; }
.proto__lead { max-width: 42rem; font-size: clamp(1.15rem, 1.9vw, 1.45rem); font-weight: 700; line-height: 1.35; }
.proto__steps { list-style: none; margin: 0; padding: 0; display: grid; border-top: 3px solid var(--ink); }
.proto__steps li { position: relative; display: grid; align-content: start; gap: .4rem; padding: 1.1rem 0 1.3rem; border-bottom: 3px solid var(--ink); }
.proto__no { font-weight: 900; font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: .85; letter-spacing: -.05em; }
.proto__steps h3 { font-weight: 900; font-size: clamp(1.25rem, 2vw, 1.6rem); }
.proto__steps p { font-weight: 600; max-width: 24rem; }
@media (min-width: 56rem) {
  .proto__steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .proto__steps li { border-bottom: 0; border-right: 3px solid var(--ink); padding: 1.3rem 1.3rem .4rem; }
  .proto__steps li:first-child { padding-left: 0; }
  .proto__steps li:last-child { border-right: 0; }
  .proto__steps li::before { content: ""; position: absolute; left: 0; right: 0; top: -3px; height: 12px; background: var(--ink); }
}
.proto__cta { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem; }
.proto .btn--main { font-size: 1.15rem; padding: .95rem 1.7rem; }
.proto .btn--main:hover { background: var(--paper); color: var(--ink); }
.proto .fine { color: var(--ink); font-weight: 600; }
.proto :focus-visible { outline-color: var(--ink); }

/* ---------- legal pages ---------- */
.doc { max-width: 46rem; padding: clamp(2rem, 6vw, 4rem) 0 4rem; min-height: 60vh; }
.doc h1 { font-weight: 900; font-size: clamp(2.2rem, 7vw, 4rem); letter-spacing: -.035em; margin: 0 0 1.6rem; }
.doc h2 { font-weight: 900; font-size: 1.3rem; margin: 2rem 0 .5rem; }
.doc p { margin: 0 0 1rem; }
.doc a:hover { color: var(--o); }

/* ---------- footer (the start page adds the friendly top row) ---------- */
.foot { background: var(--ink); color: var(--paper); padding: 1.6rem var(--pad); display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 2rem; }
.foot a { color: var(--paper); }
.foot a:hover { color: var(--o); }
.foot__hi { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem;
  padding: clamp(1rem, 3vw, 2.2rem) 0 clamp(1.4rem, 3vw, 2rem); margin-bottom: .2rem; border-bottom: 1px solid #343844; }
.foot__q { font-weight: 900; font-size: clamp(1.8rem, 4.6vw, 3.4rem); line-height: 1; letter-spacing: -.035em; max-width: 17ch; text-wrap: balance; }
.foot .foot__mail { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; font-size: clamp(1.1rem, 2vw, 1.45rem); color: var(--o); overflow-wrap: anywhere; }
.foot .foot__mail:hover { color: var(--paper); }
.foot nav { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.foot nav a, .foot__by { display: inline-flex; align-items: center; min-height: 44px; }
.foot__fine { color: #b9bcc4; font-size: .9rem; margin-left: auto; }
.foot :focus-visible { outline-color: var(--paper); }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  /* Hero: 12 layers, 0.38 s each. The head sweeps along every layer while the layer grows behind
     it (left→right, then back), the gantry climbs one layer per sweep, then the head parks. */
  .a-l { animation: a-lay .38s ease-in-out .4s both; }
  .a-l:nth-child(2) { animation-delay: .78s; }   .a-l:nth-child(3) { animation-delay: 1.16s; }
  .a-l:nth-child(4) { animation-delay: 1.54s; }  .a-l:nth-child(5) { animation-delay: 1.92s; }
  .a-l:nth-child(6) { animation-delay: 2.3s; }   .a-l:nth-child(7) { animation-delay: 2.68s; }
  .a-l:nth-child(8) { animation-delay: 3.06s; }  .a-l:nth-child(9) { animation-delay: 3.44s; }
  .a-l:nth-child(10) { animation-delay: 3.82s; } .a-l:nth-child(11) { animation-delay: 4.2s; }
  .a-l:nth-child(12) { animation-delay: 4.58s; }
  .a-gantry { animation: a-climb 4.56s steps(12, end) .4s both; }
  .a-head { animation: a-sweep .38s ease-in-out .4s 12 alternate both, a-park .9s ease-in-out 4.96s forwards; }
  @supports (animation-timeline: view()) {
    .how__list li, .proto__steps li { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  }
}
@keyframes a-lay { from { transform: scaleX(0); } }
@keyframes a-climb { from { transform: translateY(0); } }
@keyframes a-sweep { from { transform: translateX(-90px); } to { transform: translateX(90px); } }
@keyframes a-park { from { transform: translateX(-90px); } }
@keyframes rise { from { opacity: 0; transform: translateY(1rem); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
