/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --bg:           #F5F0E8;
  --surface:      #EDE8DE;
  --surface-alt:  #E8E2D6;
  --text:         #2C2820;
  --text-mid:     #5A5248;
  --text-muted:   #8A8178;
  --accent:       #C4633A;
  --accent-dark:  #A8522E;
  --accent-warm: #8b4a2b;
  --sage:         #7A8C78;
  --border:       #D4CEC4;
  --border-light: #E2DDD6;
  --loader-bg: #C4633A;

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'DM Sans', system-ui, -apple-system, sans-serif;

  --tab-h: 62px;
  --radius: 2px;

  --shadow-soft:  0 2px 16px rgba(44, 40, 32, 0.07);
  --shadow-card:  0 4px 24px rgba(44, 40, 32, 0.09);
  --shadow-lift:  0 8px 36px rgba(44, 40, 32, 0.14);

  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  height: 100%;
  overflow: hidden;
  -webkit-text-size-adjust: 100%;
  background-color: var(--loader-bg);
}

body {
  height: 100%;
  overflow: hidden;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  background-color: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Paper grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9000;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.03;
}

img { display: block; max-width: 100%; }
button { font-family: inherit; }
a { text-decoration: none; }

/* ============================================================
   LOADER
   ============================================================ */
#loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--loader-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s ease;
}

#loader.loader--exit {
  opacity: 0;
  pointer-events: none;
}

#loader.loader--gone {
  display: none;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

@keyframes loaderNameIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes loaderRuleIn {
  from { width: 0; opacity: 0; }
  to   { width: 48px; opacity: 1; }
}

@keyframes loaderCredIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.loader-name {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 100;
  font-size: clamp(3.8rem, 11vw, 8.5rem);
  color: #f7f3ec;
  letter-spacing: -0.03em;
  line-height: 1.0;
  text-align: center;
  animation: loaderNameIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.loader-rule {
  height: 1px;
  background: rgba(247, 243, 236, 0.28);
  animation: loaderRuleIn 0.5s ease 0.3s both;
  align-self: center;
  width: 48px;
}

.loader-credential {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(247, 243, 236, 0.45);
  text-align: center;
  animation: loaderCredIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

/* ============================================================
   SITE WRAPPER
   ============================================================ */
.site-wrapper {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

/* ============================================================
   TAB BAR
   ============================================================ */
.tab-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--tab-h);
  padding: 0 52px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  position: relative;
  z-index: 500;
}

.site-name {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  color: var(--text);
  transition: opacity 0.15s ease;
}
.site-name:hover { opacity: 0.7; }

.tab-nav {
  display: flex;
  align-items: center;
  position: relative;
}

.tab-btn {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.115em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: none;
  border: none;
  padding: 0 22px;
  height: var(--tab-h);
  position: relative;
  transition: color 0.15s ease;
}
.tab-btn:hover    { color: var(--text); }
.tab-btn.active   { color: var(--text); }

/* Sliding terracotta indicator */
.tab-indicator {
  position: absolute;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px 1px 0 0;
  transition: left 0.32s var(--ease-in-out), width 0.32s var(--ease-in-out);
  pointer-events: none;
}

/* ============================================================
   TAB CONTENT AREA
   ============================================================ */
.tab-content {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.tab-panel {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.26s var(--ease-out), transform 0.26s var(--ease-out);
  pointer-events: none;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.tab-panel::-webkit-scrollbar       { width: 4px; }
.tab-panel::-webkit-scrollbar-track { background: transparent; }
.tab-panel::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.tab-panel.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

/* ============================================================
   ABOUT TAB
   ============================================================ */
#about {
  overflow: hidden; /* no scroll on about — must fit */
}

.about-layout {
  display: grid;
  grid-template-columns: 40% 60%;
  height: 100%;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
}

/* ── Left column ── */
.about-left {
  padding: 44px 36px 44px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--border);
  min-height: 0;
  overflow: hidden;
}

.portrait-frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  align-self: center;
  overflow: hidden;
  border-radius: var(--radius);
  position: relative;
  border: 1.5px solid rgba(139, 74, 43, 0.38);
  flex-shrink: 0;
}

