/* =====================================================================
   TRAVERSE DESIGNS — styles.css
   Direction: Kinetic Grid
   Palette: deep purple/black with purple-pale accents
   Fonts:   Space Grotesk (display), Inter (body)
   ===================================================================== */

/* -----------------------------------------------------------
   1. RESET & TOKENS
   ----------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Palette */
  --bg:         #06040B;
  --bg-alt:     #0D0818;
  --purple:     #6B35B7;
  --purple-soft:#8B4FD8;
  --purple-lite:#AA78F0;
  --accent:     #AA78F0;          /* highlight colour used throughout */
  --ink:        #FFFFFF;
  --mute:       rgba(255, 255, 255, 0.55);
  --mute-soft:  rgba(255, 255, 255, 0.85);
  --border:     rgba(255, 255, 255, 0.12);

  /* Typography */
  --ff-display: 'Space Grotesk', sans-serif;
  --ff-body:    'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff-body);
  font-weight: 400;
  line-height: 1.55;
  overflow-x: hidden;
  cursor: none;                   /* replaced by custom cursor on desktop */
}

img,
svg { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
button {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

/* Custom cursor applies everywhere on desktop */
body[data-direction="kinetic"] *,
body[data-direction="kinetic"] a,
body[data-direction="kinetic"] button,
body[data-direction="kinetic"] input,
body[data-direction="kinetic"] textarea,
body[data-direction="kinetic"] select { cursor: none; }

/* -----------------------------------------------------------
   2. TYPOGRAPHY PRESETS
   ----------------------------------------------------------- */
.display {
  font-family: var(--ff-display);
  font-weight: 500;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  line-height: 0.88;
}

.display-mid {
  letter-spacing: -0.03em;
  line-height: 0.98;
}

.display-lg {
  font-size: clamp(3rem, 8vw, 7.5rem);
  letter-spacing: -0.04em;
  line-height: 0.88;
}

.mono {
  font-weight: 400;
}

.label {
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--accent);
}

.accent { color: var(--accent); }
.muted  { color: var(--mute); }

/* -----------------------------------------------------------
   3. CUSTOM CURSOR
   ----------------------------------------------------------- */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  mix-blend-mode: difference;
  will-change: transform;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  transform: translate(-100px, -100px);
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  z-index: 9997;
  transform: translate(-100px, -100px);
}

/* -----------------------------------------------------------
   4. NAVIGATION
   ----------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 6, 18, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-inner {
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: opacity 0.2s;
}

.nav-brand:hover { opacity: 0.85; }

.nav-brand-text span {
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.55;
  line-height: 1.2;
}

.nav-list {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.nav-list a {
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 0.2s;
}

.nav-list a:hover { color: var(--purple); }

.nav-cta {
  background: var(--accent);
  color: var(--bg);
  padding: 0.7rem 1.2rem;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform 0.15s, box-shadow 0.15s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(170, 120, 240, 0.35);
}

/* Hamburger toggle — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 22px;
  padding: 0;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s, opacity 0.2s;
  transform-origin: center;
}

/* Mobile drawer */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  background: none;
  border: none;
  padding: 0.5rem;
}

.mobile-menu-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  text-align: center;
}

