/* ==========================================================================
   Lindsay Patterson LCSW: Global Styles
   Soft Lavender Mist. Premium wellness editorial.
   ========================================================================== */

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
ul, ol { list-style: none; }

/* ---- Tokens: only these eleven colors exist ---- */
:root {
  /* lav-snow and lav-mist are gradients (below); #F5F3FA and #EAE6F5
     are their original flat values, kept here as literal gradient
     stops since a token cannot reference its own prior value. */
  --lav-snow:    linear-gradient(135deg, var(--white) 0%, #F5F3FA 100%);
  --lav-mist:    linear-gradient(135deg, #F5F3FA 0%, #EAE6F5 100%);
  --lav-soft:    #D4CCEC;
  --lav-mid:     #A89DC8;
  --violet:      #6B5E9E;
  --violet-dark: #4A4070;
  --sand:        #C4A98A;
  --sand-dark:   #A8906E;
  --midnight:    #2A2535;
  --stone:       #6B6478;
  --white:       #FFFFFF;

  /* Gradients built only from the tokens above, no new hues */
  --violet-grad: linear-gradient(160deg, var(--violet) 0%, var(--violet-dark) 100%);
  --midnight-grad: linear-gradient(160deg, var(--violet-dark) 0%, var(--midnight) 100%);

  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Jost', sans-serif;

  --container-max: 1120px;
  --container-pad: clamp(1.5rem, 5vw, 4rem);
  --section-pad: clamp(6rem, 12vw, 10rem);
}

/* ---- Base ---- */
html, body { height: 100%; }
body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.95rem;
  color: var(--midnight);
  background: var(--lav-snow);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

section { position: relative; padding: var(--section-pad) 0; }

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  color: var(--midnight);
}

.headline-hero {
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 7vw, 6rem);
  font-weight: 300;
  line-height: 1.0;
}

.headline-section {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.75rem);
  font-weight: 400;
  line-height: 1.1;
}

.pull-quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.45;
  color: var(--midnight);
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
}

.italic { font-style: italic; }

.body-lg { font-family: var(--font-body); font-size: 1.05rem; font-weight: 300; line-height: 1.85; }
p { font-family: var(--font-body); font-size: 0.95rem; font-weight: 300; line-height: 1.8; }

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 1.25rem;
}

.caption {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--stone);
}

.muted { color: var(--stone); }
.text-center { text-align: center; }

.headline-section + p,
.headline-section + .body-lg { margin-top: 1.5rem; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 2.75rem;
  background: var(--sand);
  color: var(--white);
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.3s ease;
}
.btn:hover { background: var(--sand-dark); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--midnight);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.btn-ghost::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--midnight);
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.btn-ghost:hover::after { transform: scaleX(0.4); }
.btn-ghost .arrow { font-size: 0.9rem; transition: transform 0.25s ease; }
.btn-ghost:hover .arrow { transform: translateX(4px); }

.btn-ghost-white {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.5);
  padding: 1rem 2.25rem;
  cursor: pointer;
  transition: background 0.25s ease;
}
.btn-ghost-white:hover { background: rgba(255,255,255,0.1); }

/* ==========================================================================
   Navigation
   ========================================================================== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 var(--container-pad);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}
nav.scrolled {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(245, 243, 250, 0.92) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--midnight);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.nav-logo span {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.75rem;
  color: var(--stone);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-left: 0.5rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--midnight);
  text-decoration: none;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--violet);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links .nav-cta {
  background: var(--violet-grad);
  color: var(--white);
  padding: 0.6rem 1.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  transition: background 0.25s ease;
}
.nav-links .nav-cta::after { display: none; }
.nav-links .nav-cta:hover { background: var(--violet-dark); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
}
.hamburger span {
  display: block;
  height: 1px;
  width: 100%;
  background: var(--midnight);
}

/* Mobile full-screen overlay menu */
#mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1010;
  background: var(--lav-snow);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  overflow-y: auto;
  padding: 6rem 1.5rem 3rem;
}
#mobile-menu a {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.35rem;
  font-weight: 400;
  line-height: 1.1;
  color: var(--midnight);
  transition: color 0.25s ease;
}
#mobile-menu a:hover { color: var(--violet); }

