/* ============================================
   Fizyoterapi Merkezi - Multi-page Corporate
   Primary: #0B3C5D | BG: white / light gray
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;600;700&display=swap');

:root {
  --primary: #0B3C5D;
  --primary-light: #1a5a82;
  --primary-dark: #082a3f;
  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --bg-card: #ffffff;
  --text: #2c3e50;
  --text-muted: #6c757d;
  --border: #e2e6ea;
  --shadow: 0 4px 20px rgba(11, 60, 93, 0.08);
  --shadow-hover: 0 8px 30px rgba(11, 60, 93, 0.12);
  --radius: 12px;
  --radius-lg: 16px;
  --transition: 0.3s ease;
  --header-height: 72px;
  --page-transition-duration: 0.3s;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Sayfa geçiş animasyonu: yumuşak fade */
body.page-transition {
  opacity: 0;
  transition: opacity var(--page-transition-duration) ease;
}

body.page-transition.page-ready {
  opacity: 1;
}

body.page-transition.page-exiting {
  opacity: 0;
}

/* Reserve space for fixed header so content never goes under it */
#header-placeholder {
  min-height: var(--header-height);
  flex-shrink: 0;
}

body.header-shrunk #header-placeholder {
  --header-height: 56px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-light);
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Header (fixed: always visible at top, desktop + mobile) ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(11, 60, 93, 0.06);
  height: var(--header-height);
}

/* Shrunk state when user has scrolled */
body.header-shrunk .header {
  --header-height: 56px;
  box-shadow: 0 2px 16px rgba(11, 60, 93, 0.1), 0 1px 0 rgba(11, 60, 93, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
}

/* Logo: image + text */
.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  transition: opacity 0.2s ease;
  text-decoration: none;
}

.logo img {
  display: block;
  height: 88px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
}

.logo-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 300;
  font-size: 1.4rem;
  letter-spacing: 0.12em;
  color: var(--primary);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.logo:hover {
  opacity: 0.92;
}

.logo:hover .logo-text {
  color: var(--primary-light);
}

.header--shrunk .logo img {
  height: 76px;
}

.header--shrunk .logo-text {
  font-size: 1.2rem;
  letter-spacing: 0.1em;
}

/* Nav: pill-style links with underline accent */
.nav-list {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}

.nav-link {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  color: var(--text);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0.2rem;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transition: width 0.2s ease, left 0.2s ease;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::after {
  width: 60%;
  left: 20%;
}

.nav-link.active {
  color: var(--primary);
  font-weight: 600;
}

.nav-link.active::after {
  width: 60%;
  left: 20%;
}

.header--shrunk .nav-link {
  padding: 0.4rem 0.7rem;
  font-size: 0.875rem;
}

/* Header actions: language toggle + hamburger */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Language toggle: minimal premium style */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  background: rgba(11, 60, 93, 0.035);
  border-radius: 999px;
  padding: 0.2rem;
  border: 1px solid rgba(11, 60, 93, 0.12);
}

.lang-btn {
  min-width: 2.8rem;
  padding: 0.36rem 0.68rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.79rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(8, 42, 63, 0.72);
  background: transparent;
  transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.lang-btn:hover {
  color: rgba(8, 42, 63, 0.92);
  background: rgba(11, 60, 93, 0.06);
}

.lang-btn.active {
  color: #fff;
  background: linear-gradient(180deg, #0d4a72 0%, #0b3c5d 100%);
  box-shadow: 0 1px 4px rgba(11, 60, 93, 0.24);
}

.lang-sep {
  display: none;
}

/* Hamburger: cleaner pill button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid rgba(11, 60, 93, 0.12);
  border-radius: 999px;
  background: rgba(11, 60, 93, 0.04);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hamburger:hover {
  background: rgba(11, 60, 93, 0.08);
  border-color: rgba(11, 60, 93, 0.2);
}

.hamburger:active {
  transform: scale(0.98);
}

.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Main content (grows, footer at bottom) ---------- */
main {
  flex: 1;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform 0.2s ease, box-shadow var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.9);
  margin-left: 0.75rem;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: #fff;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 45%, rgba(255,255,255,0.95) 100%);
  color: #fff;
  padding: calc(var(--header-height) + 2rem) 0 4rem;
}

.hero-inner {
  text-align: center;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  opacity: 0.95;
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.hero .btn-primary {
  background: #fff;
  color: var(--primary);
}

.hero .btn-primary:hover {
  background: var(--bg-alt);
  color: var(--primary-dark);
}

/* Hero with background image */
.hero-with-image {
  position: relative;
  min-height: 85vh;
  color: #fff;
  padding: calc(var(--header-height) + 2rem) 0 4rem;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 60, 93, 0.85) 0%, rgba(26, 90, 130, 0.75) 50%, rgba(11, 60, 93, 0.6) 100%);
  z-index: 1;
}

.hero-with-image .hero-inner {
  position: relative;
  z-index: 2;
}

/* ---------- Page sections ---------- */
.section-alt {
  background: var(--bg-alt);
}

