/* ==========================================================================
   Kalmify — style.css
   Structure: fonts → tokens → base → components → sections → responsive
   ========================================================================== */
/* ---------- 1. Fonts (self-hosted Albert Sans, variable 300–900) ---------- */
@font-face {
  font-family: "Albert Sans";
  src: url("../assets/fonts/albert-sans-latin.woff2") format("woff2");
  font-weight: 300 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;
}

@font-face {
  font-family: "Albert Sans";
  src: url("../assets/fonts/albert-sans-latin-ext.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- 2. Tokens ---------- */
:root {
  --font: "Albert Sans", "Helvetica Neue", Arial, sans-serif;

  --bg: #ffffff;
  --surface: #f7f8fb;
  --surface-2: #eef1f5;
  --chip: #ffffff;
  --ink: #0a0a0a;
  --muted: #5f6671;
  --hair: #e6e8ec;
  --lime: #14a869;
  --lime-hover: #118f5a;
  --lime-ink: #011520;
  --accent-ink: #011520;
  --focus: #011520;
  --logo-color: #7a8ca0;
  --art-line: #c2cdd9;
  --art-fill: #e4eaf0;
  --teal-900: #011520;
  --teal-800: #072a36;
  --teal-700: #0c3a45;
  --slate: #7a8f99;
  --shadow: 0 1px 2px rgba(10, 10, 10, 0.04), 0 12px 32px rgba(10, 10, 10, 0.06);
  --shadow-lg: 0 30px 80px rgba(1, 21, 32, 0.28);
  --header-bg: rgba(255, 255, 255, 0.74);

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 32px;
  --gutter: 20px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 0.7s;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #011520;
  --surface: #061c29;
  --surface-2: #0b2937;
  --chip: #103343;
  --focus: #f2f5f4;
  --ink: #f2f5f4;
  --muted: #b8c7d2;
  --hair: rgba(255, 255, 255, 0.09);
  --lime: #9feda4;
  --lime-hover: #b4f4b8;
  --accent-ink: #0a0a0a;
  --logo-color: #b8c7d2;
  --art-line: #2a4850;
  --art-fill: #163a41;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
  --header-bg: rgba(1, 21, 32, 0.72);
  color-scheme: dark;
}

/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

html.theme-anim body, html.theme-anim .site-header, html.theme-anim .svc, html.theme-anim .wcard { transition: background-color 0.35s var(--ease), color 0.35s var(--ease); }

body.dialog-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }

img { height: auto; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

ul { margin: 0; padding: 0; list-style: none; }

p { margin: 0; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.022em;
  line-height: 1.08;
  text-wrap: balance;
}

h1 { font-size: clamp(2.75rem, 6.2vw, 4.6rem); line-height: 1.02; letter-spacing: -0.03em; }

h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }

h3 { font-size: 1.375rem; font-weight: 500; letter-spacing: -0.012em; line-height: 1.2; }

.muted { color: var(--muted); }

.lead { font-size: clamp(1.0625rem, 1.45vw, 1.25rem); line-height: 1.5; color: var(--muted); }

.lead-sm { font-size: 1.0625rem; max-width: 52ch; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.btn:focus-visible, .icon-btn:focus-visible, .chip:focus-visible { outline-offset: 3px; border-radius: 999px; }

::selection { background: var(--lime); color: var(--accent-ink); }

.container { width: min(100% - 2 * var(--gutter), 1200px); margin-inline: auto; }

.section { padding-block: clamp(72px, 9vw, 120px); }

.section-tight { padding-top: 0; }

.only-dark { display: none; }

:root[data-theme="dark"] .only-dark { display: block; }

:root[data-theme="dark"] .only-light { display: none; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--lime); color: var(--accent-ink); padding: 10px 16px; border-radius: 999px; font-weight: 500;
  transition: top 0.2s;
}

.skip-link:focus { top: 16px; }

/* ---------- 4. Components ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--hair); background: var(--bg);
  font-size: 0.875rem; font-weight: 500; color: var(--ink);
  width: fit-content;
}

.eyebrow-dark { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.16); color: #fff; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px;
  background: var(--chip); color: var(--ink); font-size: 0.875rem; font-weight: 500; white-space: nowrap;
  box-shadow: 0 0 0 1px var(--hair) inset;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px; border-radius: 999px;
  font-size: 0.9875rem; font-weight: 500; letter-spacing: -0.005em; white-space: nowrap;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.btn svg { width: 18px; height: 18px; flex: none; }

.btn:hover { transform: translateY(-1px); }

.btn:active { transform: translateY(0); }

.btn-lime { background: var(--lime); color: var(--accent-ink); }

.btn-lime:hover { background: var(--lime-hover); }

.btn-ghost { border: 1px solid var(--hair); color: var(--ink); background: transparent; }

.btn-ghost:hover { background: var(--surface); }

.icon-btn {
  width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center;
  border: 1px solid var(--hair); background: var(--bg); color: var(--ink);
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.icon-btn svg { width: 20px; height: 20px; }

.icon-btn:hover { background: var(--surface); }

.sec-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; margin-bottom: clamp(36px, 5vw, 56px); }

.sec-head h2 { max-width: 20ch; }

.sec-head.left { align-items: flex-start; text-align: left; }

.sec-head.left h2 { max-width: 24ch; }

/* reveal on scroll */
[data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}

[data-reveal].is-in { opacity: 1; transform: none; }

/* hero load */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

[data-hero] { animation: rise 0.9s var(--ease) both; animation-delay: calc(120ms + var(--i, 0) * 90ms); }

/* marquee */
.marquee { overflow: hidden; --gap: 28px; }

.marquee-track { display: flex; gap: var(--gap); width: max-content; animation: marquee var(--dur, 60s) linear infinite; will-change: transform; }

.marquee-group { display: flex; gap: var(--gap); align-items: center; flex: none; }

.marquee:hover .marquee-track, .marquee:focus-within .marquee-track, .marquee.is-paused .marquee-track { animation-play-state: paused; }

@keyframes marquee { to { transform: translateX(calc(-50% - var(--gap) / 2)); } }

/* lime strips (ribbon + footer strip) */
.strip-track { display: flex; width: max-content; animation: marquee 32s linear infinite; --gap: 0px; }

.strip-group { display: flex; flex: none; }

.strip-item { display: inline-flex; align-items: center; gap: 22px; padding-right: 22px; font-size: 1.25rem; font-weight: 500; color: var(--accent-ink); white-space: nowrap; letter-spacing: -0.01em; }

.strip-star { font-size: 1.1rem; }

.is-paused .strip-track { animation-play-state: paused; }

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  transition: box-shadow 0.3s var(--ease);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 16px; }

.logo img { height: 30px; width: auto; }

