/* ─────────────────────────────────────────────────────────────────────────
   Alexa Cahn Biokineticists — design system
   Soft warm clinical · purple gradient accent from logo
   ───────────────────────────────────────────────────────────────────────── */

:root {
  /* warm-tinted neutrals */
  --bg:        oklch(0.985 0.006 320);
  --bg-2:      oklch(0.965 0.010 320);
  --bg-3:      oklch(0.945 0.014 318);
  --card:      oklch(1 0 0);
  --line:      oklch(0.90 0.014 315);
  --line-soft: oklch(0.94 0.010 315);

  /* ink (deep purple-leaning) */
  --ink:       oklch(0.22 0.045 295);
  --ink-2:     oklch(0.38 0.035 295);
  --ink-3:     oklch(0.55 0.025 295);
  --ink-4:     oklch(0.72 0.018 305);

  /* accent — pulled from the logo gradient */
  --accent:        #6b3df5;
  --accent-deep:   #4a23b8;
  --accent-soft:   #c79bff;
  --accent-tint:   oklch(0.92 0.045 305);
  --accent-wash:   oklch(0.965 0.022 305);

  --grad: linear-gradient(135deg, #c79bff 0%, #8a5aff 45%, #6b3df5 100%);
  --grad-soft: linear-gradient(135deg, #f1e3ff 0%, #e3ceff 100%);

  /* typography */
  --f-display: "Manrope", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --f-body:    "Manrope", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* density */
  --d:         1;          /* density multiplier — tweak knob */
  --r-sm:      8px;
  --r-md:      14px;
  --r-lg:      22px;
  --r-xl:      32px;

  /* shadows — soft, light-touch */
  --sh-1: 0 1px 2px rgba(36, 14, 70, 0.04), 0 2px 6px rgba(36, 14, 70, 0.04);
  --sh-2: 0 2px 4px rgba(36, 14, 70, 0.05), 0 12px 28px rgba(36, 14, 70, 0.08);
  --sh-3: 0 4px 8px rgba(36, 14, 70, 0.06), 0 24px 56px rgba(36, 14, 70, 0.12);
  --sh-purple: 0 8px 24px -8px rgba(107, 61, 245, 0.4);

  --maxw: 1240px;
  --nav-h: 132px;
}

[data-theme="dark"] {
  --bg:        oklch(0.16 0.025 295);
  --bg-2:      oklch(0.20 0.030 295);
  --bg-3:      oklch(0.24 0.035 295);
  --card:      oklch(0.22 0.030 295);
  --line:      oklch(0.32 0.030 295);
  --line-soft: oklch(0.28 0.025 295);
  --ink:       oklch(0.97 0.010 310);
  --ink-2:     oklch(0.82 0.020 310);
  --ink-3:     oklch(0.68 0.025 305);
  --ink-4:     oklch(0.52 0.030 305);
  --accent-tint: oklch(0.32 0.060 295);
  --accent-wash: oklch(0.24 0.040 295);
  --sh-1: 0 1px 2px rgba(0,0,0,.4), 0 2px 6px rgba(0,0,0,.3);
  --sh-2: 0 2px 4px rgba(0,0,0,.4), 0 12px 28px rgba(0,0,0,.4);
  --sh-3: 0 4px 8px rgba(0,0,0,.5), 0 24px 56px rgba(0,0,0,.55);
}

/* alt type pairings (tweakable) */
[data-type="serif"]   { --f-display: "Cormorant Garamond", Georgia, serif; }
[data-type="editorial"] { --f-display: "Fraunces", Georgia, serif; }
[data-type="modern"]  { --f-display: "DM Serif Display", Georgia, serif; --f-body: "DM Sans", system-ui, sans-serif; }

/* base */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; width: 100%; overflow-x: hidden; }
html {
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  background: var(--bg);
  min-height: 100%;
}
body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  letter-spacing: -0.005em;
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
}