.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  filter: saturate(0.88) brightness(0.99);
  filter: sepia(8%) contrast(0.97);
  transition: filter 0.4s ease;
}

@media (hover: hover) {
  .portrait-img:hover {
    filter: sepia(0%) contrast(1);
  }
}

/* Latest investigation card — sidecar under publication list */
.latest-investigation {
  display: block;
  margin-top: 22px;
  padding: 20px 22px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.25s var(--ease-out), transform 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}
.latest-investigation:hover {
  background: rgba(166, 74, 48, 0.05);
  border-color: rgba(166, 74, 48, 0.35);
  transform: translateY(-1px);
}
.latest-investigation:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.li-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.li-kicker-text {
  font-size: 0.54rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.li-kicker-text::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 1px;
  background: var(--accent);
}
.li-tag {
  font-size: 0.54rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(139, 74, 43, 0.92);
  color: var(--bg);
  padding: 2px 7px;
  border-radius: 1px;
}
.li-pub {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.li-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.1rem;
  line-height: 1.32;
  letter-spacing: -0.005em;
  color: var(--text);
  margin-bottom: 12px;
}
.li-cta {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  display: inline-block;
}

.publication-logos {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.pub-label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.5;
  width: 100%;
  margin-bottom: 2px;
}

.pub-logo {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.75;
}

/* ── Right column ── */
.about-right {
  padding: 44px 52px 44px 52px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-text {
  max-width: 500px;
}

/* Stagger elements: initial hidden state */
.hero-ornament,
.hero-name,
.hero-role,
.hero-rule,
.hero-bio,
.hero-availability,
.contact-cta,
.portrait-frame,
.publication-logos {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.52s var(--ease-out) var(--delay, 0ms),
    transform 0.52s var(--ease-out) var(--delay, 0ms);
}

/* Revealed state */
.about-revealed .hero-ornament,
.about-revealed .hero-name,
.about-revealed .hero-role,
.about-revealed .hero-rule,
.about-revealed .hero-bio,
.about-revealed .hero-availability,
.about-revealed .contact-cta,
.about-revealed .portrait-frame,
.about-revealed .publication-logos {
  opacity: 1;
  transform: translateY(0);
}

.hero-ornament {
  font-family: var(--serif);
  color: var(--accent);
  font-size: 1.1rem;
  letter-spacing: 0.35em;
  display: block;
  margin-bottom: 14px;
}

.hero-name {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 5.5vw, 5.8rem);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 14px;
}

.hero-role {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 24px;
}

.hero-rule {
  width: 44px;
  height: 1.5px;
  background: var(--accent);
  border-radius: 1px;
  margin-bottom: 24px;
  transform-origin: left center;
}

.hero-bio {
  font-size: 0.9rem;
  line-height: 1.82;
  color: var(--text);
  opacity: 0.82;
  max-width: 460px;
}
.hero-bio + .hero-bio { margin-top: 14px; }

/* Hero bio uses 0.82 rather than 1 — same specificity as the group rule above,
   but declared after it, so this wins. Transition animates from 0 → 0.82. */
.about-revealed .hero-bio {
  opacity: 0.82;
}

/* Award chips */
.award-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.award-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1.5px solid rgba(139, 74, 43, 0.45);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-warm);
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

.award-chip-icon {
  font-size: 0.72rem;
  opacity: 0.85;
  flex-shrink: 0;
}

.award-chip-detail {
  opacity: 0.6;
  font-weight: 400;
  font-size: 0.58rem;
  letter-spacing: 0.05em;
}

.award-chip:hover {
  transform: translateY(-1px);
  background: rgba(139, 74, 43, 0.06);
}

.award-chip:focus-visible {
  outline: 2px solid var(--accent-warm);
  outline-offset: 2px;
}

.hero-availability {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  margin-bottom: 22px;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--text-mid);
}

