/* Wain — Gildmere calm + DigitalFive agency + creative energy */
:root {
  --ink: #12081c;
  --text: #1a1024;
  --text-soft: #5c5268;
  --muted: #7a7188;
  --white: #ffffff;
  --surface: #faf8fc;
  --surface-2: #f4f0f8;
  /* Brand violet — less hot-pink, matches site accents */
  --purple: #9d3df2;
  --purple-mid: #b34dff;
  --purple-soft: #c77dff;
  --purple-deep: #7a24c9;
  --purple-glow: #c44dff;
  --purple-tint: #f8f0ff;
  --purple-line: rgba(157, 61, 242, 0.2);
  --purple-rgb: 157, 61, 242;
  --hero-em: #e9d5ff;
  --hero-lead: rgba(233, 213, 255, 0.9);
  /* White + dark + brand purple — premium gradient system */
  --grad-brand: linear-gradient(135deg, #1e0a36 0%, #4c1d95 38%, #9d3df2 72%, #f5e8ff 100%);
  --grad-brand-btn: linear-gradient(135deg, #1e0a36 0%, #5b21b6 45%, #9d3df2 100%);
  --grad-brand-btn-hover: linear-gradient(135deg, #2e1065 0%, #6d28d9 50%, #b34dff 100%);
  --grad-brand-soft: linear-gradient(135deg, #ffffff 0%, #f5e8ff 42%, #e9d5ff 100%);
  --grad-header: linear-gradient(105deg, #12081c 0%, #3b0764 40%, #7a24c9 78%, #9d3df2 100%);
  --grad-header-light: linear-gradient(180deg, #ffffff 0%, #faf5ff 100%);
  --line: rgba(18, 8, 28, 0.08);
  --shadow: 0 10px 30px rgba(18, 8, 28, 0.06);
  --shadow-lg: 0 22px 50px rgba(18, 8, 28, 0.1);
  --max: 70rem;
  --nav-h: 4.25rem;
  --font: Inter, system-ui, -apple-system, sans-serif;
  --radius: 1rem;
  --radius-lg: 1.35rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  /* Base + soft brand atmosphere (not flat empty colour) */
  background-color: #f7f4fb;
  background-image:
    radial-gradient(ellipse 90% 60% at 0% -10%, rgba(var(--purple-rgb), 0.14), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 20%, rgba(232, 121, 249, 0.08), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(134, 41, 168, 0.07), transparent 55%),
    linear-gradient(180deg, #faf8fc 0%, #f3eef9 50%, #f7f4fb 100%);
  background-attachment: fixed;
  position: relative;
}

/*
  Premium business atmosphere (web craft) — fixed under all pages.
  Motifs: blueprint grid, browser frames, layout blocks, network nodes.
  Does not affect layout or content.
*/

/*
  WordPress-style page overlay image (transparent PNG on colour background).
  Asset: image/bg-overlay.png — bold solid 3840×2160 web-craft motifs.
  Behind content (z-index 0). Section fills are light so this shows through.
*/
html::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.1;
  background-image: url("../image/bg-overlay.png?v=4");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

html::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    /* Large soft browser window — left */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='340' height='220' fill='none' viewBox='0 0 340 220'%3E%3Crect x='8' y='8' width='324' height='204' rx='14' stroke='%239d3df2' stroke-opacity='0.22' stroke-width='1.25'/%3E%3Cpath d='M8 44h324' stroke='%239d3df2' stroke-opacity='0.16'/%3E%3Ccircle cx='28' cy='26' r='4' fill='%239d3df2' fill-opacity='0.2'/%3E%3Ccircle cx='44' cy='26' r='4' fill='%239d3df2' fill-opacity='0.14'/%3E%3Ccircle cx='60' cy='26' r='4' fill='%239d3df2' fill-opacity='0.1'/%3E%3Crect x='88' y='18' width='160' height='16' rx='8' fill='%239d3df2' fill-opacity='0.07'/%3E%3Crect x='28' y='64' width='120' height='10' rx='5' fill='%239d3df2' fill-opacity='0.09'/%3E%3Crect x='28' y='86' width='180' height='8' rx='4' fill='%239d3df2' fill-opacity='0.06'/%3E%3Crect x='28' y='106' width='140' height='8' rx='4' fill='%239d3df2' fill-opacity='0.05'/%3E%3Crect x='28' y='136' width='90' height='48' rx='10' fill='%239d3df2' fill-opacity='0.06' stroke='%239d3df2' stroke-opacity='0.12'/%3E%3Crect x='132' y='136' width='90' height='48' rx='10' fill='%239d3df2' fill-opacity='0.05' stroke='%239d3df2' stroke-opacity='0.1'/%3E%3Crect x='236' y='136' width='76' height='48' rx='10' fill='%239d3df2' fill-opacity='0.04' stroke='%239d3df2' stroke-opacity='0.09'/%3E%3C/svg%3E"),
    /* Compact mobile frame — right */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='220' fill='none' viewBox='0 0 120 220'%3E%3Crect x='10' y='6' width='100' height='208' rx='18' stroke='%23d946ef' stroke-opacity='0.2' stroke-width='1.25'/%3E%3Crect x='42' y='16' width='36' height='6' rx='3' fill='%23d946ef' fill-opacity='0.12'/%3E%3Crect x='24' y='40' width='72' height='8' rx='4' fill='%239d3df2' fill-opacity='0.08'/%3E%3Crect x='24' y='58' width='56' height='6' rx='3' fill='%239d3df2' fill-opacity='0.06'/%3E%3Crect x='24' y='80' width='72' height='44' rx='8' fill='%239d3df2' fill-opacity='0.05' stroke='%239d3df2' stroke-opacity='0.1'/%3E%3Crect x='24' y='136' width='72' height='10' rx='5' fill='%239d3df2' fill-opacity='0.07'/%3E%3Crect x='24' y='156' width='48' height='10' rx='5' fill='%239d3df2' fill-opacity='0.05'/%3E%3C/svg%3E"),
    /* Network / web nodes — top-right */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='200' fill='none' viewBox='0 0 280 200'%3E%3Cpath d='M40 120L90 60L150 90L210 40L250 100' stroke='%239d3df2' stroke-opacity='0.14' stroke-width='1'/%3E%3Cpath d='M90 60L110 140M150 90L180 150M210 40L160 20' stroke='%23d946ef' stroke-opacity='0.1' stroke-width='1'/%3E%3Ccircle cx='40' cy='120' r='5' fill='%239d3df2' fill-opacity='0.18'/%3E%3Ccircle cx='90' cy='60' r='6' fill='%239d3df2' fill-opacity='0.16'/%3E%3Ccircle cx='150' cy='90' r='5' fill='%23d946ef' fill-opacity='0.14'/%3E%3Ccircle cx='210' cy='40' r='7' fill='%239d3df2' fill-opacity='0.15'/%3E%3Ccircle cx='250' cy='100' r='4' fill='%239d3df2' fill-opacity='0.12'/%3E%3Ccircle cx='110' cy='140' r='4' fill='%239d3df2' fill-opacity='0.1'/%3E%3Ccircle cx='180' cy='150' r='5' fill='%23d946ef' fill-opacity='0.1'/%3E%3C/svg%3E"),
    /* Layout wireframe blocks — bottom-right */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='160' fill='none' viewBox='0 0 260 160'%3E%3Crect x='12' y='16' width='236' height='28' rx='6' stroke='%239d3df2' stroke-opacity='0.14'/%3E%3Crect x='12' y='56' width='72' height='88' rx='6' stroke='%239d3df2' stroke-opacity='0.12'/%3E%3Crect x='96' y='56' width='152' height='40' rx='6' stroke='%239d3df2' stroke-opacity='0.12'/%3E%3Crect x='96' y='108' width='72' height='36' rx='6' stroke='%23d946ef' stroke-opacity='0.1'/%3E%3Crect x='176' y='108' width='72' height='36' rx='6' stroke='%239d3df2' stroke-opacity='0.1'/%3E%3C/svg%3E"),
    /* Code-line marks — mid-left */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='120' fill='none' viewBox='0 0 160 120'%3E%3Cpath d='M24 28h48M24 44h72M24 60h40M24 76h64M24 92h32' stroke='%239d3df2' stroke-opacity='0.12' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M12 20l-6 20 6 20M52 20l6 20-6 20' stroke='%23d946ef' stroke-opacity='0.14' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position:
    4% 78%,
    94% 62%,
    88% 12%,
    78% 88%,
    6% 42%;
  background-size:
    min(340px, 42vw) auto,
    min(120px, 18vw) auto,
    min(280px, 36vw) auto,
    min(260px, 34vw) auto,
    min(160px, 22vw) auto;
  background-repeat: no-repeat;
  mask-image: radial-gradient(ellipse 95% 85% at 50% 45%, #000 15%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 95% 85% at 50% 45%, #000 15%, transparent 78%);
}

/* Blueprint grid + dual scale (design craft) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.65;
  background-image:
    linear-gradient(rgba(157, 61, 242, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(157, 61, 242, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(157, 61, 242, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(157, 61, 242, 0.035) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px, 256px 256px, 256px 256px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 40%, #000 18%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 40%, #000 18%, transparent 78%);
}

/* Soft brand orbs + light beams */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 72%, rgba(179, 77, 255, 0.14), transparent 28%),
    radial-gradient(circle at 88% 22%, rgba(217, 70, 239, 0.12), transparent 26%),
    radial-gradient(circle at 58% 88%, rgba(157, 61, 242, 0.1), transparent 32%),
    radial-gradient(ellipse 50% 30% at 70% 55%, rgba(157, 61, 242, 0.05), transparent 70%),
    linear-gradient(125deg, transparent 40%, rgba(157, 61, 242, 0.035) 50%, transparent 60%),
    linear-gradient(55deg, transparent 55%, rgba(217, 70, 239, 0.03) 65%, transparent 75%);
  animation: atmosphere-drift 18s ease-in-out infinite alternate;
}

@keyframes atmosphere-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(0, -1.5%, 0) scale(1.03); }
}

/* Keep page content above atmosphere + overlay image */
body > section,
body > footer,
body > div {
  position: relative;
  z-index: 1;
}

body > .nav,
body > header {
  z-index: 100;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }

.container {
  width: min(100% - 2.25rem, var(--max));
  margin-inline: auto;
}

/* Wider stage so 3–4 portfolio cards stay premium, not cramped */
.container-work {
  width: min(100% - 2.25rem, 92rem);
}

/* ——— Type ——— */
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 0.85rem;
}

.section-title {
  font-size: clamp(1.85rem, 3.8vw, 2.55rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.85rem;
  color: var(--ink);
}

.section-lead {
  color: var(--text-soft);
  font-size: 1.05rem;
  max-width: 34rem;
  line-height: 1.7;
}

.section-head {
  margin-bottom: 2.75rem;
}

.section-head.center {
  text-align: center;
}

.section-head.center .section-lead {
  margin-inline: auto;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 999px;
  padding: 0.88rem 1.55rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  /* Dark → brand purple (premium) */
  background: var(--grad-brand-btn);
  color: #fff;
  box-shadow: 0 8px 28px rgba(30, 10, 54, 0.4);
}

.btn-primary:hover {
  background: var(--grad-brand-btn-hover);
  box-shadow: 0 12px 34px rgba(76, 29, 149, 0.48);
}

.btn-secondary {
  /* White → soft lilac, purple text — pairs with dark primary */
  background: var(--grad-brand-soft);
  color: var(--purple-deep);
  border: 1px solid rgba(157, 61, 242, 0.28);
  box-shadow: 0 4px 16px rgba(30, 10, 54, 0.1);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #faf5ff 0%, #ede9fe 45%, #e9d5ff 100%);
  color: #3b0764;
  border-color: rgba(157, 61, 242, 0.45);
  box-shadow: 0 8px 22px rgba(76, 29, 149, 0.18);
}

.btn-ghost {
  background: linear-gradient(135deg, rgba(30, 10, 54, 0.55) 0%, rgba(122, 36, 201, 0.35) 100%);
  color: #fff;
  border: 1px solid rgba(245, 232, 255, 0.4);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: linear-gradient(135deg, rgba(59, 7, 100, 0.7) 0%, rgba(157, 61, 242, 0.45) 100%);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-sm {
  font-size: 0.84rem;
  padding: 0.68rem 1.15rem;
}

/* ——— Nav ——— */
/* Default: white bar. Scrolled: purple bar. */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--grad-header-light);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 16px rgba(18, 16, 26, 0.05);
  transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
}

/* When scrolling: purple header — same hue family as vortex */
.nav.scrolled {
  background: var(--grad-header);
  border-bottom-color: transparent;
  box-shadow: 0 6px 28px rgba(18, 8, 28, 0.4);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
}

.logo {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  transition: color 0.25s;
}

.logo span {
  color: var(--purple);
  transition: color 0.25s;
}

.nav.scrolled .logo { color: #fff; }
.nav.scrolled .logo span { color: #f0d4ff; }

.nav-links {
  display: none;
  align-items: center;
  gap: 1.6rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-soft);
}

.nav-links > a,
.nav-dropdown-trigger {
  transition: color 0.2s;
  position: relative;
  color: inherit;
  text-decoration: none;
}

.nav-links > a:hover,
.nav-links > a.active,
.nav-dropdown-trigger:hover,
.nav-dropdown-trigger.active { color: var(--purple); }

.nav.scrolled .nav-links > a,
.nav.scrolled .nav-dropdown-trigger { color: rgba(255, 255, 255, 0.88); }
.nav.scrolled .nav-links > a:hover,
.nav.scrolled .nav-links > a.active,
.nav.scrolled .nav-dropdown-trigger:hover,
.nav.scrolled .nav-dropdown-trigger.active { color: #fff; }

/* ——— Work dropdown (premium purple) ——— */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  padding: 0;
}

.nav-caret {
  width: 0.85rem;
  height: 0.85rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s ease;
}

.nav-dropdown:hover .nav-caret,
.nav-dropdown.is-open .nav-caret {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.85rem);
  left: 50%;
  transform: translateX(-50%) translateY(0.35rem);
  min-width: 13.5rem;
  padding: 0.45rem;
  border-radius: 0.9rem;
  background: #fff;
  border: 1px solid rgba(var(--purple-rgb), 0.14);
  box-shadow:
    0 4px 6px rgba(18, 8, 28, 0.04),
    0 18px 40px rgba(122, 36, 201, 0.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    visibility 0.22s;
  z-index: 120;
}

.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -0.55rem;
  left: 0;
  right: 0;
  height: 0.55rem;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.7rem 0.85rem;
  border-radius: 0.65rem;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
  background: linear-gradient(
    135deg,
    rgba(var(--purple-rgb), 0.1) 0%,
    rgba(217, 70, 239, 0.08) 100%
  );
  color: var(--purple-deep);
  transform: translateX(2px);
  box-shadow: inset 3px 0 0 var(--purple);
  outline: none;
}

.nav-dropdown-menu a.active {
  background: var(--purple-tint);
  color: var(--purple-deep);
  font-weight: 600;
}

.nav.scrolled .nav-dropdown-menu {
  background: linear-gradient(180deg, #1a0b28 0%, #12081c 100%);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.nav.scrolled .nav-dropdown-menu a {
  color: rgba(255, 255, 255, 0.88);
}

.nav.scrolled .nav-dropdown-menu a:hover,
.nav.scrolled .nav-dropdown-menu a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: inset 3px 0 0 #e9d5ff;
}

.nav.scrolled .nav-dropdown-menu a.active {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* Mobile Work accordion */
.mobile-dropdown {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mobile-dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.mobile-dropdown-trigger::after {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  opacity: 0.7;
}

.mobile-dropdown.is-open .mobile-dropdown-trigger::after {
  transform: rotate(-135deg);
}

.mobile-dropdown-panel {
  display: none;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.35rem 0 0.35rem 0.85rem;
  border-left: 2px solid rgba(var(--purple-rgb), 0.25);
}

.mobile-dropdown.is-open .mobile-dropdown-panel {
  display: flex;
}

.mobile-dropdown-panel a {
  font-size: 0.9rem;
  color: inherit;
  text-decoration: none;
}

.nav.scrolled .mobile-dropdown-panel {
  border-left-color: rgba(255, 255, 255, 0.25);
}

.nav-cta { display: none; }

/* CTA on white header — dark→purple gradient */
.nav .nav-cta.btn-primary {
  background: var(--grad-brand-btn);
  color: #fff;
}

/* CTA on scrolled header — white → soft lilac */
.nav.scrolled .nav-cta.btn-primary {
  background: var(--grad-brand-soft);
  color: var(--purple-deep);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
}

.nav.scrolled .nav-cta.btn-primary:hover {
  background: linear-gradient(135deg, #ffffff 0%, #f5e8ff 55%, #e9d5ff 100%);
  color: #1e0a36;
}

.menu-btn {
  background: none;
  border: none;
  color: var(--ink);
  padding: 0.35rem;
  cursor: pointer;
  transition: color 0.25s;
}

.nav.scrolled .menu-btn { color: #fff; }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem 1.25rem 1.4rem;
  background: #fff;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-soft);
  box-shadow: var(--shadow);
}

.nav.scrolled .mobile-menu {
  background: var(--purple-deep);
  border-top-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
}

.mobile-menu.open { display: flex; }

.mobile-menu a:not(.btn):hover,
.mobile-menu a.active { color: var(--purple); }

.nav.scrolled .mobile-menu a:not(.btn):hover,
.nav.scrolled .mobile-menu a.active { color: #fff; }

.nav.scrolled .mobile-menu .btn-primary {
  background: #fff;
  color: var(--purple);
}

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .menu-btn { display: none; }
}

/* ——— Hero: soft abstract brand video (unified atmosphere) ——— */
.hero {
  position: relative;
  width: 100%;
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100dvh - var(--nav-h));
  margin-top: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 0 4rem;
  overflow: hidden;
  color: #fff;
  text-align: center;
  background: #0b0618;
  isolation: isolate;
}

/* Cover fill + slow Ken Burns zoom (oversized so edges stay covered) */
.hero-media {
  position: absolute;
  inset: -6%;
  z-index: 0;
  width: 112%;
  height: 112%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center center;
  border: 0;
  outline: none;
  background: transparent;
  pointer-events: none;
  user-select: none;
  will-change: transform;
  transform-origin: center center;
  animation:
    hero-media-in 1.4s var(--ease-out) both,
    hero-ken-burns 28s ease-in-out 1.2s infinite alternate;
}

/* Floating light particles over the hero */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.hero-particle {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(233, 213, 255, 0.65) 35%,
    rgba(157, 61, 242, 0.25) 70%,
    transparent 100%
  );
  box-shadow:
    0 0 12px rgba(196, 125, 255, 0.55),
    0 0 28px rgba(157, 61, 242, 0.35);
  opacity: 0;
  animation: hero-particle-drift linear infinite;
}

.hero-particle:nth-child(1) { width: 5px; height: 5px; left: 12%; top: 72%; animation-duration: 18s; animation-delay: 0s; }
.hero-particle:nth-child(2) { width: 3px; height: 3px; left: 22%; top: 38%; animation-duration: 22s; animation-delay: -4s; }
.hero-particle:nth-child(3) { width: 6px; height: 6px; left: 68%; top: 58%; animation-duration: 20s; animation-delay: -8s; }
.hero-particle:nth-child(4) { width: 4px; height: 4px; left: 78%; top: 28%; animation-duration: 24s; animation-delay: -2s; }
.hero-particle:nth-child(5) { width: 3px; height: 3px; left: 48%; top: 78%; animation-duration: 19s; animation-delay: -11s; }
.hero-particle:nth-child(6) { width: 7px; height: 7px; left: 34%; top: 22%; animation-duration: 26s; animation-delay: -6s; }
.hero-particle:nth-child(7) { width: 4px; height: 4px; left: 86%; top: 68%; animation-duration: 21s; animation-delay: -14s; }
.hero-particle:nth-child(8) { width: 5px; height: 5px; left: 58%; top: 18%; animation-duration: 23s; animation-delay: -9s; }

@keyframes hero-particle-drift {
  0% {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.7);
  }
  15% { opacity: 0.85; }
  50% {
    opacity: 1;
    transform: translate3d(12px, -42px, 0) scale(1);
  }
  85% { opacity: 0.7; }
  100% {
    opacity: 0;
    transform: translate3d(-8px, -88px, 0) scale(0.85);
  }
}

/* Soft centre ease for type — not a heavy plate */
.hero-overlay {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 60% 55% at 50% 45%,
    rgba(8, 4, 18, 0.35) 0%,
    rgba(8, 4, 18, 0.12) 55%,
    transparent 75%
  );
  animation: hero-overlay-breathe 10s ease-in-out infinite alternate;
}

@keyframes hero-overlay-breathe {
  from { opacity: 0.85; }
  to { opacity: 1; }
}

.hero-layout {
  position: relative;
  z-index: 3;
  width: 100%;
  display: grid;
  align-items: center;
  justify-items: center;
  text-align: center;
}

.hero-space { display: none !important; }

/* Open type on atmosphere — one piece, not a bolted-on panel */
.hero-content {
  position: relative;
  max-width: 40rem;
  width: 100%;
  margin-inline: auto;
  padding: 0 1rem;
  text-align: center;
  justify-self: center;
  background: none;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 0;
}

.hero-lead {
  margin-inline: auto;
}

.hero-actions {
  justify-content: center;
}

@media (min-width: 900px) {
  .hero {
    padding: 5rem 0 5.5rem;
  }

  .hero-content {
    max-width: 42rem;
  }
}

@media (max-width: 899px) {
  .hero {
    min-height: calc(100dvh - var(--nav-h));
    padding: 6.5rem 0 4rem;
  }

  .hero-media {
    object-fit: cover;
    object-position: center center;
  }

  .hero-content {
    max-width: 28rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 6rem 0 3.25rem;
  }

  .hero-content {
    max-width: none;
  }
}

.hero .eyebrow {
  /* Same purple accent as site-wide .eyebrow / scope labels */
  color: #f5e8ff;
  background: rgba(var(--purple-rgb), 0.28);
  border: 1px solid rgba(var(--purple-rgb), 0.45);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.15rem;
  margin-inline: auto;
}

.hero-title {
  font-size: clamp(2.35rem, 5vw, 3.65rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.06;
  margin-bottom: 1.1rem;
  text-align: center;
  color: #ffffff;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.45),
    0 4px 24px rgba(0, 0, 0, 0.35);
}

.hero-title em {
  font-style: normal;
  /* Soft flat lavender — matches mockup “Real results.” */
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: var(--hero-em);
  -webkit-text-fill-color: var(--hero-em);
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.35));
  animation: none;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--hero-lead);
  line-height: 1.7;
  margin-bottom: 1.65rem;
  max-width: 32rem;
  margin-inline: auto;
  text-align: center;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Page hero — photo + calm overlay (no more empty tops) */
