/* ============================================================
   Mother Social — Website system
   Monochrome ink/paper + signal-orange accent.
   Display: Fraunces Wonk · UI: Archivo · Labels: JetBrains Mono
   ============================================================ */

:root {
  --ink: #0B0B0C;
  --ink-2: #141416;
  --ink-3: #1C1C1F;
  --paper: #FAFAF7;
  --accent: #FF5B2E;
  --accent-press: #E8481C;

  --line: rgba(250, 250, 247, 0.12);
  --line-strong: rgba(250, 250, 247, 0.24);
  --muted: rgba(250, 250, 247, 0.56);
  --muted-2: rgba(250, 250, 247, 0.50); /* a11y: was .40, lifted so 11-12px mono labels clear ~5:1 contrast */

  --font-display: 'Fraunces', serif;
  --font-ui: 'Archivo', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --wonk: 'opsz' 144, 'SOFT' 100, 'WONK' 1;

  --container: 1320px;
  --gutter: clamp(20px, 5vw, 72px);

  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-ui);
  font-size: 18px;
  line-height: 1.55;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(80px, 12vw, 200px); position: relative; }
.section--tight { padding-block: clamp(56px, 8vw, 120px); }

/* ---------- Type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 900;
  font-variation-settings: var(--wonk);
  line-height: 0.86;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.display em { font-style: italic; color: var(--accent); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: clamp(10px, 1vw, 12px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--accent);
  display: inline-block;
}
.eyebrow--plain::before { display: none; }

.lead {
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.5;
  color: var(--muted);
  max-width: 46ch;
  text-wrap: pretty;
}
.lead strong { color: var(--paper); font-weight: 600; }

.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 16px 26px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--paper);
  background: transparent;
  cursor: pointer;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); border-color: var(--paper); }
.btn .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); transition: transform .4s var(--ease); }
.btn:hover .dot { transform: scale(1.6); }

.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn--accent .dot { background: var(--ink); }
.btn--accent:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }

.btn--lg { padding: 20px 34px; font-size: 14px; }

.btn-arrow { transition: transform .4s var(--ease); }
.btn:hover .btn-arrow { transform: translate(4px, -4px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  transition: background .5s var(--ease), padding .5s var(--ease), border-color .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11, 11, 12, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  padding-block: 16px;
}
.nav__brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-variation-settings: var(--wonk);
  font-size: 26px;
  letter-spacing: -0.04em;
  line-height: 1;
}
.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__link {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
  position: relative;
  transition: color .3s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav__link:hover { color: var(--paper); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__cta { margin-left: 8px; }
.nav__burger { display: none; }

/* ---------- Nav dropdown (Services) ---------- */
.nav__has-sub { position: relative; }
.nav__caret { font-size: 9px; opacity: .65; margin-left: 4px; display: inline-block; }
.nav__sub {
  position: absolute; top: 100%; left: -18px;
  display: flex; flex-direction: column; gap: 14px;
  padding: 20px 22px; margin: 0;
  min-width: 240px;
  background: rgba(11, 11, 12, 0.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: 14px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s var(--ease);
}
.nav__has-sub:hover .nav__sub,
.nav__has-sub:focus-within .nav__sub { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__sublink {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); white-space: nowrap;
  transition: color .25s var(--ease);
}
.nav__sublink:hover { color: var(--paper); }

/* ---------- Inline text link (View all services / work, etc.) ---------- */
.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: clamp(24px, 3vw, 40px);
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent);
  transition: gap .3s var(--ease);
}
.text-link:hover { gap: 14px; }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 120px; position: relative; overflow: hidden; }
/* Divi inline `#main-content .container{padding-top:58px}` (spec 1,1,0) beat the hero because it also has the .container class; reclaim with higher specificity (1,2,0) so the eyebrow clears the fixed header. */
#main-content .hero.container { padding-top: clamp(96px, 10vw, 150px) !important; }
.hero__inner { padding-bottom: clamp(28px, 4vw, 56px); }
.hero__title { font-size: clamp(72px, 16vw, 260px); margin-top: 18px; }
.hero__row { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 80px); align-items: end; margin-top: clamp(36px, 5vw, 64px); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__showreel { position: relative; }

