:root {
  --bg: #0f1115;
  --bg-elevated: #161922;
  --text: #e8e6e1;
  --text-muted: #9a9a9a;
  --accent: #c99a3f;
  --border: #2a2d36;
  --link: #e0b35c;
  --danger: #c75146;
  --max-width: 760px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.6;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}
.site-header .wrap {
  max-width: 1000px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.site-header .brand {
  font-size: 1.25rem;
  font-weight: bold;
  letter-spacing: 0.02em;
  color: var(--text);
  display: inline-flex;
  align-items: center;
}
.site-header .brand img {
  display: block;
  height: 43px;
  width: auto;
}
.site-header nav {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.9rem;
}

main.wrap { padding-top: 2.5rem; padding-bottom: 3rem; }

h1 { font-size: 1.9rem; line-height: 1.25; margin: 0 0 0.75rem; }
h2 { font-size: 1.3rem; margin-top: 2rem; }

.hero-banner {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-bottom: 2.5rem;
  background-color: #000;
  overflow: hidden;
}
.hero-banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: 72% center;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-banner-bg {
    animation: hero-banner-pan 18s ease-in-out infinite alternate;
  }
}
@keyframes hero-banner-pan {
  from { transform: scale(1); }
  to { transform: scale(1.12); }
}
.hero-banner-inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 1.25rem;
  background: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35));
  text-align: center;
}
.hero-banner-inner h1 {
  color: #fff;
  font-size: 1.7rem;
  margin: 0;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.hero-cycle::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  background: currentColor;
  vertical-align: -0.1em;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-cycle::after { animation: hero-cursor-blink 1s step-start infinite; }
}
@keyframes hero-cursor-blink { 50% { opacity: 0; } }
.hero-banner-inner .hero-subtitle {
  color: #fff;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 1rem 0 0;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.about-hero {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-bottom: 2.5rem;
  background-size: cover;
  background-position: top center;
  background-color: #282828;
  position: relative;
}
.about-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.75) 100%);
}
.about-hero-inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4.5rem 1.25rem 2.5rem;
  text-align: center;
}
.about-hero-inner h1 {
  color: #fff;
  font-size: 2rem;
  font-weight: bold;
  line-height: 1.3;
  margin: 0;
}
.about-hero-inner h1 .light { font-weight: 400; }
.about-hero-tagline {
  color: rgba(255,255,255,0.7);
  font-family: Helvetica, Arial, sans-serif;
  margin: 1.25rem 0 0;
}
.about-hero-scroll {
  position: relative;
  text-align: center;
  color: rgba(255,255,255,0.75);
  font-family: Helvetica, Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  padding: 0 0 2rem;
}
.about-hero-scroll .arrow-down { display: block; margin-bottom: 0.4rem; }

body.about-page main.wrap {
  text-align: center;
  font-family: Helvetica, Arial, sans-serif;
  max-width: 640px;
}
body.about-page main.wrap ul {
  list-style-position: inside;
  padding-left: 0;
}

.post-hero {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-bottom: 2.5rem;
  background-color: #000;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
}
.post-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.75) 100%);
}
.post-hero-inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4.5rem 1.25rem;
  text-align: center;
}
.post-hero-date {
  color: rgba(255,255,255,0.75);
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.85rem;
  margin: 0 0 1rem;
}
.post-hero-inner h1 {
  color: #fff;
  text-transform: uppercase;
  font-size: 1.5rem;
  line-height: 1.4;
  margin: 0;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.section-split {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 2rem;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background: #fff;
  color: #1a1a1a;
}
.section-split.reverse { flex-direction: row-reverse; }
.section-split-text {
  flex: 1 1 320px;
  padding: 3rem max(1.25rem, calc((100vw - var(--max-width)) / 2 + 1.25rem)) 3rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.section-split.reverse .section-split-text {
  padding: 3rem 1.25rem 3rem max(1.25rem, calc((100vw - var(--max-width)) / 2 + 1.25rem));
}
.section-split-text .eyebrow {
  font-family: Helvetica, Arial, sans-serif;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  margin: 0;
}
.section-split-text h2 {
  font-family: Helvetica, Arial, sans-serif;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 1.6rem;
  margin: 0.4rem 0 0;
}
.section-split-text p { color: #555; }
.divider-line {
  display: block;
  width: 50px;
  height: 1px;
  background: var(--border);
  margin: 1rem 0 1.25rem;
}
.divider-line.light { background: rgba(255,255,255,0.35); }
.section-split-photo {
  flex: 1 1 320px;
  min-height: 280px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #c6c6c6;
}
.section-split-photo.contain {
  background-size: contain;
  background-color: #000;
}
.btn-readmore {
  display: inline-block;
  align-self: flex-start;
  background: #1a1a1a;
  color: #fff;
  font-family: Helvetica, Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
  font-weight: bold;
  padding: 0.85rem 1.75rem;
  border-radius: 2px;
}
.btn-readmore:hover { text-decoration: none; opacity: 0.85; }
.btn-readmore.light { background: #fff; color: #1a1a1a; }

.publications-dark {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #000;
  position: relative;
}
.publications-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
}
.publications-dark-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem;
  color: #fff;
}
.publications-dark-inner h2 {
  text-transform: uppercase;
  font-weight: bold;
  font-size: 1.5rem;
  margin: 0;
}
.publications-dark-inner .post-list a { color: #fff; }
.publications-dark-inner .post-list li { border-bottom-color: rgba(255,255,255,0.15); }

.pub-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}
@media (max-width: 900px) { .pub-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .pub-grid { grid-template-columns: 1fr; } }
.pub-card {
  display: block;
  background: #fff;
  color: #1a1a1a;
}
.pub-card-image {
  height: 150px;
  background-color: #000;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.pub-card-body { padding: 1rem; }
.pub-card-body h3 {
  font-family: Helvetica, Arial, sans-serif;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 0.85rem;
  line-height: 1.4;
  margin: 0 0 0.75rem;
  color: #1a1a1a;
}
.pub-card-readmore {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}
.pub-card:hover .pub-card-readmore { text-decoration: underline; }
.publications-dark-inner .post-list time { color: rgba(255,255,255,0.6); }
.pub-card-body time {
  display: block;
  margin-top: 0.4rem;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.72rem;
  color: var(--text-muted);
}

body.publications-page main.wrap { max-width: 1100px; }

.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.post-list time, .post-category {
  color: var(--text-muted);
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.85rem;
  white-space: nowrap;
}

.recovered-images {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0 1.5rem;
}
.recovered-images img {
  border: 1px solid var(--border);
  border-radius: 4px;
  max-width: 320px;
  max-height: 260px;
  width: auto;
  height: auto;
}

.post-meta {
  font-family: Helvetica, Arial, sans-serif;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.post-body img { max-width: 100%; height: auto; }
.post-body { word-wrap: break-word; }

.track-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
  border-radius: 4px;
}
.track-table {
  border-collapse: collapse;
  width: 100%;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.82rem;
  white-space: nowrap;
}
.track-table th, .track-table td {
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.track-table th {
  background: var(--bg-elevated);
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}
.track-table tr.track-average td {
  font-weight: bold;
  background: var(--bg-elevated);
}
.track-table .pct.neg { color: var(--danger); }
.track-table .pct.pos { color: #6fae6f; }

.post-disclaimer {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.8rem;
  color: var(--text-muted);
}
