:root {
  --paper: #faf8f3;
  --paper-elevated: #ffffff;
  --surface: #f1efe7;
  --surface-alt: #e6e7dd;
  --ink: #16372f;
  --ink-hover: #245045;
  --muted: #5d6a64;
  --accent: #b2522c;
  --accent-soft: #f3e4dc;
  --line: #dcded4;
  --line-strong: #c5c9bc;
  --shadow-sm: 0 2px 10px rgba(22, 55, 47, 0.05);
  --shadow-md: 0 14px 36px rgba(22, 55, 47, 0.08);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --header-h: 76px;

  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: clip;
}

body.viewer-open,
body.menu-open {
  overflow: hidden;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: default;
  opacity: 0.35;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

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

[hidden] {
  display: none !important;
}

h1, h2, h3, p, figure {
  margin-top: 0;
}

h1, h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.wrap {
  width: min(1240px, calc(100% - clamp(32px, 6vw, 96px)));
  margin-inline: auto;
}

.skip {
  position: fixed;
  top: -80px;
  left: 16px;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  z-index: 200;
  transition: top 0.15s ease;
}

.skip:focus {
  top: 12px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1;
  font-weight: 500;
  padding-right: 14px;
  border-right: 1px solid var(--line);
  flex-shrink: 0;
}

.brand-mark span,
.brand-footer span {
  color: var(--accent);
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-text strong {
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-text small {
  font-size: 9px;
  letter-spacing: 1.8px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 4px;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 32px);
  font-size: 13px;
  font-weight: 500;
}

.desktop-nav > a:not(.button) {
  position: relative;
  padding-block: 4px;
  transition: color 0.18s ease;
}

.desktop-nav > a:not(.button):hover {
  color: var(--accent);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ink);
  border: 1px solid var(--ink);
  color: #fff;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.18s ease, transform 0.15s ease, border-color 0.18s ease;
}

.button:hover {
  background: var(--ink-hover);
  border-color: var(--ink-hover);
}

.button:active {
  transform: translateY(1px);
}

.button.small {
  padding: 9px 16px;
  font-size: 12px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
  transition: color 0.18s ease;
}

.text-link:hover {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
}

.menu-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 18px;
}

.menu-icon span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: 20px clamp(16px, 5vw, 32px) 28px;
  box-shadow: var(--shadow-md);
}

.mobile-nav nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav nav a:not(.button) {
  padding: 13px 8px;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}

.mobile-nav nav a.button {
  margin-top: 16px;
  width: 100%;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(36px, 6vw, 76px);
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.hero-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 18px;
  text-transform: uppercase;
}

.hero-badge .eyebrow {
  margin: 0;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.hero h1 {
  font-size: clamp(38px, 4.4vw, 62px);
  margin-bottom: 24px;
}

.identity-card {
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  margin-bottom: 20px;
}

.name {
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 600;
  margin: 0 0 4px;
  line-height: 1.3;
}

.qualification {
  font-size: 0.68em;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}

.role {
  font-size: 14px;
  line-height: 1.6;
  font-weight: 500;
  margin: 0;
}

.role span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  margin-top: 2px;
}

.intro {
  color: var(--muted);
  font-size: 15px;
  max-width: 46ch;
  margin-block: 0 28px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.hero-photo {
  margin: 0;
  position: relative;
}

.hero-photo-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-alt);
  box-shadow: var(--shadow-md);
}

.hero-photo-frame img {
  width: 100%;
  aspect-ratio: 4 / 4.4;
  max-height: 540px;
  object-fit: cover;
  object-position: 48% 25%;
}

.hero-photo figcaption {
  position: relative;
  margin: -54px 20px 0;
  background: var(--ink);
  color: #fff;
  padding: 22px 26px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}

.caption-eyebrow {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  color: #e4b595;
  font-weight: 700;
}

.hero-photo figcaption p {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.2;
  margin: 8px 0 10px;
}

.hero-photo figcaption small {
  font-size: 11px;
  color: #c4cfc5;
  display: block;
}

/* ==========================================================================
   Stats Strip
   ========================================================================== */
.stats-section {
  padding-block: 8px;
}

.stats {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  border-block: 1px solid var(--line);
  padding-block: clamp(22px, 3vw, 32px);
  gap: 20px;
  align-items: center;
}

.stats-lead p {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2vw, 26px);
  line-height: 1.25;
  margin: 0;
}

