:root {
  color-scheme: light;
  --paper: #f5f1ea;
  --paper-soft: #ebe4d9;
  --ink: #11110f;
  --ink-muted: #4c4a45;
  --line: rgba(17, 17, 15, 0.16);
  --line-strong: rgba(17, 17, 15, 0.34);
  --white: #fffdf8;
  --red: #8f1f18;
  --olive: #3e4632;
  --gold: #b99658;
  --shadow: 0 26px 70px rgba(17, 17, 15, 0.16);
  --max-width: 1180px;
  --header-height: 74px;
  font-family:
    "Inter", "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 12px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body::selection {
  background: var(--ink);
  color: var(--white);
}

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

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

button {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 clamp(20px, 5vw, 64px);
  color: var(--white);
  mix-blend-mode: difference;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  font-size: 0.77rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  padding-block: 6px;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: currentColor;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  --hero-image: url("assets/hero-java-idea.png");
  position: relative;
  display: grid;
  min-height: 88svh;
  padding: calc(var(--header-height) + 68px) clamp(22px, 6vw, 76px) 52px;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.28) 44%, rgba(0, 0, 0, 0.18)),
    var(--hero-image) center / cover no-repeat;
}

.hero::after {
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.28);
  content: "";
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(143, 31, 24, 0.28), transparent 18%),
    linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.32));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  align-self: end;
  width: min(820px, 100%);
}

