/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:       #FAFAF8;
  --surface:  #FFFFFF;
  --border:   #E8E8E4;
  --text:     #1A1A18;
  --text-mid: #555550;
  --text-dim: #8E8E88;
  --accent:   #3D5A80;
  --accent-soft: #5B7EA1;
  --accent-bg: #EDF1F5;
  --heading:  #111110;
  --font:     'Source Serif 4', 'Georgia', serif;
  --sans:     'DM Sans', 'Helvetica Neue', sans-serif;
  --max-w:    1100px;
  --ease:     cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --radius:   12px;
}

/* ── Dark mode overrides ──────────────────────────────────── */
[data-theme="dark"] {
  --bg:       #111110;
  --surface:  #1A1A18;
  --border:   #2A2A28;
  --text:     #E0E0DC;
  --text-mid: #B0B0AA;
  --text-dim: #777770;
  --accent:   #7BA3C9;
  --accent-soft: #9DBDE0;
  --accent-bg: #1A2230;
  --heading:  #F0F0EC;
}

[data-theme="dark"] nav {
  background: rgba(17, 17, 16, 0.9);
}

[data-theme="dark"] nav .nav-links {
  background: rgba(17, 17, 16, 0.97);
}

[data-theme="dark"] .video-card .video-embed {
  background: #1A1A18;
}

[data-theme="dark"] .card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .blog-card:hover,
[data-theme="dark"] .video-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .journey-marker {
  background: var(--bg);
}

[data-theme="dark"] .gallery-img {
  background: #222220;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
a:hover { color: var(--accent-soft); }

::selection { background: var(--accent-bg); color: var(--heading); }

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

/* ── Navigation ──────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 2.5rem;
  background: rgba(250, 250, 248, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

nav .nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

nav .logo {
  font-family: var(--font);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--heading);
}
nav .logo span { color: var(--accent); }

nav .nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
}

nav .nav-links a {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--text-dim);
  font-weight: 500;
  transition: color 0.2s var(--ease);
  position: relative;
}

nav .nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}

nav .nav-links a:hover,
nav .nav-links a.active { color: var(--heading); }

nav .nav-links a.active::after,
nav .nav-links a:hover::after { width: 100%; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--heading);
  transition: all 0.3s var(--ease);
}

/* ── Layout ──────────────────────────────────────────────── */
main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 100px 2.5rem 5rem;
  min-height: 100vh;
}

section { margin-bottom: 6rem; }

/* ── Section Label ───────────────────────────────────────── */
.section-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 2rem;
}

/* ── Typography ──────────────────────────────────────────── */
h1 {
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--heading);
}

h2 {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 2rem;
}

h3 {
  font-family: var(--font);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--heading);
  letter-spacing: -0.01em;
  line-height: 1.35;
}

p {
  color: var(--text-mid);
  font-size: 1.08rem;
  line-height: 1.8;
}

/* ── HERO — editorial splash ─────────────────────────────── */
.hero {
  padding: 6rem 0 2rem;
  min-height: 75vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-greeting {
  font-family: var(--font);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  margin-bottom: 2rem;
  max-width: 10ch;
}

.hero h1 .accent { color: var(--accent); }

.hero-statement {
  font-family: var(--font);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.75;
  color: var(--text-mid);
  max-width: 540px;
  margin-bottom: 3rem;
}

.hero-meta {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hero-meta-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}

.hero-meta-value {
  font-family: var(--font);
  font-size: 1rem;
  color: var(--heading);
}

.hero-meta-value a { color: var(--heading); }
.hero-meta-value a:hover { color: var(--accent); }

/* ── Social row ──────────────────────────────────────────── */
.social-row {
  display: flex;
  gap: 1.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.social-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  transition: color 0.2s var(--ease);
}
.social-link:hover { color: var(--heading); }

.social-link svg {
  width: 17px; height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

/* ── Hero Full Page (landing) ─────────────────────────────── */
.hero-page {
  min-height: 100vh;
  padding-top: 64px;
  padding-bottom: 0;
  display: flex;
  align-items: center;
}

.hero-page .hero-full {
  padding: 0;
  min-height: auto;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-split {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.hero-split .hero-text {
  flex: 1;
}

.hero-split .hero-photo {
  flex: 0 0 400px;
  max-height: 500px;
  overflow: hidden;
}

.hero-split .hero-photo img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  object-fit: cover;
}

@media (max-width: 768px) {
  .hero-split {
    flex-direction: column-reverse;
    gap: 2rem;
  }
  .hero-split .hero-photo {
    flex: none;
    width: 100%;
    max-height: 350px;
  }
}

/* ── Dark Mode Toggle ────────────────────────────────────── */
.theme-toggle {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.5rem;
  transition: all 0.25s var(--ease);
  color: var(--text-dim);
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun  { display: none; }

[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }

/* ── Beliefs / Philosophy ────────────────────────────────── */
.beliefs {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.belief-item {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  margin: 0;
}

.belief-item:first-child { padding-top: 0; }
.belief-item:last-child { border-bottom: none; }

.belief-item p {
  font-family: var(--font);
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--text-mid);
  max-width: 640px;
  position: relative;
  padding-left: 1.5rem;
}

.belief-item p::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
}

/* ── Story (narrative prose) ──────────────────────────────── */
.story {
  max-width: 640px;
}

.story p {
  font-family: var(--font);
  font-size: 1.12rem;
  line-height: 1.9;
  color: var(--text-mid);
  margin-bottom: 1.4rem;
}

.story p:first-child {
  font-size: 1.35rem;
  font-style: italic;
  color: var(--heading);
  margin-bottom: 1.8rem;
}

.story p strong {
  color: var(--heading);
  font-weight: 600;
}

.story p em {
  font-style: italic;
  color: var(--heading);
}

.story p a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent-bg);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s var(--ease);
}

.story p a:hover {
  text-decoration-color: var(--accent);
}

.story .story-coda {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--heading);
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

/* ── Journey (horizontal-ish timeline) ───────────────────── */
.journey {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.journey::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 10px;
  bottom: 10px;
  width: 1.5px;
  background: var(--border);
}

.journey-step {
  display: flex;
  align-items: flex-start;
  gap: 1.8rem;
  padding: 1.2rem 0;
  position: relative;
}

.journey-marker {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg);
  position: relative;
  z-index: 1;
  transition: all 0.3s var(--ease);
}

