/*
Theme Name: 313Agency
Theme URI: https://313agency.nl
Author: 313Agency
Description: Thema voor 313Agency, TikTok LIVE creator agency. Donker en filmisch, met een gloeiende orb, een groeiende olijfboom en tatreez-patronen.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: a313
*/
@font-face { font-family: "Gloock"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/gloock-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/instrument-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/instrument-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Aref Ruqaa"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/aref-ruqaa-arabic-700-normal.woff2") format("woff2"); }
/* 313Agency — TikTok LIVE creator agency
   Layout idea: filmische nacht; één gloeiende orb als opening, een olijfboom die groeit tijdens het scrollen.
   Mobiel eerst: alles stapelt, kaarten swipen, effecten schalen terug. */
:root {
  --night: #070b09;
  --night-2: #0e1512;
  --linen: #efe8dc;
  --ash: #8f988f;
  --olive: #5c9c66;
  --crimson: #c8193d;

  --line: rgba(239, 232, 220, 0.12);
  --glass: rgba(239, 232, 220, 0.045);
  --display: "Gloock", "Times New Roman", Georgia, serif;
  --body: "Instrument Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --ar: "Aref Ruqaa", "Amiri", serif;

  --gutter: clamp(20px, 5vw, 64px);
  --max: 1380px;
  --ease: cubic-bezier(0.7, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--night); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--night); color: var(--linen);
  font-family: var(--body); font-size: 16px; line-height: 1.6;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