.header-actions { display: flex; align-items: center; gap: 8px; }

.lang {
  display: inline-grid; place-items: center; height: 44px; min-width: 44px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--hair); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em;
  transition: background-color 0.25s var(--ease);
}

.lang:hover { background: var(--surface); }

.theme-toggle .only-light, .theme-toggle .only-dark { display: grid; place-items: center; }

:root[data-theme="light"] .theme-toggle .only-dark { display: none; }

:root[data-theme="dark"] .theme-toggle .only-light { display: none; }

/* ---------- 6. Hero ---------- */
.hero { position: relative; padding-top: clamp(48px, 8vw, 104px); overflow: hidden; }

.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto; height: 90%; pointer-events: none; z-index: -1;
  background:
    radial-gradient(42% 50% at 86% 24%, rgba(159, 237, 164, 0.28), transparent 70%),
    radial-gradient(36% 46% at 14% 60%, rgba(0, 190, 230, 0.10), transparent 70%);
  filter: blur(24px);
}

:root[data-theme="dark"] .hero::before {
  background:
    radial-gradient(42% 50% at 86% 24%, rgba(159, 237, 164, 0.14), transparent 70%),
    radial-gradient(36% 46% at 14% 60%, rgba(0, 190, 230, 0.10), transparent 70%);
}

.hero .eyebrow { margin-bottom: 26px; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px 48px; }

.hero h1 { max-width: 11ch; }

.hero .lead { max-width: 54ch; margin-top: 24px; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-marquee { margin-top: clamp(48px, 6vw, 80px); padding-block: 28px 56px; --gap: 28px; }

.hcard {
  flex: none; width: clamp(280px, 30vw, 440px);
  background: var(--surface); border-radius: var(--r-lg); padding: 14px;
  transform: rotate(var(--r, 0deg)) translateY(var(--y, 0));
  box-shadow: var(--shadow);
}

.hcard img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; }

/* ---------- 7. Logos ---------- */
.logos { padding-block: 12px 0; }

.logos-label { text-align: center; font-size: 0.875rem; font-weight: 500; color: var(--muted); margin-bottom: 26px; }

.logos-marquee { --gap: 72px; padding-block: 8px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }

.client-logo { height: 30px; width: auto; max-width: 150px; opacity: 0.62; filter: grayscale(1); transition: opacity 0.3s, filter 0.3s; }

.marquee-group:hover .client-logo { opacity: 0.9; filter: grayscale(0); }

:root[data-theme="dark"] .client-logo { filter: grayscale(1) invert(1); opacity: 0.7; }

:root[data-theme="dark"] .marquee-group:hover .client-logo { filter: grayscale(1) invert(1); opacity: 1; }

/* ---------- 9. Services ---------- */
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.svc { background: var(--surface); border-radius: var(--r-xl); padding: 20px 20px 32px; display: flex; flex-direction: column; gap: 24px; }

.svc-body { padding: 0 12px; display: flex; flex-direction: column; gap: 12px; }

.svc-body h3 { margin-top: 4px; }

.svc-body .muted { max-width: 48ch; }

.svc-body .chips { margin-top: 8px; }

.svc .chip { background: var(--bg); }

.art {
  position: relative; height: 240px; border-radius: var(--r-md); overflow: hidden;
  background: var(--bg); display: grid; place-items: center; isolation: isolate;
}

.art::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.6;
  background-image: radial-gradient(var(--hair) 1px, transparent 1px); background-size: 18px 18px;
  mask-image: radial-gradient(60% 60% at 50% 50%, #000, transparent); -webkit-mask-image: radial-gradient(60% 60% at 50% 50%, #000, transparent);
}

/* tokens */
.art-panel { width: 250px; background: var(--surface); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); }

.art-row { display: flex; align-items: center; gap: 10px; }

.sw { width: 24px; height: 24px; border-radius: 50%; }

