/* ===========================
   RESET & BASE
=========================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #000;
  --text: #fff;
  --muted: #6b7280;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
}

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

a:hover {
  text-decoration: underline;
}

/* ===========================
   MOBILE HEADER
=========================== */
.mobile-header {
  display: none;
  padding: 16px 28px 12px;
  margin-bottom: 24px;
}

.mobile-nav {
  display: flex;
  gap: 20px;
  font-size: 16px;
  margin-bottom: 8px;
}

.mobile-social {
  font-size: 14px;
  color: var(--muted);
  display: flex;
  gap: 6px;
  align-items: center;
}

.mobile-social a {
  color: var(--muted);
}

.mobile-social a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* ===========================
   RIGHT SIDEBAR
=========================== */
.sidebar {
  position: fixed;
  top: 8px;
  right: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 24px;
  z-index: 100;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.sidebar-nav a {
  font-size: 17px;
  line-height: 1.6;
}

.sidebar-nav a:hover {
  text-decoration: underline;
}

.sidebar-social {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.sidebar-social a {
  font-size: 14px;
  color: var(--muted);
}

.sidebar-social a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* ===========================
   MAIN CONTENT
=========================== */
.main {
  max-width: 1024px;
  padding: 40px 28px 100px;
  margin: 0;
  margin-left: 7.5%;
}

/* ===========================
   NAME
=========================== */
.name {
  font-family: var(--font-serif);
  font-weight: bold;
  font-style: italic;
  font-size: clamp(72px, 11vw, 120px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  color: var(--text);
}

/* ===========================
   BIO
=========================== */
.bio {
  font-size: 20px;
  line-height: 1.75;
  color: var(--text);
  max-width: 900px;
  margin-bottom: 72px;
}

/* ===========================
   ENTRIES (projects, articles)
=========================== */
.entry {
  margin-bottom: 56px;
}

.entry-date {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 4px;
}

.entry-title {
  font-size: 20px;
  font-weight: 500;
  font-family: var(--font-sans);
  line-height: 1.5;
  margin-bottom: 8px;
}

.entry-title a:hover {
  text-decoration: underline;
}

.entry-body {
  font-size: 18px;
  line-height: 1.75;
  max-width: 600px;
  margin-bottom: 16px;
}

.entry-body a {
  font-weight: 500;
}

.entry-body a:hover {
  text-decoration: underline;
}

.entry-body span {
  color: var(--muted);
}

.entry-desc {
  font-size: 16px;
  color: var(--text);
  line-height: 1.75;
  max-width: 680px;
  margin-bottom: 16px;
}

/* ===========================
   ENTRY IMAGES
=========================== */
.entry-images {
  margin-top: 16px;
}

.entry-images.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.img-placeholder {
  background: #111;
  border: 1px solid #222;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16/10;
  width: 100%;
}

.img-placeholder.full {
  aspect-ratio: 16/9;
}

.img-placeholder.photo-ph {
  aspect-ratio: 1;
}

.img-placeholder span {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.img-placeholder img,
.entry-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===========================
   SECTION HEADING
=========================== */
.section-heading {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}

/* ===========================
   CTA LINK
=========================== */
#latest-article {
  margin-bottom: 72px;
}

#latest-article .entry {
  margin-bottom: 12px;
}

.cta-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--text);
  padding-bottom: 2px;
  margin-top: 4px;
}

.cta-link:hover {
  text-decoration: none;
  color: var(--muted);
  border-bottom-color: var(--muted);
}

/* ===========================
   ARTICLE LAYOUT (image left, text right)
=========================== */
.article-entry {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.article-image {
  flex: 0 0 140px;
  width: 140px;
}

.article-image .img-placeholder {
  aspect-ratio: 1;
}

.article-text {
  flex: 1;
}

/* ===========================
   PROJECT PAGE
=========================== */
.back-link {
  display: inline-block;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 48px;
}

.back-link:hover {
  color: var(--text);
  text-decoration: none;
}

.project-title {
  font-family: var(--font-sans);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.project-meta {
  font-size: 14px;
  color: var(--muted);
  margin-top: 24px;
  margin-bottom: 64px;
  line-height: 1.8;
}

.project-section {
  margin-bottom: 56px;
}

.section-label {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.scope-list {
  list-style: none;
  padding: 0;
}

.scope-list li {
  font-size: 15px;
  color: var(--text);
  line-height: 1.75;
  padding-left: 16px;
  position: relative;
}

.scope-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--muted);
}

.project-feature {
  margin-bottom: 40px;
}

.feature-title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin-top: 10px;
}

.feature-list li {
  font-size: 15px;
  color: var(--text);
  line-height: 1.75;
  padding-left: 16px;
  position: relative;
}

.feature-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--muted);
}

.scenario-sub {
  margin-bottom: 28px;
}

.scenario-sub-title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.impact-list {
  list-style: none;
  padding: 0;
}

.impact-list li {
  font-size: 15px;
  color: var(--text);
  line-height: 1.75;
  padding-left: 16px;
  position: relative;
}

.impact-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--muted);
}

.project-quote {
  border-left: 2px solid #333;
  padding-left: 20px;
  margin: 24px 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  font-style: italic;
}

.project-quote cite {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.workflow-steps {
  font-size: 15px;
  color: var(--muted);
  margin: 12px 0 4px;
  line-height: 1.75;
}

/* ===========================
   ORANGE IMAGE WRAPPER
=========================== */
.img-wrap-orange {
  background: #F97316;
  width: 100%;
  overflow: hidden;
}

.img-wrap-orange img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.img-wrap-orange .img-placeholder {
  background: transparent;
  border: none;
}

.img-wrap {
  background: #E5E7EB;
  width: 100%;
  overflow: hidden;
}

.img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.img-wrap .img-placeholder {
  background: transparent;
  border: none;
}

/* ===========================
   STAT BLOCK
=========================== */
.project-stats {
  display: flex;
  gap: 48px;
  margin: 40px 0 8px;
  flex-wrap: wrap;
}

.project-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1;
  color: var(--text);
}

.stat-label {
  font-size: 13px;
  color: var(--muted);
  max-width: 160px;
  line-height: 1.5;
}

/* ===========================
   HMW CALLOUT
=========================== */
.project-hmw {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(18px, 2.5vw, 24px);
  line-height: 1.5;
  color: var(--text);
  border-left: 2px solid #333;
  padding: 4px 0 4px 24px;
  margin: 48px 0 56px;
  max-width: 600px;
}

/* ===========================
   RESEARCH INSIGHTS GRID
=========================== */
.research-insights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 32px 0;
}

.insight-item {
  border-top: 1px solid #222;
  padding-top: 16px;
}

.insight-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 768px) {
  .sidebar {
    display: none;
  }

  .mobile-header {
    display: block;
  }

  .main {
    margin-left: 0;
    padding: 0 28px 80px;
  }

  .name {
    font-size: clamp(64px, 18vw, 96px);
    margin-bottom: 24px;
  }

  .entry-images.two-col {
    grid-template-columns: 1fr;
  }

  .article-entry {
    flex-direction: column;
  }

  .article-image {
    width: 100%;
    flex: none;
  }

  .project-stats {
    gap: 32px;
  }

  .research-insights {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-hmw {
    margin: 36px 0 44px;
  }
}