:root {
  --bg: #f2efe8;
  --bg-sidebar: #ede9e1;
  --border: #dcd6c8;
  --text: #1a1a1a;
  --muted: #6a6659;
  --accent: #3457d5;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --font-sans: "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --accent-gold: #7d621f;
  --type-workshop: #3457d5;
  --type-book: #a8823c;
  --type-theory: #7d5a7f;
  --type-material: #a15c3e;
  --type-observation: #6f7d5a;
  --type-podcast: #2f7a6b;
  --type-exhibition: #9c4a5c;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-mono);
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
}

.layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

/* Intro overlay */

.intro-overlay {
  position: fixed;
  inset: 0;
  background: #f5f3ef;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.6s ease;
}

.intro-overlay.hide {
  opacity: 0;
  pointer-events: none;
}

.intro-media {
  max-width: min(60%, 960px);
  max-height: 60vh;
  height: auto;
}

/* Sidebar */

.sidebar {
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand {
  text-align: center;
}

.brand .logo {
  width: 100%;
  display: block;
  margin: 0 auto;
}

.brand p {
  margin-top: 20px;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.main-nav ol {
  list-style: none;
}

.main-nav li {
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding: 6px 0;
  cursor: pointer;
}

.main-nav li a {
  color: inherit;
  text-decoration: none;
  display: block;
}

.main-nav li .num {
  color: var(--muted);
  margin-right: 8px;
}

.main-nav li.active {
  color: var(--accent);
}

.main-nav li.active .num {
  color: var(--accent);
}

.sidebar-footer {
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding-bottom: 56px;
}

.sidebar-footer p {
  margin-bottom: 6px;
}

.sidebar-footer .availability {
  display: flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
}

.sidebar-footer .availability:hover {
  color: var(--text);
}

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

.sidebar-footer hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 16px 0;
}

/* Main */

main {
  padding: 40px 56px 80px;
}

.main-header {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 40px;
}

.main-header h1 {
  font: inherit;
}

/* Project filters */

.project-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.project-controls-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.project-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.project-search {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.03em;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  width: 160px;
  max-width: 100%;
}

.project-search::placeholder {
  color: var(--muted);
}

.project-search:focus {
  outline: none;
  border-color: var(--text);
}

.filter-dropdown {
  position: relative;
}

.filter-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--muted);
  background: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
}

.filter-dropdown-toggle .chevron {
  font-size: 9px;
  transition: transform 0.15s ease;
}

.filter-dropdown-toggle.active,
.filter-dropdown.open .filter-dropdown-toggle {
  color: var(--text);
  border-color: var(--text);
}

.filter-dropdown.open .filter-dropdown-toggle .chevron {
  transform: rotate(180deg);
}

.filter-dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 190px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 10;
}

.filter-dropdown.open .filter-dropdown-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.filter-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--text);
  background: none;
  border: none;
  border-radius: 6px;
  padding: 7px 8px;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
}

.filter-chip:hover {
  background: var(--bg-sidebar);
}

.filter-chip.active {
  font-weight: 700;
}

.filter-chip .check {
  width: 10px;
  color: var(--accent);
}

.filter-clear {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--muted);
  background: none;
  border: none;
  text-decoration: underline;
  cursor: pointer;
}

.project-filters-empty {
  padding: 40px 0;
  color: var(--muted);
  font-size: 12px;
}

.project-count {
  margin-top: 24px;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* Honeycomb filtered view */

.honeycomb-grid {
  --hex-w: 130px;
  --hex-h: calc(var(--hex-w) * 0.8660254);
  --hex-step: calc(var(--hex-w) * 0.75);
  --hex-offset: calc(var(--hex-h) / 2);

  display: none;
  flex-wrap: wrap;
  justify-content: center;
  padding: 24px 0 48px;
}

.honeycomb-grid.active {
  display: flex;
}

.hex-col {
  display: flex;
  flex-direction: column;
}

.hex-col + .hex-col {
  margin-left: calc(var(--hex-step) - var(--hex-w));
}

.hex-col:nth-child(even) {
  margin-top: var(--hex-offset);
}

.hex-item {
  position: relative;
  display: block;
  width: var(--hex-w);
  height: var(--hex-h);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transform: scale(0.94);
}

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

.hex-item .placeholder-img {
  width: 100%;
  height: 100%;
  background: #c9c3b4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a8574;
  font-size: 8px;
  letter-spacing: 0.1em;
}

.hex-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 14, 0.78);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  font-size: 10px;
  letter-spacing: 0.04em;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.hex-item:hover .hex-overlay,
.hex-item:focus-visible .hex-overlay {
  opacity: 1;
}

/* Featured project */

.featured {
  display: grid;
  grid-template-columns: 1fr 340px 40px;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.featured-image .placeholder-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #c9c3b4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a8574;
  font-size: 11px;
  letter-spacing: 0.1em;
}

.featured-image img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.featured-info .index {
  color: var(--accent);
  font-size: 11px;
}

.featured-info h2 {
  font-family: var(--font-sans);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 8px 0 12px;
}

.featured-info .category,
.featured-info .year {
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--text);
}

.featured-info .description {
  margin-top: 20px;
  font-size: 12px;
  color: var(--muted);
  max-width: 34ch;
}

.featured-info .tags {
  margin-top: 24px;
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.featured-info .view-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--text);
  padding-bottom: 2px;
}

.pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.pagination .page-count {
  writing-mode: vertical-rl;
  font-size: 10px;
  color: var(--muted);
}