.sw-o { background: #ff9900; }

.sw-b { background: #12b1e0; }

.sw-g { background: #14a869; }

.sw-l { background: var(--lime); }

.sw-k { background: var(--teal-900); box-shadow: 0 0 0 1px var(--hair) inset; }

.art-btn { height: 30px; padding: 0 14px; border-radius: 999px; background: var(--lime); color: var(--accent-ink); font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; }

.art-btn.ghost { background: transparent; color: var(--ink); box-shadow: 0 0 0 1px var(--art-line) inset; }

.art-input { flex: 1; height: 30px; border-radius: 10px; background: var(--bg); box-shadow: 0 0 0 1px var(--art-line) inset; position: relative; }

.art-input i { position: absolute; left: 10px; top: 10px; width: 60%; height: 10px; border-radius: 5px; background: var(--art-line); }

.art-toggle { width: 44px; height: 26px; border-radius: 999px; background: var(--teal-900); position: relative; flex: none; }

.art-toggle i { position: absolute; top: 3px; left: 21px; width: 20px; height: 20px; border-radius: 50%; background: var(--lime); }

.art-tag { position: absolute; font-size: 11px; font-weight: 600; letter-spacing: 0.02em; padding: 5px 9px; border-radius: 8px; background: var(--teal-900); color: #fff; }

.art-tag.t1 { left: 24px; top: 28px; }

.art-tag.t2 { right: 24px; bottom: 28px; background: var(--lime); color: var(--accent-ink); }

/* ux */
.art-phone { width: 132px; height: 186px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow), 0 0 0 6px var(--bg), 0 0 0 7px var(--art-line); padding: 10px; display: flex; flex-direction: column; gap: 8px; translate: 18px 0; }

.ph-bar { width: 36px; height: 5px; border-radius: 3px; background: var(--art-line); margin: 0 auto 4px; }

.ph-hero { height: 46px; border-radius: 10px; background: linear-gradient(135deg, #006989, var(--teal-900)); }

.ph-line { height: 7px; border-radius: 4px; background: var(--art-line); }

.w70 { width: 70%; }

.w45 { width: 45%; }

.ph-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; flex: 1; }

.ph-grid span { border-radius: 8px; background: var(--bg); box-shadow: 0 0 0 1px var(--art-line) inset; }

.ph-cta { height: 22px; border-radius: 999px; background: var(--lime); }

.art-flow { position: absolute; left: 28px; top: 50%; translate: 0 -50%; display: flex; flex-direction: column; gap: 22px; }

.art-flow span { width: 14px; height: 14px; border-radius: 50%; background: var(--art-line); box-shadow: 0 0 0 4px var(--bg); position: relative; }

.art-flow span:nth-child(2) { background: var(--lime); }

.art-flow span:not(:last-child)::after { content: ""; position: absolute; left: 6px; top: 14px; width: 2px; height: 22px; background: var(--art-line); }

/* cro */
.art-chart { display: flex; align-items: flex-end; gap: 12px; height: 150px; padding-bottom: 0; border-bottom: 1px solid var(--art-line); }

.art-chart span { width: 26px; height: var(--h); border-radius: 8px 8px 3px 3px; background: var(--art-line); }

.art-chart span.lime { background: var(--lime); }

.art-badge { position: absolute; right: 28px; top: 28px; padding: 6px 10px; border-radius: 999px; background: var(--teal-900); color: var(--lime); font-size: 12px; font-weight: 700; letter-spacing: 0.02em; }

/* motion */
.art-mark { width: 118px; height: 118px; border-radius: 30px; overflow: hidden; box-shadow: var(--shadow); }

.art-mark img { width: 100%; height: 100%; display: block; }

.art-switch { position: absolute; right: 30px; bottom: 30px; width: 64px; height: 36px; border-radius: 999px; background: var(--lime); }

.art-switch i { position: absolute; top: 4px; left: 32px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-ink); animation: knob 3.2s var(--ease) infinite; }

@keyframes knob { 0%, 40% { left: 32px; } 50%, 90% { left: 4px; } 100% { left: 32px; } }

.art-dot { position: absolute; border-radius: 50%; }

.art-dot.d1 { left: 36px; top: 40px; width: 14px; height: 14px; background: #ff9900; }

.art-dot.d2 { left: 54px; bottom: 44px; width: 10px; height: 10px; background: #12b1e0; }

/* ---------- 10. Process ---------- */
.process-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 24px; }

.diamond-card { background: var(--surface); border-radius: var(--r-xl); padding: clamp(20px, 3vw, 36px); display: flex; flex-direction: column; gap: 22px; justify-content: center; }

.process-note { display: flex; align-items: center; gap: 10px; margin-top: 22px; color: var(--muted); font-size: 0.9375rem; }

.process-note svg { width: 18px; height: 18px; color: #1db36a; flex: none; }

/* ---------- 11. Principles / AI ---------- */
.four-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.pcard { background: var(--surface); border-radius: var(--r-lg); padding: 26px 26px 30px; display: flex; flex-direction: column; gap: 14px; }

.pcard h3 { font-size: 1.25rem; }

.pcard .muted { font-size: 0.9875rem; line-height: 1.55; }

.num { width: 38px; height: 38px; border-radius: 999px; background: var(--bg); display: grid; place-items: center; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; }

.work-grid { columns: 3; column-gap: 24px; }

.wcard {
  display: block; width: 100%; text-align: left; break-inside: avoid; margin-bottom: 24px;
  background: var(--surface); border-radius: var(--r-lg); padding: 12px 12px 18px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.wcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.wcard-media { display: block; border-radius: 18px; overflow: hidden; aspect-ratio: var(--ratio, 4 / 3); background: var(--surface-2); }

.wcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }

.wcard:hover .wcard-media img { transform: scale(1.025); }

.wcard-meta { display: flex; align-items: center; gap: 10px; padding: 16px 8px 4px; }

.wcard-client { font-weight: 600; font-size: 0.9375rem; flex: 1; }

.wcard-arrow { width: 32px; height: 32px; border-radius: 999px; display: grid; place-items: center; background: var(--bg); color: var(--ink); transition: background-color 0.3s var(--ease), color 0.3s var(--ease); }

.wcard-arrow svg { width: 16px; height: 16px; }

.wcard:hover .wcard-arrow { background: var(--lime); color: var(--accent-ink); }

.wcard-teaser { display: block; padding: 0 8px; color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }

/* dialog */
dialog.project {
  border: 0; padding: 0; margin: auto; border-radius: var(--r-lg);
  width: min(1040px, calc(100vw - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  background: var(--bg); color: var(--ink); box-shadow: var(--shadow-lg); overflow: auto;
}

dialog.project::backdrop { background: rgba(1, 21, 32, 0.62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

@keyframes dlg-in { from { opacity: 0; transform: translateY(14px) scale(0.985); } to { opacity: 1; transform: none; } }

dialog.project[open] { animation: dlg-in 0.4s var(--ease); }

.dlg-grid { display: grid; grid-template-columns: 0.95fr 1.25fr; min-height: 460px; }

.dlg-text { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 18px; justify-content: center; }

.dlg-logo { height: 26px; width: auto; max-width: 160px; margin-bottom: 8px; }

:root[data-theme="dark"] .dlg-logo { filter: grayscale(1) invert(1); }

.dlg-text h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 400; letter-spacing: -0.02em; }

.dlg-text .chips { margin-top: 8px; }

.dlg-media { background: var(--surface); padding: 16px; display: flex; }

.dlg-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; }

.dlg-close { position: absolute; top: 14px; right: 14px; background: var(--bg); }

/* ---------- 13. FAQ ---------- */
.faq { max-width: 780px; margin-inline: auto; }

.faq details { border-top: 1px solid var(--hair); }

.faq details:last-of-type { border-bottom: 1px solid var(--hair); }

.faq summary { display: flex; align-items: center; gap: 18px; padding: 22px 6px; cursor: pointer; list-style: none; font-size: 1.0625rem; font-weight: 500; }

.faq summary::-webkit-details-marker { display: none; }

.faq summary:hover { color: var(--ink); }

.plus { position: relative; width: 28px; height: 28px; flex: none; transition: transform 0.35s var(--ease); }

.plus::before, .plus::after { content: ""; position: absolute; background: currentColor; border-radius: 2px; }

.plus::before { left: 6px; right: 6px; top: 13px; height: 2px; }

.plus::after { top: 6px; bottom: 6px; left: 13px; width: 2px; }

.faq details[open] .plus { transform: rotate(45deg); }

.faq .answer { padding: 0 6px 26px 52px; color: var(--muted); max-width: 66ch; }

@keyframes fade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.faq details[open] .answer { animation: fade 0.35s var(--ease); }

/* ---------- 14. Contact / strip / footer ---------- */
.contact-card {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl); padding: clamp(44px, 7vw, 96px) clamp(24px, 5vw, 64px);
  color: #fff; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px;
  background:
    radial-gradient(48% 70% at 88% 8%, rgba(159, 237, 164, 0.26), transparent 62%),
    radial-gradient(40% 60% at 8% 100%, rgba(0, 190, 230, 0.14), transparent 60%),
    linear-gradient(135deg, var(--teal-700), var(--teal-900));
}

.contact-card h2 { max-width: 16ch; color: #fff; }

.contact-card > p { color: rgba(255, 255, 255, 0.78); max-width: 46ch; font-size: 1.0625rem; }

.contact-card .hero-ctas { justify-content: center; margin-top: 8px; }

.strip { display: block; overflow: hidden; background: var(--lime); color: var(--accent-ink); padding: 20px 0; }

.strip:hover .strip-track { animation-play-state: paused; }

.footer { padding: 56px 0 36px; }

.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }

.footer-brand { display: flex; flex-direction: column; gap: 14px; }

.footer-brand .muted { font-size: 0.9375rem; }

.footer-links { display: flex; flex-wrap: wrap; gap: 8px; }

.footer-links a {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--hair); font-size: 0.9375rem; font-weight: 500; transition: background-color 0.25s var(--ease);
}

.footer-links a:hover { background: var(--surface); }

.footer-links svg { width: 18px; height: 18px; }

.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--hair); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 0.875rem; }

/* 404 */
.notfound { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding-block: 48px; }

.notfound .logo { margin-bottom: 24px; }

.notfound h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }

.notfound .muted { max-width: 44ch; font-size: 1.125rem; }

/* ---------- 15. Responsive ---------- */
@media (min-width: 810px) {
  :root { --gutter: 32px; }
}

@media (min-width: 1200px) {
  :root { --gutter: 48px; }
}

@media (max-width: 1199px) {
  .process-grid { grid-template-columns: 1fr; }
  .four-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid { columns: 2; }
}

@media (max-width: 809px) {
  body { font-size: 1rem; }
  .header-inner { height: 72px; }
  .logo img { height: 26px; }
  .hero-grid { grid-template-columns: 1fr; align-items: start; }
  .hero h1 { max-width: none; }
  .hero-marquee { padding-block: 20px 40px; --gap: 18px; }
  .hcard { padding: 10px; border-radius: 22px; }
  .hcard img { border-radius: 14px; }
  .svc-grid { grid-template-columns: 1fr; }
  .four-grid { grid-template-columns: 1fr; }
  .work-grid { columns: 1; }
  .dlg-grid { grid-template-columns: 1fr; min-height: 0; }
  .dlg-media { order: -1; padding: 12px 12px 0; }
  .dlg-media img { aspect-ratio: 4 / 3; }
  .faq summary { padding: 18px 2px; font-size: 1rem; }
  .faq .answer { padding-left: 48px; }
  .footer-bottom { flex-direction: column; }
  .strip-item { font-size: 1.0625rem; }
}

@media (max-width: 480px) {
  .hero-ctas .btn { flex: 1 1 100%; }
  .contact-card .hero-ctas .btn { flex: 1 1 100%; }
}

/* ---------- 16. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  [data-hero] { animation: none; }
  .marquee-track, .strip-track { animation: none; }
  .marquee-track { flex-wrap: wrap; width: auto; }
  .marquee-group[aria-hidden="true"] { display: none; }
  .art-switch i { animation: none; }
  .wcard, .btn, .wcard-media img { transition: none; }
  dialog.project[open] { animation: none; }
}

/* ---------- 17. Print ---------- */
@media print {
  .site-header, .strip, .hero-marquee, .logos, .footer-links, dialog { display: none !important; }
  body { color: #000; background: #fff; }
}

/* ---------- 18. Late fixes ---------- */
[id] { scroll-margin-top: 96px; }

html.hero-done [data-hero] { animation: none; opacity: 1; transform: none; }

.footer-links a { height: 44px; }

.logo { display: inline-flex; align-items: center; min-height: 44px; }

/* motion toggle */
.hero-marquee { position: relative; }

.motion-toggle { position: absolute; right: var(--gutter); bottom: 10px; width: 40px; height: 40px; background: var(--bg); color: var(--muted); opacity: 0.85; }

.motion-toggle:hover { opacity: 1; color: var(--ink); }

.motion-toggle .ico-play { display: none; }

.motion-toggle svg { width: 16px; height: 16px; }

html.motion-paused .motion-toggle .ico-pause { display: none; }

html.motion-paused .motion-toggle .ico-play { display: block; }

html.motion-paused .marquee-track, html.motion-paused .strip-track, html.motion-paused .art-switch i { animation-play-state: paused; }

@media (max-width: 809px) {
  .motion-toggle { bottom: 0; }
}

.motion-toggle { width: 44px; height: 44px; bottom: 8px; }

/* ---------- 19. v2 — Robin's feedback (2026-10-15) ---------- */
/* header: static, no background, no navigation links */
.site-header { position: static; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none !important; }

.header-inner { height: 84px; }

@media (max-width: 809px) {
  .header-inner { height: 72px; }
}

@media (max-width: 420px) {
  .lang { min-width: 40px; padding: 0 8px; }
}

/* hero backdrop per theme */
.hero { isolation: isolate; }

:root[data-theme="light"] .hero::before { background: radial-gradient(38% 46% at 88% 22%, rgba(20, 168, 105, 0.14), transparent 70%); filter: blur(36px); }

/* logos: one consistent blue-grey via CSS mask */
.client-logo { display: block; aspect-ratio: var(--ar); max-width: none; opacity: 1; filter: none !important; background-color: var(--logo-color); -webkit-mask-size: contain; -webkit-mask-position: center; -webkit-mask-repeat: no-repeat; mask-size: contain; mask-position: center; mask-repeat: no-repeat; }

.client-logo { height: 30px; }

.marquee-group:hover .client-logo { opacity: 1; }

.client-logo[data-logo="ahold-delhaize"] { height: 40px; }

.client-logo[data-logo="hunkemoller"] { height: 20px; }

.client-logo[data-logo="action"] { height: 24px; }

.client-logo[data-logo="basic-fit"] { height: 32px; }

.client-logo[data-logo="bugaboo"] { height: 24px; }

.client-logo[data-logo="bacardi"] { height: 30px; }

.client-logo[data-logo="jde"], .client-logo[data-logo="unilever"] { height: 44px; }

.client-logo[data-logo="we-fashion"] { height: 32px; }

.client-logo[data-logo="muchachomalo"] { height: 14px; }

.client-logo[data-logo="omron"], .client-logo[data-logo="variational"] { height: 24px; }

/* intro (short studio introduction) */
.intro-card { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(24px, 4vw, 56px); align-items: end; background: var(--surface); border-radius: var(--r-xl); padding: clamp(28px, 4vw, 48px); }

.intro-head { display: flex; flex-direction: column; gap: 20px; }

.intro-head h2 { max-width: 14ch; }

.intro-body { font-size: clamp(1.0625rem, 1.3vw, 1.2rem); line-height: 1.55; color: var(--muted); max-width: 56ch; }

@media (max-width: 809px) {
  .intro-card { grid-template-columns: 1fr; align-items: start; }
}

/* process: deck layout (diamond image on a light card, phases as a vertical legend) */
.process-grid { grid-template-columns: 1.7fr 1fr; gap: 24px; align-items: stretch; }

.diamond-card { margin: 0; background: #f3f4f6; border-radius: var(--r-xl); padding: clamp(20px, 3vw, 40px); display: grid; place-items: center; }

:root[data-theme="dark"] .diamond-card { background: #eef0f3; }

.diamond-card img { width: 100%; height: auto; }

.phases { display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 8px 0 8px 12px; }

.phase h3 { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; color: var(--muted); }

.phase .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }

.phase ul { margin-top: 8px; font-size: 1.0625rem; line-height: 1.7; color: var(--ink); }

.process-note svg { color: var(--lime); }

@media (max-width: 1199px) {
  .process-grid { grid-template-columns: 1fr; }
  .phases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 32px; padding: 8px 0; }
}

@media (max-width: 600px) {
  .phases { grid-template-columns: 1fr; }
}

/* work ribbon: full viewport width */
.section-work { position: relative; overflow: clip; }

/* contact form dialog */
.contact-dialog { width: min(620px, calc(100vw - 32px)); }

.cform { padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; gap: 16px; }

.cform h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 400; letter-spacing: -0.02em; }

.cform > .muted { margin-bottom: 6px; }

.cfield { display: flex; flex-direction: column; gap: 6px; }

.cfield label { font-size: 0.875rem; font-weight: 500; }

.cfield input, .cfield textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--hair); border-radius: 14px; padding: 0 16px; height: 50px; width: 100%; transition: border-color 0.2s, box-shadow 0.2s; }