.section-intro {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.page-hero {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.page-hero .section-title {
  margin-bottom: 0.75rem;
}
.section {
  padding: 4.5rem 0;
}

.section:nth-child(even) {
  background: var(--bg-alt);
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--primary);
  margin-bottom: 2rem;
  text-align: center;
}

.page-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

/* ---------- Cards ---------- */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.card-title {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.card-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.about-intro,
.page-intro {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  text-align: center;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.7;
}

.cards-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

/* Features / Why choose us */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.feature-card {
  text-align: center;
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Stats section */
.stats-section {
  background: var(--primary);
  color: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 0.5rem 0;
}

.stat-number {
  display: block;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.95rem;
  opacity: 0.95;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  padding: 1.5rem;
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 1rem;
  font-style: italic;
}

.testimonial-author {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.testimonial-author strong {
  display: block;
  color: var(--primary);
  margin-bottom: 0.15rem;
}

/* CTA section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
}

.cta-section .section-title,
.cta-section .section-intro {
  color: rgba(255,255,255,0.95);
}

.cta-section .section-intro {
  color: rgba(255,255,255,0.9);
}

/* About story */
.about-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-story-content h2 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.about-story-content p {
  margin-bottom: 1rem;
  color: var(--text);
  line-height: 1.7;
}

.about-story-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}

.about-story-image img {
  width: 100%;
  height: auto;
}

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.value-card {
  text-align: center;
}

.value-card h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.value-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Service article (image + text blocks) */
.service-article {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  margin-bottom: 2rem;
}

.service-article:last-child {
  margin-bottom: 0;
}

.service-article-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.service-article-image img {
  width: 100%;
  height: auto;
  display: block;
}

.service-article-image--right {
  order: 2;
}

.service-article-content .card-title {
  font-size: 1.35rem;
}

.service-article-content .card-text {
  margin-bottom: 0.75rem;
}

.service-article-content p:last-child {
  color: var(--text);
  line-height: 1.7;
}

/* Team profiles with photo */
.team-profiles .team-card {
  text-align: center;
  padding: 0;
  overflow: hidden;
}

.team-photo-wrap {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-alt);
}

.team-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card-body {
  padding: 1.5rem;
}

.team-profiles .card-title {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.team-meta,
.team-exp {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.team-expertise {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
  margin-top: 0.5rem;
}

/* Blog list (full-width cards) */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.blog-list .blog-card {
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 200px;
}

.blog-card-link {
  display: contents;
  color: inherit;
}

.blog-card-link:hover .card-title {
  color: var(--primary-light);
}

.blog-card-image {
  min-height: 200px;
  overflow: hidden;
  background: var(--bg-alt);
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-card-content .card-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.blog-card-content .card-text {
  margin-bottom: 0.5rem;
}

.blog-card-content p:last-child {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.6;
}

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

.service-card {
  text-align: center;
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.team-card {
  text-align: center;
}

.team-photo {
  width: 120px;
  height: 120px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--bg-alt), var(--border));
}

.team-role {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

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

.blog-card {
  padding: 0;
  overflow: hidden;
}

.blog-card a {
  color: inherit;
}

.blog-card a:hover .card-title {
  color: var(--primary-light);
}

.blog-image {
  height: 160px;
  background: linear-gradient(145deg, var(--primary-light), var(--primary));
  opacity: 0.9;
}

.blog-content {
  padding: 1.25rem;
}

.blog-content .card-title {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.blog-content .card-text {
  font-size: 0.9rem;
}

/* ---------- Blog page (journal + clinical briefings) ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.blog-page {
  --blog-bg: #fafbfc;
  --blog-paper: rgba(11, 60, 93, 0.03);
  --blog-line: rgba(11, 60, 93, 0.06);
  background: var(--blog-bg);
  position: relative;
  padding-bottom: 3rem;
}

.blog-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--blog-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--blog-line) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  opacity: 0.7;
}

.blog-page::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}

.blog-page .blog-page__container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (prefers-reduced-motion: reduce) {
  .blog-page *,
  .blog-page *::before,
  .blog-page *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Masthead */
.blog-page__masthead {
  max-height: 220px;
  padding: 1.5rem 0 1.25rem;
  border-bottom: 1px solid var(--border);
}

.blog-page__masthead-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.blog-page__masthead-left {
  flex-shrink: 0;
}

.blog-page__title {
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.02em;
  margin: 0 0 0.25rem 0;
  line-height: 1.2;
}

.blog-page__subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 420px;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.blog-page__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.blog-page__search-wrap {
  display: inline-block;
}

.blog-page__search {
  width: 100%;
  min-width: 180px;
  max-width: 220px;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.blog-page__search::placeholder {
  color: var(--text-muted);
}

.blog-page__search:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(11, 60, 93, 0.15);
}

.blog-page__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.blog-page__chip {
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  letter-spacing: 0.02em;
}

.blog-page__chip:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.blog-page__chip--active,
.blog-page__chip[aria-pressed="true"] {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(11, 60, 93, 0.06);
}

.blog-page__sort-wrap {
  flex-shrink: 0;
}

.blog-page__sort {
  padding: 0.5rem 1.75rem 0.5rem 0.65rem;
  font-size: 0.875rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c757d' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
}

.blog-page__sort:focus {
  outline: none;
  border-color: var(--primary);
}

/* Layout: content + sticky index */
.blog-page__layout {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 2rem;
  align-items: start;
  padding-top: 1.5rem;
}

.blog-page__content {
  min-width: 0;
}

/* Featured: Editor's Pick */
.blog-page__featured {
  margin-bottom: 2rem;
}

.blog-page__featured-card {
  display: grid;
  grid-template-columns: minmax(280px, 42%) 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.blog-page__slide-frame {
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
  aspect-ratio: 16 / 9;
}

.blog-page__slide-frame::before,
.blog-page__slide-frame::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--primary);
  border-style: solid;
  border-width: 0;
  z-index: 1;
}

.blog-page__slide-frame::before {
  top: 8px;
  left: 8px;
  border-top-width: 1px;
  border-left-width: 1px;
}

.blog-page__slide-frame::after {
  bottom: 8px;
  right: 8px;
  border-bottom-width: 1px;
  border-right-width: 1px;
}

.blog-page__slide-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-page__editors-pick {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.5rem 0;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
}

.blog-page__editors-pick-line {
  width: 24px;
  height: 1px;
  background: var(--primary);
}

.blog-page__brief-code {
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.blog-page__featured-title {
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.blog-page__featured-link {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-page__featured-link:hover {
  color: var(--primary-light);
}

.blog-page__featured-excerpt {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 0.75rem 0;
}

.blog-page__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  margin-bottom: 0.75rem;
}

.blog-page__read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  position: relative;
  display: inline-block;
}

.blog-page__read-more::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.blog-page__read-more:hover::after,
.blog-page__read-more:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Feed grid */
.blog-page__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.blog-page__card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.blog-page__card:hover,
.blog-page__card:focus-within {
  box-shadow: var(--shadow-hover);
}

@media (prefers-reduced-motion: no-preference) {
  .blog-page__card:hover {
    transform: translateY(-2px);
  }
}

.blog-page__card-link {
  position: absolute;
  inset: 0;
  z-index: 0;
  text-indent: -9999px;
}

.blog-page__card-link:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.blog-page__card-media {
  aspect-ratio: 16 / 9;
}

.blog-page__slide-frame--card::before,
.blog-page__slide-frame--card::after {
  width: 8px;
  height: 8px;
}

.blog-page__slide-frame--card::before {
  top: 6px;
  left: 6px;
}

.blog-page__slide-frame--card::after {
  bottom: 6px;
  right: 6px;
}

.blog-page__card-body {
  padding: 1rem 1rem 1.1rem;
  position: relative;
  z-index: 1;
}

.blog-page__card-title {
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 0.4rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text);
}

.blog-page__card-excerpt {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0 0 0.6rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-page__card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.6rem;
}

.blog-page__pill {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  background: rgba(11, 60, 93, 0.08);
  color: var(--primary);
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.blog-page__pill--tip {
  background: rgba(11, 60, 93, 0.05);
  color: var(--text-muted);
}

.blog-page__card-cta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  position: relative;
  display: inline-block;
}

.blog-page__card-cta::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.2s ease;
}

.blog-page__card-cta:hover::after,
.blog-page__card-cta:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.blog-page__no-results.visually-hidden {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  padding: 1rem;
  clip: auto;
  overflow: visible;
  text-align: center;
  color: var(--text-muted);
}

.blog-page__no-results:not(.visually-hidden) {
  display: block;
}

/* Sticky index */
.blog-page__index {
  position: sticky;
  top: calc(var(--header-height, 72px) + 1rem);
}

.blog-page__index-inner {
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.blog-page__index-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin: 0 0 0.6rem 0;
}

.blog-page__index-title--week {
  margin-top: 1.25rem;
}

.blog-page__index-chips {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.blog-page__index-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.4rem 0.5rem;
  font-size: 0.8rem;
  text-align: left;
  color: var(--text);
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.blog-page__index-chip:hover {
  background: rgba(11, 60, 93, 0.06);
  color: var(--primary);
}

.blog-page__count {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.blog-page__week-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-page__week-list li {
  margin-bottom: 0.35rem;
}

.blog-page__week-link {
  font-size: 0.85rem;
  color: var(--text);
  text-decoration: none;
  display: block;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.blog-page__week-link:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Mobile drawer */
.blog-page__drawer {
  display: none;
}

.blog-page__drawer-toggle {
  display: none;
  width: 100%;
  padding: 0.65rem 1rem;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
}

.blog-page__drawer-panel {
  display: none;
  padding: 1rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-top: 0.5rem;
}

.blog-page__drawer[aria-expanded="true"] .blog-page__drawer-panel,
.blog-page__drawer-panel.is-open {
  display: block;
}

/* Reader modal */
.blog-page__reader-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(11, 60, 93, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.blog-page__reader-overlay[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.blog-page__reader-sheet {
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  background: var(--bg-card);
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(11, 60, 93, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.98);
  transition: transform 0.25s ease;
}

.blog-page__reader-overlay[aria-hidden="false"] .blog-page__reader-sheet {
  transform: scale(1);
}

.blog-page__reader-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.blog-page__reader-title {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  color: var(--text);
  flex: 1;
  min-width: 0;
}

.blog-page__reader-close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.blog-page__reader-close:hover {
  color: var(--primary);
  background: rgba(11, 60, 93, 0.08);
}

.blog-page__reader-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text);
}

.blog-page__reader-body p {
  margin: 0 0 1rem 0;
}

.blog-page__reader-body p:last-child {
  margin-bottom: 0;
}

.blog-page__reader-note {
  padding: 1rem 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
  border-top: 1px solid var(--border);
}

.blog-page__reader-note.visually-hidden {
  display: none !important;
}

/* Blog responsive */
@media (max-width: 992px) {
  .blog-page__layout {
    grid-template-columns: 1fr;
  }

  .blog-page__index {
    display: none;
  }

  .blog-page__drawer,
  .blog-page__drawer-toggle {
    display: block;
  }

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

  .blog-page__featured-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .blog-page__masthead-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .blog-page__controls {
    flex-direction: column;
    align-items: stretch;
  }

  .blog-page__search {
    max-width: none;
  }

  .blog-page__grid {
    grid-template-columns: 1fr;
  }

  .blog-page__chips {
    justify-content: flex-start;
  }
}

/* ---------- Contact ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-info-title,
.contact-form-title {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.contact-address {
  font-style: normal;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.contact-item {
  margin-bottom: 0.5rem;
}

.contact-item a {
  color: var(--primary);
}

.contact-form-wrapper {
  margin-top: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-form label {
  font-weight: 500;
  color: var(--text);
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11, 60, 93, 0.15);
}

.contact-form button {
  margin-top: 0.5rem;
  align-self: flex-start;
}

.contact-map {
  min-height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.contact-map iframe {
  display: block;
  min-height: 400px;
}

/* ---------- Footer (not sticky) ---------- */
.footer {
  position: relative;
  overflow: hidden;
  background: var(--primary-dark);
  color: #fff;
  margin-top: auto;
  flex-shrink: 0;
  border-top: 3px solid var(--primary-light);
}

/* Decorative stethoscope (top-left) */
.footer-deco {
  position: absolute;
  left: -24px;
  top: -38px;
  width: 280px;
  max-width: 40vw;
  opacity: 0.18;
  transform: rotate(-12deg);
  filter: drop-shadow(0 18px 22px rgba(0,0,0,0.25));
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.footer-deco img {
  width: 100%;
  height: auto;
  display: block;
}

/* Keep footer content above the decoration */
.footer .footer-inner,
.footer .footer-main,
.footer .container {
  position: relative;
  z-index: 1;
}

.footer-inner {
  padding: 3rem 0 0;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  padding-bottom: 2rem;
}

.footer-block {
  text-align: left;
}

.footer-brand {
  text-align: left;
}

.footer-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.5rem;
  transition: color var(--transition);
}

.footer-logo:hover {
  color: rgba(255,255,255,0.9);
}

.footer-tagline {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
  margin: 0;
}

.footer-heading {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.7);
  margin: 0 0 0.75rem;
}

.footer-address-text {
  font-style: normal;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.9);
  margin: 0;
}

.footer-contact p {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
}

.footer-contact .footer-heading {
  margin-top: 1rem;
}

.footer-contact .footer-heading:first-child {
  margin-top: 0;
}

.footer-contact a {
  color: rgba(255,255,255,0.95);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-contact a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-social-links {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  color: #fff;
  transition: background var(--transition), transform 0.2s ease;
}

.social-link:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  color: #fff;
}

.social-icon {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 1.25rem 0;
  text-align: center;
}

.footer-copy {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
  margin: 0;
}

@media (max-width: 900px) {
  .footer-deco {
    width: 220px;
    left: -30px;
    top: -30px;
    opacity: 0.14;
  }
}

@media (max-width: 520px) {
  .footer-deco {
    width: 180px;
    left: -38px;
    top: -24px;
    opacity: 0.10;
    transform: rotate(-10deg);
  }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Mobile ---------- */
@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

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

  .about-story-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-story-image {
    order: -1;
  }

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

  .service-article {
    grid-template-columns: 1fr;
  }

  .service-article-image--right {
    order: 0;
  }

  .blog-list .blog-card {
    grid-template-columns: 1fr;
  }

  .blog-card-image {
    min-height: 220px;
  }

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

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

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

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-map {
    min-height: 300px;
  }

  .contact-map iframe {
    min-height: 300px;
  }

  .footer-main {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: var(--shadow);
    padding: 1rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
    z-index: 999;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
  }

  .nav-link {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 10px;
  }

  .nav-link::after {
    left: 0;
  }

  .nav-link:hover::after,
  .nav-link.active::after {
    left: 0;
    width: 4px;
    height: 100%;
    bottom: 0;
    border-radius: 0 2px 2px 0;
  }

  .hamburger {
    display: flex;
  }

  .cards-row {
    grid-template-columns: 1fr;
  }

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

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

  .section {
    padding: 3rem 0;
  }

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

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

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

  .cta-section .btn-outline {
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-brand,
  .footer-block {
    text-align: center;
  }

  .footer-social-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 75vh;
    padding: calc(var(--header-height) + 1.5rem) 0 3rem;
  }

  .container {
    padding: 0 1rem;
  }
}

/* ============================================
   HOMEPAGE SIGNATURE: Kinetic Body Map + Recovery Journey
   Design tokens, grain, hero, journey, regions, signals, testimonials, CTA
   ============================================ */

:root {
  --hp-color-ink: #0d2840;
  --hp-color-paper: #f8f9fa;
  --hp-color-line: rgba(11, 60, 93, 0.35);
  --hp-color-accent: var(--primary);
  --hp-radius-sm: 6px;
  --hp-radius-md: 10px;
  --hp-radius-pill: 999px;
  --hp-space-xs: 0.5rem;
  --hp-space-sm: 1rem;
  --hp-space-md: 1.5rem;
  --hp-space-lg: 2rem;
  --hp-space-xl: 3rem;
  --hp-font-size-hero: clamp(1.75rem, 4vw, 2.75rem);
  --hp-font-size-section: clamp(1.5rem, 2.5vw, 2rem);
  --hp-transition: 0.25s ease;
}

/* Hero: masked background image (vitalworkshome.jpg) */
.hp-hero__bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("../images/vitalworkshome.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.25) 30%, rgba(0, 0, 0, 0.85) 55%, black 75%, black 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.25) 30%, rgba(0, 0, 0, 0.85) 55%, black 75%, black 100%);
  mask-size: 100% 100%;
  mask-position: center;
  -webkit-mask-size: 100% 100%;
  -webkit-mask-position: center;
}

.hp-hero__bg-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
      rgba(5, 18, 30, 0.96) 0%,
      rgba(6, 24, 39, 0.88) 26%,
      rgba(9, 40, 65, 0.6) 52%,
      rgba(12, 60, 93, 0.32) 78%,
      transparent 100%);
  pointer-events: none;
}

/* Vertical spine of softly glowing joints (physiotherapy cue) */
.hp-hero__spine {
  position: absolute;
  top: 18%;
  left: 10%;
  transform: none;
  height: 62%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 1;
}

.hp-hero__spine::before {
  content: '';
  position: absolute;
  inset: 4% auto 4%;
  width: 1px;
  background: linear-gradient(
    180deg,
    rgba(180, 222, 255, 0) 0%,
    rgba(180, 222, 255, 0.5) 25%,
    rgba(180, 222, 255, 0.85) 50%,
    rgba(180, 222, 255, 0.5) 75%,
    rgba(180, 222, 255, 0) 100%
  );
  background-size: 100% 200%;
  background-position: 0 0%;
  box-shadow: 0 0 12px rgba(70, 154, 209, 0.7);
  opacity: 0.75;
  animation: hp-spine-line-flow 5s ease-in-out infinite;
}

/* Passing scan lines (medical / monitor style) */
.hp-hero__spine-lines {
  position: absolute;
  inset: -5% 50%;
  width: 140%;
  left: 50%;
  transform: translateX(-50%);
  overflow: hidden;
  pointer-events: none;
}

.hp-hero__spine-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(160, 220, 255, 0.25) 20%,
    rgba(180, 235, 255, 0.6) 50%,
    rgba(160, 220, 255, 0.25) 80%,
    transparent 100%
  );
  box-shadow: 0 0 8px rgba(100, 180, 230, 0.4);
  animation: hp-spine-scan 8s linear infinite;
}

.hp-hero__spine-line--1 { top: 0%;   animation-delay: 0s;    animation-duration: 7s; }
.hp-hero__spine-line--2 { top: 10%;  animation-delay: 1.8s;  animation-duration: 9s; }
.hp-hero__spine-line--3 { top: 25%;  animation-delay: 3.2s;  animation-duration: 6.5s; }
.hp-hero__spine-line--4 { top: 55%;  animation-delay: 0.5s;  animation-duration: 8s; }
.hp-hero__spine-line--5 { top: 80%;  animation-delay: 2.5s;  animation-duration: 7.5s; }

@keyframes hp-spine-scan {
  0%   { transform: translateY(-100%); opacity: 0; }
  5%   { opacity: 0.7; }
  95%  { opacity: 0.7; }
  100% { transform: translateY(100vh); opacity: 0; }
}

@keyframes hp-spine-line-flow {
  0%, 100% { background-position: 0 0%; opacity: 0.7; }
  50%      { background-position: 0 100%; opacity: 0.9; }
}

.hp-hero__spine-dot {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle, #f5feff 0, #b9ecff 45%, transparent 70%);
  box-shadow:
    0 0 6px rgba(158, 217, 243, 0.9),
    0 0 14px rgba(12, 94, 148, 0.75);
  opacity: 0.85;
  overflow: visible;
  animation: hp-spine-dot-float 4s ease-in-out infinite;
}

.hp-hero__spine-dot--1 { animation-delay: 0s; }
.hp-hero__spine-dot--2 { animation-delay: 0.3s; }
.hp-hero__spine-dot--3 { animation-delay: 0.6s; }
.hp-hero__spine-dot--4 { animation-delay: 0.9s; }
.hp-hero__spine-dot--5 { animation-delay: 1.2s; }

@keyframes hp-spine-dot-float {
  0%, 100% { transform: translateX(0) scale(1); opacity: 0.8; }
  25%      { transform: translateX(2px) scale(1.05); opacity: 1; }
  50%      { transform: translateX(-1px) scale(0.98); opacity: 0.9; }
  75%      { transform: translateX(-2px) scale(1.02); opacity: 1; }
}

.hp-hero__spine-dot::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(221, 244, 255, 0.3);
  box-shadow: 0 0 10px rgba(173, 233, 255, 0.5);
  opacity: 0;
  transform: scale(0.5);
  animation: hp-spine-pulse 4.2s ease-out infinite;
}