.dots {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.dots .dot {
  background: var(--border);
  width: 5px;
  height: 5px;
}

.dots .dot.active {
  background: var(--accent);
}

/* Project list */

.project-list {
  display: flex;
  flex-direction: column;
}

.project-row {
  display: grid;
  grid-template-columns: 32px 100px 1fr 24px;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.project-row .index {
  font-size: 11px;
  color: var(--accent);
}

.project-row .thumb .placeholder-img {
  width: 100px;
  aspect-ratio: 1 / 1;
  background: #c9c3b4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a8574;
  font-size: 9px;
  letter-spacing: 0.1em;
}

.project-row .thumb img {
  width: 100px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.project-row .info h3 {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.project-row .info p {
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.project-row .expand {
  font-size: 16px;
  color: var(--muted);
  text-align: right;
}

/* Responsive */

/* Project detail page */

.project-page {
  padding: 32px 48px 0;
}

.project-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 24px;
}

.back-link {
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--text);
  text-decoration: none;
}

.project-tabs {
  display: flex;
  gap: 24px;
}

.project-tabs a {
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-decoration: none;
}

.project-tabs a.active {
  color: var(--accent);
}

.project-main {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}

.project-left h1 {
  font-family: var(--font-sans);
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 24px;
}

.project-awards {
  list-style: none;
  margin: -8px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.project-award {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--accent-gold);
}

.project-award::before {
  content: "★";
  font-size: 10px;
}

.project-main-single {
  border-top: 1px solid var(--border);
  padding-top: 32px;
}

.project-page-title {
  font-family: var(--font-sans);
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 32px;
}

.project-main-single .project-notes {
  max-width: 1100px;
}

.process-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}

.process-index {
  position: sticky;
  top: 24px;
}

.process-index-list {
  margin-top: 12px;
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
}

.process-index-list > li {
  list-style: none;
}

.process-index-list a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 2px;
}

.process-index-list a:hover,
.process-index-list a.active {
  text-decoration-color: var(--text);
}

.process-index-list a.active {
  font-weight: 700;
}

.process-index-sublist {
  margin: 2px 0 6px 14px;
}

.process-index-sublist a {
  color: var(--muted);
  font-size: 11px;
}

.process-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}

.process-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.project-main-single .specs {
  max-width: 480px;
}

.drawing-placeholder-large {
  max-width: 640px;
  margin-top: 0;
}

.drawing-placeholder.drawing-placeholder-large {
  aspect-ratio: 1 / 1;
}

.specs {
  border-collapse: collapse;
  margin-bottom: 24px;
}

.drawing-theories-specs {
  margin-top: 20px;
  margin-bottom: 0;
}

.specs th,
.specs td {
  text-align: left;
  vertical-align: top;
  font-weight: normal;
  font-size: 10px;
  letter-spacing: 0.05em;
  padding: 3px 0;
}

.specs th {
  color: var(--muted);
  padding-right: 16px;
  white-space: nowrap;
}

.spec-tag {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 2px;
}

#process-theories-table {
  table-layout: fixed;
  width: 100%;
  max-width: 1100px;
  margin-top: 48px;
}

.theories-col-label {
  width: 14%;
}

.theories-col-value {
  width: 26%;
}

.theories-col-explanation {
  width: 60%;
}

.spec-explanation {
  font-size: 11px;
  letter-spacing: normal;
  line-height: 1.6;
  color: var(--muted);
  padding-left: 24px;
  white-space: normal;
}

.spec-explanation strong {
  color: var(--text);
  font-weight: 700;
}

.theory-explanation-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.theory-explanation-text.expanded {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
}

.theory-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-top: 6px;
  padding: 4px 0;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  cursor: pointer;
}

.theory-toggle:hover {
  text-decoration: underline;
}

.spec-tag:hover {
  text-decoration-color: var(--text);
}

.theory-item-row + .theory-item-row > th,
.theory-item-row + .theory-item-row > td {
  border-top: 1px solid var(--border);
  padding-top: 8px;
}

.project-description {
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 16px;
  max-width: 34ch;
}

.project-description + .project-description {
  border-top: none;
  padding-top: 0;
  margin-top: 12px;
}

.drawing-placeholder {
  margin-top: 32px;
  aspect-ratio: 4 / 3;
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.drawing-placeholder.has-image {
  border: none;
  cursor: zoom-in;
  overflow: hidden;
}

.drawing-placeholder.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 14, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  cursor: zoom-out;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  aspect-ratio: 3 / 2;
}

.project-video {
  margin-top: 24px;
}

.project-video video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: var(--bg-sidebar);
}

.gallery .placeholder-img {
  width: 100%;
  height: 100%;
  background: #c9c3b4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a8574;
  font-size: 11px;
  letter-spacing: 0.1em;
}

.gallery-main {
  height: 100%;
}

.gallery-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

.gallery-side .placeholder-img {
  flex: 1;
  min-height: 0;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

.gallery-side img {
  width: 100%;
  flex: 1;
  min-height: 0;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

.project-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 32px;
}

.project-notes.project-notes-single {
  grid-template-columns: 1fr;
}

.project-notes-link-wrap {
  grid-column: 1 / -1;
  margin-top: 8px;
}

.project-notes-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--text);
  padding-bottom: 2px;
}

.project-notes-link:hover {
  opacity: 0.7;
}

.project-notes h3 {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
}

.project-notes p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}

.project-notes p + p {
  margin-top: 12px;
}

.process-subsection {
  margin-top: 24px;
}

.process-subsection:first-of-type {
  margin-top: 16px;
}

.process-subsection h4 {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
}

