/* AMASO restyle for template pages (cases, diensten, over-ons, contact, 404). Owner: restyle agent.
   Phase 3 (COORDINATION.md 6.4): an evolution of the amaso.nl template toward the homepage and /werk/.
   Same structure, content, animations, marquees, case hero video, FAQ accordion and "AAN DE SLAG" footer.
   What changes: beige page (/werk/), the homepage's Outfit type, dark rounded cards, and the homepage's own violet
   button and accents (the same tokens as the shared header, measured on /; 19 Oct: no red buttons).
   Linked last in <head> on every template page (build/cases/build.py). The template's Tailwind sits in @layer,
   so these unlayered rules win over its utilities; the Astro components' scoped <style> blocks need specificity.
   Never targets .amh (the shared header isolates itself). Contrast: white on violet #5400e9 is 8.2:1 (hover 5.8:1),
   #5400e9 on the beige 6.5:1, #8d6bff on the dark cards 5.4:1 or more.
   Hooks it relies on (keep them in build/cases/): main.select-none (case/dienst/contact/404 body), .hero-section,
   main > section.grid (the "In het kort" block), div.grid.max-w-4xl (card grids), #services, .late-cta, #about-me,
   .faq-section, .amaso-mockup > amaso-laptop. */

/* Outfit, the homepage's typeface (SIL OFL), Latin subset copied from the Next build. One variable file, 100-900. */
@font-face {
  font-family: "AMASO Outfit";
  src: url(/amaso/tpl/restyle/outfit-latin.woff2) format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* metric-matched fallback (the same overrides next/font generates), so the swap does not move the layout */
@font-face {
  font-family: "AMASO Outfit Fallback";
  src: local(Arial), local("Helvetica Neue"), local(Helvetica);
  ascent-override: 100.18%; descent-override: 26.05%; line-gap-override: 0%; size-adjust: 99.82%;
}

/* the template's marquee face (Bungee, size-adjust 138.889%) got no matched fallback, so the big DIENSTEN /
   SAMENWERKEN words jumped when it arrived (CLS 0.027). Arial Black scaled to Bungee's width and line metrics. */
@font-face {
  font-family: "AMASO Bungee Fallback";
  src: local("Arial Black"), local(Arial-Black), local("Arial Bold"), local(Arial);
  size-adjust: 127.75%; ascent-override: 111.15%; descent-override: 32.88%; line-gap-override: 0%;
}

:root {
  --font-bungee: "Bungee", "AMASO Bungee Fallback", sans-serif;
  --ar-beige: #e4e5de;
  --ar-ink: #0f0f0f;
  /* since 2026-10-20 the brand palette (/amaso/brand/tokens.css; the names stay "violet" so no rule moves):
     periwinkle buttons with ink type (4.9:1), #4a50d0 as accent type on the beige (4.9:1), #9ea3f5 on the dark cards */
  --ar-violet: var(--amaso-accent, #7179ef);
  --ar-violet-hover: var(--amaso-accent-hover, #8e92f1);
  --ar-violet-active: var(--amaso-accent-active, #7d84f0);
  --ar-violet-on-dark: var(--amaso-accent-text-dark, #9ea3f5);
  --ar-violet-text: var(--amaso-accent-text, #4a50d0);
  --ar-on-accent: var(--amaso-ink, #16151c);
  --ar-svc: var(--ar-violet-on-dark);  /* the page's / card's service colour (set per service below) */
  --ar-card: #171717;
  --ar-line: rgba(15, 15, 15, .14);
  --ar-body: rgba(15, 15, 15, .82);
  --ar-card-body: rgba(255, 255, 255, .72);
  --ar-r-card: 24px;
  --ar-r-media: 18px;
  --ar-wrap: 1376px; /* the homepage's content width: 1440 minus 32px gutters, centred above that */
  --ar-gutter: 16px;
  --ar-col-gap: 5rem; /* the "In het kort" grid's lg:gap-20, so every section shares its column lines */
  --ar-font: "AMASO Outfit", "AMASO Outfit Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* the header's arrow (amaso-header.js ARROW), white */
  --ar-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath stroke='%2316151c' stroke-linecap='square' stroke-linejoin='round' stroke-width='1.5' d='m6.993 13.332 7.255-7.256'/%3E%3Cpath stroke='%2316151c' stroke-linecap='square' stroke-linejoin='bevel' stroke-width='1.5' d='M6.828 5.582h7.92v7.92'/%3E%3C/svg%3E");
}

/* ---------- page ---------- */
:root body {
  background-color: var(--ar-beige);
  color: var(--ar-ink);
  font-family: var(--ar-font);
}
#smooth-content main.bg-white,
#smooth-content section.bg-white,
#smooth-content #about-me.bg-light-bg,
#project-page-overlay { background-color: var(--ar-beige); }
#smooth-content ::selection { background: var(--ar-violet); color: var(--ar-on-accent); }
/* the template sets select-none on the whole page; copy (an e-mail address, a fact) stays selectable */
main.select-none p, main.select-none li, main.select-none h2, main.select-none h3 { -webkit-user-select: text; user-select: text; }

#smooth-content a:focus-visible { outline: 2px solid var(--ar-violet-text); outline-offset: 3px; border-radius: 4px; }
#smooth-content a.underline {
  text-decoration-color: var(--ar-violet-text);
  text-decoration-thickness: 1.5px;
  text-underline-offset: .2em;
  transition: text-decoration-thickness .2s ease;
}
#smooth-content a.underline:hover { text-decoration-thickness: 3px; }

#tooltip.bg-light-bg {
  background: var(--ar-ink); color: #fff;
  font-family: var(--ar-font); font-size: 15px; font-weight: 500;
  padding: 10px 18px; border-radius: 999px;
}

/* ---------- hero (cases, diensten, contact, 404) ---------- */
.hero-section .hero-title {
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: .95;
  padding-bottom: .04em; /* room for descenders inside the overflow-hidden reveal mask */
}
.hero-section .hero-line { background-color: var(--ar-ink); opacity: .9; }
.hero-section .hero-text { color: var(--ar-ink); }
.hero-section .items-left .overflow-hidden:not(:first-child) > .hero-text {
  font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  line-height: 1.6;
}
@media (min-width: 640px) {
  .hero-section .items-left .overflow-hidden:not(:first-child) { flex-shrink: 0; padding-left: 24px; }
  .hero-section .items-left .overflow-hidden:not(:first-child) > .hero-text { padding-top: .35em; }
}

/* the buttons ("Plan een gesprek", "Bekijk site", "Mail ons", "Start de bananenmodus"): the homepage's button, as in the
   header (.amh-cta): a violet label box and a separate violet arrow square, 44px high, 14px radius, Outfit 16/400 in white.
   On hover both go lighter and the arrow leaves top right while the next one comes in bottom left (two background
   layers of the header's own arrow). The template's bubble and outline go; its scripts keep running unseen. */
#smooth-content a.bubble-button {
  display: inline-flex; align-items: stretch; gap: 0; height: 44px; padding: 0; border: 0; border-radius: 14px;
  background: transparent; color: var(--ar-on-accent); font-family: var(--ar-font); font-size: 16px; font-weight: 400; line-height: 1;
  -webkit-mask-image: none; mask-image: none;
}
#smooth-content a.bubble-button .bubble-button__bubble,
#smooth-content a.bubble-button > svg { display: none; }
#smooth-content a.bubble-button .bubble-button__label,
#smooth-content a.bubble-button::after {
  border-radius: 14px; background-color: var(--ar-violet); transition: background-color .2s cubic-bezier(.4, 0, .2, 1);
}
#smooth-content a.bubble-button .bubble-button__label { display: flex; align-items: center; padding: 0 24px; white-space: nowrap; }
#smooth-content a.bubble-button::after {
  content: ""; flex: none; width: 44px; height: 44px;
  background-image: var(--ar-arrow), var(--ar-arrow); background-repeat: no-repeat; background-size: 26px 26px;
  background-position: 9px 9px, -35px 53px;
  transition: background-color .2s cubic-bezier(.4, 0, .2, 1), background-position .35s cubic-bezier(.4, 0, .2, 1);
}
@media (hover: hover) {
  #smooth-content a.bubble-button:hover .bubble-button__label,
  #smooth-content a.bubble-button:hover::after { background-color: var(--ar-violet-hover); }
  #smooth-content a.bubble-button:hover::after { background-position: 53px -35px, 9px 9px; }
}
#smooth-content a.bubble-button:active .bubble-button__label,
#smooth-content a.bubble-button:active::after { background-color: var(--ar-violet-active); }
#smooth-content a.bubble-button:focus-visible { outline: 2px solid var(--ar-ink); outline-offset: 3px; border-radius: 16px; }
@media (prefers-reduced-motion: reduce) { #smooth-content a.bubble-button::after { transition: background-color .2s; } }

/* the VR case's embed snippet: a dark code card */
main.select-none div.rounded-lg:has(> #iframeCode) { background: var(--ar-card); color: #fff; border-radius: 16px; padding: 18px 20px; }
main.select-none #iframeCode { font-family: "AMASO Mono", ui-monospace, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.6; color: rgba(255, 255, 255, .86); }
main.select-none #copyButton:focus-visible { outline: 2px solid var(--ar-violet-on-dark); outline-offset: 2px; }

/* hero media: the case video, a dienst's still, or the coded laptop mockup */
.hero-section .hero-image { border-radius: var(--ar-r-media); }
/* Every width: the template forces 16:9 (aspect-video) or a square (the VR hero) on phones and drops the box on desktop
   (lg:aspect-auto, CLS ~0.3). Show the capture whole at its own shape, reserving 16:10 (every case hero is 1280x800 or
   1919x1199; Keto 16:9) until the media knows its size. */
.hero-section video.hero-image, .hero-section img.hero-image { aspect-ratio: auto 16 / 10; height: auto; }
.hero-section video.hero-image[poster*="/keto-australia/"] { aspect-ratio: auto 16 / 9; }
.hero-section .amaso-mockup { margin-top: clamp(4px, 1.6vw, 24px); }
.hero-section amaso-laptop { display: block; width: 100%; }

/* ---------- "In het kort" / "Wat je krijgt" / "Gegevens": a dark card beside the lead ---------- */
main.select-none > section.grid { align-items: start; }
main.select-none > section.grid > div:first-child {
  background: var(--ar-card);
  color: #fff;
  border-radius: var(--ar-r-card);
  padding: clamp(22px, 2.2vw, 32px);
}
main.select-none > section.grid > div:first-child > div {
  font-size: 16px; line-height: 1.45;
}
main.select-none > section.grid > div:first-child h2 {
  display: inline-flex; align-items: center; gap: 9px;
  margin: 0 0 12px;
  padding: 6px 13px 6px 11px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  font-size: 12px; font-weight: 500; letter-spacing: .1em; line-height: 1.2;
}
main.select-none > section.grid > div:first-child h2::before {
  content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ar-svc); box-shadow: 0 0 10px var(--ar-svc); /* the page's service colour, glowing */
}
main.select-none > section.grid > div:first-child li {
  margin: 0;
  padding: 11px 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: var(--ar-card-body);
}
main.select-none > section.grid > div:first-child li:first-child { border-top: 0; padding-top: 4px; }
main.select-none > section.grid > div:first-child li:last-child { padding-bottom: 0; }
main.select-none > section.grid > div:first-child a { color: #fff; text-decoration-color: var(--ar-violet-on-dark); }

/* the lead next to it */
main.select-none > section.grid > div:last-child > div {
  font-size: clamp(1.0625rem, 1.25vw, 1.25rem); line-height: 1.6; color: var(--ar-body);
}
main.select-none > section.grid > div:last-child > div > p:first-child {
  font-size: clamp(1.3125rem, 2vw, 1.875rem); line-height: 1.32; letter-spacing: -.015em;
  color: var(--ar-ink);
}

/* ---------- content sections ---------- */
main.select-none > section h2.font-normal {
  font-size: clamp(1.75rem, 2.75vw, 2.5rem);
  font-weight: 500; line-height: 1.1; letter-spacing: -.025em;
  margin-bottom: .5em;
}
main.select-none > section h3 {
  font-size: clamp(1.125rem, 1.45vw, 1.375rem);
  font-weight: 600; line-height: 1.25; letter-spacing: -.01em;
}
main.select-none > section p.text-base {
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  line-height: 1.6; color: var(--ar-body);
}
/* the AI page's three-up grids: the template's Tailwind build never generated md:grid-cols-3 */
@media (min-width: 48rem) {
  main.select-none > section > div.grid[class~="md:grid-cols-3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* media: rounder corners, a neutral shadow instead of the template's plum one */
main.select-none > section .rounded-lg,
main.select-none > section .rounded-xl { border-radius: var(--ar-r-media); }
main.select-none > section [class*="shadow-[0_2px_43px"] {
  box-shadow: 0 1px 2px rgba(15, 15, 15, .06), 0 28px 60px -18px rgba(15, 15, 15, .32);
}

/* card grids (Zo werkt het, and the AI page's feature grids): dark rounded cards */
main.select-none > section > div.grid.max-w-4xl[class*="grid-cols-2"],
main.select-none > section > div.grid.max-w-4xl[class*="grid-cols-3"] { gap: 14px; }
main.select-none > section > div.grid.max-w-4xl[class*="grid-cols-2"] > div,
main.select-none > section > div.grid.max-w-4xl[class*="grid-cols-3"] > div {
  background: var(--ar-card);
  color: #fff;
  border-radius: 20px;
  padding: clamp(20px, 2vw, 28px);
}
main.select-none > section > div.grid.max-w-4xl[class*="grid-cols-2"] > div h3,
main.select-none > section > div.grid.max-w-4xl[class*="grid-cols-3"] > div h3 { color: #fff; margin-bottom: .6em; }
main.select-none > section > div.grid.max-w-4xl[class*="grid-cols-2"] > div p,
main.select-none > section > div.grid.max-w-4xl[class*="grid-cols-3"] > div p,
main.select-none > section > div.grid.max-w-4xl[class*="grid-cols-2"] > div li,
main.select-none > section > div.grid.max-w-4xl[class*="grid-cols-3"] > div li { color: var(--ar-card-body); }
main.select-none > section > div.grid.max-w-4xl > div a.underline { color: #fff; text-decoration-color: var(--ar-violet-on-dark); }
main.select-none > section > div.grid.max-w-4xl > div ul { margin-top: 14px; font-size: 15px; }
main.select-none > section > div.grid.max-w-4xl > div ul li { position: relative; padding-left: 17px; }
main.select-none > section > div.grid.max-w-4xl > div ul li::before {
  content: ""; position: absolute; left: 1px; top: .62em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--ar-svc);
}

/* single-column lists (tools, FAQ on the AI page): divided rows */
main.select-none > section > div.grid.max-w-4xl:not([class*="grid-cols-2"]):not([class*="grid-cols-3"]) { gap: 0; }
main.select-none > section > div.grid.max-w-4xl:not([class*="grid-cols-2"]):not([class*="grid-cols-3"]) > div {
  padding: 20px 0 22px;
  border-top: 1px solid var(--ar-line);
  border-image: linear-gradient(90deg, rgba(113, 121, 239, .55), rgba(220, 122, 199, .45), rgba(244, 194, 99, .45), rgba(15, 15, 15, .1)) 1;
}
main.select-none > section > div.grid.max-w-4xl:not([class*="grid-cols-2"]):not([class*="grid-cols-3"]) > div h3 { margin-bottom: .4em; }

/* "Werk dat erbij hoort": the case cards */
main.select-none > section > div.grid > a.group {
  background: var(--ar-card);
  color: #fff;
  border-radius: var(--ar-r-card);
  padding: 10px 10px 22px;
  transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s ease;
}
main.select-none > section > div.grid > a.group > div { border-radius: 16px; }
/* the website shows whole (feedback: "make sure the websites fit perfect"): the template's 16:9 box cropped the 16:10
   captures' nav and bottom row; the box now takes each capture's own shape (its width/height), cards stay one height */
main.select-none > section > div.grid > a.group > div.aspect-video { aspect-ratio: auto; }
main.select-none > section > div.grid > a.group > div.aspect-video > img { height: auto; }
main.select-none > section > div.grid > a.group img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
main.select-none > section > div.grid > a.group h3 { color: #fff; margin: 16px 12px 0; }
main.select-none > section > div.grid > a.group p { color: var(--ar-card-body); margin: 6px 12px 0; font-size: clamp(.9375rem, 1.1vw, 1.0625rem); }
/* a case without a screenshot (the anonymous AI client): its words sit at the bottom of the card */
main.select-none > section > div.grid > a.group:not(:has(img)) {
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 220px; padding: 22px 12px 22px;
}
main.select-none > section > div.grid > a.group:not(:has(img))::before {
  content: ""; width: 8px; height: 8px; margin: 0 12px auto; border-radius: 50%;
  background: var(--amaso-gradient-line, #9ea3f5);
}
main.select-none > section > div.grid > a.group:not(:has(img)) h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 500; letter-spacing: -.02em; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  main.select-none > section > div.grid > a.group:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -20px rgba(15, 15, 15, .45), -10px 4px 34px -14px rgba(224, 101, 44, .55), 0 10px 34px -14px rgba(220, 122, 199, .5), 10px 4px 34px -14px rgba(113, 121, 239, .6); }
  main.select-none > section > div.grid > a.group:hover img { transform: scale(1.03); }
}

/* DIENSTEN / SAMENWERKEN marquees: Marquee.js sets the word's font-size to the track height after load; start at
   that size (the track's h-24 sm:h-32 md:h-48 xl:h-60) so nothing jumps when the script runs. */
.marquee-container .track > .item.font-bungee { font-size: 6rem; }
@media (min-width: 40rem) { .marquee-container .track > .item.font-bungee { font-size: 8rem; } }
@media (min-width: 48rem) { .marquee-container .track > .item.font-bungee { font-size: 12rem; } }
@media (min-width: 80rem) { .marquee-container .track > .item.font-bungee { font-size: 15rem; } }

/* ---------- "Volgend project" / "Volgende" marquee ---------- */
#smooth-content .marquee-link .arrow-text { font-weight: 700; letter-spacing: -.03em; }

/* ---------- /diensten/ hub: the seven service cards ----------
   Feedback (19 Oct): the media did not fit and the cards wanted "een beetje een andere stijl". Now in the homepage's
   dark-card language: left-aligned, a number, the title, the one-liner, "Wat je krijgt" as chips, the "Bekijk ..."
   link as the violet button, and on the right the service's coded laptop (<amaso-laptop>, the same as the dienst
   pages), whole and sharp. Every card has the same height and the same media box, so the stack lines up exactly.
   Phones and tablets: the laptop on top, the text below. */
#services { counter-reset: ar-svc; }
#services :is(.service-card, .service-card-last) { counter-increment: ar-svc; }
#services :is(.service-card, .service-card-last) > div {
  display: flex; flex-direction: column; gap: 22px; height: auto;
  padding: 16px 16px 28px; border-radius: var(--ar-r-card);
  background: var(--ar-card); color: #fff;
  border: 1px solid rgba(255, 255, 255, .06);
  box-shadow: 0 2px 30px rgba(15, 15, 15, .12), 0 -24px 80px rgba(15, 15, 15, .1);
}
/* the text column */
#services :is(.service-card, .service-card-last) > div > div:first-child {
  display: flex; flex-direction: column; justify-content: center; width: auto; margin: 0; padding: 0 8px;
}
#services :is(.service-card, .service-card-last) > div > div:first-child > div:first-child {
  margin: 0 0 12px; text-align: left; font-size: clamp(2rem, 2.5vw, 2.75rem); line-height: 1.05;
}
#services :is(.service-card, .service-card-last) > div > div:first-child > div:first-child::before {
  content: counter(ar-svc, decimal-leading-zero); display: block; margin-bottom: 12px;
  font-size: 14px; font-weight: 500; letter-spacing: .08em; line-height: 1; color: var(--ar-svc-text, var(--ar-svc));
}
#services :is(.service-card, .service-card-last) > div > div:first-child > div:first-child > div { display: block; }
#services :is(.service-card, .service-card-last) h3 { font-weight: 500; letter-spacing: -.025em; line-height: 1.05; text-align: left; }
#services :is(.service-card, .service-card-last) > div > div:first-child > div:last-child { display: block; margin: 0; }
#services :is(.service-card, .service-card-last) p {
  margin: 0 0 18px; max-width: 34em; text-align: left; line-height: 1.5; color: var(--ar-card-body);
}
/* the size goes on a selector that also matches the copy RevealAnimationHandler puts in <body> to measure the lines
   ("lines" reveal); scoped to #services, that copy measured at another size and the lines broke in odd places */
p.md\:text-base.lg\:flex-1[data-reveal="lines"] { font-size: 16px; }
/* "Wat je krijgt": chips */
#services :is(.service-card, .service-card-last) ul {
  display: flex; flex-flow: row wrap; align-items: center; gap: 8px; margin: 0; padding: 0;
}
#services :is(.service-card, .service-card-last) li { margin: 0; text-align: left; }
#services :is(.service-card, .service-card-last) li .underline-text {
  display: block; padding: 7px 12px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px;
  font-size: 13px; line-height: 1.2; text-align: left; white-space: nowrap; color: rgba(255, 255, 255, .86);
}
#services :is(.service-card, .service-card-last) .underline-indicator { display: none; }
/* the last item is the "Bekijk ..." link: the homepage's violet button */
#services :is(.service-card, .service-card-last) li:has(a) { flex-basis: 100%; margin-top: 12px; }
#services :is(.service-card, .service-card-last) li:has(a) .underline-text { padding: 0; border: 0; border-radius: 0; }
#services :is(.service-card, .service-card-last) li a.underline {
  display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 14px;
  background: var(--ar-violet); color: var(--ar-on-accent); text-decoration: none; font-size: 15px; font-weight: 400;
  transition: background-color .2s cubic-bezier(.4, 0, .2, 1);
}
@media (hover: hover) { #services :is(.service-card, .service-card-last) li a.underline:hover { background: var(--ar-violet-hover); } }
#services :is(.service-card, .service-card-last) li a.underline:active { background: var(--ar-violet-active); }
#services :is(.service-card, .service-card-last) li a.underline:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
/* each hub card in its service colour: the number, a hairline and, on hover, the Siri glow around the card */
#services :is(.service-card, .service-card-last) > div { transition: box-shadow .5s ease, border-color .5s ease; }
#services :is(.service-card, .service-card-last) > div:has(amaso-laptop) { border-color: color-mix(in srgb, var(--ar-svc) 38%, transparent); }
@media (hover: hover) {
  #services :is(.service-card, .service-card-last) > div:hover {
    box-shadow: 0 2px 30px rgba(15, 15, 15, .12), -14px 0 44px -12px rgba(224, 101, 44, .45), 0 -12px 44px -12px var(--ar-svc), 14px 0 44px -12px rgba(113, 121, 239, .5), 0 14px 44px -12px rgba(220, 122, 199, .4);
  }
}
/* the media column: the laptop first on small screens */
#services :is(.service-card, .service-card-last) > div > div:last-child {
  order: -1; width: 100%; height: auto; overflow: visible;
}
#services :is(.service-card, .service-card-last) amaso-laptop { display: block; width: 100%; }
/* until the laptop is in the markup: the old media whole-ish in a 16:10 window instead of a 1:1.5 crop */
#services :is(.service-card, .service-card-last) > div > div:last-child > div {
  height: 0; padding-bottom: 62.5%; border-radius: 14px; overflow: hidden;
}
#services :is(.service-card, .service-card-last) > div > div:last-child > div > :is(img, video) { border-radius: 0; }
@media (min-width: 768px) {
  #services :is(.service-card, .service-card-last) > div { padding: 24px 24px 32px; }
  #services :is(.service-card, .service-card-last) > div > div:last-child { width: min(100%, 620px); align-self: center; }
}
@media (min-width: 1024px) {
  :root { --hub-h: 428px; --hub-pad: 32px; --hub-gap: 40px; --hub-media: 44%; }
  #services :is(.service-card, .service-card-last) ul { gap: 6px; }
  #services :is(.service-card, .service-card-last) li .underline-text { padding: 6px 11px; font-size: 12.5px; }
  #services :is(.service-card, .service-card-last) > div {
    display: grid; align-items: center; gap: 0 var(--hub-gap);
    grid-template-columns: minmax(0, 1fr) min(var(--hub-media), calc((var(--hub-h) - 2 * var(--hub-pad)) * 1.7241));
    height: var(--hub-h); min-height: 0; padding: var(--hub-pad);
  }
  #services :is(.service-card, .service-card-last) > div > div:first-child { padding: 0; }
  #services :is(.service-card, .service-card-last) > div > div:last-child { order: 0; width: auto; align-self: center; }
}
@media (min-width: 1280px) {
  :root { --hub-h: 440px; --hub-pad: 40px; --hub-gap: 56px; --hub-media: 48%; }
  #services :is(.service-card, .service-card-last) ul { gap: 8px; }
  p.md\:text-base.lg\:flex-1[data-reveal="lines"] { font-size: 17px; }
  #services :is(.service-card, .service-card-last) li .underline-text { padding: 7px 12px; font-size: 14px; }
}
@media (min-width: 1536px) { :root { --hub-h: 480px; } }
#services h1 { font-weight: 500; letter-spacing: -.025em; }

