/* Hallmark · macrostructure: Card catalogue (Pomelli-derived) · genre: modern-corporate · tone: confident, technical · anchor hue: deep blue (oklch ~ 263°) + doelPay pink
 * nav: fixed light bar (4 in-page links + DoelPay page link + CTA) · footer: Ft3 four-column on night band · enrichment: photo cards with floating tags
 * theme: light, from the doelPay Pomelli draft (2026-10-04) · paper: light / blue + pink accents · display: Archivo · body: Geist · mono: JetBrains Mono (figures)
 * previous dark theme: styles-dark.css + tokens-dark.css (used by designs/buraq.html)
 */
/* Doel Systems — page styles (index.html, doelpay.html). Tokens live in tokens.css. */


/* ---------- base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3 { font-family: var(--f-display); color: var(--ink); margin: 0; }
p { margin: 0; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hover); }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 2000; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--r-sm); }
.skip-link:focus { top: 16px; color: var(--white); }

/* the second line of a headline: one solid accent ink (no gradient text) */
.tone { color: var(--blue); }

/* pill tag above headlines */
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; margin-bottom: 18px;
  font-size: 12.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--pink-ink); background: var(--pink-soft);
  border: 1px solid color-mix(in oklch, var(--pink) 28%, transparent); border-radius: 999px;
}
.tag i { color: var(--pink); }
.tag--plain { margin: 0; }

.lede { font-size: 18px; color: var(--muted); max-width: 580px; }
.body { color: var(--muted); margin-top: 16px; max-width: 580px; }
.h-section { font-size: clamp(32px, 3.6vw, 48px); font-weight: 500; line-height: 1.1; letter-spacing: -.03em; margin-bottom: 18px; text-wrap: balance; }
.h-section .tone { display: block; }
.sec-head .h-section .tone { display: inline; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  border-radius: 999px; border: 1px solid transparent;
  font-family: var(--f-body); font-weight: 500; font-size: 15px; white-space: nowrap;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast), background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.btn i { font-size: 13px; }
