/* Meridian Cross - components */

.icon {
  width: 1.25rem;
  height: 1.25rem;
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  overflow: visible;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius-full);
  padding: 1rem 2rem;
  font-size: var(--text-sm);
  font-weight: 600;
  border: 0;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn--white {
  background: var(--white);
  color: var(--neutral-900);
}

.btn--white:hover {
  background: var(--neutral-200);
  color: var(--neutral-900);
}

.btn--glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--white);
}

.btn--glass:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.btn--burgundy {
  background: var(--burgundy);
  color: var(--white);
}

.btn--burgundy:hover {
  filter: brightness(1.08);
  color: var(--white);
}

.btn--ghost-dark {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
}

.btn--sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.75rem;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-card-hover {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
}

.reveal-on-scroll {
  opacity: 0;
  filter: blur(5px);
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out, filter 0.8s ease-out;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes zoomSlow {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.animate-zoom-slow {
  animation: zoomSlow 20s linear infinite alternate;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text-soft);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.chip:hover,
.chip.is-active {
  border-color: var(--burgundy);
  color: var(--burgundy);
  background: var(--burgundy-soft);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-field label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text);
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 0.85rem 1rem;
  background: var(--bg);
  color: var(--text);
}

.form-field textarea { min-height: 8rem; resize: vertical; }

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--burgundy);
  box-shadow: var(--focus-ring);
}

.form-field label + label {
  margin-top: 0.35rem;
}

.form-field label input[type="radio"],
.form-field label input[type="checkbox"] {
  width: auto;
  margin-right: 0.4rem;
  accent-color: var(--burgundy);
}

.form-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-3xl);
  padding: 1.75rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
}

.progress-rail {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.progress-rail__step {
  flex: 1;
  min-width: 4.5rem;
  padding: 0.55rem 0.4rem;
  text-align: center;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
  color: var(--text-muted);
  border: 1px solid transparent;
}

.progress-rail__step.is-active {
  background: var(--burgundy-soft);
  color: var(--burgundy);
  border-color: var(--burgundy);
  font-weight: 600;
}

.progress-rail__step.is-done {
  background: var(--neutral-900);
  color: var(--white);
}

html.dark .progress-rail__step.is-done {
  background: var(--burgundy);
}

.portrait-card {
  display: block;
}

.portrait-card__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background: var(--neutral-100);
  margin-bottom: 1.25rem;
}

html.dark .portrait-card__media { background: var(--neutral-800); }

.portrait-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.portrait-card:hover .portrait-card__media img {
  transform: scale(1.05);
}

.portrait-card h3 {
  font-style: italic;
  font-size: var(--text-xl);
  font-weight: 400;
}

.service-item {
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius-2xl);
  background: var(--bg-alt);
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.service-item:hover {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
}

.service-item strong {
  display: block;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.service-item p {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 300;
  max-width: 90%;
}

.pillar-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.pillar-icon {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pillar-icon--litigation {
  background: var(--indigo-50);
  color: var(--indigo-500);
}

.pillar-icon--corporate {
  background: var(--rose-50);
  color: var(--rose-500);
}

.pillar-icon--immigration {
  background: var(--neutral-100);
  color: var(--neutral-600);
}

html.dark .pillar-icon--litigation { background: rgba(99, 102, 241, 0.2); }
html.dark .pillar-icon--corporate { background: rgba(244, 63, 94, 0.2); }
html.dark .pillar-icon--immigration { background: rgba(255, 255, 255, 0.08); color: var(--neutral-300); }

.person-card {
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0;
  width: 100%;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

button.person-card:hover h3 {
  color: var(--burgundy);
}

.person-card__media {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  margin-bottom: 1rem;
  background: var(--neutral-100);
}

.person-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person-card h3 {
  font-size: var(--text-lg);
  margin-bottom: 0.25rem;
}

.person-card .role {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 70;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 71;
  width: min(100%, 28rem);
  height: 100%;
  background: var(--bg);
  box-shadow: var(--shadow-2xl);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  padding: 1.5rem;
}

.drawer.is-open { transform: translateX(0); }

.drawer__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: 0;
  background: transparent;
  color: var(--text);
  width: 2.5rem;
  height: 2.5rem;
}

.progress-ring {
  --pct: 0;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, var(--bg) 78%, transparent 80% 100%),
    conic-gradient(var(--burgundy) calc(var(--pct) * 1%), var(--border-strong) 0);
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.timeline li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: var(--text-sm);
}

.timeline__dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  margin-top: 0.35rem;
  background: var(--border-strong);
  flex-shrink: 0;
}

.timeline li.is-done .timeline__dot,
.timeline li.is-current .timeline__dot {
  background: var(--burgundy);
}

.scan-bar {
  height: 0.35rem;
  border-radius: var(--radius-full);
  background: var(--border-strong);
  overflow: hidden;
  margin: 1rem 0;
}

.scan-bar__fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--burgundy), var(--gold));
  transition: width 1.6s ease;
}

.scan-bar.is-running .scan-bar__fill { width: 100%; }

.result-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
}

.result-chip--clear { background: rgba(34, 197, 94, 0.15); color: #16a34a; }
.result-chip--review { background: rgba(234, 179, 8, 0.18); color: #ca8a04; }
.result-chip--conflict { background: rgba(128, 0, 32, 0.15); color: var(--burgundy); }

.toc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.toc-chips a {
  font-size: var(--text-xs);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
}

.toc-chips a:hover {
  border-color: var(--burgundy);
  color: var(--burgundy);
}

.insight-prose {
  max-width: 48rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-soft);
}

.insight-prose h2 {
  margin: 2.5rem 0 1rem;
  font-size: 1.75rem;
}

.insight-prose h3 {
  margin: 1.75rem 0 0.75rem;
  font-size: 1.25rem;
}

.insight-prose p { margin-bottom: 1.1rem; }
.insight-prose ul {
  margin: 0 0 1.25rem 1.25rem;
  padding: 0;
}

.insight-prose li { margin-bottom: 0.4rem; }

@media print {
  .site-nav,
  .bottom-nav,
  .wizard-nav,
  .no-print { display: none !important; }

  body { padding: 0; background: white; color: black; }
  .print-summary { display: block !important; }
}
