/* ==========================================================================
   AURACRAFT — stylesheet
   Dark, high-contrast, expressive. Built mobile-first.
   ========================================================================== */

:root {
  --bg: #0a0a0c;
  --bg-soft: #111114;
  --bg-card: rgba(245, 244, 239, 0.04);
  --bg-card-hover: rgba(245, 244, 239, 0.07);
  --ink: #f4f3ee;
  --ink-dim: #8b8b93;
  --ink-mute: #57575f;
  --line: rgba(244, 243, 238, 0.1);
  --line-strong: rgba(244, 243, 238, 0.22);

  --accent: #dcff4f;
  --accent-ink: #0c0d02;
  --violet: #8266ff;
  --coral: #ff5d47;

  --font-display: "Unbounded", "Arial Black", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;

  --container: 1240px;
  --pad: clamp(1.25rem, 5vw, 3rem);
  --radius: 20px;
  --radius-sm: 12px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---- reset ------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color-scheme: dark;
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

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

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

input,
select,
textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

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

/* ---- utility ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px 2px currentColor;
}

.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;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  z-index: 1000;
  transition: top 0.2s var(--ease-out);
}

.skip-link:focus {
  top: 1rem;
}

/* ---- grain + glow layers ------------------------------------------------ */
.grain {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
}

/* Wrapper only handles position/size + scroll parallax (driven by GSAP).
   The continuous ambient drift lives on ::before so the two animations
   never fight over the same transform. */
.aura-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

.aura-glow::before {
  content: "";
  position: absolute;
  inset: -20%;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  animation: auraDrift 26s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes auraDrift {
  0% {
    transform: translate(-4%, -3%) scale(0.94);
  }
  50% {
    transform: translate(3%, 4%) scale(1.06);
  }
  100% {
    transform: translate(-2%, 5%) scale(0.98);
  }
}

/* ---- custom cursor (desktop only) -------------------------------------- */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
}

.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out), border-color 0.25s var(--ease-out), background-color 0.25s var(--ease-out);
}

.cursor-ring.is-active {
  width: 64px;
  height: 64px;
  background: rgba(220, 255, 79, 0.08);
  border-color: var(--accent);
}

html.has-custom-cursor,
html.has-custom-cursor a,
html.has-custom-cursor button {
  cursor: none;
}

@media (pointer: coarse), (max-width: 860px) {
  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}

/* ---- headings / display type -------------------------------------------- */
.h-display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
  font-weight: 600;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: clamp(2rem, 6vw, 4rem);
}

/* ---- buttons ------------------------------------------------------------ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 1.9rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: transform 0.3s var(--ease-out), background-color 0.3s, color 0.3s, border-color 0.3s;
}

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

.btn-primary:hover {
  background: #eaff85;
}

.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-arrow {
  transition: transform 0.3s var(--ease-out);
}

.btn:hover .btn-arrow {
  transform: translate(3px, -3px);
}

/* magnetic wrapper keeps hit-area stable while inner label moves */
.magnetic {
  display: inline-block;
}