.hp-hero__spine-dot--2::after { animation-delay: 0.5s; }
.hp-hero__spine-dot--3::after { animation-delay: 1s; }
.hp-hero__spine-dot--4::after { animation-delay: 1.5s; }
.hp-hero__spine-dot--5::after { animation-delay: 2s; }

@keyframes hp-spine-pulse {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }
  35% {
    opacity: 0.9;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.4);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hp-hero__spine::before { animation: none; }
  .hp-hero__spine-line   { animation: none; opacity: 0.2; }
  .hp-hero__spine-dot    { animation: none; }
}

@media (max-width: 480px) {
  .hp-hero__spine {
    display: flex;
    top: 52%;
    bottom: auto;
    left: 0.75rem;
    right: auto;
    height: 32%;
    transform: none;
  }
}

/* Grain overlay (subtle noise) */
.hp-hero__grain,
.hp-journey__grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- HERO: Body Map Portal ---------- */
.hp-hero {
  position: relative;
  min-height: 85vh;
  padding: calc(var(--header-height) + var(--hp-space-lg)) 0 var(--hp-space-xl);
  background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 40%, var(--primary-light) 100%);
  color: #fff;
  overflow: hidden;
}

.hp-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--hp-space-xl);
  align-items: center;
  min-height: 60vh;
}

.hp-hero__content {
  max-width: 520px;
}

.hp-hero__headline-wrap {
  position: relative;
  padding-left: 1.25rem;
}

.hp-hero__breathing-line {
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.2em;
  width: 3px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--hp-radius-pill);
  animation: hp-breathe 4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .hp-hero__breathing-line {
    animation: none;
    opacity: 0.7;
  }
}

@keyframes hp-breathe {
  0%, 100% { transform: scaleY(0.6); opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}

.hp-hero__title {
  font-size: var(--hp-font-size-hero);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--hp-space-sm);
}

.hp-hero__promise {
  font-size: clamp(0.9375rem, 1.5vw, 1.125rem);
  opacity: 0.95;
  line-height: 1.6;
  margin-bottom: var(--hp-space-lg);
}

.hp-hero__proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--hp-space-xs);
}

.hp-hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12);
  padding: 0.4rem 0.75rem;
  border-radius: var(--hp-radius-pill);
}

.hp-hero__chip-icon {
  font-size: 0.5rem;
  opacity: 0.8;
}

.hp-hero__map-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}

.hp-hero__map-inner {
  position: relative;
  width: 100%;
  max-width: 280px;
  color: rgba(255, 255, 255, 0.85);
}

.hp-hero__body-map {
  width: 100%;
  height: auto;
  transition: transform var(--hp-transition);
}

.hp-hero__pulse-ring {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hp-hero__body-map.has-motion .hp-hero__pulse-ring {
  opacity: 0.7;
  animation: hp-pulse-ring 2.5s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .hp-hero__body-map.has-motion .hp-hero__pulse-ring {
    animation: none;
  }
}

@keyframes hp-pulse-ring {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.85; }
}

.hp-hero__hotspot {
  cursor: pointer;
  color: inherit;
  transition: transform 0.2s ease;
}

.hp-hero__hotspot:hover,
.hp-hero__hotspot:focus {
  outline: none;
}

.hp-hero__hotspot:hover circle:first-of-type,
.hp-hero__hotspot:focus circle:first-of-type {
  opacity: 1;
  stroke-width: 2;
}

.hp-hero__tooltip {
  position: absolute;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  background: var(--hp-color-ink);
  color: #fff;
  border-radius: var(--hp-radius-sm);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 5;
  pointer-events: none;
}

.hp-hero__tooltip--neck { left: 50%; top: 0; transform: translate(-50%, -100%); margin-top: -0.5rem; }
.hp-hero__tooltip--back { left: 50%; top: 50%; transform: translate(-50%, -100%); margin-top: -2rem; }
.hp-hero__tooltip--knee { left: 50%; bottom: 0; transform: translate(-50%, 100%); margin-bottom: -0.5rem; }

.hp-hero__hotspot--neck:hover + .hp-hero__tooltip--neck,
.hp-hero__hotspot--neck:focus + .hp-hero__tooltip--neck,
.hp-hero__hotspot--back:hover + .hp-hero__tooltip--back,
.hp-hero__hotspot--back:focus + .hp-hero__tooltip--back,
.hp-hero__hotspot--knee:hover + .hp-hero__tooltip--knee,
.hp-hero__hotspot--knee:focus + .hp-hero__tooltip--knee {
  opacity: 1;
  visibility: visible;
}