.mobile-menu-list a {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(2rem, 8vw, 3rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 0.2s;
}

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

.mobile-menu-cta {
  background: var(--accent);
  color: var(--bg);
  padding: 1rem 1.8rem;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* -----------------------------------------------------------
   5. HERO
   ----------------------------------------------------------- */
.hero {
  position: relative;
  min-height: calc(100vh - 56px);
  background: var(--bg);
  padding: 7rem 1.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 80px 80px;
}

.hero-bloom {
  position: absolute;
  width: 60vw;
  height: 60vw;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: radial-gradient(circle, rgba(107, 53, 183, 0.25) 0%, transparent 60%);
  transition: left 0.6s ease, top 0.6s ease;
}

.hero-ambient {
  position: absolute;
  width: 75vw;
  height: 75vw;
  max-width: 1000px;
  max-height: 1000px;
  left: 18%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: radial-gradient(circle, rgba(170, 120, 240, 0.2) 0%, rgba(107, 53, 183, 0.13) 35%, transparent 65%);
  filter: blur(22px);
  animation: kinFloat 18s ease-in-out infinite;
}

.hero-inner {
  position: relative;
  max-width: 1500px;
  margin: 0 auto;
  width: 100%;
}

.hero-logo {
  margin-bottom: clamp(1.2rem, 2.5vw, 2rem);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.hero-logo img {
  height: clamp(48px, 5.5vw, 78px);
  width: auto;
}

.hero-headline {
  font-family: var(--ff-display);
  font-size: clamp(2.8rem, 9.5vw, 9.5rem);
  color: var(--ink);
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  font-weight: 500;
  position: relative;
}

.hero-headline .hl-1 { display: block; }

.hero-headline .hl-2 {
  display: block;
  color: var(--accent);
  font-weight: 500;
  transform-origin: left center;
  animation: kinPullsTug 6s ease-in-out infinite;
  position: relative;
}

.hero-headline .hl-3 {
  display: block;
  font-weight: 900;
  font-stretch: 125%;
  letter-spacing: -0.055em;
  font-size: 1.08em;
}

.hero-headline .hl-dot { color: var(--accent); }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.hero-copy { grid-column: span 2; }

.hero-sub {
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  line-height: 1.55;
  color: var(--ink);
  opacity: 0.85;
}

.hero-meta {
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 1.2rem;
}

.hero-built-for {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-built-for ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1.5rem;
}

.hero-built-for li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.95rem;
  line-height: 1.35;
}

.hero-built-for .bullet {
  color: var(--accent);
  font-size: 28px;
  line-height: 0;
  font-weight: 700;
  position: relative;
  top: 0.05em;
}

.hero-built-for strong {
  color: var(--ink);
  font-weight: 500;
}

.hero-built-for .muted {
  color: var(--mute);
  opacity: 0.85;
}

.hero-ctas {
  grid-column: span 4;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 520px;
  margin-top: 1rem;
}

.btn-primary,
.btn-secondary {
  padding: 1rem 1.5rem;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  display: block;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(170, 120, 240, 0.4);
}

.btn-secondary {
  border: 1px solid var(--accent);
  color: var(--accent);
}

.btn-secondary:hover {
  background: rgba(170, 120, 240, 0.1);
}

.btn-small { display: inline-block; width: auto; padding: 1rem 1.4rem; }

/* Floating hero bubbles */
.bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.bubble {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: calc(var(--r) * 2);
  height: calc(var(--r) * 2);
  margin-left: calc(var(--r) * -1);
  margin-top:  calc(var(--r) * -1);
  border-radius: 50%;
  animation: var(--dur) ease-in-out var(--delay) infinite;
}

.bubble-outline {
  border: 1.5px solid var(--accent);
  opacity: 0.55;
  animation-name: kinBub0;
}

.bubble-dashed {
  border: 1.5px dashed var(--accent);
  opacity: 0.5;
  animation-name: kinBub1;
}

.bubble-filled {
  background: var(--purple);
  opacity: 0.6;
  animation-name: kinBub2;
}

.bubble-dot {
  background: var(--purple);
  opacity: 0.55;
  animation-name: kinBub3;
}

/* -----------------------------------------------------------
   6. TICKER
   ----------------------------------------------------------- */
.ticker {
  background: var(--accent);
  color: var(--bg);
  padding: 0.9rem 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.ticker-track {
  display: flex;
  gap: 2rem;
  white-space: nowrap;
  animation: kinTicker 30s linear infinite;
  width: max-content;
}

.ticker-item {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 2rem;
}

/* -----------------------------------------------------------
   7. SECTION CHROME
   ----------------------------------------------------------- */
.section {
  padding: 8rem 1.5rem;
  color: var(--ink);
}

.section-inner {
  max-width: 1500px;
  margin: 0 auto;
}

.section-label {
  font-weight: 600;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.6rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-label-bar {
  width: 40px;
  height: 2px;
  background: var(--accent);
}

.section-heading { margin-bottom: 4rem; }

/* -----------------------------------------------------------
   8. ABOUT / STUDIO
   ----------------------------------------------------------- */
.section-about { background: var(--bg); }

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 5rem;
}

.about-copy .display {
  font-size: clamp(2.4rem, 5.5vw, 5rem);
  margin-bottom: 3rem;
}

.about-copy p {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.6;
  margin-bottom: 1.2rem;
  opacity: 0.85;
  max-width: 600px;
}

.pillars {
  display: flex;
  flex-direction: column;
}

.pillar {
  padding: 1.6rem 1.5rem;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem;
  transition: background 0.2s;
}

.pillar:last-child { border-bottom: 1px solid var(--border); }
.pillar:hover { background: rgba(107, 53, 183, 0.08); }

.pillar-num {
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.pillar h4 {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.pillar p {
  font-size: 1rem;
  color: var(--mute);
  line-height: 1.55;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 5rem;
  border: 1px solid var(--border);
}

.stat {
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat + .stat { border-left: 1px solid var(--border); }

.stat-num {
  font-family: var(--ff-display);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.98;
  text-transform: uppercase;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  color: var(--accent);
}

.stat-label {
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}

/* -----------------------------------------------------------
   9. SERVICES
   ----------------------------------------------------------- */
.section-services { background: var(--bg); }

.section-services .section-heading { font-size: clamp(2.4rem, 5.5vw, 5rem); }

.services-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.services-list {
  position: sticky;
  top: 6rem;
}

.service-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 1.4rem 0;
  border-top: 1px solid var(--border);
  color: var(--ink);
  transition: color 0.2s;
}

.services-list .service-item:last-child { border-bottom: 1px solid var(--border); }

.service-item > span {
  display: inline-block;
  vertical-align: middle;
}

.service-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.2rem;
  align-items: center;
}

.service-num {
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.14em;
  opacity: 0.6;
}

.service-title {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.service-arrow {
  font-size: 16px;
  opacity: 0.4;
  transition: opacity 0.2s, transform 0.2s;
}

.service-item.is-active { color: var(--accent); }
.service-item.is-active .service-arrow { opacity: 1; transform: translateX(2px); }
.service-item:hover { color: var(--accent); }

.service-detail {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 3rem;
  min-height: 460px;
  position: relative;
  overflow: hidden;
}

.service-detail-bloom {
  position: absolute;
  top: -40%;
  right: -30%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(107, 53, 183, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.service-detail-inner { position: relative; }

.service-detail-meta {
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.service-detail h3 {
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  margin-bottom: 1.5rem;
}

.service-detail p {
  font-size: 1.15rem;
  line-height: 1.6;
  opacity: 0.85;
  margin-bottom: 2rem;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.tag {
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.5rem 0.9rem;
  background: rgba(107, 53, 183, 0.2);
  color: var(--purple-lite);
  border: 1px solid rgba(107, 53, 183, 0.32);
}

/* -----------------------------------------------------------
   10. PROCESS
   ----------------------------------------------------------- */
.section-process { background: var(--bg-alt); }

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 2.5rem;
}

.process-step {
  background: var(--bg);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.process-step-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.process-step-head .mono {
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}

.process-num {
  font-family: var(--ff-display);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.98;
  text-transform: uppercase;
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  color: var(--accent);
}

.process-step h4 {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.process-step p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--mute);
}

/* -----------------------------------------------------------
   11. TESTIMONIALS
   ----------------------------------------------------------- */
.section-testimonials {
  background: var(--bg);
  padding-bottom: 0;
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 5rem;
}

.testi {
  border: 1px solid var(--border);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  transition: border-color 0.25s, background 0.25s;
}

.testi:hover {
  border-color: var(--accent);
  background: rgba(107, 53, 183, 0.09);
}

.testi-quote-mark {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 40px;
  color: var(--accent);
  line-height: 1;
}

.testi p {
  font-size: 1.05rem;
  line-height: 1.55;
  flex: 1;
}

.testi-attr {
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
}

/* -----------------------------------------------------------
   12. FAQ
   ----------------------------------------------------------- */
.section-faq { background: var(--bg); }

.faq-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}

.faq-layout h2 {
  font-size: clamp(2.2rem, 4.5vw, 4rem);
}

.faq-list { display: flex; flex-direction: column; }

.faq-item {
  border-top: 1px solid var(--border);
}

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

.faq-q {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.6rem 0;
  text-align: left;
  color: var(--ink);
}

.faq-num {
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.faq-q-text {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.faq-icon {
  width: 32px;
  height: 32px;
  border: 1px solid var(--accent);
  color: var(--accent);
  display: grid;
  place-items: center;
  transition: transform 0.3s;
}

.faq-item.is-open .faq-icon { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item.is-open .faq-a { max-height: 500px; }

.faq-a p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--mute);
  padding-bottom: 1.6rem;
  padding-left: 3rem;
}

/* -----------------------------------------------------------
   13. CONTACT
   ----------------------------------------------------------- */
.section-contact { background: var(--bg-alt); }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}

.contact-left h2 { margin-bottom: 2rem; }

.contact-sub {
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.85;
  max-width: 460px;
  margin-bottom: 3rem;
}

.contact-rows { display: flex; flex-direction: column; }

.contact-row {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.contact-row .label {
  font-size: 15px;
}

.contact-row .mono {
  font-size: 1rem;
  transition: color 0.2s;
}

.contact-row a.mono:hover { color: var(--accent); }
.contact-row .muted { opacity: 0.7; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  position: relative;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field label {
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.4rem;
}

.field input,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 1rem 1.2rem;
  color: var(--ink);
  font-weight: 400;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.field input::placeholder,
.field textarea::placeholder { color: rgba(255, 255, 255, 0.35); }

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

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

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

.form-submit {
  padding: 1.3rem;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.15s, box-shadow 0.15s;
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(170, 120, 240, 0.4);
}

.form-submit.is-sent {
  background: var(--purple);
  color: var(--ink);
  cursor: default;
}

.form-submit.is-sent:hover { transform: none; box-shadow: none; }

/* -----------------------------------------------------------
   14. FOOTER
   ----------------------------------------------------------- */
.footer {
  background: var(--bg);
  color: var(--ink);
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-brand img {
  height: 24px;
  width: auto;
}

.footer-brand-sub {
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.55;
  padding-left: 0.85rem;
  border-left: 1px solid var(--border);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-links a {
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--purple); }

.footer-meta {
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.footer-vat { font-size: 13px; opacity: 0.75; }

/* -----------------------------------------------------------
   15. ANIMATIONS
   ----------------------------------------------------------- */
@keyframes kinTicker {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.333%); }
}

@keyframes kinFloat {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50%      { transform: translate(calc(-50% - 4vw), calc(-50% + 2vw)) scale(1.08); }
}

@keyframes kinPullsTug {
  0%, 100% { transform: translateX(0) skewX(0deg); }
  50%      { transform: translateX(3.3vw) skewX(-9deg); }
}

@keyframes kinBub0 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(var(--dx), var(--dy)) scale(1.05); }
}

@keyframes kinBub1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(calc(var(--dx) * -1), var(--dy)) scale(0.95); }
}

@keyframes kinBub2 {
  0%, 100% { transform: translate(0, 0) scale(0.98); }
  33%      { transform: translate(var(--dx), calc(var(--dy) * -1)) scale(1.03); }
  66%      { transform: translate(calc(var(--dx) * 0.4), var(--dy)) scale(1); }
}

@keyframes kinBub3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(var(--dx), var(--dy)) scale(1.1); }
}

/* -----------------------------------------------------------
   16. RESPONSIVE
   ----------------------------------------------------------- */
/* Tablet and below */
@media (max-width: 960px) {
  body[data-direction="kinetic"],
  body[data-direction="kinetic"] *,
  body[data-direction="kinetic"] a,
  body[data-direction="kinetic"] button,
  body[data-direction="kinetic"] input,
  body[data-direction="kinetic"] textarea,
  body[data-direction="kinetic"] select { cursor: auto; }

  .cursor-dot,
  .cursor-ring { display: none; }

  /* Nav collapses to brand + hamburger */
  .nav-inner { grid-template-columns: 1fr auto; }
  .nav-list,
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .hero-grid,
  .about-grid,
  .services-layout,
  .faq-layout,
  .contact-layout,
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat + .stat { border-left: none; }
  .stat:nth-child(3),
  .stat:nth-child(4) { border-top: 1px solid var(--border); }
  .stat:nth-child(odd)  { border-right: 1px solid var(--border); }

  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid   { grid-template-columns: 1fr; }

  .services-list { position: static; }
}

/* Phone */
@media (max-width: 640px) {
  .hero { padding: 6rem 1.1rem 2rem; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy,
  .hero-built-for,
  .hero-ctas { grid-column: span 1; }
  .hero-built-for ul { grid-template-columns: 1fr; }
  .hero-ctas { grid-template-columns: 1fr; }

  .stats-grid { grid-template-columns: 1fr; }
  .stat + .stat { border-top: 1px solid var(--border); border-left: none; }
  .stat:nth-child(odd) { border-right: none; }

  .process-grid { grid-template-columns: 1fr; }

  .section { padding: 5rem 1.1rem; }
  .nav     { padding: 1rem; }

  /* Footer: centre all three rows on mobile.
     justify-self ensures each grid item centres within its cell — more
     reliable than text-align across Safari/Chrome. */
  .footer-inner    { text-align: center; justify-items: center; }
  .footer-brand,
  .footer-links,
  .footer-meta     { justify-self: center; }
  .footer-brand    { justify-content: center; }
  .footer-meta     { text-align: center; align-items: center; }

  .hero-headline { font-size: clamp(2.4rem, 13vw, 4.5rem); }
  .hero-headline .hl-3 { font-size: 1.02em; }

  /* Tame motion on small screens */
  .hero-headline .hl-2 { animation-duration: 8s; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track,
  .hero-ambient,
  .hero-headline .hl-2,
  .bubble { animation: none; }
}

/* -----------------------------------------------------------
   17. POLICY PAGES (Terms, Privacy, Cookies, Anti-Slavery)
   Long-form legal copy. Kept intentionally plain for readability.
   ----------------------------------------------------------- */
.policy {
  background: var(--bg);
  color: var(--ink);
  padding: 9rem 1.5rem 6rem;
}

.policy-inner {
  max-width: 820px;
  margin: 0 auto;
}

.policy-label {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.policy-label::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

.policy-title {
  font-family: var(--ff-display);
  font-weight: 500;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 0.95;
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin-bottom: 2.5rem;
}

.policy-intro {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ink);
  opacity: 0.9;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.policy-body {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  opacity: 0.85;
}

.policy-body h2 {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 1;
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.policy-body h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }

.policy-body h3 {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 1;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.policy-body p { margin-bottom: 1rem; }

.policy-body strong { color: var(--ink); font-weight: 600; }

.policy-body em { font-style: italic; color: var(--ink); }

.policy-body a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.policy-body a:hover { color: var(--purple); }

.policy-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem 0;
}

.policy-body ul li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
}

.policy-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 1px;
  background: var(--accent);
}

.policy-def {
  padding-left: 1rem;
  border-left: 2px solid var(--border);
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
}

.policy-def strong { color: var(--accent); }

.policy-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2rem;
  font-size: 0.92rem;
  border: 1px solid var(--border);
}

.policy-table th,
.policy-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.policy-table th {
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

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

.policy-table td:first-child {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  width: 22%;
}

@media (max-width: 640px) {
  .policy { padding: 7rem 1.1rem 4rem; }
  .policy-table { font-size: 0.85rem; }
  .policy-table th,
  .policy-table td { padding: 0.7rem 0.8rem; }
  .policy-table td:first-child { white-space: normal; }
}

/* -----------------------------------------------------------
   18. COOKIE CONSENT BANNER
   ----------------------------------------------------------- */
.cc {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: ccFade 0.28s ease both;
}

.cc[hidden] { display: none; }

.cc-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 4, 11, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.cc-card {
  position: relative;
  background: var(--bg-alt);
  border: 1px solid var(--purple-border, rgba(107, 53, 183, 0.5));
  padding: 2.25rem 2rem 1.75rem;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(170, 120, 240, 0.08);
  animation: ccRise 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.cc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple) 0%, var(--accent) 100%);
}

.cc-title {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.5vw, 1.7rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.9rem;
}

.cc-desc {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--ink);
  opacity: 0.82;
  margin-bottom: 1.5rem;
}

.cc-desc a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.cc-desc a:hover { color: var(--purple); }

.cc-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.cc-btn {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.95rem 1.1rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s, border-color 0.15s;
  line-height: 1.2;
}

.cc-btn-accept {
  background: var(--accent);
  color: var(--bg);
  border: 1px solid var(--accent);
}

.cc-btn-accept:hover,
.cc-btn-accept:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(170, 120, 240, 0.4);
  outline: none;
}