/* the closing "Contact" card (diensten hub, over-ons): template dark, the homepage's violet on hover */
.late-cta > a { background-color: var(--ar-card); }
.late-cta > a { transition: box-shadow .5s ease; }
.late-cta > a:hover { background-color: var(--ar-card); box-shadow: inset 0 0 0 1px rgba(158, 163, 245, .5), -14px 0 44px -10px rgba(224, 101, 44, .5), 0 -10px 44px -10px rgba(220, 122, 199, .45), 14px 0 44px -10px rgba(113, 121, 239, .55); }

/* ---------- /over-ons/ ---------- */
#about-me h2 { font-weight: 500; letter-spacing: -.025em; }
#about-me .space-y-6 { color: var(--ar-body); }
#about-me .about-me-image { border-radius: var(--ar-r-card); }
.faq-section h2 { font-weight: 500; letter-spacing: -.025em; }
.faq-section .faq-item summary svg { color: var(--ar-violet-text); }
.faq-section .faq-item summary > div,
summary > div[data-reveal="lines"] { font-weight: 500; letter-spacing: -.01em; } /* the second one: the reveal's measuring copy */

/* ======================================================================================================
   ONE CENTRED CONTAINER (19 Oct: "center everything, no unused space on the right").
   Every block of a template page sits in the homepage's 1376px column (32px gutters, centred above 1440).
   Text sections share the "In het kort" grid lines from 1024px: the heading in the first third, the copy
   in the other two. Card grids span the whole column, sized by how many cards they hold.
   The marquees, the about hero and the footer stay full-bleed, as designed.
   ====================================================================================================== */