.page-hero {
  position: relative;
  min-height: 18rem;
  display: flex;
  align-items: flex-end;
  padding: 8.5rem 0 3.25rem;
  overflow: hidden;
  color: #fff;
  border-bottom: none;
}

.page-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(18, 16, 26, 0.82) 0%, rgba(45, 20, 80, 0.55) 55%, rgba(18, 16, 26, 0.45) 100%),
    linear-gradient(to top, rgba(18, 16, 26, 0.55) 0%, transparent 55%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero .eyebrow {
  color: #f0d4ff;
  background: rgba(157, 61, 242, 0.18);
  border: 1px solid rgba(199, 125, 255, 0.35);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
}

.page-hero .section-title {
  color: #fff;
  margin-bottom: 0.75rem;
}

.page-hero .section-lead {
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}

/* Image + text split band */
.media-band {
  display: grid;
  gap: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

@media (min-width: 900px) {
  .media-band {
    grid-template-columns: 1.05fr 1fr;
    min-height: 22rem;
  }

  .media-band.reverse {
    grid-template-columns: 1fr 1.05fr;
  }

  .media-band.reverse .media-band-photo { order: 2; }
  .media-band.reverse .media-band-copy { order: 1; }
}

.media-band-photo {
  position: relative;
  min-height: 14rem;
  overflow: hidden;
}

.media-band-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 14rem;
}

@media (min-width: 900px) {
  .media-band-photo,
  .media-band-photo img {
    min-height: 100%;
  }
}

.media-band-copy {
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 640px) {
  .media-band-copy { padding: 2.5rem 2.25rem; }
}

.media-band-copy .section-title {
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  margin-bottom: 0.75rem;
}

.media-band-copy p {
  color: var(--text-soft);
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

/* Full-bleed image strip */
.visual-strip {
  position: relative;
  min-height: 16rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .visual-strip { min-height: 20rem; }
}

.visual-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.visual-strip-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 16, 26, 0.78) 0%, rgba(18, 16, 26, 0.35) 100%);
  z-index: 1;
}

