/* Layout: Editorial single-page — stacked sections, centered wrapper, theme-grouped writing cards */
:root {
  --bg: #FAFAF8;
  --fg: #2A2D34;
  --fg-muted: #5A5D66;
  --accent: #0C6E6D;
  --accent-light: #E6F4F4;
  --warm: #B86B1D;
  --warm-light: #FFF3E6;
  --surface: #EEEDEA;
  --border: #DDDBD6;
  --display: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --body: 'Outfit', system-ui, -apple-system, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #191C22;
    --fg: #E6E4DF;
    --fg-muted: #ADABA5;
    --accent: #3ABFBE;
    --accent-light: #1A2E2E;
    --warm: #DDA15E;
    --warm-light: #2E2518;
    --surface: #23262D;
    --border: #33363E;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #191C22;
  --fg: #E6E4DF;
  --fg-muted: #97958F;
  --accent: #3ABFBE;
  --accent-light: #1A2E2E;
  --warm: #DDA15E;
  --warm-light: #2E2518;
  --surface: #23262D;
  --border: #33363E;
  color-scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.65;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 100;
  background: var(--bg);
}

.wrapper {
  max-width: 960px;
  margin: 0 auto;
}

/* NAV */
nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding-block: 14px;
}
nav .wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-name {
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--fg);
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

/* HERO */
.hero {
  padding-block: 80px 16px;
}
.hero-split {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}
.hero-intro {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  line-height: 1.1;
  font-weight: 400;
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero-body {
  font-size: 1.125rem;
  color: var(--fg-muted);
  line-height: 1.7;
}
.hero-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 12px;
}
.hero-card {
  background: var(--surface);
  border-radius: 10px;
  padding: 11px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--fg);
  transition: transform 0.15s, box-shadow 0.15s;
}
.hero-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.hero-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero-card-icon.teal { background: var(--accent-light); color: var(--accent); }
.hero-card-icon.amber { background: var(--warm-light); color: var(--warm); }
.hero-card-title {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
}
.hero-card-label {
  font-size: 0.78rem;
  color: var(--fg-muted);
  line-height: 1.3;
}
@media (max-width: 700px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding-top: 0;
  }
}

/* PULL QUOTE */
.pullquote {
  margin-block: 48px;
  padding: 32px 0 32px 28px;
  border-left: 3px solid var(--warm);
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  line-height: 1.5;
  color: var(--fg);
  max-width: 100%;
}

/* SECTION */
section {
  padding-block: 64px;
}
section + section {
  border-top: 1px solid var(--border);
}
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 20px;
}

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 32px;
}
.about-col-title {
  font-family: var(--display);
  font-size: 1.25rem;
  margin-bottom: 16px;
}
.about-text {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.7;
}
.about-text + .about-text { margin-top: 14px; }
.about-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.about-throughline {
  margin-top: 32px;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--fg);
  text-align: center;
}
.principles {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.principle {
  padding: 20px 24px;
  background: var(--surface);
  border-radius: 8px;
}
.principle-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.principle-desc {
  font-size: 0.875rem;
  color: var(--fg-muted);
}

/* THEME TAGS */
.themes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.theme-pill {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 100px;
  background: var(--accent-light);
  color: var(--accent);
  letter-spacing: 0.01em;
}

/* FILTERS */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.filter-btn {
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ARTICLE CARDS */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.articles-more[hidden],
.article-card[hidden] {
  display: none !important;
}
.articles-more:not([hidden]) {
  margin-top: 20px;
  animation: fadeInGrid 0.4s ease;
}
@keyframes fadeInGrid {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
#show-all-btn {
  border: 1.5px solid var(--accent);
  color: var(--accent);
  background: transparent;
  padding: 12px 32px;
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
#show-all-btn:hover {
  background: var(--accent);
  color: #fff;
}
.article-card {
  background: var(--surface);
  border-radius: 10px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: default;
}
.article-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.card-theme {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.card-theme.warm { color: var(--warm); }
.card-title {
  font-family: var(--display);
  font-size: 1.25rem;
  line-height: 1.3;
}
.card-insight {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.6;
  flex: 1;
}
.card-insight em {
  color: var(--fg);
  font-style: normal;
  font-weight: 500;
}
.card-link {
  font-family: var(--body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  margin-top: auto;
}
.card-link:hover {
  text-decoration: underline;
}

/* PROJECTS */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.project-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s;
}
.project-card:hover {
  border-color: var(--accent);
}
.project-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.project-icon.teal { background: var(--accent-light); }
.project-icon.amber { background: var(--warm-light); }
.project-name {
  font-weight: 600;
  font-size: 1.05rem;
}
.project-desc {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.6;
  flex: 1;
}
.project-link {
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.2s;
}
.project-link:hover { opacity: 0.7; }
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.project-tag {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--surface);
  color: var(--fg-muted);
}

/* NEWSLETTER CTA */
.newsletter-section {
  background: var(--surface);
  border-radius: 12px;
  padding: 48px;
  text-align: center;
  margin-block: 16px;
}
.newsletter-section .section-title {
  margin-bottom: 12px;
}
.newsletter-desc {
  color: var(--fg-muted);
  max-width: 500px;
  margin: 0 auto 28px;
}
.cta-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  display: inline-block;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg);
}