.eyebrow {
  margin: 0 0 18px;
  color: currentColor;
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: clamp(3rem, 7.2vw, 7.9rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-summary {
  max-width: 650px;
  margin: 26px 0 0;
  color: rgba(255, 253, 248, 0.82);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-actions a,
.contact-links a,
.filter-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  padding: 10px 18px;
  color: inherit;
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.hero-actions a:hover,
.hero-actions a:focus-visible {
  background: var(--white);
  color: var(--ink);
}

.hero-index {
  position: absolute;
  right: clamp(22px, 5vw, 76px);
  bottom: 52px;
  z-index: 1;
  display: grid;
  width: min(280px, 34vw);
  gap: 16px;
  color: rgba(255, 253, 248, 0.78);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-index > span {
  color: var(--white);
  font-size: 0.95rem;
}

.hero-index div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-index div span {
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding-top: 7px;
}

.section-inner {
  width: min(var(--max-width), calc(100% - clamp(40px, 9vw, 128px)));
  margin-inline: auto;
}

.signal-section {
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.signal-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(420px, 1.4fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
}

.signal-grid > p {
  margin: 0;
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: clamp(1.35rem, 2.4vw, 2.3rem);
  line-height: 1.28;
}

.metric-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  list-style: none;
  background: var(--line);
}

.metric-list li {
  min-height: 118px;
  padding: 20px;
  background: var(--white);
}

.metric-list strong {
  display: block;
  color: var(--red);
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: clamp(1.65rem, 2.8vw, 2.8rem);
  font-weight: 500;
  line-height: 1;
}

.metric-list span {
  display: block;
  margin-top: 14px;
  color: var(--ink-muted);
  font-size: 0.86rem;
}

.section-block {
  padding: clamp(76px, 11vw, 138px) 0;
  background: var(--paper);
}

.section-block.is-paper {
  background: var(--white);
}

.section-block.is-ink {
  background: var(--ink);
  color: var(--white);
}

.section-heading,
.split-heading {
  display: grid;
  gap: 22px;
  margin-bottom: clamp(34px, 6vw, 62px);
}

.split-heading {
  grid-template-columns: minmax(280px, 0.92fr) minmax(280px, 0.58fr);
  align-items: end;
}

.section-heading h2,
.split-heading h2,
.contact-section h2 {
  max-width: 780px;
  margin: 0;
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: clamp(2.2rem, 4.8vw, 5.5rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: 0;
}

.split-heading p:not(.eyebrow) {
  margin: 0;
  color: color-mix(in srgb, currentColor 70%, transparent);
  font-size: clamp(1rem, 1.4vw, 1.13rem);
}

.domain-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.domain-card {
  display: grid;
  min-height: 360px;
  align-content: start;
  gap: 22px;
  padding: clamp(22px, 3vw, 34px);
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.domain-card h3,
.project-card h3,
.video-card h3 {
  margin: 0;
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: clamp(1.55rem, 2.1vw, 2.3rem);
  font-weight: 500;
  line-height: 1.12;
}

.domain-card p:not(.eyebrow),
.project-card p,
.video-card p {
  margin: 0;
  color: var(--ink-muted);
}

.domain-card span {
  align-self: end;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  color: var(--olive);
  font-size: 0.9rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.project-card {
  display: grid;
  min-height: 460px;
  gap: 26px;
  align-content: space-between;
  padding: clamp(22px, 3vw, 32px);
  background: #171713;
}

.project-card p {
  color: rgba(255, 253, 248, 0.68);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 7px 10px;
  color: rgba(255, 253, 248, 0.78);
  font-size: 0.78rem;
}

.mini-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin: 0;
  background: rgba(255, 255, 255, 0.18);
}

.mini-metrics div {
  min-height: 74px;
  padding: 14px;
  background: #11110f;
}

.mini-metrics dt {
  color: rgba(255, 253, 248, 0.5);
  font-size: 0.75rem;
}

.mini-metrics dd {
  margin: 4px 0 0;
  color: var(--white);
  font-size: 0.86rem;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.text-link {
  position: relative;
  color: currentColor;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.text-link::after {
  content: " /";
  color: var(--red);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.filter-button {
  min-height: 38px;
  padding: 8px 14px;
  border-color: var(--line-strong);
  color: var(--ink-muted);
  font-size: 0.86rem;
}

.filter-button:hover,
.filter-button:focus-visible,
.filter-button.is-active {
  background: var(--ink);
  color: var(--white);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.photo-tile {
  display: grid;
  grid-column: span 4;
  gap: 14px;
  margin: 0;
}

.photo-tile:nth-child(5n + 1) {
  grid-column: span 6;
}

.photo-tile:nth-child(5n + 4) {
  grid-column: span 5;
}

.photo-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(17, 17, 15, 0.05), rgba(143, 31, 24, 0.08)),
    var(--paper-soft);
}

.photo-frame::before {
  position: absolute;
  inset: 16px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(17, 17, 15, 0.18);
  color: rgba(17, 17, 15, 0.42);
  content: "PHOTO";
  font-size: 0.78rem;
  letter-spacing: 0.16em;
}

.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-tile img + .photo-frame::before,
.photo-tile:not(.is-missing) .photo-frame::before {
  content: none;
}

.photo-tile figcaption {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 14px;
  min-height: 74px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.photo-tile figcaption span {
  grid-column: 1 / -1;
  color: var(--ink-muted);
  font-size: 0.82rem;
}

.photo-tile figcaption strong {
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: 1.24rem;
  font-weight: 500;
}

.photo-tile figcaption em {
  color: var(--red);
  font-style: normal;
  font-size: 0.84rem;
}

.writing-list {
  border-top: 1px solid var(--line-strong);
}

.writing-row a {
  display: grid;
  grid-template-columns: minmax(150px, 0.38fr) minmax(240px, 0.78fr) minmax(280px, 1fr);
  gap: clamp(18px, 4vw, 42px);
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.writing-row span {
  color: var(--red);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.writing-row strong {
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 500;
  line-height: 1.18;
}

.writing-row p {
  margin: 0;
  color: var(--ink-muted);
}

.writing-row a:hover strong,
.writing-row a:focus-visible strong {
  color: var(--red);
}

.graph-layout {
  display: grid;
  gap: clamp(28px, 5vw, 52px);
}

.graph-panel {
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(rgba(17, 17, 15, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 15, 0.04) 1px, transparent 1px),
    var(--white);
  background-size: 42px 42px;
  box-shadow: var(--shadow);
}

.graph-panel svg {
  display: block;
  width: 100%;
  min-height: 360px;
}

.graph-edges line {
  stroke: rgba(17, 17, 15, 0.18);
  stroke-width: 1;
}

.graph-node circle {
  fill: var(--white);
  stroke: rgba(17, 17, 15, 0.36);
  stroke-width: 1.5;
}

.graph-node rect {
  fill: rgba(255, 253, 248, 0.92);
  stroke: rgba(17, 17, 15, 0.24);
  stroke-width: 1.2;
}

.graph-node.is-center circle {
  fill: var(--ink);
  stroke: var(--ink);
}

.graph-node.is-group circle {
  fill: #e9dfd1;
}

.graph-node text {
  fill: var(--ink);
  dominant-baseline: middle;
  font-size: 19px;
  text-anchor: middle;
}

.graph-node.is-center text {
  fill: var(--white);
  font-size: 21px;
}

.graph-node.is-item text {
  font-size: 13px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.22);
}

.video-card {
  min-height: 300px;
  padding: clamp(24px, 4vw, 38px);
  background: #171713;
}

.video-card span {
  display: block;
  margin-bottom: 60px;
  color: rgba(255, 253, 248, 0.55);
  font-size: 0.8rem;
}

.video-card p {
  margin: 18px 0 28px;
  color: rgba(255, 253, 248, 0.68);
}

.contact-section {
  padding: clamp(86px, 12vw, 150px) 0;
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 0.72fr);
  gap: clamp(34px, 7vw, 94px);
  align-items: start;
}

.contact-board {
  border-top: 1px solid var(--line-strong);
}

.contact-board dl {
  margin: 0;
}

.contact-board dl div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.contact-board dt {
  color: var(--ink-muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-board dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.contact-board dd a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 0.24em;
}

.contact-board dd a:hover,
.contact-board dd a:focus-visible {
  text-decoration: underline;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.contact-links a {
  border-color: var(--line-strong);
}

.contact-links a:hover,
.contact-links a:focus-visible {
  background: var(--ink);
  color: var(--white);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 28px clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-muted);
  font-size: 0.82rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

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

@media (max-width: 980px) {
  .hero {
    min-height: 86svh;
  }

  .hero-index {
    position: relative;
    right: auto;
    bottom: auto;
    align-self: end;
    width: min(520px, 100%);
    margin-top: 42px;
  }

  .signal-grid,
  .split-heading,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .metric-list,
  .domain-grid,
  .project-grid,
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .domain-card {
    min-height: 300px;
  }

  .writing-row a {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    justify-content: flex-start;
  }

  .photo-tile,
  .photo-tile:nth-child(5n + 1),
  .photo-tile:nth-child(5n + 4) {
    grid-column: span 6;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 66px;
  }

  .site-header {
    mix-blend-mode: normal;
    background: rgba(17, 17, 15, 0.84);
    backdrop-filter: blur(18px);
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: var(--header-height);
    right: 16px;
    left: 16px;
    display: grid;
    gap: 0;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(17, 17, 15, 0.95);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

  .site-header.is-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 14px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

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

  .hero {
    min-height: 82svh;
    padding-top: calc(var(--header-height) + 46px);
    background-position: 58% center;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 12vw, 4.05rem);
  }

  .hero-actions a {
    flex: 1 1 150px;
  }

  .section-inner {
    width: min(100% - 36px, var(--max-width));
  }

  .section-block,
  .contact-section {
    padding: 68px 0;
  }

  .metric-list,
  .domain-grid,
  .project-grid,
  .video-grid,
  .contact-board dl div {
    grid-template-columns: 1fr;
  }

  .metric-list li {
    min-height: 104px;
  }

  .project-card {
    min-height: 390px;
  }

  .photo-grid {
    gap: 26px;
  }

  .photo-tile,
  .photo-tile:nth-child(5n + 1),
  .photo-tile:nth-child(5n + 4) {
    grid-column: 1 / -1;
  }

  .photo-frame {
    aspect-ratio: 5 / 6;
  }

  .graph-panel {
    overflow: hidden;
  }

  .graph-panel svg {
    min-height: 310px;
  }

  .site-footer {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Identity/resource refinements. */
.hero-avatar {
  width: 66px;
  height: 66px;
  margin: 0 0 26px;
  overflow: hidden;
  border: 1px solid rgba(251, 250, 246, 0.58);
  border-radius: 50%;
  background: rgba(251, 250, 246, 0.08);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

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

.hero h1 {
  max-width: 620px;
  font-size: clamp(3.25rem, 6.2vw, 5.45rem);
  line-height: 1;
}

.hero-name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 18px;
}

.hero-handle {
  color: rgba(251, 250, 246, 0.58);
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.2vw, 1.18rem);
  font-weight: 500;
  letter-spacing: 0;
}

.hero-alias {
  margin: 18px 0 0;
  color: rgba(251, 250, 246, 0.58);
  font-size: 0.94rem;
}

.photo-frame a {
  display: block;
  width: 100%;
  height: 100%;
}

@media (max-width: 720px) {
  .hero-avatar {
    width: 56px;
    height: 56px;
    margin-bottom: 22px;
  }

  .hero h1 {
    font-size: clamp(2.85rem, 10.4vw, 3.95rem);
  }
}

/* Definitive mobile reflow. Keep content visible instead of clipping it. */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 720px) {
  .hero,
  .signal-section,
  .section-block,
  .contact-section,
  .graph-panel {
    overflow: visible !important;
  }

  .section-inner {
    width: calc(100% - 38px) !important;
    max-width: calc(100% - 38px) !important;
    min-width: 0 !important;
  }

  .hero {
    min-height: auto !important;
  }

  .hero-content,
  .hero-index {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .hero-index {
    position: relative !important;
    right: auto !important;
    bottom: auto !important;
    margin-top: 52px !important;
  }

  .signal-grid,
  .split-heading,
  .project-card,
  .writing-row a,
  .contact-grid,
  .contact-board dl div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .metric-list {
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .metric-list li {
    min-width: 0 !important;
  }

  .metric-list strong,
  .metric-list span,
  .hero-index span,
  .split-heading h2,
  .section-heading h2,
  .writing-row strong,
  .project-card h3,
  .project-card p,
  .video-card h3,
  .video-card p,
  .contact-board dd {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .photo-grid,
  .motion-archive .video-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .photo-tile,
  .photo-tile:nth-child(4n + 1),
  .photo-tile:nth-child(4n + 2),
  .photo-tile:nth-child(4n + 3),
  .photo-tile:nth-child(4n + 4),
  .photo-tile:nth-child(5n + 1),
  .photo-tile:nth-child(5n + 4) {
    grid-column: 1 / -1 !important;
    margin-top: 0 !important;
  }

  .graph-panel svg {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    aspect-ratio: 1000 / 680;
  }

  .hero-actions,
  .hero-index div,
  .filter-bar,
  .contact-links,
  .inline-links,
  .tag-list {
    max-width: 100%;
    flex-wrap: wrap;
  }

  .site-footer {
    display: grid !important;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 390px) {
  .metric-list {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Final mobile reflow: show all content in the current viewport. */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 720px) {
  .hero,
  .signal-section,
  .section-block,
  .contact-section {
    overflow: visible;
  }

  .section-inner {
    width: calc(100% - 38px) !important;
    max-width: calc(100% - 38px) !important;
    min-width: 0;
  }

  .hero {
    min-height: auto;
    padding-bottom: 46px;
  }

  .hero-content,
  .hero-index {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
  }

  .hero-index {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 52px;
  }

  .hero-index div,
  .hero-actions,
  .filter-bar,
  .contact-links,
  .inline-links,
  .tag-list {
    display: flex;
    max-width: 100%;
    flex-wrap: wrap;
  }

  .signal-grid,
  .split-heading,
  .project-card,
  .writing-row a,
  .contact-grid,
  .contact-board dl div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) !important;
    min-width: 0;
  }

  .signal-grid {
    gap: 44px;
  }

  .metric-list {
    width: 100%;
    max-width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .metric-list li {
    min-width: 0;
    padding-right: 12px;
  }

  .metric-list strong,
  .metric-list span,
  .split-heading h2,
  .section-heading h2,
  .writing-row strong,
  .project-card h3,
  .video-card h3,
  .contact-board dd {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .photo-grid,
  .motion-archive .video-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .photo-tile,
  .photo-tile:nth-child(4n + 1),
  .photo-tile:nth-child(4n + 2),
  .photo-tile:nth-child(4n + 3),
  .photo-tile:nth-child(4n + 4),
  .photo-tile:nth-child(5n + 1),
  .photo-tile:nth-child(5n + 4) {
    grid-column: 1 / -1 !important;
    margin-top: 0 !important;
  }

  .graph-panel {
    max-width: 100%;
    overflow: visible;
  }

  .graph-panel svg {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    aspect-ratio: 1000 / 680;
    height: auto;
  }

  .site-footer {
    display: grid;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 390px) {
  .metric-list {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Mobile containment: never require horizontal page movement. */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

main,
section,
.site-header,
.hero,
.section-inner,
.signal-grid,
.split-heading,
.project-card,
.writing-row a,
.contact-grid,
.photo-grid,
.graph-panel,
.contact-board,
.site-footer {
  min-width: 0;
  max-width: 100%;
}

.graph-panel {
  overflow: hidden;
}

.graph-panel svg {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto;
}

@supports not (overflow-x: clip) {
  html,
  body {
    overflow-x: hidden;
  }
}

@media (max-width: 720px) {
  .site-header {
    width: 100%;
  }

  .site-nav {
    right: 18px;
    left: 18px;
    max-width: calc(100vw - 36px);
  }

  .hero,
  .section-block,
  .signal-section,
  .contact-section {
    overflow: hidden;
  }

  .hero-content,
  .hero-index {
    width: 100%;
    max-width: 100%;
  }

  .section-inner {
    width: calc(100% - 38px);
    max-width: calc(100% - 38px);
  }

  .signal-grid,
  .split-heading,
  .project-card,
  .writing-row a,
  .contact-grid,
  .contact-board dl div {
    grid-template-columns: minmax(0, 1fr);
  }

  .metric-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photo-grid,
  .motion-archive .video-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .photo-tile,
  .photo-tile:nth-child(4n + 1),
  .photo-tile:nth-child(4n + 2),
  .photo-tile:nth-child(4n + 3),
  .photo-tile:nth-child(4n + 4),
  .photo-tile:nth-child(5n + 1),
  .photo-tile:nth-child(5n + 4) {
    grid-column: 1 / -1;
    margin-top: 0;
  }

  .graph-panel svg {
    aspect-ratio: 1000 / 680;
    min-height: 0;
  }

  .graph-node text {
    font-size: 17px;
  }

  .graph-node.is-item text {
    font-size: 12px;
  }

  .filter-bar,
  .hero-actions,
  .contact-links,
  .inline-links,
  .tag-list {
    max-width: 100%;
  }

  .filter-button,
  .hero-actions a,
  .contact-links a,
  .text-link,
  .tag-list li {
    white-space: normal;
  }

  .site-footer {
    overflow-wrap: anywhere;
  }
}

/* Second pass: quieter artist archive direction. */
:root {
  --paper: #f3f1ec;
  --paper-soft: #e6e2da;
  --porcelain: #fbfaf6;
  --ink: #0f100e;
  --ink-muted: #555954;
  --cold: #b9c8cf;
  --steel: #6d7679;
  --line: rgba(15, 16, 14, 0.13);
  --line-strong: rgba(15, 16, 14, 0.28);
  --red: #7c1f1a;
  --shadow: 0 40px 120px rgba(15, 16, 14, 0.14);
  --max-width: 1120px;
}

*,
*::before,
*::after {
  letter-spacing: 0 !important;
}

body {
  background:
    linear-gradient(90deg, rgba(15, 16, 14, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 25vw 100%;
  color: var(--ink);
}

.site-header {
  height: 78px;
  padding-inline: clamp(22px, 5vw, 72px);
  color: var(--porcelain);
}

.brand-mark,
.nav-toggle {
  width: 40px;
  height: 40px;
  border-color: rgba(251, 250, 246, 0.72);
  font-size: 0.76rem;
}

.site-nav {
  gap: clamp(18px, 3.4vw, 42px);
  color: rgba(251, 250, 246, 0.82);
  font-size: 0.76rem;
}

.hero {
  min-height: 96svh;
  padding: calc(var(--header-height) + 82px) clamp(24px, 6vw, 86px) 72px;
  background:
    linear-gradient(90deg, rgba(4, 5, 5, 0.82), rgba(8, 11, 12, 0.48) 43%, rgba(8, 11, 12, 0.24)),
    linear-gradient(180deg, rgba(185, 200, 207, 0.18), transparent 34%),
    var(--hero-image) center / cover no-repeat;
}

.hero::before {
  content: none;
}

.hero-shade {
  background:
    linear-gradient(115deg, rgba(185, 200, 207, 0.24), transparent 26%),
    linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.38));
}

.hero-content {
  align-self: center;
  width: min(690px, 100%);
  padding-left: clamp(0px, 2vw, 34px);
}

.eyebrow {
  margin-bottom: 22px;
  color: currentColor;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: none;
}

.hero h1 {
  max-width: 860px;
  font-family: "Hiragino Mincho ProN", "Songti SC", "STSong", serif;
  font-size: clamp(5.2rem, 10vw, 9.8rem);
  font-weight: 400;
  line-height: 0.96;
}

.hero-statement {
  max-width: 520px;
  margin: 42px 0 0;
  color: rgba(251, 250, 246, 0.92);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: clamp(1.1rem, 1.8vw, 1.42rem);
  font-weight: 350;
  line-height: 1.7;
}

.hero-summary {
  max-width: 440px;
  margin-top: 10px;
  color: rgba(251, 250, 246, 0.58);
  font-size: 0.96rem;
}

.hero-actions {
  gap: 28px;
  margin-top: 46px;
}

.hero-actions a,
.contact-links a,
.filter-button {
  min-height: auto;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  padding: 0 0 7px;
  background: transparent;
}

.hero-actions a:hover,
.hero-actions a:focus-visible,
.contact-links a:hover,
.contact-links a:focus-visible,
.filter-button:hover,
.filter-button:focus-visible,
.filter-button.is-active {
  background: transparent;
  color: var(--cold);
}

.hero-index {
  right: clamp(24px, 6vw, 86px);
  bottom: 70px;
  width: min(360px, 34vw);
  gap: 20px;
  color: rgba(251, 250, 246, 0.56);
  font-size: 0.76rem;
  text-transform: none;
}

.hero-index > span {
  color: rgba(251, 250, 246, 0.86);
}

.hero-index div {
  gap: 12px 18px;
}

.hero-index div span {
  border-top-color: rgba(185, 200, 207, 0.36);
  color: rgba(251, 250, 246, 0.6);
}

.section-inner {
  width: min(var(--max-width), calc(100% - clamp(48px, 12vw, 164px)));
}

.signal-section {
  padding: clamp(100px, 14vw, 168px) 0;
  border-bottom: 1px solid var(--line);
  background: var(--porcelain);
}

.signal-grid {
  grid-template-columns: minmax(300px, 1fr) minmax(280px, 0.86fr);
  gap: clamp(52px, 8vw, 110px);
}

.signal-grid > p {
  max-width: 700px;
  font-family: "Hiragino Mincho ProN", "Songti SC", serif;
  font-size: clamp(1.5rem, 3.2vw, 3.4rem);
  font-weight: 400;
  line-height: 1.38;
}

.metric-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 0;
  border-top: 1px solid var(--line-strong);
  background: transparent;
}

.metric-list li {
  min-height: 132px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.metric-list strong {
  color: var(--ink);
  font-family: "Didot", "Bodoni 72", "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 400;
}

.section-block {
  padding: clamp(118px, 17vw, 220px) 0;
}

.section-block.is-ink {
  background: #10110f;
}

.section-heading,
.split-heading {
  gap: clamp(24px, 4vw, 44px);
  margin-bottom: clamp(58px, 9vw, 112px);
}

.split-heading {
  grid-template-columns: minmax(300px, 0.92fr) minmax(260px, 0.48fr);
}

.section-heading h2,
.split-heading h2,
.contact-section h2 {
  max-width: 820px;
  font-family: "Didot", "Bodoni 72", "Hiragino Mincho ProN", "Songti SC", serif;
  font-size: clamp(2.55rem, 6.2vw, 7.1rem);
  font-weight: 400;
  line-height: 0.98;
}

.split-heading p:not(.eyebrow) {
  max-width: 430px;
  color: color-mix(in srgb, currentColor 58%, transparent);
  font-size: 0.98rem;
  line-height: 1.9;
}

.domain-grid {
  display: block;
  border: 0;
}

.domain-card {
  grid-template-columns: 180px minmax(210px, 0.55fr) minmax(280px, 1fr);
  min-height: auto;
  align-items: baseline;
  gap: clamp(22px, 5vw, 72px);
  padding: 42px 0;
  border: 0;
  border-top: 1px solid var(--line-strong);
}

.domain-card:last-child {
  border-bottom: 1px solid var(--line-strong);
}

.domain-card h3,
.project-card h3,
.video-card h3 {
  font-family: "Didot", "Bodoni 72", "Hiragino Mincho ProN", "Songti SC", serif;
  font-size: clamp(1.8rem, 3vw, 3.15rem);
  font-weight: 400;
}

.domain-card p:not(.eyebrow),
.project-card p,
.video-card p {
  color: color-mix(in srgb, currentColor 62%, transparent);
}

.domain-card span {
  align-self: auto;
  border-top: 0;
  padding-top: 0;
  color: var(--steel);
  line-height: 1.9;
}

.project-grid {
  display: block;
  border: 0;
  border-top: 1px solid rgba(251, 250, 246, 0.28);
  background: transparent;
}

.project-card {
  grid-template-columns: 72px minmax(260px, 1fr) minmax(180px, 0.34fr) minmax(90px, auto);
  min-height: auto;
  align-items: start;
  gap: clamp(22px, 4vw, 52px);
  padding: clamp(38px, 6vw, 64px) 0;
  border-bottom: 1px solid rgba(251, 250, 246, 0.18);
  background: transparent;
}

.work-index {
  color: rgba(185, 200, 207, 0.76);
  font-family: "Didot", "Bodoni 72", "Times New Roman", serif;
  font-size: 1.4rem;
}

.project-copy {
  display: grid;
  gap: 16px;
}

.project-card p {
  color: rgba(251, 250, 246, 0.58);
}

.tag-list {
  align-content: start;
  gap: 10px 18px;
}

.tag-list li {
  border: 0;
  border-bottom: 1px solid rgba(185, 200, 207, 0.36);
  border-radius: 0;
  padding: 0 0 6px;
  color: rgba(251, 250, 246, 0.62);
  font-size: 0.82rem;
}

.inline-links {
  justify-content: flex-end;
}

.text-link {
  color: currentColor;
  font-size: 0.82rem;
  text-transform: none;
}

.text-link::after {
  color: var(--cold);
}

.filter-bar {
  gap: 16px 24px;
}

.filter-button {
  color: var(--ink-muted);
  font-size: 0.88rem;
}

.photo-grid {
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(32px, 5vw, 72px) clamp(22px, 4vw, 52px);
}

.photo-tile,
.photo-tile:nth-child(5n + 1),
.photo-tile:nth-child(5n + 4) {
  grid-column: span 6;
  gap: 18px;
}

.photo-tile:nth-child(4n + 1) {
  grid-column: span 7;
}

.photo-tile:nth-child(4n + 2) {
  grid-column: span 5;
  margin-top: clamp(70px, 9vw, 130px);
}

.photo-tile:nth-child(4n + 3) {
  grid-column: span 5;
}

.photo-tile:nth-child(4n + 4) {
  grid-column: span 7;
  margin-top: clamp(46px, 7vw, 96px);
}

.photo-frame {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  background:
    linear-gradient(130deg, rgba(185, 200, 207, 0.32), transparent 34%),
    linear-gradient(180deg, rgba(251, 250, 246, 0.2), transparent),
    #ded9d0;
  box-shadow: var(--shadow);
}

.photo-frame::before {
  inset: 22px;
  border-color: rgba(15, 16, 14, 0.14);
  color: rgba(15, 16, 14, 0.28);
  content: "IMAGE PENDING";
  font-size: 0.72rem;
}

.photo-tile figcaption {
  min-height: auto;
  border-top-color: var(--line);
}

.photo-tile figcaption strong {
  font-family: "Hiragino Mincho ProN", "Songti SC", serif;
  font-size: clamp(1.18rem, 1.6vw, 1.58rem);
  font-weight: 400;
}

.photo-tile figcaption em {
  color: var(--steel);
}

.writing-list {
  border-top-color: var(--line-strong);
}

.writing-row a {
  grid-template-columns: minmax(160px, 0.3fr) minmax(300px, 0.9fr) minmax(260px, 0.55fr);
  padding: clamp(30px, 5vw, 52px) 0;
}

.writing-row span {
  color: var(--red);
  font-size: 0.82rem;
  text-transform: none;
}

.writing-row strong {
  font-family: "Hiragino Mincho ProN", "Songti SC", serif;
  font-size: clamp(1.36rem, 2.2vw, 2.25rem);
  font-weight: 400;
}

.video-grid {
  display: block;
  border: 0;
  border-top: 1px solid rgba(251, 250, 246, 0.26);
  background: transparent;
}

.video-card {
  min-height: auto;
  padding: clamp(38px, 6vw, 64px) 0;
  border-bottom: 1px solid rgba(251, 250, 246, 0.16);
  background: transparent;
}

.video-card span {
  margin-bottom: 26px;
}

.motion-archive {
  margin-top: clamp(74px, 10vw, 132px);
  border-top: 1px solid var(--line-strong);
  padding-top: clamp(34px, 5vw, 58px);
}

.motion-archive .eyebrow {
  color: var(--ink-muted);
}

.motion-archive .video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.motion-archive .video-card {
  padding: clamp(26px, 4vw, 42px);
  border: 0;
  background: var(--porcelain);
}

.motion-archive .video-card span {
  color: var(--steel);
}

.motion-archive .video-card p {
  color: var(--ink-muted);
}

.motion-archive .text-link {
  color: var(--ink);
}

.contact-section {
  padding: clamp(120px, 17vw, 220px) 0;
  background: var(--porcelain);
}

.contact-board {
  border-top-color: var(--line-strong);
}

.contact-board dl div {
  padding: 26px 0;
}

.contact-links {
  gap: 18px 28px;
}

.site-footer {
  padding: 32px clamp(24px, 6vw, 86px);
  background: var(--ink);
  color: rgba(251, 250, 246, 0.58);
}

@media (max-width: 980px) {
  .hero h1 {
    font-size: clamp(4.6rem, 11.4vw, 7rem);
  }

  .hero {
    min-height: 92svh;
  }

  .hero-index {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(520px, 100%);
    margin-top: 64px;
  }

  .domain-card,
  .project-card,
  .writing-row a {
    grid-template-columns: 1fr;
  }

  .inline-links {
    justify-content: flex-start;
  }

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

@media (max-width: 720px) {
  body {
    background-size: 50vw 100%;
  }

  .site-header {
    height: var(--header-height);
    background: rgba(15, 16, 14, 0.82);
  }

  .site-nav {
    gap: 0;
    color: rgba(251, 250, 246, 0.88);
  }

  .hero {
    min-height: 92svh;
    padding: calc(var(--header-height) + 52px) 22px 44px;
    background-position: 60% center;
  }

  .hero::before {
    left: 22px;
  }

  .hero-content {
    align-self: end;
    padding-left: 0;
  }

  .hero h1 {
    font-size: clamp(3rem, 11.6vw, 4.95rem);
  }

  .hero-statement {
    margin-top: 30px;
    font-size: 1.08rem;
  }

  .hero-actions a {
    flex: 0 0 auto;
  }

  .section-inner {
    width: min(100% - 38px, var(--max-width));
  }

  .signal-section,
  .section-block,
  .contact-section {
    padding: 86px 0;
  }

  .signal-grid,
  .split-heading,
  .contact-grid {
    gap: 42px;
  }

  .metric-list {
    grid-template-columns: 1fr 1fr;
  }

  .domain-card {
    padding: 34px 0;
  }

  .project-card {
    gap: 20px;
    padding: 42px 0;
  }

  .photo-tile,
  .photo-tile:nth-child(4n + 1),
  .photo-tile:nth-child(4n + 2),
  .photo-tile:nth-child(4n + 3),
  .photo-tile:nth-child(4n + 4) {
    grid-column: 1 / -1;
    margin-top: 0;
  }

  .photo-frame {
    aspect-ratio: 4 / 5;
  }

  .writing-row a {
    gap: 14px;
  }

  .motion-archive .video-grid {
    grid-template-columns: 1fr;
  }
}

/* Final identity placement overrides. */
.hero-avatar {
  width: 66px;
  height: 66px;
  margin: 0 0 26px;
  overflow: hidden;
  border: 1px solid rgba(251, 250, 246, 0.58);
  border-radius: 50%;
  background: rgba(251, 250, 246, 0.08);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

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

.hero h1 {
  max-width: 620px;
  font-size: clamp(3.25rem, 6.2vw, 5.45rem);
  line-height: 1;
}

.hero-alias {
  margin: 18px 0 0;
  color: rgba(251, 250, 246, 0.58);
  font-size: 0.94rem;
}

.photo-frame a {
  display: block;
  width: 100%;
  height: 100%;
}

@media (max-width: 720px) {
  .hero-avatar {
    width: 56px;
    height: 56px;
    margin-bottom: 22px;
  }

  .hero h1 {
    font-size: clamp(2.85rem, 10.4vw, 3.95rem);
  }
}

/* Final footer composition. */
.site-footer {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  justify-content: center;
  justify-items: center;
  gap: 8px;
  box-sizing: border-box;
  width: 100%;
  padding: 34px clamp(24px, 6vw, 86px);
  text-align: center;
  overflow-wrap: anywhere;
}

.site-footer span {
  display: block;
  width: 100%;
  max-width: min(100%, 760px);
  margin: 0 auto;
  text-align: center;
}

.site-footer [data-footer="content"] {
  color: rgba(251, 250, 246, 0.68);
  font-size: 0.84rem;
  line-height: 1.7;
}

.site-footer [data-footer="signature"] {
  color: rgba(251, 250, 246, 0.42);
  font-size: 0.82rem;
  font-style: italic;
  line-height: 1.75;
}

.site-footer [data-footer="icp"] {
  color: rgba(251, 250, 246, 0.48);
  font-size: 0.78rem;
  line-height: 1.6;
}

/* Page 1 final composition and responsive menu. */
:root {
  --menu-hero-image: url("assets/hero-java-idea.png");
  --mobile-header-bg: rgba(15, 16, 14, 0.82);
  --mobile-menu-bg:
    linear-gradient(125deg, rgba(26, 31, 29, 0.94), rgba(74, 67, 52, 0.88)),
    var(--menu-hero-image) center / cover no-repeat;
  --mobile-menu-fg: var(--porcelain);
  --mobile-menu-line: rgba(251, 250, 246, 0.2);
}

body[data-menu-tone="hero"] {
  --mobile-header-bg: rgba(15, 16, 14, 0.82);
  --mobile-menu-bg:
    linear-gradient(125deg, rgba(24, 29, 27, 0.93), rgba(93, 83, 63, 0.86)),
    var(--menu-hero-image) center / cover no-repeat;
  --mobile-menu-fg: var(--porcelain);
  --mobile-menu-line: rgba(251, 250, 246, 0.2);
}

body[data-menu-tone="paper"] {
  --mobile-header-bg: rgba(235, 228, 217, 0.86);
  --mobile-menu-bg:
    linear-gradient(90deg, rgba(15, 16, 14, 0.055) 1px, transparent 1px),
    #ebe4d9;
  --mobile-menu-fg: var(--ink);
  --mobile-menu-line: rgba(15, 16, 14, 0.22);
}

body[data-menu-tone="ink"] {
  --mobile-header-bg: rgba(16, 17, 15, 0.86);
  --mobile-menu-bg:
    linear-gradient(90deg, rgba(185, 200, 207, 0.08) 1px, transparent 1px),
    #10110f;
  --mobile-menu-fg: var(--porcelain);
  --mobile-menu-line: rgba(251, 250, 246, 0.2);
}

body[data-menu-tone="photo"] {
  --mobile-header-bg: rgba(226, 222, 213, 0.86);
  --mobile-menu-bg:
    linear-gradient(90deg, rgba(15, 16, 14, 0.05) 1px, transparent 1px),
    #e2ded5;
  --mobile-menu-fg: var(--ink);
  --mobile-menu-line: rgba(15, 16, 14, 0.22);
}

.hero {
  padding-top: calc(var(--header-height) + 82px);
}

.hero-content {
  align-self: center !important;
  width: min(690px, 100%);
  padding-top: 0;
}

.hero-statement {
  margin-top: 42px;
}

.hero-summary {
  margin-top: 10px;
}

.hero-actions {
  gap: 28px;
  margin-top: 46px;
}

.hero-index {
  bottom: clamp(48px, 7vh, 72px);
}

@media (max-width: 720px) {
  body.menu-open {
    overflow: hidden;
  }

  body[data-menu-tone="paper"] .site-header,
  body[data-menu-tone="photo"] .site-header {
    color: var(--ink);
  }

  body[data-menu-tone="hero"] .site-header,
  body[data-menu-tone="ink"] .site-header {
    color: var(--porcelain);
  }

  .site-header {
    background: var(--mobile-header-bg) !important;
    backdrop-filter: blur(18px) !important;
    transition:
      color 220ms ease,
      background 220ms ease;
  }

  .site-header.is-open {
    background: transparent !important;
    backdrop-filter: none !important;
    color: var(--mobile-menu-fg) !important;
  }

  .brand-mark,
  .nav-toggle {
    position: relative;
    z-index: 22;
  }

  .site-header.is-open .brand-mark,
  .site-header.is-open .nav-toggle {
    border-color: color-mix(in srgb, var(--mobile-menu-fg) 68%, transparent);
  }

  .nav-toggle span {
    transition:
      transform 180ms ease,
      opacity 180ms ease;
  }

  .site-header.is-open .nav-toggle span:first-child {
    transform: translateY(6px) rotate(34deg);
  }

  .site-header.is-open .nav-toggle span:last-child {
    transform: translateY(-6px) rotate(-34deg);
  }

  .site-nav {
    position: fixed !important;
    inset: 0 !important;
    z-index: 21;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: clamp(18px, 4.4vh, 32px) !important;
    width: 100vw !important;
    max-width: 100vw !important;
    min-height: 100dvh;
    padding: calc(var(--header-height) + 58px) clamp(30px, 10vw, 72px) 56px !important;
    border: 0 !important;
    background: var(--mobile-menu-bg) !important;
    color: var(--mobile-menu-fg) !important;
    opacity: 0;
    pointer-events: none;
    transform: none !important;
    transition: opacity 220ms ease;
  }

  .site-header.is-open .site-nav {
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    width: 100%;
    border: 0 !important;
    padding: 0 0 clamp(14px, 2.6vh, 22px) !important;
    color: inherit;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
  }

  .site-nav a::after {
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: var(--mobile-menu-line);
    opacity: 1;
    transform: none;
  }

  .site-nav a:last-child::after {
    content: none;
  }

  .hero {
    min-height: 66svh !important;
    padding-top: calc(var(--header-height) + 36px) !important;
    padding-bottom: 30px !important;
  }

  .hero-content {
    align-self: end !important;
    padding-top: 0 !important;
  }

  .hero-name {
    gap: 8px 12px;
  }

  .hero-handle {
    font-size: 1rem;
  }

  .hero-statement {
    margin-top: 36px !important;
  }

  .hero-actions {
    gap: 22px;
    margin-top: 34px !important;
  }

  .hero-index {
    margin-top: 34px !important;
  }
}

/* Knowledge graph: section layout. */
#graph {
  padding-top: clamp(96px, 13vw, 168px);
  padding-bottom: clamp(108px, 15vw, 190px);
  background: var(--paper);
}

#graph .graph-layout {
  gap: clamp(16px, 3vw, 34px);
}

#graph .section-heading {
  margin-bottom: clamp(8px, 2vw, 18px);
}

#graph .section-heading h2 {
  display: none;
}

#graph .eyebrow {
  margin-bottom: 0;
  color: rgba(17, 17, 15, 0.48);
}

#graph .graph-panel {
  position: relative;
  border: 0 !important;
  background:
    linear-gradient(180deg, rgba(251, 250, 246, 0.62), rgba(235, 228, 217, 0.2)),
    transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

@media (max-width: 720px) {
  #graph {
    padding-top: 86px;
    padding-bottom: 96px;
  }
}

/* Knowledge graph: scrolling directed tags. */
.graph-stage {
  position: relative;
  min-height: clamp(300px, 24vw, 360px);
  overflow: hidden;
  border: 0;
  isolation: isolate;
}

.graph-stage::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, var(--paper) 0%, transparent 12%, transparent 88%, var(--paper) 100%),
    radial-gradient(circle at 50% 48%, rgba(251, 250, 246, 0.74), transparent 58%);
  content: "";
  pointer-events: none;
}

#graph .graph-focus-lines {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  overflow: visible;
  pointer-events: none;
}

.graph-focus-line {
  stroke: rgba(17, 17, 15, 0.42);
  stroke-linecap: round;
  stroke-width: 1.05;
  vector-effect: non-scaling-stroke;
}

.graph-arrow-head {
  fill: none;
  stroke: rgba(17, 17, 15, 0.48);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.25;
}

.graph-focus-line.is-level-1 {
  stroke: rgba(124, 112, 93, 0.48);
}

.graph-focus-line.is-level-2 {
  stroke: rgba(123, 130, 116, 0.5);
}

.graph-barrage {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.graph-focus-nodes {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.graph-marquee-row {
  position: absolute;
  right: 0;
  left: 0;
  top: var(--top);
  height: 50px;
}

.graph-row-track {
  display: flex;
  width: max-content;
  gap: 28px;
  animation: graphTagMarquee var(--duration) linear infinite;
  animation-delay: var(--offset);
  will-change: transform;
}

.graph-stage.is-frozen .graph-row-track {
  animation-play-state: paused;
}

.graph-row-group {
  display: flex;
  flex: 0 0 auto;
  gap: 28px;
  padding-right: 28px;
}

.graph-tag {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  max-width: min(270px, 66vw);
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(17, 17, 15, 0.2);
  border-radius: 12px;
  background: rgba(251, 250, 246, 0.62);
  color: rgba(17, 17, 15, 0.68);
  cursor: pointer;
  font: inherit;
  line-height: 1;
  overflow: hidden;
  padding: 0 16px;
  transition:
    background 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    color 220ms ease,
    opacity 220ms ease,
    transform 220ms ease;
}

.graph-focus-tag {
  position: absolute;
  top: var(--y);
  left: var(--x);
  z-index: 3;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}

.graph-tag span {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.graph-tag.is-level-0 {
  height: 48px;
  border-color: rgba(17, 17, 15, 0.42);
  color: rgba(15, 16, 14, 0.94);
  font-size: 1.24rem;
  font-weight: 720;
  padding-inline: 24px;
}

.graph-tag.is-level-1 {
  border-color: rgba(124, 112, 93, 0.38);
  color: rgba(88, 78, 65, 0.92);
  font-size: 1.12rem;
  font-weight: 620;
}

.graph-tag.is-level-2 {
  color: rgba(17, 17, 15, 0.72);
  font-size: 1.02rem;
  font-weight: 500;
}

.graph-tag.is-level-3 {
  color: rgba(17, 17, 15, 0.58);
  font-size: 0.94rem;
  font-weight: 420;
}

.graph-tag:hover,
.graph-tag:focus-visible {
  border-color: rgba(17, 17, 15, 0.38);
  background: rgba(251, 250, 246, 0.82);
  outline: 0;
}

.graph-stage.is-frozen .graph-tag.is-dimmed {
  opacity: 0.24;
}

.graph-stage.is-frozen .graph-tag.is-chain,
.graph-stage.is-frozen .graph-tag.is-active {
  opacity: 1;
  border-color: rgba(17, 17, 15, 0.46);
  background: rgba(251, 250, 246, 0.9);
  color: rgba(15, 16, 14, 0.94);
}

.graph-stage.is-frozen .graph-focus-tag.is-active {
  animation: graphLiquidTag 2.8s ease-in-out infinite;
  border-color: rgba(123, 130, 116, 0.68);
  box-shadow:
    0 0 0 7px rgba(123, 130, 116, 0.06),
    0 12px 32px rgba(17, 17, 15, 0.08);
  transform: translate(-50%, -50%) translateY(-1px);
}

@keyframes graphTagMarquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes graphLiquidTag {
  0%,
  100% {
    border-radius: 12px;
    transform: translate(-50%, -50%) translateY(-1px) scale(1);
  }

  45% {
    border-radius: 16px 11px 15px 12px;
    transform: translate(-50%, -50%) translateY(-2px) scale(1.018);
  }
}

@media (max-width: 720px) {
  .graph-stage {
    min-height: 320px;
  }

  .graph-marquee-row {
    height: 38px;
  }

  .graph-row-track,
  .graph-row-group {
    gap: 18px;
  }

  .graph-row-group {
    padding-right: 18px;
  }

  .graph-tag {
    max-width: 196px;
    height: 33px;
    border-radius: 10px;
    padding-inline: 11px;
  }

  .graph-tag.is-level-0 {
    height: 39px;
    font-size: 1.04rem;
  }

  .graph-tag.is-level-1 {
    font-size: 0.94rem;
  }

  .graph-tag.is-level-2 {
    font-size: 0.88rem;
  }

  .graph-tag.is-level-3 {
    font-size: 0.82rem;
  }
}

/* Photography: restrained social wall. */
#photography {
  background:
    linear-gradient(180deg, rgba(251, 250, 246, 0.96), rgba(235, 228, 217, 0.72)),
    var(--paper);
}

#photography .section-inner {
  width: 100%;
  max-width: none;
}

#photography .split-heading {
  --photo-gap: clamp(1px, 0.12vw, 2px);
  display: grid;
  width: min(80vw, 1180px);
  margin-inline: auto;
  margin-bottom: clamp(10px, 1.4vw, 18px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: flex-start;
  gap: var(--photo-gap);
}

#photography .split-heading > div:first-child {
  grid-column: 1 / span 2;
  max-width: 620px;
}

#photography .eyebrow {
  margin-bottom: 18px;
  color: rgba(15, 16, 14, 0.42);
}

#photography-title {
  max-width: 560px;
  color: rgba(15, 16, 14, 0.7);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: clamp(1.08rem, 1.8vw, 1.42rem);
  font-weight: 350;
  line-height: 1.72;
}

#photography .filter-bar {
  grid-column: 3;
  justify-content: flex-end;
  align-self: end;
  gap: 0;
  text-align: right;
}

#photography .filter-button {
  min-height: auto;
  margin-left: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(15, 16, 14, 0.46);
  font-size: 0.92rem;
  font-weight: 360;
  line-height: 1.8;
  text-decoration: none;
}

#photography .filter-button:not(:last-child)::after {
  margin-left: 18px;
  color: rgba(15, 16, 14, 0.26);
  content: "/";
}

#photography .filter-button:hover,
#photography .filter-button:focus-visible,
#photography .filter-button.is-active {
  background: transparent;
  color: rgba(15, 16, 14, 0.86);
}

#photography .photo-grid {
  display: grid;
  --photo-gap: clamp(1px, 0.12vw, 2px);
  width: min(80vw, 1180px);
  margin-inline: auto;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: var(--photo-gap);
}

#photography .photo-tile,
#photography .photo-tile:nth-child(4n + 1),
#photography .photo-tile:nth-child(4n + 2),
#photography .photo-tile:nth-child(4n + 3),
#photography .photo-tile:nth-child(4n + 4),
#photography .photo-tile:nth-child(5n + 1),
#photography .photo-tile:nth-child(5n + 4) {
  display: block;
  grid-column: auto !important;
  gap: 0;
  margin: 0 !important;
}

#photography .photo-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#photography .photo-frame::before {
  content: none;
  display: none;
}

#photography .photo-link {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #d9d5ca;
  cursor: pointer;
}

#photography .photo-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.84) contrast(1.04) brightness(0.98) sepia(0.045);
  transform: scale(1.002);
  transition:
    filter 260ms ease,
    transform 520ms ease;
}

#photography .photo-tile:hover img {
  filter: saturate(0.9) contrast(1.06) brightness(1) sepia(0.025);
  transform: scale(1.026);
}