.cc-btn-reject {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.cc-btn-reject:hover,
.cc-btn-reject:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.5);
  outline: none;
}

/* Prevent body scroll while the banner is open */
body.cc-open { overflow: hidden; }

@keyframes ccFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes ccRise {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 480px) {
  .cc-card { padding: 1.75rem 1.4rem 1.4rem; }
  .cc-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .cc,
  .cc-card { animation: none; }
}

/* -----------------------------------------------------------
   19. CONTACT FORM — error states, Turnstile, message area
   ----------------------------------------------------------- */
.field-error {
  display: block;
  min-height: 1em;
  margin-top: 0.4rem;
  font-size: 0.82rem;
  color: #ff7a7a;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.field.has-error input,
.field.has-error textarea,
.field.has-error select {
  border-color: #ff7a7a;
  box-shadow: 0 0 0 1px rgba(255, 122, 122, 0.25);
}

.field.has-error label {
  color: #ff9a9a;
}

.cf-turnstile {
  margin-top: 0.5rem;
  min-height: 65px;  /* reserves space so layout doesn't jump when widget loads */
}

.form-message {
  padding: 0.95rem 1.1rem;
  border: 1px solid transparent;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-top: 0.5rem;
}

.form-message-success {
  background: rgba(170, 120, 240, 0.1);
  border-color: rgba(170, 120, 240, 0.4);
  color: var(--accent);
}

.form-message-error {
  background: rgba(255, 122, 122, 0.08);
  border-color: rgba(255, 122, 122, 0.4);
  color: #ffb3b3;
}

/* -----------------------------------------------------------
   20. ERROR PAGES (404, 403, 500)
   ----------------------------------------------------------- */
.error-page {
  background: var(--bg);
  color: var(--ink);
  min-height: calc(100vh - 200px);  /* leave room for nav + footer */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 1.5rem 5rem;
  position: relative;
  overflow: hidden;
}

.error-page::before {
  content: '';
  position: absolute;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(107, 53, 183, 0.18) 0%, rgba(107, 53, 183, 0.06) 35%, transparent 65%);
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
}