/* The generic link rule above is for nav items only; the CTA at the
   bottom is a button, not a nav link, so it needs its own typography
   restored and separated from the list above it. */
#mobile-menu a.btn {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--white);
  width: 100%;
  max-width: 340px;
  text-align: center;
  margin-top: 2.25rem;
}
#mobile-menu a.btn:hover { color: var(--white); }

#mobile-close {
  position: absolute;
  top: 1.75rem;
  right: var(--container-pad);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--midnight);
  transition: color 0.25s ease;
}
#mobile-close:hover { color: var(--violet); }

/* ── SEO geo text (index.html only) ── */
.seo-footer-text {
  padding: 2rem 0;
  background: var(--lav-snow);
  border-top: 1px solid var(--lav-soft);
}
.seo-footer-text p {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--stone);
  line-height: 1.8;
  max-width: 800px;
  opacity: 0.7;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  background: var(--midnight);
  padding: clamp(3rem, 6vw, 5rem) var(--container-pad);
  font-family: var(--font-body);
}
.footer-inner { max-width: var(--container-max); margin: 0 auto; }
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
  padding-bottom: 2.5rem;
}
.footer-brand .name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: rgba(255,255,255,0.9);
}
.footer-brand .cred {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.55);
  margin-top: 0.35rem;
}
.footer-links { display: flex; gap: 2rem; flex-wrap: wrap; }
.footer-links a { font-family: var(--font-body); font-size: 1rem; font-weight: 500; letter-spacing: 0.06em; color: rgba(255,255,255,0.55); }
.footer-links a:hover { color: rgba(255,255,255,0.85); }
.footer-contact { font-family: var(--font-body); font-size: 1rem; font-weight: 500; letter-spacing: 0.06em; color: rgba(255,255,255,0.55); text-align: right; }
.footer-contact p { font-family: var(--font-body); font-size: 1rem; font-weight: 500; letter-spacing: 0.06em; color: rgba(255,255,255,0.55); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 0.5px solid rgba(255,255,255,0.1);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ==========================================================================
   Bento grid
   ========================================================================== */
.bento-wrap {
  border: 1.5px solid var(--violet);
  width: 100%;
}
.bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--lav-soft);
}
.bento-cell {
  background: var(--lav-snow);
  padding: clamp(2rem, 4vw, 3rem);
  transition: background 0.3s ease;
}
.bento-cell:hover { background: var(--lav-mist); }
.bento-cell.featured {
  grid-column: span 2;
  background: var(--violet-grad);
  color: var(--white);
}
.bento-cell.featured:hover { background: var(--violet-dark); }
.bento-cell.tall { grid-row: span 2; }
.bento-cell.violet { background: var(--violet); color: var(--white); }
.bento-cell.violet:hover { background: var(--violet-dark); }

.cell-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--lav-mid);
  display: block;
  margin-bottom: 1rem;
}
.bento-cell.featured .cell-num,
.bento-cell.violet .cell-num { color: rgba(255,255,255,0.6); }
.cell-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  color: var(--midnight);
  margin-bottom: 1rem;
}
.bento-cell.featured .cell-title,
.bento-cell.violet .cell-title { color: var(--white); }
.cell-body { font-family: var(--font-body); font-weight: 300; color: var(--stone); font-size: 0.95rem; line-height: 1.8; }
.bento-cell.featured .cell-body,
.bento-cell.violet .cell-body { color: rgba(255,255,255,0.8); }

/* ==========================================================================
   Marquee strip
   ========================================================================== */
.marquee-wrap {
  overflow: hidden;
  background: var(--midnight-grad);
  padding: 1rem 0;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: 3rem;
  animation: marquee 30s linear infinite;
}
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-item {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}
.marquee-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--sand);
  display: inline-block;
}

/* ==========================================================================
   Hero: two-column layout, intro text left, feeling selector right
   ========================================================================== */
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: calc(100vh - 68px);
  margin-top: 68px;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 clamp(2rem, 4vw, 4rem);
  position: relative;
}
.hero-left::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  bottom: 10%;
  width: 1px;
  background: var(--lav-soft);
}

.hero-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 clamp(2rem, 4vw, 4rem);
  gap: 0;
}