/* ---- header --------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  padding-block: clamp(1rem, 3vw, 1.5rem);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.6rem 0.6rem 1.2rem;
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.55);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background-color 0.3s, border-color 0.3s;
}

.site-header.is-scrolled .site-header__bar {
  background: rgba(10, 10, 12, 0.85);
  border-color: var(--line-strong);
}

.logo {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.logo__aura {
  background: linear-gradient(100deg, var(--accent), #fff 60%, var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo__craft {
  font-weight: 300;
  color: var(--ink);
  margin-left: 0.05em;
}

.logo__dot {
  width: 0.35em;
  height: 0.35em;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  margin-left: 0.15em;
  box-shadow: 0 0 10px 2px var(--accent);
  transform: translateY(-0.6em);
}

.main-nav {
  display: none;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-dim);
}

.main-nav a {
  position: relative;
  padding-block: 0.3rem;
  transition: color 0.25s;
}

.main-nav a:hover {
  color: var(--ink);
}

.header-cta {
  display: none;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  gap: 4px;
  flex-direction: column;
}

.nav-toggle span {
  width: 16px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 490;
  background: var(--bg);
  padding: 6rem var(--pad) 2rem;
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease-in-out);
}

.mobile-nav.is-open {
  transform: translateY(0);
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 8vw, 2.4rem);
}

.mobile-nav .btn {
  margin-top: 2.5rem;
  width: fit-content;
}

@media (min-width: 900px) {
  .main-nav {
    display: block;
  }
  .header-cta {
    display: inline-flex;
  }
  .nav-toggle {
    display: none;
  }
}

/* ---- hero ------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  /* Top-aligned rather than bottom-pinned: fixed UI (cookie banner, chat
     widget) floats over the bottom of the viewport on completely normal
     desktop and phone sizes alike, and would otherwise sit on top of the
     CTA buttons and silently swallow clicks/taps meant for them. Keeping
     content in the upper portion of the viewport avoids that zone
     regardless of viewport height or banner size. */
  align-items: flex-start;
  padding-top: clamp(5rem, 10vw, 6.5rem);
  padding-bottom: clamp(2rem, 5vw, 3rem);
  overflow: clip;
}

.hero__glow-a {
  width: 46vw;
  height: 46vw;
  top: -10%;
  right: -10%;
}

.hero__glow-a::before {
  background: var(--violet);
}

.hero__glow-b {
  width: 34vw;
  height: 34vw;
  bottom: 0%;
  left: -8%;
}

.hero__glow-b::before {
  background: var(--accent);
  opacity: 0.25;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: clamp(1.25rem, 4vw, 2.25rem);
}

.hero__kicker {
  margin-bottom: 1.4rem;
}

.hero__title {
  font-size: clamp(2.4rem, 6.5vw, 4.6rem);
  max-width: 16ch;
}

.hero__line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}

.hero__line span {
  display: block;
  will-change: transform;
}

.hero__title em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
}

.hero__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.hero__sub {
  max-width: 34ch;
  color: var(--ink-dim);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__scroll-cue {
  position: absolute;
  bottom: clamp(1.25rem, 3vw, 2rem);
  left: var(--pad);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  z-index: 2;
}

.hero__scroll-cue .line {
  width: 1px;
  height: 40px;
  background: linear-gradient(var(--ink-mute), transparent);
}

/* ---- 404 page (reuses .hero) -------------------------------------------- */
.notfound-hero {
  min-height: 90svh;
  align-items: center;
}

.notfound-hero__title {
  max-width: 22ch;
  font-size: clamp(2.1rem, 6.4vw, 4.6rem);
}

/* ---- bedankt page (reuses .hero) ----------------------------------------- */
.thankyou-hero {
  min-height: 90svh;
  align-items: center;
}

.thankyou-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}

.thankyou-check {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  animation: checkPop 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.thankyou-check svg {
  width: 38px;
  height: 38px;
}

.thankyou-check__path {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  animation: checkDraw 0.45s 0.45s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes checkPop {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes checkDraw {
  to {
    stroke-dashoffset: 0;
  }
}

.thankyou-title {
  font-size: clamp(2rem, 6vw, 3.2rem);
}

.thankyou-sub {
  color: var(--ink-dim);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  max-width: 34ch;
}

.thankyou-direct {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin-top: 0.5rem;
}

.thankyou-direct a {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.8vw, 1.5rem);
  color: var(--ink);
  transition: color 0.25s;
}

.thankyou-direct a:hover {
  color: var(--accent);
}

.thankyou-note {
  color: var(--ink-mute);
  font-size: 0.85rem;
  max-width: 40ch;
}

.thankyou-actions {
  margin-top: 1rem;
  justify-content: center;
}

/* ---- intro / text reveal ------------------------------------------------ */
.intro {
  position: relative;
  padding-block: clamp(5rem, 14vw, 9rem);
}

.intro .eyebrow {
  margin-bottom: 1.75rem;
}

.reveal-text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 5.2vw, 3.4rem);
  line-height: 1.3;
  max-width: 22ch;
}

