:root {
  --alu: #E3E5E7;        /* brushed aluminium — the page */
  --alu-hi: #EEF0F1;     /* lighter sheet for fields */
  --graphite: #23272B;   /* text, MJF black band */
  --nylon: #5C6166;      /* secondary text, lines */
  --rule: #B9BDC1;       /* quiet lines */
  --accent: #C82025;     /* Tredify gear red — actions only */
  --accent-dark: #A3191D;
  --measure: 38rem;
  --pad: clamp(1.25rem, 5vw, 4rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--graphite); font: 400 1.0625rem/1.55 'Archivo', system-ui, sans-serif; font-stretch: 100%;
  background-color: var(--alu);
  /* a faint horizontal grain, like brushed aluminium */
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.18) 0 1px, transparent 1px 3px);
  -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums;
}
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: 76rem; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; padding-bottom: 1.5rem; }
.mark { display: flex; align-items: center; gap: .25rem; text-decoration: none; }
.mark span { font-weight: 800; font-stretch: 125%; font-size: 1.3rem; letter-spacing: .02em; text-transform: uppercase; line-height: 1; }
.nav { display: flex; gap: clamp(.9rem, 2.5vw, 2rem); align-items: center; font-size: .95rem; }
.nav a { text-decoration: none; color: var(--nylon); }
.nav a:hover { color: var(--graphite); }
.nav .lang { color: var(--graphite); font-weight: 600; border: 1px solid var(--rule); border-radius: 2rem; padding: .2rem .7rem; }
@media (max-width: 640px) { .nav a:not(.lang) { display: none; } }

