:root {
  --paper: #f7f1e7;
  --paper-2: #fffaf1;
  --ink: #191814;
  --muted: #666058;
  --line: rgba(25, 24, 20, 0.15);
  --green: #254f43;
  --green-2: #dbe8dc;
  --red: #9c3f2f;
  --gold: #c39b4d;
  --blue: #24546b;
  --shadow: 0 18px 50px rgba(25, 24, 20, 0.1);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(25, 24, 20, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 72px 72px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration-color: rgba(156, 63, 47, 0.45);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--red);
}

p {
  margin: 0;
  overflow-wrap: break-word;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 241, 231, 0.9);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  width: min(var(--max), calc(100% - 36px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: max-content;
  text-decoration: none;
}

.brand-mark {
  min-height: 42px;
  padding-right: 16px;
  display: inline-flex;
  align-items: center;
  border-right: 1px solid var(--red);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1;
}

.brand-text {
  display: grid;
  gap: 1px;
}

.brand-name {
  font-size: 0.95rem;
  font-weight: 760;
  letter-spacing: 0;
}

.brand-role {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(37, 79, 67, 0.09);
  color: var(--green);
}

.section,
.hero {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
}

.hero-content,
.hero-visual,
.paper-card,
.paper-body,
.text-panel,
.timeline-item > div,
.contact-card,
.theme {
  min-width: 0;
}

.hero {
  min-height: min(820px, calc(100vh - 72px));
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(320px, 0.82fr);
  align-items: center;
  gap: clamp(32px, 6vw, 84px);
  padding: clamp(38px, 6vw, 72px) 0 44px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--green);
}

.hero h1 {
  max-width: 880px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.65rem, 5.2vw, 4.55rem);
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.mobile-line {
  display: inline;
}

.page-hero h1 {
  max-width: 880px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.45rem, 5vw, 4.2rem);
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.hero-copy {
  max-width: 700px;
  margin-top: 22px;
  color: #3e3931;
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper-2);
  font-weight: 760;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
  background: var(--green);
  border-color: var(--green);
  color: var(--paper-2);
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.button.secondary:hover {
  background: rgba(37, 79, 67, 0.1);
  border-color: var(--green);
  color: var(--green);
}

.meta-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 34px;
  border: 1px solid var(--line);
  background: var(--line);
}

.meta-item {
  padding: 18px;
  background: rgba(255, 250, 241, 0.76);
}

.meta-item strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  line-height: 1;
}

.meta-item span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.hero-visual {
  align-self: stretch;
  min-height: 500px;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 16px;
}

.portrait-frame {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  border: 1px solid var(--ink);
  background: var(--green-2);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  object-position: 50% 37%;
  filter: saturate(0.94) contrast(1.02);
}

.portrait-caption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: min(260px, calc(100% - 36px));
  padding: 14px;
  border: 1px solid rgba(255, 250, 241, 0.5);
  background: rgba(25, 24, 20, 0.72);
  color: var(--paper-2);
  font-size: 0.82rem;
}

.portrait-caption strong {
  display: block;
  margin-bottom: 4px;
  color: #fff;
  font-size: 0.9rem;
}

.visual-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.note {
  min-height: 82px;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 241, 0.78);
}

.note span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.note strong {
  display: block;
  margin-top: 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  line-height: 1.15;
}

.section {
  padding: clamp(58px, 9vw, 104px) 0;
}

.section-header {
  display: grid;
  grid-template-columns: minmax(240px, 0.46fr) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  margin-bottom: 34px;
}

.section-label {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-header h2,
.page-hero h1,
.text-panel h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1;
  font-weight: 500;
}

.section-header p {
  max-width: 700px;
  color: #403b34;
  font-size: 1.02rem;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.theme {
  min-height: 230px;
  padding: 24px;
  background: rgba(255, 250, 241, 0.82);
}

.theme svg {
  width: 72px;
  height: 72px;
  margin-bottom: 28px;
  color: var(--green);
}

.theme h3,
.paper-card h3,
.timeline-item h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.42rem;
  line-height: 1.12;
  font-weight: 540;
}

