:root {
  --bg: #0a0f14;
  --bg-elevated: #121922;
  --bg-panel: #161f2b;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-soft: rgba(255, 255, 255, 0.03);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #edf2f8;
  --muted: #aeb8c6;
  --heading: #ffffff;
  --accent: #cda15c;
  --accent-strong: #e1bb81;
  --accent-soft: rgba(205, 161, 92, 0.14);
  --shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
  --shadow-soft: 0 16px 36px rgba(0, 0, 0, 0.2);
  --radius: 24px;
  --radius-sm: 16px;
  --max-width: 1180px;
  --content-width: 780px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  line-height: 1.72;
  background:
    radial-gradient(circle at top left, rgba(205, 161, 92, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.04), transparent 22%),
    linear-gradient(180deg, #090d12 0%, #111821 45%, #0d131b 100%);
}

a {
  color: inherit;
  text-decoration: none;
}
img { display: block; max-width: 100%; }
p, ul { margin-top: 0; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.12rem 0.35rem;
  border-radius: 8px;
}

main { padding-bottom: 5rem; }
.section-shell,
.site-header__inner,
.site-footer__inner {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}
.narrow-shell { width: min(calc(100% - 2rem), var(--content-width)); }
.narrow-shell-wide { width: min(calc(100% - 2rem), 960px); margin: 0 auto; }
.section-block { padding-top: 2.5rem; }
.section-block--spacious { padding-top: 4rem; }
.stack-gap, .stack-gap-lg { display: grid; }
.stack-gap { gap: 1rem; }
.stack-gap-lg { gap: 1.75rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(8, 12, 17, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 88px;
}
.brand-mark {
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
}
.brand-mark strong {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.brand-mark span {
  color: var(--muted);
  font-size: 0.92rem;
}
.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}
.site-nav a {
  padding: 0.72rem 0.95rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  border: 1px solid transparent;
}
.site-nav a:hover,
.site-nav a.is-active {
  color: var(--heading);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}
.site-nav__cta {
  margin-left: 0.4rem;
}

.hero,
.split-layout,
.split-header,
.contact-panel {
  display: grid;
  gap: 1.5rem;
}
.hero {
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.9fr);
  align-items: start;
  padding: 4.5rem 0 1.25rem;
}
.hero__content,
.page-hero {
  padding-top: 0.5rem;
}
.hero h1,
.page-hero h1 {
  margin: 0.45rem 0 1rem;
  color: var(--heading);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-size: clamp(2.75rem, 5.2vw, 5rem);
  max-width: 12ch;
}
.page-hero {
  padding: 4rem 0 0.5rem;
}
.page-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  max-width: 14ch;
}
.page-hero__lede,
.hero__lede,
.section-heading p,
.card p,
.timeline-item p,
.timeline-item li,
.article-card__summary,
.project-card__summary {
  color: var(--muted);
}
.hero__lede,
.page-hero__lede {
  font-size: 1.1rem;
  max-width: 62ch;
}
.page-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 1.25rem;
  align-items: start;
}
.page-hero__aside {
  display: grid;
  gap: 0.75rem;
  padding: 1.3rem 1.4rem;
}
.page-hero__aside p {
  margin: 0;
}
.page-hero--articles {
  padding-bottom: 1.25rem;
}
.page-hero--articles h1 {
  max-width: 18ch;
}
.page-hero--articles .page-hero__lede {
  max-width: 58ch;
  margin: 0;
}
.eyebrow {
  margin: 0;
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 700;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 2rem 0 1.75rem;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 650;
  font-size: 0.96rem;
}
.button--primary {
  background: linear-gradient(180deg, var(--accent-strong), var(--accent));
  color: #11161d;
  box-shadow: 0 14px 28px rgba(205, 161, 92, 0.22);
}
.button--secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--heading);
}
.button--compact { min-height: 44px; }
.button--block { width: 100%; }
.text-link {
  color: var(--accent-strong);
  font-weight: 650;
}

.card,
.timeline-item,
.filter-chip {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow-soft);
}
.card,
.timeline-item {
  border-radius: var(--radius);
  padding: 1.5rem;
}
.card--soft {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.025));
}
.card--highlight {
  background: linear-gradient(180deg, rgba(205, 161, 92, 0.18), rgba(255, 255, 255, 0.04));
  border-color: rgba(205, 161, 92, 0.2);
  box-shadow: var(--shadow);
}
.card h2,
.card h3,
.card h4,
.timeline-item h3,
.timeline-item h4 {
  margin: 0;
  color: var(--heading);
  line-height: 1.25;
}

