/* The Happy Smile Dental — brand tokens, type, motion */

:root {
  --cream: #FBF7F2;
  --white: #FFFFFF;
  --mint-50: #EAF6F3;
  --mint-100: #D6EDE8;
  --mint-300: #7BC4B8;
  --mint-500: #0E6E66;
  --mint-600: #0B5A53;
  --mint-700: #08433E;
  --ink: #13211F;
  --ink-soft: #41534F;
  --ink-mute: #6E807C;
  --yellow: #F5D061;
  --yellow-soft: #FBE9A4;
  --line: #E7E0D5;
  --shadow-card: 0 10px 30px -12px rgba(11, 90, 83, 0.18), 0 2px 6px -2px rgba(11, 90, 83, 0.06);
  --shadow-soft: 0 2px 14px -6px rgba(19, 33, 31, 0.10);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
}

.font-display {
  font-family: 'Fraunces', 'Lora', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.font-display-soft {
  font-family: 'Fraunces', 'Lora', Georgia, serif;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
}

.h-hero {
  font-size: clamp(44px, 6.4vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.h-section {
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--mint-500);
}

.bg-cream { background: var(--cream); }
.bg-mint-50 { background: var(--mint-50); }
.bg-mint { background: var(--mint-500); }
.bg-mint-dark { background: var(--mint-700); }
.text-mint { color: var(--mint-500); }
.text-ink { color: var(--ink); }
.text-ink-soft { color: var(--ink-soft); }
.text-mute { color: var(--ink-mute); }
.border-line { border-color: var(--line); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform 180ms ease, box-shadow 220ms ease, background 220ms ease, color 220ms ease, border-color 220ms ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--mint-500);
  color: var(--white);
  box-shadow: 0 8px 18px -8px rgba(14, 110, 102, 0.45);
}
.btn-primary:hover {
  background: var(--mint-600);
  transform: translateY(-1px);
  box-shadow: 0 12px 22px -10px rgba(14, 110, 102, 0.55);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--white);
}
.btn-soft {
  background: var(--white);
  color: var(--mint-500);
  border: 1.5px solid var(--mint-100);
}
.btn-soft:hover {
  border-color: var(--mint-300);
  background: var(--mint-50);
}

/* Card */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(231, 224, 213, 0.6);
  transition: transform 220ms ease, box-shadow 260ms ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px -16px rgba(11, 90, 83, 0.24), 0 4px 10px -3px rgba(11, 90, 83, 0.08);
}

.tile {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

/* Nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background 240ms ease, box-shadow 240ms ease, backdrop-filter 240ms ease, border-color 240ms ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(251, 247, 242, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: rgba(19, 33, 31, 0.06);
}
.nav-link {
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
  padding: 8px 4px;
  position: relative;
  transition: color 180ms ease;
}
.nav-link:hover { color: var(--mint-500); }
.nav-link::after {
  content: '';
  position: absolute;
  left: 4px; right: 4px; bottom: 2px;
  height: 2px;
  background: var(--mint-500);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}
.nav-link:hover::after { transform: scaleX(1); }

/* Hero accents */
.hero-underline {
  position: relative;
  display: inline-block;
}
.hero-underline::after {
  content: '';
  position: absolute;
  left: 4%; right: 4%;
  bottom: 4px;
  height: 14px;
  background: var(--yellow);
  opacity: 0.55;
  border-radius: 30% 70% 60% 40% / 60% 50% 50% 40%;
  z-index: -1;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  box-shadow: var(--shadow-soft);
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 500;
}

/* Service icon bubble */
.icon-bubble {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--mint-50);
  color: var(--mint-500);
}
.icon-bubble.yellow {
  background: #FCF1CE;
  color: #8A6B16;
}
.icon-bubble.dark {
  background: var(--mint-700);
  color: var(--white);
}

/* Step number circle */
.step-num {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--mint-500);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-family: 'Fraunces', serif;
  font-size: 18px;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 500;
  font-size: 18px;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .faq-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 999px;
  background: var(--mint-50);
  color: var(--mint-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 220ms ease, background 220ms ease;
}
.faq-item[open] .faq-icon { transform: rotate(45deg); background: var(--mint-500); color: var(--white); }
.faq-item .faq-body {
  padding: 0 8px 24px 8px;
  color: var(--ink-soft);
  max-width: 720px;
}

/* Star */
.star { color: var(--yellow); }

/* Fade-in observer states */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms cubic-bezier(.2,.7,.2,1), transform 700ms cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }

/* Marquee insurance logos */
.insurer {
  height: 28px;
  display: inline-flex;
  align-items: center;
  color: #9AA9A5;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 18px;
  font-family: 'Fraunces', serif;
}

