/* ─── Design tokens ─── */
:root {
  --sn-green: #7bc043;
  --sn-green-soft: #e6f1cc;
  --sn-teal-900: #042f45;
  --sn-teal-700: #0b4968;
  --sn-teal-500: #136487;
  --sn-bg: #e6e8ea;
  --sn-surface: #ffffff;
  --sn-border: #d6dbe0;
  --sn-ink: #13222d;
  --sn-muted: #5f707c;
  --sn-shadow: 0 8px 24px rgba(9, 30, 45, 0.08);
  --radius: 12px;
}

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

html { scroll-behavior: smooth; }
html, body { height: 100%; }

.sn-body {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--sn-ink);
  background: var(--sn-bg);
}

.sn-app {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* ─── Top bar ─── */
.sn-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 52px;
  background: linear-gradient(90deg, #03293d 0%, #0b405b 70%, #0e4d6f 100%);
  border-bottom: 2px solid var(--sn-green);
  color: #dcecf5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  padding: 0 1.2rem;
}

.sn-top-left,
.sn-top-right {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.sn-brand {
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.01em;
  margin-right: 0.6rem;
}

.sn-top-links {
  display: flex;
  gap: 0.2rem;
}

.sn-top-links a,
.quick-link {
  text-decoration: none;
  color: #c6d8e5;
  font-size: 0.76rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}

.sn-top-links a:hover,
.quick-link:hover,
.section-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

/* ─── Shell grid ─── */
.sn-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1rem;
  min-height: calc(100vh - 52px);
}

/* ─── Sidebar profile ─── */
.sn-side-profile {
  background: linear-gradient(135deg, #2a6892 0%, #0f4d70 60%, #0a2f45 100%);
  border-radius: var(--radius);
  color: #fff;
  padding: 1.2rem 1.6rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.2rem;
  box-shadow: var(--sn-shadow);
}

.profile-photo {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.85);
  flex-shrink: 0;
}

.sn-side-profile h1 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.15;
  text-align: left;
}

.profile-role {
  margin: 0.15rem 0 0;
  color: #d7eaf6;
  font-weight: 700;
  font-size: 0.84rem;
  text-align: left;
}

.profile-meta {
  margin: 0.4rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.78rem;
  text-align: left;
  color: #d0e3ef;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.profile-meta li + li { margin-top: 0; }



.profile-social {
  margin-left: auto;
  display: flex;
  gap: 0.8rem;
}

.profile-social a {
  color: #c5dbe8;
  font-size: 1.1rem;
}

/* ─── Main content ─── */
.sn-main {
  display: grid;
  gap: 1rem;
  align-content: start;
  min-width: 0;
}

/* shared card base */
.hero-panel,
.content-section,
.quotes-section,
.contact-section {
  background: var(--sn-surface);
  border: 1px solid var(--sn-border);
  border-radius: var(--radius);
  box-shadow: var(--sn-shadow);
  padding: 1.4rem 1.6rem;
}

/* ─── 1. Hero ─── */
.hero-panel {
  background:
    linear-gradient(135deg, rgba(6, 47, 70, 0.88) 0%, rgba(10, 74, 102, 0.82) 60%, rgba(13, 90, 126, 0.78) 100%),
    url('hero-bg.jpg') center / cover no-repeat;
  border-color: #0c4260;
  color: #e4f0f7;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  overflow: hidden;
}

.hero-headline {
  margin: 0;
  font-size: 1.85rem;
  line-height: 1.18;
  color: #fff;
}

.hero-sub {
  margin: 0.7rem 0 1.1rem;
  color: #c4d9e8;
  max-width: 660px;
  font-size: 0.92rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  gap: 0.5rem;
}

.hero-visuals {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.hero-thumb {
  width: 260px;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  border: 2px solid rgba(200, 230, 248, 0.2);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-thumb:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

/* ─── Section generics ─── */
.section-title {
  margin: 0 0 0.9rem;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.section-title i {
  color: var(--sn-teal-500);
}

.section-intro {
  color: var(--sn-muted);
  margin: -0.5rem 0 1rem;
  font-size: 0.88rem;
}

.alt-bg {
  background: #f6f8fa;
}

#community {
  background: #f6f8fa;
}

#experience {
  background: var(--sn-surface);
}

/* ─── 2. Positioning ─── */
.prose-block p {
  max-width: 780px;
  line-height: 1.7;
  color: #2c3d48;
}

.prose-block p + p {
  margin-top: 0.75rem;
}

/* ─── 3. Philosophy ─── */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.phil-card {
  background: var(--sn-surface);
  border: 1px solid var(--sn-border);
  border-radius: 10px;
  padding: 1rem;
}

.phil-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.phil-card p {
  margin: 0;
  color: var(--sn-muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

/* ─── 4. Expertise ─── */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.exp-card {
  border: 1px solid var(--sn-border);
  border-radius: 10px;
  padding: 1rem;
  background: #fff;
}

.exp-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0a4a66, #136487);
  color: #fff;
  display: grid;
  place-items: center;
  margin-bottom: 0.55rem;
  font-size: 1rem;
}

.exp-card h3 {
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
}

.exp-card p {
  margin: 0;
  color: var(--sn-muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

/* ─── 5. Experience ─── */
.experience-timeline {
  display: grid;
  gap: 1.1rem;
  position: relative;
  padding-left: 1.6rem;
}

.experience-timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--sn-border);
}

.exp-narrative {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
}

.exp-marker {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--sn-green);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--sn-green);
  margin-top: 0.25rem;
  position: relative;
  z-index: 1;
}

.exp-narrative h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.exp-org {
  color: var(--sn-muted);
  font-weight: 400;
  font-size: 0.85rem;
}

.exp-narrative p {
  margin: 0;
  color: #3a4f5c;
  font-size: 0.86rem;
  line-height: 1.6;
  max-width: 720px;
}

/* ─── 6. Community ─── */
.community-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.1rem;
}

