:root {
  --paper: #f2eee4;
  --paper-soft: #f8f5ed;
  --ink: #202722;
  --muted: #69716c;
  --line: rgba(32, 39, 34, 0.18);
  --green: #174f3e;
  --green-dark: #10372c;
  --red: #aa4938;
  --gold: #c5a66b;
  --serif: "Songti SC", "STSong", "Noto Serif SC", serif;
  --sans: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

/* Long-form technical report page */
.report-body {
  background:
    linear-gradient(90deg, transparent 49.9%, rgba(32, 39, 34, 0.018) 50%, transparent 50.1%),
    #f4efe5;
}

.report-page {
  padding-bottom: 120px;
}

.report-hero {
  padding: 72px 0 54px;
  border-bottom: 1px solid var(--ink);
}

.report-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 68px;
  align-items: end;
}

.report-hero h1 {
  max-width: 900px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(42px, 6.2vw, 82px);
  font-weight: 500;
  line-height: 1.22;
}

.report-hero h1,
.report-content h2,
.report-summary h2 {
  letter-spacing: 0;
}

.report-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 28px 0 0;
  color: #4f5953;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 2;
}

.report-meta-panel {
  margin: 0;
  padding: 26px 28px;
  border: 1px solid var(--ink);
  background: var(--paper-soft);
}

.report-meta-panel div + div {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.report-meta-panel dt {
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
}

.report-meta-panel dd {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.7;
}

.report-summary {
  padding: 42px 0 54px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.report-summary article {
  min-height: 210px;
  padding: 28px;
  border: 1px solid var(--line);
  background: rgba(248, 245, 237, 0.74);
}

.report-summary span {
  color: var(--red);
  font-family: var(--serif);
  font-size: 24px;
}

.report-summary h2 {
  margin: 28px 0 12px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
}

.report-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.report-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 70px;
  align-items: start;
}

.report-sidebar {
  position: sticky;
  top: 22px;
}

.report-sidebar-inner {
  padding: 28px 0 28px 22px;
  border-left: 1px solid var(--ink);
}

.report-sidebar .eyebrow {
  margin-bottom: 22px;
}

.report-toc {
  display: grid;
  gap: 12px;
}

.report-toc a {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  text-decoration: none;
}

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

.report-toc span {
  color: var(--red);
  font-family: var(--serif);
  font-size: 12px;
}

.report-content {
  max-width: 920px;
  min-width: 0;
  padding-bottom: 80px;
}

.report-content h2 {
  scroll-margin-top: 28px;
  margin: 92px 0 24px;
  padding-top: 28px;
  border-top: 1px solid var(--ink);
  font-family: var(--serif);
  font-size: clamp(34px, 4.5vw, 54px);
  font-weight: 500;
  line-height: 1.35;
}

.report-content h2:first-child {
  margin-top: 0;
}

.report-content h2 span {
  display: block;
  margin-bottom: 8px;
  color: var(--red);
  font-family: var(--serif);
  font-size: 22px;
}

.report-content h3 {
  margin: 44px 0 18px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
}

.report-content p {
  margin: 18px 0;
  color: #334039;
  font-size: 17px;
  line-height: 2.05;
}

.report-content strong {
  color: var(--green-dark);
  font-weight: 700;
}

.report-content code {
  padding: 0.12em 0.38em;
  border: 1px solid rgba(32, 39, 34, 0.12);
  border-radius: 5px;
  color: #7a3025;
  background: rgba(255, 255, 255, 0.58);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

.table-wrap {
  width: 100%;
  margin: 28px 0 36px;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.42);
}

.table-wrap table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.65;
}

.table-wrap th,
.table-wrap td {
  min-width: 92px;
  padding: 13px 15px;
  vertical-align: top;
  border-right: 1px solid rgba(32, 39, 34, 0.12);
  border-bottom: 1px solid rgba(32, 39, 34, 0.12);
}

.table-wrap th {
  color: var(--paper);
  background: var(--green-dark);
  font-weight: 700;
  text-align: left;
}