/* hero: the headline drawn like a part on a technical drawing */
.hero { padding-top: clamp(4rem, 12vh, 8rem); padding-bottom: clamp(3rem, 8vh, 6rem); }
.hero-title {
  position: relative; display: inline-block; margin: 0; font-weight: 640; font-stretch: 125%;
  font-size: clamp(2.4rem, 7.4vw, 6.4rem); line-height: .98; letter-spacing: -.025em;
}
.hero-title .line { display: block; }
.dim { position: absolute; left: 0; right: 0; top: -2.4rem; height: 1rem; color: var(--nylon); }
.dim::before { /* the dimension line with an arrowhead at each end */
  content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor;
  clip-path: none;
}
.dim .arr { position: absolute; top: calc(50% - 4px); width: 0; height: 0; border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
.dim .arr.l { left: 0; border-right: 9px solid currentColor; }
.dim .arr.r { right: 0; border-left: 9px solid currentColor; }
.dim .ext { position: absolute; top: 0; width: 1px; height: 2.6rem; background: currentColor; opacity: .55; }
.dim .ext.l { left: 0; } .dim .ext.r { right: 0; }
.dim-label {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -54%); padding: 0 .6rem;
  background: var(--alu); font: 500 .9rem/1 'Archivo', sans-serif; font-stretch: 100%; letter-spacing: 0; white-space: nowrap; color: var(--nylon);
}
.callout-target { position: relative; white-space: nowrap; }
.callout { position: absolute; left: calc(100% + .35em); top: 48%; width: 9rem; height: 3rem; color: var(--accent); pointer-events: none; }
.callout::before { /* leader line from the word down to the note */
  content: ''; position: absolute; left: 0; top: 0; width: 3.4rem; height: 1px; background: currentColor;
  transform-origin: left top; transform: rotate(32deg);
}
.callout::after { content: ''; position: absolute; left: -3px; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.callout-label {
  position: absolute; left: 2.85rem; top: 1.75rem; padding-right: .2rem; border-top: 1px solid currentColor; padding-top: .2rem;
  font: 500 .9rem/1.4 'Archivo', sans-serif; font-stretch: 100%; letter-spacing: 0; white-space: nowrap;
}
@media (max-width: 760px) { .callout { display: none; } }
@media (max-width: 520px) { .hero-title { font-stretch: 100%; font-size: 2.7rem; } }
.hero-text { max-width: var(--measure); margin: 2.4rem 0 2rem; font-size: 1.2rem; line-height: 1.5; color: var(--graphite); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; }
.btn {
  display: inline-block; border: 0; border-radius: .35rem; padding: .9rem 1.4rem; cursor: pointer;
  background: var(--accent); color: #fff; font: 600 1rem/1 'Archivo', sans-serif; font-stretch: 112%; text-decoration: none;
}
.btn:hover { background: var(--accent-dark); }
.btn[disabled] { opacity: .6; cursor: wait; }
.quiet-link { color: var(--nylon); }

/* one orchestrated moment: the drawing lines appear once, after the words */
@media (prefers-reduced-motion: no-preference) {
  .dim, .callout { animation: draw .9s cubic-bezier(.2,.7,.2,1) .35s both; }
  .dim { transform-origin: center; }
  .callout { transform-origin: left top; animation-delay: .9s; }
  @keyframes draw { from { opacity: 0; transform: scaleX(.2); } to { opacity: 1; transform: none; } }
}

/* sections */
section { padding-top: clamp(3.5rem, 9vh, 6.5rem); padding-bottom: clamp(3.5rem, 9vh, 6.5rem); }
h2 { margin: 0 0 2rem; font-weight: 640; font-stretch: 118%; font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.05; letter-spacing: -.015em; }
p { margin: 0; }

.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.services li { display: grid; grid-template-columns: minmax(12rem, 1.1fr) 2fr minmax(10rem, .9fr); gap: .6rem 2.5rem; padding: 1.6rem 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.services h3 { margin: 0; font-size: 1.3rem; font-weight: 620; font-stretch: 112%; line-height: 1.2; }
.services .what { max-width: var(--measure); }
.services .mat { color: var(--nylon); font-size: .95rem; }
@media (max-width: 820px) { .services li { grid-template-columns: 1fr; } }

/* process as a chain dimension: one line, a tick at each step */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: step; }
.steps li { position: relative; padding: 2.4rem 1.6rem 0 0; counter-increment: step; }
.steps li::before { /* the chain line */
  content: ''; position: absolute; left: 0; right: 0; top: .9rem; height: 1px; background: var(--nylon);
}
.steps li::after { /* tick at the start of each step */
  content: counter(step); position: absolute; left: 0; top: 0; width: 1.8rem; height: 1.8rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--alu); border: 1px solid var(--nylon);
  font-size: .9rem; font-weight: 600;
}
.steps li:last-child::before { right: 1.6rem; }
.steps h3 { margin: 0 0 .5rem; font-size: 1.15rem; font-weight: 620; font-stretch: 112%; }
.steps p { color: var(--nylon); max-width: 22rem; }
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; gap: 1.8rem; }
  .steps li { padding: 0 0 0 3rem; }
  .steps li::before { left: .9rem; right: auto; top: 1.8rem; bottom: -1.8rem; width: 1px; height: auto; }
  .steps li:last-child::before { display: none; }
}