.theme p {
  margin-top: 14px;
  color: var(--muted);
}

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

.paper-grid.all {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.paper-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 250, 241, 0.86);
  box-shadow: 0 1px 0 rgba(25, 24, 20, 0.04);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.paper-card:hover {
  transform: translateY(-3px);
  border-color: rgba(25, 24, 20, 0.28);
  box-shadow: var(--shadow);
}

.paper-visual {
  height: 190px;
  display: grid;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 250, 241, 0.9), rgba(219, 232, 220, 0.52)),
    var(--paper-2);
}

.paper-visual svg {
  width: 100%;
  height: 100%;
}

.paper-body {
  display: grid;
  grid-auto-rows: max-content;
  align-content: start;
  gap: 12px;
  padding: 26px 22px 22px;
}

.paper-kicker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.paper-kicker span:first-child {
  min-width: 0;
}

.paper-kicker span:last-child {
  white-space: nowrap;
}

.paper-authors,
.paper-venue {
  color: #4b463f;
  font-size: 0.93rem;
}

.paper-venue {
  color: var(--muted);
}

.paper-body p:not(.paper-authors):not(.paper-venue):not(.paper-insight) {
  color: #37332d;
}

.paper-insight {
  padding-left: 12px;
  border-left: 2px solid var(--paper-accent, var(--red));
  color: #47413a;
  font-size: 0.95rem;
}

.tag-row,
.paper-links,
.filter-row,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid rgba(25, 24, 20, 0.13);
  border-radius: 999px;
  background: rgba(247, 241, 231, 0.75);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.paper-link {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(25, 24, 20, 0.18);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.15;
  text-decoration: none;
}

.paper-links:empty {
  display: none;
}

.paper-link:hover {
  border-color: var(--red);
  background: rgba(156, 63, 47, 0.08);
}

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

.paper-link.muted {
  color: var(--muted);
  cursor: default;
  pointer-events: none;
}

.paper-link.muted:hover {
  border-color: rgba(25, 24, 20, 0.18);
  background: transparent;
}

.filters {
  margin-bottom: 26px;
}

.filter-row button {
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.75);
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 750;
  cursor: pointer;
}

.filter-row button:hover,
.filter-row button.is-active {
  border-color: var(--green);
  background: rgba(37, 79, 67, 0.1);
  color: var(--green);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(280px, 0.58fr);
  gap: clamp(30px, 6vw, 72px);
  align-items: start;
}

.split-media-wide {
  grid-template-columns: minmax(0, 0.9fr) minmax(460px, 0.84fr);
  gap: clamp(28px, 5vw, 56px);
}

.text-panel {
  display: grid;
  gap: 22px;
}

.text-panel p {
  color: #403b34;
  font-size: 1.03rem;
}

.image-panel {
  position: sticky;
  top: 104px;
}

.image-panel img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 73% 48%;
  border: 1px solid var(--ink);
}

.image-panel.image-panel-landscape img {
  aspect-ratio: 3 / 2;
  object-position: 50% 50%;
}

.image-panel.image-panel-panorama img {
  aspect-ratio: 16 / 9;
  object-position: 72% 50%;
}

.image-panel.image-panel-casual img {
  aspect-ratio: 4 / 5;
  object-position: 42% 52%;
}

.wide-photo {
  width: 100%;
  height: min(58vw, 460px);
  object-fit: cover;
  object-position: 70% 45%;
  border: 1px solid var(--ink);
}

.timeline {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.timeline-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
  background: rgba(255, 250, 241, 0.82);
}

.timeline-date {
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 820;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.timeline-item p,
.list-lines li {
  color: var(--muted);
}

.list-lines {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
}

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

blockquote {
  margin: 0;
  padding: 24px;
  border-left: 3px solid var(--green);
  background: rgba(255, 250, 241, 0.82);
  color: #3d3932;
}

blockquote cite {
  display: block;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.84rem;
  font-style: normal;
  font-weight: 760;
}

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

.contact-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: start;
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.82);
}