.reveal-text .word {
  color: var(--ink-mute);
  transition: none;
}

.reveal-text .word.is-lit,
html.reduced-motion .reveal-text .word {
  color: var(--ink);
}

.reveal-text .word.accent-word {
  color: var(--accent);
}

/* ---- services (horizontal scroll) --------------------------------------- */
.services {
  position: relative;
  padding-top: clamp(3rem, 8vw, 5rem);
}

.services__head {
  padding-inline: var(--pad);
  max-width: var(--container);
  margin-inline: auto;
}

.services__pin {
  overflow: hidden;
}

.services__addon {
  margin-top: clamp(2rem, 5vw, 3rem);
  text-align: center;
  color: var(--ink-dim);
  font-size: 0.95rem;
}

.services__addon strong {
  color: var(--accent);
  font-weight: 700;
}

.services__track {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding-inline: var(--pad);
  will-change: transform;
}

@media (max-width: 899px) {
  .services__track {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-block: 1rem 2rem;
    -webkit-overflow-scrolling: touch;
  }
  .services__track::-webkit-scrollbar {
    display: none;
  }
  .service-card {
    scroll-snap-align: start;
  }
}

.service-card {
  position: relative;
  flex: 0 0 clamp(280px, 82vw, 420px);
  min-height: clamp(380px, 60vh, 560px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--bg-card), transparent 60%);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: border-color 0.4s, background-color 0.4s;
}

.service-card:hover {
  border-color: var(--line-strong);
  background: linear-gradient(160deg, var(--bg-card-hover), transparent 60%);
}

.service-card__index {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--ink-mute);
  letter-spacing: 0.1em;
}

.service-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-top: 1.5rem;
  line-height: 1.15;
}

.service-card__pitch {
  color: var(--ink-dim);
  margin-top: 1.1rem;
  max-width: 32ch;
}

.service-card__tag {
  margin-top: auto;
  padding-top: 2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
}

.service-card__glyph {
  position: absolute;
  right: -10%;
  bottom: -18%;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.35;
  z-index: -1;
}

.service-card:nth-child(1) .service-card__glyph {
  background: var(--violet);
}
.service-card:nth-child(2) .service-card__glyph {
  background: var(--accent);
}
.service-card:nth-child(3) .service-card__glyph {
  background: var(--coral);
}

/* ---- werkwijze ----------------------------------------------------------- */
.process {
  padding-block: clamp(5rem, 12vw, 8rem);
  position: relative;
}

.process__list {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  position: relative;
  display: grid;
  gap: clamp(2.5rem, 6vw, 0rem);
  grid-template-columns: 1fr;
}

.process__line {
  position: absolute;
  left: 27px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--line);
}

.process__line-fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(var(--accent), var(--violet));
  transform-origin: top;
}

.process__step {
  position: relative;
  padding: 1.75rem 0 1.75rem 4.5rem;
  border-top: 1px solid var(--line);
}

.process__step:last-child {
  border-bottom: 1px solid var(--line);
}

.process__num {
  position: absolute;
  left: 0;
  top: 1.75rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.9rem;
  z-index: 2;
}

.process__step-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.9rem);
}

.process__step-desc {
  margin-top: 0.6rem;
  color: var(--ink-dim);
  max-width: 46ch;
}

@media (min-width: 700px) {
  .process__step {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    align-items: center;
    gap: 2rem;
    padding-left: 5.5rem;
  }
  .process__num {
    top: 50%;
    transform: translateY(-50%);
  }
  .process__line {
    left: 32px;
  }
}

/* ---- waarom -------------------------------------------------------------- */
.why {
  padding-block: clamp(5rem, 12vw, 8rem);
}

.why__grid {
  margin-top: clamp(2rem, 6vw, 3.5rem);
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 800px) {
  .why__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.why__card {
  padding: clamp(1.75rem, 3vw, 2.25rem);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-soft);
}

.why__card-num {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

.why__card-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-top: 1.25rem;
}

.why__card-desc {
  margin-top: 0.75rem;
  color: var(--ink-dim);
}