#photography .photo-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: -webkit-box;
  margin: 0;
  padding: clamp(42px, 6vw, 82px) clamp(14px, 1.7vw, 26px) clamp(14px, 1.7vw, 24px);
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  background: linear-gradient(180deg, transparent, rgba(4, 5, 5, 0.58));
  color: rgba(251, 250, 246, 0.92);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: clamp(0.78rem, 0.9vw, 0.96rem);
  font-style: normal;
  font-weight: 350;
  line-height: 1.56;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  text-overflow: ellipsis;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.22);
  transform: translateY(8px);
  transition:
    opacity 260ms ease,
    transform 260ms ease;
}

#photography .photo-tile:hover .photo-caption,
#photography .photo-tile:focus-within .photo-caption {
  opacity: 1;
  transform: translateY(0);
}

html.photo-modal-open,
body.photo-modal-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.photo-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  box-sizing: border-box;
  padding: 5vh 10vw;
  place-items: center;
  background: rgba(4, 5, 5, 0.72);
  opacity: 0;
  overscroll-behavior: contain;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.photo-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.photo-modal-content {
  display: grid;
  width: min(100%, calc(90vh * 1.425), 1280px);
  height: auto;
  aspect-ratio: 57 / 40;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  align-items: stretch;
  background: transparent;
}

