/* ==========================================================================
   BETINA BRAND LAB — brandlabbybetina.com
   Palette sampled from the brand logo (magenta -> violet on deep indigo)
   ========================================================================== */

:root {
  /* brand */
  --pink: #f0559d;
  --pink-soft: #f97fb6;
  --magenta: #d6329b;
  --violet: #7824e4;
  --violet-soft: #9a55f0;
  --indigo: #14082b;
  --indigo-2: #1e0f3d;
  --indigo-3: #2a1055;

  /* neutrals */
  --cream: #fbfafd;
  --lav: #f3eefc;
  --lav-2: #e9e1f8;
  --line: rgba(30, 15, 61, 0.1);
  --line-dark: rgba(255, 255, 255, 0.12);

  --text: #1b1230;
  --text-mid: #4b3d68;
  --text-soft: #6f6390;
  --text-inv: #ffffff;
  --text-inv-soft: rgba(255, 255, 255, 0.72);

  --grad: linear-gradient(120deg, var(--pink) 0%, var(--magenta) 45%, var(--violet) 100%);
  --grad-soft: linear-gradient(120deg, #fde7f2 0%, #f0e6fd 100%);

  --radius: 22px;
  --radius-lg: 34px;
  --radius-sm: 14px;

  --shadow-sm: 0 2px 10px rgba(30, 15, 61, 0.06);
  --shadow: 0 18px 44px -22px rgba(30, 15, 61, 0.28);
  --shadow-lg: 0 42px 90px -40px rgba(40, 12, 90, 0.55);
  --glow: 0 18px 50px -14px rgba(214, 50, 155, 0.55);

  --container: 1200px;
  --nav-h: 76px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 18px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.025em; font-weight: 800; }
p { margin: 0; }
/* figure/blockquote/dd default to `margin: 1em 40px` — drop it */
figure, figcaption, blockquote, dl, dd { margin: 0; }

::selection { background: var(--pink); color: #fff; }

:focus-visible {
  outline: 3px solid var(--violet-soft);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 12px 20px;
  border-radius: 0 0 12px 12px;
  background: var(--indigo);
  color: #fff;
  font-weight: 700;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

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

section { position: relative; }

.section {
  padding-block: clamp(72px, 9vw, 130px);
}

.section--tight { padding-block: clamp(56px, 6vw, 88px); }

.section-head { max-width: 720px; margin-bottom: clamp(38px, 5vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mid);
  box-shadow: var(--shadow-sm);
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 4px rgba(240, 85, 157, 0.18);
}
.eyebrow--dark {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--line-dark);
  color: rgba(255, 255, 255, 0.8);
  box-shadow: none;
  backdrop-filter: blur(8px);
}

.h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); }
.h2 { font-size: clamp(2rem, 4.1vw, 3.15rem); }
.h3 { font-size: clamp(1.28rem, 2vw, 1.6rem); }

.lede {
  margin-top: 20px;
  font-size: clamp(1.03rem, 1.5vw, 1.18rem);
  color: var(--text-mid);
  line-height: 1.7;
}
.lede--inv { color: var(--text-inv-soft); }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.serif { font-family: var(--font-display); font-style: italic; font-weight: 400; }

/* --------------------------------------------------------------- buttons */
.btn {
  --btn-bg: var(--grad);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  color: #fff;
  background: var(--btn-bg);
  box-shadow: var(--glow);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  white-space: nowrap;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, var(--violet), var(--magenta), var(--pink));
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 26px 60px -16px rgba(214, 50, 155, 0.68); }
.btn:hover::after { opacity: 1; }
.btn:active { transform: translateY(-1px); }
.btn svg { flex: none; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--line);
  box-shadow: none;
}
.btn--ghost::after { display: none; }
.btn--ghost:hover {
  border-color: rgba(120, 36, 228, 0.4);
  background: #fff;
  box-shadow: var(--shadow);
}

.btn--ghost-inv {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1.5px solid var(--line-dark);
  box-shadow: none;
  backdrop-filter: blur(10px);
}
.btn--ghost-inv::after { display: none; }
.btn--ghost-inv:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.3); }