/* our own products: the dark band, like a black-dyed MJF part */
.own { background: var(--graphite); color: var(--alu-hi); }
.own .wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2rem 4rem; align-items: start; }
.own h2 { margin: 0; }
.own p { max-width: var(--measure); color: #C9CDD1; font-size: 1.12rem; }
@media (max-width: 820px) { .own .wrap { grid-template-columns: 1fr; } }

.about { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2rem 4rem; }
.about p { max-width: var(--measure); font-size: 1.12rem; }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem 4rem; }
.contact-intro { max-width: var(--measure); margin-bottom: 1.6rem; color: var(--nylon); }
form { display: grid; gap: 1.1rem; max-width: 36rem; }
label { display: grid; gap: .35rem; font-weight: 600; font-size: .95rem; }
input, textarea {
  width: 100%; border: 1px solid var(--rule); border-radius: .35rem; background: var(--alu-hi); color: var(--graphite);
  padding: .75rem .85rem; font: 400 1rem/1.45 'Archivo', sans-serif;
}
input:focus, textarea:focus { border-color: var(--accent); }
textarea { min-height: 9rem; resize: vertical; }
.hint { font-weight: 400; color: var(--nylon); font-size: .88rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { min-height: 1.5rem; font-weight: 500; }
.form-msg.ok { color: #1F6B3A; } .form-msg.err { color: #A3262A; }
.direct { align-self: start; border-left: 1px solid var(--rule); padding-left: 2rem; }
.direct h3 { margin: 0 0 1rem; font-size: 1.05rem; font-weight: 620; }
.direct p { margin-bottom: .4rem; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } .direct { border-left: 0; padding-left: 0; } }

footer { border-top: 1px solid var(--rule); padding-top: 2rem; padding-bottom: 3rem; color: var(--nylon); font-size: .92rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: .4rem 2.5rem; }

/* logo in the header */
.mark img { display: block; height: 2.6rem; width: auto; }
.foot-logo { display: block; height: 5.5rem; width: auto; margin-bottom: 1.2rem; }
footer .wrap { align-items: flex-end; }

/* links under lists and in the dark band */
.after-list { margin-top: 1.4rem; }
.after-list a, .own-link a { color: var(--accent); font-weight: 600; text-underline-offset: .2em; }
.own-link { margin-top: 1.2rem; }
.own .own-link a { color: #fff; }
.nav a[aria-current="page"] { color: var(--graphite); font-weight: 600; }

/* materials page */
.page-head { padding-top: clamp(3rem, 9vh, 6rem); }
.page-title { margin: 0 0 1.2rem; font-weight: 640; font-stretch: 125%; font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1; letter-spacing: -.02em; }
.page-intro { max-width: var(--measure); font-size: 1.2rem; }
.table-scroll { overflow-x: auto; border-top: 1px solid var(--rule); }
.mat-table { width: 100%; border-collapse: collapse; font-size: .97rem; min-width: 46rem; }
.mat-table th, .mat-table td { text-align: left; padding: .85rem 1rem .85rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.mat-table thead th { font-weight: 600; color: var(--nylon); font-size: .9rem; }
.mat-table tbody th { font-weight: 620; font-stretch: 112%; }
.mat-table .proc { color: var(--nylon); font-weight: 400; font-stretch: 100%; display: block; font-size: .88rem; }
.level { white-space: nowrap; }
.level i { display: inline-block; width: .55rem; height: .55rem; margin-right: 2px; border: 1px solid var(--graphite); border-radius: 50%; vertical-align: .05em; }
.level i.on { background: var(--graphite); }
.level span { margin-left: .4rem; color: var(--nylon); font-size: .88rem; }
.table-note { margin-top: .9rem; color: var(--nylon); font-size: .9rem; max-width: var(--measure); }
.mat-list { display: grid; gap: 0; padding-top: 0; }
.compare { padding-bottom: clamp(2rem, 5vh, 3rem); }
.mat { display: grid; grid-template-columns: minmax(12rem, 1fr) 2.2fr; gap: .8rem 3rem; padding: 2rem 0; border-top: 1px solid var(--rule); }
.mat h3 { margin: 0; font-size: 1.45rem; font-weight: 640; font-stretch: 118%; line-height: 1.15; }
.mat h3 small { display: block; margin-top: .35rem; font-size: .92rem; font-weight: 400; font-stretch: 100%; color: var(--nylon); }
.mat p { max-width: var(--measure); }
.mat dl { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; margin: 1rem 0 0; max-width: var(--measure); }
.mat dt { font-weight: 600; }
.mat dd { margin: 0; color: var(--nylon); }
@media (max-width: 820px) { .mat { grid-template-columns: 1fr; } }
.mat-cta p { max-width: var(--measure); margin-bottom: 1.4rem; }

/* privacy page */
.legal { padding-top: 1rem; }
.legal article { display: grid; grid-template-columns: minmax(12rem, 1fr) 2.2fr; gap: .6rem 3rem; padding: 1.6rem 0; border-top: 1px solid var(--rule); }
.legal h2 { margin: 0; font-size: 1.2rem; font-stretch: 112%; line-height: 1.25; }
.legal p, .legal ul { max-width: var(--measure); margin: 0 0 .7rem; }
.legal ul { padding-left: 1.1rem; }
.legal li { margin-bottom: .3rem; }
@media (max-width: 820px) { .legal article { grid-template-columns: 1fr; } }
.form-privacy { color: var(--nylon); font-size: .88rem; max-width: 36rem; }
.form-privacy a, footer a { color: inherit; }
