:root {
  --primary-color: #0693e3;
  --accent-pink: #ff618e;
  --accent-yellow: #ffc938;
  --accent-green: #1ce0a6;
  --accent-purple: #d3a1f5;
  --text-dark: #2c3e50;
  --text-light: #7f8c8d;
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --border-color: #e9ecef;

  --primary-dark: #0575b8;
  --primary-soft: #e6f4fd;
  --pink-soft: #ffeef3;
  --yellow-soft: #fff7e1;
  --green-soft: #e3fbf3;
  --purple-soft: #f6ecfd;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(44, 62, 80, 0.06);
  --shadow: 0 12px 34px rgba(44, 62, 80, 0.1);
  --shadow-lg: 0 24px 60px rgba(6, 147, 227, 0.18);
  --font-head:
    "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
    sans-serif;
  --font-body:
    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--primary-color);
  text-decoration: none;
}
a:hover {
  color: var(--primary-dark);
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}
h1 {
  font-size: clamp(2.3rem, 5.2vw, 4rem);
  font-weight: 800;
}
h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  font-weight: 800;
}
h3 {
  font-size: 1.2rem;
  font-weight: 700;
}
p {
  margin: 0 0 1rem;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 3px;
  border-radius: 6px;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--primary-color);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  z-index: 2000;
}
.skip-link:focus {
  left: 12px;
  color: #fff;
}