.synthesis-subheading {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.synthesis-profiles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

[id^="project-material-reflections-"] .synthesis-profiles-grid {
  margin-top: 10px;
}

#project-material-considerations-colour-material-finishes .synthesis-subheading {
  margin-top: 20px;
}

.material-reflection-text {
  margin-top: 20px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}

.material-reflection-text + .material-reflection-text {
  margin-top: 12px;
}

.synthesis-profile {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}

.process-subsection-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.process-subsection-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.process-subsection-gallery .placeholder-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #c9c3b4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4b493f;
  font-size: 11px;
  letter-spacing: 0.1em;
}

#development-version-comparisons-gallery {
  grid-template-columns: repeat(5, 1fr);
}

.process-subsection-figure {
  margin: 0;
}

.process-subsection-figure figcaption {
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

.material-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: start;
  margin-top: 24px;
}

.material-row:first-child {
  margin-top: 10px;
}

.material-row-text {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}

.material-row-image img,
.material-row-image .placeholder-img {
  width: 100%;
  aspect-ratio: 4 / 3;
}

.material-row-image img {
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.material-row-image .placeholder-img {
  background: #c9c3b4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4b493f;
  font-size: 11px;
  letter-spacing: 0.1em;
}

.process-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  margin-top: 12px;
}

.process-comparison-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 11px;
}

.process-comparison-table th,
.process-comparison-table td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
  color: var(--text);
}

.process-comparison-table th {
  font-weight: 700;
  background: var(--bg-sidebar);
  white-space: nowrap;
}

.related-projects {
  margin-top: 64px;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}

.project-testimonial-section {
  margin-top: 64px;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}

.project-testimonial-section .testimonial {
  max-width: 60ch;
}

.project-testimonial-section .testimonial-role {
  display: block;
  margin-top: 2px;
}

.related-projects-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.related-project-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.related-project-thumb {
  aspect-ratio: 1 / 1;
}

.related-project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.related-project-thumb .placeholder-img {
  width: 100%;
  height: 100%;
  background: #c9c3b4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a8574;
  font-size: 10px;
  letter-spacing: 0.1em;
}

.related-project-name {
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.03em;
}