/* Tooltips are siblings of hotspots in SVG group; we need them outside SVG for positioning */
.hp-hero__map-inner .hp-hero__tooltip--neck { top: 22%; left: 50%; }
.hp-hero__map-inner .hp-hero__tooltip--back { top: 50%; left: 50%; transform: translate(-50%, -50%); margin-top: 0; margin-bottom: 0; }
.hp-hero__map-inner .hp-hero__tooltip--knee { top: auto; bottom: 18%; left: 50%; transform: translate(-50%, 0); margin-bottom: 0; }

.hp-hero__tooltip.is-visible {
  opacity: 1;
  visibility: visible;
}

/* ---------- HERO: Editorial Split + Logo Lockup (scoped) ---------- */
.vw-hero .vw-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  column-gap: clamp(2.5rem, 6vw, 4rem);
  align-items: stretch;
  min-height: 60vh;
}

.vw-hero .vw-hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: min(600px, 100%);
  padding-right: clamp(1.5rem, 3vw, 2.5rem);
}

.vw-hero .hp-hero__headline-wrap {
  padding-left: 1.5rem;
  margin-bottom: var(--hp-space-sm);
}

.vw-hero .hp-hero__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  opacity: 0.95;
}

.vw-hero .hp-hero__title {
  font-size: clamp(2.25rem, 4vw, 4rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.vw-hero .hp-hero__promise {
  font-size: clamp(0.98rem, 1.05rem, 1.1rem);
  line-height: 1.65;
  opacity: 0.9;
  max-width: 32rem;
  margin-bottom: var(--hp-space-md);
}

.vw-hero .vw-hero-chips {
  max-width: 32rem;
  row-gap: 0.4rem;
  column-gap: 0.6rem;
}

.vw-hero .vw-hero-chips .hp-hero__chip {
  flex: 1 1 calc(50% - 0.6rem);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(6, 24, 39, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 0.8rem;
}

.vw-hero .vw-hero-chips .hp-hero__chip-icon {
  font-size: 0.48rem;
  opacity: 0.8;
}

.vw-hero .vw-hero-right {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  min-height: 420px;
  padding-inline: clamp(0.5rem, 1.5vw, 1rem);
}

.vw-hero .vw-watermark {
  position: absolute;
  inset: 10% -18% auto auto;
  font-size: clamp(3.75rem, 9vw, 6.5rem);
  letter-spacing: 0.35em;
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0.04;
  white-space: nowrap;
  pointer-events: none;
}

.vw-hero .vw-motif {
  position: relative;
  margin-right: clamp(0.25rem, 1vw, 0.75rem);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.vw-hero .vw-motif-svg {
  display: block;
  height: clamp(220px, 42vh, 320px);
  width: auto;
  color: rgba(255, 255, 255, 0.75);
  opacity: 0.45;
}

.vw-hero .vw-lockup {
  position: absolute;
  right: clamp(1.5rem, 4vw, 3rem);
  bottom: clamp(2rem, 6vh, 3.5rem);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 1rem 2.1rem;
  border-radius: 999px;
  background: radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.05) 0, transparent 50%),
    linear-gradient(135deg, rgba(3, 14, 24, 0.45), rgba(10, 38, 64, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 14px 26px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.vw-hero .vw-lockup-title {
  font-family: "Times New Roman", "Georgia", serif;
  font-size: 0.95rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
}

.vw-hero .vw-lockup-tagline {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.9;
}

@media (max-width: 900px) {
  .vw-hero .vw-hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .vw-hero .vw-watermark {
    inset: 6% -16% auto auto;
    font-size: clamp(3.25rem, 11vw, 5.5rem);
  }
}

@media (max-width: 768px) {
  .vw-hero .vw-hero-inner {
    grid-template-columns: 1fr;
    row-gap: var(--hp-space-lg);
  }

  .vw-hero .vw-hero-left {
    padding-right: 0;
    text-align: left;
  }

  .vw-hero .hp-hero__headline-wrap {
    padding-left: 1rem;
  }

  .vw-hero .vw-hero-chips {
    max-width: none;
  }

  .vw-hero .vw-hero-right {
    align-items: flex-start;
    min-height: 0;
    padding-bottom: var(--hp-space-sm);
  }

  .vw-hero .vw-watermark {
    inset: auto auto -5% -10%;
    font-size: clamp(3rem, 16vw, 4.5rem);
    text-align: left;
  }

  .vw-hero .vw-lockup {
    position: static;
    align-items: flex-start;
    margin-top: 0.75rem;
  }

  .vw-hero .vw-motif {
    margin-right: 0;
    margin-bottom: 1.25rem;
  }
}

@media (max-width: 480px) {
  .vw-hero .hp-hero__title {
    font-size: clamp(2.1rem, 8vw, 2.6rem);
  }

  .vw-hero .hp-hero__promise {
    font-size: 0.98rem;
  }

  .vw-hero .vw-hero-chips .hp-hero__chip {
    flex: 1 1 100%;
  }
}

/* ---------- HERO ALT BANT: Kurumsal Marquee ---------- */
.vw-marquee-band {
  position: relative;
  z-index: 2;
  min-height: 58px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(11, 60, 93, 0.035) 0%, rgba(11, 60, 93, 0.015) 50%, rgba(11, 60, 93, 0.035) 100%),
    #f8fafd;
  border-top: 1px solid rgba(11, 60, 93, 0.12);
  border-bottom: 1px solid rgba(11, 60, 93, 0.12);
  overflow: hidden;
}

.vw-marquee-band__viewport {
  width: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.vw-marquee-band__track {
  flex-shrink: 0;
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  padding: 0.8rem 0;
  padding-inline: 0.72rem;
  animation: vw-marquee-scroll 54s linear infinite;
  will-change: transform;
}

.vw-marquee-band__item {
  font-size: clamp(0.72rem, 0.36vw + 0.68rem, 0.86rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(8, 42, 63, 0.9);
}

.vw-marquee-band__sep {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.54rem;
  line-height: 1;
  color: rgba(11, 60, 93, 0.42);
  transform: translateY(-0.5px);
}

@keyframes vw-marquee-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-100%, 0, 0); }
}

@media (max-width: 768px) {
  .vw-marquee-band {
    min-height: 52px;
  }

  .vw-marquee-band__track {
    gap: 0.62rem;
    padding-block: 0.72rem;
  }

  .vw-marquee-band__item {
    letter-spacing: 0.08em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vw-marquee-band__track {
    animation-duration: 220s;
  }
}

/* ---------- RECOVERY JOURNEY ---------- */
.hp-journey {
  position: relative;
  padding: var(--hp-space-xl) 0;
  background: var(--hp-color-paper);
}

.hp-journey__title {
  font-size: var(--hp-font-size-section);
  color: var(--primary);
  text-align: center;
  margin-bottom: var(--hp-space-xl);
}

.hp-journey__track-wrap {
  position: relative;
}

.hp-journey__track-svg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 80px;
  color: var(--hp-color-line);
  pointer-events: none;
}

.hp-journey__track-svg--v {
  display: none;
}

.hp-journey__track-line {
  transition: stroke-dashoffset 0.8s ease;
}

@media (prefers-reduced-motion: reduce) {
  .hp-journey__track-line {
    transition: none;
  }
}

.hp-journey__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--hp-space-md);
  position: relative;
  z-index: 1;
}

.hp-journey__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hp-journey__step .hp-journey__card {
  flex: 1;
}

.hp-journey__node {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--hp-space-sm);
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(11, 60, 93, 0.25);
  position: relative;
  z-index: 2;
}

.hp-journey__node::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(11, 60, 93, 0.15);
}

.hp-journey__node-num {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hp-journey__card {
  background: var(--bg-card);
  border-radius: var(--hp-radius-md);
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: relative;
  text-align: left;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  height: 100%;
}

.hp-journey__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.hp-journey__card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.hp-journey__card:hover::before {
  opacity: 1;
}

.hp-journey__card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(11,60,93,0.08), rgba(26,90,130,0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.hp-journey__code {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-light);
  background: rgba(11,60,93,0.06);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.hp-journey__card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.hp-journey__card-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ---------- FACTORY LONG-TERM VALUE ---------- */
.hp-factory-value {
  padding: 0 0 var(--hp-space-xl);
  background: var(--hp-color-paper);
}

.hp-factory-value__card {
  position: relative;
  padding: clamp(1.4rem, 2.8vw, 2.2rem);
  border-radius: var(--hp-radius-md);
  border: 1px solid rgba(11, 60, 93, 0.14);
  background:
    linear-gradient(160deg, rgba(11, 60, 93, 0.045) 0%, rgba(11, 60, 93, 0.015) 58%, rgba(11, 60, 93, 0.035) 100%),
    #ffffff;
  box-shadow: 0 10px 28px rgba(11, 60, 93, 0.08);
  overflow: hidden;
}

.hp-factory-value__card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(11, 60, 93, 0.2), rgba(11, 60, 93, 0.45), rgba(11, 60, 93, 0.2));
}

.hp-factory-value__eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(11, 60, 93, 0.72);
}

.hp-factory-value__title {
  margin: 0 0 0.9rem;
  max-width: 30ch;
  font-size: clamp(1.35rem, 2.25vw, 1.9rem);
  line-height: 1.25;
  color: var(--primary);
}

.hp-factory-value__lead,
.hp-factory-value__text {
  margin: 0;
  max-width: 78ch;
  color: #3d5568;
  line-height: 1.75;
  font-size: clamp(0.95rem, 0.3vw + 0.9rem, 1.02rem);
}

.hp-factory-value__lead,
.hp-factory-value__text + .hp-factory-value__text {
  margin-top: 0.85rem;
}

/* ---------- BODY REGIONS LIBRARY ---------- */
.hp-regions {
  padding: var(--hp-space-xl) 0 calc(var(--hp-space-xl) + 2rem);
}

.hp-regions__title {
  font-size: var(--hp-font-size-section);
  color: var(--primary);
  text-align: center;
  margin-bottom: 0.5rem;
}

.hp-regions__subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: var(--hp-space-lg);
}

.hp-regions__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.hp-regions__tag {
  padding: 0.55rem 1.15rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--hp-radius-pill);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.hp-regions__tag:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(11, 60, 93, 0.03);
}

.hp-regions__tag:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(11, 60, 93, 0.15);
}