.hero__brief {
  margin-top: 0.25rem;
}
.hero__brief h2 {
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  margin: 0.35rem 0 0;
}
.hero__aside {
  display: grid;
  gap: 1rem;
}
.hero__signal h3 {
  font-size: 1.12rem;
}
.hero-headshot-frame {
  margin: 0;
  display: grid;
  gap: 0.85rem;
}
.hero-headshot {
  display: block;
  width: 100%;
  min-height: 290px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: calc(var(--radius) - 6px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 12, 18, 0.28);
}
.hero-headshot.is-placeholder {
  object-fit: contain;
  padding: 1.25rem;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.2);
}
.hero-headshot__caption {
  margin: 0;
  color: rgba(237, 242, 248, 0.74);
  font-size: 0.9rem;
  line-height: 1.6;
}
.hero__profile-links,
.contact-links,
.compact-links {
  display: grid;
  gap: 0.8rem;
}
.hero__profile-links a,
.contact-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}
.hero__profile-links a:hover,
.contact-links a:hover {
  border-color: rgba(205, 161, 92, 0.35);
  background: rgba(255, 255, 255, 0.045);
}

.section-heading {
  display: grid;
  gap: 0.9rem;
  max-width: 800px;
  margin-bottom: 1.75rem;
}
.section-heading h2 {
  margin: 0;
  font-size: clamp(1.75rem, 2.4vw, 2.5rem);
  line-height: 1.16;
  letter-spacing: -0.03em;
}
.section-heading--with-rule {
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  align-items: end;
  gap: 1.5rem;
}
.section-heading--articles {
  max-width: none;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 1.5rem 2rem;
}
.section-heading--articles > :first-child {
  max-width: 72ch;
}
.section-heading--articles h2 {
  max-width: 22ch;
}
.left-aligned { margin-left: 0; }
.split-header--aligned {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}
.feature-grid,
.card-grid,
.stat-list {
  display: grid;
  gap: 1rem;
}
.feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.stat-list--hero { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-list li,
.mini-metric {
  padding: 1.15rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}
.stat-list strong,
.mini-metric strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--heading);
  font-size: 1.05rem;
  line-height: 1.3;
}
.stat-list span,
.mini-metric span {
  color: var(--muted);
  font-size: 0.92rem;
}

