@font-face {
  font-family: 'Good Sans';
  src: url('fonts/GoodSans-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Good Sans';
  src: url('fonts/GoodSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Good Sans';
  src: url('fonts/GoodSans-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Minion Pro';
  src: url('fonts/MinionPro-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Minion Pro';
  src: url('fonts/MinionPro-It.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Minion Pro';
  src: url('fonts/MinionPro-Disp.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --white:   #FFFFFF;
  --black:   #0A0A0A;
  --line:    #E0E0E0;
  --muted:   #888888;
  --accent:  #FFFE88;
  --accent2: #DFCFFF;
  --sans:    'Good Sans', 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --serif:   'Minion Pro', 'EB Garamond', Georgia, serif;
  --ease:    cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  height: 100%;
}

body {
  background: var(--white);
  color: var(--black);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

/* ─────────────────────────────────────────
   HEADER
───────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-block {
  display: flex;
  align-items: center;
}

.logo-block img {
  height: 88px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav a {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black);
  transition: color 0.2s var(--ease);
  position: relative;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--black);
  transition: width 0.25s var(--ease);
}

.site-nav a:hover {
  color: var(--black);
}

.site-nav a:hover::after {
  width: 100%;
}

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
.hero {
  max-width: 1400px;
  margin: 0 auto;
  padding: 100px 40px 80px;
  border-bottom: 1px solid var(--line);
}

.hero-title {
  font-family: var(--sans);
  font-size: clamp(48px, 7vw, 108px);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.03em;
  max-width: 1100px;
  margin-bottom: 48px;
}

.hero-title em {
  font-style: italic;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.2em;
}

.hand-dot {
  display: inline-block;
  width: 0.22em;
  height: 0.22em;
  vertical-align: baseline;
  position: relative;
  bottom: 0.04em;
  margin-left: 0.03em;
  overflow: visible;
}

.hero-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
}

.hero-ingress {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.5;
  color: #444;
  max-width: 520px;
}

.hero-meta {
  text-align: right;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 2;
}

/* ─────────────────────────────────────────
   CONTENT SECTION
───────────────────────────────────────── */
.content-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 40px 120px;
  overflow-x: clip;
  flex-grow: 1;
  width: 100%;
}

.content-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.content-count {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

/* View Toggle */
.view-toggle {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
}

.toggle-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.2s var(--ease);
}

.toggle-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.toggle-btn + .toggle-btn {
  border-left: 1px solid var(--line);
}

.toggle-btn.active {
  background: var(--black);
  color: var(--white);
}

.toggle-btn:not(.active):hover {
  background: #f5f5f5;
  color: var(--black);
}

/* ─────────────────────────────────────────
   FILTER BAR
───────────────────────────────────────── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.filter-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
}
.filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.18s var(--ease);
  border-radius: 2px;
}
.chip:hover {
  border-color: var(--black);
  color: var(--black);
}
.chip.active {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}
.filter-clear {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}
.filter-clear:hover { color: var(--black); }

/* ─────────────────────────────────────────
   GRID VIEW
───────────────────────────────────────── */
.view-grid,
.view-timeline {
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.view-grid.hidden,
.view-timeline.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0;
  overflow: hidden;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.article-card {
  background: var(--white);
  cursor: pointer;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.article-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  transform: translateY(-3px);
  z-index: 2;
}

.card-image {
  width: 100%;
  height: 286px;
  overflow: hidden;
  background: #f0f0f0;
  position: relative;
}

.card-image img {
  transition: transform 0.6s var(--ease);
}

.article-card:hover .card-image img {
  transform: scale(1.04);
}

.card-body {
  padding: 24px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 20px;
  overflow: hidden;
  max-width: 100%;
  max-height: 43px; /* 2 rows × 19px + 5px gap */
}

.card-tags > .card-tag { flex-shrink: 0; }

.card-tag {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--black);
  border: 1px solid var(--black);
  background: transparent;
  display: inline-block;
  padding: 2px 7px;
  line-height: 1.4;
}

.card-title {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.card-ingress {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.55;
  color: #555;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.card-date {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.card-read {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--muted);
}

.card-author {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.card-author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  flex-shrink: 0;
  border: 1px solid var(--line);
}

.card-author-avatar--placeholder {
  background: var(--line);
}

.card-author-name {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  color: var(--black);
}

/* ─────────────────────────────────────────
   HORIZONTAL TIMELINE VIEW
───────────────────────────────────────── */
.view-timeline {
  position: relative;
  margin: 0 -40px;
}

.tl-nav-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 20px;
  padding: 0 40px;
}

.tl-nav-hint {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tl-nav-hint svg { opacity: 0.5; }

.tl-h-btn {
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
  color: var(--black);
  flex-shrink: 0;
}
.tl-h-btn:hover { background: var(--black); border-color: var(--black); color: var(--white); }
.tl-h-btn:disabled { opacity: 0.25; cursor: default; pointer-events: none; }
.tl-h-btn svg { width: 16px; height: 16px; }

.tl-h-outer {
  position: relative;
  overflow: hidden;
}
.tl-h-outer::before,
.tl-h-outer::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 10;
  pointer-events: none;
  transition: opacity 0.3s;
}
.tl-h-outer::before { left: 0; background: linear-gradient(to right, rgba(255,255,255,0.97), rgba(255,255,255,0)); }
.tl-h-outer::after  { right: 0; background: linear-gradient(to left, rgba(255,255,255,0.97), rgba(255,255,255,0)); }
.tl-h-outer.at-start::before { opacity: 0; }
.tl-h-outer.at-end::after    { opacity: 0; }

.tl-h-scroll {
  overflow: hidden;
  height: 760px;
  position: relative;
}


.tl-h-track {
  display: flex;
  align-items: center;
  height: 100%;
  position: relative;
  padding: 0 120px;
  min-width: max-content;
}

/* Horizontal centre line */
.tl-h-line {
  position: absolute;
  top: 50%; left: 0;
  width: 100%; height: 1px;
  background: var(--line);
  transform: translateY(-50%);
  z-index: 0;
}

/* Month separator — full-height dashed line with label at top */
.tl-month-sep {
  width: 0;
  align-self: stretch;
  border-left: 1px dashed #C8C8C8;
  flex-shrink: 0;
  position: relative;
  margin: 0 32px;
  z-index: 1;
}
.tl-month-sep::before {
  content: attr(data-month);
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  background: var(--white);
  padding: 0 6px;
}

/* Year marker */
.tl-year-marker {
  flex-shrink: 0;
  width: 0;
  align-self: stretch;
  position: relative;
  margin: 0 40px;
  border-left: 3px solid var(--accent2);
  z-index: 2;
}
.tl-year-pill {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent2);
  color: var(--black);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 16px;
  white-space: nowrap;
  z-index: 3;
}

/* Individual timeline item */
.tl-h-item {
  position: relative;
  width: 320px;
  height: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 16px;
  cursor: pointer;
}

/* Dot */
.tl-h-dot {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--black);
  z-index: 4;
  transition: background 0.2s var(--ease), transform 0.25s var(--ease);
}
.tl-h-item:hover .tl-h-dot {
  background: var(--accent2);
  transform: translate(-50%, -50%) scale(1.5);
}

/* Stem */
.tl-h-stem {
  position: absolute;
  left: 50%;
  width: 1px;
  background: #D0D0D0;
  z-index: 1;
  transform: translateX(-50%);
}
.tl-h-stem--above { bottom: calc(50% + 5px); height: 14px; }
.tl-h-stem--below { top:    calc(50% + 5px); height: 14px; }

/* Card */
.tl-h-card {
  position: absolute;
  left: 0;
  width: 320px;
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  z-index: 2;
  transition: box-shadow 0.25s var(--ease), border-color 0.2s;
}
.tl-h-item:hover .tl-h-card {
  box-shadow: 0 8px 32px rgba(0,0,0,0.09);
  border-color: #bbb;
}

/* tl-above: card sits fully ABOVE the axis, bottom edge just above the dot */
.tl-h-item.tl-above .tl-h-card {
  left: 0;
  bottom: calc(50% + 14px);
}
/* tl-below: card sits fully BELOW the axis, top edge just below the dot */
.tl-h-item.tl-below .tl-h-card {
  left: 0;
  top: calc(50% + 14px);
}

/* Thumbnail */
.tl-h-thumb {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f0f0f0;
  position: relative;
}
.tl-h-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
  display: block;
}
.tl-h-item:hover .tl-h-thumb img { transform: scale(1.04); }

/* Date stamp on image */
.tl-h-date-stamp {
  position: absolute;
  top: 0; left: 0;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.92);
  color: var(--black);
  padding: 6px 16px;
  z-index: 2;
  line-height: 1;
}

/* Tags row */
.tl-h-body {
  padding: 12px 14px 14px;
}
.tl-h-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 20px;
  overflow: hidden;
  max-width: 100%;
  max-height: 43px; /* 2 rows × 19px + 5px gap */
}

.tl-h-tags > .tl-h-tag { flex-shrink: 0; }
.tl-h-tag {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--black);
  border: 1px solid var(--black);
  background: transparent;
  padding: 2px 7px;
  display: inline-block;
  line-height: 1.4;
}

