/* The landing page (index.html) only. Tokens, header, buttons, .card, .notice and table.grid come from base.css. */

/* Smooth scrolling starts when the page is done (index.html then sets data-catalog), not before. With it on from
   the start the browser animates its own jump to a #part while loading, and the jump the page makes after filling
   in the live sections lands on top of that animation: the section came to rest 2 to 9 px under the header. */
html[data-catalog] { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html[data-catalog] { scroll-behavior: auto; } }

/* The header sticks to the top; a link to a section must not land underneath it. */
section[id] { scroll-margin-top: var(--header-h); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
main { font-size: 16.5px; }
main h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.005em; }
main p { margin: 0 0 .9em; }
main p:last-child { margin-bottom: 0; }

/* A value the server still has to answer: a quiet bar, never a made-up number. */
.skeleton { display: inline-block; width: 5.5ch; height: .72em; border-radius: 4px; background: currentColor; opacity: .16; animation: wait 1.1s ease-in-out infinite alternate; }
@keyframes wait { to { opacity: .34; } }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
/* Drawing-board grid, fading out towards the text so the headline stands on calm ground. */
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 78% 45%, #000 10%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 90% at 78% 45%, #000 10%, transparent 78%); }
.hero::after { content: ""; position: absolute; right: -8%; top: 8%; width: 46%; height: 84%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 194, 26, .13), transparent); }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center;
  padding-top: 76px; padding-bottom: 88px; }