/* ---- lanceeraanbod -------------------------------------------------------- */
.launch {
  position: relative;
  margin-inline: var(--pad);
  margin-block: clamp(3rem, 8vw, 5rem);
  padding: clamp(2.25rem, 6vw, 4rem) clamp(1.5rem, 6vw, 3.5rem);
  border-radius: calc(var(--radius) * 1.4);
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0 100px -20px rgba(220, 255, 79, 0.45);
}

.launch__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.launch .eyebrow {
  color: var(--accent-ink);
}

.launch__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: var(--accent-ink);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.launch__head {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.launch__title {
  max-width: 20ch;
}

.launch__text {
  max-width: 62ch;
  font-size: clamp(1rem, 1.6vw, 1.1rem);
}

.launch__perks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.launch__perk {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1.5px solid var(--accent-ink);
  font-size: 0.85rem;
  font-weight: 700;
}

.launch__cta {
  margin-top: 0.5rem;
}

.btn-dark {
  background: var(--bg);
  color: var(--accent);
}

.btn-dark:hover {
  background: var(--bg-soft);
}

/* ---- cta ------------------------------------------------------------------ */
.cta {
  position: relative;
  margin-inline: var(--pad);
  margin-block: clamp(4rem, 10vw, 6rem);
  padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 6vw, 4rem);
  border-radius: calc(var(--radius) * 1.4);
  background: linear-gradient(135deg, #17171c, #0c0c0e 60%);
  border: 1px solid var(--line);
  text-align: center;
  overflow: hidden;
}

.cta__glow {
  width: 60%;
  height: 60%;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
}

.cta__glow::before {
  background: var(--violet);
}

.cta__title {
  position: relative;
  z-index: 1;
  font-size: clamp(2rem, 6vw, 4rem);
  max-width: 16ch;
  margin-inline: auto;
}

.cta__sub {
  position: relative;
  z-index: 1;
  color: var(--ink-dim);
  max-width: 40ch;
  margin: 1.25rem auto 0;
}

.cta__actions {
  position: relative;
  z-index: 1;
  margin-top: 2.25rem;
  display: flex;
  justify-content: center;
}

/* ---- footer ---------------------------------------------------------------- */
.site-footer {
  padding-block: clamp(3rem, 8vw, 5rem) 2rem;
  border-top: 1px solid var(--line);
}

.footer__top {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 800px) {
  .footer__top {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
}

.footer__brand .logo {
  font-size: 1.6rem;
}

.footer__tagline {
  margin-top: 1rem;
  color: var(--ink-dim);
  max-width: 34ch;
}

.footer__heading {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 1rem;
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__list a {
  color: var(--ink-dim);
  transition: color 0.2s;
}

.footer__list a:hover {
  color: var(--accent);
}

.footer__socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s, color 0.25s, transform 0.25s var(--ease-out);
}

.social-icon:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
}

.social-icon svg {
  width: 18px;
  height: 18px;
}

.footer__bottom {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--ink-mute);
}

.footer__bottom a {
  color: var(--ink-mute);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__bottom a:hover {
  color: var(--ink);
}

/* ============================== CHATBOT ================================= */
.chat-widget {
  position: fixed;
  right: clamp(1rem, 4vw, 1.75rem);
  bottom: clamp(1rem, 4vw, 1.75rem);
  z-index: 700;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
  font-family: var(--font-body);
  /* The closed chat panel keeps its layout box (just invisible via
     opacity) so this flex container's own box still spans that full
     area. Without this, the "empty" space above the toggle button
     would silently swallow clicks meant for whatever sits underneath. */
  pointer-events: none;
}

.chat-toggle {
  pointer-events: auto;
}

.chat-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px -8px rgba(220, 255, 79, 0.45);
  position: relative;
}

.chat-toggle svg {
  width: 24px;
  height: 24px;
  transition: opacity 0.2s, transform 0.2s;
}

.chat-toggle .icon-close {
  position: absolute;
  opacity: 0;
  transform: scale(0.6) rotate(-45deg);
}