.cfield textarea { height: auto; min-height: 132px; padding: 14px 16px; resize: vertical; }

.cfield input:focus-visible, .cfield textarea:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lime) 35%, transparent); }

.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.cf-error { color: #b42318; font-size: 0.9375rem; }

:root[data-theme="dark"] .cf-error { color: #ff9a8f; }

.cf-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 6px; }

.cf-privacy { font-size: 0.8125rem; max-width: 32ch; }

.cf-success { padding: clamp(40px, 6vw, 64px) clamp(28px, 4vw, 44px); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }

.cf-success h3 { font-size: 1.5rem; font-weight: 400; letter-spacing: -0.02em; }

.cf-success:focus { outline: none; }

.cf-check { width: 56px; height: 56px; border-radius: 50%; background: var(--lime); color: var(--accent-ink); display: grid; place-items: center; margin-bottom: 8px; }

.cf-check svg { width: 26px; height: 26px; }

.strip { width: 100%; border: 0; cursor: pointer; text-align: left; }

.footer-links button { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--hair); font-size: 0.9375rem; font-weight: 500; transition: background-color 0.25s var(--ease); }

.footer-links button:hover { background: var(--surface); }

/* header: paint above the hero glow; hero: no clipping at the top so the glow has no edge */
.site-header { position: relative; z-index: 2; }