.hero-kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; font: 600 13px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.hero-kicker::before { content: ""; flex: none; width: 26px; height: 4px; background: var(--accent); }
.hero h1 { margin: 0 0 24px; font-size: clamp(2.5rem, 4.7vw, 4.15rem); font-weight: 800; line-height: 1.02; letter-spacing: -.028em; }
.hero h1 em { display: block; font-style: normal; color: var(--accent); }
.hero-text { margin: 0 0 32px; max-width: 33em; font-size: clamp(1.06rem, 1.3vw, 1.2rem); line-height: 1.55; color: #c9d0d8; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.hero-actions .btn-lg { padding: 16px 26px; font-size: 17px; }
.hero-more { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 6px; }
.hero-more:hover { text-decoration-color: var(--accent); }
.hero-points { list-style: none; margin: 38px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: .95rem; color: #dfe4ea; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points svg { flex: none; color: var(--accent); }

.hero-art svg { display: block; width: 100%; height: auto; overflow: visible; }
/* The shadow sits on the one shape that never moves, so the animation does not redraw it every frame. */
.art-window { fill: #1c222a; stroke: #36404c; stroke-width: 1.5; filter: drop-shadow(0 26px 34px rgba(0, 0, 0, .5)); }
.art-rule { fill: none; stroke: #2c3540; stroke-width: 1.5; }
.art-dot { fill: #3a4450; }
.art-chip { fill: #272f39; }
.art-tick { fill: none; stroke: #53d08c; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.art-mono { font: 500 13px var(--mono); fill: #c5ccd4; }
.art-viewer { fill: #12161b; stroke: #2a323c; }
.art-sheet { fill: #232a33; stroke: #3d4855; stroke-width: 1.5; }
.art-part-fill { fill: rgba(255, 194, 26, .14); }
.art-drawn { fill: none; stroke: var(--accent); stroke-opacity: .45; stroke-width: 1.5; }
.art-cut { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.art-holes { stroke-width: 2.4; }
.art-engrave { fill: none; stroke: #8fc0ff; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 7 6; }
.art-cutter { transform: translate(102px, 138px); }
.art-cutter-glow { fill: var(--accent); opacity: .24; }
.art-cutter-ring { fill: var(--ink); stroke: #fff; stroke-width: 2.2; }
.art-cutter-cross { fill: none; stroke: #fff; stroke-width: 1.4; }
.art-dim path { fill: none; stroke: #6c7784; stroke-width: 1.4; }
.art-dim text { fill: #9aa5b1; }
.art-panel { fill: #222932; stroke: #323b47; }
.art-label { font: 600 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; fill: #8792a0; }
.art-field { fill: #171c22; stroke: #3a4553; }
.art-field-on { fill: var(--accent); stroke: var(--accent); }
.art-bar { fill: #566373; }
.art-bar-on { fill: var(--accent-ink); }
.art-chevron { fill: none; stroke: #8792a0; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.art-key-cut { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
.art-key-engrave { fill: none; stroke: #8fc0ff; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 6 5; }
.art-key { font: 500 13px var(--font); fill: #d5dbe2; }
.art-tag { transform-box: fill-box; transform-origin: 15% 50%; transform: rotate(-4deg); }
.art-tag-shadow { fill: rgba(0, 0, 0, .4); }
.art-tag-body { fill: var(--accent); }
.art-tag-hole { fill: #1c222a; }
.art-tag-euro { font: 800 44px var(--font); fill: var(--accent-ink); }
.art-tag-title { font: 800 23px var(--font); letter-spacing: -.01em; fill: var(--accent-ink); }
.art-tag-sub { font: 600 15px var(--font); fill: rgba(26, 20, 0, .72); }

/* Once, on arrival: the cutter follows the drawn outline and the price is there before it is round. Every rule
   above is the finished picture, so without animation (or without offset-path) nothing is missing. */
@media (prefers-reduced-motion: no-preference) {
  .art-outline { stroke-dasharray: 1; animation: art-cut 2.2s cubic-bezier(.45, 0, .3, 1) .5s both; }
  @supports (offset-path: path("M0 0H1")) {
    .art-cutter { transform: none; offset-rotate: 0deg; animation: art-travel 2.2s cubic-bezier(.45, 0, .3, 1) .5s both;
      offset-path: path("M102 138H308L364 194V320A18 18 0 0 1 346 338H102A18 18 0 0 1 84 320V156A18 18 0 0 1 102 138Z"); }
  }
  .art-tag { animation: art-tag .5s cubic-bezier(.2, 1.3, .4, 1) .9s both; }
}
@keyframes art-cut { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes art-travel { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@keyframes art-tag { from { opacity: 0; transform: rotate(-4deg) translateY(16px) scale(.92); } }

/* ------------------------------------------------------------------ four facts */
.facts { background: var(--ink-2); color: #fff; border-top: 1px solid rgba(255, 255, 255, .08); }
.facts-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fact { padding: 26px 26px 28px; border-left: 1px solid rgba(255, 255, 255, .1); }
.fact:first-child { padding-left: 0; border-left: 0; }
.fact-label { display: block; margin-bottom: 10px; font: 600 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #98a3af; }
.fact-value { display: block; font-size: clamp(1.25rem, 1.9vw, 1.65rem); font-weight: 800; line-height: 1.18; letter-spacing: -.012em; font-variant-numeric: tabular-nums; }
.fact-note { display: block; margin-top: 6px; font-size: .9rem; color: #aab3bd; }

/* ------------------------------------------------------------------ sections */
.band { padding: 92px 0; }
.band-alt { background: #fff; }
.section-head { max-width: 46rem; margin-bottom: 42px; }
.kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 600 12.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--steel); }
.kicker::before { content: ""; flex: none; width: 22px; height: 4px; background: var(--accent); }
.band h2, .cta h2 { margin: 0 0 14px; font-size: clamp(1.85rem, 3.2vw, 2.65rem); font-weight: 800; line-height: 1.08; letter-spacing: -.022em; }
.lead { margin: 0; max-width: 40rem; font-size: 1.14rem; color: var(--ink-2); }
.band-action { margin: 36px 0 0; }

/* Small drawings in the language of the configurator: dark ground, yellow cut lines. */
.pict { display: block; width: 100%; height: auto; margin-bottom: 20px; }
.pict-bg { fill: var(--ink); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.step { position: relative; padding: 16px 16px 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.step h3, .step p { padding: 0 8px; }
.step p { color: var(--ink-2); }
.step-no { position: absolute; top: 6px; left: 6px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 9px;
  background: var(--accent); color: var(--accent-ink); font: 800 19px/1 var(--mono); box-shadow: 0 0 0 4px var(--card); }

.makes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.make { padding: 14px 14px 22px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.make h3, .make p { padding: 0 8px; }
.make p { font-size: .97rem; color: var(--ink-2); }

/* ------------------------------------------------------------------ materials */
.stars-key { display: flex; align-items: flex-start; gap: 12px; margin: -14px 0 30px; max-width: 46rem; font-size: .95rem; color: var(--steel); }
.stars-key .stars { margin-top: 3px; }
.stars { display: inline-flex; flex: none; gap: 1px; }
.star { width: 15px; height: 15px; color: #cdd3da; }
/* The darker yellow: the signal yellow itself drowns on white. */
.star-on { color: var(--accent-dark); }

.mat-groups { columns: 2; column-gap: 24px; }
.mat-groups > .notice { column-span: all; margin: 0; }
.mat-group { break-inside: avoid; margin: 0 0 24px; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.mat-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 15px 22px; background: var(--ink); color: #fff; border-left: 5px solid var(--accent); }
.mat-group-head h3 { margin: 0; font-size: 1.14rem; overflow-wrap: anywhere; }
.mat-group-head span { flex: none; font: 500 12.5px var(--mono); color: #aab3bd; }
.mat-list { list-style: none; margin: 0; padding: 0; }
.mat { padding: 15px 22px 16px; border-top: 1px solid var(--line); }
.mat:first-child { border-top: 0; }
.mat-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 9px; }
.mat-name { font-weight: 650; overflow-wrap: anywhere; }
a.mat-name { color: var(--ink); text-decoration: none; }
a.mat-name:hover { text-decoration: underline; text-decoration-color: var(--accent-dark); text-underline-offset: 3px; }
.thick { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.thick li { min-width: 2.5em; padding: 3px 8px; text-align: center; font: 500 13px/1.45 var(--mono); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; }
.thick .thick-unit { min-width: 0; padding: 3px 2px; background: none; border-color: transparent; color: var(--steel); }
.mat-skeleton { break-inside: avoid; height: 230px; margin: 0 0 24px; border-radius: var(--radius); background: #e6e9ed; animation: wait 1.1s ease-in-out infinite alternate; opacity: .5; }

/* ------------------------------------------------------------------ how to deliver */
.rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.rule { padding: 26px 26px 28px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.rule-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 10px; background: var(--ink); color: var(--accent); }
.rule p { font-size: .97rem; color: var(--ink-2); }
.formats { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.formats li { padding: 4px 9px; border-radius: 6px; background: var(--ink); color: #fff; font: 600 12.5px/1.4 var(--mono); letter-spacing: .04em; }
.rule .rule-figure { margin-bottom: 10px; font: 700 1.45rem/1.2 var(--mono); letter-spacing: -.02em; color: var(--ink); }
.tip { margin: 28px 0 0; padding: 16px 20px; background: var(--bg); border-left: 5px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; font-size: .97rem; color: var(--ink-2); }
.tip strong { color: var(--ink); }

/* ------------------------------------------------------------------ quantity discount */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 64px; align-items: center; }
.split .section-head { margin-bottom: 0; }
.tier-card { padding: 6px 22px 12px; border: 1px solid var(--line); box-shadow: none; }
.tier-card caption { caption-side: top; padding: 16px 10px 8px; text-align: left; font-weight: 700; }
.tier-card table.grid { font-size: 1rem; }
.tier-card table.grid td { padding: 11px 10px; vertical-align: baseline; }
.tier-card table.grid td.num { font: 700 1.05rem var(--mono); }
.tier-card table.grid tr:last-child td { border-bottom: 0; }

/* ------------------------------------------------------------------ questions */
.wrap.narrow { max-width: 900px; }
.faq details { margin-bottom: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.faq details[open] { background: var(--card); border-color: #c5ccd4; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; font-size: 1.06rem; font-weight: 650; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 2px; border-radius: var(--radius); }
.faq summary svg { flex: none; color: var(--steel); transition: transform .18s ease; }
.faq details[open] summary svg { transform: rotate(45deg); color: var(--ink); }
.faq details p { margin: 0; padding: 0 22px 14px; max-width: 46rem; color: var(--ink-2); }
.faq details p:last-child { padding-bottom: 20px; }
/* The owner's own words, typed in Beheer: his line breaks stay. */
.terms { white-space: pre-line; }

/* ------------------------------------------------------------------ closing call */
.cta { background: var(--ink); color: #fff; }
/* Warning tape, as on machine guarding: the one loud line on the page. */
.cta::before { content: ""; display: block; height: 10px; background: repeating-linear-gradient(-45deg, var(--accent) 0 14px, var(--ink) 14px 28px); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 40px; padding-top: 60px; padding-bottom: 60px; }
.cta h2 { margin-bottom: 8px; }
.cta p { margin: 0; font-size: 1.14rem; color: #c9d0d8; }
.cta .btn-lg { padding: 16px 26px; font-size: 17px; }

/* ------------------------------------------------------------------ footer */
.site-footer { margin-top: 0; padding: 48px 0 26px; border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-cols { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.footer-name { margin: 0 0 4px; font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; color: #fff; overflow-wrap: anywhere; }
.footer-line { margin: 0; }
#company-address { display: grid; gap: 2px; margin-top: 16px; font-style: normal; color: #dfe4ea; overflow-wrap: anywhere; }
#company-facts { display: grid; gap: 4px; margin: 16px 0 0; }
#company-facts div { display: flex; gap: 10px; }
#company-facts dt { flex: none; width: 7.2em; color: #8792a0; }
#company-facts dd { margin: 0; color: #dfe4ea; overflow-wrap: anywhere; }
.footer-head { margin: 0 0 4px; font: 600 12px/1.6 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #8792a0; }
.footer-nav { display: grid; align-content: start; gap: 8px; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-base { margin: 36px 0 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; color: #8792a0; }

/* ------------------------------------------------------------------ narrower screens */
@media (max-width: 1100px) {
  .makes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-inner { gap: 40px; }
}
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 44px; padding-top: 52px; padding-bottom: 60px; }
  .hero-art { max-width: 600px; }
  .hero::before { -webkit-mask-image: linear-gradient(to bottom, transparent 30%, #000 80%); mask-image: linear-gradient(to bottom, transparent 30%, #000 80%); }
  .hero::after { top: 46%; right: -10%; width: 90%; height: 54%; }
  .facts-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact { padding: 22px 20px 24px; }
  .fact:nth-child(odd) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, .1); }
  .steps { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mat-groups { columns: 1; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-company { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .band { padding: 60px 0; }
  .section-head { margin-bottom: 30px; }
  .hero-inner { padding-top: 40px; padding-bottom: 48px; }
  .hero-points { flex-direction: column; gap: 9px; margin-top: 30px; }
  .makes, .rules { grid-template-columns: minmax(0, 1fr); }
  .fact { padding: 18px 14px 20px; }
  .fact-value { font-size: 1.03rem; }
  .fact-note { font-size: .84rem; }
  .mat-head { align-items: flex-start; }
  .mat-head .stars { margin-top: 4px; }
  .cta-inner { padding-top: 44px; padding-bottom: 48px; }
  /* The small print of the drawing is unreadable at this size and only adds noise. */
  .art-dim text, .art-label, .art-key, .art-key-cut, .art-key-engrave, .art-mono, .art-chip, .art-tick { display: none; }
}