.table-wrap tr:nth-child(even) td {
  background: rgba(248, 245, 237, 0.72);
}

.code-block,
.diagram-block {
  margin: 30px 0 38px;
}

.code-block {
  max-width: 100%;
  padding: 24px;
  overflow-x: auto;
  border-radius: 8px;
  color: #f7f0df;
  background: #18231d;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.code-block code {
  padding: 0;
  border: 0;
  border-radius: 0;
  color: inherit;
  background: transparent;
  font-size: 13px;
  line-height: 1.75;
}

.diagram-block {
  padding: 20px;
  overflow-x: auto;
  border: 1px solid rgba(197, 166, 107, 0.58);
  background: #faf7ef;
}

.diagram-block .mermaid {
  min-width: 680px;
  margin: 0;
  white-space: pre;
  color: var(--ink);
  background: transparent;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

.report-content pre {
  white-space: pre;
}

@media (max-width: 1000px) {
  .report-hero-grid,
  .report-layout {
    grid-template-columns: 1fr;
  }

  .report-hero-grid {
    gap: 36px;
  }

  .report-meta-panel {
    max-width: 620px;
  }

  .report-summary {
    grid-template-columns: 1fr;
  }

  .report-summary article {
    min-height: auto;
  }

  .report-sidebar {
    position: static;
  }

  .report-sidebar-inner {
    padding: 0 0 28px;
    border-left: 0;
    border-bottom: 1px solid var(--ink);
  }

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

@media (max-width: 640px) {
  .report-hero {
    padding: 46px 0 36px;
  }

  .report-hero h1 {
    font-size: 38px;
  }

  .report-hero p:not(.eyebrow),
  .report-content p {
    font-size: 16px;
  }

  .report-meta-panel {
    padding: 22px;
  }

  .report-layout {
    gap: 38px;
  }

  .report-toc {
    grid-template-columns: 1fr;
  }

  .report-content h2 {
    margin-top: 70px;
    font-size: 32px;
  }

  .table-wrap {
    margin-inline: calc((100vw - 100%) / -2);
    border-right: 0;
    border-left: 0;
  }

  .code-block,
  .diagram-block {
    margin-inline: calc((100vw - 100%) / -2);
    border-radius: 0;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, transparent 49.9%, rgba(32, 39, 34, 0.025) 50%, transparent 50.1%),
    var(--paper);
  font-family: var(--sans);
  line-height: 1.75;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.11'/%3E%3C/svg%3E");
}

a {
  color: inherit;
}

button,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 8px 14px;
  color: white;
  background: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  width: min(1180px, calc(100% - 64px));
  margin-inline: auto;
}

.site-header {
  width: min(1320px, calc(100% - 48px));
  min-height: 96px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand,
.footer-title {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-seal {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--paper);
  background: var(--red);
  font-family: var(--serif);
  font-size: 21px;
}

.brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.14em;
}

.brand small {
  display: block;
  margin-top: -2px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.1em;
}

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

.site-nav a {
  font-size: 13px;
  text-decoration: none;
}

.site-nav i {
  margin-right: 5px;
  color: var(--red);
  font-family: var(--serif);
  font-size: 10px;
  font-style: normal;
}

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

.menu-button {
  display: none;
}

.hero {
  min-height: 760px;
  padding: 46px 0 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.2em;
}

.hero-grid {
  padding: 55px 0 65px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.5fr);
  align-items: end;
  gap: 100px;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--red);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
}

.hero h1 {
  position: relative;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(58px, 7.4vw, 102px);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 1.15;
}

.hero h1 span {
  color: var(--green);
}

.hero h1 em {
  position: absolute;
  right: 2%;
  bottom: -38px;
  color: var(--red);
  font-size: 0.38em;
  font-style: normal;
  letter-spacing: 0.18em;
  transform: rotate(-7deg);
}

.hero-intro {
  position: relative;
  padding: 0 0 10px 40px;
  border-left: 1px solid var(--ink);
}