.btn--sm { padding: 11px 20px; font-size: 0.9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--violet);
  transition: gap 0.3s var(--ease);
}
.link-arrow:hover { gap: 14px; }

/* --------------------------------------------------------------- header */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease),
    backdrop-filter 0.4s var(--ease), height 0.4s var(--ease);
}
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(251, 250, 253, 0.82);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.header.is-stuck::before { opacity: 1; }
.header.is-stuck { --nav-h: 66px; }

.header .container {
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-right: auto;
}
.brand img { width: 40px; height: 40px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-size: 1rem; }
.brand-sub {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-mid);
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 3px;
  width: 0; height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after,
.nav a.is-active::after { width: 22px; }
.nav a.is-active { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.lang {
  display: flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.lang a {
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--text-soft);
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.lang a[aria-current="true"] { background: var(--grad); color: #fff; }
.lang a:not([aria-current="true"]):hover { color: var(--text); background: var(--lav); }

.burger {
  /* flex, not grid: grid's auto rows stretch and pull the bars apart, which
     stops them meeting in the middle when they cross into an X */
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: #fff;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.burger span {
  display: block;
  width: 17px; height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.35s var(--ease), opacity 0.2s var(--ease),
    background 0.3s var(--ease), width 0.35s var(--ease);
}
.burger span + span { margin-top: 4px; }
body.nav-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
body.nav-open .burger span { width: 18px; }

/* ---- header sitting on the dark hero (before it sticks) ------------------ */
body:not(.nav-open) .header:not(.is-stuck) .brand-name { color: #fff; }
body:not(.nav-open) .header:not(.is-stuck) .brand-sub { color: rgba(255, 255, 255, 0.5); }
body:not(.nav-open) .header:not(.is-stuck) .nav a { color: rgba(255, 255, 255, 0.7); }
body:not(.nav-open) .header:not(.is-stuck) .nav a:hover,
body:not(.nav-open) .header:not(.is-stuck) .nav a.is-active { color: #fff; }
body:not(.nav-open) .header:not(.is-stuck) .lang,
body:not(.nav-open) .header:not(.is-stuck) .burger {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}
body:not(.nav-open) .header:not(.is-stuck) .lang a { color: rgba(255, 255, 255, 0.66); }
body:not(.nav-open) .header:not(.is-stuck) .lang a:not([aria-current="true"]):hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}
body:not(.nav-open) .header:not(.is-stuck) .burger span { background: #fff; }

/* the drawer is light, so the bar goes solid the moment it opens */
body.nav-open .header::before { opacity: 1; }

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  z-index: 101;
  height: 3px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: var(--grad);
}

/* --------------------------------------------------------------- hero */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(56px, 8vw, 104px));
  padding-bottom: clamp(80px, 10vw, 140px);
  background: radial-gradient(120% 100% at 50% 0%, var(--indigo-3) 0%, var(--indigo-2) 45%, var(--indigo) 100%);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  opacity: 0.42;
  will-change: transform;
  transform: translateZ(0);
}
.blob--1 { width: 32vw; height: 32vw; min-width: 300px; min-height: 300px; top: -6%; left: -4%; background: var(--violet); animation: float1 22s var(--ease) infinite; }
.blob--2 { width: 28vw; height: 28vw; min-width: 260px; min-height: 260px; top: 6%; right: -4%; background: var(--magenta); animation: float2 26s var(--ease) infinite; }
.blob--3 { width: 26vw; height: 26vw; min-width: 220px; min-height: 220px; bottom: -10%; left: 34%; background: var(--pink); opacity: 0.3; animation: float3 30s var(--ease) infinite; }

@media (max-width: 700px) {
  .blob--3 { display: none; }
  .blob { filter: blur(52px); }
}


@keyframes float1 {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(6%, 8%, 0) scale(1.12); }
}
@keyframes float2 {
  0%, 100% { transform: translate3d(0,0,0) scale(1.05); }
  50% { transform: translate3d(-8%, 10%, 0) scale(0.92); }
}
@keyframes float3 {
  0%, 100% { transform: translate3d(0,0,0) scale(0.95); }
  50% { transform: translate3d(10%, -12%, 0) scale(1.15); }
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(80% 70% at 50% 30%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(80% 70% at 50% 30%, #000 0%, transparent 78%);
}

.hero-spot {
  position: absolute;
  inset: -20%;
  z-index: -1;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 30%),
    rgba(240, 85, 157, 0.18), transparent 65%);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  pointer-events: none;
}
.hero:hover .hero-spot { opacity: 1; }

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.45rem, 5.4vw, 4.15rem);
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; }