.timeline-preview,
.timeline {
  display: grid;
  gap: 1rem;
}
.timeline {
  position: relative;
  padding-left: 1.5rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0.45rem;
  top: 0.75rem;
  bottom: 0.75rem;
  width: 2px;
  background: linear-gradient(180deg, rgba(205, 161, 92, 0.9), rgba(205, 161, 92, 0.12));
}
.timeline-item {
  position: relative;
  margin-left: 1rem;
  padding: 1.6rem 1.6rem 1.45rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.72rem;
  top: 1.7rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-strong);
  box-shadow: 0 0 0 6px rgba(205, 161, 92, 0.12);
}
.timeline-item__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}
.timeline-item__meta,
.article-card__meta,
.project-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.75rem;
  font-size: 0.9rem;
}
.meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
}
.detail-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
}
.detail-list li + li { margin-top: 0.65rem; }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
}
.section-heading--articles .filter-bar {
  max-width: 420px;
  justify-self: end;
}
.filter-chip {
  border-radius: 999px;
  padding: 0.76rem 1rem;
  color: var(--muted);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
}
.filter-chip.is-active {
  background: linear-gradient(180deg, var(--accent-strong), var(--accent));
  color: #10151b;
  border-color: transparent;
}
.article-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.3rem;
}
.section-heading--with-rule,
.split-header--aligned {
  align-items: end;
}
.filter-bar {
  align-self: end;
}
.featured-articles-grid {
  gap: 1.25rem;
}
.article-search {
  display: grid;
  gap: 0.6rem;
}
.article-search__label {
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
}
.article-search input {
  width: 100%;
  min-height: 52px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 0 1rem;
  font: inherit;
}
.article-search input::placeholder {
  color: var(--muted);
}
.article-controls__summary {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}
.featured-articles-grid,
.related-articles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.featured-article-card {
  overflow: hidden;
  padding: 0;
}
.featured-article-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}
.featured-article-card__body {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
}
.featured-article-card__topline {
  display: grid;
  gap: 0.75rem;
}
.featured-article-card h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.2;
}
.featured-article-card__excerpt {
  margin: 0;
  color: var(--muted);
}
.article-card--library,
.article-card--related {
  align-content: start;
}
.article-card__header-block {
  display: grid;
  gap: 0.4rem;
}
.article-card__meta--hero {
  margin-top: 1rem;
}
.article-card__tags--hero {
  margin-top: 1rem;
}
.article-hero-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
}
.article-card,
.project-card,
.focus-card {
  display: grid;
  gap: 0.95rem;
}
.article-card {
  align-content: start;
}
.article-card h3,
.project-card h3,
.focus-card h3 {
  font-size: 1.22rem;
}
.article-card__summary,
.project-card__summary { margin: 0; }
.article-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: auto;
}
.article-card__link--secondary {
  color: var(--muted);
}
.article-reader-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.38fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.article-reader-meta {
  position: sticky;
  top: 108px;
  display: grid;
  gap: 1rem;
}
.article-reader-meta__row {
  display: grid;
  gap: 0.3rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.article-reader-meta__label {
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
}
.article-reader-meta__value,
.article-reader-meta__empty {
  color: var(--muted);
}
.article-reader-meta__actions {
  display: grid;
  gap: 0.7rem;
}
.article-reader-main {
  display: grid;
  gap: 1.5rem;
}
.article-reader-body {
  padding: 2rem;
}
.related-articles-panel__heading {
  margin-bottom: 1.25rem;
}
.article-reader-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.5rem;
}
.article-content {
  color: var(--muted);
}
.article-content > :last-child {
  margin-bottom: 0;
}
.article-content h2,
.article-content h3 {
  color: var(--heading);
  line-height: 1.18;
  letter-spacing: -0.02em;
}
.article-content h2 {
  margin: 2.25rem 0 0.9rem;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
}
.article-content h3 {
  margin: 1.75rem 0 0.8rem;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
}
.article-content p,
.article-content li {
  color: var(--muted);
  font-size: 1.03rem;
}
.article-content ul {
  padding-left: 1.2rem;
}
.article-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-radius: 0 16px 16px 0;
}
.article-card__tags,
.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tag {
  display: inline-flex;
  padding: 0.38rem 0.68rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #f2d29e;
  font-size: 0.8rem;
  font-weight: 600;
}
.article-card__link,
.project-card__link {
  color: var(--accent-strong);
  font-weight: 700;
}
.callout-panel h3,
.contact-panel h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 4rem;
  background: rgba(7, 10, 15, 0.84);
}
.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: 1.5rem;
  padding: 2.5rem 0 3rem;
}
.site-footer strong {
  display: block;
  margin-bottom: 0.35rem;
}
.site-footer p { color: var(--muted); }
.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
  color: var(--muted);
}
.site-footer__nav a:hover { color: var(--heading); }

.empty-state {
  padding: 1.15rem;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  color: var(--muted);
}

@media (max-width: 1080px) {
  .hero,
  .feature-grid,
  .card-grid--three,
  .section-heading--with-rule,
  .featured-articles-grid,
  .related-articles-grid,
  .page-hero__layout {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .page-hero h1 {
    max-width: none;
  }

  .split-header--aligned {
    grid-template-columns: 1fr;
  }

  .section-heading--articles .filter-bar,
  .filter-bar {
    justify-content: flex-start;
    justify-self: stretch;
    max-width: none;
  }
}

@media (max-width: 900px) {
  .split-layout,
  .site-footer__inner,
  .card-grid--two,
  .stat-list--hero,
  .contact-panel,
  .article-reader-layout,
  .article-controls {
    grid-template-columns: 1fr;
  }

  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 0;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .site-nav__cta {
    margin-left: 0;
  }

  .site-footer__nav {
    justify-content: flex-start;
  }

  .article-reader-meta {
    position: static;
  }
}

@media (max-width: 640px) {
  body { font-size: 0.98rem; }
  .hero { padding-top: 3rem; }
  .page-hero { padding-top: 3rem; }
  .card,
  .timeline-item { padding: 1.25rem; }
  .timeline { padding-left: 1.1rem; }
  .timeline-item { margin-left: 0.75rem; }
  .timeline-item::before {
    left: -1.43rem;
    top: 1.35rem;
  }
  .button,
  .site-nav a { width: 100%; }
  .hero__actions { grid-template-columns: 1fr; display: grid; }
}