.photo-modal-image {
  position: relative;
  min-width: 0;
  height: 100%;
  background: #0f100e;
}

.photo-modal-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 240ms ease;
}

.photo-modal-image img.is-loaded {
  opacity: 1;
}

/* 大图加载态：旋转 spinner */
.photo-modal-image.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 2px solid rgba(251, 250, 246, 0.2);
  border-top-color: rgba(251, 250, 246, 0.85);
  border-radius: 50%;
  animation: photo-modal-spin 0.8s linear infinite;
}

/* 大图加载失败态 */
.photo-modal-image.is-error::after {
  content: "图片加载失败";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  color: rgba(251, 250, 246, 0.6);
  font-size: 0.9rem;
  text-align: center;
}

@keyframes photo-modal-spin {
  to {
    transform: rotate(360deg);
  }
}

.photo-modal-copy {
  display: grid;
  height: 100%;
  min-width: 0;
  align-content: start;
  gap: clamp(34px, 5vw, 68px);
  overflow-y: auto;
  background: var(--white);
  padding: clamp(44px, 6vw, 84px) clamp(34px, 5vw, 76px);
}

.photo-modal-copy h3 {
  margin: 0;
  max-width: 100%;
  color: rgba(15, 16, 14, 0.94);
  font-family: "Hiragino Mincho ProN", "Songti SC", serif;
  font-size: clamp(1.7rem, 2.8vw, 3.2rem);
  font-weight: 400;
  line-height: 1.16;
  overflow-wrap: anywhere;
  text-align: left;
  text-wrap: balance;
  white-space: normal;
}