.container {
  width: min(1200px, 100% - 2.5rem);
  margin-inline: auto;
}
section {
  padding: clamp(64px, 9vw, 112px) 0;
  position: relative;
}
.bg-soft {
  background: var(--light-gray);
}
.section-head {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
}
.section-head p {
  color: var(--text-light);
  font-size: 1.08rem;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: var(--primary-soft);
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-pink);
  box-shadow:
    14px 0 0 var(--accent-yellow),
    28px 0 0 var(--accent-green);
  margin-right: 28px;
}
.grad-text {
  background: linear-gradient(
    100deg,
    var(--primary-color),
    var(--accent-purple) 55%,
    var(--accent-pink)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font: 600 0.98rem var(--font-body);
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
  text-align: center;
}
.btn:hover {
  transform: translateY(-3px);
}
.btn-primary {
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0 10px 24px rgba(6, 147, 227, 0.32);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  box-shadow: 0 14px 30px rgba(6, 147, 227, 0.4);
}
.btn-ghost {
  background: #fff;
  color: var(--text-dark);
  border-color: var(--border-color);
}
.btn-ghost:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}
.btn-sm {
  padding: 0.6rem 1.15rem;
  font-size: 0.88rem;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition:
    background 0.3s,
    box-shadow 0.3s;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 1px 0 var(--border-color),
    var(--shadow-sm);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-dark);
}
.brand:hover {
  color: var(--text-dark);
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-purple)
  );
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.05rem;
  box-shadow: 0 8px 18px rgba(6, 147, 227, 0.3);
}
.brand img{
  margin-left:  20px;
  width: 300px;
  height: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.93rem;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  transition:
    background 0.2s,
    color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  background: var(--primary-soft);
  color: var(--primary-dark);
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.menu-btn {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  background: #fff;
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  position: relative;
  transition:
    transform 0.3s,
    background 0.3s;
}
.menu-btn span::before,
.menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-btn span::before {
  top: -6px;
}
.menu-btn span::after {
  top: 6px;
}
.menu-btn[aria-expanded="true"] span {
  background: transparent;
}
.menu-btn[aria-expanded="true"] span::before {
  transform: translateY(6px) rotate(45deg);
}
.menu-btn[aria-expanded="true"] span::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* Hero */
.hero {
  padding-top: calc(var(--header-h) + clamp(40px, 6vw, 80px));
  padding-bottom: clamp(60px, 8vw, 100px);
  overflow: hidden;
  background: linear-gradient(180deg, #f4fafe 0%, #fff 100%);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.45;
  z-index: 0;
  pointer-events: none;
}
.blob.b1 {
  width: 380px;
  height: 380px;
  background: var(--accent-purple);
  top: -90px;
  right: -70px;
}
.blob.b2 {
  width: 300px;
  height: 300px;
  background: var(--accent-green);
  bottom: -80px;
  left: -80px;
  opacity: 0.3;
}
.blob.b3 {
  width: 220px;
  height: 220px;
  background: var(--accent-yellow);
  top: 40%;
  left: 38%;
  opacity: 0.22;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero .lead {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 560px;
}
.hero-role {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.8rem 0 2rem;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tag {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
}
.tag.t1 {
  background: var(--primary-soft);
  color: var(--primary-dark);
}
.tag.t2 {
  background: var(--pink-soft);
  color: #d63d6a;
}
.tag.t3 {
  background: var(--yellow-soft);
  color: #a77a00;
}
.tag.t4 {
  background: var(--green-soft);
  color: #0a9971;
}
.tag.t5 {
  background: var(--purple-soft);
  color: #8b4fc0;
}
.hero-visual {
  position: relative;
}
.hero-photo {
  border-radius: var(--radius-lg) var(--radius-lg) 160px var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
  background: var(--primary-soft);
  border: 8px solid #fff;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.float-card {
  position: absolute;
  background: #fff;
  border-radius: 18px;
  padding: 0.9rem 1.1rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  animation: floaty 6s ease-in-out infinite;
}
.float-card strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.25rem;
  line-height: 1.1;
}
.float-card small {
  color: var(--text-light);
  font-size: 0.78rem;
}
.float-card .ic {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}
.fc1 {
  left: -28px;
  top: 14%;
}
.fc1 .ic {
  background: var(--yellow-soft);
}
.fc2 {
  right: -18px;
  bottom: 22%;
  animation-delay: -2s;
}
.fc2 .ic {
  background: var(--green-soft);
}
.fc3 {
  left: 8%;
  bottom: -22px;
  animation-delay: -4s;
}
.fc3 .ic {
  background: var(--pink-soft);
}
@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Stats */
.stats {
  padding: 0;
  margin-top: -40px;
  z-index: 2;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  overflow: hidden;
}
.stat {
  padding: 1.8rem 1.4rem;
  text-align: center;
  border-right: 1px solid var(--border-color);
}
.stat:last-child {
  border-right: 0;
}
.stat .num {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
}
.stat:nth-child(2) .num {
  color: #e84a78;
}
.stat:nth-child(3) .num {
  color: #0fb88a;
}
.stat:nth-child(4) .num {
  color: #b57ae0;
}
.stat p {
  margin: 0.5rem 0 0;
  color: var(--text-light);
  font-size: 0.92rem;
}

/* Cards and grids */
.grid {
  display: grid;
  gap: 1.5rem;
}
.g2 {
  grid-template-columns: repeat(2, 1fr);
}
.g3 {
  grid-template-columns: repeat(3, 1fr);
}
.g4 {
  grid-template-columns: repeat(4, 1fr);
}
.card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.7rem;
  transition:
    transform 0.3s,
    box-shadow 0.3s,
    border-color 0.3s;
  height: 100%;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.card p:last-child {
  margin-bottom: 0;
}
.card p {
  color: var(--text-light);
  font-size: 0.96rem;
}
.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 1.1rem;
}
.c-blue {
  background: var(--primary-soft);
}
.c-pink {
  background: var(--pink-soft);
}
.c-yellow {
  background: var(--yellow-soft);
}
.c-green {
  background: var(--green-soft);
}
.c-purple {
  background: var(--purple-soft);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.profile-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.profile-card header {
  background: linear-gradient(135deg, var(--primary-color), #5db9f2);
  color: #fff;
  padding: 1.5rem 1.7rem;
}
.profile-card header h3 {
  color: #fff;
  margin: 0;
}
.profile-card header span {
  opacity: 0.9;
  font-size: 0.9rem;
}
.profile-table {
  width: 100%;
  border-collapse: collapse;
}
.profile-table th,
.profile-table td {
  text-align: left;
  padding: 0.85rem 1.7rem;
  font-size: 0.93rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: top;
}
.profile-table th {
  color: var(--text-light);
  font-weight: 500;
  width: 40%;
}
.profile-table td {
  font-weight: 600;
}
.profile-table tr:last-child th,
.profile-table tr:last-child td {
  border-bottom: 0;
}
.about-copy p {
  color: var(--text-light);
  font-size: 1.05rem;
}
.callout {
  background: var(--yellow-soft);
  border-left: 5px solid var(--accent-yellow);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.2rem 1.4rem;
  margin: 1.5rem 0;
  color: var(--text-dark);
}
.callout p {
  color: var(--text-dark);
  margin: 0;
  font-size: 1rem;
}

/* Timeline tabs */
.tabs {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.4rem 0.2rem 1rem;
  margin-bottom: 1.5rem;
  scrollbar-width: thin;
  justify-content: center;
  flex-wrap: wrap;
}
.tab {
  border: 1px solid var(--border-color);
  background: #fff;
  color: var(--text-dark);
  font: 600 0.9rem var(--font-body);
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s;
}
.tab:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}
.tab[aria-selected="true"] {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
  box-shadow: 0 8px 20px rgba(6, 147, 227, 0.3);
}
.tab-panel {
  display: none;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.tab-panel.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  animation: fadeUp 0.5s ease;
}
.tab-panel .panel-img {
  min-height: 320px;
  background: var(--primary-soft);
}
.tab-panel .panel-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.panel-body {
  padding: clamp(1.6rem, 3.5vw, 3rem);
}
.panel-body .period {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.panel-body p {
  color: var(--text-light);
}
.panel-body .highlight {
  background: var(--green-soft);
  color: #0a7d5b;
  font-weight: 600;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.93rem;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Achievements */
.check-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem 1.5rem;
}
.check-list li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--border-color);
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.96rem;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.check-list li:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}
.check-list li::before {
  content: "\2713";
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green-soft);
  color: #0a9971;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
  margin-top: 2px;
}
.award {
  text-align: center;
}
.award .year {
  font-family: var(--font-head);
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 0.6rem;
}
.note {
  font-size: 0.88rem;
  color: var(--text-light);
  text-align: center;
  margin-top: 1.5rem;
}

/* Image cards */
.img-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.img-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.img-card .thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--primary-soft);
}
.img-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.img-card:hover .thumb img {
  transform: scale(1.06);
}
.img-card .body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.img-card .body p {
  color: var(--text-light);
  font-size: 0.95rem;
}
.img-card .more {
  margin-top: auto;
  font-weight: 600;
  font-size: 0.92rem;
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
}
.img-card .more::after {
  content: "\2192";
  transition: transform 0.25s;
}
.img-card .more:hover::after {
  transform: translateX(5px);
}
.pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.8rem;
  align-self: flex-start;
}

