@font-face {
  font-family: Barlow Semi Condensed; src: url('/assets/barlow-semi-condensed-700.woff2') format('woff2');
  font-style: normal; font-weight: 700; font-display: swap;
}
@font-face {
  font-family: IBM Plex Sans; src: url('/assets/ibm-plex-sans.woff2') format('woff2');
  font-style: normal; font-weight: 400 700; font-display: swap;
}
:root {
  color-scheme: light; --ink: #17221b; --paper: #f4f1e8; --white: #fffdf6;
  --accent: #d9f478; --muted: #485448; --line: #c7cdbb; --night: #142019;
  --display: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --sans: "IBM Plex Sans", Arial, sans-serif; --mono: ui-monospace, "SF Mono", Consolas, monospace;
  --gutter: clamp(1.12rem, 4.4vw, 4.8rem); --width: 83rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.58 var(--sans); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: .98; letter-spacing: -.025em; }
h1 { font-size: clamp(3.5rem, 6.6vw, 7.3rem); }
h2 { font-size: clamp(2.65rem, 5vw, 5.4rem); }
h3 { font-size: clamp(1.6rem, 2.45vw, 2.6rem); }
a { color: inherit; text-underline-offset: .19em; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 1rem; }
:focus-visible { outline: 2px solid #3c6a39; outline-offset: 4px; }
.wrap { width: min(var(--width), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.eyebrow {
  color: #455d40; font: 650 .7rem/1.45 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.eyebrow > span:not(.status-dot) { color: #4d6643; margin-inline-end: .55em; }
.button, .text-link { display: inline-flex; align-items: center; justify-content: center; gap: .7rem; min-height: 2.85rem; font-weight: 650; font-size: .9rem; }
.button { padding: .66rem 1rem; text-decoration: none; line-height: 1.25; border: 1px solid currentColor; border-radius: .24rem; }
.button-primary { color: #152212; background: var(--accent); border-color: #839f30; box-shadow: 0 .2rem 0 #95a466; }
.button-primary:hover { background: #e9ff9c; }
.text-link { justify-content: start; text-decoration: none; border-bottom: 1px solid currentColor; }
.text-link:hover { color: #456045; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1.25rem; }
.skip { position: absolute; top: .6rem; left: var(--gutter); padding: .5rem .8rem; background: var(--accent); z-index: 2; transform: translateY(-150%); }
.skip:focus { transform: none; }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: .8rem 1.5rem; min-height: 4.65rem; }
.brand { display: inline-block; flex: 0 0 auto; width: clamp(9.25rem, 17vw, 12rem); text-decoration: none; }
.brand img { width: 100%; height: auto; }
.main-nav { display: flex; flex-wrap: wrap; gap: .2rem clamp(.75rem, 2.6vw, 2rem); font-size: .91rem; align-items: center; }
.main-nav a { min-height: 2.75rem; display: inline-flex; align-items: center; text-decoration: none; }
.main-nav a:hover { text-decoration: underline; }
.masthead .header-contact { white-space: nowrap; }
.footer { color: #cdd8ca; background: #101912; padding-block: 2.15rem; font-size: .84rem; }
.footer .wrap { display: flex; align-items: start; justify-content: space-between; gap: 1.1rem 2rem; flex-wrap: wrap; }
.footer b { color: #ecf0e3; }
.footer nav { display: flex; flex-wrap: wrap; gap: .6rem 1rem; }
.footer a { color: #e4eddc; }
.footer a:focus-visible, .project a:focus-visible { outline-color: var(--accent); }

.hero { position: relative; padding-block: clamp(2.7rem, 5.6vw, 5.4rem); background: radial-gradient(ellipse at 91% 40%, #e3e9cb 0%, transparent 51%), var(--paper); }
.hero-grid { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.25fr); gap: clamp(1.7rem, 4.8vw, 5.2rem); align-items: center; }
.hero h1 { max-width: 11ch; }
.hero h1 em { color: #3e5c36; font-style: normal; }
.status-dot { display: inline-block; width: .49rem; height: .49rem; background: #8aab3e; border: 1px solid #526837; margin-inline-end: .35rem; vertical-align: .05em; }
.hero-lead { margin-block: 1.3rem 1.45rem; max-width: 38ch; color: var(--muted); font-size: clamp(1.09rem, 1.45vw, 1.3rem); line-height: 1.5; }
.hero-detail { margin-top: 1.25rem; font-size: .78rem; color: #4d614a; }
.hero-detail span { color: #456339; margin-inline-end: .3rem; }

.system { background: var(--night); color: #f2f2e7; padding-block: clamp(2.65rem, 6.6vw, 6.65rem); }
.system-grid { display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1.15fr); align-items: center; gap: 1.8rem clamp(1.5rem, 6.8vw, 6.5rem); }
.system h2 { max-width: 12ch; }
.system .eyebrow, .system .eyebrow span, .project .eyebrow, .project .eyebrow span { color: #c6db8e; }
.system-copy > p:last-child { max-width: 43ch; margin-top: 1.1rem; color: #c2cec2; }
.system-trace { position: relative; display: grid; margin: 0; padding: 0; list-style: none; }
.system-trace::before { content: ""; position: absolute; left: 1.07rem; top: 2.4rem; bottom: 2.4rem; border-left: 1px solid #738c6d; }
.system-trace li { position: relative; display: grid; grid-template-columns: 2.25rem minmax(0,1fr) auto; align-items: start; gap: .72rem; padding: 1.02rem 0; border-top: 1px solid #4a5c4a; }
.system-trace li:last-child { border-bottom: 1px solid #4a5c4a; }
.trace-index { display: grid; place-items: center; min-height: 2.2rem; border: 1px solid #7b9969; background: #253524; color: #e2f3b5; font: 650 .74rem/1 var(--mono); }
.system-trace h3 { font-size: clamp(1.42rem, 2.4vw, 2.05rem); margin-bottom: .3rem; }
.system-trace p { color: #c7d2c7; line-height: 1.43; font-size: .92rem; }
.trace-tag { border: 1px solid #6b835d; color: #d8e6be; font: 550 .66rem/1 var(--mono); padding: .4rem .5rem; margin-top: .13rem; }
.craft, .build, .faq-block { padding-block: clamp(3rem, 6.8vw, 6.55rem); }
.section-head { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.65fr); align-items: end; gap: 1rem 3rem; margin-bottom: clamp(1.4rem, 3.5vw, 2.75rem); }
.section-head > p { color: var(--muted); max-width: 43ch; }
.craft-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(.75rem, 2vw, 1.55rem); }
.craft-card { display: flex; flex-direction: column; min-width: 0; text-decoration: none; border: 1px solid #b5bfa9; background: #faf8ef; }
.craft-visual {
  position: relative; overflow: hidden; display: grid; place-items: center; min-height: clamp(8.7rem, 19vw, 14.5rem);
  color: #3e653e; background-color: #e0e8cc;
  background-image: linear-gradient(#52704623 1px, transparent 1px), linear-gradient(90deg,#52704623 1px, transparent 1px);
  background-size: 22px 22px; border-bottom: 1px solid #b5bfa9;
}
.craft-elektro .craft-visual { color: #3c5774; background-color: #e2e9ea; }
.craft-visual svg { height: clamp(7.5rem, 16vw, 12.5rem); width: min(100%, 22rem); stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s ease; }
.craft-card:is(:hover,:focus-visible) svg { transform: scale(1.055); }
.craft-visual > span { position: absolute; right: .75rem; bottom: .65rem; color: #35463b; background: #f8faf0; padding: .27rem .4rem; font: 600 .61rem/1.15 var(--mono); }
.craft-caption { display: flex; justify-content: space-between; align-items: start; gap: .75rem; padding: clamp(.85rem, 2.25vw, 1.65rem); }
.craft-caption .eyebrow { margin-bottom: .46rem; font-size: .64rem; }
.craft-caption div > p:last-child { margin-top: .5rem; color: var(--muted); }
.craft-arrow { display: grid; place-items: center; width: 2.15rem; height: 2.15rem; border: 1px solid #b5bfa9; color: #334431; background: #edf1df; flex: 0 0 auto; }
.craft-card:is(:hover,:focus-visible) .craft-arrow { background: var(--accent); }
.build { background: #e8ebdb; border-block: 1px solid #c5cbb9; }
.build-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); padding: 0; margin: 0; list-style: none; border: 1px solid #a9b59d; }
.build-steps li { position: relative; min-width: 0; padding: clamp(.9rem, 2.4vw, 1.75rem); background: #f4f4e9; }
.build-steps li + li { border-left: 1px solid #a9b59d; }
.build-steps li > span { display: inline-block; color: #4d6942; font: 650 .65rem/1.2 var(--mono); margin-bottom: .85rem; }
.build-steps p { color: var(--muted); margin-top: .52rem; max-width: 34ch; }
.faq-grid { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.15fr); align-items: start; gap: 1.3rem 3rem; }
.faq-grid h2 { max-width: 11ch; }
.faq { border-top: 1px solid #acb5a5; }
.faq details { border-bottom: 1px solid #acb5a5; }
.faq summary { position: relative; list-style: none; cursor: pointer; font-weight: 650; padding: .88rem 2rem .88rem 0; min-height: 2.8rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; color: #395837; font: 600 1.1rem/1.35 var(--mono); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin: 0 1rem .9rem 0; }
.project { background: #1f2f22; color: #f6f5e9; padding-block: clamp(2.65rem, 5.5vw, 5.1rem); }
.project-grid { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,.62fr); align-items: end; gap: 1.4rem 2rem; }
.project p:not(.eyebrow) { max-width: 49ch; color: #c8d2c2; margin-top: .8rem; }
.project-action { display: grid; justify-items: start; align-content: start; gap: .72rem; }
.project-action small { color: #c8d2c2; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0,1fr); }
  .hero-copy h1 { max-width: 14ch; }
  .hero-grid > .fabrik-demo { width: 100%; }
}
@media (max-width: 680px) {
  h1 { font-size: clamp(3.15rem, 12vw, 5.5rem); }
  h2 { font-size: clamp(2.65rem, 10.2vw, 4rem); }
  .masthead-inner { min-height: 0; padding-block: .65rem .32rem; flex-wrap: wrap; row-gap: .1rem; }
  .masthead .header-contact { min-height: 2.55rem; padding: .35rem .58rem; font-size: .76rem; }
  .main-nav { order: 3; width: 100%; gap: .2rem 1.28rem; font-size: .8rem; }
  .main-nav a { min-height: 2.3rem; }
  .hero { padding-top: 1.95rem; }
  .hero-lead { margin-block: .93rem 1.12rem; }
  .hero-detail { margin-top: .84rem; }
  .system-grid, .section-head, .craft-grid, .build-steps, .faq-grid, .project-grid { grid-template-columns: minmax(0,1fr); }
  .trace-tag { display: none; }
  .system-trace li { grid-template-columns: 2.25rem minmax(0,1fr); }
  .build-steps li + li { border-left: 0; border-top: 1px solid #a9b59d; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .craft-visual svg { transition: none; }
}

.assist { padding-block: clamp(3rem, 6.2vw, 6rem); background: #e7ebd8; border-bottom: 1px solid #bfc9af; }
.assist-grid { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(0,.88fr); grid-template-areas: "sheet copy"; gap: 2rem clamp(2.1rem, 7vw, 6.5rem); align-items: center; }
.assist-copy { grid-area: copy; }
.assist-copy h2 { max-width: 13ch; }
.assist-copy p:not(.eyebrow) { max-width: 42ch; margin-top: .8rem; color: var(--muted); }
.assist-sheet { grid-area: sheet; background: #f9f9ed; border: 1px solid #a8b596; box-shadow: .46rem .46rem 0 #526a4226; }
.assist-sheet figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem .7rem; border-bottom: 1px solid #b8c4a8; background: #e5ead4; padding: .72rem .9rem; font: 600 .64rem/1.2 var(--mono); color: #394b32; }
.assist-origin, .assist-draft { padding: clamp(.75rem, 2.3vw, 1.4rem); }
.assist-origin { border-bottom: 1px dashed #aebba0; }
.assist-origin > span, .assist-draft > span { font: 650 .65rem/1.25 var(--mono); color: #47653c; display: inline-block; margin-bottom: .4rem; }
.assist-origin p { color: #43513d; max-width: 43ch; }
.assist-draft h3 { margin-bottom: .63rem; }
.assist-draft dl { margin: 0; display: grid; gap: .38rem; }
.assist-draft dl > div { display: grid; grid-template-columns: 5.1rem minmax(0,1fr); align-items: baseline; gap: .35rem; border-top: 1px solid #ced8c3; padding-top: .35rem; }
.assist-draft dt { color: #486042; font: 600 .71rem/1.2 var(--mono); }
.assist-draft dd { margin: 0; font-size: .92rem; font-weight: 650; }
.assist-approval { border-top: 1px solid #b9c78a; padding: .72rem .9rem; background: #edf4cc; color: #303f27; font-size: .83rem; display: flex; align-items: center; gap: .54rem; }
.assist-indicator { border: 1px solid #587238; background: #aacc66; width: .47rem; height: .47rem; flex: 0 0 auto; rotate: 45deg; }
@media (max-width: 680px) {
  .assist-grid { grid-template-columns: minmax(0,1fr); grid-template-areas: "copy" "sheet"; gap: 1.2rem; }
}
