/* SCAD Re-Event — page styles (shared tokens, buttons, header and footer live in chrome.css). */

:root {
  --section: clamp(72px, 10vw, 140px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--paper); font-variation-settings: "wdth" 100; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; line-height: 1.05; font-weight: 800; }
ul { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
.section--navy :focus-visible, .section--ink :focus-visible, .page-hero :focus-visible, .hero :focus-visible { outline-color: #fff; }
::selection { background: var(--crimson); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Type ---------- */
.h-display {
  font-variation-settings: "wdth" 118;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.01em;
  line-height: .96;
  text-wrap: balance;
}
.h-display--xl { font-size: clamp(2.8rem, 7.4vw, 6.4rem); }
.h-display--lg { font-size: clamp(2.3rem, 5vw, 4.25rem); }
.h-display--md { font-size: clamp(1.9rem, 3.6vw, 3rem); }
.h-display--sm { font-size: clamp(1.4rem, 2.2vw, 1.85rem); line-height: 1.05; }
.h-display em { font-style: normal; color: var(--crimson); }
.on-dark .h-display em { color: var(--crimson-hi); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  margin: 0 0 22px;
  font-family: var(--mono); font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--crimson);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.on-dark .eyebrow { color: #e9eef1; }
.on-dark .eyebrow::before { background: var(--crimson-hi); height: 2px; }

.lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); line-height: 1.55; color: var(--text-2); max-width: 60ch; }
.on-dark .lead { color: var(--text-inv-2); }
.prose { max-width: 64ch; }
.prose p { color: var(--text-2); }
.on-dark .prose p { color: var(--text-inv-2); }
.prose strong { color: var(--text); font-weight: 600; }
.on-dark .prose strong { color: var(--text-inv); }

/* Command chip: how SCAD commands are typed */
kbd, .cmd {
  display: inline-block;
  padding: .05em .45em .1em;
  font-family: var(--mono); font-size: .86em; font-weight: 500; line-height: 1.4;
  color: var(--navy); background: rgba(3, 50, 75, .07);
  border: 1px solid rgba(3, 50, 75, .18); border-bottom-width: 2px; border-radius: 3px;
  white-space: nowrap;
}
.on-dark kbd, .on-dark .cmd { color: var(--text-inv); background: rgba(255, 255, 255, .06); border-color: var(--line-inv-strong); }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: var(--section); }
.section--paper { background: var(--paper); }
.section--white { background: var(--white); }
.section--navy { background: var(--navy); color: var(--text-inv); }
.section--ink { background: var(--ink); color: var(--text-inv); }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }
.on-dark { color: var(--text-inv); }

/* Model-space grid: faint CAD grid on dark grounds */
.grid-bg { position: relative; isolation: isolate; }
.grid-bg::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--line-inv) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-inv) 1px, transparent 1px);
  background-size: 96px 96px; background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 85%);
  opacity: .55;
}

.section-head { display: grid; gap: 0; margin-bottom: clamp(40px, 5vw, 64px); max-width: 820px; }
.section-head .lead { margin-top: 20px; }
.section-head--split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px 64px; max-width: none; align-items: end; }
.section-head--split .lead { margin: 0; }
@media (max-width: 860px) { .section-head--split { grid-template-columns: 1fr; } }

/* Dimension line: |←—— label ——→| drawn above headings */
.dim {
  display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2);
}
.dim::before, .dim::after { content: ""; flex: 1; height: 9px; border-left: 1px solid currentColor; background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat; opacity: .6; }
.dim::after { border-left: 0; border-right: 1px solid currentColor; }
.on-dark .dim { color: var(--cad-cyan); }