.comm-card {
  border: 1px solid var(--sn-border);
  border-radius: 10px;
  padding: 0.9rem;
  background: #fff;
}

.comm-card i {
  font-size: 1.3rem;
  color: var(--sn-teal-500);
  margin-bottom: 0.4rem;
  display: block;
}

.comm-card h3 {
  margin: 0 0 0.3rem;
  font-size: 0.92rem;
}

.comm-card p {
  margin: 0;
  color: var(--sn-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.community-metrics {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 1rem 1.1rem;
  border: 1px solid var(--sn-border);
  border-radius: 10px;
  background: #f6f8fa;
}

.community-metrics small {
  display: block;
  color: var(--sn-muted);
  font-size: 0.76rem;
}

.community-metrics strong {
  display: block;
  font-size: 1.6rem;
  line-height: 1;
}

/* ─── 7. Quotes ─── */
.quotes-section {
  background: linear-gradient(135deg, #062f46 0%, #0a4a66 60%, #0d5a7e 100%);
  border-color: #0c4260;
  color: #e4f0f7;
}

.quotes-section .section-title {
  color: #fff;
}

.quotes-section .section-title i {
  color: var(--sn-green);
}

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

.quotes-grid blockquote {
  margin: 0;
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(200, 225, 240, 0.15);
  border-left: 3px solid var(--sn-green);
  border-radius: 8px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #d4ecfa;
}

/* ─── 8. Contact ─── */
.contact-section {
  text-align: center;
}

.contact-intro {
  margin: 0 auto 1.1rem;
  max-width: 680px;
  color: #3a4f5c;
  line-height: 1.65;
}

.contact-actions {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.contact-actions .btn i {
  margin-right: 0.3rem;
}

/* ─── Footer ─── */
.sn-footer {
  margin: 0 1rem 1rem;
  padding-top: 0.5rem;
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
  color: #5f707b;
  font-size: 0.76rem;
}

/* ─── Responsive ─── */
@media (max-width: 1360px) {
  .philosophy-grid,
  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
  .quotes-grid { grid-template-columns: repeat(2, 1fr); }
  .community-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1060px) {
  .sn-shell { grid-template-columns: 1fr; }
  .sn-side-profile { flex-wrap: wrap; }
  .sn-side-profile h1 { font-size: 1.35rem; }
  .hero-panel { grid-template-columns: 1fr; }
  .hero-visuals { flex-direction: row; }
  .hero-thumb { width: 200px; }
}

@media (max-width: 800px) {
  .sn-topbar {
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 0.75rem;
  }
  .sn-top-left, .sn-top-right { width: 100%; justify-content: space-between; }
  .sn-top-links { overflow-x: auto; padding-bottom: 0.2rem; }
  .philosophy-grid,
  .expertise-grid,
  .quotes-grid,
  .community-grid { grid-template-columns: 1fr; }
  .community-metrics { gap: 1rem; }
  .hero-headline { font-size: 1.4rem; }
  .hero-actions { flex-wrap: wrap; }
  .hero-visuals {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .hero-thumb {
    width: min(100%, 360px);
  }
}

@media (max-width: 480px) {
  .hero-panel,
  .content-section,
  .contact-section {
    padding: 1rem;
  }

  .hero-visuals {
    align-items: stretch;
  }

  .hero-thumb {
    width: 100%;
  }
}