.availability-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--avail-dot, #4caf50);
  box-shadow: 0 0 0 0 var(--avail-dot, #4caf50);
  flex-shrink: 0;
  animation: availPulse var(--avail-pulse-dur, 2.5s) ease-in-out infinite;
}
@keyframes availPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.45); }
  50%      { box-shadow: 0 0 0 5px rgba(76, 175, 80, 0); }
}

.contact-cta {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius);
  transition: background 0.15s ease, transform 0.15s ease;
}
.contact-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}
.contact-cta:active { transform: translateY(0); }

/* ============================================================
   WORK TAB
   ============================================================ */
.work-layout {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 36px 52px 52px;
}

.work-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  gap: 20px;
}

.section-heading {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}

.filter-bar {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.filter-btn {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: none;
  border: 1px solid var(--border);
  padding: 7px 15px;
  border-radius: var(--radius);
  transition: color 0.13s ease, border-color 0.13s ease, background 0.13s ease;
}
.filter-btn:hover {
  color: var(--text);
  border-color: var(--text-muted);
}
.filter-btn.active {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}

/* Article grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-content: start;
  align-items: start;
}

/* Article card */
.article-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--text);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.article-card:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}
.article-card:hover .card-publication {
  color: var(--accent);
}

.card-img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: saturate(0.82) brightness(0.98);
  transition: filter 0.22s ease;
  flex-shrink: 0;
}
.article-card:hover .card-img {
  filter: saturate(1) brightness(1);
}

.card-body {
  padding: 16px 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-publication {
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.card-type {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  flex-shrink: 0;
}
.card-type.investigation {
  background: rgba(196, 99, 58, 0.12);
  color: var(--accent);
}
.card-type.campaign {
  background: rgba(122, 140, 120, 0.15);
  color: var(--sage);
}
.card-type.feature,
.card-type.news {
  background: rgba(44, 40, 32, 0.06);
  color: var(--text-muted);
}

.card-title {
  font-family: var(--serif);
  font-size: 0.93rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text);
}

.card-excerpt {
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--text-mid);
}

.card-date {
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  opacity: 0.8;
  margin-top: auto;
  padding-top: 6px;
}

.article-card.hidden {
  display: none;
}

/* ============================================================
   CONTACT TAB
   ============================================================ */
#contact {
  overflow: hidden; /* centred — no scroll needed */
}

.contact-layout {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 52px;
}

.contact-inner {
  text-align: center;
  max-width: 480px;
}

.contact-avail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}
.avail-tag {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
}
.avail-sep {
  color: var(--border);
  font-size: 1.1rem;
  line-height: 1;
}