.btn-brand { background: var(--grad-brand); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-brand:hover { color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-line { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-line:hover { color: var(--blue); border-color: var(--blue); }
.btn-white { background: var(--white); color: var(--blue); }
.btn-white:hover { color: var(--blue-hover); transform: translateY(-2px); }
.btn-ghost-white { color: var(--white); border-color: color-mix(in oklch, var(--white) 55%, transparent); }
.btn-ghost-white:hover { color: var(--white); background: color-mix(in oklch, var(--white) 14%, transparent); }
.btn-sm-pill { min-height: 42px; padding: 8px 20px; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.lede + .actions { margin-top: 32px; } /* collapses with .hero .lede's margin-bottom, so heroes are unchanged */

/* ---------- header ---------- */
.site-head {
  position: fixed; inset: 0 0 auto; z-index: 1030; height: var(--header-h);
  background: color-mix(in oklch, var(--surface) 86%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-normal), box-shadow var(--t-normal);
}
.site-head.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
/* every link is always on screen: one row on desktop; below 992px a second row holds the links
   (it scrolls sideways if they ever outgrow the width) and the CTA sits beside the logo */
.head-bar { height: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "brand links cta"; align-items: center; column-gap: 24px; }
.brand { grid-area: brand; display: inline-flex; align-items: center; min-height: 44px; }
.brand-logo { display: block; height: 38px; width: auto; }
.site-head .brand-logo { height: 44px; } /* header logo (doel-systems-logo.svg): 15% larger than the base 38px */
.nav-links { grid-area: links; display: flex; gap: 28px; list-style: none; margin: 0 0 0 16px; padding: 0; }
.nav-link { position: relative; display: inline-flex; align-items: center; min-height: 44px; color: var(--text); font-size: 15px; font-weight: 500; white-space: nowrap; }
.nav-link:hover, .nav-link.active { color: var(--blue); }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; border-radius: 2px; background: var(--pink); transform: scaleX(0); transition: transform var(--t-fast) var(--ease); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.head-cta { grid-area: cta; }
.cta-short { display: none; }

@media (max-width: 991.98px) {
  :root { --header-h: 112px; } /* 64px bar + 48px link row */
  .head-bar { grid-template-columns: auto auto; grid-template-areas: "brand cta" "links links"; grid-template-rows: 64px 48px; justify-content: space-between; }
  .site-head .brand-logo { height: 38px; }
  .nav-links {
    margin: 0 calc(var(--bs-gutter-x, 1.5rem) * -.5); padding: 0 calc(var(--bs-gutter-x, 1.5rem) * .5);
    gap: 26px; overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--line);
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-link { font-size: 14.5px; min-height: 47px; }
  .nav-link::after { bottom: 0; }
}
@media (max-width: 419.98px) {
  .site-head .brand-logo { height: 34px; }
  .nav-links { gap: 20px; }
  .cta-full { display: none; }
  .cta-short { display: inline; }
}

/* ---------- sections ---------- */
main { padding-top: var(--header-h); }
.section { padding: 110px 0; }
.section--tight { padding: 40px 0; }
.section--band { background: var(--surface); border-block: 1px solid var(--line); }
.sec-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.sec-head .lede { margin: 0 auto; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; padding: 72px 0 0;
  background:
    radial-gradient(60% 70% at 100% 0%, color-mix(in oklch, var(--blue) 12%, transparent), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, color-mix(in oklch, var(--pink) 10%, transparent), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(40px, 4.8vw, 66px); font-weight: 500; line-height: 1.05; letter-spacing: -.035em; margin-bottom: 22px; text-wrap: balance; }
.hero h1 .tone { display: block; }
.hero .lede { margin-bottom: 32px; }
.badges { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 560px; }
.badges li { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
.badges i { flex-shrink: 0; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; font-size: 18px; color: var(--pink); background: var(--pink-soft); }
.badges span, .float-tag span { font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.badges b, .float-tag b { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }

/* a photo in a gradient frame, with a floating tag */
.hero-visual { display: flex; justify-content: center; }
.frame { position: relative; margin: 0; width: 100%; max-width: 520px; padding: 10px; border-radius: var(--r-lg); background: var(--grad-brand); box-shadow: var(--shadow-md); }
.frame img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: calc(var(--r-lg) - 8px); }
.frame--wide { max-width: none; }
.frame--wide img { aspect-ratio: 16 / 10; }
.frame--plain { padding: 0; background: none; }
.frame--plain img { border-radius: var(--r-lg); border: 1px solid var(--line); }
.hero--solo { padding-bottom: 100px; }

/* art-frame: an illustration shown as a mounted, tilted print over a gradient panel and a dot pattern */
.art-frame { position: relative; isolation: isolate; margin: 24px 18px 30px 8px; }
.art-frame::before {
  content: ""; position: absolute; inset: 6% -4% -7% 6%; z-index: -2;
  border-radius: 28px; background: var(--grad-brand); transform: rotate(-4deg); opacity: .9;
}
.art-frame::after {
  content: ""; position: absolute; left: -22px; top: -22px; width: 150px; height: 120px; z-index: -1;
  background-image: radial-gradient(color-mix(in oklch, var(--blue) 45%, transparent) 1.6px, transparent 2px);
  background-size: 14px 14px;
}
.art-frame img {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  padding: 10px; background: var(--surface); border-radius: var(--r-lg);
  box-shadow: var(--shadow-md); transform: rotate(1.5deg);
  transition: transform var(--t-normal) var(--ease);
}
.art-frame:hover img { transform: rotate(0deg) scale(1.015); }
.art-chip {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md);
}
.art-chip i { color: var(--pink); }
.art-chip--top { top: -16px; right: 8%; transform: rotate(3deg); }
.art-chip--bottom { bottom: -18px; left: 6%; transform: rotate(-2deg); }
.art-chip--bottom i { color: var(--blue); }
@media (max-width: 575.98px) {
  .art-frame { margin: 20px 10px 30px; }
  .art-frame img { padding: 6px; transform: rotate(1deg); }
  .art-chip { font-size: 12.5px; padding: 7px 12px; }
}
.float-tag {
  position: absolute; left: -24px; bottom: -22px; z-index: 2;
  display: flex; align-items: center; gap: 14px; padding: 14px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-md);
}
.float-tag--right { left: auto; right: -18px; }
.float-tag i { font-size: 22px; color: var(--blue); }

/* in the field: product marks, greyed until hover */
.field { display: flex; align-items: center; gap: 32px; margin-top: 88px; padding: 28px 0; border-top: 1px solid var(--line); }
.field-title { flex-shrink: 0; margin: 0; font: 500 12px var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--subtle); }
.field-list { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 34px; margin: 0; padding: 0; list-style: none; }
.field-list img { display: block; height: 30px; width: auto; filter: grayscale(1); opacity: .6; transition: filter var(--t-normal), opacity var(--t-normal); }
.field-list li:hover img { filter: none; opacity: 1; }
.field-list img.is-stacked { height: 46px; }
.field-list img.is-square { height: 40px; border-radius: 8px; }

/* ---------- split (image + copy) ---------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; }
.mosaic { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.mosaic img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface-2); }
.mosaic img:nth-child(2) { object-fit: contain; padding: 12px; }
.mosaic img:nth-child(odd) { transform: translateY(18px); }
.stats { margin: 32px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stats > div { padding: 16px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); }
.stats dt { font-size: 12.5px; font-weight: 500; color: var(--muted); margin-bottom: 4px; }
.stats dd { margin: 0; font-family: var(--f-display); font-size: 26px; font-weight: 600; letter-spacing: -.02em; color: var(--blue); font-variant-numeric: tabular-nums; }
.stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats--3 dd { font-size: 19px; }
.doelpay-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }

/* ---------- services: icon cards ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.svc-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.svc {
  position: relative; padding: 32px 28px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: transform var(--t-normal) var(--ease), box-shadow var(--t-normal), border-color var(--t-normal);
}
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: color-mix(in oklch, var(--c, var(--blue)) 45%, transparent); }
.svc-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 22px; border-radius: 14px; font-size: 22px; color: var(--c, var(--blue)); background: color-mix(in srgb, var(--c, var(--blue)) 11%, var(--surface)); }
.sector { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px; font: 500 11.5px var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sector::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--c, var(--blue)); }
.svc h3 { font-size: 21px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 10px; }
.svc p:not(.sector) { color: var(--muted); font-size: 15.5px; }

/* services bento (index #services): sector-tinted cards, two feature cards, whole card is the link */
.section--mesh {
  background:
    radial-gradient(50% 55% at 0% 0%, color-mix(in oklch, var(--pink) 10%, transparent), transparent 70%),
    radial-gradient(55% 60% at 100% 100%, color-mix(in oklch, var(--blue) 11%, transparent), transparent 70%),
    var(--bg);
}
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.bento .svc {
  isolation: isolate; overflow: hidden; display: flex; flex-direction: column; padding: 30px 26px 22px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 11%, var(--surface)) 0%, var(--surface) 62%);
  border-color: color-mix(in srgb, var(--c) 22%, var(--line));
}
.bento .svc::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--c); }
.bento .svc:hover { border-color: var(--c); }
.bento .svc-icon {
  color: var(--white);
  background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 62%, var(--ink)));
  box-shadow: 0 10px 20px -6px color-mix(in srgb, var(--c) 55%, transparent);
  transition: transform var(--t-normal) var(--ease);
}
.bento .svc:hover .svc-icon { transform: rotate(-6deg) scale(1.06); }
.svc-mark {
  position: absolute; right: -10px; bottom: -22px; z-index: -1; pointer-events: none;
  font-size: 128px; line-height: 1; color: var(--c); opacity: .08; transform: rotate(-12deg);
  transition: transform var(--t-normal) var(--ease), opacity var(--t-normal);
}
.bento .svc:hover .svc-mark { opacity: .15; transform: rotate(-4deg) scale(1.06); }
.svc-chips { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.svc-chips li {
  font: 500 12.5px var(--f-mono); padding: 5px 11px; border-radius: 999px; white-space: nowrap;
  color: var(--white); background: color-mix(in oklch, var(--white) 16%, transparent); border: 1px solid color-mix(in oklch, var(--white) 30%, transparent);
}
.svc-link {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: auto; padding-top: 12px;
  font-size: 14.5px; font-weight: 600; white-space: nowrap; color: color-mix(in srgb, var(--c) 78%, var(--ink));
}
.svc-link::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* the whole card is clickable */
.svc-link i { font-size: 12px; transition: transform var(--t-fast) var(--ease); }
.bento .svc:hover .svc-link i { transform: translateX(4px); }
.svc-link:focus-visible { outline-offset: 2px; }

.svc--wide { grid-column: span 2; padding: 34px 32px 26px; }
.svc--wide h3 { font-size: 28px; font-weight: 500; letter-spacing: -.025em; }
.svc--wide p:not(.sector) { font-size: 16.5px; max-width: 520px; }
.svc--wide .svc-mark { font-size: 190px; right: 10px; bottom: -34px; }

/* feature card 1: brand gradient */
.bento .svc--brand { background: var(--grad-brand); border-color: transparent; }
/* feature card 2: night with a sector-coloured bloom */
.bento .svc--night { background: radial-gradient(85% 130% at 100% 100%, color-mix(in oklch, var(--c) 50%, transparent), transparent 62%), var(--night); border-color: transparent; }
.svc--brand::before, .svc--night::before { display: none; }
.svc--brand h3, .svc--night h3, .svc--brand .sector, .svc--night .sector { color: var(--white); }
.svc--brand p:not(.sector) { color: color-mix(in oklch, var(--white) 88%, transparent); }
.svc--night p:not(.sector) { color: var(--night-text); }
.svc--brand .sector::before { background: var(--white); }
.bento .svc--brand .svc-icon { background: color-mix(in oklch, var(--white) 20%, transparent); border: 1px solid color-mix(in oklch, var(--white) 35%, transparent); box-shadow: none; }
.svc--brand .svc-mark { color: var(--white); opacity: .16; }
.svc--night .svc-mark { opacity: .2; }
.bento .svc--brand:hover .svc-mark, .bento .svc--night:hover .svc-mark { opacity: .26; }
/* feature card 2 with a product shot (e-ticketing): the Buraq e-ticket floats on the right, tilted over a second
   teal "ticket" behind it, and peeks past the card's bottom edge; the copy keeps to the left 50% */
.bento .svc--shot > :not(.svc-mark):not(.svc-shot) { max-width: 50%; } /* beats .svc--wide p's 520px cap */
.svc--shot .svc-mark { display: none; }
.svc-shot {
  position: absolute; right: 7%; top: 30px; width: min(36%, 250px); height: auto;
  border-radius: 18px; border: 4px solid color-mix(in oklch, var(--white) 88%, transparent);
  box-shadow: 0 30px 50px -18px color-mix(in oklch, var(--ink) 85%, transparent);
  transform: rotate(6deg); transform-origin: 50% 0;
  transition: transform .45s var(--ease);
}
.bento .svc--shot::before { /* the ticket stacked behind */
  display: block; inset: auto; right: calc(7% + 22px); top: 46px; width: min(36%, 250px); height: auto; aspect-ratio: 700 / 876;
  border-radius: 18px; background: color-mix(in oklch, var(--c) 30%, transparent);
  border: 1px solid color-mix(in oklch, var(--white) 22%, transparent); transform: rotate(-5deg);
  transition: transform .45s var(--ease);
}
.bento .svc--shot:hover .svc-shot { transform: rotate(2deg) translateY(-10px); }
.bento .svc--shot:hover::before { transform: rotate(-8deg) translateX(-6px); }
.svc--brand .svc-link { color: var(--white); }
.svc--night .svc-link { color: color-mix(in srgb, var(--c) 55%, var(--white)); }

@media (max-width: 1199.98px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
  .bento { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .svc--wide { grid-column: auto; padding: 28px 22px 20px; }
  .svc--wide h3 { font-size: 24px; }
  .bento .svc { padding: 26px 22px 18px; }
  .svc-mark { font-size: 104px; }
  .svc--wide .svc-mark { font-size: 140px; }
  /* one column: the ticket sits above the copy, centred, with a gentler tilt */
  .bento .svc--shot > :not(.svc-mark):not(.svc-shot) { max-width: none; }
  .svc-shot { position: relative; right: auto; top: auto; display: block; width: 62%; margin: 4px auto 28px; transform: rotate(-3deg); transform-origin: 50% 50%; }
  .bento .svc--shot::before { display: none; }
  .bento .svc--shot:hover .svc-shot { transform: rotate(-1deg) translateY(-4px); }
}

/* ---------- cards (products, DoelPay) ---------- */
.card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: transform var(--t-normal) var(--ease), box-shadow var(--t-normal), border-color var(--t-normal);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.card-media { position: relative; height: 220px; overflow: hidden; background: var(--surface-2); }
.card-media:not(.card-media--logo):not(.card-media--soft) > img:first-child { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-media--logo, .card-media--soft { display: flex; align-items: center; justify-content: center; background: var(--grad-soft); }
.card-media--soft > img.media-contain { width: auto; height: auto; max-width: 86%; max-height: 86%; object-fit: contain; }
.card-media .media-logo { height: 40%; width: auto; max-width: 70%; }
.card-media .media-logo--tall { height: 62%; }
.media-qr { position: absolute; right: 8%; bottom: 12%; width: 84px; padding: 8px; background: var(--white); border-radius: 10px; box-shadow: var(--shadow-md); transform: rotate(-6deg); }
.media-badge { position: absolute; left: 16px; bottom: 16px; display: flex; align-items: center; height: 44px; padding: 6px 12px; background: var(--white); border-radius: 12px; box-shadow: var(--shadow-sm); }
.media-badge img { display: block; height: 28px; width: auto; }
.media-badge--square { padding: 4px; }
.media-badge--square img { height: 36px; border-radius: 8px; }
.card-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 24px 26px 26px; }
.card h3 { font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.card-body > p:not(.sector):not(.card-tag) { color: var(--muted); font-size: 15.5px; flex: 1; }
.facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.facts li { font-size: 12.5px; font-weight: 500; padding: 4px 10px; border-radius: 999px; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); }
.card-tag { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 12.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--sky); }

.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -24px 0 36px; }
.filters button {
  min-height: 42px; padding: 8px 18px; border-radius: 999px; cursor: pointer;
  font: 500 14px var(--f-body); white-space: nowrap;
  color: var(--text); background: var(--surface); border: 1px solid var(--line-strong);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.filters button:hover { border-color: var(--blue); color: var(--blue); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.prod-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; gap: 24px; }
.prod--wide { grid-column: span 2; }
.prod--wide .card-media { height: 260px; }
.prod[hidden] { display: none; }

.pay-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 88px; }
.pay-grid--flush { margin-top: 0; }
.pay .card-media { height: 170px; }
.pay h3 { font-size: 18.5px; }
.pay .card-body { padding: 20px 22px 22px; }
.pay .card-body > p:not(.card-tag) { font-size: 14.5px; }