.project-footer {
  margin-top: 64px;
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-footer a {
  text-decoration: none;
  color: var(--text);
}

.journal-entry-page .project-footer,
.essay-entry-page .project-footer {
  max-width: 900px;
  margin: 64px auto 0;
  padding: 20px 48px;
}

.prev-project,
.next-project {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.next-project {
  text-align: right;
}

.project-footer .label {
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.project-footer .name {
  font-size: 11px;
  letter-spacing: 0.05em;
}

.grid-link {
  display: grid;
  grid-template-columns: repeat(3, 4px);
  grid-template-rows: repeat(3, 4px);
  gap: 3px;
}

.grid-link span {
  width: 4px;
  height: 4px;
  background: var(--muted);
  border-radius: 50%;
}

/* Journal page */

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

.site-brand .logo {
  display: block;
  height: 26px;
  width: auto;
}

.site-nav {
  display: flex;
  gap: 40px;
}

.site-nav a {
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.site-nav a.active {
  color: var(--text);
  font-weight: 700;
  border-bottom-color: var(--text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.page-back-bar {
  padding: 20px 48px 0;
}

.page-back-bar .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.journal-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 48px 80px;
}

.journal-header h1 {
  font-family: var(--font-sans);
  font-size: 40px;
  font-weight: 700;
}

.journal-header p {
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
}

.journal-rss-link {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
}

.journal-rss-link:hover {
  color: var(--text);
  border-color: var(--text);
}

.journal-map-section {
  margin-top: 56px;
}

.journal-map {
  margin-top: 16px;
  height: 320px;
  border: 1px solid var(--border);
  background: var(--bg-sidebar);
  font-family: var(--font-mono);
}

.journal-map-pin {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.journal-map-pin-workshop {
  background: var(--type-workshop);
}

.journal-map-pin-book {
  background: var(--type-book);
}

.journal-map-pin-theory {
  background: var(--type-theory);
}

.journal-map-pin-material {
  background: var(--type-material);
}

.journal-map-pin-observation {
  background: var(--type-observation);
}

.journal-map-pin-podcast {
  background: var(--type-podcast);
}

.journal-map-pin-exhibition {
  background: var(--type-exhibition);
}

.journal-map-legend {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.journal-map-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.journal-map-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.journal-map-popup {
  font-family: var(--font-mono);
  min-width: 160px;
}

.journal-map-popup-date {
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.journal-map-popup-title {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

.journal-map-popup-link {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--text);
  background: none;
  border: none;
  border-bottom: 1px solid var(--text);
  padding: 0 0 2px;
  cursor: pointer;
}

.leaflet-popup-content-wrapper {
  border-radius: 4px;
}

.journal-entry-highlight {
  animation: journal-entry-flash 1.6s ease;
}

@keyframes journal-entry-flash {
  0% { background: var(--bg-sidebar); }
  100% { background: transparent; }
}

.journal-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 48px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.journal-controls-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.journal-tabs-dropdown {
  position: relative;
}

.journal-tabs-toggle {
  display: none;
}

.journal-tabs {
  display: flex;
  gap: 28px;
}

.journal-tab {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--muted);
  background: none;
  border: none;
  padding: 0 0 4px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.journal-tab.active {
  color: var(--text);
  border-bottom-color: var(--text);
}

.journal-tag-clear {
  display: none;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--muted);
  background: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
}

.journal-tag {
  font-family: var(--font-mono);
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.journal-tag.active {
  color: var(--text);
  font-weight: 700;
  text-decoration: underline;
}

.sort-select {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--muted);
  background: none;
  border: none;
  padding: 6px 4px;
  min-height: 24px;
  cursor: pointer;
}

.journal-entry {
  display: grid;
  grid-template-columns: 160px 1fr 1fr;
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.journal-meta {
  font-size: 10px;
  letter-spacing: 0.05em;
}

.journal-date {
  font-weight: 700;
  color: var(--text);
}

.journal-type {
  margin-top: 8px;
  color: var(--muted);
}

.journal-location {
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
}

.journal-location-pin {
  flex-shrink: 0;
  color: var(--muted);
}

.journal-sep {
  margin: 12px 0;
  color: var(--border);
}

.journal-tags {
  list-style: none;
  color: var(--muted);
}

.journal-tags li {
  line-height: 1.7;
}

.journal-image .placeholder-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 2 / 1;
  background: #c9c3b4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a8574;
  font-size: 11px;
  letter-spacing: 0.1em;
}

.journal-image img {
  width: 100%;
  height: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  display: block;
}

.journal-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.journal-info h2 {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 700;
}

.journal-author {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}

.journal-description {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
  max-width: 42ch;
}

.journal-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-decoration: none;
}

.journal-status .arrow {
  color: var(--text);
}

.essay-entry {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.essay-meta {
  font-size: 10px;
  letter-spacing: 0.05em;
}

.essay-date {
  font-weight: 700;
  color: var(--text);
}

.essay-institution {
  margin-top: 8px;
  color: var(--muted);
}

.essay-info h2 {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 700;
}

.essay-description {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
  max-width: 42ch;
}

.essay-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  max-width: 42ch;
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-decoration: none;
}

.essay-link .arrow {
  color: var(--text);
}

.journal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.journal-older {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
}

/* Journal entry detail page */

.journal-entry-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 56px 48px 80px;
}

.journal-entry-page .related-projects {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 48px;
  padding-right: 48px;
}

.journal-entry-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.journal-entry-meta-row #entry-date {
  font-weight: 700;
  color: var(--text);
}

.journal-entry-main h1 {
  margin-top: 16px;
  font-family: var(--font-sans);
  font-size: 36px;
  font-weight: 700;
}

.journal-entry-author {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

.journal-entry-podcast {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.journal-entry-podcast a {
  color: var(--type-podcast);
}

.podcast-label {
  color: var(--text);
  font-weight: 700;
  margin-right: 4px;
}

.journal-entry-takeaways-section {
  margin-top: 32px;
}

.journal-entry-takeaways {
  margin-top: 12px;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.journal-entry-takeaways li {
  font-size: 13px;
  color: var(--text);
  line-height: 1.7;
  max-width: 68ch;
}

.journal-entry-rating {
  margin-top: 24px;
  font-size: 13px;
  letter-spacing: 0.1em;
}

.journal-entry-rating .filled {
  color: var(--accent-gold);
}

.journal-entry-rating .empty {
  color: var(--border);
}

.journal-entry-tags {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.journal-entry-tags li a {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.03em;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
}

.journal-entry-tags li a:hover {
  background: var(--bg-sidebar);
}

.journal-entry-image {
  margin-top: 32px;
}

.journal-entry-image .placeholder-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #c9c3b4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a8574;
  font-size: 11px;
  letter-spacing: 0.1em;
}

.journal-entry-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.journal-entry-description {
  margin-top: 32px;
  max-width: 68ch;
}

.essay-entry-page .journal-entry-description {
  max-width: none;
}

.journal-entry-description p {
  font-size: 13px;
  color: var(--text);
  line-height: 1.7;
}

.journal-entry-description p + p {
  margin-top: 16px;
}

.journal-entry-description a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}

.journal-entry-gallery-section {
  margin-top: 32px;
  max-width: 68ch;
}

.journal-entry-gallery {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.journal-gallery-item {
  margin: 0;
}

.journal-gallery-item .placeholder-img {
  width: 100%;
  aspect-ratio: 4 / 3;
}

.journal-gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

.journal-gallery-item .placeholder-img {
  background: #c9c3b4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4b493f;
  font-size: 11px;
  letter-spacing: 0.1em;
}

.journal-gallery-caption {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.journal-gallery-explanation {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.journal-entry-description a:hover {
  text-decoration-color: var(--text);
}

.essay-heading {
  margin-top: 40px;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.essay-heading + p {
  margin-top: 16px;
}

.essay-entry-page .journal-entry-main {
  max-width: none;
}

.essay-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 640px) 1fr;
  gap: 48px;
  align-items: start;
}

.essay-main-column {
  min-width: 0;
}

.essay-index {
  position: sticky;
  top: 24px;
}

.essay-index-list {
  margin-top: 12px;
  padding-left: 20px;
  font-size: 12px;
  color: var(--text);
  line-height: 1.9;
}

.essay-index-list a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 2px;
}

.essay-index-list a:hover,
.essay-index-list a.active {
  text-decoration-color: var(--text);
}

.essay-index-list a.active {
  font-weight: 700;
}

.essay-figure {
  margin-top: 24px;
}

.essay-figure .placeholder-img {
  width: 100%;
  aspect-ratio: 3 / 2;
  background: #c9c3b4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4b493f;
  font-size: 11px;
  letter-spacing: 0.1em;
}

.essay-figure img {
  width: 100%;
  display: block;
}

.essay-figure-row {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.essay-figure-row .essay-figure {
  margin-top: 0;
  flex-grow: var(--ar, 1);
  flex-shrink: 1;
  flex-basis: 0;
  min-width: 0;
}

.essay-figure-row .essay-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.essay-figure-row .essay-figure .placeholder-img {
  width: 100%;
  height: auto;
  aspect-ratio: var(--ar, 3 / 2);
}

.essay-figure figcaption {
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}

.journal-entry-status {
  margin-top: 32px;
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.journal-page-count {
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--muted);
}

/* About page */

.about-rail {
  position: fixed;
  left: 32px;
  top: 132px;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.about-rail::before {
  content: "";
  flex: 1;
  width: 1px;
  background: var(--border);
}

.about-rail span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.about-hero-section,
.about-capabilities-section,
.about-testimonials-section,
.about-connect-section,
.about-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 112px;
  padding-right: 48px;
}

.about-capabilities {
  padding: 64px 0;
}

.about-capabilities-intro {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  max-width: 52ch;
  line-height: 1.7;
}

.about-capabilities-groups {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.about-capabilities-label {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 12px;
}

.about-testimonials {
  padding: 64px 0;
}

.testimonials-list {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.testimonial blockquote {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
}

.testimonial figcaption {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
}

.testimonial-author {
  font-weight: 700;
  color: var(--text);
}

.testimonial-role {
  color: var(--muted);
}

.testimonial-project-link {
  margin-top: 4px;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 2px;
}

.testimonial-project-link:hover {
  text-decoration-color: var(--text);
}

.about-hero {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: center;
  padding: 64px 0;
}

.about-hero-text h1 {
  font-family: var(--font-sans);
  font-size: 56px;
  font-weight: 700;
}

.about-hero-text p {
  margin-top: 24px;
  font-size: 13px;
  color: var(--muted);
  max-width: 52ch;
  line-height: 1.7;
}

.about-cv-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--text);
  padding-bottom: 2px;
}

/* CV download dropdown */

.cv-download {
  position: relative;
  display: inline-block;
}

.cv-download-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--text);
  background: none;
  border: none;
  border-bottom: 1px solid var(--text);
  padding: 0 0 2px;
  cursor: pointer;
}

.cv-download-toggle .arrow {
  transition: transform 0.2s ease;
}

.cv-download.open .cv-download-toggle .arrow {
  transform: rotate(180deg);
}

.cv-download-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 160px;
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 20;
}

.cv-download.open .cv-download-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cv-download-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.cv-download-menu a:last-child {
  border-bottom: none;
}

.cv-download-menu a:hover {
  background: var(--bg-sidebar);
}

.cv-download-menu a .cv-download-ext {
  font-size: 9px;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.cv-hero-download {
  margin-top: 24px;
}

.about-hero-image .placeholder-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #c9c3b4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a8574;
  font-size: 11px;
  letter-spacing: 0.1em;
}

.about-hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-philosophy-section {
  background: var(--bg-sidebar);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-philosophy {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 48px 64px 112px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
}

.eyebrow {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.about-quote {
  margin-top: 16px;
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  max-width: 16ch;
}

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

.about-value {
  padding-left: 32px;
  border-left: 1px solid var(--border);
}

.about-value:first-child {
  padding-left: 0;
  border-left: none;
}

.about-icon {
  width: 26px;
  height: 26px;
  color: var(--text);
  margin-bottom: 16px;
}

.about-value h3 {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.about-value p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}

.about-connect {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 64px;
  padding: 64px 0;
}

.about-interests-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.about-interests-subheading {
  margin-top: 40px;
}

.about-interests-grid figure {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about-interests-grid .placeholder-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #c9c3b4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a8574;
  font-size: 9px;
  letter-spacing: 0.1em;
}

.about-interests-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--bg-sidebar);
  object-fit: contain;
  padding: 12px;
  box-sizing: border-box;
  display: block;
}

.about-interests-grid figcaption {
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.about-connect-intro {
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 32ch;
}

.about-contact-details {
  margin-top: 20px;
  font-size: 12px;
  color: var(--text);
  line-height: 1.8;
}

.about-socials {
  display: flex;
  gap: 20px;
  margin-top: 24px;
}

.about-socials a {
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
}

.about-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 40px;
  border-top: 1px solid var(--border);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  text-decoration: none;
}

.index-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
}

/* Contact page */

.contact-main {
  max-width: 640px;
  margin: 0 auto;
  padding: 96px 48px 120px;
}

.contact-info h1 {
  margin-top: 16px;
  font-family: var(--font-sans);
  font-size: 32px;
  font-weight: 700;
  max-width: 14ch;
}

.contact-intro {
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
  max-width: 36ch;
  line-height: 1.7;
}

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  margin-top: 32px;
}

.contact-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--text);
  padding-bottom: 2px;
}

.contact-open-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: #fff;
  background: var(--text);
  border: none;
  padding: 12px 28px;
  border-radius: 999px;
  cursor: pointer;
}