.hero-tagline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 6px;
  margin-bottom: 22px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}
.hero-tagline span::after { content: "•"; margin-left: 6px; color: var(--pink); }
.hero-tagline span:last-child::after { display: none; }

.hero .lede { max-width: 56ch; color: rgba(255, 255, 255, 0.76); }
.hero .btn-row { margin-top: 34px; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px clamp(24px, 4vw, 52px);
  margin-top: 46px;
  padding-top: 30px;
  border-top: 1px solid var(--line-dark);
}
.hero-stat b {
  display: block;
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  background: linear-gradient(120deg, #fff, var(--pink-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-stat span {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.58);
  letter-spacing: 0.02em;
}

/* hero visual */
.hero-visual { position: relative; display: grid; place-items: center; }
.hero-visual-glow {
  position: absolute;
  width: 84%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 85, 157, 0.55), transparent 62%);
  filter: blur(50px);
  animation: pulse 7s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(0.94); opacity: 0.7; }
  50% { transform: scale(1.08); opacity: 1; }
}
.hero-visual img {
  position: relative;
  width: min(100%, 460px);
  filter: drop-shadow(0 40px 60px rgba(20, 8, 43, 0.6));
  animation: bob 8s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-0.6deg); }
  50% { transform: translateY(-16px) rotate(0.6deg); }
}

.chip-float {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
}
.chip-float i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 12px var(--pink);
}
.chip-float--a { top: 8%; left: -4%; animation: bob 9s ease-in-out infinite; }
.chip-float--b { bottom: 16%; right: -6%; animation: bob 11s ease-in-out 0.8s infinite; }
.chip-float--c { bottom: -2%; left: 8%; animation: bob 10s ease-in-out 1.6s infinite; }

/* --------------------------------------------------------------- marquee */
.marquee {
  position: relative;
  padding-block: 26px;
  border-block: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; align-items: center; gap: 46px; padding-right: 46px; }
.marquee li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-mid);
  white-space: nowrap;
}
.marquee li::after {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--grad);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------- about */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
}

.about-card {
  position: relative;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-lg);
  background: var(--grad-soft);
  border: 1px solid var(--lav-2);
  overflow: hidden;
}
.about-card::before {
  content: "";
  position: absolute;
  top: -30%; right: -20%;
  width: 70%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 85, 157, 0.3), transparent 65%);
  filter: blur(30px);
}
.about-card img { position: relative; margin-inline: auto; }

.about-quote {
  position: relative;
  margin-top: 34px;
  padding: 28px 30px;
  border-radius: var(--radius);
  background: var(--indigo);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.about-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 1.9vw, 1.42rem);
  line-height: 1.45;
}
.about-quote::before {
  content: "";
  position: absolute;
  left: 30px; top: -9px;
  width: 18px; height: 18px;
  background: var(--indigo);
  transform: rotate(45deg);
}

.signature {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}
.signature-mark {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: var(--glow);
}
.signature-name { font-weight: 800; letter-spacing: -0.02em; }
.signature-role { font-size: 0.86rem; color: var(--text-soft); }

/* --------------------------------------------------------------- services */
.services { background: linear-gradient(180deg, var(--cream) 0%, #f5f1fc 100%); }

.cards {
  display: grid;
  /* min() so the 300px floor can still shrink on very narrow phones */
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 20px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(26px, 3vw, 34px);
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease),
    border-color 0.45s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  pointer-events: none;
}
.card::after {
  content: "";
  position: absolute;
  top: -60%; right: -40%;
  width: 80%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(154, 85, 240, 0.16), transparent 62%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.card:hover::before, .card:hover::after { opacity: 1; }

.card-icon {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 17px;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 12px 26px -12px rgba(214, 50, 155, 0.75);
  transition: transform 0.5s var(--ease);
}
.card:hover .card-icon { transform: rotate(-7deg) scale(1.06); }
.card h3 { font-size: 1.2rem; }
.card p { color: var(--text-mid); font-size: 0.98rem; }

.card-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: 6px; }
.card-tags span {
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--lav);
  color: var(--text-mid);
  font-size: 0.76rem;
  font-weight: 700;
}