.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

/* ── Feeling question label ── */
.feeling-question {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--violet);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--lav-soft);
  margin-bottom: 1.25rem;
}

/* ── Feeling buttons ── */
.feelings-list { display: flex; flex-direction: column; gap: 0; }

.feeling-btn {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  font-weight: 400;
  font-style: italic;
  color: var(--midnight);
  background: transparent;
  border: none;
  padding: 0.85rem 0;
  text-align: left;
  cursor: default; /* desktop: hover, not click */
  width: 100%;
  transition: color 0.2s ease, padding-left 0.2s ease;
  position: relative;
}

.feeling-btn.hovered { color: var(--violet); padding-left: 0.75rem; }
.feelings-list.has-hover .feeling-btn:not(.hovered) { color: var(--lav-mid); }

.feeling-btn.selected { color: var(--violet); padding-left: 0.75rem; }
.feelings-list.has-selected .feeling-btn:not(.selected) { color: var(--lav-mid); }

.feeling-btn::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 2px;
  height: 60%;
  background: var(--violet);
  transition: transform 0.2s ease;
  transform-origin: center;
}
.feeling-btn.hovered::before,
.feeling-btn.selected::before { transform: translateY(-50%) scaleY(1); }

@media (hover: none), (pointer: coarse) {
  .feeling-btn { cursor: pointer; }
}

/* ── Feeling response area ── */
.feeling-response {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  min-height: 6rem; /* reserved space always present; only the text/attribution fade in */
}

.feeling-response-text {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 300;
  font-style: italic;
  color: var(--midnight);
  line-height: 1.6;
  min-height: 3.5rem;
}

.typing-cursor {
  display: inline-block;
  width: 1.5px;
  height: 0.9em;
  background: var(--violet);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: cursor-blink 0.85s step-end infinite;
}
@keyframes cursor-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .typing-cursor { animation: none; opacity: 0; }
}

.feeling-response-attr {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--stone);
  letter-spacing: 0.04em;
  margin-top: 0.75rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.feeling-response-attr.visible { opacity: 1; }

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; height: auto; min-height: auto; margin-top: 0; padding-top: 68px; padding-bottom: 3rem; }
  .hero-left { border-bottom: 1px solid var(--lav-soft); padding-top: 2.5rem; padding-bottom: 2.5rem; justify-content: center; }
  .hero-left::after { display: none; }
  .hero-right { padding-top: 2rem; padding-bottom: 2.5rem; justify-content: center; }

  .feelings-list { flex-direction: row; flex-wrap: wrap; gap: 0.5rem; }
  .feeling-btn {
    border: 1px solid var(--lav-soft);
    padding: 0.45rem 1rem;
    border-radius: 100px;
    font-size: 0.95rem;
    width: auto;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  }
  .feeling-btn::before { display: none; }
  .feeling-btn.selected { background: var(--violet); color: var(--white); border-color: var(--violet); padding-left: 1rem; }
  .feelings-list.has-selected .feeling-btn:not(.selected) { color: var(--lav-mid); border-color: var(--lav-soft); }

  .feeling-question { margin-bottom: 1rem; }
  .feeling-response { margin-top: 1.25rem; padding-top: 1.25rem; min-height: 4rem; }
}

.row-caption { font-family: var(--font-body); font-size: 1rem; font-weight: 400; color: var(--stone); }

/* ==========================================================================
   Accordion
   ========================================================================== */