.visual-strip .container {
  position: relative;
  z-index: 2;
  padding: 3.5rem 0;
  color: #fff;
  max-width: 36rem;
}

.visual-strip .section-title { color: #fff; }
.visual-strip .section-lead { color: rgba(255, 255, 255, 0.8); margin: 0; }
.visual-strip .eyebrow { color: #f0d4ff; }

/* Case study blocks on Work */
.case {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--line);
}

.case:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

@media (min-width: 960px) {
  .case {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
    align-items: start;
  }
}

.case-preview {
  min-width: 0;
}

.case-preview .project-card {
  margin: 0;
}

.case-writeup {
  padding: 0.25rem 0;
}

.case-writeup .project-meta {
  margin-bottom: 0.75rem;
}

.case-writeup h2 {
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.case-writeup .lede {
  font-size: 1.02rem;
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 1.35rem;
}

.case-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 1.35rem;
}

.case-meta-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: 0.85rem 1rem;
}

.case-meta-item strong {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 0.25rem;
}

.case-meta-item span {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.4;
}

.case-writeup h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  margin: 1.15rem 0 0.45rem;
}

.case-writeup ul {
  margin: 0 0 0.5rem 1.1rem;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.65;
}

.case-writeup li { margin-bottom: 0.3rem; }

.case-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.35rem;
}