.philosophy {
  margin-top: clamp(36px, 5vw, 60px);
  padding: clamp(30px, 4vw, 52px);
  border-radius: var(--radius-lg);
  background: var(--indigo);
  color: #fff;
  background-image: radial-gradient(90% 120% at 12% 0%, rgba(120, 36, 228, 0.6), transparent 60%),
    radial-gradient(70% 100% at 96% 100%, rgba(214, 50, 155, 0.5), transparent 62%);
  box-shadow: var(--shadow-lg);
}
.philosophy p {
  max-width: 62ch;
  font-size: clamp(1.08rem, 1.9vw, 1.4rem);
  line-height: 1.55;
  font-weight: 500;
}
.philosophy p + p { margin-top: 18px; color: rgba(255, 255, 255, 0.72); font-size: 1.02rem; font-weight: 400; }

/* --------------------------------------------------------------- process */
.process-list {
  position: relative;
  display: grid;
  gap: 14px;
  counter-reset: step;
}
.process-line {
  position: absolute;
  left: 33px;
  top: 42px;
  bottom: 42px;
  width: 2px;
  background: var(--lav-2);
  border-radius: 2px;
  overflow: hidden;
}
.process-line i {
  position: absolute;
  inset: 0 0 auto 0;
  height: 0;
  background: var(--grad);
  transition: height 0.15s linear;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease),
    transform 0.4s var(--ease);
}
.step:hover {
  background: #fff;
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
  transform: translateX(6px);
}
.step-num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  margin-left: 11px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--lav-2);
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--text-soft);
  transition: all 0.45s var(--ease);
}
.step.is-on .step-num {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--glow);
  transform: scale(1.08);
}
.step h3 { font-size: 1.14rem; margin-bottom: 6px; }
.step p { color: var(--text-mid); font-size: 0.98rem; }

/* --------------------------------------------------------------- work */
.work { background: var(--indigo); color: #fff; overflow: hidden; }
.work::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 60% at 82% 4%, rgba(120, 36, 228, 0.55), transparent 62%),
    radial-gradient(60% 60% at 6% 96%, rgba(214, 50, 155, 0.42), transparent 62%);
  pointer-events: none;
}
.work > .container { position: relative; }
.work .lede { color: var(--text-inv-soft); }

.case {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  margin-bottom: clamp(40px, 5vw, 64px);
  padding: clamp(26px, 3.5vw, 44px);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-dark);
  backdrop-filter: blur(10px);
}
.case-title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-block: 6px 14px; }
.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.case-meta span {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.79rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.82);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.stat {
  padding: 22px 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-dark);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}
.stat:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.11); }
.stat b {
  display: block;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
  background: linear-gradient(120deg, #fff, var(--pink-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { font-size: 0.83rem; color: rgba(255, 255, 255, 0.6); }

.gallery {
  columns: 4;
  column-gap: 16px;
}
.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  margin-bottom: 16px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.04);
  break-inside: avoid;
  cursor: zoom-in;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.gallery-item img { width: 100%; transition: transform 0.7s var(--ease), filter 0.5s var(--ease); }
.gallery-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 30px 16px 14px;
  background: linear-gradient(transparent, rgba(12, 5, 26, 0.92));
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  transform: translateY(8px);
  opacity: 0;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.gallery-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item:hover figcaption, .gallery-item:focus-visible figcaption { opacity: 1; transform: none; }

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(10, 4, 22, 0.9);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-height: 86vh;
  max-width: min(94vw, 460px);
  border-radius: 18px;
  box-shadow: 0 40px 90px -20px rgba(0, 0, 0, 0.8);
  transform: scale(0.94);
  transition: transform 0.4s var(--ease);
}
.lightbox.is-open img { transform: scale(1); }
.lightbox-cap {
  margin-top: 14px;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
  font-weight: 600;
}
.lightbox-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.lightbox-btn:hover { background: rgba(255, 255, 255, 0.25); transform: scale(1.08); }
.lightbox-close { top: 22px; right: 22px; }
.lightbox-prev { left: max(16px, 4vw); top: 50%; margin-top: -24px; }
.lightbox-next { right: max(16px, 4vw); top: 50%; margin-top: -24px; }

