/* ============================================
   dfrnt. — Global Stylesheet
   ============================================ */
/* NOTE: Fonts are loaded via a non-blocking <link> in each page's <head>
   (see the Google Fonts stylesheet link). The previous CSS @import created a
   render-blocking request chain (CSS → @import → font CSS → font files) and
   has been removed for faster first paint. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0e0616;
  --bg-mid:      #270f42;
  --purple:      #3E1D63;
  --purple-light:#5a2d8a;
  --accent:      #b890ff;
  --accent-strong:#8b5cf6;
  --white:       #ffffff;
  --muted:       rgba(255,255,255,0.45);
  --font-display:'Geologica', sans-serif;
  --font-serif:  'DM Serif Display', serif;
}

/* ── SHARED ACCENT UTILITIES (services-page design language) ── */
.em-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  -webkit-background-clip: text; background-clip: text;
  color: transparent !important;
  -webkit-text-stroke: 0 !important;
}
.btn-accent {
  display: inline-flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #0e0616; text-decoration: none;
  font-family: var(--font-display); font-size: 13px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 20px 48px; border-radius: 6px; border: 0; cursor: pointer;
  box-shadow: 0 12px 40px rgba(139,92,246,.35);
  transition: transform .25s ease, box-shadow .3s ease;
}
.btn-accent:hover { transform: translateY(-3px); box-shadow: 0 20px 56px rgba(139,92,246,.55); }
/* Aurora hero background — reusable version of the services hero */
.hero-aurora { position: absolute; inset: -20% -10%; pointer-events: none; z-index: 0; filter: blur(70px); opacity: .8; }
.hero-aurora span { position: absolute; border-radius: 50%; mix-blend-mode: screen; }
.hero-aurora span:nth-child(1) { width: 46vw; height: 46vw; left: -8%; top: -10%;
  background: radial-gradient(circle, rgba(139,92,246,.5), transparent 65%); animation: aurora-1 18s ease-in-out infinite; }
.hero-aurora span:nth-child(2) { width: 38vw; height: 38vw; right: -6%; top: 10%;
  background: radial-gradient(circle, rgba(184,144,255,.35), transparent 65%); animation: aurora-2 22s ease-in-out infinite; }
.hero-aurora span:nth-child(3) { width: 34vw; height: 34vw; left: 32%; bottom: -18%;
  background: radial-gradient(circle, rgba(90,45,138,.5), transparent 65%); animation: aurora-3 26s ease-in-out infinite; }
@keyframes aurora-1 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(8%,6%) scale(1.12)} }
@keyframes aurora-2 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(-7%,9%) scale(1.08)} }
@keyframes aurora-3 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(5%,-7%) scale(1.15)} }
.page-hero .hero-inner { z-index: 2; }

html { scroll-behavior: smooth; }

/* Global anchor reset — inherit text colour so links never fall back to
   browser-default blue when a scoped rule or CSS variable is unavailable. */
a { color: inherit; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-display);
  overflow-x: hidden;
  cursor: none;
}

/* ── CURSOR ── */
.cursor {
  position: fixed; width: 10px; height: 10px;
  background: var(--white); border-radius: 50%;
  pointer-events: none; z-index: 99999;
  transform: translate(-50%,-50%);
  mix-blend-mode: difference;
}
.cursor-follower {
  position: fixed; width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,.35); border-radius: 50%;
  pointer-events: none; z-index: 99998;
  transform: translate(-50%,-50%);
  transition: width .3s ease, height .3s ease, opacity .3s ease, border-color .3s ease;
}
@media (hover: none) {
  .cursor, .cursor-follower { display: none !important; }
  body { cursor: auto !important; }
}

/* ── NAV ── */
.dn-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9990;
  padding: 0 60px; height: 80px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(14,6,22,.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: background .3s ease, border-color .3s ease;
}
.dn-nav.scrolled {
  background: rgba(14,6,22,.97);
  border-bottom-color: rgba(255,255,255,.08);
}
.dn-logo {
  font-family: var(--font-display); font-weight: 900; font-size: 22px;
  letter-spacing: -.04em; color: var(--white) !important; text-decoration: none;
}
.dn-logo span { color: var(--purple-light); }
.dn-links {
  display: flex; align-items: center; gap: 40px;
  list-style: none; padding: 0; margin: 0;
}
.dn-links a {
  color: rgba(255,255,255,.5) !important; text-decoration: none !important;
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  font-weight: 400; transition: color .3s; position: relative;
}
.dn-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--purple-light);
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.dn-links a:hover, .dn-links a.active { color: var(--white) !important; }
.dn-links a:hover::after, .dn-links a.active::after { transform: scaleX(1); }
.dn-cta {
  background: var(--purple) !important; color: var(--white) !important;
  padding: 10px 22px !important; border-radius: 2px !important;
  font-weight: 700 !important; letter-spacing: .06em !important;
}
.dn-cta::after { display: none !important; }
.dn-cta:hover { background: var(--purple-light) !important; color: var(--white) !important; }