.stat-item {
  border-left: 1px solid var(--line);
  padding-left: clamp(16px, 2.5vw, 30px);
}

.stat-item strong {
  display: block;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-item span {
  display: block;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--muted);
  font-weight: 600;
}

/* ==========================================================================
   01 / Journey Timeline
   ========================================================================== */
.journey {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) 1.4fr;
  gap: clamp(36px, 6vw, 96px);
  padding-block: clamp(56px, 8vw, 100px);
  align-items: start;
}

.section-intro {
  position: sticky;
  top: calc(var(--header-h) + 28px);
}

.journey h2,
.archive-heading h2,
.download-copy h2 {
  font-size: clamp(32px, 3.6vw, 48px);
  margin-bottom: 20px;
}

.section-desc {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 24px;
  max-width: 38ch;
}

.career {
  position: relative;
}

.career-row {
  display: grid;
  grid-template-columns: 124px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.career-row:first-child {
  padding-top: 0;
}

.career-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.career-year span {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.8px;
  font-weight: 600;
  color: var(--muted);
  padding-top: 4px;
}

.career-row.is-current .career-year span {
  color: var(--accent);
}

.career-body h3 {
  font-size: 17px;
  line-height: 1.5;
  font-weight: 600;
  margin: 0;
}

.career-body p {
  font-size: 13px;
  color: var(--muted);
  margin: 5px 0 0;
}

.tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.2px;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 4px 9px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}

.concurrent-label {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.2px;
  margin-bottom: 12px;
  color: var(--accent);
}

.concurrent {
  border-left: 2px solid #d5b29a;
  padding-left: 18px;
  display: grid;
  gap: 16px;
}

/* ==========================================================================
   02 / Activity Archive
   ========================================================================== */
.archive {
  background: var(--surface);
  padding-block: clamp(52px, 7vw, 84px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.archive-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
}

.archive-heading h2 {
  margin-bottom: 0;
}

.archive-subtitle {
  max-width: 34ch;
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.tools-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-sm);
}

.tools-top {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.year-filters {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-block: 2px;
  -webkit-overflow-scrolling: touch;
}

.year-filters button {
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 13px;
  flex-shrink: 0;
  min-height: 36px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.year-filters button:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.year-filters button[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.tools-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 280px;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  min-height: 42px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.search:focus-within {
  border-color: var(--ink);
  background: #fff;
}

.search-icon {
  color: var(--muted);
  flex-shrink: 0;
}

.search input {
  background: transparent;
  border: 0;
  width: 100%;
  min-width: 0;
  font-size: 13px;
  color: var(--ink);
  padding: 4px 0;
}

.search input:focus-visible {
  outline: none;
}

.clear-search {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.clear-search:hover {
  background: var(--surface-alt);
  color: var(--ink);
}

.view-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.control-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  padding: 0 12px;
  min-height: 40px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.control-pill:hover {
  border-color: var(--line-strong);
  background: var(--surface-alt);
}

.view-switch {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 2px;
}

.view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 0;
  border-radius: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  min-height: 32px;
}

.view-btn[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}

.results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  padding-block: 18px;
}

.results-bar p {
  margin: 0;
}

/* Posts - Editorial List View */
.posts-list {
  display: grid;
  gap: 28px;
}

.post {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  background: var(--paper-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

/* Posts - Compact Grid View */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 24px;
}

.posts-grid .post {
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
}

.posts-grid .slide img {
  height: 250px;
}

.posts-grid .post-copy {
  padding: 22px;
  align-self: stretch;
  display: flex;
  flex-direction: column;
}

.posts-grid .post h3 {
  font-size: 21px;
  margin-bottom: 12px;
}

.posts-grid .post-footer-links {
  margin-top: auto;
  padding-top: 14px;
}

.carousel {
  position: relative;
  min-width: 0;
  background: var(--surface-alt);
  display: flex;
  flex-direction: column;
}

.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  flex: 1;
  overscroll-behavior-x: contain;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.slide {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: zoom-in;
  position: relative;
}

.slide img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  background: var(--surface-alt);
}

.carousel-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #eceee6;
  border-top: 1px solid var(--line);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
}

.carousel-nav {
  display: flex;
  gap: 6px;
}

.carousel-controls button {
  height: 36px;
  width: 40px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 20px;
  line-height: 1;
  color: var(--ink);
  display: grid;
  place-items: center;
}

.carousel-controls button:hover:not(:disabled) {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.open-hint {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.7px;
}

.post-copy {
  padding: clamp(22px, 3vw, 36px);
  align-self: center;
  min-width: 0;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 14px;
}

.lang-toggle {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  min-height: 28px;
}

.lang-toggle:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.post h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 27px);
  line-height: 1.22;
  margin: 0 0 14px;
}