.hero-intro p {
  margin: 0;
  color: #4f5953;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 2;
}

.drop-cap {
  position: absolute;
  top: -58px;
  left: -22px;
  color: var(--paper);
  font-family: var(--serif);
  font-size: 100px;
  line-height: 1;
  -webkit-text-stroke: 1px var(--line);
}

.round-link {
  width: 92px;
  height: 92px;
  margin-top: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.4;
  text-decoration: none;
  transition: 180ms ease;
}

.round-link b {
  font-size: 20px;
  font-weight: 400;
}

.round-link:hover {
  color: var(--paper);
  background: var(--green);
  border-color: var(--green);
  transform: rotate(5deg);
}

.hero-ticker {
  min-height: 64px;
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
}

.hero-ticker > span {
  color: var(--red);
  font-size: 11px;
  letter-spacing: 0.16em;
}

.hero-ticker div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.hero-ticker b {
  font-size: 15px;
  font-weight: 500;
}

.hero-ticker i {
  color: var(--gold);
}

.section {
  padding-top: 130px;
  padding-bottom: 130px;
}

.section-header {
  display: grid;
  grid-template-columns: 150px 1fr minmax(230px, 0.45fr);
  align-items: end;
  gap: 40px;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--ink);
}

.section-index {
  color: var(--red);
  font-family: var(--serif);
  font-size: 28px;
}

.section-header .eyebrow {
  margin: 3px 0 0;
}

.section-header h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.section-header > p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
}

.editorial-grid {
  margin-top: 54px;
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  grid-template-rows: auto auto;
  gap: 22px;
}

.feature-note {
  position: relative;
  min-height: 610px;
  padding: 64px;
  grid-row: 1 / 3;
  overflow: hidden;
  background: var(--paper-soft);
  border: 1px solid var(--line);
}

.feature-note::after {
  content: "一";
  position: absolute;
  right: -12px;
  bottom: -120px;
  color: transparent;
  font-family: var(--serif);
  font-size: 420px;
  line-height: 1;
  -webkit-text-stroke: 1px rgba(32, 39, 34, 0.055);
}

.paper-fold {
  position: absolute;
  top: 0;
  right: 0;
  width: 58px;
  height: 58px;
  background: linear-gradient(225deg, var(--paper) 50%, #e6ded0 51%);
}

.note-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.note-meta span {
  color: var(--red);
}

.feature-note h3 {
  position: relative;
  z-index: 1;
  margin: 105px 0 28px;
  font-family: var(--serif);
  font-size: clamp(38px, 4.4vw, 58px);
  font-weight: 500;
  line-height: 1.35;
}

.feature-note > p {
  position: relative;
  z-index: 1;
  max-width: 600px;
  color: var(--muted);
  font-size: 16px;
}

.read-note {
  position: absolute;
  bottom: 55px;
  left: 64px;
  z-index: 2;
  padding: 0 0 7px;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
}

.read-note span {
  margin-left: 12px;
  color: var(--red);
}

.small-note {
  min-height: 220px;
  padding: 34px;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 30px;
  border-top: 1px solid var(--ink);
}

.small-note-bottom {
  border-bottom: 1px solid var(--line);
}

.vertical-label {
  color: var(--red);
  font-size: 10px;
  letter-spacing: 0.2em;
  writing-mode: vertical-rl;
}

.small-note time {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.small-note h3 {
  margin: 20px 0 14px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.6;
}

.small-note p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.margin-quote {
  display: none;
}

.experiments-section {
  color: var(--paper);
  background: var(--green-dark);
}

.section-header-light {
  border-color: rgba(255, 255, 255, 0.5);
}

.section-header-light .section-index,
.section-header-light .eyebrow {
  color: #e39782;
}

.section-header-light > p {
  color: rgba(255, 255, 255, 0.6);
}

.experiment-stage {
  margin-top: 54px;
}

.experiment-feature {
  position: relative;
  min-height: 620px;
  padding: 65px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: end;
  gap: 50px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.experiment-number {
  position: absolute;
  top: 28px;
  right: 32px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 10px;
  letter-spacing: 0.2em;
}

.experiment-orbit {
  position: absolute;
  top: 50%;
  left: 48%;
  width: 550px;
  height: 550px;
  transform: translate(-50%, -50%);
}

.experiment-orbit span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
}

.experiment-orbit span:nth-child(2) {
  transform: rotate(58deg) scaleY(0.42);
}

.experiment-orbit span:nth-child(3) {
  transform: rotate(-48deg) scaleY(0.32);
}

.experiment-copy {
  position: relative;
  z-index: 1;
}

.experiment-status {
  font-size: 11px;
  letter-spacing: 0.15em;
}

.experiment-status i {
  width: 7px;
  height: 7px;
  margin-right: 8px;
  display: inline-block;
  border-radius: 50%;
  background: #dd826e;
  box-shadow: 0 0 0 6px rgba(221, 130, 110, 0.1);
}

.experiment-copy h3 {
  margin: 28px 0;
  font-family: var(--serif);
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 500;
  line-height: 1.2;
}

.experiment-copy > p:last-of-type {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.68);
}

.experiment-button {
  margin-top: 25px;
  padding: 13px 20px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: white;
  background: transparent;
  cursor: pointer;
}

.experiment-button:hover {
  color: var(--green-dark);
  background: var(--paper);
}

.mood-card {
  position: relative;
  z-index: 1;
  min-height: 390px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--ink);
  background: #d7b565;
  box-shadow: 18px 18px 0 rgba(0, 0, 0, 0.14);
  transform: rotate(3deg);
  transition:
    background 250ms ease,
    transform 250ms ease;
}