.contact-heading {
  font-family: var(--serif);
  font-size: clamp(3rem, 5vw, 5.2rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 18px;
}

.contact-body {
  font-size: 0.9rem;
  line-height: 1.82;
  color: var(--text-mid);
  margin-bottom: 32px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.contact-email {
  display: block;
  font-family: var(--serif);
  font-size: 1.18rem;
  color: var(--accent);
  letter-spacing: 0.015em;
  margin-bottom: 28px;
  transition: opacity 0.15s ease;
}
.contact-email:hover { opacity: 0.68; }

.contact-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-bottom: 48px;
}

.social-link {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  transition: color 0.15s ease;
}
.social-link:hover { color: var(--accent); }

.contact-signature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

.sig-name {
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
}

.sig-title {
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ============================================================
   MOBILE — graceful degradation
   ============================================================ */
@media (max-width: 800px) {
  html, body {
    height: auto;
    overflow: auto;
  }

  .site-wrapper {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  /* Sticky top bar — single compact row: brand left, tabs right */
  .tab-bar {
    flex-direction: row;
    align-items: center;
    height: 56px;
    padding: 0 16px;
    position: sticky;
    top: 0;
    z-index: 500;
    background: var(--bg);
  }

  .site-name {
    padding: 0;
    font-size: 0.98rem;
    flex-shrink: 0;
  }

  .tab-nav {
    width: auto;
    min-width: 0;              /* allow the nav to shrink so it can scroll */
    align-self: stretch;       /* fill full bar height so the indicator anchors to the bottom edge */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .tab-nav::-webkit-scrollbar { display: none; }

  .tab-btn {
    padding: 0 12px;
    height: 100%;              /* track the stretched nav so it reaches the bar's bottom edge */
    flex-shrink: 0;
    font-size: 0.66rem;
  }

  .tab-indicator {
    bottom: -1px;              /* overlap the 1px header hairline so they read as one line */
  }

  .tab-content {
    position: static;
    height: auto;
    overflow: visible;
  }

  .tab-panel {
    position: static;
    opacity: 0;
    pointer-events: none;
    transform: none;
    display: none;
    overflow: visible;
    transition: none;
  }
  .tab-panel.active {
    display: block;
    opacity: 1;
    pointer-events: all;
  }

  /* About — stack on mobile */
  #about { overflow: visible; }

  .about-layout {
    display: flex;
    flex-direction: column;
    height: auto;
    padding: 26px 20px 40px;
  }

  /* Flatten both columns and the hero-text so every element becomes a
     direct flex item of .about-layout. This lets the portrait slot in
     just under the top ornament (separator) and directly above the name —
     cleanly grouped — while the featured article + pubs trail at the end. */
  .about-left,
  .about-right,
  .hero-text { display: contents; }

  .hero-ornament     { display: none; }  /* drop the top ornament/separator on mobile */
  .portrait-frame {
    order: 2;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: none;
    flex: none;
    margin: 4px 0 18px;
  }
  .hero-name         { order: 3; font-size: clamp(2.8rem, 13vw, 4.5rem); }
  .hero-name br      { display: none; }  /* let "Molly Greeves" flow on mobile */
  .hero-role         { order: 4; }
  .award-chips       { order: 5; gap: 8px; margin-bottom: 22px; }
  .hero-rule         { order: 6; }
  .hero-bio          { order: 7; }
  .hero-availability { order: 8; }
  .contact-cta       { order: 9; align-self: flex-start; }
  .latest-investigation { order: 10; margin-top: 26px; padding: 18px 20px 16px; }
  .publication-logos    { order: 11; }

  .award-chip { padding: 6px 11px; gap: 6px; }
  .li-title { font-size: 1.05rem; }

  /* Show all about elements regardless of animation */
  .hero-ornament,
  .hero-name,
  .hero-role,
  .hero-rule,
  .hero-bio,
  .hero-availability,
  .contact-cta,
  .portrait-frame,
  .publication-logos {
    opacity: 1;
    transform: none;
    transition: none;
  }

  /* Work */
  .work-layout { padding: 24px 20px 40px; }
  .work-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .filter-bar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-btn { flex-shrink: 0; }
  .articles-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Contact */
  #contact { overflow: visible; }
  .contact-layout {
    height: auto;
    min-height: 80vh;
    padding: 44px 20px;
    align-items: center;
  }
  .contact-heading { font-size: clamp(2rem, 8.5vw, 2.8rem); }
  .contact-cta { padding: 14px 28px; }
}

/* Small phones — tighten side gutters and chip sizing */
@media (max-width: 430px) {
  .tab-bar   { padding: 12px 16px 0; }
  .about-right { padding: 26px 16px 40px; }
  .about-left  { padding: 26px 16px 24px; }
  .work-layout { padding: 22px 16px 36px; }
  .contact-layout { padding: 40px 16px; }
  .award-chip { font-size: 0.6rem; padding: 6px 10px; }
  .award-chip-detail { font-size: 0.55rem; }
}

/* Medium screens — 2-col grid */
@media (min-width: 801px) and (max-width: 1140px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-layout {
    grid-template-columns: 38% 62%;
  }

  .tab-bar { padding: 0 32px; }
  .work-layout { padding: 32px 32px 48px; }
  .about-left { padding: 36px 28px 36px 32px; }
  .about-right { padding: 36px 32px; }
}

/* Short screens — let about scroll rather than clip */
@media (max-height: 680px) and (min-width: 801px) {
  #about {
    overflow-y: auto;
  }
  .about-layout {
    height: auto;
    min-height: 100%;
  }
}

/* Large screens — ensure about fits well */
@media (min-width: 1400px) {
  .hero-name {
    font-size: 6rem;
  }
}
