:root {
  color-scheme: light;
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.bg-grid {
  background-image: linear-gradient(to right, rgba(2, 6, 23, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(2, 6, 23, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(60% 50% at 50% 30%, #000 0%, transparent 70%);
}

.nav-link {
  color: rgba(15, 23, 42, 0.72);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: 0.9rem;
  padding: 0.4rem 0.65rem;
  transition: color 150ms ease, background 150ms ease, opacity 150ms ease;
}

.nav-link:hover {
  color: rgba(11, 18, 32, 0.95);
  background: rgba(241, 245, 249, 0.9);
}

.nav-link.is-active {
  color: rgba(11, 18, 32, 0.95);
  background: rgba(241, 245, 249, 1);
}

.mobile-link {
  border-radius: 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(248, 250, 252, 0.9);
  padding: 0.85rem 1rem;
  color: rgba(11, 18, 32, 0.95);
  font-weight: 800;
  letter-spacing: -0.01em;
  transition: background 150ms ease, transform 150ms ease;
}

.mobile-link:hover {
  background: rgba(241, 245, 249, 1);
  transform: translateY(-1px);
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 600ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

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

.metric-card {
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: white;
  border-radius: 1.25rem;
  padding: 1.25rem;
  box-shadow: 0 1px 2px rgba(10, 18, 32, 0.06);
  transition: transform 200ms ease, box-shadow 200ms ease;
  will-change: transform;
}

.metric-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 1px 2px rgba(10, 18, 32, 0.06), 0 18px 55px rgba(10, 18, 32, 0.09);
}

.metric-kpi {
  color: #0b1220;
  font-size: 1.5rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.metric-unit {
  color: rgba(71, 85, 105, 0.9);
  font-size: 0.875rem;
  font-weight: 650;
}

.metric-note {
  margin-top: 0.5rem;
  color: rgba(71, 85, 105, 0.95);
  font-size: 0.875rem;
}

.why-card {
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: white;
  border-radius: 1.25rem;
  padding: 1.1rem 1.1rem;
  box-shadow: 0 1px 2px rgba(10, 18, 32, 0.06);
  transition: transform 200ms ease, box-shadow 200ms ease;
  will-change: transform;
}

.why-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 1px 2px rgba(10, 18, 32, 0.06), 0 18px 55px rgba(10, 18, 32, 0.09);
}

.why-title {
  color: #0b1220;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.why-desc {
  margin-top: 0.35rem;
  color: rgba(71, 85, 105, 0.95);
  font-size: 0.9rem;
}

.think-item {
  padding: 0.25rem 0.1rem;
}

.think-title {
  color: #0b1220;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.think-desc {
  margin-top: 0.3rem;
  color: rgba(71, 85, 105, 0.95);
  font-size: 0.95rem;
}

.framework-card {
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 1.25rem;
  padding: 1.25rem;
  box-shadow: 0 1px 2px rgba(10, 18, 32, 0.06);
  transition: transform 200ms ease, box-shadow 200ms ease;
  will-change: transform;
}

.framework-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 1px 2px rgba(10, 18, 32, 0.06), 0 18px 55px rgba(10, 18, 32, 0.09);
}

.framework-title {
  color: #0b1220;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.framework-when {
  margin-top: 0.55rem;
  color: rgba(71, 85, 105, 0.95);
  font-size: 0.9rem;
}

.framework-how {
  margin-top: 0.5rem;
  color: rgba(15, 23, 42, 0.82);
  font-size: 0.95rem;
}

.case-card {
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: white;
  border-radius: 1.5rem;
  padding: 1.25rem;
  box-shadow: 0 1px 2px rgba(10, 18, 32, 0.06);
}

.case-eyebrow {
  color: rgba(100, 116, 139, 0.95);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.case-title {
  margin-top: 0.4rem;
  color: #0b1220;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.case-subtitle {
  margin-top: 0.35rem;
  color: rgba(71, 85, 105, 0.95);
}

.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(248, 250, 252, 0.9);
  padding: 0.35rem 0.6rem;
  color: rgba(51, 65, 85, 0.95);
  font-size: 0.8rem;
  font-weight: 650;
}

.case-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(248, 250, 252, 0.9);
  padding: 0.65rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(11, 18, 32, 0.95);
  transition: background 150ms ease, transform 150ms ease;
  white-space: nowrap;
}

.case-toggle:hover {
  background: rgba(241, 245, 249, 1);
  transform: translateY(-1px);
}

.case-toggle:focus-visible,
.timeline-tab:focus-visible,
.toggle-btn:focus-visible,
.seg-btn:focus-visible,
.contact-row:focus-visible {
  outline: 3px solid rgba(15, 23, 42, 0.25);
  outline-offset: 3px;
}

[aria-expanded="true"] [data-accordion-icon] {
  transform: rotate(180deg);
}

.accordion-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.insight-card {
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(248, 250, 252, 0.85);
  border-radius: 1.25rem;
  padding: 1rem 1rem;
}

.insight-title {
  color: rgba(11, 18, 32, 0.95);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.insight-text {
  margin-top: 0.5rem;
  color: rgba(30, 41, 59, 0.85);
  font-size: 0.95rem;
}

.timeline-tab {
  width: 100%;
  text-align: left;
  border-radius: 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 0.85rem 1rem;
  font-weight: 750;
  color: rgba(30, 41, 59, 0.85);
  background: rgba(248, 250, 252, 0.85);
  transition: transform 150ms ease, background 150ms ease, color 150ms ease;
}

.timeline-tab:hover {
  transform: translateY(-1px);
  background: rgba(241, 245, 249, 1);
}

.timeline-tab.is-active {
  background: rgba(11, 18, 32, 0.95);
  color: white;
  border-color: rgba(11, 18, 32, 0.95);
}

.timeline-panel {
  border-radius: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: white;
  padding: 1.1rem 1.1rem;
}

.panel-title {
  color: #0b1220;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.panel-list {
  margin-top: 0.6rem;
  padding-left: 1.1rem;
  color: rgba(30, 41, 59, 0.86);
}

.panel-list li {
  margin: 0.25rem 0;
}

.toggle-btn {
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(11, 18, 32, 0.95);
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 800;
  color: white;
  transition: transform 150ms ease, opacity 150ms ease;
}

.toggle-btn:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.toggle-panel {
  animation: fadeIn 200ms ease-out;
}

.seg-btn {
  border-radius: 0.9rem;
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 800;
  color: rgba(30, 41, 59, 0.86);
  transition: background 150ms ease, color 150ms ease;
}

.seg-btn.is-active {
  background: rgba(11, 18, 32, 0.95);
  color: white;
}

.compare-card {
  border-radius: 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(248, 250, 252, 0.85);
  padding: 1rem 1rem;
}

.compare-title {
  color: #0b1220;
  font-weight: 850;
  letter-spacing: -0.01em;
}

.exp-card {
  border-radius: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: white;
  padding: 1.25rem;
  box-shadow: 0 1px 2px rgba(10, 18, 32, 0.06);
}

.exp-company {
  color: #0b1220;
  font-weight: 850;
  letter-spacing: -0.01em;
}

.exp-role {
  margin-top: 0.2rem;
  color: rgba(71, 85, 105, 0.95);
  font-weight: 650;
  font-size: 0.9rem;
}

.exp-points {
  margin-top: 0.8rem;
  padding-left: 1.1rem;
  color: rgba(30, 41, 59, 0.86);
}

.exp-points li {
  margin: 0.3rem 0;
}

.skill-card {
  border-radius: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: white;
  padding: 1.25rem;
  box-shadow: 0 1px 2px rgba(10, 18, 32, 0.06);
}

.skill-title {
  color: #0b1220;
  font-weight: 850;
  letter-spacing: -0.01em;
}

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(248, 250, 252, 0.9);
  padding: 0.35rem 0.6rem;
  color: rgba(51, 65, 85, 0.95);
  font-size: 0.8rem;
  font-weight: 700;
}

.contact-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(248, 250, 252, 0.85);
  padding: 0.9rem 1rem;
  color: rgba(11, 18, 32, 0.95);
  transition: background 150ms ease, transform 150ms ease;
}

.contact-row:hover {
  background: rgba(241, 245, 249, 1);
  transform: translateY(-1px);
}

.contact-label {
  color: rgba(71, 85, 105, 0.95);
  font-size: 0.85rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-value {
  font-weight: 750;
  letter-spacing: -0.01em;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .metric-card,
  .framework-card,
  .why-card,
  .case-toggle,
  .timeline-tab,
  .toggle-btn,
  .contact-row {
    transition: none !important;
  }

  .toggle-panel {
    animation: none !important;
  }
}