.accordion-item + .accordion-item { border-top: 1px solid var(--lav-soft); }
.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.5rem 0;
  cursor: pointer;
  user-select: none;
  text-align: left;
}
.accordion-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--stone);
  margin-right: 1.5rem;
  min-width: 60px;
}
.accordion-title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 400;
  color: var(--midnight);
  flex: 1;
}
.accordion-icon {
  width: 24px;
  height: 24px;
  border: 1px solid var(--lav-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: var(--stone);
  flex-shrink: 0;
  transition: transform 0.4s ease, background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.accordion-item.open .accordion-icon {
  transform: rotate(45deg);
  background: var(--violet);
  border-color: var(--violet);
  color: var(--white);
}
.accordion-body { overflow: hidden; height: 0; }
.accordion-body-inner {
  padding: 0 0 2rem 0;
  padding-left: calc(60px + 1.5rem);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: var(--stone);
  line-height: 1.85;
  max-width: 640px;
}
.accordion-item.no-label .accordion-body-inner { padding-left: 0; }

/* ==========================================================================
   Split layout
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}
.portrait {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  display: block;
  background: var(--lav-mist);
}
.portrait-wrap { position: relative; overflow: hidden; }
.split-rule { border: none; border-left: 1px solid var(--lav-soft); height: 100%; margin: 0; }

/* ==========================================================================
   Row list (credential / feature rows)
   ========================================================================== */
.row-item {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
  padding: 2rem 0;
  align-items: start;
}
.row-item + .row-item { border-top: 1px solid var(--lav-soft); }
.row-left {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 400;
  color: var(--midnight);
}
.row-left.label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
}
.row-right {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--stone);
  line-height: 1.8;
}

/* Left-bar hover treatment for row-item groups that opt in:
   "who I work with" on index.html, primary specialties list.
   Base padding-left is permanent so the bar has its own reserved
   gap and never sits on top of the row text. */
.is-this-you .row-item,
.specialties-rows .row-item {
  position: relative;
  padding-left: 2rem;
  transition: padding-left 0.25s ease;
  cursor: default;
}
.is-this-you .row-item::before,
.specialties-rows .row-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  bottom: 15%;
  width: 2px;
  background: var(--violet);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s ease;
}
.is-this-you .row-item:hover::before,
.specialties-rows .row-item:hover::before {
  transform: scaleX(1);
}
.is-this-you .row-item:hover,
.specialties-rows .row-item:hover {
  padding-left: 2.5rem;
}
.is-this-you .row-item .row-left,
.specialties-rows .row-item .row-left {
  padding-left: 0.75rem;
  transition: color 0.25s ease;
}
.is-this-you .row-item:hover .row-left,
.specialties-rows .row-item:hover .row-left {
  color: var(--violet);
}

/* ==========================================================================
   Tag cloud
   ========================================================================== */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem 0; }
.tag-cloud-item {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--midnight);
}
.tag-cloud-item::after {
  content: ',';
  color: var(--lav-mid);
  margin-right: 0.4rem;
}
.tag-cloud-item:last-child::after { content: '.'; }

/* ==========================================================================
   Horizontal timeline
   ========================================================================== */
.h-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  padding-top: 0;
  padding-bottom: 2rem;
}
.h-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: var(--lav-soft);
}
.h-timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: 0 1rem;
}
.h-timeline-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.h-timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--violet);
  position: relative;
  top: -6px;
  z-index: 1;
  flex-shrink: 0;
}
.h-timeline-year {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 300;
  color: var(--violet);
}
.h-timeline-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
}
.h-timeline-detail {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: var(--stone);
  line-height: 1.6;
}

/* ==========================================================================
   Conversational contact form
   ========================================================================== */
.conv-form-wrap {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  min-height: 560px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 40px rgba(42, 37, 53, 0.08);
}

/* ── Left panel ── */
.conv-left {
  background: var(--midnight-grad);
  padding: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.conv-left-logo {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.02em;
}
.conv-left-logo span {
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(168, 157, 200, 0.85);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-left: 0.4rem;
}

.conv-left-quote {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.6;
}

.conv-left-meta {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.conv-meta-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: rgba(212, 204, 236, 0.85);
  line-height: 1.4;
  list-style: none;
}
.conv-meta-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sand);
  flex-shrink: 0;
  opacity: 1;
}

/* ── Right panel ── */
.conv-right {
  background: var(--lav-snow);
  padding: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
}

/* ── Progress ── */
.conv-progress {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.conv-progress-bar {
  flex: 1;
  height: 2px;
  background: var(--lav-soft);
  border-radius: 2px;
  overflow: hidden;
}
.conv-progress-fill {
  height: 100%;
  background: var(--violet);
  border-radius: 2px;
  transition: width 0.5s ease;
  width: 25%;
}
.conv-progress-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
  white-space: nowrap;
}

