/* =========================================================
   Goodness Okechukwu: Portfolio
   Brand palette: Deep Royal Purple #34014e (primary),
   Rich Purple #540175, Soft Lavender #efd0ff, Signature Yellow #fcea04
   ========================================================= */

:root {
  --royal: #34014e;
  --rich: #540175;
  --lavender: #efd0ff;
  --yellow: #fcea04;

  --royal-950: #1f0030;
  --lavender-50: #faf3ff;
  --lavender-100: #f5e6ff;
  --ink: #23003a;
  --ink-soft: #5b4470;
  --line: rgba(52, 1, 78, 0.12);
  --white: #ffffff;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;

  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px -20px rgba(52, 1, 78, 0.35);
  --container: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--lavender-50);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
em { font-style: italic; font-weight: 400; }
::selection { background: var(--yellow); color: var(--royal); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--yellow); color: var(--royal); padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip-link:focus { top: 12px; }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--rich); margin-bottom: 18px;
}
.eyebrow::before { content: "✦"; color: var(--yellow); -webkit-text-stroke: .6px var(--rich); font-size: 1rem; letter-spacing: 0; }
.eyebrow--light { color: var(--lavender); }
.eyebrow--light::before { -webkit-text-stroke: 0; }
.h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); color: var(--royal); }
.h2 em { color: var(--rich); }
.h2 + p { margin-top: 20px; }
.section--dark .h2, .section--dark .h2 em { color: var(--white); }
.section--dark .h2 em { color: var(--yellow); }
.lead { font-size: 1.25rem; color: var(--royal); font-weight: 500; }
.muted { color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px;
  font: 600 .95rem/1 var(--font-body);
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn span { transition: transform .25s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn--primary { background: var(--royal); color: var(--white); box-shadow: 0 10px 24px -10px rgba(52,1,78,.6); }
.btn--primary:hover { background: var(--rich); }
.btn--ghost { border-color: var(--royal); color: var(--royal); }
.btn--ghost:hover { background: var(--royal); color: var(--white); }
.btn--yellow { background: var(--yellow); color: var(--royal); }
.btn--yellow:hover { background: #fff27a; box-shadow: 0 10px 30px -10px rgba(252,234,4,.6); }
.btn--block { width: 100%; padding-block: 18px; font-size: 1rem; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-block: 18px;
  transition: background .3s, padding .3s, box-shadow .3s;
}
.nav.is-scrolled {
  background: rgba(250, 243, 255, .86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding-block: 12px;
  box-shadow: 0 1px 0 var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 28px; }
.logo { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: var(--royal); }
.logo span { color: var(--yellow); -webkit-text-stroke: 1px var(--rich); }
.logo--light { color: var(--white); }
.logo--light span { -webkit-text-stroke: 0; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a:not(.btn) { font-size: .92rem; font-weight: 500; color: var(--ink-soft); position: relative; padding-block: 4px; }
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--rich); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__links a:not(.btn):hover, .nav__links a.is-active { color: var(--royal); }
.nav__links a:not(.btn):hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__cta { padding: 12px 20px; }
.nav__cta-mobile { display: none; }
.nav__toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 150px 0 90px; overflow: hidden; }
.hero__glow {
  position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, var(--lavender) 0%, rgba(239,208,255,0) 65%);
  pointer-events: none;
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.hero__title { font-size: clamp(3.2rem, 8vw, 6.4rem); color: var(--royal); line-height: .98; margin-bottom: 26px; }
.hero__title em { color: var(--rich); }
.hero__sub { font-family: var(--font-display); font-size: clamp(1.3rem, 2.2vw, 1.65rem); color: var(--royal); line-height: 1.35; }
.hero__body { color: var(--ink-soft); max-width: 520px; }
.hero__body strong { color: var(--royal); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.hero__visual { position: relative; justify-self: center; width: min(100%, 420px); }
.portrait {
  position: relative; aspect-ratio: 4 / 5.2;
  border-radius: 999px 999px 28px 28px; overflow: hidden;
  background: var(--lavender);
  box-shadow: var(--shadow);
  outline: 1.5px solid var(--rich); outline-offset: 12px;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transition: transform 1.2s var(--ease); }
.hero__visual:hover .portrait img { transform: scale(1.04); }
.portrait__caption { text-align: center; margin-top: 28px; font-family: var(--font-display); color: var(--rich); }

.sparkle { position: absolute; color: var(--yellow); -webkit-text-stroke: 1px var(--rich); animation: twinkle 3.5s ease-in-out infinite; }
.sparkle--1 { font-size: 2.6rem; top: -6px; right: 4px; }
.sparkle--2 { font-size: 1.6rem; bottom: 90px; left: -22px; animation-delay: 1.2s; }
@keyframes twinkle { 0%,100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.25) rotate(20deg); } }

.stat-chip {
  position: absolute; display: flex; flex-direction: column;
  background: var(--white); border-radius: 18px; padding: 14px 18px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  animation: float 6s ease-in-out infinite;
}
.stat-chip__value { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--royal); line-height: 1.1; }
.stat-chip__label { font-size: .75rem; color: var(--ink-soft); font-weight: 500; }
.stat-chip--a { top: 22%; left: -60px; }
.stat-chip--b { bottom: 22%; right: -50px; background: var(--royal); border-color: transparent; animation-delay: -3s; }
.stat-chip--b .stat-chip__value { color: var(--yellow); }
.stat-chip--b .stat-chip__label { color: var(--lavender); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Marquee ---------- */
.marquee { background: var(--royal); color: var(--lavender); padding: 20px 0; overflow: hidden; transform: rotate(-1.2deg); margin: 10px -10px; }
.marquee__track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; list-style: none; margin: 0; padding: 0; }
.marquee__list li { font-family: var(--font-display); font-size: 1.35rem; font-style: italic; white-space: nowrap; display: flex; align-items: center; }
.marquee__list li::after { content: "✦"; color: var(--yellow); font-style: normal; margin: 0 28px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 120px 0; position: relative; }
.section--dark { background: var(--royal); color: var(--lavender-100); }
.section--lavender { background: var(--lavender); }
.section__head { max-width: 680px; margin-bottom: 60px; }
.section__head--center { text-align: center; margin-inline: auto; }

/* About */
.about__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: start; }
.about__head { position: sticky; top: 120px; }
.about__pull {
  margin: 40px 0 0; padding: 26px 28px; border-left: 4px solid var(--yellow);
  background: var(--white); border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-display); font-style: italic; font-size: 1.35rem; color: var(--rich); line-height: 1.4;
  box-shadow: var(--shadow);
}
.about__body p { color: var(--ink-soft); }
.about__body .lead { color: var(--royal); }
.about__body .btn { margin-top: 14px; }

/* Services */
.services { background:
  radial-gradient(600px 400px at 90% 0%, rgba(84,1,117,.9), transparent 70%),
  var(--royal); }
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service {
  background: rgba(255,255,255,.05); border: 1px solid rgba(239,208,255,.18);
  border-radius: var(--radius); padding: 32px 26px;
  transition: transform .35s var(--ease), background .35s, border-color .35s;
}
.service:hover { transform: translateY(-6px); background: rgba(239,208,255,.1); border-color: var(--yellow); }
.service__num { font-family: var(--font-display); font-size: 2.6rem; color: var(--yellow); line-height: 1; display: block; margin-bottom: 26px; }
.service h3 { font-size: 1.5rem; color: var(--white); margin-bottom: 18px; }
.service ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.service li { font-size: .95rem; color: var(--lavender); padding-left: 22px; position: relative; line-height: 1.5; }
.service li::before { content: "✦"; position: absolute; left: 0; color: var(--yellow); font-size: .8rem; top: 2px; }

/* Tools: see "Tools stage" below */

/* Experience */
.experience { background: var(--white); }
.experience__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; }
.experience__head { position: sticky; top: 120px; align-self: start; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline__item {
  display: grid; grid-template-columns: 64px 1fr; gap: 20px;
  padding: 28px 0; border-bottom: 1px solid var(--line);
  transition: padding .3s var(--ease);
}
.timeline__item:first-child { border-top: 1px solid var(--line); }
.timeline__item:hover { padding-left: 12px; }
.timeline__num { font-family: var(--font-display); font-style: italic; font-size: 1.6rem; color: var(--rich); }
.timeline__item h3 { font-size: 1.4rem; color: var(--royal); margin-bottom: 6px; }
.timeline__item p { margin: 0; color: var(--ink-soft); }

/* Projects: see "Projects stage" below */

/* Results */
.results__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid rgba(239,208,255,.2); border-bottom: 1px solid rgba(239,208,255,.2); }
.result { padding: 48px 30px; text-align: center; }
.result + .result { border-left: 1px solid rgba(239,208,255,.2); }
.result__value { font-family: var(--font-display); font-size: clamp(3rem, 6vw, 4.6rem); color: var(--yellow); line-height: 1; margin-bottom: 16px; font-weight: 600; }
.result p:last-child { color: var(--lavender); max-width: 260px; margin: 0 auto; }
.results__points { list-style: none; padding: 0; margin: 50px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; color: var(--lavender-100); }
.results__points li::before { content: "✦ "; color: var(--yellow); }

