:root {
  --color-primary: #4e84cd;
  --color-primary-dark: #2a5ca6;
  --color-accent: #1f3f72;
  --color-surface: #ffffff;
  --color-muted: #6b7280;
  --color-soft: #f5f7fb;
  --color-border: #d7dce5;
  --font-base: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --shadow-soft: 0 20px 40px rgba(15, 23, 42, 0.07);
  --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.08);
  --transition-base: 200ms ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: #0f172a;
  background: var(--color-soft);
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

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

.eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-weight: 600;
  color: var(--color-accent);
}

.section-title {
  font-size: clamp(2rem, 1.5vw + 1.5rem, 2.75rem);
  line-height: 1.2;
  margin: 0;
}

.section-lede {
  font-size: 1.06rem;
  color: var(--color-muted);
  max-width: 620px;
  margin-top: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  border: none;
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base),
    background var(--transition-base);
}

.btn:hover,
.btn:focus-visible {
  background: #142d59;
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

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

.btn-outline:hover,
.btn-outline:focus-visible {
  background: rgba(31, 63, 114, 0.1);
  color: var(--color-accent);
}

.top-bar {
  background: rgba(78, 132, 205, 0.08);
  backdrop-filter: blur(16px);
  font-size: 0.9rem;
  color: var(--color-accent);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 0.4rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-links {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: inherit;
}

.contact-links i {
  font-style: normal;
  font-weight: 600;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.8rem;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  color: var(--color-accent);
  font-size: 1.05rem;
}

.brand img {
  height: 52px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  font-weight: 500;
  color: var(--color-muted);
  transition: color var(--transition-base), transform var(--transition-base);
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.active {
  color: var(--color-accent);
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(78, 132, 205, 0.35);
  width: 44px;
  height: 44px;
  border-radius: 11px;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.hero {
  position: relative;
  padding: clamp(5rem, 9vw, 9rem) 0 clamp(4rem, 8vw, 7rem);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(78, 132, 205, 0.12), rgba(255, 255, 255, 0.92));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/rafis-hero.jpg") center/cover no-repeat;
  opacity: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.55) 55%, rgba(255, 255, 255, 0.2) 100%);
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 2.4rem;
  align-items: start;
}

.hero .hero-content {
  position: relative;
  padding: clamp(1.8rem, 4vw, 2.6rem);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(6px);
  color: var(--color-text, #111827);
}

.hero-subtitle {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--color-primary-dark);
  font-weight: 600;
}

.hero-title {
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  max-width: 18ch;
  margin: 0.6rem 0 1.3rem;
  line-height: 1.1;
}

.hero-description {
  max-width: 52ch;
  color: #1f2937;
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero-stats {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.stat-card {
  background: var(--color-surface);
  border-radius: 18px;
  padding: 1.6rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(78, 132, 205, 0.08);
}

.stat-card strong {
  display: block;
  font-size: 2rem;
  color: var(--color-primary-dark);
}

.card-grid {
  display: grid;
  gap: 1.8rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 2.8rem;
}

.info-card {
  background: var(--color-surface);
  border-radius: 20px;
  padding: 2.1rem;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  border: 1px solid rgba(78, 132, 205, 0.12);
  box-shadow: var(--shadow-soft);
}

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

.info-card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 1.35rem;
}

.info-card p {
  color: var(--color-muted);
  margin: 0;
}

.split-layout {
  display: grid;
  gap: 3rem;
  align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.highlight-panel {
  background: linear-gradient(140deg, rgba(31, 63, 114, 0.98), rgba(18, 39, 76, 0.95));
  color: #fff;
  padding: clamp(2.4rem, 4vw, 3rem);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.highlight-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 60%);
  pointer-events: none;
}

.highlight-panel .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #ffffff;
  color: var(--color-accent);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 1.2rem;
}

.highlight-panel h3 {
  margin: 0 0 1rem;
  font-size: 2rem;
  line-height: 1.2;
}

.highlight-panel p {
  margin: 0 0 1.6rem;
  color: rgba(255, 255, 255, 0.9);
}

.highlight-panel .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.12);
}

.highlight-panel .btn-outline:hover,
.highlight-panel .btn-outline:focus-visible {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.badge img {
  height: 28px;
  width: auto;
}

.timeline {
  margin-top: 2.6rem;
  border-left: 2px solid rgba(78, 132, 205, 0.2);
  padding-left: 1.6rem;
}

.timeline-entry {
  position: relative;
  margin-bottom: 2.4rem;
}

.timeline-entry:last-child {
  margin-bottom: 0;
}

.timeline-entry::before {
  content: "";
  position: absolute;
  left: -2.07rem;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 6px rgba(78, 132, 205, 0.16);
}

.timeline-entry h4 {
  margin: 0 0 0.6rem;
  font-size: 1.35rem;
}

.timeline-entry ul {
  list-style: disc;
  color: var(--color-muted);
  padding-left: 1.1rem;
  display: grid;
  gap: 0.3rem;
}

.image-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 2.4rem;
}

.image-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: rgba(78, 132, 205, 0.12);
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

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

.lead-copy {
  font-size: 1.1rem;
  color: var(--color-muted);
  max-width: 720px;
}

.stack {
  display: grid;
  gap: 1.6rem;
}

.cta-band {
  background: linear-gradient(120deg, rgba(78, 132, 205, 0.08), rgba(78, 132, 205, 0.02));
  padding: clamp(2.6rem, 5vw, 3.8rem) 0;
  border-top: 1px solid rgba(78, 132, 205, 0.1);
  border-bottom: 1px solid rgba(78, 132, 205, 0.1);
}

.cta-card {
  background: var(--color-surface);
  border-radius: 24px;
  padding: clamp(2rem, 4vw, 2.8rem);
  display: grid;
  gap: 1.6rem;
  align-items: center;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(78, 132, 205, 0.14);
}