.hp-regions__tag.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(11, 60, 93, 0.25);
}

.hp-regions__panel {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  max-width: 820px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.hp-regions__panel--visible {
  opacity: 1;
  transform: translateY(0);
}

.hp-regions__panel-icon {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(11,60,93,0.08), rgba(26,90,130,0.14));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.hp-regions__panel-body {
  flex: 1;
  min-width: 0;
}

.hp-regions__panel-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 0.4rem;
}

.hp-regions__panel-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 1.25rem;
}

.hp-regions__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.hp-regions__list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.55;
}

.hp-regions__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

/* ---------- CLINICAL SIGNALS BAR ---------- */
.hp-signals {
  position: relative;
  padding: var(--hp-space-xl) 0;
  background: var(--primary);
  color: #fff;
  overflow: hidden;
}

.hp-signals__wave {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hp-signals__wave svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hp-signals__wave-path {
  animation: hp-wave 6s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .hp-signals__wave-path {
    animation: none;
  }
}

@keyframes hp-wave {
  0%, 100% { opacity: 0.15; d: path("M0 30 Q50 10 100 30 T200 30 T300 30 T400 30"); }
  50% { opacity: 0.25; }
}

.hp-signals__inner {
  position: relative;
  z-index: 1;
}

.hp-signals__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--hp-space-lg);
  text-align: center;
  margin-bottom: var(--hp-space-sm);
}

.hp-signals__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.hp-signals__number {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
}

.hp-signals__suffix {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 600;
  opacity: 0.95;
}

.hp-signals__label {
  font-size: 0.9375rem;
  opacity: 0.95;
}

.hp-signals__disclaimer {
  font-size: 0.75rem;
  opacity: 0.7;
  text-align: center;
  margin: 0;
}

/* ---------- TESTIMONIALS: Audio Notes ---------- */
.hp-testimonials__title {
  font-size: var(--hp-font-size-section);
  color: var(--primary);
  text-align: center;
  margin-bottom: var(--hp-space-lg);
}

.hp-testimonials__carousel-wrap {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.hp-testimonials__fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  pointer-events: none;
  z-index: 2;
}

.hp-testimonials__fade--left {
  left: 0;
  background: linear-gradient(to right, var(--bg-alt), transparent);
}

.hp-testimonials__fade--right {
  right: 0;
  background: linear-gradient(to left, var(--bg-alt), transparent);
}

.hp-testimonials__scroll {
  display: flex;
  gap: var(--hp-space-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: var(--hp-space-sm) 0;
  -webkit-overflow-scrolling: touch;
}

.hp-testimonials__scroll::-webkit-scrollbar {
  height: 6px;
}

.hp-testimonials__scroll::-webkit-scrollbar-track {
  background: var(--border);
  border-radius: 3px;
}

.hp-testimonials__scroll::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}

.hp-testimonials__card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--hp-radius-md);
  padding: var(--hp-space-md);
  box-shadow: var(--shadow);
  transition: box-shadow var(--hp-transition);
}

.hp-testimonials__card:hover {
  box-shadow: var(--shadow-hover);
}

.hp-testimonials__wave {
  height: 24px;
  margin-bottom: var(--hp-space-sm);
  color: var(--primary);
  opacity: 0.6;
}

.hp-testimonials__wave svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hp-testimonials__card:hover .hp-testimonials__wave {
  animation: hp-waveform 1.2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .hp-testimonials__card:hover .hp-testimonials__wave {
    animation: none;
  }
}

@keyframes hp-waveform {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.hp-testimonials__quote {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 0.75rem;
  font-style: italic;
}

.hp-testimonials__cite {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-style: normal;
}

.hp-testimonials__nav {
  display: flex;
  justify-content: center;
  gap: var(--hp-space-sm);
  margin-top: var(--hp-space-md);
}

.hp-testimonials__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--primary);
  font-size: 1.25rem;
  cursor: pointer;
  transition: background var(--hp-transition), border-color var(--hp-transition);
}

.hp-testimonials__btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.hp-testimonials__btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(11, 60, 93, 0.25);
}

/* ---------- FINAL CTA PANEL ---------- */
.hp-cta {
  position: relative;
  padding: var(--hp-space-xl) 0;
  background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
  overflow: hidden;
}

.hp-cta__progress-ring {
  position: absolute;
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
  width: 180px;
  height: 180px;
  color: rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

.hp-cta__progress-ring svg {
  width: 100%;
  height: 100%;
}

.hp-cta__ring-fill {
  transition: stroke-dashoffset 0.5s ease;
}

@media (prefers-reduced-motion: reduce) {
  .hp-cta__ring-fill {
    transition: none;
  }
}

.hp-cta__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--hp-space-lg);
  align-items: center;
}

.hp-cta__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0;
}

.hp-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--hp-space-sm);
}

.hp-cta__btn {
  padding: 0.85rem 1.5rem;
  font-weight: 600;
  border-radius: var(--hp-radius-md);
}

.hp-cta__btn--phone {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.hp-cta__btn--phone:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: #fff;
  color: #fff;
}

.hp-cta__chips {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: var(--hp-space-xs);
}

.hp-cta__chip {
  font-size: 0.8125rem;
  opacity: 0.9;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.35rem 0.75rem;
  border-radius: var(--hp-radius-pill);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Homepage responsive ---------- */
@media (max-width: 992px) {
  .hp-hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hp-hero__content {
    max-width: none;
  }

  .hp-hero__headline-wrap {
    padding-left: 0;
  }

  .hp-hero__breathing-line {
    display: none;
  }

  .hp-hero__proof-strip {
    justify-content: center;
  }

  .hp-hero__visual {
    min-height: 320px;
    order: -1;
  }

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

  .hp-journey__track-svg {
    height: 100%;
    min-height: 320px;
  }

  .hp-journey__track-svg--h {
    display: none;
  }

  .hp-journey__track-svg--v {
    display: block;
  }

  .hp-regions__panel {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
  }

  .hp-regions__list {
    text-align: left;
  }

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

  .hp-cta__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hp-cta__actions {
    justify-content: center;
  }

  .hp-cta__chips {
    justify-content: center;
  }

  .hp-cta__progress-ring {
    right: 5%;
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 768px) {
  .hp-journey__steps {
    grid-template-columns: 1fr;
    gap: var(--hp-space-lg);
  }

  .hp-journey__step {
    flex-direction: row;
    text-align: left;
    gap: var(--hp-space-md);
  }

  .hp-journey__step .hp-journey__card {
    flex: unset;
  }

  .hp-journey__card {
    padding: 1.25rem;
  }

  .hp-journey__card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    margin-bottom: 0.75rem;
  }

  .hp-journey__card-icon svg {
    width: 22px;
    height: 22px;
  }

  .hp-journey__node {
    margin-bottom: 0;
  }

  .hp-journey__track-svg {
    display: none;
  }

  .hp-factory-value {
    padding-bottom: var(--hp-space-lg);
  }

  .hp-factory-value__card {
    padding: 1.25rem 1.1rem 1.2rem;
  }

  .hp-factory-value__title {
    max-width: none;
  }

  .hp-signals__grid {
    grid-template-columns: 1fr;
    gap: var(--hp-space-md);
  }

  .hp-testimonials__card {
    flex: 0 0 260px;
  }

  .hp-testimonials__fade--left,
  .hp-testimonials__fade--right {
    width: 32px;
  }
}

@media (max-width: 480px) {
  .hp-hero {
    min-height: auto;
    padding: calc(var(--header-height) + var(--hp-space-md)) 0 var(--hp-space-lg);
  }

  .hp-hero__map-wrap {
    min-height: 260px;
  }

  .hp-hero__ctas {
    flex-direction: column;
  }

  .hp-hero__ctas .btn {
    width: 100%;
    text-align: center;
  }

  .hp-cta__progress-ring {
    display: none;
  }
}

/* ============================================
   ABOUT PAGE: Clinic Story + Body Map
   Scoped under .about-page — do not affect header/nav
   ============================================ */

.about-page {
  --ap-ink: #0d2840;
  --ap-paper: #fafbfc;
  --ap-paper-alt: #f2f4f6;
  --ap-line: rgba(11, 60, 93, 0.28);
  --ap-line-strong: rgba(11, 60, 93, 0.5);
  --ap-radius: 8px;
  --ap-radius-sm: 4px;
  --ap-space-xs: 0.5rem;
  --ap-space-sm: 1rem;
  --ap-space-md: 1.5rem;
  --ap-space-lg: 2rem;
  --ap-space-xl: 3rem;
  --ap-font-hero: clamp(1.75rem, 4vw, 2.5rem);
  --ap-font-section: clamp(1.5rem, 2.5vw, 2rem);
  --ap-transition: 0.3s ease;
  --ap-shadow: 0 2px 12px rgba(11, 60, 93, 0.06);
  --ap-shadow-card: 0 4px 20px rgba(11, 60, 93, 0.08);
}

/* ---------- 1) HERO: Clinical Note Cover ---------- */
.about-page .ap-hero {
  position: relative;
  padding: calc(var(--header-height) + var(--ap-space-xl)) 0 var(--ap-space-xl);
  background: var(--ap-paper);
  color: var(--ap-ink);
  overflow: hidden;
}

.about-page .ap-hero__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.about-page .ap-hero__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--ap-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--ap-line) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: 0 0;
  opacity: 0.4;
}

.about-page .ap-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--ap-space-xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.about-page .ap-hero__title {
  font-size: var(--ap-font-hero);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--ap-space-sm);
  color: var(--primary);
}

.about-page .ap-hero__promise {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.55;
  color: var(--text);
  margin-bottom: var(--ap-space-xs);
}

.about-page .ap-hero__subline {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: var(--ap-space-md);
}

.about-page .ap-hero__stamp-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-top: var(--ap-space-sm);
  border-top: 1px solid var(--ap-line);
}

.about-page .ap-hero__stamp-row span:nth-child(even) {
  opacity: 0.6;
}

.about-page .ap-hero__figure {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ap-line-strong);
}

.about-page .ap-hero__body-silhouette {
  width: 100%;
  max-width: 140px;
  height: auto;
}