/* Testimonials */
.testimonials__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.quote {
  margin: 0; background: var(--white); border-radius: var(--radius); padding: 38px 32px 30px;
  border: 1px solid var(--line); position: relative;
  transition: transform .35s var(--ease), box-shadow .35s;
}
.quote:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.quote::before { content: "“"; position: absolute; top: -8px; left: 26px; font-family: var(--font-display); font-size: 6rem; line-height: 1; color: var(--yellow); -webkit-text-stroke: 1px var(--rich); }
.quote blockquote { margin: 24px 0 28px; color: var(--ink); font-size: 1rem; }
.quote figcaption { display: flex; align-items: center; gap: 14px; }
.quote figcaption strong { display: block; color: var(--royal); }
.quote figcaption em { font-size: .85rem; color: var(--ink-soft); }
.avatar { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--lavender); color: var(--rich); font-weight: 700; font-size: .85rem; }
.quote--accent { background: var(--lavender); border-color: transparent; transform: translateY(30px); }
.quote--accent:hover { transform: translateY(24px); }
.quote--accent .avatar { background: var(--royal); color: var(--yellow); }

/* Contact */
.contact { background:
  radial-gradient(700px 500px at 0% 100%, rgba(84,1,117,.95), transparent 70%),
  var(--royal); }
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: start; }
.contact__info { position: sticky; top: 120px; }
.contact__info > p { color: var(--lavender); font-size: 1.1rem; }
.socials { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 12px; }
.socials a {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: var(--radius-sm);
  border: 1px solid rgba(239,208,255,.2); transition: all .25s var(--ease); word-break: break-word;
}
.socials a:hover { background: rgba(239,208,255,.08); border-color: var(--yellow); transform: translateX(6px); }
.socials svg { width: 24px; height: 24px; color: var(--yellow); flex: none; }
.socials span { color: var(--white); font-weight: 500; line-height: 1.35; }
.socials small { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--lavender); font-weight: 600; }

.form { background: var(--white); color: var(--ink); border-radius: 28px; padding: 44px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.5); }
.form__title { font-size: 1.9rem; color: var(--royal); margin-bottom: 10px; }
.form__title em { color: var(--rich); }
.form__intro { color: var(--ink-soft); font-size: .95rem; margin-bottom: 28px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; margin: 0 0 20px; border: 0; padding: 0; min-width: 0; }
.field > span, .field legend { font-size: .85rem; font-weight: 600; color: var(--royal); padding: 0; }
.field i { font-weight: 400; color: var(--ink-soft); font-style: normal; }
.field input, .field textarea, .field select {
  font: inherit; font-size: .95rem; color: var(--ink);
  background: var(--lavender-50); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 16px; width: 100%; transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 100px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--rich); background: var(--white); box-shadow: 0 0 0 4px rgba(239,208,255,.8); }