.photo-modal-copy p {
  max-width: 34em;
  margin: 0;
  color: rgba(15, 16, 14, 0.68);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: clamp(0.98rem, 1.16vw, 1.12rem);
  font-weight: 350;
  line-height: 1.92;
}

.photo-modal-close {
  position: fixed;
  top: clamp(18px, 3vw, 34px);
  right: clamp(22px, 4vw, 48px);
  z-index: 1001;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(251, 250, 246, 0.92);
  cursor: pointer;
}

.photo-modal-close::before,
.photo-modal-close::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 1px;
  background: currentColor;
  content: "";
  transform-origin: center;
}

.photo-modal-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.photo-modal-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.photo-modal-close span {
  display: none;
}

.photo-modal-close:focus-visible {
  outline: 1px solid rgba(251, 250, 246, 0.82);
  outline-offset: 6px;
}

#photography .motion-archive {
  width: min(80vw, 1180px);
  margin: clamp(72px, 9vw, 120px) auto 0;
}

@media (max-width: 720px) {
  #photography .split-heading,
  #photography .photo-grid,
  #photography .motion-archive {
    width: min(92vw, 560px);
  }

  #photography .split-heading {
    margin-bottom: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  #photography .split-heading > div:first-child {
    grid-column: 1 / span 2;
  }

  #photography .filter-bar {
    grid-column: 3;
    justify-content: flex-end;
  }

  #photography-title {
    font-size: 1.02rem;
    line-height: 1.68;
  }

  #photography .filter-button {
    margin-left: 10px;
    font-size: 0.82rem;
  }

  #photography .filter-button:not(:last-child)::after {
    margin-left: 10px;
  }

  #photography .photo-grid {
    gap: 1px;
  }

  #photography .photo-frame {
    padding: 0;
  }

  #photography .photo-caption {
    padding: 36px 8px 10px;
    font-size: 0.68rem;
    line-height: 1.45;
  }

  .photo-modal-content {
    width: min(100%, 540px);
    height: min(86svh, calc(90vw * 1.55));
    aspect-ratio: auto;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 58%) minmax(0, 42%);
  }

  .photo-modal {
    padding: 7vh 5vw;
  }

  .photo-modal-copy {
    gap: 22px;
    padding: 28px 24px 34px;
  }

  .photo-modal-copy h3 {
    font-size: clamp(1.34rem, 7.2vw, 1.72rem);
    line-height: 1.18;
  }

  .photo-modal-copy p {
    font-size: 0.92rem;
    line-height: 1.74;
  }

  .photo-modal-close {
    top: 14px;
    right: 14px;
  }
}