/* Footer */
.footer-link {
  color: #B9C7C3;
  font-size: 14px;
  transition: color 160ms ease;
}
.footer-link:hover { color: var(--white); }

/* Membership callout */
.membership {
  background: linear-gradient(135deg, var(--mint-700) 0%, var(--mint-500) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
}

/* Subtle chip */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--mint-50);
  color: var(--mint-500);
  font-size: 13px;
  font-weight: 600;
}

/* Photo frame */
.photo-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px -20px rgba(11, 90, 83, 0.32);
}

/* Smile makeover tile caption */
.tile-cap {
  position: absolute;
  left: 14px; bottom: 14px;
  background: rgba(251, 247, 242, 0.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

/* Team card */
.team-card img {
  border-radius: var(--radius-md);
  aspect-ratio: 4/5;
  object-fit: cover;
  width: 100%;
}

/* Review card */
.review {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 26px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  height: 100%;
}

/* ============================
   CHATBOT WIDGET
   ============================ */

.chat-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px 14px 16px;
  background: var(--mint-500);
  color: var(--white);
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 14px 32px -12px rgba(14, 110, 102, 0.55), 0 2px 6px -2px rgba(11, 67, 62, 0.35);
  cursor: pointer;
  border: none;
  transition: transform 200ms ease, background 200ms ease, box-shadow 220ms ease;
}
.chat-launcher:hover { background: var(--mint-600); transform: translateY(-2px); }

.chat-launcher .pulse {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 2px solid rgba(14, 110, 102, 0.5);
  animation: chat-pulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes chat-pulse {
  0%   { transform: scale(1);   opacity: 0.7; }
  80%  { transform: scale(1.18); opacity: 0; }
  100% { transform: scale(1.18); opacity: 0; }
}

.chat-panel {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 380px;
  height: 540px;
  max-width: calc(100vw - 28px);
  max-height: calc(100vh - 28px);
  background: var(--white);
  border-radius: 22px;
  box-shadow: 0 30px 60px -20px rgba(11, 90, 83, 0.32), 0 4px 14px -4px rgba(11, 90, 83, 0.14);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 90;
  border: 1px solid rgba(231, 224, 213, 0.6);
  transform-origin: bottom right;
  animation: chat-pop 280ms cubic-bezier(.2,.8,.2,1);
}
.chat-panel.open { display: flex; }

@keyframes chat-pop {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}

.chat-header {
  background: linear-gradient(135deg, var(--mint-600) 0%, var(--mint-500) 100%);
  color: var(--white);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-header .avatar {
  width: 38px; height: 38px;
  border-radius: 999px;
  background: var(--white);
  color: var(--mint-500);
  display: inline-flex; align-items: center; justify-content: center;
}
.chat-header .title { font-weight: 600; font-size: 15px; line-height: 1.1; }
.chat-header .status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: rgba(255,255,255,0.85); margin-top: 2px;
}
.chat-header .dot {
  width: 8px; height: 8px; border-radius: 999px; background: #6BD9A8; box-shadow: 0 0 0 3px rgba(107,217,168,0.25);
}
.chat-header .close {
  margin-left: auto;
  background: rgba(255,255,255,0.12);
  border: none; color: var(--white);
  width: 30px; height: 30px; border-radius: 999px;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: background 180ms ease;
}
.chat-header .close:hover { background: rgba(255,255,255,0.22); }

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-msg {
  max-width: 82%;
  padding: 10px 14px;
  font-size: 14.5px;
  line-height: 1.45;
  border-radius: 18px;
  word-wrap: break-word;
  animation: msg-in 240ms ease;
}
@keyframes msg-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
.chat-msg.bot {
  align-self: flex-start;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-bottom-left-radius: 6px;
}
.chat-msg.user {
  align-self: flex-end;
  background: var(--mint-500);
  color: var(--white);
  border-bottom-right-radius: 6px;
}

.chat-typing {
  align-self: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 12px 14px;
  border-radius: 18px;
  border-bottom-left-radius: 6px;
  display: inline-flex;
  gap: 4px;
}
.chat-typing span {
  width: 7px; height: 7px; border-radius: 999px;
  background: var(--mint-300);
  animation: typing 1.2s infinite ease-in-out;
}
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.30s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.chat-chip {
  background: var(--white);
  border: 1px solid var(--mint-100);
  color: var(--mint-500);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}
.chat-chip:hover { background: var(--mint-50); border-color: var(--mint-300); }

.chat-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: var(--white);
}
.chat-input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14.5px;
  font-family: inherit;
  background: var(--cream);
  color: var(--ink);
  outline: none;
  transition: border-color 160ms ease, background 160ms ease;
}
.chat-input:focus { border-color: var(--mint-300); background: var(--white); }
.chat-send {
  width: 40px; height: 40px;
  border-radius: 999px;
  background: var(--mint-500);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 160ms ease, transform 160ms ease;
}
.chat-send:hover { background: var(--mint-600); transform: translateY(-1px); }
.chat-send:disabled { background: #B9C7C3; cursor: not-allowed; transform: none; }

.chat-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px 12px;
  background: var(--white);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
}
.ks-mono {
  width: 16px; height: 16px;
  border-radius: 4px;
  background: var(--ink);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 8.5px;
  font-family: 'Fraunces', serif;
  letter-spacing: 0;
  font-weight: 700;
}