/* Expertise */
.exp-card {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1.2rem 1.3rem;
}
.exp-card .dot {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.75rem;
}
.exp-card h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
.exp-card p {
  margin: 0;
  font-size: 0.87rem;
  line-height: 1.5;
}

/* Philosophy */
.phil-card .n {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.4rem;
  line-height: 1;
  opacity: 0.9;
  margin-bottom: 0.8rem;
}

/* Quotes */
.quote {
  position: relative;
  padding-top: 2.6rem;
}
.quote::before {
  content: "\201C";
  position: absolute;
  top: 0.4rem;
  left: 1.5rem;
  font-family: Georgia, serif;
  font-size: 4.5rem;
  line-height: 1;
  color: var(--accent-purple);
}
.quote .who {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.2rem;
}
.quote .who img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}
.quote .who strong {
  display: block;
  font-family: var(--font-head);
}
.quote .who small {
  color: var(--text-light);
}

/* Leadership */
.leader {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}
.leader img {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  object-fit: cover;
  flex: none;
}
.leader h3 {
  margin-bottom: 0.2rem;
}
.leader p {
  margin: 0;
}

/* AI */
.ai-wrap {
  background: linear-gradient(135deg, #eaf6fe 0%, #f6ecfd 55%, #ffeef3 100%);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 5vw, 4rem);
}
.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin: 1.5rem 0 0;
}
.platforms li {
  background: #fff;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.platforms li::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary-color);
}
.platforms li:nth-child(4n + 2)::before {
  background: var(--accent-pink);
}
.platforms li:nth-child(4n + 3)::before {
  background: var(--accent-green);
}
.platforms li:nth-child(4n + 4)::before {
  background: var(--accent-yellow);
}
.analyzer {
  margin-top: 2.5rem;
  background: #fff;
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
}
.analyzer h3 {
  margin-bottom: 0.3rem;
}
.analyzer p {
  margin: 0;
  color: var(--text-light);
}