/* technology partners: logo tiles standing on a 3D perspective grid floor */
.partners-3d {
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: 72px; padding: 56px 56px 96px; border-radius: 28px;
  background:
    radial-gradient(50% 26% at 50% 88%, color-mix(in oklch, var(--blue) 38%, transparent), transparent 70%),
    radial-gradient(120% 90% at 50% 0%, var(--night-2), var(--night) 70%);
}
.p3d-scene { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; perspective: 640px; }
.p3d-floor {
  position: absolute; left: -60%; right: -60%; bottom: -12%; height: 120%;
  transform-origin: 50% 100%; transform: rotateX(70deg);
  background-image:
    linear-gradient(color-mix(in oklch, var(--sky) 70%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in oklch, var(--sky) 70%, transparent) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask: linear-gradient(to top, var(--mask) 0%, transparent 88%); mask: linear-gradient(to top, var(--mask) 0%, transparent 88%);
  animation: p3dGrid 7s linear infinite;
}
@keyframes p3dGrid { to { background-position: 0 56px, 0 0; } }
.p3d-scene::after { /* horizon line where the floor meets the sky */
  content: ""; position: absolute; left: 8%; right: 8%; top: 58%; height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in oklch, var(--sky) 70%, transparent), transparent);
}
.p3d-orb { position: absolute; width: 460px; height: 460px; border-radius: 50%; }
.p3d-orb--a { top: -230px; left: -140px; background: radial-gradient(closest-side, color-mix(in oklch, var(--pink) 42%, transparent), transparent); }
.p3d-orb--b { top: -210px; right: -120px; background: radial-gradient(closest-side, color-mix(in oklch, var(--blue) 60%, transparent), transparent); }