/* site-wide gently-drifting purple blob field */
.bg-field {
  position: fixed; inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.bg-field span {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  will-change: transform;
}
.bg-field span:nth-child(1) {
  top: -10%; left: -8%;
  width: 46vw; height: 46vw;
  background: radial-gradient(circle at 50% 50%, rgba(199,155,255,0.40), transparent 65%);
  animation: field-1 30s ease-in-out infinite alternate;
}
.bg-field span:nth-child(2) {
  top: 30%; right: -12%;
  width: 40vw; height: 40vw;
  background: radial-gradient(circle at 50% 50%, rgba(138,90,255,0.26), transparent 66%);
  animation: field-2 38s ease-in-out infinite alternate;
}
.bg-field span:nth-child(3) {
  bottom: -14%; left: 28%;
  width: 44vw; height: 44vw;
  background: radial-gradient(circle at 50% 50%, rgba(107,61,245,0.18), transparent 66%);
  animation: field-3 44s ease-in-out infinite alternate;
}
@keyframes field-1 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(8vw, 12vh) scale(1.18); }
}
@keyframes field-2 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-10vw, 8vh) scale(1.12); }
}
@keyframes field-3 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(6vw, -10vh) scale(1.2); }
}
@media (prefers-reduced-motion: reduce) {
  .bg-field span { animation: none; }
  .btn, .card { transition: none !important; }
  .btn-primary::after { display: none; }
}
/* keep page content above the blob field */
#root { position: relative; z-index: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--accent-soft); color: var(--ink); }

/* type scale */
.eyebrow {
  font-family: var(--f-body);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 600;
}
.h-display {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(44px, 6.4vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.h-section {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.h-sub {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.lead {
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 62ch;
}
.body  { font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.small { font-size: 13.5px; color: var(--ink-3); }
.mono  { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--ink-3); }

em.acc {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* layout */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}
.section { padding: calc(96px * var(--d)) 0; }
.section-sm { padding: calc(64px * var(--d)) 0; }
.section-lg { padding: calc(128px * var(--d)) 0; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
}
.nav .container {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
}
.nav-logo {
  display: flex; align-items: center; gap: 18px;
  font-family: var(--f-display);
  line-height: 1;
  color: var(--ink);
}
.nav-logo img { display: block; }
.nav-logo .l1 {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 38px;
  color: var(--ink);
  font-family: var(--f-display);
}
.nav-logo .l2 {
  font-family: var(--f-body);
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 700;
  margin-top: 4px;
}
.nav-links {
  display: flex; align-items: center; gap: 36px;
}
.nav-link {
  font-size: 14.5px;
  color: var(--ink-2);
  position: relative;
  transition: color .2s;
}
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--ink); }
.nav-link.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -44px;
  height: 2px; background: var(--grad); border-radius: 2px;
}
.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-burger {
  display: none;
  width: 40px; height: 40px;
  background: transparent; border: 1px solid var(--line);
  border-radius: 10px;
  align-items: center; justify-content: center;
  color: var(--ink);
}
.nav-burger svg { width: 18px; height: 18px; }

.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0 0;
  background: var(--bg);
  z-index: 49;
  padding: 32px;
  display: flex; flex-direction: column; gap: 4px;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  display: block;
  padding: 18px 0;
  font-family: var(--f-display);
  font-size: 32px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
}
.mobile-menu .btn { margin-top: 24px; align-self: flex-start; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  font-family: var(--f-body);
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.005em;
  border: 0; border-radius: 100px;
  transition: transform .15s, box-shadow .2s, background .2s, color .2s;
  cursor: pointer; white-space: nowrap;
}
.btn svg { width: 14px; height: 14px; }
.btn { position: relative; overflow: hidden; }
.btn-primary {
  background: var(--grad);
  color: white;
  box-shadow: var(--sh-purple);
}
.btn-primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -80%; width: 55%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.38), transparent);
  transform: skewX(-18deg);
  transition: left .55s ease;
  pointer-events: none;
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 34px -8px rgba(107, 61, 245, 0.6);
}
.btn-primary:hover::after { left: 130%; }
.btn-primary:active { transform: translateY(0) scale(0.98); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--bg-2); border-color: var(--accent); color: var(--accent-deep); transform: translateY(-2px); }
.btn-ghost:active { transform: translateY(0) scale(0.98); }
.btn-link {
  background: transparent; padding: 0;
  color: var(--accent-deep);
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  padding-bottom: 2px;
}
.btn-link:hover { color: var(--ink); }
.btn-lg { padding: 16px 28px; font-size: 15px; }

