/* ==========================================================================
   RHK Dagsorgsentrum — styles
   Plain CSS, no build step. Edit the colour tokens below to re-theme the site.
   ========================================================================== */

:root {
  /* brand */
  --ink: #1d1a4a;
  --ink-soft: #55537a;
  --brand: #4f36c8;
  --brand-dark: #3a26a3;
  --lilac: #efe9ff;
  --lilac-2: #e0d6ff;
  --cream: #fff9f1;
  --paper: #ffffff;
  --sun: #ffc247;
  --coral: #ff6b5e;
  --pink: #ff8db8;
  --mint: #2eb89a;
  --sky: #4fb3f6;
  --line: rgba(29, 26, 74, 0.1);

  /* type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* shape */
  --r-sm: 14px;
  --r-md: 22px;
  --r-lg: 32px;
  --shadow-sm: 0 2px 10px rgba(29, 26, 74, 0.06);
  --shadow-md: 0 14px 40px rgba(29, 26, 74, 0.1);
  --shadow-lg: 0 30px 70px rgba(29, 26, 74, 0.18);

  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 76px;
  --logo: 240px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;   /* the tilted marquee strip pokes out by 1px; clip (unlike hidden) keeps the sticky header working */
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--sun); color: var(--ink); }

/* language switching: both languages live in the HTML, CSS shows one */
html[lang="af"] [data-lang="en"],
html[lang="en"] [data-lang="af"] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon--fill { fill: currentColor; stroke: none; }

/* ---------- layout helpers ---------- */
.container { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: clamp(72px, 10vw, 128px); position: relative; }
.section--lilac { background: var(--lilac); }
.section--ink { background: var(--ink); color: #fff; }
.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--coral); box-shadow: 14px 0 0 var(--sun), 28px 0 0 var(--mint); margin-right: 28px; }
.section--ink .eyebrow { color: var(--sun); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; line-height: 1.1; font-optical-sizing: auto; }
h1, h2 { word-spacing: 0.04em; text-wrap: balance; }
.lead, .card__body p, .feature p { text-wrap: pretty; }
h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); margin-bottom: 1rem; }
h3 { font-size: 1.4rem; line-height: 1.2; letter-spacing: 0; font-weight: 600; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--ink-soft); }
.section--ink .lead { color: rgba(255, 255, 255, 0.78); }

/* marker-style highlight used on one word per headline */
.mark { position: relative; white-space: nowrap; z-index: 0; }
.mark::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: 0.06em; height: 0.34em;
  background: var(--sun); border-radius: 999px; z-index: -1; transform: rotate(-1.2deg);
}
.section--ink .mark::after { background: var(--coral); opacity: 0.9; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.95rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1.1; white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px rgba(79, 54, 200, 0.32); }
.btn--primary:hover { background: var(--brand-dark); box-shadow: 0 14px 30px rgba(79, 54, 200, 0.4); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--sun { background: var(--sun); color: var(--ink); box-shadow: 0 10px 24px rgba(255, 194, 71, 0.4); }
.btn--sun:hover { background: #ffb21e; }
.btn--sm { padding: 0.7rem 1.2rem; font-size: 0.92rem; }
.btn .icon { width: 1.1em; height: 1.1em; }

/* ---------- top bar + header ---------- */
.topbar { background: var(--ink); color: rgba(255, 255, 255, 0.85); font-size: 0.85rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.topbar a { display: inline-flex; align-items: center; gap: 0.45rem; transition: color 0.2s; }
.topbar a:hover { color: var(--sun); }
.topbar strong { color: #fff; }
.topbar__right { display: flex; gap: 1.4rem; }
.topbar__right > span { display: inline-flex; align-items: center; gap: 0.45rem; }

.header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 249, 241, 0.82);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}
.header.is-scrolled { box-shadow: 0 6px 24px rgba(29, 26, 74, 0.08); background: rgba(255, 249, 241, 0.94); }
.header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

/* hero logo: the particle logo sits in normal flow above the eyebrow line. The slot (.brand) reserves the whole
   canvas (logo box + 8% padding each side) and clips it, so scattering/exploding particles can never reach other text. */
.brand { position: relative; display: block; width: calc(var(--logo) * 1.16); height: calc(var(--logo) * 1.16);
  overflow: hidden; margin: calc(var(--logo) * -0.08) 0 0.6rem calc(var(--logo) * -0.08); }   /* negative top/left margin cancels the slot's empty 8% padding, so the VISIBLE logo is what aligns */
.brand__stage { position: absolute; left: calc(var(--logo) * 0.08); top: calc(var(--logo) * 0.08); width: var(--logo); height: var(--logo); }
.brand__logo { display: block; width: 100%; height: 100%; border-radius: 28px; transition: opacity 0.4s; }
.js .brand__logo { opacity: 0; }
.logo-fallback .brand__logo { opacity: 1; }
.brand__canvas { position: absolute; left: -8%; top: -8%; width: 116%; height: 116%; pointer-events: none; }

.nav { display: flex; align-items: center; gap: 0.4rem; margin-inline: auto; }
.nav__link { white-space: nowrap; padding: 0.55rem 0.95rem; border-radius: 999px; font-weight: 600; font-size: 0.95rem; color: var(--ink-soft); transition: background 0.2s, color 0.2s; }
.nav__link:hover, .nav__link.is-active { background: var(--lilac); color: var(--brand-dark); }
.header__actions { display: flex; align-items: center; gap: 0.75rem; }

.lang {
  display: inline-flex; padding: 3px; border-radius: 999px; background: var(--lilac); border: 1px solid var(--lilac-2);
}
.lang button { border: 0; background: transparent; padding: 0.3rem 0.7rem; border-radius: 999px; font-weight: 800; font-size: 0.78rem; letter-spacing: 0.06em; color: var(--ink-soft); }
.lang button[aria-pressed="true"] { background: var(--brand); color: #fff; }

.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--lilac); align-items: center; justify-content: center; }
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: 6px clamp(64px, 8vw, 110px); }   /* tiny top padding: the logo starts right under the header */
.hero::before { /* soft lilac wash */
  content: ""; position: absolute; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  right: -18vw; top: -22vw; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, var(--lilac-2), transparent 68%); z-index: 0;
}
.dots { position: absolute; z-index: 0; width: 220px; height: 220px; opacity: 0.55;
  background-image: radial-gradient(var(--c, var(--coral)) 22%, transparent 24%); background-size: 22px 22px; }