@media (min-width: 768px) { :root { --ar-gutter: 32px; } }

/* cases, diensten, contact, 404: main already has the 16/32px gutter */
main.select-none > section,
main.select-none > div.sketchfab-embed-wrapper,
main.select-none > div.mt-8,
main.select-none > .hero-wrapper > .hero-section {
  width: auto; max-width: var(--ar-wrap); margin-left: auto; margin-right: auto;
}
/* the template's inset media sections (md:mx-14 lg:mx-28) now span the same column, so every edge lines up
   (the container rule above already resets their side margins) */

/* text blocks: no more 896px column hugging the left */
main.select-none section div.mt-8.max-w-4xl,
main.select-none section div.grid.max-w-4xl { max-width: none; }
@media (min-width: 1024px) {
  main.select-none div.mt-8.max-w-4xl:has(> p) {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--ar-col-gap); align-items: start;
  }
  main.select-none div.mt-8.max-w-4xl:has(> p) > * { grid-column: 2 / span 2; }
  main.select-none div.mt-8.max-w-4xl:has(> p) > h2 { grid-column: 1; grid-row: 1 / span 9; margin-bottom: 0; }
  /* single-column lists (the AI page's FAQ and examples): question left, answer right, on the same lines */
  main.select-none section > div.grid.max-w-4xl:not([class*="grid-cols-2"]):not([class*="grid-cols-3"]) > div {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--ar-col-gap); align-items: start;
  }
  main.select-none section > div.grid.max-w-4xl:not([class*="grid-cols-2"]):not([class*="grid-cols-3"]) > div > * { grid-column: 2 / span 2; }
  main.select-none section > div.grid.max-w-4xl:not([class*="grid-cols-2"]):not([class*="grid-cols-3"]) > div > h3 { grid-column: 1; grid-row: 1 / span 9; margin-bottom: 0; }
}