/* Small screens */
@media (max-width: 480px) {
  .chat-panel { right: 10px; bottom: 10px; width: calc(100vw - 20px); height: 78vh; }
  .chat-launcher { right: 14px; bottom: 14px; }
}

/* ============================
   About
   ============================ */
.promise-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 768px) {
  .compare { grid-template-columns: 1fr 1fr; gap: 24px; }
}
.compare-col {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--line);
}
.compare-col.is-old { background: #F6F1E8; }
.compare-col h3 { font-family: 'Fraunces', serif; font-size: 22px; margin-bottom: 16px; }
.compare-col ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 15px;
}
.compare-col ul li:last-child { border-bottom: none; }
.compare-col .ic {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.compare-col .ic.x { background: #F4DDD6; color: #B23A1F; }
.compare-col .ic.check { background: var(--mint-50); color: var(--mint-500); }

.tour-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 768px) {
  .tour-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}
.tour-grid img {
  width: 100%;
  border-radius: var(--radius-md);
  aspect-ratio: 4/3;
  object-fit: cover;
}

.tech-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.tech-row:last-child { border-bottom: none; }
.tech-row .icon-bubble { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; }
.tech-row h4 { font-family: 'Fraunces', serif; font-size: 19px; font-weight: 500; }
.tech-row p { color: var(--ink-soft); margin-top: 4px; font-size: 15px; }

/* ============================
   Resources hub
   ============================ */
.resource-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  transition: transform 220ms ease, box-shadow 260ms ease;
  text-decoration: none;
  color: inherit;
}
.resource-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px -16px rgba(11, 90, 83, 0.22), 0 4px 10px -3px rgba(11, 90, 83, 0.08);
}
.resource-card .res-num {
  font-family: 'Fraunces', serif;
  font-size: 14px;
  color: var(--mint-500);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.resource-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  margin-top: 14px;
  line-height: 1.15;
}
.resource-card p { color: var(--ink-soft); margin-top: 10px; font-size: 15px; }
.resource-card .res-link {
  margin-top: auto;
  padding-top: 18px;
  color: var(--mint-500);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ============================
   Resource Article
   ============================ */
.article-hero {
  padding-top: 132px;
  padding-bottom: 24px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  font-size: 14px;
  color: var(--ink-mute);
  margin-top: 22px;
}
.article-meta .dot-sep { width: 3px; height: 3px; border-radius: 999px; background: var(--ink-mute); display: inline-block; opacity: 0.6; }
.article-meta a { color: var(--mint-500); font-weight: 600; }

.prose {
  max-width: 720px;
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink);
}
.prose h2 {
  font-family: 'Fraunces', serif;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-top: 48px;
  margin-bottom: 16px;
  line-height: 1.15;
}
.prose h3 {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 500;
  margin-top: 32px;
  margin-bottom: 12px;
}
.prose p { margin-bottom: 18px; color: var(--ink-soft); }
.prose ul, .prose ol { margin: 12px 0 22px 0; padding-left: 0; list-style: none; }
.prose ul li, .prose ol li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: var(--ink-soft);
}
.prose ul li::before {
  content: '';
  position: absolute;
  left: 4px; top: 12px;
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--mint-500);
}
.prose ol { counter-reset: prose-ol; }
.prose ol li {
  counter-increment: prose-ol;
}
.prose ol li::before {
  content: counter(prose-ol);
  position: absolute;
  left: 0; top: 4px;
  width: 22px; height: 22px;
  font-family: 'Fraunces', serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--mint-500);
  background: var(--mint-50);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.prose a { color: var(--mint-500); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose strong { color: var(--ink); font-weight: 600; }

.callout {
  background: var(--mint-50);
  border-left: 3px solid var(--mint-500);
  border-radius: 14px;
  padding: 22px 26px;
  margin: 32px 0;
}
.callout .callout-kicker {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--mint-500);
  margin-bottom: 6px;
}
.callout p { font-family: 'Fraunces', serif; font-size: 20px; line-height: 1.4; color: var(--ink); margin: 0; }