/* FOOTER */
footer {
  padding-block: 40px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-left {
  font-size: 0.85rem;
  color: var(--fg-muted);
}
.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }

/* JOURNEY */
.journey-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  margin-top: 32px;
}
.journey-col { min-width: 0; }
.journey-col-sticky {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 60px);
  align-self: start;
}
.leadership-section {
  margin-top: 32px;
}
.leadership-card {
  background: var(--surface);
  border-radius: 10px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.leadership-card + .leadership-card {
  margin-top: 10px;
}
.leadership-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--accent-light);
  color: var(--accent);
}
.leadership-title {
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.3;
}
.leadership-meta {
  font-size: 0.75rem;
  color: var(--fg-muted);
  margin-top: 1px;
}
.credentials {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.credential-card {
  background: var(--surface);
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.credential-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.credential-icon.amber { background: var(--warm-light); color: var(--warm); }
.credential-title {
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.4;
}
.credential-meta {
  font-size: 0.78rem;
  color: var(--fg-muted);
  margin-top: 2px;
}
.credential-link {
  text-decoration: none;
  color: var(--fg);
  transition: transform 0.15s, box-shadow 0.15s;
}
.credential-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* TIMELINE */
.timeline {
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}
.tl-item {
  position: relative;
  padding-bottom: 40px;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute;
  left: -32px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--accent);
  z-index: 2;
}
.tl-item.current .tl-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-light);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--accent-light); }
  50% { box-shadow: 0 0 0 8px var(--accent-light); }
}
.tl-date {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 4px;
}
.tl-title {
  font-family: var(--display);
  font-size: 1.2rem;
  line-height: 1.3;
  margin-bottom: 4px;
}
.tl-subtitle {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 6px;
}
.tl-desc {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 560px;
}
.tl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.tl-tag {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--accent-light);
  color: var(--accent);
}
.tl-tag.warm {
  background: var(--warm-light);
  color: var(--warm);
}

/* RESPONSIVE */
@media (max-width: 700px) {
  .hero { padding-block: 48px 40px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .journey-grid { grid-template-columns: 1fr; gap: 32px; }
  .articles-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 16px; }
  .newsletter-section { padding: 32px 20px; }
  .pullquote { font-size: 1.15rem; padding-left: 20px; }
}

@media (max-width: 480px) {
  .nav-links .hide-mobile { display: none; }
  .hero h1 { font-size: 2.25rem; }
}

/* SCROLL SMOOTH */
html { scroll-behavior: smooth; }