.journey-step:hover .journey-marker {
  border-color: var(--accent);
  background: var(--accent-bg);
}

.journey-marker.active {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-bg);
}

.journey-content {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-top: 2px;
}

.journey-year {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.journey-place {
  font-family: var(--font);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--heading);
}

.journey-role {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ── Divider ─────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 4rem 0;
}

/* ── Experience — editorial two-column ───────────────────── */
.exp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.exp-item {
  background: var(--surface);
  padding: 2.2rem;
  transition: background 0.3s var(--ease);
}

.exp-item:hover { background: var(--accent-bg); }

.exp-period {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.exp-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.exp-company {
  font-size: 0.92rem;
  color: var(--text-dim);
  margin-bottom: 0.8rem;
}

.exp-desc {
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.7;
}

/* single-column on last odd item */
.exp-item.full {
  grid-column: 1 / -1;
}

/* ── Marquee (skills ticker) ─────────────────────────────── */
.marquee-wrap {
  overflow: hidden;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 4rem -2.5rem;
}

.marquee {
  display: flex;
  gap: 3rem;
  animation: marquee 35s linear infinite;
  width: max-content;
}

.marquee span {
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text-dim);
  white-space: nowrap;
  font-style: italic;
}

.marquee span::after {
  content: '\00B7';
  margin-left: 3rem;
  color: var(--border);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-wrap:hover .marquee {
  animation-play-state: paused;
}

/* ── Cards Grid ──────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.35s var(--ease);
  display: flex;
  flex-direction: column;
  position: relative;
}

.card:hover {
  border-color: var(--accent-soft);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.05);
  transform: translateY(-4px);
}

.card-label {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.9rem;
}

.card h3 { margin-bottom: 0.8rem; }

.card p {
  font-size: 0.95rem;
  line-height: 1.75;
  flex: 1;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.5rem;
}

.card-tags span {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  padding: 0.25rem 0.65rem;
  background: var(--accent-bg);
  border-radius: 14px;
  color: var(--accent);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.5rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
}

.card-link::after {
  content: '\2192';
  transition: transform 0.2s var(--ease);
}
.card:hover .card-link::after {
  transform: translateX(4px);
}

/* ── Blog Cards ──────────────────────────────────────────── */
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.35s var(--ease);
}

.blog-card:hover {
  border-color: var(--accent-soft);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.05);
  transform: translateY(-3px);
}

.blog-card .blog-meta {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
  display: flex;
  gap: 1rem;
}

.blog-card h3 { margin-bottom: 0.5rem; }

.blog-card p {
  font-size: 0.95rem;
  line-height: 1.75;
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ── Video Grid ──────────────────────────────────────────── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.video-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.35s var(--ease);
}

.video-card:hover {
  border-color: var(--accent-soft);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.05);
  transform: translateY(-3px);
}

.video-card .video-embed {
  position: relative;
  padding-top: 56.25%;
  background: var(--accent-bg);
}

.video-card .video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

.video-card .video-thumb {
  position: relative;
  display: block;
  overflow: hidden;
}

.video-card .video-thumb img {
  width: 100%;
  display: block;
  transition: transform 0.35s var(--ease);
}

.video-card .video-thumb:hover img {
  transform: scale(1.05);
}

.video-card .play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 60px; height: 60px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  transition: background 0.3s ease;
  pointer-events: none;
}

.video-card .video-thumb:hover .play-btn {
  background: rgba(255, 0, 0, 0.85);
}

.video-card .video-info {
  padding: 1.25rem 1.5rem;
}

.video-card .video-info h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.video-card .video-info p {
  font-size: 0.9rem;
}