.checklist {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  margin: 28px 0;
}
.checklist h4 {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  margin-bottom: 12px;
}
.checklist ul { margin: 0; padding: 0; list-style: none; }
.checklist ul li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 0;
  font-size: 16px;
  color: var(--ink-soft);
  padding-left: 0 !important;
}
.checklist ul li::before { display: none !important; }
.checklist ul li .ck {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 999px;
  background: var(--mint-500);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.article-tools {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 14px;
  margin-top: 18px;
  color: var(--ink-mute);
}
.article-tools button {
  background: transparent;
  border: none;
  color: var(--mint-500);
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  padding: 0;
}
.article-tools button:hover { color: var(--mint-600); }

.author-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-top: 48px;
}
.author-card img {
  width: 64px; height: 64px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
}
.author-card .author-name { font-family: 'Fraunces', serif; font-size: 19px; font-weight: 500; }
.author-card .author-bio { color: var(--ink-soft); font-size: 15px; margin-top: 4px; line-height: 1.55; }
.author-card .author-role { color: var(--mint-500); font-size: 13px; font-weight: 600; }

/* ============================
   Smile Stories
   ============================ */
.story-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.story-pill {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.story-pill:hover, .story-pill.is-active {
  background: var(--mint-500);
  color: var(--white);
  border-color: var(--mint-500);
}

.story-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  align-items: start;
}
@media (min-width: 900px) {
  .story-row { grid-template-columns: 1.05fr 1fr; gap: 36px; padding: 32px; }
}
.story-ba {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.story-ba figure { margin: 0; }
.story-ba img {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--radius-md);
  object-fit: cover;
}
.story-ba figcaption {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 8px;
  text-align: center;
}
.story-meta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-mute);
}
.story-meta-row .tag {
  background: var(--mint-50);
  color: var(--mint-500);
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}
.story-body p { color: var(--ink-soft); margin-top: 14px; }
.story-did {
  margin-top: 18px;
  padding: 16px 18px;
  background: var(--cream);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}
.story-did h4 {
  font-family: 'Fraunces', serif;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}
.story-did ul { list-style: none; padding: 0; margin: 0; }
.story-did ul li {
  font-size: 14px;
  color: var(--ink-soft);
  display: flex;
  gap: 8px;
  padding: 4px 0;
}
.story-did ul li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--mint-500);
  margin-top: 8px;
  flex-shrink: 0;
}

/* ============================
   Contact
   ============================ */
.lane-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.lane-card:last-child { border-bottom: none; }
.lane-card .icon-bubble { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; }
.lane-card h4 { font-family: 'Fraunces', serif; font-size: 18px; font-weight: 500; }
.lane-card p { color: var(--ink-soft); font-size: 14px; margin-top: 2px; }
.lane-card a.lane-email { font-size: 14px; color: var(--mint-500); font-weight: 600; }

.field-label { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; display: block; }
.field-input, .field-select, .field-textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field-input:focus, .field-select:focus, .field-textarea:focus {
  border-color: var(--mint-300);
  box-shadow: 0 0 0 3px var(--mint-50);
}
.field-textarea { resize: vertical; min-height: 130px; }

.loc-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.loc-card h4 { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 500; }
.loc-card .loc-tag { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--mint-500); margin-bottom: 8px; }
.loc-card p { color: var(--ink-soft); font-size: 14px; margin-top: 6px; }
.loc-card .loc-img {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: var(--radius-md);
  object-fit: cover;
  margin-bottom: 16px;
}

/* Active nav state */
.nav-link.is-active { color: var(--mint-500); }
.nav-link.is-active::after { transform: scaleX(1); }

/* Monogram placeholders (replaces real-person photos) */
.team-card .mono-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #0E6E66 0%, #1B8B82 60%, #7BC4B8 100%);
  color: #FBF7F2;
  font-family: 'Fraunces', serif;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: clamp(56px, 9vw, 96px);
}
.author-card .reviewer-mono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0E6E66, #7BC4B8);
  color: #FBF7F2;
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* Smile-stories abstract placeholders */
.story-ba figure .ba-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  position: relative;
}
.story-ba figure .ba-placeholder.before {
  background: linear-gradient(135deg, #E8E1D5 0%, #C9BFAF 100%);
  color: #6B5F4D;
}
.story-ba figure .ba-placeholder.after {
  background: linear-gradient(135deg, #7BC4B8 0%, #0E6E66 100%);
  color: #FBF7F2;
}
.story-ba figure .ba-placeholder svg {
  width: 38%;
  height: auto;
  opacity: 0.55;
}

/* Smile-result tile placeholders (standalone, no parent figure) */
.tile .ba-placeholder,
.photo-frame .ba-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #7BC4B8 0%, #0E6E66 100%);
  color: #FBF7F2;
  position: relative;
}
.tile .ba-placeholder svg,
.photo-frame .ba-placeholder svg {
  width: 42%;
  height: auto;
  opacity: 0.55;
}