.reel {
  position: relative; aspect-ratio: 16 / 10; width: 100%;
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: var(--ink-2);
}
.reel image-slot { width: 100%; height: 100%; }
.reel__overlay {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 18px; pointer-events: none;
}
.reel__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 4;
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--accent); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  transition: transform .5s var(--ease);
}
.reel:hover .reel__play { transform: translate(-50%, -50%) scale(1.12); }
.reel__play::before {
  content: ""; position: absolute; inset: -10px; border-radius: 50%;
  border: 1px solid var(--accent); opacity: 0.5;
  animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(1.5); opacity: 0; } }

.scroll-cue {
  position: absolute; bottom: 22px; right: var(--gutter); z-index: 5;
  display: flex; align-items: center; gap: 10px;
  color: var(--muted-2);
}
.scroll-cue .bar { width: 1px; height: 40px; background: var(--line-strong); position: relative; overflow: hidden; }
.scroll-cue .bar::after { content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%; background: var(--accent); animation: drop 2s var(--ease) infinite; }
@keyframes drop { 0% { top: -50%; } 100% { top: 100%; } }

/* ---------- Marquee ---------- */
.marquee { display: flex; overflow: hidden; user-select: none; border-block: 1px solid var(--line); }
.marquee--accent { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.marquee__track { display: flex; flex-shrink: 0; gap: 0; align-items: center; animation: scroll-x var(--dur, 36s) linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee--rev .marquee__track { animation-direction: reverse; }
.marquee__item {
  font-family: var(--font-display); font-weight: 900; font-variation-settings: var(--wonk);
  font-size: clamp(28px, 4vw, 58px); letter-spacing: -0.03em;
  padding: 18px 0; white-space: nowrap; display: inline-flex; align-items: center; gap: clamp(28px, 4vw, 56px);
}
.marquee__item::after { content: "✲"; font-size: 0.5em; color: var(--accent); font-family: var(--font-ui); }
.marquee--accent .marquee__item::after { color: var(--ink); }
@keyframes scroll-x { to { transform: translateX(-50%); } }
/* Accent marquee: a bit more band height + breathing room above/below. */
.marquee--accent { margin-block: clamp(24px, 3vw, 40px); }
.marquee--accent .marquee__item { padding-block: clamp(30px, 3.2vw, 40px); }

/* ---------- Logos ---------- */
.logos { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.logos__label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); }
.logos__row { display: flex; align-items: center; gap: clamp(32px, 5vw, 64px); flex-wrap: wrap; }
.logos__item { font-family: var(--font-display); font-weight: 900; font-variation-settings: 'opsz' 40, 'SOFT' 0, 'WONK' 0; font-size: clamp(20px, 2.4vw, 30px); letter-spacing: -0.02em; color: var(--muted); transition: color .4s var(--ease); }
.logos__item:hover { color: var(--paper); }

/* ---------- Section head ---------- */
.head { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: end; margin-bottom: clamp(40px, 6vw, 80px); }
.head__title { font-size: clamp(40px, 8vw, 120px); }
.head__meta { justify-self: end; text-align: right; max-width: 32ch; color: var(--muted); }
.head__index { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; color: var(--accent); }

/* ---------- Services ---------- */
.svc { border-top: 1px solid var(--line); }
.svc__row {
  display: grid; grid-template-columns: 90px 1fr auto; gap: 28px; align-items: center;
  padding: clamp(24px, 3vw, 40px) 0; border-bottom: 1px solid var(--line);
  position: relative; cursor: pointer; transition: padding-left .5s var(--ease);
}
.svc__row::before {
  content: ""; position: absolute; inset: 0; background: var(--accent);
  transform: scaleY(0); transform-origin: bottom; z-index: -1; transition: transform .5s var(--ease);
}
.svc__row:hover { padding-left: 28px; }
.svc__row:hover::before { transform: scaleY(1); }
.svc__row:hover .svc__num,
.svc__row:hover .svc__name,
.svc__row:hover .svc__desc,
.svc__row:hover .svc__go { color: var(--ink); }
.svc__row:hover .svc__go { border-color: var(--ink); }
.svc__num { font-family: var(--font-mono); font-size: 13px; color: var(--accent); transition: color .4s var(--ease); }
.svc__name { font-family: var(--font-display); font-weight: 900; font-variation-settings: var(--wonk); font-size: clamp(30px, 5vw, 68px); letter-spacing: -0.04em; line-height: 0.95; transition: color .4s var(--ease); }
.svc__desc { font-size: 15px; color: var(--muted); max-width: 34ch; transition: color .4s var(--ease); }
.svc__go { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; transition: color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease); flex-shrink: 0; }
.svc__row:hover .svc__go { transform: rotate(45deg); }

