:root {
  --bg: #050505;
  --bg-elevated: #0d0d0d;
  --bg-panel: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
  --text: #f5f1e8;
  --muted: rgba(245, 241, 232, 0.72);
  --soft: rgba(245, 241, 232, 0.5);
  --accent: #d2c5ab;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  --content-width: min(1180px, calc(100vw - 48px));
  --hero-height: min(100svh, 960px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 28%),
    linear-gradient(180deg, #090909 0%, #040404 50%, #000000 100%);
  color: var(--text);
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.page-shell {
  position: relative;
  overflow: hidden;
}

.page-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 90%);
  pointer-events: none;
  opacity: 0.4;
}

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
}

.topbar__inner {
  width: var(--content-width);
  margin: 0 auto;
  padding: 24px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-mark {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-mark__eyebrow {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.68rem;
  color: var(--soft);
}

.brand-mark__name {
  font-size: 0.95rem;
}

.lang-switch {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.lang-switch a {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.lang-switch a:hover,
.lang-switch a:focus-visible,
.lang-switch a.is-active {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.hero {
  position: relative;
  min-height: var(--hero-height);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.72) 42%, rgba(0, 0, 0, 0.42) 68%, rgba(0, 0, 0, 0.18) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.82) 82%, rgba(0, 0, 0, 0.96)),
    url("../images/hero-duda.jpeg") right center / cover no-repeat;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.94));
  z-index: -1;
}

.hero__inner {
  width: var(--content-width);
  margin: 0 auto;
  padding: 160px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 620px);
}

.hero__meta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--soft);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.hero__meta::before {
  content: "";
  width: 52px;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  margin: 20px 0 18px;
  font-size: clamp(3.4rem, 8vw, 7rem);
  line-height: 0.94;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 54ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.7;
}

.hero__quote {
  margin-top: 34px;
  max-width: 36rem;
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  color: var(--text);
  font-size: 1rem;
  line-height: 1.8;
  box-shadow: var(--shadow);
}

.hero__quote strong {
  display: block;
  margin-top: 10px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--soft);
}

.hero__anchors {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__anchors a {
  text-decoration: none;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.74rem;
  color: var(--muted);
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease;
}

.hero__anchors a:hover,
.hero__anchors a:focus-visible {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  color: var(--text);
}

main {
  position: relative;
  z-index: 1;
}

.section {
  width: var(--content-width);
  margin: 0 auto;
  padding: 88px 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section__intro {
  display: block;
  margin-bottom: 34px;
}

.kicker {
  margin: 0 0 12px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--soft);
}

.section h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.section__lede {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.archive-intro {
  max-width: 76ch;
  padding: 34px 36px;
}

.archive-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.95;
}

.source-flow {
  display: grid;
  gap: 0;
}

.source-card {
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.source-card:first-child {
  padding-top: 0;
  border-top: 0;
}

.source-card h3 {
  margin: 0 0 14px;
  font-size: 1.55rem;
  font-weight: 500;
}

.source-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.92;
}

.source-card p + p {
  margin-top: 18px;
}

.source-card::after {
  content: "";
  display: block;
  clear: both;
}

.source-card em {
  color: var(--text);
}

.inline-media {
  float: right;
  width: min(42%, 420px);
  margin: 8px 0 24px 32px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #080808;
  box-shadow: var(--shadow);
}

.inline-media img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  filter: grayscale(100%) brightness(0.82) contrast(1.08);
}

.inline-media figcaption {
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--soft);
}

.stat-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025));
  border: 1px solid var(--line);
  padding: 24px;
  min-height: 180px;
  box-shadow: var(--shadow);
}

.stat-card__value {
  display: block;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 0.95;
  margin-bottom: 14px;
}

.stat-card__label {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--soft);
}

.stat-card p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 24px;
}

.bio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.bio-card {
  padding: 30px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  min-height: 100%;
}

.bio-card h3 {
  margin: 0 0 14px;
  font-size: 1.45rem;
  font-weight: 500;
}

.bio-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

.bio-card p + p {
  margin-top: 16px;
}

.panel {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.panel--copy {
  padding: 36px;
}

.panel--copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.95;
}

.panel--copy p + p {
  margin-top: 22px;
}

.portrait-card {
  position: relative;
  min-height: 100%;
  overflow: hidden;
}