.error-inner {
  position: relative;
  z-index: 1;
  max-width: 620px;
  text-align: center;
}

.error-code {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(6rem, 18vw, 12rem);
  letter-spacing: -0.05em;
  line-height: 0.88;
  color: var(--accent);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.error-title {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1.3rem;
}

.error-sub {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.6;
  color: var(--ink);
  opacity: 0.75;
  margin-bottom: 2.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.error-actions {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.error-actions .btn-primary,
.error-actions .btn-secondary {
  display: inline-block;
  width: auto;
}

@media (max-width: 480px) {
  .error-page { padding: 6rem 1.1rem 4rem; }
  .error-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  .error-actions .btn-primary,
  .error-actions .btn-secondary {
    width: 100%;
  }
}

/* -----------------------------------------------------------
   21. SERVICES — MOBILE ACCORDION
   Desktop: mobile panels are hidden and the fixed .service-detail
            pane shows the current selection.
   Mobile:  .service-detail is hidden, each service reveals its
            own inline accordion panel on tap.
   ----------------------------------------------------------- */

/* Hide the mobile accordion panel on desktop */
.service-mobile-panel {
  display: none;
}

/* Below the services column-split breakpoint, switch to accordion */
@media (max-width: 960px) {
  /* Forcefully hide the fixed detail pane (and its glow) on mobile */
  .service-detail,
  .service-detail-bloom { display: none !important; }

  /* Single-column flow for the services layout */
  .services-layout { grid-template-columns: 1fr; }

  /* Accordion panel — collapsed by default via max-height.
     Using max-height rather than grid-template-rows for broad browser support
     (iOS Safari <17.4 doesn't animate grid-template-rows). */
  .service-mobile-panel {
    display: block;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, margin 0.35s ease, border-color 0.35s ease;
    background: var(--bg-alt);
    border: 1px solid transparent;
    margin: 0 0.5rem;
  }

  .service-mobile-inner {
    padding: 1.5rem 1.4rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
  }

  /* Open state: expand to a generous max-height, add the bordered card treatment */
  .service-item.is-open + .service-mobile-panel {
    max-height: 520px;     /* tall enough for any panel content */
    border-color: var(--border);
    margin: 0.6rem 0.5rem 1.1rem;
  }

  /* Flip the arrow icon when open, for visual affordance */
  .service-item .service-arrow {
    transition: transform 0.25s ease;
  }
  .service-item.is-open .service-arrow {
    transform: rotate(90deg);
  }

  /* Inline body paragraph inside the open panel */
  .service-mobile-body {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink);
    opacity: 0.9;
    margin: 0;
  }

  /* Keep the Discuss CTA compact, left-aligned within the panel */
  .service-mobile-inner .btn-primary {
    align-self: flex-start;
  }

  /* Neutralise the is-active highlight on mobile — accordion is-open takes over */
  .service-item.is-active { color: inherit; }
  .service-item.is-open { color: var(--accent); }
  .service-item.is-open .service-arrow { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .service-mobile-panel,
  .service-item .service-arrow { transition: none; }
}