/* Services chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}
.chips li {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  background: #fff;
  border: 1px solid var(--border-color);
  transition: all 0.25s;
  cursor: default;
}
.chips li:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

/* Generations */
.gen {
  position: relative;
  overflow: hidden;
}
.gen .year {
  font-family: var(--font-head);
  font-size: 2.1rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
}
.gen .bar {
  height: 6px;
  border-radius: 6px;
  margin: 1rem 0 1.2rem;
}

/* MAP */
.map-section {
  background: linear-gradient(180deg, #fff 0%, #f4fafe 100%);
}
.map-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 1.5rem;
  align-items: stretch;
}
.map-side {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: 640px;
}
.map-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-bottom: 1.1rem;
}
.map-stat {
  text-align: center;
  background: var(--light-gray);
  border-radius: 14px;
  padding: 0.7rem 0.3rem;
}
.map-stat b {
  display: block;
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--primary-color);
  line-height: 1.1;
}
.map-stat span {
  font-size: 0.72rem;
  color: var(--text-light);
}
.state-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.state-filter button {
  font: 600 0.78rem var(--font-body);
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: #fff;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.2s;
}
.state-filter button:hover {
  border-color: var(--primary-color);
}
.state-filter button.active {
  background: var(--text-dark);
  color: #fff;
  border-color: var(--text-dark);
}
.city-list {
  overflow-y: auto;
  flex: 1;
  margin: 0 -0.4rem;
  padding: 0 0.4rem;
  scrollbar-width: thin;
}
.city-list li + li {
  margin-top: 0.35rem;
}
.city-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: 500 0.93rem var(--font-body);
  color: var(--text-dark);
  transition: all 0.2s;
}
.city-btn:hover {
  background: var(--light-gray);
}
.city-btn.active {
  background: var(--primary-soft);
  border-color: rgba(6, 147, 227, 0.35);
}
.city-btn .sw {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex: none;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}
.city-btn small {
  margin-left: auto;
  color: var(--text-light);
  font-size: 0.78rem;
}
.map-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  min-height: 560px;
  background: #e8f1f8;
}
#map {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.map-hint {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 500;
  background: rgba(44, 62, 80, 0.88);
  color: #fff;
  font-size: 0.82rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  pointer-events: none;
  transition: opacity 0.4s;
  white-space: nowrap;
}
.map-hint.hide {
  opacity: 0;
}
.map-reset {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 500;
}
.map-legend {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 500;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  padding: 0.6rem 0.9rem;
  border-radius: 14px;
  font-size: 0.78rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.map-legend span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.map-legend i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.map-fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  text-align: center;
  padding: 2rem;
  z-index: 5;
  color: var(--text-light);
}
.map-note {
  margin-top: 1.2rem;
  font-size: 0.9rem;
  color: var(--text-light);
  text-align: center;
}