/* Form status */
.form-status {
  display: none;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.form-status.show { display: block; }

.form-status.ok {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-status.err {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ——— Sections ——— */
.section {
  padding: 5.5rem 0;
}

@media (min-width: 768px) {
  .section { padding: 6.5rem 0; }
}

.section-tight {
  padding: 4rem 0;
}

/* Light section fills so page overlay image can show through (WordPress-style) */
.bg-white {
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.bg-surface {
  background:
    radial-gradient(ellipse 90% 80% at 100% 0%, rgba(157, 61, 242, 0.05), transparent 50%),
    rgba(250, 248, 252, 0.22);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.bg-tint {
  background: rgba(248, 240, 255, 0.3);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.bg-ink {
  background: var(--ink);
  color: #fff;
}

.bg-ink .section-title { color: #fff; }
.bg-ink .section-lead { color: rgba(255, 255, 255, 0.7); }
.bg-ink .eyebrow { color: var(--purple-soft); }

/* ——— Cards (calm) ——— */
.cards {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 640px) {
  .cards-2 { grid-template-columns: repeat(2, 1fr); }
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  /* Prefer a clean 2x2 wrap over four cramped columns on mid desktops */
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1200px) {
  .cards-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.55rem 1.4rem;
  height: 100%;
  box-shadow: 0 2px 12px rgba(18, 16, 26, 0.03);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--purple-line);
}

.card-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.7rem;
  background: var(--grad-brand-btn);
  color: #fff;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  box-shadow: 0 6px 16px rgba(30, 10, 54, 0.25);
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 0.45rem;
  color: var(--ink);
}

.card p {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.65;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--purple);
}

.card-link:hover { gap: 0.5rem; }

/* Service teaser on home */
.service-teaser .card { padding: 1.7rem 1.5rem; }

/* Feature strip */
.feature-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .feature-row { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}

.feature-item {
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: #fff;
}

.feature-item p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

/* Steps */
.step {
  text-align: left;
  padding: 1.6rem 1.4rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
  background: var(--grad-brand-btn);
  margin-bottom: 1rem;
  box-shadow: 0 6px 16px rgba(30, 10, 54, 0.25);
}

.step h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.step p {
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* Stats — single calm row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .stats-row { grid-template-columns: repeat(4, 1fr); }
}

.stat {
  text-align: center;
  padding: 1.5rem 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.stat-value {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--purple);
  line-height: 1.1;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ——— Portfolio ——— */
.work-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .work-grid { grid-template-columns: 1fr 1fr; }
}

.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--purple-line);
}

.browser {
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0.85rem;
  background: #ebe8f1;
}

.browser-dots {
  display: flex;
  gap: 0.3rem;
  flex-shrink: 0;
}

.browser-dots i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  display: block;
}

.browser-dots .r { background: #ff5f57; }
.browser-dots .y { background: #febc2e; }
.browser-dots .g { background: #28c840; }

.browser-url {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  padding: 0.3rem 0.65rem;
  font-size: 0.72rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-url svg {
  flex-shrink: 0;
  width: 0.72rem;
  height: 0.72rem;
  opacity: 0.6;
}

.browser-live {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #16a34a;
}

.browser-live::before {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}

/* Portfolio: scrollable site preview + hover overlay */
.site-preview {
  position: relative;
  border-radius: 0 0 1rem 1rem;
  overflow: hidden;
  background: linear-gradient(180deg, #1a1524 0%, #0f0f14 100%);
}

/*
  Static homepage frame — clean site-only shots (no nested browser chrome).
  Ratio matches real Chrome captures (1574x844) so bitmaps never stretch.
*/
.site-scroll {
  aspect-ratio: 1574 / 844;
  width: 100%;
  height: auto;
  overflow: hidden;
  position: relative;
  background: #0f0f14;
}

.site-scroll img {
  width: 100%;
  height: auto; /* intrinsic ratio — never distort */
  display: block;
  vertical-align: top;
  transform: none;
}

/* Case study preview — same clean frame */
.case-preview .site-scroll {
  aspect-ratio: 1574 / 844;
}

/* Hover overlay — Live preview */
.site-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem;
  text-align: center;
  background: linear-gradient(
    160deg,
    rgba(30, 8, 48, 0.55) 0%,
    rgba(122, 36, 201, 0.72) 45%,
    rgba(18, 8, 28, 0.8) 100%
  );
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.project-card:hover .site-overlay,
.project-card:focus-within .site-overlay {
  opacity: 1;
  visibility: visible;
}

/* Overlay never blocks scroll — only the button receives clicks */
.site-overlay .btn {
  pointer-events: auto;
  min-width: 10.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.site-overlay-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.site-overlay-hint {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 16rem;
}

/* Touch / no-hover: compact bottom action bar so Live preview still works */
@media (hover: none) {
  .site-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: none;
    background: linear-gradient(to top, rgba(18, 8, 28, 0.88) 0%, rgba(18, 8, 28, 0.35) 45%, transparent 70%);
    justify-content: flex-end;
    padding-bottom: 1.15rem;
  }

  .site-overlay-hint { display: none; }

  .site-overlay .btn { pointer-events: auto; }
}

.work-grid-simple {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .work-grid-simple {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .work-grid-simple {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
  }
}

.project-card .browser-bar {
  border-radius: 1rem 1rem 0 0;
}

.project-card {
  border-radius: 1rem;
}

.project-body {
  padding: 1.35rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.project-tag {
  font-size: 0.68rem;
  font-weight: 600;
  color: #fff;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: var(--grad-brand-btn);
  box-shadow: 0 4px 12px rgba(30, 10, 54, 0.2);
}

.project-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.project-body p {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.6;
  flex: 1;
}

.project-result {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.55;
  flex: 0 0 auto !important;
}

.case-writeup .project-result {
  margin: 0.35rem 0 1rem;
  max-width: 40rem;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding-top: 0.2rem;
}

/*
  Home featured work — responsive card count (premium density):
  phone ~1 (+peek) · tablet 2 · desktop 3 · wide 4
*/
.work-scroller {
  --work-gap: 1rem;
  --work-cards: 1;
  display: flex;
  gap: var(--work-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--purple-rgb), 0.4) rgba(18, 16, 26, 0.06);
}

.work-scroller .project-card {
  /* Mobile: one card + peek of the next */
  flex: 0 0 min(85vw, 22.5rem);
  scroll-snap-align: start;
  min-width: 0;
}

@media (min-width: 640px) {
  .work-scroller {
    --work-cards: 2;
  }

  .work-scroller .project-card {
    flex-basis: calc((100% - (var(--work-cards) - 1) * var(--work-gap)) / var(--work-cards));
  }
}

@media (min-width: 960px) {
  .work-scroller {
    --work-cards: 3;
    --work-gap: 1.1rem;
  }
}

@media (min-width: 1280px) {
  .work-scroller {
    --work-cards: 4;
    --work-gap: 1.15rem;
  }
}

/* Slightly tighter copy when more cards share the row */
@media (min-width: 960px) {
  .work-scroller .project-body {
    padding: 1.05rem 1.1rem 1.2rem;
    gap: 0.55rem;
  }

  .work-scroller .project-body h3 {
    font-size: 1.05rem;
  }

  .work-scroller .project-body p:not(.project-result) {
    font-size: 0.82rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .work-scroller .project-result {
    font-size: 0.8rem;
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
  }

  .work-scroller .browser-bar {
    padding: 0.5rem 0.7rem;
  }

  .work-scroller .browser-url {
    font-size: 0.65rem;
    padding: 0.22rem 0.5rem;
  }
}

.work-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.work-toolbar .section-head { margin-bottom: 0; }

.scroll-btns { display: flex; gap: 0.45rem; }

.scroll-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.scroll-btn:hover {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}

/* Split / about */
.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }
}

.split-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.split-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.55;
}

.split-list li::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--purple-soft);
  margin-top: 0.5rem;
  flex-shrink: 0;
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: 4.5rem 0;
}

.cta-band .section-title { margin-bottom: 0.75rem; }
.cta-band .section-lead {
  margin-inline: auto;
  margin-bottom: 1.75rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 2.25rem;
  align-items: start;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 3.25rem;
  }
}

.contact-chips {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 1.75rem;
}

.contact-chip {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1.1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
}

.contact-chip .ico {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: var(--purple-tint);
  color: var(--purple);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-chip a:hover { color: var(--purple); }

.form-card {
  padding: 1.85rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

@media (min-width: 640px) {
  .form-card { padding: 2.1rem 2.2rem; }
}

.field { margin-bottom: 1rem; }

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  padding: 0.82rem 0.95rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%237a7188' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.25rem;
  cursor: pointer;
}

.field input::placeholder,
.field textarea::placeholder { color: #9b96a8; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--purple-soft);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(var(--purple-rgb), 0.14);
}

.field textarea { resize: vertical; min-height: 7.5rem; }

.field .req { color: var(--purple); }

.field-row {
  display: grid;
  gap: 0 1rem;
}

@media (min-width: 560px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-card .btn { width: 100%; margin-top: 0.35rem; }

.form-privacy {
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 1rem;
  line-height: 1.5;
}

.form-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.45rem;
}

.form-note a {
  color: var(--purple);
  font-weight: 600;
}

.what-next {
  margin-top: 1.75rem;
  padding: 1.25rem 1.2rem;
  background: var(--purple-tint);
  border: 1px solid var(--purple-line);
  border-radius: 1rem;
}

.what-next h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.65rem;
}

.what-next ol {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.65;
}

.what-next li { margin-bottom: 0.35rem; }
.what-next li:last-child { margin-bottom: 0; }

/* Trust line */
.trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 1.15rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
}

.trust-line span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.trust-line span::before {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--purple-soft);
  flex-shrink: 0;
}