/* --------------------------------------------------------------- pricing */
.pricing-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
  padding: clamp(30px, 4vw, 58px);
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.price-factors { display: grid; gap: 12px; }
.price-factor {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: var(--lav);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}
.price-factor:hover { transform: translateX(6px); background: var(--lav-2); }
.price-factor svg { flex: none; margin-top: 2px; color: var(--violet); }
.price-factor b { display: block; font-size: 0.99rem; }
.price-factor span { font-size: 0.9rem; color: var(--text-mid); }

/* --------------------------------------------------------------- faq */
.faq { background: linear-gradient(180deg, #f5f1fc 0%, var(--cream) 100%); }
.faq-list { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }
.faq-item {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.faq-item[open] { box-shadow: var(--shadow); border-color: rgba(120, 36, 228, 0.24); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 26px;
  font-weight: 700;
  font-size: 1.03rem;
  cursor: pointer;
  list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q i {
  position: relative;
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--lav);
  transition: background 0.35s var(--ease), transform 0.35s var(--ease);
}
.faq-q i::before, .faq-q i::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 2px;
  border-radius: 2px;
  background: var(--violet);
  transform: translate(-50%, -50%);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}
.faq-q i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-q i { background: var(--grad); transform: rotate(180deg); }
.faq-item[open] .faq-q i::before,
.faq-item[open] .faq-q i::after { background: #fff; }
.faq-item[open] .faq-q i::after { transform: translate(-50%, -50%) rotate(0deg); }

/* while the answer is sliding shut, snap the chrome back to the closed look */
.faq-item.is-closing { box-shadow: none; border-color: var(--line); }
.faq-item.is-closing .faq-q i { background: var(--lav); transform: rotate(0deg); }
.faq-item.is-closing .faq-q i::before,
.faq-item.is-closing .faq-q i::after { background: var(--violet); }
.faq-item.is-closing .faq-q i::after { transform: translate(-50%, -50%) rotate(90deg); }

.faq-a { padding: 0 26px 24px; color: var(--text-mid); max-width: 72ch; }

/* --------------------------------------------------------------- contact */
.contact { background: var(--indigo); color: #fff; overflow: hidden; }
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 70% at 88% 10%, rgba(214, 50, 155, 0.45), transparent 60%),
    radial-gradient(70% 70% at 4% 90%, rgba(120, 36, 228, 0.5), transparent 62%);
  pointer-events: none;
}
.contact > .container { position: relative; }
.contact .lede { color: var(--text-inv-soft); }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(30px, 4vw, 64px);
  align-items: start;
}

.contact-links { display: grid; gap: 12px; margin-top: 30px; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-dark);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.contact-link:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
}
.contact-link-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--grad);
  color: #fff;
}
.contact-link > span { min-width: 0; }        /* let the long email wrap */
.contact-link small {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.contact-link b { font-size: 1.02rem; font-weight: 700; overflow-wrap: anywhere; }

.form {
  padding: clamp(26px, 3.4vw, 40px);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line-dark);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg);
}
.field { margin-bottom: 16px; }
.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.78);
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(20, 8, 43, 0.4);
  color: #fff;
  font: inherit;
  font-size: 0.97rem;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field textarea { min-height: 128px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, 0.36); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--pink);
  background: rgba(20, 8, 43, 0.66);
  box-shadow: 0 0 0 4px rgba(240, 85, 157, 0.18);
}
.field select option { color: #1b1230; }
.form .btn { width: 100%; margin-top: 8px; }
.form-note { margin-top: 14px; font-size: 0.82rem; color: rgba(255, 255, 255, 0.5); text-align: center; }
.form-status {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line-dark);
}
.form-status[hidden] { display: none; }
.form-status a { text-decoration: underline; overflow-wrap: anywhere; }
.form-status.is-ok {
  background: rgba(88, 214, 141, 0.16);
  border-color: rgba(88, 214, 141, 0.42);
}
.form-status.is-error {
  background: rgba(240, 85, 157, 0.18);
  border-color: rgba(240, 85, 157, 0.5);
}
.form-status.is-pending { opacity: 0.85; }
.hp { position: absolute; left: -9999px; opacity: 0; }