.dn-mobile-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.dn-mobile-toggle span {
  display: block; width: 24px; height: 1px; background: var(--white);
  transition: transform .3s ease, opacity .3s ease;
}
.dn-mobile-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(4px,4px); }
.dn-mobile-toggle.open span:nth-child(2) { opacity: 0; }

@media (max-width: 768px) {
  body { cursor: auto !important; }
  .dn-nav { padding: 0 24px; }
  .dn-mobile-toggle { display: flex; }
  .dn-links {
    position: fixed; top: 80px; left: 0; right: 0;
    background: rgba(14,6,22,.98); backdrop-filter: blur(20px);
    flex-direction: column; gap: 0; padding: 24px 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
    transform: translateY(-110%);
    transition: transform .4s ease, visibility .4s ease;
    visibility: hidden;
  }
  .dn-links.open { transform: translateY(0); visibility: visible; }
  .dn-links li { width: 100%; }
  .dn-links a { display: block !important; padding: 16px 32px !important; font-size: 15px !important; }
  .dn-cta { margin: 8px 32px 0 !important; padding: 14px 24px !important; text-align: center !important; display: block !important; }
}

.nav-spacer { height: 80px; }

/* ── HERO BASE ── */
.page-hero {
  min-height: 85vh; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 0 60px 80px;
  position: relative; overflow: hidden; background: var(--bg);
}
.hero-orb { position: absolute; border-radius: 50%; filter: blur(130px); pointer-events: none; }
.hero-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(90,45,138,.5) 0%, transparent 70%);
  top: -100px; right: -100px;
  animation: orb-float 10s ease-in-out infinite;
}
.hero-orb-2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(62,29,99,.35) 0%, transparent 70%);
  bottom: 0; left: 150px;
  animation: orb-float 14s ease-in-out infinite reverse;
}
@keyframes orb-float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-30px); }
}
.hero-inner { position: relative; z-index: 2; max-width: 900px; }
.hero-eyebrow {
  font-size: 11px; letter-spacing: 6px; text-transform: uppercase;
  color: rgba(255,255,255,.4); margin-bottom: 32px;
  display: flex; align-items: center; gap: 16px;
  opacity: 0; animation: fade-up 1s ease forwards .3s;
}
.hero-eyebrow::before { content: ''; width: 40px; height: 1px; background: var(--purple-light); flex-shrink: 0; }
.hero-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(52px, 7vw, 110px); line-height: .95;
  letter-spacing: -.04em; text-transform: lowercase; color: var(--white);
  margin: 0 0 40px;
  opacity: 0; animation: fade-up 1s ease forwards .5s;
}
.hero-title em {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.5);
}
.hero-sub {
  color: var(--muted); font-size: 16px; line-height: 1.8; font-weight: 300;
  margin: 0; max-width: 480px;
  opacity: 0; animation: fade-up 1s ease forwards .7s;
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── EYEBROW ── */
.eyebrow-label {
  font-size: 11px; letter-spacing: 5px; text-transform: uppercase;
  color: var(--purple-light); margin-bottom: 20px; display: block;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center;
  background: var(--white); color: var(--bg-mid);
  text-decoration: none; font-size: 13px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 20px 48px; border-radius: 2px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.btn-primary:hover { transform: translateY(-4px); box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.btn-ghost {
  display: inline-flex; align-items: center;
  background: transparent; color: var(--white);
  text-decoration: none; font-family: var(--font-display); font-size: 13px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 20px 48px; border-radius: 2px;
  border: 1px solid rgba(255,255,255,.2);
  transition: border-color .3s, background .3s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.05); }
.section-link {
  color: var(--muted); text-decoration: none; font-size: 12px;
  letter-spacing: 3px; text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,.2); padding-bottom: 4px;
  transition: color .3s, border-color .3s; white-space: nowrap;
}
.section-link:hover { color: var(--white); border-color: var(--white); }

/* ── FOOTER ── */
.site-footer {
  background:
    radial-gradient(circle at top right, rgba(90,45,138,.2), transparent 35%),
    linear-gradient(180deg, #0b0612 0%, #080510 100%);
  padding: 44px 60px;
  border-top: 1px solid rgba(255,255,255,.08);
  position: relative;
  overflow: hidden;
}
.site-footer *,
.site-footer *::before,
.site-footer *::after {
  box-sizing: border-box;
}
.site-footer p {
  margin: 0;
}
.site-footer a {
  color: rgba(255,255,255,.76) !important;
  text-decoration: none !important;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,.18), transparent);
}
.footer-top {
  position: relative;
  z-index: 1;
  width: min(100%, 1500px);
  margin: 0 auto;
  display: grid !important;
  grid-template-columns: minmax(300px, 1fr) minmax(460px, 1fr) minmax(300px, 1fr);
  gap: 56px;
  align-items: center;
}
.footer-logo {
  display: inline-block;
  width: fit-content;
  font-family: var(--font-display); font-weight: 900; font-size: 30px;
  letter-spacing: -.04em; color: var(--white) !important; text-decoration: none !important;
}
.footer-logo span { color: var(--purple-light); }
.footer-brand-block {
  display: grid !important;
  gap: 14px;
  max-width: 520px;
}
.footer-tag {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,.78);
  max-width: 58ch;
}
.footer-menu-stack {
  display: grid !important;
  grid-template-columns: repeat(3, max-content);
  gap: 42px;
  justify-self: center;
  width: auto;
}
.footer-links-group {
  display: grid !important;
  gap: 10px;
  align-content: start;
}
.footer-heading {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--white);
  font-weight: 800;
}
.site-footer .footer-nav,
.site-footer .footer-social,
.site-footer .footer-legal {
  display: grid !important;
  grid-auto-flow: row !important;
  gap: 8px !important;
  align-items: start;
  justify-items: start;
}
.site-footer .footer-nav a,
.site-footer .footer-social a,
.site-footer .footer-legal a {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  color: rgba(255,255,255,.56) !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.4;
  transition: color .3s ease, transform .3s ease;
}
.site-footer .footer-nav a:hover,
.site-footer .footer-social a:hover,
.site-footer .footer-legal a:hover {
  color: var(--white) !important;
  transform: translateX(3px);
}
.footer-bottom {
  position: relative;
  z-index: 1;
  width: min(100%, 1500px);
  margin: 24px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: center;
}
.footer-meta {
  display: grid !important;
  gap: 4px;
  justify-self: end;
  align-self: center;
  text-align: right;
}
.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,.42);
  letter-spacing: .05em;
  line-height: 1.5;
}
.site-footer .footer-copy a {
  color: rgba(255,255,255,.62) !important;
  text-decoration: none !important;
}
.site-footer .footer-copy a:hover { color: var(--white) !important; }

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── SCROLL PROGRESS BAR (injected by script.js) ── */
.dn-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  z-index: 9999; pointer-events: none;
  background: linear-gradient(90deg, #b890ff, #8b5cf6);
  box-shadow: 0 0 12px rgba(139,92,246,.6);
  transition: width .08s linear;
}