/* Title */
.tl-h-title {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--black);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Author */
.tl-h-author {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

.tl-h-author-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  flex-shrink: 0;
  border: 1px solid var(--line);
}

.tl-h-author-name {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
}

/* Scrubber */
.tl-scrubber-wrap {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 20px 40px 32px;
  user-select: none;
}
.tl-scrubber-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.tl-scrubber-track {
  flex: 1;
  height: 2px;
  background: var(--line);
  position: relative;
  cursor: pointer;
}
.tl-scrubber-dots {
  position: absolute;
  top: 50%; left: 0; right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.tl-scrubber-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #ccc;
  flex-shrink: 0;
  transition: background 0.2s;
}
.tl-scrubber-dot.active { background: var(--black); }
.tl-scrubber-pill {
  position: absolute;
  top: 50%;
  width: 64px; height: 20px;
  background: var(--black);
  border-radius: 10px;
  transform: translateY(-50%) translateX(-50%);
  left: 100%;
  cursor: grab;
  transition: background 0.15s;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.tl-scrubber-pill:active { cursor: grabbing; background: #333; }
.tl-scrubber-pill-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
  pointer-events: none;
}

.tl-scrubber-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.tl-scrubber-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}
.tl-scrubber-hint-label {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ─────────────────────────────────────────
   ARTICLE BYLINE (for modal display)
───────────────────────────────────────── */
.article-byline {
  display: flex; align-items: center; gap: 10px; margin-bottom: 24px;
}
.byline-avatar {
  width: 40px; height: 40px; border-radius: 4px; object-fit: cover;
  object-position: 50% 0%;
  flex-shrink: 0; border: 1px solid var(--line);
}
.byline-avatar--placeholder {
  background: var(--line);
}
.byline-name {
  font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--black);
}