.p3d-head { text-align: center; max-width: 620px; margin: 0 auto; }
.tag--glass { color: var(--white); background: color-mix(in oklch, var(--white) 8%, transparent); border-color: color-mix(in oklch, var(--white) 20%, transparent); }
.p3d-title { font-size: clamp(26px, 2.8vw, 36px); font-weight: 500; letter-spacing: -.03em; line-height: 1.15; color: var(--white); }
.p3d-title span { display: block; color: color-mix(in srgb, var(--sky) 55%, var(--white)); }
.p3d-lede { margin-top: 12px; color: var(--night-text); font-size: 16px; }

.p3d-grid { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.p3d-tile {
  --rx: 12deg; --ry: 0deg; --lift: 0px;
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 18px;
  padding: 30px 18px 22px; text-align: center; border-radius: 20px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid color-mix(in oklch, var(--white) 70%, transparent);
  box-shadow: 0 34px 40px -26px color-mix(in oklch, var(--night) 95%, transparent), inset 0 -3px 0 color-mix(in srgb, var(--c) 70%, transparent);
  transform-style: preserve-3d; transform: perspective(900px) translateY(var(--lift)) rotateX(var(--rx)) rotateY(var(--ry)); /* own perspective: every tile tilts the same way */
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.p3d-tile::before { content: ""; position: absolute; inset: 0 30% auto; height: 3px; border-radius: 0 0 3px 3px; background: var(--c); }
.p3d-tile::after { /* sheen that sweeps across on hover */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, color-mix(in oklch, var(--white) 75%, transparent) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.p3d-tile:hover { --rx: 0deg; --lift: -8px; box-shadow: 0 40px 50px -24px color-mix(in oklch, var(--night) 95%, transparent), inset 0 -3px 0 var(--c); }
.p3d-tile:hover::after { transform: translateX(120%); }
.p3d-logo { display: flex; align-items: center; justify-content: center; height: 64px; width: 100%; transform: translateZ(28px); }
.p3d-logo img { display: block; width: auto; height: auto; max-width: 82%; max-height: 46px; }
.p3d-tile p { font-size: 13.5px; color: var(--muted); line-height: 1.4; transform: translateZ(16px); }
.p3d-tile b { display: block; margin-bottom: 2px; font-size: 15px; font-weight: 600; color: var(--ink); }

/* IDEX film: a tilted, gradient-framed screen on a night panel. A giant fingerprint and ridge-like rings
   spread from the play button; clicking swaps the poster for the YouTube player (main.js, [data-video]). */
.film {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: center;
  margin-top: 88px; padding: 64px 64px 72px; border-radius: 28px;
  background:
    radial-gradient(45% 60% at 72% 50%, color-mix(in oklch, var(--blue) 34%, transparent), transparent 70%),
    radial-gradient(120% 90% at 0% 0%, var(--night-2), var(--night) 70%);
}
.film-scene { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.film-print {
  position: absolute; left: -90px; bottom: -150px; font-size: 520px; line-height: 1;
  color: color-mix(in oklch, var(--sky) 12%, transparent); transform: rotate(-14deg);
}
.film-ripples { /* ridge-like rings centred on the screen, fading out */
  position: absolute; left: 63%; top: 50%; width: 1200px; height: 1200px; margin: -600px 0 0 -600px;
  background: repeating-radial-gradient(circle, transparent 0 34px, color-mix(in oklch, var(--sky) 22%, transparent) 34px 35px);
  -webkit-mask: radial-gradient(closest-side, var(--mask) 20%, transparent); mask: radial-gradient(closest-side, var(--mask) 20%, transparent);
}

.film-title { font-size: clamp(28px, 3vw, 40px); font-weight: 500; letter-spacing: -.03em; line-height: 1.1; color: var(--white); text-wrap: balance; }
.film-title span { display: block; color: color-mix(in srgb, var(--pink) 45%, var(--white)); }
.film-lede { margin-top: 16px; color: var(--night-text); font-size: 16px; max-width: 440px; }
.film-facts { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.film-facts li {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; white-space: nowrap;
  font-size: 13.5px; color: var(--white);
  background: color-mix(in oklch, var(--white) 6%, transparent); border: 1px solid var(--night-line);
}
.film-facts i { color: var(--pink); }

.film-screen { position: relative; margin: 0 6px 24px 0; }
.film-screen::before { /* offset outline: a second print behind the screen */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: var(--r-lg);
  border: 1px solid color-mix(in oklch, var(--sky) 55%, transparent); transform: translate(18px, 18px) rotate(2deg);
}
.film-frame {
  position: relative; padding: 8px; border-radius: var(--r-lg); background: var(--grad-brand);
  box-shadow: 0 40px 70px -30px color-mix(in oklch, var(--night) 95%, transparent), 0 0 80px -20px color-mix(in oklch, var(--pink) 45%, transparent);
  transform: rotate(-2deg); transition: transform var(--t-normal) var(--ease);
}
.film-video {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: calc(var(--r-lg) - 6px); background: var(--night);
  filter: saturate(.85); transition: filter var(--t-normal);
}
/* the play button covers the poster; JS unhides it and hands over to the native controls on click */
.film-play { position: absolute; inset: 8px; padding: 0; border: 0; border-radius: calc(var(--r-lg) - 6px); background: none; cursor: pointer; }
.film-play::after { /* cinematic vignette, darker at the bottom */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, transparent 50%, color-mix(in oklch, var(--night) 55%, transparent));
}
.film-frame:hover, .film-frame:focus-within, .film-screen.is-playing .film-frame { transform: rotate(0deg); }
.film-frame:hover .film-video, .film-screen.is-playing .film-video { filter: none; }

.film-btn {
  position: absolute; left: 50%; top: 50%; z-index: 2; display: grid; place-items: center;
  width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%;
  font-size: 26px; color: var(--white); background: var(--grad-brand);
  box-shadow: 0 0 0 8px color-mix(in oklch, var(--white) 22%, transparent), 0 14px 30px color-mix(in oklch, var(--night) 50%, transparent);
  transition: transform var(--t-normal) var(--ease);
}
.film-btn i { margin-left: 4px; }
.film-btn::before, .film-btn::after { /* touch ripples */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid color-mix(in oklch, var(--white) 70%, transparent);
  animation: filmTouch 2.4s var(--ease) infinite;
}
.film-btn::after { animation-delay: 1.2s; }
@keyframes filmTouch { from { transform: scale(1); opacity: .9; } to { transform: scale(2.4); opacity: 0; } }
.film-play:hover .film-btn { transform: scale(1.08); }

.film-cap {
  position: absolute; left: -20px; bottom: -26px; z-index: 3;
  display: flex; align-items: center; gap: 10px; padding: 11px 18px; white-space: nowrap;
  font-size: 13.5px; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-md);
  transform: rotate(-3deg);
}
.film-cap b { font-weight: 600; color: var(--ink); }
.film-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 4px var(--pink-soft); }
.film-screen.is-playing .film-cap { display: none; }

@media (max-width: 991.98px) {
  .film { grid-template-columns: minmax(0, 1fr); gap: 44px; padding: 48px 36px 64px; }
  .film-ripples { left: 50%; top: 70%; }
}
@media (max-width: 575.98px) {
  .film { margin-top: 72px; padding: 36px 20px 52px; border-radius: var(--r-lg); }
  .film-print { font-size: 360px; left: -110px; bottom: auto; top: -60px; }
  .film-screen { margin: 0 4px 22px 0; }
  .film-screen::before { transform: translate(10px, 10px) rotate(2deg); }
  .film-frame { padding: 5px; transform: rotate(-1deg); }
  .film-play { inset: 5px; }
  .film-btn { width: 64px; height: 64px; margin: -32px 0 0 -32px; font-size: 20px; }
  .film-cap { left: 8px; bottom: -22px; padding: 8px 14px; font-size: 12.5px; }
  .film-cap > span:last-child { display: none; }
}

@media (max-width: 991.98px) {
  .partners-3d { padding: 44px 28px 72px; }
  .p3d-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
  .partners-3d { margin-top: 56px; padding: 36px 16px 56px; border-radius: var(--r-lg); }
  .p3d-grid { gap: 14px; margin-top: 32px; }
  .p3d-tile { --rx: 8deg; padding: 22px 10px 16px; gap: 12px; }
  .p3d-logo { height: 48px; }
  .p3d-logo img { max-height: 34px; }
  .p3d-tile p { font-size: 12.5px; }
  .p3d-tile b { font-size: 13.5px; }
}

/* ---------- banner (engineering, quantum) ---------- */
.banner { position: relative; overflow: hidden; padding: 60px; border-radius: 28px; background: var(--grad-soft); border: 1px solid color-mix(in oklch, var(--pink) 18%, transparent); }
.banner-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: center; }
.chips { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font: 500 13px var(--f-mono); padding: 7px 14px; border-radius: 999px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); }
.figures { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.figures > div { padding: 22px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
.figures dt { font-size: 12.5px; font-weight: 500; color: var(--muted); margin-bottom: 8px; }
.figures dd { margin: 0; white-space: nowrap; font-family: var(--f-display); font-size: clamp(22px, 1.9vw, 30px); font-weight: 600; line-height: 1; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.checks { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.checks li { display: flex; align-items: flex-start; gap: 12px; color: var(--text); }
.checks i { margin-top: 5px; color: var(--pink); }

/* quantum banner: the shield artwork fills the card, a night gradient carries the copy.
   The image is height-fitted on the right; the gradient stays opaque past its left edge so no seam shows. */
.banner--quantum {
  border-color: transparent;
  background:
    linear-gradient(90deg, var(--night) 0%, var(--night) 46%, color-mix(in oklch, var(--night) 55%, transparent) 64%, transparent 82%),
    url("../img/doelpay/quantum-shield.webp") right center / auto 100% no-repeat,
    var(--night);
}
.banner--quantum { background-origin: border-box; }
.banner--quantum .h-section { color: var(--white); }
.banner--quantum .lede { color: var(--night-text); }
.banner--quantum .checks li { color: var(--white); }

/* ---------- kiosk ---------- */
.gallery-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.gallery-2 img { display: block; width: 100%; aspect-ratio: 3 / 4.4; object-fit: cover; border-radius: var(--r-md); border: 1px solid var(--line); }
.gallery-2 img:last-child { margin-top: 48px; }
.bullets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.bullets > div { padding: 18px 18px 18px 20px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--sky); border-radius: var(--r-sm); }
.bullets h3 { font-family: var(--f-body); font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.bullets p { font-size: 14.5px; color: var(--muted); }

/* ---------- photo gallery ---------- */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 20px; align-items: stretch; }
.gallery img { display: block; width: 100%; height: 100%; min-height: 280px; object-fit: cover; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface-2); }
.gallery img.is-contain { object-fit: contain; padding: 16px; background: var(--grad-soft); }

/* ---------- contact band ---------- */
.cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
  padding: 56px 60px; border-radius: 28px; background: var(--grad-brand); color: var(--white);
}
.cta h2 { color: var(--white); font-size: clamp(30px, 3.4vw, 44px); font-weight: 500; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 10px; }
.cta p { color: color-mix(in oklch, var(--white) 86%, transparent); font-size: 17px; }
.cta p a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }

