/* Webshop+ redesign v2 (issue #33) - theme tokens, header, footer.
   Dark is the default; light overrides via html[data-theme="light"].
   Loaded AFTER main.css (Bootstrap) so inner pages inherit the theme until restyled. */

:root {
  --bg: #0D0D0C; --bg-rgb: 13,13,12;
  --ink: #F0EEE8; --ink-rgb: 240,238,232;
  --surface: #161614;
  --muted: #BAB7AF; --soft: #C9C6BE; --soft2: #E4E1DA; --dim: #8F8C85;
  --accent: #F75B26; --accent-hover: #FF7A4A; --accent-ink: #F75B26;
  --line: rgba(var(--ink-rgb), .1);
  --font-display: 'Syne', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 48px);
  color-scheme: dark;
}
html[data-theme="light"] {
  --bg: #FFFFFF; --bg-rgb: 255,255,255;
  --ink: #0D0D0C; --ink-rgb: 13,13,12;
  --surface: #F4F2EC;
  --muted: #5E5C56; --soft: #3A3935; --soft2: #2A2926; --dim: #6F6C66;
  --accent-ink: #BC3A0A;
  color-scheme: light;
}

/* Bridge to Bootstrap 5.3 variables so legacy inner pages follow the theme */
html[data-theme] body {
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--ink);
  --bs-body-bg-rgb: var(--bg-rgb);
  --bs-body-color-rgb: var(--ink-rgb);
  --bs-secondary-bg: var(--surface);
  --bs-tertiary-bg: var(--surface);
  --bs-border-color: rgba(var(--ink-rgb), .14);
  --bs-secondary-color: var(--muted);
  --bs-emphasis-color: var(--ink);
  --bs-link-color: var(--accent-ink);
  --bs-link-hover-color: var(--accent-hover);
  --bs-heading-color: var(--ink);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .3s, color .3s;
}
html { scroll-behavior: smooth; }
::selection { background: var(--accent); color: #0D0D0C; }
html[data-theme] .text-muted { color: var(--muted) !important; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: #0D0D0C; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(var(--bg-rgb), .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.site-header__bar { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; color: var(--ink); min-height: 44px; text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand__word { font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: -1.2px; }
.brand__plus { position: relative; width: 24px; height: 24px; display: block; transform: rotate(-8deg); }
.brand__plus::before, .brand__plus::after { content: ""; position: absolute; background: var(--accent); border-radius: 1.5px; }
.brand__plus::before { left: 0; top: 8.5px; width: 24px; height: 7px; }
.brand__plus::after { left: 8.5px; top: 0; width: 7px; height: 24px; }
.brand--lg .brand__word { font-size: 30px; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a, .site-nav .nav-btn { color: var(--ink); font-size: 15px; font-weight: 500; padding: 0 14px; height: 44px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; background: none; border: 0; text-decoration: none; }
.site-nav a:hover, .site-nav a.is-active, .site-nav .nav-btn:hover { color: var(--accent-ink); }
.nav-item { position: relative; }
.nav-caret { width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.nav-menu { display: none; position: absolute; top: 44px; left: -16px; width: 560px; padding-top: 14px; }
.nav-item:hover > .nav-menu, .nav-item:focus-within > .nav-menu { display: block; }
.nav-menu__panel { background: var(--surface); border: 1px solid rgba(var(--ink-rgb), .12); border-radius: 16px; padding: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.site-nav .nav-menu a { height: auto; padding: 14px 16px; border-radius: 10px; font-weight: 600; white-space: normal; }
.site-nav .nav-menu a:hover { background: rgba(var(--ink-rgb), .06); }

.cta-pill, .site-nav a.cta-pill { background: var(--accent); color: #0D0D0C; font-weight: 600; padding: 0 20px; height: 44px; border-radius: 999px; display: inline-flex; align-items: center; margin-left: 8px; text-decoration: none; white-space: nowrap; }
.cta-pill:hover, .site-nav a.cta-pill:hover { background: var(--accent-hover); color: #0D0D0C; }

.icon-btn { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(var(--ink-rgb), .25); background: none; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.icon-btn:hover { border-color: var(--accent); color: var(--accent-ink); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .i-sun { display: none; }
html[data-theme="light"] .theme-toggle .i-sun { display: block; }
html[data-theme="light"] .theme-toggle .i-moon { display: none; }
.nav-toggle { display: none; }
.site-header__mobile-actions { display: none; gap: 8px; align-items: center; }

.mobile-panel { display: none; border-top: 1px solid var(--line); padding: 12px var(--gutter) 28px; max-height: calc(100vh - 72px); overflow: auto; }
.mobile-panel.is-open { display: flex; flex-direction: column; }
.mobile-panel a { color: var(--ink); font-size: 18px; font-weight: 500; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; min-height: 44px; }
.mobile-panel a.sub { font-size: 15px; padding: 10px 0 10px 16px; color: var(--muted); }
.mobile-panel a.cta-pill { margin: 20px 0 0; justify-content: center; height: 52px; font-size: 16px; border: 0; color: #0D0D0C; }

@media (max-width: 991.98px) {
  .site-nav { display: none; }
  .site-header__mobile-actions { display: flex; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.site-footer__grid { max-width: var(--wrap); margin: 0 auto; padding: clamp(48px, 6vw, 80px) var(--gutter) 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 40px; }
.site-footer h3 { font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.site-footer a { color: var(--ink); font-size: 15px; text-decoration: none; display: inline-block; min-height: 32px; line-height: 32px; }
.site-footer a:hover { color: var(--accent-ink); }
.site-footer address { font-style: normal; font-size: 15px; line-height: 1.5; margin: 0 0 8px; }
.site-footer__tag { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-top: 14px; }
.site-footer__tag b { font-weight: 600; }
.site-footer__badges { display: flex; align-items: center; gap: 16px; margin-top: 18px; }
.site-footer__badges img { height: 36px; width: auto; display: block; }
.site-footer__bottom { max-width: var(--wrap); margin: 0 auto; padding: 20px var(--gutter) 32px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
.site-footer__bottom a { color: var(--muted); font-size: 13px; min-height: 0; line-height: 1.5; margin-left: 20px; }
.site-footer__bottom a:first-child { margin-left: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body { transition: none !important; }
}

/* ---------- Shared page building blocks ---------- */
.rd-wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.rd-section { padding-top: clamp(64px, 9vw, 128px); padding-bottom: clamp(64px, 9vw, 128px); }
.rd-section--line { border-top: 1px solid var(--line); }
.rd-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.rd-eyebrow--accent { color: var(--accent-ink); }
.rd-h1 { margin: 24px 0 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(44px, 8vw, 104px); line-height: 1.04; letter-spacing: -.015em; text-wrap: balance; color: var(--ink); }
.rd-h2 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(32px, 4.6vw, 60px); line-height: 1.1; letter-spacing: -.012em; text-wrap: balance; color: var(--ink); }
.rd-h1 em, .rd-h2 em { font-style: normal; color: var(--accent-ink); }
.rd-lead { margin: 24px 0 0; max-width: 560px; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--soft); }
.rd-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: clamp(28px, 4vw, 52px); }
.rd-link { color: var(--accent-ink); font-weight: 600; font-size: 16px; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.rd-link:hover { color: var(--accent-hover); }

.rd-btn { display: inline-flex; align-items: center; justify-content: center; height: 54px; padding: 0 28px; border-radius: 999px; font-size: 16px; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.rd-btn--primary { background: var(--accent); color: #0D0D0C; }
.rd-btn--primary:hover { background: var(--accent-hover); color: #0D0D0C; }
.rd-btn--ghost { border-color: rgba(var(--ink-rgb), .3); color: var(--ink); background: none; font-weight: 500; }
.rd-btn--ghost:hover { border-color: var(--accent); color: var(--accent-ink); }

/* hero */
.rd-hero { border-bottom: 1px solid var(--line); }
.rd-hero__inner { max-width: 1040px; margin: 0 auto; padding: clamp(48px, 8vw, 112px) var(--gutter) clamp(40px, 5vw, 64px); display: flex; flex-direction: column; align-items: center; text-align: center; }
.rd-hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.rd-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px clamp(28px, 5vw, 64px); margin-top: clamp(36px, 5vw, 64px); padding-top: 24px; border-top: 1px solid rgba(var(--ink-rgb), .12); width: 100%; color: var(--muted); font-size: 15px; }
.rd-stats strong { color: var(--ink); font-size: 18px; margin-right: 4px; }

/* trust logos */
.rd-trust { border-bottom: 1px solid var(--line); }
.rd-trust__inner { display: flex; flex-direction: column; align-items: center; gap: 20px; padding-top: 32px; padding-bottom: 32px; }
.rd-trust__logos { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 14px; }
.rd-logo { height: 76px; padding: 12px 16px; background: #fff; border: 1px solid rgba(13,13,12,.08); border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.rd-logo img { width: 100%; height: 100%; object-fit: contain; }

/* cards */
.rd-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.rd-card { display: flex; flex-direction: column; gap: 16px; border-radius: 24px; padding: clamp(28px, 3.4vw, 44px); min-height: 340px; text-decoration: none; background: var(--surface); color: var(--ink); border: 1px solid rgba(var(--ink-rgb), .12); transition: border-color .2s; }
.rd-card:hover { border-color: var(--accent); color: var(--ink); }
.rd-card--accent { background: var(--accent); color: #0D0D0C; border-color: var(--accent); }
.rd-card--accent:hover { color: #0D0D0C; border-color: var(--accent); }
.rd-card__kicker { font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent-ink); }
.rd-card--accent .rd-card__kicker { color: #0D0D0C; }
.rd-card__title { font-weight: 600; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.18; letter-spacing: -.01em; }
.rd-card__text { font-size: 16px; line-height: 1.65; max-width: 34em; color: var(--soft); }
.rd-card--accent .rd-card__text { color: #0D0D0C; }
.rd-card__more { margin-top: auto; font-weight: 600; font-size: 15px; color: var(--accent-ink); }
.rd-card--accent .rd-card__more { color: #0D0D0C; }

/* list rows (services) */
.rd-rows { border-top: 1px solid rgba(var(--ink-rgb), .12); }
.rd-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto; gap: 16px 32px; align-items: center; padding: 28px 0; border-bottom: 1px solid rgba(var(--ink-rgb), .12); color: var(--ink); text-decoration: none; }
.rd-row:hover { color: var(--accent-ink); }
.rd-row__name { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 2.4vw, 32px); }
.rd-row__desc { font-size: 16px; line-height: 1.6; color: var(--soft); }
.rd-row__desc p { margin: 0; }
.rd-row__arrow { font-size: 24px; color: var(--accent-ink); }
@media (max-width: 767.98px) { .rd-row { grid-template-columns: 1fr auto; } .rd-row__desc { grid-column: 1 / -1; order: 3; } }

/* projects */
.rd-proj { display: flex; flex-direction: column; gap: 12px; color: var(--ink); text-decoration: none; }
.rd-proj__img { aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: var(--surface); }
.rd-proj__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.rd-proj:hover .rd-proj__img img { transform: scale(1.03); }
.rd-proj:hover { color: var(--ink); }
.rd-proj__cat { font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent-ink); }
.rd-proj__name { font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1.2; }
.rd-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 28px 20px; }

/* process */
.rd-steps { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); margin-top: clamp(28px, 4vw, 52px); }
.rd-step { border-top: 1px solid rgba(var(--ink-rgb), .2); padding-top: 20px; }
.rd-step__n { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--accent-ink); }
.rd-step h3 { font-family: var(--font-body); font-size: 22px; font-weight: 600; margin: 10px 0 8px; color: var(--ink); }
.rd-step p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--soft); }

/* testimonials */
.rd-quote { margin: 0; background: var(--surface); border: 1px solid rgba(var(--ink-rgb), .1); border-radius: 20px; padding: clamp(24px, 2.6vw, 36px); display: flex; flex-direction: column; gap: 24px; }
.rd-quote blockquote { margin: 0; font-size: 17px; line-height: 1.6; color: var(--soft2); text-wrap: pretty; }
.rd-quote figcaption { margin-top: auto; }
.rd-quote figcaption b { display: block; font-weight: 600; color: var(--ink); }
.rd-quote figcaption span { font-size: 14px; color: var(--muted); }

/* final CTA */
.rd-cta { background: var(--accent); color: #0D0D0C; border-radius: 28px; padding: clamp(36px, 6vw, 80px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.rd-cta h2 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3.6vw, 48px); line-height: 1.1; max-width: 16em; }
.rd-cta p { margin: 12px 0 0; font-size: 18px; }
.rd-cta .rd-btn { background: #0D0D0C; color: #F0EEE8; }
.rd-cta .rd-btn:hover { background: #26241f; color: #fff; }

/* scroll reveal (only active when JS has run; respects reduced motion) */
html.js .rv { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--d, 0ms); }
html.js .rv.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .rv { opacity: 1; transform: none; transition: none; } }

/* ======================================================================
   Legacy component theming (Bootstrap-era views restyled via tokens)
   ====================================================================== */
html[data-theme] .bg-light, html[data-theme] .bg-white { background-color: var(--bg) !important; }
html[data-theme] .bg-light-orange { background: rgba(247, 91, 38, .06); }
html[data-theme] .text-dark { color: var(--ink) !important; }
html[data-theme] [style*="#1a1a2e"] { color: var(--ink) !important; }
html[data-theme] #main-content a:not([class]) { color: var(--accent-ink); }
html[data-theme] #main-content a:not([class]):hover { color: var(--accent-hover); }
html[data-theme] .container { max-width: var(--wrap); padding-left: var(--gutter); padding-right: var(--gutter); }

/* page header */
html[data-theme] .page-header { background: transparent; border-bottom: 1px solid var(--line); padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 4vw, 56px); }
html[data-theme] .page-header .container { max-width: var(--wrap); padding-left: var(--gutter); padding-right: var(--gutter); }
html[data-theme] .page-header h1, html[data-theme] .page-header .h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(36px, 6vw, 72px); line-height: 1.06; letter-spacing: -.015em; color: var(--ink); text-wrap: balance; margin: 8px 0 12px; }
html[data-theme] .page-header h1 span { color: var(--accent-ink); }
html[data-theme] .page-header p { color: var(--soft); font-size: clamp(17px, 1.6vw, 20px); max-width: 44em; line-height: 1.6; }
html[data-theme] .page-header a { color: var(--muted); }
html[data-theme] .page-header a:hover { color: var(--accent-ink); }
html[data-theme] .page-header .breadcrumb-item.active { color: var(--ink) !important; }
html[data-theme] .page-header .breadcrumb-item + .breadcrumb-item::before { color: var(--dim); }
html[data-theme] .page-header .tag { background: none; border: 0; color: var(--accent-ink); padding: 0; }

/* section headings/badges */
html[data-theme] .section-badge { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--accent-ink); background: none; border: 0; padding: 0; }
html[data-theme] .section-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 4vw, 52px); line-height: 1.1; letter-spacing: -.012em; color: var(--ink); }
html[data-theme] .section-title span { color: var(--accent-ink); }
html[data-theme] .section-subtitle { color: var(--soft); }
html[data-theme] .divider-orange { border-top-color: var(--accent); }

/* cards */
html[data-theme] .service-card, html[data-theme] .testimonial-card, html[data-theme] .project-card, html[data-theme] .card { background: var(--surface); color: var(--ink); border: 1px solid rgba(var(--ink-rgb), .12); border-radius: 20px; box-shadow: none; }
html[data-theme] .service-card:hover, html[data-theme] .project-card:hover { border-color: var(--accent); box-shadow: none; }
html[data-theme] .service-card h3, html[data-theme] .service-card h4, html[data-theme] .testimonial-card strong, html[data-theme] .project-card .project-body h5, html[data-theme] .process-step h5 { color: var(--ink); }
html[data-theme] .service-card p, html[data-theme] .testimonial-card p, html[data-theme] .process-step p, html[data-theme] .testimonial-card .author span { color: var(--soft); }
html[data-theme] .service-card .card-link, html[data-theme] .project-card .project-body .tag, html[data-theme] .tag { color: var(--accent-ink); }
html[data-theme] .tag { background: rgba(247, 91, 38, .1); border-color: rgba(247, 91, 38, .3); }
html[data-theme] .project-img { background: var(--surface); }
html[data-theme] .card-header, html[data-theme] .card-footer { background: transparent; border-color: var(--line); }
html[data-theme] .process-step .step-num { background: rgba(247, 91, 38, .14); color: var(--accent-ink); }

/* buttons */
html[data-theme] .btn { border-radius: 999px; font-weight: 600; }
html[data-theme] .btn-primary { --bs-btn-color: #0D0D0C; --bs-btn-bg: var(--accent); --bs-btn-border-color: var(--accent); --bs-btn-hover-color: #0D0D0C; --bs-btn-hover-bg: var(--accent-hover); --bs-btn-hover-border-color: var(--accent-hover); --bs-btn-active-color: #0D0D0C; --bs-btn-active-bg: var(--accent-hover); --bs-btn-active-border-color: var(--accent-hover); --bs-btn-disabled-color: #0D0D0C; --bs-btn-disabled-bg: var(--accent); --bs-btn-disabled-border-color: var(--accent); }
html[data-theme] .btn-outline-primary, html[data-theme] .btn-outline-secondary, html[data-theme] .btn-outline-light { --bs-btn-color: var(--ink); --bs-btn-border-color: rgba(var(--ink-rgb), .3); --bs-btn-hover-color: #0D0D0C; --bs-btn-hover-bg: var(--accent); --bs-btn-hover-border-color: var(--accent); --bs-btn-active-color: #0D0D0C; --bs-btn-active-bg: var(--accent); --bs-btn-active-border-color: var(--accent); font-weight: 500; }
html[data-theme] .btn-light { --bs-btn-color: #0D0D0C; --bs-btn-bg: #0D0D0C; --bs-btn-border-color: #0D0D0C; --bs-btn-hover-bg: #26241f; --bs-btn-hover-border-color: #26241f; --bs-btn-hover-color: #fff; color: #F0EEE8; }
html[data-theme] .cta-banner .btn-light { color: #F0EEE8 !important; }

/* CTA banner -> accent block */
html[data-theme] .cta-banner { background: var(--accent); color: #0D0D0C; border-radius: 28px; overflow: hidden; }
html[data-theme] .cta-banner h2, html[data-theme] .cta-banner p { color: #0D0D0C; }
html[data-theme] .cta-shape { display: none; }

/* forms */
html[data-theme] .form-label { color: var(--ink); }
html[data-theme] .form-control, html[data-theme] .form-select { background-color: var(--bg); color: var(--ink); border: 1px solid rgba(var(--ink-rgb), .22); border-radius: 12px; }
html[data-theme] .form-control::placeholder { color: var(--dim); }
html[data-theme] .form-control:focus, html[data-theme] .form-select:focus { background-color: var(--bg); color: var(--ink); border-color: var(--accent); box-shadow: 0 0 0 .25rem rgba(247, 91, 38, .18); }
html[data-theme] .form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }
html[data-theme] .alert-success { background: rgba(46, 160, 67, .12); border-color: rgba(46, 160, 67, .4); color: var(--ink); }
html[data-theme] .alert-danger { background: rgba(220, 53, 69, .12); border-color: rgba(220, 53, 69, .4); color: var(--ink); }

/* misc */
html[data-theme] hr { border-color: var(--line); opacity: 1; }
html[data-theme] .breadcrumb a { color: var(--muted); }
html[data-theme] .table { --bs-table-bg: transparent; --bs-table-color: var(--ink); --bs-table-border-color: var(--line); }

/* fixes */
.site-footer a.brand { display: inline-flex; min-height: 44px; line-height: 1; }
html[data-theme] .service-icon { width: 52px; height: 52px; border-radius: 14px; background: rgba(247, 91, 38, .14); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; margin-bottom: 1.2rem; }
html[data-theme] .service-icon svg { width: 26px; height: 26px; }
html[data-theme] [style*="color:#008ee0"] { color: var(--accent-ink) !important; }
html[data-theme] [style*="color:#999"] { color: var(--muted) !important; }

/* Admin-authored HTML (services/projects/pages) ships its own LIGHT design (white cards,
   dark text). In dark theme keep it on a light "paper" panel with a fixed light palette. */
html[data-theme="dark"] .legacy-content { --bs-body-color: #212529; --bs-body-color-rgb: 33,37,41; --bs-heading-color: #1a1a2e; --bs-secondary-color: #6c757d; --bs-border-color: #dee2e6; color: #212529; background: #fff; border-radius: 24px; padding: clamp(20px, 3vw, 40px); }
html[data-theme="dark"] .legacy-content .text-muted { color: #6c757d !important; }
html[data-theme="dark"] .legacy-content a:not([class]) { color: #BC3A0A; }

/* testimonial author + stars (referenties) */
.testimonial-card { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 2.6vw, 32px); }
.testimonial-card p { margin: 0; font-style: normal; font-size: 16px; line-height: 1.6; }
.testimonial-card .stars { color: #F5B301; letter-spacing: 2px; font-size: 15px; }
.t-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.t-author .avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.t-author strong { display: block; color: var(--ink); font-weight: 600; }
.t-author span { display: block; font-size: 14px; color: var(--muted); }

/* Always-dark pages (404, bedankt): restore the dark tokens inside the light theme */
.force-dark { --bs-body-color: #F0EEE8; --bs-body-color-rgb: 240,238,232; --bs-heading-color: #F0EEE8; --bs-secondary-color: #BAB7AF; --ink: #F0EEE8; --ink-rgb: 240,238,232; --muted: #BAB7AF; --soft: #C9C6BE; --surface: #161614; color: #F0EEE8; }

/* ======================================================================
   Design pages (diensten, dienst, projecten, project, over-ons, contact)
   ====================================================================== */
.rd-pagehero { padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(40px, 5vw, 64px); }
.rd-pagehero--tight { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(32px, 4vw, 56px); }
.rd-h1--page { font-size: clamp(40px, 6.4vw, 88px); max-width: 12em; margin-top: 20px; }
.rd-pagehero .rd-lead { max-width: 620px; margin-top: 28px; line-height: 1.65; }
.rd-back { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 15px; text-decoration: none; }
.rd-back:hover { color: var(--ink); }
.rd-crumb { font-size: 13px; color: var(--muted); }
.rd-crumb a { color: var(--muted); text-decoration: none; }
.rd-crumb a:hover { color: var(--accent-ink); }
.rd-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* filter chips */
.rd-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.rd-chip { height: 44px; padding: 0 20px; border-radius: 999px; font-size: 15px; font-weight: 500; border: 1px solid rgba(var(--ink-rgb), .25); background: none; color: var(--ink); cursor: pointer; }
.rd-chip:hover { border-color: var(--accent); }
.rd-chip.is-active { background: var(--accent); border-color: var(--accent); color: #0D0D0C; }

/* services list */
.rd-svclist { border-top: 1px solid rgba(var(--ink-rgb), .12); }
.rd-svc { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 32px; padding: clamp(24px, 3vw, 40px) 0; border-bottom: 1px solid rgba(var(--ink-rgb), .12); color: var(--ink); text-decoration: none; }
.rd-svc:hover { color: var(--accent-ink); }
.rd-svc__num { font-size: 13px; font-weight: 600; letter-spacing: 1.5px; color: var(--muted); width: 44px; }
.rd-svc__name { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 3.4vw, 46px); letter-spacing: -.02em; flex: 1 1 260px; }
.rd-svc__body { flex: 2 1 320px; display: flex; flex-direction: column; gap: 8px; }
.rd-svc__desc { font-size: 16px; line-height: 1.65; color: var(--soft); }
.rd-svc__tag { font-size: 14px; font-weight: 600; color: var(--accent-ink); }
.rd-svc__arrow { font-size: 20px; color: var(--accent-ink); }

/* benefits */
.rd-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: clamp(28px, 3.4vw, 48px); }
.rd-feature__bar { width: 36px; height: 4px; background: var(--accent); border-radius: 2px; }
.rd-feature h3 { margin: 20px 0 10px; font-family: var(--font-body); font-weight: 600; font-size: 24px; color: var(--ink); }
.rd-feature p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); }

/* light quote band (same in both themes, as in the design) */
.rd-band { background: #F0EEE8; color: #0D0D0C; }
.rd-band figure { max-width: 1000px; margin: 0 auto; padding: clamp(64px, 9vw, 128px) var(--gutter); }
.rd-band blockquote { margin: 0; font-weight: 500; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.35; letter-spacing: -.005em; text-wrap: pretty; color: #0D0D0C; }
.rd-band figcaption { margin-top: 28px; font-size: 16px; color: #0D0D0C; }
.rd-band figcaption span { color: #5E5C56; }

/* FAQ */
.rd-faq { border-top: 1px solid rgba(var(--ink-rgb), .12); max-width: 860px; }
.rd-faq details { border-bottom: 1px solid rgba(var(--ink-rgb), .12); }
.rd-faq summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: clamp(17px, 1.6vw, 20px); font-weight: 500; min-height: 44px; color: var(--ink); }
.rd-faq summary::-webkit-details-marker { display: none; }
.rd-faq summary::after { content: "+"; color: var(--accent-ink); font-size: 24px; line-height: 1; }
.rd-faq details[open] summary::after { content: "\2013"; }
.rd-faq details p { margin: 0; padding: 0 0 24px; max-width: 640px; font-size: 16px; line-height: 1.6; color: var(--muted); }

/* prose (existing SEO text, reduced to readable copy) */
.rd-prose { max-width: 760px; color: var(--soft); font-size: 17px; line-height: 1.7; }
.rd-prose h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15; letter-spacing: -.01em; margin: 2.2em 0 .6em; color: var(--ink); }
.rd-prose h2:first-child { margin-top: 0; }
.rd-prose h3 { font-family: var(--font-body); font-weight: 600; font-size: 22px; margin: 1.8em 0 .4em; color: var(--ink); }
.rd-prose p { margin: 0 0 1em; }
.rd-prose ul, .rd-prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.rd-prose li { margin-bottom: .4em; }
.rd-prose a { color: var(--accent-ink); }

/* closing band (accent) */
.rd-final { background: var(--accent); color: #0D0D0C; }
.rd-final__inner { max-width: var(--wrap); margin: 0 auto; padding: clamp(64px, 9vw, 128px) var(--gutter); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.rd-final h2 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(36px, 5.6vw, 80px); line-height: 1.06; letter-spacing: -.015em; max-width: 10em; text-wrap: balance; color: #0D0D0C; }
.rd-final p { margin: 0; font-size: 18px; line-height: 1.5; max-width: 320px; color: #0D0D0C; }
.rd-final__side { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.rd-final .rd-btn { background: #0D0D0C; color: #F0EEE8; }
.rd-final .rd-btn:hover { background: #26241f; color: #fff; }

/* lead form panel (dienst + project + contact) */
.rd-formgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(40px, 6vw, 96px); align-items: start; }
.rd-panel { background: var(--surface); border: 1px solid rgba(var(--ink-rgb), .12); border-radius: 24px; padding: clamp(24px, 3.4vw, 44px); }
.rd-panel h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 2.4vw, 30px); margin: 0 0 20px; color: var(--ink); }
.rd-form { display: flex; flex-direction: column; gap: 18px; }
.rd-form label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.rd-form label small { font-weight: 400; color: var(--muted); }
.rd-form .form-control { height: 52px; font-size: 16px; padding: 0 16px; }
.rd-form textarea.form-control { height: auto; padding: 14px 16px; line-height: 1.5; }
.rd-form .rd-btn { width: 100%; }
.rd-hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rd-contactlist { margin-top: 48px; display: flex; flex-direction: column; border-top: 1px solid rgba(var(--ink-rgb), .12); }
.rd-contactlist > * { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(var(--ink-rgb), .12); color: var(--ink); font-size: 18px; text-decoration: none; }
.rd-contactlist span:first-child { color: var(--muted); }
.rd-contactlist span:last-child { text-align: right; }
.rd-topics-label { font-size: 14px; font-weight: 600; margin-bottom: 10px; color: var(--ink); }
.rd-topics { display: flex; flex-wrap: wrap; gap: 8px; }
.rd-topics .rd-chip { height: 44px; padding: 0 16px; font-size: 14px; }

/* projects */
.rd-pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(24px, 3vw, 40px); }
.rd-pcard { display: flex; flex-direction: column; gap: 16px; color: var(--ink); text-decoration: none; }
.rd-pcard:hover { color: var(--ink); }
.rd-pcard__img { display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid rgba(var(--ink-rgb), .1); }
.rd-pcard__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.rd-pcard:hover .rd-pcard__img img { transform: scale(1.03); }
.rd-pcard__cat { font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent-ink); }
.rd-pcard__title { font-weight: 600; font-size: 26px; line-height: 1.15; letter-spacing: -.01em; }
.rd-pcard__more { font-size: 15px; font-weight: 600; color: var(--muted); }
.rd-pcard:hover .rd-pcard__more { color: var(--accent-ink); }
.rd-pcard--form { background: var(--surface); border: 1px solid rgba(var(--ink-rgb), .12); border-radius: 18px; padding: 24px; }
.rd-hero-img { margin-top: clamp(32px, 4vw, 56px); width: 100%; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: var(--surface); border: 1px solid rgba(var(--ink-rgb), .1); }
.rd-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rd-detail { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(32px, 4vw, 64px); }
.rd-detail__main { grid-column: span 2; min-width: 0; max-width: 680px; }
@media (max-width: 700px) { .rd-detail__main { grid-column: auto; } }
.rd-dl { margin: 0; display: flex; flex-direction: column; gap: 20px; font-size: 16px; }
.rd-dl dt { font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.rd-dl dd { margin: 6px 0 0; color: var(--ink); }
.rd-dl dd a { color: var(--accent-ink); }
.rd-mini { display: flex; flex-direction: column; gap: 14px; color: var(--ink); text-decoration: none; }
.rd-mini:hover { color: var(--ink); }
.rd-mini__img { display: block; width: 100%; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; background: var(--surface); }
.rd-mini__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rd-mini__title { font-weight: 600; font-size: 22px; line-height: 1.15; }

/* about */
.rd-about { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(32px, 5vw, 80px); align-items: start; }
.rd-about__team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rd-person { margin: 0; }
.rd-person__img { aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: var(--surface); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 48px; color: var(--accent-ink); border: 1px solid rgba(var(--ink-rgb), .1); }
.rd-person__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rd-person figcaption { margin-top: 10px; font-size: 15px; line-height: 1.35; }
.rd-person figcaption b { display: block; color: var(--ink); font-weight: 600; }
.rd-person figcaption span { color: var(--muted); font-size: 14px; }
.rd-about__text { display: flex; flex-direction: column; gap: 24px; }
.rd-about__lead { margin: 0; font-weight: 500; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.3; letter-spacing: -.005em; text-wrap: pretty; color: var(--ink); }
.rd-about__text p { margin: 0; font-size: 18px; line-height: 1.65; color: var(--soft); }
.rd-facts { display: flex; flex-wrap: wrap; gap: 16px clamp(32px, 5vw, 64px); margin-top: 16px; padding-top: 28px; border-top: 1px solid rgba(var(--ink-rgb), .12); }
.rd-fact b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 40px; color: var(--ink); }
.rd-fact span { font-size: 14px; color: var(--muted); }

/* small fixes */
.rd-form label > span small { font-weight: 400; color: var(--muted); }
html[data-theme] #main-content .rd-contactlist a { color: var(--ink); }
html[data-theme] #main-content .rd-contactlist a:hover { color: var(--accent-ink); }
.rd-teamlist { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 40px; }
.rd-teamlist li { font-size: 18px; color: var(--ink); }
.rd-teamlist b { font-weight: 600; margin-right: 8px; }
.rd-teamlist span { color: var(--muted); font-size: 15px; }

/* ======================================================================
   Campaign page (website-binnen-1-werkdag)
   ====================================================================== */
.rd-herogrid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
@media (max-width: 899.98px) { .rd-herogrid { grid-template-columns: 1fr; } }
.rd-note { margin: 20px 0 0; font-size: 15px; color: var(--muted); max-width: 520px; line-height: 1.55; }
.rd-price { background: var(--surface); border: 1px solid rgba(var(--ink-rgb), .12); border-radius: 24px; padding: clamp(24px, 3vw, 40px); }
.rd-price__from { font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.rd-price__amt { font-family: var(--font-display); font-weight: 700; font-size: clamp(36px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -.02em; color: var(--ink); margin-top: 8px; }
.rd-price__vat { margin: 8px 0 20px; font-size: 15px; color: var(--muted); }
.rd-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.rd-checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.5; color: var(--soft); }
.rd-checks li svg { flex: none; width: 18px; height: 18px; margin-top: 3px; stroke: var(--accent-ink); }
.rd-checks li b { display: block; color: var(--ink); font-weight: 600; }
.rd-checks--plus li svg { stroke: var(--muted); }
.rd-checks--grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px 40px; }
.rd-facts-row { display: flex; flex-wrap: wrap; gap: 10px 36px; padding-top: 20px; padding-bottom: 20px; font-size: 15px; color: var(--muted); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rd-facts-row b { color: var(--ink); font-weight: 600; }
.rd-secthead { max-width: 720px; margin-bottom: clamp(28px, 4vw, 52px); }
.rd-secthead .rd-lead { margin-top: 20px; }
.rd-pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(28px, 4vw, 64px); background: var(--surface); border: 1px solid rgba(var(--ink-rgb), .12); border-radius: 24px; padding: clamp(28px, 4vw, 56px); }
.rd-pricing h2 { margin: 0 0 16px; font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 3vw, 40px); line-height: 1.12; color: var(--ink); }
.rd-pricing p { margin: 0; font-size: 17px; line-height: 1.65; color: var(--soft); }
.rd-pricing h3 { font-family: var(--font-body); font-size: 15px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.rd-cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(24px, 3vw, 40px); }
.rd-case p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--soft); }
.rd-tag { display: inline-flex; align-self: flex-start; font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent-ink); }
.rd-lead-wrap { max-width: 760px; margin: 0 auto; }
.rd-fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.rd-fieldset legend { font-size: 14px; font-weight: 600; margin-bottom: 10px; padding: 0; color: var(--ink); float: none; width: auto; }
.rd-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.rd-opt { position: relative; }
.rd-opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.rd-opt span { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 999px; font-size: 15px; font-weight: 500; border: 1px solid rgba(var(--ink-rgb), .25); color: var(--ink); background: none; }
.rd-opt input:checked + span { background: var(--accent); border-color: var(--accent); color: #0D0D0C; }
.rd-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.rd-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.rd-fields .span2 { grid-column: 1 / -1; }
@media (max-width: 600px) { .rd-fields { grid-template-columns: 1fr; } }
.rd-fields label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.rd-fields label small { font-weight: 400; color: var(--muted); }
.rd-fields .form-control { height: 52px; font-size: 16px; padding: 0 16px; }
.rd-fields textarea.form-control { height: auto; padding: 14px 16px; line-height: 1.5; }
.rd-privacy { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.rd-privacy a { color: var(--accent-ink); }
.rd-err { background: rgba(220, 53, 69, .12); border: 1px solid rgba(220, 53, 69, .4); border-radius: 12px; padding: 14px 18px; margin-bottom: 20px; font-size: 15px; color: var(--ink); }
.rd-err ul { margin: 6px 0 0; padding-left: 1.2em; }
.rd-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: rgba(var(--bg-rgb), .96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 12px var(--gutter); display: flex; gap: 10px; transform: translateY(110%); transition: transform .3s; }
.rd-sticky.on { transform: none; }
.rd-sticky .rd-btn { flex: 1; height: 48px; padding: 0 16px; font-size: 15px; }
.rd-sticky a.tel { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(var(--ink-rgb), .3); display: flex; align-items: center; justify-content: center; color: var(--ink); }
.rd-sticky a.tel svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; }
@media (min-width: 900px) { .rd-sticky { display: none; } }

/* ======================================================================
   /p/ pages
   ====================================================================== */
/* /p/ pages */
.rd-pagegrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: clamp(40px, 6vw, 96px); align-items: start; }
.rd-pagegrid--single { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 991.98px) { .rd-pagegrid { grid-template-columns: 1fr; } }
.rd-pagegrid .rd-panel { position: sticky; top: 96px; }
.rd-prose--wide { max-width: 820px; }

/* ---------- Thank-you page (/bedankt) ---------- */
.rd-ty { padding: clamp(56px, 9vw, 120px) 0 clamp(64px, 9vw, 128px); }
.rd-ty__inner { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); text-align: center; display: flex; flex-direction: column; align-items: center; }
.rd-ty__check { width: 88px; height: 88px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(247,91,38,.14), 0 0 0 22px rgba(247,91,38,.07); animation: rd-ty-pop .6s cubic-bezier(.2,1.4,.4,1) both; }
.rd-ty__check svg { width: 42px; height: 42px; }
.rd-ty__check path { stroke: #0D0D0C; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; fill: none; stroke-dasharray: 40; stroke-dashoffset: 40; animation: rd-ty-draw .5s .45s ease-out forwards; }
@keyframes rd-ty-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes rd-ty-draw { to { stroke-dashoffset: 0; } }
.rd-ty .rd-eyebrow { margin-top: 44px; }
.rd-ty .rd-h1 { margin-top: 18px; font-size: clamp(38px, 5.4vw, 68px); }
.rd-ty .rd-lead { margin-left: auto; margin-right: auto; }
.rd-ty__steps { list-style: none; margin: 48px 0 0; padding: 0; width: 100%; display: grid; gap: 12px; text-align: left; counter-reset: ty; }
.rd-ty__steps li { counter-increment: ty; display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; background: var(--surface); border: 1px solid rgba(var(--ink-rgb), .1); border-radius: 20px; padding: 20px 24px; }
.rd-ty__steps li::before { content: counter(ty); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 18px; background: rgba(247,91,38,.14); color: var(--accent-ink); }
.rd-ty__steps strong { display: block; font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--ink); margin-top: 2px; }
.rd-ty__steps span { display: block; margin-top: 4px; font-size: 16px; line-height: 1.5; color: var(--muted); }
.rd-ty__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
@media (prefers-reduced-motion: reduce) { .rd-ty__check, .rd-ty__check path { animation: none; stroke-dashoffset: 0; } }

/* ---------- Team carousel (#64) ---------- */
.rd-teamhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(24px, 3vw, 40px); }
.rd-carousel__nav { display: flex; gap: 10px; flex-shrink: 0; }
.rd-carousel__btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(var(--ink-rgb), .3); background: none; color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: border-color .2s, color .2s; }
.rd-carousel__btn:hover { border-color: var(--accent); color: var(--accent-ink); }
.rd-carousel { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 0; padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: rgba(var(--ink-rgb), .25) transparent; outline-offset: 4px; }
.rd-carousel__item { flex: 0 0 calc((100% - 48px) / 4); scroll-snap-align: start; min-width: 0; }
@media (max-width: 960px) { .rd-carousel__item { flex-basis: calc((100% - 16px) / 2.3); } }
@media (max-width: 560px) { .rd-carousel__item { flex-basis: 68%; } }
@media (prefers-reduced-motion: no-preference) { .rd-carousel { scroll-behavior: smooth; } }
.rd-about { grid-template-columns: minmax(0, 820px); }

/* ---------- Referenties page ---------- */
.rd-refs { columns: 3 320px; column-gap: 16px; }
.rd-ref { break-inside: avoid; margin-bottom: 16px; }
.rd-ref__stars { color: var(--accent); letter-spacing: 3px; font-size: 16px; }
.rd-ref figcaption { display: flex; align-items: center; gap: 12px; margin-top: 0; }
.rd-ref figcaption b { display: block; }
.rd-ref__avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 16px; background: rgba(247,91,38,.14); color: var(--accent-ink); }

/* ---------- Projecten: cards aligned with referenties ---------- */
.rd-pgrid { gap: 16px; }
.rd-pcard { height: 100%; background: var(--surface); border: 1px solid rgba(var(--ink-rgb), .1); border-radius: 20px; padding: 12px 12px 24px; gap: 12px; transition: border-color .2s; }
.rd-pcard:hover { border-color: var(--accent); }
.rd-pcard__img { border-radius: 12px; }
.rd-pcard__cat, .rd-pcard__title, .rd-pcard__more { padding: 0 12px; }
.rd-pcard__title { font-size: 22px; }
.rd-pcard__more { margin-top: auto; }

/* ---------- 404 ---------- */
.rd-nf { padding: clamp(56px, 9vw, 120px) 0 clamp(64px, 9vw, 128px); }
.rd-nf__inner { max-width: 820px; margin: 0 auto; padding: 0 var(--gutter); text-align: center; display: flex; flex-direction: column; align-items: center; }
.rd-nf__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(110px, 22vw, 240px); line-height: .9; letter-spacing: -.04em; color: var(--accent); margin-bottom: 24px; }
.rd-nf .rd-h1 { margin-top: 18px; font-size: clamp(36px, 5vw, 64px); }
.rd-nf .rd-lead { margin-left: auto; margin-right: auto; }
.rd-nf__links { width: 100%; margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; text-align: left; }
.rd-nf__links .rd-mini { display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid rgba(var(--ink-rgb), .1); border-radius: 20px; padding: 20px 24px; text-decoration: none; color: var(--ink); transition: border-color .2s; }
.rd-nf__links .rd-mini:hover { border-color: var(--accent); }
.rd-nf__links .rd-pcard__more { padding: 0; margin-top: 0; font-size: 14px; }

/* ---------- AI chat (/vragen) ---------- */
.rd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rd-chat { max-width: 820px; background: var(--surface); border: 1px solid rgba(var(--ink-rgb), .12); border-radius: 24px; padding: clamp(16px, 2.4vw, 28px); display: flex; flex-direction: column; gap: 14px; }
.rd-chat__log { display: flex; flex-direction: column; gap: 10px; max-height: 60vh; overflow-y: auto; }
.rd-chat__msg { max-width: 88%; border-radius: 18px; padding: 12px 16px; font-size: 16px; line-height: 1.55; }
.rd-chat__msg p { margin: 0; white-space: pre-wrap; }
.rd-chat__msg--user { align-self: flex-end; background: var(--accent); color: #0D0D0C; border-bottom-right-radius: 6px; }
.rd-chat__msg--bot { align-self: flex-start; background: rgba(var(--ink-rgb), .07); color: var(--ink); border-bottom-left-radius: 6px; }
.rd-chat__msg.is-typing { opacity: .6; }
.rd-chat__choices { display: flex; flex-wrap: wrap; gap: 8px; }
.rd-chat__choices:empty { display: none; }
.rd-chat__estimate { align-self: stretch; border: 1px solid var(--accent); border-radius: 18px; padding: 16px 18px; background: rgba(247,91,38,.08); }
.rd-chat__estimate b { display: block; font-family: var(--font-display); font-size: 22px; color: var(--ink); }
.rd-chat__estimate p { margin: 8px 0 6px; color: var(--soft); font-size: 15px; line-height: 1.5; }
.rd-chat__estimate small { color: var(--muted); }
.rd-chat__lead { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.rd-chat__leadform { display: flex; flex-direction: column; gap: 10px; border: 1px solid rgba(var(--ink-rgb), .14); border-radius: 18px; padding: 16px; }
.rd-chat__leadform p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--soft); }
.rd-chat__leadform input[type=email], .rd-chat__leadform input[type=tel] { height: 48px; border-radius: 12px; border: 1px solid rgba(var(--ink-rgb), .25); background: var(--bg); color: var(--ink); padding: 0 14px; font: inherit; }
.rd-chat__leadform .rd-btn { height: 48px; }
.rd-chat__err { color: #ff6b6b; }
.rd-chat__form { display: flex; gap: 10px; align-items: flex-end; }
.rd-chat__form textarea { flex: 1; min-height: 56px; resize: vertical; border-radius: 16px; border: 1px solid rgba(var(--ink-rgb), .25); background: var(--bg); color: var(--ink); padding: 14px 16px; font: inherit; font-size: 16px; }
.rd-chat__form textarea:focus, .rd-chat__leadform input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.rd-chat__note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.rd-chat__note a { color: var(--accent-ink); }
.rd-qa__q { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.25; color: var(--ink); }
.rd-qa__x { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.rd-qa__a { border-top: 1px solid var(--line); padding-top: 14px; }
.rd-qa__a b { display: block; font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 6px; }
.rd-qa__a p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--soft2); }
@media (max-width: 560px) { .rd-chat__form { flex-direction: column; align-items: stretch; } .rd-chat__msg { max-width: 96%; } }
.rd-hero__ask { width: 100%; max-width: 640px; margin-top: 32px; display: flex; gap: 10px; }
.rd-hero__ask input { flex: 1; min-width: 0; height: 54px; border-radius: 999px; border: 1px solid rgba(var(--ink-rgb), .3); background: var(--surface); color: var(--ink); padding: 0 22px; font: inherit; font-size: 16px; }
.rd-hero__ask input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
@media (max-width: 560px) { .rd-hero__ask { flex-direction: column; } }

/* chat results: compact estimate + collapsed lead choice */
.rd-chat__estimate { display: flex; flex-direction: column; gap: 6px; }
.rd-chat__kicker { font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent-ink); }
.rd-chat__summary { margin: 0 0 10px; color: var(--ink); font-size: 16px; line-height: 1.55; }
.rd-chat__basis { margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.rd-chat__next { margin: 0; color: var(--ink); font-weight: 500; }
.rd-chat__lead { display: flex; flex-direction: column; gap: 10px; }
.rd-chat__leadrow { display: flex; gap: 10px; }
.rd-chat__leadrow input { flex: 1; min-width: 0; }
.rd-chat__leadform { border: 0; padding: 0; }
@media (max-width: 560px) { .rd-chat__leadrow { flex-direction: column; } }

.rd-chat__leadform { display: flex; flex-direction: column; gap: 10px; }
.rd-chat__leadform input[type=email], .rd-chat__leadform input[type=tel] { height: 48px; border-radius: 12px; border: 1px solid rgba(var(--ink-rgb), .25); background: var(--bg); color: var(--ink); padding: 0 14px; font: inherit; }

.rd-chat__note2 { display: block; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.45; }

.rd-chip--own { border-style: dashed; color: var(--muted); }
.rd-chat__hint { flex-basis: 100%; color: var(--muted); font-size: 13px; }

.rd-chat__monthly { margin: 6px 0 0; color: var(--soft); font-size: 14px; line-height: 1.5; }

.rd-chat__leadform--single .rd-chat__leadrow { display: flex; gap: 10px; }
.rd-chat__leadform--single input[type=text]:not(.rd-hp) { flex: 1; min-width: 0; height: 52px; border-radius: 999px; border: 1px solid rgba(var(--ink-rgb), .25); background: var(--bg); color: var(--ink); padding: 0 20px; font: inherit; font-size: 16px; }
.rd-chat__leadform--single .rd-btn { height: 52px; }
@media (max-width: 560px) { .rd-chat__leadform--single .rd-chat__leadrow { flex-direction: column; } }

/* ---------- Homepage ask bar (design v2) ---------- */
.rd-askbar { width: 100%; max-width: 760px; margin-top: 36px; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid rgba(var(--ink-rgb), .18); border-radius: 999px; padding: 8px 8px 8px clamp(18px, 3vw, 28px); box-shadow: 0 0 0 8px rgba(247,91,38,.08); }
.rd-askbar__prefix { color: var(--muted); font-size: 18px; white-space: nowrap; }
.rd-askbar input { flex: 1; min-width: 0; height: 52px; background: none; border: 0; outline: 0; color: var(--ink); font: inherit; font-size: 18px; }
.rd-askbar input::placeholder { color: var(--dim); }
.rd-askbar:focus-within { border-color: var(--accent); }
.rd-askbar__go { flex: none; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--accent); color: #0D0D0C; font-size: 22px; cursor: pointer; transition: background .2s; }
.rd-askbar__go:hover { background: var(--accent-hover); }
.rd-askchips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.rd-askchips .rd-chip { display: inline-flex; align-items: center; text-decoration: none; }
.rd-askmore { margin-top: 20px; font-weight: 500; color: var(--muted); }