.stat-set {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.stat {
  display: grid;
  gap: 0.4rem;
}

.stat span:first-child {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-surface);
  }

.stat span:last-child {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.6rem;
  background: var(--color-surface);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

table.data-table thead {
  background: rgba(78, 132, 205, 0.08);
}

table.data-table th,
table.data-table td {
  text-align: left;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  font-size: 0.95rem;
}

table.data-table tbody tr:hover {
  background: rgba(78, 132, 205, 0.05);
}

.pill {
  display: inline-flex;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(78, 132, 205, 0.12);
  color: var(--color-primary-dark);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

.people-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 2rem;
}

.person-card {
  background: var(--color-surface);
  border-radius: 20px;
  padding: 1.8rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(78, 132, 205, 0.12);
  display: grid;
  gap: 0.6rem;
}

.person-card strong {
  font-size: 1.1rem;
}

.person-card span {
  color: var(--color-muted);
  font-size: 0.95rem;
}

.person-card .contact {
  display: grid;
  gap: 0.2rem;
}

.person-card a {
  color: var(--color-primary);
  font-weight: 600;
  word-break: break-word;
}

.footer {
  padding: 3rem 0 2.4rem;
  background: rgba(15, 23, 42, 0.98);
  color: rgba(255, 255, 255, 0.85);
}

.footer-inner {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.footer .brand img {
  height: 48px;
}

.footer-nav {
  display: grid;
  gap: 0.6rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-meta {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-badges {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

.footer-badges img {
  height: 60px;
  width: auto;
  filter: drop-shadow(0 10px 16px rgba(15, 23, 42, 0.2));
}

.page-header {
  padding: clamp(4.5rem, 8vw, 6rem) 0 clamp(2rem, 4vw, 3rem);
  background: linear-gradient(160deg, rgba(78, 132, 205, 0.18), rgba(255, 255, 255, 0.9));
  border-bottom: 1px solid rgba(78, 132, 205, 0.18);
}

.page-header h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(2.4rem, 3vw, 3rem);
}

.page-header p {
  margin: 0;
  max-width: 640px;
  color: var(--color-muted);
  font-size: 1.05rem;
}

.page-content {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 clamp(4rem, 7vw, 5rem);
  display: grid;
  gap: 3.6rem;
}

.page-content.instagram {
  padding: clamp(1.8rem, 4vw, 2.6rem) 0;
}

.instagram-callout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: clamp(1.8rem, 4vw, 2.6rem);
  background: linear-gradient(120deg, rgba(78, 132, 205, 0.14), rgba(31, 63, 114, 0.08));
  border: 1px solid rgba(78, 132, 205, 0.18);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  flex-wrap: wrap;
}

.instagram-content {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex: 1 1 320px;
}

.instagram-content h2 {
  margin: 0 0 0.5rem;
}

.instagram-content p {
  margin: 0;
  color: var(--color-muted);
}

.icon-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(31, 63, 114, 0.12);
  color: var(--color-accent);
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  box-shadow: 0 12px 32px rgba(31, 63, 114, 0.16);
}

.instagram-callout .btn {
  flex-shrink: 0;
}


.card-stack {
  display: grid;
  gap: 1.2rem;
}

.card-stack .info-card {
  padding: 1.6rem 1.8rem;
}

.two-column {
  display: grid;
  gap: 2.8rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.badge-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.badge-group img {
  height: 60px;
  width: auto;
}

.gallery-grid {
  columns: 3 240px;
  column-gap: 1rem;
}

.gallery-grid figure {
  break-inside: avoid;
  margin: 0 0 1rem;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--color-surface);
}

.gallery-grid img {
  width: 100%;
  display: block;
}

.gallery-grid figcaption {
  padding: 0.75rem 1rem 1rem;
  color: var(--color-muted);
  font-size: 0.92rem;
}

.contact-grid {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.contact-card {
  background: var(--color-surface);
  border-radius: 18px;
  padding: 1.8rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(78, 132, 205, 0.12);
  display: grid;
  gap: 0.8rem;
}

.contact-card .contact-photo {
  width: 88px;
  height: 88px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.14);
}

.contact-card .contact-photo.is-wide {
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.contact-card strong {
  font-size: 1.1rem;
}

.contact-card a {
  color: var(--color-accent);
  font-weight: 600;
}

.contact-card .contact-links-inline {
  display: grid;
  gap: 0.35rem;
}

.list-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0;
  margin: 0;
}

.list-inline li {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(78, 132, 205, 0.14);
  color: var(--color-primary-dark);
  font-size: 0.9rem;
  font-weight: 600;
}

.accent-block {
  border-radius: 22px;
  background: rgba(78, 132, 205, 0.1);
  padding: clamp(2rem, 4vw, 2.8rem);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    inset: 100% 0 auto 0;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 24px 36px rgba(15, 23, 42, 0.08);
    padding: 1.2rem var(--mobile-padding, 4vw);
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base), transform var(--transition-base);
  }

  .nav-links.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .hero::before {
    opacity: 0.12;
  }

  .top-bar {
    font-size: 0.82rem;
  }

  .timeline {
    padding-left: 1.1rem;
  }

  .timeline-entry::before {
    left: -1.55rem;
  }

  .gallery-grid {
    columns: 2 200px;
  }
}

@media (max-width: 640px) {
  .top-bar .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand img {
    height: 44px;
  }

  .hero {
    padding-top: 4.4rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .stat-card strong {
    font-size: 1.6rem;
  }

  .gallery-grid {
    columns: 1 100%;
  }

  table.data-table th,
  table.data-table td {
    padding: 0.8rem;
    font-size: 0.9rem;
  }
}