/* ── IMAGE FALLBACK MONOGRAMS (when an image file is missing) ── */
.img-fallback {
  position: relative;
  background:
    radial-gradient(circle at 30% 25%, rgba(184,144,255,.28), transparent 55%),
    linear-gradient(135deg, #1a0a2e 0%, #3a1c5c 55%, #5a2d8a 100%);
}
.img-fallback-mono {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 900;
  letter-spacing: -.04em; color: rgba(255,255,255,.82);
  font-size: clamp(28px, 6vw, 52px);
  text-shadow: 0 4px 24px rgba(0,0,0,.4);
}
.v2-cl-logo.img-fallback .img-fallback-mono { font-size: 38px; }

/* ── ACCESSIBILITY: visible focus for keyboard users (trust + usability) ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--purple-light);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── REDUCED MOTION: respect user preference (professional + accessible) ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  [data-tilt] { transform: none !important; }
}

@media (max-width: 1024px) {
  .page-hero { padding: 0 32px 60px; }
  .site-footer { padding: 40px 32px; }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: start;
  }
  .footer-brand-block {
    max-width: 100%;
  }
  .footer-menu-stack {
    justify-self: start;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
  }
  .footer-meta {
    justify-self: start;
    text-align: left;
  }
}
@media (max-width: 768px) {
  .site-footer { padding: 40px 32px; }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-menu-stack {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    gap: 14px;
  }
}

/* ── LEGAL PAGES ── */
.legal-wrap {
  padding: 80px 60px 120px;
  border-top: 1px solid rgba(255,255,255,.05);
}
.legal-inner {
  max-width: 900px;
  margin: 0 auto;
}
.legal-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 32px;
}
.legal-meta::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--purple-light);
}
.legal-lead {
  max-width: 720px;
  font-size: 16px;
  line-height: 1.9;
  color: rgba(255,255,255,.68);
  margin-bottom: 48px;
}
.legal-section {
  padding: 32px 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.legal-section:last-child {
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.legal-section h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.02em;
  text-transform: lowercase;
  margin-bottom: 16px;
}
.legal-section p,
.legal-section li {
  font-size: 15px;
  line-height: 1.9;
  color: rgba(255,255,255,.68);
}
.legal-section p + p,
.legal-section ul,
.legal-section ol {
  margin-top: 16px;
}
.legal-section ul,
.legal-section ol {
  padding-left: 22px;
}
.legal-section a {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,.28);
}
.legal-section a:hover {
  text-decoration-color: var(--white);
}
@media (max-width: 1024px) {
  .legal-wrap {
    padding: 60px 32px 80px;
  }
}