.contact-card h3 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.42rem;
}

.contact-card p {
  color: var(--muted);
}

.contact-card .button,
.text-panel .button {
  width: max-content;
  margin-top: 20px;
}

.contact-card .button {
  align-self: end;
}

.page-hero {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(42px, 7vw, 74px) 0 30px;
  border-bottom: 1px solid var(--line);
}

.page-hero p {
  max-width: 780px;
  margin-top: 18px;
  color: #403b34;
  font-size: 1.12rem;
}

.footer {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 42px 0 54px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.page-hero + .section {
  padding-top: clamp(34px, 5vw, 56px);
}

.filters.reveal {
  opacity: 1;
  transform: none;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.mini-viz {
  width: 100%;
  height: 100%;
}

.viz-grid,
.viz-wire {
  fill: none;
  stroke: rgba(25, 24, 20, 0.22);
  stroke-width: 2;
}

.viz-line,
.viz-wave,
.viz-route {
  fill: none;
  stroke: var(--paper-accent, var(--red));
  stroke-width: 5;
  stroke-linecap: round;
}

.viz-line.cool,
.viz-wave.faint,
.viz-ring.faint {
  stroke: rgba(37, 79, 67, 0.34);
}

.viz-ring {
  fill: none;
  stroke: var(--paper-accent, var(--red));
  stroke-width: 3;
}

.viz-box,
.viz-device {
  fill: rgba(255, 250, 241, 0.78);
  stroke: rgba(25, 24, 20, 0.3);
  stroke-width: 2;
}

.viz-box.wide {
  fill: rgba(255, 250, 241, 0.9);
}

.viz-bar,
.viz-node {
  fill: rgba(37, 79, 67, 0.35);
}

.viz-bar.hot,
.viz-dot.hot,
.viz-node.hot {
  fill: var(--paper-accent, var(--red));
}

.viz-bar.cool,
.viz-dot.cool,
.viz-node.cool {
  fill: var(--green);
}

.viz-dot {
  fill: var(--ink);
}

.viz-check,
.viz-arrow {
  fill: none;
  stroke: var(--paper-accent, var(--red));
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.viz-label,
.viz-metric {
  fill: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.viz-metric {
  fill: var(--ink);
  text-anchor: start;
}

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

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

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 1080px) {
  .split-media-wide {
    grid-template-columns: 1fr;
  }

  .split-media-wide .image-panel {
    position: static;
  }
}

@media (max-width: 980px) {
  .hero,
  .split,
  .section-header {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 0;
  }

  .paper-grid,
  .paper-grid.all,
  .theme-grid,
  .quote-grid,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .image-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  body {
    background-size: 48px 48px;
  }

  .nav-wrap {
    width: calc(100vw - 24px);
    max-width: var(--max);
    min-height: 0;
    padding: 12px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .site-nav a {
    padding: 8px 10px;
    font-size: 0.82rem;
  }

  .section,
  .hero,
  .page-hero,
  .footer {
    width: calc(100vw - 24px);
    max-width: var(--max);
  }

  .eyebrow {
    align-items: flex-start;
    max-width: 100%;
    font-size: 0.68rem;
    line-height: 1.35;
  }

  .eyebrow::before {
    flex: 0 0 28px;
    width: 28px;
    margin-top: 0.55em;
  }

  .hero h1 {
    font-size: clamp(2rem, 9vw, 2.35rem);
    line-height: 1.03;
  }

  .hero h1 .mobile-line {
    display: block;
  }

  .hero-copy {
    max-width: 31ch;
  }

  .page-hero h1 {
    font-size: clamp(2rem, 9vw, 2.45rem);
    line-height: 1.04;
    max-width: 14ch;
  }

  .page-hero p,
  .filters {
    max-width: 31ch;
  }

  .meta-strip,
  .visual-notes,
  .paper-grid,
  .paper-grid.all,
  .theme-grid,
  .quote-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .portrait-frame,
  .portrait-frame img {
    min-height: 420px;
  }

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