/* form elements */
.field {
  display: flex; flex-direction: column; gap: 6px;
}
.field label {
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-3);
}
.field input, .field textarea, .field select {
  font-family: var(--f-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  width: 100%;
  transition: border-color .15s, box-shadow .15s, background .15s;
  outline: none;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 16%, transparent);
}
.field .err {
  font-size: 12.5px; color: #c0392b; margin-top: 2px;
}
.field.invalid input, .field.invalid textarea { border-color: #c0392b; }

/* card */
.card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card.hover { position: relative; }
.card.hover::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  opacity: 0; transform: scaleX(0.4);
  transition: opacity .3s, transform .35s cubic-bezier(.2,.7,.2,1);
}
.card.hover:hover {
  border-color: var(--accent-soft);
  box-shadow: var(--sh-3);
  transform: translateY(-6px);
}
.card.hover:hover::before { opacity: 1; transform: scaleX(1); }

/* placeholder image — striped */
.img-ph {
  position: relative;
  background-color: var(--accent-wash);
  background-image:
    repeating-linear-gradient(
      135deg,
      transparent 0 14px,
      color-mix(in oklab, var(--accent-soft) 30%, transparent) 14px 15px
    );
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-3);
  overflow: hidden;
}
.photo {
  background-size: cover;
  background-position: center;
  background-color: var(--accent-wash);
  border: 1px solid var(--line-soft);
  overflow: hidden;
}
.img-ph::after {
  content: attr(data-label);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  background: var(--card);
  border-radius: 100px;
  border: 1px solid var(--line);
  color: var(--ink-3);
}

/* divider with dot */
.div-dot {
  display: flex; align-items: center; gap: 14px;
  color: var(--ink-4);
}
.div-dot::before, .div-dot::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}
.div-dot .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--grad);
}

/* footer */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line-soft);
  padding: 80px 0 32px;
  color: var(--ink-2);
}
.footer .grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer h4 {
  font-family: var(--f-body);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 18px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer a { color: var(--ink-2); font-size: 14.5px; }
.footer a:hover { color: var(--accent-deep); }
.footer .copy {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-size: 13px; color: var(--ink-3);
}

/* hero shared */
.hero {
  position: relative;
  padding-top: calc(72px * var(--d));
  padding-bottom: calc(96px * var(--d));
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  overflow: hidden;
}
.hero-bg::before {
  content: ""; position: absolute;
  top: -200px; right: -120px;
  width: 620px; height: 620px;
  background: radial-gradient(circle at 30% 30%, rgba(199,155,255,0.55), transparent 60%);
  filter: blur(20px);
  will-change: transform;
  animation: blob-a 22s ease-in-out infinite alternate;
}
.hero-bg::after {
  content: ""; position: absolute;
  bottom: -240px; left: -120px;
  width: 520px; height: 520px;
  background: radial-gradient(circle at 60% 40%, rgba(107,61,245,0.18), transparent 65%);
  filter: blur(20px);
  will-change: transform;
  animation: blob-b 28s ease-in-out infinite alternate;
}
/* third, slow-drifting wash for depth */
.hero-bg .hero-orb {
  content: ""; position: absolute;
  top: 20%; left: 38%;
  width: 460px; height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(138,90,255,0.16), transparent 62%);
  filter: blur(26px);
  will-change: transform, opacity;
  animation: orb-drift 34s ease-in-out infinite;
}