/* ── Steps area ── */
.conv-steps-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.conv-step {
  display: none;
  flex-direction: column;
  gap: 1.5rem;
  opacity: 0;
  transform: translateY(12px);
}
.conv-step.active {
  display: flex;
}
.conv-step.entering {
  animation: stepIn 0.4s ease forwards;
}

@keyframes stepIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .conv-step { opacity: 1; transform: none; }
  .conv-step.entering { animation: none; }
}

/* ── Step typography ── */
.conv-step-q {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  color: var(--midnight);
  line-height: 1.2;
}
.conv-step-hint {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: var(--stone);
  margin-top: -0.75rem;
  line-height: 1.6;
}

/* ── Form fields ── */
.conv-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.conv-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.conv-field label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
}
.conv-optional {
  font-weight: 300;
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.7rem;
  color: var(--lav-mid);
}
.conv-field input,
.conv-field textarea,
.conv-field select {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: var(--midnight);
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--lav-soft);
  padding: 0.6rem 0;
  outline: none;
  width: 100%;
  transition: border-color 0.25s ease;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
}
.conv-field input:focus,
.conv-field textarea:focus,
.conv-field select:focus {
  border-bottom-color: var(--violet);
}
.conv-field textarea {
  resize: none;
  line-height: 1.7;
}
.conv-field select {
  cursor: pointer;
}

/* ── Chips ── */
.conv-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.conv-chip {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  font-style: italic;
  color: var(--midnight);
  background: transparent;
  border: 1px solid var(--lav-soft);
  border-radius: 100px;
  padding: 0.4rem 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.4;
}
.conv-chip:hover {
  border-color: var(--lav-mid);
  background: var(--lav-mist);
}
.conv-chip.selected {
  background: var(--violet);
  border-color: var(--violet);
  color: var(--white);
  font-style: italic;
}

/* ── Validation error ── */
.conv-field-error {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--violet-dark);
  display: none;
  margin-top: -0.75rem;
}
.conv-field-error.visible {
  display: block;
}

/* ── Submission states ── */
.conv-sending-msg {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--stone);
}
.conv-submit-error {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--violet-dark);
  margin-top: 0.5rem;
}

/* ── Navigation ── */
.conv-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--lav-soft);
}

.conv-btn-back {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lav-mid);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}
.conv-btn-back:hover { color: var(--violet); }
.conv-btn-back:disabled {
  opacity: 0;
  pointer-events: none;
}

.conv-btn-next {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.85rem 2.25rem;
  background: var(--sand);
  color: var(--white);
  border: none;
  cursor: pointer;
  border-radius: 0;
  transition: background 0.25s ease;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.conv-btn-next:hover { background: var(--sand-dark); }
.conv-btn-next.final {
  background: var(--violet);
}
.conv-btn-next.final:hover {
  background: var(--violet-dark);
}
.conv-arrow {
  transition: transform 0.2s ease;
}
.conv-btn-next:hover .conv-arrow {
  transform: translateX(3px);
}

/* ── Thank you ── */
.conv-thankyou {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.25rem;
  padding: 2rem 0;
  flex: 1;
}
.conv-thankyou.visible {
  display: flex;
}

.conv-ty-symbol {
  font-size: 2rem;
  color: var(--violet);
  opacity: 0.5;
  line-height: 1;
}
.conv-ty-h {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 300;
  font-style: italic;
  color: var(--midnight);
  line-height: 1.2;
}
.conv-ty-sub {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--stone);
  line-height: 1.75;
  max-width: 320px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .conv-form-wrap {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .conv-left {
    padding: 2rem;
    gap: 2rem;
  }
  .conv-left-quote { font-size: 1.15rem; }
  .conv-right { padding: 2rem; }
  .conv-field-row { grid-template-columns: 1fr; }
  .conv-step-q { font-size: 1.4rem; }
}

@media (max-width: 480px) {
  .conv-chip { font-size: 0.9rem; padding: 0.35rem 0.9rem; }
  .conv-btn-next { padding: 0.75rem 1.75rem; }
}

/* ==========================================================================
   Scroll reveal base state
   ========================================================================== */
.reveal { opacity: 0; }
.hero-load { opacity: 0; }
.hero-word { display: inline-block; opacity: 0; transform: translateY(16px); }
.no-motion .reveal,
.no-motion .hero-load,
.no-motion .hero-word,
.no-motion .word-inner { opacity: 1 !important; transform: none !important; }

/* ==========================================================================
   Split-headline word stagger (section headlines only, driven by the
   GSAP reveal loop in main.js, not a standalone animation system)
   ========================================================================== */
.split-headline .word {
  display: inline-block;
  overflow: hidden;
}
.split-headline .word-inner {
  display: inline-block;
  transform: translateY(100%);
  opacity: 0;
}

/* ==========================================================================
   Custom cursor
   ========================================================================== */
* { cursor: none !important; }
input, textarea, select { cursor: text !important; }

.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--violet);
  opacity: 0.5;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease,
              opacity 0.25s ease, background 0.25s ease;
  will-change: transform;
}
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--violet);
  opacity: 0.25;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  will-change: transform;
  transition: width 0.35s ease, height 0.35s ease, opacity 0.35s ease;
}
body.cursor-hover .cursor-dot {
  width: 6px; height: 6px;
  opacity: 0.8;
  background: var(--sand);
}
body.cursor-hover .cursor-ring {
  width: 52px; height: 52px;
  opacity: 0.4;
}
/* Native cursor on touch devices and when motion is reduced */
@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .cursor-dot, .cursor-ring { display: none; }
  * { cursor: auto !important; }
  input, textarea, select { cursor: text !important; }
}