.field .is-invalid, .field.is-invalid .chips { border-color: #c0265e; }
.field.is-invalid legend { color: #c0265e; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; border-radius: var(--radius-sm); }
.chips label { cursor: pointer; position: relative; }
.chips input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block; padding: 9px 16px; border-radius: 999px; font-size: .85rem; font-weight: 500;
  border: 1.5px solid var(--line); color: var(--ink-soft); transition: all .2s;
}
.chips label:hover span { border-color: var(--rich); color: var(--royal); }
.chips input:checked + span { background: var(--royal); border-color: var(--royal); color: var(--yellow); }
.chips input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.budget { display: grid; grid-template-columns: 130px 1fr; gap: 10px; }
.hp { position: absolute; left: -9999px; }
.form__status { margin: 16px 0 0; text-align: center; font-weight: 600; min-height: 1.5em; }
.form__status.is-success { color: #1b7a4a; }
.form__status.is-error { color: #c0265e; }

/* Footer */
.footer { background: var(--royal-950); color: var(--lavender); padding: 60px 0 40px; text-align: center; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.footer .logo { font-size: 2rem; }
.footer p { margin: 0; font-size: .92rem; }
.footer__copy { opacity: .6; font-size: .82rem !important; margin-top: 16px !important; }

/* Back to top */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: var(--yellow); color: var(--royal); font-weight: 700; font-size: 1.2rem;
  box-shadow: var(--shadow); opacity: 0; transform: translateY(20px); pointer-events: none; transition: all .3s var(--ease);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .quote--accent.reveal.is-in { transform: translateY(30px); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav__links { gap: 18px; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .stat-chip--a { left: -20px; }
  .stat-chip--b { right: -16px; }
}

@media (max-width: 920px) {
  .nav__cta { display: none; }
  .nav__toggle {
    display: grid; gap: 6px; margin-left: auto; width: 46px; height: 46px; place-content: center;
    border-radius: 50%; border: 1.5px solid var(--royal); background: transparent; cursor: pointer;
  }
  .nav__toggle span { width: 20px; height: 2px; background: var(--royal); transition: transform .3s var(--ease); }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav__links {
    position: fixed; inset: 0; z-index: 1; flex-direction: column; justify-content: center; align-items: center; gap: 22px;
    background: var(--lavender-50); margin: 0;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; }
  .nav__links a:not(.btn) { font-family: var(--font-display); font-size: 1.8rem; color: var(--royal); }
  .nav__cta-mobile { display: inline-flex; margin-top: 12px; }
  body.menu-open { overflow: hidden; }
  /* backdrop-filter would trap the fixed menu inside the bar, so drop it while open */
  body.menu-open .nav { backdrop-filter: none; -webkit-backdrop-filter: none; background: transparent; box-shadow: none; }
  .logo, .nav__toggle { position: relative; z-index: 2; }

  .hero { padding-top: 120px; }
  .hero__grid, .about__grid, .experience__grid, .contact__grid { grid-template-columns: 1fr; gap: 50px; }
  .hero__visual { width: min(100%, 360px); margin-top: 10px; }
  .about__head, .experience__head, .contact__info { position: static; }
  .testimonials__grid { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
  .quote--accent, .js .quote--accent.reveal.is-in { transform: none; }
  .quote--accent:hover { transform: translateY(-6px); }
  .section { padding: 90px 0; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hero__actions .btn { width: 100%; }
  .stat-chip { padding: 10px 14px; }
  .stat-chip__value { font-size: 1.2rem; }
  .stat-chip--a { left: -8px; top: 14%; }
  .stat-chip--b { right: -8px; bottom: 18%; }
  .sparkle--2 { left: -6px; }
  .services__grid { grid-template-columns: 1fr; }
  .results__grid { grid-template-columns: 1fr; }
  .result + .result { border-left: 0; border-top: 1px solid rgba(239,208,255,.2); }
  .form { padding: 28px 20px; border-radius: 22px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .budget { grid-template-columns: 1fr; }
  .marquee__list li { font-size: 1.1rem; }
  .section { padding: 72px 0; }
  .section__head { margin-bottom: 40px; }
}

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

/* =========================================================
   Tools stage: floating logo tiles
   ========================================================= */
.tools {
  overflow: hidden;
  background: linear-gradient(180deg, var(--lavender-50) 0%, var(--lavender-100) 55%, var(--lavender-50) 100%);
}
.tools__stage { position: relative; padding: 30px 0 50px; }
.blob {
  position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none;
  animation: drift 18s ease-in-out infinite alternate;
}
.blob--a { width: 340px; height: 340px; background: var(--rich); opacity: .22; top: -40px; left: -60px; }
.blob--b { width: 280px; height: 280px; background: var(--yellow); opacity: .35; top: 30%; right: -40px; animation-duration: 22s; animation-delay: -6s; }
.blob--c { width: 420px; height: 300px; background: var(--lavender); opacity: .9; bottom: -60px; left: 30%; animation-duration: 26s; animation-delay: -12s; }
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(60px, -30px) scale(1.12); }
  100% { transform: translate(-40px, 40px) scale(.94); }
}
.tools__orbit { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.tools__orbit ellipse { fill: none; stroke: var(--rich); stroke-opacity: .16; stroke-width: 1.2; stroke-dasharray: 4 10; animation: orbit 40s linear infinite; vector-effect: non-scaling-stroke; }
.tools__orbit ellipse + ellipse { stroke-opacity: .1; animation-direction: reverse; animation-duration: 55s; }
@keyframes orbit { to { stroke-dashoffset: -1000; } }

.tools__grid {
  position: relative; list-style: none; margin: 0 auto; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 26px 24px; max-width: 1040px;
}
.tool { width: 172px; animation: bob var(--d, 6s) ease-in-out var(--o, 0s) infinite; }
.tool:nth-child(even) { margin-top: 46px; }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-1.4deg); }
  50%      { transform: translateY(-16px) rotate(1.4deg); }
}
.tool__card {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 26px 16px 20px; border-radius: 26px;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: 0 18px 40px -26px var(--c), 0 2px 0 rgba(255,255,255,.8) inset;
  transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform .25s var(--ease), box-shadow .4s, border-color .4s, background .4s;
}
.tool__card::after {
  content: "✦"; position: absolute; top: 10px; right: 14px; font-size: 1rem; color: var(--yellow);
  -webkit-text-stroke: .6px var(--rich); opacity: 0; transform: scale(.2) rotate(-90deg);
  transition: opacity .35s, transform .5s var(--ease);
}
.tool__icon {
  width: 70px; height: 70px; border-radius: 22px; display: grid; place-items: center; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--c), var(--c2));
  box-shadow: 0 14px 26px -12px var(--c);
  transform: translateZ(34px);
  transition: transform .5s var(--ease), box-shadow .4s;
}
.tool__icon svg { width: 34px; height: 34px; fill: #fff; }
.tool--google .tool__icon { background: #fff; border: 1px solid #ececec; }
.tool__name { font-weight: 700; color: var(--royal); line-height: 1.25; font-size: .98rem; transform: translateZ(20px); }
.tool__role { margin-top: 4px; font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); transform: translateZ(12px); }

.tool__card:hover {
  background: #fff;
  border-color: color-mix(in srgb, var(--c) 45%, #fff);
  box-shadow: 0 34px 60px -24px var(--c), 0 0 0 6px color-mix(in srgb, var(--c) 10%, transparent);
}
.tool__card:hover .tool__icon { transform: translateZ(48px) scale(1.08) rotate(-6deg); box-shadow: 0 22px 34px -12px var(--c); }
.tool__card:hover::after { opacity: 1; transform: scale(1) rotate(0); }

/* =========================================================
   Projects stage: dark, dramatic cards
   ========================================================= */
.projects {
  overflow: hidden; color: var(--lavender);
  background:
    radial-gradient(900px 500px at 15% 0%, rgba(84,1,117,.75), transparent 65%),
    linear-gradient(180deg, #1c002b 0%, #150020 100%);
}
.projects__orb { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; animation: drift 24s ease-in-out infinite alternate; }
.projects__orb--a { width: 460px; height: 460px; background: var(--rich); opacity: .55; bottom: -120px; right: -100px; }
.projects__orb--b { width: 260px; height: 260px; background: var(--yellow); opacity: .12; top: 18%; right: 28%; animation-duration: 30s; animation-delay: -10s; }
.projects .container { position: relative; }

.projects__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 64px; }
.projects__title { font-size: clamp(2.8rem, 7.4vw, 6rem); color: #fff; line-height: .95; letter-spacing: -0.02em; }
.projects__title em { color: var(--yellow); position: relative; }
.projects__title em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .04em; height: .08em; background: var(--yellow);
  transform: scaleX(0); transform-origin: left; transition: transform 1.2s .5s var(--ease);
}
.projects__title.is-in em::after { transform: scaleX(1); }
.projects__intro { max-width: 300px; color: var(--lavender); margin: 0 0 8px; }

.projects__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; }
.pcard { grid-column: 8 / 13; }
.pcard--feature { grid-column: 1 / 8; grid-row: 1 / 3; }
.pcard--wide { grid-column: 1 / 13; }

.pcard {
  --mx: 50%; --my: 50%;
  position: relative; border-radius: 28px; padding: 1.5px;
  background: linear-gradient(160deg, rgba(239,208,255,.28), rgba(239,208,255,.05) 45%, rgba(239,208,255,.14));
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .3s var(--ease), box-shadow .5s;
}
/* glowing border that follows the cursor */
.pcard::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(380px circle at var(--mx) var(--my), var(--accent), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.pcard:hover::before { opacity: 1; }
.pcard:hover { box-shadow: 0 40px 80px -40px color-mix(in srgb, var(--accent) 55%, transparent); }

.pcard__inner {
  position: relative; z-index: 1; height: 100%; border-radius: 27px; padding: 32px; overflow: hidden;
  display: flex; flex-direction: column; gap: 14px;
  background: linear-gradient(160deg, #2a0140 0%, #1d002d 100%);
}
/* soft spotlight inside the card */
.pcard__inner::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(520px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 14%, transparent), transparent 55%);
  opacity: 0; transition: opacity .4s;
}
.pcard:hover .pcard__inner::before { opacity: 1; }
.pcard__inner > * { position: relative; }

.pcard__top { display: flex; align-items: center; gap: 12px; }
.pbadge {
  width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center;
  box-shadow: 0 10px 22px -10px rgba(0,0,0,.6);
  transition: transform .5s var(--ease);
}
.pbadge svg { width: 22px; height: 22px; fill: #fff; }
.pbadge--ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.pbadge--x { background: #000; border: 1px solid rgba(255,255,255,.25); }
.pbadge--in { background: #0A66C2; }
.pbadge--brand { background: var(--yellow); color: var(--royal); font-size: 1.3rem; }
.pcard:hover .pbadge { transform: rotate(-10deg) scale(1.08); }
.pcard__platform { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--lavender); opacity: .85; }
.pcard__num {
  margin-left: auto; font-family: var(--font-display); font-size: 3.6rem; line-height: .8; font-weight: 600;
  color: transparent; -webkit-text-stroke: 1px rgba(239,208,255,.35);
  transition: color .5s, -webkit-text-stroke-color .5s, transform .6s var(--ease);
}
.pcard:hover .pcard__num { color: var(--accent); -webkit-text-stroke-color: transparent; transform: translateY(-4px) rotate(-4deg); }

.pcard__title { font-size: clamp(1.6rem, 2.4vw, 2rem); color: #fff; margin-top: 18px; }
.pcard--feature .pcard__title { font-size: clamp(2.4rem, 4.2vw, 3.4rem); }
.pcard__desc { margin: 0; color: var(--lavender); opacity: .9; }
.pcard__chips { list-style: none; padding: 10px 0 0; margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pcard__chips li { font-size: .78rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(239,208,255,.25); color: var(--lavender-100); }

/* growth chart in the featured card */
.growth {
  position: relative; display: grid; grid-template-columns: 1fr 96px 1fr; align-items: end;
  height: 270px; margin: 10px 0 30px; padding: 0 6px;
  border-bottom: 1px solid rgba(239,208,255,.2);
}
.growth__col { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 10px; height: 100%; }
.growth__val { font-family: var(--font-display); font-size: 1.4rem; color: var(--lavender); line-height: 1; }
.growth__val--big { font-size: clamp(2.2rem, 3.6vw, 3rem); color: var(--yellow); font-weight: 600; }
.growth__bar {
  width: 100%; max-width: 130px; height: calc(var(--h) * 1.7px); border-radius: 16px 16px 4px 4px;
  transform-origin: bottom; transform: scaleY(0);
  transition: transform 1.5s .35s cubic-bezier(.2, .9, .2, 1.05);
}
.growth__bar--before { background: rgba(239,208,255,.22); border: 1px solid rgba(239,208,255,.3); }
.growth__bar--after {
  background: linear-gradient(to top, var(--rich), #a63fd6 45%, var(--yellow));
  box-shadow: 0 0 40px -6px rgba(252,234,4,.55);
  transition-delay: .7s; position: relative; overflow: hidden;
}
.growth__bar--after::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-120%); animation: shine 3.6s 2.4s ease-in-out infinite;
}
@keyframes shine { 0% { transform: translateX(-120%); } 40%, 100% { transform: translateX(120%); } }
.growth__label { position: absolute; bottom: -26px; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--lavender); opacity: .7; }
.growth__arrow { align-self: center; width: 100%; height: auto; overflow: visible; }
.growth__arrow path { fill: none; stroke: var(--yellow); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 160; stroke-dashoffset: 160; transition: stroke-dashoffset 1.2s 1.3s var(--ease); }
.growth__arrow path + path { transition-delay: 2.2s; transition-duration: .4s; }
.growth__badge {
  position: absolute; top: 4px; left: 6px; padding: 8px 14px; border-radius: 999px;
  background: var(--yellow); color: var(--royal); font-size: .82rem; font-weight: 600;
  transform: rotate(-6deg) scale(0); transition: transform .6s 2.2s cubic-bezier(.3, 1.6, .5, 1);
}
.growth__badge b { font-family: var(--font-display); font-size: 1.1rem; }

.pcard.is-in .growth__bar { transform: scaleY(1); }
.pcard.is-in .growth__arrow path { stroke-dashoffset: 0; }
.pcard.is-in .growth__badge { transform: rotate(-6deg) scale(1); animation: badge-pulse 2.8s 3s ease-in-out infinite; }
@keyframes badge-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(252,234,4,.5); } 60% { box-shadow: 0 0 0 14px rgba(252,234,4,0); } }

/* wide card */
.pcard__split { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: end; }
.pcard__split .pcard__title { margin-top: 10px; }
.pcard__ticker {
  margin: 18px -32px -32px; padding: 18px 0; overflow: hidden; border-top: 1px solid rgba(239,208,255,.14);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.pcard__ticker span {
  display: inline-block; white-space: nowrap; font-family: var(--font-display); font-style: italic; font-size: 1.35rem;
  color: rgba(239,208,255,.45); animation: marquee 28s linear infinite; transition: color .4s;
}
.pcard--wide:hover .pcard__ticker span { color: var(--lavender); }

/* dramatic entrance */
.js .pcard {
  opacity: 0; translate: 0 70px; scale: .94;
  clip-path: inset(12% 0 0 0 round 28px);
  transition: opacity .9s var(--ease) var(--delay, 0s), translate 1.1s var(--ease) var(--delay, 0s),
              scale 1.1s var(--ease) var(--delay, 0s), clip-path 1.1s var(--ease) var(--delay, 0s),
              transform .3s var(--ease), box-shadow .5s;
}
.js .pcard.is-in { opacity: 1; translate: 0 0; scale: 1; clip-path: inset(0 0 0 0 round 28px); }

/* ---------- Responsive for new sections ---------- */
@media (max-width: 920px) {
  .projects__head { flex-direction: column; align-items: flex-start; }
  .pcard, .pcard--feature, .pcard--wide { grid-column: 1 / -1; grid-row: auto; }
  .pcard__split { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 640px) {
  .tools__grid { gap: 16px 14px; }
  .tool { width: calc(50% - 7px); }
  .tool:nth-child(even) { margin-top: 28px; }
  .tool__card { padding: 22px 12px 18px; }
  .tool__icon { width: 60px; height: 60px; border-radius: 18px; }
  .tool__icon svg { width: 30px; height: 30px; }
  .pcard__inner { padding: 24px; }
  .pcard__num { font-size: 2.8rem; }
  .growth { height: 230px; grid-template-columns: 1fr 64px 1fr; }
  .growth__bar { height: calc(var(--h) * 1.35px); }
  .pcard__ticker { margin: 14px -24px -24px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .pcard { opacity: 1; translate: none; scale: none; clip-path: none; }
  .growth__bar { transform: none; }
  .growth__arrow path { stroke-dashoffset: 0; }
  .growth__badge { transform: rotate(-6deg); }
}

.pcard--feature .growth { flex: 1; height: auto; min-height: 270px; }
@media (max-width: 640px) { .pcard--feature .growth { min-height: 230px; } }

/* =========================================================
   Hero intro: name reveal + dangling ID card
   ========================================================= */
:root { --t0: .2s; }

/* The quote card sits in front of the lanyard strap */
.about__pull { position: relative; z-index: 2; }

/* ---------- Lanyard + ID card ---------- */
.lanyard {
  --card-w: 250px;
  --strap: 90px;
  position: relative; z-index: 1;
  width: var(--card-w);
  margin: -14px 0 0 64px;                   /* strap tucks behind the quote card */
  pointer-events: none;
}
.lanyard__swing {
  position: relative; display: flex; flex-direction: column; align-items: center;
  transform-origin: 50% 0;
  transform: rotate(var(--swing, 0deg));
  will-change: transform;
}
.lanyard__swing::before {
  content: ""; position: absolute; top: -9px; left: 50%; width: 18px; height: 18px; margin-left: -9px; z-index: 1;
  border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff8a8, var(--yellow) 45%, #b9a800);
  box-shadow: 0 2px 5px rgba(52,1,78,.35);
}
.lanyard__strap {
  width: 26px; height: var(--strap);
  background:
    repeating-linear-gradient(180deg, transparent 0 34px, rgba(252,234,4,.9) 34px 38px, transparent 38px 46px),
    linear-gradient(90deg, var(--royal), var(--rich) 50%, var(--royal));
  border-radius: 0 0 4px 4px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.lanyard__clip {
  width: 36px; height: 30px; margin-top: -2px; border-radius: 6px 6px 10px 10px;
  background: linear-gradient(180deg, #f4f0f7, #b9aec4 60%, #8e8199);
  box-shadow: 0 3px 6px rgba(0,0,0,.25), inset 0 1px 0 #fff;
  position: relative;
}
.lanyard__clip::after { content: ""; position: absolute; left: 50%; bottom: -10px; width: 12px; height: 14px; margin-left: -6px; border: 3px solid #a99db5; border-top: 0; border-radius: 0 0 8px 8px; }

.idcard {
  position: relative; width: var(--card-w); margin-top: 6px; perspective: 900px;
  pointer-events: auto; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
  border-radius: 18px;
}
.idcard:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
.idcard__flipper {
  position: relative; transform-style: preserve-3d;
  transition: transform .8s cubic-bezier(.45, .05, .55, .95);   /* symmetric: edge-on exactly at .4s */
}
/* Swap faces at the halfway point so nothing ghosts through mid-turn */
.idcard__face--front { visibility: visible; transition: visibility 0s .4s; }
.idcard__face--back  { visibility: hidden;  transition: visibility 0s .4s; }
.idcard.is-flipped .idcard__face--front { visibility: hidden; }
.idcard.is-flipped .idcard__face--back  { visibility: visible; }
.idcard__face * { -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.idcard.is-flipped .idcard__flipper { transform: rotateY(180deg); }
.idcard__face {
  position: relative; background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 50px -20px rgba(52,1,78,.55), 0 0 0 1px rgba(52,1,78,.08);
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.idcard__face--back {
  position: absolute; inset: 0; transform: rotateY(180deg);
  display: flex; flex-direction: column;
  background: linear-gradient(165deg, var(--royal) 0%, var(--rich) 100%); color: #fff;
}
.idcard__back-head { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 30px 18px 12px; border-bottom: 1px solid rgba(239,208,255,.18); }
.idcard__services { list-style: none; margin: 0; padding: 12px 18px 0; display: grid; gap: 9px; flex: 1; align-content: start; }
.idcard__services li { display: grid; grid-template-columns: 24px 1fr; gap: 8px; align-items: start; }
.idcard__services b { font-family: var(--font-display); font-size: .95rem; color: var(--yellow); line-height: 1.3; }
.idcard__services span { font-size: .7rem; line-height: 1.4; color: var(--lavender); }
.idcard__services strong { display: block; font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: #fff; line-height: 1.2; margin-bottom: 2px; }
.idcard__cta {
  margin: 14px 18px 18px; padding: 11px 12px; border-radius: 999px; text-align: center;
  background: var(--yellow); color: var(--royal); font-size: .78rem; font-weight: 700;
}
.idcard__cta:hover { background: #fff27a; }
.idcard__hint {
  margin-top: 12px; font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--rich); opacity: .75; white-space: nowrap;
}
.idcard:active { cursor: grabbing; }
.idcard__slot { position: absolute; top: 9px; left: 50%; width: 48px; height: 8px; margin-left: -24px; border-radius: 99px; background: rgba(255,255,255,.35); box-shadow: inset 0 1px 2px rgba(0,0,0,.4); z-index: 2; }
.idcard__head {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 30px 18px 58px;
  background: linear-gradient(135deg, var(--royal), var(--rich));
  color: #fff;
}
.idcard__brand { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; line-height: 1; }
.idcard__brand span { color: var(--yellow); }
.idcard__pass { font-size: .62rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--yellow); }
.idcard__body { padding: 16px 18px 14px; text-align: center; }
.idcard__photo {
  width: 100px; height: 100px; margin: -62px auto 12px; border-radius: 50%; overflow: hidden;
  border: 3px solid #fff; outline: 2px solid var(--yellow); background: var(--lavender);
  position: relative; z-index: 1;
}
.idcard__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 26%; transform: scale(1.9); transform-origin: 50% 32%; pointer-events: none; }
.idcard__name { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; line-height: 1.15; color: var(--royal); margin: 0 0 6px; }
.idcard__name em { color: var(--rich); }
.idcard__role { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 10px; line-height: 1.4; }
.idcard__meta { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; margin: 0; text-align: left; }
.idcard__meta div { background: var(--lavender-50); border: 1px solid var(--line); border-radius: 10px; padding: 7px 9px; }
.idcard__meta dt { font-size: .56rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.idcard__meta dd { margin: 0; font-size: .78rem; font-weight: 700; color: var(--royal); white-space: nowrap; }
.idcard__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 18px 16px; border-top: 1px dashed var(--line);
}
.idcard__barcode {
  width: 90px; height: 26px;
  background: repeating-linear-gradient(90deg, var(--royal) 0 2px, transparent 2px 3px, var(--royal) 3px 4px, transparent 4px 6px, var(--royal) 6px 9px, transparent 9px 10px);
}
.idcard__handle { font-size: .72rem; font-weight: 700; color: var(--rich); }
.idcard__shine {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.28) 48%, transparent 60%);
  transform: translateX(var(--shine, -60%));
}

/* Card drops in from above on load */
.js .lanyard__drop { transform: translateY(-60%); opacity: 0; }
.lanyard__drop { transition: transform 1.1s cubic-bezier(.25, 1.35, .45, 1), opacity .4s; }
.lanyard.is-dropped .lanyard__drop { transform: none; opacity: 1; }

/* ---------- Name: letters rise out of a mask ---------- */
.hero__line { display: block; position: relative; }
.hero__line--em { display: inline-block; }
.js [data-split] {
  display: inline-block; overflow: hidden; vertical-align: top;
  padding: 0 .1em .14em; margin: 0 -.1em -.14em;
}
.char { display: inline-block; }
.js .char {
  transform: translateY(110%);
  transition: transform .8s cubic-bezier(.2, .8, .2, 1);
  transition-delay: calc(var(--t0) + var(--i) * 35ms);
}
.js .hero__line--em .char { transition-delay: calc(var(--t0) + .25s + var(--i) * 35ms); }
.hero-in .char { transform: none; }

.hero__star {
  position: absolute; top: .05em; right: -.55em; font-size: .32em; font-style: normal; color: var(--yellow);
  -webkit-text-stroke: 1px var(--rich);
}
.js .hero__star { opacity: 0; scale: 0; transition: opacity .3s, scale .6s cubic-bezier(.3, 1.6, .5, 1); transition-delay: calc(var(--t0) + .9s); }
.hero-in .hero__star { opacity: 1; scale: 1; animation: twinkle 3.5s calc(var(--t0) + 1.6s) ease-in-out infinite; }

.hero__swoosh { position: absolute; left: 0; right: 0; bottom: -.06em; width: 100%; height: .22em; overflow: visible; pointer-events: none; }
.hero__swoosh path { fill: none; stroke: var(--yellow); stroke-width: 6; stroke-linecap: round; }
.js .hero__swoosh path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s var(--ease) calc(var(--t0) + .7s); }
.hero-in .hero__swoosh path { stroke-dashoffset: 0; }

/* Other hero items: soft fade-up in sequence */
.js .hi { opacity: 0; translate: 0 16px; transition: opacity .8s var(--ease), translate .8s var(--ease); transition-delay: calc(var(--t0) + var(--at, 0s) * .7); }
.hero-in .hi { opacity: 1; translate: 0 0; }
.js .hi-pop { opacity: 0; scale: .5; transition: opacity .5s var(--ease), scale .7s cubic-bezier(.3, 1.5, .5, 1); transition-delay: calc(var(--t0) + var(--at, 0s) * .7); }
.hero-in .hi-pop { opacity: 1; scale: 1; }

/* Portrait keeps its size: a simple fade only */
.js .portrait { opacity: 0; transition: opacity 1s var(--ease) calc(var(--t0) + .2s); }
.hero-in .portrait { opacity: 1; }

/* ---------- Smaller screens ---------- */
@media (max-width: 920px) {
  .lanyard { margin: -14px auto 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .char, .js .hi, .js .hi-pop, .js .portrait, .js .hero__star, .js .lanyard__drop { opacity: 1; transform: none; translate: none; scale: none; }
  .js .hero__swoosh path { stroke-dashoffset: 0; }
}

/* =========================================================
   Theme toggle + dark mode
   ========================================================= */
.theme-toggle {
  position: relative; z-index: 2; flex: none;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--line); background: transparent; color: var(--royal); cursor: pointer;
  transition: border-color .25s, background .25s, color .25s, transform .4s var(--ease);
}
.theme-toggle:hover { border-color: var(--rich); transform: rotate(-12deg); }
.theme-toggle svg { grid-area: 1 / 1; width: 22px; height: 22px; transition: opacity .35s, transform .6s var(--ease); }
.theme-toggle__sun { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.theme-toggle__sun circle { fill: var(--yellow); stroke: none; }
.theme-toggle__moon { fill: var(--rich); stroke: none; }
.theme-toggle__moon .theme-toggle__twinkle { fill: var(--yellow); }
/* Light mode shows the moon (tap for dark); dark mode shows the sun */
.theme-toggle__sun { opacity: 0; transform: rotate(-90deg) scale(.4); }
[data-theme="dark"] .theme-toggle__sun { opacity: 1; transform: none; }
[data-theme="dark"] .theme-toggle__moon { opacity: 0; transform: rotate(90deg) scale(.4); }

@media (max-width: 920px) {
  .theme-toggle { margin-left: auto; }
  .nav__toggle { margin-left: 10px; }
}

/* Circular reveal from the button when switching (browsers with View Transitions) */
html.theme-switching::view-transition-old(root),
html.theme-switching::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.theme-switching::view-transition-new(root) { animation: theme-reveal .7s cubic-bezier(.6, 0, .2, 1); }
@keyframes theme-reveal {
  from { clip-path: circle(0 at var(--tx, 50%) var(--ty, 0)); }
  to   { clip-path: circle(var(--tr, 150vmax) at var(--tx, 50%) var(--ty, 0)); }
}

/* ---------- Dark palette ---------- */
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #12001b;
  --surface: #1d012d;
  --surface-2: #29043f;
  --strong: #f8eeff;          /* headings */
  --accent-soft: #dcaaff;     /* stands in for Rich Purple text on dark */
  --ink: #eadcf5;
  --ink-soft: #b9a3cc;
  --line: rgba(239, 208, 255, .14);
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
}
[data-theme="dark"] body { background: var(--bg); color: var(--ink); }

/* Type */
[data-theme="dark"] .eyebrow { color: var(--accent-soft); }
[data-theme="dark"] .eyebrow::before { -webkit-text-stroke: 0; }
[data-theme="dark"] .h2,
[data-theme="dark"] .hero__title,
[data-theme="dark"] .hero__sub,
[data-theme="dark"] .hero__body strong,
[data-theme="dark"] .lead,
[data-theme="dark"] .about__body .lead,
[data-theme="dark"] .timeline__item h3,
[data-theme="dark"] .quote figcaption strong,
[data-theme="dark"] .form__title,
[data-theme="dark"] .field > span,
[data-theme="dark"] .field legend,
[data-theme="dark"] .tool__name,
[data-theme="dark"] .stat-chip--a .stat-chip__value,
[data-theme="dark"] .logo { color: var(--strong); }
[data-theme="dark"] .h2 em,
[data-theme="dark"] .hero__title em,
[data-theme="dark"] .form__title em,
[data-theme="dark"] .timeline__num,
[data-theme="dark"] .portrait__caption { color: var(--accent-soft); }
[data-theme="dark"] .section--dark .h2 em { color: var(--yellow); }
[data-theme="dark"] .logo span,
[data-theme="dark"] .sparkle,
[data-theme="dark"] .hero__star,
[data-theme="dark"] .quote::before,
[data-theme="dark"] .tool__card::after { -webkit-text-stroke: 0; }

/* Buttons: yellow leads on dark */
[data-theme="dark"] .btn--primary { background: var(--yellow); color: var(--royal); box-shadow: 0 10px 28px -12px rgba(252,234,4,.55); }
[data-theme="dark"] .btn--primary:hover { background: #fff27a; }
[data-theme="dark"] .btn--ghost { border-color: var(--lavender); color: var(--lavender); }
[data-theme="dark"] .btn--ghost:hover { background: var(--lavender); color: var(--royal); }

/* Nav */
[data-theme="dark"] .nav.is-scrolled { background: rgba(18, 0, 27, .82); }
[data-theme="dark"] .nav__links a:not(.btn) { color: var(--ink-soft); }
[data-theme="dark"] .nav__links a:not(.btn):hover,
[data-theme="dark"] .nav__links a.is-active { color: var(--strong); }
[data-theme="dark"] .nav__links a:not(.btn)::after { background: var(--yellow); }
[data-theme="dark"] .theme-toggle { color: var(--strong); }
[data-theme="dark"] .theme-toggle:hover { border-color: var(--yellow); }
@media (max-width: 920px) {
  [data-theme="dark"] .nav__links { background: var(--bg); }
  [data-theme="dark"] .nav__links a:not(.btn) { color: var(--strong); }
  [data-theme="dark"] .nav__toggle { border-color: var(--lavender); }
  [data-theme="dark"] .nav__toggle span { background: var(--lavender); }
}

/* Hero */
[data-theme="dark"] .hero__glow { background: radial-gradient(circle, rgba(84,1,117,.7) 0%, rgba(84,1,117,0) 65%); }
[data-theme="dark"] .portrait { outline-color: var(--accent-soft); background: var(--surface-2); }
[data-theme="dark"] .stat-chip--a { background: var(--surface-2); }
[data-theme="dark"] .stat-chip--b { background: var(--yellow); }
[data-theme="dark"] .stat-chip--b .stat-chip__value { color: var(--royal); }
[data-theme="dark"] .stat-chip--b .stat-chip__label { color: var(--rich); }

/* Surfaces */
[data-theme="dark"] .marquee { background: var(--rich); }
[data-theme="dark"] .about__pull { background: var(--surface); color: var(--lavender); }
[data-theme="dark"] .experience { background: var(--surface); }
[data-theme="dark"] .quote { background: var(--surface); }
[data-theme="dark"] .quote blockquote { color: var(--ink); }
[data-theme="dark"] .quote--accent { background: var(--surface-2); border-color: rgba(252,234,4,.25); }
[data-theme="dark"] .avatar { background: var(--surface-2); color: var(--accent-soft); }
[data-theme="dark"] .quote--accent .avatar { background: var(--yellow); color: var(--royal); }
[data-theme="dark"] .footer { background: #0a0010; }

/* Tools */
[data-theme="dark"] .tools { background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 55%, var(--bg) 100%); }
[data-theme="dark"] .blob--a { opacity: .4; }
[data-theme="dark"] .blob--b { opacity: .12; }
[data-theme="dark"] .blob--c { background: var(--rich); opacity: .3; }
[data-theme="dark"] .tools__orbit ellipse { stroke: var(--lavender); }
[data-theme="dark"] .tool__card {
  background: rgba(255, 255, 255, .05); border-color: rgba(239, 208, 255, .14);
  box-shadow: 0 18px 40px -22px color-mix(in srgb, var(--c) 70%, transparent), 0 1px 0 rgba(255,255,255,.06) inset;
}
[data-theme="dark"] .tool__card:hover {
  background: rgba(255, 255, 255, .09);
  border-color: color-mix(in srgb, var(--c) 55%, transparent);
  box-shadow: 0 34px 60px -24px var(--c), 0 0 0 6px color-mix(in srgb, var(--c) 14%, transparent);
}

/* Contact form */
[data-theme="dark"] .form { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
[data-theme="dark"] .field input,
[data-theme="dark"] .field textarea,
[data-theme="dark"] .field select { background: var(--bg); color: var(--ink); }
[data-theme="dark"] .field input::placeholder,
[data-theme="dark"] .field textarea::placeholder { color: #8c76a0; }
[data-theme="dark"] .field input:focus,
[data-theme="dark"] .field textarea:focus,
[data-theme="dark"] .field select:focus { background: var(--surface-2); border-color: var(--accent-soft); box-shadow: 0 0 0 4px rgba(220,170,255,.18); }
[data-theme="dark"] .chips label:hover span { border-color: var(--accent-soft); color: var(--strong); }
[data-theme="dark"] .chips input:checked + span { background: var(--yellow); border-color: var(--yellow); color: var(--royal); }
[data-theme="dark"] .form__status.is-success { color: #6fe0a6; }
[data-theme="dark"] .form__status.is-error,
[data-theme="dark"] .field.is-invalid legend { color: #ff7aa8; }

/* The ID card stays a bright physical card in both themes */
[data-theme="dark"] .idcard { --ink-soft: #5b4470; --line: rgba(52, 1, 78, .12); }
[data-theme="dark"] .idcard__face { box-shadow: 0 30px 60px -18px rgba(0,0,0,.8), 0 0 0 1px rgba(239,208,255,.15); }

/* Soft colour cross-fade when View Transitions aren't available */
html.theme-fade, html.theme-fade *, html.theme-fade *::before, html.theme-fade *::after {
  transition: background-color .5s, color .5s, border-color .5s, fill .5s !important;
}

/* =========================================================
   Separate pages
   ========================================================= */
/* Soft cross-fade between pages (supporting browsers) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation-duration: .35s; }
::view-transition-new(root) { animation-duration: .45s; }

/* Room for the fixed bar above the first section of each page */
.page-sub main > .section:first-child { padding-top: 190px; }
@media (max-width: 920px) { .page-sub main > .section:first-child { padding-top: 150px; } }
@media (max-width: 640px) { .page-sub main > .section:first-child { padding-top: 128px; } }
/* Short pages still reach the bottom of the screen */
.page-sub main { min-height: calc(100vh - 220px); display: flex; flex-direction: column; }
.page-sub main > .section:first-child { flex: 1; }

/* ---------- Home: explore grid ---------- */
.explore { background: linear-gradient(180deg, var(--lavender-50), var(--lavender-100)); }
.explore__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.explore-card {
  position: relative; height: 100%; display: flex; flex-direction: column; gap: 8px;
  padding: 28px 24px 56px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s, background .35s;
}
.explore-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--rich); }
.explore-card__num { font-family: var(--font-display); font-style: italic; font-size: 1.1rem; color: var(--rich); }
.explore-card__title { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: var(--royal); line-height: 1.15; }
.explore-card__text { font-size: .92rem; color: var(--ink-soft); line-height: 1.5; }
.explore-card__arrow {
  position: absolute; left: 24px; bottom: 20px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--lavender); color: var(--royal); font-weight: 700;
  transition: transform .35s var(--ease), background .35s;
}
.explore-card:hover .explore-card__arrow { transform: translateX(6px); background: var(--yellow); }
.explore-card--cta { background: var(--royal); border-color: transparent; }
.explore-card--cta .explore-card__num { color: var(--yellow); font-style: normal; }
.explore-card--cta .explore-card__title { color: var(--white); }
.explore-card--cta .explore-card__text { color: var(--lavender); }
.explore-card--cta .explore-card__arrow { background: var(--yellow); }
.explore-card--cta:hover { border-color: transparent; background: var(--rich); }
@media (max-width: 1080px) { .explore__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .explore__grid { grid-template-columns: 1fr; } }

/* ---------- "Up next" link at the end of each page ---------- */
.next-page { background: var(--lavender); }
.next-page__link {
  display: grid; justify-items: center; gap: 6px; text-align: center; padding: 70px 0 76px;
}
.next-page__eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--rich); }
.next-page__title {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.05;
  color: var(--royal); display: inline-flex; align-items: center; gap: .3em;
}
.next-page__arrow {
  display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 50%; font-size: .42em; line-height: 1;
  background: var(--yellow); color: var(--royal); transition: transform .4s var(--ease);
}
.next-page__link:hover .next-page__arrow { transform: translateX(10px) rotate(-8deg); }
.next-page__teaser { color: var(--ink-soft); }

/* Dark mode for the new parts */
[data-theme="dark"] .explore { background: linear-gradient(180deg, var(--bg), var(--surface)); }
[data-theme="dark"] .explore-card { background: var(--surface); }
[data-theme="dark"] .explore-card:hover { border-color: var(--accent-soft); }
[data-theme="dark"] .explore-card__num { color: var(--accent-soft); }
[data-theme="dark"] .explore-card__title { color: var(--strong); }
[data-theme="dark"] .explore-card__arrow { background: var(--surface-2); color: var(--strong); }
[data-theme="dark"] .explore-card:hover .explore-card__arrow { color: var(--royal); }
[data-theme="dark"] .explore-card--cta { background: var(--rich); }
[data-theme="dark"] .explore-card--cta .explore-card__arrow { background: var(--yellow); color: var(--royal); }
[data-theme="dark"] .explore-card--cta:hover { background: #6a0393; }
[data-theme="dark"] .next-page { background: var(--surface); border-top: 1px solid var(--line); }
[data-theme="dark"] .next-page__eyebrow { color: var(--accent-soft); }
[data-theme="dark"] .next-page__title { color: var(--strong); }

/* =========================================================
   Canva designs gallery (Projects page)
   ========================================================= */
.canva { margin-top: 120px; }
.canva__head { display: grid; justify-items: center; text-align: center; margin-bottom: 56px; }
.canva__title { font-size: clamp(2.2rem, 5vw, 3.8rem); color: #fff; line-height: 1; letter-spacing: -0.015em; }
.canva__title em { color: var(--yellow); }
.canva__intro { max-width: 520px; margin: 18px 0 0; color: var(--lavender); }

.canva__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 28px;
}
.cdesign { display: flex; flex-direction: column; gap: 18px; }
.cdesign:nth-child(2) { margin-top: 48px; }   /* staggered, like pinned prints */

.cdesign__open {
  all: unset; display: block; cursor: zoom-in; border-radius: 22px; position: relative; isolation: isolate;
}
.cdesign__open:focus-visible { outline: 3px solid var(--yellow); outline-offset: 6px; }
.cdesign__frame {
  position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden;
  z-index: 1; background: #2a0140; box-shadow: 0 30px 60px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(239,208,255,.14);
  transition: transform .6s var(--ease), box-shadow .6s;
  transform: rotate(var(--tilt, -1.5deg));
}
.cdesign:nth-child(2) .cdesign__frame { --tilt: 1.5deg; }
.cdesign:nth-child(3) .cdesign__frame { --tilt: -.8deg; }
.cdesign__frame img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 0;
  transition: transform 1s var(--ease), filter .6s;
}
/* extra pages peeking out behind multi-page designs */
.cdesign--stack .cdesign__open::before,
.cdesign--stack .cdesign__open::after {
  content: ""; position: absolute; inset: 0; z-index: 0; border-radius: 22px;
  background: linear-gradient(160deg, #3b0a57, #23003a); box-shadow: 0 0 0 1px rgba(239,208,255,.16);
  transition: transform .6s var(--ease);
}
.cdesign--stack .cdesign__open::before { transform: rotate(5deg) translate(10px, 6px); opacity: .55; }
.cdesign--stack .cdesign__open::after  { transform: rotate(2.5deg) translate(5px, 3px); opacity: .8; }

.cdesign__open:hover .cdesign__frame,
.cdesign__open:focus-visible .cdesign__frame {
  transform: rotate(0) translateY(-10px) scale(1.02);
  box-shadow: 0 50px 80px -30px rgba(0,0,0,.85), 0 0 0 1px rgba(252,234,4,.45);
}
.cdesign__open:hover .cdesign__frame img { transform: scale(1.06); }
.cdesign--stack .cdesign__open:hover::before { transform: rotate(9deg) translate(26px, 10px); }
.cdesign--stack .cdesign__open:hover::after  { transform: rotate(4.5deg) translate(13px, 4px); }

/* Canva tag, top left */
.cbadge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px 6px 6px; border-radius: 999px;
  background: rgba(255,255,255,.94); color: #1f1f3a;
  font: 700 .76rem/1 var(--font-body); letter-spacing: .01em;
  box-shadow: 0 8px 20px -8px rgba(0,0,0,.45);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.cbadge svg { width: 20px; height: 20px; }
.cbadge--static { position: static; }

.cdesign__count {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 999px;
  background: rgba(20,0,32,.72); color: #fff; font: 700 .76rem/1 var(--font-body);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.cdesign__count svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.cdesign__view {
  position: absolute; left: 50%; bottom: 18px; z-index: 2; translate: -50% 14px; opacity: 0;
  padding: 10px 18px; border-radius: 999px; background: var(--yellow); color: var(--royal);
  font: 700 .82rem/1 var(--font-body); white-space: nowrap;
  transition: opacity .35s, translate .5s var(--ease);
}
.cdesign__open:hover .cdesign__view,
.cdesign__open:focus-visible .cdesign__view { opacity: 1; translate: -50% 0; }

.cdesign__meta { padding: 0 4px; }
.cdesign__type { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); }
.cdesign__title { font-size: 1.5rem; color: #fff; margin: 6px 0 6px; }
.cdesign__desc { margin: 0; color: var(--lavender); opacity: .9; font-size: .95rem; line-height: 1.55; }

@media (max-width: 920px) {
  .canva { margin-top: 90px; }
  .canva__grid { grid-template-columns: repeat(2, 1fr); }
  .cdesign:nth-child(2) { margin-top: 0; }
}
@media (max-width: 600px) {
  .canva__grid { grid-template-columns: 1fr; gap: 44px; max-width: 420px; margin-inline: auto; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(14, 0, 22, .94); color: #fff;
  display: none; flex-direction: column;
}
.lightbox[open] { display: flex; animation: lb-in .35s var(--ease); }
.lightbox::backdrop { background: transparent; }
@keyframes lb-in { from { opacity: 0; } }
.lightbox__bar { display: flex; align-items: center; gap: 14px; padding: 14px 18px; }
.lightbox__title { margin: 0; font-family: var(--font-display); font-size: 1.15rem; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lightbox__count { font-size: .85rem; font-weight: 600; color: var(--lavender); font-variant-numeric: tabular-nums; }
.lightbox__stage {
  position: relative; flex: 1; min-height: 0; display: grid; place-items: center; padding: 0 76px 24px;
  touch-action: pan-y;
}
.lightbox__img {
  max-width: 100%; max-height: calc(100dvh - 104px); object-fit: contain; border-radius: 10px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.9);
}
.lightbox__img.is-changing { animation: lb-swap .35s var(--ease); }
@keyframes lb-swap { from { opacity: 0; transform: translateX(var(--dir, 0) ); } }
.lightbox__btn {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(239,208,255,.3); background: rgba(255,255,255,.06); color: #fff; font-size: 1.1rem;
  transition: background .25s, color .25s, border-color .25s;
}
.lightbox__btn:hover { background: var(--yellow); color: var(--royal); border-color: var(--yellow); }
.lightbox__nav { position: absolute; top: 50%; translate: 0 -50%; }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
.lightbox__nav[hidden] { display: none; }
body.lightbox-open { overflow: hidden; }
@media (max-width: 600px) {
  .lightbox__stage { padding: 0 12px 80px; }
  .lightbox__img { max-height: calc(100dvh - 160px); }
  .lightbox__nav { top: auto; bottom: 16px; translate: none; }
  .lightbox__nav--prev { left: calc(50% - 60px); }
  .lightbox__nav--next { right: calc(50% - 60px); }
}
@media (prefers-reduced-motion: reduce) {
  .cdesign__frame { transform: none; }
}

/* =========================================================
   Projects page: case studies, more projects, other results, videos
   ========================================================= */
/* Lightbox shows the Canva tag only for Canva designs */
.lightbox .cbadge--static { display: none; }
.lightbox.is-canva .cbadge--static { display: inline-flex; }

/* ---------- Featured case studies ---------- */
.cases { display: grid; gap: 28px; }
.cases .pcard { grid-column: auto; grid-row: auto; }
.pcard--case .pcard__inner { padding: 36px; }
.case { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: start; margin-top: 14px; }
.case__text { display: flex; flex-direction: column; gap: 14px; }
.case__title { font-size: clamp(1.9rem, 3.4vw, 2.8rem); color: #fff; line-height: 1.08; letter-spacing: -0.01em; }
.case__client { margin: 0; font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 10px 0 6px; }
.kpis div {
  padding: 16px 18px; border-radius: 16px;
  background: rgba(239,208,255,.06); border: 1px solid rgba(239,208,255,.16);
}
.kpis dd { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 2.4vw, 2rem); color: var(--yellow); line-height: 1.1; }
.kpis dt { order: 2; margin-top: 4px; font-size: .78rem; color: var(--lavender); line-height: 1.35; }
.kpis div { display: flex; flex-direction: column-reverse; }
.kpis__arrow { color: var(--lavender); font-family: var(--font-body); font-size: .7em; }
.case__cta { align-self: flex-start; margin-top: 6px; }

.case__visual { display: grid; justify-items: center; gap: 10px; }
.case__visual--pair { grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.case__pair-arrow {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--yellow); color: var(--royal); font-weight: 700;
}
.shot-fig { margin: 0; display: grid; gap: 10px; justify-items: center; }

/* Screenshot buttons (open in the viewer) */
.shot {
  all: unset; position: relative; display: block; cursor: zoom-in; width: 100%;
  border-radius: 16px; overflow: hidden; background: #fff;
  box-shadow: 0 24px 50px -24px rgba(0,0,0,.8), 0 0 0 1px rgba(239,208,255,.2);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.shot img { width: 100%; height: auto; display: block; }
.shot:hover { transform: translateY(-4px); box-shadow: 0 34px 60px -24px rgba(0,0,0,.85), 0 0 0 2px var(--yellow); }
.shot:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
.shot--tall { max-width: 380px; max-height: 560px; }
.shot--tall img { object-fit: cover; object-position: top; }
.shot--tall::after {   /* fade so the cut-off reads as "there's more" */
  content: ""; position: absolute; inset: auto 0 0; height: 90px;
  background: linear-gradient(to top, rgba(255,255,255,.95), transparent);
}
.shot__zoom {
  position: absolute; left: 50%; bottom: 14px; z-index: 1; translate: -50% 0;
  padding: 8px 14px; border-radius: 999px; background: var(--royal); color: #fff;
  font: 700 .76rem/1 var(--font-body); white-space: nowrap;
}
.shot__caption { margin: 0; font-size: .8rem; color: var(--lavender); text-align: center; }
.shot__caption b { color: #fff; }

/* ---------- More projects ---------- */
.more { margin-top: 90px; }
.subhead { margin-bottom: 22px; }
.more__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.mcard {
  display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 22px;
  background: linear-gradient(160deg, rgba(42,1,64,.9), rgba(29,0,45,.9));
  border: 1px solid rgba(239,208,255,.16);
}
.mcard__top { display: flex; align-items: center; gap: 10px; }
.mcard .pbadge { width: 36px; height: 36px; border-radius: 11px; }
.mcard .pbadge svg { width: 18px; height: 18px; }
.mcard__title { font-size: 1.25rem; color: #fff; line-height: 1.2; }
.mcard__client { margin: -4px 0 0; font-size: .8rem; font-weight: 600; color: var(--yellow); }
.mcard__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.mcard__chips li { font-size: .72rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(239,208,255,.22); color: var(--lavender-100); }
.mcard__results { list-style: none; margin: 2px 0 0; padding: 12px 0 0; border-top: 1px solid rgba(239,208,255,.14); display: grid; gap: 6px; font-size: .88rem; color: var(--lavender); }
.mcard__results b { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--yellow); }
.mcard__results span { opacity: .7; font-size: .8rem; }
.mcard__shots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.shot--mini { border-radius: 12px; aspect-ratio: 9 / 13; }
.shot--mini img { height: 100%; object-fit: cover; object-position: top; }
.mcard__shots--wide .shot--mini { aspect-ratio: 16 / 9; }
.shot--mini span {
  position: absolute; left: 8px; bottom: 8px; padding: 4px 9px; border-radius: 999px;
  background: rgba(20,0,32,.8); color: #fff; font: 700 .68rem/1 var(--font-body);
}
.mcard__more { font-size: .9rem; color: var(--lavender); }
.mcard__more summary { cursor: pointer; font-weight: 700; color: #fff; list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.mcard__more summary::-webkit-details-marker { display: none; }
.mcard__more summary::after { content: "+"; color: var(--yellow); font-size: 1.1rem; }
.mcard__more[open] summary::after { content: "−"; }
.mcard__more p { margin: 8px 0 0; line-height: 1.55; }

/* ---------- Other selected work ---------- */
.others {
  margin-top: 40px; padding: 26px 28px; border-radius: 22px;
  border: 1px dashed rgba(239,208,255,.25);
}
.others .eyebrow { margin-bottom: 14px; }
.others__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.others__list li { display: flex; flex-direction: column; gap: 4px; }
.others__label { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--lavender); opacity: .85; }
.others__value { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; color: #fff; line-height: 1.1; }
.others__value--text { font-size: 1.5rem; }
.others__note { font-size: .86rem; color: var(--lavender); line-height: 1.45; }

/* ---------- Creative work: videos ---------- */
.subhead__title {
  font-size: 1.35rem; color: #fff; margin: 0 0 22px;
  display: flex; align-items: center; gap: 12px;
}
.subhead__title::after { content: ""; flex: 1; height: 1px; background: rgba(239,208,255,.18); }
.videos { list-style: none; margin: 0 0 70px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); justify-content: center; gap: 32px; }
.vcard { display: flex; flex-direction: column; gap: 8px; }
.vcard__frame {
  border-radius: 20px; overflow: hidden; background: #000; margin-bottom: 8px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.85), 0 0 0 1px rgba(239,208,255,.16);
}
.vcard video { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; background: #000; }
.vcard__type { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); }
.vcard__title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: #fff; margin: 0; line-height: 1.2; }
.vcard__desc { margin: 0; font-size: .92rem; color: var(--lavender); line-height: 1.55; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .case { grid-template-columns: 1fr; gap: 30px; }
  .more__grid { grid-template-columns: repeat(2, 1fr); }
  .others__list { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 640px) {
  .pcard--case .pcard__inner { padding: 22px; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 8px; }
  .kpis div { padding: 12px 14px; }
  .case__cta { align-self: stretch; }
  .more__grid { grid-template-columns: 1fr; }
  .videos { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .case__visual--pair { gap: 8px; }
  .case__pair-arrow { width: 30px; height: 30px; }
}

/* ---------- X account management (one project, two accounts) ---------- */
.xproj {
  margin-bottom: 20px; padding: 30px; border-radius: 24px;
  background: linear-gradient(160deg, rgba(42,1,64,.9), rgba(29,0,45,.9));
  border: 1px solid rgba(239,208,255,.16);
}
.xproj__head { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.xproj .pbadge { width: 36px; height: 36px; border-radius: 11px; }
.xproj .pbadge svg { width: 18px; height: 18px; }
.xproj__title { font-size: clamp(1.5rem, 2.6vw, 2rem); color: #fff; line-height: 1.15; margin: 0; }
.xproj__sub { margin: 0; font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--yellow); }
.xproj__desc { margin: 0; font-size: .95rem; line-height: 1.6; color: var(--lavender); }
.xproj__contrib .mcard__chips { margin-top: 10px; }
.xproj__accounts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
.xacct {
  display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 18px;
  background: rgba(239,208,255,.05); border: 1px solid rgba(239,208,255,.14);
}
.xacct__tag { margin: 0; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--lavender); opacity: .8; }
.xacct__title { margin: 0; font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: #fff; }
.xacct__focus { margin: -4px 0 0; font-size: .8rem; font-weight: 600; color: var(--yellow); }
.xacct__desc { margin: 0; font-size: .9rem; line-height: 1.55; color: var(--lavender); }
.xacct__note { margin: -2px 0 0; font-size: .74rem; color: var(--lavender); opacity: .75; }
.shot--metric { aspect-ratio: 520 / 415; }
.mcard__shots--one { grid-template-columns: minmax(0, 1fr); max-width: 50%; }
.xacct .mcard__results { margin-top: auto; }
.xacct__highlight { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; }
.xlink {
  all: unset; cursor: pointer; font: 700 .76rem/1 var(--font-body); color: var(--yellow);
  padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(252,234,4,.4);
  transition: background .25s, color .25s;
}
.xlink:hover { background: var(--yellow); color: var(--royal); }
.xlink:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.xproj__money {
  margin-top: 18px; padding: 14px 18px; border-radius: 16px; border: 1px dashed rgba(239,208,255,.25);
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px;
}
.xproj__money p { margin: 0; color: var(--lavender); font-size: .92rem; }
.xproj__money b { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--yellow); }
.xproj__money .xproj__money-note { flex: 1 1 320px; font-size: .78rem; opacity: .8; }
@media (max-width: 1000px) { .xproj__accounts { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .xproj { padding: 20px; }
  .xacct { padding: 18px; }
  .mcard__shots--one { max-width: 100%; }
}
/* Metric thumbnails: label sits under the image so no figures are covered */
.shot--metric { aspect-ratio: auto; }
.shot--metric img { height: auto; }
.shot--metric span { position: static; display: block; border-radius: 0; padding: 8px 10px; text-align: center; background: var(--royal); }
.xproj, .xacct { min-width: 0; }
.xproj__accounts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.xproj .mcard__shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.xproj .mcard__shots--one { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1000px) { .xproj__accounts { grid-template-columns: minmax(0, 1fr); } }

/* ---------- TikTok: Blush Bloom (compact card) ---------- */
.pbadge--tt { background: #000; border: 1px solid rgba(255,255,255,.25); }
.pbadge--tt svg { fill: #fff; filter: drop-shadow(1px 1px 0 #fe2c55) drop-shadow(-1px -1px 0 #25f4ee); }
.mcard__desc { margin: 0; font-size: .88rem; line-height: 1.55; color: var(--lavender); }
.mcard__shots--tt { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.vcard--mini { border-radius: 12px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px rgba(239,208,255,.2); }
.vcard--mini video { display: block; width: 100%; height: 100%; aspect-ratio: 416 / 752; object-fit: cover; background: #000; }
.shot--tt { aspect-ratio: 416 / 752; }
.mcard__shots--tt > * { min-width: 0; }
.shot--tt img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.others__proof { align-self: flex-start; margin-top: 6px; }
.others__logos { display: flex; align-items: center; gap: 12px; margin: 4px 0 2px; }
.others__logo { display: block; height: 56px; width: auto; }
.others__logo--round { width: 56px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(239,208,255,.25); }
.others__logo--tile { height: 56px; padding: 0 14px; background: #fff; border-radius: 12px; object-fit: contain; box-sizing: border-box; max-width: 190px; }

/* ---------- Testimonials: authentic screenshots ---------- */
.section__sub { margin: 14px auto 0; max-width: 560px; color: var(--ink-soft); font-size: 1.05rem; }
.tshots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.tshot {
  margin: 0; padding: 14px 14px 20px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 16px;
  transition: transform .35s var(--ease), box-shadow .35s;
}
.tshot:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.tshot--accent { background: var(--lavender); border-color: transparent; }
.tshot__img {
  all: unset; position: relative; display: block; cursor: zoom-in; border-radius: 14px; overflow: hidden;
  background: #fff; box-shadow: 0 0 0 1px var(--line);
}
.tshot__img img { display: block; width: 100%; height: auto; }
.tshot__img:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
.tshot__img .shot__zoom { opacity: 0; transition: opacity .25s; }
.tshot__img:hover .shot__zoom, .tshot__img:focus-visible .shot__zoom { opacity: 1; }
.tshot figcaption { padding: 0 8px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.tshot figcaption strong { color: var(--royal); font-size: 1.02rem; }
.tshot figcaption em { font-style: normal; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--rich); }
.tshot figcaption em::before { content: "| "; color: var(--ink-soft); font-weight: 400; }
[data-theme="dark"] .tshot { background: var(--surface); border-color: rgba(239,208,255,.14); }
[data-theme="dark"] .tshot--accent { background: var(--surface-2); border-color: rgba(252,234,4,.25); }
[data-theme="dark"] .tshot figcaption strong { color: #fff; }
[data-theme="dark"] .tshot figcaption em { color: var(--yellow); }
@media (max-width: 1000px) { .tshots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tshots { grid-template-columns: minmax(0, 1fr); max-width: 440px; margin-inline: auto; } .tshot__img .shot__zoom { opacity: 1; } }
.vcard__stats { list-style: none; margin: 4px 0 0; padding: 10px 0 0; border-top: 1px solid rgba(239,208,255,.14); display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .84rem; color: var(--lavender); }
.vcard__stats b { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--yellow); }

/* Services: five categories (3 + 2 layout) */
.services__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.services__grid .service { grid-column: span 2; }
.services__grid .service:nth-child(n+4) { grid-column: span 3; }
.service__desc { margin: -8px 0 18px; font-size: .92rem; line-height: 1.5; color: var(--lavender-100); opacity: .85; }
.service h3 { font-size: 1.35rem; line-height: 1.2; }
@media (max-width: 1000px) {
  .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services__grid .service, .services__grid .service:nth-child(n+4) { grid-column: auto; }
  .services__grid .service:last-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) { .services__grid { grid-template-columns: minmax(0, 1fr); } }
.services__sub { margin: 16px 0 0; max-width: 640px; font-size: 1.05rem; line-height: 1.6; color: var(--lavender); }
.service { display: flex; flex-direction: column; }
.service__desc { margin: -6px 0 16px; opacity: 1; color: var(--lavender); font-size: .93rem; line-height: 1.55; }
.service__note { margin: -6px 0 16px; align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--royal); background: var(--yellow); padding: 5px 10px; border-radius: 999px; }
.service__caps-label { margin: auto 0 10px; padding-top: 14px; border-top: 1px solid rgba(239,208,255,.16); font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); }
.service ul.service__caps { display: flex; flex-wrap: wrap; gap: 6px; }
.service .service__caps li { padding: 5px 11px; border-radius: 999px; border: 1px solid rgba(239,208,255,.22); font-size: .76rem; font-weight: 600; color: var(--lavender-100); line-height: 1.3; }
.service .service__caps li::before { content: none; }
.mcard__link { align-self: flex-start; margin-top: 2px; }
/* ID card uses a dedicated headshot, so no zoom is needed */
.idcard__photo img { object-position: 50% 50%; transform: none; }
.tool--tiktok .tool__icon { background: #000; }
.tool--tiktok .tool__icon svg { filter: drop-shadow(1.5px 1.5px 0 #FE2C55) drop-shadow(-1.5px -1.5px 0 #25F4EE); }
/* "Up next" arrow: drawn as an icon so it sits exactly in the centre of the circle */
.next-page__arrow svg { width: 58%; height: 58%; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; display: block; }