.hero { overflow: visible; overflow-x: clip; }

.hero::before { inset: -140px -10% auto; height: 110%; }

/* the hidden attribute must win over component display rules */
.cf-success[hidden], .cform[hidden], [hidden] { display: none !important; }

/* how we work: full-width card, image scales inside, phases below in a row */
.process-grid { grid-template-columns: 1fr; }

.diamond-card img { max-width: 1000px; }

.phases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 32px; padding: 8px 4px 0; }

@media (max-width: 1199px) {
  .phases { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .phases { grid-template-columns: 1fr; }
}

/* selected work: uniform 4:3 tiles in a plain grid, no logos, larger names */
.work-grid { columns: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.wcard { margin-bottom: 0; }

.wcard-meta { padding: 18px 8px 4px; }

.wcard-client { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.01em; }

@media (max-width: 1199px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 809px) {
  .work-grid { grid-template-columns: 1fr; }
}

/* footer: theme toggle as a round icon button */
.footer-links .icon-btn { width: 44px; padding: 0; }

/* header + footer pills: same solid background as the icon buttons */
.lang, .footer-links a, .footer-links button { background: var(--bg); }

.lang:hover, .footer-links a:hover, .footer-links button:hover, .icon-btn:hover { background: var(--surface); }

/* form: mark the field that needs attention */
.cfield [aria-invalid="true"] { border-color: #b42318; box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.15); }

:root[data-theme="dark"] .cfield [aria-invalid="true"] { border-color: #ff9a8f; box-shadow: 0 0 0 3px rgba(255, 154, 143, 0.2); }

.footer-links .icon-btn { display: grid; place-items: center; gap: 0; width: 44px; height: 44px; padding: 0; }

.footer-links .icon-btn span { display: grid; place-items: center; }

/* dark mode: lighter secondary text */
:root[data-theme="dark"] .contact-card > p { color: rgba(255, 255, 255, 0.86); }
/* ---------- background glows: larger, bleeding in from the screen edges ---------- */
:root { --glow-a: rgba(20, 168, 105, 0.24); --glow-b: rgba(0, 190, 230, 0.14); }
:root[data-theme="dark"] { --glow-a: rgba(159, 237, 164, 0.17); --glow-b: rgba(0, 190, 230, 0.16); }

.hero::before { inset: -280px -30% auto; height: 160%; }
:root[data-theme="light"] .hero::before, :root[data-theme="dark"] .hero::before {
  background:
    radial-gradient(52% 58% at 98% 6%, var(--glow-a), transparent 70%),
    radial-gradient(42% 52% at 0% 78%, var(--glow-b), transparent 70%);
  filter: blur(44px);
}

/* ---------- round 6 ---------- */
/* process: legend to the right of the diagram on wide screens */
@media (min-width: 1200px) {
  .process-grid { grid-template-columns: 1.7fr 1fr; align-items: center; }
  .phases { display: flex; flex-direction: column; gap: 22px; padding: 8px 0 8px 12px; }
}
/* dark mode: muted card behind the diagram instead of white */
:root[data-theme="dark"] .diamond-card { background: #94a8b6; }

/* glow levels: hero slightly stronger, the others softer; subtle side glows around the work section */
:root { --glow-hero: rgba(20, 168, 105, 0.30); --glow-hero-b: rgba(0, 190, 230, 0.16); --glow-soft: rgba(20, 168, 105, 0.15); --glow-soft-b: rgba(0, 190, 230, 0.10); }
:root[data-theme="dark"] { --glow-hero: rgba(159, 237, 164, 0.22); --glow-hero-b: rgba(0, 190, 230, 0.20); --glow-soft: rgba(159, 237, 164, 0.10); --glow-soft-b: rgba(0, 190, 230, 0.11); }
:root[data-theme="light"] .hero::before, :root[data-theme="dark"] .hero::before {
  background:
    radial-gradient(52% 58% at 98% 6%, var(--glow-hero), transparent 70%),
    radial-gradient(42% 52% at 0% 78%, var(--glow-hero-b), transparent 70%);
}

/* ---------- page-wide subtle edge glows (alternating down the left and right screen edges) ---------- */
body { position: relative; }
body::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(30% 12% at 100% 24%, var(--glow-soft), transparent 70%),
    radial-gradient(28% 11% at 0% 38%, var(--glow-soft-b), transparent 70%),
    radial-gradient(30% 12% at 100% 54%, var(--glow-soft-b), transparent 70%),
    radial-gradient(28% 11% at 0% 70%, var(--glow-soft), transparent 70%),
    radial-gradient(32% 12% at 100% 86%, var(--glow-soft), transparent 70%),
    radial-gradient(30% 12% at 0% 98%, var(--glow-soft-b), transparent 70%);
}

/* header + footer round buttons: always exact circles */
.lang, .icon-btn { width: 44px; height: 44px; min-width: 0; padding: 0; border-radius: 50%; aspect-ratio: 1 / 1; flex: none; display: inline-grid; place-items: center; }
/* no horizontal page scroll: glow layers stay within the page width, root clips the rest */
html { overflow-x: clip; }
.hero::before { left: 0; right: 0; }

/* mobile: dialogs take the full screen instead of floating */
@media (max-width: 809px) {
  dialog.project {
    width: 100vw; max-width: 100vw; height: 100vh; height: 100dvh; max-height: 100dvh;
    margin: 0; inset: 0; border-radius: 0; box-shadow: none;
    padding-bottom: env(safe-area-inset-bottom);
  }
  dialog.project[open] { animation: dlg-in-mobile 0.35s var(--ease); }
  dialog.project::backdrop { background: var(--bg); }
  .dlg-close { position: fixed; top: calc(12px + env(safe-area-inset-top)); right: 12px; z-index: 2; }
  .dlg-grid { min-height: 100%; }
  .dlg-media { padding-top: calc(64px + env(safe-area-inset-top)); }
  .cform { padding-top: calc(72px + env(safe-area-inset-top)); }
  .cf-success { min-height: 100vh; min-height: 100dvh; justify-content: center; }
}
@keyframes dlg-in-mobile { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
/* dialog logos: natural proportions, left-aligned (no flex stretching) */
.dlg-logo { align-self: flex-start; width: auto; height: 28px; max-width: 200px; object-fit: contain; object-position: left center; margin-bottom: 8px; }
.dlg-logo[src$="ahold-delhaize.svg"] { height: 44px; }
.dlg-logo[src$="hunkemoller.svg"] { height: 18px; }
.dlg-logo[src$="action.svg"] { height: 24px; }
.dlg-logo[src$="basic-fit.svg"] { height: 36px; }
.dlg-logo[src$="bugaboo.svg"] { height: 24px; }
.dlg-logo[src$="bacardi.png"] { height: 32px; }

/* desktop dialogs: white media column, close cross floating above the modal (centred, no background) */
@media (min-width: 810px) {
  dialog.project { inset: 76px 0 16px; margin: auto; max-height: calc(100vh - 92px); max-height: calc(100dvh - 92px); }
  .dlg-media { background: var(--bg); }
  .dlg-close { position: fixed; top: 16px; left: 50%; right: auto; translate: -50% 0; width: 44px; height: 44px; background: transparent; border: 0; color: #fff; }
  .dlg-close:hover { background: rgba(255, 255, 255, 0.12); }
  .dlg-close:focus-visible { outline-color: #fff; }
  .dlg-close svg { width: 24px; height: 24px; }
}
/* dialog motion lives on the content, never on the dialog box itself (keeps the fixed close cross at the viewport) */
@keyframes dlg-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes dlg-rise { from { transform: translateY(14px); } to { transform: none; } }
dialog.project[open] { animation: dlg-fade 0.3s var(--ease); }
dialog.project[open] > :not(.dlg-close) { animation: dlg-rise 0.4s var(--ease); }
@media (max-width: 809px) { dialog.project[open] { animation: dlg-fade 0.3s var(--ease); } }
/* mobile: bare close cross (no circle), in the text colour over the full-screen dialog */
@media (max-width: 809px) {
  .dlg-close { background: transparent; border: 0; color: var(--ink); }
  .dlg-close:hover { background: transparent; }
  .dlg-close svg { width: 24px; height: 24px; }
}
/* mobile: no side glows; only the hero corners (top-right, bottom-left) and a glow at the bottom centre of the footer */
@media (max-width: 809px) {
  body::before { background: radial-gradient(90% 9% at 50% 100%, var(--glow-soft), transparent 70%); }
}
/* dark mode: dialog logos use the same blue-grey mask as the brand row */
.dlg-logo-mask { height: 28px; aspect-ratio: var(--ar); background-color: var(--logo-color); -webkit-mask-size: contain; -webkit-mask-position: left center; -webkit-mask-repeat: no-repeat; mask-size: contain; mask-position: left center; mask-repeat: no-repeat; align-self: flex-start; margin-bottom: 8px; }
:root[data-theme="dark"] .dlg-logo-mask { display: block; }
.dlg-logo-mask[data-logo="ahold-delhaize"] { height: 44px; }
.dlg-logo-mask[data-logo="hunkemoller"] { height: 18px; }
.dlg-logo-mask[data-logo="action"] { height: 24px; }
.dlg-logo-mask[data-logo="basic-fit"] { height: 36px; }
.dlg-logo-mask[data-logo="bugaboo"] { height: 24px; }
.dlg-logo-mask[data-logo="bacardi"] { height: 32px; }
/* dialog media column: same background as the dialog at every width */
.dlg-media { background: var(--bg); }
/* mobile footer glow: round, centred on the bottom edge */
@media (max-width: 809px) {
  body::before { background: radial-gradient(circle 340px at 50% 100%, var(--glow-soft), transparent 70%); }
}
.dlg-logo[src$="hunkemoller.svg"], .dlg-logo-mask[data-logo="hunkemoller"] { height: 24px; }
/* how we work: diagram card takes the remaining width, legend hugs its content */
@media (min-width: 1200px) {
  .process-grid { grid-template-columns: minmax(0, 1fr) auto; gap: 32px; }
  .diamond-card { min-width: 0; }
  .diamond-card img { max-width: 100%; }
  .phases { width: max-content; padding-right: 8px; }
}
/* no page scroll behind an open dialog */
html.dialog-open { overflow: hidden; }
/* dark mode: lighter scrim + hairline edge so the dialog separates from the page */
:root[data-theme="dark"] dialog.project::backdrop { background: rgba(30, 56, 72, 0.78); }
@media (max-width: 809px) { :root[data-theme="dark"] dialog.project { box-shadow: none; } }

/* motion card: the toggle flips the brand tile and nudges the dots, all on one 3.2s cycle */
.art-mark { overflow: visible; box-shadow: none; perspective: 600px; }
.art-mark-inner { position: relative; width: 118px; height: 118px; transform-style: preserve-3d; animation: tile-flip 3.2s var(--ease) infinite; }
.art-mark-inner img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 30px; box-shadow: var(--shadow); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.art-mark-inner .face-back { transform: rotateY(180deg); }
@keyframes tile-flip { 0%, 40% { transform: rotateY(0deg); } 50%, 90% { transform: rotateY(180deg); } 100% { transform: rotateY(360deg); } }
.art-dot.d1 { animation: dot-a 3.2s var(--ease) infinite; }
.art-dot.d2 { animation: dot-b 3.2s var(--ease) infinite; }
@keyframes dot-a { 0%, 40% { transform: translate(0, 0); } 50%, 90% { transform: translate(14px, 10px) scale(1.3); } 100% { transform: translate(0, 0); } }
@keyframes dot-b { 0%, 40% { transform: translate(0, 0); } 50%, 90% { transform: translate(-10px, -12px) scale(0.8); } 100% { transform: translate(0, 0); } }
html.motion-paused .art-mark-inner, html.motion-paused .art-dot { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .art-mark-inner, .art-dot { animation: none; } }
/* dark mode: small tags in the illustrations need a lighter navy to show on the navy panel */
:root[data-theme="dark"] .art-tag.t1, :root[data-theme="dark"] .art-badge { background: var(--chip); color: #fff; }
:root[data-theme="dark"] .art-badge { color: var(--lime); }
:root[data-theme="dark"] .art-toggle, :root[data-theme="dark"] .sw-k { background: var(--chip); }
/* motion tile: subtle crossfade between the dark and light face instead of a flip */
.art-mark { perspective: none; }
.art-mark-inner { transform-style: flat; animation: tile-breathe 3.2s var(--ease) infinite; }
.art-mark-inner img { backface-visibility: visible; -webkit-backface-visibility: visible; }
.art-mark-inner .face-front { transform: none; animation: face-front 3.2s var(--ease) infinite; }
.art-mark-inner .face-back { transform: none; animation: face-back 3.2s var(--ease) infinite; }
@keyframes face-front { 0%, 40% { opacity: 1; } 50%, 90% { opacity: 0; } 100% { opacity: 1; } }
@keyframes face-back { 0%, 40% { opacity: 0; } 50%, 90% { opacity: 1; } 100% { opacity: 0; } }
@keyframes tile-breathe { 0%, 40% { transform: scale(1); } 50%, 90% { transform: scale(0.97); } 100% { transform: scale(1); } }
html.motion-paused .art-mark-inner img { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .art-mark-inner img, .art-mark-inner { animation: none; } .art-mark-inner .face-back { opacity: 0; } }

/* motion tile v3: three independent, quiet movements */
.art-mark { overflow: hidden; border-radius: 30px; box-shadow: var(--shadow); perspective: none; opacity: 0; transform: translateY(14px) scale(0.96); transition: opacity 0.9s var(--ease) 0.15s, transform 0.9s var(--ease) 0.15s; }
.art-mark img { width: 100%; height: 100%; display: block; }
.svc.is-in .art-mark { opacity: 1; transform: none; }                 /* 1. the logo settles into place once, on scroll-in */
.art-progress { position: absolute; left: 28px; top: 32px; width: 72px; height: 6px; border-radius: 999px; background: var(--art-line); overflow: hidden; }
.art-progress i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--lime); animation: art-progress 4.8s var(--ease) infinite; }   /* 2. a progress bar on its own rhythm */
@keyframes art-progress { 0% { width: 0; opacity: 1; } 55% { width: 100%; opacity: 1; } 82% { width: 100%; opacity: 1; } 94% { width: 100%; opacity: 0; } 100% { width: 0; opacity: 0; } }
/* 3. the toggle keeps its own 3.2s rhythm (see .art-switch i) */
html.motion-paused .art-progress i { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .art-mark { opacity: 1; transform: none; transition: none; }
  .art-progress i { animation: none; width: 62%; }
}

/* motion tile v4: the brandmark assembles from its three parts; a light beam sweeps through the negative space (the K) */
.art-mark { position: relative; background: #001b2a; overflow: hidden; border-radius: 30px; opacity: 1; transform: none; transition: none; box-shadow: var(--shadow); }
.art-mark .part { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: transform 0.9s var(--ease), opacity 0.9s var(--ease); }
.art-mark .part-orange { transform: translate(-24px, -24px); transition-delay: 0.15s; }
.art-mark .part-green { transform: translate(-22px, 22px); transition-delay: 0.3s; }
.art-mark .part-blue { transform: translate(28px, 0); transition-delay: 0.45s; }
.svc.is-in .art-mark .part { opacity: 1; transform: none; }
html.motion-paused @media (prefers-reduced-motion: reduce) {
  .art-mark .part { opacity: 1; transform: none; transition: none; }
  }

/* motion tile v5: light flows through the K-shaped empty space between the three blocks (masked by the negative space) */
html.motion-paused @media (prefers-reduced-motion: reduce) { }
/* motion tile: the toggle track dims while the switch is off (same 3.2s rhythm as the knob) */
.art-switch { animation: switch-track 3.2s var(--ease) infinite; }
@keyframes switch-track { 0%, 40% { background: var(--lime); } 50%, 90% { background: var(--art-line); } 100% { background: var(--lime); } }
html.motion-paused .art-switch { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .art-switch { animation: none; } }
/* K light: narrower travelling highlight over a faint constant tint, so the K reads at rest and lights up as the beam passes */

/* ---------- intro loader: the brandmark assembles, then the page fades in (first visit per browser session) ---------- */
.loader { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: grid; place-items: center; pointer-events: none; animation: loader-out 0.5s var(--ease) 1.3s forwards; }
html.no-loader .loader { display: none; }
.loader-mark { position: relative; width: 104px; height: 104px; border-radius: 26px; background: #001b2a; overflow: hidden; box-shadow: var(--shadow); animation: loader-mark-in 0.5s var(--ease) both; }
.loader-mark .part { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; animation: loader-part-in 0.7s var(--ease) forwards; }
.loader-mark .part-orange { --dx: -22px; --dy: -22px; animation-delay: 0.15s; }
.loader-mark .part-green { --dx: -20px; --dy: 20px; animation-delay: 0.3s; }
.loader-mark .part-blue { --dx: 26px; --dy: 0px; animation-delay: 0.45s; }
@keyframes loader-part-in { from { opacity: 0; transform: translate(var(--dx), var(--dy)); } to { opacity: 1; transform: none; } }
@keyframes loader-mark-in { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes loader-out { to { opacity: 0; visibility: hidden; } }
html.has-loader [data-hero] { animation-delay: calc(1.25s + 120ms + var(--i, 0) * 90ms); }
@media (prefers-reduced-motion: reduce) { .loader { display: none; } html.has-loader [data-hero] { animation: none; } }
/* intro: just the three blocks, larger, no tile behind them */
.loader-mark { width: clamp(200px, 26vw, 300px); height: clamp(200px, 26vw, 300px); background: transparent; box-shadow: none; border-radius: 0; overflow: visible; }

/* ---------- vector brandmark (intro + motion tile) ---------- */
.brandmark-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.brandmark-svg .part { transform-box: fill-box; transform-origin: center; }
.loader-mark { width: clamp(56px, 6vw, 80px); height: clamp(56px, 6vw, 80px); }
.loader-mark .part { position: static; opacity: 0; animation: loader-part-in 0.5s var(--ease) forwards; }
.loader-mark .part-orange { --dx: -14px; --dy: -14px; animation-delay: 0.05s; }
.loader-mark .part-green { --dx: -12px; --dy: 12px; animation-delay: 0.15s; }
.loader-mark .part-blue { --dx: 16px; --dy: 0px; animation-delay: 0.25s; }
.loader { animation: loader-out 0.35s var(--ease) 0.85s forwards; }
html.has-loader [data-hero] { animation-delay: calc(0.85s + 120ms + var(--i, 0) * 90ms); }
.art-mark { display: grid; place-items: center; background: #011520; }
.art-mark .brandmark-svg { width: 58%; height: 58%; }
.art-mark .part { position: static; opacity: 0; transition: transform 0.9s var(--ease), opacity 0.9s var(--ease); }
.art-mark .part-orange { transform: translate(-22px, -22px); transition-delay: 0.15s; }
.art-mark .part-green { transform: translate(-20px, 20px); transition-delay: 0.3s; }
.art-mark .part-blue { transform: translate(26px, 0); transition-delay: 0.45s; }
.svc.is-in .art-mark .part { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .loader-mark .part, .art-mark .part { opacity: 1; transform: none; animation: none; transition: none; } }

/* ---------- centred status pages (404, form fallback) ---------- */
.notfound { align-items: center; text-align: center; }
.notfound .nf { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.notfound .muted { margin-inline: auto; }
.notfound .hero-ctas { justify-content: center; }

/* ---------- privacy statement ---------- */
.legal { padding-block: clamp(40px, 7vw, 88px) clamp(72px, 10vw, 128px); }
.legal-inner { max-width: 720px; margin-inline: auto; }
.legal h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); margin-top: 20px; }
.legal .updated { margin-top: 12px; color: var(--muted); font-size: 0.9375rem; }
.legal-intro { margin-top: 28px; font-size: 1.1875rem; line-height: 1.55; }
.legal section { margin-top: 44px; }
.legal h2 { font-size: clamp(1.25rem, 2vw, 1.5rem); letter-spacing: -0.01em; margin-bottom: 12px; }
.legal section p { color: var(--muted); line-height: 1.65; }
.legal section p + p, .legal ul + p { margin-top: 12px; }
.legal ul { margin-top: 10px; padding-left: 1.25em; list-style: disc; color: var(--muted); line-height: 1.65; }
.legal li::marker { color: var(--lime); }
.legal section a, .text-link, .cf-privacy a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 2px; text-underline-offset: 3px; transition: text-decoration-color 0.2s var(--ease); }
.legal section a:hover, .text-link:hover, .cf-privacy a:hover { text-decoration-color: currentColor; }
.text-link { background: none; border: 0; padding: 0; margin: 0; font: inherit; cursor: pointer; display: inline; }

/* ---------- footer: small privacy link on the copyright row ---------- */
.footer-bottom { align-items: baseline; flex-wrap: nowrap; }
.footer-bottom p { min-width: 0; }
.footer-legal { flex-shrink: 0; }
.footer-legal { color: var(--muted); text-decoration: underline; text-decoration-color: var(--hair); text-underline-offset: 3px; transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease); }
.footer-legal:hover, .footer-legal[aria-current="page"] { color: var(--ink); text-decoration-color: currentColor; }
@media (max-width: 809px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }

/* ---------- footer language button: same round NL/EN button as the header ---------- */
.footer-links .lang { display: inline-grid; place-items: center; gap: 0; width: 44px; height: 44px; min-width: 0; padding: 0; border-radius: 50%; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; }

/* ---------- 404: large display number, bigger heading and text ---------- */
.nf-code { font-size: clamp(6.5rem, 22vw, 13rem); line-height: 0.85; font-weight: 500; letter-spacing: -0.06em; color: var(--lime); margin-bottom: 4px; }
.notfound .nf h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); }
.notfound .nf .muted { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); max-width: 46ch; }

/* ---------- status pages (404, form fallback): just two round glows, left and right ---------- */
body.page-404::before {
  background:
    radial-gradient(circle min(46vw, 520px) at 0% 38%, var(--glow-hero-b), transparent 70%),
    radial-gradient(circle min(46vw, 520px) at 100% 62%, var(--glow-soft), transparent 70%);
}
@media (max-width: 809px) {
  body.page-404::before {
    background:
      radial-gradient(circle 260px at 0% 30%, var(--glow-hero-b), transparent 70%),
      radial-gradient(circle 260px at 100% 72%, var(--glow-soft), transparent 70%);
  }
}

/* ---------- privacy page: two round glows only, top right and bottom left ---------- */
body.page-legal::before {
  background:
    radial-gradient(circle min(46vw, 560px) at 100% 0%, var(--glow-soft), transparent 70%),
    radial-gradient(circle min(46vw, 560px) at 0% 100%, var(--glow-hero-b), transparent 70%);
}
@media (max-width: 809px) {
  body.page-legal::before {
    background:
      radial-gradient(circle 280px at 100% 0%, var(--glow-soft), transparent 70%),
      radial-gradient(circle 280px at 0% 100%, var(--glow-hero-b), transparent 70%);
  }
}

/* ---------- hero: blue glow higher, beside the work cards, fully faded out above the logo strip ---------- */
/* the glow layer starts 280px above the hero and is 1.6x its height, so 280px + 34% = 55% down the hero */
:root[data-theme="light"] .hero::before, :root[data-theme="dark"] .hero::before {
  background:
    radial-gradient(52% 58% at 98% 6%, var(--glow-hero), transparent 70%),
    radial-gradient(42% 340px at 0% calc(280px + 34%), var(--glow-hero-b), transparent 70%);
}
@media (max-width: 809px) {
  :root[data-theme="light"] .hero::before, :root[data-theme="dark"] .hero::before {
    background:
      radial-gradient(52% 58% at 98% 6%, var(--glow-hero), transparent 70%),
      radial-gradient(70% 280px at 0% calc(280px + 34%), var(--glow-hero-b), transparent 70%);
  }
}