/* ==========================================================================
   Page transition overlay
   ========================================================================== */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--lav-mist);
  z-index: 99997;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.45s ease;
}
.page-transition.fade-out { opacity: 0; }
.page-transition.fade-in  { opacity: 1; }

/* ==========================================================================
   Portrait reveal wipe (about.html)
   ========================================================================== */
.reveal-portrait {
  position: relative;
  overflow: hidden;
}
.portrait-wipe {
  position: absolute;
  inset: 0;
  background: var(--lav-mist);
  transform: translateX(0);
  transition: transform 0.9s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: 2;
  transform-origin: left;
}
.reveal-portrait.revealed .portrait-wipe {
  transform: translateX(101%);
}
@media (prefers-reduced-motion: reduce) {
  .portrait-wipe { transition: none; }
}

/* ==========================================================================
   Focus states
   ========================================================================== */
*:focus { outline: none; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.feeling-btn:focus-visible,
.conv-chip:focus-visible,
.accordion-header:focus-visible,
.chat-trigger:focus-visible,
.chat-close:focus-visible,
.chat-reply-btn:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 2px;
}
.conv-field input:focus-visible,
.conv-field textarea:focus-visible,
.conv-field select:focus-visible {
  outline: none;
}

/* ==========================================================================
   Scripted chat widget
   ========================================================================== */
.chat-trigger {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--violet-grad);
  color: var(--white);
  border: none;
  cursor: pointer;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(107, 94, 158, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.chat-trigger:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 32px rgba(107, 94, 158, 0.45);
}
.chat-trigger-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(107, 94, 158, 0.4);
  animation: chatPulse 2.5s ease-out infinite;
}
@keyframes chatPulse {
  0%   { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .chat-trigger-pulse { animation: none; opacity: 0; }
}

.chat-panel {
  position: fixed;
  bottom: 5.5rem;
  right: 2rem;
  width: 340px;
  max-height: 520px;
  background: var(--lav-snow);
  border-radius: 12px;
  box-shadow: 0 8px 48px rgba(42, 37, 53, 0.18);
  z-index: 8999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(16px) scale(0.97);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.3s ease;
}
.chat-panel.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: all;
}

.chat-header {
  background: var(--midnight-grad);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.chat-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--violet-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--white);
  flex-shrink: 0;
}
.chat-name {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.95);
  letter-spacing: 0.02em;
}
.chat-status {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 300;
  color: rgba(168,157,200,0.75);
  margin-top: 0.1rem;
}
.chat-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.2s;
}
.chat-close:hover { color: rgba(255,255,255,0.9); }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar { width: 3px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--lav-soft); border-radius: 2px; }

.chat-msg {
  max-width: 85%;
  padding: 0.7rem 0.95rem;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(6px);
  animation: msgIn 0.35s ease forwards;
}
@keyframes msgIn {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .chat-msg { animation: none; opacity: 1; transform: none; }
}