/* ─────────────────────────────────────────
   ARTICLE BACK LINK (for modal display)
───────────────────────────────────────── */
.back-link {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line);
}
.back-link a {
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--line); padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.back-link a:hover { color: var(--black); border-color: var(--black); }

/* Responsive */
@media (max-width: 860px) {
  .view-timeline { margin: 0 -24px; }
  .tl-nav-row { padding: 0 24px; }
  .tl-scrubber-wrap { padding: 16px 24px 24px; }
  .tl-nav-hint { display: none; }
  .tl-h-scroll { height: 520px; }
  .tl-h-item { width: 240px; }
  .tl-h-card { width: 240px; }
  .tl-h-thumb { height: 150px; }
  .tl-h-title { font-size: 13px; }
}

/* ─────────────────────────────────────────
   ABOUT SECTION
───────────────────────────────────────── */
.about-section {
  border-top: 1px solid var(--line);
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 40px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}

.about-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--black);
  padding-top: 6px;
}

.about-text h2 {
  font-family: var(--sans);
  font-size: 52px;
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 28px;
}

.about-text p {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
  color: var(--black);
  max-width: 600px;
  margin-bottom: 16px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.site-footer {
  background: #272727;
  color: var(--white);
  flex-shrink: 0;
  width: 100%;
  margin-top: auto;
}

.footer-inner {
  max-width: 1400px;
  width: fit-content;
  margin: 0 auto;
  padding: 40px 40px;
  display: grid;
  grid-template-columns: 300px 600px; /* match .about-section computed tracks */
  align-items: center;
  gap: 80px;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  max-width: 600px; /* match .about-text p so footer grid contracts like about */
}

.footer-left img {
  height: 44px;
  width: auto;
  display: block;
}

.footer-center {
  text-align: left;
}

.footer-center .footer-tagline {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--white);
}