/* Leaflet custom */
.leaflet-container {
  font-family: var(--font-body);
  background: #e8f1f8;
}
.pin {
  background: none;
  border: 0;
}
.pin svg {
  width: 34px;
  height: 44px;
  display: block;
  filter: drop-shadow(0 6px 6px rgba(44, 62, 80, 0.3));
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: 50% 100%;
}
.pin:hover svg {
  transform: scale(1.22);
}
.pin.active svg {
  transform: scale(1.4);
  animation: bounce 0.7s ease;
}
@keyframes bounce {
  0% {
    transform: translateY(-14px) scale(1.4);
  }
  60% {
    transform: translateY(3px) scale(1.4);
  }
  100% {
    transform: translateY(0) scale(1.4);
  }
}
.hq-pin {
  background: none;
  border: 0;
}
.hq-pin .core {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  border: 4px solid #fff;
  box-shadow: 0 8px 20px rgba(6, 147, 227, 0.5);
}
.hq-pin .core::before,
.hq-pin .core::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  animation: pulse 2.4s ease-out infinite;
}
.hq-pin .core::after {
  animation-delay: 1.2s;
}
@keyframes pulse {
  from {
    transform: scale(1);
    opacity: 0.8;
  }
  to {
    transform: scale(2.1);
    opacity: 0;
  }
}
.leaflet-popup-content-wrapper {
  border-radius: 20px;
  padding: 0;
  box-shadow: 0 18px 44px rgba(44, 62, 80, 0.28);
  overflow: hidden;
}
.leaflet-container img.leaflet-tile,
.leaflet-container .leaflet-marker-icon {
  max-width: none !important;
  max-height: none !important;
}
.leaflet-popup {
  margin-bottom: 34px;
}
.leaflet-popup-content-wrapper {
  max-width: none;
}
.leaflet-popup-content {
  margin: 0 !important;
  width: 280px !important;
  max-width: 86vw;
  line-height: 1.5;
}
.leaflet-popup-content,
.leaflet-popup-content * {
  box-sizing: border-box;
}
.leaflet-popup-content p {
  margin: 0 0 0.8rem !important;
}
.leaflet-popup-content h4 {
  margin: 0.15rem 0 0 !important;
}
.leaflet-popup-tip {
  box-shadow: none;
}
.leaflet-container a.leaflet-popup-close-button {
  top: 10px;
  right: 10px;
  color: #fff;
  font-size: 22px;
  width: 28px;
  height: 28px;
  line-height: 26px;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 50%;
  text-align: center;
  padding: 0;
}
.leaflet-container a.leaflet-popup-close-button:hover {
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
}
.pop-head {
  padding: 1.1rem 3rem 0.9rem 1.2rem;
  color: #fff;
}
.pop-head small {
  opacity: 0.92;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.pop-head h4 {
  margin: 0.15rem 0 0;
  color: #fff;
  font-size: 1.3rem;
}
.pop-body {
  padding: 1rem 1.2rem 1.2rem;
}
.pop-body p {
  font-size: 0.86rem;
  color: var(--text-light);
  line-height: 1.55;
  margin: 0 0 0.8rem;
}
.pop-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}
.pop-chips span {
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--light-gray);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  color: var(--text-dark);
}
.pop-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.pop-actions a {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
}
.pop-actions .p1 {
  background: var(--primary-color);
  color: #fff;
}
.pop-actions .p2 {
  background: var(--light-gray);
  color: var(--text-dark);
}
.leaflet-control-zoom a {
  color: var(--text-dark);
}

/* FAQ */
.faq {
  max-width: 860px;
  margin-inline: auto;
  display: grid;
  gap: 0.9rem;
}
.faq details {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition:
    box-shadow 0.3s,
    border-color 0.3s;
}
.faq details[open] {
  box-shadow: var(--shadow-sm);
  border-color: rgba(6, 147, 227, 0.4);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 1.4rem;
  font-family: var(--font-head);
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-dark);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  transition:
    transform 0.3s,
    background 0.3s;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
  background: var(--primary-color);
  color: #fff;
}
.faq .answer {
  padding: 0 1.4rem 1.3rem;
  color: var(--text-light);
}
.faq .answer p {
  margin: 0;
}