/* Page headings: unified title + quiet line. */
.section-heading,
.split-heading {
  align-items: end;
}

.section-heading h2,
.split-heading h2,
.contact-section h2,
#photography-title {
  max-width: 820px;
  margin: 0;
  color: currentColor;
  font-family: "Didot", "Bodoni 72", "Hiragino Mincho ProN", "Songti SC", serif;
  font-size: clamp(3.2rem, 7vw, 8.6rem);
  font-weight: 400;
  line-height: 0.96;
}

.page-lede {
  max-width: 560px;
  margin: clamp(18px, 2.6vw, 34px) 0 0;
  color: color-mix(in srgb, currentColor 58%, transparent);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: clamp(1rem, 1.22vw, 1.14rem);
  font-weight: 350;
  line-height: 1.86;
}

.section-block:not(#photography) .split-heading > div:first-child {
  grid-column: 1 / -1;
}

#graph .section-heading h2 {
  display: block;
}

#graph .page-lede {
  max-width: 620px;
}

#photography .split-heading > div:first-child {
  display: block;
}

#photography .page-lede {
  max-width: 620px;
}

.contact-grid > div:first-child {
  align-self: start;
}

.contact-board dl div {
  grid-template-columns: 30px 110px minmax(0, 1fr);
  align-items: center;
}