/* FAQ accordion */
.faq-list {
  max-width: 46rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item[open],
.faq-item:hover {
  border-color: var(--purple-line);
  box-shadow: 0 6px 20px rgba(18, 8, 28, 0.05);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.05rem 1.25rem;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--purple-tint);
  color: var(--purple);
  font-size: 1.1rem;
  font-weight: 500;
  display: grid;
  place-items: center;
  line-height: 1;
  transition: transform 0.2s, background 0.2s, color 0.2s;
}

.faq-item[open] summary::after {
  content: "−";
  background: var(--purple);
  color: #fff;
}

.faq-item .faq-body {
  padding: 0 1.25rem 1.15rem;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.7;
  border-top: 1px solid transparent;
}

.faq-item[open] .faq-body {
  border-top-color: var(--line);
  padding-top: 0.9rem;
}

/* Home process strip */
.process-home {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .process-home {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.1rem;
  }
}

.process-home .step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.15rem;
  height: 100%;
  box-shadow: 0 2px 12px rgba(18, 8, 28, 0.03);
}

.process-home .step:hover {
  border-color: var(--purple-line);
  box-shadow: var(--shadow);
}

/* Services page — richer cards */
.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card .card-icon { margin-bottom: 1rem; }

.service-card h3 {
  font-size: 1.12rem;
  margin-bottom: 0.45rem;
}