.contact-open-btn:hover {
  opacity: 0.85;
}

.contact-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 14, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.contact-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.contact-modal {
  background: #fff;
  color: #1a1a1a;
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.contact-modal-header {
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.contact-modal-header h2 {
  grid-column: 2;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
}

.contact-close {
  grid-column: 3;
  justify-self: end;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-sidebar);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
}

#contact-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.contact-field {
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
}

.contact-field:focus-within,
.contact-field-message:focus-within {
  box-shadow: inset 0 0 0 1px var(--text);
}

.contact-field input {
  width: 100%;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text);
  background: transparent;
}

.contact-field input::placeholder,
.contact-field-message textarea::placeholder {
  color: var(--muted);
}

.contact-field-message {
  flex: 1;
  display: flex;
  border-bottom: none;
}

.contact-field-message textarea {
  flex: 1;
  width: 100%;
  min-height: 260px;
  border: none;
  outline: none;
  resize: none;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text);
  background: transparent;
}

.contact-botcheck {
  display: none;
}

.contact-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}

.contact-cancel,
.contact-send {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  padding: 10px 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
}

.contact-cancel {
  background: var(--bg-sidebar);
  color: var(--text);
}

.contact-send {
  background: var(--text);
  color: #fff;
}

.contact-cancel:hover,
.contact-send:hover {
  opacity: 0.85;
}