/* ── Page Header ─────────────────────────────────────────── */
.page-header {
  padding: 5rem 0 2rem;
}

.page-header h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 1rem;
}

.page-header p {
  max-width: 520px;
  font-size: 1.1rem;
}

/* ── Education ───────────────────────────────────────────── */
.edu-item {
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.edu-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.edu-degree {
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--heading);
}

.edu-school { color: var(--text-dim); font-weight: 400; }

.edu-date {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--text-dim);
}

.edu-item p {
  font-size: 0.92rem;
  line-height: 1.75;
}

.edu-hero {
  max-width: 480px;
  margin: 0 auto 1rem;
  padding: 0 2rem;
}

.edu-hero img {
  width: 100%;
  object-fit: contain;
  border-radius: var(--radius);
}

/* ── Achievements ────────────────────────────────────────── */
.achievements-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.achievement-item {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.achievement-item:first-child { padding-top: 0; }
.achievement-item:last-child { border-bottom: none; }

.achievement-year {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  min-width: 3.5rem;
  padding-top: 0.15rem;
}

.achievement-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.achievement-content p {
  font-size: 0.95rem;
}

/* ── Club / Community ────────────────────────────────────── */
.club-hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  margin-bottom: 2.5rem;
}

.club-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.club-info p {
  font-size: 1.05rem;
  max-width: 600px;
}

/* ── Photo Gallery ───────────────────────────────────────── */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
}

.gallery-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--border);
}

.gallery-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.gallery-item:hover .gallery-img img {
  transform: scale(1.04);
}

.gallery-caption {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 0.6rem;
}

/* ── Community Blocks ────────────────────────────────────── */
.community-block {
  margin-bottom: 0;
}

.community-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.community-split.reverse {
  direction: rtl;
}
.community-split.reverse > * {
  direction: ltr;
}

.community-tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 0.3rem 0.8rem;
  border-radius: 14px;
  margin-bottom: 1.2rem;
}

.community-name {
  font-family: var(--font);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--heading);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.3rem;
}

.community-tagline {
  font-family: var(--font);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-dim);
  margin-bottom: 1.2rem;
}

.community-desc {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 1.8rem;
}

.community-stats {
  display: flex;
  gap: 2.5rem;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.stat-number {
  font-family: var(--font);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--heading);
}

.stat-label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.community-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.community-gallery .gallery-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--border);
}

.community-gallery .gallery-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.community-gallery .gallery-img:hover img {
  transform: scale(1.04);
}

/* ── Work Experience ─────────────────────────────────────── */
.work-entry {
  margin-bottom: 0;
}

.work-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.work-title-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.work-logo {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 700;
  overflow: hidden;
}

.work-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.work-header h3 {
  font-size: 1.3rem;
  margin-bottom: 0.2rem;
}

.work-company {
  font-size: 0.95rem;
  color: var(--text-dim);
}

.work-company a {
  color: var(--accent);
}

.work-date {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  white-space: nowrap;
}

.work-list {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.work-list li {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.75;
  padding: 0.4rem 0;
  padding-left: 1.2rem;
  position: relative;
}

.work-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.work-tags span {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  padding: 0.25rem 0.65rem;
  background: var(--accent-bg);
  border-radius: 14px;
  color: var(--accent);
}

@media (max-width: 768px) {
  .work-header {
    flex-direction: column;
  }
}

/* ── Footer ──────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2.5rem;
  text-align: center;
}

footer p {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ── CTA link ────────────────────────────────────────────── */
.cta-row {
  margin-top: 2.5rem;
  text-align: center;
}

.cta-link {
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  padding: 0.7rem 2rem;
  border-radius: 28px;
  transition: all 0.25s var(--ease);
  display: inline-block;
}

.cta-link:hover {
  background: var(--accent);
  color: var(--surface);
  box-shadow: 0 6px 20px rgba(184, 134, 11, 0.18);
}

/* ── Animations ──────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger > .fade-in:nth-child(1) { transition-delay: 0.0s; }
.stagger > .fade-in:nth-child(2) { transition-delay: 0.1s; }
.stagger > .fade-in:nth-child(3) { transition-delay: 0.12s; }
.stagger > .fade-in:nth-child(4) { transition-delay: 0.18s; }
.stagger > .fade-in:nth-child(5) { transition-delay: 0.24s; }
.stagger > .fade-in:nth-child(6) { transition-delay: 0.3s; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  nav .nav-links {
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: rgba(250, 250, 248, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s var(--ease);
  }

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

  nav, main, footer { padding-left: 1.5rem; padding-right: 1.5rem; }
  main { padding-top: 80px; }

  .hero { padding: 3rem 0 1rem; min-height: auto; }
  .hero h1 { font-size: clamp(2.4rem, 10vw, 3.5rem); }
  .hero-meta { gap: 2rem; }

  .exp-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }

  .marquee-wrap { margin: 3rem -1.5rem; }

  .achievement-item { gap: 1rem; }
  .community-split,
  .community-split.reverse { grid-template-columns: 1fr; direction: ltr; gap: 2rem; }
}