.portrait-card img,
.memory-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) brightness(0.82) contrast(1.08);
  transform: scale(1.01);
}

.portrait-card__caption,
.memory-card__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 22px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.88));
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f3ede2;
}

.timeline {
  display: grid;
  gap: 16px;
}

.records-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.records-card {
  padding: 30px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.records-card h3 {
  margin: 0 0 20px;
  font-size: 1.3rem;
  font-weight: 500;
}

.records-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.records-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.7;
}

.records-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.records-list strong {
  color: var(--text);
  font-weight: 500;
}

.records-list span {
  color: var(--soft);
  white-space: nowrap;
}

.timeline-item {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.timeline-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.timeline-item__year {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--soft);
}

.timeline-item h3 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 500;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.memory-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.9fr;
  gap: 18px;
}

.memory-card {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #080808;
  box-shadow: var(--shadow);
}

.memory-card--tall {
  min-height: 620px;
}

.memory-stack {
  display: grid;
  gap: 18px;
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.philosophy-panel {
  padding: 30px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow);
}

.philosophy-panel h3 {
  margin: 0 0 18px;
  font-size: 1.35rem;
  font-weight: 500;
}

.philosophy-media {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #080808;
  box-shadow: var(--shadow);
}

.philosophy-media img {
  width: 100%;
  height: auto;
  min-height: 420px;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.82) contrast(1.08);
  background: #000;
}

.philosophy-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.philosophy-list li {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.9;
}

.philosophy-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.philosophy-list strong {
  color: var(--text);
  font-weight: 500;
}

.quote-card {
  padding: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  min-height: 260px;
}

.quote-card blockquote {
  margin: 0;
  font-size: 1.16rem;
  line-height: 1.8;
}

.quote-card cite {
  display: block;
  margin-top: 24px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--soft);
  font-style: normal;
}

.honours-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.honours-card {
  padding: 30px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.honours-card h3 {
  margin: 0 0 18px;
  font-size: 1.3rem;
  font-weight: 500;
}

.honours-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.honours-list li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.7;
}

.honours-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.closing {
  padding-bottom: 120px;
}

.closing__panel {
  padding: 48px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    #080808;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.closing__panel p {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.9;
}

.closing__panel p + p {
  margin-top: 20px;
}

.footer {
  width: var(--content-width);
  margin: 0 auto;
  padding: 0 0 48px;
  color: var(--soft);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  line-height: 1.9;
  letter-spacing: 0.03em;
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 26px;
  padding: 40px 0 24px;
  border-top: 1px solid var(--line);
}

.footer__legacy {
  padding-right: 12px;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

.footer__legacy h2 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--text);
}

.footer__legacy p {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.9;
}

.footer__legacy p + p {
  margin-top: 18px;
}

.footer__portrait {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  background: #000;
  padding: 24px 20px 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.footer__portrait img {
  width: min(100%, 360px);
  height: auto;
  display: block;
  filter: grayscale(100%) contrast(1.05);
  mix-blend-mode: screen;
}

.footer__meta {
  margin-bottom: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: rgba(245, 241, 232, 0.46);
  font-size: 0.68rem;
}

.footer a {
  color: var(--muted);
  text-decoration-color: rgba(255, 255, 255, 0.16);
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--text);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .stats,
  .quote-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .story-grid,
  .honours-grid,
  .memory-grid,
  .philosophy-grid,
  .records-grid,
  .bio-grid,
  .footer__top {
    grid-template-columns: 1fr;
  }

  .memory-card--tall {
    min-height: 360px;
  }
}

@media (max-width: 760px) {
  :root {
    --content-width: min(100vw - 32px, 100%);
  }

  .topbar__inner {
    padding-top: 18px;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    min-height: auto;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.94)),
      linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.38)),
      url("../images/hero-duda.jpeg") 70% center / cover no-repeat;
  }

  .hero__inner {
    padding: 180px 0 54px;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 15vw, 4.2rem);
  }

  .section {
    padding: 68px 0;
  }

  .stats,
  .quote-grid {
    grid-template-columns: 1fr;
  }

  .inline-media {
    float: none;
    width: 100%;
    margin: 24px 0;
  }

  .records-list li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .panel--copy,
  .closing__panel,
  .quote-card,
  .honours-card,
  .stat-card {
    padding: 24px;
  }
}