.contact-send:disabled {
  cursor: default;
  opacity: 0.6;
}

.contact-status {
  padding: 0 24px;
  font-size: 12px;
  line-height: 1.6;
}

.contact-status:empty {
  padding: 0;
}

.contact-status.success {
  padding: 24px;
  color: var(--text);
  text-align: center;
}

.contact-status.error {
  padding-top: 16px;
  color: #b3261e;
}

/* CV page */

.cv-hero-section,
.cv-intro-section,
.cv-timeline-section,
.cv-expertise-section,
.cv-details-section {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 48px;
  padding-right: 48px;
}

.cv-hero-section {
  padding-top: 56px;
}

.cv-name {
  font-family: var(--font-sans);
  font-size: 40px;
  font-weight: 700;
}

.cv-role {
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.cv-hero-with-photo {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: stretch;
}

.cv-hero-left {
  display: flex;
  flex-direction: column;
}

.cv-hero-about {
  margin-top: 32px;
}

.cv-hero-photo {
  position: relative;
}

.cv-hero-photo img,
.cv-hero-photo .placeholder-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.cv-hero-photo img {
  object-fit: contain;
  object-position: right center;
}

.cv-hero-photo .placeholder-img {
  object-fit: cover;
}

.cv-hero-photo .placeholder-img {
  background: #c9c3b4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a8574;
  font-size: 11px;
  letter-spacing: 0.1em;
}

.cv-intro-section {
  padding-top: 40px;
}

.cv-intro {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
}

.cv-about-text {
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 48ch;
}

.cv-contact-section {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.cv-contact-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cv-contact-list-row {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 40px;
}

.cv-contact-list dt {
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.cv-contact-list dd {
  margin-top: 2px;
  font-size: 12px;
  color: var(--text);
}

.cv-contact-list a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.cv-skills-section {
  margin-top: 48px;
  background: var(--bg-sidebar);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cv-skills {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
}

.cv-skill-bars {
  list-style: none;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cv-skill-bars li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--text);
}

.cv-bar {
  display: block;
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.cv-bar-fill {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
}

.cv-tags {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cv-tags a {
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.cv-tags a:hover {
  background: var(--text);
  color: #fff;
}

.cv-tags span,
.cv-tags a {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.03em;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
}

.cv-timeline-section {
  padding-top: 48px;
}

.cv-timeline {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
}

.cv-timeline-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.cv-timeline-date {
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--muted);
  white-space: nowrap;
}

.cv-timeline-item h3 {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
}

.cv-timeline-org {
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.cv-timeline-detail {
  margin-top: 12px;
  font-size: 11px;
  color: var(--text);
  line-height: 1.7;
  max-width: 60ch;
}

.cv-timeline-detail.cv-timeline-muted {
  color: var(--muted);
}

.cv-bullets {
  margin-top: 12px;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cv-bullets li {
  font-size: 11px;
  color: var(--text);
  line-height: 1.6;
  max-width: 60ch;
}

.cv-timeline-tags {
  margin-top: 12px;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.cv-expertise-section {
  padding-top: 48px;
}

.cv-expertise-grid {
  margin-top: 24px;
}

.cv-details-section {
  padding-top: 48px;
  padding-bottom: 56px;
}

.cv-details-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
}

.cv-detail-row {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: 360px;
  font-size: 11px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.cv-detail-row span:first-child {
  color: var(--muted);
  letter-spacing: 0.05em;
}

.cv-detail-row span:last-child {
  color: var(--text);
  text-align: right;
}

.cv-references-text {
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
}

@media screen and (max-width: 800px) {
  .project-page {
    padding: 24px 24px 0;
  }

  .project-topbar {
    flex-wrap: wrap;
    gap: 12px;
  }

  .project-tabs {
    gap: 16px;
  }

  .project-main {
    grid-template-columns: 1fr;
  }

  .project-left,
  .project-right {
    min-width: 0;
  }

  #process-theories-table {
    table-layout: auto;
    width: auto;
    max-width: 100%;
    margin-top: 32px;
  }

  .theories-col-label,
  .theories-col-value,
  .theories-col-explanation {
    width: auto;
  }

  .related-projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery {
    grid-template-columns: 1fr;
    aspect-ratio: auto;
  }

  .gallery-main,
  .gallery-side {
    min-width: 0;
  }

  .gallery-main {
    aspect-ratio: 4 / 3;
  }

  .gallery-side {
    flex-direction: row;
    flex-wrap: wrap;
    height: auto;
  }

  .gallery-side .placeholder-img {
    aspect-ratio: 4 / 3;
  }

  .gallery-side img {
    width: auto;
    min-width: 0;
    flex: 1 1 100px;
    aspect-ratio: 4 / 3;
    height: auto;
  }

  .project-notes {
    grid-template-columns: 1fr;
  }

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

  .sidebar {
    position: static;
    height: auto;
  }

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

  .pagination {
    flex-direction: row;
    justify-content: flex-start;
    gap: 16px;
  }

  .pagination .page-count {
    writing-mode: horizontal-tb;
  }

  .dots {
    flex-direction: row;
    margin-top: 0;
  }

  .project-row {
    grid-template-columns: 24px 70px 1fr 20px;
  }

  .site-topbar {
    padding: 16px 24px;
    position: relative;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 16px;
    z-index: 60;
  }

  .site-nav.mobile-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  .site-nav a:last-child {
    border-bottom: none;
  }

  .journal-main {
    padding: 40px 24px 56px;
  }

  .journal-entry-main {
    padding: 40px 24px 56px;
  }

  .journal-entry-page .related-projects {
    padding-left: 24px;
    padding-right: 24px;
  }

  .journal-entry-page .project-footer,
  .essay-entry-page .project-footer {
    padding: 20px 24px;
    flex-wrap: wrap;
    gap: 16px;
  }

  .journal-entry {
    grid-template-columns: 1fr;
  }

  .essay-entry {
    grid-template-columns: 1fr;
  }

  .essay-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .essay-index {
    position: static;
  }

  #development-version-comparisons-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .synthesis-profiles-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .process-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .process-index {
    position: static;
  }

  .essay-figure-row {
    flex-direction: column;
  }

  .essay-figure-row .essay-figure {
    flex-grow: 0;
  }

  .material-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .journal-filters {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .journal-tabs-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.05em;
    color: var(--text);
    background: none;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 16px;
    cursor: pointer;
  }

  .journal-tabs-toggle .chevron {
    font-size: 9px;
    transition: transform 0.15s ease;
  }

  .journal-tabs-dropdown:has(.journal-tabs.open) .journal-tabs-toggle .chevron {
    transform: rotate(180deg);
  }

  .journal-tabs {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 200px;
    flex-direction: column;
    gap: 2px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    z-index: 20;
  }

  .journal-tabs.open {
    display: flex;
  }

  .journal-tab {
    text-align: left;
    padding: 8px;
    border-bottom: none;
    border-radius: 6px;
  }

  .journal-tab:hover {
    background: var(--bg-sidebar);
  }

  .journal-tab.active {
    font-weight: 700;
  }

  .about-rail {
    display: none;
  }

  .about-hero-section,
  .about-philosophy,
  .about-capabilities-section,
  .about-testimonials-section,
  .about-connect-section,
  .about-footer {
    padding-left: 24px;
    padding-right: 24px;
  }

  .testimonials-list {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-footer {
    flex-wrap: wrap;
    padding-left: 130px;
  }

  .about-hero {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-philosophy {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-values {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-value {
    padding-left: 0;
    border-left: none;
  }

  .about-connect {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-capabilities-groups {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-interests-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-main {
    padding: 56px 24px 56px;
  }

  .cv-hero-section,
  .cv-intro-section,
  .cv-timeline-section,
  .cv-expertise-section,
  .cv-details-section {
    padding-left: 24px;
    padding-right: 24px;
  }

  .cv-skills {
    padding: 32px 24px;
  }

  .cv-intro,
  .cv-skills,
  .cv-details-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cv-hero-with-photo {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cv-hero-photo {
    order: -1;
    aspect-ratio: 3 / 4;
  }

  .cv-hero-photo img {
    object-fit: cover;
    object-position: center;
  }

  .cv-contact-list-row {
    flex-direction: column;
    gap: 12px;
  }

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

  .cv-expertise-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .resources-main {
    padding: 40px 24px 56px;
  }

  .resources-hero h1 {
    font-size: 34px;
  }

  .resource-row {
    grid-template-columns: 24px 1fr;
  }
}

/* Resources page */

.resources-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 48px 80px;
}

.resources-hero {
  max-width: 720px;
}

.resources-hero h1 {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 48px;
  line-height: 1.15;
  white-space: pre-line;
}

.resources-hero p {
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 56ch;
}

.resources-updated {
  display: inline-block;
  margin-top: 16px;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.resource-category {
  margin-top: 56px;
}

.resource-category-header {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--text);
}

.resource-category-index {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  color: var(--accent-gold);
}

.resource-category-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.resource-list {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
}

.resource-row {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.resource-list .resource-row:first-child {
  border-top: none;
}

.resource-index {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13px;
  color: var(--muted);
}

.resource-title {
  font-size: 15px;
}

.resource-title .resource-title-text {
  font-weight: 700;
  color: var(--text);
}

.resource-title .resource-source {
  color: var(--muted);
}

.resource-note {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 70ch;
}

.resource-review-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--text);
  background: none;
  border: none;
  border-bottom: 1px solid var(--text);
  padding: 0 0 2px;
  cursor: pointer;
}

.resource-review-toggle .arrow {
  transition: transform 0.2s ease;
}

.resource-row.open .resource-review-toggle .arrow {
  transform: rotate(180deg);
}

.resource-review {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.25s ease, opacity 0.2s ease, margin-top 0.25s ease;
}

.resource-row.open .resource-review {
  max-height: 600px;
  opacity: 1;
  margin-top: 16px;
}

.resource-rating {
  margin-bottom: 10px;
  font-size: 12px;
  letter-spacing: 0.1em;
}

.resource-rating .filled {
  color: var(--accent-gold);
}

.resource-rating .empty {
  color: var(--border);
}

.resource-review-text {
  font-size: 12px;
  color: var(--text);
  line-height: 1.7;
  max-width: 70ch;
}

/* Language switcher */

.lang-switcher {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 70;
  display: inline-flex;
  width: fit-content;
  gap: 2px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

@media screen and (max-width: 800px) {
  .lang-switcher {
    position: static;
    margin: 32px 0 0 24px;
  }
}

.lang-switcher button {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--muted);
  background: none;
  border: none;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
}

.lang-switcher button.active {
  background: var(--text);
  color: #fff;
}

/* Print (CV PDF export) */

@media print {
  .site-topbar,
  .page-back-bar,
  .about-rail,
  .lang-switcher,
  .cv-download,
  .about-footer .back-to-top,
  .project-topbar,
  .sidebar,
  .notfound-header,
  .notfound-paths,
  .nav-toggle,
  .skip-link,
  .honeycomb-grid,
  .project-controls,
  .project-count,
  .journal-filters,
  .journal-tag-clear,
  .journal-map-section,
  .related-projects,
  .contact-modal-overlay,
  .index-footer .back-to-top,
  .journal-footer .journal-older,
  .project-footer .grid-link {
    display: none !important;
  }

  body {
    background: #fff;
    font-size: 11px;
  }

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

  .layout {
    display: block;
  }

  .project-main,
  .project-main-single {
    grid-template-columns: 1fr;
  }

  .cv-hero-section,
  .cv-intro-section,
  .cv-timeline-section,
  .cv-expertise-section,
  .cv-details-section {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }

  .cv-hero-section {
    padding-top: 0;
  }

  .cv-name {
    font-size: 30px;
  }

  .cv-hero-with-photo {
    gap: 32px;
  }

  .cv-hero-about {
    margin-top: 20px;
  }

  .cv-intro-section {
    padding-top: 20px;
  }

  .cv-skills-section {
    margin-top: 20px;
    background: none;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  .cv-skills {
    padding: 20px 0;
    gap: 40px;
  }

  .cv-timeline-section {
    padding-top: 20px;
  }

  .cv-timeline {
    margin-top: 12px;
  }

  .cv-timeline-item {
    padding: 12px 0;
    gap: 20px;
  }

  .cv-timeline-item h3 {
    font-size: 13px;
  }

  .cv-bullets,
  .cv-timeline-detail {
    margin-top: 8px;
  }

  .cv-expertise-section {
    padding-top: 20px;
  }

  .cv-expertise-grid {
    margin-top: 12px;
  }

  .about-icon {
    width: 18px;
    height: 18px;
    margin-bottom: 8px;
  }

  .cv-details-section {
    padding-top: 20px;
    padding-bottom: 0;
  }

  .deck-header,
  .deck-main {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }

  .deck-header {
    padding-top: 0;
  }

  #deck-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
  }

  .deck-entry {
    gap: 12px;
    page-break-inside: avoid;
  }
}

/* 404 page */

.notfound-page {
  min-height: 100vh;
}

.notfound-wrap {
  max-width: 900px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
}

.notfound-header .site-brand {
  display: inline-block;
}

.notfound-header .logo {
  display: block;
  height: 26px;
  width: auto;
}

.notfound-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6vh 0;
}

.notfound-hero {
  display: flex;
  align-items: baseline;
  gap: 20px;
}

.notfound-num {
  font-family: var(--font-mono);
  font-size: clamp(72px, 15vw, 180px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--text);
}

.notfound-label {
  font-family: var(--font-sans);
  font-size: clamp(18px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  padding-bottom: clamp(6px, 1.2vw, 14px);
}

.notfound-rule {
  margin: 28px 0 32px;
  height: 1px;
  max-width: 640px;
  background-image: linear-gradient(to right, var(--border) 0 8px, transparent 8px 14px);
  background-size: 14px 1px;
  background-repeat: repeat-x;
}

.notfound-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 20px;
}

.notfound-msg {
  max-width: 480px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 40px;
}

.notfound-paths {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 420px;
}

.notfound-paths a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 2px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}

.notfound-paths a:last-child {
  border-bottom: 1px solid var(--border);
}

.notfound-paths .n {
  color: var(--muted);
  font-family: var(--font-mono);
  font-weight: 400;
  margin-right: 10px;
}

.notfound-paths .arrow {
  color: var(--muted);
  transition: transform 0.18s ease, color 0.18s ease;
}

.notfound-paths a:hover .arrow {
  transform: translateX(4px);
  color: var(--accent);
}

.notfound-paths a:hover .n {
  color: var(--accent);
}

.notfound-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 24px;
  padding-bottom: 40px;
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--muted);
}

@media (max-width: 560px) {
  .notfound-hero {
    flex-direction: column;
    gap: 4px;
  }

  .notfound-label {
    padding-bottom: 0;
  }
}

/* Portfolio deck page */

.deck-page {
  page: deck;
}

@page deck {
  size: landscape;
  margin: 14mm;
}

.deck-header {
  max-width: 1120px;
  margin: 0 auto;
  padding: 64px 48px 32px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.deck-header h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px;
}

.deck-header p {
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.deck-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 48px 96px;
}

#deck-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px 40px;
}

.deck-entry {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.deck-entry-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-sidebar);
}

.deck-entry-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.deck-entry-category {
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}

.deck-entry-info h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px;
}

.deck-entry-description {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
}

@media (max-width: 720px) {
  .deck-header {
    padding: 56px 24px 32px;
  }

  .deck-main {
    padding: 40px 24px 64px;
  }

  #deck-list {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Accessibility utilities */

.noscript-banner {
  position: relative;
  z-index: 300;
  display: block;
  background: var(--text);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  text-align: center;
  padding: 14px 24px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 300;
  background: var(--text);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  padding: 10px 16px;
  border-radius: 4px;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 16px;
}