/* ---------- Work ---------- */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 44px); }
.work-card { display: block; position: relative; }
.work-card:nth-child(odd) { margin-top: 0; }
.work-card:nth-child(even) { margin-top: clamp(0px, 8vw, 90px); }
.work-card__media { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: var(--ink-2); border: 1px solid var(--line); }
.work-card__media image-slot { width: 100%; height: 100%; transition: transform .8s var(--ease); }
.work-card:hover .work-card__media image-slot { transform: scale(1.04); }
.work-card__tagline {
  position: absolute; left: 0; bottom: 0; z-index: 3; padding: 18px 22px;
  background: var(--accent); color: var(--ink);
  font-family: var(--font-display); font-weight: 900; font-variation-settings: var(--wonk); font-size: clamp(20px, 2.6vw, 34px); letter-spacing: -0.03em;
  transform: translateY(110%); transition: transform .55s var(--ease-out);
}
.work-card:hover .work-card__tagline { transform: translateY(0); }
.work-card__foot { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 20px; }
.work-card__title { font-family: var(--font-display); font-weight: 900; font-variation-settings: 'opsz' 80, 'SOFT' 60, 'WONK' 1; font-size: clamp(24px, 3vw, 40px); letter-spacing: -0.03em; }
.work-card__tags { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); text-align: right; }
.work-card__year { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.step { background: var(--ink); padding: clamp(28px, 3vw, 44px); min-height: 340px; display: flex; flex-direction: column; justify-content: flex-start; transition: background .5s var(--ease); }
.step:hover { background: var(--ink-2); }
.ms-post-back { margin-bottom: clamp(20px, 3vw, 36px); }
.step__num { font-family: var(--font-mono); font-size: 13px; color: var(--accent); letter-spacing: 0.14em; }
.step__title { font-family: var(--font-display); font-weight: 900; font-variation-settings: var(--wonk); font-size: clamp(26px, 2.6vw, 40px); letter-spacing: -0.03em; line-height: 0.95; margin-top: auto; }
.step__desc { font-size: 14px; color: var(--muted); margin-top: 16px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; background: none; border: none; color: var(--paper); cursor: pointer; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(22px, 2.6vw, 34px) 0; font-family: var(--font-display); font-weight: 900; font-variation-settings: 'opsz' 60, 'SOFT' 40, 'WONK' 1; font-size: clamp(22px, 2.8vw, 40px); letter-spacing: -0.03em; transition: color .3s var(--ease); }
.faq__q:hover { color: var(--accent); }
.faq__icon { flex-shrink: 0; width: 40px; height: 40px; position: relative; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--accent); transition: transform .4s var(--ease); }
.faq__icon::before { width: 18px; height: 2px; }
.faq__icon::after { width: 2px; height: 18px; }
.faq__item.open .faq__icon::after { transform: translate(-50%, -50%) scaleY(0); }
.faq__a { overflow: hidden; height: 0; transition: height .5s var(--ease); }
.faq__a-inner { padding-bottom: clamp(22px, 2.6vw, 34px); color: var(--muted); max-width: 64ch; font-size: 17px; }