/* --------------------------------------------------------------- footer */
.footer {
  padding-block: clamp(46px, 5vw, 70px) 30px;
  background: #0e0520;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 36px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.footer .brand { color: #fff; margin-right: 0; }
.footer .brand-sub { color: rgba(255, 255, 255, 0.45); }
.footer h4 {
  margin-bottom: 14px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 800;
}
.footer li + li { margin-top: 9px; }
.footer a { transition: color 0.25s var(--ease); }
.footer a:hover { color: #fff; }
.footer-blurb { margin-top: 18px; max-width: 42ch; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.42);
}

/* --------------------------------------------------------------- reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
[data-reveal="left"] { transform: translateX(-30px); }
[data-reveal="right"] { transform: translateX(30px); }
[data-reveal="scale"] { transform: scale(0.94); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------- responsive */
/* flex/grid children default to min-width:auto and refuse to shrink past their
   longest word — which pushes the page wide on very narrow phones */
.contact-grid > *,
.pricing-panel > *,
.about-grid > *,
.hero-inner > *,
.case > *,
.price-factor > div,
.step > div { min-width: 0; }

@media (max-width: 1080px) {
  .gallery { columns: 3; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 400px; margin-inline: auto; }
  .chip-float--a { left: 0; }
  .chip-float--b { right: 0; }
  .case, .about-grid, .pricing-panel, .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav {
    position: fixed;
    inset: var(--nav-h) 10px auto 10px;
    z-index: 2;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateY(-10px) scale(0.98);
    transform-origin: 100% 0;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s var(--ease), opacity 0.28s var(--ease),
      visibility 0.4s;
  }
  body.nav-open .nav { transform: none; opacity: 1; visibility: visible; }

  /* scrim behind the drawer */
  body.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(16, 6, 36, 0.45);
    animation: fade-in 0.3s var(--ease) both;
  }
  body.nav-open { overflow: hidden; }
  @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

  .nav a {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--text);
    border-radius: 13px;
  }
  .nav a::after { display: none; }
  .nav a:hover, .nav a:focus-visible { background: var(--lav); }
  .nav a.is-active { background: var(--grad-soft); color: var(--violet); }
  .burger { display: flex; }
  .header-actions .btn { display: none; }
  .gallery { columns: 2; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* keep the headline above the fold on phones */
@media (max-width: 760px) {
  .hero { padding-top: calc(var(--nav-h) + 20px); padding-bottom: 62px; }
  .hero-inner { gap: 18px; }
  .hero .lede { margin-top: 14px; }
  .hero-visual { max-width: 188px; }
  .chip-float { display: none; }
  .hero-tagline { font-size: 0.72rem; letter-spacing: 0.12em; margin-bottom: 16px; }
  .hero h1 { font-size: clamp(2.1rem, 8.6vw, 2.7rem); }
  .hero .btn-row { margin-top: 26px; }
  .hero-stats { margin-top: 30px; padding-top: 22px; }
  .about-card { padding: 24px; }
  .about-card img { max-width: 260px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { padding-inline: 18px; }
  .gallery { columns: 1; max-width: 380px; margin-inline: auto; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-stats { gap: 18px 28px; }
  .step { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 16px 12px; }
  .step-num { width: 40px; height: 40px; margin-left: 8px; }
  .process-line { left: 27px; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}

/* --------------------------------------------------------------- a11y */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

@media print {
  .header, .scroll-progress, .marquee, .lightbox, .form { display: none !important; }
  body { background: #fff; color: #000; }
}