.service-card > p {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.65;
  margin-bottom: 1rem;
  flex: 0 0 auto; /* do not stretch short text */
}

.service-copy {
  flex: 0 0 auto; /* keep copy packed at top — no mid-card white gap */
  margin-bottom: 1rem;
}

.service-copy p {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.service-copy p:last-child {
  margin-bottom: 0;
}

/* Equal-height cards: only the button sits at the bottom */
.service-card .service-list,
.service-card .service-fit {
  flex: 0 0 auto;
}

.service-fit {
  font-size: 0.8rem !important;
  line-height: 1.5 !important;
  color: var(--text-soft) !important;
  margin-bottom: 0.55rem !important;
  flex: 0 0 auto !important;
}

.service-card > p.service-fit:last-of-type {
  margin-bottom: 1rem !important;
}

.service-best {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 0.75rem;
  letter-spacing: 0.01em;
}

.service-list {
  list-style: none;
  margin: 0 0 1.15rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.service-list li {
  font-size: 0.84rem;
  color: var(--text-soft);
  padding-left: 1.15rem;
  position: relative;
  line-height: 1.45;
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--purple-soft);
}

.service-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

.service-teaser-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-teaser-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* Also available — open on the page, not inside a card/box */
.also-row {
  margin-top: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: center;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.also-row h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.also-row p {
  margin: 0 0 0.95rem;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}

.also-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
}

.service-deep {
  max-width: 44rem;
  margin: 0 auto;
}

.service-deep h2 {
  font-size: 1.15rem;
  margin: 1.75rem 0 0.65rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.service-deep > p,
.service-deep li {
  color: var(--text-soft);
  line-height: 1.65;
}

.service-deep ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.2rem;
}

.service-deep li {
  margin-bottom: 0.4rem;
}

.service-deep .fit-grid {
  display: grid;
  gap: 0.85rem;
  margin: 1rem 0 1.5rem;
}

@media (min-width: 700px) {
  .service-deep .fit-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.service-deep .fit-box {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-size: 0.92rem;
  color: var(--text-soft);
  line-height: 1.55;
}

.service-deep .fit-box strong {
  display: block;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.scope-note {
  margin: 1.75rem auto 0;
  max-width: 40rem;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-soft);
}

.scope-from-note {
  margin: 0.65rem auto 0;
  max-width: 36rem;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-soft);
}

/* Clear hierarchy under package cards */
.scope-footer {
  margin: 2.5rem auto 0;
  max-width: 52rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.scope-block {
  text-align: center;
  padding: 1.35rem 1.25rem 1.4rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.scope-block-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.65rem;
  background: var(--grad-brand-btn);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.scope-block-body {
  margin: 0 auto;
  max-width: 38rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-soft);
}

.scope-price-points {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 38rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  text-align: left;
}

.scope-price-points li {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-soft);
  padding-left: 1.1rem;
  position: relative;
}

.scope-price-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--purple);
}

.scope-piece-grid {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.1rem;
  grid-template-columns: 1fr;
  text-align: left;
}

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

.scope-piece-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.05rem 1.1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 2px);
  height: 100%;
}

.scope-piece-card h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
}

.scope-piece-card .scope-price {
  margin: 0 !important;
}

.scope-piece-meta {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted);
  margin: 0 0 0.35rem;
}

.scope-piece-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.scope-price {
  font-size: 0.95rem !important;
  font-weight: 700;
  color: var(--purple) !important;
  letter-spacing: -0.01em;
  margin: 0 0 0.55rem !important;
  flex: 0 0 auto !important;
}

#scoped .card {
  display: flex;
  flex-direction: column;
}

#scoped .card > p:not(.scope-price) {
  flex: 1;
  margin-bottom: 1rem;
}

#scoped .card .btn {
  align-self: flex-start;
  margin-top: auto;
}

/* Five package cards: wrap cleanly (2-up / 3-up), never drop a card */
.cards-scope {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

/* Wider cards so “what’s included” is readable — max 2 columns */
@media (min-width: 720px) {
  .cards-scope {
    grid-template-columns: repeat(2, 1fr);
  }
}

.package-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.package-card .service-best {
  margin-bottom: 0.75rem;
}

.package-card .service-list {
  margin: 0 0 1rem;
  flex: 1;
}

.package-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.scope-pieces {
  margin: 1.75rem auto 0;
  max-width: 44rem;
  text-align: center;
}

.scope-pieces > p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-soft);
  margin: 0 0 0.65rem;
}

.scope-pieces .scope-note {
  margin-bottom: 0.75rem;
}

.scope-piece-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1rem !important;
}

.audience-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .audience-grid { grid-template-columns: repeat(4, 1fr); }
}

.audience-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.25rem;
  height: 100%;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.audience-card:hover {
  border-color: var(--purple-line);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.audience-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.audience-card p {
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.6;
  margin: 0;
}

.service-highlight {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .service-highlight {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
  }
}

.service-highlight-copy .section-title {
  text-align: left;
  margin-bottom: 0.85rem;
}

.service-highlight-copy .section-lead {
  margin-inline: 0;
  margin-bottom: 1.25rem;
}

/* Founder / portrait block */
.founder {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .founder {
    grid-template-columns: minmax(0, 18rem) 1fr;
    gap: 3rem;
  }
}

.founder-photo {
  position: relative;
  max-width: 18rem;
  margin-inline: auto;
  border-radius: 1.35rem;
  overflow: hidden;
  border: 1px solid var(--purple-line);
  box-shadow:
    0 16px 40px rgba(18, 8, 28, 0.12),
    0 0 0 6px rgba(var(--purple-rgb), 0.08);
}

.founder-photo img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;
}

.founder-copy .section-title {
  text-align: left;
}

.founder-copy .section-lead {
  margin-bottom: 0.5rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.35rem;
}

.pill-row span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--purple-deep);
  background: var(--purple-tint);
  border: 1px solid var(--purple-line);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