/* Contact */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 1.5rem;
}
.contact-info {
  background: linear-gradient(150deg, var(--primary-color), #3aa9ec);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 3rem);
  position: relative;
  overflow: hidden;
}
.contact-info::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  right: -80px;
  bottom: -80px;
}
.contact-info h2,
.contact-info h3 {
  color: #fff;
}
.contact-info a {
  color: #fff;
  font-weight: 600;
  word-break: break-word;
}
.contact-info a:hover {
  text-decoration: underline;
  color: #fff;
}
.contact-list {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.6rem;
  position: relative;
  z-index: 1;
}
.contact-list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}
.contact-list .ci {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
}
.contact-list small {
  display: block;
  opacity: 0.85;
  font-size: 0.78rem;
}
.form-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  box-shadow: var(--shadow-sm);
}
.field {
  margin-bottom: 1.1rem;
}
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  font: inherit;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border-color);
  border-radius: 14px;
  background: var(--light-gray);
  color: var(--text-dark);
  transition:
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--primary-color);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(6, 147, 227, 0.14);
}
.field textarea {
  min-height: 130px;
  resize: vertical;
}
.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-msg {
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  font-weight: 500;
  display: none;
}
.form-msg.ok {
  display: block;
  background: var(--green-soft);
  color: #0a7d5b;
}
.form-msg.err {
  display: block;
  background: var(--pink-soft);
  color: #c4284f;
}

/* Closing */
.closing {
  background: var(--text-dark);
  color: #fff;
  text-align: center;
  padding: clamp(56px, 8vw, 96px) 0;
  overflow: hidden;
}
.closing h2 {
  color: #fff;
  max-width: 860px;
  margin-inline: auto;
}
.closing p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 720px;
  margin: 0 auto 2rem;
}
.closing .bar {
  display: flex;
  height: 6px;
  max-width: 220px;
  margin: 0 auto 2rem;
  border-radius: 6px;
  overflow: hidden;
}
.closing .bar i {
  flex: 1;
}

footer {
  background: #1f2d3a;
  color: rgba(255, 255, 255, 0.7);
  padding: 2.2rem 0;
  font-size: 0.9rem;
}
.foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
footer a {
  color: rgba(255, 255, 255, 0.85);
}
footer a:hover {
  color: #fff;
}
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: var(--primary-color);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.3s;
  z-index: 900;
}
.to-top.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* Reveal */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
  transition-delay: var(--d, 0s);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}
.img-fallback {
  background: linear-gradient(135deg, var(--primary-soft), var(--purple-soft));
}

/* Responsive */
@media (max-width: 1080px) {
  .g4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .map-layout {
    grid-template-columns: 300px 1fr;
  }
}
@media (max-width: 960px) {
  .menu-btn {
    display: grid;
  }
  .nav-cta .btn {
    display: none;
  }
  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.5rem;
    gap: 0.2rem;
    box-shadow: 0 20px 40px rgba(44, 62, 80, 0.15);
    border-top: 1px solid var(--border-color);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav-links.open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }
  .nav-links a {
    padding: 0.85rem 1rem;
    font-size: 1rem;
  }
  .site-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--border-color);
  }
  .hero-grid,
  .about-grid,
  .contact-wrap {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    max-width: 480px;
    margin-inline: auto;
    width: 100%;
  }
  .profile-card {
    position: static;
  }
  .g3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat:nth-child(2) {
    border-right: 0;
  }
  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border-color);
  }
  .tab-panel.active {
    grid-template-columns: 1fr;
  }
  .tab-panel .panel-img {
    min-height: 220px;
    max-height: 260px;
  }
  .map-layout {
    grid-template-columns: 1fr;
  }
  .map-side {
    max-height: none;
    order: 2;
  }
  .city-list {
    max-height: 260px;
  }
  .map-wrap {
    min-height: 480px;
    order: 1;
  }
}
@media (max-width: 640px) {
  .g2,
  .g3,
  .g4,
  .check-list,
  .row2 {
    grid-template-columns: 1fr;
  }
  .fc1 {
    left: -6px;
  }
  .fc2 {
    right: -6px;
  }
  .float-card {
    padding: 0.65rem 0.85rem;
  }
  .float-card strong {
    font-size: 1rem;
  }
  .analyzer {
    flex-direction: column;
    align-items: flex-start;
  }
  .leader {
    flex-direction: column;
    align-items: flex-start;
  }
  .map-wrap {
    min-height: 440px;
  }
  .map-legend {
    display: none;
  }
  .map-hint {
    white-space: normal;
    text-align: center;
    width: max-content;
    max-width: 86%;
  }
  .tabs {
    justify-content: flex-start;
    flex-wrap: nowrap;
  }
  .foot {
    flex-direction: column;
    text-align: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