/* ---------- Contact ---------- */
.contact { position: relative; }
.contact__title { font-size: clamp(54px, 13vw, 200px); }
.contact__row { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-top: clamp(32px, 5vw, 56px); }
.contact__mail { font-family: var(--font-display); font-weight: 900; font-variation-settings: 'opsz' 60, 'SOFT' 40, 'WONK' 1; font-size: clamp(24px, 4vw, 52px); letter-spacing: -0.03em; border-bottom: 2px solid var(--line-strong); transition: border-color .4s var(--ease); }
.contact__mail:hover { border-color: var(--accent); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: clamp(40px, 5vw, 64px); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer__brand { font-family: var(--font-display); font-weight: 900; font-variation-settings: var(--wonk); font-size: clamp(40px, 6vw, 84px); letter-spacing: -0.045em; line-height: 0.85; }
.footer__col h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 18px; font-weight: 500; }
.footer__col a { display: block; color: var(--muted); padding: 5px 0; transition: color .3s var(--ease); font-size: 15px; }
.footer__col a:hover { color: var(--accent); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: clamp(40px, 6vw, 80px); padding-top: 28px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.footer__bottom .mono { color: var(--muted-2); }

/* ---------- Reveal ----------
   Resting state is ALWAYS fully visible (opacity:1, no clipping). Entrance
   motion is applied by JS via the Web Animations API as a transform-only
   slide — opacity never leaves 1 — so content can never be left hidden,
   regardless of timeline freezes, slow paints, or whether a scroll happens. */
.reveal, .reveal-line { display: block; }
.reveal-line > span { display: block; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal, .reveal-line > span { opacity: 1 !important; transform: none !important; }
}

/* ---------- Cursor ---------- */
.cursor { position: fixed; top: 0; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); pointer-events: none; z-index: 9999; transform: translate(-50%, -50%); transition: width .3s var(--ease), height .3s var(--ease), background .3s var(--ease), opacity .3s; mix-blend-mode: difference; }
.cursor--big { width: 56px; height: 56px; background: var(--paper); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__row { grid-template-columns: 1fr; }
  .hero__showreel { max-width: 480px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .head { grid-template-columns: 1fr; }
  .head__meta { justify-self: start; text-align: left; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav__links { display: none; }
  .nav__burger { display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
  .nav__burger span { width: 26px; height: 2px; background: var(--paper); display: block; }
  .nav__has-sub { display: flex; flex-direction: column; align-items: flex-start; }
  .nav__caret { display: none; }
  .nav__sub {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: none; border: none; backdrop-filter: none; -webkit-backdrop-filter: none;
    padding: 12px 0 0 14px; min-width: 0; gap: 14px;
  }
  .work-grid { grid-template-columns: 1fr; }
  .work-card:nth-child(even) { margin-top: 0; }
  .process { grid-template-columns: 1fr; }
  .svc__row { grid-template-columns: 50px 1fr; }
  .svc__desc, .svc__go { display: none; }
  .footer__top { grid-template-columns: 1fr; }
  .cursor { display: none; }
}

/* ============================================================
   UI/UX pass (2026-06-05): a11y (focus, touch targets, active nav)
   + motion polish (scroll progress, masked line reveal, magnetic CTA,
   stat count-up). Transform/opacity only; all decorative motion is
   gated by prefers-reduced-motion (see the block near .reveal above).
   ============================================================ */

/* --- 1. Focus-visible (skill rule #1). Keyboard users were invisible. --- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible { outline-offset: 4px; }
.faq__q:focus-visible { outline-offset: 6px; }
.svc__row:focus-visible,
.work-card:focus-visible { outline-offset: -2px; border-radius: 16px; }
.nav__brand:focus-visible,
.contact__mail:focus-visible { outline-offset: 6px; }
/* Pointer users keep the clean look; only keyboard nav shows the ring. */
:focus:not(:focus-visible) { outline: none; }

/* --- 2. Touch targets >= 44px on mobile (skill CRITICAL) --- */
@media (max-width: 720px) {
  .footer__col a { padding-block: 11px; }            /* ~44px row */
  .nav__sub { gap: 4px; }
  .nav__sublink { padding-block: 12px; }
  .back-link,
  .text-link { min-height: 44px; align-items: center; }
}

/* --- 3. Active navigation state (skill: nav-state-active) --- */
.nav__link[aria-current="page"] { color: var(--paper); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__sublink[aria-current="page"] { color: var(--paper); }

/* --- 4. Scroll-progress bar: pinned to the BOTTOM EDGE of the header, 4px,
   fills left to right as you scroll. JS appends it inside .nav (which is
   position:fixed), so it tracks the header in both default and scrolled states.
   Fallback (.--top) pins it to the viewport top if no .nav is found. --- */
.scroll-progress {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  height: 4px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  pointer-events: none;
}
.scroll-progress--top {
  position: fixed; top: 0; bottom: auto; left: 0; right: 0; z-index: 200;
}

/* --- 5. Masked line reveal for big display headings ---
   .reveal-line clips its inner <span>; JS slides the span up from below the
   mask. line-height is 0.86 (tighter than the glyph box), so we enlarge the
   clip box by 0.18em top+bottom and cancel it with a negative margin, leaving
   layout untouched while giving ascenders/descenders room not to be clipped. */
.reveal-line { overflow: hidden; padding-block: 0.18em; margin-block: -0.18em; }

/* --- 6. Stat count-up: reserve digit width so it never reflows --- */
.stat__n { font-variant-numeric: tabular-nums; }

/* --- 7. Magnetic CTA: JS sets transform inline; keep a smooth baseline --- */
.btn--accent { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .scroll-progress { display: none; }
  .reveal-line { overflow: visible; } /* no mask needed when motion is off */
}

/* ===== Contact form (Divi et_pb_contact_form, brand-styled) ===== */
.ms-contactform { max-width: 600px; margin-inline: auto; padding-inline: var(--gutter); width: 100%; box-sizing: border-box; }
.ms-contactform .et_pb_contact_form_field { margin: 0 0 16px !important; padding: 0 !important; width: 100% !important; }
.ms-contactform .et_pb_contact_field_options_wrapper, .ms-contactform .et_pb_contact_field_options_title { display: none; }
.ms-contactform input[type="text"], .ms-contactform input[type="email"], .ms-contactform textarea { background: var(--ink-2) !important; border: 1px solid var(--line-strong) !important; color: var(--paper) !important; border-radius: 12px !important; padding: 16px 18px !important; font-family: var(--font-ui) !important; font-size: 16px !important; width: 100% !important; box-shadow: none !important; }
.ms-contactform textarea { min-height: 160px !important; resize: vertical; }
.ms-contactform input::placeholder, .ms-contactform textarea::placeholder { color: var(--muted) !important; opacity: 1; }
.ms-contactform input:focus, .ms-contactform textarea:focus { border-color: var(--accent) !important; outline: none !important; }
.ms-contactform .et_pb_contact_captcha_question { color: var(--muted); font-family: var(--font-mono); font-size: 13px; }
.ms-contactform input.et_pb_contact_captcha { width: 84px !important; display: inline-block !important; margin-left: 10px !important; }
.ms-contactform .et_contact_bottom_container { margin-top: 8px; text-align: left; }
.ms-contactform .et_pb_contact_submit.et_pb_button { background: var(--accent) !important; color: var(--ink) !important; border: 1px solid var(--accent) !important; border-radius: 999px !important; font-family: var(--font-mono) !important; text-transform: uppercase !important; letter-spacing: 0.12em !important; font-size: 13px !important; padding: 16px 30px !important; transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease); }
.ms-contactform .et_pb_contact_submit.et_pb_button:hover { background: var(--paper) !important; border-color: var(--paper) !important; color: var(--ink) !important; padding: 16px 30px !important; }
.ms-contactform .et_pb_contact_submit.et_pb_button:before, .ms-contactform .et_pb_contact_submit.et_pb_button:after { display: none !important; }
.ms-contactform .et-pb-contact-message p, .ms-contactform p.et_pb_contact_error_text { color: var(--paper); font-family: var(--font-ui); }
.ms-contactform ul.et_pb_contact_error li { color: #ff8a6a; }

/* Long NL compound words (e.g. "Marketingstrategie") would overflow the giant
   display titles since they cannot wrap. Allow breaking/hyphenation; html
   lang="nl-NL" (set by Polylang) gives proper Dutch hyphenation. */
.display, .page-title, .head__title, .hero__title, .sd__title, .svc__name,
.work-card__title, .next__title, .contact__title {
  overflow-wrap: break-word; hyphens: manual; -webkit-hyphens: manual;
}

/* Honeypot field: invisible to humans, bots fill it -> blocked server-side. */
.ms-contactform .ms-hp, .ms-contactform .et_pb_contact_field[data-id="website"] { position: absolute !important; left: -9999px !important; top: auto; width: 1px !important; height: 1px !important; overflow: hidden; opacity: 0; pointer-events: none; }