/* Callout pin on screenshots */
.pin { position: absolute; display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .72rem; color: #fff; pointer-events: none; }
.pin::before { content: ""; width: 12px; height: 12px; border: 2px solid var(--crimson-hi); border-radius: 50%; background: rgba(211, 19, 47, .25); box-shadow: 0 0 0 4px rgba(211, 19, 47, .15); }
.pin span { padding: 3px 8px; background: rgba(10, 18, 24, .85); border: 1px solid var(--line-inv-strong); border-radius: 3px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(96px, 14vw, 180px) 0 clamp(56px, 7vw, 88px);
  color: var(--text-inv); background: var(--navy-900);
}
.page-hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(4, 20, 30, .95) 0%, rgba(4, 20, 30, .7) 45%, rgba(4, 20, 30, .25) 100%), linear-gradient(0deg, rgba(4, 20, 30, .9), transparent 50%); }
.page-hero .h-display { max-width: 15ch; }
.page-hero .lead { margin-top: 22px; color: #c7d3da; }
.page-hero .btn-row { margin-top: 36px; }
.page-hero__coords { position: absolute; right: var(--gutter); bottom: 24px; font-family: var(--mono); font-size: .7rem; color: var(--cad-cyan); opacity: .7; }
@media (max-width: 700px) { .page-hero__coords { display: none; } }

/* ---------- Home hero ---------- */
.hero { position: relative; isolation: isolate; min-height: min(92vh, 860px); display: grid; align-items: end; padding: 140px 0 0; color: #fff; background: var(--navy-900); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; transform: scale(1.04); animation: hero-zoom 5s var(--ease) forwards; }
@keyframes hero-zoom { to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(4, 20, 30, .92) 0%, rgba(4, 20, 30, .55) 48%, rgba(4, 20, 30, .1) 100%), linear-gradient(0deg, rgba(4, 20, 30, 1) 0%, rgba(4, 20, 30, 0) 42%); }
.hero__crosshair { position: absolute; z-index: -1; left: 62%; top: 34%; width: 220px; height: 220px; pointer-events: none; color: var(--cad-cyan); opacity: .5; }
.hero__crosshair::before, .hero__crosshair::after { content: ""; position: absolute; background: currentColor; }
.hero__crosshair::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.hero__crosshair::after { top: 50%; left: 0; right: 0; height: 1px; }
.hero__crosshair span { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; border: 1px solid currentColor; transform: translate(-50%, -50%); }
.hero__crosshair small { position: absolute; left: calc(50% + 14px); top: calc(50% + 10px); font-family: var(--mono); font-size: .68rem; white-space: nowrap; }
.hero__content { padding-bottom: clamp(40px, 6vw, 72px); }
.hero .eyebrow { color: #fff; }
.hero .eyebrow::before { background: var(--crimson-hi); }
.hero h1 { max-width: none; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: block; animation: rise .9s var(--ease) both; }
.hero h1 .line:nth-child(2) > span { animation-delay: .08s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .16s; }
@keyframes rise { from { transform: translateY(105%); } }
.hero .lead { margin-top: 26px; color: #d3dde3; max-width: 52ch; animation: fade .8s .35s var(--ease) both; }
.hero .btn-row { margin-top: 36px; animation: fade .8s .45s var(--ease) both; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } }
@media (max-width: 700px) { .hero__crosshair { display: none; } .hero::after { background: linear-gradient(0deg, rgba(4, 20, 30, 1) 0%, rgba(4, 20, 30, .78) 55%, rgba(4, 20, 30, .35) 100%); } }

/* Command line strip (BricsCAD-style) */
.cmdline {
  position: relative; border-top: 1px solid var(--line-inv-strong); background: rgba(4, 20, 30, .82); backdrop-filter: blur(6px);
  font-family: var(--mono); font-size: .85rem; color: #c9d4db;
}
.cmdline__row { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; min-height: 58px; }
.cmdline__prompt { color: var(--text-inv-2); }
.cmdline__prompt b { color: #fff; font-weight: 500; }
.cmdline__typed { color: #fff; }
.cmdline__typed::after { content: ""; display: inline-block; width: .6em; height: 1.1em; margin-left: 2px; vertical-align: -.2em; background: var(--crimson-hi); animation: caret 1s steps(1) 5; }
@keyframes caret { 50% { opacity: 0; } }
.cmdline__desc { color: var(--text-inv-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .3s; }
@media (max-width: 640px) { .cmdline__desc { white-space: normal; overflow: visible; text-overflow: clip; } }
.cmdline__status { display: flex; gap: 14px; font-size: .7rem; letter-spacing: .08em; color: var(--text-inv-2); }
.cmdline__status span:first-child { color: #fff; }
@media (max-width: 760px) { .cmdline__row { grid-template-columns: 1fr; gap: 2px; padding: 12px 0; } .cmdline__status { display: none; } }

/* ---------- Ribbon (feature tab strip) ---------- */
.ribbon { background: var(--ink); color: var(--text-inv); border-bottom: 1px solid #000; }
.ribbon ul { display: grid; grid-template-columns: repeat(5, 1fr); list-style: none; }
.ribbon li + li { border-left: 1px solid var(--line-inv); }
.ribbon a { display: grid; gap: 4px; padding: 22px 22px 24px; text-decoration: none; transition: background .2s; }
.ribbon a:hover { background: rgba(255, 255, 255, .04); }
.ribbon a:hover .ribbon__title { text-decoration: underline; text-underline-offset: 3px; }
.ribbon__cmd { font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; color: var(--cad-cyan); }
.ribbon__title { font-weight: 700; font-variation-settings: "wdth" 112; transition: color .2s; }
@media (max-width: 900px) { .ribbon ul { grid-template-columns: repeat(2, 1fr); } .ribbon li { border-top: 1px solid var(--line-inv); } .ribbon li + li { border-left: 0; } .ribbon li:nth-child(even) { border-left: 1px solid var(--line-inv); } .ribbon li:last-child { grid-column: 1 / -1; } }

/* ---------- Split layouts ---------- */
.split { display: grid; grid-template-columns: repeat(12, 1fr); gap: 48px 32px; align-items: center; }
.split__text { grid-column: 1 / span 5; }
.split__media { grid-column: 7 / span 6; }
.split--flip .split__text { grid-column: 8 / span 5; grid-row: 1; }
.split--flip .split__media { grid-column: 1 / span 6; grid-row: 1; }
.split--wide .split__media { grid-column: 6 / span 7; margin-right: calc(-1 * max(0px, (100vw - var(--wrap)) / 2 - 24px)); }
.split--wide.split--flip .split__media { grid-column: 1 / span 7; margin-right: 0; margin-left: calc(-1 * max(0px, (100vw - var(--wrap)) / 2 - 24px)); }
.split__text .h-display { margin-bottom: 24px; }
.split__text .btn-row, .split__text .link-arrow { margin-top: 12px; }
@media (max-width: 900px) {
  .split, .split--flip { grid-template-columns: minmax(0, 1fr); }
  .split__text, .split__media, .split--flip .split__text, .split--flip .split__media, .split--wide .split__media, .split--wide.split--flip .split__media { grid-column: 1; grid-row: auto; margin: 0; }
}

/* Stat strip */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 40px; border-top: 1px solid var(--line); }
.stats > div { padding: 20px 20px 0 0; }
.stats > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.stats strong { display: block; font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 800; font-variation-settings: "wdth" 115; line-height: 1; color: var(--navy); }
.stats span { display: block; margin-top: 6px; font-size: .86rem; color: var(--text-2); line-height: 1.35; }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr 1fr; } .stats > div:nth-child(3) { grid-column: 1 / -1; padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 16px; } }
.on-dark .stats { border-color: var(--line-inv); }
.on-dark .stats > div + div { border-color: var(--line-inv); }
.on-dark .stats strong { color: #fff; }
.on-dark .stats span { color: var(--text-inv-2); }

/* ---------- Showcase (full-bleed screenshot) ---------- */
.showcase { position: relative; padding-top: var(--section); background: var(--navy-900); color: var(--text-inv); overflow: hidden; }
.showcase__head { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: end; margin-bottom: 48px; }
.showcase__frame { position: relative; }
.showcase__frame .window { border-radius: 8px 8px 0 0; }
.showcase__frame .window img { aspect-ratio: 1920 / 1034; object-fit: cover; object-position: top; } /* trims the Windows taskbar */
.showcase .pin--a { left: 33%; top: 30%; }
.showcase .pin--b { left: 56%; top: 52%; }
.showcase .pin--c { left: 15%; top: 64%; }
@media (max-width: 760px) { .showcase__head { grid-template-columns: minmax(0, 1fr); } .showcase .pin { display: none; } }

/* ---------- Photo panels (quick start / library teasers) ---------- */
.panels { display: grid; grid-template-columns: 1fr 1fr; }
.panel { position: relative; isolation: isolate; min-height: 620px; display: flex; align-items: flex-end; padding: clamp(32px, 5vw, 64px); color: #fff; overflow: hidden; text-decoration: none; }
.panel__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(4, 20, 30, .96) 0%, rgba(4, 20, 30, .7) 45%, rgba(4, 20, 30, .15) 100%); }
.panel:hover .panel__bg { transform: scale(1.04); }
.panel__body { max-width: 34rem; }
.panel .h-display { margin-bottom: 18px; }
.panel p { color: #cfd9df; }
.panel .link-arrow { margin-top: 8px; color: #fff; }
.panel__index { position: absolute; top: clamp(24px, 4vw, 48px); left: clamp(32px, 5vw, 64px); padding: 4px 9px; font-family: var(--mono); font-size: .75rem; color: #fff; letter-spacing: .1em; background: rgba(10, 18, 24, .82); border: 1px solid var(--line-inv-strong); border-radius: 3px; }
@media (max-width: 860px) { .panels { grid-template-columns: 1fr; } .panel { min-height: 520px; } }

/* ---------- Video ---------- */
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 6px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8); }
.video-frame video, .video-frame iframe, .video-frame img { width: 100%; height: 100%; object-fit: cover; border: 0; }
.video-play {
  position: absolute; inset: 0; display: grid; place-items: center; width: 100%; padding: 0; background: rgba(4, 20, 30, .25); border: 0; cursor: pointer; transition: background .25s;
}
.video-play:hover { background: rgba(4, 20, 30, .05); }
.video-play:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
.video-play__btn { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; background: var(--crimson); box-shadow: 0 0 0 10px rgba(166, 3, 33, .25); transition: transform .25s var(--ease), box-shadow .25s; }
.video-play:hover .video-play__btn { transform: scale(1.06); box-shadow: 0 0 0 16px rgba(166, 3, 33, .2); }
.video-play__btn::before { content: ""; margin-left: 6px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent #fff; }
.video-play__meta { position: absolute; left: 20px; bottom: 18px; font-family: var(--mono); font-size: .75rem; color: #fff; }

/* ---------- Route cards (next steps / help) ---------- */
.next-steps__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.next-steps__group { display: grid; gap: 12px; align-content: start; }
.next-steps__group .label { margin-bottom: 6px; }
.route-card {
  position: relative; display: grid; grid-template-columns: 76px 1fr 24px; gap: 4px 20px; align-items: start;
  padding: 24px 24px 26px; text-decoration: none; background: var(--white); border: 1px solid var(--line); border-radius: 6px;
  transition: border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.route-card:hover { border-color: var(--text); transform: translateY(-2px); box-shadow: 0 16px 30px -22px rgba(10, 18, 24, .5); }
.route-card__cmd { grid-row: span 2; align-self: start; padding: 6px 0; font-size: .72rem; font-weight: 600; color: var(--crimson); border: 1px solid currentColor; border-radius: 3px; text-align: center; }
.route-card__title { font-weight: 700; font-size: 1.12rem; font-variation-settings: "wdth" 110; }
.route-card__text { grid-column: 2; font-size: .94rem; color: var(--text-2); line-height: 1.5; }
.route-card__go { grid-column: 3; grid-row: 1; font-family: var(--mono); font-size: 1.1rem; color: var(--text-2); transition: transform .2s var(--ease), color .2s; }
.route-card:hover .route-card__go { color: var(--crimson); transform: translateX(3px); }
@media (max-width: 860px) { .next-steps__grid { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 480px) { .route-card { grid-template-columns: 1fr 24px; } .route-card__cmd { grid-row: auto; justify-self: start; padding: 4px 10px; } .route-card__text { grid-column: 1; } .route-card__go { grid-column: 2; } }

/* ---------- Contact band ---------- */
.contact-band { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; }
.contact-band__lines { display: grid; gap: 0; border-top: 1px solid var(--line-inv); }
.contact-band__lines a, .contact-band__lines div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 18px 0; border-bottom: 1px solid var(--line-inv); text-decoration: none; font-size: 1.15rem; font-weight: 600; }
.contact-band__lines a:hover span:last-child { text-decoration: underline; text-underline-offset: 3px; }
.contact-band__lines .label { align-self: center; }
.contact-band .lead, .showcase__head .lead { margin-top: 20px; }
@media (max-width: 860px) { .contact-band { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Forms ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form .field--full { grid-column: 1 / -1; }
.field { display: grid; gap: 7px; }
.field label { font-size: .84rem; font-weight: 600; }
.field label small { font-weight: 400; color: var(--text-2); }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 14px; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(3, 50, 75, .15); }
.consent { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--text-2); }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--crimson); }
.form__actions { grid-column: 1 / -1; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.form__note { font-size: .82rem; color: var(--text-2); margin: 0; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

/* Form card: reads like a printed order form */
.req { color: var(--crimson); font-weight: 700; }
.form-card { background: var(--white); border: 1.5px solid var(--text); border-radius: 2px; box-shadow: 10px 10px 0 -1px rgba(3, 50, 75, .08); }
.form-card__head { display: flex; justify-content: space-between; gap: 16px; margin: 0; padding: 12px clamp(18px, 3vw, 28px); border-bottom: 1.5px solid var(--text); background: var(--paper-2); }
.form-card .form { padding: clamp(20px, 3vw, 32px) clamp(18px, 3vw, 28px) clamp(22px, 3vw, 30px); }

/* Hero eyebrows are white on every page */
.page-hero .eyebrow { color: #e9eef1; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Page-specific helpers ---------- */
.showcase__frame--flush { margin: 0; }
.btn-row--spaced { margin-top: 32px; }
/* Dutch has long compound words ("evenementen"): smaller hero, and break a word rather than clip it. */
:lang(nl) .hero h1, :lang(nl) .page-hero .h-display--xl { font-size: clamp(2rem, 6.2vw, 5.6rem); }
.h-display { overflow-wrap: break-word; hyphens: manual; }
.stats strong { white-space: nowrap; }
.ribbon :focus-visible, .seq :focus-visible { outline-color: #fff; }
.video-play__meta { padding: 2px 7px; background: rgba(4, 20, 30, .8); border: 1px solid var(--line-inv-strong); border-radius: 2px; }
a.video-play { color: inherit; text-decoration: none; }
.video-frame video { object-fit: contain; background: #000; }