.about-page .ap-hero__scroll-cue {
  position: absolute;
  bottom: var(--ap-space-md);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.about-page .ap-hero__scroll-line {
  display: block;
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--ap-line-strong), transparent);
  border-radius: 2px;
  animation: ap-scroll-cue 2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .about-page .ap-hero__scroll-line {
    animation: none;
  }
}

@keyframes ap-scroll-cue {
  0%, 100% { opacity: 0.4; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* ---------- 2) STORY: Timeline ---------- */
.about-page .ap-story__title {
  font-size: var(--ap-font-section);
  color: var(--primary);
  margin-bottom: var(--ap-space-xl);
  text-align: center;
}

.about-page .ap-timeline {
  position: relative;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: var(--ap-space-lg);
  max-width: 640px;
  margin: 0 auto var(--ap-space-xl);
}

.about-page .ap-timeline__rail {
  position: relative;
  width: 4px;
  background: var(--ap-line);
  border-radius: 2px;
  margin-left: 10px;
}

.about-page .ap-timeline__line-svg {
  position: absolute;
  left: -10px;
  top: 0;
  width: 24px;
  height: 100%;
  color: var(--primary);
}

.about-page .ap-timeline__line {
  transition: stroke-dashoffset 0.9s ease;
}

@media (prefers-reduced-motion: reduce) {
  .about-page .ap-timeline__line {
    transition: none;
  }
}

.about-page .ap-timeline__items {
  display: flex;
  flex-direction: column;
  gap: var(--ap-space-lg);
}

.about-page .ap-timeline__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--ap-radius);
  padding: var(--ap-space-md);
  box-shadow: var(--ap-shadow);
  position: relative;
  border-left: 3px solid var(--primary);
}

.about-page .ap-timeline__code {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.about-page .ap-timeline__heading {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.about-page .ap-timeline__text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.about-page .ap-story__polaroid {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  padding: var(--ap-space-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--ap-radius);
  box-shadow: var(--ap-shadow-card);
}

.about-page .ap-story__polaroid-corner {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  border-top: 2px solid var(--ap-line);
  border-right: 2px solid var(--ap-line);
  border-radius: 0 var(--ap-radius-sm) 0 0;
  z-index: 1;
}

.about-page .ap-story__polaroid img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--ap-radius-sm);
}

.about-page .ap-story__polaroid-caption {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  padding: var(--ap-space-xs) 0 0;
  border-top: 1px solid var(--border);
  margin-top: var(--ap-space-sm);
}

/* ---------- 3) MISSION + VISION: Panels + Dial ---------- */
.about-page .ap-section-title {
  font-size: var(--ap-font-section);
  color: var(--primary);
  text-align: center;
  margin-bottom: var(--ap-space-xl);
}

.about-page .ap-mission__wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: stretch;
  max-width: 960px;
  margin: 0 auto;
}

.about-page .ap-mission__panel {
  position: relative;
  padding: var(--ap-space-lg);
  padding-left: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--ap-radius);
  box-shadow: var(--ap-shadow);
}

.about-page .ap-mission__panel--right {
  padding-left: var(--ap-space-lg);
  padding-right: 2.5rem;
}

.about-page .ap-mission__ticks {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1.25rem;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 3px,
    var(--ap-line) 3px,
    var(--ap-line) 4px
  );
  border-radius: var(--ap-radius) 0 0 var(--ap-radius);
  opacity: 0.7;
}

.about-page .ap-mission__panel--right .ap-mission__ticks {
  left: auto;
  right: 0;
  border-radius: 0 var(--ap-radius) var(--ap-radius) 0;
}

.about-page .ap-mission__topo-line {
  position: absolute;
  left: 0;
  bottom: var(--ap-space-md);
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ap-line-strong) 20%, var(--ap-line-strong) 80%, transparent);
  opacity: 0.6;
}

.about-page .ap-mission__panel-title {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: var(--ap-space-sm);
}

.about-page .ap-mission__panel-text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

.about-page .ap-mission__dial-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--ap-space-md);
  color: var(--ap-line-strong);
}

.about-page .ap-mission__dial {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.about-page .ap-mission__dial-needle {
  transform-origin: 32px 32px;
  transition: transform 0.4s ease;
}

@media (prefers-reduced-motion: reduce) {
  .about-page .ap-mission__dial-needle {
    transition: none;
  }
}

/* ---------- 4) VALUES: Principles Map ---------- */
.about-page .ap-values__sub {
  text-align: center;
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: -0.75rem 0 var(--ap-space-xl);
}

.about-page .ap-principles {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.about-page .ap-principles__map {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.about-page .ap-principles__svg {
  width: 100%;
  max-width: 320px;
  height: auto;
  color: var(--ap-line);
}

.about-page .ap-principles__line {
  opacity: 0.4;
  transition: opacity var(--ap-transition), stroke-width var(--ap-transition);
}

.about-page .ap-principles__line.is-active {
  opacity: 1;
  stroke: var(--primary);
  stroke-width: 2;
}

.about-page .ap-principles__nodes {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--ap-space-md);
  margin-bottom: var(--ap-space-lg);
}

.about-page .ap-principles__pill {
  display: block;
  padding: 0.65rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: inherit;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--ap-transition), border-color var(--ap-transition), color var(--ap-transition), box-shadow var(--ap-transition);
  text-align: center;
}

.about-page .ap-principles__pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.about-page .ap-principles__pill:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(11, 60, 93, 0.2);
}

.about-page .ap-principles__pill[aria-expanded="true"] {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.about-page .ap-principles__pill--tl { justify-self: end; }
.about-page .ap-principles__pill--tr { justify-self: start; }
.about-page .ap-principles__pill--bl { justify-self: end; }
.about-page .ap-principles__pill--br { justify-self: start; }

.about-page .ap-principles__details {
  position: relative;
  z-index: 1;
  min-height: 80px;
}

.about-page .ap-principles__detail {
  padding: var(--ap-space-md);
  background: var(--ap-paper-alt);
  border: 1px solid var(--border);
  border-radius: var(--ap-radius);
  border-left: 3px solid var(--primary);
}

.about-page .ap-principles__detail[hidden] {
  display: none;
}

.about-page .ap-principles__detail h3 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.about-page .ap-principles__detail p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ---------- About page responsive ---------- */
@media (max-width: 992px) {
  .about-page .ap-hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-page .ap-hero__figure {
    order: -1;
  }

  .about-page .ap-hero__body-silhouette {
    max-width: 120px;
  }

  .about-page .ap-mission__wrap {
    grid-template-columns: 1fr;
    gap: var(--ap-space-lg);
  }

  .about-page .ap-mission__dial-wrap {
    order: 0;
    padding: 0;
  }

  .about-page .ap-mission__panel--right {
    padding-right: var(--ap-space-lg);
    padding-left: 2.5rem;
  }

  .about-page .ap-mission__panel--right .ap-mission__ticks {
    right: auto;
    left: 0;
  }
}

@media (max-width: 768px) {
  .about-page .ap-timeline {
    grid-template-columns: 1fr;
    gap: var(--ap-space-md);
  }

  .about-page .ap-timeline__rail {
    display: none;
  }

  .about-page .ap-timeline__card {
    border-left-width: 3px;
  }

  .about-page .ap-principles__map {
    display: none;
  }

  .about-page .ap-principles__nodes {
    grid-template-columns: 1fr;
    margin-bottom: var(--ap-space-md);
  }

  .about-page .ap-principles__pill--tl,
  .about-page .ap-principles__pill--tr,
  .about-page .ap-principles__pill--bl,
  .about-page .ap-principles__pill--br {
    justify-self: stretch;
  }
}

@media (max-width: 480px) {
  .about-page .ap-hero {
    padding: calc(var(--header-height) + var(--ap-space-lg)) 0 var(--ap-space-lg);
  }

  .about-page .ap-mission__panel,
  .about-page .ap-mission__panel--right {
    padding-left: var(--ap-space-md);
    padding-right: var(--ap-space-md);
  }

  .about-page .ap-mission__ticks {
    display: none;
  }
}

/* ============================================
   SERVICES PAGE: Treatment Atlas
   Scoped under .services-page — do not affect header/nav
   ============================================ */

.services-page {
  --sp-ink: #0d2840;
  --sp-paper: #fafbfc;
  --sp-paper-alt: #f2f4f6;
  --sp-line: rgba(11, 60, 93, 0.28);
  --sp-line-strong: rgba(11, 60, 93, 0.5);
  --sp-radius: 8px;
  --sp-radius-sm: 4px;
  --sp-space-xs: 0.5rem;
  --sp-space-sm: 1rem;
  --sp-space-md: 1.5rem;
  --sp-space-lg: 2rem;
  --sp-space-xl: 3rem;
  --sp-font-hero: clamp(1.5rem, 3.5vw, 2.25rem);
  --sp-font-section: clamp(1.35rem, 2.2vw, 1.75rem);
  --sp-transition: 0.3s ease;
  --sp-shadow: 0 2px 12px rgba(11, 60, 93, 0.06);
}

/* ---------- 1) HERO: Atlas Header ---------- */
.services-page .sp-hero {
  position: relative;
  padding: calc(var(--header-height) + var(--sp-space-xl)) 0 var(--sp-space-lg);
  background: linear-gradient(135deg, #f0f5fa, #e4edf6);
  color: var(--sp-ink);
  overflow: hidden;
}

.services-page .sp-hero--simple .sp-hero__inner {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
}

.services-page .sp-hero__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.services-page .sp-hero__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: transparent;
  opacity: 0;
}

.services-page .sp-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-space-xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.services-page .sp-hero__watermark {
  align-self: stretch;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding-bottom: var(--sp-space-md);
}

.services-page .sp-hero__watermark-text {
  font-size: clamp(2.75rem, 6vw, 3.75rem);
  letter-spacing: 0.35em;
  font-weight: 700;
  color: rgba(11, 60, 93, 0.06);
  text-transform: uppercase;
  transform: translateY(0.4rem);
}

.services-page .sp-hero__title {
  font-size: var(--sp-font-hero);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-space-xs);
  color: var(--primary);
}

.services-page .sp-hero__subtitle {
  font-size: clamp(0.9375rem, 1.2vw, 1.0625rem);
  line-height: 1.55;
  color: var(--text);
  margin-bottom: var(--sp-space-md);
}