.hero .dots--a { left: -60px; bottom: 40px; --c: var(--sun); }
.hero .dots--b { right: 4%; top: 30px; --c: var(--pink); width: 140px; height: 140px; }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: clamp(32px, 6vw, 88px); }
.hero h1 { font-size: clamp(2.7rem, 6.4vw, 5.1rem); letter-spacing: -0.02em; margin-bottom: 1.4rem; }
.hero__lead { max-width: 520px; margin-bottom: 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.4rem; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 0.9rem; font-weight: 600; box-shadow: var(--shadow-sm); }
.chip .icon { color: var(--mint); width: 1.05em; height: 1.05em; stroke-width: 2.6; }

.hero__art { position: relative; justify-self: center; width: min(100%, 520px); }
.hero__arch { position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px var(--r-lg) var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 8px solid var(--paper); background: var(--lilac); }
.hero__arch img { width: 100%; height: 100%; object-fit: cover; object-position: 42% 50%; }
.hero__orb { position: absolute; left: -9%; bottom: 9%; width: 36%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 6px solid var(--paper); box-shadow: var(--shadow-md); }
.hero__orb img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge {
  position: absolute; right: -4%; top: 20%; width: 128px; aspect-ratio: 1; border-radius: 50%;
  background: var(--sun); color: var(--ink); display: grid; place-content: center; text-align: center;
  box-shadow: var(--shadow-md); transform: rotate(8deg); line-height: 1.05;
}
.hero__badge b { font-family: var(--font-display); font-size: 2.4rem; display: block; }
.hero__badge span { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.hero__float {
  position: absolute; right: -2%; bottom: 4%; display: flex; align-items: center; gap: 0.75rem;
  background: var(--paper); padding: 0.8rem 1.1rem; border-radius: var(--r-md); box-shadow: var(--shadow-md); font-weight: 700; font-size: 0.92rem; line-height: 1.25;
}
.hero__float .ic { width: 42px; height: 42px; border-radius: 50%; background: var(--lilac); color: var(--brand); display: grid; place-items: center; }
.hero__float small { display: block; font-weight: 500; color: var(--ink-soft); font-size: 0.8rem; }

/* ---------- values marquee ---------- */
.marquee { background: var(--brand); color: #fff; overflow: hidden; padding-block: 1.05rem; transform: rotate(-1deg); margin-block: -6px; position: relative; z-index: 2; box-shadow: var(--shadow-md); }
.marquee__track { display: flex; width: max-content; animation: scroll 38s linear infinite; }
.marquee__group { display: flex; align-items: center; flex: none; }
.marquee span { font-family: var(--font-display); font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 500; padding-inline: 1.4rem; white-space: nowrap; }
.marquee i { width: 12px; height: 12px; border-radius: 50%; background: var(--sun); flex: none; }
.marquee i:nth-of-type(3n+2) { background: var(--pink); }
.marquee i:nth-of-type(3n) { background: var(--mint); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- about ---------- */
.about__grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(36px, 7vw, 96px); align-items: center; }
.collage { position: relative; aspect-ratio: 1 / 1.05; }
.collage__a, .collage__b { position: absolute; overflow: hidden; box-shadow: var(--shadow-lg); border: 6px solid var(--paper); }
.collage__a { inset: 0 22% 20% 0; border-radius: var(--r-lg) var(--r-lg) 180px var(--r-lg); }
.collage__b { inset: 38% 0 0 34%; border-radius: 180px var(--r-lg) var(--r-lg) var(--r-lg); }
.collage img { width: 100%; height: 100%; object-fit: cover; }
.collage .dots { left: -30px; top: -30px; width: 130px; height: 130px; --c: var(--mint); z-index: -1; }
.about__text p + p { margin-top: 1.1rem; }
.about__text .lead { margin-bottom: 1.2rem; }
.quote {
  margin: 2rem 0 0; padding: 1.5rem 1.75rem; border-radius: var(--r-md); background: var(--paper);
  border-left: 6px solid var(--coral); box-shadow: var(--shadow-sm);
  font-family: var(--font-display); font-size: 1.25rem; line-height: 1.4; font-style: italic;
}
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.stat { padding: 1.1rem 1rem; border-radius: var(--r-md); background: var(--lilac); text-align: center; }
.stat b { display: block; font-family: var(--font-display); font-size: 2.3rem; line-height: 1; color: var(--brand); margin-bottom: 0.35rem; }
.stat span { font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); line-height: 1.3; display: block; }

/* ---------- programmes ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.card {
  background: var(--paper); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  display: flex; flex-direction: column; transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.card__img { position: relative; aspect-ratio: 4 / 3.1; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.card:hover .card__img img { transform: scale(1.06); }
.card__tag { position: absolute; left: 14px; top: 14px; padding: 0.3rem 0.8rem; border-radius: 999px; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; background: var(--tag, var(--sun)); color: var(--ink); }
.card__body { padding: 1.5rem 1.5rem 1.75rem; display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.card__body p { color: var(--ink-soft); font-size: 0.98rem; line-height: 1.6; }
.card:nth-child(1) { --tag: var(--pink); }
.card:nth-child(2) { --tag: var(--sun); }
.card:nth-child(3) { --tag: #9be3d0; }
.card:nth-child(4) { --tag: #a9d9fb; }

/* ---------- why us ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature { background: var(--paper); border-radius: var(--r-md); padding: 2rem; box-shadow: var(--shadow-sm); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.feature__icon { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 1.25rem; background: var(--bg, var(--lilac)); color: var(--fg, var(--brand)); }
.feature__icon .icon { width: 26px; height: 26px; }
.feature h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.feature p { color: var(--ink-soft); font-size: 0.98rem; }
.feature:nth-child(6n+1) { --bg: #e4f7f1; --fg: var(--mint); }
.feature:nth-child(6n+2) { --bg: #ffe9e6; --fg: var(--coral); }
.feature:nth-child(6n+3) { --bg: #fff3d1; --fg: #d99100; }
.feature:nth-child(6n+4) { --bg: #e1f2fe; --fg: #1f8ad6; }
.feature:nth-child(6n+5) { --bg: #ffe6f0; --fg: #e0467f; }

/* ---------- playgrounds ---------- */
.play { overflow: hidden; }
.play::before { content: ""; position: absolute; inset: auto -10% -35% auto; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(79, 54, 200, 0.55), transparent 70%); }
.play__grid { position: relative; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.ticks { margin-top: 1.75rem; display: grid; gap: 0.85rem; }
.ticks li { display: flex; gap: 0.8rem; align-items: flex-start; color: rgba(255, 255, 255, 0.9); }
.ticks .icon { margin-top: 0.2em; color: var(--ink); background: var(--sun); border-radius: 50%; padding: 4px; width: 1.55em; height: 1.55em; stroke-width: 3; }
.mosaic { display: grid; grid-template-columns: 1.15fr 0.85fr; grid-template-rows: 1fr 1fr; gap: 1rem; aspect-ratio: 1.12 / 1; }
.mosaic figure { margin: 0; overflow: hidden; border-radius: var(--r-md); box-shadow: var(--shadow-lg); }
.mosaic figure:first-child { grid-row: span 2; border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 120px; }
.mosaic figure:nth-child(2) { border-radius: var(--r-md) var(--r-lg) var(--r-md) var(--r-md); }
.mosaic figure:nth-child(3) { border-radius: var(--r-md) var(--r-md) var(--r-lg) var(--r-md); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- gallery ---------- */
.gallery { columns: 4 240px; column-gap: 1rem; }
.gallery__item { break-inside: avoid; margin-bottom: 1rem; position: relative; border-radius: var(--r-md); overflow: hidden; display: block; cursor: zoom-in; box-shadow: var(--shadow-sm); }
.gallery__item img { width: 100%; transition: transform 0.6s ease; }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(29, 26, 74, 0.5), transparent 45%); opacity: 0; transition: opacity 0.3s; }
.gallery__item:hover::after, .gallery__item:focus-visible::after { opacity: 1; }
.gallery__item span { position: absolute; left: 14px; bottom: 12px; z-index: 1; color: #fff; font-weight: 700; font-size: 0.9rem; opacity: 0; transform: translateY(6px); transition: all 0.3s; }
.gallery__item:hover span, .gallery__item:focus-visible span { opacity: 1; transform: none; }

dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; }
dialog.lightbox::backdrop { background: rgba(18, 15, 48, 0.92); backdrop-filter: blur(6px); }
.lightbox__inner { width: 100%; height: 100%; display: grid; place-items: center; padding: 3.5rem 4.5rem; }
.lightbox__inner img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--r-sm); box-shadow: var(--shadow-lg); }
.lightbox button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.14); color: #fff; display: grid; place-items: center; transition: background 0.2s; }
.lightbox button:hover { background: rgba(255, 255, 255, 0.3); }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__prev .icon { transform: rotate(180deg); }