.footer-read-more {
  margin-top: 6px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-read-more a {
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  transition: color 0.2s, border-color 0.2s;
}

.footer-read-more a:hover {
  color: var(--white);
  border-bottom-color: var(--white);
}

.about-text a {
  color: var(--black);
  border-bottom: 1px solid var(--black);
  transition: opacity 0.2s;
}

.about-text a:hover {
  opacity: 0.6;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.footer-email {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  transition: opacity 0.2s;
}

.footer-email:hover {
  opacity: 0.6;
}

.footer-copy {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

@media (max-width: 860px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 36px 24px;
  }
  .footer-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .footer-right { align-items: flex-start; }
}

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 1100px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .header-inner {
    padding: 0 24px;
  }

  .hero {
    padding: 60px 24px 60px;
  }

  .hero-body {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-meta {
    text-align: left;
  }

  .content-section {
    padding: 40px 24px 80px;
  }

  .about-section {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 60px 24px;
  }

  .footer-inner {
    padding: 36px 24px;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-right {
    align-items: flex-start;
  }

  /* timeline responsive rules moved into timeline CSS block */
}

@media (max-width: 600px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: clamp(36px, 10vw, 64px);
  }

  .site-nav {
    gap: 20px;
  }
}

/* ─────────────────────────────────────────
   OLDER POSTS PAGINATION
───────────────────────────────────────── */
.article-card.pagination-hidden { display: none !important; }

.older-posts-wrap {
  text-align: center;
  padding: 48px 0 0;
}
.older-posts-btn {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 12px 32px;
  border: 1px solid var(--black);
  background: var(--white);
  color: var(--black);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.older-posts-btn:hover {
  background: var(--black);
  color: var(--white);
}

/* ─────────────────────────────────────────
   SCROLL ANIMATION
───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Accent highlight on hover for nav items */
.nav-accent {
  display: inline-block;
  padding: 2px 0;
}

/* Index label with counter */
.index-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.index-label sup {
  font-family: var(--sans);
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
}

/* ─────────────────────────────────────────
   ARTICLE DRAWER (slide from right)
───────────────────────────────────────── */
.article-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0);
  transition: background 0.5s ease;
  pointer-events: none;
}

.article-drawer-backdrop.is-visible {
  background: rgba(0, 0, 0, 0.45);
  pointer-events: auto;
}

.article-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  width: 100%;
  max-width: 710px;
  background: var(--white);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateX(100%);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -8px 0 40px rgba(0,0,0,0.15);
}

.article-drawer.is-visible {
  transform: translateX(0);
}

.article-drawer-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.article-drawer-close,
.article-drawer-share {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}

.article-drawer-close:hover,
.article-drawer-share:hover {
  color: var(--black);
}

.article-drawer-close svg,
.article-drawer-share svg {
  width: 16px;
  height: 16px;
}

.article-drawer-share.is-copied {
  color: var(--black);
}

.article-drawer-hero {
  width: 100%;
  height: 520px;
  overflow: hidden;
  background: #f0f0f0;
}

.article-drawer-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-drawer-content {
  padding: 48px 63px 80px;
  max-width: 630px;
}

.article-drawer-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.article-drawer-tag {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--black);
  display: inline-block;
  padding: 3px 8px;
}

.article-drawer-tag.tag-spaning {
  background: var(--accent);
  color: var(--black);
}
.article-drawer-tag.tag-finding { background: #333; }
.article-drawer-tag.tag-artikel { background: #555; }

.article-drawer-date {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.article-drawer-title {
  font-family: var(--sans);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.article-drawer-ingress {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.article-drawer-body p {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.7;
  color: #444;
  margin-bottom: 24px;
}

.article-drawer-inline-img {
  width: 100%;
  margin: 32px 0;
  overflow: hidden;
  border-radius: 2px;
}

.article-drawer-inline-img img {
  width: 100%;
  height: auto;
  display: block;
}

body.drawer-open {
  overflow: hidden;
}

@media (max-width: 860px) {
  .article-drawer {
    max-width: 100%;
  }
  .article-drawer-content {
    padding: 32px 24px 64px;
  }
  .article-drawer-hero {
    height: 340px;
  }
  .article-drawer-title {
    font-size: 24px;
  }
  .article-drawer-close,
  .article-drawer-share {
    padding: 16px 24px;
  }
}


/* ─────────────────────────────────────────
   IMAGE GALLERY (article drawer)
───────────────────────────────────────── */
.article-drawer-hero {
  position: relative;
  overflow: hidden;
}

.gallery {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.gallery-track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.gallery-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

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

.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.9);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease, background 0.2s ease, transform 0.2s ease;
  z-index: 2;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  color: var(--black);
}

.gallery-btn svg {
  width: 18px;
  height: 18px;
}

.gallery:hover .gallery-btn,
.gallery:focus-within .gallery-btn {
  opacity: 1;
}

.gallery-prev { left: 14px; }
.gallery-next { right: 14px; }

.gallery-btn:hover {
  background: var(--white);
}

.gallery-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.gallery-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.gallery-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.gallery-dot.active {
  background: var(--white);
  transform: scale(1.35);
}

.gallery-dot:hover {
  background: rgba(255,255,255,0.85);
}

.gallery-counter {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--white);
  background: rgba(0,0,0,0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding: 5px 10px;
  border-radius: 20px;
  z-index: 2;
  pointer-events: none;
}

@media (max-width: 860px) {
  .gallery-btn {
    opacity: 1;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.85);
  }
  .gallery-prev { left: 10px; }
  .gallery-next { right: 10px; }
}