.mood-card.is-changing {
  transform: rotate(-2deg) scale(0.98);
}

.mood-card > span {
  font-size: 10px;
  letter-spacing: 0.16em;
}

.mood-card strong {
  font-family: var(--serif);
  font-size: 76px;
  font-weight: 500;
  writing-mode: vertical-rl;
}

.mood-card p {
  margin: 0;
  font-family: var(--serif);
  font-size: 16px;
}

.experiment-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.experiment-list article {
  position: relative;
  min-height: 210px;
  padding: 35px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.experiment-list span,
.experiment-list b {
  color: rgba(255, 255, 255, 0.45);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
}

.experiment-list h3 {
  margin: 36px 0 8px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
}

.experiment-list p {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.experiment-list b {
  position: absolute;
  top: 35px;
  right: 35px;
}

.collection-shelf {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
  border-right: 1px solid var(--line);
}

.collection-item {
  position: relative;
  min-height: 480px;
  padding: 38px;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  transition: 200ms ease;
}

.collection-item:hover {
  background: var(--paper-soft);
  transform: translateY(-5px);
}

.collection-type,
.collection-state {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.15em;
}

.collection-mark {
  width: 112px;
  height: 112px;
  margin: 58px auto 50px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 38px;
}

.collection-item-tool .collection-mark {
  border-radius: 0;
  transform: rotate(45deg);
}

.collection-item-tool .collection-mark::first-letter {
  transform: rotate(-45deg);
}

.collection-item-place .collection-mark {
  border-color: var(--red);
  color: var(--red);
  border-style: dashed;
}

.collection-item h3 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.55;
}

.collection-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.collection-state {
  margin-top: auto;
  padding-top: 25px;
  color: var(--red);
}

.question-section {
  overflow: hidden;
  background: #d9cdb6;
}

.question-shell {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 100px;
  align-items: center;
}

.question-index {
  position: absolute;
  top: -160px;
  left: -120px;
  color: transparent;
  font-family: var(--serif);
  font-size: 520px;
  line-height: 1;
  -webkit-text-stroke: 1px rgba(32, 39, 34, 0.08);
}

.question-copy,
.question-form {
  position: relative;
  z-index: 1;
}

.question-copy h2 {
  margin: 0 0 30px;
  font-family: var(--serif);
  font-size: clamp(46px, 5.6vw, 72px);
  font-weight: 500;
  line-height: 1.3;
}

.question-copy > p:last-child {
  max-width: 470px;
  color: #5d625e;
}

.question-form {
  padding: 44px;
  background: rgba(248, 245, 237, 0.7);
  border: 1px solid rgba(32, 39, 34, 0.2);
}

.question-form label {
  display: block;
  color: var(--red);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.question-form textarea {
  width: 100%;
  margin-top: 22px;
  padding: 5px 0 15px;
  resize: vertical;
  border: 0;
  border-bottom: 1px solid var(--ink);
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.8;
}

.question-form textarea::placeholder {
  color: #8d908b;
}

.question-actions {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.question-actions > span {
  color: var(--muted);
  font-size: 11px;
}

.question-actions button {
  padding: 12px 24px;
  border: 0;
  color: white;
  background: var(--green);
  cursor: pointer;
}

.save-message {
  min-height: 24px;
  margin: 15px 0 -15px;
  color: var(--green);
  font-size: 12px;
}

.about-section {
  padding-top: 130px;
  padding-bottom: 130px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  gap: 100px;
  padding-top: 35px;
  border-top: 1px solid var(--ink);
}

.about-grid h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(44px, 5vw, 66px);
  font-weight: 500;
  line-height: 1.35;
}

.about-grid > div {
  color: var(--muted);
}

.quiet-note {
  margin-top: 25px;
  padding-left: 18px;
  border-left: 2px solid var(--red);
  font-size: 13px;
}

.text-link {
  margin-top: 20px;
  display: inline-flex;
  gap: 12px;
  color: var(--green);
  font-weight: 600;
  text-underline-offset: 6px;
}

.site-footer {
  padding: 70px max(24px, calc((100% - 1180px) / 2)) 35px;
  color: white;
  background: #18231f;
}

.footer-title strong {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
}

.footer-title p {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

.footer-links {
  margin-top: 55px;
  display: flex;
  gap: 28px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  text-underline-offset: 5px;
}

.footer-legal {
  margin-top: 55px;
  padding-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px 24px;
  flex-wrap: wrap;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.36);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 10px;
  letter-spacing: 0.16em;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.46);
}

.police-record {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.police-record img {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.note-dialog {
  width: min(700px, calc(100% - 32px));
  max-height: min(720px, calc(100vh - 40px));
  padding: 58px;
  border: 0;
  color: var(--ink);
  background: var(--paper-soft);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.35);
}

.note-dialog::backdrop {
  background: rgba(15, 27, 22, 0.76);
  backdrop-filter: blur(5px);
}

.note-dialog h2 {
  margin: 0 0 35px;
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 500;
  line-height: 1.4;
}

.dialog-article {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 2;
}

.dialog-close {
  position: absolute;
  top: 18px;
  right: 24px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .page-shell {
    width: min(100% - 36px, 720px);
  }

  .site-header {
    width: calc(100% - 36px);
    min-height: 76px;
  }

  .menu-button {
    display: block;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    right: 18px;
    left: 18px;
    z-index: 20;
    padding: 26px;
    display: none;
    flex-direction: column;
    gap: 18px;
    background: var(--paper-soft);
    border: 1px solid var(--line);
    box-shadow: 0 18px 50px rgba(31, 41, 36, 0.14);
  }

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

  .hero {
    min-height: auto;
  }

  .hero-grid,
  .section-header,
  .question-shell,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 100px;
  }

  .hero-intro {
    max-width: 520px;
    margin-left: auto;
  }

  .section-header {
    gap: 12px;
  }

  .section-header > p {
    max-width: 420px;
  }

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

  .feature-note {
    grid-row: auto;
  }

  .experiment-feature {
    grid-template-columns: 1fr;
  }

  .mood-card {
    width: 280px;
    margin-left: auto;
  }

  .collection-shelf {
    grid-template-columns: 1fr;
  }

  .collection-item {
    min-height: 360px;
  }

  .collection-mark {
    margin: 30px auto;
  }

  .question-shell {
    gap: 55px;
  }
}

@media (max-width: 600px) {
  .brand small {
    display: none;
  }

  .hero {
    padding-top: 30px;
  }

  .hero h1 {
    font-size: 50px;
    line-height: 1.25;
  }

  .hero h1 em {
    right: 0;
    bottom: -25px;
  }

  .hero-intro {
    padding-left: 24px;
  }

  .hero-intro p {
    font-size: 16px;
  }

  .hero-ticker {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px 0;
  }

  .hero-ticker div {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .section {
    padding-top: 90px;
    padding-bottom: 90px;
  }

  .feature-note {
    min-height: 570px;
    padding: 34px 26px;
  }

  .feature-note h3 {
    margin-top: 90px;
    font-size: 36px;
  }

  .read-note {
    bottom: 35px;
    left: 26px;
  }

  .small-note {
    padding-inline: 8px;
  }

  .experiment-feature {
    min-height: 760px;
    padding: 36px 24px;
  }

  .experiment-copy h3 {
    font-size: 47px;
  }

  .experiment-orbit {
    width: 420px;
    height: 420px;
  }

  .mood-card {
    width: min(270px, 86%);
  }

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

  .question-form {
    padding: 30px 24px;
  }

  .about-section {
    padding-top: 90px;
    padding-bottom: 90px;
  }

  .footer-legal {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .note-dialog {
    padding: 48px 25px 30px;
  }

  .note-dialog h2 {
    font-size: 30px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* Professional discovery page */
.profile-hero .hero-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.55fr);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 30px;
}

.plain-hero-link {
  padding-bottom: 5px;
  border-bottom: 1px solid var(--ink);
  font-size: 13px;
  text-decoration: none;
}

.plain-hero-link span {
  margin-left: 8px;
  color: var(--red);
}

.focus-grid {
  margin-top: 54px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  align-items: stretch;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.focus-card {
  position: relative;
  min-height: 520px;
  padding: 42px 38px;
  overflow: hidden;
  background: var(--paper-soft);
}

.focus-card-primary {
  min-height: 580px;
  margin-top: -24px;
  background: #e5ddcc;
}

.focus-card-dark {
  margin-bottom: -24px;
  color: var(--paper);
  background: var(--green);
}

.focus-number {
  color: var(--red);
  font-size: 10px;
  letter-spacing: 0.18em;
}

.focus-card-dark .focus-number {
  color: #d9a391;
}

.focus-glyph {
  position: absolute;
  top: 35px;
  right: 24px;
  color: transparent;
  font-family: var(--serif);
  font-size: 142px;
  line-height: 1;
  -webkit-text-stroke: 1px rgba(32, 39, 34, 0.09);
}

.focus-card-dark .focus-glyph {
  -webkit-text-stroke-color: rgba(242, 238, 228, 0.14);
}

.focus-card h3 {
  position: relative;
  margin: 115px 0 26px;
  font-family: var(--serif);
  font-size: clamp(34px, 3.3vw, 48px);
  font-weight: 500;
  line-height: 1.35;
}

.focus-card p {
  position: relative;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.focus-card-dark p {
  color: rgba(242, 238, 228, 0.72);
}

.tag-row {
  position: absolute;
  right: 38px;
  bottom: 38px;
  left: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  font-size: 10px;
}

.focus-card-dark .tag-row span {
  border-color: rgba(242, 238, 228, 0.25);
  color: rgba(242, 238, 228, 0.72);
}

.source-note {
  margin: 46px 0 0;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.work-section {
  color: var(--paper);
  background: var(--green-dark);
}

.work-layout {
  margin-top: 70px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 80px;
}

.work-feature {
  position: relative;
  min-height: 600px;
  padding: 58px;
  overflow: hidden;
  border: 1px solid rgba(242, 238, 228, 0.24);
  background:
    linear-gradient(rgba(242, 238, 228, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 238, 228, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
}

.work-feature::after {
  content: "";
  position: absolute;
  right: -160px;
  bottom: -170px;
  width: 450px;
  height: 450px;
  border: 1px solid rgba(242, 238, 228, 0.13);
  border-radius: 50%;
  box-shadow:
    0 0 0 55px rgba(242, 238, 228, 0.025),
    0 0 0 110px rgba(242, 238, 228, 0.02);
}

.work-stamp {
  position: absolute;
  top: 42px;
  right: 42px;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(242, 238, 228, 0.28);
  border-radius: 50%;
  color: rgba(242, 238, 228, 0.62);
  font-size: 9px;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-align: center;
  transform: rotate(8deg);
}

.work-status {
  margin: 0;
  color: #d9a391;
  font-size: 11px;
  letter-spacing: 0.14em;
}

.work-status i {
  width: 6px;
  height: 6px;
  margin-right: 7px;
  display: inline-block;
  border-radius: 50%;
  background: #d9a391;
}

.work-feature h3 {
  position: relative;
  z-index: 1;
  margin: 115px 0 34px;
  font-family: var(--serif);
  font-size: clamp(44px, 5.2vw, 68px);
  font-weight: 500;
  line-height: 1.3;
}

.work-feature > p:not(.work-status) {
  position: relative;
  z-index: 1;
  max-width: 550px;
  color: rgba(242, 238, 228, 0.68);
}

.work-button {
  color: var(--paper);
  border-bottom-color: rgba(242, 238, 228, 0.65);
}

.work-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.work-list article {
  padding: 36px 0;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  border-top: 1px solid rgba(242, 238, 228, 0.2);
}

.work-list article:last-child {
  border-bottom: 1px solid rgba(242, 238, 228, 0.2);
}

.work-list-index {
  color: #d9a391;
  font-family: var(--serif);
  font-size: 25px;
}

.work-list p {
  margin: 0 0 8px;
  color: #d9a391;
  font-size: 10px;
  letter-spacing: 0.16em;
}

.work-list h3 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
}

.work-list small {
  color: rgba(242, 238, 228, 0.58);
  font-size: 12px;
}

.path-list {
  position: relative;
  max-width: 940px;
  margin: 70px auto 0;
}

.path-list::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 194px;
  width: 1px;
  background: var(--line);
}

.path-list article {
  min-height: 170px;
  display: grid;
  grid-template-columns: 170px 48px 1fr;
  align-items: start;
}

.path-list time {
  padding-top: 3px;
  color: var(--red);
  font-family: var(--serif);
  font-size: 18px;
  text-align: right;
}

.path-dot {
  position: relative;
  z-index: 1;
  width: 11px;
  height: 11px;
  margin: 8px auto 0;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 1px var(--green);
}

.path-list p {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.16em;
}

.path-list h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
}

.path-list small {
  color: var(--muted);
}

.contact-section {
  padding-top: 0;
}

.contact-shell {
  position: relative;
  padding: 100px 80px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 100px;
  overflow: hidden;
  color: var(--paper);
  background: var(--red);
}

.contact-index {
  position: absolute;
  top: -100px;
  right: 20px;
  color: rgba(242, 238, 228, 0.08);
  font-family: var(--serif);
  font-size: 340px;
  line-height: 1;
}

.contact-copy,
.contact-form {
  position: relative;
  z-index: 1;
}

.contact-copy .eyebrow {
  color: #f0c8bb;
}

.contact-copy h2 {
  margin: 0 0 28px;
  font-family: var(--serif);
  font-size: clamp(52px, 6vw, 76px);
  font-weight: 500;
  line-height: 1.2;
}

.contact-copy > p:not(.eyebrow) {
  color: rgba(242, 238, 228, 0.76);
  font-size: 14px;
}

.contact-email {
  margin-top: 35px;
  display: inline-block;
  border-bottom: 1px solid rgba(242, 238, 228, 0.65);
  font-size: 13px;
  text-decoration: none;
}

.contact-form {
  padding: 42px;
  border: 1px solid rgba(242, 238, 228, 0.3);
  background: rgba(61, 25, 20, 0.13);
}

.contact-form fieldset {
  margin: 0 0 34px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border: 0;
}

.contact-form legend,
.message-label {
  width: 100%;
  margin-bottom: 12px;
  display: block;
  color: rgba(242, 238, 228, 0.7);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.contact-form input {
  position: absolute;
  opacity: 0;
}

.contact-form fieldset span {
  padding: 7px 13px;
  display: block;
  border: 1px solid rgba(242, 238, 228, 0.35);
  border-radius: 99px;
  color: rgba(242, 238, 228, 0.8);
  font-size: 12px;
  cursor: pointer;
}

.contact-form input:checked + span {
  color: var(--red);
  background: var(--paper);
  border-color: var(--paper);
}

.contact-form input:focus-visible + span {
  outline: 2px solid var(--paper);
  outline-offset: 3px;
}

.contact-form textarea {
  width: 100%;
  padding: 12px 0;
  resize: vertical;
  border: 0;
  border-bottom: 1px solid rgba(242, 238, 228, 0.45);
  border-radius: 0;
  outline: 0;
  color: var(--paper);
  background: transparent;
}

.contact-form textarea::placeholder {
  color: rgba(242, 238, 228, 0.45);
}

.contact-form textarea:focus {
  border-bottom-color: var(--paper);
}

.contact-actions {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.contact-actions > span {
  color: rgba(242, 238, 228, 0.55);
  font-size: 10px;
}

.contact-actions button {
  padding: 11px 18px;
  border: 0;
  color: var(--red);
  background: var(--paper);
  cursor: pointer;
}

.contact-actions button i {
  margin-left: 8px;
  font-style: normal;
}

.contact-form .save-message {
  min-height: 1.75em;
  margin: 12px 0 0;
  color: rgba(242, 238, 228, 0.7);
  font-size: 11px;
}

@media (max-width: 900px) {
  .profile-hero .hero-grid,
  .work-layout,
  .contact-shell {
    grid-template-columns: 1fr;
  }

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

  .focus-card,
  .focus-card-primary,
  .focus-card-dark {
    min-height: 440px;
    margin: 0;
  }

  .work-layout {
    gap: 55px;
  }

  .contact-shell {
    gap: 60px;
  }
}

@media (max-width: 600px) {
  .profile-hero .hero-grid {
    gap: 90px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .plain-hero-link {
    margin-left: 108px;
  }

  .focus-card,
  .focus-card-primary,
  .focus-card-dark {
    min-height: 430px;
    padding: 32px 26px;
  }

  .focus-card h3 {
    margin-top: 90px;
  }

  .tag-row {
    right: 26px;
    bottom: 28px;
    left: 26px;
  }

  .work-feature {
    min-height: 620px;
    padding: 38px 26px;
  }

  .work-stamp {
    top: 28px;
    right: 24px;
    width: 70px;
    height: 70px;
  }

  .work-feature h3 {
    margin-top: 130px;
    font-size: 43px;
  }

  .work-button {
    left: 26px;
  }

  .work-list article {
    grid-template-columns: 38px 1fr;
  }

  .path-list::before {
    left: 6px;
  }

  .path-list article {
    min-height: 205px;
    grid-template-columns: 28px 1fr;
  }

  .path-list time {
    grid-column: 2;
    margin-bottom: 8px;
    text-align: left;
  }

  .path-dot {
    grid-column: 1;
    grid-row: 1 / 3;
    margin-left: 1px;
  }

  .path-list article > div {
    grid-column: 2;
  }

  .contact-section {
    padding-bottom: 0;
  }

  .contact-shell {
    width: 100%;
    padding: 80px 24px;
  }

  .contact-form {
    padding: 30px 22px;
  }

  .contact-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .contact-actions button {
    width: 100%;
  }
}