.chat-widget.is-open .chat-toggle .icon-chat {
  opacity: 0;
  transform: scale(0.6) rotate(45deg);
}

.chat-widget.is-open .chat-toggle .icon-close {
  opacity: 1;
  transform: scale(1) rotate(0);
}

.chat-toggle .ping {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--coral);
  border: 2px solid var(--bg);
}

.chat-panel {
  width: min(370px, calc(100vw - 2rem));
  height: min(560px, 72vh);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
  opacity: 0;
  transform: scale(0.9) translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out), transform 0.35s var(--ease-out);
}

.chat-widget.is-open .chat-panel {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

.chat-panel__head {
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(130, 102, 255, 0.15), transparent);
}

.chat-panel__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--violet));
  flex-shrink: 0;
}

.chat-panel__head-text strong {
  display: block;
  font-size: 0.95rem;
}

.chat-panel__head-text span {
  font-size: 0.78rem;
  color: var(--ink-dim);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.chat-panel__head-text span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6bffa0;
  display: inline-block;
}

.chat-panel__body {
  flex: 1;
  overflow-y: auto;
  padding: 1.1rem 1.1rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.chat-msg {
  max-width: 88%;
  padding: 0.7rem 0.95rem;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.chat-msg--bot {
  background: var(--bg-card);
  border: 1px solid var(--line);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-msg--user {
  background: var(--accent);
  color: var(--accent-ink);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  font-weight: 600;
}

.chat-msg a {
  color: var(--accent);
  text-decoration: underline;
}

.chat-msg--bot a {
  color: var(--ink);
  font-weight: 700;
}

.chat-suggestions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-self: flex-start;
  max-width: 92%;
}

.chat-suggestion {
  text-align: left;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--ink-dim);
  transition: border-color 0.2s, color 0.2s;
}

.chat-suggestion:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.chat-typing {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  padding: 0.8rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-mute);
  animation: chatTyping 1s infinite ease-in-out;
}

.chat-typing span:nth-child(2) {
  animation-delay: 0.15s;
}
.chat-typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes chatTyping {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

.chat-panel__form {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem;
  border-top: 1px solid var(--line);
}

.chat-panel__form input {
  flex: 1;
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  font-size: 0.88rem;
}

.chat-panel__form input:focus {
  border-color: var(--accent);
}

.chat-panel__send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-panel__send svg {
  width: 16px;
  height: 16px;
}

/* ============================== COOKIES ================================= */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 800;
  max-width: 620px;
  margin-inline: auto;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  transform: translateY(140%);
  transition: transform 0.6s var(--ease-out);
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-banner p {
  font-size: 0.9rem;
  color: var(--ink-dim);
}

.cookie-banner a {
  color: var(--accent);
  text-decoration: underline;
}

.cookie-banner__actions {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.cookie-banner__actions .btn {
  padding: 0.7rem 1.2rem;
  font-size: 0.85rem;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(6, 6, 7, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
}

.modal-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.cookie-modal {
  width: 100%;
  max-width: 480px;
  max-height: 86vh;
  overflow-y: auto;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid var(--line-strong);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  transform: translateY(16px);
  transition: transform 0.3s var(--ease-out);
}

.modal-overlay.is-visible .cookie-modal {
  transform: translateY(0);
}

.cookie-modal h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
}

.cookie-modal > p {
  margin-top: 0.75rem;
  color: var(--ink-dim);
  font-size: 0.9rem;
}

.cookie-option {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
}

.cookie-option:last-of-type {
  border-bottom: 1px solid var(--line);
}

.cookie-option__text strong {
  display: block;
  font-size: 0.95rem;
}

.cookie-option__text span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--ink-dim);
}

.switch {
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: var(--line-strong);
  flex-shrink: 0;
  transition: background-color 0.25s;
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ink);
  transition: transform 0.25s var(--ease-out);
}

.switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.switch:has(input:checked)::after {
  transform: translateX(20px);
}

.switch:has(input:checked) {
  background: var(--accent);
}

.switch:has(input:disabled) {
  opacity: 0.5;
}

.cookie-modal__actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ============================== ANIMATIONS UTILS ========================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
}