@keyframes blob-a {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-46px, 38px) scale(1.12); }
  100% { transform: translate(28px, -30px) scale(0.96); }
}
@keyframes blob-b {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(54px, -34px) scale(1.14); }
  100% { transform: translate(-30px, 40px) scale(0.95); }
}
@keyframes orb-drift {
  0%   { transform: translate(0, 0) scale(1);    opacity: 0.7; }
  33%  { transform: translate(70px, 46px) scale(1.18); opacity: 1; }
  66%  { transform: translate(-58px, -28px) scale(0.92); opacity: 0.55; }
  100% { transform: translate(0, 0) scale(1);    opacity: 0.7; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg::before,
  .hero-bg::after,
  .hero-bg .hero-orb { animation: none; }
}
.hero > .container { position: relative; z-index: 1; }

/* page intro (smaller hero) */
.page-intro { padding: calc(64px * var(--d)) 0 calc(48px * var(--d)); }

/* utility */
.row { display: flex; }
.col { display: flex; flex-direction: column; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.gap-48 { gap: 48px; }
.center { align-items: center; }
.between { justify-content: space-between; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  background: var(--accent-wash);
  color: var(--accent-deep);
  border: 1px solid color-mix(in oklab, var(--accent-soft) 60%, transparent);
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--grad);
}

/* scroll-triggered reveals */
.reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.985);
  transition: opacity .75s cubic-bezier(.2,.7,.2,1), transform .75s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* fade-in on load */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rise { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.rise.d1 { animation-delay: .08s; }
.rise.d2 { animation-delay: .16s; }
.rise.d3 { animation-delay: .24s; }
.rise.d4 { animation-delay: .32s; }
.rise.d5 { animation-delay: .40s; }

/* ─── Responsive breakpoints ─────────────────────────────────────────── */

/* Tablet & smaller */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-actions .btn-primary { display: none; }
  .footer .grid { grid-template-columns: 1fr 1fr; }
  :root { --nav-h: 108px; }
  .nav-logo img { height: 82px !important; }
  .nav-logo .l1 { font-size: 28px; }
  .nav-logo .l2 { font-size: 11px; letter-spacing: 0.26em; }

  /* Inline grids reflow on tablet */
  .hero-grid,
  .focus-grid,
  .faq-grid,
  .about-split,
  .svc-split,
  .c-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  .approach-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .svc-grid,
  .price-grid,
  .prac-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* The about/services sticky sidebars are unhelpful at narrow widths */
  .about-split > div:first-child,
  .svc-split > div:first-child {
    position: static !important;
  }

  /* Hero typography softens */
  .hero { padding-top: 48px; padding-bottom: 64px; }

  /* CTA card padding */
  .cta-block { padding: 64px 40px !important; }
}

/* Phone */
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .section { padding: 64px 0; }
  .section-lg { padding: 80px 0; }
  .section-sm { padding: 48px 0; }
  .footer .grid { grid-template-columns: 1fr; gap: 36px; }
  :root { --nav-h: 88px; }
  .nav-logo img { height: 66px !important; }
  .nav-logo .l1 { font-size: 22px; }
  .nav-logo .l2 { font-size: 9.5px; letter-spacing: 0.22em; margin-top: 3px; }

  /* Mobile menu typography */
  .mobile-menu { padding: 24px 20px; }
  .mobile-menu a { font-size: 26px; padding: 14px 0; }

  /* Cards tighten up */
  .card { padding: 22px; }

  /* All multi-column inline grids collapse to single column on phone */
  .approach-grid,
  .svc-grid,
  .price-grid,
  .prac-grid,
  .cred-grid,
  .bel-grid,
  .det-grid,
  .cf-grid,
  .why-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Hero typography */
  .hero { padding-top: 32px; padding-bottom: 56px; }

  /* CTA block on home */
  .cta-block { padding: 48px 28px !important; }

  /* Buttons grow to comfortable tap targets */
  .btn { padding: 12px 18px; font-size: 14px; }
  .btn-lg { padding: 13px 20px; font-size: 14px; }
  .row.gap-12 .btn,
  .row.gap-12 a.btn { min-height: 44px; }

  /* Footer copy stacks cleanly */
  .footer .copy { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer .copy .row { flex-wrap: wrap; gap: 18px !important; }

  /* Page intro top spacing */
  .page-intro { padding-top: 40px; padding-bottom: 32px; }

  /* Tighten internal grids inside service detail (the "what we do" / "session info" splits) */
  .det-grid > .card { padding: 22px; }

  /* Form fields stack at full width */
  .field input, .field textarea, .field select { font-size: 16px; }
  /* ^ 16px on inputs prevents iOS zoom-on-focus */

  /* Cookie notice scales for phones */
  div[role="dialog"][aria-label*="Cookie"] {
    left: 12px !important; right: 12px !important; bottom: 12px !important;
    max-width: calc(100vw - 24px) !important;
  }
}

/* Very narrow (small phones / iPhone SE) */
@media (max-width: 400px) {
  .container { padding: 0 16px; }
  .hero { padding-top: 24px; }
  .cta-block { padding: 40px 22px !important; }
  .section { padding: 56px 0; }
}