/* Footer */
.footer {
  background: var(--grad-header);
  color: rgba(255, 255, 255, 0.65);
  padding: 3rem 0 1.75rem;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
  }
}

.footer .logo { color: #fff; }
.footer .logo span { color: var(--purple-soft); }

.footer-brand p {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.88rem;
  margin-top: 0.45rem;
  max-width: 18rem;
}

.footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: center;
}

@media (min-width: 768px) {
  .footer-cols { justify-content: flex-end; }
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.85rem;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.45rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.32);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: center;
}

.footer-credit {
  margin: 0;
  color: rgba(255, 255, 255, 0.4);
}

.footer-credit a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  border-bottom: 1px solid rgba(199, 125, 255, 0.35);
}

.footer-credit a:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.5);
}

/* Cookie consent — analytics */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  max-width: 32rem;
  margin-inline: auto;
  background: rgba(18, 8, 28, 0.94);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem 1.15rem;
  transform: translateY(0);
  opacity: 1;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.cookie-banner.is-hiding {
  opacity: 0;
  transform: translateY(0.75rem);
  pointer-events: none;
}

.cookie-banner-inner {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

.cookie-banner a {
  color: #e9d5ff;
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

@media (min-width: 640px) {
  .cookie-banner {
    left: auto;
    right: 1.25rem;
    bottom: 1.25rem;
    margin-inline: 0;
  }
}

/* Icons */
.icon-svg {
  width: 1.15rem;
  height: 1.15rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-svg.sm { width: 0.95rem; height: 0.95rem; }
.icon-svg.xs { width: 0.85rem; height: 0.85rem; }

/* Utility */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }

.text-link {
  color: var(--purple);
  font-weight: 600;
}

.text-link:hover { text-decoration: underline; }

/* ========== Motion system ========== */
:root {
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --reveal-duration: 0.75s;
}

/* Hero text reveal — staggered rise + soft clear */
.hero-content > * {
  opacity: 0;
  transform: translate3d(0, 1.75rem, 0);
  filter: blur(6px);
  animation: hero-in 0.95s var(--ease-out) forwards;
}

.hero-content > *:nth-child(1) { animation-delay: 0.18s; }
.hero-content > *:nth-child(2) { animation-delay: 0.36s; }
.hero-content > *:nth-child(3) { animation-delay: 0.54s; }
.hero-content > *:nth-child(4) { animation-delay: 0.72s; }

@keyframes hero-in {
  0% {
    opacity: 0;
    transform: translate3d(0, 1.75rem, 0);
    filter: blur(6px);
  }
  60% {
    opacity: 1;
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}

/* Title: slight scale settle after reveal */
.hero-content > .hero-title {
  transform: translate3d(0, 1.75rem, 0) scale(0.96);
  animation-name: hero-title-in;
  animation-duration: 1.05s;
}

@keyframes hero-title-in {
  0% {
    opacity: 0;
    transform: translate3d(0, 1.9rem, 0) scale(0.96);
    filter: blur(8px);
  }
  55% {
    opacity: 1;
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

/* Flat lavender em — no shimmer (matches mockup) */

/* Buttons: soft pop after text */
.hero-content > .hero-actions {
  transform: translate3d(0, 1.25rem, 0) scale(0.94);
  animation-name: hero-actions-in;
  animation-duration: 0.9s;
}

@keyframes hero-actions-in {
  0% {
    opacity: 0;
    transform: translate3d(0, 1.25rem, 0) scale(0.94);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

/* Media: fade in, then continuous gentle zoom */
@keyframes hero-media-in {
  from {
    opacity: 0.55;
    transform: scale(1.02);
  }
  to {
    opacity: 1;
    transform: scale(1.04);
  }
}

@keyframes hero-ken-burns {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-0.8%, -0.4%, 0);
  }
}

/* Scroll reveal base */
.reveal {
  opacity: 0;
  transform: translate3d(0, 1.75rem, 0);
  transition:
    opacity var(--reveal-duration) var(--ease-out),
    transform var(--reveal-duration) var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.reveal-left {
  opacity: 0;
  transform: translate3d(-1.5rem, 0, 0);
  transition:
    opacity var(--reveal-duration) var(--ease-out),
    transform var(--reveal-duration) var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal-left.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.reveal-right {
  opacity: 0;
  transform: translate3d(1.5rem, 0, 0);
  transition:
    opacity var(--reveal-duration) var(--ease-out),
    transform var(--reveal-duration) var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal-right.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.96);
  transition:
    opacity var(--reveal-duration) var(--ease-out),
    transform var(--reveal-duration) var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal-scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children when parent is visible */
.reveal-stagger > .reveal {
  --reveal-delay: 0s;
}

/* Card / button motion upgrades */
.card,
.audience-card,
.project-card,
.stat,
.step {
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    border-color 0.3s ease;
}

.card:hover .card-icon {
  transform: scale(1.08) rotate(-3deg);
}

.card-icon {
  transition: transform 0.4s var(--ease-out), background 0.3s ease, border-color 0.3s ease;
}

.btn {
  transition:
    transform 0.25s var(--ease-out),
    box-shadow 0.3s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-secondary:hover,
.btn-ghost:hover {
  transform: translateY(-2px);
}

/* Soft float on founder photo */
.founder-photo {
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s ease;
}

.founder-photo:hover {
  transform: translateY(-4px);
  box-shadow:
    0 22px 48px rgba(18, 8, 28, 0.16),
    0 0 0 6px rgba(var(--purple-rgb), 0.12);
}

/* Media band image subtle zoom on hover */
.media-band-photo {
  overflow: hidden;
}

.media-band-photo img {
  transition: transform 0.8s var(--ease-out);
}

.media-band:hover .media-band-photo img {
  transform: scale(1.04);
}

/* Process step numbers pulse-in when visible */
.step-num {
  transition: transform 0.45s var(--ease-out), box-shadow 0.4s ease;
}

.reveal.is-visible .step-num,
.step.reveal.is-visible .step-num {
  animation: pop-in 0.55s var(--ease-out) both;
  animation-delay: var(--reveal-delay, 0.1s);
}

@keyframes pop-in {
  from {
    transform: scale(0.7);
    opacity: 0.5;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* FAQ open animation */
.faq-item .faq-body {
  transition: padding 0.25s ease;
}

/* Nav link underline motion */
.nav-links a {
  position: relative;
}

.nav-links > a::after,
.nav-dropdown-trigger::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
  opacity: 0.85;
}

.nav-links > a:hover::after,
.nav-links > a.active::after,
.nav-dropdown-trigger:hover::after,
.nav-dropdown-trigger.active::after {
  transform: scaleX(1);
}

.nav.scrolled .nav-links > a::after,
.nav.scrolled .nav-dropdown-trigger::after {
  background: #fff;
}

.nav-dropdown-menu a::after {
  display: none;
}

/* Site preview overlay already transitions — smooth scroll hint */
/* site previews are static frames — scroll-behavior removed */

/* Reduced motion: kill motion system */
@media (prefers-reduced-motion: reduce) {
  .hero-content > * {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .hero-title em {
    animation: none !important;
    background-position: 0% 50%;
  }

  .hero-media {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .hero-particles,
  .hero-particle,
  .hero-overlay {
    animation: none !important;
  }

  .hero-particles {
    display: none !important;
  }

  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .card:hover,
  .btn:hover,
  .founder-photo:hover,
  .media-band:hover .media-band-photo img {
    transform: none !important;
  }

  .nav-links a::after {
    transition: none;
  }

  body::after {
    animation: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Soften business motifs on small screens (still present, less dense) */
@media (max-width: 700px) {
  html::before {
    opacity: 0.32;
    background-size:
      min(240px, 70vw) auto,
      min(90px, 28vw) auto,
      min(180px, 55vw) auto,
      min(180px, 55vw) auto,
      min(120px, 40vw) auto;
  }

  html::after {
    opacity: 0.1;
    background-size: cover;
    background-position: center center;
  }
}

/* ========== Pulses + colour hovers + atmosphere polish ========== */

/* Primary CTA soft pulse (attention without spam) */
.btn-primary {
  position: relative;
  animation: btn-pulse 2.8s ease-in-out infinite;
}

@keyframes btn-pulse {
  0%, 100% {
    box-shadow: 0 8px 28px rgba(var(--purple-rgb), 0.38);
  }
  50% {
    box-shadow:
      0 8px 28px rgba(var(--purple-rgb), 0.38),
      0 0 0 0 rgba(var(--purple-rgb), 0.35);
  }
}

/* Stronger pulse ring on hero / main CTAs */
.hero .btn-primary,
.cta-band .btn-primary,
.cta-actions .btn-primary {
  animation: btn-pulse-ring 2.6s ease-out infinite;
}

@keyframes btn-pulse-ring {
  0% {
    box-shadow:
      0 8px 28px rgba(var(--purple-rgb), 0.4),
      0 0 0 0 rgba(var(--purple-rgb), 0.45);
  }
  70% {
    box-shadow:
      0 8px 28px rgba(var(--purple-rgb), 0.4),
      0 0 0 14px rgba(var(--purple-rgb), 0);
  }
  100% {
    box-shadow:
      0 8px 28px rgba(var(--purple-rgb), 0.4),
      0 0 0 0 rgba(var(--purple-rgb), 0);
  }
}

.btn-primary:hover {
  animation: none;
  background: linear-gradient(135deg, var(--purple-mid) 0%, var(--purple-glow) 55%, var(--purple-soft) 100%);
  box-shadow:
    0 12px 36px rgba(var(--purple-rgb), 0.5),
    0 0 24px rgba(217, 70, 239, 0.35);
  color: #fff;
}

.btn-secondary:hover {
  background: var(--purple-tint);
  border-color: rgba(var(--purple-rgb), 0.45);
  color: var(--purple-deep);
  box-shadow: 0 8px 24px rgba(var(--purple-rgb), 0.12);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  box-shadow: 0 0 20px rgba(199, 125, 255, 0.25);
}

/* Card colour hover — fits purple system */
.card:hover,
.service-card:hover,
.audience-card:hover {
  border-color: rgba(var(--purple-rgb), 0.4);
  background: linear-gradient(165deg, #fff 0%, var(--purple-tint) 140%);
  box-shadow:
    0 16px 40px rgba(18, 8, 28, 0.08),
    0 0 0 1px rgba(var(--purple-rgb), 0.08);
}

.card:hover .card-icon {
  background: linear-gradient(145deg, rgba(var(--purple-rgb), 0.2), rgba(217, 70, 239, 0.15));
  border-color: rgba(var(--purple-rgb), 0.45);
  color: var(--purple-deep);
  box-shadow: 0 0 20px rgba(var(--purple-rgb), 0.25);
}

.card:hover h3 {
  color: var(--purple-deep);
}

/* Step numbers — gentle pulse when visible */
.step-num {
  animation: soft-pulse 3s ease-in-out infinite;
}

@keyframes soft-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(var(--purple-rgb), 0.25);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(var(--purple-rgb), 0);
  }
}

.step:hover .step-num {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
  animation: none;
  transform: scale(1.06);
}

.step:hover h3 {
  color: var(--purple-deep);
}

/* Stats colour hover */
.stat:hover {
  border-color: rgba(var(--purple-rgb), 0.35);
  background: linear-gradient(180deg, #fff, var(--purple-tint));
}

.stat:hover .stat-value {
  color: var(--purple-glow);
  filter: drop-shadow(0 0 12px rgba(217, 70, 239, 0.35));
}

/* Trust dots pulse */
.trust-line span::before {
  animation: dot-pulse 2.4s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.65; }
}

/* Eyebrow soft glow pulse */
.eyebrow {
  transition: color 0.25s ease, text-shadow 0.3s ease;
}

.section-head:hover .eyebrow,
.eyebrow:hover {
  color: var(--purple-mid);
  text-shadow: 0 0 18px rgba(var(--purple-rgb), 0.35);
}

/* Logo colour shift */
.logo {
  transition: color 0.25s ease, filter 0.3s ease;
}

.logo:hover span {
  color: var(--purple-glow);
  filter: drop-shadow(0 0 8px rgba(217, 70, 239, 0.5));
}

.nav.scrolled .logo:hover {
  color: #fff;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.35));
}

/* Project card hover colour */
.project-card:hover {
  border-color: rgba(var(--purple-rgb), 0.4);
  box-shadow:
    0 20px 48px rgba(18, 8, 28, 0.1),
    0 0 0 1px rgba(var(--purple-rgb), 0.1),
    0 0 40px rgba(var(--purple-rgb), 0.08);
}

.project-card:hover .project-tag {
  background: rgba(var(--purple-rgb), 0.16);
  color: var(--purple-deep);
}

.project-card:hover h3 {
  color: var(--purple-deep);
}

/* Contact chips */
.contact-chip {
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}

.contact-chip:hover {
  border-color: rgba(var(--purple-rgb), 0.4);
  background: var(--purple-tint);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(var(--purple-rgb), 0.1);
}

.contact-chip:hover .ico {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 0 16px rgba(var(--purple-rgb), 0.4);
}

/* Form focus glow already exists — strengthen submit hover */
.form-card .btn-primary:hover {
  filter: brightness(1.05);
}

/* Footer links colour pop */
.footer-col a {
  transition: color 0.25s ease, transform 0.25s ease, padding-left 0.25s ease;
}

.footer-col a:hover {
  color: var(--purple-soft);
  padding-left: 0.25rem;
}

/* Scroll buttons colour pulse on hover */
.scroll-btn:hover {
  background: var(--grad-brand-btn);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 20px rgba(var(--purple-rgb), 0.4);
}

/* Section decorative edge glow */
.section.bg-white,
.section.bg-surface {
  position: relative;
}

.section.bg-surface::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100% - 2rem, 36rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--purple-rgb), 0.35), transparent);
  pointer-events: none;
}

/* Floating ambient orbs inside sections (extra depth) */
.bg-surface {
  position: relative;
  overflow: hidden;
}

/* Reduce motion: kill pulse/atmosphere animations */
@media (prefers-reduced-motion: reduce) {
  body::after,
  .btn-primary,
  .hero .btn-primary,
  .cta-band .btn-primary,
  .cta-actions .btn-primary,
  .step-num,
  .trust-line span::before {
    animation: none !important;
  }

  body::after {
    transform: none !important;
  }
}