@media (min-width: 900px) { body { font-size: 17px; } }
html.entering body::before { content: ""; position: fixed; inset: 0; background: var(--night); z-index: 9990; }
@media (pointer: fine) { html.has-cursor, html.has-cursor * { cursor: none !important; } }
::selection { background: var(--crimson); color: var(--linen); }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 4px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 0.98; margin: 0; text-wrap: balance; letter-spacing: -0.015em; }
p { margin: 0; max-width: 60ch; }
.muted { color: var(--ash); }
.ar { font-family: var(--ar); font-weight: 700; direction: rtl; unicode-bidi: isolate; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* type scale */
.t-mega { font-size: clamp(64px, 17vw, 280px); line-height: 0.86; }
.t-xl { font-size: clamp(44px, 9vw, 136px); line-height: 0.92; }
.t-l { font-size: clamp(36px, 6vw, 84px); }
.t-m { font-size: clamp(24px, 3vw, 40px); line-height: 1.08; }
.t-lead { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.55; }
.t-small { font-size: 14px; line-height: 1.5; }

/* ---------- ambient ---------- */
.orbs { position: fixed; inset: -10vmax; z-index: 0; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; opacity: 0.32; }
.orb--red { width: 44vmax; height: 44vmax; background: radial-gradient(circle, #c8193d 0%, rgba(120,10,35,.6) 40%, transparent 70%); top: 0; right: -10%; }
.orb--green { width: 54vmax; height: 54vmax; background: radial-gradient(circle, #3f8a52 0%, rgba(20,70,40,.6) 45%, transparent 70%); bottom: -16%; left: -14%; }
.orb--deep, .orb--linen { display: none; }
@keyframes drift1 { to { transform: translate(-16vw, 22vh) scale(1.1); } }
@keyframes drift2 { to { transform: translate(18vw, -16vh) scale(0.9); } }
@media (max-width: 899px), (pointer: coarse) { .orb { filter: none; opacity: .28; animation: none; } }

.grain {
  position: fixed; inset: -50%; z-index: 9000; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
@keyframes grain { 0% { transform: translate(0,0); } 25% { transform: translate(-5%,4%); } 50% { transform: translate(4%,-6%); } 75% { transform: translate(-3%,7%); } 100% { transform: translate(6%,2%); } }
@media (max-width: 899px), (pointer: coarse) {
  .grain { display: none; }
  .btn--ghost, .hero__chip, .nav__burger { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav.is-solid { background: rgba(7, 11, 9, .92); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
main, footer { position: relative; z-index: 2; }

/* ---------- cursor ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 9500; pointer-events: none; }
.cursor__x { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--linen); transition: transform .4s var(--ease-out), background .3s; }
.cursor__ring {
  position: absolute; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%;
  border: 1px solid rgba(239,232,220,.45); display: grid; place-items: center;
  font: 600 11px/1 var(--body); color: var(--night);
  transition: width .5s var(--ease-out), height .5s var(--ease-out), margin .5s var(--ease-out), background .3s, border-color .3s;
}
.cursor.is-link .cursor__ring { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: rgba(239,232,220,.92); border-color: transparent; }
.cursor.is-link .cursor__x { transform: scale(0); }
.cursor.is-down .cursor__ring { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
.cursor.is-hidden { opacity: 0; }

.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 8000; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--olive), var(--linen) 60%, var(--crimson)); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 7000;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: max(14px, env(safe-area-inset-top)) var(--gutter) 14px;
  transition: transform .6s var(--ease), background .4s;
}
.nav.is-solid { background: rgba(7, 11, 9, .62); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); }
.nav.is-hidden { transform: translateY(-110%); }
.logo { display: inline-flex; align-items: center; gap: 10px; line-height: 1; }
.logo__svg { height: 46px; width: auto; flex: none; overflow: visible; }
.logo__mark { width: 38px; height: 38px; flex: none; }
.logo__svg g { transition: transform .7s var(--ease-out); transform-box: fill-box; transform-origin: center; }
.logo:hover .logo__svg g { transform: rotate(-14deg) scale(1.15); }
.logo__word { font-family: var(--display); font-size: 25px; letter-spacing: -.01em; }
.nav__links { display: flex; gap: 4px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav__links a { position: relative; display: inline-block; padding: 10px 14px; font-weight: 500; font-size: 15px; transition: color .3s; }
.nav__links a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--olive); }
.nav__links a:not(.btn):hover { color: var(--ash); }
.nav__links .btn { display: inline-flex; padding: 12px 20px; font-size: 14px; margin-left: 8px; }
.nav__burger { display: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); position: relative; background: rgba(7,11,9,.4); backdrop-filter: blur(8px); }
.nav__burger span { position: absolute; left: 15px; right: 15px; height: 1.5px; background: var(--linen); transition: transform .5s var(--ease); }
.nav__burger span:first-child { top: 20px; }
.nav__burger span:last-child { top: 27px; }
.menu-open .nav__burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .nav__burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.menu {
  position: fixed; inset: 0; z-index: 6900; background: var(--night-2);
  clip-path: circle(0% at calc(100% - 44px) 38px); transition: clip-path .9s var(--ease);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 110px var(--gutter) max(32px, env(safe-area-inset-bottom)); gap: 4px; overflow: hidden;
}
.menu::before { content: ""; position: absolute; width: 90vmax; height: 90vmax; right: -40vmax; top: -40vmax; border-radius: 50%; background: radial-gradient(circle, rgba(92,156,102,.35), transparent 60%); }
.menu-open .menu { clip-path: circle(150% at calc(100% - 44px) 38px); }
.menu a { position: relative; font-family: var(--display); font-size: clamp(46px, 13vw, 96px); line-height: 1.08; display: block; overflow: hidden; }
.menu a span { display: block; transform: translateY(110%); transition: transform .8s var(--ease-out); }
.menu a[aria-current="page"] { color: var(--olive); }
.menu-open .menu a span { transform: none; }
.menu-open .menu a:nth-child(2) span { transition-delay: .06s; }
.menu-open .menu a:nth-child(3) span { transition-delay: .12s; }
.menu-open .menu a:nth-child(4) span { transition-delay: .18s; }
.menu__foot { position: relative; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ash); display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.menu__foot .ar { font-size: 26px; color: var(--olive); }
@media (max-width: 860px) { .nav__links { display: none; } .nav__burger { display: block; } }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--linen); --fg: var(--night);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 16px 28px; border-radius: 999px; background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: 16px; line-height: 1; overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: color .45s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--olive); border-radius: 50% 50% 0 0; transform: translateY(102%); transition: transform .6s var(--ease), border-radius .6s var(--ease); }
.btn:hover::before { transform: translateY(0); border-radius: 0; }
.btn:hover { color: var(--linen); }
.btn--ghost { --bg: rgba(239,232,220,.04); --fg: var(--linen); border: 1px solid rgba(239,232,220,.28); backdrop-filter: blur(8px); }
.btn--sm { min-height: 44px; padding: 11px 18px; font-size: 14px; }
.btn--big { min-height: 64px; padding: 24px 42px; font-size: clamp(17px, 1.6vw, 21px); }
.btn .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--crimson); flex: none; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 520px) { .btns .btn { flex: 1 1 100%; } }
[data-magnetic] { will-change: transform; }

/* ---------- veil + preloader ---------- */
.veil { position: fixed; inset: 0; z-index: 9800; pointer-events: none; display: grid; }
.veil i { display: block; background: var(--night-2); transform: scale(0); }
.veil i.r { background: #4a0b1b; }
.veil i.g { background: #1d3b25; }
.veil.is-active { pointer-events: all; }

.preloader { position: fixed; inset: 0; z-index: 9850; background: var(--night); display: grid; place-items: center; transition: clip-path 1.1s var(--ease); clip-path: inset(0 0 0 0); }
.preloader.is-done { clip-path: inset(0 0 100% 0); }
.preloader__inner { display: grid; justify-items: center; gap: 14px; }
.preloader__mark { width: clamp(110px, 26vw, 170px); height: auto; overflow: visible; }
.preloader__mark .pt { opacity: 0; transform: translateY(10px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); }
.preloader__mark .pop { transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .7s cubic-bezier(.3,1.6,.4,1) .6s; }
.preloader__mark .pop.b { transition-delay: .78s; }
.preloader.is-on .pt { opacity: 1; transform: none; }
.preloader.is-on .pop { transform: scale(1); }
.preloader__word { font-family: var(--display); font-size: clamp(34px, 7vw, 54px); opacity: 0; transform: translateY(14px); transition: opacity .8s, transform .8s var(--ease-out); transition-delay: .8s; }
.preloader.is-on .preloader__word { opacity: 1; transform: none; }

/* ---------- reveal helpers ---------- */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.w > span { display: inline-block; will-change: transform; }
.js-io [data-split] .w > span { transform: translateY(112%) rotate(5deg); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i, 0) * 45ms + var(--d, 0s)); }
.js-io [data-split].is-in .w > span { transform: none; }
.js-io [data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.js-io [data-reveal].is-in { opacity: 1; transform: none; }
.js-io [data-stagger] > * { opacity: 0; transform: translateY(44px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
.js-io [data-stagger].is-in > * { opacity: 1; transform: none; }
.js-io .fill-text .fw { opacity: .15; transition: opacity .6s; transition-delay: calc(var(--i, 0) * 40ms + .2s); }
.js-io .fill-text.is-in .fw { opacity: 1; }

/* ---------- marquee ---------- */
.marquee { position: relative; z-index: 2; border-block: 1px solid var(--line); overflow: hidden; padding: 20px 0; }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__item { display: flex; align-items: center; gap: 30px; padding-right: 30px; font-family: var(--display); font-size: clamp(34px, 5vw, 72px); line-height: 1; white-space: nowrap; }
.marquee__item .x { width: 12px; height: 18px; flex: none; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: var(--olive); transform: rotate(-30deg); }
.marquee__item .x:nth-of-type(3n) { background: var(--crimson); width: 12px; height: 12px; border-radius: 50%; transform: none; }
.marquee__item .o { color: transparent; -webkit-text-stroke: 1px rgba(239,232,220,.7); }

/* ---------- sections ---------- */
.section { position: relative; padding-block: clamp(84px, 13vw, 190px); }
.label { display: inline-flex; align-items: center; gap: 10px; color: var(--ash); font-size: 14px; font-weight: 500; margin-bottom: 22px; }
.label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--olive); box-shadow: 0 0 0 4px rgba(92,156,102,.18); }

/* hero */
.hero { position: relative; min-height: min(100svh, 1100px); display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__fallback { position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(circle at 50% 36%, rgba(239,232,220,.18), transparent 22%),
  radial-gradient(circle at 42% 30%, #5c9c66, transparent 30%),
  radial-gradient(circle at 60% 44%, #c8193d, transparent 26%), var(--night); }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 55%; z-index: -1; background: linear-gradient(to top, var(--night) 8%, rgba(7,11,9,.75) 45%, transparent); pointer-events: none; }
.hero__inner { padding-top: 120px; padding-bottom: max(40px, env(safe-area-inset-bottom)); display: grid; gap: 28px; }
.hero__chip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border-radius: 99px; border: 1px solid var(--line); background: rgba(7,11,9,.45); backdrop-filter: blur(10px); font-size: 14px; color: var(--linen); justify-self: start; }
.hero__chip .live { width: 8px; height: 8px; border-radius: 50%; background: var(--crimson); box-shadow: 0 0 0 0 rgba(200,25,61,.7); animation: live 1.8s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 10px rgba(200,25,61,0); } 100% { box-shadow: 0 0 0 0 rgba(200,25,61,0); } }
.hero__title { font-size: clamp(52px, 11.5vw, 150px); line-height: .9; max-width: 11ch; }
@media (min-width: 900px) { .hero__title { font-size: clamp(80px, 8.6vw, 150px); max-width: 13ch; } }
.hero__row { display: grid; gap: 24px; }
.hero__ar { position: absolute; right: var(--gutter); top: 50%; font-size: clamp(28px, 4vw, 56px); color: rgba(239,232,220,.85); transform: translateY(-50%); text-shadow: 0 0 30px rgba(7,11,9,.6); }
@media (min-width: 900px) {
  .hero__row { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 60px; }
  .hero__row p { max-width: 44ch; }
}
@media (max-width: 899px) { .hero__ar { top: 110px; transform: none; writing-mode: horizontal-tb; font-size: 28px; } }

.scrollhint { display: inline-flex; align-items: center; gap: 12px; color: var(--ash); font-size: 14px; }
.scrollhint i { width: 1px; height: 46px; background: linear-gradient(var(--linen), transparent); position: relative; overflow: hidden; }
.scrollhint i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--olive); animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { to { top: 110%; } }

/* statement */
.statement { font-family: var(--display); font-size: clamp(34px, 6.2vw, 100px); line-height: 1.02; max-width: 17ch; letter-spacing: -.015em; }
.statement .olive { color: var(--olive); }

/* tree story (sticky) */
.story { position: relative; height: 320svh; }
.story__sticky { position: sticky; top: 0; height: 100svh; display: grid; overflow: hidden; }
.story__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.story__copy { position: relative; z-index: 2; align-self: end; padding-bottom: max(40px, env(safe-area-inset-bottom)); display: grid; gap: 14px; }
.story__steps { position: relative; min-height: 12.5em; }
.story__step { position: absolute; inset: 0 auto auto 0; opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .8s var(--ease-out); }
.story__step.is-on { opacity: 1; transform: none; }
.story__step h3 { font-size: clamp(40px, 7vw, 104px); margin-bottom: 14px; }
.story__step .ar { font-size: clamp(22px, 2.6vw, 34px); color: var(--olive); display: block; margin-bottom: 6px; }
.story__dots { display: flex; gap: 8px; }
.story__dots i { width: 28px; height: 3px; border-radius: 3px; background: var(--line); transition: background .4s, width .5s var(--ease-out); }
.story__dots i.on { background: var(--linen); width: 48px; }
@media (min-width: 900px) {
  .story__copy { align-self: center; padding-bottom: 0; }
  .story__copy > * { max-width: 500px; }
  .story__steps { min-height: 17em; }
}
@media (max-width: 899px) { .story:not(.story--static) .story__sticky::after { content: ""; position: absolute; inset: auto 0 0 0; height: 50%; background: linear-gradient(to top, var(--night) 15%, transparent); z-index: 1; } }

/* tree story, mobiel: stappen onder elkaar */
.story--static { height: auto; padding-block: 40px 70px; }
.story--static .story__sticky { position: relative; top: auto; height: auto; display: block; overflow: visible; }
.story--static .story__canvas { position: relative; inset: auto; display: block; width: 100%; height: min(105vw, 460px); }
.story--static .story__copy { padding-bottom: 0; }
.story--static .story__steps { min-height: 0; display: grid; gap: 30px; }
.story--static .story__step { position: relative; inset: auto; opacity: 1; transform: none; border-top: 1px solid var(--line); padding-top: 22px; }
.story--static .story__step h3 { font-size: clamp(38px, 10vw, 60px); }
.story--static .story__dots { display: none; }

/* horizontal cards */
.hscroll { position: relative; overflow: hidden; }
.hscroll__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; padding-top: clamp(84px, 10vw, 140px); margin-bottom: 36px; }
.hscroll__track { display: flex; gap: 14px; padding-inline: var(--gutter); padding-bottom: clamp(84px, 10vw, 140px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.hscroll__track::-webkit-scrollbar { display: none; }
.panel {
  position: relative; flex: 0 0 min(84vw, 520px); scroll-snap-align: center; min-height: 480px; border-radius: 26px; padding: 26px; overflow: hidden;
  display: grid; grid-template-rows: auto 1fr auto; gap: 18px; isolation: isolate;
  background: linear-gradient(165deg, rgba(239,232,220,.075), rgba(239,232,220,.015)); border: 1px solid var(--line);
}
.panel::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .6s; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(92,156,102,.22), transparent 60%); }
.panel:hover::after { opacity: 1; }
.panel__top { display: flex; justify-content: space-between; align-items: center; color: var(--ash); font-size: 14px; }
.panel__top b { font-weight: 500; color: var(--linen); }
.panel canvas { width: 100%; height: 100%; min-height: 200px; }
.panel h3 { font-size: clamp(30px, 3.2vw, 44px); margin-bottom: 10px; }
.panel--crimson { background: linear-gradient(165deg, #6b0d22, #2a050d); border-color: rgba(200,25,61,.4); }
.panel--crimson p { color: rgba(239,232,220,.8); }
.panel--olive { background: linear-gradient(165deg, #23472c, #0c1a11); border-color: rgba(92,156,102,.4); }
.swipehint { display: none; color: var(--ash); font-size: 14px; }
@media (max-width: 980px) { .swipehint { display: block; } }
@media (min-width: 981px) {
  .hscroll__track { scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); cursor: grab; }
  .hscroll__track.is-drag { cursor: grabbing; scroll-snap-type: none; user-select: none; }
  .panel { flex-basis: 480px; min-height: 540px; padding: 32px; scroll-snap-align: start; }
}
.hs-nav { display: flex; gap: 8px; }
.hs-nav button { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(239,232,220,.3); display: grid; place-items: center; transition: background .3s, color .3s, opacity .3s; }
.hs-nav button:hover:not(:disabled) { background: var(--linen); color: var(--night); }
.hs-nav button:disabled { opacity: .3; cursor: default; }
.hs-nav svg { width: 18px; height: 18px; }
@media (max-width: 980px) { .hs-nav { display: none; } }

/* facts */
.facts { display: grid; gap: 14px; grid-template-columns: 1fr; }
.fact { position: relative; border-radius: 24px; border: 1px solid var(--line); padding: 26px; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; background: var(--glass); overflow: hidden; transition: border-color .4s; }
.fact:hover { border-color: rgba(239,232,220,.3); }
.fact__big { font-family: var(--display); font-size: clamp(72px, 9vw, 140px); line-height: .85; }
.fact__big .olive { color: var(--olive); }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(3, 1fr); } .fact { min-height: 300px; } }

/* cta */
.cta { display: grid; justify-items: center; text-align: center; gap: 34px; }
.cta__mark { width: clamp(90px, 14vw, 150px); filter: drop-shadow(0 0 40px rgba(92,156,102,.45)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px) rotate(-3deg); } }
.cta__title { font-size: clamp(50px, 11vw, 180px); line-height: .9; max-width: 12ch; }
.cta__title .o { color: transparent; -webkit-text-stroke: 1.5px var(--linen); }

/* footer */
.footer { border-top: 1px solid var(--line); padding-top: 64px; overflow: hidden; background: linear-gradient(to bottom, transparent, rgba(3,6,4,.9)); }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: 36px; }
.footer__lead { display: grid; gap: 18px; }
.footer__lead .ar { font-size: 34px; color: var(--olive); }
.footer h4 { font-family: var(--body); font-size: 14px; font-weight: 500; color: var(--ash); margin: 0 0 12px; letter-spacing: 0; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { display: inline-block; padding: 2px 0; }
.footer a:hover { color: var(--olive); }
.footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
@property --p { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
.footer__giant {
  transition: --p 2.4s var(--ease);
  font-family: var(--display); font-size: 42vw; line-height: .9; letter-spacing: -.035em; margin-top: 56px; margin-bottom: -1.2vw; text-align: center; white-space: nowrap; user-select: none;
  background: linear-gradient(90deg, var(--linen) 0 var(--p, 0%), transparent var(--p, 0%)); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 1px rgba(239,232,220,.3);
}
.footer__base { display: flex; justify-content: space-between; gap: 12px 20px; padding-block: 22px max(22px, env(safe-area-inset-bottom)); color: var(--ash); font-size: 14px; border-top: 1px solid var(--line); flex-wrap: wrap; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.4fr 1fr; } .footer__cols { grid-template-columns: repeat(3, 1fr); } }

/* sub page hero */
.phero { position: relative; padding-top: clamp(120px, 16vw, 180px); padding-bottom: 40px; }
.phero__grid { display: grid; gap: 40px; align-items: end; }
.phero__art { position: relative; width: 100%; max-width: 520px; aspect-ratio: 1; }
.phero__art canvas { width: 100%; height: 100%; }
.phero__art small { position: absolute; left: 0; right: 0; bottom: -6px; text-align: center; color: var(--ash); font-size: 13px; }
@media (min-width: 900px) { .phero { min-height: 92svh; display: grid; align-items: end; } .phero__grid { grid-template-columns: 1.15fr .85fr; gap: 60px; } .phero__art { justify-self: end; } }
@media (max-width: 899px) { .phero__art { max-width: 340px; justify-self: center; } }

/* list rows */
.hlist { border-top: 1px solid var(--line); }
.hlist__row { position: relative; display: grid; gap: 8px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.hlist__row h3 { font-size: clamp(30px, 4.4vw, 64px); transition: transform .6s var(--ease-out), color .4s; }
.hlist__row p { color: var(--ash); transition: color .4s; }
.hlist__row::before { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: var(--olive); transition: width .8s var(--ease); }
@media (hover: hover) { .hlist__row:hover h3 { transform: translateX(20px); color: var(--olive); } .hlist__row:hover p { color: var(--linen); } .hlist__row:hover::before { width: 100%; } }
@media (min-width: 900px) { .hlist__row { grid-template-columns: 1fr 1.1fr; gap: 30px; align-items: center; padding: 34px 0; } }
.follow { position: fixed; top: 0; left: 0; width: 220px; height: 220px; z-index: 50; pointer-events: none; border-radius: 22px; overflow: hidden; background: var(--night-2); border: 1px solid var(--line); opacity: 0; transform: scale(.6); transition: opacity .35s, transform .5s var(--ease-out); }
.follow.is-on { opacity: 1; transform: scale(1); }
.follow canvas { width: 100%; height: 100%; }

/* steps */
.steps { display: grid; gap: 40px; }
.steps__sticky { display: grid; gap: 20px; align-content: start; }
.steps__list { position: relative; display: grid; padding-left: 40px; }
.steps__line { position: absolute; left: 8px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.steps__list.is-in .steps__line i { transform: scaleY(1); }
.steps__line i { transition: transform 2.6s var(--ease); position: absolute; inset: 0; transform-origin: top; transform: scaleY(0); background: linear-gradient(var(--olive), var(--crimson)); }
.step { padding: 0 0 56px; opacity: .4; transition: opacity .5s; position: relative; }
.step.is-on { opacity: 1; }
.step::before { content: ""; position: absolute; left: -39px; top: 7px; width: 16px; height: 16px; border-radius: 50%; background: var(--night); border: 2px solid var(--ash); transition: background .4s, border-color .4s, transform .5s var(--ease-out); }
.step.is-on::before { background: var(--olive); border-color: var(--olive); transform: scale(1.25); }
.step__n { color: var(--ash); font-size: 14px; }
.step h3 { font-size: clamp(28px, 3.4vw, 48px); margin: 6px 0 10px; }
@media (min-width: 900px) { .steps { grid-template-columns: .9fr 1.1fr; gap: 90px; } .steps__sticky { position: sticky; top: 120px; align-self: start; } .step { padding-bottom: 80px; } }

/* faq */
.faq { display: grid; gap: 10px; max-width: 980px; }
.faq details { border: 1px solid var(--line); border-radius: 20px; background: var(--glass); overflow: hidden; transition: border-color .3s, background .3s; }
.faq details[open] { border-color: rgba(92,156,102,.55); background: rgba(92,156,102,.07); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 22px 22px; font-family: var(--display); font-size: clamp(21px, 2.2vw, 30px); line-height: 1.15; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .x { width: 20px; height: 20px; position: relative; flex: none; transition: transform .5s var(--ease-out); }
.faq summary .x::before, .faq summary .x::after { content: ""; position: absolute; left: 9px; top: 0; width: 2px; height: 20px; background: var(--linen); border-radius: 2px; }
.faq summary .x::after { transform: rotate(90deg); }
.faq details[open] summary .x { transform: rotate(135deg); }
.faq .faq__a { padding: 0 22px 24px; color: var(--ash); }

/* manifest */
.olive-hero { width: 100%; max-width: 560px; }
.olive-hero svg { width: 100%; height: auto; }
.olive-hero path { fill: none; stroke: var(--linen); stroke-width: 2; stroke-linecap: round; }
.olive-hero .leaf { fill: rgba(92,156,102,0); stroke: var(--olive); transition: fill 1.2s; }
.olive-hero .berry { fill: rgba(200,25,61,0); stroke: var(--crimson); transition: fill 1.2s; }
.olive-hero.is-drawn .leaf { fill: rgba(92,156,102,.4); }
.olive-hero.is-drawn .berry { fill: rgba(200,25,61,.85); }
.split2 { display: grid; gap: 30px; }
@media (min-width: 900px) { .split2 { grid-template-columns: 1fr 1fr; gap: 90px; align-items: start; } }
.prose { display: grid; gap: 20px; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.gallery figure { margin: 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--night-2); position: relative; aspect-ratio: 1; }
.gallery canvas { width: 100%; height: 100%; transition: transform 1.2s var(--ease-out); }
.gallery figure:hover canvas { transform: scale(1.08) rotate(3deg); }
.gallery figcaption { position: absolute; left: 10px; bottom: 10px; font-size: 13px; color: var(--linen); background: rgba(7,11,9,.7); padding: 4px 10px; border-radius: 99px; }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.values { display: grid; gap: 44px; }
.value { border-top: 1px solid rgba(239,232,220,.5); padding-top: 24px; display: grid; gap: 14px; align-content: start; }
.value svg { width: 56px; height: 56px; }
.value h3 { font-size: clamp(36px, 3.6vw, 54px); }
.value .ar { color: var(--olive); font-size: 28px; }
@media (min-width: 900px) { .values { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* join */
.join { display: grid; min-height: 100svh; }
.join__art { position: relative; display: grid; place-items: center; padding: 96px var(--gutter) 10px; }
.join__art canvas { width: min(62vw, 260px); aspect-ratio: 1; }
.join__art p { display: none; }
.join__form { padding: 20px var(--gutter) 70px; display: grid; align-content: start; gap: 28px; }
@media (min-width: 900px) {
  .join { grid-template-columns: 1fr 1fr; }
  .join__art { position: sticky; top: 0; height: 100svh; padding: 100px var(--gutter) 40px; border-right: 1px solid var(--line); }
  .join__art canvas { width: min(100%, 500px); }
  .join__art p { display: block; position: absolute; bottom: 36px; left: var(--gutter); right: var(--gutter); color: var(--ash); font-size: 14px; }
  .join__form { padding: 130px var(--gutter) 60px; align-content: center; gap: 36px; }
}
.qsteps { display: flex; gap: 6px; }
.qsteps i { height: 3px; flex: 1; background: var(--line); border-radius: 3px; overflow: hidden; position: relative; }
.qsteps i::after { content: ""; position: absolute; inset: 0; background: var(--olive); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.qsteps i.on::after { transform: scaleX(1); }
.q { display: none; gap: 22px; }
.q.is-on { display: grid; animation: qin .8s var(--ease-out); }
@keyframes qin { from { opacity: 0; transform: translateY(30px); filter: blur(6px); } }
.q > label, .q legend { font-family: var(--display); font-size: clamp(34px, 4.4vw, 62px); line-height: 1; padding: 0; }
.q fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 22px; min-width: 0; }
.field { width: 100%; background: transparent; border: 0; border-bottom: 1.5px solid rgba(239,232,220,.25); color: var(--linen); font: 500 clamp(20px, 2.4vw, 30px) var(--body); padding: 12px 0; outline: none; border-radius: 0; transition: border-color .3s; }
.field::placeholder { color: rgba(239,232,220,.3); }
.field:focus { border-color: var(--olive); }
textarea.field { resize: vertical; min-height: 120px; font-size: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 20px; border: 1px solid rgba(239,232,220,.28); border-radius: 99px; font-weight: 500; transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease-out); }
@media (hover: hover) { .chip:hover span { transform: translateY(-2px); border-color: var(--linen); } }
.chip input:checked + span { background: var(--linen); color: var(--night); border-color: var(--linen); }
.chip input:focus-visible + span { outline: 2px solid var(--olive); outline-offset: 3px; }
.q__nav { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.q__hint { color: var(--ash); font-size: 14px; }
@media (pointer: coarse) { .q__hint { display: none; } }
.q__err { color: #ff8197; font-size: 15px; min-height: 1.4em; }
.done { display: none; gap: 22px; }
.done.is-on { display: grid; animation: qin 1s var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .grain { display: none; }
  .story { height: auto; }
  .story__sticky { position: relative; height: auto; min-height: 100svh; }
  .story__steps { min-height: 0; display: grid; gap: 30px; }
  .story__step { position: relative; opacity: 1; transform: none; }
}

.footer__giant.is-in { --p: 100%; }
html:not(.js-io) .footer__giant { --p: 100%; }
html:not(.js-io) .steps__line i { transform: scaleY(1); }

/* ---------- WordPress ---------- */
body.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { body.admin-bar .nav { top: 46px; } }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.q__privacy { color: var(--ash); font-size: 14px; }
.page-prose { display: grid; gap: 28px; max-width: 760px; }
.page-prose .entry > * + * { margin-top: 1em; }
.page-prose .entry a { color: var(--olive); text-decoration: underline; text-underline-offset: 3px; }
.page-prose .entry h2, .page-prose .entry h3 { margin-top: 1.4em; }
.page-prose .entry h2 { font-size: clamp(30px, 4vw, 48px); }
.page-prose .entry h3 { font-size: clamp(24px, 3vw, 34px); }

/* nav hover: rustige onderstreping */
.nav__links a:not(.btn)::before { content: ""; position: absolute; left: 14px; right: 14px; bottom: 7px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav__links a:not(.btn):hover::before, .nav__links a:not(.btn):focus-visible::before { transform: scaleX(1); transform-origin: left; }
.nav__links a:not(.btn):hover { color: var(--linen); }