.contact-icon {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: rgba(15, 16, 14, 0.5);
}

.contact-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
}

@media (max-width: 720px) {
  .section-heading h2,
  .split-heading h2,
  .contact-section h2,
  #photography-title {
    font-size: clamp(2.7rem, 14vw, 4.9rem);
  }

  .page-lede {
    max-width: 100%;
    margin-top: 18px;
    font-size: 0.96rem;
    line-height: 1.72;
  }

  #photography .split-heading > div:first-child {
    grid-column: 1 / -1;
  }

  #photography .filter-bar {
    grid-column: 1 / -1;
    justify-content: flex-end;
    margin-top: 6px;
  }

  .contact-board dl div {
    display: grid !important;
    grid-template-columns: 24px 68px minmax(0, 1fr) !important;
    width: 100%;
    align-items: center;
    justify-content: stretch;
    justify-items: start;
    column-gap: 12px;
    row-gap: 0;
  }

  .contact-icon {
    grid-column: 1;
    justify-self: start;
  }

  .contact-board dt {
    grid-column: 2;
    justify-self: start;
    text-align: left;
    white-space: nowrap;
  }

  .contact-board dd {
    grid-column: 3;
    width: 100%;
    justify-self: start;
    min-width: 0;
    overflow: hidden;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Desktop rhythm: keep page transitions airy, but not empty. */
@media (min-width: 981px) {
  .signal-section {
    padding: clamp(72px, 7vw, 112px) 0;
  }

  .section-block {
    padding: clamp(86px, 8vw, 132px) 0;
  }

  .contact-section {
    padding: clamp(90px, 8.4vw, 146px) 0;
  }

  .section-heading,
  .split-heading {
    margin-bottom: clamp(30px, 4.2vw, 58px);
  }

  #graph {
    padding-top: clamp(82px, 7.8vw, 126px);
    padding-bottom: clamp(44px, 4vw, 72px);
  }

  #graph .section-heading {
    margin-bottom: clamp(6px, 1.2vw, 14px);
  }

  #writing {
    padding-bottom: clamp(64px, 6vw, 104px);
  }

  #photography {
    padding-top: clamp(72px, 6.5vw, 112px);
  }

  #photography .split-heading {
    margin-bottom: clamp(8px, 1vw, 14px);
  }
}

/* Mobile rhythm: tighter than before, while keeping enough breathing room. */
@media (max-width: 720px) {
  .signal-section {
    padding: 68px 0;
  }

  .section-block {
    padding: 70px 0;
  }

  .contact-section {
    padding: 72px 0;
  }

  .section-heading,
  .split-heading {
    margin-bottom: 28px;
  }

  .signal-grid,
  .split-heading,
  .contact-grid {
    gap: 30px;
  }

  .page-lede {
    margin-top: 14px;
    line-height: 1.68;
  }

  #graph {
    padding-top: 68px;
    padding-bottom: 48px;
  }

  #writing {
    padding-bottom: 58px;
  }

  #photography {
    padding-top: 66px;
    padding-bottom: 72px;
  }
}

/* Photography filters should keep the right edge fixed and grow leftward. */
#photography .filter-bar {
  grid-column: 1 / -1;
  justify-self: end;
  display: flex;
  max-width: 100%;
  flex-wrap: nowrap;
  justify-content: flex-end;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

#photography .filter-bar::-webkit-scrollbar {
  display: none;
}

#photography .filter-button {
  flex: 0 0 auto;
}

#photography .filter-button:first-child {
  margin-left: 0;
}