.caption {
  font-size: 14px;
  line-height: 1.65;
  color: #46574f;
  white-space: pre-line;
  overflow-wrap: anywhere;
  margin: 0;
}

.caption.is-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.expand-btn {
  background: transparent;
  border: 0;
  padding: 6px 0;
  margin-top: 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.post-footer-links {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.load-area {
  text-align: center;
  margin-top: 40px;
}

.empty {
  grid-column: 1 / -1;
  padding: 56px 24px;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.empty h3 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 8px;
}

.empty p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.noscript-msg {
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Download Callout & Footer
   ========================================================================== */
.download-section {
  padding-block: clamp(56px, 7vw, 88px);
}

.download-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: clamp(28px, 4vw, 48px);
}

.download-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 15px;
  max-width: 46ch;
  margin: 0;
}

.download-actions {
  flex-shrink: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding-block: 28px 36px;
  border-top: 1px solid var(--line);
}

.brand-footer {
  font-weight: 700;
  font-size: 16px;
}

.site-footer p,
.footer-top {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

.footer-top:hover {
  color: var(--accent);
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--ink);
  color: #fff;
  font-size: 18px;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.18s ease, background 0.18s ease;
}

.back-to-top:hover {
  background: var(--ink-hover);
  transform: translateY(-2px);
}

/* ==========================================================================
   Lightbox Dialog
   ========================================================================== */
dialog {
  border: 0;
  background: rgba(13, 25, 21, 0.97);
  color: #fff;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  padding: clamp(14px, 2.5vw, 28px);
  margin: 0;
  display: flex;
  flex-direction: column;
}

dialog:not([open]) {
  display: none;
}

dialog::backdrop {
  background: rgba(13, 25, 21, 0.97);
}

.viewer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
}

.viewer-title-group h2 {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  margin: 0;
}

.viewer-title-group p {
  font-size: 12px;
  color: #b7c3bd;
  margin: 2px 0 0;
}

dialog button {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-sm);
  color: #fff;
  min-width: 44px;
  min-height: 44px;
  padding: 6px 14px;
  transition: background 0.15s ease;
}

dialog button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.18);
}

.viewer-stage {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  gap: 14px;
  align-items: center;
}

.viewer-img-wrap {
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.viewer-stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.viewer-stage button {
  font-size: 28px;
  padding: 0;
  height: 52px;
}

#viewer-count {
  text-align: center;
  font-size: 12px;
  color: #c7d1cc;
  margin: 12px 0 0;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Tablet & Small Desktop */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-photo-frame img {
    aspect-ratio: 16 / 10;
    max-height: 440px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 16px;
  }

  .stats-lead {
    grid-column: 1 / -1;
    padding-bottom: 4px;
  }

  .stat-item:nth-child(2) {
    border-left: 0;
    padding-left: 0;
  }

  .journey {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .section-intro {
    position: static;
  }

  .archive-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .post {
    grid-template-columns: 1fr;
  }

  .slide img {
    height: clamp(240px, 52vw, 380px);
  }

  .download-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Mobile Devices */
@media (max-width: 720px) {
  :root {
    --header-h: 66px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .brand-mark {
    font-size: 26px;
    padding-right: 12px;
  }

  .brand-text small {
    font-size: 8px;
    letter-spacing: 1.4px;
  }

  .hero-photo figcaption {
    margin: -36px 12px 0;
    padding: 18px 20px;
  }

  .career-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-block: 20px;
  }

  .tools-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .search {
    max-width: none;
  }

  .view-controls {
    justify-content: space-between;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .open-hint {
    display: none;
  }

  .site-footer {
    flex-wrap: wrap;
    gap: 12px;
  }

  .site-footer p {
    width: 100%;
    order: 3;
  }

  .viewer-stage {
    grid-template-columns: 40px 1fr 40px;
    gap: 6px;
  }

  .viewer-stage button {
    min-width: 40px;
    height: 44px;
    font-size: 24px;
  }
}

/* Very small phones */
@media (max-width: 420px) {
  .stats {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .stat-item {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 14px;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .actions .button {
    width: 100%;
  }

  .actions .text-link {
    justify-content: center;
    padding-block: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