/* ---------- enrol steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: step; }
.step { position: relative; padding: 2.2rem 2rem 2rem; background: var(--paper); border-radius: var(--r-md); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.step::before {
  counter-increment: step; content: counter(step); position: absolute; top: -26px; left: 2rem; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; background: var(--brand); color: #fff; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; box-shadow: 0 8px 18px rgba(79, 54, 200, 0.35);
}
.step:nth-child(2)::before { background: var(--coral); box-shadow: 0 8px 18px rgba(255, 107, 94, 0.35); }
.step:nth-child(3)::before { background: var(--mint); box-shadow: 0 8px 18px rgba(46, 184, 154, 0.35); }
.step h3 { margin: 0.6rem 0 0.5rem; font-size: 1.3rem; }
.step p { color: var(--ink-soft); font-size: 0.98rem; }

.cta-band {
  margin-top: clamp(48px, 6vw, 80px); padding: clamp(32px, 5vw, 56px); border-radius: var(--r-lg); position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--brand) 0%, #7a4fe0 100%); color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.cta-band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; opacity: 0.35; background-image: radial-gradient(var(--sun) 22%, transparent 24%); background-size: 24px 24px; }
.cta-band h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0; max-width: 560px; position: relative; z-index: 1; }
.cta-band .btn { position: relative; z-index: 1; }

/* ---------- contact ---------- */
.contact__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact__list { display: grid; gap: 1.1rem; margin: 2rem 0; }
.contact__item { display: flex; gap: 1rem; align-items: center; padding: 1.1rem 1.25rem; border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--line); transition: transform 0.2s, box-shadow 0.2s; }
a.contact__item:hover { transform: translateX(6px); box-shadow: var(--shadow-sm); }
.contact__item .ic { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--lilac); color: var(--brand); flex: none; }
.contact__item small { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.contact__item b { font-size: 1.08rem; font-weight: 700; overflow-wrap: anywhere; }
.map { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); aspect-ratio: 16 / 10; background: var(--lilac); }
.map--wide { grid-column: 1 / -1; aspect-ratio: 21 / 8; margin-top: 0.5rem; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

.form { background: var(--paper); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.form h3 { font-size: 1.7rem; margin-bottom: 0.4rem; }
.form > p { color: var(--ink-soft); margin-bottom: 1.5rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.field label { font-size: 0.86rem; font-weight: 700; }
.field input, .field select, .field textarea {
  font: inherit; width: 100%; padding: 0.9rem 1rem; border-radius: var(--r-sm); border: 1.5px solid var(--lilac-2); background: var(--cream); color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(79, 54, 200, 0.14); background: #fff; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin-top: 1rem; padding: 0.9rem 1.1rem; border-radius: var(--r-sm); font-weight: 600; font-size: 0.95rem; display: none; }
.form__status.is-ok { display: block; background: #e4f7f1; color: #0d6b57; }
.form__status.is-err { display: block; background: #ffe9e6; color: #a8281c; }
.form__status a { text-decoration: underline; }
.form .btn[disabled] { opacity: 0.6; pointer-events: none; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: rgba(255, 255, 255, 0.75); padding-top: clamp(56px, 7vw, 88px); position: relative; overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 0.8fr 1fr; gap: 3rem; padding-bottom: 3rem; }
.footer__brand { display: inline-block; }
.footer__logo { width: 150px; height: 150px; border-radius: 28px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); }
.footer p { margin-top: 1.1rem; max-width: 340px; font-size: 0.97rem; }
.footer h4 { color: #fff; font-family: var(--font-display); font-size: 1.15rem; margin: 0 0 1rem; font-weight: 600; }
.footer li + li { margin-top: 0.55rem; }
.footer a { transition: color 0.2s; }
.footer a:hover { color: var(--sun); }
.footer__social { display: flex; gap: 0.7rem; margin-top: 1.4rem; }
.footer__social a { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); display: grid; place-items: center; transition: background 0.2s, transform 0.2s; }
.footer__social a:hover { background: var(--sun); color: var(--ink); transform: translateY(-3px); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-block: 1.4rem; font-size: 0.88rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* "Developed by Gorilla Developers" credit pill (mint = the gorilla logo's colour) */
.footer__credit { display: flex; justify-content: center; padding-bottom: 1.8rem; }
.footer .credit {
  display: inline-flex; align-items: center; gap: 0.65rem; padding: 0.5rem 1.15rem 0.5rem 1.05rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.credit__label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.credit__mark { width: 30px; height: auto; filter: drop-shadow(0 0 7px rgba(90, 226, 180, 0.35)); transition: transform 0.35s ease; }
.credit__name { font-size: 0.95rem; font-weight: 700; color: #fff; letter-spacing: 0.01em; }
.credit:hover, .credit:focus-visible { border-color: rgba(90, 226, 180, 0.45); background: rgba(90, 226, 180, 0.07); box-shadow: 0 0 26px rgba(90, 226, 180, 0.14); }
.credit:hover .credit__mark { transform: translateX(3px); }

/* floating WhatsApp button */
.wa-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s;
}
.wa-fab:hover { transform: scale(1.08); }
.wa-fab .icon { width: 28px; height: 28px; }

/* ---------- scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 4rem var(--gutter); }
.notfound h1 { font-size: clamp(5rem, 16vw, 10rem); color: var(--brand); line-height: 1; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1080px) {
  .header__actions { margin-left: auto; }   /* the nav is a fixed dropdown here, so push the buttons to the right */
  .nav-toggle { display: inline-flex; }
  .header__actions .btn { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0.25rem;
    padding: 1rem var(--gutter) 1.75rem; background: var(--cream); box-shadow: 0 24px 40px rgba(29, 26, 74, 0.14);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all 0.25s ease;
  }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav__link { font-size: 1.1rem; padding: 0.9rem 1rem; }
}

@media (max-width: 980px) {
  :root { --header-h: 68px; --logo: 208px; }
  .hero__grid, .about__grid, .play__grid, .contact__grid { grid-template-columns: 1fr; }
  .hero__art { width: min(100%, 440px); margin-top: 1rem; }
  .hero { padding-top: 6px; }
  .about__grid .collage { max-width: 520px; margin-inline: auto; width: 100%; }
  .steps { grid-template-columns: 1fr; gap: 2.2rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
  .topbar__right { display: none; }
  .topbar .container { justify-content: center; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .cards, .features { grid-template-columns: 1fr; }
  .contact__item b { font-size: 0.98rem; overflow-wrap: normal; word-break: break-word; }
  .contact__item { padding: 1rem; gap: 0.85rem; }
  .map--wide { aspect-ratio: 4 / 3; }
  .stats { grid-template-columns: 1fr; }
  .stat { display: flex; align-items: center; gap: 1rem; text-align: left; }
  .stat b { margin: 0; min-width: 4.2rem; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .hero__orb { left: 2%; }
  .hero__badge { width: 100px; right: 2%; }
  .hero__badge b { font-size: 1.9rem; }
  .hero__float { right: 2%; bottom: -3%; font-size: 0.85rem; }
  .hero__cta .btn { flex: 1 1 100%; }
  .brand__logo { border-radius: 24px; }
  .lightbox__inner { padding: 4rem 0.75rem 3rem; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 14px; transform: none; }
  .gallery { columns: 2 150px; column-gap: 0.7rem; }
  .gallery__item { margin-bottom: 0.7rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__credit { padding-bottom: 6rem; } /* keep the pill clear of the floating WhatsApp button */
  .cta-band .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; }
}