.chat-msg.bot {
  background: var(--lav-mist);
  color: var(--midnight);
  border-bottom-left-radius: 3px;
  align-self: flex-start;
}
.chat-msg.user {
  background: var(--violet-grad);
  color: var(--white);
  border-bottom-right-radius: 3px;
  align-self: flex-end;
  font-weight: 400;
}

.chat-typing {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 0.75rem 0.95rem;
  background: var(--lav-mist);
  border-radius: 12px;
  border-bottom-left-radius: 3px;
  width: fit-content;
  align-self: flex-start;
}
.chat-typing span {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--lav-mid);
  animation: typingDot 1.2s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.4; }
  40%           { transform: scale(1);   opacity: 1; }
}

.chat-replies {
  padding: 0.75rem 1rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  border-top: 1px solid var(--lav-soft);
  background: var(--lav-snow);
}
.chat-reply-btn {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--violet);
  background: transparent;
  border: 1px solid var(--lav-soft);
  border-radius: 100px;
  padding: 0.35rem 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.chat-reply-btn:hover {
  background: var(--violet);
  color: var(--white);
  border-color: var(--violet);
}

@media (max-width: 480px) {
  .chat-panel {
    right: 1rem;
    left: 1rem;
    width: auto;
    bottom: 5rem;
  }
  .chat-trigger { bottom: 1.5rem; right: 1.5rem; }
}

/* ==========================================================================
   Responsive
   Note: nav collapse is keyed to 900px (not 600px) to match the
   split/bento/timeline breakpoint below and avoid the desktop nav
   overflowing at the required 768px test width.
   ========================================================================== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .split { grid-template-columns: 1fr !important; }
  .split .portrait-wrap { order: -1; max-height: 480px; overflow: hidden; }
  .h-timeline { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .h-timeline::before { display: none; }
  .row-item { grid-template-columns: 1fr; gap: 0.5rem; }
  .split-rule { display: none; }
  .footer-grid { flex-direction: column; }
  .footer-contact { text-align: left; }
}

@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .bento-cell.featured { grid-column: span 1; }
  .bento-cell.tall { grid-row: auto; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  /* ---- Mobile improvements ---- */

  .headline-hero { font-size: clamp(2.5rem, 12vw, 3.5rem); }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 1rem; width: 100%; }
  .hero-actions .btn { width: 100%; text-align: center; }

  .marquee-item { font-size: 0.72rem; }

  .row-item { grid-template-columns: 1fr; gap: 0.75rem; padding: 1.75rem 0; }
  .row-caption { font-size: 0.75rem; margin-top: 0.5rem; }

  .accordion-header { padding: 1.25rem 0; }
  .accordion-body-inner { padding-left: 0; }
  .accordion-label { display: none; }
  .accordion-title { font-size: 1.05rem; }

  /* Left-anchored vertical timeline with a continuous connector line */
  .h-timeline {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 0;
    position: relative;
  }
  .h-timeline::before { display: none; }
  .h-timeline::after {
    content: '';
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 6px;
    width: 1px;
    background: var(--lav-soft);
    z-index: 0;
  }
  .h-timeline-item {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 0 1.25rem;
    align-items: start;
    text-align: left;
    padding: 0 0 2.5rem 0;
    position: relative;
    z-index: 1;
  }
  .h-timeline-item:last-child { padding-bottom: 0; }
  .h-timeline-dot {
    margin-top: 0.5rem;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
  }
  .h-timeline-content { display: flex; flex-direction: column; align-items: flex-start; gap: 0.2rem; }
  .h-timeline-year { font-size: 2rem; text-align: left; }
  .h-timeline-label { text-align: left; }
  .h-timeline-detail { text-align: left; }

  section { padding-top: clamp(4rem, 10vw, 6rem); padding-bottom: clamp(4rem, 10vw, 6rem); }

  .footer-grid { flex-direction: column; gap: 2rem; }
}

@media (max-width: 380px) {
  .headline-hero { font-size: 2.25rem; }
  .headline-section { font-size: 1.75rem; }
  .bento-cell { padding: 1.5rem; }
}