/* ---------- footer ---------- */
.site-foot { margin-top: 70px; padding: 80px 0 36px; background: var(--night); color: var(--night-text); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr; gap: 40px; margin-bottom: 56px; }
.foot-brand p { margin-top: 18px; font-size: 15px; max-width: 340px; }
.foot-col h2 { position: relative; font: 600 16px var(--f-body); color: var(--white); margin-bottom: 24px; }
.foot-col h2::after { content: ""; position: absolute; left: 0; bottom: -9px; width: 28px; height: 2px; border-radius: 2px; background: var(--pink); }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.foot-col ul.foot-cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.foot-col a { color: var(--night-text); }
.foot-col a:hover { color: var(--white); }
.foot-info li { display: flex; align-items: flex-start; gap: 12px; }
.foot-info i { margin-top: 5px; color: var(--sky); width: 16px; text-align: center; }
.foot-info a { overflow-wrap: anywhere; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 26px; border-top: 1px solid var(--night-line); font-size: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 1199.98px) {
  .pay-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
  .section { padding: 88px 0; }
  .hero { padding-top: 48px; }
  .hero-grid, .split, .banner-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .svc-grid, .svc-grid--4, .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field { flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 72px; }
  .field-list { gap: 16px 28px; }
  .field-list img { height: 24px; }
  .field-list img.is-stacked { height: 40px; }
  .field-list img.is-square { height: 34px; }
  .banner { padding: 44px 36px; }
  /* single column: the shield sits under the copy, width-fitted at the bottom. The 4:3 art is ~69–73vw tall
     after gutters, so the gradient turns opaque by 64vw to hide its top edge. */
  .banner--quantum {
    padding-bottom: 68vw;
    background:
      linear-gradient(0deg, transparent 0, transparent 34vw, color-mix(in oklch, var(--night) 60%, transparent) 50vw, var(--night) 64vw),
      url("../img/doelpay/quantum-shield.webp") center bottom / 100% auto no-repeat,
      var(--night);
    background-origin: border-box;
  }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery img:first-child { grid-column: 1 / -1; }
}
@media (max-width: 575.98px) {
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .lede { font-size: 16.5px; }
  .badges, .svc-grid, .svc-grid--4, .prod-grid, .pay-grid, .figures, .bullets, .foot-grid, .stats--3 { grid-template-columns: minmax(0, 1fr); }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prod--wide { grid-column: auto; }
  .prod--wide .card-media, .card-media { height: 200px; }
  .float-tag, .float-tag--right { left: 12px; right: 12px; bottom: -28px; }
  .mosaic img:nth-child(odd) { transform: none; }
  .banner { padding: 32px 22px; border-radius: var(--r-lg); }
  .banner--quantum { padding-bottom: 68vw; }
  .cta { padding: 36px 24px; border-radius: var(--r-lg); }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .gallery img { min-height: 220px; }
  .gallery-2 img:last-child { margin-top: 28px; }
  .foot-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .card:hover, .svc:hover, .btn:hover { transform: none; }
}