html.reduced-motion [data-reveal] {
  opacity: 1;
  transform: none;
}

/* ============================== CONTACT PAGE ============================= */
.page-hero {
  padding-top: clamp(8rem, 20vw, 11rem);
  padding-bottom: clamp(3rem, 6vw, 4rem);
  position: relative;
}

.page-hero__title {
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  max-width: 18ch;
}

.page-hero__sub {
  margin-top: 1.25rem;
  color: var(--ink-dim);
  max-width: 48ch;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
}

.contact-grid {
  padding-block: clamp(2rem, 6vw, 3rem) clamp(5rem, 10vw, 7rem);
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  grid-template-columns: 1fr;
}

@media (min-width: 960px) {
  .contact-grid {
    grid-template-columns: 0.85fr 1.15fr;
  }
}

.contact-direct__label {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.contact-direct__link {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4.5vw, 2.3rem);
  margin-top: 0.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  transition: color 0.25s;
  word-break: break-word;
}

.contact-direct__link:hover {
  color: var(--accent);
}

.contact-direct__block + .contact-direct__block {
  margin-top: 1.75rem;
}

.contact-direct__socials {
  margin-top: 2.5rem;
  display: flex;
  gap: 0.75rem;
}

.contact-direct__meta {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-card);
  font-size: 0.85rem;
  color: var(--ink-dim);
}

.contact-direct__meta strong {
  color: var(--ink);
}

.form-card {
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  position: relative;
  overflow: hidden;
}

.field {
  position: relative;
  margin-bottom: 1.6rem;
}

.field label {
  position: absolute;
  left: 1.1rem;
  top: 1rem;
  color: var(--ink-mute);
  font-size: 1rem;
  pointer-events: none;
  transform-origin: left top;
  transition: transform 0.22s var(--ease-out), color 0.22s var(--ease-out), top 0.22s var(--ease-out);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 1.6rem 1.1rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-card);
  font-size: 1rem;
  transition: border-color 0.25s;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b8b93' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
}

.field input:focus + label,
.field textarea:focus + label,
.field.is-filled label,
.field select:focus ~ label,
.field.select-filled label {
  transform: scale(0.78);
  top: 0.55rem;
  color: var(--accent);
}

.field-hint {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: var(--coral);
  min-height: 1.1em;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--coral);
}

.form-error {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--coral);
}

.btn[disabled] {
  opacity: 0.6;
  pointer-events: none;
}

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

.form-note {
  margin-top: 1.25rem;
  font-size: 0.82rem;
  color: var(--ink-mute);
}

.form-note a {
  color: var(--ink-dim);
  text-decoration: underline;
}

.form-submit {
  width: 100%;
  margin-top: 0.5rem;
  justify-content: center;
}

/* ============================== PRIVACY PAGE ============================= */
.legal {
  position: relative;
  padding-block: clamp(8rem, 18vw, 10rem) clamp(5rem, 10vw, 7rem);
}

.legal__title {
  font-size: clamp(2rem, 6vw, 3.4rem);
}

.legal__updated {
  margin-top: 0.75rem;
  color: var(--ink-mute);
  font-size: 0.85rem;
}

.legal__body {
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
  display: grid;
  gap: clamp(2.5rem, 6vw, 3.5rem);
  max-width: 74ch;
}

.legal__section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  color: var(--accent);
}

.legal__section p,
.legal__section li {
  margin-top: 1rem;
  color: var(--ink-dim);
  line-height: 1.7;
}

.legal__section ul {
  display: grid;
  gap: 0.5rem;
  padding-left: 1.25rem;
  list-style: disc;
}

.legal__section strong {
  color: var(--ink);
}

.legal__table-wrap {
  margin-top: 1.25rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.legal__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 560px;
}

.legal__table th,
.legal__table td {
  text-align: left;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-dim);
  vertical-align: top;
}

.legal__table th {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  background: var(--bg-card);
}

.legal__table tr:last-child td {
  border-bottom: none;
}

/* ============================== MOTION SAFETY ============================ */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