.services-page .sp-hero__search-wrap {
  margin-bottom: var(--sp-space-sm);
}

.services-page .sp-hero__search {
  width: 100%;
  max-width: 320px;
  padding: 0.6rem 0.9rem;
  font-size: 0.9375rem;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: var(--sp-radius-sm);
  background: var(--bg);
  color: var(--text);
  transition: border-color var(--sp-transition);
}

.services-page .sp-hero__search::placeholder {
  color: var(--text-muted);
}

.services-page .sp-hero__search:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11, 60, 93, 0.12);
}

.services-page .sp-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-space-xs);
  margin-bottom: var(--sp-space-sm);
}

.services-page .sp-hero__chip {
  padding: 0.4rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--sp-transition), border-color var(--sp-transition), color var(--sp-transition);
}

.services-page .sp-hero__chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.services-page .sp-hero__chip.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.services-page .sp-hero__legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.services-page .sp-hero__legend span:nth-child(even) {
  opacity: 0.6;
}

.services-page .sp-hero__atlas-fig {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sp-line-strong);
}

.services-page .sp-hero__atlas-svg {
  width: 100%;
  max-width: 160px;
  height: auto;
}

/* ---------- 2) TWO-PANEL ATLAS ---------- */
.services-page .sp-atlas__container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--sp-space-xl);
  align-items: start;
}

.services-page .sp-atlas__index-wrap {
  position: sticky;
  top: calc(var(--header-height) + var(--sp-space-md));
}

.services-page .sp-atlas__index {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.services-page .sp-atlas__chapter {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: var(--sp-space-sm);
  margin-bottom: 0.25rem;
  padding-left: 0.25rem;
}

.services-page .sp-atlas__chapter:first-child {
  margin-top: 0;
}

.services-page .sp-atlas__chapter-code {
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.services-page .sp-atlas__chapter-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}

.services-page .sp-atlas__index-btn {
  display: block;
  width: 100%;
  padding: 0.55rem 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: inherit;
  text-align: left;
  color: var(--text);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--sp-radius-sm);
  border-left: 3px solid transparent;
  cursor: pointer;
  transition: background var(--sp-transition), border-color var(--sp-transition), color var(--sp-transition);
}

.services-page .sp-atlas__index-btn:hover {
  background: var(--sp-paper-alt);
  color: var(--primary);
}

.services-page .sp-atlas__index-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(11, 60, 93, 0.2);
}

.services-page .sp-atlas__index-btn.is-active {
  background: rgba(11, 60, 93, 0.08);
  border-left-color: var(--primary);
  color: var(--primary);
}

.services-page .sp-atlas__viewer-wrap {
  min-height: 320px;
}

.services-page .sp-viewer__empty {
  display: none;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.services-page .sp-viewer {
  display: none;
}

.services-page .sp-viewer__protocol-line-wrap {
  margin-bottom: var(--sp-space-md);
}

.services-page .sp-viewer__protocol-line-svg {
  width: 100%;
  height: 4px;
  color: var(--primary);
}

.services-page .sp-viewer__protocol-line-svg line {
  transition: stroke-dashoffset 0.6s ease;
}

@media (prefers-reduced-motion: reduce) {
  .services-page .sp-viewer__protocol-line-svg line {
    transition: none;
  }
}

.services-page .sp-viewer__title {
  font-size: var(--sp-font-section);
  color: var(--primary);
  margin-bottom: var(--sp-space-xs);
}

.services-page .sp-viewer__lead {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: var(--sp-space-md);
  line-height: 1.55;
}

.services-page .sp-viewer__strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-space-sm);
  margin-bottom: var(--sp-space-md);
  padding: var(--sp-space-sm) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.services-page .sp-viewer__strip-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.services-page .sp-viewer__strip-label {
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.services-page .sp-viewer__strip-item span:last-child {
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.45;
}

.services-page .sp-viewer__flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: var(--sp-space-md);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.services-page .sp-viewer__flow-step {
  font-weight: 500;
  color: var(--primary);
}

.services-page .sp-viewer__flow-arrow {
  opacity: 0.5;
}

.services-page .sp-viewer__slide {
  position: relative;
  margin-bottom: var(--sp-space-md);
  padding: var(--sp-space-xs);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--sp-radius);
  box-shadow: var(--sp-shadow);
}

.services-page .sp-viewer__slide-corner {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  border-top: 2px solid var(--sp-line);
  border-right: 2px solid var(--sp-line);
  border-radius: 0 var(--sp-radius-sm) 0 0;
  z-index: 1;
}

.services-page .sp-viewer__slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--sp-radius-sm);
  filter: contrast(1.02) grayscale(0.08);
}

.services-page .sp-viewer__slide-caption {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
  padding: var(--sp-space-xs) 0 0;
  margin-top: var(--sp-space-xs);
  border-top: 1px solid var(--border);
}

.services-page .sp-viewer__body {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.7;
}

/* ---------- 3) ACCORDION (mobile) ---------- */
.services-page .sp-accordion {
  display: none;
}

.services-page .sp-accordion__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-space-sm);
}

.services-page .sp-accordion__item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--sp-radius);
  box-shadow: var(--sp-shadow);
  overflow: hidden;
}

.services-page .sp-accordion__item-trigger {
  width: 100%;
  padding: var(--sp-space-sm) var(--sp-space-md);
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  text-align: left;
  color: var(--primary);
  background: transparent;
  border: none;
  border-left: 3px solid var(--primary);
  cursor: pointer;
  transition: background var(--sp-transition);
}

.services-page .sp-accordion__item-trigger:hover {
  background: var(--sp-paper-alt);
}

.services-page .sp-accordion__item-trigger:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(11, 60, 93, 0.2);
}

.services-page .sp-accordion__item-body-wrap {
  padding: 0 var(--sp-space-md) var(--sp-space-md);
  border-top: 1px solid var(--border);
}

.services-page .sp-accordion__item-lead {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: var(--sp-space-sm);
  line-height: 1.55;
}

.services-page .sp-accordion__slide {
  margin-bottom: var(--sp-space-sm);
  border-radius: var(--sp-radius-sm);
  overflow: hidden;
}

.services-page .sp-accordion__slide img {
  width: 100%;
  height: auto;
  display: block;
  filter: contrast(1.02) grayscale(0.08);
}

.services-page .sp-accordion__item-body {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.7;
  margin: 0;
}

/* ---------- 4) Safety strip ---------- */
.services-page .sp-safety__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-space-lg);
  text-align: center;
}

.services-page .sp-safety__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-space-sm);
}

.services-page .sp-safety__icon {
  width: 40px;
  height: 40px;
  color: var(--primary);
  opacity: 0.85;
}

.services-page .sp-safety__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.services-page .sp-safety__text {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
}

/* ---------- Services page responsive ---------- */
@media (max-width: 992px) {
  .services-page .sp-hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .services-page .sp-hero--simple .sp-hero__inner {
    grid-template-columns: 1fr;
  }

  .services-page .sp-hero__watermark {
    justify-content: center;
    padding-bottom: 0;
    margin-top: var(--sp-space-md);
  }

  .services-page .sp-hero__watermark-text {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
    letter-spacing: 0.25em;
  }

  .services-page .sp-hero__atlas-fig {
    order: -1;
  }

  .services-page .sp-hero__search-wrap {
    display: flex;
    justify-content: center;
  }

  .services-page .sp-hero__search {
    max-width: none;
  }

  .services-page .sp-hero__chips {
    justify-content: center;
  }

  .services-page .sp-hero__legend {
    justify-content: center;
  }

  .services-page .sp-atlas__container {
    grid-template-columns: 1fr;
  }

  .services-page .sp-atlas__index-wrap {
    position: static;
    display: none;
  }

  .services-page .sp-atlas__viewer-wrap {
    display: none;
  }

  .services-page .sp-accordion {
    display: block;
  }

  .services-page .sp-safety__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-space-md);
  }
}

@media (max-width: 768px) {
  .services-page .sp-viewer__strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .services-page .sp-hero {
    padding: calc(var(--header-height) + var(--sp-space-lg)) 0 var(--sp-space-md);
  }
}

/* ============================================
   TEAM PAGE — Elite roster + profile sheet
   Scoped under .team-page
   ============================================ */

.team-page {
  --tp-bg: #faf9f7;
  --tp-bg-sheet: #ffffff;
  --tp-ink: #1a2b35;
  --tp-ink-muted: #5c6b73;
  --tp-accent: #0B3C5D;
  --tp-accent-light: #1a5a82;
  --tp-line: rgba(11, 60, 93, 0.12);
  --tp-line-strong: rgba(11, 60, 93, 0.2);
  --tp-shadow: 0 2px 12px rgba(11, 60, 93, 0.06);
  --tp-shadow-sheet: 0 4px 24px rgba(11, 60, 93, 0.08);
  --tp-radius: 6px;
  --tp-transition: 0.25s ease;
  --tp-title: clamp(1.5rem, 3vw, 1.85rem);
  --tp-tagline: clamp(0.8rem, 1.5vw, 0.95rem);
  background: var(--tp-bg);
  min-height: 60vh;
  position: relative;
}

/* Subtle grain + grid (CSS only) */
.team-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E"),
    linear-gradient(to right, var(--tp-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--tp-line) 1px, transparent 1px);
  background-size: 100% 100%, 24px 24px, 24px 24px;
  background-position: 0 0, 0 0, 0 0;
}

.team-page__header {
  padding: 1.25rem 1.5rem 1rem;
  max-height: 220px;
  position: relative;
  z-index: 1;
}

.team-page__header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
}

.team-page__title {
  font-size: var(--tp-title);
  font-weight: 700;
  color: var(--tp-ink);
  letter-spacing: -0.02em;
  margin: 0 0 0.2em 0;
  line-height: 1.2;
}

.team-page__tagline {
  font-size: var(--tp-tagline);
  color: var(--tp-ink-muted);
  margin: 0;
  letter-spacing: 0.01em;
}

.team-page__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.team-page__search-wrap {
  flex: 0 1 200px;
  min-width: 140px;
}