/* card grids span the column; the number of cards sets the columns, so no row ends in a hole */
@media (min-width: 768px) {
  main.select-none section > div.grid:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  main.select-none section > div.grid:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  main.select-none section > div.grid:has(> :nth-child(6):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  main.select-none section > div.grid:is(:has(> :nth-child(4):last-child), :has(> :nth-child(8):last-child)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* "Volgend project": the label starts on the column's left edge */
#smooth-content .marquee-link > div:first-child { padding-left: max(var(--ar-gutter), calc((100vw - var(--ar-wrap)) / 2)); }

/* /diensten/ hub */
#services > div.inline-block,
#services-section-vt,
.late-cta {
  display: block; width: auto; max-width: calc(var(--ar-wrap) + 2 * var(--ar-gutter));
  margin-left: auto; margin-right: auto; padding-left: var(--ar-gutter); padding-right: var(--ar-gutter);
}
#services > div.inline-block > p { max-width: none; }
@media (min-width: 1024px) {
  #services > div.inline-block { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--ar-col-gap); align-items: start; }
  #services > div.inline-block > h1 { grid-column: 1; }
  #services > div.inline-block > p { grid-column: 2 / span 2; }
}
.late-cta > a { width: 100%; }

/* /over-ons/ */
#about-me > div,
.faq-section > div {
  max-width: calc(var(--ar-wrap) + 2 * var(--ar-gutter));
  margin-left: auto; margin-right: auto; padding-left: var(--ar-gutter); padding-right: var(--ar-gutter);
}
@media (min-width: 1024px) { #about-me > div > div.grid > div:first-child { padding-left: 0; } }

/* /diensten/ service stack. The template's ServicesSection script pins every card with offsets written for four
   cards; with seven they piled up in strips. Until amaso/tpl/restyle/services-stack.js runs (it sets html.ar-stack
   and builds a clean one-at-a-time stack), the template's pins are switched off here: the cards are a plain list. */
html:not(.ar-stack) #services :is(.service-card, .service-card-last) { transform: none !important; }
/* the covered card dims as the next one slides over it (services-stack.js tweens --ar-cover from 0 to 1) */
#services :is(.service-card, .service-card-last) > div { position: relative; }
#services :is(.service-card, .service-card-last) > div::after {
  content: ""; position: absolute; inset: 0; z-index: 5; border-radius: inherit; pointer-events: none;
  background: var(--ar-ink); opacity: calc(var(--ar-cover, 0) * .6);
}

/* ======================================================================================================
   BRAND PALETTE (2026-10-20, /amaso/brand/tokens.css; site-plan/BRAND-COLOURS.md). Colour only.
   Feedback: "use all these colours" + "the colours have to come back like this Siri effect of iOS 26":
   the ribbon colours as soft light at the edges (hero wash, card glows; never on the laptops), never flat behind text.
   ====================================================================================================== */
/* one colour per service: on a dienst page (its hero laptop) and on each hub card (the card holding its laptop) */
main.select-none:has(.hero-section amaso-laptop[mockup="website-design"]), #services .service-card:has(amaso-laptop[mockup="website-design"]), #services .service-card-last:has(amaso-laptop[mockup="website-design"]) { --ar-svc: var(--svc-website-design, #7179ef); }
main.select-none:has(.hero-section amaso-laptop[mockup="webshops"]), #services .service-card:has(amaso-laptop[mockup="webshops"]), #services .service-card-last:has(amaso-laptop[mockup="webshops"]) { --ar-svc: var(--svc-webshops, #f4c263); }
main.select-none:has(.hero-section amaso-laptop[mockup="apps"]), #services .service-card:has(amaso-laptop[mockup="apps"]), #services .service-card-last:has(amaso-laptop[mockup="apps"]) { --ar-svc: var(--svc-apps, #b6d3f4); }
main.select-none:has(.hero-section amaso-laptop[mockup="3d-vr"]), #services .service-card:has(amaso-laptop[mockup="3d-vr"]), #services .service-card-last:has(amaso-laptop[mockup="3d-vr"]) { --ar-svc: var(--svc-3d-vr, #b14bd3); --ar-svc-text: #c98ff0; }
main.select-none:has(.hero-section amaso-laptop[mockup="dashboards"]), #services .service-card:has(amaso-laptop[mockup="dashboards"]), #services .service-card-last:has(amaso-laptop[mockup="dashboards"]) { --ar-svc: var(--svc-dashboards, #d9a0e8); }
main.select-none:has(.hero-section amaso-laptop[mockup="marketing"]), #services .service-card:has(amaso-laptop[mockup="marketing"]), #services .service-card-last:has(amaso-laptop[mockup="marketing"]) { --ar-svc: var(--svc-marketing, #dc7ac7); }
main.select-none:has(.hero-section amaso-laptop[mockup="ai-automatisering"]), #services .service-card:has(amaso-laptop[mockup="ai-automatisering"]), #services .service-card-last:has(amaso-laptop[mockup="ai-automatisering"]) { --ar-svc: var(--svc-ai-automatisering, #e0652c); }

/* (22 Oct 2026: "get rid of it") no ribbon wash behind the hero any more: it sat in the content column and showed
   as a pastel block with hard side edges. The hero is plain page background now; the glow behind the laptop stays. */
/* the dienst hero's laptop: the Siri glow BEHIND it (a blurred ring of the ribbon colours, turning slowly). The laptop
   itself stays neutral aluminium: no tint on the frame, bezel or base (20 Oct: "op de laptop zelf" / "alle randen") */
.hero-section .amaso-mockup { position: relative; isolation: isolate; }
/* perf (21 Oct 2026): the ring is a real element: a clipped, blurred box whose conic layer turns with a transform (on the
   compositor). Turning a conic gradient about its own centre is the same picture as moving its start angle, so it looks
   exactly like the old ::before that animated --amaso-glow-angle (which repainted the 34px blur every frame). */
.amaso-glow-ring { display: none; }
.hero-section .amaso-mockup > .amaso-glow-ring {
  display: block; position: absolute; z-index: -1; inset: 6% 4% 4%; border-radius: 28px; pointer-events: none; overflow: hidden;
  filter: blur(34px); opacity: .55;
  animation: amaso-glow-breathe 6s ease-in-out infinite;
}
.hero-section .amaso-mockup > .amaso-glow-ring > i {
  position: absolute; left: 50%; top: 50%; width: 150%; aspect-ratio: 1; margin: -75% 0 0 -75%;
  background: conic-gradient(var(--amaso-glow-stops, #e0652c, #dc7ac7, #b14bd3, #7179ef, #b6d3f4, #d9a0e8, #f4c263, #eeb9b2, #e0652c));
  animation: amaso-ring-turn 9s linear infinite; will-change: transform;
}
@keyframes amaso-ring-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero-section .amaso-mockup > .amaso-glow-ring, .hero-section .amaso-mockup > .amaso-glow-ring > i { animation: none; } }

/* the dark "In het kort" card: a hairline in the page's service colour along its top edge */
main.select-none > section.grid > div:first-child { box-shadow: 0 -1px 0 0 var(--ar-svc); }

/* PERF (21 Oct 2026, smooth-report): the template's link underlines carry will-change: transform, but only their
   indicator's width animates (on hover). 42 of them on /diensten/ each became a permanent compositor layer, and
   re-layerizing those cost ~5.7 s per scroll on a phone. Same look, no layer. */
.underline-text.will-change-transform { will-change: auto; }