.team-page__search {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid var(--tp-line-strong);
  border-radius: var(--tp-radius);
  background: var(--tp-bg-sheet);
  color: var(--tp-ink);
  transition: border-color var(--tp-transition), box-shadow var(--tp-transition);
}

.team-page__search:focus {
  outline: none;
  border-color: var(--tp-accent);
  box-shadow: 0 0 0 2px rgba(11, 60, 93, 0.15);
}

.team-page__search::placeholder {
  color: var(--tp-ink-muted);
}

.team-page__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.team-page__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid var(--tp-line-strong);
  border-radius: 999px;
  background: var(--tp-bg-sheet);
  color: var(--tp-ink-muted);
  cursor: pointer;
  transition: border-color var(--tp-transition), color var(--tp-transition), background var(--tp-transition);
}

.team-page__chip:hover {
  border-color: var(--tp-accent);
  color: var(--tp-accent);
}

.team-page__chip.is-active {
  border-color: var(--tp-accent);
  background: rgba(11, 60, 93, 0.08);
  color: var(--tp-accent);
}

.team-page__chip:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(11, 60, 93, 0.25);
}

.team-page__chip svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.team-page__sort-wrap {
  flex-shrink: 0;
}

.team-page__sort {
  padding: 0.5rem 1.75rem 0.5rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid var(--tp-line-strong);
  border-radius: var(--tp-radius);
  background: var(--tp-bg-sheet);
  color: var(--tp-ink);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235c6b73' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
}

.team-page__sort:focus {
  outline: none;
  border-color: var(--tp-accent);
}

.team-page__layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

.team-page__roster-wrap {
  min-width: 0;
}

.team-page__results-count {
  font-size: 0.8rem;
  color: var(--tp-ink-muted);
  margin: 0 0 0.75rem 0;
  letter-spacing: 0.02em;
}

.team-roster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.team-roster__tile {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.team-roster__btn {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--tp-bg-sheet);
  border: 1px solid var(--tp-line);
  border-radius: var(--tp-radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--tp-transition), box-shadow var(--tp-transition);
  box-shadow: var(--tp-shadow);
}

.team-roster__btn:hover,
.team-roster__btn:focus-visible {
  border-color: var(--tp-line-strong);
  box-shadow: var(--tp-shadow-sheet);
  outline: none;
}

.team-roster__btn:focus-visible {
  box-shadow: 0 0 0 2px var(--tp-accent);
}

.team-roster__photo-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-bottom: 1px solid var(--tp-line);
}

/* Corner marks (clinical slide) */
.team-roster__photo-wrap::before,
.team-roster__photo-wrap::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--tp-line-strong);
  border-style: solid;
  border-width: 0;
  z-index: 1;
  transition: border-color var(--tp-transition);
}

.team-roster__btn:hover .team-roster__photo-wrap::before,
.team-roster__btn:focus-visible .team-roster__photo-wrap::before,
.team-roster__btn:hover .team-roster__photo-wrap::after,
.team-roster__btn:focus-visible .team-roster__photo-wrap::after {
  border-color: var(--tp-accent);
}

.team-roster__photo-wrap::before {
  top: 6px;
  left: 6px;
  border-top-width: 1px;
  border-left-width: 1px;
}

.team-roster__photo-wrap::after {
  bottom: 6px;
  right: 6px;
  border-bottom-width: 1px;
  border-right-width: 1px;
}

/* Subtle vignette via box-shadow */
.team-roster__photo-wrap {
  box-shadow: inset 0 0 38px rgba(0, 0, 0, 0.06);
}

.team-roster__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Scan line (optional, disabled for reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  .team-roster__btn:hover .team-roster__photo-wrap .team-roster__scan,
  .team-roster__btn:focus-visible .team-roster__photo-wrap .team-roster__scan {
    opacity: 1;
  }
}

.team-roster__scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--tp-transition);
  background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.06) 50%, transparent 100%);
  background-size: 100% 60px;
  animation: team-scan 1.2s ease-out;
}

@keyframes team-scan {
  from { background-position: 0 -60px; }
  to { background-position: 0 100%; }
}

.team-roster__stripe {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--tp-stripe-color, var(--tp-accent));
}

.team-roster__scrim {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
  pointer-events: none;
}

.team-roster__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 0.75rem 0.65rem;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.team-roster__name {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.15em 0;
  letter-spacing: -0.01em;
}

.team-roster__role {
  font-size: 0.7rem;
  opacity: 0.92;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
}

.team-roster__tags {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  padding: 0.5rem 0.75rem;
  background: var(--tp-bg-sheet);
  border: 1px solid var(--tp-line);
  border-bottom: none;
  border-radius: var(--tp-radius) var(--tp-radius) 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--tp-transition), transform var(--tp-transition);
}

.team-roster__btn:hover .team-roster__tags,
.team-roster__btn:focus-visible .team-roster__tags {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .team-roster__tags {
    transition: none;
  }
  .team-roster__scan {
    display: none;
  }
}

.team-roster__tag {
  font-size: 0.65rem;
  padding: 0.2rem 0.45rem;
  background: rgba(11, 60, 93, 0.08);
  color: var(--tp-accent);
  border-radius: 999px;
  font-weight: 500;
}

.team-roster__action {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--tp-accent);
  margin-top: 0.35rem;
}

/* Sticky profile sheet */
.team-sheet {
  position: sticky;
  top: calc(var(--header-height, 72px) + 1rem);
  width: 340px;
  flex-shrink: 0;
  background: var(--tp-bg-sheet);
  border: 1px solid var(--tp-line);
  border-radius: var(--tp-radius);
  box-shadow: var(--tp-shadow-sheet);
  overflow: hidden;
  transition: opacity var(--tp-transition), transform var(--tp-transition);
}

.team-sheet[aria-expanded="false"] .team-sheet__inner {
  opacity: 0;
  pointer-events: none;
}

.team-sheet[aria-expanded="false"] .team-sheet__content {
  min-height: 120px;
}

.team-sheet[aria-expanded="true"] .team-sheet__content {
  min-height: 400px;
}

.team-sheet__inner {
  padding: 1.25rem;
  position: relative;
  transition: opacity var(--tp-transition);
}

.team-sheet__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--tp-ink-muted);
  cursor: pointer;
  border-radius: var(--tp-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--tp-transition), background var(--tp-transition);
}

.team-sheet__close:hover {
  color: var(--tp-accent);
  background: rgba(11, 60, 93, 0.06);
}

.team-sheet__close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--tp-accent);
}

.team-sheet__close svg {
  width: 18px;
  height: 18px;
}

.team-sheet__name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--tp-ink);
  margin: 0 2rem 0 0;
  padding-right: 0.5rem;
  letter-spacing: -0.02em;
}

.team-sheet__role {
  font-size: 0.8rem;
  color: var(--tp-ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0.25em 0 0.75rem 0;
}

.team-sheet__section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--tp-line);
}

.team-sheet__section-title {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tp-ink-muted);
  margin: 0 0 0.5rem 0;
}

.team-sheet__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.team-sheet__pill {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  background: rgba(11, 60, 93, 0.08);
  color: var(--tp-accent);
  border-radius: var(--tp-radius);
}

.team-sheet__list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
  color: var(--tp-ink);
  line-height: 1.5;
}

.team-sheet__list li {
  padding: 0.2em 0;
  border-bottom: 1px solid transparent;
}

.team-sheet__list li + li {
  margin-top: 0.15em;
}

.team-sheet__approach {
  font-size: 0.875rem;
  color: var(--tp-ink);
  line-height: 1.6;
  margin: 0;
}

.team-sheet__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--tp-line);
}

.team-sheet__cta {
  flex: 1;
  min-width: 120px;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  border-radius: var(--tp-radius);
  text-decoration: none;
  transition: background var(--tp-transition), color var(--tp-transition);
}

.team-sheet__cta--primary {
  background: var(--tp-accent);
  color: #fff;
  border: none;
}

.team-sheet__cta--primary:hover {
  background: var(--tp-accent-light);
  color: #fff;
}

.team-sheet__cta--secondary {
  background: transparent;
  color: var(--tp-accent);
  border: 1px solid var(--tp-accent);
}

.team-sheet__cta--secondary:hover {
  background: rgba(11, 60, 93, 0.06);
  color: var(--tp-accent);
}

.team-sheet__empty {
  text-align: center;
  padding: 2rem 1rem;
}

.team-sheet__empty-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--tp-ink);
  margin: 0 0 0.5rem 0;
}

.team-sheet__empty-text {
  font-size: 0.9rem;
  color: var(--tp-ink-muted);
  line-height: 1.5;
  margin: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Team roster tile fade-in (one-time, staggered) */
.team-roster__tile.team-roster__tile--reveal {
  opacity: 0;
  transform: translateY(8px);
}

.team-roster__tile.team-roster__tile--visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
  .team-roster__tile.team-roster__tile--reveal {
    transition: opacity 0.4s ease, transform 0.4s ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-roster__tile.team-roster__tile--reveal {
    opacity: 1;
    transform: none;
  }
  .team-roster__tile.team-roster__tile--visible {
    transform: none;
  }
}

/* Mobile: sheet as bottom sheet modal */
@media (max-width: 900px) {
  .team-page__layout {
    grid-template-columns: 1fr;
    padding: 0 1rem 2rem;
  }

  .team-sheet {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 85vh;
    border-radius: 16px 16px 0 0;
    z-index: 800;
    transform: translateY(100%);
    transition: transform 0.3s ease, visibility 0.3s ease;
    visibility: hidden;
    box-shadow: 0 -8px 32px rgba(11, 60, 93, 0.15);
  }

  .team-sheet[aria-expanded="true"] {
    transform: translateY(0);
    visibility: visible;
  }

  .team-sheet[role="dialog"] {
    overflow: auto;
  }

  .team-sheet__inner {
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom));
  }
}

@media (max-width: 600px) {
  .team-page__header-inner {
    grid-template-columns: 1fr;
  }

  .team-page__controls {
    width: 100%;
  }

  .team-page__search-wrap {
    flex: 1 1 100%;
  }

  .team-roster {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .team-roster__label .team-roster__name {
    font-size: 0.85rem;
  }

  .team-roster__role {
    font-size: 0.65rem;
  }
}

